/* ================================================================
   claude-monitor — refined minimal · monochrome · dense
   Display:  Bricolage Grotesque (variable, 200..800)
   Body:     Inter (variable, 100..900) + tabular numerics
   Theme:    light/dark toggle, monochromatic (no chromatic accent)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=Inter:wght@300..800&display=swap');

:root,
[data-theme="light"] {
    --bg-0: #ffffff;
    --bg-1: #fafafa;
    --bg-2: #f4f4f5;
    --bg-3: #ededee;
    --hr-1: #ececec;
    --hr-2: #d8d8d8;
    --hr-3: #b4b4b4;
    --fg-0: #0a0a0a;
    --fg-1: #2c2c2c;
    --fg-2: #525252;
    --fg-3: #8a8a8a;
    --fg-4: #b8b8b8;
    --row-hover: #f7f7f7;
    --selection: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-0: #0a0a0a;
    --bg-1: #111111;
    --bg-2: #161616;
    --bg-3: #1c1c1c;
    --hr-1: #1e1e1e;
    --hr-2: #2a2a2a;
    --hr-3: #3a3a3a;
    --fg-0: #ededed;
    --fg-1: #d4d4d4;
    --fg-2: #a8a8a8;
    --fg-3: #6e6e6e;
    --fg-4: #4a4a4a;
    --row-hover: #161616;
    --selection: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--selection); }

html, body {
    background: var(--bg-0);
    color: var(--fg-0);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-feature-settings: "ss01", "cv11", "tnum" 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--hr-2);
    transition: border-color 0.12s ease, color 0.12s ease;
}
a:hover { color: var(--fg-0); border-bottom-color: var(--fg-0); }

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------- Layout shell ---------------- */
.shell {
    display: grid;
    grid-template-columns: 208px 1fr;
    min-height: 100vh;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
    border-right: 1px solid var(--hr-1);
    background: var(--bg-1);
    padding: 18px 0 12px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand { padding: 0 18px 18px 18px; }
.brand-mark {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-variation-settings: "wdth" 88;
}
.brand-mark .dot { color: var(--fg-3); font-weight: 800; }
.brand-tag {
    margin-top: 4px;
    font-size: 10px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    font-weight: 500;
}

.nav-section {
    padding: 6px 12px 0 12px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav { padding: 6px 8px; flex: 1; }
.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin: 1px 0;
    font-size: 12.5px;
    color: var(--fg-2);
    border: none;
    border-radius: 4px;
    transition: background 0.1s ease, color 0.1s ease;
    font-weight: 500;
}
.nav a:hover { background: var(--bg-2); color: var(--fg-0); }
.nav a.active { background: var(--bg-3); color: var(--fg-0); font-weight: 600; }
.nav a .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--fg-3);
    flex-shrink: 0;
}
.nav a.active .dot { background: var(--fg-0); }

.sidebar-foot {
    padding: 12px 14px 0 14px;
    border-top: 1px solid var(--hr-1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: var(--fg-3);
}
.sidebar-foot .row { display: flex; justify-content: space-between; gap: 8px; }
.sidebar-foot .row b { color: var(--fg-1); font-weight: 600; }

/* ---------------- Theme toggle ---------------- */
.toggle {
    appearance: none;
    background: var(--bg-0);
    color: var(--fg-1);
    border: 1px solid var(--hr-2);
    padding: 5px 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.toggle:hover { border-color: var(--hr-3); background: var(--bg-1); }
.toggle .icon {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fg-2);
}

/* ---------------- Main column ---------------- */
.main { min-width: 0; background: var(--bg-0); }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    border-bottom: 1px solid var(--hr-1);
    background: var(--bg-0);
    position: sticky;
    top: 0;
    z-index: 5;
    height: 42px;
}
.crumb {
    font-size: 11.5px;
    color: var(--fg-3);
    font-weight: 500;
}
.crumb b { color: var(--fg-0); font-weight: 600; }
.crumb .sep { margin: 0 6px; color: var(--fg-4); }

