/* explorer.css – Zusätze für den MdB-Explorer (style.css bleibt Basis) */

body.explorer{min-height:100dvh}
.filters-toggle{display:none}

/* Loading */
.loading{display:flex; flex-direction:column; align-items:center; gap:14px; padding:80px 20px; color:var(--muted)}
.spinner{width:34px; height:34px; border-radius:50%; border:4px solid var(--line); border-top-color:var(--accent);
  animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Layout */
.explorer-layout{
  display:grid; grid-template-columns:320px minmax(0,1fr); gap:20px;
  width:100%; max-width:1400px; margin:0 auto; padding:18px; flex:1; align-items:start;
}
.filters{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:18px; position:sticky; top:82px; max-height:calc(100dvh - 100px); overflow-y:auto;
}
.filters-head{display:flex; justify-content:space-between; align-items:center}
.filters h2{font-size:18px; font-weight:800}
.close-filters{display:none; width:auto; margin:0}
.filters .field{margin:16px 0}
.filters .field:first-of-type{margin-top:12px}
.filters .ghost.small{margin-top:14px}

input.text, select{
  width:100%; padding:9px 11px; border-radius:10px; border:1px solid var(--line);
  background:var(--chip); color:var(--ink); font:inherit; font-size:14px;
}
input.text:focus, select:focus, .chip:focus-visible, button:focus-visible, .mcard:focus-visible, .row-btn:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}
.range{display:flex; align-items:center; gap:8px; margin-top:6px}
.range span{color:var(--muted)}
.presets{display:flex; gap:6px; margin-top:8px; flex-wrap:wrap}
.preset{
  border:1px solid var(--line); background:var(--panel); color:var(--ink); border-radius:999px;
  padding:5px 10px; font-size:12px; font-weight:600; cursor:pointer;
}
.preset.active{background:var(--accent); color:var(--accent-ink); border-color:var(--accent)}
.chips.small .chip{padding:5px 9px; font-size:12px}
.chip.plain.on{border-color:var(--accent); color:var(--accent)}
.chip.plain.off{opacity:.6}
.chip.plain.off:hover{opacity:.9}
.chip.on .cnt, .chip.off .cnt{color:var(--muted); font-weight:500}
.chip.plain{color:var(--ink)}
.chip.idle{opacity:.85}
.chip.idle:hover{opacity:1}
.filters .segmented button{padding:8px 6px; font-size:13px; min-width:0}
.toggles .check{display:flex; align-items:center; gap:8px; font-size:14px; padding:5px 0; cursor:pointer;
  text-transform:none; letter-spacing:0; color:var(--ink); font-weight:500; margin:0}
.check input{width:16px; height:16px; accent-color:var(--accent)}
.field>label.check{display:flex; text-transform:none; letter-spacing:0; color:var(--ink); font-weight:500; font-size:14px; margin-top:8px}
.comm-list{
  margin-top:6px; max-height:180px; overflow-y:auto; border:1px solid var(--line); border-radius:10px;
  padding:4px; background:var(--panel);
}
.comm-list label{display:flex; gap:8px; align-items:flex-start; font-size:13px; padding:5px 6px; border-radius:7px; cursor:pointer}
.comm-list label:hover{background:var(--chip)}
.comm-list label.on{background:color-mix(in srgb,var(--accent) 14%,var(--chip)); font-weight:600}
.comm-list input{margin-top:2px; flex-shrink:0; accent-color:var(--accent)}
.comm-list .empty-note{color:var(--muted); font-size:12px; padding:6px}
.comm-list .ctype{color:var(--muted); font-size:11px}

/* Results */
.results{min-width:0}
.toolbar{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px}
.count{font-size:20px; font-weight:800; letter-spacing:-.2px}
.count small{font-size:13px; color:var(--muted); font-weight:600; margin-left:6px}
.toolbar-right{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.toolbar .ghost.small{width:auto; margin:0; padding:8px 11px}
.toolbar .ghost.icon{padding:8px 12px; font-size:15px}
.view-toggle{padding:4px}
.view-toggle button{padding:7px 12px; font-size:13px; min-width:0; flex:0 0 auto}
.sort-wrap{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); font-weight:600}
.sort-wrap select{width:auto; padding:7px 9px}

