/* =============================================================
   FREE SURGEON DB — styles
   Clean & clinical. Light + dark via [data-theme] on <html>.
   ============================================================= */

/* ---- Theme tokens ---- */
:root {
  --bg:           #eef1f0;
  --surface:      #ffffff;
  --surface-2:    #f0f3f2;
  --surface-3:    #e6eae9;
  --border:       #dde3e1;
  --border-strong:#c5cecb;
  --text:         #15201f;
  --text-muted:   #5c6b6a;
  --text-faint:   #8a9897;
  --accent:       #2563c9;
  --accent-strong:#1b4ca0;
  --accent-soft:  #e8eefb;
  --accent-text:  #1a4690;
  --star:         #c89200;
  --danger:       #b4453a;
  --shadow-sm:    0 1px 2px rgba(20,40,38,.05), 0 1px 3px rgba(20,40,38,.04);
  --shadow-md:    0 4px 14px rgba(20,40,38,.08), 0 2px 4px rgba(20,40,38,.05);
  --shadow-lg:    0 18px 50px rgba(15,30,28,.18), 0 4px 12px rgba(15,30,28,.10);
  --radius:       6px;
  --radius-sm:    5px;
  --radius-lg:    10px;
  /* type + structure (Technical look, Blue accent) */
  --font-sans:    "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --card-shadow:        none;
  --card-shadow-hover:  0 3px 10px rgba(15,30,28,.10);
  --label-tracking:     .08em;
  --label-transform:    uppercase;
}
html[data-theme="dark"] {
  --bg:           #0b1110;
  --surface:      #121a18;
  --surface-2:    #18221f;
  --surface-3:    #202c29;
  --border:       #243430;
  --border-strong:#324440;
  --text:         #e7efec;
  --text-muted:   #9eb0ab;
  --text-faint:   #6f817c;
  --accent:       #5b9bff;
  --accent-strong:#79b0ff;
  --accent-soft:  rgba(91,155,255,.15);
  --accent-text:  #8fbaff;
  --star:         #e0b340;
  --danger:       #e0796d;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.3);
  --shadow-md:    0 6px 18px rgba(0,0,0,.4);
  --shadow-lg:    0 22px 60px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-display); }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: url("assets/logo-white.png") center / 74% no-repeat,
              linear-gradient(150deg, var(--accent), var(--accent-strong));
  position: relative;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-display); }
.brand-sub { font-size: 11.5px; color: var(--text-muted); font-weight: 500; letter-spacing: .01em; }
.header-spacer { flex: 1; }
.header-stat {
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); white-space: nowrap;
}
.header-stat b { color: var(--text); font-weight: 700; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); transition: all .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---- Layout shell ---- */
.shell {
  max-width: 1440px; margin: 0 auto;
  padding: 28px;
  display: grid; grid-template-columns: 286px 1fr; gap: 28px;
  align-items: start;
}

/* ---- Sidebar ---- */
.sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 116px); overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.filter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filter-block { padding: 16px 16px; border-bottom: 1px solid var(--border); }
.filter-block:last-child { border-bottom: none; }
.filter-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: var(--label-transform);
  color: var(--text-faint); margin-bottom: 11px;
}
.filter-head .count-pill {
  font-size: 10.5px; background: var(--accent-soft); color: var(--accent-text);
  padding: 1px 7px; border-radius: 99px; letter-spacing: 0; font-weight: 700;
}

