/* SFG Review – styles */
:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #f5f9fe;
  --surface-3: #e6eff9;
  --ink: #142536;
  --ink-2: #44566a;
  --ink-3: #6c7d90;
  --line: #d8e3ef;
  --navy: #0a3048;
  --navy-2: #0f4470;
  --blue: #1f6fd1;
  --blue-soft: #e3effc;
  --sky: #38a8f0;
  --green: #2e963c;
  --green-soft: #e4f4e3;
  --teal: #0e848c;
  --teal-soft: #ddf2f2;
  --orange: #e8801e;
  --orange-soft: #fdeedd;
  --purple: #6a4cba;
  --purple-soft: #ece6f9;
  --red: #c82828;
  --red-soft: #fbe5e5;
  --wave1: #cfe4f8;
  --wave2: #9cc8ef;
  --wave3: #1f6fd1;
  --shadow: 0 1px 2px rgba(10, 48, 72, .06), 0 6px 20px rgba(10, 48, 72, .07);
  --radius: 16px;
  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1622; --surface: #12212f; --surface-2: #162839; --surface-3: #1c3247;
    --ink: #e6eef7; --ink-2: #b2c2d3; --ink-3: #8a9cb0; --line: #26405a;
    --navy: #8cc4f5; --navy-2: #0f4470; --blue: #5aa2ee; --blue-soft: #16324d; --sky: #5bbcf5;
    --green: #5cc46a; --green-soft: #17331d; --teal: #3cc0c8; --teal-soft: #123236;
    --orange: #f3a04f; --orange-soft: #3a2812; --purple: #a68ef0; --purple-soft: #261d42;
    --red: #f07070; --red-soft: #3c1818;
    --wave1: #13304a; --wave2: #1a4a75; --wave3: #2a74c4;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1622; --surface: #12212f; --surface-2: #162839; --surface-3: #1c3247;
  --ink: #e6eef7; --ink-2: #b2c2d3; --ink-3: #8a9cb0; --line: #26405a;
  --navy: #8cc4f5; --navy-2: #0f4470; --blue: #5aa2ee; --blue-soft: #16324d; --sky: #5bbcf5;
  --green: #5cc46a; --green-soft: #17331d; --teal: #3cc0c8; --teal-soft: #123236;
  --orange: #f3a04f; --orange-soft: #3a2812; --purple: #a68ef0; --purple-soft: #261d42;
  --red: #f07070; --red-soft: #3c1818;
  --wave1: #13304a; --wave2: #1a4a75; --wave3: #2a74c4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.ic { width: 18px; height: 18px; flex: none; }
