/* Layout: fixed sidebar nav + sticky top bar; Month Boards is the home screen. Editorial serif for month names, clean sans for UI. */
:root {
  --bg: #FCF8F9; --surface: #FFFFFF; --surface-2: #FAF2F5; --surface-3: #F5E9EE;
  --ink: #221419; --ink-2: #5C4850; --muted: #8E7881; --line: #F0E2E7; --line-2: #E3CDD6;
  --accent: #DB2D78; --accent-ink: #FFFFFF; --accent-soft: #FDE7F0; --accent-strong: #AE1A5A;
  --ok: #18875A; --warn: #B26A00; --bad: #CC3131; --info: #3B5BD9;
  --shadow: 0 1px 2px rgba(70,20,40,.05), 0 8px 24px -12px rgba(70,20,40,.18);
  --shadow-lg: 0 24px 60px -20px rgba(70,20,40,.35);
  --f-display: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --r: 14px; --r-sm: 9px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #130E10; --surface: #1C1518; --surface-2: #231A1E; --surface-3: #2C2126;
  --ink: #F8EEF2; --ink-2: #D5C2CA; --muted: #A08B94; --line: #33262C; --line-2: #45353C;
  --accent: #FF5C9F; --accent-ink: #1B0710; --accent-soft: #3B1828; --accent-strong: #FF92BF;
  --ok: #3FCB8C; --warn: #F0AE45; --bad: #FF7070; --info: #8DA5FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #130E10; --surface: #1C1518; --surface-2: #231A1E; --surface-3: #2C2126;
  --ink: #F8EEF2; --ink-2: #D5C2CA; --muted: #A08B94; --line: #33262C; --line-2: #45353C;
  --accent: #FF5C9F; --accent-ink: #1B0710; --accent-soft: #3B1828; --accent-strong: #FF92BF;
  --ok: #3FCB8C; --warn: #F0AE45; --bad: #FF7070; --info: #8DA5FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num, .tab { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: max(18px, env(safe-area-inset-top, 0px)) 12px 18px max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 4px; z-index: 40; }
.brand { padding: 4px 10px 14px; }
.brand .wordmark { font-family: var(--f-display); font-weight: 800; font-size: 27px; letter-spacing: .02em; line-height: 1; }
.brand .wordmark i { color: var(--accent); font-style: italic; font-weight: 600; }
.brand .poweredby { font-size: 10.5px; color: var(--muted); margin-top: 7px; letter-spacing: .04em; }
.brand .poweredby span { font-family: var(--f-display); font-weight: 700; font-size: 12px; color: var(--ink); letter-spacing: .01em; }
.brand .poweredby i { color: var(--accent); font-style: italic; font-weight: 600; }
.brand .sub { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 700; }
.navgroup { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 10px 4px; }
.navbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-align: left; }
.navbtn:hover { background: var(--surface-2); color: var(--ink); }
.navbtn.on { background: var(--accent-soft); color: var(--accent-strong); }
.navbtn .ico { width: 18px; text-align: center; opacity: .8; font-size: 15px; }
.navbtn .badge { margin-left: auto; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top h1 { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.page { padding-block: 20px 80px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.burger { display: none; }
.scrim { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .burger { display: inline-flex; }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top h1 { font-size: 21px; }
  .page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hide-sm { display: none !important; }
}

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { padding: 4px 8px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 6px 8px; min-width: 32px; }
.btn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent-strong); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--surface); }
.input, select.input, textarea.input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
textarea.input { resize: vertical; min-height: 70px; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input.sm, .input.sm { padding: 5px 8px; font-size: 12.5px; border-radius: 8px; width: auto; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); min-width: 0; }
label.f > span.lab { letter-spacing: .02em; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fgrid .span2 { grid-column: span 2; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fgrid .span2 { grid-column: 1 / -1; } }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 16px; }
.card h3 { font-size: 15px; font-weight: 700; }
.panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-title h3 { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty b { color: var(--ink-2); }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.notice.pink { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Chips & badges ---------- */
.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: color-mix(in srgb, var(--c) 72%, var(--ink)); white-space: nowrap; line-height: 1.6; border: 0; }
.chip.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip.outline { background: transparent; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); }
.chip.prov { --c: var(--warn); }
button.chip { cursor: pointer; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.badge.soft { background: var(--surface-3); color: var(--ink-2); }
.avatar { --c: var(--accent); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); flex: none; }
.avatar.lg { width: 34px; height: 34px; font-size: 13px; }
.status { --c: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, var(--ink)); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---------- Post chips (calendar) ---------- */
.pchip { --c: var(--muted); display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 7px; border-radius: 8px; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); color: var(--ink); font-size: 12px; font-weight: 600; text-align: left; line-height: 1.3; min-width: 0; cursor: grab; }
.pchip:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
.pchip .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.pchip .tm { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); flex: none; }
.pchip.task { border-left-style: dashed; background: var(--surface-2); }
.pchip.dim { opacity: .55; }
.pchip .flag { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pchip .flag.review { background: var(--warn); }
.pchip .flag.over { background: var(--bad); }
.pchip .flag.done { background: var(--ok); }
.dragging { opacity: .4; }
.droptarget { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft) !important; }

