/* Atrium Content Studio
   Palette only: #0B3A39 #E87D49 #F6F6EE #D0942F #E4C700 #000000 #FFFFFF.
   Grays are black or white at an opacity. Cream is text on dark only, never a background. */

:root {
  --teal: #0B3A39;
  --coral: #E87D49;
  --cream: #F6F6EE;
  --gold: #D0942F;
  --yellow: #E4C700;
  --black: #000000;
  --white: #FFFFFF;

  --frame: radial-gradient(700px 500px at 0% 0%, rgba(232,125,73,.22), rgba(232,125,73,0) 60%),
           linear-gradient(170deg, #0B3A39 0%, #000000 85%);
  --on-dark: #F6F6EE;
  --on-dark-muted: rgba(246,246,238,.70);
  --on-dark-faint: rgba(246,246,238,.25);
  --dark-card: rgba(255,255,255,.04);
  --dark-line: rgba(255,255,255,.10);

  --workspace: linear-gradient(rgba(0,0,0,.045), rgba(0,0,0,.045)), #FFFFFF;
  --card: #FFFFFF;
  --fill: rgba(0,0,0,.07);
  --fill-teal: rgba(11,58,57,.07);
  --hairline: rgba(0,0,0,.06);

  --ink: #000000;
  --ink-teal: #0B3A39;
  --ink-muted: rgba(0,0,0,.65);
  --eyebrow: rgba(11,58,57,.72);

  --r-workspace: 28px;
  --r-card: 22px;
  --r-inner: 16px;
  --r-ctl: 12px;
  --r-pill: 999px;

  --sh-workspace: 0 30px 80px rgba(0,0,0,.45);
  --sh-card: 0 1px 2px rgba(11,58,57,.06), 0 14px 34px rgba(11,58,57,.07);
  --sh-ctl: 0 4px 12px rgba(11,58,57,.08);

  --primary: linear-gradient(120deg, #E87D49, #D0942F);

  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --sidebar: 300px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #000000;
  background-image: var(--frame);
  background-attachment: fixed;
  color: var(--on-dark);
  font: 500 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---------- Shell ---------- */

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 36px 24px 24px;
  border-right: 1px solid var(--dark-line);
}
.brand { padding: 0 12px 36px; text-decoration: none; display: block; }
.brand-logo { display: block; width: 200px; height: auto; margin: -14px 0 -10px -8px; }
.brand-logo-sm { width: 120px; margin: -8px 0 -6px -4px; }
.brand-sub { margin-top: 10px; font: 700 13px/1 var(--body); letter-spacing: .32em; color: var(--on-dark-muted); }

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  display: flex; align-items: center; gap: 16px;
  min-height: 52px; padding: 0 16px;
  border-radius: var(--r-ctl);
  color: var(--on-dark-muted); text-decoration: none;
  font: 600 17px/1 var(--body);
}
.nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-dark-faint); flex: none; }
.nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--on-dark); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"]::before { background: var(--coral); }
.nav .badge { margin-left: auto; }

.badge {
  min-width: 34px; height: 26px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: var(--coral); color: var(--black);
  font: 700 13px/1 var(--body);
}

.me {
  margin-top: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-inner);
  border: 1px solid var(--dark-line); background: var(--dark-card);
  width: 100%; text-align: left; cursor: pointer;
}
.me-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: var(--on-dark); font: 600 17px/1 var(--display);
  border: 1px solid var(--dark-line);
}
.me-name { font: 600 17px/1.2 var(--display); color: var(--on-dark); }
.me-role { font-size: 13px; color: var(--on-dark-muted); }

.main { min-width: 0; padding: 20px 20px 20px 0; }
.main.is-dark { padding: 36px 56px; }

.workspace {
  min-height: calc(100vh - 40px);
  background: var(--workspace);
  border-radius: var(--r-workspace);
  box-shadow: var(--sh-workspace);
  color: var(--ink);
  padding: 44px 42px 56px;
}

/* Mobile bar */
.topbar { display: none; }

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 40;
    background: #000; background-image: var(--frame);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .shell.nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 20;
    padding: 12px 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-line);
  }
  .menu-btn {
    width: 44px; height: 44px; border-radius: var(--r-ctl);
    border: 1px solid var(--dark-line); background: var(--dark-card); color: var(--on-dark);
    display: grid; place-items: center; cursor: pointer;
  }
  .main, .main.is-dark { padding: 12px 0 0; }
  .main.is-dark { padding: 20px 16px; }
  .workspace { border-radius: 22px 22px 0 0; padding: 28px 16px 48px; min-height: calc(100vh - 80px); }
}

