@font-face { font-family: Poppins; font-weight: 300; src: url(/static/fonts/Poppins-Light.woff2) format('woff2'), url(/brand/fonts/Poppins-Light.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 400; src: url(/static/fonts/Poppins-Regular.woff2) format('woff2'), url(/brand/fonts/Poppins-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 500; src: url(/static/fonts/Poppins-Medium.woff2) format('woff2'), url(/brand/fonts/Poppins-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(/static/fonts/Poppins-SemiBold.woff2) format('woff2'), url(/brand/fonts/Poppins-SemiBold.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 700; src: url(/static/fonts/Poppins-Bold.woff2) format('woff2'), url(/brand/fonts/Poppins-Bold.ttf) format('truetype'); font-display: swap; }

:root {
  --bg: #F6F5F2;          /* warm white canvas */
  --paper: #FFFFFF;
  --ink: #141414;
  --ink-2: #55524C;
  --ink-3: #8E8A82;
  --line: #E7E4DE;
  --gold: #B5975C;        /* Decision Counsel gold */
  --gold-soft: #F1EADC;
  --charcoal: #1A1A1A;
  --ok: #3F7D58;
  --warn: #B5975C;
  --bad: #B4513F;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 12px 32px -12px rgba(20,20,20,.14);
  --shadow-lift: 0 2px 4px rgba(20,20,20,.05), 0 30px 60px -20px rgba(20,20,20,.25);
  --r: 18px;
  --on-charcoal: #FFFFFF;     /* text on charcoal (buttons, selected tabs) */
  --on-charcoal-2: #BDB8AE;
  --gold-ink: #7A6236;        /* gold text on gold-soft */
  --gold-wash: #FFFDF8;
  --dash: #D6D1C7;            /* dashed drop zones */
  --line-2: #DAD5CB;
  --sep: #C9C4BA;
  --bad-soft: #F6E3DF;
  --sk-a: #ECE9E3; --sk-b: #F6F4F0;
  --scrim: rgba(246,245,242,.7);
  --raised: #FFFFFF;
  --raised-line: #DCD7CD;
  color-scheme: light;
}

/* Dark mode: follows the computer unless the toggle in the top bar picks one (stored per browser). */
:root[data-theme="dark"] {
  --bg: #121110; --paper: #1D1C1A; --ink: #F2EFE9; --ink-2: #C2BCB1; --ink-3: #A29C91; --line: #302D29;
  --gold: #C9AB6E; --gold-soft: #2D271C; --charcoal: #EDE8DE; --ok: #6DB38A; --warn: #C9AB6E; --bad: #E07A66;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.75);
  --on-charcoal: #141414; --on-charcoal-2: #55524C; --gold-ink: #E3C88F; --gold-wash: #221F18; --dash: #48443D;
  --line-2: #3A3732; --sep: #57534B; --bad-soft: #3A221D; --sk-a: #1E1D1B; --sk-b: #2A2825; --scrim: rgba(18,17,16,.7); --raised: #2B2926; --raised-line: #45413B;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #121110; --paper: #1D1C1A; --ink: #F2EFE9; --ink-2: #C2BCB1; --ink-3: #A29C91; --line: #302D29;
  --gold: #C9AB6E; --gold-soft: #2D271C; --charcoal: #EDE8DE; --ok: #6DB38A; --warn: #C9AB6E; --bad: #E07A66;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.75);
  --on-charcoal: #141414; --on-charcoal-2: #55524C; --gold-ink: #E3C88F; --gold-wash: #221F18; --dash: #48443D;
  --line-2: #3A3732; --sep: #57534B; --bad-soft: #3A221D; --sk-a: #1E1D1B; --sk-b: #2A2825; --scrim: rgba(18,17,16,.7); --raised: #2B2926; --raised-line: #45413B;
  color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 Poppins, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--ink-3); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 18px 32px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.wordmark b { color: var(--ink); font-weight: 600; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--charcoal); position: relative; display: inline-block; }
.mark i { position: absolute; left: 7px; right: 7px; height: 2px; background: var(--gold); border-radius: 2px; }
.mark i:first-child { top: 9px; } .mark i:last-child { top: 15px; right: 11px; }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); }
.nav a { padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a.on { background: var(--charcoal); color: var(--on-charcoal); }
.nav em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; }
.who { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(63,125,88,.12); }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.chip.me::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; }

