:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--canvas);font-size:15px;--text:#0f172a;--surface:#fff;--canvas:#f8fafc;--muted-strong:#475569;--muted:#64748b;--line:#e2e8f0;--blue:#1d4ed8}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #60a5fa}button{cursor:pointer;min-height:44px;border:1px solid transparent;border-radius:8px;padding:10px 16px;font-weight:600}button:disabled{opacity:.5;cursor:not-allowed}input,select{min-height:44px;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:10px 12px;color:var(--text)}input{max-width:100%}label{display:block;font-size:14px;font-weight:600}label input,label select{display:block;margin-top:8px;width:100%}a{color:var(--blue);text-decoration:none}[hidden]{display:none!important}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:4px 0 12px}h2{font-size:18px;margin:0}h3{font-size:16px}p{line-height:1.55}.muted{color:var(--muted-strong);font-weight:400}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.4px;color:var(--muted);margin:0 0 12px}.primary{background:var(--blue);color:#fff}.secondary{background:var(--surface);border-color:var(--line);color:#334155}.subtle{background:transparent;color:inherit}.brand-mark{width:38px;height:38px;background:#2563eb;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:white;font-size:20px}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#0f172a;color:#cbd5e1;padding:32px 16px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:22px;font-weight:750;padding:0 8px}.brand-sub{display:block;font-size:10px;font-weight:400;color:#94a3b8;letter-spacing:.4px;margin-top:2px}.nav-label{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#94a3b8;margin:40px 12px 12px}nav a{display:flex;align-items:center;gap:14px;padding:14px;margin:4px 0;border-radius:8px;min-height:48px;color:#cbd5e1;font-size:14px}nav a.active{color:#fff;background:#263650}nav a:hover{background:#1e293b}.sidebar-bottom{margin-top:auto;font-size:11px;padding:16px 10px 0;border-top:1px solid #334155}.sidebar-bottom p{color:#94a3b8;line-height:1.8}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#60a5fa;margin-right:6px}.main{margin-left:224px}.topbar{height:76px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.topbar>div{display:flex;align-items:center;gap:16px}.avatar{width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;border-radius:50%;background:#e2e8f0;color:var(--muted-strong);font-weight:700}main{max-width:1600px;margin:0 auto;padding:36px 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.page-heading .muted{margin:0;font-size:14px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0 0 28px}.metric{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px #0f172a04}.metric-top{font-size:12px;color:var(--muted-strong);font-weight:600;display:flex;justify-content:space-between;align-items:center}.metric-number{font-size:32px;font-weight:700;letter-spacing:-1px;margin-top:14px}.metric-note{font-size:11px;color:var(--muted);margin-top:6px}.metric-icon{width:28px;height:28px;border-radius:8px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-size:15px}.filters{display:flex;gap:12px;margin-bottom:20px}.filters .search-label{flex:1}.filters input{width:100%;margin:0}.filters select{margin:0;min-width:150px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-heading{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.panel-heading p{font-size:12px;color:var(--muted);margin:6px 0 0}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;white-space:nowrap}th{background:var(--canvas);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;padding:14px 24px;border-bottom:1px solid var(--line)}td{padding:20px 24px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--canvas)}.cell-title{font-weight:600;color:var(--text)}.cell-sub{font-size:11px;color:var(--muted);margin-top:5px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:5px 9px;border-radius:6px;background:#f1f5f9;color:var(--muted-strong);font-weight:600}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.critical,.badge.failed{background:#fef2f2;color:#b91c1c}.badge.warning{background:#fffbeb;color:#92400e}.badge.healthy,.badge.succeeded,.badge.delivered{background:#f0fdf4;color:#166534}.badge.running{background:#eff6ff;color:#1d4ed8}.badge.offline{background:#f1f5f9;color:var(--muted-strong)}.row-action{background:transparent;border-color:#e2e8f0;padding:6px 12px;min-height:44px;font-size:12px}.notice{border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af;padding:14px 18px;border-radius:8px;margin-bottom:20px;font-size:13px}.notice.error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.updated{text-align:right;color:var(--muted);font-size:11px;margin:16px 0}.empty{text-align:center;padding:64px 24px;color:var(--muted-strong)}.empty h2{color:var(--text);margin-bottom:12px}.settings-grid{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-card{border:1px solid var(--line);padding:24px;border-radius:10px}.settings-card p{font-size:13px;color:var(--muted-strong)}.settings-card label{margin:16px 0}.settings-card button{margin-top:12px}.toggle-row{display:flex;gap:10px;align-items:center}.toggle-row input{width:20px;height:20px;min-height:20px;margin:0}.form-row{display:flex;gap:12px}.form-row>*{flex:1}dialog{border:1px solid var(--line);border-radius:14px;width:min(820px,92vw);max-height:90vh;padding:0;box-shadow:0 20px 80px #0f172a30}dialog::backdrop{background:#0f172a66}.dialog-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:16px 24px}#dialog-body{padding:24px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:6px}.detail-grid dd{font-size:13px;margin:0;overflow-wrap:anywhere}pre{padding:16px;background:#0f172a;color:#e2e8f0;border-radius:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.timeline{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.timeline span{font-size:11px;border:1px solid var(--line);padding:7px 9px;border-radius:6px}.timeline .done{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 10%,var(--login-glow,#dbeafe),transparent 55%),var(--canvas)}.login-card{width:min(440px,92vw);background:var(--surface);padding:40px;border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 50px #0f172a08}.login-card h1{margin-top:16px;font-size:28px}.login-card .brand-mark{margin-bottom:24px}.login-card label{margin:20px 0}.login-card button{width:100%;margin-top:8px}#login-error{color:#b91c1c;font-size:13px}footer{padding:16px 40px;font-size:11px;color:var(--muted)}.mobile-only{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media(max-width:1100px){main{padding:28px 24px}.topbar{padding:0 24px}.metrics{grid-template-columns:repeat(2,1fr)}td,th{padding:16px}.settings-grid{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{display:none}.sidebar.open{display:flex}.main{margin:0}.mobile-only{display:inline-block}.topbar{height:64px;padding:0 16px}.topbar #user{display:none}main{padding:24px 16px}.page-heading{gap:12px;align-items:flex-start}h1{font-size:26px}.metrics{gap:10px}.metric{padding:16px}.filters{flex-wrap:wrap}.filters .search-label{flex-basis:100%}.filters label:not(.search-label){flex:1}.filters select{min-width:0;width:100%}.detail-grid{grid-template-columns:1fr}.panel-heading{padding:18px}.settings-grid{padding:16px}.login-card{padding:28px}footer{padding:16px}}
:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--text:#e2e8f0;--surface:#172033;--canvas:#0b1220;--muted:#a6b5ca;--muted-strong:#c0cddd;--line:#34425a;--blue:#93c5fd;--login-glow:#172d50}
.primary{background:#1d4ed8;color:#fff}.secondary{color:var(--text)}
.avatar{width:44px;height:44px;min-height:44px;padding:0;background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}
.account-wrap{position:relative}.account-menu{position:absolute;right:0;top:54px;width:250px;z-index:30;padding:18px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px #0003}
.account-menu p{font-size:14px;font-weight:600;margin:0 0 16px}.account-menu button{width:100%;text-align:left;margin-top:8px}.account-menu button:hover{background:var(--canvas)}
.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.nav-icon{display:flex}.icon-overview{color:#60a5fa}.icon-projects{color:#0f766e}.icon-runs{color:#7c3aed}.icon-incidents{color:#dc2626}.icon-notifications{color:#a16207}.icon-settings{color:#64748b}.icon-success{color:#15803d}
.sidebar .icon-projects{color:#5eead4}.sidebar .icon-runs{color:#c4b5fd}.sidebar .icon-incidents{color:#fda4af}.sidebar .icon-notifications{color:#fcd34d}.sidebar .icon-settings{color:#cbd5e1}
.event-panel{margin-bottom:24px}.event-panel .panel-heading{gap:16px;flex-wrap:wrap}.event-panel select{margin:0}
.event-list{list-style:none;padding:8px 24px;margin:0;max-height:390px;overflow:auto}.event-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.event-item:last-child{border:0}.event-item>div{flex:1;min-width:0;overflow-wrap:anywhere}.event-item p{margin:5px 0 0;font-size:12px}.event-item time{font-size:11px;color:var(--muted);white-space:nowrap}.empty-event{padding:30px;text-align:center;color:var(--muted)}
.event-footer{padding:12px 24px;display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);font-size:12px}.event-footer>span{flex:1}.range-form{padding:18px 24px;display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.range-form p{flex-basis:100%;font-size:12px;margin:0}.range-form input{margin-top:6px}.form-error{color:#b91c1c}#dialog-body form label{margin:16px 0}dialog{background:var(--surface);color:var(--text)}
[data-theme="dark"] .avatar{background:#243957;color:#bfdbfe;border-color:#4d75a5}
[data-theme="dark"] .metric-icon,[data-theme="dark"] .badge.offline{background:#243146;color:#c0cddd}
[data-theme="dark"] .badge.critical,[data-theme="dark"] .badge.failed{background:#482431;color:#fecdd3}
[data-theme="dark"] .badge.warning{background:#44331c;color:#fde68a}
[data-theme="dark"] .badge.healthy,[data-theme="dark"] .badge.succeeded,[data-theme="dark"] .badge.delivered{background:#153e32;color:#a7f3d0}
[data-theme="dark"] .badge.running,[data-theme="dark"] .timeline .done{background:#203c60;color:#bfdbfe;border-color:#426d9f}
[data-theme="dark"] .notice{background:#1a3554;color:#bfdbfe;border-color:#426d9f}
[data-theme="dark"] .notice.error{background:#482431;color:#fecdd3;border-color:#7e3b50}
[data-theme="dark"] .icon-projects{color:#5eead4}[data-theme="dark"] .icon-runs{color:#c4b5fd}[data-theme="dark"] .icon-incidents{color:#fda4af}[data-theme="dark"] .icon-notifications{color:#fcd34d}[data-theme="dark"] .icon-settings{color:#cbd5e1}[data-theme="dark"] .icon-success{color:#86efac}
[data-theme="dark"] .form-error,[data-theme="dark"] #login-error{color:#fda4af}
@media(max-width:700px){.topbar{gap:8px}.topbar>div{gap:8px}#connection{font-size:10px;max-width:150px}.event-list{padding:8px 16px}.event-item{flex-wrap:wrap}.event-item time{margin-left:36px}.range-form{padding:16px}.range-form label{width:100%}.range-form button{width:100%}.event-footer{flex-wrap:wrap;padding:12px 16px}.event-footer>span{flex-basis:100%}.event-panel .panel-heading>label{width:100%}}
.chart-toolbar{padding:14px 22px;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}.chart-toolbar select{margin:0}.chart-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted-strong)}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend span:before{content:"";width:12px;height:12px;border-radius:2px;background:#68778c}.legend-critical:before{background:#b83b4e!important}.legend-warning:before{background:#cf8b28!important}.legend-recovered:before{background:#3f8d64!important;transform:rotate(45deg);width:9px!important;height:9px!important}.chart-section{padding:16px 18px 0}.chart-section+ .chart-section{border-top:1px solid var(--line)}.chart-section h3{font-size:14px;margin:0 0 12px;text-align:center}.chart-scroll{overflow-x:auto;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.state-graph{display:block;min-width:1040px;width:100%;height:auto}.plot-background{fill:var(--canvas)}.chart-grid{stroke:var(--line);stroke-width:1}.future-line{stroke:var(--line);stroke-width:2}.axis-label,.axis-date{fill:var(--muted);font-size:11px}.axis-date{font-size:10px}.lane-code{fill:var(--text);font-size:12px;font-weight:500}.lane-host{fill:var(--muted);font-size:10px}.state-bar{cursor:pointer;stroke:var(--surface);stroke-width:1}.state-critical{fill:#b83b4e}.state-warning{fill:#cf8b28}.state-unknown{fill:#68778c}.state-recovered{fill:#3f8d64}.state-bar:hover,.count-bin:hover{stroke:var(--text);stroke-width:2}.state-bar:focus-visible,.count-bin:focus-visible{outline:none;stroke:#60a5fa;stroke-width:3}.bar-label{fill:#fff;font-size:12px;font-weight:600}.bar-warning{fill:#211708}.count-bin{cursor:pointer;stroke:var(--surface);stroke-width:1}.count-low{fill:#c3b760}.count-medium{fill:#ce8835}.count-high{fill:#b83b4e}.chart-footer{padding:12px 22px;font-size:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.chart-footer>span{flex:1}.chart-footer p{margin:0;flex-basis:100%;font-size:11px}[data-theme="dark"] .state-critical,[data-theme="dark"] .count-high{fill:#af3d50}[data-theme="dark"] .state-warning{fill:#cf8b28}[data-theme="dark"] .state-unknown{fill:#526176}@media(max-width:700px){.chart-section{padding:12px 12px 0}.chart-toolbar{padding:12px}.chart-toolbar label{width:100%}.chart-footer{padding:12px}.chart-legend{gap:12px}.chart-scroll{max-height:600px;overflow:auto}}
.chart-tooltip{position:fixed;z-index:100;pointer-events:auto;max-width:min(360px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;padding:14px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 30px #0003;font-size:12px}.chart-tooltip .detail-grid{grid-template-columns:1fr 1fr;gap:10px;margin:0}.chart-tooltip dt{font-size:10px}.chart-tooltip dd{font-size:12px}
.appearance-control select{width:100px;margin:0;padding:8px}.receiver-context{margin-top:24px;padding:16px 10px;border:1px solid #34425a;border-radius:10px;color:#e2e8f0;font-size:12px;display:grid;gap:10px}.receiver-context .eyebrow{color:#94a3b8;margin:0;font-size:10px}.receiver-context .muted{color:#cbd5e1;margin:0;font-size:11px}.receiver-context a{color:#93c5fd;min-height:44px;display:flex;align-items:center}.receiver-context strong{overflow-wrap:anywhere}.receiver-context .badge{justify-self:start}.sidebar{overflow-y:auto}.sidebar-bottom{margin-top:24px}.workspace-body{padding:24px;min-width:0}.workspace-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.workspace-summary>div{flex:1;min-width:180px}.workspace-summary .eyebrow{margin:0 0 8px}.workspace-summary p{margin:8px 0 0}.workspace-summary .row-action{min-height:44px;display:inline-flex;align-items:center}.source-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin:24px 0}.source-card{padding:20px;border:1px solid var(--line);border-radius:10px;min-width:0;background:var(--canvas)}.source-card-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.source-card-heading h3{margin:0;flex:1;overflow-wrap:anywhere}.source-card-heading .badge{max-width:100%;white-space:normal}.source-card .detail-grid{margin:24px 0;gap:16px}.icon-help{color:#0e7490}.sidebar .icon-help,[data-theme="dark"] .icon-help{color:#67e8f9}@media(max-width:700px){.appearance-control select{width:84px;padding:8px 5px;font-size:12px}.source-card-grid{grid-template-columns:1fr}.workspace-body{padding:16px}.workspace-summary{gap:12px}.topbar #breadcrumb{max-width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workspace-summary>div{min-width:0;flex-basis:100%}}

/* Server details keep status, timelines and operating evidence in separate blocks. */
#server-heading{margin-bottom:20px;padding:20px}.server-status{margin:0}.details-group{padding:22px 0;border-bottom:1px solid var(--line)}.details-group:last-child{border-bottom:0}.details-group-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.details-group-heading h2{margin:0 0 16px}.details-group pre,.help-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:13px}.runtime-profile{margin-top:14px}.runtime-profile summary,.help-command summary,.dst-options summary{cursor:pointer;padding:12px 0}.database-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;padding-left:22px;overflow-wrap:anywhere}.performance-chart-scroll{width:100%;overflow:auto}.performance-graph{width:100%;min-width:640px;height:200px}.performance-line{stroke:var(--accent,#726bff);stroke-width:2}.performance-point{fill:var(--accent,#726bff);stroke:var(--panel,#fff);stroke-width:1}.performance-point:focus{outline:none;stroke:#ffb454;stroke-width:3}.help-body>input{width:100%;margin:16px 0}.help-topic,.help-command{padding:16px 0;border-bottom:1px solid var(--line)}.help-command summary{display:flex;justify-content:space-between;gap:14px}.command-example{display:flex;align-items:center;gap:16px}.command-example pre{flex:1}.detail-grid dd{overflow-wrap:anywhere}.dst-options{max-width:260px}.dst-options label{display:block;margin:8px 0}@media(max-width:600px){.details-group{padding:16px 0}.command-example,.help-command summary{display:block}.server-status{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}}
.bar-label{pointer-events:none}

.receiver-host-values{display:grid;gap:9px;margin:14px 0}.receiver-host-row{display:grid;gap:3px;font-size:11px}.receiver-host-row span{color:var(--muted)}.receiver-host-row strong{font-size:11px;overflow-wrap:anywhere}.host-cpu{border-left:2px solid #8b7cf6;padding-left:7px}.host-memory{border-left:2px solid #38bdf8;padding-left:7px}.host-network{border-left:2px solid #2dd4bf;padding-left:7px}.host-disk{border-left:2px solid #fbbf24;padding-left:7px}#receiver-context select{width:100%;margin-bottom:12px}

.notification-channel{padding:18px 0;border-top:1px solid var(--line)}.notification-channel:first-of-type{margin-top:16px}.notification-channel p{overflow-wrap:anywhere}.notification-form label{margin:16px 0}.notification-form .checkbox-label{display:flex;gap:12px;align-items:center}.notification-form .checkbox-label input{width:20px;min-height:20px;margin:0}.notification-form input,.notification-form select{width:100%}.notification-form .form-error{color:var(--danger,#dc2626)}.metric:last-child .metric-icon .icon{color:var(--success,#15803d)}@media(max-width:1100px){.metrics .metric:last-child{grid-column:1/-1}}

.notification-channel button{margin-right:8px;margin-top:8px}

.module-nav,.timeline-filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;align-items:center}.module-nav[hidden]{display:none}.module-nav a{padding:10px 14px;border-radius:8px;color:var(--text);text-decoration:none}.module-nav a.active{background:var(--surface);outline:1px solid currentColor}.timeline-filters input:not([type=checkbox]){max-width:190px}.timeline-filters .checkbox-label{display:flex;gap:6px;align-items:center}.event-item button{white-space:nowrap}.event-list{max-height:640px;overflow:auto}

.icon-monitoring{color:#38bdf8}.icon-activity{color:#a78bfa}.module-nav a:focus-visible{outline:2px solid currentColor}.timeline-filters{padding:10px 0;border-bottom:1px solid var(--line)}

.timeline-filters{padding:16px 22px}.timeline-filters label{margin:0}.module-nav a.active{background:var(--surface)}

.topbar .project-scope{display:block;position:relative;min-width:180px;max-width:260px;flex:1;margin:0 16px}.project-scope label{font-size:11px;color:var(--muted);margin-bottom:3px}.project-scope input{width:100%;min-height:36px;padding:6px 10px}#project-scope-options{position:absolute;top:100%;left:0;right:0;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px #0003;max-height:320px;overflow:auto;padding:4px}#project-scope-options [role=option]{cursor:pointer;padding:10px;border-radius:5px;display:flex;flex-direction:column;min-height:44px}#project-scope-options [role=option]:hover,#project-scope-options .active{background:var(--canvas);outline:2px solid var(--blue);outline-offset:-2px}#project-scope-options p{padding:8px}.scope-block{padding:12px;border:1px solid currentColor;border-radius:8px}@media(max-width:700px){.topbar:has(.project-scope){height:auto;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:6px}.topbar .project-scope{order:3;flex-basis:100%;max-width:none;margin:0}.project-scope input{min-height:44px}}

/* Phase 1 shell: legacy layout remains controlled by the existing flag. */
.unified-shell .sidebar{overflow-y:auto;padding-top:24px}
.unified-shell nav .nav-label{margin:20px 12px 6px}
.unified-shell nav a{min-height:44px;padding:10px 14px}
.unified-shell .sidebar-bottom{margin-top:24px}
.unified-shell #breadcrumb{min-width:0;max-width:none;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;white-space:normal}
.unified-shell .topbar{height:auto;min-height:76px;gap:12px;padding-top:8px;padding-bottom:8px}
.unified-shell .topbar>div:not(.project-scope){flex-shrink:0}
.unified-shell .scope-selected{font-size:12px;font-weight:600;color:var(--muted-strong)}
.unified-shell .server-details .detail-grid dd{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
@media(max-width:1100px){.unified-shell .topbar #user{display:none}}
@media(max-width:700px){.unified-shell .topbar{gap:8px}.unified-shell #breadcrumb{flex:1;flex-basis:calc(100% - 60px)}.unified-shell .topbar>div:not(.project-scope){justify-content:flex-end;width:100%;gap:12px}.unified-shell #connection{max-width:none;font-size:11px}.unified-shell .topbar .project-scope{order:3}}

/* Operational writes retain a visible connection/authorization reason in both shells. */
button[data-write-project]:disabled,button[data-write-account]:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.35)}
.write-gate-reason{display:block;font-size:.8rem;color:var(--muted);line-height:1.4;max-width:100%;overflow-wrap:anywhere;margin:4px 0 10px}
.write-gate-reason[hidden]{display:none}
/* Overview-only receiver safeguard; age and reasons remain readable at 390px. */
.receiver-attention{margin-bottom:20px}
.receiver-attention .panel-heading{gap:12px;flex-wrap:wrap}
.receiver-attention-list{list-style:none;margin:0;padding:0}
.receiver-attention-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr);gap:16px;padding:12px 24px;border-top:1px solid var(--line)}
.receiver-attention-row a{font-weight:600;overflow-wrap:anywhere}
.receiver-attention-row p{margin:0;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.receiver-attention-age{font-size:12px;margin-top:4px!important}
.receiver-attention>p{padding:0 24px}
.receiver-attention-cache{color:var(--muted-strong);white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.receiver-attention-row{grid-template-columns:minmax(0,1fr);gap:5px}.receiver-attention .panel-heading{align-items:flex-start}}
/* Phase 1 polish uses existing scroll containers; the cue also remains on wide tables. */
.unified-shell .table-scroll{overflow-x:auto;max-width:100%;min-width:0;position:relative}
.unified-shell .table-scroll::before{content:'↔ Scroll horizontally for all columns';display:block;position:sticky;left:0;width:100%;padding:8px 16px;background:var(--canvas);color:var(--muted-strong);font-size:12px;white-space:normal;border-bottom:1px solid var(--line)}
.unified-shell .project-scope input{min-height:44px}
.unified-shell .module-nav a.active{color:var(--text)}
.unified-shell .receiver-attention a{display:inline-flex;align-items:center;min-height:44px}
.unified-shell .receiver-severity-group{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:0 12px 6px 0;max-width:100%}
.unified-shell .receiver-severity-detail{font-size:12px;overflow-wrap:anywhere}
.unified-shell .receiver-attention-reasons .badge{white-space:normal}
@media(min-width:701px) and (max-width:1100px){.unified-shell .topbar{flex-wrap:wrap}.unified-shell #breadcrumb{flex-basis:100%}.unified-shell .topbar>div:not(.project-scope){width:100%;justify-content:flex-end}.unified-shell .topbar .project-scope{order:3;flex-basis:100%;max-width:none;margin:0}}
.unified-shell .badge.receiver-offline{background:#991b1b;color:#fff}
/* Phase 2 owner panels: bounded triage preserves full evidence via disclosure. */
.overview-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;padding-top:24px}
.overview-layout>div,.overview-layout>nav,.overview-layout>p{grid-column:1/-1}
.overview-layout .page-heading{order:-10;margin-bottom:0}
.overview-layout .page-heading .eyebrow{margin-bottom:6px}
.overview-layout .page-heading h1{font-size:26px;margin:2px 0 6px}
.overview-layout .page-heading #page-subtitle{font-size:13px}
.overview-layout #panel{display:contents}
.overview-owned{display:contents}
.overview-layout [data-panel="coverage"]{order:-8;grid-column:1/-1}
.overview-layout [data-panel="critical-incidents"]{order:-7;grid-column:1/-1}
.overview-layout [data-panel="failing-backups"]{order:-6}
.overview-layout [data-panel="receiver-attention"],.overview-layout [data-panel="storage-risk"]{order:-6}
.overview-layout [data-panel="evidence-basis"]{order:-5;grid-column:1/-1}
.overview-layout [data-panel="evidence-basis"].overview-cached{order:-9;border-color:var(--muted)}
.overview-layout #event-panel{order:1;margin:0}
.overview-layout #updated{order:3}
.overview-lower{order:1;display:flex;flex-direction:column;gap:12px;align-self:start}
.overview-layout [data-panel="running-workloads"]{order:1}
.overview-layout [data-panel="project-coverage"]{order:2}
.overview-layout .overview-section{min-width:0}
.overview-layout .panel-heading{padding:4px 14px;gap:8px;align-items:center}
.overview-layout .panel-heading h2{font-size:15px;line-height:22px}
.overview-layout .panel-heading h2 small{font-size:12px}
.overview-layout .panel-heading a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;font-size:12px;flex-shrink:0}
.overview-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 14px;border-top:1px solid var(--line);font-size:12px;min-height:52px;overflow-wrap:anywhere}
.overview-row>div:first-child{min-width:0}
.overview-row p{font-size:11px;margin:1px 0;line-height:15px}
.overview-row .badge{font-size:10px;padding:2px 5px;margin-left:4px}
.overview-row a{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
.overview-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0;max-width:47%}
.overview-row-actions button{font-size:11px;padding:4px 8px}
.overview-incident-note{color:var(--muted)}
.overview-more summary,.overview-basis summary,.coverage-detail summary,.receiver-unavailable-group summary{cursor:pointer;min-height:44px;padding:8px 14px;display:flex;align-items:center;font-size:12px;color:var(--blue);outline-offset:-3px}
.overview-more summary:focus-visible,.overview-basis summary:focus-visible,.coverage-detail summary:focus-visible,.receiver-unavailable-group summary:focus-visible{outline:3px solid #60a5fa}
.overview-more,.coverage-detail{border-top:1px solid var(--line)}
.overview-basis p,.coverage-detail p{font-size:12px;padding:0 14px}
.overview-basis:has(summary:only-child){border:0}
.overview-basis summary{color:var(--muted-strong)}
.overview-layout .overview-basis summary{min-height:44px;padding:6px 14px}
.overview-empty,.overview-cap{padding:0 14px;font-size:12px;line-height:1.4;margin:8px 0}
.coverage-tile{padding:10px 14px;font-size:13px}
.coverage-counts{display:flex;gap:24px;margin:8px 0}
.coverage-counts>div{display:flex;flex-direction:column}
.coverage-counts span{font-size:12px}
.coverage-counts b{font-size:22px;font-variant-numeric:tabular-nums}
.coverage-tile small{font-size:11px}
.overview-layout [data-panel="coverage"]{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.overview-layout [data-panel="coverage"]>.panel-heading{display:none}
.overview-layout [data-panel="coverage"]>.coverage-tile{grid-column:1;grid-row:1}
.overview-layout [data-panel="coverage"]>.coverage-unconnected{grid-column:2;grid-row:1;flex-direction:column;gap:12px;border-top:0;border-left:1px solid var(--line);padding:14px}
.overview-layout [data-panel="coverage"]>.coverage-detail{grid-column:1/-1}
.overview-layout [data-panel="critical-incidents"]:not(:has(.overview-row)){display:flex;align-items:center}
.overview-layout [data-panel="critical-incidents"]:not(:has(.overview-row)) .panel-heading{border:0;flex:1}
.overview-layout [data-panel="critical-incidents"]:not(:has(.overview-row)) .overview-empty{margin-right:14px}
.coverage-unconnected{display:flex;gap:20px;padding:8px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted-strong);flex-wrap:wrap}
.project-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 14px;font-size:12px}
.project-summary-grid a,.project-summary-grid small{display:block;overflow-wrap:anywhere}
.project-summary-grid a{min-height:32px;display:flex;align-items:center;font-weight:600}
.receiver-unavailable-group{display:block;padding:0}
.receiver-unavailable-group summary{display:block;line-height:1.4;padding:10px 14px;font-weight:600;color:var(--text)}
.receiver-unavailable-group summary small{display:block;font-weight:400;font-size:11px;margin-top:4px}
.receiver-unavailable-group ul{list-style:none;margin:0;padding:0 14px 10px}
.overview-layout .chart-section{padding:12px 14px}
@media(max-width:800px){
 .unified-shell:has(.overview-layout) .sidebar{display:none}.unified-shell:has(.overview-layout) .main{margin-left:0}
 .unified-shell:has(.overview-layout) .sidebar.open{display:flex}
 .unified-shell:has(.overview-layout) .mobile-only{display:inline-block}
 .unified-shell:has(.overview-layout) .topbar{flex-wrap:wrap;padding:6px 16px;gap:4px;min-height:0}
 .unified-shell:has(.overview-layout) #breadcrumb{display:none}
 .unified-shell:has(.overview-layout) .topbar>div:not(.project-scope){width:auto;margin-left:auto;gap:8px}
 .unified-shell:has(.overview-layout) .topbar .project-scope{order:3;flex-basis:100%;max-width:none;margin:0}
 .unified-shell:has(.overview-layout) .project-scope label{display:none}
 .unified-shell:has(.overview-layout) .project-scope input{min-height:44px}
 .overview-layout{display:flex;flex-direction:column;padding:14px 16px;gap:6px}
 .overview-lower{display:contents}
 .overview-layout .page-heading{margin:0 0 4px}.overview-layout .page-heading .eyebrow,.overview-layout #page-subtitle{display:none}
 .overview-layout h1{font-size:24px;margin:0}.overview-layout #refresh{padding:4px 8px;min-height:36px;font-size:12px}
 .overview-layout [data-panel="critical-incidents"]{order:-8}
 .overview-layout [data-panel="failing-backups"]{order:-7}
 .overview-layout [data-panel="receiver-attention"],.overview-layout [data-panel="storage-risk"]{order:-6}
 .overview-layout [data-panel="coverage"]{order:-5}
 .overview-layout [data-panel="evidence-basis"]{order:-4}
 .overview-layout [data-panel="evidence-basis"].overview-cached{order:-9}
 .overview-layout .panel-heading{padding:4px 10px;min-height:34px}.overview-layout .panel-heading a{min-height:44px;min-width:44px;font-size:11px}
 .overview-layout .panel-heading h2{font-size:14px;line-height:20px}
 .overview-row{padding:4px 10px;min-height:48px;gap:6px;font-size:12px}
 .overview-row p{font-size:11px;line-height:15px}.overview-row strong{font-size:12px}
 .overview-row .badge{font-size:10px;padding:2px 5px;margin-left:4px}
 .overview-row-actions{max-width:41%;gap:0}.overview-row-actions:has(button)>a{display:none}
 .overview-row-actions button{font-size:10px;padding:4px 6px;line-height:14px;min-height:44px}
 .overview-row>a{font-size:10px;max-width:80px;flex-shrink:0}
 .overview-layout .receiver-attention-row{grid-template-columns:unset;display:flex}
 .overview-row .receiver-attention-age{display:none}
 .overview-row .receiver-operational-age{display:block;line-height:12px}
 .overview-preview .overview-reason,.overview-preview .overview-incident-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .overview-layout .receiver-capacity-note{font-size:10px;margin:4px 0}
 .overview-more summary,.coverage-detail summary{min-height:44px;padding:6px 10px;font-size:11px}
 .coverage-tile{padding:6px 10px;font-size:12px}.coverage-counts{gap:16px;margin:4px 0}.coverage-counts b{font-size:18px;line-height:24px}.coverage-counts span{font-size:11px}
 .coverage-unconnected{padding:6px 10px;gap:8px;font-size:10px}
 .overview-layout [data-panel="coverage"]{display:block}
 .overview-layout [data-panel="coverage"]>.coverage-unconnected{flex-direction:row;gap:8px;border-left:0;border-top:1px solid var(--line);padding:6px 10px}
 .overview-layout [data-panel="critical-incidents"]:not(:has(.overview-row)){display:block}
 .overview-layout [data-panel="coverage"]>.panel-heading{display:none}
 .receiver-unavailable-group summary{padding:8px 10px}
 .overview-layout .project-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Sources has one inventory and local field owners; charts retain existing controls. */
.source-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 16px}
.source-chips button,.source-tabs button{background:var(--canvas);color:var(--text);border:1px solid var(--line)}
.source-chips button[aria-pressed="true"],.source-tabs button[aria-selected="true"]{background:var(--surface);border-color:var(--blue);color:var(--blue)}
.source-filters{display:flex;align-items:center;gap:12px;padding:0 20px 8px}
.source-health-filter{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}
.source-health-filter select{min-height:44px;width:128px;font-size:12px}
.source-filters .source-chips{align-items:center;padding:0;font-size:12px}
@media(max-width:800px){.unified-shell .source-filters{gap:8px;padding:0 12px 8px}.unified-shell .source-health-filter{gap:4px;font-size:11px}.unified-shell .source-health-filter select{width:110px;padding:6px;font-size:11px}.unified-shell .source-filters .source-chips{padding:0;gap:4px;font-size:11px}.unified-shell .source-filters .source-chips button{min-height:44px}}
.source-inventory .source-basis{padding:0 20px;font-size:12px}
.source-inventory td{white-space:normal;min-width:145px;max-width:320px;overflow-wrap:anywhere}
.source-inventory td:first-child{min-width:195px}.source-inventory th{position:sticky;top:0}
.source-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding-bottom:14px}
.source-tabs button{padding:8px 12px;font-size:13px}
.source-tab-content .details-group:first-child{padding-top:18px}
.source-actions{display:flex;flex-wrap:wrap;gap:8px}
.source-outcomes .detail-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:12px 0 16px}
.source-identity>.source-basis{margin:0;font-size:12px}
.source-failure{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid var(--line);border-left:4px solid #b91c1c;border-radius:8px;padding:10px 14px;margin-top:14px;background:var(--canvas);font-size:13px}
.source-failure p{flex:1;min-width:180px;margin:0}.source-failure button{margin-left:auto}
.source-timeline-toggle{display:block;width:100%;text-align:left;background:var(--surface);color:var(--text);border-radius:0;padding:12px 20px;font-size:13px}
.source-timeline-toggle[aria-expanded="true"]{border-bottom:1px solid var(--line)}
.source-draft-choice{padding:12px;border:1px solid var(--line);border-radius:8px}.source-draft-choice button{margin-right:8px}
.source-layout .page-heading{margin-bottom:18px}.source-layout #server-heading{margin-bottom:12px;padding:16px 20px}.source-layout #event-panel{margin-bottom:12px}
@media(max-width:800px){.source-outcomes .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-layout .server-details{padding:16px}.source-tabs button{flex:1 0 130px}.source-failure{display:block}.source-failure p{margin:8px 0}.source-failure button{margin:0}.source-inventory .source-basis{overflow-wrap:anywhere}}

/* Only new Task3 navigation anchors receive the same minimum target as controls. */
.source-navigation-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;max-width:100%;padding:8px 0;white-space:normal;overflow-wrap:anywhere}

/* Mock parity: one compact shell and title/tab rhythm for every owner page. */
.unified-shell{--canvas:#f4f6f8;--surface:#fff;--line:#d8e0e9;--text:#172033;--muted:#475569;--muted-strong:#475569;font-size:14px;background:var(--canvas)}
[data-theme="dark"] .unified-shell{--canvas:#0f172a;--surface:#172033;--line:#334155;--text:#f1f5f9;--muted:#cbd5e1;--muted-strong:#cbd5e1;--blue:#93c5fd}
.unified-shell .sidebar{width:196px;padding:22px 14px;background:var(--surface);color:var(--muted);border-right:1px solid var(--line)}
.unified-shell .brand{font-size:18px;padding:0 10px;gap:8px;color:var(--text)}
.unified-shell .brand-mark{width:28px;height:28px;font-size:16px;border-radius:6px}
.unified-shell .sidebar nav a{font-size:13px;min-height:44px;padding:10px 12px;gap:10px;color:var(--muted)}
.unified-shell .sidebar nav a.active{background:var(--canvas);color:var(--blue)}
.unified-shell .sidebar nav a:hover{background:var(--canvas)}
.unified-shell .sidebar .nav-label{margin:22px 12px 6px;color:var(--muted)}
.unified-shell .sidebar-bottom{margin-top:auto;color:var(--muted);border-color:var(--line)}
.unified-shell .sidebar-bottom p{color:var(--muted)}
.unified-shell .main{margin-left:196px}
.unified-shell .topbar{height:70px;min-height:70px;padding:10px 24px;gap:12px}
.unified-shell #breadcrumb,.unified-shell #user{display:none}
.unified-shell .topbar .project-scope{margin:0;max-width:320px}
.unified-shell main{padding:20px 24px}
.unified-shell .page-heading{margin-bottom:12px}
.unified-shell .page-heading .eyebrow{display:none}
.unified-shell .page-heading h1{font-size:24px;line-height:32px;margin:0 0 4px;letter-spacing:-.4px}
.unified-shell .page-heading #page-subtitle{font-size:12px}
.unified-shell .panel{border-radius:8px}
.unified-shell .panel-heading{padding:12px 16px;gap:12px}
.unified-shell h2{font-size:16px;line-height:24px}
.unified-shell .module-nav{order:-9;flex-wrap:nowrap;gap:8px;overflow-x:auto;margin:0 0 12px;border-bottom:1px solid var(--line);min-width:0}
.unified-shell .module-nav a{min-height:44px;padding:8px 12px;margin:0;white-space:nowrap;border-radius:0;border-bottom:2px solid transparent;font-size:13px}
.unified-shell .module-nav a.active{outline:0;background:transparent;border-color:var(--blue);color:var(--blue)}
.unified-shell th,.unified-shell td{padding:8px 16px}
.unified-shell .filters{margin-bottom:12px}
.unified-shell .empty{padding:24px 16px}
.unified-shell .source-layout{display:flex;flex-direction:column;gap:12px}
.unified-shell .source-layout .page-heading,.unified-shell .source-layout #server-heading,.unified-shell .source-layout #event-panel{margin:0}
.unified-shell .source-layout .page-heading{order:-10}
.unified-shell .source-layout #server-heading{order:-8;padding:0;border:0;background:transparent;overflow:visible}
.unified-shell .source-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
.unified-shell .source-identity>.source-actions{grid-column:1;grid-row:1}
.unified-shell .source-identity>.source-status-details{grid-column:2;grid-row:1;max-width:460px}
.unified-shell .source-identity>.source-failure{grid-column:1/-1;grid-row:2;margin:0;padding:0 10px;min-height:44px}
.unified-shell .source-layout #panel{order:-6}
.unified-shell .source-layout #event-panel{order:-7}
.unified-shell .source-layout .server-details{padding:0 16px 16px}
.unified-shell .source-tabs{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:0;margin:0 -16px;border-bottom:1px solid var(--line)}
.unified-shell .source-tabs button{flex:none;white-space:nowrap;font-size:13px;padding:8px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;font-weight:500}
.unified-shell .source-tabs button[aria-selected="true"]{border-color:var(--blue);background:var(--canvas);color:var(--blue);font-weight:650}
.unified-shell .source-tabs button:focus-visible{outline-offset:-3px}
.unified-shell .source-tab-content .details-group{padding:16px 0}
.unified-shell .details-group-heading h2{margin-bottom:8px}
.unified-shell .source-tab-content .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:8px 0 12px}
.unified-shell .source-tab-content dd{font-weight:600}
.unified-shell .source-summary-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;margin-top:16px}
.unified-shell .source-summary-grid>.details-group{border:1px solid var(--line);border-radius:8px;padding:12px 16px}
.unified-shell .source-summary-grid .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:0}
.unified-shell .source-secondary-actions summary{color:var(--blue);cursor:pointer;display:flex;align-items:center;min-height:44px;padding:0 8px;font-size:12px}
.unified-shell .source-status-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--blue);font-size:12px}
.unified-shell .source-breadcrumb{font-size:12px;margin:0 0 4px;overflow-wrap:anywhere}
.unified-shell .entity-breadcrumb{font-size:12px;margin:0 0 4px;overflow-wrap:anywhere;white-space:normal;text-overflow:clip}
.unified-shell .page-heading:has(.entity-breadcrumb:not([hidden]))>div{min-width:0;flex:1}
.unified-shell .page-heading:has(.entity-breadcrumb:not([hidden])) h1{overflow-wrap:anywhere}
.unified-shell .failure-provenance{padding:4px 14px;font-size:11px}
.unified-shell .overview-critical>summary{cursor:pointer;min-height:44px;padding:8px 10px;font-size:12px;font-weight:600;color:var(--text)}
.unified-shell .overview-critical>summary h2{display:inline;font:inherit}
.unified-shell .source-inventory-evidence>summary,.unified-shell .retained-duration-reports>summary,.unified-shell .performance-samples>summary{cursor:pointer;min-height:44px;padding:8px 16px;display:flex;align-items:center;color:var(--blue);font-size:12px}
.unified-shell .source-inventory-table>.panel-heading h2,.unified-shell .source-inventory-table>.panel-heading>span{display:none}
.unified-shell .source-inventory-table>.panel-heading{padding:8px 16px}
.unified-shell .source-inventory-table>.panel-heading p{margin:0}
.unified-shell .source-mobile-success{display:none}
.unified-shell .retained-duration-reports>p,.unified-shell .performance-samples>p{font-size:12px}
.unified-shell .source-secondary-actions[open]{flex-basis:100%}
.unified-shell .source-secondary-actions[open]>.source-actions{padding-top:4px}
.unified-shell .source-failure{margin-top:10px;padding:6px 10px}
.unified-shell .source-outcomes .detail-grid{margin:8px 0 12px}
.unified-shell .overview-layout{gap:12px}
.unified-shell .overview-layout .overview-section,.unified-shell .overview-layout #event-panel{align-self:start;width:100%}
.unified-shell .overview-layout .panel-heading{padding:4px 14px}
.unified-shell .overview-layout .overview-row{min-height:52px}
.unified-shell .overview-layout [data-panel="critical-incidents"]{order:-5}
.unified-shell .overview-layout [data-panel="evidence-basis"]{order:-4}
.unified-shell .overview-layout [data-panel="evidence-basis"].overview-cached{order:-9}
@media(max-width:800px){
 .unified-shell .sidebar{display:none}.unified-shell .sidebar.open{display:flex}.unified-shell .main{margin-left:0}.unified-shell .mobile-only{display:inline-block}
 .unified-shell .topbar{height:auto;min-height:104px;flex-wrap:wrap;padding:6px 16px;gap:4px}
 .unified-shell .topbar>div:not(.project-scope){width:auto;margin-left:auto;gap:8px}
 .unified-shell .topbar .project-scope{order:3;flex-basis:100%;max-width:none}.unified-shell .project-scope label{display:none}
 .unified-shell main{padding:14px 16px}.unified-shell .page-heading #page-subtitle{display:none}.unified-shell .page-heading h1{font-size:22px;line-height:28px}
 .unified-shell .overview-layout{gap:6px}.unified-shell .overview-layout [data-panel="failing-backups"]{order:-8}.unified-shell .overview-layout [data-panel="receiver-attention"],.unified-shell .overview-layout [data-panel="storage-risk"]{order:-7}.unified-shell .overview-layout [data-panel="coverage"]{order:-6}
 .unified-shell .overview-layout [data-panel="critical-incidents"]{order:-9}
 .unified-shell .overview-layout .panel-heading{padding:0 10px}
 .unified-shell .overview-layout .overview-row{padding:4px 10px;min-height:44px}.unified-shell .overview-row-actions button{font-size:11px;padding:4px 8px}
 .unified-shell .overview-layout [data-panel="coverage"]>.coverage-unconnected{font-size:10px;gap:8px;padding:4px 10px}
 .unified-shell .source-outcomes .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0}
 .unified-shell .source-identity{grid-template-columns:minmax(0,1fr);gap:4px}.unified-shell .source-identity>.source-status-details{grid-column:1;grid-row:2}.unified-shell .source-identity>.source-failure{grid-row:3;padding:4px 10px}
 .unified-shell .source-outcomes dt{font-size:10px;margin-bottom:3px}.unified-shell .source-outcomes dd{font-size:12px}
 .unified-shell .source-actions{gap:6px}.unified-shell .source-actions button{font-size:12px;padding:6px 10px}.unified-shell .source-secondary-actions summary{padding:0;font-size:11px}
 .unified-shell .source-failure{display:flex;gap:4px 8px;font-size:12px}.unified-shell .source-failure p{margin:0;min-width:140px}.unified-shell .source-failure button{margin:0;font-size:12px}
 .unified-shell .source-tab-content .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .unified-shell .source-summary-grid{grid-template-columns:1fr;gap:12px}
 .unified-shell .source-chips{flex-wrap:nowrap;gap:6px;padding:0 12px 8px}.unified-shell .source-chips button{font-size:11px;padding:6px 8px;white-space:nowrap}
 .unified-shell .source-inventory td:first-child{min-width:178px}.unified-shell .source-mobile-success{display:block;font-size:11px;line-height:16px;margin-top:4px}
}

/* Phase 2 Channels and revisioned private editor: same shell tokens. */
.channel-paging{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
#panel [data-channel-row] td{max-width:310px;overflow-wrap:anywhere;vertical-align:top}
#panel [data-channel-row] details p{font-size:12px;max-width:240px}
.notification-form{display:grid;gap:12px;min-width:0}
.notification-form label{display:grid;gap:6px;min-width:0}
.notification-form input,.notification-form select{max-width:100%;min-height:44px;width:100%;box-sizing:border-box}
.notification-form input[type=checkbox]{width:20px;min-height:20px}
.notification-form button,#panel [data-channel-row] button,.channel-paging button{min-height:44px}
#panel>.settings-card{margin:16px 0;min-width:0}
#panel .settings-card pre{max-width:100%;overflow:auto}
@media(max-width:800px){#panel [data-channel-row] td{min-width:130px}.notification-form{gap:14px}.channel-paging{align-items:flex-start}}

.channel-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:14px 16px;border-bottom:1px solid var(--line)}
.channel-summary dt{font-size:12px;color:var(--muted)}.channel-summary dd{font-size:24px;font-weight:700;margin:4px 0 0;font-variant-numeric:tabular-nums}.channel-summary .failed dd{color:var(--danger,#b91c1c)}.channel-summary .warning dd{color:var(--warning,#9a3412)}
.channel-evidence,.channel-secondary{padding:8px 16px;font-size:12px}.channel-evidence summary,.channel-secondary>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px}.channel-evidence summary:before,.channel-secondary>summary:before{content:'›'}.channel-evidence[open] summary:before,.channel-secondary[open]>summary:before{content:'⌄'}
.channel-inventory table{white-space:normal}.channel-status{display:inline-block;font-size:12px;font-weight:600;line-height:18px}.channel-status.healthy{color:var(--success,#166534)}.channel-status.failed{color:var(--danger,#b91c1c)}.channel-status.warning{color:var(--warning,#9a3412)}.channel-status.unknown{color:var(--muted)}
#panel .channel-inventory td{padding:12px 16px}.channel-inventory td details{margin-top:6px;font-size:11px}.channel-inventory td details summary{cursor:pointer;min-height:30px;white-space:normal}.channel-inventory .panel-heading{padding:12px 16px}
#dialog-body .notification-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}#dialog-body .notification-form>p,.notification-form .channel-enabled,.notification-form .channel-wide,.notification-form .channel-editor-actions{grid-column:1/-1}#dialog-body .notification-form label{margin:0}.notification-form .channel-enabled{display:flex;align-items:center;flex-direction:row-reverse;justify-content:flex-end;min-height:44px}.notification-form .channel-enabled input{margin:0}
.channel-editor-actions{position:sticky;bottom:-24px;background:var(--surface);border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;margin-top:4px;z-index:2}.channel-editor-actions .primary{flex:1}
@media(max-width:800px){
 .channel-summary{gap:8px;padding:10px 12px}.channel-summary dt{font-size:10px}.channel-summary dd{font-size:20px}.channel-evidence,.channel-secondary{padding:4px 12px}
 .channel-inventory .table-scroll{overflow:visible}.channel-inventory table,.channel-inventory tbody{display:block;width:100%}.channel-inventory thead{display:none}.channel-inventory tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;border-bottom:1px solid var(--line);padding:10px 12px;gap:6px 12px}
 #panel .channel-inventory [data-channel-row] td{display:block;border:0;padding:0;min-width:0;max-width:none}.channel-inventory td:first-child{grid-column:1/-1;padding-right:62px!important}.channel-inventory td:nth-child(2){grid-column:1/-1;font-size:12px;color:var(--muted)}.channel-inventory td:nth-child(5){grid-column:1/-1}.channel-inventory td:last-child{position:absolute;right:12px;top:10px}.channel-inventory td[data-label]:before{content:attr(data-label) ' · ';font-size:11px;color:var(--muted)}.channel-inventory td details summary{min-height:36px}.channel-inventory .cell-sub{display:none}.channel-inventory .panel-heading{padding:10px 12px}
 #dialog-body .notification-form{grid-template-columns:minmax(0,1fr);gap:10px}#dialog-body:has(.notification-form){padding:16px}.channel-editor-actions{bottom:-16px;gap:6px;padding:10px 0}.channel-editor-actions .primary{flex-basis:100%}
}

/* Module navigation uses the current theme on hover, matching its surface. */
.unified-shell .module-nav a:hover{background:var(--canvas);color:var(--text)}

.channel-editor-secondary{font-size:12px}.channel-editor-secondary>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px}.channel-editor-secondary>summary:before{content:"+"}.channel-editor-secondary[open]>summary:before{content:"-"}.channel-editor-secondary>div{display:flex;gap:8px;flex-wrap:wrap}.channel-scope-note{padding:8px 16px;font-size:11px}
@media(max-width:800px){.unified-shell .channel-inventory .table-scroll:before{display:none}.channel-editor-secondary{width:100%}.channel-scope-note{padding:8px 12px}}

.channel-summary,.channel-inventory{--channel-danger:#b91c1c;--channel-warning:#9a3412;--channel-success:#166534}
[data-theme=dark] .channel-summary,[data-theme=dark] .channel-inventory{--channel-danger:#fca5a5;--channel-warning:#fdba74;--channel-success:#86efac}
.channel-summary .failed dd,.channel-status.failed{color:var(--channel-danger)}.channel-summary .warning dd,.channel-status.warning{color:var(--channel-warning)}.channel-status.healthy{color:var(--channel-success)}
@media(min-width:801px){.channel-summary{display:flex;gap:32px;align-items:center;padding:12px 16px}.channel-summary>div{display:flex;align-items:center;gap:10px}.channel-summary dd{font-size:20px;margin:0}.unified-shell .channel-inventory .table-scroll:before{display:none}#panel .channel-inventory td{padding:4px 16px;vertical-align:middle}.channel-inventory td details{margin:0}.channel-inventory td details summary{min-height:24px}}

.channel-retained-failure{display:block;font-size:11px;color:var(--channel-warning)}
.unified-shell .source-inventory-table .table-scroll:before{box-sizing:border-box}.unified-shell .source-inventory-table .table-scroll[data-overflow=false]:before{display:none}
#detail-dialog[open]:has(.notification-form){overflow:hidden;max-height:90dvh;display:flex;flex-direction:column}#detail-dialog:has(.notification-form) .dialog-header{flex-shrink:0}
#dialog-body:has(.notification-form){padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#dialog-body .notification-form{display:flex;flex-direction:column;gap:0;max-height:calc(90dvh - 100px);width:100%;min-height:0}
.channel-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:20px 24px;min-height:0;overflow:auto;scroll-padding:16px}
.channel-editor-fields>p{grid-column:1/-1;margin:0}.channel-editor-fields .form-error:empty{display:none}.channel-editor-actions{position:static;flex-shrink:0;margin:0;padding:12px 24px}
.channel-editor-fields input,.channel-editor-fields select{margin-top:0}
@media(max-width:800px){.channel-editor-fields{grid-template-columns:minmax(0,1fr);padding:16px;gap:10px}.channel-editor-actions{padding:10px 16px}#dialog-body .notification-form{gap:0}}

#dialog-body:has(.notification-form)>.source-draft-choice{flex-shrink:0;max-height:24dvh;overflow:auto}