/* ---------------- Page head ---------------- */
.head {
    padding: 22px 22px 18px 22px;
    border-bottom: 1px solid var(--hr-1);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.head .title-block { display: flex; flex-direction: column; gap: 4px; }
.head h1 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
    font-variation-settings: "wdth" 92, "opsz" 32;
}
.head .sub {
    font-size: 12px;
    color: var(--fg-3);
    font-weight: 400;
}
.head .right {
    font-size: 11.5px;
    color: var(--fg-3);
    display: flex;
    gap: 14px;
    align-items: center;
}
.head .right b { color: var(--fg-1); font-weight: 600; }

/* ---------------- Sections ---------------- */
.section {
    padding: 18px 22px;
    border-bottom: 1px solid var(--hr-1);
}
.section h2 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--fg-1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section h2 .count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-3);
    background: var(--bg-2);
    padding: 1px 6px;
    border-radius: 3px;
}

/* ---------------- Stat strip (dense) ---------------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border-bottom: 1px solid var(--hr-1);
}
.stat-strip .tile {
    padding: 14px 18px;
    border-right: 1px solid var(--hr-1);
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-0);
    transition: background 0.12s ease;
}
.stat-strip .tile:last-child { border-right: 0; }
.stat-strip .tile:hover { background: var(--bg-1); }
.tile-label {
    font-size: 10px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
.tile-num {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--fg-0);
    font-variation-settings: "wdth" 88;
}
.tile-foot {
    font-size: 10.5px;
    color: var(--fg-4);
    font-weight: 400;
    margin-top: 1px;
}
.tile.muted .tile-num { color: var(--fg-3); }

/* divider line between groups */
.stat-strip .tile.gap-left {
    border-left: 1px solid var(--hr-2);
    margin-left: -1px;
}

/* ---------------- Verdict pills (monochrome) ---------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 3px;
    line-height: 1.6;
    white-space: nowrap;
}
.pill::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill.in_scope {
    background: var(--fg-0);
    color: var(--bg-0);
    border: 1px solid var(--fg-0);
}
.pill.in_scope::before { background: var(--bg-0); }

.pill.off_scope {
    background: transparent;
    color: var(--fg-0);
    border: 1px solid var(--fg-0);
}
.pill.off_scope::before {
    background: transparent;
    border: 1px solid var(--fg-0);
    box-sizing: border-box;
}

.pill.borderline {
    background: transparent;
    color: var(--fg-1);
    border: 1px dashed var(--fg-2);
}
.pill.borderline::before {
    background: transparent;
    border: 1px dashed var(--fg-2);
    box-sizing: border-box;
}

.pill.muted {
    background: var(--bg-2);
    color: var(--fg-3);
    border: 1px solid var(--hr-1);
}
.pill.muted::before { background: var(--fg-4); }

/* ---------------- Tables (dense) ---------------- */
.table-wrap {
    border: 1px solid var(--hr-1);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-0);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.table thead th {
    text-align: left;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: var(--bg-1);
    border-bottom: 1px solid var(--hr-1);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid var(--hr-1);
    vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--row-hover); }
.table .ts {
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
    font-size: 11.5px;
}
.table .num {
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 500;
}
.table .truncate {
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table .reason { color: var(--fg-3); font-size: 11.5px; }
.table .who { font-weight: 600; color: var(--fg-0); }

/* ---------------- Filters ---------------- */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    padding: 12px 22px;
    border-bottom: 1px solid var(--hr-1);
    background: var(--bg-1);
}
.filters .field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.filters .field label {
    font-size: 10px;
    color: var(--fg-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}
.filters .field.grow { flex: 1; min-width: 220px; }
.filters .actions { display: flex; gap: 6px; align-items: end; }

/* ---------------- Forms ---------------- */
.input,
input.input,
textarea.input,
select.input {
    width: 100%;
    background: var(--bg-0);
    color: var(--fg-0);
    border: 1px solid var(--hr-2);
    padding: 6px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    border-radius: 4px;
    transition: border-color 0.12s ease, background 0.12s ease;
}
textarea.input {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12.5px;
    min-height: 320px;
    resize: vertical;
    line-height: 1.55;
    padding: 12px 14px;
}
.input:focus { outline: none; border-color: var(--fg-1); background: var(--bg-0); }
.input:hover:not(:focus) { border-color: var(--hr-3); }

.label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 6px;
    font-weight: 600;
}

