@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

/* Same look as the public site: near-black, one hot pink, white type. */
:root {
  color-scheme: dark;
  --bg: #09090B; --bg2: #101014; --card: #141418; --card2: #1B1B21; --line: #27272E; --line2: #34343C;
  --text: #FAFAFA; --text2: #D4D4DC; --muted: #9A9AA5;
  --hot: #FF2E7E; --hot2: #FF5C9C; --on-hot: #0A0A0C; --hot-soft: rgba(255,46,126,.12);
  --coral: var(--hot); --coral-strong: var(--hot); --coral-soft: var(--hot-soft); --plum: #0B0B0E; --plum-2: #1B1B21;
  --ok: #3DDC97; --ok-bg: rgba(61,220,151,.12); --warn: #FFC861; --warn-bg: rgba(255,200,97,.12); --bad: #FF7A7A; --bad-bg: rgba(255,122,122,.12);
  --radius: 18px; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -30px rgba(0,0,0,.8);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Bricolage", system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--hot2); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; } h2 { font-size: 19px; font-weight: 800; } h3 { font-size: 16px; font-weight: 700; }
em { font-style: normal; color: var(--hot); }
p { margin: 0 0 .75em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--hot); color: var(--on-hot); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
::selection { background: var(--hot); color: var(--on-hot); }

/* ---------- layout */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { width: 248px; flex: 0 0 248px; background: var(--bg2); border-right: 1px solid var(--line); color: var(--text); padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; }
.side .logo { display: block; padding: 4px 10px 20px; } .side .logo img { height: 28px; width: auto; }
.side .new { margin: 0 4px 14px; justify-content: center; }
.side a.nav { color: var(--text2); text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.side a.nav svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.side a.nav:hover { background: var(--card2); color: #fff; }
.side a.nav.active { background: var(--hot-soft); color: #fff; box-shadow: inset 3px 0 0 var(--hot); }
.side a.nav.active svg { color: var(--hot); opacity: 1; }
.side .spacer { flex: 1; }
.side .who { font-size: 13px; color: var(--muted); padding: 12px; border-top: 1px solid var(--line); margin-top: 8px; word-break: break-all; }
.side .who b { color: var(--text); text-transform: capitalize; }
.side .who button { background: none; border: 0; color: var(--text2); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; min-height: 0; font-weight: 500; }
main { flex: 999 1 560px; min-width: 0; padding: 30px clamp(16px, 3.4vw, 48px) 72px; max-width: 1320px; }
@media (max-width: 900px) {
  .side { width: 100%; flex: 1 1 100%; flex-direction: row; flex-wrap: nowrap; align-items: center; padding: 10px 12px; gap: 2px; height: auto; position: sticky; z-index: 30; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { padding: 4px 8px 4px 2px; flex: none; } .side .logo img { height: 22px; }
  .side .spacer, .side .who { display: none; }
  .side .new { margin: 0 6px 0 auto; order: 9; flex: none; min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .side a.nav { padding: 8px 10px; font-size: 13.5px; flex: none; } .side a.nav svg { display: none; }
  .side a.nav.active { box-shadow: inset 0 -2px 0 var(--hot); }
}

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .main { flex: 3 1 420px; min-width: 0; } .cols > .aside { flex: 2 1 340px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- controls */
button, .btn { font: inherit; font-weight: 800; border-radius: 999px; border: 1px solid transparent; padding: 10px 18px; cursor: pointer; background: var(--hot); color: var(--on-hot); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 44px; transition: transform .12s, background .15s, box-shadow .2s; }
button:hover, .btn:hover { background: var(--hot2); }
button:active, .btn:active { transform: scale(.98); }
button[disabled] { opacity: .5; cursor: not-allowed; }
.btn-2 { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-2:hover { background: var(--card2); border-color: #50505a; }
.btn-ghost { background: transparent; color: var(--hot2); padding: 8px 10px; min-height: 36px; }
.btn-ghost:hover { background: var(--hot-soft); }
.btn-danger { background: transparent; color: var(--bad); border-color: rgba(255,122,122,.35); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.btn-xl { padding: 16px 26px; font-size: 17px; min-height: 56px; }
.btn-glow { box-shadow: 0 14px 40px -10px rgba(255,46,126,.7); }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; color: var(--text2); }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=time], input[type=url], select, textarea {
  font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); color: var(--text); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-soft); }
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--card); }
input[type=color] { width: 48px; height: 40px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg2); padding: 2px; }
input[type=range] { width: 100%; accent-color: var(--hot); }
input[type=file] { color: var(--muted); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--hot); }

/* ---------- chips */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card2); color: var(--text2); white-space: nowrap; border: 1px solid var(--line); }
.chip.observed { color: #8FC1FF; } .chip.creator_provided { color: #C9A6FF; } .chip.best_practice { color: var(--warn); } .chip.research { color: var(--ok); } .chip.hypothesis { color: var(--muted); }
.chip.low { color: var(--bad); } .chip.medium { color: var(--warn); } .chip.high { color: var(--ok); }
.chip.fmt { background: var(--hot-soft); color: var(--hot2); border-color: transparent; }
.chip.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }

/* ---------- score */
.score { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 116px; height: 116px; flex: 0 0 116px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 34px; font-weight: 800; line-height: 1; } .ring .val span { font-size: 11px; color: var(--muted); }
.dim { padding: 12px 0; border-top: 1px solid var(--line); }
.dim .bar { height: 7px; background: var(--card2); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.dim .bar i { display: block; height: 100%; background: var(--hot); border-radius: 99px; }
.dim .head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.ev { list-style: none; margin: 6px 0 0; padding: 0; } .ev li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin-top: 4px; color: var(--text2); }
.rec { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg2); }
.rec + .rec { margin-top: 10px; }
.rec .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rec.applied { border-color: rgba(61,220,151,.4); } .rec.rejected { opacity: .55; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

/* ---------- media */
.media-box { background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 200px; border: 1px solid var(--line); }
.media-box video, .media-box img { max-height: 560px; width: auto; }
.versions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.version { font-size: 12px; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 8px; background: var(--bg2); cursor: pointer; min-height: 34px; color: var(--text); font-weight: 600; }
.version.cur { border-color: var(--hot); background: var(--hot-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.thumbs figcaption { font-size: 12px; padding: 8px 10px; }
.drop { border: 2px dashed rgba(255,46,126,.5); border-radius: 16px; padding: 26px; text-align: center; background: var(--hot-soft); }
.drop.over { background: rgba(255,46,126,.2); border-color: var(--hot); }
.progress { height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--hot); transition: width .3s; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); font-size: 13px; }
.job.failed { border-color: rgba(255,122,122,.4); background: var(--bad-bg); }

/* ---------- slides */
.slide-list .slide { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.slide-list .slide + .slide { margin-top: 10px; }
.slide-list .slide img { width: 110px; border-radius: 8px; border: 1px solid var(--line); background: #222; }
@media (max-width: 520px) { .slide-list .slide { grid-template-columns: 1fr; } .slide-list .slide img { width: 160px; } }

/* ---------- tables */
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-weight: 700; color: var(--muted); font-size: 12.5px; }

/* ---------- format cards */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.format-card { border: 1px solid var(--line2); border-radius: 16px; padding: 16px; background: var(--card); cursor: pointer; text-align: left; color: var(--text); font-weight: 500; display: block; min-height: 110px; }
.format-card:hover { background: var(--card2); }
.format-card b { display: block; font-size: 16px; margin-bottom: 4px; } .format-card span { font-size: 13px; color: var(--muted); font-weight: 500; }
.format-card[aria-pressed=true] { border-color: var(--hot); background: var(--hot-soft); }

.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.notice { border-radius: 14px; padding: 12px 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; border: 1px solid rgba(255,200,97,.25); }
.notice.info { background: rgba(143,193,255,.1); color: #BFDBFF; border-color: rgba(143,193,255,.25); } .notice.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(255,122,122,.3); } .notice.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(61,220,151,.3); }
.notice a { color: inherit; font-weight: 700; }
.meter { margin-bottom: 12px; } .meter .row { font-size: 13px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 50% at 70% 10%, rgba(255,46,126,.22), transparent 70%), var(--bg); }
.auth .card { width: 100%; max-width: 440px; padding: 30px; } .auth .logo { height: 32px; margin: 0 auto 20px; }
.auth h1 { font-size: 28px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--card2); border: 1px solid var(--line2); color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); font-size: 14px; }
.toast.bad { background: #3A1518; border-color: rgba(255,122,122,.4); }
dialog { border: 1px solid var(--line2); border-radius: 20px; padding: 0; max-width: min(640px, calc(100vw - 24px)); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: var(--card); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
dialog .dlg { padding: 24px; max-height: 80vh; overflow: auto; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.kbd-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.variant { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg2); white-space: pre-wrap; }
.variant + .variant { margin-top: 10px; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill-tabs button { background: transparent; color: var(--text2); border: 1px solid var(--line2); min-height: 36px; padding: 6px 14px; font-weight: 700; }
.pill-tabs button:hover { background: var(--card2); }
.pill-tabs button[aria-selected=true] { background: var(--text); color: var(--on-hot); border-color: var(--text); }
.grid form.stack { display: flex; flex-direction: column; align-items: flex-start; }
.grid form.stack > * + * { margin-top: 8px; }
.grid form.stack > select, .grid form.stack > label, .grid form.stack > .row { align-self: stretch; }

/* ---------- admin + shared bits */
.maincol { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.maincol > main { flex: 1 1 auto; }
.site-banner { background: var(--hot); color: var(--on-hot); font-weight: 700; padding: 10px clamp(16px, 3vw, 40px); font-size: 14px; }
.site-banner.warn { background: var(--warn); } .site-banner a { color: inherit; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 50; background: var(--card2); border: 1px solid var(--line2); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 10px 40px rgba(0,0,0,.5); font-size: 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--hot); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.seg a { padding: 6px 12px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.seg a.on { background: var(--text); color: var(--on-hot); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chart { margin: 0; } .chart figcaption { margin-bottom: 8px; }
.chart-wrap { position: relative; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--line2); stroke-width: 1; }
.chart .ct { font-size: 11px; fill: var(--muted); } .chart .cv { font-size: 11px; fill: var(--text); font-weight: 700; }
.chart .cb.hl path { opacity: .75; }
.ctip { position: absolute; pointer-events: none; background: var(--card2); border: 1px solid var(--line2); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 8px; white-space: nowrap; }
.chart details { margin-top: 6px; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.hb-l { text-transform: capitalize; } .hb-v { text-align: right; font-variant-numeric: tabular-nums; }
.hb-t { height: 12px; background: var(--card2); border-radius: 4px; overflow: hidden; } .hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.filters { margin-bottom: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.linkish { background: none; border: 0; color: var(--hot2); padding: 0; min-height: 0; cursor: pointer; text-decoration: underline; font-weight: 600; border-radius: 0; }
.linkish:hover { background: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .switch input { width: 18px; height: 18px; accent-color: var(--hot); }
.test-out { margin: 6px 0 0; font-weight: 600; } .ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0 0 12px; } .dl dt { color: var(--muted); font-weight: 600; } .dl dd { margin: 0; word-break: break-word; }
.plans-t input { min-width: 90px; } .plans-t th:first-child { text-transform: capitalize; white-space: nowrap; }
.err-cell { max-width: 320px; word-break: break-word; }
dialog.wide { max-width: min(860px, calc(100vw - 24px)); }
@media (max-width: 720px) { .maincol { flex-basis: 100%; } }
.grid > .card { margin: 0; }
.variant.wanted { outline: 2px solid var(--hot); outline-offset: 2px; }

/* =====================================================================
   Dashboard
   ===================================================================== */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); margin: 0 0 10px; }
.d-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 44px); background: radial-gradient(70% 90% at 100% 0%, rgba(255,46,126,.28), transparent 60%), var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.d-hero h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: .98; letter-spacing: -.04em; margin: 0 0 14px; }
.d-hero h1 em { display: block; }
.d-hero p.lead { color: var(--text2); font-size: 16.5px; max-width: 34em; margin: 0; }
.big-drop { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 30px 22px; border-radius: 22px; border: 2px dashed rgba(255,46,126,.6); background: rgba(9,9,11,.55); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; margin: 0; font-weight: 500; color: var(--text); }
.big-drop:hover, .big-drop.over { background: rgba(255,46,126,.1); border-color: var(--hot); }
.big-drop.over { transform: scale(1.01); }
.big-drop:focus-within { outline: 3px solid var(--hot); outline-offset: 3px; }
.big-drop .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--hot); display: grid; place-items: center; box-shadow: 0 14px 40px -10px rgba(255,46,126,.8); }
.big-drop .ic svg { width: 28px; height: 28px; fill: none; stroke: var(--on-hot); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.big-drop b { font-size: 20px; color: var(--text); }
.big-drop small { color: var(--muted); font-size: 13px; }
.big-drop .btn { pointer-events: none; margin-top: 4px; }
.big-drop .upbar { width: 100%; max-width: 320px; }
.alt-starts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.alt-starts a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; background: rgba(9,9,11,.4); }
.alt-starts a:hover { border-color: var(--hot); color: #fff; }
.alt-starts a i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
@media (max-width: 900px) { .d-hero { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 16px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.hot { background: linear-gradient(160deg, rgba(255,46,126,.22), var(--card) 70%); border-color: rgba(255,46,126,.4); }
.stat.hot .v { color: var(--hot); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat .v { font-size: 30px; } }

.d-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .d-grid { grid-template-columns: 1fr; } }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.sec-h h2 { margin: 0; font-size: 21px; }
.sec-h a { font-size: 14px; font-weight: 700; text-decoration: none; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.reel { position: relative; border-radius: 18px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); text-decoration: none; color: var(--text); display: block; aspect-ratio: 9 / 15; transition: transform .2s, border-color .2s; }
.reel:hover { transform: translateY(-3px); border-color: var(--line2); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(255,46,126,.25), transparent 60%), var(--card2); color: var(--hot2); font-weight: 800; font-size: 14px; text-align: center; padding: 10px; }
.reel .ov { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.reel .ov b { display: block; font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reel .badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); color: #fff; }
.reel .badge.ready { background: var(--hot); color: var(--on-hot); }
.reel .badge.posted { background: var(--ok); color: var(--on-hot); }
.reel .badge.working { background: rgba(0,0,0,.7); }
.reel .badge.working::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.reel .sc { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.reel .sc .from { color: var(--muted); text-decoration: line-through; font-weight: 700; }
.reel .sc .to { color: var(--hot); }
.reel .sc .up { color: var(--ok); font-size: 12px; }
.reel.new { display: grid; place-items: center; text-align: center; border-style: dashed; border-width: 2px; border-color: var(--line2); background: transparent; }
.reel.new:hover { border-color: var(--hot); }
.reel.new span { display: grid; gap: 8px; justify-items: center; color: var(--muted); font-weight: 700; font-size: 14px; }
.reel.new i { width: 46px; height: 46px; border-radius: 50%; background: var(--hot-soft); color: var(--hot); display: grid; place-items: center; font-size: 26px; font-style: normal; }
.d-empty { border: 1px dashed var(--line2); border-radius: 20px; padding: 28px; text-align: center; color: var(--muted); }

.goal { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.goal svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.goal circle { fill: none; stroke-width: 12; }
.goal .t { stroke: var(--card2); } .goal .a { stroke: var(--hot); stroke-linecap: round; transition: stroke-dasharray 1s cubic-bezier(.2,.7,.2,1); }
.goal .gv { position: relative; } .goal .gv b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.goal p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.goal h3 { margin: 0; font-size: 18px; }
.days { display: flex; gap: 6px; margin-top: 10px; }
.days span { width: 26px; height: 26px; border-radius: 8px; background: var(--card2); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.days span.on { background: var(--hot); color: var(--on-hot); }
.days span.today { box-shadow: 0 0 0 2px var(--text2); }
.uses .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.uses .big small { font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.try-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tn { position: relative; display: block; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; overflow: hidden; }
.tn:hover { border-color: var(--hot); transform: translateY(-2px); }
.tn .art { height: 86px; border-radius: 14px; background: var(--card2); margin-bottom: 14px; position: relative; overflow: hidden; }
.tn b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.tn span { font-size: 13.5px; color: var(--muted); }
.tn .tag { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 11px; font-weight: 800; color: var(--on-hot); background: var(--hot); border-radius: 999px; padding: 2px 8px; }
/* tiny illustrations for "try next" cards */
.art.a-dna::before { content: ""; position: absolute; left: 18px; top: 18px; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--hot), #7A3CFF); }
.art.a-dna::after { content: ""; position: absolute; left: 84px; right: 18px; top: 24px; height: 10px; border-radius: 6px; background: var(--line2); box-shadow: 0 18px 0 var(--line2), 0 36px 0 rgba(255,46,126,.5); }
.art.a-car { display: flex; gap: 8px; padding: 14px; } .art.a-car i { flex: 1; border-radius: 8px; background: var(--line2); } .art.a-car i:first-child { background: var(--hot); }
.art.a-time::before { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; border: 4px solid var(--line2); border-top-color: var(--hot); border-right-color: var(--hot); }
.art.a-photo::before { content: ""; position: absolute; left: 50%; top: 12px; width: 50px; height: 62px; margin-left: -25px; border-radius: 8px; background: linear-gradient(160deg, #3B5BDB, var(--hot)); }
.art.a-cap::before { content: "Aa"; position: absolute; left: 18px; top: 18px; font-size: 40px; font-weight: 800; color: var(--hot); line-height: 1; }
.art.a-cap::after { content: ""; position: absolute; left: 90px; right: 18px; top: 24px; height: 8px; border-radius: 4px; background: var(--line2); box-shadow: 0 16px 0 var(--line2), 0 32px 0 var(--line2); }

/* =====================================================================
   Fix flow (project page for Reels and photos)
   ===================================================================== */
.fx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fx-head h1 { margin: 0; }
.fx-head .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fx-head .crumbs a { color: var(--muted); text-decoration: none; } .fx-head .crumbs a:hover { color: var(--text); }
.fx { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .fx { grid-template-columns: 1fr; } }
.phone { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #000; border: 8px solid #1E1E24; box-shadow: 0 0 0 1px #34343c, 0 40px 100px -40px rgba(255,46,126,.55); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.photo { aspect-ratio: 4 / 5; border-radius: 24px; }
.phone .scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(to bottom, transparent, rgba(255,46,126,.35)); border-bottom: 2px solid var(--hot); animation: scan 1.8s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.phone .tag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff; }
.phone .tag.hot { background: var(--hot); color: var(--on-hot); }
.ab { display: inline-flex; margin: 14px auto 0; border: 1px solid var(--line2); border-radius: 999px; padding: 4px; background: var(--bg2); }
.ab button { min-height: 34px; padding: 4px 16px; background: transparent; color: var(--muted); font-size: 13px; }
.ab button[aria-pressed=true] { background: var(--text); color: var(--on-hot); }
.phone-col { display: grid; justify-items: center; position: sticky; top: 20px; }
@media (max-width: 900px) { .phone-col { position: static; } .phone { max-width: 280px; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 30px); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 22px; letter-spacing: -.02em; }
.will { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.will li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; color: var(--text2); }
.will li::before { content: ""; width: 24px; height: 24px; border-radius: 8px; background: var(--hot-soft); box-shadow: inset 0 0 0 1.5px var(--hot); }
.will li b { color: var(--text); display: block; }
@media (max-width: 560px) { .will { grid-template-columns: 1fr; } }

/* live progress */
.live .pct { display: flex; align-items: baseline; gap: 6px; }
.live .pct b { font-size: clamp(64px, 9vw, 104px); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.live .pct span { font-size: 28px; font-weight: 800; color: var(--muted); }
.live .now { font-size: 20px; font-weight: 800; margin: 10px 0 14px; min-height: 1.3em; }
.track { position: relative; height: 14px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #FF2E7E, #FF6FA8); }
.track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sheen 1.4s linear infinite; }
@keyframes sheen { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.live .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stages { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.stages li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .3s, color .3s; }
.stages li .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; }
.stages li.on { background: var(--hot-soft); color: var(--text); }
.stages li.on .dot { border-color: var(--hot); border-top-color: transparent; animation: spin .8s linear infinite; }
.stages li.done { color: var(--text2); }
.stages li.done .dot { border-color: var(--ok); background: var(--ok); }
.stages li.done .dot::after { content: ""; width: 5px; height: 10px; border: solid var(--on-hot); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.stages li small { font-size: 12px; color: var(--muted); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
.feed { list-style: none; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); display: grid; gap: 8px; min-height: 60px; }
.feed li { font-size: 14px; color: var(--text2); display: grid; grid-template-columns: 16px 1fr; gap: 10px; animation: feedIn .45s cubic-bezier(.2,.8,.2,1) both; }
.feed li::before { content: "✦"; color: var(--hot); font-size: 12px; margin-top: 2px; }
.feed .wait { color: var(--muted); }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }

/* result */
.result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.bigscore { display: flex; align-items: center; gap: 14px; }
.bigscore .from { font-size: 44px; font-weight: 800; color: var(--muted); letter-spacing: -.04em; text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,.25); font-variant-numeric: tabular-nums; }
.bigscore .arrow { width: 36px; height: 20px; fill: none; stroke: var(--hot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bigscore .to { font-size: 76px; font-weight: 800; color: var(--hot); letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.bigscore .gain { font-size: 15px; font-weight: 800; color: var(--on-hot); background: var(--ok); padding: 4px 10px; border-radius: 999px; }
.dls { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 22px; }
.dls .btn { min-height: 56px; }
@media (max-width: 640px) { .dls { grid-template-columns: 1fr; } }
.fixed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.fixed-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.fixed-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.fixed-list li b { display: block; color: var(--text); font-size: 14.5px; }
@media (max-width: 640px) { .fixed-list { grid-template-columns: 1fr; } }
.howto { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.howto > li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.howto > li:first-child { border-top: 0; padding-top: 4px; }
.howto > li::before { content: counter(h); width: 36px; height: 36px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 800; color: var(--text); }
.howto > li.key::before { background: var(--hot); color: var(--on-hot); border-color: var(--hot); }
.howto h3 { margin: 6px 0 4px; font-size: 16.5px; }
.howto p { margin: 0; color: var(--muted); font-size: 14px; }
.copybox { position: relative; margin-top: 10px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 14px 14px 16px; white-space: pre-wrap; font-size: 14.5px; color: var(--text); line-height: 1.55; }
.copybox.tags { color: var(--hot2); font-weight: 700; }
.copybox .cp { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 4px 12px; font-size: 12.5px; }
.copybox .cp.done { background: var(--ok); }
.copybox.has-btn { padding-right: 86px; }
.when { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--hot-soft); color: var(--text); font-weight: 800; }
.posted-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line2); background: var(--bg2); }
.posted-bar.on { border-color: rgba(61,220,151,.5); background: var(--ok-bg); }
.posted-bar b { font-size: 15.5px; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.err-panel { border-color: rgba(255,122,122,.4); }

@media (prefers-reduced-motion: reduce) {
  .track i::after, .phone .scan, .stages li.on .dot, .reel .badge.working::before { animation: none; }
  .feed li { animation: none; }
}
main:focus { outline: none; }
@media (max-width: 560px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .d-hero { padding: 20px; border-radius: 22px; } }
.dls .btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
html { overflow-x: clip; }
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks-list li { display: grid; grid-template-columns: 150px 1fr 34px; gap: 12px; align-items: center; font-size: 14.5px; color: var(--text2); }
.checks-list i { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; display: block; }
.checks-list s { display: block; height: 100%; border-radius: 99px; background: var(--hot); text-decoration: none; }
.checks-list li.ok s { background: var(--ok); } .checks-list li.mid s { background: var(--warn); }
.checks-list b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.checks-list li.ok b::after { content: " ✓"; color: var(--ok); }
@media (max-width: 520px) { .checks-list li { grid-template-columns: 112px 1fr 40px; font-size: 13.5px; } }
.panel.coach { border-color: rgba(255,200,97,.35); background: linear-gradient(180deg, rgba(255,200,97,.07), var(--card) 60%); }
.panel.coach .eyebrow { color: var(--warn); }

/* carousel / Story result: swipeable slides inside the phone */
.slides-phone { background: #111; }
.slides-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides-track::-webkit-scrollbar { display: none; }
.slides-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slide-dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 2px; flex-wrap: wrap; max-width: 340px; }
.slide-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); transition: background .2s, transform .2s; }
.slide-dots i.on { background: var(--hot); transform: scale(1.25); }
.slides-ph { display: grid; place-content: center; gap: 8px; height: 100%; padding: 28px; text-align: center; color: var(--muted); background: radial-gradient(circle at 70% 20%, rgba(255,46,126,.25), transparent 60%), #111; }
.slides-ph b { color: var(--text); font-size: 15px; }
.slides-ph span { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.15; }
.topic { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(255,255,255,.02); }
.topic b { font-size: 17px; }
.topic p { margin: 6px 0 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--hot); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: inherit; }

/* dashboard: two clear ways to start */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.welcome { margin: 4px 0 18px; }
.welcome h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; margin: 4px 0 8px; }
.welcome .lead { color: var(--text2); margin: 0; font-size: 16.5px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: clamp(20px, 3vw, 28px); border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(80% 70% at 100% 0%, rgba(255,46,126,.18), transparent 60%), var(--card); }
.path + .path { background: radial-gradient(80% 70% at 100% 0%, rgba(255,225,77,.12), transparent 60%), var(--card); }
.path-h { display: flex; gap: 14px; align-items: flex-start; }
.path-h .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--hot); color: var(--on-hot); }
.path + .path .path-h .num { background: #FFE14D; color: #111; }
.path-h h2 { margin: 0 0 4px; font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -.02em; }
.path-h p { margin: 0; color: var(--text2); font-size: 15px; }
.path .big-drop { flex: 1; align-content: center; }
.make-box { flex: 1; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 22px; border: 1px solid var(--line2); background: rgba(9,9,11,.55); }
.make-box input[type=text], .make-box textarea { width: 100%; }
.make-box textarea { min-height: 76px; resize: vertical; }
.make-box .btn-xl { width: 100%; margin-top: 4px; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kind { position: relative; margin: 0; cursor: pointer; }
.kind input { position: absolute; opacity: 0; inset: 0; }
.kind span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); transition: border-color .15s, background .15s; }
.kind b { font-size: 15px; }
.kind small { color: var(--muted); font-size: 12px; }
.kind input:checked + span { border-color: #FFE14D; background: rgba(255,225,77,.1); box-shadow: inset 0 0 0 1px #FFE14D; }
.kind input:focus-visible + span { outline: 3px solid #FFE14D; outline-offset: 2px; }
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; color: var(--text2); }
.gets li { position: relative; padding-left: 20px; }
.gets li::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 7px; border-left: 2.5px solid var(--hot); border-bottom: 2.5px solid var(--hot); transform: rotate(-45deg); }
.path + .path .gets li::before { border-color: #FFE14D; }
.how { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 18px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.how div { flex: 1; display: grid; gap: 2px; }
.how b { font-size: 16px; }
.how span { color: var(--muted); font-size: 13.5px; }
.how i { font-style: normal; color: var(--hot); font-weight: 800; font-size: 20px; }
@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .how { flex-direction: column; align-items: stretch; text-align: left; }
  .how i { transform: rotate(90deg); align-self: center; }
}
@media (max-width: 420px) { .gets { grid-template-columns: 1fr; } }

/* brand setup */
.uses-brand { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text2); text-decoration: none; padding: 8px 10px; border-radius: 12px; background: rgba(255,225,77,.07); }
.uses-brand b { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 8px; background: #FFE14D; color: #111; font-size: 12px; }
.uses-brand.ok b { background: var(--ok); }
.uses-brand:hover { color: var(--text); }
.brand-card { display: block; text-decoration: none; color: var(--text); border-color: rgba(255,225,77,.45); background: radial-gradient(90% 80% at 100% 0%, rgba(255,225,77,.12), transparent 60%), var(--card); }
.brand-card h2 { display: flex; justify-content: space-between; align-items: baseline; }
.bsteps { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 10px; }
.bsteps li { position: relative; padding-left: 30px; font-weight: 700; font-size: 14.5px; }
.bsteps li small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.bsteps li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); }
.bsteps li.on::before { background: #FFE14D; border-color: #FFE14D; }
.bsteps li.on::after { content: ''; position: absolute; left: 6px; top: 6px; width: 8px; height: 5px; border-left: 2.5px solid #111; border-bottom: 2.5px solid #111; transform: rotate(-45deg); }
.setup-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.setup-steps a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
.setup-steps .n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--line2); }
.setup-steps li.done .n { background: #FFE14D; color: #111; }
.setup-steps b { display: block; font-size: 15px; }
.setup-steps small { color: var(--muted); font-size: 12.5px; }
.brand-sec { scroll-margin-top: 20px; margin-bottom: 16px; }
.brand-sec .sec-top h2 { margin: 2px 0 4px; }
.brand-sec .sec-top p.muted { margin: 0 0 16px; max-width: 46em; }
.big-drop.slim { padding: 20px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; }
.big-drop.slim .ic { grid-row: span 2; width: 48px; height: 48px; }
.big-drop.slim .upbar { grid-column: 1 / -1; width: 100%; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.lib-item { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.lib-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.lib-item select, .lib-item input { width: 100%; font-size: 13px; padding: 6px 8px; }
.lib-del { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 0; font-size: 18px; line-height: 1; }
.look { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.swatches label { display: grid; justify-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.swatches input[type=color] { width: 56px; height: 44px; padding: 2px; border-radius: 12px; }
.switch { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--hot); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }
.logo-prev { height: 48px; width: 48px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; }
.look-prev .mini { aspect-ratio: 4 / 5; border-radius: 16px; padding: 18px; background: var(--bg); color: var(--fg); display: grid; align-content: center; gap: 10px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.look-prev .k { justify-self: start; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 99px; background: var(--ac); color: #fff; }
.look-prev b { font-size: 24px; line-height: 1.02; letter-spacing: -.02em; }
.look-prev em { font-style: normal; color: var(--ac); }
.look-prev small { opacity: .7; font-size: 11px; }
.welcome-note { margin-bottom: 16px; }
@media (max-width: 760px) { .setup-steps { grid-template-columns: 1fr; } .look { grid-template-columns: 1fr; } .look-prev { max-width: 220px; } }

/* My plan */
.plan-brief h2 { margin: 2px 0 14px; }
.pb-grid { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; margin-bottom: 8px; }
.pb-grid .wide { grid-column: 1 / -1; }
.pb-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pb-grid legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; margin: 0; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: grid; gap: 1px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); font-weight: 700; font-size: 14px; min-width: 44px; text-align: center; transition: border-color .15s, background .15s; }
.chip-opt small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.chip-opt input:checked + span { border-color: var(--hot); background: rgba(255,46,126,.12); box-shadow: inset 0 0 0 1px var(--hot); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }
.plan-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.plan-top h2 { margin: 2px 0 8px; max-width: 34em; }
.plan-stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.plan-stats b { color: var(--text); font-size: 16px; }
.plan-stats .hot b { color: var(--hot); }
.plan-actions { display: grid; gap: 8px; justify-items: end; }
.week { display: grid; gap: 14px; margin-top: 16px; }
.day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.day h3 { margin: 12px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rest-days { margin: 2px 0 0 78px; }
.idea { display: grid; gap: 8px; padding: 14px; align-content: start; border-radius: 16px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.idea h4 { margin: 0; font-size: 16.5px; line-height: 1.2; overflow-wrap: anywhere; }
.idea .hook { margin: 0; font-size: 13px; color: var(--text2); font-style: italic; overflow-wrap: anywhere; }
.idea .why { margin: 0; font-size: 12.5px; color: var(--muted); }
.idea-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11px; font-weight: 800; }
.idea-top .fmt { padding: 3px 8px; border-radius: 99px; background: rgba(255,46,126,.15); color: var(--hot); }
.idea-top .fmt.f-story { background: rgba(255,225,77,.15); color: #FFE14D; }
.idea-top .fmt.f-reel { background: rgba(120,170,255,.15); color: #8DB4FF; }
.idea-top .pillar { color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.idea-top .stage { margin-left: auto; color: var(--muted); }
.idea.st-approved { border-color: rgba(255,46,126,.55); }
.idea.st-approved .stage { color: var(--hot); }
.idea.st-ready, .idea.st-posted { border-color: rgba(43,214,123,.45); }
.idea.st-ready .stage, .idea.st-posted .stage { color: var(--ok); }
.idea.st-skipped { opacity: .5; }
.idea.st-failed { border-color: rgba(255,90,90,.5); }
.idea .pts summary { font-size: 12.5px; color: var(--text2); cursor: pointer; }
.idea .pts ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text2); display: grid; gap: 3px; }
.idea-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.idea-actions .btn-sm, .idea-actions .btn { padding: 6px 10px; font-size: 12.5px; }
.idea .thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; }
.idea .thumb img { display: block; width: 100%; max-height: 260px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.idea .thumb .sc { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.75); font-weight: 800; font-size: 13px; }
.idea .thumb .sc.ok { background: var(--ok); color: #04160c; }
.idea .mk { margin: 0; }
.past ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day h3 { margin: 0; }
  .rest-days { margin-left: 0; }
  .pb-grid { grid-template-columns: 1fr; }
  .plan-actions { justify-items: stretch; width: 100%; }
}

/* slide editor */
.ed { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ed-left { position: sticky; top: 16px; display: grid; gap: 14px; }
.ed-phone { position: relative; background: #111; }
.ed-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-loading { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; }
.ed-loading[hidden] { display: none; }
.ed-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 42vh; overflow: auto; }
.ed-strip button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 13.5px; }
.ed-strip button b { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line2); font-size: 12px; }
.ed-strip button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-strip button.on { border-color: var(--hot); background: rgba(255,46,126,.1); }
.ed-strip button.on b { background: var(--hot); color: var(--on-hot); }
.ed-strip button.add { justify-content: center; border-style: dashed; color: var(--text2); }
.ed-right { display: grid; gap: 14px; min-width: 0; }
.ed-right .panel { margin: 0; }
.ed-right h2 { margin: 0 0 12px; font-size: 18px; }
.ed-right textarea, .ed-right input[type=text], .ed-right select { width: 100%; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-opt { position: relative; margin: 0; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.theme-opt span { display: flex; gap: 8px; align-items: center; padding: 7px 12px 7px 7px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); font-weight: 700; font-size: 13px; }
.theme-opt i { width: 26px; height: 26px; border-radius: 8px; position: relative; border: 1px solid rgba(255,255,255,.15); }
.theme-opt em { position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; }
.theme-opt input:checked + span { border-color: var(--hot); box-shadow: inset 0 0 0 1px var(--hot); }
.theme-opt input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }
.ai-box { margin: 14px 0 16px; padding: 12px; border-radius: 14px; background: rgba(255,225,77,.07); border: 1px solid rgba(255,225,77,.25); display: grid; gap: 8px; }
.ai-box label { font-weight: 700; font-size: 14px; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap input { flex: 1; min-width: 0; }
.panel.stale { border-color: rgba(255,200,97,.45); background: linear-gradient(0deg, rgba(255,200,97,.06), rgba(255,200,97,.06)), var(--card); }
.panel.stale [data-side-actions][hidden] { display: none; }
.film-plan .plan-text { white-space: pre-wrap; line-height: 1.5; color: var(--text2); font-size: 14.5px; }
@media (max-width: 860px) { .ed { grid-template-columns: 1fr; } .ed-left { position: static; } .ed-phone { max-width: 300px; margin: 0 auto; } .ed-strip { max-height: none; } }
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.plan-cta { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; border: 1px solid rgba(255,46,126,.45); background: radial-gradient(90% 120% at 100% 0%, rgba(255,46,126,.2), transparent 60%), var(--card); color: var(--text); text-decoration: none; max-width: 420px; transition: transform .15s, border-color .15s; }
.plan-cta:hover { border-color: var(--hot); transform: translateY(-1px); }
.plan-cta .pc-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--hot); display: grid; place-items: center; }
.plan-cta .pc-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--on-hot); stroke-width: 2.2; stroke-linecap: round; }
.plan-cta b { display: block; font-size: 15.5px; }
.plan-cta small { color: var(--text2); font-size: 13px; }
.plan-cta .go { margin-left: auto; font-weight: 800; color: var(--hot); white-space: nowrap; font-size: 14px; }
.ed-strip button { justify-content: flex-start; }
.ed-strip button.add { justify-content: center; }
.ai-box .linkish { justify-self: start; }
.dls .btn, .dls button { white-space: nowrap; }

/* Home: chat with the agent */
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; height: calc(100dvh - 56px); min-height: 520px; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(70% 50% at 100% 0%, rgba(255,46,126,.12), transparent 60%), var(--card); overflow: hidden; }
.chat-scroll { flex: 1; overflow-y: auto; padding: clamp(18px, 3vw, 32px); scroll-behavior: smooth; }
.chat-hello { max-width: 720px; margin: 4vh auto 0; text-align: center; }
.chat-hello h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1; margin: 6px 0 10px; }
.chat-hello .lead { color: var(--text2); max-width: 34em; margin: 0 auto 26px; }
.chat-hello[hidden] { display: none; }
.starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; text-align: left; }
.starter { display: grid; gap: 3px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(9,9,11,.5); color: var(--text); justify-items: start; font-weight: 500; transition: border-color .15s, transform .15s; }
.starter:hover { border-color: var(--hot); transform: translateY(-1px); }
.starter b { font-size: 15px; }
.starter span { font-size: 12.5px; color: var(--muted); }
.msgs { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .bubble { max-width: min(560px, 86%); display: grid; gap: 10px; }
.msg .bubble > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg.me { justify-content: flex-end; flex-wrap: wrap; }
.msg.me .bubble { background: var(--hot); color: var(--on-hot); padding: 10px 14px; border-radius: 18px 18px 4px 18px; }
.msg.me.pending .bubble { opacity: .85; }
.msg.me.failed .bubble { opacity: .6; }
.m-fail { flex-basis: 100%; text-align: right; font-size: 12.5px; color: var(--bad); }
.msg.bot .bubble { padding: 2px 0; }
.msg.bot.err .bubble > p { color: var(--warn); }
.msg .av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--hot) url('/brand/android-chrome-192x192.png') center / cover; }
.m-atts { display: flex; gap: 6px; flex-wrap: wrap; }
.m-atts img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.m-atts .vid { padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 13px; font-weight: 700; }
.dots { display: inline-flex; gap: 5px; padding: 10px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.card-post { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(9,9,11,.55); }
.card-post.st-ready { border-color: rgba(61,220,151,.4); }
.card-post.st-failed { border-color: rgba(255,122,122,.45); }
.card-post.gone { display: block; color: var(--muted); font-size: 13px; }
.cp-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.cp-thumb.tall { aspect-ratio: 9 / 16; }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-shimmer { display: block; width: 100%; height: 100%; background: linear-gradient(110deg, #17171c 30%, #26262e 50%, #17171c 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cp-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cp-top { display: flex; gap: 8px; align-items: center; }
.cp-top .fmt, .cpl-top .fmt { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255,46,126,.15); color: var(--hot); }
.cp-top .score { margin-left: auto; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.cp-top .score small { font-size: 12px; color: var(--muted); }
.cp-top .score.ok { color: var(--ok); }
.cp-title { font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.cp-prog { display: grid; gap: 4px; } .cp-prog .progress { margin: 0; } .cp-prog small { color: var(--muted); font-size: 12px; }
.cp-err { margin: 0; color: var(--bad); font-size: 13px; }
.cp-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cp-acts .btn, .cp-acts button { padding: 6px 12px; font-size: 13px; }
.card-plan { padding: 14px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(9,9,11,.55); display: grid; gap: 10px; }
.cpl-top { display: grid; gap: 6px; justify-items: start; } .cpl-top b { font-size: 15.5px; }
.card-plan ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.card-plan li { display: grid; grid-template-columns: 40px 88px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.03); }
.card-plan li .d { color: var(--muted); font-weight: 700; } .card-plan li .f { color: var(--text2); font-size: 12px; }
.card-plan li .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-plan li .t a { color: var(--text); }
.card-plan li .s { font-size: 12px; color: var(--muted); font-weight: 700; }
.card-plan li.st-ready .s { color: var(--ok); } .card-plan li.st-making .s { color: var(--hot); }
.composer { border-top: 1px solid var(--line); padding: 12px clamp(12px, 2vw, 20px) 10px; background: rgba(9,9,11,.6); }
.comp-row { display: flex; gap: 8px; align-items: flex-end; max-width: 760px; margin: 0 auto; }
.comp-row textarea { flex: 1; min-height: 46px; max-height: 200px; resize: none; padding: 12px 14px; border-radius: 16px; line-height: 1.4; }
.attach { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line2); display: grid; place-items: center; cursor: pointer; margin: 0; }
.attach:hover { border-color: var(--hot); }
.attach svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.attach:focus-within { outline: 3px solid var(--hot); outline-offset: 2px; }
.send { flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border-radius: 14px; display: grid; place-items: center; }
.send svg { width: 20px; height: 20px; fill: none; stroke: var(--on-hot); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.send:disabled { opacity: .45; }
.comp-hint { max-width: 760px; margin: 6px auto 0; font-size: 11.5px; color: var(--muted); }
.atts { display: flex; gap: 8px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 8px; }
.atts[hidden] { display: none; }
.att { display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); font-size: 12.5px; max-width: 240px; }
.att img, .att i { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: #222; font-style: normal; }
.att .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { color: var(--hot); font-weight: 800; }
.att button { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); border: 0; font-size: 16px; }
.dropping .chat { outline: 3px dashed var(--hot); outline-offset: -6px; }
.chat-side { display: grid; gap: 12px; align-content: start; overflow-y: auto; min-height: 0; }
.chat-side .card { margin: 0; }
.chat-side .new-chat { width: 100%; }
.mini-use { font-size: 13.5px; color: var(--text2); } .mini-use b { font-size: 20px; color: var(--text); }
.hist h2 { font-size: 15px; margin: 0 0 8px; }
.hist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hist li button { width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; color: var(--text2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-weight: 600; font-size: 13.5px; }
.hist li.on button { background: rgba(255,46,126,.12); color: var(--text); }
@media (max-width: 1100px) { .chat-wrap { grid-template-columns: minmax(0, 1fr); height: auto; } .chat { height: calc(100dvh - 120px); min-height: 480px; } .chat-side { overflow: visible; } }
@media (max-width: 560px) { .card-post { grid-template-columns: 76px minmax(0, 1fr); } .card-plan li { grid-template-columns: 34px minmax(0, 1fr) auto; } .card-plan li .f { display: none; } .comp-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .dots i, .ph-shimmer { animation: none; } .chat-scroll { scroll-behavior: auto; } }
.starter { text-align: left; }
.msg.bot .bubble { flex: 1; min-width: 0; }
.chat, .chat-scroll, .msgs, .composer { min-width: 0; max-width: 100%; }
.card-post, .card-plan { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .chat-scroll { padding: 14px 12px; } .msg .av { width: 26px; height: 26px; } .msg.me .bubble { max-width: 88%; } .comp-row { gap: 6px; } .attach, .send { width: 42px; height: 42px; } }
.starter { justify-content: start; align-content: start; }
.card-ptr { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--text2); text-decoration: none; font-size: 13px; min-width: 0; }
.card-ptr span { flex: none; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255,46,126,.15); color: var(--hot); }
.card-ptr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; }
.card-ptr i { margin-left: auto; flex: none; font-style: normal; color: var(--muted); font-size: 12px; }
.card-ptr:hover { border-color: var(--hot); }
.card-ptr.gone { border-style: solid; }
.earlier { text-align: center; margin: 0 auto 14px; } .earlier[hidden] { display: none; }
.site-sec { border-color: rgba(255,46,126,.4); }
.site-row input { flex: 1; min-width: 0; }
.site-card { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.02); }
.site-card p { margin: 6px 0 0; color: var(--text2); }
.site-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 13.5px; }
.site-card dt { color: var(--muted); font-weight: 700; } .site-card dd { margin: 0; color: var(--text2); }
.src-tag { margin-left: 8px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255,225,77,.12); color: #FFE14D; vertical-align: middle; }
.logo-cols { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }
.chip-col { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.6); }
.chip-col:hover { transform: scale(1.1); }
@media (max-width: 560px) { .site-row { flex-wrap: wrap; } .site-row button { width: 100%; } }
.chip-col { min-width: 28px; min-height: 28px; flex: none; aspect-ratio: 1; line-height: 0; }