main { padding: 8px 32px 80px; max-width: 1320px; margin: 0 auto; outline: none; }

/* ---------- buttons ---------- */
.pill {
  border: 0; background: var(--charcoal); color: var(--on-charcoal); border-radius: 999px; padding: 13px 26px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px; transition: transform .15s, box-shadow .2s, background .2s;
}
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.pill:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.pill.gold { background: var(--gold); }
.pill.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pill.small { padding: 8px 16px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home: rolodex ---------- */
.hero { text-align: center; padding: 40px 0 0; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1.05; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 14px auto 0; max-width: 520px; color: var(--ink-2); }
.wheel { position: relative; height: 470px; margin-top: 14px; perspective: 1700px; overflow-x: clip; margin-inline: -32px; user-select: none; touch-action: pan-y; cursor: grab; }
.wheel.drag { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 40px; width: 0; height: 0; transform-style: preserve-3d; }
.ed {
  position: absolute; width: 270px; height: 360px; left: -135px; top: 0; border-radius: 24px; background: var(--paper);
  box-shadow: var(--shadow); overflow: hidden; backface-visibility: hidden; transition: box-shadow .3s, opacity .3s, filter .3s;
  display: flex; flex-direction: column;
}
.ed.front { box-shadow: var(--shadow-lift); }
.ed .art { flex: 1; position: relative; overflow: hidden; }
.ed .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed .art.ph { background: radial-gradient(120% 90% at 20% 10%, var(--paper) 0%, var(--acc, var(--gold-soft)) 160%); }
.ed .art.ph::after {
  content: ""; position: absolute; inset: 22px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--acc) 55%, transparent);
}
.ed .art.ph b { position: absolute; left: 24px; bottom: 22px; right: 24px; font-size: 22px; line-height: 1.15; font-weight: 600; color: var(--ink); }
.ed .meta { padding: 14px 18px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ed .meta span { font-size: 14px; font-weight: 500; }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-3); white-space: nowrap; }
.tag.live { background: var(--gold); color: #fff; }
.focus { text-align: center; margin-top: -6px; min-height: 160px; }
.focus h2 { font-size: 28px; font-weight: 600; }
.focus p { margin: 8px auto 20px; max-width: 460px; color: var(--ink-2); }
.wheel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.round svg { width: 16px; height: 16px; }

/* ---------- editor page ---------- */
.ed-head { display: flex; gap: 24px; align-items: center; padding: 26px 0 30px; flex-wrap: wrap; }
.ed-head img { width: 92px; height: 92px; border-radius: 22px; box-shadow: var(--shadow); }
.ed-head h1 { font-size: 34px; font-weight: 600; }
.ed-head .grow { flex: 1; min-width: 240px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--paper); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow); min-width: 120px; }
.stat b { display: block; font-size: 24px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; transition: transform .2s, box-shadow .2s; position: relative; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.new { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 190px;
  background: var(--charcoal); color: var(--on-charcoal); }
.new .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.new h3 { font-size: 20px; font-weight: 600; } .new p { margin: 4px 0 0; color: var(--on-charcoal-2); font-size: 14px; }
.ep h3 { font-size: 17px; font-weight: 600; margin: 10px 0 2px; }
.ep .guest { color: var(--ink-2); font-size: 14px; }
.ep .bar { height: 4px; border-radius: 4px; background: var(--bg); margin-top: 18px; overflow: hidden; }
.ep .bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .6s; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.run::before { background: var(--gold); animation: pulse 1.4s infinite; }
.status.wait { background: var(--gold-soft); color: var(--gold-ink); } .status.wait::before { background: var(--gold); }
.status.done::before { background: var(--ok); } .status.err { color: var(--bad); } .status.err::before { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(181,151,92,.18); } }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-h h2 { font-size: 20px; font-weight: 600; }