.ic-xl { width: 40px; height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.c-navy { color: var(--navy); } .c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-sky { color: var(--sky); }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--ink-3); padding: 24px; }
.err-boot { max-width: 560px; margin: 0 auto; gap: 12px; text-align: center; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-within, .lk:focus-within, .sev-opt:focus-within, .vd:focus-within, .tab:focus-visible, .rail-item:focus-visible, .send-opt:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, #2a80e2, #1660bd); color: #fff; box-shadow: 0 4px 14px rgba(31,111,209,.3); }
.btn-primary:hover { background: linear-gradient(180deg, #1f74d6, #1255aa); }
.btn-accent { background: linear-gradient(180deg, #48b452, #2e963c); color: #fff; }
.btn-soft { background: var(--surface-3); color: var(--navy); }
.btn-soft:hover { background: var(--blue-soft); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-danger { background: var(--red); color: #fff; }
.btn-icon { padding: 9px; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn.busy { opacity: .6; cursor: progress; }
.link { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 4px 0; display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--navy); letter-spacing: -.3px; line-height: 1; }
.brand-name span { color: var(--blue); }
.brand-sub { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-top: 3px; }
.brand-sm img { height: 32px; width: auto; }
.brand-sm .brand-name { font-size: 19px; color: #fff; }
.brand-sm .brand-name span { color: #8fd0ff; }
.brand-sm .brand-sub { display: none; }

/* ---------- login / profile split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.hero { position: relative; overflow: hidden; padding: 40px 48px 140px; background: radial-gradient(1200px 500px at -10% -10%, var(--surface) 0, transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg)); border-right: 1px solid var(--line); }
.hero-top { margin-bottom: 40px; }
.hero-title { font-size: clamp(30px, 4vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -.5px; color: var(--navy); }
.hero-tag { font-family: var(--font-head); font-weight: 800; font-size: clamp(17px, 2vw, 22px); margin-top: 10px; }
.tagbar { height: 5px; width: min(420px, 80%); border-radius: 5px; margin: 14px 0 30px; background: linear-gradient(90deg, var(--navy-2), var(--blue) 35%, var(--green) 55%, var(--orange)); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 560px; }
.pillar { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 999px 22px 22px 999px; background: var(--surface); box-shadow: var(--shadow); }
.pillar-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.pillar-ic .ic { width: 28px; height: 28px; }
.pillar-num { position: absolute; left: 44px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid currentColor; font: 800 12px/20px var(--font-head); text-align: center; z-index: 1; }
.pillar b { display: block; font-family: var(--font-head); font-size: 18px; color: var(--navy); }
.pillar div > span { display: block; font-size: 14px; color: var(--ink-2); }
.pillar-blue .pillar-ic { background: linear-gradient(140deg, #2a80e2, #0f4470); } .pillar-blue .pillar-num { color: var(--blue); }
.pillar-green .pillar-ic { background: linear-gradient(140deg, #5fc368, #2a7e33); } .pillar-green .pillar-num { color: var(--green); }
.pillar-teal .pillar-ic { background: linear-gradient(140deg, #22a5ad, #0b5f6e); } .pillar-teal .pillar-num { color: var(--teal); }
.motto { display: flex; align-items: center; gap: 12px; margin-top: 28px; max-width: 560px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(90deg, #0a3048, #12497a); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.motto .ic { color: #6fd27a; width: 24px; height: 24px; }
.motto .c-sky { color: #7cc7ff; } .motto .c-green { color: #7ad884; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.split-form { display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card, .profile-card { width: 100%; padding: 32px; display: grid; gap: 16px; }
.login-card { max-width: 420px; margin-top: 8vh; }
.profile-card { max-width: 720px; }
.card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.card-ic .ic { width: 26px; height: 26px; }
.login-card h2, .profile-card h2 { font-size: 26px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld > legend { font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0; }
.fld > legend { margin-bottom: 8px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 11px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.err { color: var(--red); font-size: 13px; font-weight: 700; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.consent { padding: 12px 14px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.site-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.site-pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.site-pick input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.site-pick b { display: block; font-family: var(--font-head); color: var(--navy); }
.site-pick small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.sp-ic { color: var(--blue); }

/* ---------- chips & scales ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .lk, .sev-opt, .vd { position: relative; }
.chip { cursor: pointer; }
.chip input, .lk input, .sev-opt input, .vd input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: all .12s; }
.chip:hover span { border-color: var(--blue); }
.chip.on span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips-num .chip span { min-width: 40px; text-align: center; }
.chips-quiet { margin-top: 6px; }
.chips-quiet .chip span { font-size: 12.5px; padding: 4px 10px; border-style: dashed; }
.chips-quiet .chip.on span { background: var(--ink-3); border-color: var(--ink-3); }
.scale-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; max-width: 360px; }
.lk-ends { display: none; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 6px; }
.lk { cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; transition: all .12s; }
.lk b { font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.lk span { font-size: 10.5px; line-height: 1.15; color: var(--ink-3); }
.lk:hover { border-color: var(--blue); }
.lk.on { background: var(--blue); border-color: var(--blue); }
.lk.on b, .lk.on span { color: #fff; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 18px; min-height: 64px; background: linear-gradient(90deg, #0a3048, #114a7c 70%, #1660bd); color: #fff; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #2e963c 50%, #e8801e); }
.tb-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.tb-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .7; font-weight: 700; }
.tb-site { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-site .ic { width: 22px; height: 22px; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#6fd27a calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0f4470; font: 800 11px var(--font-head); }

/* ---------- workspace ---------- */
.workspace > * { min-height: 0; }
.workspace { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
.rail { background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.rail-title { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 8px; }
.rail-item { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 10px; border-radius: 13px; border: 0; background: none; cursor: pointer; }
.rail-item:hover { background: var(--surface-2); }
.rail-item.on { background: linear-gradient(140deg, #1f6fd1, #0f4470); color: #fff; box-shadow: 0 6px 16px rgba(31,111,209,.28); }
.rail-item.on b, .rail-item.on small, .rail-item.on .ri-ic { color: #fff; }
.ri-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.rail-item.on .ri-ic { background: rgba(255,255,255,.16); }
.ri-txt { flex: 1; min-width: 0; }
.ri-txt b { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--navy); line-height: 1.2; }
.ri-txt small { display: block; font-size: 11.5px; color: var(--ink-3); }
.st .ic { width: 18px; height: 18px; }
.st-done { color: var(--green); } .st-prog { color: var(--orange); } .st-new { color: var(--line); }
.rail-item.on .st { color: #fff; }
.rail-select { display: none; }

.preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px 10px; gap: 10px; }
.pv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-actions { margin-left: auto; display: flex; gap: 6px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }
.seg-static { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); padding: 7px 4px; }
.pv-stage { flex: 1; min-height: 0; overflow: auto; border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--bg) 10px, var(--bg) 20px); border: 1px solid var(--line); padding: 18px; display: flex; justify-content: center; align-items: flex-start; }
.frame-wrap { position: relative; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); flex: none; }
.dev-desktop { padding: 0; }
.dev-desktop .frame-wrap { width: 100%; height: 100%; border-radius: var(--radius); flex: 1; }
.dev-tablet .frame-wrap { border: 12px solid #1b2733; border-radius: 26px; }
.dev-phone .frame-wrap { border: 12px solid #111a24; border-radius: 42px; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #111a24; border-radius: 0 0 14px 14px; z-index: 2; pointer-events: none; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.pv-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.pv-note .ic { width: 15px; height: 15px; }

.mobile-open { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.mo-head { display: flex; gap: 12px; align-items: flex-start; }
.mo-head b { font-family: var(--font-head); font-size: 18px; color: var(--navy); display: block; }
.mo-head small { color: var(--ink-3); font-size: 13px; }
.mo-btns { display: grid; gap: 8px; }

/* ---------- panel ---------- */
.panel { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--surface-2); padding: 10px 6px; border-radius: 12px; font-weight: 800; font-family: var(--font-head); font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.tab.on { background: var(--navy-2); color: #fff; }
.count { background: rgba(127,140,160,.22); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.tab.on .count { background: rgba(255,255,255,.22); }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 12px; }
.persona { display: flex; gap: 10px; padding: 12px; border-radius: 13px; background: var(--orange-soft); color: var(--ink); font-size: 13.5px; }
.persona .ic { color: var(--orange); margin-top: 2px; }
.persona b { font-family: var(--font-head); color: var(--navy); }
.grp { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 4px; }
.grp .link { margin-left: auto; }
.task { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.task.done { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: color-mix(in srgb, var(--green-soft) 45%, var(--surface)); }
.task-head { display: flex; gap: 10px; align-items: flex-start; }
.task-head p { font-weight: 700; }
.task-num { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font: 800 13px var(--font-head); flex: none; }
.task.done .task-num { background: var(--green); color: #fff; }
.task-num .ic { width: 15px; height: 15px; }
.task .btn-sm { justify-self: start; }
.q-lbl { font-size: 12.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; }
.timing { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.timing .ic { width: 14px; height: 14px; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 13px; background: var(--green-soft); font-weight: 700; }

.issue-form { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ctx { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.ctx .ic { width: 15px; height: 15px; }
.sev { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sev-opt { cursor: pointer; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); display: grid; gap: 1px; }
.sev-opt b { font-size: 13.5px; } .sev-opt span { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.sev-opt.sev-blocker b { color: var(--red); } .sev-opt.sev-major b { color: var(--orange); } .sev-opt.sev-minor b { color: var(--blue); } .sev-opt.sev-cosmetic b { color: var(--ink-3); }
.sev-opt.on { border-color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.sev-opt.sev-blocker.on { color: var(--red); background: var(--red-soft); } .sev-opt.sev-major.on { color: var(--orange); background: var(--orange-soft); } .sev-opt.sev-minor.on { color: var(--blue); background: var(--blue-soft); } .sev-opt.sev-cosmetic.on { color: var(--ink-3); background: var(--surface-3); }
.shot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shot img { max-width: 140px; max-height: 100px; border-radius: 8px; border: 1px solid var(--line); }
.note-warn { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.issue { border-left: 4px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 14px; }
.issue.sev-blocker { border-color: var(--red); } .issue.sev-major { border-color: var(--orange); } .issue.sev-minor { border-color: var(--blue); }
.issue-top { display: flex; gap: 6px; align-items: center; }
.issue-top .btn { margin-left: auto; }
.pill { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.pill-sev { background: var(--blue-soft); color: var(--blue); }

.locked { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 40px 10px; color: var(--ink-3); }
.dim { border-radius: 14px; padding: 14px; background: var(--surface-2); border-top: 4px solid var(--blue); display: grid; gap: 12px; }
.dim-blue { border-top-color: var(--blue); } .dim-green { border-top-color: var(--green); } .dim-teal { border-top-color: var(--teal); } .dim-navy { border-top-color: var(--navy); } .dim-orange { border-top-color: var(--orange); } .dim-purple { border-top-color: var(--purple); }
.dim-h { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.item { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item-q { font-weight: 700; font-size: 14px; }
.fld-follow { margin-top: 8px; }
.fld-follow > span { font-size: 13px; color: var(--blue); }
.fld-key > span { color: var(--navy); }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vd { display: grid; place-items: center; cursor: pointer; padding: 11px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 13.5px; text-align: center; }
.vd.on { color: #fff; }
.vd-ready.on { background: var(--green); border-color: var(--green); } .vd-minor.on { background: var(--blue); border-color: var(--blue); } .vd-major.on { background: var(--orange); border-color: var(--orange); } .vd-unsuitable.on { background: var(--red); border-color: var(--red); }
.err-box { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.err-box ul { margin: 6px 0 0; padding-left: 18px; }
.finish { display: grid; }

/* ---------- report ---------- */
.report-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 18px; }
.report-hero { padding: 24px; display: grid; gap: 16px; }
.report-hero h2 { font-size: 26px; }
.send-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.send-opt { text-align: left; display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.send-opt .ic { width: 24px; height: 24px; color: var(--blue); }
.send-opt b { font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.send-opt span { font-size: 13px; color: var(--ink-3); }
.send-opt:hover { border-color: var(--blue); }
.send-main { background: linear-gradient(140deg, #1f6fd1, #0f4470); border-color: transparent; }
.send-main b, .send-main span, .send-main .ic { color: #fff; }
.send-opt.busy { opacity: .6; }
.report-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.rs { padding: 16px; display: grid; gap: 10px; align-content: start; }
.rs-h { display: flex; gap: 10px; align-items: center; }
.rs-h > div { flex: 1; }
.rs-h b { font-family: var(--font-head); font-size: 17px; color: var(--navy); display: block; }
.rs-h small { color: var(--ink-3); font-size: 12.5px; }
.bars { display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: 150px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; }
.bar b { text-align: right; font-family: var(--font-head); }
.track { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 8px; }
.fill-blue { background: var(--blue); } .fill-green { background: var(--green); } .fill-teal { background: var(--teal); } .fill-navy { background: var(--navy-2); } .fill-orange { background: var(--orange); } .fill-purple { background: var(--purple); }
.danger { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: #0a3048; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: all .2s; z-index: 50; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { background: #237a30; } #toast.warn { background: #a3480b; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 380px; }
  .rail-title, .ri-txt { display: none; }
  .rail-item { justify-content: center; position: relative; padding: 8px; }
  .rail-item .st { position: absolute; right: 4px; top: 4px; }
  .rail-item .st .ic { width: 14px; height: 14px; }
  .seg button span { display: none; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .hero { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px 110px; }
  .hero-top { margin-bottom: 20px; }
  .login-card { margin-top: 0; }
}
@media (max-width: 960px) {
  .workspace { display: block; height: auto; }
  .rail { border: 0; padding: 12px 16px 0; background: none; }
  .rail-title, .rail-item { display: none; }
  .rail-select { display: block; }
  .preview { padding: 12px 16px 0; }
  .panel { border: 0; margin: 12px 16px 24px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .tabs { position: sticky; top: 64px; z-index: 5; border-radius: var(--radius) var(--radius) 0 0; }
  .panel-body { overflow: visible; }
  .hide-sm { display: none; }
  .tb-kicker { display: none; }
  .tb-site { font-size: 16px; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand-sm .brand-name { display: none; }
}
@media (max-width: 640px) {
  .grid2, .site-picks { grid-template-columns: 1fr; }
  .login-card, .profile-card { padding: 22px 18px; }
  .split-form { padding: 20px 16px 40px; }
  .hero { padding: 22px 16px 90px; }
  .pillar { padding: 10px 12px 10px 10px; }
  .pillar-ic { width: 46px; height: 46px; }
  .pillar-num { left: 34px; }
  .pillar b { font-size: 16px; } .pillar div > span { font-size: 13px; }
  .split-form { order: -1; }
  .hero { padding-bottom: 80px; }
  .motto { font-size: 14px; }
  .lk span { display: none; }
  .lk-ends { display: flex; max-width: none; }
  .lk { padding: 9px 2px; }
  .bar { grid-template-columns: 110px 1fr 28px; }
  .report-sites { grid-template-columns: 1fr; }
  .tb-site .ic { display: none; }
  .ring { width: 36px; height: 36px; } .ring span { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- setup (reviewer details + product choice) ---------- */
.intro-bar { position: relative; display: flex; align-items: center; gap: 20px; padding: 10px 20px; min-height: 64px; background: linear-gradient(90deg, #0a3048, #114a7c 70%, #1660bd); color: #fff; }
.intro-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #1f6fd1, #2e963c 50%, #e8801e); }
.ib-title { flex: 1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.ib-title b { font-family: var(--font-head); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: .2px; }
.ib-title span { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.ib-title i { font-style: normal; }
.c-blue2 { color: #ffffff; } .c-green2 { color: #7ad884; } .c-orange2 { color: #8fd0ff; }
.setup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1560px; margin: 0 auto; padding: 22px 24px 40px; }
.setup-left { display: grid; gap: 12px; }
.welcome { padding: 18px 20px; display: grid; gap: 10px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.welcome-h { display: flex; align-items: center; gap: 12px; }
.welcome-h h2 { font-size: 22px; }
.welcome-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.welcome-ic .ic { width: 22px; height: 22px; }
.welcome > p { color: var(--ink-2); font-size: 14.5px; }
.dummy-note { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); font-size: 13.5px; }
.dummy-note > .ic { color: var(--teal); width: 22px; height: 22px; margin-top: 1px; }
.dummy-note b { font-family: var(--font-head); color: var(--navy); }
.dummy-note p { color: var(--ink-2); }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pick-head h3 { font-size: 18px; }
.pick-count { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.setup .site-picks { grid-template-columns: 1fr 1fr; }
.setup .site-pick { padding: 11px 12px; }
.sp-txt { display: grid; gap: 2px; min-width: 0; }
.sp-txt em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--blue); }
.setup-right { padding: 20px 22px; display: grid; gap: 12px; position: sticky; top: 16px; }
.sr-head { display: flex; align-items: center; gap: 12px; }
.sr-head .card-ic { width: 44px; height: 44px; }
.sr-head h2 { font-size: 22px; }
.setup-right .grid2 { gap: 10px 12px; }
.setup-right input:not([type=radio]):not([type=checkbox]), .setup-right select { min-height: 40px; padding: 8px 11px; }
.setup-right .fld > span, .setup-right .fld > legend { font-size: 13px; }
.setup-right .fld > legend { margin-bottom: 6px; }
.setup-right .chips-num .chip span { min-width: 36px; padding: 6px 10px; }
.setup-right .consent { font-size: 13px; padding: 10px 12px; }
.btn-block { width: 100%; }
@media (max-width: 1100px) {
  .setup { grid-template-columns: 1fr; }
  .setup-right { position: static; }
}
@media (max-width: 640px) {
  .setup { padding: 14px 12px 30px; gap: 14px; }
  .setup .site-picks, .setup-right .grid2 { grid-template-columns: 1fr; }
  .ib-title span { display: none; }
  .ib-title b { font-size: 15px; }
  .intro-bar { padding: 8px 12px; gap: 10px; }
  .welcome { padding: 14px; }
  .welcome-h h2 { font-size: 19px; }
}
.setup-right .scale-ends { max-width: 210px; }
.pick-count { white-space: nowrap; }

/* ---------- review top bar controls ---------- */
.tb-mid { justify-content: flex-start; gap: 12px; padding-left: 12px; }
.tb-select { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); min-width: 0; max-width: 380px; }
.tb-select:hover { background: rgba(255,255,255,.18); }
.tb-select > .ic { width: 22px; height: 22px; flex: none; }
.tb-select select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 19px; padding: 0 22px 0 0; min-height: 0; width: auto; max-width: 100%; text-overflow: ellipsis; cursor: pointer; }
.tb-select select:focus { box-shadow: none; outline: none; }
.tb-select:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.tb-select select option { color: #142536; background: #fff; font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.tb-caret { position: absolute; right: 8px; transform: rotate(90deg); width: 16px !important; height: 16px !important; pointer-events: none; opacity: .8; }
.tb-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 8px; }
.seg-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.seg-dark button { color: #dbe9f7; padding: 7px 11px; }
.seg-dark button:hover { background: rgba(255,255,255,.1); }
.seg-dark button.on { background: #fff; color: #0f4470; }
.ic-inline { width: 14px; height: 14px; vertical-align: -2px; }
.pv-hint { margin-top: 4px; }
.preview { padding: 14px 16px; }
.dev-desktop.pv-stage { padding: 0; background: none; border: 0; }
.dev-desktop .frame-wrap { border: 1px solid var(--line); }
@media (max-width: 1320px) { .seg-dark button span { display: none; } }
@media (max-width: 960px) {
  .tb-tools { display: none; }
  .tb-select { height: 38px; padding: 0 8px; }
  .tb-select select { font-size: 16px; }
  .tb-mid { padding-left: 0; }
}
@media (max-width: 640px) { .tb-select > .ic { display: none; } }
@media (max-width: 640px) { .topbar .ring { display: none; } }
