:root {
  --ink: #efe7db;            /* warm cream text on dark */
  --ink-soft: #c9bcab;
  --muted: #9a8d7b;
  --bg: #17120d;             /* espresso */
  --panel: rgba(28, 22, 16, 0.72);
  --panel-solid: #1d1710;
  --line: rgba(214, 197, 170, 0.16);
  --line-strong: rgba(214, 197, 170, 0.28);
  --accent: #d0632f;         /* warm terracotta */
  --accent-2: #e0a05a;       /* brass */
  --accent-soft: rgba(208, 99, 47, 0.16);
  --paper: #f3ead9;          /* cabinet document cream */
  --paper-ink: #2c2417;
  --ok: #6fae7f;
  --danger: #e07a5f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cam-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; }
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.link { background: none; border: none; padding: 0; color: var(--accent-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ============================ THE WORLD ============================ */
.viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #0d0a07;
  perspective: 1600px;
}
.camera {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  /* dolly uses translate+scale (long); mouse parallax uses transform (short) */
  transition: translate 1500ms var(--cam-ease), scale 1500ms var(--cam-ease),
    transform 420ms ease-out, filter 900ms ease;
  will-change: translate, scale, transform;
}
.camera.instant { transition: none; }
.plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
}
.viewport.is-room .plate { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.05) translate(-1.2%, -1%); }
}
/* subtle color grade over the photo */
.plate__tone {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 14, 8, 0.28), rgba(12, 9, 6, 0.10) 40%, rgba(12, 9, 6, 0.42)),
    radial-gradient(120% 90% at 60% 40%, rgba(224, 160, 90, 0.10), rgba(0,0,0,0) 55%);
  mix-blend-mode: multiply;
}
.viewport.moving .camera { filter: blur(3px) brightness(0.9); }
.viewport.is-auth .plate { filter: brightness(0.5) blur(7px) saturate(0.9); transform: scale(1.06); }

/* foreground depth vignette that shifts with the mouse */
.depth {
  position: absolute; inset: -6%; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 100% at 50% 46%, rgba(0,0,0,0) 46%, rgba(9, 6, 4, 0.72) 100%);
  transform: translate(var(--dx, 0), var(--dy, 0));
  transition: transform 400ms ease-out;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.55);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; z-index: 2; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%{transform:translate(0,0)}20%{transform:translate(-6%,3%)}40%{transform:translate(4%,-5%)}60%{transform:translate(-3%,6%)}80%{transform:translate(5%,2%)}100%{transform:translate(0,0)}
}
.dust {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 240, 214, 0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 240, 214, 0.5), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50% 80%, rgba(255, 240, 214, 0.6), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 85% 25%, rgba(255, 240, 214, 0.5), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 35% 70%, rgba(255, 240, 214, 0.4), rgba(0,0,0,0));
  animation: floatdust 24s linear infinite;
}
@keyframes floatdust { from { transform: translateY(0); } to { transform: translateY(-40px); } }

/* ============================ SHARED UI ============================ */
.glass {
  background: linear-gradient(180deg, rgba(38, 30, 22, 0.82), rgba(24, 18, 13, 0.86));
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03); color: var(--ink);
  padding: 10px 16px; border-radius: 11px; font-weight: 600; cursor: pointer;
  text-decoration: none; font-size: 14px; transition: 0.16s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent-2); background: rgba(224,160,90,0.10); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #1a1006; }
