:root {
  --bg: #0b1014;
  --panel: #141a21;
  --panel-2: #1a222b;
  --line: #232b35;
  --text: #f4f7fb;
  --muted: #8b97a8;
  --mint: #e24b4b;
  --mint-dim: #3a171a;
  --blue: #6e7680;
  --danger: #ff6b7a;
  --sans: "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", Menlo, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c0d10 url("/static/login-bg.jpg") center / cover no-repeat fixed; color: var(--text); font-family: var(--sans); }
button, input { font: inherit; }
.screen { min-height: 100%; }
.login-screen {
  min-height: 100vh;
  width: 100%;
  background: #0c0d10 url("/static/login-bg.jpg") center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(20,0,0,0.35) 18%, transparent 36%, transparent 64%, rgba(20,0,0,0.35) 82%, rgba(0,0,0,0.82) 100%),
    radial-gradient(ellipse at center, rgba(12,13,16,0.08) 0%, rgba(8,0,0,0.45) 100%);
  pointer-events: none;
}
.login-form { position: relative; z-index: 1; }

.login-form {
  width: min(520px, 92vw);
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.login-logo {
  display: block;
  width: min(520px, 84vw);
  max-height: 62vh;
  object-fit: contain;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.login-name {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #c5c8ce;
  font-weight: 600;
}
.login-form input {
  width: min(260px, 100%);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3a3f48;
  border-radius: 0;
  text-align: center;
  padding: 14px 4px 10px;
  color: #e8eaed;
  letter-spacing: 0.16em;
}
.login-form input::placeholder { color: #6b7380; letter-spacing: 0.22em; }
.login-form input:focus { outline: 0; border-bottom-color: #e11d2e; }
.login-form .error { font-size: 12px; letter-spacing: 0.08em; }
.card {
  width: min(380px, calc(100% - 32px));
  margin: 16vh auto 0;
  padding: 22px;
  background: var(--panel);
  border-radius: 18px;
}
.kicker { margin: 0 0 6px; color: var(--mint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
h1 { margin: 0 0 8px; font-size: 24px; }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); }
code { color: var(--mint); }
form { display: grid; gap: 8px; margin-top: 14px; }
input {
  background: #0e141a;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 11px;
}
.btn-mint, .btn-blue, .btn-dark {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-mint { background: var(--mint); color: #06231a; }
.btn-blue { background: var(--blue); color: white; }
.btn-dark { background: var(--panel-2); color: var(--text); }

[hidden] { display: none !important; }
.app {
  display: grid;
  grid-template-columns: 168px 1fr;
  height: 100%;
  min-height: 100vh;
  background-color: #0c0d10;
  background-image: url("/static/deathcortex.png"), url("/static/login-bg.jpg");
  background-position: center 36%, center;
  background-size: min(56vw, 580px) auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
.nav {
  padding: 16px 10px 12px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
}
.brand {
  margin: 0 8px 14px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: #e24b4b;
}
.nav-kicker {
  margin: 12px 8px 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b919c;
}
.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d5d8de;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
}
.nav-btn:hover { background: rgba(255,255,255,0.04); border-color: rgba(226,75,75,0.25); }
.nav-btn.active {
  background: rgba(226, 75, 75, 0.16);
  color: #f3d0d0;
  border-color: rgba(226, 75, 75, 0.45);
}
.nav-logout { margin-top: auto; color: #c4a0a4; }
.main {
  padding: 8px 10px 10px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(10, 12, 16, 0.28);
}
.view { min-height: 0; }
#view-agent:not([hidden]),
#view-settings:not([hidden]),
#view-files:not([hidden]),
#view-tools:not([hidden]),
#view-host:not([hidden]),
#view-units:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 6px;
}
.files-shell { display: flex; flex-direction: column; min-height: 0; flex: 1; height: 100%; gap: 6px; }
.files-places { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.files-places .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.files-more { color: #c9b48a; font-size: 12px; }
.files-rail {
  overflow: auto; min-height: 0; padding: 8px;
  background: rgba(8,10,14,0.5); border: 1px solid rgba(90,32,36,0.4); border-radius: 10px;
}
.files-rail .set-kicker { margin: 8px 0 4px; color: #c9b48a; }
.files-rail .chips.stack { display: flex; flex-direction: column; gap: 3px; }
.files-rail .chip { width: 100%; text-align: left; }
.files-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 6px; }
.files-crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px 2px; }
.files-crumbs button { background: transparent; border: 0; color: #c9b48a; cursor: pointer; font-size: 13px; padding: 0; font-weight: 600; }
.files-crumbs button:hover { color: #f0e6c8; }
.files-table-wrap { flex: 1 1 auto; min-height: 220px; overflow: auto; background: rgba(14,16,20,0.45); border: 1px solid rgba(90,32,36,0.35); border-radius: 10px; }
.files-cols, .file-row {
  display: grid; grid-template-columns: 2fr 90px 90px 1fr 140px; gap: 8px; align-items: center;
}
.files-cols { position: sticky; top: 0; padding: 6px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8aa898; background: rgba(10,12,16,.8); }
#view-files .file-ops { flex: 0 0 auto; max-height: 22vh; overflow: auto; }
#view-files #file-list {
  overflow: visible;
  min-height: 0;
  padding: 4px 8px 8px;
}
#view-files .live-wrap { flex: 0 0 220px; min-height: 140px; }
#view-tools .live-wrap,
#view-host .live-wrap {
  flex: 1 1 auto;
  min-height: 280px;
  max-height: none;
}
#view-tools .chip,
#view-host .chip {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}
#view-tools .box,
#view-host .box { padding: 10px; }
#view-tools .box h3,
#view-host .box h3 { font-size: 11px; margin-bottom: 8px; }
.live-wrap.grow {
  display: flex;
  flex-direction: column;
}
.live-wrap.grow pre.live {
  flex: 1;
  min-height: 240px;
  max-height: none;
  font-size: 13px;
  line-height: 1.45;
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.stats.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { background: rgba(20, 26, 33, 0.72); border-radius: 10px; padding: 6px 8px; }
.stat span { display: block; color: var(--muted); margin-bottom: 4px; font-size: 11px; }
.stat strong { font-size: 16px; font-weight: 700; }
#d-ident { font-size: 11px; font-weight: 650; line-height: 1.25; word-break: break-all; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.add-form { display: none; }
.add-form:not([hidden]) { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto auto; gap: 6px; margin-bottom: 10px; }
.fleet-list { display: grid; gap: 6px; }
.fleet-head, .fleet-row {
  display: grid;
  grid-template-columns: 132px minmax(140px, 1.2fr) 52px 52px minmax(96px, 1fr) minmax(96px, 1fr) 44px 72px minmax(90px, 1fr) 96px;
  gap: 8px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 8px 12px;
}
.fleet-head {
  color: #8b919c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.fleet-row {
  background: rgba(20, 26, 33, 0.86);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}
.fleet-row.active { outline: 1px solid #5a2a30; background: rgba(42, 21, 24, 0.94); }
.fleet-who { min-width: 0; max-width: 100%; overflow: hidden; justify-self: center; text-align: center; }
.fleet-who strong { display: block; font-size: 14px; font-weight: 750; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-who .set-meta { display: block; max-width: 100%; font-size: 11px; font-weight: 600; color: #9aa1ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-flags { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: nowrap; width: 100%; }
.acc-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
  background: #6a3030; box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.acc-dot.ready { background: #3dcc7a; box-shadow: 0 0 8px rgba(61,204,122,.8); }
.acc-dot.wait { background: #e0a14a; box-shadow: 0 0 8px rgba(224,161,74,.7); }
.acc-dot.dead { background: #e24b4b; box-shadow: 0 0 8px rgba(226,75,75,.7); }
.fleet-kv {
  font-size: 13px;
  font-weight: 700;
  color: #f3f5f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fleet-kick { justify-self: end; }
.table-wrap { background: rgba(20, 26, 33, 0.82); border-radius: 12px; overflow: hidden; }
#view-overview table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#view-overview th, #view-overview td { text-align: left; padding: 6px 10px; font-size: 12px; vertical-align: middle; }
#view-overview th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
#view-overview td { border-top: 1px solid var(--line); }
#view-overview th:nth-child(1), #view-overview td:nth-child(1) { width: 88px; }
#view-overview th:nth-child(2), #view-overview td:nth-child(2) { width: 28%; }
#view-overview th:nth-child(3), #view-overview td:nth-child(3) { width: 14%; }
#view-overview th:nth-child(4), #view-overview td:nth-child(4) { width: 22%; }
#view-overview th:nth-child(5), #view-overview td:nth-child(5) { width: 10%; }
#view-overview th:nth-child(6), #view-overview td:nth-child(6) { width: 80px; }
#view-overview th:nth-child(7), #view-overview td:nth-child(7) { width: 72px; text-align: right; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; font-size: 13px; }
th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
td { border-top: 1px solid var(--line); }
tr.host-row { cursor: pointer; }
tr.host-row.active td { background: rgba(42, 21, 24, 0.92); }
#view-overview .set-meta { font-size: 11px; color: #8b919c; margin-top: 2px; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.badge.on { background: #3a171a; color: #e8b4b4; }
.badge.glow {
  box-shadow: 0 0 0 1px rgba(232, 80, 90, 0.35), 0 0 14px rgba(200, 40, 50, 0.45);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 90, 100, 0.45), 0 0 12px rgba(255, 40, 55, 0.5); }
  50% { box-shadow: 0 0 0 1px rgba(255, 160, 160, 0.9), 0 0 26px rgba(255, 70, 80, 0.95); }
}
.fleet-row .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kick-stat { display: flex; align-items: stretch; padding: 4px; }
.kick-xl {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #7a1c24;
  color: #f3d0d2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 14px;
}
.kick-xl:hover { background: #9a242e; }
 .badge.idle { background: #3a2e17; color: #e0c48a; }
.badge.off { background: #3a1c22; color: var(--danger); }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-ops { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 4px; }
.box { background: rgba(20, 26, 33, 0.72); border-radius: 10px; padding: 6px; }
.box h3 { margin: 0 0 5px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #8aa898; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  border: 0; border-radius: 8px; padding: 4px 8px;
  background: var(--mint); color: #06231a; font-weight: 700;
  cursor: pointer; font-size: 10px;
}
.chip.blue { background: #2a2d33; color: #c5c8ce; }
.chip.active { background: #1a2410; color: #d7e0a8; }
.chip.home { background: #2a1518; color: #e8b4b4; }
.hint-line { margin: 8px 0; color: var(--mint); font-size: 12px; }
.file-row {
  background: transparent; color: #e8eaed; border: 0; border-bottom: 1px solid rgba(90,32,36,.35);
  border-radius: 0; padding: 5px 8px; margin: 0;
  cursor: pointer; width: 100%; text-align: left; font-size: 12px;
}
.file-row.selected { background: #2a1518; color: #e8b4b4; }
.file-row .meta { color: #8aa898; font-family: var(--mono); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.live-wrap { margin-top: 6px; background: rgba(10, 12, 16, 0.38); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#host-live { max-height: none; min-height: 80px; }
.live-head { padding: 6px 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #8aa898; border-bottom: 1px solid var(--line); }
pre.live { margin: 0; padding: 8px 10px; min-height: 48px; overflow: auto; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: #d5e6dc; }
.path-form { display: grid; grid-template-columns: 1fr 160px auto; gap: 6px; flex: 0 0 auto; }
.path-form input,
#path-input {
  background: rgba(16, 18, 22, 0.4);
  border: 1px solid #2a2e36;
  color: #e8eaed;
  border-radius: 8px;
  padding: 6px 8px;
}
.split-v {
  flex: 0 0 10px;
  cursor: ns-resize;
  background: #1a222b;
  border-radius: 0 0 10px 10px;
  position: relative;
}
.split-v::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 36px;
  height: 3px;
  margin-left: -18px;
  border-radius: 2px;
  background: #6a727c;
}
.split-v:hover { background: #3a171a; }
.split-v:hover::after { background: #e24b4b; }

#view-output:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; }
.term-bar { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
#term-target { color: var(--mint); }
#term-wrap { flex: 1; height: auto; min-height: 280px; max-height: none; background: rgba(8, 12, 16, 0.35); border-radius: 12px; padding: 6px; }
.xterm, .xterm-viewport { background: transparent !important; }

@media (max-width: 800px) {
  .tool-grid, .file-ops, .stats.five { grid-template-columns: 1fr 1fr; }
}

.nav-logout { margin-top: auto; color: #c9a0a0; }
.settings-box { margin-bottom: 8px; }
.settings-form { display: grid; gap: 8px; max-width: 360px; }

.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 920px; align-content: start; overflow: auto; min-height: 0; padding-bottom: 24px; }
#view-agent .set-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#view-agent .set-wide .set-kicker,
#view-agent .set-wide .set-meta,
#view-agent .set-wide .toolbar,
#view-agent .set-wide #pack-link,
#view-agent .set-wide #link-list { grid-column: 1 / -1; }
.set-hero { grid-column: 1 / -1; padding: 0 2px; }
.set-hero h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.set-kicker { margin: 0 0 4px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #e11d2e; }
.set-meta { margin: 0; color: #8b9098; font-size: 12px; line-height: 1.35; }
.set-panel { background: rgba(20, 22, 26, 0.42); border: 1px solid #262a31; border-radius: 8px; padding: 10px; display: grid; gap: 6px; }
.set-wide { grid-column: 1 / -1; }
.set-link { color: #d7dde6; text-decoration: none; border-bottom: 1px solid #3a3f48; padding-bottom: 6px; }
.set-link:hover { color: #fff; border-bottom-color: #e11d2e; }

.set-field, .set-link, .set-btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
  min-height: 32px;
  padding: 6px 8px;
  background: rgba(16, 18, 22, 0.4);
  border: 1px solid #2a2e36;
  border-radius: 8px;
  color: #e8eaed;
  text-align: left;
  text-decoration: none;
}
.set-btn { cursor: pointer; background: rgba(27, 28, 32, 0.45); }
.set-list { display: grid; gap: 8px; }
.set-panel input.set-field:focus { outline: 0; border-color: #e11d2e; }

.os-tabs{display:flex;gap:8px;margin:4px 0 8px}
.os-tab{background:#1a1c20;border:1px solid #2a2d33;color:#c5c8ce;padding:8px 16px;letter-spacing:.14em;text-transform:uppercase;font-size:11px;cursor:pointer}
.os-tab.on{background:#3a171a;color:#e8b4b4;border-color:#5a2228}

.agent-board{display:flex;flex-direction:column;gap:10px;padding:8px 4px 16px}
.agent-top{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.agent-create{display:flex;gap:8px;flex-wrap:wrap}
.agent-create .set-field{flex:1;min-width:220px}
.agent-more{color:#c5c8ce}
.agent-more summary{cursor:pointer;margin:6px 0}
.link-board .set-list{background:rgba(12,13,16,.45);padding:8px;border:1px solid #2a2d33}

#host-screen { display:block; width:min(100%,720px); max-height:360px; object-fit:contain; margin-top:8px; border-radius:8px; background:#000; }
#host-screen[hidden] { display:none; }

.deploy-hero{margin-bottom:14px}
.deploy-title{margin:4px 0 0;font-size:22px;font-weight:650;letter-spacing:.02em}
.deploy-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:start;margin:14px 0}
.deploy-create{display:grid;gap:8px;margin:0}
.deploy-os{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:4px}
.deploy-os .os-tab{padding:14px 12px;text-align:left;display:flex;flex-direction:column;gap:4px;border-radius:12px}
.deploy-os .os-tab strong{font-size:15px}
.deploy-os .os-tab span{opacity:.65;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.deploy-os .os-tab.on{outline:1px solid #e24b4b}
.deploy-side{display:grid;gap:8px;padding:14px;border:1px solid rgba(226,75,75,.25);border-radius:14px;background:rgba(12,14,18,.4)}
.pack-ones{min-height:92px;font-family:ui-monospace,Menlo,monospace;font-size:11px;resize:vertical}
.deploy-links-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.row-sweep{
  justify-self:end;align-self:center;margin-left:auto;
  background:#5a1c22;color:#f3d0d2;border:0;border-radius:8px;
  padding:6px 10px;font-size:11px;letter-spacing:.04em;cursor:pointer;white-space:nowrap;
}
.row-sweep:hover{background:#7a242c}
.howto-toc{display:flex;flex-wrap:wrap;gap:8px 14px;margin:12px 0 18px}
.howto-toc a{color:#e2b67a;text-decoration:none;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.link-board{display:grid;gap:6px;margin:0;max-height:280px;overflow:auto}
.link-row{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}

.host-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;flex:0 0 auto}
.host-dd{background:rgba(12,14,18,.72);color:#ececec;border:1px solid rgba(226,75,75,.35);padding:8px 10px;border-radius:10px;min-width:160px;font:inherit}
#view-host .live-wrap{flex:1 1 auto;min-height:320px}

.host-bar{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto;gap:8px;align-items:center}
.host-dd{width:100%;background:rgba(12,14,18,.82);color:#ececec;border:1px solid rgba(226,75,75,.45);padding:10px 12px;border-radius:10px;font:inherit}

.host-dd.run{border-color:#7ee0b8;box-shadow:0 0 10px rgba(126,224,184,.35);background:rgba(20,40,32,.9)}
.host-dd option{background:#14161c;color:#ececec}

.deploy-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.deploy-card{background:rgba(12,14,18,.55);border:1px solid rgba(226,75,75,.28);border-radius:14px;padding:16px}
.deploy-card h3{margin:0 0 6px;font-size:15px}
.deploy-card p{margin:0 0 12px;opacity:.75;font-size:13px}
.deploy-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.deploy-create .set-field,.deploy-side .set-field{max-width:none;width:100%}

.intro{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;background:#0c0d10 url("/static/login-bg.jpg") center / cover no-repeat fixed;animation:introHold 16.2s ease forwards}
.intro-word{position:absolute;margin:0;font-family:Palatino,"Palatino Linotype","Times New Roman",Times,serif;font-size:clamp(40px,8vw,104px);font-weight:700;letter-spacing:.46em;text-indent:.46em;text-transform:uppercase;font-variant:small-caps;color:#f3d789;opacity:0;text-shadow:0 1px 0 #7a5a16,0 2px 0 #3a2808,0 0 18px rgba(232,196,96,.55),0 0 42px rgba(196,140,32,.4),0 0 80px rgba(140,80,10,.28)}
.intro-word.w1{animation:wordPulse 3.2s ease 0.45s forwards}
.intro-word.w2{animation:wordPulse 3.2s ease 3.9s forwards}
.intro-word.w3{animation:wordPulse 3.2s ease 7.35s forwards;color:#f0b45a;text-shadow:0 1px 0 #6a3a10,0 2px 0 #2a1406,0 0 22px rgba(225,80,40,.45),0 0 48px rgba(212,175,55,.4)}
.intro-word.latin{text-transform:none;font-variant:normal;letter-spacing:.28em;text-indent:0;font-weight:600;font-size:clamp(26px,4.6vw,52px);color:#e8c56a;text-shadow:0 1px 0 #5a4010,0 0 20px rgba(212,175,55,.5),0 0 44px rgba(180,120,20,.3)}
.intro-word.w4{animation:wordStay 3.5s ease 10.8s forwards}
@keyframes wordPulse{0%{opacity:0;transform:translateY(10px) scale(.98)}14%{opacity:1;transform:none}82%{opacity:1}100%{opacity:0}}
@keyframes wordStay{0%{opacity:0;transform:translateY(8px)}18%{opacity:1;transform:none}100%{opacity:1}}
@keyframes introHold{0%,90%{opacity:1}100%{opacity:0;visibility:hidden}}

.term-bar{display:flex;justify-content:space-between;align-items:center;padding:6px 4px 8px;font-size:12px;letter-spacing:.12em;color:#b9c0c8}
.term-wrap{flex:1;min-height:380px;background:rgba(8,12,16,.88);border:1px solid rgba(226,75,75,.28);border-radius:12px;padding:8px;overflow:hidden}
.howto{overflow:auto;max-width:820px;padding:4px 8px 48px;line-height:1.55}
.howto h2{margin:0 0 8px;font-size:22px}
.howto h3{margin:22px 0 8px;font-size:15px;color:#e24b4b;letter-spacing:.04em}
.howto-lead{opacity:.85}
.howto ul,.howto ol{margin:0 0 8px;padding-left:18px}
.howto li{margin:4px 0}
.howto code{font-size:12px}
#view-terminal{display:flex;flex-direction:column;flex:1;min-height:0}
#view-terminal[hidden]{display:none !important}
#view-howto{flex:1;min-height:0;overflow:auto}
.deploy-via{display:grid;grid-template-columns:1fr 90px;gap:6px;margin:0}
.deploy-via .set-field:nth-child(n+3){grid-column:1 / -1}


#view-files .files-shell { display:flex; flex-direction:column; gap:8px; }
#view-files .files-crumbs { font-size:14px; font-weight:600; letter-spacing:.02em; }
#view-files .files-table-wrap { flex:1; min-height:240px; border:1px solid #3a2224; background:rgba(8,10,12,.55); }
#view-files .files-cols { color:#c9b48a; }
#view-files .file-row:hover { background:rgba(80,24,28,.35); }
#view-files .file-ops { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; max-height:28vh; }
#view-files .file-ops .box { margin:0; padding:8px; background:rgba(12,14,18,.4); }
#view-files .live-wrap { flex:0 0 140px; min-height:100px; }