/* Cohort bar */
.cohort-bar{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:12px 14px; margin-bottom:12px;
  background:color-mix(in srgb,var(--accent) 12%,var(--panel)); border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));
  border-radius:var(--radius);
}
.cohort-bar img{width:44px; height:56px; object-fit:cover; border-radius:8px; background:var(--chip)}
.cohort-text{flex:1; min-width:180px}
.cohort-title{font-size:16px; font-weight:800}
.cohort-sub{font-size:13px; color:var(--muted); margin-top:2px}
.cohort-min{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); font-weight:600}
.cohort-min select{width:auto; padding:6px 8px}
.cohort-bar .ghost.small{width:auto; margin:0}

/* Focus bar (Ego-Netzwerk) */
.focus-bar{
  display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; padding:10px 14px; margin-bottom:12px;
  background:color-mix(in srgb,var(--accent) 12%,var(--panel)); border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));
  border-radius:var(--radius);
}
.fb-title{font-size:14px; font-weight:800}
.fb-chips{display:flex; flex-wrap:wrap; gap:6px; flex:1; min-width:160px}
.fchip{display:inline-flex; align-items:center; gap:6px; padding:3px 4px 3px 3px; border-radius:999px; background:var(--panel);
  border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line)); font-size:13px; font-weight:700}
.fchip img{width:24px; height:24px; border-radius:50%; object-fit:cover; object-position:top; background:var(--chip)}
.fchip button{border:none; background:var(--chip); color:var(--muted); width:22px; height:22px; border-radius:50%; cursor:pointer; font-size:14px; font-weight:700; line-height:1}
.fchip button:hover{background:var(--accent); color:var(--accent-ink)}
.fb-sel{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); font-weight:600}
.fb-sel select{width:auto; padding:6px 8px}
.fb-count{font-size:13px; color:var(--muted)}
.fb-count b{color:var(--ink)}
.fb-count .warn{color:var(--again); font-weight:600}
.focus-bar .ghost.small{width:auto; margin:0}
.fb-row{flex-basis:100%; display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding-top:8px; border-top:1px solid color-mix(in srgb,var(--accent) 25%,var(--line))}
.fb-sub{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--muted)}
.fb-hint{font-size:12px; color:var(--muted)}
.fb-hint .warn{color:var(--again); font-weight:600}
.flag.focus{background:var(--accent); color:var(--accent-ink)}
.mcard.is-focus{outline:2px solid var(--accent); outline-offset:1px}
tr.is-focus td{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.net-btn{
  position:absolute; top:14px; left:14px; width:26px; height:26px; border-radius:50%; border:none; cursor:pointer;
  background:color-mix(in srgb,var(--panel) 85%,transparent); color:var(--accent); font-size:16px; line-height:1; font-weight:800;
  opacity:0; transition:opacity .12s; box-shadow:0 1px 4px rgba(0,0,0,.2); padding:0;
}
.mcard:hover .net-btn, .mcard:focus-within .net-btn, .net-btn:focus-visible{opacity:1}
.net-btn:hover{background:var(--accent); color:var(--accent-ink)}
@media (hover:none){.net-btn{opacity:.9}}
.namecell{display:flex; align-items:center; gap:6px}
.namecell .net-btn{position:static; opacity:0; width:22px; height:22px; font-size:14px; box-shadow:none; background:var(--chip); flex-shrink:0}
tr:hover .namecell .net-btn, .namecell .net-btn:focus-visible{opacity:1}
@media (hover:none){.namecell .net-btn{opacity:.8}}
td.fcol{max-width:260px}

/* Vernetzung (Connectedness) */
.info{display:inline-block; margin-left:4px; color:var(--accent); cursor:help; font-size:13px; text-transform:none; letter-spacing:0}
.info-box{font-size:12px; color:var(--muted); margin:-4px 0 8px}
.info-box summary{cursor:pointer; font-weight:600}
.info-box p{margin:6px 0 0; line-height:1.45}
.sublabel{display:block; font-size:12px; color:var(--muted); font-weight:600; margin-top:10px}
.conn-field .range{margin-top:4px}
.cscore{display:inline-flex; align-items:center; gap:5px; margin-left:8px; vertical-align:middle; font-size:11px; font-weight:800; color:var(--ink)}
.cscore i{display:inline-block; height:6px; width:36px; border-radius:3px; background:var(--chip); overflow:hidden; flex-shrink:0}
.cscore i em{display:block; height:100%; background:var(--accent); border-radius:3px}
.cscore.big{font-size:14px}
.cscore.big i{height:8px; width:80px}
td .cscore{margin-left:0}
.d-conn{font-size:13px; color:var(--muted); margin:-4px 0 10px; line-height:1.6}
.d-conn b{color:var(--ink)}
.d-actions{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.d-actions .ghost.small{width:auto; margin:0; padding:9px 12px}
.stat-mean{font-weight:600; text-transform:none; letter-spacing:0; margin-left:6px}

/* Organisationen & Ämter */
.hint-inline{font-weight:500; text-transform:none; letter-spacing:0; color:var(--muted); font-size:11px}
.org-field .check.master{font-weight:700; margin-top:6px}
.org-body{border-left:3px solid color-mix(in srgb,var(--accent) 35%,var(--line)); padding-left:10px; margin-top:6px}
.org-body .hint{margin:4px 0 0; font-size:12px; color:var(--muted)}
.org-body .hint .warn{color:var(--again); font-weight:600}
.org-body input.text{margin-top:6px}
.org-body .check{margin-top:6px}
.kicon{font-style:normal; font-size:11px; margin-right:2px}
.org-list label{align-items:center}
.org-sel{display:flex; flex-wrap:wrap; gap:4px; margin-top:6px}
.ochips{display:flex; flex-wrap:wrap; gap:3px; margin-top:2px}
.ochip{display:inline-flex; align-items:center; gap:4px; max-width:100%; font-size:10.5px; font-weight:600; padding:2px 6px; border-radius:6px;
  background:var(--chip); color:var(--ink); line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ochip i{font-style:normal; font-size:10px; flex-shrink:0}
.ochip>span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0}
.ochip.more{color:var(--muted); background:transparent; border:1px dashed var(--line)}
.ochip.sel{font-size:12px; padding:3px 4px 3px 8px; white-space:normal; border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line)); background:var(--panel)}
.ochip.sel button{border:none; background:var(--chip); color:var(--muted); width:20px; height:20px; border-radius:50%; cursor:pointer; font-size:13px; font-weight:700; line-height:1; padding:0; flex-shrink:0}
.ochip.sel button:hover{background:var(--accent); color:var(--accent-ink)}
.d-src{font-weight:500; text-transform:none; letter-spacing:0; color:var(--muted); font-size:11px; margin:6px 0 0}
.d-orgstats{font-size:13px; color:var(--muted); margin:0 0 8px}
.d-orgstats b{color:var(--ink)}
.org-detail .hint.warn{color:var(--again)}
.ogroup{margin-top:10px}
.ogroup-h{font-size:12px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:5px; margin-bottom:4px}
.ogroup-h i{font-style:normal}
.ogroup-h .cnt{color:var(--muted); font-weight:600}
.olink{padding:5px 8px; border-left:2px solid var(--line); margin:3px 0; font-size:13.5px}
.olink.ended{opacity:.65}
.olink-org{background:none; border:none; padding:0; font:inherit; font-weight:700; color:var(--accent); cursor:pointer; text-align:left}
.olink-org:hover{text-decoration:underline}
.ocity{color:var(--muted); font-size:12px; margin-left:6px}
.orole{font-size:12.5px; color:var(--muted); margin-top:1px}
.opaid{color:var(--good); font-weight:700}
.ounpaid{color:var(--muted)}
.graph-legend .dot.dia{border-radius:1px; transform:rotate(45deg) scale(.85)}
#gpImg.hidden{display:none}

