:root{font-family:Inter,"Yu Gothic UI",Meiryo,system-ui,sans-serif;color:#e8edf7;background:#0b1220;font-synthesis:none;font-optical-sizing:auto;font-size:15px;--panel:#121d2f;--edge:#23324a;--muted:#91a0b8;--blue:#5ab4ff;--violet:#b49bff;--red:#ff7d82}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 15% -20%,#1a3153 0,transparent 45%),#0b1220}.shell{width:min(1180px,100%);margin:auto;padding:clamp(16px,3vw,34px)}h1,h2,p{margin-top:0}h1{font-size:clamp(1.45rem,3vw,2rem);margin-bottom:0}h2{font-size:1.2rem;margin:0}.eyebrow{font-size:.68rem;letter-spacing:.15em;color:#84a9d4;margin-bottom:7px;font-weight:750}.muted,small{color:var(--muted)}.topbar,.panel-heading,.toolbar,.history-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.topbar{margin-bottom:24px}.toolbar{padding:14px 16px;background:var(--panel);border:1px solid var(--edge);border-radius:14px;margin-bottom:16px;flex-wrap:wrap}.toolbar label,.compact{display:flex;align-items:center;gap:10px;font-size:.85rem;color:#b8c6da}select,input{background:#0b1424;color:#eaf1fc;border:1px solid #31435e;border-radius:8px;padding:10px 12px;font:inherit;min-height:42px}button{font:inherit;color:inherit;border:0;cursor:pointer}.pill,.freshness{border-radius:999px;background:#1b2b42;padding:7px 12px;font-size:.78rem}.freshness.fresh{color:#75e0b0}.freshness.stale{color:#ffb66d}.danger,.primary{padding:10px 15px;border-radius:9px;font-weight:700}.danger{background:#642d38;color:#ffdce0}.danger:disabled{opacity:.45;cursor:not-allowed}.primary{background:#297bc2;color:white;width:100%;margin-top:5px}.quiet{background:transparent;border:1px solid var(--edge);border-radius:8px;padding:9px 12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.metric,.panel,.login-card{background:linear-gradient(145deg,#152239,#111b2c);border:1px solid var(--edge);border-radius:15px}.metric{padding:17px;display:flex;flex-direction:column;gap:9px;min-width:0}.metric span{font-size:.78rem;color:#a8b6cb}.metric strong{font-size:clamp(1.1rem,2vw,1.55rem);overflow-wrap:anywhere}.metric small{font-size:.72rem}.panel{padding:19px;margin-bottom:14px}.panel-heading{margin-bottom:14px}.panel-heading .eyebrow{margin-bottom:4px}.segmented{display:flex;gap:4px;padding:4px;background:#0a1424;border-radius:10px}.segmented button{background:transparent;border-radius:7px;padding:7px 10px;color:#aab9ce;font-size:.76rem}.segmented button.selected{background:#233b5d;color:#fff}.chart-wrap{height:260px;width:100%}#chart{display:block;width:100%;height:100%;overflow:visible}.grid-line{stroke:#25354d;stroke-width:1}.chart-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-line.blue{stroke:var(--blue)}.chart-line.violet{stroke:var(--violet);stroke-dasharray:8 5}.chart-label{fill:#8798b2;font-size:12px}.legend{display:flex;gap:18px;color:var(--muted);font-size:.75rem;margin-top:9px}.legend span{display:flex;align-items:center;gap:7px}.line{width:17px;height:3px;border-radius:2px}.line.blue{background:var(--blue)}.line.violet{background:var(--violet)}.comparison-list{display:flex;gap:10px;flex-wrap:wrap}.comparison-item{background:#0c1728;border:1px solid var(--edge);border-radius:10px;padding:12px 14px;min-width:180px}.comparison-item strong{display:block;margin:5px 0}.history-panel .panel-heading{align-items:flex-end}.history-actions{justify-content:flex-start;font-size:.82rem;margin:4px 0 13px}.history-actions a{color:#8dccff;text-decoration:none}.table-scroll{overflow:auto;max-height:430px;border:1px solid var(--edge);border-radius:9px}table{border-collapse:collapse;width:100%;font-size:.79rem;white-space:nowrap}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid #202e43}th{position:sticky;top:0;background:#17253b;color:#aebed4;font-weight:650}td{max-width:300px;overflow:hidden;text-overflow:ellipsis}footer{padding:15px 2px;color:#667791;font-size:.72rem}.login-card{width:min(420px,100%);margin:8vh auto;padding:clamp(22px,5vw,34px)}.login-card>p:not(.eyebrow){line-height:1.55}.login-card form{display:grid;gap:14px;margin-top:23px}.login-card label{display:grid;gap:8px;color:#b8c6da;font-size:.83rem}.error{color:#ff9ba0;min-height:1em;margin:0;font-size:.82rem}.notice{color:#ffcf84;min-height:0}.notice:not(:empty){padding:10px 12px;background:#3e3020;border:1px solid #6b5030;border-radius:8px;margin-bottom:12px}.compact select{padding:7px 10px;min-height:36px}.history-actions #control-state{margin-left:auto}
@media(max-width:720px){.shell{padding:17px 13px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:14px 12px}.panel{padding:15px 12px}.panel-heading{align-items:flex-start;flex-direction:column}.chart-panel .panel-heading{flex-direction:column}.segmented{width:100%;justify-content:space-between}.segmented button{flex:1;padding-inline:4px}.chart-wrap{height:210px}.toolbar{gap:9px}.toolbar label{width:100%;justify-content:space-between}.toolbar label select{flex:1;max-width:65%}.toolbar .danger{margin-left:auto}.history-panel .panel-heading{flex-direction:row;align-items:center}.compact{font-size:.74rem}.compact select{max-width:110px}.history-actions{flex-wrap:wrap}.history-actions #control-state{margin-left:0;width:100%}.topbar{margin-bottom:17px}.freshness{margin-left:auto}}
.pill.paper{color:#8dccff}.pill.live{color:#ffb66d;background:#51351e}.line.gray{background:#b7c2d2}.line.green{background:#7de0a6}.line.orange{background:#f6ae6d}.chart-line.gray{stroke:#b7c2d2;stroke-dasharray:3 5}.chart-line.green{stroke:#7de0a6}.chart-line.orange{stroke:#f6ae6d}.legend{flex-wrap:wrap}.decision-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0c1728;padding:12px;border-radius:8px}.history-actions label{display:flex;align-items:center;gap:5px}.history-actions input{max-width:190px;min-width:0}dialog{border:1px solid var(--edge);border-radius:14px;background:#16243a;color:#e8edf7;width:min(430px,calc(100% - 28px));padding:22px;box-shadow:0 20px 70px #000a}dialog::backdrop{background:#000a}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}dialog p{line-height:1.6}
@media(max-width:420px){.shell{padding:12px 9px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{padding:11px}.toolbar label select{max-width:60%}.topbar{gap:8px}.topbar .quiet{white-space:nowrap}.history-panel .panel-heading{flex-wrap:wrap}.history-actions label{width:100%}.history-actions input{flex:1;max-width:none}.metric strong{font-size:1.05rem}.panel{padding:12px 9px}}