.btn--primary:hover { background: #e06f38; border-color: #e06f38; }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: transparent; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; padding: 13px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); text-transform: uppercase; }
.field input, .field select, .jd, .revise__row input, .admin-mint input, .version-select {
  font-family: inherit; font-size: 14px; color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: normal;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px;
  background: rgba(12, 9, 6, 0.5); width: 100%;
}
.field input::placeholder, .jd::placeholder, .revise__row input::placeholder { color: #7d7061; }
.field input:focus, .jd:focus, .field select:focus, .revise__row input:focus, .admin-mint input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select option { background: var(--panel-solid); color: var(--ink); }

/* ============================ LAYERS ============================ */
.layer { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }

/* ---- Auth ---- */
.auth { background: radial-gradient(1200px 600px at 50% 30%, rgba(0,0,0,0), rgba(8,5,3,0.5)); }
.auth-card { width: 100%; max-width: 410px; border-radius: 20px; padding: 34px 30px; }
.wordmark { display: flex; align-items: center; justify-content: center; gap: 10px; }
.wordmark__mark { font-size: 24px; }
.wordmark__name { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0.01em; }
.auth-tagline { text-align: center; color: var(--ink-soft); margin: 12px 0 22px; font-size: 14.5px; line-height: 1.55; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,0.35); border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--line); }
.seg__btn { border: none; background: transparent; padding: 9px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 14px; transition: 0.15s; }
.seg__btn.is-active { background: rgba(224,160,90,0.14); color: var(--ink); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }
.auth-legal { text-align: center; margin: 12px 0 0; font-size: 12px; }
.auth-legal a { color: var(--muted); text-decoration: none; }
.auth-legal a:hover { color: var(--ink-soft); text-decoration: underline; }
.google-signin { margin-bottom: 4px; }
#google-btn { display: flex; justify-content: center; min-height: 40px; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 6px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-error { background: rgba(224,122,95,0.14); color: #f0b3a3; border: 1px solid rgba(224,122,95,0.4); padding: 9px 12px; border-radius: 9px; font-size: 13px; margin: 0; font-weight: 500; }

/* ---- Room (landing) ---- */
.room { justify-content: center; gap: 0; text-shadow: 0 2px 30px rgba(0,0,0,0.6); opacity: 0; transition: opacity 700ms ease; }
.room.is-in { opacity: 1; }
.room__kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.42em; font-size: 12px; color: var(--accent-2); margin-left: 0.42em; }
.room__title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 7vw, 82px); line-height: 1.02; margin: 10px 0 40px; letter-spacing: -0.01em; }
.room__choices { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.choice {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  width: 320px; max-width: 88vw; padding: 18px 20px; border-radius: 15px;
  background: linear-gradient(180deg, rgba(36,28,20,0.6), rgba(20,15,10,0.66));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); transition: transform 0.35s var(--cam-ease), border-color 0.3s, background 0.3s;
}
.choice:hover { transform: translateY(-4px); border-color: var(--accent-2); background: linear-gradient(180deg, rgba(48,36,25,0.7), rgba(26,19,12,0.72)); }
.choice__idx { font-family: var(--mono); font-size: 13px; color: var(--accent-2); opacity: 0.8; }
.choice__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.choice__label { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.choice__desc { font-size: 12.5px; color: var(--muted); }
.choice__arrow { font-size: 20px; color: var(--accent-2); transition: transform 0.3s; }
.choice:hover .choice__arrow { transform: translateX(5px); }
.room__hint { position: absolute; bottom: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }
.room__hint::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--muted); vertical-align: middle; margin-right: 10px; opacity: 0.6; }

/* ============================ HUD ============================ */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px; padding: 14px 22px;
  background: linear-gradient(180deg, rgba(10,7,4,0.6), rgba(10,7,4,0));
}
.hud__brand { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 17px; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hud__brand .wordmark__mark { font-size: 18px; }
.hud__nav { display: flex; gap: 4px; margin-left: 6px; }
.hud__link { border: none; background: transparent; padding: 7px 13px; border-radius: 9px; font-weight: 600; color: var(--ink-soft); cursor: pointer; font-size: 13.5px; transition: 0.15s; }
.hud__link:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.hud__link.is-active { background: var(--accent-soft); color: var(--accent-2); }
.hud__link--muted { color: var(--muted); }
.hud__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hud__email { color: var(--ink-soft); font-size: 12.5px; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* ============================ STATIONS ============================ */
.station { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 74px 24px 24px; }
.frame { width: 100%; opacity: 0; will-change: transform, opacity; }
.station.is-in .frame { opacity: 1; transform: none; }

/* --- The screen (Generate) --- */
.screen {
  max-width: 1200px; max-height: calc(100vh - 96px);
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,15,11,0.9), rgba(14,10,7,0.94));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 90px rgba(0,0,0,0.6), 0 0 90px rgba(224,160,90,0.10);
  transform: scale(0.72) translateY(24px);
  transition: opacity 0.55s ease, transform 0.9s var(--cam-ease);
}
.screen__scroll { max-height: calc(100vh - 96px); overflow-y: auto; padding: 26px; }