/* ---------- Type ---------- */

.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 12px; }
.title { font: 600 44px/1.08 var(--display); letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.subtitle { margin: 12px 0 0; font-size: 15px; color: var(--ink-muted); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 320px; }

.is-dark .eyebrow { color: var(--on-dark-muted); }
.is-dark .title { font-size: 56px; color: var(--on-dark); }
.is-dark .subtitle { color: var(--on-dark-muted); }

h2.card-title { font: 600 22px/1.2 var(--display); margin: 0 0 4px; }
.card-sub { margin: 0 0 18px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.is-dark .muted { color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .title { font-size: 32px; }
  .is-dark .title { font-size: 38px; }
}

/* ---------- Cards ---------- */

.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 28px; }
.dark-card { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--r-card); padding: 28px; color: var(--on-dark); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-teal { background: var(--teal); }
.dot-coral { background: var(--coral); }
.dot-gold { background: var(--gold); }
.dot-yellow { background: var(--yellow); }
.dot-black { background: var(--black); }
.dot-outline { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--teal); }
.is-dark .dot-teal { background: var(--on-dark); }
.is-dark .dot-black { background: var(--on-dark); }

/* ---------- Controls ---------- */

.btn {
  min-height: 44px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--black); }
.btn-teal { background: var(--teal); color: var(--on-dark); }
.btn-soft { background: var(--fill-teal); color: var(--ink-teal); }
.btn-ghost { background: transparent; color: var(--ink-teal); box-shadow: inset 0 0 0 1.5px rgba(11,58,57,.25); }
.btn-light { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.is-dark .btn-ghost, .auth .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-faint); }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font: 700 13px/1.2 var(--body); color: var(--ink-muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border-radius: var(--r-ctl); border: 0; background: var(--fill); color: var(--ink);
}
textarea.input { min-height: 96px; resize: vertical; }
.auth .input { background: rgba(255,255,255,.08); color: var(--on-dark); }
.auth .input::placeholder { color: var(--on-dark-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fill); color: var(--ink); font: 600 15px/1 var(--body);
}
.chip[aria-pressed="true"].chip-coral { background: var(--coral); color: var(--black); }
.chip[aria-pressed="true"].chip-teal { background: var(--teal); color: var(--on-dark); }
.chip[disabled] { cursor: default; }

.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--sh-ctl); }
.seg button { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-teal); font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--teal); color: var(--on-dark); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: var(--r-pill); font: 700 12px/1 var(--body); background: var(--fill); color: var(--ink); white-space: nowrap; }
.pill-teal { background: var(--teal); color: var(--on-dark); }
.pill-coral { background: var(--coral); color: var(--black); }
.pill-yellow { background: var(--yellow); color: var(--black); }

/* ---------- Rows ---------- */

.rows { display: grid; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
.row:last-child { border-bottom: 0; }
.row-label { font: 600 17px/1.3 var(--display); }
.row-help { font-size: 14px; color: var(--ink-muted); }
.row-value {
  min-height: 48px; padding: 0 18px; border-radius: var(--r-inner);
  display: inline-flex; align-items: center; background: var(--fill); font: 600 17px/1 var(--display);
}

/* ---------- Settings layout ---------- */

.settings { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.subnav { padding: 14px; display: grid; gap: 4px; }
.subnav a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-inner); text-decoration: none; color: var(--ink-teal); font-weight: 600; font-size: 16px; }
.subnav a[aria-current="page"] { background: var(--teal); color: var(--on-dark); }
.subnav .later { margin-left: auto; font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.subnav a[aria-current="page"] .later { color: var(--on-dark-muted); }
@media (max-width: 1000px) {
  .settings { grid-template-columns: 1fr; }
  .subnav { display: flex; overflow-x: auto; padding: 8px; }
  .subnav a { white-space: nowrap; }
}

/* ---------- Lists, tables ---------- */

.list-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1 1 200px; min-width: 0; }
.list-item strong { font: 600 16px/1.3 var(--display); display: block; }

.empty { padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--ink-muted); }
.is-dark .empty { color: var(--on-dark-muted); }

.notice { padding: 16px 18px; border-radius: var(--r-inner); background: var(--fill-teal); color: var(--ink); }
.notice-error { background: rgba(232,125,73,.16); }

