:root {
  color-scheme: light; /* selalu tema terang, tidak mengikuti dark mode sistem */
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e3e6eb;
  --brand: #da291c;
  --brand-dark: #b21f15;
  --ok: #15803d;
  --ok-bg: #e8f6ed;
  --warn: #b45309;
  --warn-bg: #fff4e0;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --accent-bg: #fff7f6;
  --radius: 10px;
  --topbar: 60px;
  --sidebar: 236px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small, small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* Topbar & tabs */
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 20px; height: var(--topbar); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand small { display: block; color: var(--muted); }
.logo { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.pl-box { margin: 4px 2px 2px; padding: 6px 4px; display: flex; flex-direction: column; gap: 8px; }
.pl-box-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pl-badge { font-size: 12.5px; line-height: 1.35; word-break: break-word; }
.pl-badge small { color: var(--muted); }
.pl-upload { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.pl-upload svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-badge.empty-badge { color: var(--bad); }
.count { background: var(--brand); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

main { flex: 1; min-width: 0; padding: 20px 24px 60px; max-width: 1560px; }
.tab { display: none; }
.tab.active { display: block; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.card.highlight { border-color: var(--brand); background: linear-gradient(0deg, var(--card), var(--accent-bg)); }
.card.req { padding: 12px 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.layout { display: grid; grid-template-columns: minmax(330px, 420px) 1fr; gap: 16px; align-items: start; }
.layout .form { position: sticky; top: calc(var(--topbar) + 16px); max-height: calc(100vh - var(--topbar) - 32px); overflow: auto; }
.results { min-width: 0; }
@media (max-width: 980px) { .grid2, .layout { grid-template-columns: 1fr; } .layout .form { position: static; max-height: none; } }

/* Forms */
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 4px; margin: 0 0 12px; }
legend { font-weight: 600; font-size: 12.5px; padding: 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.field label { font-size: 12.5px; font-weight: 600; }
.field small { color: var(--muted); font-size: 11px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.field input, .field select { width: 100%; }
.row-inline .field input, .row-inline .field select { width: auto; }
.checkfield { justify-content: flex-end; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--text); min-width: 0; }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=checkbox] { padding: 0; margin: 0 6px 0 0; accent-color: var(--brand); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 10px; font-size: 13px; }
.checks label { display: flex; align-items: center; cursor: pointer; }
.row-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.row-inline .field { margin-bottom: 0; }
.grow { flex: 1; min-width: 200px; }
.small-input input { width: 110px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hint { font-size: 12.5px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btns.end { justify-content: flex-end; }
.icon { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px 6px; border-radius: 5px; }
.icon:hover { background: var(--bad-bg); color: var(--bad); }

/* Dropzone */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--accent-bg); }
.dz-icon { font-size: 32px; }

/* Notices & tags */
.notice { padding: 10px 12px; border-radius: 8px; margin: 10px 0; border: 1px solid transparent; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--line); color: var(--muted); vertical-align: middle; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.stats > div { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.stats b { display: block; font-size: 18px; }
.stats span { font-size: 12px; color: var(--muted); }

/* Recommendation */
.rec-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rec-head h3 { margin: 6px 0 2px; font-size: 17px; }
.price-big { font-size: 20px; font-weight: 700; text-align: right; white-space: nowrap; }
.price-big small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); position: sticky; top: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.mini td, table.mini th { padding: 5px 6px; font-size: 12.5px; }
table.mini { margin: 8px 0; }
table.cmp tr.fail td { opacity: .6; }
table.cmp tr.detail td { border-bottom: 1px solid var(--line); padding-top: 0; }
table.cmp tr:not(.detail) td { border-bottom: 0; }
details summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
td.up { color: var(--bad); }
td.down { color: var(--ok); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* Bars */
.bar { position: relative; height: 18px; min-width: 90px; background: var(--bg); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.bar span { position: absolute; inset: 0 auto 0 0; }
.bar.ok span { background: color-mix(in srgb, var(--ok) 35%, transparent); }
.bar.warn span { background: color-mix(in srgb, var(--warn) 40%, transparent); }
.bar.bad span { background: color-mix(in srgb, var(--bad) 40%, transparent); }
.bar em { position: relative; font-style: normal; font-size: 11px; padding-left: 6px; line-height: 16px; }

/* BOM */
.bom-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
table.bom td.desc { max-width: 520px; font-size: 12.5px; }
table.bom input.qty { width: 70px; text-align: right; }
table.bom input.disc { width: 64px; text-align: right; }
table.bom tr.grp td { background: var(--bg); font-weight: 600; }
table.bom .grp-name { font-weight: 600; border-color: transparent; background: transparent; width: 280px; }
table.bom .grp-name:hover { border-color: var(--line); }
table.bom tfoot td { font-weight: 600; border-bottom: 0; }
table.bom tfoot tr.grand td { font-size: 16px; color: var(--brand); }

/* Specs */
table.spec input { width: 100%; min-width: 70px; padding: 4px 6px; }

.howto li { margin-bottom: 6px; }

/* Toast & overlay */
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--text); color: var(--card); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .25s; max-width: 380px; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.bad { background: var(--bad); color: #fff; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 60; font-weight: 600; }
.overlay[hidden] { display: none; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print {
  .topbar, .tabs, .btns, .icon, .bom-head .btns { display: none !important; }
  .tab { display: none !important; }
  #tab-bom { display: block !important; }
  .card { box-shadow: none; border: 0; }
}

@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .brand small { display: none; }
  .topbar label.btn { padding: 6px 10px; font-size: 13px; }
  main { padding: 12px 16px 60px; }
  .rec-head { flex-direction: column; }
  .price-big { text-align: left; }
}

/* Tabel IDF FortiSwitch */
table.idf th, table.idf td { padding: 4px 4px; border-bottom: 0; }
table.idf input { width: 100%; min-width: 48px; padding: 5px 6px; }
table.idf td:first-child input { min-width: 90px; }
.idf-sel { width: 100%; margin: 6px 0; }
.checks-list { list-style: none; padding: 0; margin: 8px 0 12px; font-size: 13px; }
.checks-list li { margin: 4px 0; }
.ok-li { color: var(--ok); }
.bad-li { color: var(--bad); }
.warn-li { color: var(--warn); }
.zone { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 0; margin-bottom: 8px; position: relative; }
.zone .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zone .zone-del { position: absolute; top: 4px; right: 4px; }
.zone .field { margin-bottom: 8px; }

/* Pemilih produk lain */
.prod-pick { padding: 10px 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 18px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.pill:hover { border-color: var(--muted); }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Sizing Form */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--card); color: var(--text); padding: 7px 14px; font: inherit; cursor: pointer; }
.seg button.active { background: var(--brand); color: #fff; }
.form-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin-top: 10px; }
.form-head input { width: 100%; }
table.qtable td { vertical-align: top; }
table.qtable td:first-child { width: 36px; color: var(--muted); }
table.qtable td:nth-child(2) { width: 52%; }
table.qtable tr.grp td { background: var(--bg); font-weight: 600; }
table.qtable textarea, table.qtable input:not([type=radio]), table.qtable select { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); resize: vertical; }
table.qtable .yn { display: flex; gap: 10px; align-items: center; }
table.qtable .yn label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
table.qtable .yn input[data-note], table.qtable .yn select { flex: 1; }
table.qtable.edit td:nth-child(2) { width: 16%; }
table.qtable.edit td:nth-child(3) { width: 42%; }
table.qtable.edit td:nth-child(5) select, table.qtable.edit td:nth-child(5) input { margin-bottom: 4px; }
@media (max-width: 900px) { .form-head { grid-template-columns: 1fr 1fr; } }
.seg button { white-space: nowrap; }
#tab-forms .row-between { flex-wrap: wrap; }

/* ================= Sidebar navigasi ================= */
.shell { display: flex; align-items: flex-start; }
.sidebar { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); width: var(--sidebar); flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--card); border-right: 1px solid var(--line); padding: 8px 10px 10px; overflow-y: auto; transition: width .18s ease; z-index: 4; }
.sidebar nav { flex: 1; }
.nav-group h4 { margin: 14px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); white-space: nowrap; }
.nav-item, .nav-collapse { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px;
  text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; position: relative; }
.nav-item svg, .nav-collapse svg, .icon-btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item svg { opacity: .75; }
.nav-item:hover, .nav-collapse:hover { background: var(--bg); }
.nav-item.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.nav-item.active svg { opacity: 1; }
.nav-item.active::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item .lbl { overflow: hidden; text-overflow: ellipsis; }
.nav-item .count { margin-left: auto; }
.nav-collapse { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: 8px; padding-top: 12px; }
.icon-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 6px; cursor: pointer; display: inline-flex; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

/* Mode ciut: ikon saja */
.nav-collapsed { --sidebar: 64px; }
.nav-collapsed .sidebar .lbl, .nav-collapsed .sidebar .count { display: none; }
.nav-collapsed .nav-group h4 { font-size: 0; margin: 10px 8px; border-top: 1px solid var(--line); }
.nav-collapsed .nav-item, .nav-collapsed .nav-collapse { justify-content: center; padding: 9px 0; }
.nav-collapsed .nav-collapse svg { transform: rotate(180deg); }
.nav-collapsed .pl-box { padding: 6px; border: 0; background: none; }
.nav-collapsed .pl-box .lbl { display: none; }

/* Layar kecil: menu geser */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 260px; transform: translateX(-105%); transition: transform .2s ease; z-index: 40; box-shadow: var(--shadow); }
  .nav-open .sidebar { transform: none; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .nav-collapse { display: none; }
  .nav-collapsed { --sidebar: 236px; }
  .nav-collapsed .sidebar .lbl, .nav-collapsed .sidebar .count { display: inline; }
  .nav-collapsed .nav-group h4 { font-size: 11px; margin: 14px 10px 6px; border: 0; }
  .nav-collapsed .nav-item { justify-content: flex-start; padding: 8px 10px; }
  main { padding: 14px 16px 60px; }
}
@media print { .sidebar, .nav-backdrop { display: none !important; } }

/* ================= Hub produk sizing ================= */
.hub-head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 10px 20px; align-items: center; }
.hub-head h2 { margin-bottom: 4px; }
.hub-head p { margin: 0; }
.hub-head .pills { grid-column: 1 / -1; }
.hub-search { position: relative; }
.hub-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.hub-search input { width: 100%; padding: 11px 12px 11px 38px; font-size: 14.5px; border-radius: 10px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hub-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-card:hover, .hub-card:focus-visible { border-color: var(--brand); box-shadow: 0 4px 14px rgba(218, 41, 28, .12); transform: translateY(-1px); outline: none; }
.hub-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-bg); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.hub-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-right: 54px; }
.hub-body b { font-size: 15px; }
.hub-body .tag { align-self: flex-start; }
.hub-go { position: absolute; right: 14px; top: 16px; font-size: 12px; font-weight: 600; color: var(--brand); opacity: 0; transition: opacity .15s; }
.hub-card:hover .hub-go { opacity: 1; }
.count.soft { background: var(--line); color: var(--muted); }
.nav-item.active .count.soft { background: var(--brand); color: #fff; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.crumb-title { font-size: 14px; }
.prod-pick { display: none; }
@media (max-width: 760px) { .hub-head { grid-template-columns: 1fr; } }

/* Product Matrix */
.pm-filters { flex-wrap: wrap; }
.pm-filters .field input { width: 180px; }
table.pm-table th.sortable[data-sort]:not([data-sort=""]) { cursor: pointer; user-select: none; }
table.pm-table th.sortable[data-sort]:not([data-sort=""]):hover { color: var(--brand); }
table.pm-table tr.picked td { background: var(--accent-bg); }
table.pm-cmp th { text-align: left; font-weight: 600; white-space: nowrap; }
table.pm-cmp tbody th { color: var(--muted); font-weight: 500; }
table.pm-cmp td.best { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.pm-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pill.active .pm-count { background: #fff; color: var(--brand); }
.pm-colpick { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
table.pm-cmp th.picked, table.pm-cmp td.picked { background: var(--accent-bg); }
.pm-tray { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--brand); box-shadow: 0 6px 20px rgba(16, 24, 40, .15); }
.pm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 16px; background: var(--accent-bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pm-chip .icon { padding: 0 4px; }
.pm-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pm-slot { display: inline-flex; align-items: center; gap: 2px; }
.pm-slot select { min-width: 170px; }
table.pm-compare th.base, table.pm-compare td.base { box-shadow: inset 0 0 0 9999px rgba(218, 41, 28, .04); }
table.pm-compare thead th { vertical-align: bottom; }
.pm-delta { font-weight: 600; margin-left: 2px; }
.pm-delta.up { color: var(--ok); }
.pm-delta.down { color: var(--bad); }
button.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 12px; font-weight: 400; }
button.link:hover { text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Deployment selector & tags */
.deploy-field select { border-color: var(--brand); font-weight: 600; }
.tag.dep { background: #eef2ff; color: #3730a3; }
.tag.dep-hw { background: #f1f5f9; color: #334155; }
.tag.dep-vm { background: #ecfeff; color: #0e7490; }
.tag.dep-cloud { background: #eef2ff; color: #4338ca; }

/* Save sizing (crumb) & Saved Sizings page */
.crumb-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.crumb-saved { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-filters { flex-wrap: wrap; margin-top: 8px; }
.sv-filters .field input { width: 260px; }
.sv-card h3 { margin-bottom: 2px; }
.sv-card details { margin-top: 6px; }

/* Solution Guide */
.g-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.g-items { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--topbar) + 16px); max-height: calc(100vh - var(--topbar) - 32px); overflow: auto; }
.g-item { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.g-item small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.g-item:hover { border-color: var(--muted); }
.g-item.active { border-color: var(--brand); background: var(--accent-bg); }
.g-detail h3 { margin-top: 18px; }
.g-tag { color: var(--muted); margin: 0; }
.g-pitch { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--accent-bg); border-radius: 6px; }
.g-pitch p { margin: 4px 0 0; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.g-list { margin: 4px 0; padding-left: 20px; }
.g-list li { margin: 3px 0; }
.g-src a { color: var(--brand); }
@media (max-width: 900px) { .g-layout, .g-grid { grid-template-columns: 1fr; } .g-items { position: static; max-height: 260px; } }