/* Stats */
.stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:16px;
}
.stat-block{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; min-width:0}
.stat-block h3{margin:0 0 8px; font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); font-weight:700}
.bars{display:flex; align-items:flex-end; gap:4px; height:64px}
.bar{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; min-width:0}
.bar .b{width:100%; background:var(--accent); border-radius:4px 4px 0 0; min-height:2px; opacity:.85; transition:height .2s}
.bar .n{font-size:10px; color:var(--muted); margin-top:3px; white-space:nowrap}
.bar .v{font-size:10px; font-weight:700; margin-bottom:2px}
.stack{display:flex; height:16px; border-radius:6px; overflow:hidden; background:var(--chip)}
.stack span{height:100%; transition:width .2s}
.legend{display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:8px; font-size:12px; color:var(--muted)}
.legend .dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; vertical-align:middle}
.legend b{color:var(--ink)}

/* Cards */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px}
.mcard{
  background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:10px; text-align:left;
  cursor:pointer; color:var(--ink); font:inherit; display:flex; flex-direction:column; gap:6px; position:relative;
  transition:transform .12s, box-shadow .12s;
}
.mcard:hover{transform:translateY(-2px); box-shadow:var(--shadow)}
.mcard img{width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:10px; background:var(--chip); display:block}
.mcard .nm{font-weight:800; font-size:14px; line-height:1.2}
.mcard .pb{display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--muted)}
.mcard .pb .dot{width:9px; height:9px; border-radius:50%; flex-shrink:0}
.mcard .ln{font-size:12px; color:var(--muted)}
.mcard .since{font-size:12px; color:var(--ink); font-weight:600}
.mcard .badge{position:absolute; top:14px; right:14px; background:var(--accent); color:var(--accent-ink);
  border-radius:999px; font-size:11px; font-weight:800; padding:2px 8px}