.btn {
    appearance: none;
    background: var(--fg-0);
    color: var(--bg-0);
    border: 1px solid var(--fg-0);
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.4;
    transition: opacity 0.12s ease, transform 0.06s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
    background: var(--bg-0);
    color: var(--fg-1);
    border-color: var(--hr-2);
}
.btn.ghost:hover { background: var(--bg-1); border-color: var(--hr-3); opacity: 1; }
.btn.sm { padding: 4px 10px; font-size: 11px; }

/* ---------------- Recent verdict rows (dense) ---------------- */
.recent {
    border: 1px solid var(--hr-1);
    border-radius: 4px;
    overflow: hidden;
}
.recent .row {
    display: grid;
    grid-template-columns: 100px 110px 1fr;
    gap: 14px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--hr-1);
    align-items: start;
    transition: background 0.1s ease;
}
.recent .row:last-child { border-bottom: 0; }
.recent .row:hover { background: var(--row-hover); }
.recent .ts {
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
    padding-top: 1px;
}
.recent .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recent .meta {
    font-size: 11px;
    color: var(--fg-3);
}
.recent .meta b { color: var(--fg-1); font-weight: 600; }
.recent .meta .sep { margin: 0 6px; color: var(--fg-4); }
.recent .prompt {
    font-size: 12.5px;
    color: var(--fg-1);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.recent .reason {
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 2px;
    font-style: italic;
}

/* ---------------- Scope display ---------------- */
.scope-block {
    border: 1px solid var(--hr-1);
    background: var(--bg-1);
    padding: 14px 16px;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.55;
    max-height: 280px;
    overflow: auto;
    color: var(--fg-1);
}
.scope-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 10px;
}
.scope-meta b { color: var(--fg-1); font-weight: 600; }
.scope-meta a { font-weight: 500; }

/* ---------------- Empty state ---------------- */
.empty {
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed var(--hr-2);
    border-radius: 4px;
    color: var(--fg-3);
    font-size: 12px;
    margin: 4px 0;
}
.empty strong {
    display: block;
    color: var(--fg-1);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -0.01em;
}

/* ---------------- Nodes strip ---------------- */
.nodes-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.node-card {
    border: 1px solid var(--hr-1);
    background: var(--bg-1);
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.12s ease;
}
.node-card:hover { border-color: var(--hr-3); }
.node-card.disabled { opacity: 0.5; }

.node-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-0);
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    letter-spacing: -0.005em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--bg-1);
}
.status-dot.live { background: var(--fg-0); }
.status-dot.idle { background: var(--fg-4); border: 1px solid var(--fg-3); }

.node-num {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fg-0);
    margin-top: 2px;
}
.node-sub {
    font-size: 11px;
    color: var(--fg-3);
    line-height: 1.45;
}
.node-sub b { color: var(--fg-1); font-weight: 500; }
.node-desc {
    margin-top: 4px;
    color: var(--fg-3);
    font-style: italic;
}

.node-tag {
    display: inline-block;
    font-size: 10.5px;
    padding: 1px 6px;
    background: var(--bg-2);
    color: var(--fg-2);
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid var(--hr-1);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .stat-strip { grid-template-columns: repeat(4, 1fr); }
    .stat-strip .tile { border-bottom: 1px solid var(--hr-1); }
    .stat-strip .tile:nth-child(4n) { border-right: 0; }
}
@media (max-width: 720px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--hr-1); }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip .tile:nth-child(2n) { border-right: 0; }
    .head h1 { font-size: 22px; }
    .recent .row { grid-template-columns: 1fr; }
}