.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.inline-form .field { margin: 0; }

/* ---------- Home (Direction A) ---------- */

.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.ask {
  flex: 0 1 580px; display: flex; align-items: center; gap: 12px;
  min-height: 72px; padding: 0 12px 0 26px; border-radius: var(--r-pill);
  background: var(--dark-card); border: 1px solid var(--dark-line);
}
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--on-dark); font-size: 17px; min-height: 48px; }
.ask input::placeholder { color: var(--on-dark-muted); }
.ask button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cream); color: var(--black); cursor: pointer; font-size: 20px; }

.review-card { background: var(--primary); color: var(--black); border-radius: var(--r-card); padding: 34px 38px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.review-card .eyebrow { color: rgba(0,0,0,.75); }
.big-num { font: 600 96px/0.9 var(--display); letter-spacing: -0.03em; }
.home-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 1100px) { .home-cards { grid-template-columns: 1fr; } }
.section-title { font: 600 30px/1.2 var(--display); margin: 52px 0 20px; color: var(--on-dark); }

/* ---------- Auth ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); }
.auth-card .brand { padding: 0 0 36px; }
.auth h1 { font: 600 34px/1.15 var(--display); margin: 0 0 8px; color: var(--on-dark); }
.auth p { color: var(--on-dark-muted); margin: 0 0 24px; }
.auth .field label { color: var(--on-dark-muted); }
.auth .actions { display: grid; gap: 12px; margin-top: 8px; }
.auth .link-btn { background: none; border: 0; color: var(--on-dark-muted); text-decoration: underline; cursor: pointer; min-height: 44px; }
.qr { background: var(--white); border-radius: var(--r-inner); padding: 16px; width: 220px; margin: 0 0 16px; }
.qr img { width: 100%; display: block; }
.secret { font: 600 14px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; color: var(--on-dark); background: rgba(255,255,255,.06); padding: 10px 12px; border-radius: var(--r-ctl); margin-bottom: 18px; }
.auth .notice { background: rgba(255,255,255,.06); color: var(--on-dark); margin-bottom: 18px; }
.auth .notice-error { background: rgba(232,125,73,.22); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 14px 20px; border-radius: var(--r-inner);
  background: var(--black); color: var(--on-dark); box-shadow: var(--sh-workspace);
}
.toast.is-error { background: var(--coral); color: var(--black); }

/* ---------- Library ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.lib-search { flex: 1 1 260px; max-width: 400px; background: var(--white); box-shadow: var(--sh-ctl); }
.filter {
  min-height: 44px; padding: 0 34px 0 18px; border-radius: var(--r-pill); border: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230B3A39'/%3E%3C/svg%3E") no-repeat right 14px center;
  box-shadow: var(--sh-ctl); color: var(--ink-teal); font-weight: 700; appearance: none; cursor: pointer; max-width: 100%;
}
.filter.is-on { background-color: var(--teal); color: var(--on-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23F6F6EE'/%3E%3C/svg%3E"); }

.lib-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 22px 26px; }
.lib-banner .eyebrow { margin-bottom: 6px; }
.lib-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lib-card { text-align: left; padding: 0; border: 0; cursor: pointer; background: var(--card); border-radius: var(--r-inner); box-shadow: var(--sh-card); overflow: hidden; color: var(--ink); }
.lib-card.is-selected { box-shadow: 0 0 0 3px var(--coral), var(--sh-card); }
.lib-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--teal); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--on-dark-faint); font-size: 34px; }
.thumb-tag { position: absolute; left: 12px; top: 12px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(0,0,0,.55); color: var(--white); font: 700 12px/1 var(--body); }
.pick { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; accent-color: var(--coral); }
.lib-meta { padding: 14px 16px 16px; }
.lib-meta strong { display: block; font: 600 16px/1.3 var(--display); margin-bottom: 6px; overflow-wrap: anywhere; }
.lib-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.lib-pillar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-teal); font-weight: 600; }
.lib-detail { position: sticky; top: 20px; }
.detail-img { width: 100%; border-radius: var(--r-inner); margin-bottom: 16px; display: block; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.kv > span:last-child { text-align: right; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--r-inner); background: var(--white); box-shadow: var(--sh-card); }
@media (max-width: 1100px) { .lib-layout { grid-template-columns: 1fr; } .lib-detail { position: static; } }
@media (max-width: 520px) { .lib-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: var(--fill); color: var(--ink); font-weight: 600; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--teal); color: var(--on-dark); }
.opt[disabled] { opacity: .4; cursor: not-allowed; }

dialog.sheet { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 0; border-radius: var(--r-card); padding: 28px; background: var(--card); color: var(--ink); box-shadow: var(--sh-workspace); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); }
@media (max-width: 600px) { dialog.sheet { padding: 20px 16px; } }

/* ---------- Ideas ---------- */

