:root{--bg: #0f1419;--surface: #1a2332;--surface2: #243044;--border: #2d3a4f;--text: #e8edf4;--muted: #8b9cb3;--accent: #3b82f6;--accent-hover: #2563eb;--success: #22c55e;--danger: #ef4444;--warning: #f59e0b;font-family:Segoe UI,system-ui,sans-serif;line-height:1.5;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}.layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:1.5rem 1rem}.sidebar h1{font-size:1rem;margin:0 0 .25rem;font-weight:600}.sidebar .subtitle{color:var(--muted);font-size:.75rem;margin-bottom:2rem}.nav a{display:block;padding:.6rem .75rem;border-radius:8px;margin-bottom:.25rem;color:var(--muted);font-size:.9rem}.nav a:hover,.nav a.active{background:var(--surface2);color:var(--text)}.main{padding:2rem;max-width:1200px}.page-header{margin-bottom:1.5rem}.page-header h2{margin:0 0 .25rem;font-size:1.5rem}.page-header p{margin:0;color:var(--muted);font-size:.9rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.card .label{color:var(--muted);font-size:.8rem;margin-bottom:.25rem}.card .value{font-size:1.75rem;font-weight:600}.card .value.value-sm{font-size:1.2rem}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--border)}th{color:var(--muted);font-weight:500;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.assertions-table,.discovery-goals-table{table-layout:fixed}.discovery-goals-table .col-goal-subject{width:16rem;max-width:16rem;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.discovery-goals-table .col-goal-context{width:24rem;max-width:24rem;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.assertions-table .col-subject{width:14rem;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}tr:last-child td{border-bottom:none}.badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.75rem;font-weight:500}.badge-published{background:#22c55e26;color:var(--success)}.badge-pending{background:#f59e0b26;color:var(--warning)}.badge-rejected{background:#ef444426;color:var(--danger)}.badge-superseded{background:#94a3b833;color:var(--muted)}.schedule-input{width:100%;min-width:120px;font-size:.75rem;padding:.35rem .5rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.btn{border:none;border-radius:8px;padding:.5rem 1rem;font-size:.875rem;cursor:pointer;font-weight:500}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-success{background:var(--success);color:#fff}.btn-danger{background:var(--danger);color:#fff}.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.form-panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin-top:.5rem}.checkbox-card{position:relative;display:flex;gap:.6rem;align-items:flex-start;padding:.75rem;border:1px solid var(--border);border-radius:10px;background:#ffffff05;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease,box-shadow .15s ease}.checkbox-card input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.checkbox-card:hover{border-color:#3b82f673;background:#3b82f614;transform:translateY(-1px)}.checkbox-card:has(input:checked){border-color:var(--accent);background:#3b82f629;box-shadow:inset 0 0 0 1px #3b82f659}.checkbox-card:has(input:focus-visible){outline:2px solid rgba(59,130,246,.7);outline-offset:2px}.checkbox-card strong{color:var(--text)}.checkbox-card .field-hint{margin-top:.2rem}.checkbox-card:has(input:checked) strong{color:#fff}.form-row{display:grid;gap:1rem;margin-bottom:1rem}.form-row-3{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.form-row label{display:block;font-size:.8rem;color:var(--muted);margin-bottom:.35rem}input,select,textarea{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:.6rem .75rem;color:var(--text);font-size:.875rem}textarea{min-height:80px;font-family:ui-monospace,monospace}.validation-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;margin-bottom:1rem}.validation-card-selected{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}.validation-card-header{display:flex;align-items:flex-start;gap:.85rem}.validation-card-checkbox{width:auto;margin-top:.2rem;flex-shrink:0}.validation-card-body{flex:1;min-width:0}.validation-bulk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;margin-bottom:1rem;background:var(--surface);border:1px solid var(--border);border-radius:12px}.validation-bulk-select-all{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--text);cursor:pointer}.validation-bulk-select-all input{width:auto}.validation-bulk-actions{display:flex;flex-wrap:wrap;gap:.5rem}.validation-card h3{margin:0 0 .5rem;font-size:1rem}.validation-card .meta{color:var(--muted);font-size:.8rem;margin-bottom:.75rem}.validation-group-badge{display:inline-block;margin-left:.5rem;padding:.1rem .45rem;border-radius:999px;background:#3b82f626;color:var(--accent);font-size:.75rem;font-weight:600;vertical-align:middle}.validation-group-evidence{margin:.75rem 0 1rem}.validation-group-evidence-toggle{margin-bottom:.5rem}.validation-group-evidence-list{display:flex;flex-direction:column;gap:.75rem}.validation-group-evidence-item{padding:.75rem;border:1px dashed rgba(148,163,184,.35);border-radius:8px;background:#0f172a05}.excerpt{background:var(--bg);border-left:3px solid var(--accent);padding:.75rem 1rem;margin:.75rem 0 1rem;font-size:.85rem;color:var(--muted);border-radius:0 8px 8px 0}.validation-source{margin:.75rem 0;padding:.75rem;background:#3b82f614;border:1px solid rgba(59,130,246,.2);border-radius:8px;font-size:.85rem;display:grid;gap:.35rem}.validation-source a{color:var(--accent);word-break:break-all}.excerpt-sought-match{border-left-color:var(--success);background:#22c55e1a;color:var(--text)}.excerpt-sought-match-banner{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-bottom:.5rem}.actions{display:flex;gap:.5rem;flex-wrap:wrap}.validation-layout{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:1.25rem;align-items:start}.validation-entities{position:sticky;top:1rem;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.75rem;display:flex;flex-direction:column;gap:.6rem;max-height:calc(100vh - 2rem)}.validation-entities-search{width:100%;padding:.5rem .6rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.85rem}.validation-entities-list{display:flex;flex-direction:column;gap:.25rem;overflow-y:auto}.validation-entity-btn{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;text-align:left;padding:.55rem .65rem;background:transparent;border:1px solid transparent;border-radius:8px;color:var(--text);cursor:pointer;font-size:.85rem}.validation-entity-btn:hover{background:var(--surface2)}.validation-entity-btn-active{background:var(--surface2);border-color:var(--accent)}.validation-entity-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.validation-entity-count{flex-shrink:0;padding:.05rem .45rem;border-radius:999px;background:#3b82f626;color:var(--accent);font-size:.75rem;font-weight:600}.validation-detail{min-width:0;display:flex;flex-direction:column;gap:1.25rem}.validation-detail-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:12px}.validation-detail-header h3{margin:0 0 .25rem;font-size:1.05rem}.validation-detail-actions{display:flex;gap:.5rem;flex-wrap:wrap}.validation-section{display:flex;flex-direction:column;gap:.75rem}.validation-section-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;padding-bottom:.35rem;border-bottom:1px solid var(--border)}.validation-section-header h4{margin:0;font-size:.95rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text)}.validation-section-count{font-size:.78rem;color:var(--muted)}.validation-group-heading{margin-bottom:.75rem}.validation-group-title{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.validation-group-value{font-size:.98rem;word-break:break-word}.validation-evidence-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.validation-evidence-item{padding:.75rem;border:1px dashed rgba(148,163,184,.35);border-radius:8px;background:#0f172a40}.validation-evidence-meta{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.4rem}.validation-evidence-flag{padding:.05rem .4rem;border-radius:999px;background:#22c55e26;color:var(--success);font-size:.72rem;font-weight:600}.validation-evidence-value{margin:.3rem 0;font-size:.88rem;word-break:break-word}.validation-edit-trigger{display:inline-flex;align-items:center;justify-content:center;margin-left:.4rem;padding:.15rem;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;vertical-align:middle;line-height:0}.validation-edit-trigger:hover:not(:disabled){color:var(--accent);border-color:var(--accent)}.validation-edit-trigger:disabled{opacity:.5;cursor:not-allowed}.validation-edit{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;padding:.75rem;border:1px dashed var(--border);border-radius:8px;background:#3b82f60d}.validation-edit-label{font-size:.8rem;color:var(--muted);font-weight:600}.validation-edit-input{width:100%;padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:inherit;font-size:.9rem;font-family:inherit;resize:vertical;box-sizing:border-box}.validation-edit-input:focus{outline:none;border-color:var(--accent)}@media(max-width:900px){.validation-layout{grid-template-columns:1fr}.validation-entities{position:static;max-height:none}.validation-entities-list{max-height:240px}}.error{background:#ef44441a;border:1px solid var(--danger);color:#fca5a5;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.875rem}.success-msg{background:#22c55e1a;border:1px solid var(--success);color:#86efac;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.875rem}.mono{font-family:ui-monospace,monospace;font-size:.8rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.panel-title{padding:1rem 1rem .5rem;font-size:.95rem;font-weight:600}.panel-title-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1rem .5rem;flex-wrap:wrap}.panel-title-row .panel-title{padding:0}.table-subtle{color:var(--muted);font-size:.75rem;margin-top:.2rem}.table-select{min-width:220px;font-size:.8rem;padding:.4rem .5rem}.table-row-clickable{cursor:pointer}.table-row-clickable:hover td{background:#3b82f614}.table-row-selected td{background:#3b82f626}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.25rem}.detail-header h3{margin:0}.detail-label{font-size:.8rem;color:var(--muted);margin-bottom:.35rem}.filter-bar{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.recharts-default-tooltip .recharts-tooltip-label{color:var(--text)!important}.table-search-wrap{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.table-search{max-width:360px;margin-bottom:0}.table-search-count{font-size:.8rem;color:var(--muted)}.coverage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem}.coverage-card{border:1px solid var(--border);border-radius:.75rem;padding:.85rem;background:var(--surface)}.coverage-card-present{border-color:#22c55e59}.coverage-card-missing{border-color:#ef444459}.coverage-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.4rem}.coverage-values{font-size:.8rem;line-height:1.45;word-break:break-word;margin-top:.3rem}.tab-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0}.tab-bar-secondary{margin-top:0;padding-top:.75rem;border-top:1px solid var(--border)}.tab-bar-label{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-right:.25rem}.tab-chip{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);padding:.45rem .8rem;cursor:pointer}.tab-chip:hover{border-color:var(--accent)}.tab-chip-active{background:#3b82f626;border-color:var(--accent)}.tab-chip-label{max-width:18rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-chip-count{font-size:.8rem;color:var(--muted)}.upload-row{display:flex;flex-direction:column;gap:.5rem}.upload-hint{color:var(--success);font-size:.8rem}.field-hint{margin:.5rem 0 0;color:var(--muted);font-size:.8rem}.field-hint code{font-family:ui-monospace,monospace;font-size:.75rem}.checkbox-row{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;font-size:.875rem;color:var(--muted);cursor:pointer}.checkbox-row input{width:auto}.exploration-graph-wrap{margin-top:.75rem}.exploration-graph-wrap:fullscreen,.exploration-graph-wrap.exploration-graph-wrap--fullscreen{display:flex;flex-direction:column;gap:.75rem;margin:0;padding:1rem;background:var(--bg);overflow:auto;z-index:1000}.exploration-graph-wrap.exploration-graph-wrap--fullscreen{position:fixed;top:0;right:0;bottom:0;left:0}.exploration-graph-wrap:fullscreen .exploration-graph,.exploration-graph-wrap.exploration-graph-wrap--fullscreen .exploration-graph{flex:1;height:auto;min-height:0;max-height:none}.exploration-graph-wrap:fullscreen .exploration-node-detail,.exploration-graph-wrap.exploration-graph-wrap--fullscreen .exploration-node-detail{flex-shrink:0;max-height:28vh;overflow:auto}.exploration-graph-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.exploration-graph-toolbar-actions{display:flex;gap:.35rem}.exploration-graph{width:100%;min-height:420px;height:52vh;max-height:640px;background:var(--bg);border:1px solid var(--border);border-radius:8px;touch-action:none;-webkit-user-select:none;user-select:none}.exploration-graph-panning,.exploration-bubble-group{cursor:grab}.exploration-bubble-dragging{cursor:grabbing}.exploration-bubble-hit{cursor:grab}.exploration-bubble{transition:fill-opacity .15s ease,stroke-width .15s ease}.exploration-bubble-group:hover .exploration-bubble{fill-opacity:.32}.exploration-edge{stroke-width:2;fill:none}.exploration-edge.followed{stroke:#22c55e}.exploration-edge.skipped{stroke:#64748b;stroke-dasharray:6 5;opacity:.7}.exploration-edge-active{stroke:#fbbf24;stroke-width:3;opacity:1}.exploration-edge-label{fill:var(--muted);font-size:10px;text-anchor:middle;pointer-events:none}.exploration-node-type{fill:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em;pointer-events:none}.exploration-bubble-label{fill:var(--text);font-size:11px;font-weight:600;pointer-events:none}.exploration-node-badge{font-size:9px;pointer-events:none}.exploration-node-detail{margin-top:1rem}.exploration-report .validation-card+.validation-card{margin-top:1rem}.dashboard-section{margin-bottom:2rem}.dashboard-section+.dashboard-section{margin-top:0}.granularity-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem}.chart-grid-pies{grid-column:1 / -1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem 1rem .5rem;min-height:340px}.chart-card-header{margin-bottom:.75rem}.chart-card-title{font-size:.95rem;font-weight:600}.chart-card-desc{color:var(--muted);font-size:.8rem;margin-top:.2rem}.chart-loading,.chart-empty{display:flex;align-items:center;justify-content:center;min-height:240px;color:var(--muted);font-size:.9rem}.filter-bar button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