/* ---------- Month grid ---------- */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.mgrid .dow { background: var(--surface-2); padding: 6px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.mcell { background: var(--surface); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.mcell.out { background: var(--surface-2); }
.mcell.out .dnum { opacity: .45; }
.mcell .dhead { display: flex; align-items: center; gap: 4px; min-height: 20px; }
.mcell .dnum { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.mcell.today .dnum { background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 0 5px; }
.mcell .add { margin-left: auto; opacity: 0; border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.mcell:hover .add, .mcell .add:focus { opacity: 1; }
.mcell .add:hover { background: var(--accent-soft); color: var(--accent); }
.mcell .more { font-size: 11px; color: var(--muted); border: 0; background: none; text-align: left; padding: 0 4px; font-weight: 700; }
.cbars { display: flex; gap: 2px; height: 3px; margin: -2px 0 2px; }
.cbars span { flex: 1; border-radius: 2px; }
.hol { font-size: 10px; color: var(--accent-strong); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--ink-2); background: var(--surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
@media (max-width: 700px) {
  .mgrid.resp { grid-template-columns: minmax(0, 1fr); }
  .mgrid.resp .dow { display: none; }
  .mgrid.resp .mcell { min-height: 0; }
  .mgrid.resp .mcell.out { display: none; }
  .mgrid.resp .mcell .dnum::after { content: attr(data-dow); margin-left: 6px; font-family: var(--f-body); color: var(--muted); }
  .mcell .add { opacity: 1; }
}

/* ---------- Month boards ---------- */
.mb { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mb.pinned { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.mb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; cursor: default; }
.mb-head .grip { cursor: grab; color: var(--muted); font-size: 18px; padding: 2px 4px; border: 0; background: none; letter-spacing: -2px; }
.mb-head h2 { font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.mb-head h2 .yr { font-style: italic; font-weight: 400; color: var(--muted); margin-left: 8px; }
.mb-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.mb-stats b { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); margin-right: 3px; }
.mb-body { border-top: 1px solid var(--line); padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.wk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wk-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wk-head .wn { font-weight: 800; font-size: 13px; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-day { padding: 6px; border-right: 1px solid var(--line); min-height: 86px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wk-day:last-child { border-right: 0; }
.wk-day.out { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); }
.wk-day .dl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.wk-day .dl .d { font-family: var(--f-mono); color: var(--ink-2); font-weight: 500; }
.wk-day.today .dl .d { color: var(--accent); font-weight: 700; }
.wk-day .add { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; border-radius: 6px; padding: 0 4px; opacity: 0; }
.wk-day:hover .add, .wk-day .add:focus { opacity: 1; }
.wk-day .add:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 760px) {
  .wk-days { grid-template-columns: minmax(0, 1fr); }
  .wk-day { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .wk-day.out { display: none; }
  .wk-day .add { opacity: 1; }
  .mb-head h2 { font-size: 23px; }
}

/* ---------- Week planner ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; }
.wcol { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 260px; min-width: 0; }
.wcol.today { border-color: var(--accent); }
.wcol .wh { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.wcol .wh .d { font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.pcard { --c: var(--muted); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; padding: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 5px; cursor: grab; text-align: left; min-width: 0; }
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard .pt { font-weight: 700; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.pcard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--muted); }
.pcard .warns { display: flex; gap: 4px; flex-wrap: wrap; }
.pcard .warns span { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
.pcard .warns span.bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: color-mix(in srgb, var(--bad) 80%, var(--ink)); }
.pcard.over { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); }
.pcard .thumb { width: 100%; aspect-ratio: 4/5; border-radius: 7px; object-fit: cover; background: var(--surface-2); max-width: 100%; }
@media (max-width: 1100px) { .week { grid-template-columns: minmax(0, 1fr); } .wcol { min-height: 0; } }

/* ---------- Year / quarter ---------- */
.yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mini h4 { font-family: var(--f-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: baseline; gap: 6px; }
.mini .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini .g .h { font-size: 9.5px; text-align: center; color: var(--muted); font-weight: 700; }
.mini .g button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 6px; font-size: 11px; font-family: var(--f-mono); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
.mini .g button:hover { background: var(--surface-2); }
.mini .g button.has { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.mini .g button.today { outline: 1.5px solid var(--accent); }
.mini .g button .dots { display: flex; gap: 1px; height: 4px; }
.mini .g button .dots i { width: 4px; height: 4px; border-radius: 50%; }
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qgrid .mcell { min-height: 72px; }
@media (max-width: 1100px) { .qgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- IG grid ---------- */
.ig-wrap { max-width: 520px; width: 100%; }
.ig-profile { display: flex; gap: 16px; align-items: center; padding: 6px 4px 14px; }
.ig-av { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); padding: 3px; flex: none; }
.ig-av div { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.tile { position: relative; aspect-ratio: 4/5; background: var(--surface-3); overflow: hidden; border: 0; padding: 0; cursor: grab; max-width: 100%; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph { position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: color-mix(in srgb, var(--c) 60%, var(--ink)); }
.tile .ph b { font-family: var(--f-display); font-size: 15px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; }
.tile .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 5px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; gap: 4px; align-items: center; }
.tile .fmt { position: absolute; top: 5px; right: 6px; color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile.published { opacity: .92; }
.tile.published::after { content: "Published"; position: absolute; top: 5px; left: 5px; font-size: 9.5px; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; padding: 1px 5px; border-radius: 5px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; min-width: 0; }
.kcol .kh { display: flex; align-items: center; gap: 6px; padding: 4px 4px 6px; font-weight: 800; font-size: 13px; }

/* ---------- Roadmap ---------- */
.rm { display: grid; grid-template-columns: 170px repeat(12, minmax(56px, 1fr)); min-width: 900px; font-size: 12px; }
.rm .mh { padding: 6px; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.rm .lane { padding: 8px 8px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.rm .track { grid-column: 2 / -1; position: relative; border-bottom: 1px solid var(--line); min-height: 36px; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.rm .bar { --c: var(--accent); position: absolute; top: 6px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-weight: 700; font-size: 11px; padding: 3px 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; min-width: 10px; }
.rm .bar.tentative { border-style: dashed; }
.rm .bar.proposed { border-style: dotted; background: transparent; }
.rm .todayline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.rm .theme { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rm .theme input { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 6px; font-size: 11.5px; min-width: 0; font-style: italic; }
.rm .theme input:focus { outline: none; background: var(--accent-soft); }

/* ---------- Library ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; min-width: 0; }
.asset:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.asset .pv { aspect-ratio: 1; background: var(--surface-3); position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; max-width: 100%; }
.asset .pv img, .asset .pv video { width: 100%; height: 100%; object-fit: cover; }
.asset .pv .fav { position: absolute; top: 6px; right: 6px; color: var(--accent); font-size: 16px; text-shadow: 0 0 3px var(--surface); }
.asset .pv .use { position: absolute; left: 6px; bottom: 6px; }
.asset .info { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.asset .info b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); }
.dropzone.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Tiles / meters ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
button.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.stat .v { font-family: var(--f-display); font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat .l { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.stat.alert .v { color: var(--bad); }
.stat.warnv .v { color: var(--warn); }
.meter { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 6px; position: relative; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b .col { width: 100%; max-width: 38px; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 2px; gap: 0; }
.bars .b .col.low { background: color-mix(in srgb, var(--accent) 40%, var(--surface-3)); }
.bars .b .lb { font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.bars .b .vl { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars .target { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ok); pointer-events: none; }
.bars .target span { position: absolute; right: 0; top: -16px; font-size: 10px; color: var(--ok); font-weight: 700; background: var(--surface); padding: 0 3px; }
.rec { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec .ic { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 13px; }

/* ---------- Modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(25,8,15,.42); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; animation: fade .12s ease; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); }
.modal.wide { max-width: 980px; }
.modal.narrow { max-width: 440px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-family: var(--f-display); font-size: 22px; font-weight: 600; flex: 1; min-width: 0; }
.modal-b { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal-f { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 18px 18px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.editor-cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
@media (max-width: 820px) { .editor-cols { grid-template-columns: minmax(0, 1fr); } }
.toasts { position: fixed; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 13px; width: 100%; animation: rise .18s ease; }
.toast.err { background: var(--bad); color: #fff; }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 800; margin-left: auto; }
.toast.err button { color: #fff; text-decoration: underline; }
.pop { position: absolute; z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; }
.menu-item { display: flex; width: 100%; gap: 8px; align-items: center; padding: 7px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 600; font-size: 13px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.danger { color: var(--bad); }
.saveind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 4px 8px; border-radius: 8px; background: var(--surface-2); white-space: nowrap; }
.saveind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.saveind.saving::before { background: var(--warn); animation: pulse 1s infinite; }
.saveind.error::before { background: var(--bad); }
.kbd { font-family: var(--f-mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }
.search-res { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.search-res button { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 0; background: none; text-align: left; border-radius: 10px; min-width: 0; }
.search-res button:hover, .search-res button.sel { background: var(--surface-2); }
.comment { padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.comment .mention { color: var(--accent-strong); font-weight: 700; }
.hist { font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hist time { font-family: var(--f-mono); color: var(--muted); font-size: 11px; flex: none; }
.cover-pick { aspect-ratio: 4/5; border-radius: 12px; border: 1.5px dashed var(--line-2); background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 0; width: 100%; max-width: 100%; position: relative; }
.cover-pick img, .cover-pick video { width: 100%; height: 100%; object-fit: cover; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.loading { display: flex; align-items: center; justify-content: center; min-height: 70vh; flex-direction: column; gap: 14px; color: var(--muted); }
.loading .wordmark { font-family: var(--f-display); font-weight: 800; font-size: 40px; color: var(--ink); }
.loading .wordmark i { color: var(--accent); }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } }
@keyframes pulse { 50% { opacity: .3 } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Invoice printing: only the invoice prints ---------- */
.invoice { background: var(--surface); }
@media print {
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; padding: 32px; color: #000; background: #fff; }
  .print-area .muted, .print-area .eyebrow { color: #555 !important; }
  .print-area textarea { border: 0; resize: none; }
}

/* ---------- Campaign runway (Home) ---------- */
.runway { padding: 18px 18px 14px; }
.rw-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.rw-title { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.rw-finding { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.rw-finding b { color: var(--ink); }
.rw-warn { color: var(--warn); font-weight: 700; }
.rw-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rw-legend .mk { --c: var(--ink-2); }
.rw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.rw { position: relative; min-width: 860px; display: flex; flex-direction: column; padding-bottom: 18px; }
.rw-row { display: grid; grid-template-columns: var(--label) repeat(42, minmax(0, 1fr)); align-items: center; position: relative; z-index: 1; }
.rw-label { font-size: 12px; font-weight: 700; color: var(--ink-2); padding-right: 10px; min-width: 0; }
.rw-weekend { position: absolute; top: 22px; bottom: 18px; background: color-mix(in srgb, var(--surface-2) 65%, var(--surface)); z-index: 0; }
.rw-today { position: absolute; top: 22px; bottom: 18px; width: 0; border-left: 2px solid var(--accent); z-index: 3; pointer-events: none; }
.rw-today em { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--accent-strong); background: var(--surface); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.rw-weeks { height: 22px; }
.rw-week { border: 0; background: none; text-align: left; font: 700 12px var(--f-body); color: var(--ink); padding: 0 4px; border-left: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; overflow: hidden; }
.rw-week span { color: var(--muted); font-weight: 500; }
.rw-week:hover { color: var(--accent-strong); }
.rw-days { height: 20px; border-bottom: 1px solid var(--line); }
.rw-day { font-size: 10.5px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; }
.rw-day.is-today { color: var(--accent-strong); font-weight: 800; }
.rw-hol { position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; transform: translateX(-50%) rotate(45deg); background: var(--accent); }
.rw-lane { height: 34px; }
.rw-camp { display: flex; align-items: center; gap: 7px; border: 0; background: none; text-align: left; cursor: pointer; font: 700 12px var(--f-body); color: var(--ink-2); }
.rw-camp i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.rw-camp:hover { color: var(--ink); }
.rw-bar { --c: var(--accent); position: relative; height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--c) 20%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); display: flex; align-items: center; padding: 0 7px; min-width: 0; overflow: hidden; }
.rw-bar.prov { border-style: dashed; background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.rw-bar-txt { font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 72%, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.rw-phase { position: absolute; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); background: var(--c); border: 2px solid var(--surface); }
.rw-posts { min-height: 46px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.rw-cell { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 4px 0; min-height: 40px; border-radius: 4px; cursor: pointer; font: inherit; }
.rw-cell:disabled { cursor: default; }
.rw-cell:not(:disabled):hover, .rw-cell.hl:not(:disabled) { background: var(--accent-soft); }
.rw-cell em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--muted); }
.mk { --c: var(--accent); width: 8px; height: 8px; display: inline-block; background: var(--c); border: 1.5px solid var(--c); flex: none; }
.mk.feed { border-radius: 50%; }
.mk.story { border-radius: 2px; }
.mk.reel { transform: rotate(45deg) scale(.88); border-radius: 1px; }
.mk.hollow { background: transparent; }
.rw-ready { height: 30px; border-top: 1px solid var(--line); }
.rw-meter { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.rw-meter-track { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.rw-meter-track span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .4s ease; }
.rw-meter em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
@media (max-width: 700px) { .runway { padding: 14px 12px 10px; } .rw-title { font-size: 19px; } }
.theme-switch { color: var(--ink-2); }
.navbtn .ico { display: inline-flex; width: 18px; justify-content: center; opacity: .85; }
.btn svg { display: block; }

/* ---------- Add-anything bar ---------- */
.quickbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 20; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.qb-row { display: flex; gap: 8px; align-items: center; }
.qb-input { flex: 1; min-width: 0; font-size: 14.5px; padding: 10px 12px; }
.qb-ideas { flex: none; }
.qb-preview { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; padding: 2px 2px 0; }
.qb-says { color: var(--muted); font-weight: 600; }
.qb-title { font-size: 13px; }
.qb-warn { font-weight: 700; }
.qb-ok { color: var(--ok); font-weight: 600; }
.qb-best { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--ink-2); }
.qb-keys { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.qb-ideas-strip { display: flex; gap: 6px; overflow-x: auto; min-height: 30px; align-items: center; }
.qb-idea { flex: 0 0 auto; max-width: 250px; display: flex; align-items: center; gap: 2px; }
.qb-idea > .pchip { min-width: 0; }
.qb-plan { padding: 2px 7px; color: var(--accent); }
@media (max-width: 700px) { .qb-row { flex-wrap: wrap; } .qb-input { flex-basis: 100%; } }

/* ---------- Smart drop zones (shown only while dragging) ---------- */
[data-slot] { transition: background-color .12s ease, box-shadow .12s ease; }
[data-slot="good"] { background: color-mix(in srgb, var(--ok) 13%, var(--surface)) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 55%, transparent); }
[data-slot="ok"] { background: var(--surface) !important; }
[data-slot="busy"] { background: color-mix(in srgb, var(--warn) 13%, var(--surface)) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 50%, transparent); }
[data-slot="bad"] { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--bad) 12%, var(--surface)) 0 6px, var(--surface) 6px 12px) !important; }
[data-slot="here"] { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.droptarget[data-slot] { outline: 2px solid var(--accent) !important; }
.pchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-strong); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.day-tips { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.day-tips .btn { justify-content: flex-start; gap: 8px; text-align: left; white-space: normal; }

.qb-import { flex: none; }
table.imp td { vertical-align: middle; }
table.imp tr.off td { opacity: .45; }
@media (max-width: 700px) { .qb-import { order: 3; } }

/* Beta preview */
.brand .beta-pill { display: inline-block; margin-top: 9px; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.navbtn.locked { color: var(--muted); }
.navbtn.locked .lock { opacity: .55; display: inline-flex; }
.navbtn.locked:hover .lock, .navbtn.locked.on .lock { opacity: .9; }
.soon-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
.soon-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); flex: none; }
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ask-card { display: flex; flex-direction: column; gap: 8px; border-left: 3px solid var(--accent); }
.ask-card.warn { border-left-color: #D98A00; }
.ask-seg { flex: none; }
.ask-seg button.on { background: var(--accent); color: var(--accent-ink); }
.ask-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2, var(--muted)); display: grid; gap: 2px; }
.file-drop-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg, #000) 70%, transparent); backdrop-filter: blur(3px); pointer-events: none; }
.file-drop-overlay > div { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 34px 46px; border-radius: 18px; border: 2px dashed var(--accent); background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.file-drop-overlay b { font-family: var(--f-display); font-size: 26px; }
.file-drop-overlay span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .ask-card > .row { flex-wrap: wrap; } }
.peek { display: grid; grid-template-columns: repeat(7, minmax(108px, 1fr)); gap: 10px; overflow-x: auto; filter: saturate(.9); }
.peek-col { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface-2); min-height: 92px; }
.peek-card { display: flex; flex-direction: column; gap: 1px; padding: 8px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.peek-card span { color: var(--muted); font-size: 11px; }
.peek-card em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent-strong); margin-top: 3px; }