/* --- The document (History) --- */
.paper {
  max-width: 1040px; max-height: calc(100vh - 110px);
  border-radius: 6px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 2px 0 rgba(0,0,0,0.3);
  transform: scale(0.5) translateY(90px) rotate(-2.5deg);
  transform-origin: 15% 80%;
  transition: opacity 0.5s ease, transform 0.95s var(--cam-ease);
  position: relative;
}
.paper::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 6px 0 0 6px;
}
.paper__scroll { max-height: calc(100vh - 110px); overflow-y: auto; padding: 30px 34px; }
.paper__head { border-bottom: 1px solid rgba(44,36,23,0.16); padding-bottom: 14px; margin-bottom: 18px; }
.paper__title { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #241c11; }
.paper__coltitle { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 4px; color: #2c2417; }

/* ============================ PANELS (inside screen) ============================ */
.layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.panel { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.panel + .panel { margin-top: 14px; }
.panel__eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.24em; font-size: 10.5px; color: var(--accent-2); }
.panel__title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 4px; }
.panel__subtitle { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.subhead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 8px; }
.composer { position: sticky; top: 0; }

.dropzone { border: 1.5px dashed var(--line-strong); border-radius: 11px; background: rgba(0,0,0,0.25); padding: 18px; text-align: center; cursor: pointer; transition: 0.16s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent-2); background: rgba(224,160,90,0.08); }
.dropzone__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-soft); }
.dropzone__icon { font-size: 24px; }
.dropzone.has-file { border-style: solid; border-color: rgba(111,174,127,0.6); background: rgba(111,174,127,0.08); }
.field--select { margin-top: 12px; }
.jd { resize: vertical; line-height: 1.5; }
.jd--small { margin-top: 8px; }
.advanced { margin: 14px 0; }
.advanced summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
#generate-btn { margin-top: 8px; }
#generate-hint { margin-top: 10px; }