/* search */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }
.search-input {
  width: 100%; padding: 11px 12px 11px 36px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* checkbox lists */
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.proc-group-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin: 10px 0 3px; letter-spacing: .01em; }
.proc-group-label:first-child { margin-top: 0; }
.check {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 7px; border-radius: 7px; cursor: pointer;
  font-size: 13.5px; color: var(--text); user-select: none;
  transition: background .12s;
}
.check:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 17px; height: 17px; flex: none; border-radius: 5px;
  border: 1.6px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; transition: all .12s;
}
.check .box svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.6); transition: all .12s; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check .lbl { flex: 1; min-width: 0; }
.check .n { color: var(--text-faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* price segmented */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg button {
  padding: 8px 6px; border: 1px solid var(--border-strong); border-radius: 7px;
  background: var(--surface); color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  transition: all .12s;
}
.seg button:hover { border-color: var(--accent); color: var(--text); }
.seg button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.clear-all {
  width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.clear-all:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.clear-all:disabled { opacity: .45; cursor: default; }
.clear-all:disabled:hover { color: var(--text-muted); border-color: var(--border); }

/* ---- Main ---- */
.results-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.results-count { font-size: 15px; font-weight: 700; }
.results-count span { color: var(--text-muted); font-weight: 500; }
.results-bar .spacer { flex: 1; }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.sort-select {
  padding: 8px 30px 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6b6a' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  color: var(--text); font-size: 13.5px; font-weight: 600; -webkit-appearance: none; appearance: none;
}
.sort-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* view switcher */
.view-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.view-switch button {
  display: grid; place-items: center; width: 32px; height: 30px;
  border: none; background: none; color: var(--text-faint); border-radius: 6px; transition: all .14s;
}
.view-switch button svg { width: 17px; height: 17px; }
.view-switch button:hover { color: var(--text); background: var(--surface-2); }
.view-switch button.active { background: var(--accent); color: #fff; }

/* active filter chips */
.active-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.active-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 7px 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid transparent;
}
.chip button { background: none; border: none; color: inherit; display: grid; place-items: center; padding: 2px; border-radius: 99px; opacity: .65; }
.chip button:hover { opacity: 1; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.chip button svg { width: 12px; height: 12px; }

/* ---- Card grid ---- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--card-shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); border-color: var(--border-strong); }
.card-top { display: flex; gap: 13px; align-items: flex-start; }
.avatar {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: -.02em;
  background: var(--accent-soft); color: var(--accent-text);
}
.card-id { min-width: 0; flex: 1; }
.card-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; font-family: var(--font-display); }
.card-clinic { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-loc { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.card-loc svg { width: 12px; height: 12px; flex: none; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.rating svg { width: 14px; height: 14px; color: var(--star); }
.rating .rc { color: var(--text-faint); font-weight: 500; font-size: 12px; }
.rating.none { color: var(--text-faint); font-weight: 500; font-size: 12.5px; }

.proc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px;
  background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.tag.more { background: transparent; border-color: transparent; color: var(--text-faint); padding-left: 2px; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.price-label { font-size: 11px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.price-val { font-size: 14.5px; font-weight: 700; }
.price-val .cur { color: var(--text-faint); font-weight: 600; font-size: 12px; }
.view-link { font-size: 12.5px; font-weight: 700; color: var(--accent-text); display: inline-flex; align-items: center; gap: 3px; }
.view-link svg { width: 13px; height: 13px; }

/* ---- List rows view ---- */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 2.1fr) minmax(0, 1.7fr) auto 132px;
  align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--card-shadow); cursor: pointer;
  transition: transform .12s ease, box-shadow .14s ease, border-color .14s ease;
}
.row:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); border-color: var(--border-strong); }
.row .avatar { width: 46px; height: 46px; }
.row-id { min-width: 0; }
.row-id .card-name { font-size: 15.5px; }
.row-id .card-clinic { font-size: 12.5px; }
.row-id .card-loc { margin-top: 1px; }
.row-procs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.row-rating { justify-self: start; }
.row-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.row-price .price-val { font-size: 14px; }
.row-price .view-link { font-size: 11.5px; }

/* ---- Data table view ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: var(--label-transform);
  color: var(--text-faint); padding: 13px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none;
}
.data-table thead th.sortable { cursor: pointer; }
.data-table thead th.sortable:hover { color: var(--text); }
.data-table th .th-in { display: inline-flex; align-items: center; gap: 5px; }
.data-table th .th-in svg { width: 12px; height: 12px; opacity: 0; transition: opacity .14s; }
.data-table th.sorted .th-in svg { opacity: 1; color: var(--accent-text); }
.data-table th.num { text-align: right; }
.data-table th.num .th-in { flex-direction: row-reverse; }
.data-table tbody tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td { padding: 12px 18px; font-size: 13.5px; vertical-align: middle; }
.dt-surgeon { display: flex; align-items: center; gap: 12px; }
.dt-surgeon .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 9px; }
.dt-name { font-weight: 700; font-size: 14px; font-family: var(--font-display); }
.dt-clinic { font-size: 12px; color: var(--text-muted); }
.dt-loc { color: var(--text-muted); white-space: nowrap; }
.dt-procs { color: var(--text-muted); }
.dt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-price { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.dt-rating svg { width: 13px; height: 13px; color: var(--star); }
.dt-rating.none { color: var(--text-faint); font-weight: 500; }

.price-val, .price-val .cur,
.price-table .pprice,
.rating .tnum, .rating .rc,
.check .n, .header-stat,
.panel-meta .mi,
.price-label, .view-link,
.dt-price, .dt-num, .dt-rating { font-family: var(--font-mono); }

.tag {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .02em; border-radius: 4px;
}
.avatar { border-radius: 6px; font-family: var(--font-mono); font-weight: 700; }

/* ---- Empty ---- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty svg { width: 44px; height: 44px; color: var(--text-faint); margin-bottom: 14px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.empty p { font-size: 14px; margin: 0 0 18px; }

/* ---- Detail panel ---- */
.backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(12,22,20,.42);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.backdrop.open { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed; top: 0; right: 0; z-index: 70; height: 100vh; width: 560px; max-width: 94vw;
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.15,1);
  display: flex; flex-direction: column;
}
.panel.open { transform: translateX(0); }
.panel-head {
  padding: 24px 28px 20px; border-bottom: 1px solid var(--border); position: relative;
  display: flex; gap: 16px; align-items: flex-start;
}
.panel-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  display: grid; place-items: center; transition: all .15s;
}
.panel-close:hover { background: var(--surface-3); color: var(--text); }
.panel-close svg { width: 17px; height: 17px; }
.panel .avatar { width: 56px; height: 56px; font-size: 19px; border-radius: 6px; }
.panel-title { min-width: 0; padding-right: 40px; }
.panel-title h2 { font-size: 22px; letter-spacing: -.02em; }
.panel-title .clinic { font-size: 14.5px; color: var(--text-muted); margin-top: 2px; }
.panel-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.panel-meta .mi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.panel-meta .mi svg { width: 14px; height: 14px; color: var(--text-faint); flex: none; }
.panel-meta .mi b { color: var(--text); font-weight: 700; }

