:root{--stat-blue:#75b8ff;--stat-teal:#58d5c4;--stat-violet:#bca1ff;--stat-pink:#f49acb;--stat-amber:#efc16b;--stat-slate:#9badc4;--stat-orange:#f3a274;--stat-green:#6bd4a0;--stat-danger:#ff9b96}
:root[data-theme=light]{--stat-blue:#2565b8;--stat-teal:#087e77;--stat-violet:#7950bd;--stat-pink:#b7387c;--stat-amber:#9b6500;--stat-slate:#63768c;--stat-orange:#bb5d23;--stat-green:#19794a;--stat-danger:#b33736}
.tone-blue{--tone:var(--stat-blue)}.tone-teal{--tone:var(--stat-teal)}.tone-violet{--tone:var(--stat-violet)}.tone-pink{--tone:var(--stat-pink)}.tone-amber,.tone-warning{--tone:var(--stat-amber)}.tone-slate{--tone:var(--stat-slate)}.tone-orange{--tone:var(--stat-orange)}.tone-green{--tone:var(--stat-green)}.tone-danger{--tone:var(--stat-danger)}
.file-panel{margin-top:24px;padding:24px;border:1px solid var(--line);background:var(--surface);border-radius:12px;min-width:0}
.file-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.file-panel-heading h2{font-size:21px;margin:5px 0 0}.file-panel-heading>button{font-size:12px}.file-panel .eyebrow{font-size:10px;letter-spacing:1.2px}.file-panel .footnote{font-size:11px;line-height:1.65;margin:15px 0 0;color:var(--muted)}
.spend-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:15px}.spend-totals>div{display:flex;flex-direction:column;gap:6px}.spend-totals span{font-size:11px;color:var(--muted)}.spend-totals strong{font-size:29px;color:var(--tone);font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.budget-strip{display:flex;height:7px;background:var(--line);border-radius:8px;overflow:hidden}.budget-strip>span{background:var(--tone)}
.spend-breakdown{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:32px;margin:27px 0 20px}.spend-ring{width:170px;height:170px;border-radius:50%;display:grid;place-items:center}.spend-ring>div{width:138px;height:138px;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}.spend-ring strong{font-size:28px}.spend-ring span{font-size:10px;color:var(--muted)}
.spend-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:16px}.spend-line{min-width:0}.spend-line>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:7px}.spend-line>div:first-child>span{display:flex;align-items:center;gap:7px;min-width:0}.spend-line strong{font-variant-numeric:tabular-nums;color:var(--tone);white-space:nowrap}.cost-dot,.status-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:var(--tone)}.spend-line small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.spending-reasons{padding-top:15px;border-top:1px solid var(--line);font-size:12px}.spending-reasons p{line-height:1.6;margin-top:8px}
.activity-bar{height:5px;background:var(--line);border-radius:5px;overflow:hidden;min-width:40px}.activity-bar>span{display:block;height:100%;background:var(--tone);border-radius:5px}.activity-bar.indeterminate>span{animation:file-wait 2.2s ease-in-out infinite alternate}@keyframes file-wait{from{transform:translateX(-80%)}to{transform:translateX(290%)}}
.activity-chip{font-size:11px;padding:6px 10px;border-radius:20px;color:var(--tone);border:1px solid var(--tone);white-space:nowrap}.activity-now{display:flex;justify-content:space-between;gap:20px;padding:15px 17px;background:var(--wash);border-left:3px solid var(--tone);border-radius:5px;margin-bottom:18px}.activity-now strong{font-size:14px;color:var(--tone)}.activity-now p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.6}.activity-now>span{white-space:nowrap;font-size:12px;color:var(--muted)}.activity-sequence{list-style:none;display:flex;flex-wrap:wrap;gap:12px 22px;margin:0 0 12px;padding:0;font-size:11px;color:var(--muted)}.activity-sequence .step-done{color:var(--stat-green)}.activity-sequence .step-active{color:var(--stat-blue)}.activity-sequence .step-partial{color:var(--stat-amber)}
.processing-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:20px}.processing-stage{display:flex;flex-direction:column;gap:10px;text-align:left;min-width:0;padding:16px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-weight:400}.processing-stage:hover{background:var(--wash)}.processing-stage strong{color:var(--tone);font-size:12px;line-height:1.4}.processing-stage>span{font-size:11px;line-height:1.6;flex:1;color:var(--muted)}.processing-stage .activity-bar{width:100%;margin-top:5px}.activity-notice{display:block;width:100%;margin-top:18px;padding:10px 12px;text-align:left;white-space:normal;line-height:1.5;border:1px solid var(--line);background:var(--wash);font-size:11px;color:var(--tone);font-weight:400}
.artifact-count{font-size:12px;color:var(--muted);white-space:nowrap}.artifact-tools{display:flex;gap:12px;margin-bottom:15px}.artifact-tools input{flex:1;min-width:0}.artifact-tools select{max-width:190px}.artifact-scroll{max-height:450px;overflow:auto;border:1px solid var(--line);border-radius:7px;overscroll-behavior:contain}.artifact-table{width:100%;min-width:710px;border-collapse:collapse;table-layout:fixed}.artifact-table th{position:sticky;top:0;background:var(--wash);z-index:1;text-transform:none;font-size:11px;color:var(--muted);text-align:left;padding:13px}.artifact-table th:first-child{width:30%}.artifact-table th:nth-child(2){width:22%}.artifact-table th:nth-child(3){width:19%}.artifact-table th:nth-child(4){width:20%}.artifact-table th:last-child{width:9%;text-align:right}.artifact-table td{padding:13px;vertical-align:middle;border-top:1px solid var(--line);font-size:11px;overflow-wrap:anywhere}.artifact-table td>span{color:var(--tone);display:block;line-height:1.5}.artifact-table small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:6px}.artifact-link{display:block;background:none;padding:0;text-align:left;color:var(--ink);font-size:12px;line-height:1.55;font-weight:500;white-space:normal}.artifact-link:hover{color:var(--accent);background:none;text-decoration:underline}.artifact-table .activity-bar{margin-top:8px}.artifact-cost{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--stat-blue)}
.search-explanation{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.search-explanation h3{font-size:13px;margin:0 0 10px}.search-explanation .coverage-meter{margin:10px 0}.search-explanation .coverage-meter strong{color:var(--stat-blue);font-size:20px}.search-explanation details{margin-top:12px;font-size:12px}.search-explanation details p{font-size:11px;line-height:1.6;margin-top:10px}.search-explanation .coverage-range-count{color:var(--stat-amber);font-weight:600}.readiness-ring{background:conic-gradient(var(--stat-green) calc(var(--score)*1%),var(--line) 0)}.readiness-ring strong{color:var(--stat-green)}
#file-status{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;align-items:center;gap:18px;min-height:40px;padding:6px 22px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -4px 18px #0001;font-size:11px}#file-status[hidden]{display:none}.has-file-status{padding-bottom:var(--file-status-height,60px)}.file-status-state{display:flex;align-items:center;gap:7px;min-width:0;color:var(--tone);white-space:nowrap}.file-status-state strong{font-size:11px}.file-status-elapsed{color:var(--muted);font-variant-numeric:tabular-nums}.file-status-model{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}.file-status-task{white-space:nowrap;color:var(--muted)}#file-status-items>button{background:transparent;color:var(--stat-blue);font-size:11px;padding:5px 3px;min-height:26px;white-space:nowrap}#file-status-items>.file-status-notices{color:var(--tone,var(--muted));overflow:hidden;text-overflow:ellipsis;flex:1;text-align:right;min-width:90px;max-width:100%;font-weight:400}.file-notice{padding:13px;border-left:3px solid var(--tone);background:var(--wash);font-size:13px;line-height:1.7;margin-bottom:12px;overflow-wrap:anywhere}#file-notices{width:min(650px,calc(100vw - 32px));max-height:85dvh;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}#file-notices::backdrop{background:#0007}#file-notices .file-panel-heading h2{margin:0}#file-notices-content{overflow:auto}
@media(max-width:1100px){.processing-stages{grid-template-columns:repeat(3,minmax(0,1fr))}.spend-breakdown{grid-template-columns:145px minmax(0,1fr);gap:24px}.spend-ring{width:140px;height:140px}.spend-ring>div{width:114px;height:114px}.spend-ring strong{font-size:24px}.file-status-task{display:none}#file-status{gap:12px}.file-status-model{max-width:180px}}
@media(max-width:760px){.file-panel{padding:18px 15px;margin-top:18px}.file-panel-heading{align-items:flex-start;gap:10px}.file-panel-heading h2{font-size:19px}.file-panel-heading>button{font-size:10px;padding:8px}.spend-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.spend-totals strong{font-size:26px}.spend-breakdown{grid-template-columns:1fr;justify-items:center;gap:23px}.spend-legend{width:100%;gap:17px 15px}.spend-line>div:first-child{font-size:11px;gap:6px}.spend-ring{width:150px;height:150px}.spend-ring>div{width:122px;height:122px}.processing-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.artifact-tools{flex-direction:column;gap:8px}.artifact-tools select{max-width:none}.artifact-scroll{max-height:390px}.activity-now{gap:10px;padding:12px}.activity-now>span{font-size:10px}.activity-now strong{font-size:12px}#file-status{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:5px 13px calc(5px + env(safe-area-inset-bottom));min-height:68px}.file-status-state{overflow:hidden}.file-status-state strong{overflow:hidden;text-overflow:ellipsis}.file-status-elapsed{display:none}.file-status-model{max-width:none;font-size:10px}.file-status-model:empty{display:none}#file-status-items>.file-status-notices{max-width:175px;min-width:0;justify-self:end;font-size:10px}#file-status-items>button{min-height:28px}.file-status-task{display:none}.search-explanation .coverage-meter>div{flex-wrap:wrap;gap:4px 8px}}
@media(prefers-reduced-motion:reduce){.activity-bar.indeterminate>span{animation:none;width:100%!important;opacity:.55}}
/* Currency decoration must inherit the size and meaning of each metric. */
.spend-totals strong .currency,.spend-ring strong .currency,.spend-line strong .currency{font:inherit;color:inherit!important}
.processing-stage{white-space:normal;overflow-wrap:anywhere}
.file-panel-heading>div{min-width:0}
.known-file-spend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.known-file-spend strong{color:var(--stat-blue)}.known-file-spend strong .currency{color:inherit!important}

.has-file-status>.action-progress{bottom:calc(var(--file-status-height,60px) + 12px)}

.file-panel-heading h2.eyebrow{font-size:10px;margin:0}.report-readiness h2.eyebrow{font-size:11px;margin:0 0 10px}


/* Navigation uses the same footer slot as the current file state. */
#file-status-items{display:contents}
#file-status :is(#view-loading,#run-loading):not([hidden]) ~ #file-status-items .file-status-state{display:none}
#run-loading{margin:0;color:var(--muted)}
.view-loading{display:flex;align-items:center;gap:7px;min-width:0;color:var(--ink)}
.view-loading progress{flex:none;width:clamp(24px,4vw,56px);height:5px;accent-color:var(--accent)}
#view-loading-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-loading-elapsed{flex:none;color:var(--muted);font-variant-numeric:tabular-nums}
#view-loading-retry{flex:none;font-size:inherit;padding:3px 8px;min-height:24px}
.view-load-error #view-loading-message{position:absolute;inset-inline:0;bottom:100%;max-height:30vh;overflow:auto;white-space:normal;overflow-wrap:anywhere;padding:8px 14px;background:var(--amber-bg);color:var(--amber);border-top:1px solid var(--amber)}