.mcard .flags{display:flex; flex-wrap:wrap; gap:3px}
.flag{font-size:10px; font-weight:700; padding:2px 6px; border-radius:6px; background:var(--chip); color:var(--muted)}
.flag.on{background:color-mix(in srgb,var(--accent) 18%,var(--chip)); color:var(--ink)}

/* Table */
.table-wrap{overflow-x:auto; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius)}
table{border-collapse:collapse; width:100%; font-size:13.5px; min-width:640px}
th, td{padding:8px 10px; text-align:left; border-bottom:1px solid var(--line); vertical-align:middle; white-space:nowrap}
th{font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); background:var(--chip); position:sticky; top:0}
th button{background:none; border:none; font:inherit; color:inherit; cursor:pointer; padding:0; text-transform:inherit; letter-spacing:inherit; font-weight:700}
th button.active{color:var(--accent)}
td.num{text-align:right; font-variant-numeric:tabular-nums}
td.flags{white-space:normal; min-width:180px; max-width:320px}
td.flags .flag{display:inline-block; margin:1px 0}
th.num{text-align:right}
.row-btn{background:none; border:none; font:inherit; color:var(--ink); font-weight:700; cursor:pointer; padding:0; display:flex; align-items:center; gap:8px; text-align:left}
.row-btn img{width:26px; height:34px; object-fit:cover; border-radius:5px; background:var(--chip)}
td .dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; vertical-align:middle}
tbody tr:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.empty{text-align:center; color:var(--muted); padding:40px 10px}

/* Detail dialog */
.detail{
  border:none; border-radius:var(--radius); padding:0; background:var(--panel); color:var(--ink);
  width:min(720px, calc(100vw - 24px)); max-height:calc(100dvh - 40px); box-shadow:var(--shadow);
}
.detail::backdrop{background:rgba(10,12,20,.55); backdrop-filter:blur(2px)}
.detail .close{position:absolute; top:12px; right:12px}
.detail-head{display:flex; gap:18px; padding:22px 22px 12px}
.detail-head img{width:120px; height:160px; object-fit:cover; border-radius:12px; background:var(--chip); flex-shrink:0}
.detail-head h2{font-size:22px; font-weight:800; margin:0 34px 6px 0}
.d-meta{color:var(--muted); font-size:13.5px; margin:6px 0 10px; line-height:1.5}
.small-primary{padding:9px 14px; font-size:13.5px}
.detail-body{padding:0 22px 22px}
.d-section{margin-top:16px}
.d-section h3{margin:0 0 8px; font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); font-weight:700}
.timeline{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px}
.tl{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--muted)}
.tl .seg{width:100%; height:18px; border-radius:5px; background:var(--chip); opacity:.5}
.tl.on .seg{opacity:1}
.tl .yr{font-size:10px}
.tl.first .seg{outline:2px solid var(--ink); outline-offset:1px}
.facts{display:grid; grid-template-columns:auto 1fr; gap:5px 12px; margin:0; font-size:14px}
.facts dt{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px; font-weight:700; padding-top:2px}
.facts dd{margin:0}
.vita{font-size:13.5px; line-height:1.55; margin:0; color:var(--ink)}
.detail .aus{font-size:13.5px}