/* ---------- free trial */
.site-banner.trial { background: var(--card2); color: var(--text); border-bottom: 1px solid var(--line); font-weight: 600; }
.site-banner.trial a { color: var(--hot2); font-weight: 800; margin-left: 6px; }
.start-page { max-width: 860px; margin: 0 auto; padding: 8px 0 30px; }
.start-page h1 { font-size: clamp(28px, 4vw, 40px); }
.start-page .lead { font-size: 16.5px; max-width: 40em; }
.start-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.start-plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.start-plan.pick { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot) inset, 0 20px 60px -30px rgba(255,46,126,.5); }
.start-plan .chip { position: absolute; top: 16px; right: 16px; }
.start-plan .price { font-size: 30px; font-weight: 800; margin: 0; } .start-plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.start-plan ul { padding-left: 18px; margin: 6px 0 12px; color: var(--text2); }
.start-plan button, .start-plan .stack { margin-top: auto; width: 100%; justify-content: center; }
.perks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.perks li { padding-left: 26px; position: relative; color: var(--text2); }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
@media (max-width: 700px) { .start-plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Instagram: sign-in, connection */
.btn-ig { width: 100%; justify-content: center; gap: 10px; background: linear-gradient(90deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); color: #fff; border: 0; }
.btn-ig:hover { filter: brightness(1.08); }
.auth .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ig-who { display: flex; align-items: center; gap: 12px; }
.ig-who img, .ig-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ig-ph { display: grid; place-items: center; background: var(--hot-soft); color: var(--hot2); font-weight: 800; }
.ig-card .row { flex-wrap: wrap; }
.ig-panel.ok { border-color: rgba(61,220,151,.35); }
.ig-panel textarea { width: 100%; }
.ig-when { align-items: center; gap: 10px; }
.empty-ig { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.bad-text { color: var(--bad); }

/* ---------- calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-day:last-child { border-bottom: 0; }
.cal-day.today { background: var(--hot-soft); }
.cal-day.none { padding-top: 8px; padding-bottom: 8px; }
.cal-date { display: flex; flex-direction: column; line-height: 1.1; color: var(--muted); }
.cal-date b { color: var(--text2); font-size: 13px; } .cal-date span { font-size: 22px; font-weight: 800; color: var(--text); }
.cal-items { display: grid; gap: 10px; align-content: center; }
.cal-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.cal-item.s-failed { border-color: rgba(255,122,122,.4); } .cal-item.s-published { border-color: rgba(61,220,151,.3); }
.cal-time { font-weight: 800; font-size: 14px; }
.cal-title { font-weight: 700; margin: 4px 0; overflow-wrap: anywhere; }
.cal-actions { margin-top: 6px; flex-wrap: wrap; }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ready-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ready-list li > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .cal-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- results */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi span { color: var(--muted); font-size: 13px; } .kpi b { font-size: 26px; font-weight: 800; } .kpi small { color: var(--muted); font-size: 12px; }
@media (max-width: 800px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.type-bars li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 50px; gap: 4px 12px; align-items: center; }
.type-bars i { height: 10px; border-radius: 99px; background: var(--card2); overflow: hidden; display: block; }
.type-bars s { display: block; height: 100%; background: var(--hot); border-radius: 99px; }
.type-bars small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
.res-table td, .res-table th { white-space: nowrap; }
.res-table .res-post { display: flex; gap: 10px; align-items: center; white-space: normal; min-width: 240px; max-width: 380px; }
.res-table .res-post img { border-radius: 6px; object-fit: cover; flex: none; }
.res-table tr.top td { background: var(--hot-soft); }

/* ---------- inbox */
.tabs .count { background: var(--hot); color: var(--on-hot); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.inbox { display: grid; gap: 12px; }
.inbox .panel + .panel { margin-top: 0; }
.cmt { padding: 18px 20px; }
.cmt-post { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cmt-post img { border-radius: 6px; object-fit: cover; }
.cmt-text { margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.cmt-reply { margin: 8px 0 0; color: var(--text2); background: var(--bg2); border-radius: 12px; padding: 8px 12px; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.sug { background: var(--bg2); color: var(--text); border: 1px dashed var(--line2); border-radius: 12px; padding: 8px 12px; font-weight: 500; text-align: left; white-space: normal; height: auto; }
.sug:hover { border-color: var(--hot); }
.cmt-box { margin-top: 10px; display: grid; gap: 8px; }
.cmt-box textarea { width: 100%; }
.cmt-box .row { flex-wrap: wrap; }
.trial-note { margin: 0 0 16px; }

#plan-card .variant { white-space: normal; display: flex; flex-direction: column; }
#plan-card .variant + .variant { margin-top: 0; }
#plan-card .variant ul { margin: 4px 0 12px; }
#plan-card .variant > :last-child:is(button, .stack) { margin-top: auto; }
#ig-slot > .panel { margin-top: 16px; }
#ig-slot + .panel { margin-top: 16px; }
.sugs > .tiny { flex-basis: 100%; }

/* Engage */
.eg-add { display: grid; gap: 12px; margin-bottom: 16px; }
.eg-add h2 { margin: 0; }
.eg-add p { margin: 0; }
.eg-add label { margin: 0; }
.eg-add label > input, .eg-add label > select, .eg-add label > textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.eg-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.eg-add .row { flex-wrap: wrap; align-items: center; gap: 10px; }
.linklike { background: none; border: 0; padding: 0; height: auto; color: var(--accent, inherit); text-decoration: underline; font: inherit; cursor: pointer; }
.eg-days { margin-bottom: 16px; }
.eg-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.eg-head a { font-weight: 600; overflow-wrap: anywhere; }
.eg-src { margin: 8px 0 4px; color: var(--text2); white-space: pre-line; }
.eg-fit { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg2); }
.eg-fit.good { color: var(--good, #2bb673); }
.eg-fit.skip { color: var(--bad, #e5484d); }
.eg-card .sug { flex: 1 1 260px; }
.eg-sug { display: block; }
.eg-style { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; font-weight: 600; }