.panel-body { padding: 22px 28px 40px; overflow-y: auto; flex: 1; }
.section { margin-bottom: 28px; }
.section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: var(--label-transform);
  color: var(--text-faint); margin-bottom: 12px;
}

/* price table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--border); }
.price-table tr:last-child { border-bottom: none; }
.price-table td { padding: 11px 0; vertical-align: top; }
.price-table .pname { font-size: 14px; font-weight: 600; }
.price-table .pnote { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.price-table .pprice { text-align: right; font-size: 14px; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.price-table .pprice .cur { color: var(--text-faint); font-weight: 600; font-size: 12px; }
.poa { color: var(--text-muted); font-weight: 600; font-size: 13px; }

/* contact */
.contact-row { display: flex; flex-direction: column; gap: 9px; }
.contact-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: 14px; text-decoration: none; color: var(--text); transition: all .15s; font-weight: 600;
}
a.contact-item:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.contact-item svg { width: 17px; height: 17px; color: var(--text-faint); flex: none; }
a.contact-item:hover svg { color: var(--accent); }
.contact-item .ci-val { word-break: break-all; }

.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.detail-subhead svg { width: 15px; height: 15px; flex: none; color: var(--text-faint); }

.note-item {
  font-size: 13.5px; color: var(--text); line-height: 1.55; padding: 12px 14px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 9px;
}
.note-item:last-child { margin-bottom: 0; }

.disclaimer {
  font-size: 12px; color: var(--text-faint); line-height: 1.55;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px;
}

/* ---- Footer ---- */
.site-footer {
  max-width: 1440px; margin: 0 auto; padding: 28px;
  border-top: 1px solid var(--border); margin-top: 12px;
  font-size: 12.5px; color: var(--text-faint); line-height: 1.6;
}
.site-footer b { color: var(--text-muted); font-weight: 700; }

/* mobile filter toggle */
.filter-fab { display: none; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .row { grid-template-columns: 42px 1fr auto; gap: 14px; }
  .row-procs, .row .row-rating { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 80; height: 100vh; width: 320px; max-width: 88vw;
    max-height: none; background: var(--surface); padding: 18px; margin: 0;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.15,1);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .filter-fab {
    display: inline-flex; align-items: center; gap: 7px;
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
    padding: 12px 20px; border-radius: 99px; border: none;
    background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
    box-shadow: var(--shadow-lg);
  }
  .filter-fab svg { width: 16px; height: 16px; }
  .sidebar-scrim {
    position: fixed; inset: 0; z-index: 79; background: rgba(12,22,20,.42); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .sidebar-scrim.open { opacity: 1; pointer-events: auto; }
  .header-stat { display: none; }
}
@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; }
  .shell { padding: 14px; }
  .grid { grid-template-columns: 1fr; }
  .panel-head, .panel-body { padding-left: 18px; padding-right: 18px; }
}
.sidebar-close { display: none; }
@media (max-width: 900px) {
  .sidebar-close {
    display: grid; place-items: center; position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--text-muted);
  }
  .sidebar-close svg { width: 16px; height: 16px; }
}
