:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --text: #0e1a33;
  --text-2: #3d4a63;
  --muted: #66738c;
  --border: #e3e8f1;
  --border-strong: #cfd8e8;
  --primary: #1d4ed8;
  --primary-hover: #1a44bd;
  --primary-ink: #ffffff;
  --primary-soft: #eaf0ff;
  --navy: #13307a;
  --navy-2: #1c3f95;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #a15c00;
  --warn-soft: #fff4de;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --g1: #d18b00; --g1-soft: #fff4dc;
  --g2: #15885a; --g2-soft: #e3f6ec;
  --g3: #2a5bea; --g3-soft: #e8efff;
  --g4: #7c4ddb; --g4-soft: #f1ebff;
  --shadow-sm: 0 1px 2px rgb(14 26 51 / 5%);
  --shadow: 0 1px 2px rgb(14 26 51 / 4%), 0 8px 24px rgb(14 26 51 / 6%);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--primary); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg { flex: none; }

/* ============ Layout ============ */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 18px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 0 6px 22px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.brand-name { font-weight: 800; letter-spacing: .06em; font-size: 17px; }
.brand-sub { font-size: 13px; color: var(--muted); }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 12px;
  background: none; cursor: pointer; text-align: left; color: var(--text-2); font-weight: 500;
}
.side-nav button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.side-nav button:hover { background: var(--surface-2); }
.side-nav button[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 6px 0; }
.side-foot .side-label { padding-left: 0; }
.side-foot p { margin: 0; color: var(--text-2); }

.main { padding: 34px 44px 24px; max-width: 1400px; width: 100%; }
.view { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 16px; margin: 10px 0 0; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn.outline:hover { border-color: var(--primary); color: var(--primary); }
.btn.white { background: #fff; color: var(--navy); width: 100%; padding: 13px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.linkish { background: none; border: 0; color: var(--primary); cursor: pointer; font-size: 13px; padding: 0; font-weight: 500; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--text-2); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.mic.listening { background: var(--bad); color: #fff; border-color: var(--bad); animation: pulse 1.2s infinite; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(179 38 30 / 45%); } 70% { box-shadow: 0 0 0 10px rgb(179 38 30 / 0%); } 100% { box-shadow: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ============ Group cards ============ */
.group-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.gcard {
  position: relative; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm);
}
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard[aria-pressed="true"] { border: 1.5px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.gcard .gno { position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: 15px; }
.gicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--gs); color: var(--gc); }
.gicon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gcard h3 { font-size: 17px; margin-bottom: 6px; }
.gcard p { margin: 0; font-size: 14px; color: var(--muted); }
.gcard .gmeta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ============ Explore ============ */
.explore-grid { display: block; }

