:root{--bg:#f4f6f8;--card:#fff;--text:#101828;--muted:#667085;--border:#e4e7ec;--green:#009f61;--green-soft:#eaf8f1;--yellow:#d97706;--yellow-soft:#fff6e5;--red:#d92d20;--red-soft:#fff0ef;--gray:#98a2b3;--gray-soft:#f2f4f7;--shadow:0 1px 2px rgba(16,24,40,.035),0 2px 8px rgba(16,24,40,.025);--radius:18px;--ring:307.876}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}.hidden{display:none!important}.app-shell{min-height:100vh}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.45}.eyebrow{display:block;font-size:11px;line-height:1.2;font-weight:800;letter-spacing:.12em;color:#667085}.button{appearance:none;border:0;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:700;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease}.button:active{transform:translateY(1px)}.primary{background:#101828;color:#fff}.secondary{background:#fff;color:#101828;border:1px solid var(--border)}.quiet{background:#fff;border:1px solid var(--border);color:#344054}.error{color:var(--red);font-size:13px;margin:14px 0 0}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--border);border-radius:24px;padding:34px;box-shadow:var(--shadow)}.auth-card h1{font-size:27px;margin:8px 0 8px;letter-spacing:-.03em}.auth-copy{font-size:14px;line-height:1.6;margin:0 0 24px}.auth-icon{width:52px;height:52px;border-radius:16px;background:#ecfdf3;display:grid;place-items:center;margin-bottom:22px}.auth-icon span{width:19px;height:16px;border:3px solid var(--green);border-radius:5px;position:relative}.auth-icon span:before{content:"";position:absolute;width:10px;height:9px;border:3px solid var(--green);border-bottom:0;border-radius:9px 9px 0 0;left:1.5px;top:-11px}.request-box{margin-top:18px;padding:16px;background:#f8fafc;border:1px solid var(--border);border-radius:13px}.request-box code{display:block;word-break:break-all;margin:7px 0 8px;font-size:12px}.request-box .button{margin-top:7px}
.topbar{max-width:1240px;margin:0 auto;padding:26px 22px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand-block h1{font-size:24px;letter-spacing:-.035em;margin:4px 0 0}.top-actions{display:flex;align-items:center;gap:9px}.month-select{height:42px;border:1px solid var(--border);border-radius:11px;background:#fff;color:#344054;padding:0 31px 0 12px;font-size:13px;font-weight:700;outline:none}.snapshot-nav{display:flex;align-items:stretch;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.icon-button{width:40px;border:0;background:#fff;color:#344054;font-size:24px;cursor:pointer}.icon-button:disabled{color:#d0d5dd;cursor:not-allowed}.date-chip{min-width:185px;padding:7px 13px;border-left:1px solid var(--border);border-right:1px solid var(--border);text-align:center}.date-chip strong{display:block;font-size:12px}.date-chip span{display:block;font-size:10px;color:var(--muted);margin-top:2px;text-transform:uppercase;letter-spacing:.08em}
.dashboard{max-width:1240px;margin:0 auto;padding:0 22px 58px}.hero-grid{display:grid;grid-template-columns:minmax(0,2.3fr) repeat(3,minmax(150px,1fr));gap:14px}.hero-card{min-height:190px;padding:23px 25px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero-copy h2{font-size:30px;letter-spacing:-.04em;margin:6px 0}.hero-copy p{font-size:13px;margin:0}.hero-meta{margin-top:18px;color:#98a2b3;font-size:11px}.dot-sep{padding:0 7px}.quick-card{padding:18px;display:flex;flex-direction:column;min-height:130px}.quick-value{font-size:24px;font-weight:800;letter-spacing:-.03em;margin-top:auto;padding-top:22px}.quick-card .tiny{margin-top:5px}
.gauge{--gauge-color:var(--gray);position:relative;width:82px;height:82px;flex:0 0 auto}.gauge svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.gauge circle{fill:none;stroke-width:9}.gauge .track{stroke:#edf0f2}.gauge .progress{stroke:var(--gauge-color);stroke-linecap:round;stroke-dasharray:var(--ring);stroke-dashoffset:var(--ring);transition:stroke-dashoffset .85s cubic-bezier(.22,.61,.36,1),stroke .25s ease}.gauge.is-ready .progress{stroke-dashoffset:calc(var(--ring) - (var(--ring) * var(--value) / 100))}.gauge-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center}.gauge-center strong,.gauge-value{font-size:17px;font-weight:850;line-height:1}.gauge-center span{font-size:9px;color:var(--muted);margin-top:4px}.gauge-xl{width:122px;height:122px}.gauge-xl circle{stroke-width:8}.gauge-xl .gauge-center strong{font-size:27px}.gauge[data-status="PASS"]{--gauge-color:var(--green)}.gauge[data-status="WARN"]{--gauge-color:var(--yellow)}.gauge[data-status="FAIL"]{--gauge-color:var(--red)}
.health-strip{padding:14px 0 4px}.health-strip-inner{display:grid;grid-template-columns:repeat(9,1fr);gap:8px}.health-chip{background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 10px 9px;min-width:0}.health-chip .name{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.health-chip .score{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:13px;font-weight:800}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--gray)}.status-PASS .status-dot,.status-pill.PASS{background:var(--green)}.status-WARN .status-dot,.status-pill.WARN{background:var(--yellow)}.status-FAIL .status-dot,.status-pill.FAIL{background:var(--red)}
.sections{margin-top:12px}.section{padding:27px 0 30px;border-top:1px solid #dde2e8}.section:first-child{border-top:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title h2{font-size:19px;letter-spacing:-.025em;margin:0}.section-title p{font-size:12px;color:var(--muted);margin:4px 0 0}.more-button{width:38px;height:32px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#475467;font-size:17px;line-height:1;cursor:pointer;letter-spacing:1px}.section-summary{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.primary-panel{min-height:160px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.primary-copy .label{font-size:12px;color:var(--muted);font-weight:600}.primary-copy .value{font-size:24px;font-weight:850;letter-spacing:-.035em;margin-top:7px}.primary-copy .status-text{margin-top:8px;font-size:11px;font-weight:800}.secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mini-card{padding:16px;min-height:78px}.mini-card .label{font-size:11px;color:var(--muted)}.mini-card .value{font-size:17px;font-weight:800;margin-top:7px;word-break:break-word}.tone-good .value{color:var(--green)}.tone-warning .value{color:var(--yellow)}.tone-danger .value{color:var(--red)}.tone-muted .value{color:#667085}.status-text.PASS{color:var(--green)}.status-text.WARN{color:var(--yellow)}.status-text.FAIL{color:var(--red)}.status-text.UNAVAILABLE{color:var(--gray)}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.resource-card{padding:17px;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:112px}.resource-card h3{font-size:12px;margin:0;color:#344054}.resource-card .resource-value{font-size:18px;font-weight:800;margin-top:7px}.resource-card .resource-sub{font-size:10px;color:var(--muted);margin-top:4px}.resource-card.unavailable{background:#fafafa}.resource-card.unavailable .resource-value{color:#98a2b3;font-size:14px}.resource-card .gauge{width:66px;height:66px}.resource-card .gauge .gauge-center strong{font-size:14px}
.chart-card{padding:16px 16px 10px;min-height:180px}.chart-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.chart-head h3{font-size:12px;margin:0;color:#344054}.chart-legend{display:flex;gap:12px;font-size:10px;color:var(--muted)}.chart-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:currentColor}.chart{height:125px}.chart svg{width:100%;height:100%;overflow:visible}.chart .grid{stroke:#edf0f2;stroke-width:1}.chart .line-a{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart .line-b{fill:none;stroke:#7f56d9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.chart .area-a{fill:rgba(0,159,97,.08)}.chart-empty{height:110px;display:grid;place-items:center;color:#98a2b3;font-size:12px}
.details-panel{margin-top:12px;padding:18px;background:#fff;border:1px solid var(--border);border-radius:14px;animation:reveal .18s ease-out}.details-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.details-group h4{font-size:12px;margin:0 0 9px}.details-group.danger h4{color:var(--red)}.details-group.good h4{color:var(--green)}.details-group.muted h4{color:#667085}.detail-list{list-style:none;padding:0;margin:0}.detail-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef1f4;padding:8px 0;font-size:11px}.detail-list li:first-child{border-top:0}.detail-list code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;word-break:break-all}.detail-list .right{color:var(--muted);text-align:right}.details-empty{font-size:11px;color:#98a2b3;margin:0}.metric-table{width:100%;border-collapse:collapse}.metric-table td{font-size:11px;padding:7px 0;border-top:1px solid #eef1f4}.metric-table tr:first-child td{border-top:0}.metric-table td:last-child{text-align:right;color:#475467;font-weight:600}
@keyframes reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(max-width:980px){.hero-grid{grid-template-columns:1fr 1fr}.hero-card{grid-column:1/-1}.health-strip-inner{grid-template-columns:repeat(5,1fr)}.section-summary{grid-template-columns:1fr}.secondary-grid,.resource-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.topbar{align-items:flex-start;flex-direction:column;padding:20px 14px 12px}.top-actions{width:100%;flex-wrap:wrap}.month-select{flex:1}.snapshot-nav{flex:1;min-width:245px}.date-chip{min-width:145px}.dashboard{padding:0 14px 40px}.hero-grid{grid-template-columns:1fr 1fr;gap:9px}.hero-card{padding:20px;min-height:160px}.hero-copy h2{font-size:25px}.gauge-xl{width:100px;height:100px}.quick-card{min-height:105px;padding:14px}.quick-value{font-size:19px;padding-top:15px}.health-strip-inner{display:flex;overflow:auto;padding-bottom:5px}.health-chip{min-width:102px}.secondary-grid,.resource-grid{grid-template-columns:1fr 1fr}.details-groups{grid-template-columns:1fr}.section{padding:22px 0}.section-title h2{font-size:17px}}
@media(max-width:440px){.hero-grid{grid-template-columns:1fr}.hero-card{grid-column:auto}.quick-card{min-height:88px}.secondary-grid,.resource-grid{grid-template-columns:1fr}.snapshot-nav{min-width:100%}.button.quiet{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.gauge .progress{transition:none}.details-panel{animation:none}}

.trend-badge{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800}.trend-badge span{font-weight:600;color:#98a2b3}.integrity-badge{display:inline-flex;align-items:center;gap:5px;font-weight:800}.integrity-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#98a2b3}.integrity-badge.ok{color:var(--green)}.integrity-badge.ok:before{background:var(--green)}.integrity-badge.unknown{color:#667085}

/* Build035 — attention-first visual hierarchy */
.attention-section{padding:10px 0 2px}.attention-card{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-left:4px solid var(--green)}.attention-section[data-status="WARN"] .attention-card{border-left-color:var(--yellow);background:linear-gradient(90deg,var(--yellow-soft),#fff 22%)}.attention-section[data-status="FAIL"] .attention-card{border-left-color:var(--red);background:linear-gradient(90deg,var(--red-soft),#fff 22%)}.attention-card h2{font-size:17px;margin:5px 0 3px}.attention-card p{font-size:11px;margin:0}.attention-items{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:62%}.attention-item{appearance:none;border:1px solid var(--border);background:#fff;border-radius:11px;padding:8px 10px;display:flex;align-items:flex-start;gap:8px;text-align:left;cursor:pointer;color:var(--text);max-width:245px}.attention-item strong{display:block;font-size:11px}.attention-item small{display:block;font-size:10px;color:var(--muted);margin-top:2px;line-height:1.35}.attention-dot{width:7px;height:7px;border-radius:50%;margin-top:3px;background:var(--yellow);flex:0 0 auto}.attention-item.fail .attention-dot{background:var(--red)}.attention-ok{font-size:12px;color:var(--green);font-weight:800}.health-chip{appearance:none;text-align:left;color:inherit;font:inherit;cursor:pointer}.health-chip:hover,.more-button:hover{border-color:#cbd5e1;background:#fbfcfd}.more-button{font-size:20px;font-weight:700;transition:transform .15s ease}.more-button[aria-expanded="true"]{background:#f8fafc}.section{scroll-margin-top:16px}
@media(max-width:780px){.attention-card{align-items:flex-start;flex-direction:column}.attention-items{max-width:none;width:100%;justify-content:flex-start}.attention-item{max-width:none;flex:1 1 210px}}

.resource-reason{font-size:10px;line-height:1.35;margin-top:7px;max-width:260px}.resource-reason.WARN{color:var(--yellow)}.resource-reason.FAIL{color:var(--red)}.resource-reason.PASS{color:var(--green)}


/* Build042 — change-first incident lifecycle */
.lifecycle-badge{display:inline-flex;align-items:center;margin:0 0 4px;padding:2px 6px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:8px;font-weight:850;letter-spacing:.04em}.attention-item.lifecycle-new{box-shadow:inset 0 0 0 1px rgba(217,119,6,.18)}.attention-item.lifecycle-ongoing{opacity:.88}.attention-item.recovered{border-color:#b7e4ce;background:#f3fbf7}.attention-item.recovered .attention-dot{background:var(--green)}.lifecycle-badge.recovered{background:var(--green-soft);color:#067647}.attention-item.recovered small{color:#067647}

.incident-history-meta{color:#98a2b3!important;font-size:9px!important;margin-top:4px!important}


/* Build042 — incident Evidence Trace */
.incident-trace-row{display:flex;align-items:center;gap:7px;margin-top:6px;min-width:0}.incident-trace-dots{display:flex;align-items:center;gap:3px;flex:0 0 auto}.incident-trace-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#98a2b3;box-shadow:0 0 0 1px rgba(16,24,40,.08)}.incident-trace-dot.warn{background:var(--yellow)}.incident-trace-dot.fail{background:var(--red)}.incident-trace-dot.recovered{background:var(--green)}.incident-trace-copy{font-size:8px;color:#98a2b3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attention-item{min-width:210px}.attention-item>span:last-child{min-width:0}