.pchip { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); border: 0; background: var(--white); box-shadow: var(--sh-ctl); color: var(--ink-teal); font-weight: 700; cursor: pointer; }
.pchip[aria-pressed="true"] { background: var(--teal); color: var(--on-dark); }
.pchip[aria-pressed="true"] .dot-teal, .pchip[aria-pressed="true"] .dot-black { background: var(--on-dark); }
.ideas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ideas-side { position: sticky; top: 20px; }
.idea { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-title { font: 600 22px/1.25 var(--display); margin: 0; overflow-wrap: anywhere; }
.idea-why { margin: 0; color: var(--ink-muted); }
.idea-more p, .idea-more ol, .idea-more ul { margin: 6px 0; }
.idea-more { border-top: 1px solid var(--hairline); padding-top: 10px; }
.idea-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); }
.idea-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.link-more { background: none; border: 0; padding: 0; min-height: 44px; color: var(--ink-teal); font-weight: 700; cursor: pointer; text-decoration: underline; }
.bar { height: 8px; border-radius: 99px; background: var(--fill); margin-top: 8px; }
.bar-fill { height: 8px; border-radius: 99px; background: var(--teal); }
.bar-fill.is-coral { background: var(--coral); }
@media (max-width: 1100px) { .ideas-layout { grid-template-columns: 1fr; } .ideas-side { position: static; } }
@media (max-width: 420px) { .ideas-grid { grid-template-columns: 1fr; } }
.voice-rules { white-space: pre-wrap; font: 500 15px/1.6 var(--body); background: var(--fill-teal); border-radius: var(--r-inner); padding: 18px 20px; margin: 10px 0 16px; }
.voice-ex { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
.voice-ex summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 8px; }
.voice-ex p { margin: 10px 0 0; color: var(--ink-muted); }

/* ---------- Review ---------- */

