.os-metrics { margin-bottom:24px; }
.os-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; margin:20px 0 24px; }
.os-controls .seg span { margin-left:5px; font-variant-numeric:tabular-nums; opacity:.75; }
.os-controls label { font-size:12px; color:var(--muted); white-space:nowrap; }
.os-controls select { margin-left:6px; }
.os-controls form { position:relative; display:flex; margin-left:auto; }
.os-controls input { width:215px; border-right:0; }
.os-filter-bar { display:flex; align-items:center; gap:14px; min-height:48px; margin:-10px 0 18px; padding:8px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.os-filter-label,.os-filter-empty { color:var(--muted); font-size:12px; }
.os-filter-label,.os-filter-bar>.os-reset { flex:none; }
.os-chips { display:flex; flex:1; min-width:0; align-items:center; flex-wrap:wrap; gap:6px; min-height:30px; max-height:110px; overflow-y:auto; padding:2px; }
.os-chips button { display:flex; align-items:center; gap:12px; height:auto; min-height:30px; max-width:100%; border:1px solid var(--line); background:var(--red-soft); padding:5px 9px; font-size:12px; text-align:left; }
.os-chips button span { color:var(--red); }
.os-graph-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; min-height:30px; }
.os-reset { font-size:12px; height:28px; border:0; padding:0; text-decoration:underline; text-underline-offset:4px; }
.os-reset:disabled { color:var(--muted); opacity:.5; cursor:default; text-decoration:none; background:transparent; }
.os-legend { display:flex; flex-wrap:wrap; gap:14px; color:var(--muted); font-size:11px; }
.os-legend .sq { width:10px; height:10px; margin-right:5px; }
.os-graph { grid-template-columns:minmax(140px,.85fr) minmax(260px,1.6fr) minmax(210px,1.15fr); column-gap:clamp(36px,4.5vw,90px); }
.os-graph .ov-h { font-size:15px; height:35px; }
.os-graph .ov-h em { font-size:11px; }
.os-graph button.ov-row { min-height:31px; height:31px; padding:5px 6px; gap:7px; font-size:12px; }
.os-graph .ov-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.os-graph .ov-name small { display:inline; }
.os-graph .ov-n { font-size:12px; font-variant-numeric:tabular-nums; }
.os-graph .ov-n small { font-size:10px; }
.os-graph button.os-other { background:var(--soft); color:var(--muted); margin-top:5px; border-bottom:1px dashed var(--line-2); }
.os-graph .ov-kind { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:10px 6px 12px; }
.os-type-select { height:auto; min-height:24px; border:0; padding:0; text-align:left; font-size:13px; background:transparent; }
.os-graph .ov-kind>.ov-n { grid-column:2; grid-row:1; padding-top:3px; }
.os-graph .ov-sq,.os-aggregate { grid-column:1 / -1; }
.os-graph .ov-sq { gap:3px; max-width:100%; }
.os-graph .sq { width:11px; height:11px; flex-shrink:0; }
.os-status-bar { display:flex; gap:2px; height:7px; margin-top:4px; background:var(--soft); }
.os-status-bar i { min-width:2px; border:1px solid var(--line-2); }
.os-status-bar .sq-live { border-color:var(--ink); }
.os-graph .off .os-aggregate { opacity:.35; }
.os-graph .ov-row.on { background:var(--red-soft); box-shadow:inset 2px 0 var(--red); }
.os-view-all { margin-top:20px; border:0; border-bottom:1px solid var(--ink); padding:0; }
.os-details { margin-top:30px; }
.os-details h2 small { display:inline; margin-left:12px; }
.os-details .record-title { display:block; width:100%; height:auto; min-height:0; border:0; padding:0; background:transparent; text-align:left; font-size:13px; font-weight:500; line-height:1.7; white-space:normal; overflow-wrap:anywhere; }
.os-details .record-open { height:auto; min-height:32px; border:0; padding:0; background:transparent; color:var(--red); font-size:12px; white-space:nowrap; }
.os-explorer { width:min(680px,calc(100vw - 28px)); max-height:85vh; border:1px solid var(--ink); padding:24px; overscroll-behavior:contain; }
.os-explorer::backdrop { background:rgba(22,22,26,.28); }
.os-explorer-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.os-explorer-head button { width:36px; padding:0; font-size:22px; }
.os-explorer input { width:100%; }
.os-explorer-rows { margin-top:12px; }
.os-explorer-rows button { width:100%; min-height:48px; height:auto; padding:10px 0; border:0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:20px; text-align:left; }
.os-explorer-rows span { min-width:0; overflow-wrap:anywhere; }
.os-explorer-rows b { text-align:right; font-weight:500; font-variant-numeric:tabular-nums; }
.os-explorer-rows button>span { flex:1; }
.os-explorer-rows button[aria-pressed=true] { background:var(--red-soft); }
.os-check { display:inline-flex; justify-content:center; align-items:center; width:16px; height:16px; border:1px solid var(--line-2); flex:none; font-style:normal; color:var(--red); }
.os-explorer-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:16px; border-top:1px solid var(--line); }
.os-explorer-footer span { color:var(--muted); font-size:12px; }
.os-search-results { position:absolute; right:0; top:calc(100% + 6px); width:440px; max-width:calc(100vw - 40px); max-height:460px; overflow-y:auto; overscroll-behavior:contain; z-index:10; background:#fff; border:1px solid var(--ink); box-shadow:0 6px 20px #16161a14; }
.os-search-meta { display:flex; justify-content:space-between; align-items:center; padding:6px 12px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.os-search-meta button { border:0; font-size:18px; height:28px; padding:0 6px; }
.os-search-result { display:flex; justify-content:space-between; align-items:center; gap:18px; width:100%; height:auto; min-height:56px; text-align:left; padding:9px 12px; border:0; border-bottom:1px solid var(--line); font-size:13px; text-decoration:none; }
.os-search-result>span:first-child { min-width:0; overflow-wrap:anywhere; }
.os-search-result>span:last-child { flex:none; font-size:12px; font-variant-numeric:tabular-nums; }
.os-search-result small { font-size:10px; }
.os-search-result[aria-pressed=true] { background:var(--red-soft); color:var(--red); }
.os-search-pager { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; gap:12px; font-size:12px; }
.os-search-pager button { font-size:12px; height:28px; }
.os-explorer-rows small { font-size:10px; }
.os-explorer .pager { justify-content:space-between; }
@media(max-width:1200px) { .os-controls form { margin-left:0; } .os-graph { min-width:810px; } .os-graph-wrap { overflow-x:auto; } }
@media(max-width:600px) {
  .os-controls { gap:12px; } .os-controls .seg { width:100%; } .os-controls .seg button { font-size:12px; padding:0 10px; }
  .os-controls form { width:100%; } .os-controls input { width:100%; min-width:0; flex:1; }
  .os-details .tbl { min-width:700px; } .os-details { overflow-x:auto; }
}
