:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #182b3c; background: #f1f5f9; font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #155d93; text-underline-offset: .2em; }
button, select { font: inherit; }
input[type="file"] { width: 100%; font: inherit; margin: .5rem 0; }
#package-status { overflow-wrap: anywhere; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b85006; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -5rem; left: 1rem; background: white; padding: 1rem; z-index: 2; }
.skip-link:focus { top: 1rem; }
.masthead { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem max(1.25rem, calc((100vw - 1160px) / 2)); border-bottom: 1px solid #ccd8e2; background: #fff; }
.brand { color: #182b3c; font-weight: 750; text-decoration: none; }
.masthead span, .muted, footer { color: #4c6071; }
main { max-width: 1200px; margin: auto; padding: 2.5rem 1.25rem; }
.intro { max-width: 740px; margin-bottom: 1.8rem; }
.eyebrow { color: #155d93; font-weight: 700; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.12; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 1.4rem; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
.notice { border: 1px solid #b5ccdf; border-left: 4px solid #236b9f; border-radius: .3rem; padding: .9rem 1.1rem; background: #e7f1fa; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.notice.error { background: #fff0ec; border-color: #d89b87; color: #762c17; }
.workspace { display: grid; grid-template-columns: minmax(270px, 350px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { min-width: 0; background: #fff; border: 1px solid #ccd8e2; border-radius: .65rem; padding: 1.5rem; }
label { display: block; font-weight: 650; margin-bottom: .6rem; }
select { width: 100%; padding: .8rem 2.4rem .8rem .8rem; border: 1px solid #8196a8; border-radius: .35rem; color: inherit; background-color: white; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23182b3c' stroke-width='2'/%3E%3C/svg%3E"); background-position: right .85rem center; background-repeat: no-repeat; }
.capabilities { border-top: 1px solid #dde5ed; padding-top: 1rem; }
dt { font-size: .875rem; color: #4c6071; margin-top: .9rem; }
dd { margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
button { cursor: pointer; border: 1px solid #155d93; border-radius: .35rem; padding: .8rem 1rem; background: #155d93; color: #fff; min-height: 44px; font-weight: 650; }
button:hover:enabled { background: #104a76; }
button:disabled { cursor: not-allowed; opacity: .55; }
#run { width: 100%; }
.policy-guide { margin: 1.2rem 0; font-size: .875rem; }
.policy-guide h3 { margin-bottom: .4rem; }
.policy-card { margin: .6rem 0; padding: 0 .8rem; border: 1px solid #ccd8e2; border-radius: .4rem; }
.policy-card[open] { background: #f3f8fc; border-color: #819fb8; }
.policy-card p { margin: .2rem 0 .8rem; }
.policy-criteria { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; margin: .5rem 0 1rem; }
.policy-criteria dt, .policy-criteria dd { padding: .45rem 0; margin: 0; border-top: 1px solid #dde5ed; font-size: .8rem; }
.policy-criteria dd { text-align: right; align-self: stretch; }
.policy-terms { border-bottom: 1px solid #dde5ed; }
.policy-terms dd { font-weight: 400; line-height: 1.6; }
.policy-fixed { padding: .75rem; border-left: 3px solid #236b9f; background: #edf4fc; }
.policy-card fieldset { min-width: 0; margin: 1rem 0; padding: 0; border: 0; }
.policy-card legend { font-weight: 650; margin-bottom: .8rem; }
.policy-card input[type="text"] { width: 100%; padding: .65rem; font: inherit; border: 1px solid #8196a8; border-radius: .35rem; }
.policy-card small { display: block; margin: .3rem 0 1rem; }
.policy-error { color: #8b261b; padding: .7rem; border: 1px solid #d89b87; border-radius: .3rem; background: #fff0ec; }
.secondary { background: white; color: #155d93; margin-top: .8rem; }
.secondary:hover:enabled { background: #e7f1fa; }
.saved { border-top: 1px solid #dde5ed; margin-top: 1.5rem; padding-top: .5rem; }
.identity { font-family: ui-monospace, monospace; overflow-wrap: anywhere; font-size: .875rem; }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; }
.panel-heading span { font-size: .875rem; color: #4c6071; }
.source-name { font-family: ui-monospace, monospace; font-size: .875rem; margin: 0; padding: .75rem 1rem; background: #eaf0f5; border-radius: .3rem .3rem 0 0; }
pre { margin: 0 0 1.2rem; overflow: auto; padding: 1.25rem; background: #122536; color: #e4eef7; border-radius: 0 0 .3rem .3rem; line-height: 1.7; font-size: .875rem; tab-size: 4; }
.task-panel { margin: 1.5rem 0; }
.task-panel.stale { border-color: #b85006; }
.task-details dd { font-weight: 500; }
#last-read, #next-read { font-variant-numeric: tabular-nums; }
#next-read { min-block-size: 1.6em; }
.result-panel { border-top: 1px solid #ccd8e2; margin-top: 1.5rem; padding-top: 1rem; }
.result-panel h4 { font-size: 1.1rem; margin-top: 1.5rem; }
.result-panel h5 { font-size: 1rem; margin: 1.2rem 0 .6rem; }
.result-panel dd { font-weight: 500; }
.proposal { padding: 0 1rem 1rem; border: 1px solid #ccd8e2; border-radius: .4rem; margin: 1rem 0; overflow-wrap: anywhere; }
.source-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.source-column { min-width: 0; }
.source-controls { min-height: 6rem; padding-top: 1rem; }
.source-controls h5 { margin-top: 0; }
.source-controls label { font-size: .875rem; }
.source-controls select { max-width: 100%; }
.measurement-scroll { overflow-x: auto; }
.result-panel table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.result-panel th, .result-panel td { padding: .7rem; text-align: left; border-bottom: 1px solid #ccd8e2; }
.result-panel caption { text-align: left; padding: .5rem; color: #4c6071; }
.result-panel summary { cursor: pointer; padding: 1rem 0; font-weight: 650; }
.download-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 720px) { .source-comparison { grid-template-columns: minmax(0, 1fr); } }
footer { margin-top: 2rem; font-size: .875rem; line-height: 1.6; }
@media (max-width: 720px) { .workspace { grid-template-columns: minmax(0, 1fr); } main { padding-top: 1.8rem; } .panel { padding: 1.2rem; } .masthead { flex-wrap: wrap; } }

/* Keep setup, progress, results and supporting records visually distinct. */
:root { background: #f5f7fa; color: #182b3c; }
main { max-width: 1280px; }
.intro { max-width: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.intro > div { max-width: 760px; }
.intro p:last-child { color: #4c6071; max-width: 68ch; }
.intro #new-run { flex-shrink: 0; margin-top: 0; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #176556; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.workspace { grid-template-columns: minmax(310px, 390px) minmax(0, 1fr); }
.panel { border-color: #dbe3eb; border-radius: .8rem; box-shadow: 0 4px 16px #182b3c04; }
.setup h2, .task-heading h2 { margin-bottom: .8rem; }
.source-panel { position: sticky; top: 1.5rem; }
.upload-section, .run-section { border-top: 1px solid #dde5ed; margin-top: 1.4rem; padding-top: 1.2rem; }
.upload-section h3 { margin: 0; }
.upload-section p, .package-help { font-size: .875rem; color: #4c6071; }
.package-help { margin-bottom: 1.1rem; }
.package-help summary { padding: .3rem 0; }
.capabilities { border-top: 0; padding-top: 0; }
.text-button { border: 0; padding: .3rem 0; min-height: 32px; color: #155d93; background: transparent; font-size: .875rem; }
.text-button:hover:enabled { background: transparent; text-decoration: underline; }
.task-heading, .task-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.task-actions { flex-wrap: wrap; }
.task-actions button { margin-top: 0; }
.danger { background: #fff; color: #a23225; border-color: #d4a39d; }
.danger:hover:enabled { background: #fff0ec; }
.status-banner { background: #edf4fc; border-left: 4px solid #236b9f; padding: 1rem 1.2rem; font-weight: 650; border-radius: .3rem; }
.status-banner[data-state="completed"] { background: #edf8f3; border-color: #237a58; color: #185b41; }
.status-banner[data-state="failed"], .status-banner[data-state="rejected"] { background: #fff0ec; border-color: #aa4630; color: #762c17; }
.status-banner[data-state="cancelled"] { background: #f0f2f5; border-color: #64748b; }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .5rem 0 1rem; }
.field-label { display: block; font-size: .8rem; color: #4c6071; }
.progress-grid p { margin: .35rem 0 0; font-weight: 600; }
summary { cursor: pointer; font-weight: 650; padding: .8rem 0; }
.connection-details { border-top: 1px solid #e3e9ef; font-size: .875rem; }
.connection-details > p { margin: .5rem 0; }
.result-panel { margin-top: 1rem; padding-top: 1.5rem; }
.result-panel > h3 { color: #4c6071; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.result-panel .result-outcome { font-size: 1.65rem; letter-spacing: -.025em; margin: .6rem 0; }
.proposal { border-left: 3px solid #a9c9c1; background: #fcfdfd; }
.result-panel details { border-top: 1px solid #e3e9ef; margin-top: 1rem; }
.result-panel details details { border-top: 0; }
.run-diagnostics { margin-top: 0; display: flow-root; }
.result-panel > .source-details,
.result-panel .run-diagnostics > details { margin: 1rem 0 0; padding: 0; }
.source-details > summary,
.run-diagnostics > details > summary {
  min-height: 3.5rem;
  padding: 1rem .25rem;
  line-height: 1.5rem;
}
.agent-activity select { max-width: 320px; }
.agent-activity label { font-size: .875rem; }
:is(.agent-activity, .execution-attempts) ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.agent-activity .agent-assessments { margin: .8rem 0 0; padding-inline-start: .75rem; border-inline-start: 2px solid #dde5ed; }
:is(.agent-activity, .execution-attempts) li { border: 1px solid #dde5ed; border-radius: .5rem; padding: 1rem; overflow-wrap: anywhere; }
:is(.agent-activity, .execution-attempts) li p { margin: .4rem 0 0; font-size: .875rem; }
pre { max-height: 32rem; }
.downloads { border-top: 1px solid #dde5ed; margin-top: 1.8rem; padding-top: .4rem; }
.downloads p:empty, #stop-status:empty, #download-status:empty { display: none; }
.download-actions .secondary { margin-top: 0; }
@media (max-width: 760px) {
  .intro, .task-heading { flex-direction: column; gap: 1rem; align-items: stretch; }
  .intro #new-run { align-self: flex-start; }
  .workspace, .progress-grid { grid-template-columns: minmax(0, 1fr); }
  .source-panel { position: static; }
  .task-actions { justify-content: flex-start; }
}

.result-panel details.proposal { padding: 0; border: 1px solid #ccd8e2; border-left: 3px solid #a9c9c1; }
.result-panel .proposal > summary { padding: 1rem; font-size: 1rem; }
.proposal-body { padding: 0 1rem 1rem; }
.proposal-body li p { margin: .3rem 0; font-size: .875rem; }
.proposal-body .secondary { margin: 0 0 .5rem; }

/* Proposal summaries keep the decision visible; evidence expands within each card. */
.result-panel details.proposal { border: 1px solid #cbd8e3; border-radius: .75rem; background: #fff; overflow: hidden; }
.result-panel details.proposal[data-tone="positive"] { border-color: #8cbdab; }
.result-panel .proposal > summary { display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; gap: .55rem 1rem; padding: 1.2rem; list-style: none; }
.proposal > summary::-webkit-details-marker { display: none; }
.proposal > summary::after { content: ''; grid-column: 2; grid-row: 1; width: .55rem; height: .55rem; border-right: 2px solid #526c80; border-bottom: 2px solid #526c80; transform: rotate(45deg); align-self: center; justify-self: center; transition: transform .15s; }
.proposal[open] > summary::after { transform: rotate(225deg); }
.proposal > summary:hover { background: #f5f9fc; }
.proposal-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.proposal-title { font-size: 1.05rem; color: #182b3c; }
.proposal-status { padding: .25rem .6rem; border-radius: .3rem; font-size: .875rem; line-height: 1.4; background: #eef2f6; color: #415668; }
.proposal-status.positive { background: #e7f5ee; color: #185b41; }
.proposal-status.warning { background: #fff2e5; color: #854910; }
.proposal-explanation, .proposal-overview { grid-column: 1 / -1; display: block; font-weight: 400; line-height: 1.6; }
.proposal-explanation { color: #364f63; }
.proposal-overview { color: #52697c; font-size: .875rem; }
.proposal[open] > summary { border-bottom: 1px solid #dde5ed; background: #f7fafc; }
.proposal-body { padding: 1.2rem; }
.proposal-body > h5 { margin-top: 1.2rem; }
.proposal-reviews { display: grid; gap: .6rem; }
.proposal-review { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .8rem 1rem; border: 1px solid #dce5ed; border-radius: .4rem; font-size: .875rem; }
.proposal-review > p, .proposal-review > ul { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.proposal-review > ul { padding-inline-start: 1.25rem; }
.review-verdict { font-weight: 650; color: #52697c; }
.proposal-review[data-tone="positive"] .review-verdict { color: #185b41; }
.proposal-review[data-tone="warning"] .review-verdict { color: #962e21; }
.result-panel .proposal-body > details { border-top: 1px solid #dde5ed; margin-top: .9rem; }
.proposal-body > details > summary { font-size: .875rem; padding: 1rem 0; }
.proposal-body > details > ul { padding-left: 1.3rem; line-height: 1.8; }
.proposal-body .secondary { margin: 0; }
@media (max-width: 520px) {
  .result-panel .proposal > summary, .proposal-body { padding: 1rem; }
  .proposal-heading { align-items: flex-start; flex-direction: column; }
  .proposal-review { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .proposal > summary::after { transition: none; } }

/* Each workload owns its heading, comparison table and supporting evidence. */
.benchmark-workload { min-width: 0; margin: .5rem 0 1.5rem; padding: 0 1.1rem 1.1rem; border: 1px solid #c3d2df; border-radius: .6rem; background: #fff; }
.benchmark-workload + .benchmark-workload { margin-top: 1.5rem; }
.benchmark-workload-heading { margin: 0 -1.1rem 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid #d5e0e9; border-radius: .6rem .6rem 0 0; background: #edf3f8; }
.result-panel .benchmark-workload-heading h5 { margin: 0 0 .4rem; font-size: 1.05rem; }
.benchmark-workload-heading p { margin: .3rem 0 0; font-size: .875rem; color: #415b70; }
.benchmark-workload-heading .benchmark-workload-result { color: #182b3c; font-weight: 600; }
.benchmark-workload > p { font-size: .875rem; }
@media (max-width: 520px) {
  .benchmark-workload { padding: 0 .75rem .75rem; }
  .benchmark-workload-heading { margin: 0 -.75rem .75rem; padding: .9rem .75rem; }
}