.rv-layout { display: grid; grid-template-columns: 330px minmax(0, 460px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rv-list { display: grid; gap: 10px; }
.rv-list-head { padding: 4px 4px 2px; }
.rv-item { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-inner); background: transparent; cursor: pointer; color: var(--ink); }
.rv-item.is-on { background: var(--white); box-shadow: var(--sh-card); }
.rv-item-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rv-item-text strong { font: 600 16px/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-stage { display: grid; gap: 12px; }
.rv-player { position: relative; border-radius: var(--r-card); overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.rv-video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; border-radius: var(--r-inner); }
.rv-player .rv-video { border-radius: 0; }
.ig-overlay { position: absolute; inset: 0; pointer-events: none; }
.ig-top { position: absolute; left: 0; right: 0; top: 0; height: 13%; background: rgba(232,125,73,.28); }
.ig-side { position: absolute; right: 0; bottom: 16%; width: 15%; height: 38%; background: rgba(232,125,73,.28); }
.ig-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: rgba(232,125,73,.28); }
.rv-timeline { position: relative; height: 28px; border-radius: 99px; background: var(--fill); cursor: crosshair; }
.rv-marks { position: absolute; inset: 0; }
.rv-mark { position: absolute; top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--coral); border: 2px solid var(--white); }
.rv-mark.is-done { background: var(--teal); }
.rv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--teal); }
.rv-script-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 26px; }
.rv-script { white-space: pre-wrap; font: 500 16px/1.6 var(--body); }
.rv-panel { position: sticky; top: 20px; }
.rv-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rv-tabs { display: flex; overflow-x: auto; margin-bottom: 14px; }
.rv-tabs button { white-space: nowrap; }
.rv-note { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.rv-note.is-done .grow { color: var(--ink-muted); }
.rv-note .grow { flex: 1; }
.rv-ts { border: 0; background: none; color: var(--coral); font: 700 16px/1 var(--display); cursor: pointer; min-width: 44px; min-height: 44px; text-align: left; }
.rv-note-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rv-note-form .input { flex: 1 1 200px; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.rv-actions .btn { min-height: 56px; font-size: 17px; }
.rv-words { line-height: 2.1; }
.rv-word { border: 0; background: transparent; padding: 2px 3px; margin: 0; border-radius: 6px; font: 500 16px/1.4 var(--body); cursor: pointer; color: var(--ink); min-height: 32px; }
.rv-word:hover { background: var(--fill); }
.rv-word.is-cut { text-decoration: line-through; color: rgba(0,0,0,.35); background: rgba(232,125,73,.14); }
.rv-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-cover { padding: 0; border: 0; border-radius: var(--r-ctl); overflow: hidden; cursor: pointer; aspect-ratio: 9 / 16; background: var(--fill); }
.rv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-cover.is-on { box-shadow: 0 0 0 3px var(--coral); }
@media (max-width: 1560px) {
  .rv-layout { grid-template-columns: minmax(280px, 420px) minmax(340px, 1fr); }
  .rv-list { grid-column: 1 / -1; display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; }
  .rv-list-head { display: none; }
  .rv-item { flex: 0 0 260px; background: var(--white); }
  .rv-item.is-on { box-shadow: 0 0 0 3px var(--coral); }
}
@media (max-width: 800px) {
  .rv-layout { grid-template-columns: 1fr; }
  .rv-list { order: 3; }
  .rv-stage { order: 1; }
  .rv-panel { order: 2; }
  .rv-player { margin: 0 -16px; border-radius: 0; }
}

/* ---------- Carousel review ---------- */

.cv-wrap { display: grid; gap: 14px; }
.cv-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.cv-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--fill); cursor: grab; }
.cv-thumb img, .cv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-thumb.is-on { box-shadow: 0 0 0 3px var(--coral); }
.cv-tag { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 99px; background: var(--coral); color: var(--black); font: 700 11px/1 var(--body); }
.cv-no { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 99px; background: rgba(0,0,0,.55); color: var(--white); font: 700 12px/1 var(--body); }
.cv-preview { border-radius: var(--r-card); overflow: hidden; background: var(--fill); aspect-ratio: 4 / 5; }
.cv-preview.is-story { aspect-ratio: 9 / 16; max-width: 420px; }
.cv-preview img, .cv-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-editor { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 22px; }
.cv-grid-wrap { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 22px; }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 360px; }
.cv-cell { aspect-ratio: 4 / 5; background: var(--fill); overflow: hidden; }
.cv-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-cell.is-me { outline: 3px solid var(--coral); outline-offset: -3px; }
.cv-two { grid-template-columns: 1fr 1fr; }
.cv-cover { aspect-ratio: 4 / 5; }
.cv-list li { margin-bottom: 12px; }
.code { font: 500 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl-holder { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-inner); background: var(--fill); }
.tpl-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
@media (max-width: 1000px) { .tpl-layout { grid-template-columns: 1fr; } }

/* ---------- Calendar ---------- */

.cal-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cal-nav { display: flex; gap: 10px; align-items: center; padding-bottom: 6px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--sh-ctl); font-size: 26px; line-height: 1; color: var(--ink-teal); cursor: pointer; }
.travel-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; margin-bottom: 18px; border-radius: var(--r-inner); background: var(--frame); background-color: var(--teal); color: var(--on-dark); font-weight: 600; }
.travel-banner .grow { flex: 1 1 260px; }
.banner-link { color: var(--on-dark); font-weight: 700; }
.cal-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cal-day { padding: 16px; display: grid; gap: 12px; min-height: 420px; align-content: start; }
.cal-day-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-day-head strong { font: 600 22px/1 var(--display); }
.cal-day-head > div > span { font: 600 22px/1 var(--display); }
.day-flag { padding: 8px 12px; border-radius: 10px; background: var(--fill); font-weight: 600; font-size: 14px; }
.day-flag.is-coral { background: var(--coral); color: var(--black); }
.day-flag.is-yellow { background: var(--yellow); color: var(--black); }
.cal-piece { display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--r-inner); box-shadow: var(--sh-card); padding: 0 0 12px; overflow: hidden; }
.cal-piece > :not(.cal-thumb) { margin: 0 12px; }
.cal-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--teal); }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-time { font: 700 12px/1 var(--body); color: var(--ink-muted); margin-top: 10px !important; }
.cal-piece strong { font: 600 16px/1.25 var(--display); }
.cal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.open-slot { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-inner); background: var(--fill); text-align: center; }
.open-slot a { font-weight: 700; color: var(--ink-teal); text-decoration: none; }
@media (max-width: 1200px) { .cal-week { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .cal-day { min-height: 0; } }
.month { padding: 16px; overflow-x: auto; }
.month-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; min-width: 640px; }
.month-dow { font: 700 13px/1 var(--body); color: var(--eyebrow); text-transform: uppercase; letter-spacing: .08em; padding: 6px; }
.month-cell { min-height: 110px; padding: 8px; border-radius: 12px; background: var(--fill); display: grid; gap: 4px; align-content: start; }
.month-cell.is-out { opacity: .45; }
.month-date { font: 600 16px/1 var(--display); }
.month-piece { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cv-grid.big { max-width: 560px; }
.cv-cell.is-planned { outline: 3px solid var(--teal); outline-offset: -3px; opacity: .85; }
.cv-cell-title { display: grid; place-items: center; height: 100%; padding: 8px; font-size: 12px; text-align: center; }

/* ---------- Publishing ---------- */

.pub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pub-side { position: sticky; top: 20px; }
.pub-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px; margin-bottom: 14px; }
.pub-thumb { aspect-ratio: 4 / 5; border-radius: var(--r-ctl); background: var(--teal); overflow: hidden; }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pub-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pub-kw { display: inline-flex; align-items: center; gap: 8px; }
.input-sm { min-height: 44px; width: 150px; padding: 8px 12px; }
.seg-sm button { min-height: 44px; padding: 0 14px; }
.pkg { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; }
.pkg-files { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .pub-layout { grid-template-columns: 1fr; } .pub-side { position: static; } }
@media (max-width: 560px) { .pub-row { grid-template-columns: 1fr; } .pub-thumb { max-width: 200px; } }

