:root {
  --bg: #0e0c0a;
  --card: rgba(14, 12, 10, 0.72);
  --line: rgba(203, 180, 138, 0.28);
  --fg: #f3eee6;
  --muted: #b4a594;
  --accent: #cbb48a;
  --danger: #c45c4a;
  --paper-ink: #1b1612;
  --paper: #e7dccb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: Outfit, "Avenir Next", system-ui, sans-serif;
}
body.desk {
  min-height: 100vh;
  background: #0e0c0a;
}
.wrap { width: min(480px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.wrap-wide { width: min(640px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.brand { font-family: Fraunces, Georgia, serif; font-weight: 480; letter-spacing: -0.03em; margin: 0 0 24px; color: #f3eee6; }
.brand span {
  color: var(--accent);
  font-family: Outfit, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}
.panel {
  background: rgba(14, 12, 10, 0.68);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  backdrop-filter: blur(14px);
  color: var(--fg);
}
.desk-login h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 320;
  font-size: 2rem;
  color: var(--fg);
  margin: 0 0 8px;
}
h1 { font-size: 1.25rem; margin: 0 0 8px; }
.hint { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
}
input, select, textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.55);
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #1b1612;
  font-weight: 500;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Outfit, sans-serif;
  transition: background .2s ease, color .2s ease, filter .2s ease;
}
.btn:hover { background: #b89d6f; color: #0e0c0a; filter: brightness(0.92); }
a { color: var(--accent); }
.alert {
  border-radius: 2px;
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 0.9rem;
}
.alert-bad { background: #3f1d1d; color: #fecaca; }
.alert-warn { background: #3f2f12; color: #fde68a; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 18px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  z-index: 1;
}
.step.done .dot { background: var(--accent); border-color: var(--accent); color: #1b1612; }
.step.current .dot { border-color: var(--accent); color: var(--accent); }
.step.action .dot { background: #7f1d1d; border-color: var(--danger); color: #fecaca; }
.step.done::before { background: var(--accent); }
.label { font-weight: 600; }
.sub { color: var(--muted); font-size: 0.8rem; }
code { color: #cbd5e1; }
.demos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip {
  background: #0f172a;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}
.event.now .label { text-decoration: none; }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; }
.event {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}
.event:last-child { padding-bottom: 0; }
.event::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.event:last-child::before { display: none; }
.mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  z-index: 1;
}
.event.done .mark { background: #334155; border-color: #334155; }
.event.done .label { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.event.done .note { color: #64748b; }
.event.now .mark {
  background: var(--accent);
  border-color: var(--accent);
  animation: blink 0.9s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(203, 180, 138, 0.25);
}
.event.now .label {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
  animation: blink-text 0.9s ease-in-out infinite;
}
.event.now {
  background: rgba(203, 180, 138, 0.08);
  border: 1px solid rgba(203, 180, 138, 0.35);
  border-radius: 14px;
  padding: 12px 12px 12px 8px;
  margin-bottom: 18px;
}
.btn-small {
  width: auto;
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.8rem;
}
.now-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2px;
  animation: blink-text 1.15s ease-in-out infinite;
}
.event time { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 2px; }
.event .note { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--fg); }
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(203, 180, 138, 0.55); }
  50% { opacity: 0.35; box-shadow: 0 0 0 8px rgba(203, 180, 138, 0); }
}
@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}
@media (prefers-reduced-motion: reduce) {
  .event.now .mark, .event.now .label, .now-kicker { animation: none; }
}
.wrap-wide { width: min(920px, calc(100% - 32px)); }
select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #05080c;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }

body.status-page {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 3.5rem;
  display: block;
  background: #0e0c0a;
  color: #f3eee6;
  overflow-x: hidden;
}
body.status-page .glow { display: none; }
.status-page .hero {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.6rem auto 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0;
}
.hero-card {
  position: relative;
  width: auto;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 2px;
  background: rgba(14, 12, 10, 0.72);
  color: #f3eee6;
  border: 1px solid rgba(203, 180, 138, 0.35);
  text-align: left;
  backdrop-filter: blur(12px);
  animation: none;
}
.hero-card time {
  display: block;
  color: #b4a594;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.04em;
  font-weight: 320;
  font-family: Fraunces, Georgia, serif;
  color: #f3eee6;
  line-height: 1.12;
}
.hero-note {
  margin: 0;
  color: #b4a594;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 40rem;
}
.corner-dl {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 3;
}
.rail-label {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.6rem auto 0.55rem;
  color: #cbb48a;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.deck {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto 1rem;
  min-height: 0;
  border-radius: 2px;
  border: 1px solid rgba(203, 180, 138, 0.28);
  background: rgba(14, 12, 10, 0.55);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: 1fr auto auto;
  align-items: stretch;
  max-height: none;
  animation: none;
}
.viewport {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar { display: none; }
.rail {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 16px 0 8px 8px;
  width: max-content;
  min-height: 150px;
}
.rail-end {
  flex: 0 0 40vw;
  width: 40vw;
  pointer-events: none;
}
.chapter {
  flex: 0 0 auto;
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #cbb48a;
  padding: 8px 4px;
  border-left: 1px solid rgba(203, 180, 138, 0.35);
}
.tcard {
  position: relative;
  flex: 0 0 230px;
  height: auto;
  min-height: 148px;
  scroll-snap-align: center;
  opacity: 0.48;
  transform: none;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 200ms ease, border-color 200ms ease;
}
.tcard.is-focus,
.tcard.is-now { opacity: 1; }
.tcard-inner {
  height: 100%;
  padding: 14px 16px;
  border-radius: 2px;
  background: rgba(14, 12, 10, 0.78);
  border: 1px solid rgba(203, 180, 138, 0.18);
}
.tcard.is-now .tcard-inner {
  border-color: rgba(203, 180, 138, 0.55);
  box-shadow: 0 0 24px rgba(203, 180, 138, 0.12);
}
.now-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbb48a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-card .now-row { padding-right: 150px; }
.pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbb48a;
  box-shadow: 0 0 0 0 rgba(203, 180, 138, 0.75);
  animation: pulse 1.15s ease-out infinite;
}
.tcard .pulse { width: 14px; height: 14px; }
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(203, 180, 138, 0.7); }
  55% { transform: scale(1.45); box-shadow: 0 0 0 22px rgba(203, 180, 138, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(203, 180, 138, 0); }
}
@keyframes enclosure {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(203, 180, 138, 0.28), 0 0 28px rgba(203, 180, 138, 0.12);
    border-color: rgba(203, 180, 138, 0.42);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(203, 180, 138, 0.8), 0 0 52px rgba(203, 180, 138, 0.32);
    border-color: rgba(203, 180, 138, 0.92);
  }
}
.past-row { height: 18px; margin-bottom: 8px; }
.dot-muted {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #64748b;
}
.tcard time {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.tcard h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.15;
  color: #e2e8f0;
}
.tcard.is-now h2 { color: #fff; }
.tcard p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.45;
}
.tcard:not(.is-now) h2, .tcard:not(.is-now) p { color: #94a3b8; }

.chev {
  position: relative;
  top: auto;
  z-index: 12;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-self: center;
}
.chev.off { opacity: 0.22; pointer-events: none; cursor: default; }
.chev.left { grid-column: 1; grid-row: 1; }
.chev.right { grid-column: 3; grid-row: 1; }

.dots {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 12;
  padding: 4px 0 2px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #475569;
  cursor: pointer;
}
.dot.on { background: #cbd5e1; }

.scrub {
  position: relative;
  grid-column: 2;
  height: 3px;
  border-radius: 99px;
  background: #1e293b;
  overflow: hidden;
  margin: 0 8px 10px;
}
.scrub i {
  display: block;
  height: 100%;
  width: 24%;
  background: #64748b;
  border-radius: 99px;
  transition: width 420ms ease;
}

.doc-btn {
  position: relative;
  z-index: 3;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #cbb48a;
  color: #1b1612;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  font-size: 0.7rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(203, 180, 138, 0.22);
}
.doc-btn:hover { background: #b89d6f; color: #1b1612; }
.doc-btn.dim {
  background: rgba(203, 180, 138, 0.14);
  color: #cbb48a;
  box-shadow: none;
  opacity: 0.7;
}
.doc-btn.dim:hover { opacity: 1; background: rgba(203, 180, 138, 0.28); color: #f3eee6; }
.file-on { color: #94a3b8; font-size: 0.8rem; margin: 4px 0 12px; }
.file-on code { color: #cbd5e1; }

.bar {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid rgba(203, 180, 138, 0.22);
  background: rgba(14, 12, 10, 0.65);
  color: #b4a594;
  font-size: 0.92rem;
}
.bar p { margin: 0; }
.bar a { color: #cbb48a; font-weight: 600; }

.keybox {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
}
.keybox summary { cursor: pointer; color: #64748b; }
.keybox form { margin-top: 12px; }

@media (max-width: 720px) {
  .hero-card { padding: 24px 20px; }
  .hero-card h1 { font-size: 1.6rem; }
  .deck { max-height: 38vh; }
  .tcard { flex-basis: 200px; }
  .bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .tcard, .hero-card, .deck { animation: none; transition: none; }
}

body.desk {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(203, 180, 138, 0.08), transparent 50%),
    #05080c;
  min-height: 100vh;
}
.desk-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.desk-login { width: min(420px, 100%); }
.desk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.desk-top .brand { margin: 0; }
.desk-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
}
.desk-nav a { color: #94a3b8; text-decoration: none; }
.desk-nav a:hover { color: #cbb48a; }
.desk-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.roster { padding: 20px 16px; }
.roster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.roster-head h2 { margin: 0; font-size: 0.95rem; }
.roster-actions { display: flex; gap: 8px; }
.roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person {
  display: grid;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #080e18;
  text-decoration: none;
  color: inherit;
}
.person strong { font-size: 0.95rem; }
.person code { color: #64748b; font-size: 0.75rem; }
.person span { color: #cbb48a; font-size: 0.78rem; font-weight: 600; }
.person.on {
  border-color: rgba(203, 180, 138, 0.55);
  background: rgba(16, 40, 34, 0.55);
  box-shadow: 0 0 0 1px rgba(203, 180, 138, 0.2);
}
.editor { padding: 28px; }
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbb48a;
  font-weight: 700;
}
.now-line { margin: 6px 0 0; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 20px;
}
.slot {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed #334155;
  background: #080e18;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--fg);
}
.slot span { font-weight: 700; color: #e2e8f0; }
.slot em { color: #64748b; font-style: normal; font-size: 0.8rem; }
.slot a { font-size: 0.8rem; word-break: break-all; }
.slot input[type=file] {
  height: auto;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.form-actions .btn { width: auto; min-width: 160px; }
.btn-ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #334155;
}
.btn-ghost:hover { background: #0f172a; }
.btn-danger {
  background: transparent;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}
.btn-danger:hover { background: #3f1d1d; }
.mini-log {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mini-log li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #080e18;
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.mini-log time { color: #64748b; font-size: 0.75rem; }
.mini-log span { color: #94a3b8; font-size: 0.85rem; }
.tests, .vault, .master { margin-top: 16px; }
.tests summary { cursor: pointer; font-weight: 700; }
.vault-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vault-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #080e18;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.vault-list span { color: #64748b; font-size: 0.8rem; }
.master-form { max-width: 420px; }
.bulk-hero { margin-bottom: 16px; }
.bulk-hero h1 { margin: 0 0 8px; }
.bulk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.bulk-actions .btn, .bulk-form .btn { width: auto; }
.bulk-form { display: grid; gap: 10px; margin-top: 8px; max-width: 420px; }
.bulk-form input[type=file] {
  height: auto;
  padding: 12px;
  border-style: dashed;
}
.bulk-errors { margin: 10px 0 0; padding-left: 18px; color: #fecaca; }
.help-steps {
  margin: 8px 0 18px;
  padding-left: 20px;
  color: #cbd5e1;
  display: grid;
  gap: 10px;
}
.help-steps code { font-size: 0.8rem; }
.bulk-help .table-wrap { margin-top: 8px; }

.drive-strip {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 8px 0 16px;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border: 1px solid rgba(203, 180, 138, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.55));
}
.drive-head h2 { margin: 0 0 12px; font-size: 1.05rem; }
.drive-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}
.drive-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #cbb48a;
}
.drive-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.drive-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #080e18;
  border: 1px solid var(--line);
}
.drive-list span { display: grid; gap: 2px; min-width: 0; }
.drive-list strong { font-size: 0.88rem; word-break: break-word; }
.drive-list em {
  color: #64748b;
  font-style: normal;
  font-size: 0.75rem;
}
.drive-list .btn { width: auto; flex: 0 0 auto; }
.drive-ops { display: flex; gap: 6px; align-items: center; }
.drive-ops form { margin: 0; }
.drive-up {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed #334155;
  background: #080e18;
}
.drive-up .hint { margin-top: 0; }
.drive-up input[type=file] {
  height: auto;
  padding: 10px;
  margin-bottom: 12px;
}
.drive-up .btn, .staff-up .btn { width: auto; }
.staff-drive { margin-bottom: 14px; }
.staff-up { max-width: 520px; margin-top: 8px; }
@media (max-width: 860px) {
  .desk-grid, .form-grid, .slots, .bulk-grid, .drive-cols { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

.desk-nav a.on { color: var(--accent); }

.flash {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1rem auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(203, 180, 138, 0.35);
  background: rgba(14, 12, 10, 0.72);
  color: #cbb48a;
  font-size: 0.9rem;
}
.flash.bad { border-color: rgba(196, 92, 74, 0.5); color: #e8b4ac; }
.flash a { color: inherit; }
.mini-drive {
  border: 1px solid rgba(203, 180, 138, 0.28);
  background: rgba(14, 12, 10, 0.72);
  padding: 1rem 1rem 0.9rem;
  backdrop-filter: blur(12px);
}
.drive-label {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbb48a;
}
.mini-scroll { max-height: 14rem; overflow: auto; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.mini-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.45rem;
  align-items: start;
  font-size: 0.82rem;
}
.mini-list a { color: #cbb48a; text-decoration: none; }
.mini-list .fn { display: block; color: #b4a594; font-style: normal; }
.mini-up {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(203, 180, 138, 0.18);
}
.mini-up .btn { width: 100%; }
.status-page .keybox {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.2rem auto 0;
}
@media (max-width: 860px) {
  .status-page .hero { grid-template-columns: 1fr; }
  .status-page .deck { max-height: none; }
}

.status-stack {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 2.2rem auto 0;
  padding-bottom: 3rem;
}
.status-stack h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 320;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: #f3eee6;
}
.status-stack .eyebrow { margin-bottom: 0.45rem; color: #cbb48a; }
.status-stack p { color: #b4a594; line-height: 1.55; }
.status-docs, .status-upload, .status-log {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(203, 180, 138, 0.22);
}
.status-doc-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.status-doc-row .write.dim { opacity: 0.45; }
.status-files { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.status-files li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(203, 180, 138, 0.14);
  font-size: 0.92rem;
}
.status-files a { color: #f3eee6; text-decoration: none; border-bottom: 1px solid rgba(203, 180, 138, 0.35); }
.status-files span { color: #cbb48a; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.status-up { display: grid; gap: 0.45rem; margin-top: 1.1rem; max-width: 24rem; }
.status-up .write { justify-self: start; margin-top: 0.35rem; }
.status-log ol { list-style: none; margin: 1rem 0 0; padding: 0; }
.status-log li {
  padding: 0.85rem 0 0.9rem 1rem;
  border-left: 1px solid rgba(203, 180, 138, 0.22);
  position: relative;
}
.status-log li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d6256;
}
.status-log li.now::before { background: #cbb48a; }
.status-log time { display: block; color: #8a7d6e; font-size: 0.78rem; margin-bottom: 0.2rem; }
.status-log strong { display: block; color: #f3eee6; font-weight: 400; }
.status-log li p { margin: 0.3rem 0 0; font-size: 0.92rem; }
.status-foot { margin-top: 1.6rem; font-size: 0.88rem; }
.status-file .keybox { width: 100%; margin-top: 1.4rem; color: #b4a594; }
.status-file .flash { width: 100%; margin: 0 0 1rem; }
.intake-card { margin: 1rem 0 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.intake-card dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.35rem 0.8rem; margin: 0.7rem 0 0; font-size: 0.88rem; }
.intake-card dt { color: var(--muted); }
.intake-card dd { margin: 0; color: var(--fg); }

body.hub {
  margin: 0;
  min-height: 100vh;
  background: #120f0c;
  color: #f3eee6;
  font-family: Outfit, "Avenir Next", system-ui, sans-serif;
}
.hub-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100vh;
}
.hub-rail {
  background: #1a1511;
  border-right: 1px solid rgba(203, 180, 138, 0.18);
  padding: 1.4rem 1.1rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.hub-mark {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: #f3eee6;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.hub-mark span {
  display: block;
  margin-top: 0.2rem;
  font-family: Outfit, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbb48a;
}
.hub-rail nav { display: grid; gap: 0.15rem; }
.hub-rail nav a {
  color: #b4a594;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
}
.hub-rail nav a.on, .hub-rail nav a:hover {
  color: #f3eee6;
  border-left-color: #cbb48a;
  background: rgba(203, 180, 138, 0.06);
}
.hub-help { margin-top: auto; font-size: 0.82rem; }
.hub-help a { color: #cbb48a; text-decoration: none; }
.hub-main { padding: 0 0 3rem; min-width: 0; }
.hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.4rem 1.6rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(14,12,10,0.35), rgba(14,12,10,0.82)),
    url(/media/ui/mast.jpg) center 30% / cover no-repeat;
  border-bottom: 1px solid rgba(203, 180, 138, 0.22);
}
.hub-head h1 {
  margin: 0.35rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 320;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}
.hub-head .crumb { color: #b4a594; margin: 0; }
.hub-links { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hub-links a { color: #d7cbb8; text-decoration: none; font-size: 0.82rem; }
.hub-links .inquire {
  border: 1px solid #cbb48a;
  color: #cbb48a;
  padding: 0.4rem 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
  gap: 0.85rem;
  padding: 1.1rem 1.6rem 0;
}
.hub-card {
  background: rgba(22, 18, 14, 0.92);
  border: 1px solid rgba(203, 180, 138, 0.22);
  padding: 1.15rem 1.2rem 1.2rem;
}
.hub-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  color: #cbb48a;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hub-now h2, .hub-drive h2, .hub-move h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 320;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: #f3eee6;
}
.hub-now h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hub-meta, .hub-send p, .hub-move header p { color: #b4a594; margin: 0; line-height: 1.5; }
.hub-send { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid rgba(203, 180, 138, 0.16); }
.hub-drive header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.hub-drive header a { color: #cbb48a; font-size: 0.78rem; text-decoration: none; }
.hub-files { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.35rem; max-height: 14rem; overflow: auto; }
.hub-files li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(203, 180, 138, 0.12);
  font-size: 0.82rem;
}
.hub-files a { color: #f3eee6; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-files span {
  flex: 0 0 auto;
  color: #cbb48a;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hub-up { display: grid; gap: 0.4rem; margin-top: 0.85rem; }
.hub-up .write { justify-self: start; }
.hub-move {
  margin: 0.85rem 1.6rem 0;
  padding: 1.1rem 1.15rem 1.15rem;
  background: rgba(22, 18, 14, 0.92);
  border: 1px solid rgba(203, 180, 138, 0.35);
  animation: gold-border 1.8s ease-in-out infinite;
}
.hub-move header { margin-bottom: 0.85rem; }
.hub-rail-cards {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.hub-step {
  flex: 0 0 13.5rem;
  scroll-snap-align: start;
  background: #e7dccb;
  color: #1b1612;
  padding: 0.95rem 0.9rem 1rem;
  min-height: 8.4rem;
  position: relative;
}
.hub-step time { display: block; font-size: 0.75rem; color: #6d6256; margin-bottom: 0.35rem; }
.hub-step strong { display: block; font-family: Fraunces, Georgia, serif; font-weight: 320; font-size: 1.05rem; }
.hub-step p { margin: 0.35rem 0 0; font-size: 0.82rem; color: #6d6256; line-height: 1.4; }
.hub-step.is-now {
  outline: 1px solid #cbb48a;
  animation: gold-border 1.8s ease-in-out infinite;
}
.hub-step .gold-beat { position: absolute; top: 0.7rem; right: 0.7rem; }
.gold-beat {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e4c56a;
  box-shadow: 0 0 0 0 rgba(228, 197, 106, 0.7);
  animation: gold-beat 1.35s ease-out infinite;
}
@keyframes gold-beat {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(228, 197, 106, 0.7); }
  70% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(228, 197, 106, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(228, 197, 106, 0); }
}
@keyframes gold-border {
  0%, 100% { border-color: rgba(203, 180, 138, 0.35); box-shadow: 0 0 0 0 rgba(228, 197, 106, 0); }
  50% { border-color: #e4c56a; box-shadow: 0 0 0 1px rgba(228, 197, 106, 0.55), 0 0 18px rgba(228, 197, 106, 0.18); }
}
.hub .flash { margin: 0.8rem 1.6rem 0; width: auto; }
.hub .status-foot { margin: 1.1rem 1.6rem 0; }
.hub .keybox { margin: 0.8rem 1.6rem 0; width: auto; }
@media (max-width: 900px) {
  .hub-shell { grid-template-columns: 1fr; }
  .hub-rail { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hub-rail nav { display: flex; flex-wrap: wrap; }
  .hub-help { margin: 0; }
  .hub-grid { grid-template-columns: 1fr; padding: 1rem; }
  .hub-move { margin: 0.85rem 1rem 0; }
  .hub-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .gold-beat, .hub-move, .hub-step.is-now { animation: none; }
}

.hub-rail {
  background:
    linear-gradient(180deg, rgba(14,12,10,0.72), rgba(14,12,10,0.92)),
    url(/media/ui/mast.jpg) center / cover no-repeat;
}
.hub-rail nav a, .hub-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hub-rail .si {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border: 1px solid rgba(203, 180, 138, 0.28);
  color: #cbb48a;
  background: rgba(14,12,10,0.4);
  font-size: 0.72rem;
}
body.hub.is-collapsed .hub-shell { grid-template-columns: 3.6rem 1fr; }
body.hub.is-collapsed .hub-rail .sl, body.hub.is-collapsed .hub-help {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
body.hub.is-collapsed .hub-rail nav a, body.hub.is-collapsed .hub-mark { justify-content: center; }
.hub-files a { display: flex; align-items: center; gap: 0.45rem; }
.dropzone {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  border: 1px dashed rgba(203, 180, 138, 0.45);
  color: #b4a594;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.7rem;
  cursor: pointer;
}
.dropzone.on { border-color: #e4c56a; color: #e4c56a; }
.dropzone input { position: absolute; opacity: 0; width: 0; height: 0; }
.hub-step:not(.is-now) { filter: grayscale(1) contrast(0.92); transition: filter .25s ease; }
.hub-step:not(.is-now):hover { filter: none; }
.key-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.7rem;
}
.key-form p { margin: 0 0.4rem 0 0; color: #cbb48a; }
.key-form input { width: 9rem; height: 2.4rem; }

body.hub {
  height: 100dvh;
  overflow: hidden;
}
.hub-shell {
  height: 100dvh;
  grid-template-columns: 13.5rem minmax(0, 1fr);
}
.hub-main {
  min-height: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.hub-grid { flex: 1 1 48%; min-height: 0; }
.hub-move { flex: 0 0 27%; min-height: 0; display: flex; flex-direction: column; }
.hub-rail-cards { flex: 1; min-height: 0; }
.hub-head { padding: 0.7rem 1.15rem 0.65rem; }
.hub-head h1 { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.hub-grid {
  min-height: 0;
  padding: 0.65rem 1.15rem 0;
  gap: 0.65rem;
}
.hub-card { min-height: 0; display: flex; flex-direction: column; padding: 0.85rem 0.95rem; }
.hub-now h2 { font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.hub-files { flex: 1; min-height: 0; max-height: none; }
.hub-send { margin-top: 0.6rem; padding-top: 0.55rem; }
.dropzone { min-height: 3.2rem; }
.hub-move { margin: 0.55rem 1.15rem 0; padding: 0.7rem 0.85rem; min-height: 0; }
.hub-move header { margin-bottom: 0.45rem; }
.hub-step { flex-basis: 11.5rem; min-height: 6.4rem; padding: 0.7rem 0.75rem 0.75rem; }
.hub .flash { margin: 0.4rem 1.15rem 0; }
.hub .status-foot { margin: 0.45rem 1.15rem 0.55rem; }
.hub-toggle {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(203, 180, 138, 0.4);
  background: rgba(14,12,10,0.35);
  color: #cbb48a;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-self: flex-end;
}
body.hub.is-collapsed .hub-toggle { align-self: center; transform: rotate(180deg); }
.hub-rail {
  padding: 0.85rem 0.75rem 1rem;
  gap: 0.75rem;
}
.hub-rail .si {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid rgba(203, 180, 138, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(228,197,106,0.28), rgba(14,12,10,0.55));
  color: #e4c56a;
}
.hub-rail nav a.on .si, .hub-rail nav a:hover .si {
  border-color: #e4c56a;
  box-shadow: 0 0 0 1px rgba(228,197,106,0.25);
}
body.hub.is-collapsed .hub-shell { grid-template-columns: 4.4rem minmax(0,1fr); }
body.hub.is-collapsed .hub-rail { padding: 0.75rem 0.45rem; align-items: center; }
body.hub.is-collapsed .hub-rail nav a { padding: 0.2rem; border-left: 0; justify-content: center; }
@media (max-width: 900px) {
  body.hub { height: auto; overflow: auto; }
  .hub-shell, .hub-main { height: auto; }
  .hub-main { display: block; }
}

.hub-rail .si {
  border-radius: 4px;
  background: transparent;
  color: #d7cbb8;
  border: 1px solid rgba(203, 180, 138, 0.4);
}
.hub .write,
.hub-up .write,
.status-doc-row .write {
  background: transparent !important;
  color: #e4c56a !important;
  border: 1px solid #cbb48a !important;
}
.hub .write:hover,
.hub-up .write:hover,
.status-doc-row .write:hover {
  background: #cbb48a !important;
  color: #1b1612 !important;
}
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: #cbb48a;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.key-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(14, 12, 10, 0.72);
}
.key-modal[hidden] { display: none; }
.key-modal-card {
  width: min(24rem, calc(100% - 2rem));
  background: #161310;
  border: 1px solid rgba(203, 180, 138, 0.35);
  padding: 1.3rem 1.25rem 1.2rem;
  position: relative;
}
.key-modal-card h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 320;
  margin: 0 0 0.4rem;
  color: #f3eee6;
}
.key-modal-card p { color: #b4a594; font-size: 0.88rem; }
.key-modal-card label { display: block; margin: 0.7rem 0 0.3rem; color: #cbb48a; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.key-modal-card input { width: 100%; }
.key-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: 0;
  color: #cbb48a;
  font-size: 1.4rem;
  cursor: pointer;
}

.hub-now {
  justify-content: center;
}
.hub-now-copy {
  margin: auto 0;
  text-align: left;
  max-width: 100%;
}
.hub-now h2 {
  font-size: clamp(3.4rem, 7vw, 6.2rem) !important;
  line-height: 0.92;
  margin: 0.15rem 0 0.4rem;
  letter-spacing: -0.045em;
}
.hub .write,
.hub-up .write,
.status-doc-row .write,
.key-modal-card .write {
  font-size: 0.58rem !important;
  padding: 0.28rem 0.55rem !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  letter-spacing: 0.08em;
}
.hub-send { margin-top: auto; padding-top: 0.4rem; border-top: 0; }
.status-doc-row { justify-content: flex-end; }
.hub-up .write { justify-self: end; }