/* Netzwerk-Ansicht */
.graph-wrap{display:flex; flex-direction:column; gap:10px; min-width:0}
.graph-controls{display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; padding:10px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius)}
.gc-group{display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; min-width:0}
.gc-label{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); margin-right:2px}
.gc-group select{width:auto; padding:6px 8px; font-size:13px}
.gc-sel{display:flex; align-items:center; gap:4px; font-size:12px; color:var(--muted); font-weight:600}
.gc-check{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--ink); font-weight:600; cursor:pointer}
.gc-check input{width:15px; height:15px; accent-color:var(--accent); margin:0}
.gc-buttons{margin-left:auto}
.gc-buttons .ghost.small{width:auto; margin:0; padding:7px 10px; font-size:12px}
.graph-status{font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:0 4px}
.graph-status b{color:var(--ink)}
.graph-status .warn{color:var(--again); font-weight:600}
.graph-status .ghost.small{width:auto; margin:0; padding:4px 9px; font-size:12px}
.graph-canvas-wrap{position:relative; min-width:0}
#graphCanvas{display:block; width:100%; height:clamp(60vh, calc(100dvh - 330px), 900px); min-height:420px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); touch-action:none; cursor:grab}
#graphCanvas:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.graph-tip{position:absolute; z-index:5; pointer-events:none; max-width:min(320px, 80vw); padding:8px 10px; border-radius:10px;
  background:var(--panel); color:var(--ink); border:1px solid var(--line); box-shadow:var(--shadow); font-size:12.5px; line-height:1.4}
.graph-tip b{font-size:13.5px}
.graph-tip .tt-sub{color:var(--muted); font-size:12px; margin-top:2px}
.graph-tip .tt-sub .dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; vertical-align:middle}
.graph-tip .tt-shared{margin-top:5px; padding-top:5px; border-top:1px solid var(--line); font-size:12px}
.graph-tip .tt-hint{margin-top:5px; font-size:11px; color:var(--muted); font-style:italic}
.graph-pop{position:absolute; z-index:6; min-width:190px; max-width:min(260px, 85vw); padding:8px; border-radius:12px;
  background:var(--panel); color:var(--ink); border:1px solid var(--line); box-shadow:var(--shadow); display:flex; flex-direction:column; gap:4px}
.graph-pop .gp-head{display:flex; gap:8px; align-items:center; padding:2px 2px 6px; font-size:13px}
.graph-pop .gp-head img{width:34px; height:44px; object-fit:cover; border-radius:6px; background:var(--chip); flex-shrink:0}
.graph-pop .tt-sub{color:var(--muted); font-size:11.5px; margin-top:2px}
.graph-pop .tt-sub .dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:4px; vertical-align:middle}
.graph-pop .ghost.small{width:100%; margin:0; padding:7px 9px; font-size:12.5px; text-align:left; color:var(--ink)}
.graph-pop .ghost.small:hover{background:var(--chip)}
.graph-pop [data-act="focus"]{color:var(--accent); font-weight:700}
.graph-hint{margin:0; font-size:12px; color:var(--muted); padding:0 4px}
.graph-legend{margin-top:0; padding:0 4px}
.graph-legend .dot.sq{border-radius:3px}
.graph-legend .dot.ring{background:transparent; border:2.5px solid var(--accent); width:11px; height:11px}
.graph-legend .grad{display:inline-flex; align-items:center; gap:5px}
.graph-legend .grad i{display:inline-block; width:90px; height:9px; border-radius:4px}
.graph-legend .muted{opacity:.8}

/* Footer */
.foot.wide{max-width:1400px}
.foot a{color:inherit}

/* Toast */
.toast{position:fixed; left:50%; bottom:22px; transform:translate(-50%,20px); opacity:0; pointer-events:none;
  background:var(--ink); color:var(--bg); padding:10px 16px; border-radius:10px; font-size:13px; font-weight:600;
  transition:opacity .2s, transform .2s; z-index:50}
.toast.show{opacity:1; transform:translate(-50%,0)}

/* Responsive */
@media (max-width:900px){
  .explorer-layout{grid-template-columns:1fr; padding:12px; gap:12px}
  .filters-toggle{display:inline-block}
  .close-filters{display:inline-block}
  .filters{
    position:fixed; inset:0; top:0; z-index:40; max-height:none; border-radius:0; overflow-y:auto;
    transform:translateX(-100%); transition:transform .2s; padding-bottom:40px;
  }
  .filters.open{transform:none}
  .stats{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px}
  .mcard{padding:8px}
  .count{font-size:17px}
  .toolbar-right{width:100%}
  .gc-buttons{margin-left:0}
  #graphCanvas{height:60vh; min-height:60vh}
  .focus-bar{padding:10px 12px; gap:8px 10px}
  .fb-chips{flex-basis:100%}
  .detail-head{flex-direction:column; align-items:flex-start; padding:18px 16px 8px}
  .detail-body{padding:0 16px 18px}
}
@media (max-width:480px){
  .topbar{padding:12px 14px}
  .topbar h1{font-size:17px}
  .navlink{padding:7px 10px; font-size:13px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot.wide{padding:0 14px}
}