/* ---------------- Off-scope violations ---------------- */
.panel {
    border: 1px solid var(--hr-1);
    border-radius: 4px;
    background: var(--bg-0);
    margin: 16px 0;
    overflow: hidden;
}
.panel-head {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: var(--bg-1);
    border-bottom: 1px solid var(--hr-1);
}
.panel-body { padding: 14px 14px 4px; }
.panel-body svg { display: block; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 2px 14px 12px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend b { color: var(--fg-1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Monochrome stacked-bar segments — theme-aware via CSS, never inline fill.
   Severity reads as brightness (off_scope strongest → gate faintest). Same
   token drives the SVG rect fill and the legend swatch background. */
.vseg--off_scope, .legend i.sw--off_scope { fill: var(--fg-0); background: var(--fg-0); }
.vseg--off_task,  .legend i.sw--off_task  { fill: var(--fg-2); background: var(--fg-2); }
.vseg--chitchat,  .legend i.sw--chitchat  { fill: var(--fg-3); background: var(--fg-3); }
.vseg--gate,      .legend i.sw--gate      { fill: var(--hr-3); background: var(--hr-3); }

/* Trend chart — HTML/CSS bars (real px + page font, never scaled like SVG) */
.trend { padding: 6px 2px 0; }
.trend--empty { color: var(--fg-3); padding: 24px 2px; font-size: 12px; }
.tbars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    border-bottom: 1px solid var(--hr-2);
    /* faint quartile gridlines at 25 / 50 / 75 / 100% */
    background: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent calc(25% - 1px),
        var(--hr-1) calc(25% - 1px),
        var(--hr-1) 25%);
}
.tcol { flex: 1 1 0; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.tstack {
    position: relative;
    width: 100%;
    max-width: 38px;
    display: flex;
    flex-direction: column-reverse;  /* first segment (off_scope) at the base */
    gap: 2px;
}
.tseg { width: 100%; min-height: 2px; border-radius: 1px; transition: opacity 0.12s ease; }
.tcol:hover .tseg { opacity: 0.7; }
.tbar-num {
    position: absolute;
    bottom: 100%;
    left: -6px;
    right: -6px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--fg-2);
    font-variant-numeric: tabular-nums;
}
.tdays { display: flex; gap: 10px; margin-top: 5px; }
.tday {
    flex: 1 1 0;
    text-align: center;
    font-size: 9px;
    color: var(--fg-4);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Clickable leaderboard rows */
.table tbody tr.vrow { cursor: pointer; }
.vempty { color: var(--fg-3); padding: 16px 12px; }

/* Violation detail modal */
dialog#vdetail {
    /* `* { margin: 0 }` above kills the UA `dialog { margin: auto }` that
       centers a showModal() dialog. Restore centering explicitly and don't
       rely on the UA modal rule: fixed + inset:0 + margin:auto centers a
       definite-size box on both axes. */
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1080px, 94vw);
    max-height: 84vh;
    padding: 0;
    border: 1px solid var(--hr-2);
    border-radius: 6px;
    background: var(--bg-0);
    color: var(--fg-0);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
dialog#vdetail::backdrop { background: rgba(0, 0, 0, 0.55); }
.dlg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--hr-1);
    position: sticky;
    top: 0;
}
.dlg-head b { font-size: 13px; font-weight: 600; color: var(--fg-0); }
#vdetail-body { padding: 12px 14px 16px; max-height: calc(84vh - 46px); overflow: auto; }
#vdetail-body .empty { color: var(--fg-3); padding: 18px 2px; }

/* Monochrome type chip */
.vtype {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--fg-2);
    background: var(--bg-2);
    border: 1px solid var(--hr-2);
    border-radius: 3px;
    white-space: nowrap;
}

/* Detail table: fixed layout so the prompt column gets the width, the rest
   wrap instead of squeezing the OOC box or overflowing the dialog. */
.vtable { table-layout: fixed; width: 100%; }
.vtable col.c-ts     { width: 120px; }
.vtable col.c-type   { width: 96px; }
.vtable col.c-wi     { width: 188px; }
.vtable col.c-reason { width: 220px; }
/* the unconstrained 5th col (Prompt OOC) takes the remaining width */
.vtable td, .vtable th { overflow: hidden; }
.vtable .wi { color: var(--fg-1); white-space: normal; word-break: break-word; }
.vtable .reason { white-space: normal; word-break: break-word; }

/* OOC prompt cell — clamp long pasted output into a scrollable mono box */
.table td .ooc {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    color: var(--fg-1);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px;
    overflow: auto;
    background: var(--bg-1);
    border: 1px solid var(--hr-1);
    border-radius: 3px;
    padding: 6px 8px;
}
.table td .ooc.placeholder {
    font-family: inherit;
    font-style: italic;
    color: var(--fg-3);
    background: none;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
}
