:root{font-family:system-ui,sans-serif;color:#18212b;background:#f3f6f8}*{box-sizing:border-box}body{margin:0}header{position:sticky;top:0;z-index:2;background:#123e52;color:white;padding:14px 16px}h1{font-size:1.25rem;margin:0 0 10px}.stats{display:flex;justify-content:space-between;gap:8px}progress{width:100%;height:10px}main{max-width:850px;margin:auto;padding:12px}.scanner,#selected,#results article{background:white;border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 2px 8px #18374718}label{display:block;font-weight:700;margin:8px 0}.scanrow{display:flex;gap:8px}input{font:inherit;font-size:1.05rem;width:100%;padding:14px;border:2px solid #9aabb3;border-radius:10px}button,a{min-height:46px;border:0;border-radius:10px;padding:10px 15px;font-weight:700;background:#dce6ea;color:#123e52;text-decoration:none;cursor:pointer}.active,button[type=submit],#complete{background:#0b7a68;color:white}.modes,nav,footer,.actions{display:flex;gap:8px;flex-wrap:wrap}nav{margin:15px 0}nav button{flex:1}dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px}dt{font-weight:bold}.itemhead{display:flex;justify-content:space-between;gap:8px}.counted{border-left:6px solid #0b7a68}.unknown{color:#a22323;font-weight:bold}#message{min-height:24px}video{width:100%;margin-top:8px;border-radius:12px}footer{padding:12px 0 80px}footer>*{flex:1;text-align:center}@media(min-width:650px){h1{font-size:1.5rem}.scanner{padding:22px}}

.brand{font-size:1.25rem}.osnav{overflow:auto;flex-wrap:nowrap;margin:8px 0}.osnav a{color:white;background:#ffffff18;white-space:nowrap;min-height:auto;padding:7px 10px}
/* Roadmap is a read-only projection; progress values are supplied by RoadmapService. */
.roadmap{max-width:1000px;margin:auto}.roadmap-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.roadmap-summary div,.roadmap-module{background:white;border-radius:12px;padding:1rem;box-shadow:0 2px 10px #0001}.roadmap-summary span{display:block;color:#596579}.roadmap-summary strong{font-size:2rem}.roadmap-module{margin-bottom:1rem}.module-title{display:flex;justify-content:space-between;align-items:center}.roadmap-module h2{margin:.25rem 0}.roadmap-module progress{width:100%}.roadmap-module dl{display:grid;grid-template-columns:9rem 1fr;gap:.35rem;margin-bottom:0}.roadmap-module dt{font-weight:700}.roadmap-module dd{margin:0}@media(max-width:600px){.roadmap-summary{grid-template-columns:1fr}.roadmap-module dl{grid-template-columns:1fr}}
.safe{background:#fff3cd;color:#594500;text-align:center;padding:.4rem;font-size:.85rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem}.cards article{background:white;padding:1.3rem;border-radius:12px;display:grid;gap:.5rem}.cards strong{font-size:1.25rem}.login{max-width:380px;margin:8vh auto;background:white;padding:2rem;border-radius:14px}.login form,.login label{display:grid;gap:.7rem}.login form{gap:1.2rem}

/* Dashboard: a product cockpit, intentionally distinct from generic admin templates. */
.dashboard-body{--ink:#122b34;--muted:#65767c;--brand:#0d796d;--brand-dark:#103f4b;--aqua:#3ac1ac;--line:#dfe9e9;--surface:#fff;background:#edf4f3;color:var(--ink);min-height:100vh}
.dashboard-header{position:relative;padding:18px max(20px,calc((100vw - 1240px)/2));background:var(--brand-dark);box-shadow:0 8px 30px #092b331f}
.header-row{display:flex;justify-content:space-between;align-items:center}.dashboard-header .brand{color:#fff;text-decoration:none;letter-spacing:-.03em}.dashboard-header .brand b{color:#76dbc9}.dashboard-header form{margin:0}.dashboard-header .logout{min-height:36px;padding:7px 12px;background:#ffffff13;border:1px solid #ffffff32;color:#fff}
.dashboard-header .osnav{scrollbar-width:thin;margin:15px 0 0;padding-bottom:2px}.dashboard-header .osnav a{border:1px solid transparent;color:#d8ecea;background:transparent}.dashboard-header .osnav a:hover,.dashboard-header .osnav a[aria-current=page]{background:#fff;color:var(--brand-dark)}
.dashboard-shell{max-width:1240px;padding:34px 20px 70px}.page-heading,.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:clamp(1.55rem,3vw,2.25rem);letter-spacing:-.035em;margin:4px 0 0}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:800;color:var(--brand);margin:0}.updated{font-size:.82rem;color:var(--muted);margin:0;text-align:right}
.dashboard-alert{padding:12px 16px;border-radius:10px;border-left:4px solid #b64343;background:#fff0f0;color:#762929;font-weight:700}
.progress-hero{display:grid;grid-template-columns:1fr auto;gap:24px 50px;padding:clamp(24px,4vw,44px);border-radius:24px;color:white;background:radial-gradient(circle at 85% 0,#217b78 0,transparent 38%),linear-gradient(135deg,#123f4b,#0d5a5d);box-shadow:0 18px 45px #143a4424;overflow:hidden}.progress-hero .eyebrow{color:#79d9c9}.progress-hero h2{font-size:clamp(1.5rem,3vw,2.4rem);margin:6px 0 8px;letter-spacing:-.035em}.hero-description{color:#d1e5e4;margin:0;max-width:610px;line-height:1.6}.status-line{display:flex;align-items:center;gap:12px;margin-top:20px;color:#c8dddc;font-size:.85rem}.progress-score{text-align:right;align-self:center}.progress-score strong{font-size:clamp(3.5rem,8vw,6.5rem);font-weight:750;line-height:.8;letter-spacing:-.08em}.progress-score span{display:block;margin-top:14px;color:#d2e4e3;font-weight:700}.progress-track{height:8px;border-radius:99px;background:#dce9e8;overflow:hidden}.progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--brand);transition:width .65s ease}.progress-track-large{grid-column:1/-1;height:12px;background:#ffffff2b}.progress-track-large span{background:linear-gradient(90deg,#43c7af,#8ce4d4)}.progress-meta{grid-column:1/-1;display:flex;justify-content:space-between;color:#cfe2e1;font-size:.85rem;margin-top:-15px}.progress-meta strong{color:#fff}
.status-badge{display:inline-flex;width:max-content;padding:5px 9px;border-radius:99px;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.status-done{color:#11634f;background:#d7f3e7}.status-in-progress{color:#805610;background:#fff0c7}.status-todo{color:#5f6c72;background:#e8eeef}.status-blocked{color:#8d3030;background:#fbe0e0}.status-loading{color:#d8ecea;background:#ffffff1a}
.dashboard-grid{display:grid;grid-template-columns:minmax(300px,.72fr) 1.28fr;gap:24px;margin:24px 0 42px}.next-action{display:flex;gap:18px;background:#fff;padding:25px;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 25px #193c4410}.next-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;color:white;background:var(--brand);font-size:1.4rem}.next-action h2,.operations h2,.modules-section h2{margin:5px 0 10px;font-size:1.3rem;letter-spacing:-.02em}.next-action #nextText{font-size:1.06rem;font-weight:750;line-height:1.4;margin:0 0 12px}.next-action #nextModule{font-size:.78rem;color:var(--muted)}
.operations .section-heading{margin:0 0 10px}.operation-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.operation-card{min-height:138px;padding:16px;display:grid;grid-template-columns:34px 1fr;align-content:start;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;color:var(--ink);transition:transform .2s,border-color .2s}.operation-card:hover{transform:translateY(-2px);border-color:#8fc6bd}.operation-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dff2ef;color:var(--brand);font-size:.7rem;font-weight:900}.operation-card>span:nth-child(2){font-weight:800}.operation-card small{display:block;margin-top:3px;color:var(--muted);font-weight:500;font-size:.7rem}.operation-card strong{grid-column:1/-1;font-size:1.2rem;margin-top:auto}.operation-card .metric-text{font-size:.9rem}
.modules-section{padding-top:4px}.modules-section .section-heading{margin-bottom:13px}.modules-section .section-heading a{min-height:auto;padding:0;background:transparent;color:var(--brand)}.status-legend{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.status-legend span{font-size:.72rem;font-weight:800;padding:5px 9px;border-radius:99px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.module-card{min-height:235px;padding:20px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-top:3px solid #b9c6c8;border-radius:16px;box-shadow:0 5px 18px #193c440a}.module-card.status-done{border-top-color:#3aad89}.module-card.status-in-progress{border-top-color:#dbab42}.module-card.status-blocked{border-top-color:#c95959}.module-card-head,.module-score{display:flex;justify-content:space-between;align-items:center;gap:10px}.module-index{font-size:.72rem;font-weight:900;color:#9aa9ad;letter-spacing:.1em}.module-card h3{font-size:1.06rem;margin:16px 0 20px}.module-score{margin-bottom:8px}.module-percent{font-size:1.35rem}.module-weight{font-size:.72rem;color:var(--muted)}.module-next{border-top:1px solid var(--line);margin-top:auto;padding-top:14px;display:grid;gap:4px}.module-next span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.module-next strong{font-size:.84rem;line-height:1.4}.empty-state{grid-column:1/-1;background:#fff;border-radius:14px;padding:24px;color:var(--muted)}
.loading-card{animation:pulse 1.3s ease-in-out infinite}.module-skeleton{min-height:235px;background:linear-gradient(100deg,#fff 30%,#edf4f3 50%,#fff 70%);background-size:300% 100%;animation:shimmer 1.4s infinite}@keyframes pulse{50%{opacity:.7}}@keyframes shimmer{to{background-position:-150% 0}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-header{padding:14px 16px}.dashboard-header .osnav{margin-top:12px}.dashboard-shell{padding:24px 14px 50px}.page-heading{display:block}.updated{text-align:left;margin-top:10px}.progress-hero{grid-template-columns:1fr;padding:24px;gap:24px}.progress-score{text-align:left}.progress-score strong{font-size:4.2rem}.progress-track-large,.progress-meta{grid-column:1}.operation-cards,.module-grid{grid-template-columns:1fr}.operation-card{min-height:112px}.section-heading{align-items:start;flex-direction:column}.modules-section .section-heading{gap:4px}.module-card{min-height:215px}}
@media(prefers-reduced-motion:reduce){.progress-track span,.operation-card{transition:none}.loading-card,.module-skeleton{animation:none}}
