/* =========================================================
   Viral Ahead: "Obsidian & Silver" design system
   Black graphite surfaces, brushed-silver accents, glass panels.
   ========================================================= */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #07070a;
  --bg-2: #0c0c10;
  --panel: rgba(255, 255, 255, .028);
  --panel-solid: #111116;
  --panel-hi: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  /* ink */
  --ink: #ededf0;
  --ink-2: #c4c6cc;
  --muted: #85878f;
  --faint: #55575e;
  /* silver */
  --silver: #d7dae0;
  --silver-hi: #ffffff;
  --silver-lo: #8e939c;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e6e8ec 38%, #a9adb5 62%, #eceef1 100%);
  --brushed: linear-gradient(135deg, #f7f8fa 0%, #c9ccd2 28%, #f1f2f4 50%, #aeb2ba 74%, #e9ebee 100%);
  --chrome-text: linear-gradient(180deg, #ffffff 10%, #d9dbe0 45%, #8f949d 100%);
  /* signal */
  --hi: #e8eaee;          /* emphasis = bright silver */
  --good: #7fe0b0;
  --warn: #e9c46a;
  --bad: #ff7b7b;
  --info: #9ab8ff;
  --vip: #c9b6ff;
  --yt: #ff5a5f; --ig: #e46bd0; --x: #f2f2f2;
  /* shape */
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 50px -20px rgba(0,0,0,.8);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-family: var(--font);
}

* { box-sizing: border-box; }
::selection { background: rgba(215, 218, 224, .28); }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45;
  display: grid; grid-template-columns: 248px 1fr; min-height: 100vh;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(220, 224, 232, .13), transparent 62%),
    radial-gradient(600px 400px at 20% 110%, rgba(160, 166, 178, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* fine dot grid, fades out toward the bottom */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
a { color: var(--silver); text-decoration-color: rgba(215,218,224,.35); text-underline-offset: 3px; }
a:hover { color: var(--silver-hi); }
code { font-family: var(--mono); font-size: 12px; background: var(--panel-hi); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

h1 {
  font-size: 34px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.035em; font-weight: 600;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2.sub { font-size: 12px; margin: 40px 0 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 12px; }
h2.sub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
h3 { font-size: 14px; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); } .small { font-size: 12px; }

/* ---------- sidebar ---------- */
.side {
  position: sticky; top: 0; height: 100vh; z-index: 2;
  padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 26px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  backdrop-filter: blur(12px);
}
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-name { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative;
  background: linear-gradient(160deg, #1c1d22, #0a0a0d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -6px rgba(220,224,232,.35);
}
.logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); padding: 0 10px 8px; }
nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  text-decoration: none; padding: 9px 10px; border-radius: 10px; color: var(--muted);
  transition: color .15s, background .15s;
}
nav a svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
nav a:hover { color: var(--ink); background: rgba(255,255,255,.035); }
nav a.on {
  color: var(--silver-hi); font-weight: 500;
  background: linear-gradient(90deg, rgba(255,255,255,.085), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 0 rgba(255,255,255,.06) inset;
}
nav a.on::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px;
  background: var(--chrome); box-shadow: 0 0 12px rgba(235,238,245,.8);
}
nav a.on svg { opacity: 1; }
.navbadge {
  display: inline-block; min-width: 19px; padding: 1px 6px; border-radius: 99px; margin-left: auto;
  background: var(--brushed); color: #0b0b0e; font-size: 10.5px; font-weight: 700; text-align: center;
  font-family: var(--mono); box-shadow: 0 0 10px rgba(230,233,240,.35);
}
.safe-badge {
  margin-top: auto; font-size: 12px; padding: 14px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  display: flex; flex-direction: column; gap: 5px; color: var(--muted);
}
.safe-badge strong { color: var(--ink); display: flex; align-items: center; gap: 7px; font-weight: 600; }
.safe-badge strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(127,224,176,.15), 0 0 10px var(--good); }
.legal-links { padding: 0 8px; }
.legal-links a { color: var(--faint); text-decoration: none; }
.legal-links a:hover { color: var(--ink-2); }

/* ---------- main ---------- */
main { position: relative; z-index: 1; padding: 34px 44px 90px; max-width: 1280px; width: 100%; }
.view { display: none; } .view.on { display: block; animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vh { margin-bottom: 26px; position: relative; }
.vh p { margin: 0; color: var(--muted); max-width: 640px; font-size: 14.5px; }

#banner .demo {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px;
  padding: 10px 12px 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2);
  background: linear-gradient(90deg, rgba(233,196,106,.08), rgba(255,255,255,.02) 60%);
  border: 1px solid rgba(233,196,106,.22);
}
#banner .demo b { color: var(--warn); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
#banner .demo b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
#banner .demo span { flex: 1; min-width: 220px; }

/* ---------- controls ---------- */
button {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink);
  padding: 8px 14px; transition: background .15s, border-color .15s, transform .08s, box-shadow .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }
button.primary {
  position: relative; overflow: hidden; color: #0a0a0d; font-weight: 600; border: 1px solid rgba(255,255,255,.6);
  background: var(--brushed);
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 8px 24px -8px rgba(225,229,238,.45);
}
button.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
button.primary:hover { background: var(--brushed); border-color: #fff; box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 10px 30px -8px rgba(235,238,245,.65); }
button.primary:hover::after { left: 120%; }
button.ghost { background: transparent; border-color: var(--line-2); box-shadow: none; }
button.ghost:hover { background: rgba(255,255,255,.05); }
button.danger { color: var(--bad); border-color: rgba(255,123,123,.3); background: rgba(255,123,123,.05); }
button.danger:hover { background: rgba(255,123,123,.12); border-color: rgba(255,123,123,.5); }
button:disabled { opacity: .5; cursor: wait; }

input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(230,233,240,.55); box-shadow: 0 0 0 4px rgba(215,218,224,.08); background: rgba(0,0,0,.5); }
select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2385878f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
select option { background: var(--panel-solid); color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
input[type=checkbox] { accent-color: #d7dae0; width: 15px; height: 15px; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; margin: 0; cursor: pointer; }
label.chk input { width: auto; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- surfaces ---------- */
.panel, .kpi, .acard, .item, .conn, .acc-row, .ib-row, table, .empty, .consent-box .consent {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel { border-radius: var(--r); padding: 20px; margin-bottom: 16px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { border-radius: var(--r); padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.kpi .l { color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.kpi .v {
  font-size: 32px; font-weight: 600; letter-spacing: -0.04em; margin-top: 8px; font-variant-numeric: tabular-nums;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi .d { font-size: 12px; color: var(--good); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi:first-child { background: radial-gradient(260px 140px at 100% 0%, rgba(230,233,240,.12), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); }

/* account cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.acard { min-width: 0; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.acard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acard .top > span:last-child { display: inline-flex; gap: 6px; }
.pf { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.youtube { background: var(--yt); box-shadow: 0 0 8px rgba(255,90,95,.6); }
.dot.instagram { background: linear-gradient(135deg, #ffb35c, #ee5a8f 50%, #9b6bff); box-shadow: 0 0 8px rgba(228,107,208,.55); }
.dot.x { background: var(--x); box-shadow: 0 0 8px rgba(255,255,255,.55); }
.big {
  font-size: 34px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spark { width: 100%; height: 64px; display: block; filter: drop-shadow(0 0 6px rgba(230,233,240,.35)); }
.acard [style*="--hi"] { color: var(--silver) !important; }
.pill { font-size: 10.5px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pill.healthy { color: var(--good); border-color: rgba(127,224,176,.35); background: rgba(127,224,176,.07); }
.pill.watch { color: var(--warn); border-color: rgba(233,196,106,.35); background: rgba(233,196,106,.07); }
.pill.at-risk, .pill.paused { color: var(--bad); border-color: rgba(255,123,123,.35); background: rgba(255,123,123,.07); }
.pill.demo { color: var(--warn); border-color: rgba(233,196,106,.3); }
.mini { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mini li { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.mini li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-weight: 600; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--silver-hi); }

/* ---------- toolbar & segmented ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input { flex: 1 1 220px; width: auto; } .toolbar select { width: auto; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.seg button { border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: var(--muted); padding: 6px 13px; }
.seg button:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.seg button.on { background: var(--brushed); color: #0a0a0d; font-weight: 600; box-shadow: 0 1px 0 #fff inset, 0 4px 14px -4px rgba(225,229,238,.4); }

/* ---------- post cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.item { border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s, box-shadow .2s; }
.item:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04), 0 24px 50px -24px rgba(220,224,232,.25); }
.item.sel { border-color: rgba(235,238,245,.7); box-shadow: 0 0 0 1px rgba(235,238,245,.5), 0 0 30px -6px rgba(230,233,240,.4); }
.item .thumb {
  aspect-ratio: 16/9; display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; position: relative;
  background: linear-gradient(135deg, #1a1b20, #0d0d11) center/cover;
}
.item .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); pointer-events: none; }
.item .thumb .badge {
  position: relative; z-index: 1; font-family: var(--mono); font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px;
  background: var(--brushed); color: #0a0a0d; box-shadow: 0 1px 0 #fff inset, 0 6px 18px -4px rgba(0,0,0,.7);
}
.item .body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.item .t { font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.item .acts { display: flex; gap: 6px; padding: 0 14px 14px; }
.item .acts button { padding: 5px 10px; font-size: 12px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sticky-actions {
  position: sticky; bottom: 18px; margin-top: 18px; z-index: 3; padding: 10px 10px 10px 18px; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(17,17,22,.75); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-2); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 20px 50px -10px rgba(0,0,0,.8);
}

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(290px, 1fr) 2fr; gap: 16px; align-items: start; }
.ideas { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.idea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; background: rgba(0,0,0,.25); transition: border-color .15s, background .15s; }
.idea:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.idea.on { border-color: rgba(235,238,245,.6); background: rgba(255,255,255,.05); box-shadow: 0 0 20px -8px rgba(230,233,240,.5); }
.idea b { display: block; margin-bottom: 4px; font-weight: 500; } .idea p { margin: 0; color: var(--muted); font-size: 12px; }
.drafts { display: flex; flex-direction: column; gap: 14px; }
.draft { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,.25); }
.draft .note { font-size: 12px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 8px 11px; border-radius: 9px; }
.check { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.check .e { color: var(--bad); } .check .w { color: var(--warn); } .check .ok { color: var(--good); }
.count { font-size: 11px; color: var(--faint); align-self: flex-end; font-family: var(--mono); }

/* ---------- calendar / tables ---------- */
.post-form { display: flex; flex-direction: column; gap: 10px; }
.post-form .row { margin: 0; } .post-form .row input { width: auto; }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }
table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--r); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.025); }
tbody tr { transition: background .15s; } tbody tr:hover { background: rgba(255,255,255,.02); }
td .txt { max-width: 420px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.st.published, .st.manual, .st.replied { color: var(--good); } .st.failed { color: var(--bad); } .st.held { color: var(--warn); } .st.scheduled, .st.done, .st.hidden { color: var(--muted); }

/* ---------- accounts ---------- */
.connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.conn { border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.conn .pf { font-size: 15px; }
.conn p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1; }
.acc-row { display: flex; align-items: center; gap: 14px; border-radius: 14px; padding: 13px 16px; margin-bottom: 8px; flex-wrap: wrap; }
.acc-row .grow { flex: 1; }
.meter { height: 6px; background: rgba(255,255,255,.06); border-radius: 9px; overflow: hidden; width: 130px; box-shadow: 0 0 0 1px var(--line) inset; }
.meter i { display: block; height: 100%; background: var(--chrome); box-shadow: 0 0 10px rgba(230,233,240,.6); border-radius: 9px; }
.never ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; }
.never li { display: flex; gap: 10px; align-items: center; }
.never li::before { content: "×"; width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 13px; color: var(--bad); background: rgba(255,123,123,.08); border: 1px solid rgba(255,123,123,.25); }
.never h3 { color: var(--ink); }

/* ---------- feedback ---------- */
#toast { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
#toast div {
  padding: 11px 16px; border-radius: 12px; max-width: 380px; font-size: 13px; color: var(--ink);
  background: rgba(22,22,28,.85); backdrop-filter: blur(16px); border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 20px 40px -10px rgba(0,0,0,.8);
  animation: rise .25s ease;
}
#toast div.err { border-color: rgba(255,123,123,.45); color: #ffd0d0; background: rgba(48,16,18,.9); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border-style: dashed; border-color: var(--line-2); border-radius: var(--r); box-shadow: none; background: rgba(255,255,255,.012); }

/* ---------- radar ---------- */
.row-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.head-actions .navbadge { margin-left: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.radar-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; }
.trends { display: flex; flex-direction: column; }
.trend { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.trend:last-child { border-bottom: 0; }
.trend b { font-weight: 500; }
.trend .dots { display: inline-flex; gap: 3px; }
.heat { height: 3px; border-radius: 9px; background: var(--chrome); display: block; margin-top: 6px; box-shadow: 0 0 8px rgba(230,233,240,.45); }
.theme { border-left: 2px solid var(--silver); padding: 4px 0 4px 14px; margin: 14px 0; }
.theme b { display: block; font-weight: 600; } .theme p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.theme .urg { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--warn); font-weight: 600; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--ink-2); letter-spacing: .02em; }
.flag.early { color: #0a0a0d; background: var(--brushed); border-color: #fff; box-shadow: 0 0 12px rgba(230,233,240,.5); }
.flag.new { color: var(--good); border-color: rgba(127,224,176,.35); }
.watch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.inline-form input { flex: 1 1 180px; width: auto; } .inline-form select { width: auto; }
.row.compact { margin: 0; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; background: rgba(255,255,255,.035); }
.chip button { border: 0; background: transparent; padding: 0 5px; color: var(--muted); box-shadow: none; }
.chip button:hover { color: var(--bad); background: transparent; }
.alert-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.alert-row:last-child { border-bottom: 0; }
.alert-row.unread b::before { content: "● "; color: var(--silver-hi); text-shadow: 0 0 8px #fff; }
.alert-row .k { font-size: 11px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }

/* ---------- compliance ---------- */
.item > .meta.src, .item .body .meta.src { font-size: 11px; }
.item > .meta.src { padding: 0 14px 10px; color: var(--faint); }
.meta.src a { color: inherit; }
.consent-box { margin-bottom: 16px; }
.consent-box .consent { border-radius: 14px; padding: 14px 16px; gap: 12px; align-items: flex-start; line-height: 1.55; border-color: rgba(233,196,106,.3); }
.consent-box .consent input { margin-top: 3px; }

[hidden] { display: none !important; }

/* ---------- inbox ---------- */
.cnt:not(:empty) { font-size: 10.5px; margin-left: 4px; font-family: var(--mono); opacity: .7; }
.inbox { display: grid; grid-template-columns: minmax(320px, 1fr) 1.3fr; gap: 14px; align-items: start; }
.ib-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 230px); overflow-y: auto; padding: 2px 6px 2px 2px; }
.ib-row { border-radius: 14px; padding: 13px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, background .15s; }
.ib-row:hover { border-color: var(--line-2); }
.ib-row.on { border-color: rgba(235,238,245,.6); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: 0 0 0 1px rgba(235,238,245,.25), 0 0 28px -10px rgba(230,233,240,.5); }
.ib-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ib-text { font-size: 13px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ib-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.prio { font-family: var(--mono); font-size: 11px; font-weight: 600; min-width: 28px; text-align: center; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--muted); }
.prio.mid { color: var(--ink); border-color: rgba(255,255,255,.3); }
.prio.hi { color: #0a0a0d; background: var(--brushed); border-color: #fff; box-shadow: 0 0 12px rgba(230,233,240,.5); }
.lbl { font-size: 10.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .02em; }
.lbl.question { color: var(--info); border-color: rgba(154,184,255,.35); background: rgba(154,184,255,.06); }
.lbl.lead { color: var(--good); border-color: rgba(127,224,176,.4); background: rgba(127,224,176,.08); font-weight: 600; }
.lbl.negative, .lbl.spam { color: var(--bad); border-color: rgba(255,123,123,.35); background: rgba(255,123,123,.06); }
.lbl.vip { color: var(--vip); border-color: rgba(201,182,255,.4); background: rgba(201,182,255,.07); font-weight: 600; }
.lbl.praise { color: var(--ink-2); }
.ib-detail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ib-post { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--muted); }
.ib-post-t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ib-post-t > div { color: var(--ink-2); white-space: pre-line; max-height: 7.5em; overflow: auto; }
/* post pictures: comments always show which post they are on */
.pt-img { flex: none; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.pt-img.xs { width: 22px; height: 22px; border-radius: 5px; }
.pt-img.sm { width: 36px; height: 36px; border-radius: 8px; }
.pt-img.md { width: 64px; height: 64px; border-radius: 10px; }
.pt-ph { display: inline-grid; place-items: center; font-size: 18px; }
.pt-ph.xs { font-size: 11px; } .pt-ph.sm { font-size: 15px; } .pt-ph.md { font-size: 24px; }
.ib-on { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-width: 0; }
.ib-on span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-posts { margin: 0 0 12px; }
.ib-posts-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ib-posts-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.ib-pc { flex: none; display: flex; align-items: center; gap: 10px; width: 230px; padding: 8px 10px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); box-shadow: none; scroll-snap-align: start; color: var(--ink-2); }
.ib-pc.all { width: auto; }
.ib-pc:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.ib-pc.on { border-color: rgba(235,238,245,.6); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: 0 0 0 1px rgba(235,238,245,.2); color: var(--ink); }
.ib-pc-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-pc-t b { font-size: 13px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ag-reply-post { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.ag-reply-post > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ag-reply-post b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-msg p { font-size: 16px; line-height: 1.55; margin: 10px 0; letter-spacing: -0.005em; }
.ib-sent { border-left: 2px solid var(--good); padding-left: 14px; font-size: 14px; }
.ib-ai { border-top: 1px solid var(--line); padding-top: 14px; }
.ib-ai #ib-sugg { display: flex; flex-direction: column; gap: 6px; }
.sugg { text-align: left; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; font-weight: 400; background: rgba(0,0,0,.28); }
.sugg:hover { border-color: rgba(235,238,245,.5); background: rgba(255,255,255,.04); }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .radar-top, .watch, .inbox { grid-template-columns: 1fr; }
  .ib-detail { position: static; } .ib-list { max-height: none; }
}
@media (max-width: 800px) {
  body { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(7,7,10,.85); }
  nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  nav a { white-space: nowrap; } nav a.on::before { display: none; }
  .nav-label, .safe-badge, .legal-links { display: none; }
  main { padding: 22px 16px 80px; }
  h1 { font-size: 27px; }
  .studio { grid-template-columns: 1fr; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =========================================================
   Signature details
   ========================================================= */
/* Silver eclipse: a dark planet with a lit rim rising over the top-right of the workspace */
body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  width: 1300px; height: 1300px; right: -420px; top: -1125px; border-radius: 50%;
  background: radial-gradient(circle at 50% 100%, #0d0d11 0%, #060608 55%);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow:
    0 0 2px rgba(255,255,255,.5),
    0 10px 60px 4px rgba(225,229,238,.18),
    0 30px 180px 40px rgba(200,205,215,.09),
    inset 0 -40px 90px -30px rgba(225,229,238,.16);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
}
/* Cursor spotlight on cards (position set by app.js) */
.panel, .kpi, .acard, .item, .conn, .ib-row {
  background-image:
    radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.kpi:first-child {
  background-image:
    radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 45%),
    radial-gradient(260px 140px at 100% 0%, rgba(230,233,240,.13), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
}
.ib-row.on {
  background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
/* Header hairline with a silver node */
.vh::after {
  content: ""; display: block; height: 1px; margin-top: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,.5) 0, rgba(255,255,255,.14) 120px, rgba(255,255,255,.06) 60%, transparent);
}
.row-head::after { flex-basis: 100%; margin-top: 4px; }
/* Selects read as controls, not headings */
select { font-size: 13px; font-weight: 500; }
.radar-top { align-items: start; }
/* Friendly empty detail pane */
.ib-detail > p.muted:only-child {
  margin: 0; padding: 70px 20px; text-align: center; font-size: 13px;
}
.ib-detail > p.muted:only-child::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 14px;
  background: linear-gradient(160deg, #1c1d22, #0a0a0d) center/22px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ccd2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"), linear-gradient(160deg, #1c1d22, #0a0a0d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 24px -8px rgba(220,224,232,.3);
}
/* Sparkline */
.spark .line { filter: drop-shadow(0 0 4px rgba(235,238,245,.7)); }
.spark-end { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
/* Posts without a thumbnail get a brushed-metal plate instead of an empty box */
.item .thumb:not([style*="url"]) {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(235,238,245,.16), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #18191e, #0b0b0e 70%);
}
@media (max-width: 800px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .side, main { min-width: 0; }
  body::after { display: none; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { flex: none; }
  .toolbar select { flex: 1 1 140px; }
  .row-head > div:first-child { min-width: 0; }
}

/* =========================================================
   Growth agent
   ========================================================= */
.navtag { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 6px; color: #0a0a0d; background: var(--brushed); box-shadow: 0 0 10px rgba(230,233,240,.35); }
.agent { display: grid; grid-template-columns: 220px 1fr; gap: 18px; height: calc(100vh - 150px); min-height: 420px; }
.ag-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ag-side #ag-new { width: 100%; }
.ag-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin: 10px 4px 0; }
.ag-chats { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.ag-chat { display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 10px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 13px; }
/* names may use two lines, so chats with similar names can be told apart */
.ag-chat .ag-ct { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; word-break: break-word; }
.ag-ren { flex: 1; min-width: 0; padding: 4px 8px; font-size: 13px; border-radius: 7px; }
.ag-chat:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.ag-chat.on { background: rgba(255,255,255,.07); color: var(--silver-hi); box-shadow: 0 0 0 1px var(--line) inset; }
/* rename and delete are always there (faint), clearer on hover and on the open chat */
/* rename and delete: real buttons with a comfortable click area, silver, delete turns red */
.ag-act { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--ink-2); opacity: .7; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s, opacity .15s, border-color .15s; }
.ag-chat:hover .ag-act, .ag-chat.on .ag-act, .ag-act:focus-visible { opacity: 1; }
.ag-act:hover { background: rgba(255,255,255,.1); border-color: var(--line-2); color: var(--ink); }
.ag-del:hover, .ag-del:focus-visible { background: rgba(255,90,90,.16); border-color: rgba(255,110,110,.45); color: #ff8a8a; }
@media (hover: none) { .ag-act { opacity: 1; } }
.ag-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); box-shadow: var(--shadow); overflow: hidden; }
.ag-log { flex: 1; overflow-y: auto; padding: 28px clamp(16px, 4vw, 48px) 12px; display: flex; flex-direction: column; gap: 22px; }
.ag-msg { display: flex; gap: 12px; max-width: 820px; width: 100%; margin: 0 auto; animation: rise .3s ease; }
.ag-msg.user { justify-content: flex-end; }
.ag-bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: 1px solid var(--line-2); white-space: pre-wrap; line-height: 1.5; }
.ag-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; margin-top: 2px;
  background: radial-gradient(circle at 35% 30%, #fff, #c9ccd2 35%, #6f747d 75%, #2a2b30); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 18px rgba(230,233,240,.35); }
.ag-avatar.thinking { animation: orb 1.4s ease-in-out infinite; }
@keyframes orb { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 0 30px rgba(240,243,248,.75); transform: scale(1.06); } }
.ag-parts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ag-md { line-height: 1.6; color: var(--ink-2); }
.ag-md p { margin: 0 0 10px; } .ag-md p:last-child { margin-bottom: 0; }
.ag-md b { color: var(--silver-hi); font-weight: 600; }
.ag-md h4 { margin: 12px 0 6px; font-size: 14.5px; color: var(--ink); }
.ag-md ul, .ag-md ol { margin: 0 0 10px; padding-left: 20px; } .ag-md li { margin: 3px 0; }
.ag-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); padding: 5px 12px 5px 9px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.ag-tool .spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .7s linear infinite; }
.ag-tool.done .spin { animation: none; border: 0; background: rgba(127,224,176,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' stroke='%237fe0b0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.ag-tool.err { color: var(--bad); border-color: rgba(255,123,123,.35); }
.ag-tool.err .spin { background: rgba(255,123,123,.2); }
@keyframes spin { to { transform: rotate(360deg); } }
.ag-typing { display: flex; gap: 5px; padding: 10px 0; }
.ag-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); animation: blink 1.2s infinite; }
.ag-typing i:nth-child(2) { animation-delay: .15s; } .ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.ag-err { color: #ffd0d0; background: rgba(255,123,123,.08); border: 1px solid rgba(255,123,123,.3); border-radius: 12px; padding: 10px 13px; font-size: 13px; }
.ag-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset; }
.ag-card-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.ag-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ag-chart text { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.ag-chart .grid { stroke: rgba(255,255,255,.07); }
.ag-chart .glow { filter: drop-shadow(0 0 5px rgba(235,238,245,.6)); }
.ag-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.ag-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ag-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ag-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 2px; }
.ag-stat .l { font-size: 12px; color: var(--muted); }
.ag-stat .v { font-size: 26px; font-weight: 600; letter-spacing: -.035em; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-stat .n { font-size: 12px; color: var(--good); }
.ag-posts { display: flex; flex-direction: column; gap: 8px; }
.ag-post { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); transition: border-color .15s; }
a.ag-post[href]:hover { border-color: rgba(255,255,255,.3); }
.ag-score { flex: none; min-width: 58px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #0a0a0d; background: var(--brushed); padding: 5px 8px; border-radius: 9px; box-shadow: 0 1px 0 #fff inset; }
.ag-pbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-pbody b { font-weight: 500; line-height: 1.35; }
.ag-why { font-size: 12px; color: var(--ink-2); }
.ag-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.ag-idea { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(240px 120px at 100% 0%, rgba(230,233,240,.08), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.ag-num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.ag-idea b { font-weight: 600; line-height: 1.35; }
.ag-hook { margin: 0; font-size: 13px; color: var(--ink-2); font-style: italic; }
.ag-idea p.muted { margin: 0; }
.ag-idea-f { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.ag-open { padding: 5px 10px; font-size: 12px; }
.ag-empty { margin: auto; text-align: center; max-width: 600px; padding: 20px 0; }
.ag-orb { display: block; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9ccd2 30%, #6f747d 70%, #1d1e22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 40px rgba(230,233,240,.45), 0 0 120px rgba(220,224,232,.2); animation: orb 3s ease-in-out infinite; }
.ag-empty h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 600; background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-empty p { margin: 0 0 22px; }
.ag-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ag-sugg button { border-radius: 99px; padding: 8px 14px; color: var(--ink-2); }
.ag-composer { display: flex; align-items: flex-end; gap: 8px; margin: 8px clamp(12px, 3vw, 40px) 0; padding: 8px 8px 8px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); transition: border-color .15s, box-shadow .15s; }
.ag-composer:focus-within { border-color: rgba(230,233,240,.5); box-shadow: 0 0 0 4px rgba(215,218,224,.07), 0 0 40px -12px rgba(230,233,240,.35); }
.ag-composer textarea { border: 0; background: transparent; padding: 8px 0; resize: none; max-height: 180px; box-shadow: none; }
.ag-composer textarea:focus { box-shadow: none; background: transparent; }
#ag-send { width: 38px; height: 38px; padding: 0; border-radius: 11px; font-size: 17px; flex: none; }
.ag-fine { text-align: center; font-size: 11.5px; color: var(--faint); margin: 8px 16px 12px; }
@media (max-width: 900px) {
  .agent { grid-template-columns: 1fr; height: auto; }
  .ag-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ag-side #ag-new { width: auto; } .ag-label { display: none; }
  .ag-chats { flex-direction: row; overflow-x: auto; flex: 1 1 100%; gap: 6px; padding-bottom: 4px; }
  .ag-chat { flex: none; max-width: 240px; border: 1px solid var(--line); }
  .ag-main { height: calc(100vh - 200px); min-height: 320px; }
  .ag-bubble { max-width: 90%; }
}
main:has(#v-agent.on) { padding-bottom: 24px; }
/* mascot */
.nav-mascot { width: 20px; height: 20px; flex: none; margin: -2px -1px -2px -2px; filter: drop-shadow(0 0 6px rgba(230,233,240,.35)); }
img.ag-avatar { background: none; box-shadow: none; border-radius: 0; width: 34px; height: 34px; margin-top: -2px; filter: drop-shadow(0 4px 10px rgba(220,224,232,.25)); }
img.ag-avatar.thinking { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
img.ag-orb { background: none; box-shadow: none; border-radius: 0; width: 120px; height: 120px; margin-bottom: 8px; animation: none; filter: drop-shadow(0 18px 40px rgba(220,224,232,.28)); }

/* =========================================================
   Ollie: action cards, notices, pictures, memory
   ========================================================= */
.ag-card-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
button.done { background: rgba(127,224,176,.12) !important; color: var(--good) !important; border-color: rgba(127,224,176,.4) !important; box-shadow: none !important; }
/* drafts */
.ag-drafts { display: flex; flex-direction: column; gap: 12px; }
.ag-draft { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 9px; }
.ag-draft-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ag-draft-text { background: rgba(0,0,0,.35); line-height: 1.55; font-size: 14px; }
.ag-draft-meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 12px; flex-wrap: wrap; }
.ag-draft-meta .e, .check .e { color: var(--bad); } .ag-draft-meta .w { color: var(--warn); } .ag-draft-meta .ok { color: var(--good); }
.ag-draft-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ag-draft-f > .muted { margin-right: auto; }
.ag-note { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.ag-slides { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ag-slides li { counter-increment: s; position: relative; aspect-ratio: 4/5; border-radius: 10px; padding: 26px 12px 12px; font-size: 12.5px; line-height: 1.4; font-weight: 500;
  background: radial-gradient(120% 80% at 80% 0%, rgba(235,238,245,.14), transparent 60%), linear-gradient(160deg, #1a1b20, #0b0b0e); border: 1px solid var(--line-2); overflow: hidden; }
.ag-slides li::before { content: counter(s); position: absolute; top: 8px; left: 10px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
/* plan */
.ag-plan { display: flex; flex-direction: column; }
.ag-plan-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ag-plan-row:last-child { border-bottom: 0; }
.ag-plan-when { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); padding: 8px 4px; height: fit-content; }
.ag-plan-when b { font-size: 13px; } .ag-plan-when span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ag-plan-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ag-plan-body b { font-weight: 500; }
.ag-plan-body details summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ag-plan-body details p { margin: 6px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--ink-2); background: rgba(0,0,0,.3); border-radius: 10px; padding: 10px 12px; }
/* checklist */
.ag-sum { margin: -4px 0 10px; color: var(--ink-2); font-size: 13.5px; }
.ag-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-check li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.22); }
.ag-check li div { display: flex; flex-direction: column; gap: 2px; }
.ag-check li b { font-weight: 500; }
.ag-check li div span { font-size: 12.5px; color: var(--muted); }
.ag-check .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ag-check .good .ic { background: rgba(127,224,176,.12); color: var(--good); box-shadow: 0 0 0 1px rgba(127,224,176,.3) inset; }
.ag-check .good .ic::before { content: "\2713"; }
.ag-check .fix .ic { background: rgba(233,196,106,.12); color: var(--warn); box-shadow: 0 0 0 1px rgba(233,196,106,.3) inset; }
.ag-check .fix .ic::before { content: "!"; }
.ag-check .tip .ic { background: rgba(255,255,255,.07); color: #fff; box-shadow: 0 0 0 1px var(--line-2) inset; }
.ag-check .tip .ic::before { content: "\2605"; font-size: 11px; }
.ag-check em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding-top: 3px; }
/* replies */
.ag-reply { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; transition: opacity .2s; }
.ag-reply:last-child { margin-bottom: 0; }
.ag-reply-c p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.ag-reply.sent { border-color: rgba(127,224,176,.35); }
.ag-reply.skipped { opacity: .4; }
.ag-reply.skipped .ag-send-reply, .ag-reply.skipped .ag-skip, .ag-reply.sent .ag-skip { display: none; }
/* goals */
.ag-goal { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ag-goal:last-child { border-bottom: 0; }
.ag-goal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-goal-h b { font-weight: 500; }
.ag-goal-h span { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.ag-meter { width: 100%; height: 8px; }
.okc { color: var(--good); } .warnc { color: var(--warn); }
.small-btn { padding: 3px 9px; font-size: 11.5px; }
/* notices */
.ag-notices { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin: 0 auto 22px; text-align: left; }
.ag-notices:empty { display: none; }
.ag-notices .ag-label { margin: 0 0 2px 4px; }
.ag-notice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line-2); }
.ag-notice:hover { border-color: rgba(255,255,255,.35); }
.ag-notice-i { font-size: 20px; }
.ag-notice span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-notice small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-notice .arr { color: var(--muted); }
/* pictures */
.ag-attach { width: 38px; height: 38px; padding: 0; border-radius: 11px; flex: none; display: grid; place-items: center; border: 0; }
.ag-attach svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ag-composer { padding-left: 6px; }
.ag-preview { display: flex; align-items: center; gap: 10px; margin: 8px clamp(12px, 3vw, 40px) 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 12.5px; color: var(--ink-2); }
.ag-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.ag-preview span { flex: 1; }
.ag-preview button { padding: 2px 10px; }
.ag-thumb { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-bottom: 8px; }
/* memory */
.ag-memory { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-align: left; padding: 9px 10px; }
.ag-memory img { width: 22px; height: 22px; }
.ag-mem { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(560px, calc(100% - 32px)); }
.ag-mem::backdrop { background: rgba(3,3,5,.7); backdrop-filter: blur(6px); }
.ag-mem form { border-radius: 20px; padding: 24px; border: 1px solid var(--line-2); background: radial-gradient(340px 160px at 50% 0%, rgba(230,233,240,.1), transparent 70%), #0e0e12; box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 4px; max-height: 86vh; overflow-y: auto; }
.ag-mem-h { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ag-mem-h img { width: 56px; height: 56px; }
.ag-mem-h h3 { margin: 0 0 4px; font-size: 17px; }
.ag-mem-h p { margin: 0; }
.ag-mem .ag-label { margin: 8px 0 6px; }
.ag-mem .chip { padding-right: 4px; }
.ag-mem-f { margin: 16px 0 0; }

/* plan and AI usage */
.ag-usage { color: var(--ink-2); }
.ag-usage.low { color: var(--warn); }
.plan-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin: 6px 0 12px; }
.plan-meter { display: flex; flex-direction: column; gap: 7px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.row-between b { font-family: var(--mono); font-size: 12.5px; }
.plan-switch { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
.plan-switch select { width: auto; padding: 5px 30px 5px 10px; }
img.ag-orb { width: 96px; height: 96px; margin-bottom: 4px; }
.ag-empty h2 { font-size: 26px; }
.ag-empty p { margin-bottom: 18px; }

/* =========================================================
   Accounts: switcher, user box, banners, team, onboarding, admin
   ========================================================= */
.ws-switch { padding: 0 6px; margin-top: -10px; }
.ws-label { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin: 0; }
.ws-label select { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 8px 30px 8px 10px; }
.me-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.me-who { display: flex; flex-direction: column; min-width: 0; }
.me-who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-acts { display: flex; gap: 6px; }
.me-acts button { flex: 1; }
.side .safe-badge { margin-top: auto; }
#acct-banners:empty { display: none; }
.acct-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2);
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%); border: 1px solid var(--line-2); }
.acct-banner b { color: var(--ink); font-weight: 600; }
.acct-banner span { flex: 1; min-width: 200px; }
.acct-banner.bad { background: linear-gradient(90deg, rgba(255,123,123,.1), rgba(255,255,255,.015) 60%); border-color: rgba(255,123,123,.35); }
.btn-link { color: var(--silver-hi); font-weight: 500; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.st.trialing, .st.active { color: var(--good); } .st.past_due, .st.incomplete { color: var(--warn); } .st.canceled { color: var(--bad); }
.st.awaiting_client { color: var(--info); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list { display: flex; flex-direction: column; margin-bottom: 14px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row.on b { color: var(--silver-hi); }
.list-row b { font-weight: 500; }
.media-row { display: flex; gap: 8px; }
.media-row input { flex: 1; }
.pf-preview img, .pf-preview video { max-width: 220px; max-height: 220px; border-radius: 10px; border: 1px solid var(--line-2); display: block; }
/* onboarding */
.welcome { max-width: 680px; margin: 10px auto 0; text-align: center; }
.welcome-mascot { width: 110px; height: 110px; filter: drop-shadow(0 18px 40px rgba(220,224,232,.28)); }
.welcome h1 { margin-top: 10px; }
.welcome-steps { list-style: none; padding: 0; margin: 28px 0 10px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.welcome-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.welcome-steps li b { font-weight: 600; }
.welcome-steps li p { margin: 3px 0 10px; }
.welcome-steps li.done { opacity: .65; }
.welcome-steps li.done p { margin-bottom: 0; }
.welcome-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.welcome-steps li.done .n { background: rgba(127,224,176,.12); color: var(--good); border-color: rgba(127,224,176,.35); }
.welcome-steps .n img { width: 30px; height: 30px; }
.welcome-steps .inline-form { margin: 0; }
.welcome-f { justify-content: center; }
body[data-role="client"] .side .safe-badge { display: none; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .me-box, .ws-switch { display: none; } }

/* site health (owner dashboard) */
.health-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.health-head img { width: 48px; height: 48px; }
.health-head h3 { margin: 0 0 4px; }
.health-head p { margin: 0; }
.health-head > div { flex: 1; }
.health-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.health-dot.ok { background: var(--good); box-shadow: 0 0 0 4px rgba(127,224,176,.15), 0 0 14px var(--good); }
.health-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(233,196,106,.15), 0 0 14px var(--warn); }
.health-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(255,123,123,.15), 0 0 14px var(--bad); animation: blink 1.4s infinite; }
.incident { border: 1px solid rgba(233,196,106,.35); background: rgba(233,196,106,.06); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.incident.critical { border-color: rgba(255,123,123,.45); background: rgba(255,123,123,.07); }
.incident p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* help: Ollie's answer to a problem report */
#help-ollie.thinking { animation: bob 1s ease-in-out infinite; }
.help-reply { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.03); line-height: 1.6; color: var(--ink-2); }
.help-reply p { margin: 0 0 10px; }
.help-actions { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.help-actions li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--good); }
.help-actions li::before { content: "\2713"; font-weight: 700; }
.report { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.report:last-child { border-bottom: 0; }
.report-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report p { margin: 2px 0; }
.pill.warn { color: var(--warn); border-color: rgba(233,196,106,.4); }
.pill.ok { color: var(--good); border-color: rgba(127,224,176,.4); }

/* my account */
.stack-form { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.stack-form label { margin-bottom: 8px; }
.stack-form button { align-self: flex-start; }
.btn-like { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; background: rgba(255,255,255,.04); }
.btn-like:hover { background: rgba(255,255,255,.08); color: var(--ink); }

/* calendar: several pictures = Instagram carousel */
.pf-preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-item { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.pf-item img, .pf-item video { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; max-height: none; border: 0; border-radius: 0; }
.pf-n { position: absolute; left: 5px; top: 5px; font-family: var(--mono); font-size: 10px; background: rgba(0,0,0,.7); color: #fff; padding: 1px 6px; border-radius: 99px; }
.pf-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 14px; line-height: 1; background: rgba(0,0,0,.7); border: 0; }
.pf-note { flex-basis: 100%; }

/* ----- connect buttons (welcome + what works for me) ----- */
.cn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.cn-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; color: #0b0c0e; text-decoration: none; border: 0;
  background: linear-gradient(180deg, #fff, #cfd2d8); box-shadow: 0 8px 24px rgba(220,224,232,.18); }
.cn-btn:hover { color: #0b0c0e; filter: brightness(1.05); }
.cn-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cn-btn .dot { width: 10px; height: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
.welcome-steps li.wl-main { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
.wl-sugg { margin-bottom: 8px; }
.wl-sugg .chip { cursor: pointer; }

/* ----- what works for me ----- */
.pr-mascot { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 10px 26px rgba(220,224,232,.25)); }
.pr-mascot.thinking { animation: pr-bob 1.6s ease-in-out infinite; }
@keyframes pr-bob { 50% { transform: translateY(-6px); } }
.pr-connect, .pr-scanning { text-align: center; padding: 34px 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pr-connect h3, .pr-scanning h3 { margin: 10px 0 2px; }
.pr-connect .cn-row { justify-content: center; }
.pr-steps { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pr-steps li { color: var(--muted, #8d929b); padding-left: 22px; position: relative; }
.pr-steps li::before { content: '○'; position: absolute; left: 0; }
.pr-steps li.now { color: var(--ink); font-weight: 600; }
.pr-steps li.now::before { content: '●'; animation: pr-blink 1s infinite; }
@keyframes pr-blink { 50% { opacity: .3; } }
.pr-old { opacity: .45; pointer-events: none; margin-top: 18px; }
.pr-hero { display: flex; gap: 18px; align-items: center; }
.pr-summary { font-size: 18px; line-height: 1.45; margin: 0; }
.pr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.pr-facts .panel p { margin: 4px 0 8px; }
.pr-l { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8d929b); margin-bottom: 6px; }
.pr-h { font-size: 19px; margin: 30px 0 10px; }
.pr-accs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pr-acc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pr-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.pr-nums b { display: block; font-size: 20px; }
.pr-nums span { font-size: 12px; color: var(--muted, #8d929b); }
.pr-outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pr-out { display: flex; flex-direction: column; gap: 6px; }
.pr-out-h { display: flex; align-items: center; gap: 12px; }
.pr-score { font-size: 28px; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #9da2ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-text { margin: 4px 0 0; white-space: pre-line; }
.pr-why { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pr-why img { width: 26px; height: 26px; flex: none; }
.pr-why p { margin: 0; }
.pr-out .chips { margin-top: 2px; }
.pr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pr-list .panel p { margin: 4px 0 0; }
.pr-dd { display: flex; gap: 12px; }
.pr-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); }
.pr-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pr-var { display: flex; flex-direction: column; gap: 6px; }
.pr-var p { margin: 0; }
.pr-hook { font-style: italic; }
.pr-var .pr-write { align-self: flex-start; margin-top: auto; }
.pr-topics .chip button[disabled] { opacity: .6; }
@media (max-width: 640px) {
  .pr-hero { flex-direction: column; text-align: center; }
  .pr-nums { grid-template-columns: repeat(2, 1fr); }
  .pr-summary { font-size: 16px; }
}

/* ----- my growth ----- */
#gr-top { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
#gr-top > .kpis { margin: 0; }
.gr-hero { display: flex; align-items: center; gap: 34px; padding: 28px 32px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.10), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.gr-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(220,224,232,.12), transparent 70%); pointer-events: none; }
.gr-ring { position: relative; width: 168px; height: 168px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.gr-ring:hover { transform: scale(1.03); transition: transform .2s; }
.gr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gr-ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.gr-ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 8px rgba(230,232,236,.35)); }
.gr-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.gr-lv { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.gr-ring-in b { font-size: 46px; line-height: 1; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #a9aeb7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-badge-emo { font-size: 48px; line-height: 1.05; margin-top: 2px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.gr-badge-emo .tier-img { width: 52px; height: 52px; }
.gr-lvn { font-size: 12px; font-weight: 600; margin-top: 4px; max-width: 64%; text-align: center; line-height: 1.2; }
.gr-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.gr-count { font-size: clamp(44px, 7vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #9ea3ac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-delta { margin-top: 6px; font-weight: 600; }
.gr-delta.up { color: var(--ink); }
.gr-delta.down { color: var(--bad); }
.gr-next { margin-top: 16px; }
.gr-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 10px 0 22px; }
.gr-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8d929b, #ffffff); box-shadow: 0 0 14px rgba(230,232,236,.4); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.gr-bar span { position: absolute; top: 15px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.gr-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gr-chart-head h3 { margin: 0; }
.gr-ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.gr-seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.gr-seg button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.gr-seg button.on { background: rgba(255,255,255,.10); color: var(--ink); }
.gr-chart { position: relative; width: 100%; }
.gr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gr-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.gr-ax { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.gr-line { fill: none; stroke: var(--hi); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gr-draw 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes gr-draw { to { stroke-dashoffset: 0; } }
.gr-area { opacity: 0; animation: gr-fade .9s .5s forwards; }
@keyframes gr-fade { to { opacity: 1; } }
.gr-end { fill: var(--hi); stroke: #0b0c0e; stroke-width: 2; animation: gr-pulse 2s infinite; }
@keyframes gr-pulse { 50% { r: 7; } }
.gr-mile { stroke: rgba(255,255,255,.35); stroke-dasharray: 4 5; }
.gr-mile-t { fill: var(--ink); font-size: 11px; font-weight: 600; }
.gr-cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.gr-hdot { fill: #fff; stroke: #0b0c0e; stroke-width: 2; }
.gr-hit { cursor: crosshair; touch-action: pan-y; }
.gr-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 11px; border-radius: 10px; background: rgba(14,15,18,.95); border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0,0,0,.5); white-space: nowrap; }
.gr-tip b { font-size: 16px; font-variant-numeric: tabular-nums; }

.gr-road { display: flex; overflow-x: auto; padding: 8px 2px 4px; }
.gr-stop { flex: 1 0 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; position: relative; }
.gr-stop::before { content: ''; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.1); z-index: 0; }
.gr-stop:first-child::before { display: none; }
.gr-stop.done::before, .gr-stop.next::before { background: linear-gradient(90deg, #cfd2d8, #8d929b); }
.gr-node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 6px;
  font-family: var(--mono); font-size: 12px; background: #141518; border: 2px solid rgba(255,255,255,.12); color: var(--muted); }
.gr-stop.done .gr-node { background: linear-gradient(180deg, #fff, #b9bdc5); color: #0b0c0e; border-color: transparent; font-size: 18px; font-weight: 700; }
.gr-stop.next .gr-node { color: var(--ink); border-color: transparent;
  background: conic-gradient(#e6e8ec calc(var(--p) * 1%), rgba(255,255,255,.1) 0) border-box; box-shadow: 0 0 0 4px rgba(230,232,236,.08), 0 0 22px rgba(230,232,236,.25); animation: gr-glow 2.4s infinite; }
.gr-stop.next .gr-node::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #141518; z-index: -1; }
@keyframes gr-glow { 50% { box-shadow: 0 0 0 7px rgba(230,232,236,.05), 0 0 30px rgba(230,232,236,.35); } }
.gr-stop:not(.done):not(.next) { opacity: .45; }

.gr-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.gr-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.gr-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.gr-badge .gr-emo { font-size: 28px; filter: grayscale(1); opacity: .35; margin-bottom: 4px; }
.gr-badge b { font-size: 12.5px; }
.gr-badge:not(.on) b { color: var(--muted); }
.gr-badge.on { border-color: var(--line-2); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.12), rgba(255,255,255,.02)); }
.gr-badge.on .gr-emo { filter: none; opacity: 1; text-shadow: 0 6px 18px rgba(255,255,255,.25); }
.gr-rh-sum { margin: 0 0 12px; }
.gr-heat-wrap { display: flex; gap: 6px; }
.gr-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.gr-days span { height: 14px; line-height: 14px; }
.gr-heat { display: flex; gap: 3px; flex: 1; }
.gr-wk { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; flex: 1; }
.gr-c { display: inline-block; height: 14px; min-width: 10px; border-radius: 3px; background: rgba(255,255,255,.06); }
.gr-c.l1 { background: rgba(230,232,236,.35); }
.gr-c.l2 { background: rgba(230,232,236,.65); }
.gr-c.l3 { background: #f2f3f5; box-shadow: 0 0 8px rgba(255,255,255,.35); }
.gr-c.lf { background: transparent; border: 1px dashed rgba(255,255,255,.08); }
.gr-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; }
.gr-legend .gr-c { width: 12px; min-width: 12px; height: 12px; }

/* celebration */
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
.celebrate { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.72); backdrop-filter: blur(6px); animation: gr-fade .3s forwards; opacity: 0; }
.celebrate[hidden] { display: none; }
.celebrate-card { max-width: 420px; width: 100%; text-align: center; padding: 34px 28px 28px; border-radius: 24px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.14), rgba(20,21,24,.98) 60%); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: gr-pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes gr-pop { from { transform: scale(.8) translateY(20px); opacity: 0; } }
.celebrate-mascot { width: 96px; height: 96px; animation: pr-bob 1.6s ease-in-out infinite; filter: drop-shadow(0 14px 34px rgba(230,232,236,.35)); }
.celebrate-card h2 { font-size: 28px; margin: 4px 0 8px; letter-spacing: -.02em; }
.celebrate-card .primary { margin-top: 12px; }

@media (max-width: 860px) { .gr-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .gr-hero { flex-direction: column; text-align: center; gap: 16px; padding: 22px 18px; }
  .gr-ring { width: 136px; height: 136px; }
  .gr-ring-in b { font-size: 34px; }
  .gr-badge-emo { font-size: 36px; } .gr-badge-emo .tier-img { width: 40px; height: 40px; }
  .gr-lvn { font-size: 10.5px; max-width: 60%; }
  .gr-chart-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-line, .gr-area, .gr-end, .gr-stop.next .gr-node, .celebrate-mascot, .celebrate-card { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .gr-ring-fg, .gr-bar i { transition: none; }
}
#gr-top[hidden] { display: none; }
@media (max-width: 640px) { #gr-top .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } #gr-top .kpi .v { font-size: 24px; } }

#gr-badges .pr-l { margin: 4px 0 10px; }

/* badges: how to get each one, always visible */
.gr-badges { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gr-badge { gap: 4px; padding: 14px 10px 12px; justify-content: flex-start; }
.gr-how { font-size: 11.5px; line-height: 1.35; color: var(--ink); opacity: .78; }
.gr-how-l { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 2px; }
.gr-badge.on .gr-how { opacity: .6; }
.gr-got { margin-top: auto; padding-top: 6px; font-size: 11.5px; font-weight: 600; color: #8ee6a8; }
.gr-prog { display: block; width: 80%; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: auto; overflow: hidden; }
.gr-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8d929b, #fff); }
.gr-pt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

@keyframes mega-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mega-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #f3d27a; margin-top: 8px; animation: mega-up .6s .5s both; }
.mega-num { margin: 4px 0 0; font-size: clamp(42px, 9vw, 84px); line-height: .95; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fffbe6 10%, #f3c94f 55%, #a8700f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(243,201,79,.45)); animation: mega-pop .8s .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes mega-pop { from { transform: scale(.3); opacity: 0; } }
.mega-sub { margin: 4px 0 0; font-size: 18px; font-weight: 700; letter-spacing: .02em; animation: mega-up .6s .9s both; }
.mega-text { max-width: 440px; margin: 10px 0 18px; color: #d8dbe0; animation: mega-up .6s 1.1s both; }
@keyframes mega-up { from { transform: translateY(16px); opacity: 0; } }
.mega-btn { padding: 14px 26px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; color: #2a1c00; cursor: pointer;
  background: linear-gradient(180deg, #fff3c4, #f0c24e); box-shadow: 0 10px 34px rgba(243,201,79,.4); animation: mega-up .6s 1.3s both; }
.mega-btn:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) {
  .mega-kicker, .mega-num, .mega-sub, .mega-text, .mega-btn { animation: none !important; }
}
.gr-two { grid-template-columns: 1fr; }

/* ----- Viral Games ----- */
.vg-join { display: flex; gap: 26px; align-items: center; padding: 26px 28px; margin-bottom: 16px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(243,201,79,.14), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.vg-join-art { position: relative; width: 110px; height: 110px; flex: none; }
.vg-join-art img { width: 88px; height: 88px; position: absolute; left: 0; bottom: 0; }
.vg-trophy { position: absolute; right: -6px; top: -6px; font-size: 44px; filter: drop-shadow(0 6px 18px rgba(243,201,79,.45)); animation: pr-bob 2s ease-in-out infinite; }
.vg-join-main h3 { margin: 0 0 4px; font-size: 20px; }
.vg-join-main p { margin: 0 0 10px; }
.vg-shown { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.vg-me { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; }
.vg-me-rank { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding-right: 22px; border-right: 1px solid var(--line); }
.vg-me-rank b { font-size: 40px; line-height: 1; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #a9aeb7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vg-me-main { flex: 1; min-width: 0; }
.vg-me-main p { margin: 4px 0 0; }
.vg-me-name { display: block; font-size: 18px; }
.vg-me-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.vg-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; max-width: 640px; margin: 10px auto 18px; }
.vg-pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; position: relative; min-width: 0; }
.vg-pod-name { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.vg-pod-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vg-crown { position: absolute; top: -40px; font-size: 30px; animation: pr-bob 1.8s ease-in-out infinite; filter: drop-shadow(0 4px 14px rgba(243,201,79,.5)); }
.vg-step { width: 100%; margin-top: 10px; border-radius: 14px 14px 4px 4px; display: grid; place-items: start center; padding-top: 10px; border: 1px solid var(--line-2); }
.vg-step span { font-size: 26px; font-weight: 800; color: rgba(0,0,0,.55); }
.p1 .vg-step { height: 120px; background: linear-gradient(180deg, #fff3c4, #e2ad35 70%, #8f5c0c); box-shadow: 0 0 40px rgba(243,201,79,.25); }
.p2 .vg-step { height: 88px; background: linear-gradient(180deg, #ffffff, #c9cdd4 70%, #767b84); }
.p3 .vg-step { height: 64px; background: linear-gradient(180deg, #ffe0c2, #d38c52 70%, #6e3a17); }
.vg-pod.me .vg-pod-name::after { content: ' (you)'; color: var(--muted); font-weight: 400; }

.vg-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0b0c0e;
  background: radial-gradient(circle at 35% 30%, #fff, #c4c8cf 60%, #7d828b); }
.vg-av.lg { width: 64px; height: 64px; font-size: 20px; box-shadow: 0 0 0 3px #141518, 0 0 0 5px var(--ring, #cfd2d8); }
.p1 .vg-av.lg { --ring: #f3c94f; width: 76px; height: 76px; font-size: 24px; }
.p3 .vg-av.lg { --ring: #d38c52; }

.vg-list { padding: 6px 8px; }
.vg-row { display: grid; grid-template-columns: 34px 34px minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.vg-row + .vg-row { border-top: 1px solid var(--line); }
.vg-row.me { background: rgba(255,255,255,.07); border: 1px solid var(--line-2); }
.vg-rank { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; }
.vg-name { display: flex; flex-direction: column; min-width: 0; }
.vg-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-name .dot { width: 7px; height: 7px; margin-left: 2px; }
.vg-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.vg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8d929b, #fff); }
.vg-val { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.vg-gap { text-align: center; color: var(--muted); padding: 4px; }
.vg-foot { text-align: center; margin-top: 10px; }
@media (max-width: 640px) {
  .vg-join { flex-direction: column; text-align: center; padding: 22px 18px; }
  .vg-shown { text-align: left; }
  .vg-me { flex-wrap: wrap; }
  .vg-me-act { flex-direction: row; width: 100%; justify-content: space-between; }
  .vg-row { grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 8px; }
  .vg-bar { display: none; }
  .vg-av.lg { width: 50px; height: 50px; font-size: 16px; } .p1 .vg-av.lg { width: 58px; height: 58px; }
  .vg-pod-val { font-size: 16px; }
}

/* Ollie: starter buttons sit just above the input, always visible */
.ag-starters { justify-content: center; margin: 0 clamp(12px, 3vw, 40px); padding: 10px 0 2px; border-top: 1px solid var(--line); }
.ag-starters[hidden] { display: none; }
.ag-starters button { padding: 6px 12px; font-size: 12.5px; }
.ag-empty { padding: 8px 0; }
img.ag-orb { width: 72px; height: 72px; }
.ag-empty h2 { font-size: 24px; }
.ag-empty p { margin-bottom: 8px; }
/* all starter buttons always visible: they wrap, never scroll sideways */
.ag-starters { flex-wrap: wrap; overflow: visible; }
@media (max-width: 640px) {
  .ag-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ag-starters button { padding: 7px 8px; font-size: 12px; white-space: normal; line-height: 1.2; }
}

/* log out: account menu in the top bar on narrow screens, and a button on the account page */
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-mobile { display: none; }
@media (max-width: 800px) {
  .side { position: sticky; }
  .me-mobile { display: block; position: absolute; top: 12px; right: 16px; z-index: 30; }
  .me-menu-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0b0c0e;
    background: radial-gradient(circle at 35% 30%, #fff, #c4c8cf 60%, #7d828b); border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.4); }
  .me-menu { position: absolute; right: 0; top: 46px; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2);
    background: rgba(16,17,20,.98); box-shadow: 0 18px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; }
  .me-menu[hidden] { display: none; }
  .me-menu-who { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .me-menu-who span { overflow: hidden; text-overflow: ellipsis; }
  .me-menu a, .me-menu button { text-align: left; padding: 10px; border-radius: 9px; border: 0; background: none; color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: none; }
  .me-menu a:hover, .me-menu button:hover { background: rgba(255,255,255,.07); }
  .me-menu .me-menu-out { color: #ffb4b4; }
}

/* mobile: wide tables scroll inside their box; the consent sentence reads as one line of text */
#limits { overflow-x: auto; max-width: 100%; }
.chk.consent { display: block; line-height: 1.5; }
.chk.consent input { margin: 0 8px 0 0; vertical-align: -2px; }

/* Viral Games: profile pictures */
img.vg-av { object-fit: cover; background: #1a1b1f; }
.vg-pic { display: block; margin-top: 10px; font-size: 13px; }
.vg-me-who { display: flex; align-items: center; gap: 10px; margin-top: 2px; }

/* ===== Viral Games v2: level-up track + leaderboard table ===== */
.vg-join-form { display: flex; gap: 8px; flex-wrap: wrap; }
.vg-join-form input { flex: 1 1 180px; } .vg-join-form select { flex: 0 1 220px; width: auto; }
.vg-hero { padding: 26px 28px 20px; margin-bottom: 16px; text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.vg-title { margin: 0; font-size: 26px; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #a9aeb7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vg-sub { margin: 6px 0 0; }
.vg-track { position: relative; height: 112px; margin: 18px 6px 6px; }
.vg-tier { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vg-tl { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vg-te { font-size: 26px; line-height: 1; filter: grayscale(1) opacity(.45); transition: filter .3s, transform .3s; }
.vg-tier.got .vg-tl { color: var(--ink); }
.vg-tier.got .vg-te { filter: none; transform: scale(1.08); text-shadow: 0 6px 16px rgba(255,255,255,.25); }
.vg-bar { position: absolute; left: 0; right: 0; top: 66px; height: 12px; border-radius: 99px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); overflow: hidden; }
.vg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6f747d, #e8eaee 85%, #fff); box-shadow: 0 0 16px rgba(230,232,236,.4); }
.vg-you { position: absolute; top: 56px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.vg-you img, .vg-you span { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0b0c0e;
  background: radial-gradient(circle at 35% 30%, #fff, #c4c8cf 60%, #7d828b); box-shadow: 0 0 0 3px #0b0c0e, 0 0 0 5px #e8eaee, 0 6px 18px rgba(0,0,0,.5); }
.vg-you b { font-size: 12px; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid var(--line-2); }
.vg-goal { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.vg-goal-l { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.vg-emo { font-size: 17px; margin-left: 4px; }
.vg-cat { width: auto; min-width: 190px; border-radius: 99px; padding: 8px 34px 8px 14px; }
.vg-mine { text-align: left; margin-top: 10px; }
.vg-mine .linkish { font-size: inherit; color: var(--ink-2); }
.vg-av.sm { width: 30px; height: 30px; font-size: 11px; }

.vg-table { padding: 6px 10px; overflow: hidden; }
.vg-tr { display: grid; grid-template-columns: 56px minmax(0, 1fr) 90px 130px 100px; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; }
.vg-tr + .vg-tr { border-top: 1px solid var(--line); }
.vg-th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.vg-tr.me { background: rgba(255,255,255,.07); border: 1px solid var(--line-2); }
.vg-c-best, .vg-c-gain, .vg-c-fol { text-align: right; font-variant-numeric: tabular-nums; }
.vg-c-gain { display: flex; flex-direction: column; align-items: flex-end; }
.vg-c-gain b { color: var(--good); font-weight: 600; }
.vg-c-gain small { font-size: 11.5px; color: var(--muted); }
.vg-c-fol { font-weight: 600; }
.vg-c-best { color: var(--ink-2); }
.vg-c-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* the name gets its own line and may wrap; status, You and category sit on the line below, so nothing is cut off */
.vg-who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.vg-who b { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: 15px; }
.vg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.vg-meta .vg-emo { font-size: 16px; line-height: 1; }
.vg-meta .pill { margin: 0; }
.vg-folx { display: none; }
/* medium screens: followers and best post move under the name instead of squeezing the name */
@media (max-width: 1180px) {
  .vg-tr { grid-template-columns: 48px minmax(0, 1fr) 130px; }
  .vg-c-best, .vg-c-fol { display: none; }
  .vg-folx { display: inline; }
}
.vg-c-user .vg-av { width: 40px; height: 40px; font-size: 13px; }
.vg-rankn { display: inline-block; width: 30px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.vg-medal { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 800; color: rgba(0,0,0,.65); }
.vg-medal::after { content: ''; position: absolute; bottom: -7px; left: 50%; width: 14px; height: 10px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); background: inherit; filter: brightness(.8); z-index: -1; }
.vg-medal.m1 { background: linear-gradient(180deg, #fff3c4, #e2ad35); box-shadow: 0 0 18px rgba(243,201,79,.35); }
.vg-medal.m2 { background: linear-gradient(180deg, #ffffff, #b9bdc5); }
.vg-medal.m3 { background: linear-gradient(180deg, #ffe0c2, #c47f45); }
@media (max-width: 760px) {
  .vg-hero { padding: 20px 14px 16px; }
  .vg-title { font-size: 21px; }
  .vg-track { height: 104px; margin: 14px 10px 4px; }
  .vg-tl { font-size: 10.5px; } .vg-te { font-size: 21px; }
  .vg-tr { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; }
  .vg-c-best, .vg-c-fol { display: none; }
  .vg-folx { display: inline; }
  .vg-c-user .vg-av { width: 34px; height: 34px; }
  .vg-cat { min-width: 0; width: 100%; }
}

/* new status tier: the emoji takes over the screen */
.tierup { --tier: #f3c94f; position: fixed; inset: 0; z-index: 997; display: grid; place-items: center; padding: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--tier) 22%, #0b0c0e), #050506 68%); animation: gr-fade .35s forwards; opacity: 0; }
.tierup[hidden] { display: none; }
.tierup-glow { position: absolute; left: 50%; top: 40%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tier) 18%, transparent) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 50%); mask: radial-gradient(circle, #000 0, transparent 50%); animation: mega-spin 26s linear infinite; }
.tierup-stage { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 460px; }
.tierup-emoji-wrap { position: relative; width: min(46vw, 34vh, 220px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; }
.tierup-emoji { font-size: min(30vw, 22vh, 150px); line-height: 1; filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--tier) 60%, transparent));
  animation: tier-in 1.1s cubic-bezier(.2,1.6,.35,1) both, tier-float 3s 1.2s ease-in-out infinite; }
@keyframes tier-in { 0% { transform: scale(0) rotate(-35deg); opacity: 0; } 60% { transform: scale(1.3) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes tier-float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.tierup-ring { position: absolute; inset: 10%; border-radius: 50%; border: 3px solid var(--tier); opacity: 0; animation: tier-ring 1.4s .35s ease-out both; }
.tierup-ring.r2 { animation-delay: .7s; }
@keyframes tier-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.tierup-title { margin: 4px 0 6px; font-size: clamp(34px, 8vw, 56px); font-weight: 800; letter-spacing: -.03em; animation: mega-pop .7s .5s cubic-bezier(.2,1.6,.4,1) both;
  background: linear-gradient(180deg, #fff 20%, var(--tier)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tierup .mega-kicker { color: var(--tier); }
.tierup-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; animation: mega-up .6s 1.1s both; }
.tierup-acts .mega-btn { text-decoration: none; background: linear-gradient(180deg, #fff, var(--tier)); }
@media (prefers-reduced-motion: reduce) { .tierup-glow, .tierup-emoji, .tierup-ring, .tierup-title, .tierup-acts { animation: none !important; opacity: 1; } .tierup-ring { display: none; } }

/* tier pictures (the golden platypus has no emoji) */
.tier-img { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.2em; }
.vg-te .tier-img { height: 28px; vertical-align: middle; }
.vg-tier:not(.got) .tier-img { filter: grayscale(1) opacity(.45); }
.tier-img.big { height: min(26vw, 19vh, 140px); filter: drop-shadow(0 12px 40px rgba(246,201,78,.6)); }
.tier-img.inline { height: .95em; vertical-align: -0.1em; }
@media (max-width: 760px) { .vg-te .tier-img { height: 22px; } }

.tierup-rarity { margin-top: 10px; padding: 4px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #0b0c0e;
  background: linear-gradient(180deg, #fff, var(--tier)); box-shadow: 0 0 22px color-mix(in srgb, var(--tier) 55%, transparent); animation: mega-pop .6s .45s cubic-bezier(.2,1.6,.4,1) both; }
.tierup .mega-text b { color: #fff; }

/* statuses as collectible cards */
.gr-statuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.gr-status { --tier: #cfd2d8; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 10px 12px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); overflow: hidden; }
.gr-status.on { border-color: color-mix(in srgb, var(--tier) 55%, transparent);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tier) 24%, transparent), rgba(255,255,255,.02) 70%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--tier) 18%, transparent); }
.gr-st-rar { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px;
  color: var(--muted); border: 1px solid var(--line-2); }
.gr-status.on .gr-st-rar { color: #0b0c0e; border-color: transparent; background: linear-gradient(180deg, #fff, var(--tier)); }
.gr-st-emo { font-size: 40px; line-height: 1.15; margin: 6px 0 2px; filter: grayscale(1) opacity(.3); }
.gr-status.on .gr-st-emo { filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--tier) 55%, transparent)); }
.gr-status b { font-size: 13px; }
.gr-status:not(.on) b { color: var(--muted); }
.gr-st-at { font-size: 11px; color: var(--muted); }
.gr-status .gr-got { color: var(--tier); }
.gr-status .gr-prog { width: 80%; margin-top: 6px; }
@media (max-width: 640px) { .gr-statuses { grid-template-columns: repeat(2, 1fr); } }

.tier-img.card { height: 44px; margin: 4px 0; }
.gr-status:not(.on) .tier-img { filter: grayscale(1) opacity(.3); }

/* ===== Viral Games: weekly leagues ===== */
.vg-mode { margin: 0 0 16px; }
.vg-mode button { font-size: 13px; padding: 8px 14px; }
.lg-hero { --lg: #f3c94f; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 26px; margin-bottom: 12px; position: relative; overflow: hidden;
  background: radial-gradient(70% 160% at 0% 50%, color-mix(in srgb, var(--lg) 22%, transparent), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.lg-emblem { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 54px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lg) 40%, #fff 10%), color-mix(in srgb, var(--lg) 12%, #0b0c0e) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lg) 50%, transparent), 0 0 40px color-mix(in srgb, var(--lg) 35%, transparent); }
.lg-emblem span { animation: pr-bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.lg-main h2 { margin: 4px 0 6px; font-size: 30px; letter-spacing: -.02em; background: linear-gradient(180deg, #fff 20%, var(--lg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-main p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.lg-count { min-width: 190px; }
.lg-clock { display: flex; gap: 6px; margin: 6px 0 10px; }
.lg-clock div { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); }
.lg-clock b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lg-clock span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lg-weekbar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.lg-weekbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--lg) 50%, #6f747d), var(--lg)); }

.lg-you { --lg: #f3c94f; display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 12px; border-color: color-mix(in srgb, var(--lg) 35%, transparent); }
.lg-you-rank { flex: none; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #0b0c0e;
  background: linear-gradient(180deg, #fff, var(--lg)); box-shadow: 0 0 24px color-mix(in srgb, var(--lg) 35%, transparent); }
.lg-you b { font-size: 17px; }
.lg-you p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; font-size: 14px; }

.lg-path { padding: 18px 20px 20px; margin-bottom: 12px; }
.lg-path-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lg-nodes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.lg-nodes::before, .lg-nodes::after { content: ''; position: absolute; top: 26px; left: 8.33%; height: 3px; border-radius: 99px; }
.lg-nodes::before { right: 8.33%; background: rgba(255,255,255,.08); }
.lg-nodes::after { width: calc((100% - 16.66%) * var(--done)); background: linear-gradient(90deg, #d38c52, #f3c94f, #7fe3ff); }
.lg-path { --done: 0; }
.lg-node { --lg: #cfd2d8; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lg-node-e { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #141518; border: 2px solid var(--line-2); }
.lg-node:not(.on):not(.done) .lg-node-e { filter: grayscale(1); opacity: .45; }
.lg-node.done .lg-node-e { border-color: color-mix(in srgb, var(--lg) 60%, transparent); }
.lg-node.on .lg-node-e { border-color: var(--lg); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lg) 35%, #1a1b1f), #141518 75%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lg) 15%, transparent), 0 0 26px color-mix(in srgb, var(--lg) 45%, transparent); transform: scale(1.1); }
.lg-node b { font-size: 12px; color: var(--muted); }
.lg-node.on b { color: var(--ink); }
.lg-here { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0b0c0e; padding: 2px 8px; border-radius: 99px; background: linear-gradient(180deg, #fff, var(--lg)); }

.lg-how { padding: 0; margin-bottom: 12px; }
.lg-how summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.lg-how summary::-webkit-details-marker { display: none; }
.lg-how summary::after { content: '+'; font-size: 20px; color: var(--muted); }
.lg-how[open] summary::after { content: '–'; }
.lg-steps { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lg-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.lg-steps b { color: var(--ink); }
.lg-step-i { font-size: 22px; line-height: 1; }

.lg-tr { grid-template-columns: 56px minmax(0, 1fr) 150px; }
.lg-tr.z-up { box-shadow: inset 3px 0 0 #7fe0a0; }
.lg-tr.z-down { box-shadow: inset 3px 0 0 #ff7b7b; }
.lg-line { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 10px; color: var(--muted); border-top: 1px dashed var(--line-2); }
.lg-line.up { color: #7fe0a0; border-top-color: rgba(127,224,160,.5); }
.lg-line.down { color: #ff9b9b; border-top-color: rgba(255,123,123,.5); }
.lg-line + .vg-tr { border-top: 0; }
@media (max-width: 760px) {
  .lg-hero { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
  .lg-emblem { width: 72px; height: 72px; font-size: 40px; }
  .lg-main h2 { font-size: 24px; }
  .lg-count { grid-column: 1 / -1; min-width: 0; }
  .lg-you { padding: 14px; gap: 14px; } .lg-you-rank { min-width: 54px; height: 54px; font-size: 22px; }
  .lg-node-e { width: 42px; height: 42px; font-size: 22px; } .lg-nodes::before, .lg-nodes::after { top: 20px; }
  .lg-node b { font-size: 10.5px; }
  .lg-tr { grid-template-columns: 30px minmax(0, 1fr) auto; }
}
@media (max-width: 1000px) { .lg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .lg-steps { grid-template-columns: 1fr; } }

/* ===== Trend radar: luxury hero, spotlight, suggestions ===== */
.rd-hero { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px 30px; margin-bottom: 14px; overflow: hidden; position: relative;
  background: radial-gradient(60% 140% at 0% 50%, rgba(127,224,176,.10), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.rd-scope { position: relative; width: 230px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, rgba(127,224,176,.08), rgba(0,0,0,.55) 70%); box-shadow: inset 0 0 0 1px rgba(127,224,176,.25), 0 0 50px rgba(127,224,176,.12); }
.rd-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(127,224,176,.18); transform: translate(-50%, -50%); }
.rd-ring.r1 { width: 33%; height: 33%; } .rd-ring.r2 { width: 66%; height: 66%; } .rd-ring.r3 { width: 99%; height: 99%; }
.rd-cross { position: absolute; inset: 0; background: linear-gradient(rgba(127,224,176,.14), rgba(127,224,176,.14)) center / 1px 100% no-repeat, linear-gradient(rgba(127,224,176,.14), rgba(127,224,176,.14)) center / 100% 1px no-repeat; }
.rd-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(127,224,176,.45), rgba(127,224,176,0) 70deg, transparent 360deg); animation: rd-spin 4s linear infinite; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: #7fe0b0; box-shadow: 0 0 14px #7fe0b0; }
.rd-blip { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #7fe0b0, 0 0 20px #7fe0b0; animation: rd-blip 4s linear infinite; }
@keyframes rd-blip { 0%, 100% { opacity: .3; transform: scale(1); } 8% { opacity: 1; transform: scale(1.7); } 40% { opacity: .6; transform: scale(1); } }
.rd-status h2 { margin: 6px 0 6px; font-size: 28px; letter-spacing: -.02em; background: linear-gradient(180deg, #fff 20%, #a9aeb7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-status p { margin: 0 0 16px; line-height: 1.5; }
.rd-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7fe0b0; }
.rd-live i { width: 8px; height: 8px; border-radius: 50%; background: #7fe0b0; box-shadow: 0 0 10px #7fe0b0; animation: pr-blink 1.6s infinite; }
.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.rd-stat { padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); min-width: 0; }
.rd-stat b { display: block; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rd-stat.hot { border-color: rgba(255,170,90,.45); background: radial-gradient(120% 100% at 0% 0%, rgba(255,150,70,.16), rgba(0,0,0,.3)); }
.rd-stat.hot b { color: #ffc38a; }
.rd-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.rd-sec-h .sub { margin: 0; }
.rd-spot { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rd-spot-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,170,90,.35);
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,150,70,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); box-shadow: 0 0 30px rgba(255,140,60,.08); }
.rd-spot-top { display: flex; align-items: center; gap: 12px; color: var(--ink-2); line-height: 1.3; }
.rd-spot-score { font-size: 34px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(180deg, #fff3d6, #ff9a4a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-spot-t { margin: 0; font-size: 15px; line-height: 1.45; }
.rd-spot-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-spot-card .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding: 0; border: 0; }
.rd-suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.02); }
.rd-suggest[hidden] { display: none; }
.rd-suggest img { width: 26px; height: 26px; }
.rd-suggest .chip { cursor: pointer; }
@media (max-width: 860px) {
  .rd-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px; }
  .rd-scope { width: 180px; }
  .rd-stats { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .rd-acts { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .rd-sweep, .rd-blip, .rd-live i { animation: none; } }

/* ===== Trend radar: content language ===== */
.rd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rd-lang { display: inline-flex; flex-direction: row; width: auto; margin: 0; white-space: nowrap; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 12.5px; cursor: pointer; }
.rd-lang select { background: transparent; border: 0; color: var(--ink); font: inherit; font-weight: 600; padding: 2px 4px; cursor: pointer; outline: none; }
.rd-lang select option { background: #141518; color: var(--ink); }
.rd-lang:hover { border-color: rgba(255,255,255,.28); }
.rd-lang select { width: auto; min-width: 0; }
@media (max-width: 760px) { .rd-top { justify-content: center; } }

/* ===== Post this today ===== */
.td-card { position: relative; overflow: hidden; padding: 22px 24px; margin-bottom: 12px;
  background: radial-gradient(80% 140% at 100% 0%, rgba(255, 205, 110, .14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border-color: rgba(255, 215, 140, .25); }
.td-head { display: flex; align-items: center; gap: 14px; }
.td-head h3 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.01em; }
.td-head .pill { margin-left: auto; }
.td-sun { font-size: 34px; filter: drop-shadow(0 4px 16px rgba(255, 200, 90, .5)); animation: pr-bob 3.5s ease-in-out infinite; }
.td-hook { margin: 16px 0 12px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); }
.td-l { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f0c972; }
.td-hook p { margin: 6px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.td-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.td-why { margin: 0 0 10px; color: var(--ink-2); line-height: 1.5; }
.td-cap summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.td-cap p { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); line-height: 1.55; font-size: 14px; }
.td-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.td-load { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.td-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: #f0c972; animation: td-rot 1s linear infinite; }
@keyframes td-rot { to { transform: rotate(360deg); } }

/* ===== Best time to post ===== */
#gr-besttime { margin-bottom: 12px; }
.bt-sum { margin: 0 0 14px; color: var(--ink-2); }
.bt-grid { display: grid; grid-template-columns: 42px repeat(5, minmax(0, 1fr)); gap: 5px; align-items: center; }
.bt-h { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.bt-h small { display: block; font-size: 10px; opacity: .7; }
.bt-d { font-size: 12px; color: var(--muted); }
.bt-c { display: inline-block; height: 26px; min-width: 14px; border-radius: 7px; background: rgba(255, 210, 120, calc(.08 + var(--v, 0) / 100 * .82)); border: 1px solid rgba(255,255,255,.04); }
.bt-c.none { background: rgba(255,255,255,.03); }
.bt-c.best { box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 210, 120, .6); }
.gr-legend .bt-c { height: 12px; width: 14px; vertical-align: middle; }

/* ===== Hook tester ===== */
.studio .ht-panel { grid-column: 1 / -1; }
.ht-in { width: 100%; margin-bottom: 8px; }
.ht-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; margin-top: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.ht-row.win { border-color: rgba(255, 215, 140, .45); background: radial-gradient(90% 140% at 0% 0%, rgba(255, 205, 110, .12), transparent 60%); }
.ht-score { --s: 50; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#f0c972 calc(var(--s) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.ht-score::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #111214; }
.ht-score b { position: relative; font-size: 17px; }
.ht-body { min-width: 0; }
.ht-crown { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f0c972; }
.ht-hook { margin: 2px 0 4px; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.ht-better { margin: 6px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ht-better span { color: #7fe0a0; font-weight: 700; }
.ht-tip { margin: 12px 0 0; color: var(--ink-2); }

/* ===== Old hits ===== */
.oh-panel { margin-top: 14px; }
.oh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.oh-card { display: flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); min-width: 0; }
.oh-card img, .oh-ph { flex: none; width: 78px; height: 98px; border-radius: 10px; object-fit: cover; background: #15161a; display: grid; place-items: center; }
.oh-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.oh-body p { margin: 0; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oh-score { font-size: 12px; font-weight: 700; color: #f0c972; }

/* ===== Weekly challenges ===== */
.ch-panel { margin-bottom: 14px; background: radial-gradient(70% 140% at 0% 0%, rgba(127, 224, 160, .1), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.ch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ch-head h3 { margin: 4px 0 0; font-size: 19px; }
.ch-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ch-streak { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 140, 60, .15); color: #ffb37a; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.ch-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.ch-card.done { border-color: rgba(127, 224, 160, .45); }
.ch-card.done .gr-prog i { background: linear-gradient(90deg, #5fc985, #7fe0a0); }
.ch-ico { font-size: 24px; }
.ch-n { font-size: 12px; font-weight: 700; color: var(--muted); }

/* ===== Invite a friend ===== */
.inv-panel { margin-bottom: 16px; background: radial-gradient(80% 140% at 100% 0%, rgba(255, 205, 110, .13), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); border-color: rgba(255, 215, 140, .25); }
.inv-hero { display: flex; gap: 14px; align-items: flex-start; }
.inv-hero h3 { margin: 0 0 4px; font-size: 19px; }
.inv-hero p { margin: 0; }
.inv-gift { font-size: 38px; animation: pr-bob 3s ease-in-out infinite; }
.inv-link { display: flex; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.inv-link input { flex: 1 1 220px; min-width: 0; font-family: ui-monospace, monospace; font-size: 13px; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inv-stats div { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.inv-stats b { font-size: 22px; }
.inv-stats span { font-size: 11.5px; color: var(--muted); text-align: center; }

/* ===== Sunday email toggle ===== */
.dg-panel { margin-bottom: 12px; padding: 14px 18px; }
.dg-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; }
.dg-row input { margin-top: 3px; width: auto; }
.dg-row > span { display: flex; flex-direction: column; gap: 2px; }

/* ===== Share ===== */
.gr-share { margin-top: 6px; font-size: 11.5px; padding: 4px 10px; border-radius: 99px; }
@media (max-width: 760px) {
  .td-card { padding: 18px 16px; } .td-hook p { font-size: 16px; }
  .bt-grid { grid-template-columns: 34px repeat(5, minmax(0, 1fr)); gap: 4px; } .bt-h { font-size: 9.5px; } .bt-c { height: 22px; }
}
.ht-write { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; margin-bottom: 10px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(255, 205, 110, .12), transparent 60%), rgba(255,255,255,.02); border: 1px solid rgba(255, 215, 140, .3); }
.ht-write p { margin: 2px 0 0; }
.ht-own summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.ht-body .chip { margin-top: 4px; }

/* ===== Team & brands ===== */
.ag-pitch { display: flex; flex-direction: column; gap: 14px; }
.ag-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; border-radius: var(--r); border: 1px solid rgba(255, 215, 140, .28);
  background: radial-gradient(70% 120% at 0% 0%, rgba(255, 205, 110, .16), transparent 60%), radial-gradient(60% 100% at 100% 100%, rgba(255,255,255,.06), transparent 60%), #0e0f11; }
.ag-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #f0c972; }
.ag-copy h2 { margin: 10px 0 10px; font-size: 32px; line-height: 1.1; letter-spacing: -.025em; background: linear-gradient(180deg, #fff 30%, #f0c972); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-copy > p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.ag-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ag-price b { font-size: 34px; letter-spacing: -.02em; }
.ag-price span { color: var(--muted); font-size: 13.5px; }
.ag-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ag-mock { position: relative; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.45); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(-1.5deg); }
.ag-mock-l { position: absolute; top: -10px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: #1b1c20; color: var(--muted); border: 1px solid var(--line-2); }
.ag-mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; font-size: 13.5px; }
.ag-mock-row:first-of-type { background: rgba(255, 215, 140, .08); }
.ag-mock-row b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-mock-row span:last-child { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ag-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ag-feat { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); }
.ag-feat > span { font-size: 26px; }
.ag-feat b { display: block; margin: 8px 0 4px; font-size: 16px; }
.ag-feat p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.ag-compare { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.ag-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 11px 16px; font-size: 13.5px; border-top: 1px solid var(--line); }
.ag-row:first-child { border-top: 0; }
.ag-row > span:not(:first-child), .ag-row > b { text-align: center; }
.ag-th { background: rgba(255,255,255,.03); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ag-gold { color: #f0c972; font-weight: 600; }

.tm-av { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink);
  background: linear-gradient(180deg, #2a2c31, #17181b); border: 1px solid var(--line-2); }
.tm-av.gold { background: radial-gradient(circle at 35% 30%, rgba(255, 220, 140, .55), #2a2210 75%); border-color: rgba(255, 215, 140, .4); font-size: 18px; }
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tm-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.tm-stat > span { font-size: 18px; }
.tm-stat b { font-size: 24px; letter-spacing: -.02em; }
.tm-stat b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.tm-stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.tm-brands, .tm-people { display: flex; flex-direction: column; gap: 6px; }
.tm-brand, .tm-person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid transparent; }
.tm-brand:hover, .tm-person:hover { background: rgba(255,255,255,.025); }
.tm-brand.on { border-color: rgba(255, 215, 140, .3); background: rgba(255, 215, 140, .05); }
.tm-person.pending { opacity: .75; }
.tm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.tm-x { width: 28px; height: 28px; padding: 0; border-radius: 8px; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid transparent; }
.tm-x:hover { color: #ff9b9b; border-color: rgba(255,123,123,.4); }
.tm-role { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); white-space: nowrap; }
.tm-role.r-owner { color: #f0c972; border-color: rgba(255, 215, 140, .4); }
.tm-role.r-client { color: #7fe0a0; border-color: rgba(127, 224, 160, .4); }
.tm-add, .tm-invite { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tm-add input, .tm-invite input { flex: 1 1 180px; min-width: 0; }
.tm-invite select { flex: 0 1 auto; width: auto; }
.tm-invite p { flex-basis: 100%; margin: 0; }
#approval-panel { margin-top: 14px; }
.tm-appr { display: flex; align-items: center; gap: 16px; }
.tm-appr-i { font-size: 28px; }
.tm-appr h3 { margin: 0 0 4px; }
.tm-appr p { margin: 0; }
.tm-appr > div { flex: 1; min-width: 0; }
.tm-switch { position: relative; flex: none; width: 50px; height: 28px; margin: 0; cursor: pointer; }
.tm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tm-switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .2s; pointer-events: none; }
.tm-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tm-switch input:checked + span { background: #5fc985; }
.tm-switch input:checked + span::after { transform: translateX(22px); }
.tm-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .ag-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 22px; }
  .ag-copy h2 { font-size: 26px; }
  .ag-mock { transform: none; }
  .ag-feats { grid-template-columns: minmax(0, 1fr); }
  .ag-row { padding: 10px 12px; font-size: 12.5px; }
  .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Viral posts ===== */
.fd-search { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; margin-bottom: 10px;
  background: radial-gradient(70% 140% at 0% 0%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.fd-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fd-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 16px; background: rgba(0,0,0,.4); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.fd-bar:focus-within { border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 4px rgba(255,255,255,.05); }
.fd-ico { font-size: 17px; opacity: .8; }
.fd-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 16px; box-shadow: none; outline: none; }
.fd-bar .primary { flex: none; padding: 11px 22px; border-radius: 12px; }
.fd-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-opts select { width: auto; }
.fd-l { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fd-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.fd-chips button { padding: 6px 13px; border-radius: 99px; font-size: 13px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }
.fd-chips button.on { color: #0b0c0e; font-weight: 700; border-color: transparent; background: linear-gradient(180deg, #fff, #c9ccd2); }
.fd-picks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.fd-head { margin: 4px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.fd-head b { color: var(--ink); }
.fd-q { color: var(--ink); font-weight: 600; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.06); }
.fd-best { color: #f0c972 !important; }
#v-find .item .acts .primary { flex-basis: 100%; }
.fd-intro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fd-intro > div { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.fd-intro span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; color: #0b0c0e; background: linear-gradient(180deg, #fff, #b9bdc5); }
.fd-intro b { display: block; margin: 10px 0 4px; font-size: 16px; }
.fd-intro p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.fd-saved-h { display: flex; align-items: baseline; gap: 10px; }
.fd-empty-saved { grid-column: 1 / -1; padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; }
@media (max-width: 760px) {
  .fd-search { padding: 16px; }
  .fd-intro { grid-template-columns: minmax(0, 1fr); }
  .fd-bar .primary { padding: 10px 14px; }
}
/* no picture (e.g. Instagram videos from a hashtag): a slim header instead of a big empty box */
.item .thumb:not([style*="url"]) { aspect-ratio: auto; min-height: 64px; }

/* ===== Why it worked ===== */
.why-btn.on { border-color: rgba(255, 215, 140, .5); color: #f0c972; }
.why-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 215, 140, .28); background: radial-gradient(90% 140% at 0% 0%, rgba(255, 205, 110, .1), transparent 60%), rgba(0,0,0,.3); font-size: 13.5px; line-height: 1.5; }
.why-sum { margin: 0 0 10px; color: var(--ink); font-weight: 500; }
.why-grid { display: grid; gap: 8px; }
.why-grid > div { color: var(--ink-2); }
.why-grid span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.why-borrow { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); }
.why-borrow b { color: #7fe0a0; }

/* ===== Calendar ===== */
.cal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cal-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); min-width: 0; }
.cal-stats b { font-size: 21px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-stats span { font-size: 12px; color: var(--muted); }
.cal-stats .hot { border-color: rgba(255, 190, 90, .45); background: radial-gradient(90% 140% at 0% 0%, rgba(255, 190, 90, .14), transparent 60%); }
.cal-stats .hot b { color: #ffc46b; }
.cal-week { padding: 16px 18px; margin-bottom: 16px; }
.cal-week-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-week-h b { min-width: 110px; text-align: center; }
.cal-week-h .small-btn { min-width: 32px; }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { display: flex; flex-direction: column; gap: 5px; min-height: 120px; padding: 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); min-width: 0; }
.cal-day.today { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.cal-day.past { opacity: .55; }
.cal-day.bestday:not(.past) { background: radial-gradient(100% 70% at 50% 0%, rgba(255, 210, 120, .12), transparent 70%), rgba(0,0,0,.25); }
.cal-day.bestday .cal-dh span::after { content: ' ⭐'; }
.cal-dh { display: flex; flex-direction: column; align-items: center; margin-bottom: 2px; }
.cal-dh span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cal-dh b { font-size: 18px; }
.cal-day.today .cal-dh b { color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); border-radius: 99px; padding: 0 8px; }
.cal-chip { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 4px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--ink); min-width: 0; }
.cal-chip.st-published { opacity: .7; }
.cal-chip.st-draft, .cal-chip.st-awaiting_client, .cal-chip.st-manual { border-color: rgba(255, 190, 90, .55); color: #ffc46b; }
.cal-chip.st-held { border-color: rgba(255,255,255,.25); border-style: dashed; }
.cal-add { margin-top: auto; padding: 2px; border-radius: 8px; font-size: 16px; line-height: 1.2; color: var(--muted); background: transparent; border: 1px dashed var(--line-2); opacity: .6; }
.cal-add:hover { opacity: 1; color: var(--ink); border-color: rgba(255,255,255,.4); }
.cal-tip { margin: 12px 0 0; }
.cal-sec { margin-bottom: 18px; }
.cal-sec .sub .muted { font-weight: 500; margin-left: 4px; }
.cal-done summary { list-style: none; cursor: pointer; }
.cal-done summary::-webkit-details-marker { display: none; }
.cal-done summary .sub::after { content: ' ▾'; color: var(--muted); font-size: 14px; }
.cal-post { display: flex; align-items: flex-start; gap: 14px; padding: 14px; margin-bottom: 8px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); transition: box-shadow .3s; }
.cal-post.st-draft, .cal-post.st-awaiting_client, .cal-post.st-manual { border-color: rgba(255, 190, 90, .4); }
.cal-post.st-failed { border-color: rgba(255, 123, 123, .45); }
.cal-post.flash { box-shadow: 0 0 0 2px #fff, 0 0 30px rgba(255,255,255,.2); }
.cal-when { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.cal-when b { font-size: 17px; }
.cal-when span { font-size: 11px; color: var(--muted); text-align: center; }
.cal-pic { flex: none; width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: #15161a; }
.cal-pic.none { display: grid; place-items: center; font-size: 20px; border: 1px solid var(--line); }
.cal-body { flex: 1; min-width: 0; }
.cal-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.cal-txt { margin: 2px 0 0; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.cal-acts { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cal-empty { text-align: center; padding: 30px 20px; margin-bottom: 16px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.cal-empty span { font-size: 40px; display: block; }
.cal-empty b { display: block; font-size: 18px; margin: 8px 0 4px; }
.cal-empty p { margin: 0; }
.cal-new { margin-top: 6px; }
@media (max-width: 760px) {
  .cal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-week { padding: 12px 10px; }
  .cal-days { gap: 3px; }
  .cal-day { min-height: 96px; padding: 6px 3px; border-radius: 10px; }
  .cal-dh span { font-size: 9.5px; } .cal-dh b { font-size: 15px; }
  .cal-chip { font-size: 10.5px; gap: 3px; } .cal-chip .dot { display: none; }
  .cal-post { flex-wrap: wrap; gap: 10px; }
  .cal-when { width: auto; flex-direction: row; gap: 6px; align-items: baseline; }
  .cal-pic { width: 48px; height: 58px; }
  .cal-body { flex-basis: calc(100% - 70px); }
  .cal-acts { flex-direction: row; flex-wrap: wrap; width: 100%; }
}
@media (max-width: 480px) { .cal-chip { font-size: 0; padding: 6px 0; } .cal-chip .dot { display: inline-block; margin: 0; } }

/* ===== Hot right now (Viral posts) ===== */
.hot-panel { margin-bottom: 14px; padding: 20px 22px; background: radial-gradient(70% 120% at 100% 0%, rgba(255, 190, 90, .12), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.hot-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hot-h h3 { margin: 0 0 2px; font-size: 19px; }
.hot-mode button { font-size: 13px; }
.hot-topics { display: flex; flex-direction: column; gap: 4px; }
.hot-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 12px; text-align: left; background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer; }
.hot-row:hover, .hot-row:focus-visible { background: rgba(255,255,255,.04); border-color: var(--line-2); }
.hot-rank { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.hot-row:nth-child(-n+3) .hot-rank { color: #f0c972; }
.hot-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hot-term { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.hot-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.hot-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(240, 201, 114, .55), #f0c972); }
.hot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; white-space: nowrap; }
.hot-up { color: #7fe0a0; font-weight: 700; }
.hot-new { color: #f0c972; font-weight: 700; }
.hot-flat { color: var(--muted); }
.hot-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.hot-note { margin: 8px 0 0; }
.hot-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 6px; }
.hot-tile { position: relative; overflow: hidden; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: #15161a center/cover no-repeat; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.hot-tile.big { grid-column: span 2; grid-row: span 2; }
.hot-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.8)); }
.hot-tile:hover, .hot-tile:focus-visible, .hot-tile.sel { transform: translateY(-2px); box-shadow: 0 0 0 2px #f0c972, 0 12px 30px rgba(0,0,0,.4); }
.hot-score { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; color: #0b0c0e; background: linear-gradient(180deg, #fff, #f0c972); }
.hot-tile.big .hot-score { font-size: 15px; padding: 4px 11px; }
.hot-cap { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 1; display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1.3; color: #fff; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-tile.big .hot-cap { font-size: 14px; white-space: normal; }
.hot-detail { margin-top: 12px; }
.hot-item { flex-direction: column; }
@media (max-width: 760px) {
  .hot-panel { padding: 16px; }
  .hot-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .hot-row { grid-template-columns: 22px minmax(0, 1fr); }
  .hot-side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 420px) { .hot-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hot-score.ever { background: linear-gradient(180deg, #fff, #c9ccd2); }
.hot-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hot-wall .hot-legend { grid-column: 1 / -1; margin: 4px 0 0; }
.hot-k { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 5px; vertical-align: -1px; background: linear-gradient(180deg, #fff, #c9ccd2); }
.hot-k.gold { background: linear-gradient(180deg, #fff, #f0c972); }

/* ===== Big post view ===== */
.hot-score { white-space: nowrap; }
.post-view { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: #0d0e10; color: var(--ink); overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.post-view::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.pv { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100vh - 32px); }
.pv-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid var(--line-2); color: #fff; }
.pv-media { position: relative; display: grid; place-items: center; min-height: 420px; background: #000 center/cover no-repeat; overflow: hidden; }
.pv-media::before { content: ''; position: absolute; inset: -20px; background: inherit; filter: blur(28px) brightness(.45); }
.pv-media img { position: relative; max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.pv-play { position: absolute; z-index: 2; width: 74px; height: 74px; padding: 0 0 0 6px; border-radius: 50%; font-size: 28px; color: #0b0c0e; background: rgba(255,255,255,.92); border: 0; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.pv-play:hover { transform: scale(1.06); }
.pv-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 22px; background: rgba(0,0,0,.55); border: 1px solid var(--line-2); color: #fff; }
.pv-nav.prev { left: 12px; } .pv-nav.next { right: 12px; }
.pv-info { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 20px; overflow-y: auto; min-width: 0; }
.pv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 40px; }
.pv-score { font-size: 15px; font-weight: 800; padding: 6px 14px; border-radius: 99px; color: #0b0c0e; background: linear-gradient(180deg, #fff, #f0c972); }
.pv-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.pv-stats > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pv-stats b { font-size: 19px; }
.pv-stats span { font-size: 11.5px; color: var(--muted); }
.pv-explain { margin: 0; }
.pv-cap { font-size: 14px; line-height: 1.55; color: var(--ink-2); max-height: 220px; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); overflow-wrap: anywhere; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pv-acts .primary { flex-basis: 100%; }
.pv-count { margin: 0; text-align: center; }
@media (max-width: 760px) {
  .post-view { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pv { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); max-height: 100dvh; height: 100dvh; }
  .pv-media { min-height: 0; height: 42dvh; }
  .pv-media img { max-height: 42dvh; }
  .pv-info { padding: 18px 16px 24px; }
}
.pv-stats { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.pv-stats > div { min-width: 0; }
.pv-stats span { line-height: 1.3; }
.pv-noviews { margin: -4px 0 0; }
.pv-anat > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin-top: 6px; }
.pv-anat > div > span { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line-2); min-width: 0; }
.pv-anat em { font-style: normal; font-size: 11px; color: var(--muted); }
.pv-anat b { font-size: 14px; }
/* big post view: fixed height, picture always centred and whole, the info column scrolls */
.post-view { height: min(calc(100vh - 32px), 860px); }
.post-view .pv { height: 100%; max-height: none; grid-template-rows: minmax(0, 1fr); }
.post-view .pv-media { min-height: 0; height: 100%; }
.post-view .pv-media img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.post-view .pv-info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.post-view .pv-cap { max-height: none; overflow: visible; }
@media (max-width: 760px) {
  .post-view { height: 100dvh; }
  .post-view .pv { grid-template-rows: 42dvh minmax(0, 1fr); }
  .post-view .pv-media { height: 42dvh; }
}
/* big post view v3: the picture side takes the picture's own shape, so it fills the full height with no empty areas */
.post-view { --pvh: min(calc(100vh - 32px), 860px); --side: 420px; width: auto; max-width: calc(100vw - 32px); height: var(--pvh); }
.post-view .pv { grid-template-columns: min(calc(var(--pvh) * var(--ar, 0.8)), calc(100vw - 32px - var(--side))) var(--side); width: fit-content; max-width: calc(100vw - 32px); }
.post-view .pv-media { background: #000; }
.post-view .pv-media::before { display: none; }
.post-view .pv-media img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) { .post-view { --side: 360px; } }
@media (max-width: 760px) {
  .post-view { width: 100vw; max-width: 100vw; height: 100dvh; }
  .post-view .pv { width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: min(calc(100vw / var(--ar, 0.8)), 55dvh) minmax(0, 1fr); }
  .post-view .pv-media { height: auto; }
}
/* the whole window is exactly as wide as the picture plus the info column */
.post-view { width: calc(min(var(--pvh) * var(--ar, 0.8), 100vw - 32px - var(--side)) + var(--side)); }
.post-view .pv { width: 100%; grid-template-columns: minmax(0, 1fr) var(--side); }
@media (max-width: 760px) {
  .post-view { width: 100vw; }
  .post-view .pv { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Full-screen post view ===== */
.fs-view { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.fs-view::backdrop { background: #000; }
.fs { position: relative; width: 100%; height: 100%; }
.fs-pic { position: absolute; left: 0; right: 0; top: 0; bottom: 150px; width: 100%; height: calc(100% - 150px); object-fit: contain; transition: bottom .3s, height .3s; }
.fs-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.65) 0, transparent 110px), radial-gradient(120% 60% at 50% 115%, rgba(240, 201, 114, .14), transparent 60%); }
.fs-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.fs-count { font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.fs-badges { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fs-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: 99px; font-size: 20px; font-weight: 800; color: #0b0c0e; background: linear-gradient(180deg, #fff, #f0c972); box-shadow: 0 8px 30px rgba(240, 201, 114, .3); }
.fs-score small { font-size: 12px; font-weight: 600; }
.fs-tag { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.fs-round { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 18px; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.fs-round:hover { background: rgba(255,255,255,.16); }
.fs-nav { position: absolute; z-index: 3; top: calc(50% - 95px); font-size: 26px; width: 52px; height: 52px; }
.fs-nav.prev { left: 20px; } .fs-nav.next { right: 20px; }
.fs-play { position: absolute; z-index: 3; left: 50%; top: calc(50% - 75px); transform: translate(-50%, -50%); width: 84px; height: 84px; padding: 0 0 0 7px; border-radius: 50%; border: 0; font-size: 32px; color: #0b0c0e; background: rgba(255,255,255,.92); box-shadow: 0 14px 50px rgba(0,0,0,.6); }

.fs-panel { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(820px, calc(100% - 32px)); max-height: 128px; overflow: hidden;
  padding: 26px 22px 16px; border-radius: 24px; background: rgba(16, 17, 20, .72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: max-height .35s ease; }
.fs-view.more .fs-panel { max-height: min(78dvh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.fs-view.more .fs-pic { opacity: .35; }
.fs-grip { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75); background: transparent; border: 0; }
.fs-grip:hover { color: #fff; }
.fs-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.fs-head span:last-child { color: rgba(255,255,255,.6); }
.fs-line { margin: 4px 0 0; font-size: 15px; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-view.more .fs-line { white-space: normal; }
.fs-nums { display: flex; gap: 26px; margin: 16px 0 14px; flex-wrap: wrap; }
.fs-n { display: flex; flex-direction: column; }
.fs-n b { font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.fs-n span { font-size: 12px; color: rgba(255,255,255,.6); }
.fs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-acts .primary { flex: 1 1 200px; }
.fs-panel .why-box { margin-top: 14px; }
.fs-more { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.fs-sec .pr-l { display: block; margin-bottom: 8px; }
.fs-cmp { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.fs-cmp i { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.fs-cmp i b { display: block; height: 100%; border-radius: 4px; background: rgba(255,255,255,.45); }
.fs-cmp.hot { color: #fff; font-weight: 600; }
.fs-cmp.hot i b { background: linear-gradient(90deg, rgba(240, 201, 114, .6), #f0c972); }
.fs-cmp em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.fs-sec .muted { margin: 6px 0 0; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fs-s { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.fs-s b { font-size: 17px; }
.fs-s span { font-size: 12px; color: rgba(255,255,255,.6); }
.fs-cap { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.82); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .fs-top { padding: 12px; gap: 10px; }
  .fs-score { font-size: 16px; padding: 6px 12px; } .fs-score small { display: none; }
  .fs-tag { font-size: 11px; padding: 5px 9px; }
  .fs-pic { bottom: 190px; height: calc(100% - 190px); }
  .fs-nav { top: calc(50% - 110px); width: 42px; height: 42px; } .fs-nav.prev { left: 10px; } .fs-nav.next { right: 10px; }
  .fs-panel { bottom: 0; width: 100%; border-radius: 22px 22px 0 0; padding: 24px 16px 18px; max-height: 190px; }
  .fs-nums { gap: 18px; margin: 12px 0; } .fs-n b { font-size: 21px; }
  .fs-acts button:not(.primary) { flex: 1 1 auto; }
  .fs-cmp { grid-template-columns: 1fr 56px; } .fs-cmp i { grid-column: 1 / -1; grid-row: 2; }
}
/* panel: natural height when closed (details hidden); the picture uses the space above it */
.fs-panel { max-height: none; overflow: visible; }
.fs-more { display: none; }
.fs-view.more .fs-more { display: flex; }
.fs-view.more .fs-panel { max-height: min(80dvh, 780px); overflow-y: auto; }
.fs-pic { bottom: calc(var(--panel, 220px) + 28px); height: calc(100% - var(--panel, 220px) - 28px - 70px); top: 70px; }
.fs-nav { top: calc((100% - var(--panel, 220px)) / 2 + 10px); }
.fs-play { top: calc((100% - var(--panel, 220px)) / 2 + 20px); }
@media (max-width: 760px) {
  .fs-panel { max-height: none; }
  .fs-pic { top: 60px; bottom: calc(var(--panel, 260px) + 8px); height: calc(100% - var(--panel, 260px) - 68px); }
}
.fs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* full-screen view: exact screen size (100vw counted the scrollbar and cut the left edge off) */
.fs-view { inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
/* small screens and short windows: compact panel, so the picture gets the room */
@media (max-width: 760px), (max-height: 820px) {
  .fs-top { padding: 10px 12px; }
  .fs-round { width: 38px; height: 38px; font-size: 16px; }
  .fs-score { font-size: 15px; padding: 5px 12px; } .fs-score small { display: none; }
  .fs-panel { padding: 20px 14px 12px; }
  .fs-view:not(.more) .fs-line { display: none; }
  .fs-head { font-size: 13px; }
  .fs-nums { gap: 18px; margin: 8px 0 10px; } .fs-n b { font-size: 19px; } .fs-n span { font-size: 11px; }
  .fs-acts { flex-wrap: nowrap; gap: 6px; }
  .fs-acts .primary { flex: 1 1 auto; min-width: 0; }
  .fs-acts button:not(.primary) { flex: 0 0 44px; width: 44px; padding: 0; font-size: 17px; }
  .fs-acts .fs-lbl { display: none; }
  .fs-pic { top: 56px; }
}
@media (max-width: 760px) {
  .fs-panel { bottom: 0; left: 0; right: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; }
}
/* picture runs all the way to the top (the close button and score float on top of it) */
.fs-pic { top: 0 !important; height: calc(100% - var(--panel, 220px) - 20px) !important; bottom: auto !important; }
@media (max-width: 760px) { .fs-pic { height: calc(100% - var(--panel, 220px)) !important; } }
.btn-spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; animation: td-rot .8s linear infinite; vertical-align: middle; }
.fs-acts button.done { color: #7fe0a0; border-color: rgba(127, 224, 160, .45); opacity: 1; }

/* ===== Free hook score chips ===== */
.hs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 6px; }
.hs-all { font-size: 15px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.hs-all small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.hs.good .hs-all { color: #7fe0a0; border-color: rgba(127,224,160,.45); }
.hs.ok .hs-all { color: #f0c972; border-color: rgba(240,201,114,.45); }
.hs.weak .hs-all { color: #ff9b9b; border-color: rgba(255,123,123,.45); }
.hs-c { position: relative; overflow: hidden; font-size: 11px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); cursor: help; }
.hs-c i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(240,201,114,.16); z-index: -1; }
.hs-c { z-index: 0; }
.hs-flag { font-size: 11.5px; color: #ff9b9b; }
.ht-in-w { margin-bottom: 8px; }
.ht-in-w .ht-in { margin-bottom: 0; }
.ht-live .hs { margin: 6px 0 0; }

/* ===== Hooks panel tabs + library ===== */
.hk-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.hk-tabs button { font-size: 13px; }
.hk-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.hk-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.hk-cats .chip.on { color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); border-color: transparent; }
.hk-cats .chip.on .muted { color: #33353a; }
.hk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; max-height: 720px; overflow-y: auto; padding-right: 4px; }
.hk-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.hk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hk-sc { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); }
.hk-sc.good { color: #7fe0a0; } .hk-sc.ok { color: #f0c972; } .hk-sc.weak { color: #ff9b9b; }
.hk-tpl { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.hk-tpl mark { background: rgba(240,201,114,.16); color: #f0c972; padding: 0 4px; border-radius: 5px; }
.hk-ex { margin: 0; font-size: 13px; color: var(--ink-2); font-style: italic; }
.hk-card .muted.small { margin: 0; }
.hk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hk-fill { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.hk-v { padding: 12px; border-radius: 12px; border: 1px solid rgba(240,201,114,.3); background: rgba(0,0,0,.25); }
.hk-v .ht-hook { margin: 0 0 6px; }
.hk-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12.5px; }
.hk-stack span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); }
.hk-stack em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hk-needs { margin: 4px 0; font-size: 12.5px; color: #f0c972; }

/* ===== Reel script ===== */
.st-go { gap: 8px; }
.reel-card { padding: 18px; margin-bottom: 14px; border-radius: var(--r); border: 1px solid rgba(240,201,114,.3); background: radial-gradient(80% 120% at 100% 0%, rgba(240,201,114,.1), transparent 60%), rgba(255,255,255,.02); }
.reel-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.reel-h h3 { margin: 4px 0 0; font-size: 19px; }
.reel-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.reel-hook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.reel-hook > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); }
.reel-hook em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.reel-hook b { font-size: 14.5px; line-height: 1.4; }
.reel-beats { display: flex; flex-direction: column; margin: 10px 0; border-left: 2px solid rgba(240,201,114,.35); }
.reel-beat { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px 0 10px 12px; position: relative; }
.reel-beat::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #f0c972; }
.reel-at { font-size: 12px; font-weight: 700; color: #f0c972; font-variant-numeric: tabular-nums; padding-top: 2px; }
.reel-say { margin: 0; font-size: 14.5px; font-weight: 500; }
.reel-show, .reel-text { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); }
.reel-cap summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.reel-cap p { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 14px; line-height: 1.5; }
.reel-checks { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(240,201,114,.4); font-size: 13px; }
.reel-checks ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.reel-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ===== Weekly mix (Calendar) ===== */
.cal-mix { margin-bottom: 14px; }
.mix-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.mix-part { min-width: 140px; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); }
.mix-part b { font-size: 14px; }
.mix-part span { font-size: 12px; color: var(--ink-2); }
.mix-part.found { background: rgba(127, 200, 255, .08); border-color: rgba(127, 200, 255, .3); }
.mix-part.trust { background: rgba(127, 224, 160, .08); border-color: rgba(127, 224, 160, .3); }
.mix-part.sell { background: rgba(240, 201, 114, .1); border-color: rgba(240, 201, 114, .35); }
.mix-part.extra { background: rgba(255,255,255,.04); }
.mix-note { margin: 10px 0 0; }
@media (max-width: 760px) {
  .reel-hook { grid-template-columns: minmax(0, 1fr); }
  .hk-stack { grid-template-columns: minmax(0, 1fr); }
  .reel-beat { grid-template-columns: 56px minmax(0, 1fr); }
}
/* clearer fill in the score chips: green good, gold ok, red weak */
.hs-c i { background: rgba(255,255,255,.1); }
.hs-c[data-l="good"] i { background: rgba(127, 224, 160, .28); }
.hs-c[data-l="ok"] i { background: rgba(240, 201, 114, .28); }
.hs-c[data-l="weak"] i { background: rgba(255, 123, 123, .28); }
.pr-delta { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.pr-delta.up { color: #7fe0a0; } .pr-delta.down { color: #ff9b9b; }
.vg-invite { padding: 10px 18px; font-weight: 700; white-space: nowrap; }
#v-games .head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===== Post writer v2 ===== */
.st-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 16px 20px; margin-bottom: 14px; }
.st-f { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.st-f > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-f-niche { flex: 2 1 280px; }
.st-f-lang { flex: 0 1 180px; }
.st-f-plat { flex: 1 1 220px; }
.st-plats { display: flex; gap: 6px; flex-wrap: wrap; }
.st-plats .chk { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.st-saved { flex-basis: 100%; margin-top: -4px; }
.studio2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.st-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.st-out { position: sticky; top: 12px; min-height: 320px; }
.st-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.st-step > div { flex: 1; min-width: 0; }
.st-step h3 { margin: 0 0 2px; font-size: 17px; }
.st-step p { margin: 0; }
.st-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #0b0c0e; background: linear-gradient(180deg, #fff, #b9bdc5); }
.st-idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 8px; margin: 0; }
.st-idea-grid:empty { display: none; }
.st-idea-grid .idea { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px 14px; border-radius: 14px; color: var(--ink); font: inherit; }
.st-idea-grid .idea:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.st-idea-grid .idea.on { border-color: #f0c972; background: rgba(240,201,114,.07); }
.idea b { font-size: 14px; font-weight: 600; margin: 0; }
.idea-hook { font-size: 13px; color: var(--ink); }
.idea-why { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-p { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.idea-p em { margin-left: auto; font-style: normal; font-weight: 700; color: #f0c972; }
.st-hookbox { border-color: rgba(240,201,114,.28); background: radial-gradient(80% 60% at 0% 0%, rgba(240,201,114,.07), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.st-hookbox #st-idea { width: 100%; min-height: 110px; font-size: 15.5px; line-height: 1.5; padding: 14px 16px; border-radius: 14px; resize: vertical; }
.st-go { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.st-go .primary { flex: 1 1 180px; padding: 12px 18px; font-size: 15px; }
.st-go .ghost { padding: 12px 18px; }
.st-hooks { padding-top: 16px; border-top: 1px solid var(--line); }
.st-hooks-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-hooks-h b { font-size: 15px; }
.st-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.st-empty span { font-size: 34px; }
.st-empty p { margin: 0; }

/* hook library: compact list + big result area */
.hk-list { display: flex; flex-direction: column; gap: 6px; max-height: 560px; grid-template-columns: none; }
.hk-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.hk-row:hover { border-color: var(--line-2); background: rgba(255,255,255,.035); }
.hk-row-main { flex: 1; min-width: 0; }
.hk-row-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hk-row-top b { font-size: 14px; }
.hk-row .hk-tpl { margin: 4px 0 2px; font-size: 14.5px; }
.hk-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.hk-more p { margin: 4px 0 0; }
.hk-make { flex: none; padding: 9px 14px; white-space: nowrap; }
.hk-result { margin-bottom: 14px; padding: 16px; border-radius: 16px; border: 1px solid rgba(240,201,114,.35); background: radial-gradient(80% 80% at 100% 0%, rgba(240,201,114,.08), transparent 60%), rgba(0,0,0,.3); }
.hk-res-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.hk-res-h h4 { margin: 2px 0; font-size: 17px; }
.hk-res-load { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px 0; }
.hv-list { display: flex; flex-direction: column; gap: 12px; }

/* one ready-to-use hook: phone preview + what to say, show and fill in */
.hv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); }
.hv-phone { align-self: start; }
.hv-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; padding: 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 80% at 50% 0%, rgba(240,201,114,.2), transparent 60%), linear-gradient(180deg, #1d1e22, #0b0c0e); border: 2px solid #2b2d33; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.hv-scene { font-size: 9.5px; line-height: 1.35; color: rgba(255,255,255,.55); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hv-ost { align-self: center; text-align: center; font-size: 13px; line-height: 1.15; font-weight: 900; text-transform: uppercase; color: #0b0c0e; background: #fff; padding: 5px 7px; border-radius: 6px; margin-bottom: 30%; overflow-wrap: anywhere; }
.hv-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hv-l { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f0c972; }
.hv-line { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.hv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12.5px; }
.hv-meta span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.04); color: var(--ink-2); }
.hv-meta em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hv-needs { margin: 0; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: #f0c972; background: rgba(240,201,114,.08); border: 1px dashed rgba(240,201,114,.35); }
.hv-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hv-acts .primary { flex: 1 1 150px; }
.ht-row .hv-acts { margin-top: 8px; }
@media (max-width: 1100px) { .studio2 { grid-template-columns: minmax(0, 1fr); } .st-out { position: static; } }
@media (max-width: 560px) {
  .hv { grid-template-columns: minmax(0, 1fr); }
  .hv-phone { width: 120px; justify-self: center; }
  .hv-meta { grid-template-columns: minmax(0, 1fr); }
  .hk-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .st-step { flex-wrap: wrap; }
  .st-step > button { flex-basis: 100%; }
  .st-bar { padding: 14px; }
  .st-f-lang, .st-f-plat { flex: 1 1 100%; }
}

/* ===== Post writer v3: one box, one button ===== */
.cr-box { padding: 20px 22px; margin-bottom: 16px; border-color: rgba(240,201,114,.28); background: radial-gradient(70% 90% at 0% 0%, rgba(240,201,114,.08), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.cr-box #st-idea { width: 100%; min-height: 96px; font-size: 17px; line-height: 1.5; padding: 16px 18px; border-radius: 16px; resize: vertical; }
.cr-pick { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 14px 0 12px; }
.cr-q { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-q > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cr-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); }
.cr-seg button { padding: 8px 14px; border-radius: 10px; font-size: 14px; background: transparent; border: 0; color: var(--ink-2); }
.cr-seg button:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.cr-seg button.on { color: #0b0c0e; font-weight: 700; background: linear-gradient(180deg, #fff, #c9ccd2); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.cr-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cr-foot .linkish { font-size: 14px; }
.cr-set { flex: 1 1 auto; min-width: 0; }
.cr-set summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-set summary::-webkit-details-marker { display: none; }
.cr-set[open] summary { color: var(--ink); }
.cr-set-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.cr-set-in label { margin: 0; }
.cr-set-in .muted { grid-column: 1 / -1; }
.cr-go { margin-left: auto; padding: 13px 30px; font-size: 16px; font-weight: 700; }
.cr-box .st-idea-grid { margin-top: 14px; }
.cr-loading { display: flex; align-items: center; gap: 12px; padding: 26px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); margin-bottom: 16px; }
.cr-out-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 12px; }
.cr-out-h h2 { margin: 0 0 2px; font-size: 22px; }
.cr-out-h p { margin: 0; }
.cr-grid { display: grid; gap: 14px; margin-bottom: 18px; align-items: start; }
.cr-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cr-grid.n1 { grid-template-columns: minmax(0, 760px); }
.cr-card { --g: #f0c972; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--g) 35%, transparent); background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--g) 10%, transparent), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); min-width: 0; }
.cr-card.g-found { --g: #7fc8ff; } .cr-card.g-trust { --g: #7fe0a0; } .cr-card.g-sell { --g: #f0c972; }
.cr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-goal { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--g); }
.cr-title { margin: 0; font-size: 18px; line-height: 1.3; }
.cr-angle { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.cr-hook { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.32); border: 1px solid var(--line-2); }
.cr-l { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g); }
.cr-say { margin: 6px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.cr-hook-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12.5px; }
.cr-hook-2 span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.04); color: var(--ink-2); }
.cr-hook-2 em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cr-hook .hs { margin-bottom: 0; }
.cr-scenes { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid color-mix(in srgb, var(--g) 40%, transparent); display: flex; flex-direction: column; gap: 10px; }
.cr-scenes li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
.cr-scenes li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--g); }
.cr-at { font-size: 11.5px; font-weight: 700; color: var(--g); font-variant-numeric: tabular-nums; padding-top: 1px; }
.cr-shot { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.cr-line { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.cr-txt { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.cr-cap summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cr-cap p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); }
.cr-checks { padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: #f0c972; background: rgba(240,201,114,.07); border: 1px dashed rgba(240,201,114,.35); }
.cr-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.cr-acts .primary { flex: 1 1 140px; }
.cr-when { flex: 1 1 170px; min-width: 0; }
.cr-x { display: flex; flex-direction: column; gap: 8px; }
.cr-tweet { position: relative; }
.cr-xt { width: 100%; font-size: 15.5px; line-height: 1.5; padding: 14px 16px 22px; border-radius: 16px; background: #000; border: 1px solid #2f3336; resize: vertical; }
.cr-n { position: absolute; top: -8px; left: 12px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #1d1f23; color: var(--muted); }
.cr-len { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--muted); }
.cr-len.over { color: #ff9b9b; font-weight: 700; }
.cr-why { margin: 0; font-size: 13px; color: var(--ink-2); }
.cr-tools { margin-top: 8px; }
.cr-tools > summary { cursor: pointer; font-weight: 700; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.cr-tools > summary::-webkit-details-marker { display: none; }
.cr-tools > summary::after { content: '+'; margin-left: auto; color: var(--muted); font-size: 18px; }
.cr-tools[open] > summary::after { content: '–'; }
.cr-tools[open] > summary { margin-bottom: 12px; }
.cr-tools .st-hooks { border-top: 0; padding-top: 0; }
.cr-tools .st-hooks-h { display: none; }
@media (max-width: 1150px) { .cr-grid.n3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .cr-box { padding: 14px; }
  .cr-seg { width: 100%; } .cr-seg button { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; }
  .cr-go { width: 100%; margin-left: 0; }
  .cr-set-in { grid-template-columns: minmax(0, 1fr); }
  .cr-hook-2 { grid-template-columns: minmax(0, 1fr); }
}
.cr-connect { align-self: center; margin-left: 4px; }
.cr-alt { margin-top: 8px; }
.cr-alt summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.cr-alt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cr-alt-row em { font-style: normal; margin-left: 6px; }

/* ===== Content feedback ===== */
.fb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.fb-q { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.fb-b { width: 38px; height: 34px; padding: 0; border-radius: 10px; font-size: 16px; background: transparent; border: 1px solid var(--line-2); }
.fb-b.on { border-color: #f0c972; background: rgba(240,201,114,.12); }
.fb-more { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.fb-h { margin: 0; font-size: 13px; color: var(--ink-2); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chips .chip.on { color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); border-color: transparent; }
.fb-note { width: 100%; font-size: 13.5px; }
.fb-send { align-self: flex-start; }
.fb-done { font-size: 13px; color: #7fe0a0; }

.adm-fb { margin: 14px 0; }
.adm-fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.adm-fb-sub { display: block; margin-top: 10px; }
.adm-fb-r { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.adm-fb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 420px; overflow-y: auto; }
.adm-fb-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.adm-fb-item p { margin: 4px 0; font-size: 13.5px; }
@media (max-width: 760px) { .adm-fb-grid { grid-template-columns: minmax(0, 1fr); } }
.lbl.story { color: #9fb7ff; }
.pr-var-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .pr-var-acts button { flex: 1 1 120px; }
.pr-var-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; } .pr-var-acts button { flex: 1 1 120px; }

/* ===== How you write sources + inspiration profiles ===== */
.pr-voice .vc-open { margin-top: 10px; }
.pr-exp { display: block; margin-top: 10px; }
.vc-box { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vc-box textarea, .vc-box input { width: 100%; }
.vc-hint { margin: 0; }
.vc-hint:empty { display: none; }
.vc-box .small-btn { align-self: flex-start; }
.vc-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.vc-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.03); font-size: 13px; }
.vc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-inspo { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.pr-inspo > p { margin: 0; }
.ins-add { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.ins-add input, .ins-add textarea { width: 100%; }
.ins-tr summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.ins-tr textarea { margin-top: 8px; }
.ins-add .primary { align-self: flex-start; }
.ins-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.ins-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255,255,255,.02); opacity: .7; }
.ins-card.on { opacity: 1; border-color: rgba(240,201,114,.35); background: radial-gradient(80% 60% at 0% 0%, rgba(240,201,114,.07), transparent 60%), rgba(255,255,255,.02); }
.ins-h { display: flex; align-items: center; gap: 10px; }
.ins-h b { font-size: 15.5px; }
.ins-h .tm-switch { margin-left: auto; }
.ins-card > p { margin: 0; font-size: 14px; }
.ins-grid { display: grid; gap: 6px; font-size: 13px; }
.ins-grid span { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.04); color: var(--ink-2); }
.ins-grid em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ins-borrow { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.ins-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.ins-acts .muted { margin-right: auto; }

.vc-listen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(240,201,114,.07); border: 1px solid rgba(240,201,114,.3); }
.vc-off { margin: 0; }

/* what kind of content you make */
.pr-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pr-type { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.pr-type.top { border-color: rgba(235,238,245,.45); box-shadow: 0 0 0 1px rgba(235,238,245,.15), 0 0 28px -14px rgba(230,233,240,.6); }
.pr-type-i { font-size: 24px; line-height: 1; }
.pr-type b { font-size: 14px; }

/* what Ollie saw when he watched a Reel */
.pr-seen { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(0,0,0,.25); font-size: 13px; }
.pr-seen summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.pr-seen p { margin: 8px 0 0; line-height: 1.45; }
.pr-scenes { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* our own confirm / text boxes (replace the browser's confirm and prompt) */
.ask-dlg { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(440px, calc(100% - 32px)); }
.ask-dlg::backdrop { background: rgba(3,3,5,.7); backdrop-filter: blur(6px); }
.ask-box { border-radius: 18px; padding: 22px; border: 1px solid var(--line-2); background: radial-gradient(300px 140px at 50% 0%, rgba(230,233,240,.1), transparent 70%), #0e0e12; box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 12px; }
.ask-box h3 { margin: 0; font-size: 18px; }
.ask-box p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.ask-box .ask-in { width: 100%; }
.ask-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Ask Ollie welcome: compact, so it fits the panel without scrolling */
.ag-log:has(> .ag-empty) { padding-top: 16px; padding-bottom: 8px; }
.ag-empty { padding: 0; }
img.ag-orb { width: 64px; height: 64px; margin: 0 auto 6px; }
.ag-empty h2 { font-size: 24px; margin-bottom: 6px; }
.ag-empty p { font-size: 14px; line-height: 1.45; margin: 0 auto 16px; max-width: 520px; }
.ag-notices { gap: 6px; margin-bottom: 0; }
.ag-notice { padding: 9px 12px; border-radius: 12px; }
.ag-notice-i { font-size: 17px; }
.ag-notice b { font-size: 14px; }
@media (max-height: 860px) {
  img.ag-orb { width: 52px; height: 52px; margin-bottom: 4px; }
  .ag-empty h2 { font-size: 21px; }
  .ag-empty p { margin-bottom: 12px; }
}
@media (max-height: 740px) {
  img.ag-orb { width: 42px; height: 42px; }
  .ag-empty p { display: none; }
  .ag-notices .ag-notice ~ .ag-notice { display: none; } /* just the newest one on short screens */
  .ag-starters { padding-top: 6px; }
}

/* the side menu never makes the whole page scroll: it scrolls by itself on short screens, and tightens up */
.side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
@media (max-height: 820px) {
  .side { gap: 14px; padding-top: 16px; padding-bottom: 12px; }
  .side nav a, .side nav button { padding-top: 6px; padding-bottom: 6px; }
}
/* the chat column may shrink to the window; the log scrolls inside it when a chat gets long */
.ag-main, .ag-log { min-height: 0; }
@media (max-height: 740px) {
  /* suggestions in one row you can swipe, instead of three rows */
  .ag-starters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .ag-starters::-webkit-scrollbar { display: none; }
  .ag-starters button { flex: none; }
}

/* Ask Ollie: the conversation gets the room */
/* account banners (trial, confirm email) shrink to slim lines here, and step aside on short screens */
main:has(#v-agent.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-agent.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
@media (max-height: 820px) { main:has(#v-agent.on) #acct-banners { display: none; } }
/* slimmer composer and fine print */
.ag-composer { padding: 4px 5px 4px 12px; border-radius: 14px; margin-top: 6px; }
.ag-composer textarea { padding: 7px 0; }
#ag-send { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.ag-fine { margin: 5px 16px 8px; font-size: 11px; }
/* less empty space around the messages */
.ag-log:not(:has(> .ag-empty)) { padding-top: 16px; gap: 16px; }
@media (max-width: 900px) {
  .ag-log { padding-left: 12px; padding-right: 12px; }
  .ag-composer { margin-left: 10px; margin-right: 10px; }
}
@media (max-width: 900px) { main:has(#v-agent.on) { padding-bottom: 10px; } .agent { min-height: 0; gap: 10px; } }
/* narrow screens: New chat, your chats and "What Ollie knows" share one row you can swipe */
@media (max-width: 900px) {
  .ag-side { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 2px; }
  .ag-side::-webkit-scrollbar { display: none; }
  .ag-side > * { flex: none; }
  .ag-side .ag-chats { flex: none; overflow: visible; padding-bottom: 0; }
  .ag-side #ag-new, .ag-side .ag-memory { padding: 7px 12px; font-size: 12.5px; white-space: nowrap; margin: 0; }
  .ag-chat { padding: 4px 4px 4px 10px; }
  .ag-chat .ag-ct { -webkit-line-clamp: 1; max-width: 170px; }
}

/* Ask Ollie: action buttons, simpler / deeper, Reel review, mood */
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ag-actions button { border-radius: 99px; padding: 8px 14px; font-size: 13px; }
.ag-more { display: none; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ag-more button { border-radius: 99px; padding: 5px 11px; font-size: 12px; color: var(--muted); }
.ag-more button:hover { color: var(--ink); }
#ag-log > .ag-msg.bot:last-child .ag-more { display: flex; }
.ag-review { display: flex; flex-direction: column; gap: 12px; }
.rv-head { display: flex; gap: 16px; align-items: center; }
.rv-score { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 2px solid var(--line-2); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), rgba(0,0,0,.3)); }
.rv-score b { font-size: 28px; line-height: 1; } .rv-score span { font-size: 11px; color: var(--muted); }
.rv-score.good { border-color: rgba(127,224,160,.7); box-shadow: 0 0 28px -8px rgba(127,224,160,.6); }
.rv-score.mid { border-color: rgba(243,201,79,.7); }
.rv-score.low { border-color: rgba(255,123,123,.6); }
.rv-verdict { margin: 4px 0; font-weight: 600; line-height: 1.4; }
.rv-hook { margin: 0; color: var(--ink-2); font-size: 14px; }
.rv-sec { display: flex; flex-direction: column; gap: 6px; }
.rv-fixes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rv-fixes li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.rv-fixes li div { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.rv-fixes li span:not(.rv-at) { color: var(--ink-2); }
.rv-at { flex: none; font-family: var(--mono); font-size: 11.5px; padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.08); color: var(--ink); }
.rv-keep { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.rv-caption { width: 100%; }
.ag-preview .ag-vid { font-size: 26px; }
.agent[data-mood="up"] .ag-msg.bot:last-child .ag-avatar { animation: ollie-hop .9s ease-in-out 2; }
.agent[data-mood="up"] .ag-orb { filter: drop-shadow(0 0 18px rgba(243,201,79,.55)); }
.agent[data-mood="down"] .ag-orb { animation-duration: 6s; }
@keyframes ollie-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .agent[data-mood="up"] .ag-msg.bot:last-child .ag-avatar { animation: none; } }

/* talk to Ollie: mic (red and pulsing with your voice while recording), read-aloud toggle */
.ag-mic.rec { background: rgba(255,90,90,.18); box-shadow: 0 0 0 calc(2px + var(--lvl, 0) * 10px) rgba(255,110,110,.22); }
.ag-mic.rec svg { stroke: #ff8a8a; }
.ag-mic:disabled { opacity: .5; }
.ag-speak svg .w1, .ag-speak svg .w2 { opacity: .25; }
.ag-speak.on svg { stroke: var(--ink); }
.ag-speak.on svg .w1, .ag-speak.on svg .w2 { opacity: 1; }
.ag-speak.on { background: rgba(255,255,255,.08); }
.ag-voicebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px clamp(12px, 3vw, 40px) 0; padding: 6px 8px 6px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.ag-voicebar button { padding: 4px 10px; font-size: 12px; }
.ag-say.on { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 900px) { .ag-voicebar { margin-left: 10px; margin-right: 10px; } }


/* ===== Comments, redesigned ===== */
main { min-width: 0; } /* the page never gets wider than the window (long rows scroll inside themselves) */
#v-inbox .toolbar { flex-wrap: wrap; gap: 8px; }
#v-inbox .toolbar .seg { flex-wrap: wrap; }
.inbox { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.inbox > * { min-width: 0; }
.ib-list { height: var(--ib-h, auto); max-height: var(--ib-h, calc(100vh - 230px)); gap: 6px; padding: 2px 6px 8px 2px; }
/* a row: avatar · who + when + importance · two lines of the comment · labels · the post */
.ib-row { flex-direction: row; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 14px; }
.ib-row.closed { opacity: .6; }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ib-row .ib-top { gap: 8px; }
.ib-who { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ib-when { font-size: 11.5px; color: var(--muted); margin-left: auto; flex: none; }
.ib-row .prio { flex: none; min-width: 26px; padding: 1px 6px; font-size: 10.5px; }
.ib-row .ib-text { font-size: 13.5px; color: var(--ink-2); }
.ib-meta .lbl { font-size: 10.5px; }
.ib-rowpost { flex: none; align-self: center; }
.ib-rowpost .pt-img { width: 38px; height: 38px; border-radius: 8px; opacity: .9; }
/* round initials for people (no photos of other people are stored) */
.ib-av { --h: 220; position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h) 22% 42%), hsl(var(--h) 18% 22%)); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset; }
.ib-av .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid #101014; margin: 0; }
.ib-av.lg { width: 46px; height: 46px; font-size: 18px; }
/* the open comment: header · body (scrolls) · reply box (stays at the bottom) */
.ib-detail { position: relative; top: 0; height: var(--ib-h, auto); max-height: var(--ib-h, none); padding: 0; gap: 0; overflow: hidden; display: flex; flex-direction: column; }
.ibd-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ibd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ibd-who b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibd-open { flex: none; font-size: 12.5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; }
.ibd-open:hover { color: var(--ink); border-color: rgba(255,255,255,.35); }
.ibd-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ibd-quote { margin: 0; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line-2); font-size: 16.5px; line-height: 1.5; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ibd-post { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.ibd-post-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ibd-cap { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ibd-cap.open { display: block; max-height: 260px; overflow-y: auto; }
.ibd-post-f { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ibd-post-f a, .ibd-post-f .linkish { font-size: 12.5px; }
.ib-ai { border-top: 0; padding-top: 0; display: flex; flex-direction: column; gap: 8px; }
.ibd-ai-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ib-ai #ib-sugg { gap: 8px; }
.ib-ai .sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ib-ai .sugg:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.ib-ai .sugg-tone { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ib-ai .sugg em { font-style: normal; font-size: 12px; color: var(--muted); align-self: flex-end; }
.ib-sent { border-left: 2px solid var(--good); padding: 4px 0 4px 14px; }
.ibd-foot { border-top: 1px solid var(--line); padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.25); }
.ibd-foot textarea { min-height: 70px; resize: vertical; }
.ibd-foot-row { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.ibd-foot-row .check { flex: 1; font-size: 12px; }
.ibd-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ibd-btns .ibd-hide { margin-left: auto; color: var(--muted); }
.ibd-btns .ibd-hide:hover { color: var(--bad); border-color: rgba(255,123,123,.4); }
.ibd-empty { margin: auto; text-align: center; max-width: 300px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ibd-empty span { font-size: 34px; opacity: .8; }
.ibd-empty b { font-size: 16px; }
/* the post strip: calmer cards */
.ib-pc { width: 220px; padding: 7px 10px 7px 7px; }
.ib-pc .pt-img { width: 40px; height: 40px; }
.ib-pc-t b { font-size: 12.5px; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; }
  .ib-list, .ib-detail { height: auto; max-height: none; }
  .ib-list { max-height: 55vh; }
  .ibd-body { overflow: visible; }
}
/* Comments: more room for the comments themselves */
.inbox { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.25fr); }
main:has(#v-inbox.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-inbox.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
#v-inbox .vh { margin-bottom: 12px; }
#v-inbox .vh h1 { font-size: 30px; margin-bottom: 4px; }
#v-inbox .toolbar { margin-bottom: 10px; }
.ib-posts { margin-bottom: 10px; }
.ib-posts-h { margin-bottom: 6px; }
.ib-pc { padding: 5px 10px 5px 5px; }
.ib-pc .pt-img { width: 34px; height: 34px; }
.ib-pc-t b { -webkit-line-clamp: 1; }
@media (max-height: 820px) {
  main:has(#v-inbox.on) #acct-banners { display: none; }
  #v-inbox .vh p { display: none; }
  #v-inbox .vh h1 { font-size: 26px; }
  .ib-posts-h { display: none; }
}
@media (max-width: 1200px) { .ib-rowpost { display: none; } } /* narrow: the name gets the room; the post shows when you open the comment */
@media (max-height: 820px) {
  .ibd-head { padding: 10px 14px; }
  .ib-av.lg { width: 38px; height: 38px; font-size: 15px; }
  .ibd-body { padding: 12px 14px; gap: 10px; }
  .ibd-quote { font-size: 15px; padding: 11px 13px; }
  .ibd-foot { padding: 8px 14px 10px; gap: 6px; }
  .ibd-foot textarea { min-height: 46px; }
  .ibd-foot-row { min-height: 0; }
}
main:has(#v-inbox.on) { padding-bottom: 16px; }
@media (max-height: 820px) { .ibd-foot textarea { height: 52px; min-height: 46px; } }
/* phones and small tablets: the list, then the open comment underneath (this must come last) */
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .ib-list { height: auto; max-height: 52vh; }
  .ib-detail { height: auto; max-height: none; }
  .ibd-body { overflow: visible; }
}

/* Trend radar: "Most popular from" time chips */
.rd-range { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; width: fit-content; max-width: 100%; }
.rd-range-l { font-size: 12px; color: var(--muted); padding: 0 8px 0 6px; }
.rd-range button { white-space: nowrap; }
@media (max-width: 700px) { .rd-range { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .rd-range::-webkit-scrollbar { display: none; } }

/* post cards (Viral posts, Saved): the main button gets a full row, the rest sit neatly underneath */
.item .acts { flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 14px; margin-top: auto; }
.item .acts button { flex: 1 1 auto; white-space: nowrap; min-width: 0; padding: 7px 10px; font-size: 12.5px; border-radius: 10px; line-height: 1.2; }
.item .acts .primary { flex: 1 1 100%; padding: 9px 12px; font-size: 13px; }
.item .acts .item-del { flex: 0 0 34px; width: 34px; height: 32px; padding: 0; display: inline-grid; place-items: center; color: var(--muted); }
.item .acts .item-del:hover { color: #ff8a8a; border-color: rgba(255,110,110,.45); background: rgba(255,90,90,.12); }
/* Saved: roomier cards, and the score line is quieter (the badge already shows it) */
#bookmarks.small-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.item .body { gap: 6px; }
.item .body > .muted.small:last-of-type, .item .score-line { font-size: 12px; color: var(--muted); }

/* Hot right now: topic cards with pictures, honest numbers, and a button to make a Reel */
.hot-ctrl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.hot-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.hot-card:hover { border-color: var(--line-2); }
.hot-card-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hot-card-h .hot-rank { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b0c0e; background: linear-gradient(180deg, #f6e2a8, #c99a3c); }
.hot-card-h .hot-term { flex: 1; min-width: 0; font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.hot-card-h .hot-term:not(.tag)::first-letter { text-transform: uppercase; }
.hot-card-h .hot-term.tag { color: #f3d58a; }
.hot-card-h > span:last-child { flex: none; font-size: 12px; }
.hot-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hot-th { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: #15161b center/cover; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.hot-th.none { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px), #121317; }
.hot-th em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 99px; color: #0a0a0d; background: var(--brushed); }
.hot-card .hot-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.hot-card .hot-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9c7a35, #f3d58a); }
.hot-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hot-card-f .hot-meta { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.hot-acts { display: flex; gap: 6px; }
.hot-acts button { white-space: nowrap; padding: 6px 11px; font-size: 12px; }
.hot-new { color: #f3d58a; font-weight: 600; }
/* Viral posts: slimmer banners at the top, like the other pages */
main:has(#v-find.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-find.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
@media (max-width: 700px) { .hot-grid { grid-template-columns: 1fr; } .hot-ctrl { justify-content: flex-start; } }
#rd-topics .chip.auto { border-style: dashed; }

/* Comments: the overview when nothing is open */
.ibo { display: flex; flex-direction: column; gap: 16px; padding: 22px; height: 100%; overflow-y: auto; }
.ibo-h { display: flex; align-items: center; gap: 14px; }
.ibo-h > div { display: flex; flex-direction: column; gap: 3px; }
.ibo-h b { font-size: 19px; letter-spacing: -.01em; }
.ibo-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; border: 1px solid var(--line-2); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), rgba(255,255,255,.02)); }
.ibo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ibo-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; text-align: left; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: none; }
.ibo-tile:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.ibo-tile.zero { opacity: .55; }
.ibo-n { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ibo-l { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.ibo-first { display: flex; flex-direction: column; gap: 8px; }
.ibo-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; border-radius: 16px; border: 1px solid rgba(243,213,138,.35); background: linear-gradient(180deg, rgba(243,213,138,.08), rgba(255,255,255,.02)); box-shadow: 0 0 30px -16px rgba(243,213,138,.6); }
.ibo-card:hover { border-color: rgba(243,213,138,.6); }
.ibo-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ibo-card-h { display: flex; align-items: baseline; gap: 8px; }
.ibo-card-x { font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ibo-go { flex: none; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); }
.ibo-tip { margin: auto 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--ink-2); background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); }
@media (max-width: 1100px) { .ibo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ibo { display: none; } .ib-detail:has(> .ibo) { display: none; } } /* on phones the list is enough until you open one */

/* Comments: reply right in the list */
.ib-qr-btn { margin-left: auto; padding: 3px 10px; font-size: 11.5px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); box-shadow: none; opacity: 0; transition: opacity .15s; }
.ib-row:hover .ib-qr-btn, .ib-row.on .ib-qr-btn, .ib-row.qr-open .ib-qr-btn, .ib-qr-btn:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 900px) { .ib-qr-btn { opacity: 1; } }
.ib-qr-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.35); }
.ib-row.qr-open { cursor: default; border-color: var(--line-2); }
.ib-qr { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ib-qr textarea { min-height: 54px; font-size: 13.5px; resize: vertical; }
.ib-qr-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ib-qr-check { flex: 1; min-width: 0; font-size: 11.5px; }
.ib-done-anim { opacity: .35; transform: translateX(8px); transition: opacity .3s, transform .3s; }
/* the open comment as a full sheet on small screens */
.ibd-back { display: none; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 10px; font-size: 18px; }
@media (max-width: 900px) {
  .ib-detail.sheet { display: flex !important; position: fixed; inset: 0; z-index: 1000; height: 100dvh; max-height: none; border-radius: 0; margin: 0; background: #0c0c10; animation: sheet-in .22s ease-out; }
  .ib-detail.sheet .ibd-back { display: grid; place-items: center; }
  .ib-detail.sheet .ibd-body { overflow-y: auto; }
  body.ib-sheet-open { overflow: hidden; }
}
@keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { body.ib-sheet-open main { z-index: 1001; } } /* the open comment covers the top bar too */

/* ===== What works for you, redesigned ===== */
.pr-hero2 { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px; background: radial-gradient(600px 220px at 0% 0%, rgba(243,213,138,.08), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.pr-hero-top { display: flex; gap: 18px; align-items: flex-start; }
.pr-hero-top .pr-mascot { width: 64px; height: 64px; flex: none; }
.pr-hero-top .pr-summary { margin: 6px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.pr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pr-stat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); min-width: 0; }
.pr-stat-i { font-size: 18px; line-height: 1; }
.pr-stat b { font-size: 22px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-stat span:last-child { font-size: 12px; color: var(--muted); }
/* the section menu stays at the top while you scroll */
.pr-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px -4px 4px; padding: 10px 4px; background: linear-gradient(180deg, rgba(8,8,11,.96) 70%, rgba(8,8,11,0)); backdrop-filter: blur(8px); }
.pr-nav::-webkit-scrollbar { display: none; }
.pr-nav button { flex: none; padding: 7px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); box-shadow: none; }
.pr-nav button:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.pr-nav button.on { color: #0b0c0e; font-weight: 700; border-color: transparent; background: linear-gradient(180deg, #fff, #c9ccd2); }
.pr-sec { scroll-margin-top: 70px; padding-top: 18px; }
.pr-sec + .pr-sec { margin-top: 18px; border-top: 1px solid var(--line); }
.pr-sec-h { margin-bottom: 12px; }
.pr-sec-h .pr-h { margin: 0 0 4px; }
.pr-sec-h p { margin: 0; }
.pr-sub { display: block; margin: 16px 0 8px; }
/* next moves: three big action cards */
.pr-moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pr-move { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-color: rgba(243,213,138,.25); background: linear-gradient(180deg, rgba(243,213,138,.06), rgba(255,255,255,.015)); }
.pr-move-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0b0c0e; background: linear-gradient(180deg, #f6e2a8, #c99a3c); margin-bottom: 4px; }
.pr-move b { font-size: 16px; line-height: 1.35; }
.pr-move p { margin: 0; }
.pr-move-do { font-size: 13.5px; color: var(--ink); }
.pr-move-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pr-keeps { margin-top: 14px; }
.pr-keep-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.pr-keep { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.pr-keep b { font-size: 14px; color: #8fe3b0; }
.pr-out-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 900px) {
  .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-hero-top .pr-summary { font-size: 16px; }
  .pr-hero-top .pr-mascot { width: 48px; height: 48px; }
}
#pr-nav.pr-nav { flex-direction: row; flex-wrap: nowrap; align-items: center; }
#pr-nav.pr-nav button { width: auto; justify-content: center; }
@media (max-width: 900px) { #pr-nav.pr-nav { top: 104px; } } /* below the top bar on small screens */
@media (max-width: 900px) { .pr-sec { scroll-margin-top: 165px; } }

/* ===== Calendar, redesigned ===== */
main:has(#v-calendar.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-calendar.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-line { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-line > span { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.cal-line b { color: var(--ink); }
.cal-line .hot { border-color: rgba(243,213,138,.5); background: rgba(243,213,138,.08); }
.cal-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-viewseg button { padding: 6px 14px; }
/* week: posted posts with their picture and score, planned posts, and suggestions on empty days */
.cal-day { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.cal-pub { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 10px; text-decoration: none; color: var(--ink); background: rgba(127,224,176,.06); border: 1px solid rgba(127,224,176,.25); }
.cal-pub img, .cal-pub-ph { flex: none; width: 32px; height: 40px; border-radius: 7px; object-fit: cover; background: #15161b; display: grid; place-items: center; }
.cal-pub-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cal-pub-t b { font-size: 12.5px; font-family: var(--mono); }
.cal-pub-t span { font-size: 11px; color: var(--muted); }
.cal-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.cal-chip-t { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; border-radius: 10px; text-align: left; border: 1px dashed var(--line-2); background: transparent; box-shadow: none; color: var(--muted); font-size: 11.5px; width: 100%; }
.cal-sugg b { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.cal-sugg em { font-style: normal; font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.cal-sugg:hover { border-color: rgba(243,213,138,.55); color: var(--ink); background: rgba(243,213,138,.05); }
.cal-sugg:hover em { opacity: 1; color: #f3d58a; }
/* month */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-mh { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-mc { position: relative; aspect-ratio: 1 / 1; min-height: 70px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; box-shadow: none; text-align: left; }
.cal-mc.out { opacity: .35; }
.cal-mc.today { border-color: rgba(255,255,255,.55); }
.cal-mc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cal-mn { position: relative; font-weight: 700; font-size: 13px; }
.cal-mdots { position: relative; display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.cal-mdots .dot { width: 7px; height: 7px; margin: 0; }
.cal-mdots .pubd { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 99px; color: #0a0a0d; background: #8fe3b0; }
/* weekly mix progress */
.mix-prog { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.mix-prog-bar { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.mix-prog-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9c7a35, #f3d58a); }
/* New post as a side panel */
.cal-new { display: none; }
.cal-new.open { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(520px, 100%); margin: 0; border-radius: 18px 0 0 18px; overflow-y: auto; background: #0e0e12; box-shadow: -30px 0 80px -20px rgba(0,0,0,.9); animation: cal-slide .22s ease-out; }
.cal-shade { display: none; }
body.cal-new-open .cal-shade { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(3,3,5,.55); backdrop-filter: blur(3px); }
body.cal-new-open main { z-index: 1001; }
.cal-newclose { margin-left: auto; }
@keyframes cal-slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cal-empty .primary { margin-top: 10px; }
@media (max-width: 900px) {
  .cal-new.open { border-radius: 0; }
  .cal-days { grid-template-columns: repeat(7, minmax(92px, 1fr)); overflow-x: auto; }
  .cal-mc { min-height: 44px; }
}

/* ===== My growth, redesigned ===== */
main:has(#v-overview.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-overview.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
#v-overview .vh { margin-bottom: 14px; }
.gr-kpis { margin-top: 12px; }
.gr-kpis .kpi { padding: 12px 16px; }
.gr-kpis .kpi .v { font-size: 22px; }
/* today: what to do now */
.gr-todo { margin: 14px 0; }
.gr-todo-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.gr-todo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.gr-do { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: border-color .15s, transform .15s; }
.gr-do:hover { border-color: rgba(243,213,138,.5); transform: translateY(-1px); }
.gr-do-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); }
.gr-do-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gr-do-t b { font-size: 14.5px; }
.gr-do-t span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.gr-do-b { flex: none; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 10px; color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); white-space: nowrap; }
.gr-do.done { border-style: dashed; }
/* today's post next to your milestone and badges */
.gr-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 12px; }
.gr-pair .td-card { margin: 0; }
.gr-side { display: flex; flex-direction: column; gap: 12px; }
.gr-side .panel { margin: 0; }
.gr-earned { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gr-earned-chip { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(243,213,138,.35); background: rgba(243,213,138,.07); }
.gr-next3 { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.gr-n3 { display: flex; gap: 10px; align-items: flex-start; }
.gr-n3 .gr-emo { font-size: 22px; line-height: 1.2; }
.gr-n3 > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gr-n3 b { font-size: 13.5px; }
.gr-allb { margin-top: 12px; }
.gr-allb summary { cursor: pointer; font-size: 13px; color: var(--ink-2); padding: 6px 0; }
.gr-allb[open] summary { margin-bottom: 8px; }
.gr-two { align-items: start; }
@media (max-width: 1000px) { .gr-pair { grid-template-columns: minmax(0, 1fr); } }

/* Viral Games: a way into every challenge; form boxes */
.ch-go { display: inline-flex; align-self: flex-start; margin-top: 4px; padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: #0b0c0e; background: linear-gradient(180deg, #fff, #c9ccd2); }
.ch-go:hover { filter: brightness(1.05); }
.ask-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ask-f input, .ask-f select { width: 100%; }
.lg-invite { margin-top: 10px; }
/* Viral Games: the chosen ranking is clearly marked, and explained */
#vg-sort button { padding: 8px 14px; font-size: 13px; }
#vg-sort button.on { color: #0b0c0e; font-weight: 700; background: linear-gradient(180deg, #fff, #c9ccd2); box-shadow: 0 2px 10px -4px rgba(255,255,255,.4); }
.vg-sortnote { margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.vg-sortnote b { color: var(--ink); }

/* ===== Trend radar, tidier ===== */
main:has(#v-radar.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-radar.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
#v-radar .vh { margin-bottom: 12px; }
/* the top: a small radar to the left, what is happening to the right */
#v-radar .rd-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 24px; text-align: left; }
#v-radar .rd-scope { width: 150px; height: 150px; margin: 0; }
#v-radar .rd-status { text-align: left; align-items: flex-start; }
#v-radar .rd-top { justify-content: flex-start; }
#v-radar #rd-headline { font-size: 26px; margin: 8px 0 4px; text-align: left; }
#v-radar #rd-sub { text-align: left; margin: 0 0 10px; }
#v-radar .rd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
#v-radar .rd-stats > * { padding: 10px 12px; }
#v-radar .rd-acts { justify-content: flex-start; }
/* the section menu stays at the top while you scroll */
.rd-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -4px 6px; padding: 10px 4px; background: linear-gradient(180deg, rgba(8,8,11,.96) 70%, rgba(8,8,11,0)); backdrop-filter: blur(8px); }
.rd-nav::-webkit-scrollbar { display: none; }
.rd-nav button { flex: none; padding: 7px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); box-shadow: none; }
.rd-nav button:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
#rd-spot-wrap, #rd-s-topics, #rd-s-tips, #rd-s-feed, #rd-s-watch { scroll-margin-top: 70px; }
.rd-more { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 6px; }
@media (max-width: 900px) {
  #v-radar .rd-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  #v-radar .rd-scope { width: 110px; height: 110px; }
  #v-radar .rd-status, #v-radar #rd-headline, #v-radar #rd-sub { text-align: center; align-items: center; }
  #v-radar .rd-top, #v-radar .rd-acts { justify-content: center; }
  #v-radar .rd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-nav { top: 104px; }
  #rd-spot-wrap, #rd-s-topics, #rd-s-tips, #rd-s-feed, #rd-s-watch { scroll-margin-top: 165px; }
}

/* Sunday email: the switch sits next to its text */
.dg-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.dg-row input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.dg-row > span { display: flex; flex-direction: column; gap: 3px; }
#rd-ready:empty { display: none; }
#rd-digest .dg-row { flex-direction: row; align-items: flex-start; margin: 0; }

/* ===== Sales ===== */
main:has(#v-sales.on) .acct-banner { margin-bottom: 6px; padding: 5px 8px 5px 12px; font-size: 12px; border-radius: 10px; }
main:has(#v-sales.on) .acct-banner button { padding: 4px 10px; font-size: 11.5px; }
.sl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sl-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.sl-kpis b { font-size: 24px; }
.sl-kpis span { font-size: 12.5px; color: var(--muted); }
.sl-kpis .hot { border-color: rgba(243,213,138,.5); background: rgba(243,213,138,.07); }
.sl-tabs { margin-bottom: 12px; }
.sl-tip { padding: 12px 16px; font-size: 13.5px; margin-bottom: 12px; border-color: rgba(243,213,138,.3); }
.sl-board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(220px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.sl-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--line); min-height: 160px; }
.sl-col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-size: 13.5px; }
.sl-col-h span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sl-bought { border-color: rgba(127,224,176,.35); background: rgba(127,224,176,.05); }
.sl-new { border-color: rgba(243,213,138,.3); }
.sl-card { display: flex; flex-direction: column; gap: 6px; padding: 11px; border-radius: 12px; border: 1px solid var(--line-2); background: #121217; }
.sl-card-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sl-card-h .ib-av { width: 26px; height: 26px; font-size: 11px; }
.sl-card-h b { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-txt { margin: 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.sl-card select { font-size: 12.5px; padding: 6px 28px 6px 9px; }
.sl-guess { margin-top: -2px; }
.sl-replied { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.sl-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sl-acts select { flex: 1; min-width: 120px; }
.sl-empty { padding: 6px 4px; }
.sl-lost { margin-top: 10px; }
.sl-lost summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.sl-lost-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.sl-form { margin-bottom: 12px; }
.sl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.sl-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.sl-wide { grid-column: 1 / -1; }
.sl-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.sl-prod-card { display: flex; gap: 12px; padding: 12px; }
.sl-prod-card.off { opacity: .55; }
.sl-prod-card img, .sl-prod-ph { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.05); display: grid; place-items: center; font-size: 28px; }
.sl-prod-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sl-link { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sl-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.sl-prod-acts { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.sl-note { margin-top: 10px; }
@media (max-width: 900px) {
  .sl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-board { grid-template-columns: repeat(var(--cols, 4), minmax(240px, 85%)); scroll-snap-type: x mandatory; }
  .sl-col { scroll-snap-align: start; }
  .sl-grid { grid-template-columns: 1fr; }
}
.sl-txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* top bar on narrow screens: never clip the account menu, and keep it above the page */
@media (max-width: 900px) {
  .side { overflow: visible; z-index: 1002; }
  .me-mobile { z-index: 1003; }
}

/* platforms that are switched off disappear everywhere, and a single platform needs no platform picker */
body.no-x [data-plat="x"], body.no-x [data-p="x"], body.no-x .dot.x { display: none !important; }
body.one-plat #ib-platform, body.one-plat #rd-platform, body.one-plat #find-platform, body.one-plat #rd-comp-platform { display: none !important; }

/* Sales: comments and DMs on one board */
.sl-srcbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sl-src-seg button .cnt { opacity: .6; font-size: 11px; margin-left: 2px; }
.sl-src { font-size: 10.5px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.sl-src.dm { color: #f3d58a; border-color: rgba(243,213,138,.35); }
.sl-thread { display: flex; flex-direction: column; gap: 4px; }
.sl-thread p { margin: 0; max-width: 88%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; align-self: flex-start; }
.sl-thread p.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(243,213,138,.14); }
.btn-link { display: inline-flex; align-items: center; text-decoration: none; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--ink); font-size: 12.5px; }
.sl-other { margin-top: 14px; padding: 12px 16px; }
.sl-other summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sl-other-list { display: flex; flex-direction: column; margin-top: 10px; }
.sl-other-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sl-other-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-other-acts { display: flex; gap: 6px; }
@media (max-width: 700px) { .sl-other-row { grid-template-columns: 1fr auto; } .sl-other-txt { grid-column: 1 / -1; white-space: normal; } }
.ask-dlg.sl-dm-dlg { width: min(540px, calc(100% - 32px)); overflow: visible; }
.sl-dm-dlg .ask-box { box-sizing: border-box; max-height: calc(100dvh - 48px); overflow-y: auto; }
.sl-dm-dlg .sl-thread { max-height: 260px; overflow-y: auto; padding: 4px 0 10px; }
.sl-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.sl-sug { text-align: left; white-space: normal; line-height: 1.35; cursor: pointer; }
.sl-dm-dlg .ask-box > * { flex-shrink: 0; }
.sl-dm-dlg .sl-thread { max-height: 200px; }
.sl-sug { font-weight: 400; font-size: 13px; }
.sl-src.out { color: #9fd3ff; border-color: rgba(159,211,255,.35); }
.sl-follow { margin: 0; font-size: 12.5px; color: #f3d58a; }
/* the name always gets room: the source badge and time go to the next line when the column is narrow */
.sl-card-h { flex-wrap: wrap; row-gap: 4px; }
.sl-card-h b { flex: 1 1 calc(100% - 40px); }