/* ---------- intake ---------- */
.steps { display: flex; gap: 8px; margin: 6px 0 26px; flex-wrap: wrap; }
.steps button { border: 0; background: transparent; padding: 8px 14px 8px 8px; border-radius: 999px; display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.steps button i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--paper); box-shadow: var(--shadow); }
.steps button.on { color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.steps button.on i { background: var(--charcoal); color: var(--on-charcoal); }
.steps button.done i { background: var(--gold); color: #fff; }
.intake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.intake.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.drop { display: block; cursor: pointer;
  border: 1.5px dashed var(--dash); border-radius: 22px; background: var(--paper); padding: 44px 24px; text-align: center;
  transition: border-color .2s, background .2s;
}
.drop.over { border-color: var(--gold); background: var(--gold-wash); }
.drop h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.drop p { margin: 0 0 18px; color: var(--ink-2); }
.files { margin-top: 16px; display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--paper); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; }
.file .p { grid-column: 1 / -1; height: 3px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.file .p i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .2s; }
.file small { color: var(--ink-3); }
.or { text-align: center; color: var(--ink-3); margin: 22px 0 12px; font-size: 13px; }
.folders { display: grid; gap: 8px; }
.folder { display: flex; justify-content: space-between; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-align: left; width: 100%; }
.folder.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.people { display: grid; gap: 14px; }
.person { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.shot { width: 84px; height: 84px; border-radius: 18px; background: var(--bg) center/cover; border: 1.5px dashed var(--dash); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); text-align: center; padding: 6px; cursor: pointer; filter: grayscale(1); }
.shot.has { border: 0; color: transparent; }
.role { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.role button { border: 0; background: transparent; border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--ink-2); }
.role button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.x { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; }
.preview { position: sticky; top: 92px; }
.preview .frame { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 16/9; box-shadow: var(--shadow-lift); position: relative; }
.preview .frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.preview .frame.busy img { opacity: .55; }
.preview .frame .spin { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--gold); animation: rot 1s linear infinite; display: none; }
.preview .frame.busy .spin { display: block; }
@keyframes rot { to { transform: rotate(360deg); } }
.preview p { font-size: 13px; color: var(--ink-3); margin: 10px 2px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; flex-wrap: wrap; }
.summary { display: grid; gap: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary span { color: var(--ink-3); }

/* ---------- edit room ---------- */
.room-head { padding: 26px 0 8px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.room-head h1 { font-size: 32px; font-weight: 600; max-width: 820px; }
.room-head .sub { color: var(--ink-2); margin-top: 6px; }
.rail { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 24px 0 28px; }
.rail div { position: relative; padding-top: 18px; font-size: 12px; color: var(--ink-3); }
.rail div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: var(--line); }
.rail div.done { color: var(--ink-2); } .rail div.done::before { background: var(--gold); }
.rail div.now { color: var(--ink); font-weight: 500; }
.rail div.now::before { background: linear-gradient(90deg, var(--gold) 0 50%, var(--line) 50%); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
.rail div.wait::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
@keyframes flow { from { background-position: 100% 0; } to { background-position: 0 0; } }
.room { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.needs { border: 1.5px solid var(--gold); }
.needs + .needs { margin-top: 16px; }
.needs h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.needs .lead { color: var(--ink-2); margin: 0 0 14px; }
.segs { display: grid; gap: 6px; max-height: 300px; overflow: auto; margin-bottom: 14px; }
.seg { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.seg b { font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.ppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ppl div { display: flex; gap: 12px; align-items: center; }
.ppl img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; filter: grayscale(1); }
.ppl small { display: block; color: var(--ink-3); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.shots img { width: 100%; border-radius: 10px; display: block; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.qa ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); } .qa li { margin-bottom: 6px; }
.qa h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.agents { display: grid; gap: 8px; }
.agent { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agent:last-child { border: 0; }
.agent .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.agent.running .ic { background: var(--gold-soft); color: var(--gold); animation: pulse 1.4s infinite; }
.agent.done .ic { background: var(--charcoal); color: var(--gold); }
.agent.error .ic { background: var(--bad-soft); color: var(--bad); }
.agent b { font-weight: 500; font-size: 14px; } .agent p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.feed { max-height: 380px; overflow: auto; font-size: 13px; }
.feed div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.feed time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.side .card + .card { margin-top: 16px; }
.calm { text-align: center; padding: 36px 20px; }
.calm h3 { font-size: 18px; font-weight: 600; } .calm p { color: var(--ink-2); margin: 6px 0 0; }
.empty { text-align: center; color: var(--ink-3); padding: 40px; }

/* ---------- dialog, toast ---------- */
.sheet { border: 0; border-radius: 24px; padding: 28px; width: min(440px, 92vw); box-shadow: var(--shadow-lift); }
.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.sheet h2 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.sheet menu { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 20px 0 0; }
.team { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.team button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; }
.team button.on { border-color: var(--gold); background: var(--gold-soft); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--charcoal); color: var(--on-charcoal); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; pointer-events: none; z-index: 50; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; padding: 14px 16px; } .nav { grid-column: 1 / -1; justify-self: center; order: 3; }
  main { padding: 8px 16px 60px; } .wheel { margin-inline: -16px; }
  .intake, .room { grid-template-columns: 1fr; } .preview { position: static; }
  .rail { grid-template-columns: repeat(3, 1fr); } .qa, .row2 { grid-template-columns: 1fr; }
  .wheel { height: 420px; } .ed { width: 220px; height: 300px; left: -110px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- sign in ---------- */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login-card { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-lift); padding: 44px 40px; width: min(420px, 100%); text-align: center; }
.login-card h1 { font-size: 30px; font-weight: 600; margin: 4px 0 6px; }
.login-card .muted { margin: 0 0 26px; }
.login-card .err { color: var(--bad); font-size: 14px; margin: -10px 0 18px; }
.mark.big { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.mark.big i { left: 12px; right: 12px; height: 3px; } .mark.big i:first-child { top: 17px; } .mark.big i:last-child { top: 27px; right: 20px; }
.pill.google { background: var(--paper); color: var(--ink); border: 1px solid var(--line); width: 100%; justify-content: center; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); }
.tabs a { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.tabs a.on { background: var(--charcoal); color: var(--on-charcoal); }

/* ---------- review (Frame.io-style) ---------- */
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 22px 0 18px; }
.rv-head h1 { font-size: 26px; font-weight: 600; max-width: 760px; }
.vsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.vsel select { font: inherit; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 12px; }
.rv { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.player { position: sticky; top: 84px; }
.screen { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-lift); }
.screen video { width: 100%; height: 100%; display: block; background: #000; }
.screen .wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; background: #111; }
.screen .wait[hidden] { display: none; }
.screen .wait h3 { font-size: 18px; font-weight: 600; margin: 10px 0 4px; } .screen .wait p { color: #aaa; margin: 0; font-size: 14px; }
.spinner { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold); animation: rot 1s linear infinite; }
.tcbig { position: absolute; left: 14px; top: 12px; font: 500 12px/1 ui-monospace, Consolas, monospace; color: #fff; background: rgba(0,0,0,.55); padding: 6px 8px; border-radius: 8px; pointer-events: none; }
.scrub { position: relative; height: 30px; margin-top: 10px; cursor: pointer; touch-action: none; outline: none; }
.scrub .track { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.scrub .track i { position: absolute; left: 0; top: 0; bottom: 0; }
#buf { background: var(--line-2); } #prog { background: var(--charcoal); } #rng { background: rgba(181,151,92,.45); display: none; }
.scrub #head { position: absolute; top: 7px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--charcoal); }
.pins { position: absolute; left: 0; right: 0; top: 0; height: 10px; }
.pin { position: absolute; top: 0; min-width: 9px; height: 9px; margin-left: -4px; border-radius: 5px; border: 2px solid var(--paper); background: var(--gold); padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pin.sent { background: #6FA8C9; } .pin.done { background: var(--ok); }
.controls { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.controls .grow { flex: 1; }
.ic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; font-size: 15px; }
.tc { font: 500 13px/1 ui-monospace, Consolas, monospace; color: var(--ink-2); margin-left: 8px; } .tc b { color: var(--ink); font-weight: 600; }
.vol input { accent-color: var(--gold); width: 90px; }
.keys { font-size: 12px; color: var(--ink-3); margin: 10px 2px 0; } .keys b { font-weight: 600; color: var(--ink-2); }
.notes { display: grid; gap: 12px; }
.composer { padding: 14px; display: grid; gap: 10px; }
.composer .at { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.composer .at b { font-family: ui-monospace, Consolas, monospace; color: var(--ink); }
.composer textarea { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; outline: none; }
.composer textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.crow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.filters { display: flex; gap: 6px; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--ink-2); }
.filters button.on { background: var(--charcoal); color: var(--on-charcoal); border-color: var(--charcoal); }
.nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: calc(100vh - 320px); overflow: auto; }
.note { display: grid; grid-template-columns: 32px 1fr; gap: 10px; background: var(--paper); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 3px solid var(--gold); }
.note.sent { border-left-color: #6FA8C9; } .note.done { border-left-color: var(--ok); opacity: .78; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); color: var(--gold); font-size: 11px; font-weight: 600; }
.av.resolve { background: var(--charcoal); color: var(--on-charcoal); }
.nh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.nh b { font-weight: 600; }
.chip.t { font: 500 11px/1 ui-monospace, Consolas, monospace; padding: 5px 8px; }
.st { font-size: 11px; color: var(--ink-3); margin-left: auto; } .st.sent { color: #3F7FA3; } .st.done { color: var(--ok); }
.note p { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; }
.reply { margin-top: 8px; padding: 8px 10px; background: var(--bg); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.reply.agent { background: var(--gold-soft); }
.reply b { color: var(--ink); font-weight: 600; }
.na { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; }
.plan { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan p { margin: 3px 0 0; color: var(--ink-2); }
.tg { align-self: start; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--bg); }
.tg.story { background: var(--gold-soft); color: var(--gold-ink); } .tg.question { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 1000px) { .rv { grid-template-columns: 1fr; } .player { position: static; } .nlist { max-height: none; } }

/* ---------- breadcrumb ---------- */
.crumb { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); } .crumb a:hover { color: var(--ink); } .crumb span { margin: 0 4px; color: var(--sep); }
.tabs .cnt { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; }
.rv-inbox-head { padding: 14px 0 18px; }

/* ---------- loading ---------- */
.loading { padding-top: 26px; }
.sk { border-radius: 18px; background: linear-gradient(90deg, var(--sk-a) 0%, var(--sk-b) 40%, var(--sk-a) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-hero { height: 150px; max-width: 560px; margin: 30px auto 26px; }
.sk-row { display: flex; gap: 18px; justify-content: center; } .sk-tile { width: 230px; height: 300px; border-radius: 24px; }
.sk-head { height: 120px; margin-bottom: 22px; } .sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; } .sk-card { height: 190px; }
.sk-note { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 22px; }
.dotpulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; animation: pulse 1.2s infinite; vertical-align: middle; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- now working ---------- */
.working { padding: 24px; }
.wk-top { display: flex; gap: 14px; align-items: center; }
.wk-top h3 { font-size: 19px; font-weight: 600; }
.orb { width: 40px; height: 40px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #E9D9B6, var(--gold) 55%, #8A7144); box-shadow: 0 0 0 0 rgba(181,151,92,.45); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(181,151,92,0); transform: scale(1.04); } }
.wk-line { color: var(--ink-2); font-size: 14px; margin: 14px 0 12px; min-height: 20px; }
.wk-bar { height: 6px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.wk-bar i { display: block; height: 100%; border-radius: 6px; background: var(--gold); transition: width .8s ease; }
.wk-bar.indet i { animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.wk-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- intake brief ---------- */
.brief { padding: 18px; } .brief textarea { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; resize: vertical; outline: none; }
.brief textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field em { font-style: normal; color: var(--gold); margin-left: 4px; }

/* ---------- QA timecode links ---------- */
.tclink { font-weight: 600; color: var(--gold-ink); background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; margin-right: 4px; white-space: nowrap; }
.tclink:hover { background: var(--gold); color: #fff; }
.qa-list li { margin-bottom: 8px; }
.screen.flash { box-shadow: 0 0 0 4px var(--gold), var(--shadow-lift); transition: box-shadow .3s; }

.file.queued { opacity: .6; }

/* ---------- clients ---------- */
.logo { --s: 56px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .24); background: var(--paper); box-shadow: var(--shadow);
  display: inline-grid; place-items: center; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.ini { background: color-mix(in srgb, var(--acc, var(--gold)) 16%, var(--paper)); color: color-mix(in srgb, var(--acc, var(--gold)) 70%, var(--ink));
  font-weight: 600; font-size: calc(var(--s) * .34); letter-spacing: .02em; }
.clients .client { display: flex; flex-direction: column; align-items: flex-start; min-height: 190px; }
.cl-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.client h3 { font-size: 20px; font-weight: 600; margin: 16px 0 2px; }
.cl-meta { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); flex: 1; }
.brandline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 13px; }
.swatches { display: inline-flex; gap: 4px; } .swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); }
.eds { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.edc { display: flex; flex-direction: column; align-items: flex-start; min-height: 200px; }
.edc .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.edc .ic svg { width: 22px; height: 22px; }
.edc h3 { font-size: 16px; font-weight: 600; margin: 14px 0 4px; }
.edc p { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); flex: 1; }
.edc.soon { box-shadow: none; border: 1px dashed var(--line); background: transparent; }
.edc.soon .ic { background: var(--bg); color: var(--ink-3); }
.train-note { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 18px; background: var(--gold-soft); box-shadow: none; font-size: 14px; }
.train-note span { color: var(--gold-ink); }
.cform { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; max-width: 760px; padding: 28px; }
.cf-fields { display: grid; gap: 16px; }
.field em { font-style: normal; color: var(--ink-3); opacity: .8; margin-left: 4px; }
.field .err { color: var(--bad); font-size: 12px; margin: 0; min-height: 0; }
.logo-drop { display: grid; justify-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.logo-drop .logo.ini { font-size: 34px; font-weight: 300; color: var(--ink-3); background: var(--bg); border: 1.5px dashed var(--dash); box-shadow: none; }
.cols { display: flex; gap: 8px; flex-wrap: wrap; }
.col { display: flex; align-items: center; gap: 6px; }
.col i { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); flex: none;
  background-image: linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%); background-size: 8px 8px; }
.col input { width: 108px; }
.cform .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
@media (max-width: 640px) { .cform { grid-template-columns: 1fr; padding: 20px; } .cf-logo { justify-self: start; } }

/* ---------- client rolodex ---------- */
.waiting-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 18px 10px 14px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 14px; font-weight: 500; line-height: 1;
  transition: transform .15s, box-shadow .2s; }
.waiting-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s infinite; }
.waiting-chip span { margin-left: 2px; transition: transform .2s; }
.waiting-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .waiting-chip:hover span { transform: translateX(3px); }
.ed .art.fit { display: grid; place-items: center; background: var(--paper); padding: 40px; }
.ed .art.fit img { object-fit: contain; }
.ed .art.ph .big { position: absolute; left: 24px; top: 22px; font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.03em;
  color: color-mix(in srgb, var(--acc) 75%, var(--ink)); }
.ed.add { background: transparent; box-shadow: none; border: 1.5px dashed var(--dash); }
.ed.add.front { box-shadow: none; border-color: var(--gold); }
.ed .addart { display: grid; place-content: center; justify-items: center; gap: 14px; }
.ed .addart .plus { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 300; }
.ed .addart b { font-size: 20px; font-weight: 600; }
.tag.wait { background: var(--gold-soft); color: var(--gold-ink); }
.focus-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.theme svg { width: 16px; height: 16px; }
.theme:hover { color: var(--ink); }

/* ---------- client page ---------- */
.cl-head { position: relative; z-index: 6; display: flex; align-items: center; gap: 20px; padding: 22px 0 26px; flex-wrap: wrap; }
.cl-head h1 { font-size: 34px; font-weight: 600; }
.cl-head .grow { flex: 1; min-width: 220px; }
.cl-head .muted { margin: 4px 0 0; font-size: 14px; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.cl-side { position: sticky; top: 92px; }
@media (max-width: 960px) { .cl-layout { grid-template-columns: 1fr; } .cl-side { position: static; } }

.needyou { display: grid; gap: 8px; margin-bottom: 22px; }
.need { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dot title btn" "dot sub btn";
  column-gap: 14px; align-items: center; padding: 14px 16px 14px 18px; border-radius: 16px; background: var(--gold-soft);
  transition: transform .15s, box-shadow .2s; }
.need:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.need i { grid-area: dot; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s infinite; }
.need b { grid-area: title; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need > span { grid-area: sub; font-size: 13px; color: var(--gold-ink); }
.need em { grid-area: btn; font-style: normal; color: #fff; }

.pod-card { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px; }
.pod-art { width: 132px; height: 132px; border-radius: 16px; overflow: hidden; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-ink); }
.pod-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pod-art .ic svg { width: 40px; height: 40px; }
.pod-body h2 { font-size: 24px; font-weight: 600; }
.pod-body .muted { margin: 4px 0 12px; font-size: 14px; }
.pod-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.pod-open { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 10px 4px; }
.pod-open span { display: inline-block; transition: transform .2s; }
.pod-card:hover .pod-open { color: var(--ink); } .pod-card:hover .pod-open span { transform: translateX(3px); }
@media (max-width: 720px) { .pod-card { grid-template-columns: 88px minmax(0, 1fr); } .pod-art { width: 88px; height: 88px; }
  .pod-open { grid-column: 1 / -1; padding: 0; } }

.soon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; padding: 10px 4px; }
.soon-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
.soon-ed { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--dash);
  font-size: 13px; color: var(--ink-2); cursor: default; }
.soon-ed svg { width: 15px; height: 15px; color: var(--ink-3); }

.section-h .count { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.eps { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ep { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ep:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ep .ep-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ep .ep-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ep .thumb { aspect-ratio: 16 / 9; background: #161514; display: grid; place-items: center; overflow: hidden; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep .thumb span { font-size: 12px; color: #8C867C; letter-spacing: .06em; text-transform: uppercase; }
.ep .ep-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ep h3 { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep .guest { font-size: 13px; }
.ep .ep-next { margin: 10px 0 0; font-size: 13px; color: var(--gold-ink); }
.ep .bar { margin-top: auto; } .ep .ep-body > .bar { margin-top: 16px; }
.ep .ep-stop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--bad); position: relative; z-index: 2; }
.ep .ep-stop .link { font-size: 13px; }
.card.new { min-height: 0; }
.archive { margin-top: 30px; }
.archive summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::before { content: "›"; display: inline-block; transition: transform .2s; color: var(--ink-3); }
.archive[open] summary::before { transform: rotate(90deg); }
.archive summary small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.empty-proj { text-align: center; padding: 34px; margin-top: 24px; } .empty-proj p { color: var(--ink-2); margin: 6px 0 18px; }

.brandkit { padding: 20px; }
.bk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.bk-head h3 { font-size: 16px; font-weight: 600; }
.bk-logo { margin-bottom: 14px; }
.bk-empty { display: grid; place-items: center; height: 64px; border-radius: 14px; border: 1.5px dashed var(--dash); font-size: 12px; color: var(--ink-3); }
.brandkit dl { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.brandkit dt { color: var(--ink-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; }
.brandkit dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.hex { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.hex i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }

.newmenu { position: relative; }
.newmenu #newBtn svg { width: 14px; height: 14px; transition: transform .2s; }
.newmenu #newBtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 310px; padding: 6px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--raised-line); display: grid; gap: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 24px 60px -12px rgba(0,0,0,.45); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.mi b { min-width: 0; } .mi em { white-space: nowrap; }
.mi { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.mi svg { width: 18px; height: 18px; color: var(--gold); }
.mi b { font-weight: 500; }
.mi em { font-style: normal; font-size: 11px; color: var(--ink-3); }
a.mi:hover, a.mi:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); outline: none; }
.mi.off { color: var(--ink-3); cursor: default; } .mi.off svg { color: var(--ink-3); }
@media (max-width: 640px) { .menu { left: 0; right: auto; } }

.side-eds { padding: 18px 14px 12px; margin-bottom: 16px; }
.side-eds h3 { font-size: 16px; font-weight: 600; margin: 0 6px 10px; }
.se { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 12px; }
.se.live:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.se-art { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.se-art img { width: 100%; height: 100%; object-fit: cover; }
.se-art svg { width: 18px; height: 18px; }
.se-txt { display: grid; min-width: 0; }
.se-txt b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-txt small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se .status { font-size: 11px; padding: 3px 8px; }
.se.off { color: var(--ink-3); } .se.off .se-art { background: transparent; border: 1px dashed var(--dash); color: var(--ink-3); }
.se.off b { font-weight: 400; color: var(--ink-2); }
.se .soon { font-size: 11px; color: var(--ink-3); }

.menu[hidden] { display: none; }

.ep .owner { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.ep .owner i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px;
  font-weight: 600; background: var(--gold-soft); color: var(--gold-ink); }
.owner-pick { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 13px; color: var(--ink-3); }
.owner-pick select { font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