/* ---------- Performance ---------- */

.perf-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.perf-hero { background: linear-gradient(130deg, #0B3A39 0%, #000 100%); color: var(--on-dark); border-radius: var(--r-card); padding: 26px 30px; }
.perf-hero .eyebrow { color: var(--on-dark-muted); }
.perf-hero-row { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 17px; line-height: 1.7; }
.perf-stat { display: grid; align-content: start; gap: 6px; }
.stat-num { font: 600 52px/1 var(--display); letter-spacing: -0.02em; }
.stat-sub { font-weight: 700; color: var(--ink-teal); }
.stat-sub.is-coral { color: var(--black); background: rgba(232,125,73,.25); justify-self: start; padding: 2px 10px; border-radius: 99px; }
.perf-mid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 260px; padding-top: 20px; }
.bar-col { flex: 1; display: grid; justify-items: center; gap: 8px; align-content: end; height: 100%; }
.bar-v { width: 100%; max-width: 54px; border-radius: 12px 12px 6px 6px; background: var(--teal); }
.bar-v.is-now { background: var(--primary); }
.perf-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.learn { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-weight: 500; }
.learn-bar { width: 5px; min-height: 26px; border-radius: 3px; flex: none; }
.learn-bar.is-coral { background: var(--coral); } .learn-bar.is-teal { background: var(--teal); } .learn-bar.is-gold { background: var(--gold); }
@media (max-width: 1100px) { .perf-top { grid-template-columns: 1fr 1fr; } .perf-hero { grid-column: 1 / -1; } .perf-mid, .perf-bottom { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .perf-top { grid-template-columns: 1fr; } }
.dm-rule { padding: 18px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 10px; }
.dm-rule .field { margin: 0; }

/* ---------- Home week row ---------- */
.review-card .big-num { font-size: 120px; }
.week-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.wk-card { display: grid; gap: 8px; align-content: start; padding: 14px 14px 18px; border-radius: var(--r-card); background: var(--dark-card); border: 1px solid var(--dark-line); color: var(--on-dark); text-decoration: none; }
.wk-img { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-inner); overflow: hidden; background: var(--teal); }
.wk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-day, .wk-fmt { position: absolute; left: 12px; padding: 6px 12px; border-radius: 99px; font: 700 13px/1 var(--body); }
.wk-day { top: 12px; background: rgba(0,0,0,.55); color: var(--white); }
.wk-fmt { bottom: 12px; background: var(--white); color: var(--black); }
.wk-card strong { font: 600 19px/1.25 var(--display); margin-top: 6px; }
.wk-pillar { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); font-weight: 600; }
.wk-stage { font-weight: 700; color: var(--on-dark); }
.wk-stage.is-coral { color: var(--coral); }
.wk-stage.is-yellow { color: var(--yellow); }
@media (max-width: 1200px) { .week-row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 900px) { .review-card .big-num { font-size: 84px; } }
