/* ============================================================
   Elevatr
   Visual language revived from Elevatr (2013): graph-paper
   headers, full-bleed color band accordions, geometric sans,
   thin outlined buttons, ">" bullet markers.
   ============================================================ */

:root {
  --cyan:   #1FB6D5;
  --cyan-d: #17A2BE;
  --green:  #2FC974;
  --green-d:#28B366;
  --teal:   #1B8578;
  --teal-d: #157266;
  --gold:   #F0B01E;
  --gold-d: #DDA114;
  --purple: #7E57A2;
  --purple-d:#6E4B8F;
  --orange: #E05A21;
  --orange-d:#C94E1B;

  --ink:    #16232E;
  --ink-2:  #24384A;
  --text:   #232B31;
  --muted:  #8A959C;
  --faint:  #B9C2C8;
  --line:   #E4EAED;
  --grid:   #EDF2F4;
  --paper:  #FFFFFF;
  --wash:   #F7FAFB;
  --danger: #D64524;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(22,35,46,.06), 0 8px 24px rgba(22,35,46,.07);
  --maxw: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--wash);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: inherit;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.app { min-height: 100dvh; }

#view {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

/* Graph paper — the Elevatr signature */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand svg { color: var(--cyan); }

.row { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons (thin-outline Elevatr style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .05s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn-outline {
  border-color: #D9DFE3;
  color: var(--muted);
  background: var(--paper);
}
.btn-outline:hover { color: var(--ink); border-color: var(--faint); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-2); }

.btn-ghost-white {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

.btn-ai {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}
.btn-ai:hover { background: var(--ink); color: #fff; }
.btn-ai:disabled { opacity: .45; pointer-events: none; }

.btn-danger-link {
  background: none;
  border: none;
  color: var(--danger);
  font-weight: 600;
  padding: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid #D9DFE3;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}
.icon-btn:hover { color: var(--ink); }

/* ---------- Freshness pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill-fresh { background: #E7F8EF; color: #1F9D58; }
.pill-aging { background: #FCF3DC; color: #B57F0A; }
.pill-stale { background: #FBE7DE; color: #C64A1C; }

/* ---------- Home ---------- */
.rainbow { display: flex; height: 5px; }
.rainbow i { flex: 1; }
.s-cyan{background:var(--cyan)} .s-green{background:var(--green)} .s-teal{background:var(--teal)}
.s-gold{background:var(--gold)} .s-purple{background:var(--purple)} .s-orange{background:var(--orange)}

.page-head { padding: 26px 20px 16px; }
.page-head h1 {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.page-head .meta { margin-top: 4px; }

.attention {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: #FFF6EC;
  border-top: 1px solid #F5DDC3;
  border-bottom: 1px solid #F5DDC3;
  border-left: 5px solid var(--gold);
  color: #A5561E;
  font-size: 0.92rem;
  font-weight: 600;
}
.attention svg { flex: none; }

.idea-list { background: var(--paper-bg, #fff); padding-bottom: 24px; }

.idea-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 17px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background .12s ease;
}
.idea-row:first-child { border-top: 1px solid var(--line); }
.idea-row:active { background: #F4F9FA; }
@media (hover: hover) { .idea-row:hover { background: #F8FBFC; } }

.ir-main { flex: 1; min-width: 0; display: block; }
.ir-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.idea-row h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.ir-main .meta { display: block; margin-top: 5px; }
.chev {
  flex: none;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 600;
  color: #B9C6CC;
}

.segs { display: flex; gap: 5px; margin-top: 12px; }
.seg {
  height: 6px;
  flex: 1;
  max-width: 44px;
  border-radius: 3px;
  opacity: .16;
}
.seg.on { opacity: 1; }

.meta { color: var(--muted); font-size: 0.88rem; }

.empty {
  padding: 64px 32px;
  text-align: center;
  color: var(--muted);
}
.empty .illus { margin-bottom: 18px; }
.empty .illus svg { width: min(230px, 68%); height: auto; }
.empty h2 { color: var(--ink); font-weight: 800; margin-bottom: 8px; }

/* ---------- Editor head ---------- */
.editor-head { padding: 32px 20px 22px; }

.title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  padding: 0;
  outline: none;
}
.title-input::placeholder { color: var(--faint); }

.editor-head .meta { margin-top: 8px; }
.editor-head .status-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-top: 14px;
}

.ai-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ai-row .btn { flex: none; }

/* ---------- Section bands ---------- */
.bands { display: flex; flex-direction: column; }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 19px 20px;
  border: none;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}
.band .plus {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  opacity: .95;
}
.c-cyan   { background: var(--cyan); }   .c-cyan:active,  .c-cyan.open   { background: var(--cyan-d); }
.c-green  { background: var(--green); }  .c-green:active, .c-green.open  { background: var(--green-d); }
.c-teal   { background: var(--teal); }   .c-teal:active,  .c-teal.open   { background: var(--teal-d); }
.c-gold   { background: var(--gold); }   .c-gold:active,  .c-gold.open   { background: var(--gold-d); }
.c-purple { background: var(--purple); } .c-purple:active,.c-purple.open { background: var(--purple-d); }
.c-orange { background: var(--orange); } .c-orange:active,.c-orange.open { background: var(--orange-d); }

.t-cyan{color:var(--cyan)} .t-green{color:var(--green)} .t-teal{color:var(--teal)}
.t-gold{color:var(--gold)} .t-purple{color:var(--purple)} .t-orange{color:var(--orange)}

.sec-body {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.sub {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--line);
}
.sub:last-child { border-bottom: none; }

.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sub-label {
  font-style: italic;
  font-weight: 300;
  font-size: 1.06rem;
  color: var(--faint);
}
.pencil {
  border: none;
  background: none;
  color: #C7CFD4;
  padding: 6px;
  border-radius: 4px;
}
.pencil:hover { color: var(--ink); background: var(--wash); }

.bullets { margin-top: 10px; display: grid; gap: 12px; }
.bullet {
  display: flex;
  gap: 10px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}
.bullet .mark {
  flex: none;
  font-weight: 700;
  transform: translateY(-1px);
}
.bullet.ghost { color: var(--faint); }

.sub-edit { margin-top: 10px; }
.sub-edit textarea {
  width: 100%;
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  resize: vertical;
  line-height: 1.5;
  outline: none;
}
.sub-edit textarea:focus { border-color: var(--cyan); background: #fff; }
.sub-edit .hint { font-size: .82rem; color: var(--faint); margin-top: 6px; }
.sub-edit .row { margin-top: 10px; justify-content: flex-end; }

/* ---------- Reviews history ---------- */
.reviews { padding: 22px 20px 8px; }
.reviews h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}
.review-item:hover { border-color: var(--faint); }
.review-item .name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.review-item .meta { font-size: .82rem; }
.score-chip {
  flex: none;
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.editor-foot { text-align: center; padding: 16px 0 8px; }

/* ---------- Sheets & modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,35,46,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}
@media (min-width: 560px) {
  .overlay { align-items: center; padding: 24px; }
}

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 94dvh;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise .18s ease;
}
@media (min-width: 560px) { .sheet { border-radius: 12px; } }
@keyframes rise { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  color: #fff;
}
.sheet-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
}
.sheet-head.plain { color: var(--ink); border-bottom: 1px solid var(--line); }

.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-note {
  padding: 22px 20px;
  color: var(--muted);
  font-size: .98rem;
  border-bottom: 1px solid var(--line);
}

.check-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 20px;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
}
.check-circle {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background-color .1s ease;
}
.check-circle.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.sheet-section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-section:last-child { border-bottom: none; }
.sheet-section h4 { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sheet-section .list { display: grid; gap: 8px; }
.sheet-section .list .bullet { font-size: .97rem; }

.share-preview {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  line-height: 1.5;
  resize: vertical;
}

/* AI fill preview */
.fill-group { border-bottom: 1px solid var(--line); }
.fill-group:last-child { border-bottom: none; }
.fill-sec-label {
  padding: 10px 20px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.fill-sub { padding: 14px 20px; display: flex; gap: 12px; align-items: flex-start; }
.fill-sub + .fill-sub { border-top: 1px dashed var(--line); }
.fill-sub input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
  flex: none;
}
.fill-sub .body { flex: 1; min-width: 0; }
.fill-sub .sub-label { display: block; margin-bottom: 6px; }

/* Stress test / review result */
.result-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}
.big-score {
  flex: none;
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
}
.result-hero .verdict { font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }

.q-item { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.q-item .q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-item .q-name { font-weight: 800; color: var(--ink); font-size: .98rem; }
.q-item .q-question { font-style: italic; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.q-item .q-body { margin-top: 8px; font-size: .96rem; }
.risk {
  flex: none;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 999px;
}
.risk-low { background: #E7F8EF; color: #1F9D58; }
.risk-medium { background: #FCF3DC; color: #B57F0A; }
.risk-high { background: #FBE7DE; color: #C64A1C; }

/* Loading */
.loading {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Settings */
.field { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .help { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field input[type="password"], .field input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  outline: none;
}
.field input:focus { border-color: var(--cyan); background: #fff; }
.field .row { margin-top: 10px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 90;
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* A11y & motion */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.band:focus-visible, .check-band:focus-visible { outline-offset: -3px; outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Share sheet illustration (open notebook + pencil) */
.share-illus {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}
.share-illus svg {
  width: min(240px, 72%);
  height: auto;
}

/* ---------- Action strip (home) ---------- */
.action-strip { display: flex; gap: 10px; margin-top: 14px; }
.action-strip .btn { display: inline-flex; align-items: center; gap: 7px; }
.action-strip .btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Backup nudge ---------- */
.backup-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 13px 20px;
  background: #E9F8FB;
  border-top: 1px solid #CBEDF4;
  border-bottom: 1px solid #CBEDF4;
  border-left: 5px solid var(--cyan);
  color: #0E7A91;
  font-size: 0.92rem;
  font-weight: 600;
}
.backup-nudge svg { flex: none; }

/* ---------- Score chip + sparkline ---------- */
.ir-pills { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.score-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  letter-spacing: .02em;
}
.ir-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ir-bottom .segs { flex: 1; }
.spark { width: 64px; height: 18px; flex: none; color: #9FB0B8; }

/* ---------- Validate sheet ---------- */
.prewrap { white-space: pre-wrap; }
.vcheck { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vcheck:last-child { border-bottom: 0; }
.vstat {
  flex: none;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 2px;
}
.st-confirmed { background: #E7F8EF; color: #1F9D58; }
.st-outdated { background: #FBE7DE; color: #C64A1C; }
.st-questionable { background: #FCF3DC; color: #B57F0A; }
.st-unverified { background: #EEF2F4; color: var(--muted); }
.vclaim { font-weight: 700; color: var(--ink); }
.vnote { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.vsrc { color: var(--cyan); font-weight: 600; text-decoration: none; }

/* ---------- Head-to-head ---------- */
.vs-banner {
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 1rem;
}
.vs-head, .vs-row { display: grid; grid-template-columns: 1fr 44px 44px; gap: 8px; align-items: center; }
.vs-head { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; }
.vs-head span:nth-child(n+2), .vs-score { text-align: center; }
.vs-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.vs-row:last-of-type { border-bottom: 0; }
.vs-dim { font-weight: 700; color: var(--ink); }
.vs-score { font-weight: 800; color: var(--muted); }
.vs-score.win { color: var(--ink); background: #EAF7EF; border-radius: 8px; padding: 4px 0; }

/* ---------- Brain dump / compare picker ---------- */
.dump-ta {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}
.mic-btn.rec { background: #FBE7DE; border-color: var(--orange); color: var(--orange); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .mic-btn.rec { animation: none; } }
.pick-list { border-top: 1px solid var(--line); }
.pick-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700; color: var(--ink);
}
.pick-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.pick-row.on .pick-mark { background: var(--ink); border-color: var(--ink); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 40;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tab.on { color: var(--cyan); }
.tab-spacer { height: 72px; }

/* ---------- Discover ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.disc-list { background: #fff; }
.disc-card {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.tier-pill {
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.dc-cat { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.disc-card h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.dc-pitch { margin-top: 6px; color: var(--ink); }
.dc-hook { margin-top: 7px; color: var(--muted); font-style: italic; font-size: 0.9rem; }
.dc-hook::before { content: "\2726  "; color: var(--gold); font-style: normal; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.dc-cost { color: var(--muted); font-size: 0.88rem; }
.dc-foot .btn { display: inline-flex; align-items: center; gap: 7px; }
.disc-sentinel { padding: 26px 20px 34px; display: flex; flex-direction: column; align-items: center; }

/* ---------- Launch plan ---------- */
.btn-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 4px 20px 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-launch svg { flex: none; }
.btn-launch span:first-of-type { flex: 1; text-align: left; }
.launch-chev { font-size: 1.4rem; line-height: 1; opacity: .75; }
.btn-launch:active { transform: scale(.99); }

.launch-intro { padding: 22px 20px 26px; color: var(--ink); }
.launch-intro p { margin-bottom: 16px; line-height: 1.55; }
.launch-intro .btn-launch { width: 100%; margin: 0; }

.lp-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.lp-bar { flex: 1; height: 8px; border-radius: 999px; background: #E6ECEF; overflow: hidden; }
.lp-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .25s ease; }
#lp-count { flex: none; font-size: 0.82rem; font-weight: 800; color: var(--ink); }

.lband .band.static { cursor: default; }
.lband-body { padding: 16px 20px 20px; background: #fff; color: var(--ink); }
.lband-body p { line-height: 1.5; }
.lp-label {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.lp-label:first-child { margin-top: 0; }
.lp-list { margin: 8px 0 0; padding: 0; list-style: none; }
.lp-list li { padding: 6px 0 6px 18px; position: relative; line-height: 1.45; }
.lp-list li::before { content: "\203A"; position: absolute; left: 2px; color: var(--muted); font-weight: 800; }
.lp-chips { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.lp-chip { background: #F1F5F7; border-radius: 999px; padding: 5px 11px; font-size: 0.8rem; font-weight: 700; color: var(--ink); }

.cost-rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.cost-row:last-child { border-bottom: 0; }
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.num-grid div { background: #F7FAFB; border-radius: var(--radius); padding: 10px 12px; }
.num-grid i { display: block; font-style: normal; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }

.check-list { display: flex; flex-direction: column; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  line-height: 1.4;
}
.check-row:last-child { border-bottom: 0; }
.check-box {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem;
  margin-top: 1px;
}
.check-row.done .check-box { background: var(--green); border-color: var(--green); }
.check-row.done > span:last-child { color: var(--muted); text-decoration: line-through; }
.day-chip {
  flex: none;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--orange);
  background: #FBE7DE;
  border-radius: 6px;
  padding: 2px 6px;
}
.launch-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  background: #FBE7DE; color: var(--orange);
}
.lp-foot { padding: 6px 20px 28px; display: flex; justify-content: center; background: #fff; }
