:root { color-scheme: light; font: 16px/1.55 system-ui, sans-serif; color: #17243a; background: #f5f6f8; }
* { box-sizing: border-box; }
body { max-width: 1280px; margin: auto; padding: 1rem; overflow-wrap: anywhere; }
header { border-top: 6px solid var(--accent, #3559c7); padding: 1.5rem 0 1rem; }
h1 { margin: .5rem 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.4; }
p { margin: .5rem 0 1rem; }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.badge { display: inline-block; margin: .4rem 0 .4rem .5rem; padding: .3rem .6rem; border: 1px solid #768296; border-radius: 2rem; letter-spacing: 0; text-transform: none; }
.subtitle, .muted, footer, .section-heading > p { color: #526176; }
section { background: white; border: 1px solid #d4dce6; border-radius: .8rem; padding: 1rem; margin-bottom: 1rem; }
#access { background: #eef1f6; }
#access h2 { font-size: 1rem; }
.notice { padding: 1rem; border-left: 3px solid #67778c; background: #e9eef5; border-radius: .25rem; }
#sample:empty { display: none; }
label { display: block; font-size: .9rem; font-weight: 650; }
button, input, select, textarea { font: inherit; padding: .65rem .8rem; margin: .35rem 0 .65rem; max-width: 100%; min-height: 44px; border-radius: .4rem; }
input, select, textarea { background: white; color: #17243a; border: 1px solid #768296; }
button { background: #193975; color: white; border: 2px solid #193975; cursor: pointer; font-weight: 650; }
button:hover { background: #102951; }
button:disabled { opacity: .65; cursor: wait; }
#logout, #rollback { background: white; color: #193975; }
:focus-visible { outline: 3px solid #aa4c00; outline-offset: 3px; }
.skip { position: absolute; top: -100px; background: white; color: #17243a; padding: 1rem; z-index: 2; }
.skip:focus { top: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin: 1.5rem 0; }
.metric { border: 1px solid #d4dce6; border-top: 3px solid var(--accent, #3559c7); padding: 1.2rem; border-radius: .5rem; min-width: 0; }
.metric h2 { font-size: 1rem; min-height: 2.8em; }
.metric .value { font-size: 2rem; font-weight: 700; line-height: 1.2; margin: 1rem 0; }
.metric .reason { font-size: .85rem; color: #526176; margin: 0; }
.metric .stage { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #526176; }
#filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 1rem; align-items: end; border-bottom: 1px solid #d4dce6; padding-bottom: .75rem; }
#filters input, #filters select { width: 100%; }
.quality { background: #f7f8fa; margin-top: 1.5rem; }
.quality-grid { display: grid; gap: 1rem; margin: 1.25rem 0; }
dt { font-size: .8rem; color: #526176; } dd { margin: .25rem 0 0; font-weight: 650; }
summary { cursor: pointer; min-height: 44px; padding: .75rem 0; font-weight: 650; }
#admin { border-top: 1px solid #d4dce6; padding-top: .5rem; }
.schema-help { background: #f5f6f8; padding: 0 1rem; margin: 1rem 0; }
.schema-help ul { padding-left: 1.2rem; } .schema-help li { margin-bottom: .5rem; }
textarea { width: 100%; font: .875rem/1.6 ui-monospace, monospace; tab-size: 2; resize: vertical; }
[hidden] { display: none !important; }
.mono { font-family: ui-monospace, monospace; }
.compact .metric { padding: .8rem; }
.compact .metric h2 { min-height: 0; }
.compact .metric .value { font-size: 1.4rem; margin: .5rem 0; }
footer { padding: 1rem 0; font-size: .8rem; }
@media (min-width: 600px) { body { padding: 1.5rem; } section { padding: 1.5rem; } .grid, #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } #filters { grid-template-columns: 1fr 1fr 1fr auto; } .quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; } }
@media (max-width: 599px) { #demo select, #demo button, #logout, #save, #rollback, #versions { width: 100%; } .badge { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