.empty { text-align: center; padding: 54px 30px; }
.empty__icon { font-size: 38px; margin-bottom: 8px; }
.empty h3 { font-family: var(--serif); font-weight: 600; margin-bottom: 6px; }
.result__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result__company { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-2); }
.result__role { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 2px 0; }
.result__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.version-select { width: auto; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.preview { padding: 0; overflow: hidden; background: #0b0805; }
#pdf-frame { width: 100%; height: 620px; border: 0; display: block; background: #0b0805; }
.change-summary { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.change-summary ul { margin: 0; padding-left: 18px; }
.change-summary li { margin: 4px 0; }
.change-summary strong { color: var(--ink); }
.revise__row { display: flex; gap: 8px; margin-top: 10px; }
.revise__row input { flex: 1; }

/* ============================ HISTORY LISTS (on paper) ============================ */
.history-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 760px) { .history-grid { grid-template-columns: 1fr; } }
.list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(44,36,23,0.16); border-radius: 9px; padding: 12px 14px; cursor: pointer; transition: 0.12s; background: rgba(255,255,255,0.4); }
.item:hover { border-color: rgba(208,99,47,0.5); background: #fff; box-shadow: 0 4px 14px rgba(44,36,23,0.08); }
.item__main { min-width: 0; }
.item__title { font-weight: 700; color: #241c11; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__sub { color: #7a6c53; font-size: 12.5px; margin-top: 2px; }
.item__actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.item .btn { color: #3a2f1d; border-color: rgba(44,36,23,0.25); background: rgba(255,255,255,0.6); }
.item .btn:hover { border-color: var(--accent); background: #fff; }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--accent); background: rgba(208,99,47,0.12); padding: 2px 7px; border-radius: 20px; margin-left: 6px; }
.icon-btn { border: none; background: transparent; cursor: pointer; color: #9a8a6f; font-size: 15px; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: rgba(224,122,95,0.14); color: var(--danger); }
.list-empty { color: #8a7c63; font-size: 13.5px; padding: 18px 4px; text-align: center; }

/* ============================ MODAL / OVERLAY / TOAST ============================ */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6,4,3,0.6); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 640px; border-radius: 16px; padding: 26px; max-height: 84vh; overflow-y: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.modal__close:hover { color: var(--ink); }
.admin-mint { display: flex; gap: 8px; margin: 16px 0 18px; }
.admin-mint input[type="number"] { width: 84px; }
.codes { display: flex; flex-direction: column; gap: 6px; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; }
.code-mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.code-status { font-size: 12px; }
.code-status.used { color: var(--muted); }
.code-status.open { color: var(--ok); font-weight: 600; }

.overlay { position: fixed; inset: 0; background: rgba(8,5,3,0.66); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 150; }
.overlay__box { border-radius: 16px; padding: 30px 42px; text-align: center; max-width: 360px; }
.reel { display: flex; gap: 7px; justify-content: center; margin-bottom: 16px; }
.reel span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); animation: reel 1s ease-in-out infinite; }
.reel span:nth-child(2){ animation-delay: 0.15s; } .reel span:nth-child(3){ animation-delay: 0.3s; }
@keyframes reel { 0%,100%{ transform: translateY(0); opacity: 0.4; } 50%{ transform: translateY(-8px); opacity: 1; } }
#overlay-text { font-family: var(--serif); font-size: 17px; }
#stop-gen { margin-top: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #241c11; color: var(--ink); padding: 11px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 500; z-index: 200; box-shadow: var(--shadow); border: 1px solid var(--line-strong); max-width: 90vw; }
.toast.err { background: #3a1f18; border-color: rgba(224,122,95,0.5); color: #f0c3b8; }

/* ============================ SUBSCRIPTION ============================ */
.plan-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong);
  color: var(--ink-soft); padding: 5px 11px; border-radius: 20px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; transition: 0.15s;
}
.plan-chip:hover { border-color: var(--accent-2); color: var(--ink); }
.plan-chip.is-low { border-color: var(--accent); color: var(--ink); }
.plan-chip__meter { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14); overflow: hidden; }
.plan-chip__meter span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 3px; transition: width 0.4s ease; }
.plan-chip.is-unlimited .plan-chip__meter { display: none; }

.plan-badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-2); }

.meters { display: flex; flex-direction: column; gap: 15px; margin: 20px 0; }
.meter__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--ink-soft); }
.meter__top b { color: var(--ink); font-weight: 600; }
.meter__bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.1); overflow: hidden; }
.meter__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 5px; transition: width 0.5s ease; }
.membership-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.quota-line { margin-top: 8px; }
.quota-line.is-low { color: var(--accent-2); font-weight: 600; }

.limit-banner { margin-top: 12px; padding: 16px; border: 1px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, rgba(208,99,47,0.14), rgba(208,99,47,0.05)); text-align: center; }
.limit-banner__title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.limit-banner .btn { margin-top: 12px; }
.limit-banner .link { display: inline-block; margin-top: 10px; }

.mint-grant { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin: -6px 0 16px; cursor: pointer; }
.mint-grant input { width: auto; }

.redeem-block { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.redeem-row { display: flex; gap: 8px; margin-top: 8px; }
.redeem-row input { flex: 1; }
#redeem-msg { margin: 8px 0 0; }
#redeem-msg.ok { color: var(--ok); }
#redeem-msg.err { color: var(--danger); }

/* ============================ RESPONSIVE / MOTION ============================ */
@media (max-width: 640px) {
  .room__choices { flex-direction: column; }
  .hud__nav { display: none; }
  .screen__scroll, .paper__scroll { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .camera, .frame, .choice { transition-duration: 0.2s !important; }
  .viewport.is-room .plate, .grain, .dust, .reel span { animation: none !important; }
  .depth { transition: none; }
}