.askbar {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 8px 8px 18px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.askbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.askbar .ico { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.askbar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 6px; font-size: 16px; }
.kbd { border: 1px solid var(--border-strong); border-radius: 8px; padding: 2px 9px; font: 13px/1.6 ui-monospace, monospace; color: var(--muted); }
.ask-btn { padding: 10px 16px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.suggest button { border: 1px dashed var(--border-strong); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.suggest button:hover { border-color: var(--primary); color: var(--primary); border-style: solid; }
.suggest .lbl { font-size: 13px; color: var(--muted); padding: 6px 2px; }

/* AI panel */
.ai-panel { margin-top: 18px; background: var(--surface); border: 1.5px solid var(--primary); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--primary-soft); overflow: hidden; }
.ai-panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ai-title { display: flex; gap: 12px; align-items: center; }
.ai-badge { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--g4)); display: grid; place-items: center; }
.ai-badge svg { width: 18px; height: 18px; fill: #fff; }
.ai-actions { display: flex; align-items: center; gap: 14px; }
.ai-log { max-height: 520px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ai-panel > footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.msg { max-width: 92%; }
.msg.user { align-self: flex-end; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; }
.msg.bot .body { background: var(--surface-2); padding: 12px 16px; border-radius: 4px 14px 14px 14px; }
.msg.bot p { margin: 0 0 8px; } .msg.bot p:last-child { margin: 0; }
.msg.bot ul, .msg.bot ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.bot h4 { margin: 8px 0 4px; font-size: 15px; }
.msg.bot table { font-size: 13px; }
.msg-tools { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.msg-tools .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.msg-tools .icon-btn svg { width: 15px; height: 15px; }
.msg .tag { font-size: 12px; color: var(--muted); }
.typing:empty::after, .typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 32px; height: 18px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* List */
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.list-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.seg button { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 14px; font-size: 14px; cursor: pointer; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.icard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s; }
.icard:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.icard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--gs, var(--primary-soft)); color: var(--gc, var(--primary)); }
.pill.draft { background: var(--warn-soft); color: var(--warn); }
.icard h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.01em; }
.icard .desc { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.icard .amount { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.icard .desc { margin-bottom: 18px; }
.amount .cap { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.amount .big { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; line-height: 1.3; margin-top: 4px; }
.amount .big.soft { font-size: 19px; }
.icard .foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.icard .src { font-size: 12px; color: var(--muted); }
.icard .acts { display: flex; gap: 8px; }
.empty { padding: 28px; text-align: center; color: var(--muted); grid-column: 1 / -1; }


/* ============ Form (Tư vấn nhanh) ============ */
.form { padding: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 16px; }
legend small { font-weight: 400; color: var(--muted); font-size: 14px; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: inline-grid; place-items: center; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 14px; user-select: none; transition: all .15s; }
.chip span:hover { border-color: var(--border-strong); }
.chip input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check input { margin-top: 5px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

#advisor-result { margin-top: 24px; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.result-head h2 { font-size: 22px; font-weight: 800; }
.summary-bar { padding: 16px 20px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.summary-bar .big { font-size: 26px; font-weight: 800; color: var(--ok); }
.pblock { margin-bottom: 18px; overflow: hidden; }
.pblock > header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.pblock h3 { font-size: 17px; }
.legal { font-size: 13px; color: var(--muted); }
.row-item { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.row-item:last-of-type { border-bottom: 0; }
.row-item .t { font-weight: 700; }
.row-item .lv { margin: 4px 0; }
.row-item .why { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.calc { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 14px; }
.calc input[type="text"], .calc input[type="number"] { width: 170px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.calc .est { font-weight: 800; color: var(--ok); }
.calc label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
details.more { background: var(--surface-2); font-size: 14px; }
details.more > summary { padding: 12px 20px; cursor: pointer; font-weight: 600; }
details.more > div { padding: 0 20px 16px; }
details.more h4 { margin: 10px 0 4px; font-size: 14px; }
details.more ul, details.more ol { margin: 0; padding-left: 20px; }

/* ============ Docs & contact ============ */
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doc-card { padding: 22px 24px; }
.doc-card.wide { grid-column: 1 / -1; }
.doc-card h3 { font-size: 18px; margin-bottom: 4px; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 46px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.checklist label { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.checklist label:last-child { border-bottom: 0; }
.checklist input { margin-top: 5px; flex: none; width: 16px; height: 16px; accent-color: var(--ok); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress > div { height: 100%; background: var(--ok); width: 0; transition: width .2s; }
.callout { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.person { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.person:last-child { border-bottom: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; flex: none; }

/* Dialog */
.dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: 86vh; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / 25%); }
.dialog::backdrop { background: rgb(8 15 30 / 50%); }
.dialog .dh { padding: 22px 24px 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.dialog .dh h3 { font-size: 21px; margin-top: 8px; }
.dialog .db { padding: 18px 24px 24px; }
.dialog .db h4 { font-size: 14px; margin: 16px 0 6px; }
.dialog .db ul, .dialog .db ol { margin: 0; padding-left: 20px; }

.foot { color: var(--muted); font-size: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 99; font-size: 14px; max-width: 90vw; }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .group-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .brand { padding: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-sub { display: none; }
  .brand > div { display: none; }
  .hide-sm { display: none !important; }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav button { padding: 9px 12px; white-space: nowrap; font-size: 14px; gap: 8px; }
  .main { padding: 22px 16px 20px; }
  .page-head { flex-direction: column; margin-bottom: 20px; }
  .page-head .btn.lg { width: 100%; }
  .item-grid, .docs-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .group-cards { gap: 10px; }
  .gcard { padding: 14px; }
  .gicon { width: 38px; height: 38px; margin-bottom: 10px; }
  .gcard h3 { font-size: 15px; }
  .gcard p { font-size: 12px; }
  .side-nav button svg { display: none; }
  .askbar { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .askbar input { flex-basis: calc(100% - 40px); }
  .askbar .kbd { display: none; }
  .askbar .mic { margin-left: auto; }
  .ask-btn { flex: 1; }
  .amount .big { font-size: 22px; }
  .icard { padding: 18px; }
  .msg { max-width: 100%; }
}
@media print {
  .sidebar, .form, .foot, .calc input, .btn, .page-head { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
}

/* ============ Trích dẫn sổ tay ============ */
.page-ref { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 1px 7px; vertical-align: middle; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.src-line { font-size: 12px; color: var(--muted); margin-top: 4px; }
.not-in { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: 14px; }
.level-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; font-weight: 600; }
.row-item.spec { background: var(--surface-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
details.more p { margin: 4px 0; }
.dialog .db p { margin: 4px 0; }

.need-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.need-opt { position: relative; cursor: pointer; }
.need-opt input { position: absolute; opacity: 0; pointer-events: none; }
.need-opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: all .15s; }
.need-opt > span strong { font-weight: 600; }
.need-opt > span small { color: var(--muted); font-size: 13px; }
.need-opt:hover > span { border-color: var(--border-strong); }
.need-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.need-opt input:checked + span small { color: var(--primary); font-weight: 600; }
.need-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 700px) { .need-grid { grid-template-columns: minmax(0, 1fr); } }
