/* Shared, bounded shell for every console route. */
:root{--bg:#f7f7f5;--text:#35332f;--muted:#8b8780;--line:#e5e3df;--primary:#d8775c;--primary-soft:#faf0eb;--radius:5px;--shadow:none;--page-padding:18px;font:12px/1.55 "Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
body{background:var(--bg)}
#dashboard{display:block;width:calc(100% - 40px);max-width:1200px;min-height:0;margin:24px auto;background:#fff;border:1px solid var(--line);border-radius:4px}
#sidebar.sidebar{position:relative;inset:auto;display:flex;flex-direction:row;align-items:center;gap:18px;width:100%;height:auto;min-height:62px;padding:12px 18px;background:#fff;border:0;border-bottom:1px solid var(--line);overflow:visible;transform:none;z-index:35;box-shadow:none}
.sidebar .brand{flex-shrink:0;gap:8px;margin:0;padding:0;font-size:15px;letter-spacing:-.3px;color:var(--text)}
.sidebar .brand-logo{width:28px;height:28px;background:#f7ebe5;color:var(--primary);border-radius:4px;box-shadow:none}
.sidebar .brand-logo .icon{width:16px;height:16px}
.sidebar .brand-copy{display:block}.sidebar .brand-copy small{font-size:9px;letter-spacing:.3px;color:var(--muted);margin-top:0}
.sidebar nav{display:flex;flex:1;flex-direction:row;gap:2px;min-width:0;padding:0;margin:0}
.sidebar .nav-item{display:flex;justify-content:center;flex-shrink:0;gap:5px;min-height:32px;margin:0;padding:6px 9px;border:1px solid transparent;border-radius:4px;font-size:12px;color:#6f6a63;font-weight:500}
.sidebar .nav-item>.icon{display:none}.sidebar .nav-item>span{display:block}
.sidebar .nav-item.active{color:#a95740;background:#faf1eb;border-color:#ecdbd1;box-shadow:none}
.sidebar .nav-item:hover{background:#f7f5f1;color:var(--text);transform:none}
.sidebar-caption,.sidebar-bottom,.topbar,#sidebar-overlay,#mobile-menu{display:none!important}
.sidebar .topbar-actions{display:flex;flex-shrink:0;gap:10px;margin-left:auto}
.connection-label{display:flex;gap:5px;font-size:10px;color:var(--muted);white-space:nowrap}
.status-dot{width:6px;height:6px;box-shadow:none;animation:none}
.avatar{width:25px;height:25px;background:#f3f1ed;color:#8a776b;border-radius:4px}
.avatar .icon{width:14px;height:14px}
.admin-menu summary{gap:6px;font-size:11px}.admin-menu>summary>span:not(.avatar){display:inline}
.admin-dropdown{top:34px;border-radius:4px;box-shadow:0 3px 12px #35332f0d}
.notification-button{width:28px;height:28px;min-height:28px}.notification-button>span{background:var(--primary)}
.app-shell{margin:0;min-width:0;width:100%;transition:none}
#workspace{padding:16px 18px 0;width:100%;max-width:none;margin:0}
.page-heading{gap:12px;margin-bottom:14px;align-items:center}
.page-heading .eyebrow{display:none}.page-heading h1{font-size:18px;line-height:1.4;letter-spacing:0;font-weight:650}
.page-heading p{font-size:11px;margin-top:3px;max-width:none;color:var(--muted)}
.page-toolbar{gap:8px;flex-shrink:0}.page-toolbar>span:not(.sr-only){font-size:10px;color:var(--muted)}
.range-filter{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin:0}
.range-filter select{width:auto;min-width:112px;margin:0;min-height:28px;font-size:11px;padding:4px 7px;background:#faf9f6;border-color:var(--line)}
button{min-height:29px;padding:5px 10px;border-radius:4px;font-size:11px;gap:5px;box-shadow:none}
button:hover{background:#be654e;box-shadow:none}button.quiet{color:#6f665c;border-color:var(--line);box-shadow:none}button.quiet:hover{background:#faf4ef;color:#a95740;border-color:#decac0}
.icon-button,.page-toolbar .icon-button{width:28px;height:28px;min-height:28px;padding:5px}.icon{width:15px;height:15px}
input,select,textarea{border-radius:4px;border-color:#dedbd5;font-size:12px;min-height:32px;padding:6px 9px}
.stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 9px}
.stat-card{display:block;min-height:101px;padding:13px 14px;background:#fff;border:1px solid #dfd9d2;border-radius:4px;box-shadow:none;overflow:hidden}
.stat-card:before,.stat-card:after{display:none}.stat-card small{display:block;font-size:11px;font-weight:400;color:#8a7b70}
.stat-card strong{display:block;margin:4px 0;font-size:23px;line-height:1.3;font-weight:650;letter-spacing:-.7px;color:#443a31;white-space:nowrap}
.stat-card:nth-child(2) strong{color:#558bdb}.stat-card:nth-child(3) strong{color:#3b8c70}.stat-card:nth-child(6) strong{font-size:21px}
.stat-caption{display:block;font-size:10px;line-height:1.5;color:var(--muted);white-space:normal}
.statistics-note{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:0 0 11px;padding:0;background:transparent;border:0;color:var(--muted);font-size:10px}
.statistics-note>p{flex:1;margin:0;min-width:180px;font-size:10px}.statistics-note summary{font-size:10px;color:#8b7c70}
.statistics-note details[open]{flex-basis:100%}.counter-strip{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:7px;padding:8px;background:#faf9f6;border:1px solid var(--line);border-radius:4px}.counter-strip b{color:#5f574e;font-weight:600}
.workspace-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}
.primary-column,.auxiliary-column{display:contents}
.panel{grid-column:span 6;padding:14px 16px;background:#fff;border:1px solid #dfd9d2;border-radius:4px;box-shadow:none;scroll-margin-top:16px;overflow-wrap:anywhere}
.panel h2{font-size:13px;color:#443a31;font-weight:650;letter-spacing:0}.panel h3{font-size:12px}.section-title{margin-bottom:10px;gap:8px}.section-title .hint{font-size:10px;margin:3px 0 0}
.hint{font-size:10px;color:var(--muted);line-height:1.6}.empty{font-size:11px;color:var(--muted);padding:25px 6px;text-align:center;margin:0;background:none;border:0}
#workspace[data-current-view=overview] #trend-section{grid-column:span 4;min-height:300px}
#speed-section{grid-column:span 2;min-height:300px}
.ranking-panel{grid-column:span 2;min-height:290px;align-self:stretch}
#workspace[data-current-view=overview] #alerts-section,#server-status-section{grid-column:span 3;min-height:240px;align-self:stretch}
#workspace[data-current-view=overview] #alerts-section{grid-row:3;grid-column:1 / span 3}
#server-status-section{grid-row:3;grid-column:4 / span 3}
.trend-filters{gap:6px;flex-wrap:wrap}.trend-filters label{gap:4px;font-size:10px;color:var(--muted)}.trend-filters select{min-height:26px;height:26px;padding:3px 5px;font-size:10px;border-color:var(--line);max-width:122px}
.trend-chart{width:100%;overflow:visible;min-height:0;padding:0;margin:5px 0 0}.trend-chart svg{display:block;width:100%;min-width:0;height:194px}.chart-axis{font-size:9px;fill:#91887f}.chart-grid{stroke:#edeae5;stroke-dasharray:2 3}.chart-labels{margin:0 0 4px 38px;font-size:9px;color:var(--muted)}
#trend-coverage{font-size:9px;margin:7px 0 4px}.table-details{margin-top:7px}.table-details summary{font-size:10px;color:#8b7c70}.chart-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:185px;font-size:11px;color:var(--muted);padding:20px;text-align:center;background:#fcfbf9;border:1px dashed #e9e4dc;border-radius:3px}.chart-empty small{font-size:9px;margin-top:6px}
.speed-chart svg{display:block;width:100%;height:205px}.speed-chart .chart-axis{font-size:8px}.speed-legend{display:flex;justify-content:center;gap:16px;font-size:10px;margin-top:6px}.upload{color:#3eaa85}.download{color:#558bdb}.speed-legend b{font-weight:500}
.rank-head{display:flex;justify-content:space-between;padding:1px 0 6px;border-bottom:1px solid var(--line);font-size:9px;color:var(--muted)}
.rank-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 69px;align-items:center;gap:8px;min-height:29px;border-bottom:1px solid #f3f0eb;font-size:10px}
.rank-name{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.rank-name i{font-style:normal;color:#b1a89c;font-size:9px;flex-shrink:0}.rank-row b{text-align:right;font-size:10px;font-weight:400;color:#7b7065;white-space:nowrap}
.rank-meter{height:5px;background:#f7eee6;overflow:hidden}.rank-meter span{display:block;height:100%}.rank-total{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#95887a;padding-top:10px}
.donut{width:132px;height:132px;margin:12px auto 16px;border-radius:50%;display:grid;place-items:center}.donut>div{width:96px;height:96px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut small{font-size:9px;color:var(--muted)}.donut strong{font-size:13px;font-weight:600;margin-top:3px}
.donut-legend>div{display:grid;grid-template-columns:6px minmax(0,1fr) 65px 35px;gap:6px;align-items:center;min-height:21px;font-size:9px}.donut-legend>div>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legend-dot{width:6px;height:6px}.donut-legend b,.donut-legend small{text-align:right;font-size:9px;font-weight:400;color:#7d7268}
.alert-item{padding:8px 10px;margin-bottom:6px;border:1px solid #ede8e1;border-left:3px solid #e9bc56;background:#fffaf3;border-radius:2px;font-size:11px}.alert-item.critical{border-left-color:#d66e61;background:#fff8f6}.alert-item.info{border-left-color:#659ce8;background:#f8faff}.alert-ok{padding:10px;background:#f6faf7;border:1px solid #e1eee6;border-radius:3px;font-size:11px;color:#54856c}
.recent-event{display:flex;justify-content:space-between;gap:12px;font-size:10px;padding:7px 0;border-bottom:1px solid #f1ede7;color:#756b60}.recent-event time{font-size:9px;color:#a2988c;white-space:nowrap}
#server-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.server-row{border:1px solid #eae5de;border-radius:3px;padding:8px}.server-name{display:flex;align-items:center;gap:5px;font-size:10px}.server-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.server-name>span:last-child{margin-left:auto;font-size:9px;color:var(--muted);flex-shrink:0}.server-meta{display:flex;flex-direction:column;font-size:9px;gap:2px;color:#9c9185;margin:5px 0}.server-meter{display:flex;align-items:center;gap:5px;font-size:9px;color:#a09486;margin-top:3px}.server-meter>div{flex:1;height:4px;background:#f4ede4}.server-meter i{display:block;height:100%;background:#52aa93}.server-meter small{font-size:9px;min-width:32px;text-align:right}
.cards,.node-cards,.domain-cards,.certificate-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{padding:12px;border:1px solid var(--line);border-radius:4px;box-shadow:none;background:#fff;overflow:hidden}.card .section-title{margin-bottom:7px}.card h3{font-size:12px}.resource-line,.domain-origin{font-size:11px}.card-footer{margin-top:9px;padding-top:8px;border-color:var(--line)}.node-traffic{gap:8px;padding:9px 0;margin:8px 0;border-color:var(--line)}.node-traffic small{font-size:9px}.node-traffic b{font-size:11px}.node-card-actions button,.card-footer button{font-size:10px;padding:4px 7px;min-height:27px}.badge,.count-badge{border-radius:3px;font-size:9px}.badge{background:#edf6f0;color:#518b6c}.badge.offline{background:#f5efea;color:#a08b79}
.node-add-form{padding:10px;background:#faf9f6;border:1px solid var(--line);border-radius:4px;margin-bottom:12px}.section-footnote{margin-top:10px;padding-top:9px;border-color:var(--line)}
.table-wrap{max-width:100%;overflow:auto}table{font-size:11px;width:100%;border-collapse:collapse}th,td{padding:7px 10px;border-color:var(--line)}th{background:#faf9f6;color:#8b7c70;font-size:10px}.event{padding:8px 0;font-size:11px}.event time{font-size:10px}.settings-row{padding:14px 0;gap:12px}.settings-row h3{font-size:12px}.settings-row p{font-size:11px}
footer{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;margin-top:6px;border:0;color:#aaa195;font-size:9px}footer>span:last-child{margin-left:auto}
dialog{border:1px solid var(--line);border-radius:5px;box-shadow:0 12px 50px #352e2620;max-width:calc(100% - 24px)}dialog::backdrop{background:#322a2440;backdrop-filter:none}.toast{border-radius:4px}.login-panel{border:1px solid var(--line);border-radius:5px;box-shadow:none}.login-panel h1{font-size:25px}.login-panel .brand-logo{background:var(--primary)}
.rank-meter{width:100%;display:block}.donut{position:relative;background:none}.donut>svg{position:absolute;inset:0;width:100%;height:100%}.donut>div{position:relative;width:96px;height:96px}.server-meter>svg{flex:1;min-width:0;height:4px}
#speed-section{align-self:stretch}.trend-filters{flex-shrink:0}.trend-filters label{white-space:nowrap;flex-shrink:0}.trend-filters select{width:auto}.chart-axis{font-size:10px}
@media(max-width:1100px){#sidebar.sidebar{gap:10px;padding:12px}.sidebar .nav-item{padding:6px}.sidebar .brand{font-size:13px}.connection-label{display:none}.stat-card{padding:12px}.stat-card strong{font-size:20px}.rank-row{grid-template-columns:minmax(0,1fr) 45px 63px}.rank-row b{font-size:9px}.panel{padding:12px}.trend-filters select{max-width:105px}}
@media(max-width:850px){#dashboard{width:calc(100% - 28px);margin:14px auto}#sidebar.sidebar{flex-wrap:wrap;gap:10px}.sidebar nav{order:3;flex-basis:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.sidebar .nav-item{font-size:11px;padding:6px 2px}.sidebar .brand{font-size:15px}.connection-label{display:flex}#workspace{padding:14px 12px 0}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{min-height:91px}.stat-card strong{font-size:23px}.page-heading{flex-wrap:wrap}.page-toolbar{flex-wrap:wrap}#workspace[data-current-view=overview] #trend-section{grid-column:span 6}#speed-section{grid-column:span 6;min-height:0}.speed-chart svg{height:190px}.ranking-panel{grid-column:span 3}#distribution-section{grid-column:span 6;min-height:0;display:grid;grid-template-columns:1fr 1fr;column-gap:20px}#distribution-section>.section-title{grid-column:span 2}#traffic-distribution{grid-column:span 2;display:flex;align-items:center;gap:24px;padding:0 15px}.donut{flex-shrink:0;margin:6px 0}.donut-legend{flex:1}#workspace[data-current-view=overview] #alerts-section,#server-status-section{grid-row:auto;grid-column:span 6;min-height:0}.rank-row{grid-template-columns:minmax(0,1fr) 65px 70px}.server-meta{flex-direction:row;justify-content:space-between;flex-wrap:wrap}}
@media(max-width:540px){#dashboard{width:calc(100% - 20px);margin:10px auto;border-radius:3px}#sidebar.sidebar{padding:10px}.sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.sidebar .topbar-actions{gap:6px}.connection-label{font-size:9px}.admin-menu>summary>span:not(.avatar){display:none}.sidebar .brand{font-size:13px}.sidebar .brand-copy small{font-size:8px}.page-heading h1{font-size:17px}.page-heading p{font-size:10px}.page-toolbar{width:100%;gap:6px;justify-content:space-between}.page-toolbar>span:not(.sr-only){font-size:9px}.range-filter{font-size:9px}.range-filter select{font-size:10px;min-width:105px}#workspace{padding:12px 10px 0}.stats{grid-template-columns:minmax(0,1fr);gap:7px}.stat-card{min-height:80px;padding:10px 12px}.stat-card strong{font-size:22px}.stat-caption{font-size:10px}.statistics-note{align-items:start}.workspace-grid{grid-template-columns:minmax(0,1fr);gap:10px}.panel,#workspace[data-current-view=overview] #trend-section,#speed-section,.ranking-panel,#distribution-section,#workspace[data-current-view=overview] #alerts-section,#server-status-section{grid-column:1;grid-row:auto;min-height:0}.panel{padding:12px}.section-title{flex-wrap:wrap}.trend-filters{width:100%;justify-content:space-between}.trend-filters select{max-width:130px}.trend-chart svg{height:180px}.chart-labels{font-size:8px;margin-left:25px}.cards,.node-cards,.domain-cards,.certificate-cards{grid-template-columns:minmax(0,1fr)}#distribution-section{display:block}#traffic-distribution{display:block;padding:0}.donut{margin:10px auto 18px}.donut-legend{width:100%}#server-status{grid-template-columns:minmax(0,1fr)}.recent-event{flex-direction:column;gap:2px}.card-footer{flex-wrap:wrap}.node-card-actions{flex-wrap:wrap}.node-card-actions button{font-size:10px}.node-add-form .inline{flex-wrap:wrap}.settings-row{flex-wrap:wrap}.settings-row>div{flex:1;min-width:150px}.settings-row>button{margin-left:0}footer{display:block;font-size:9px}footer>span{display:block;margin-top:3px}.rank-row{grid-template-columns:minmax(0,1fr) 65px 68px}dialog{padding:16px;width:calc(100% - 24px)}}


/* Typography only: preserve shell, spacing, chart colors and business behavior. */
:root {
  --console-font: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-family: var(--console-font);
  font-synthesis: weight;
}
body, button, input, select, textarea, .chart-axis {
  font-family: var(--console-font);
  text-rendering: auto;
}
body { font-variant-numeric: lining-nums tabular-nums; }
.sidebar .brand, .stat-card strong, .node-traffic b, .page-heading h1, .panel h2, .panel h3 {
  letter-spacing: normal;
  font-weight: 700;
}
.stat-card small, .sidebar .nav-item, th, .rank-head, .server-name strong {
  font-weight: 600;
}
.stat-card small { font-size: 12px; }
.stat-caption, .hint, .section-title .hint, .page-heading p,
.statistics-note, .statistics-note>p, .statistics-note summary,
.table-details summary, #trend-coverage, .chart-labels,
.speed-legend, .rank-head, .rank-total, .rank-name i,
.donut small, .donut-legend>div, .donut-legend b, .donut-legend small,
.recent-event time, .server-meta, .server-meter, .server-meter small,
.server-name>span:last-child, .node-traffic small, .event time,
.card-footer p, .badge, .count-badge, .chart-empty small {
  font-size: 11px;
  font-weight: 500;
}
.rank-row, .rank-row b, .server-name, .recent-event,
.node-traffic b, .resource-line, .domain-origin, td, input, select, textarea {
  font-size: 12px;
}
.rank-row b, .donut-legend b, .donut-legend small,
.node-traffic b, .server-meter small, .speed-legend b, .counter-strip b {
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.chart-axis, .speed-chart .chart-axis {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
}
.sidebar .brand-copy small, .connection-label, .page-toolbar>span:not(.sr-only),
.range-filter, .trend-filters label, .trend-filters select,
.range-filter select, footer {
  font-size: 10px;
  font-weight: 500;
}
.node-domain-option small { font-family: var(--console-font); font-size: 11px; }
pre, code, #install-command, #maintenance-command {
  font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace;
}
/* Keep long card captions and SVG axis labels inside their existing bounds. */
.stat-caption { font-size: 10px; font-weight: 600; }
.speed-chart .chart-axis { font-size: 9px; }
.hint, .section-title .hint, .statistics-note, .statistics-note>p,
.statistics-note summary, .server-meta, .server-meter,
.recent-event, .recent-event time, .rank-row { font-weight: 600; }
.resource-line { font-size: 12px !important; }
.certificate-status { font-size: 11px !important; }

/* Scheduler panels reuse the bounded shell and existing typography. */
.scheduler-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.scheduler-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
#scheduler-dialog{width:650px}
.scheduler-target-input{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:8px;align-items:end;margin-bottom:8px}
.scheduler-target-input label{min-width:0;margin:0}
.scheduler-target-input input,.scheduler-target-input select{width:100%;min-width:0}
.scheduler-ip,.scheduler-probe-error{display:block;font-size:11px;overflow-wrap:anywhere}
.scheduler-probe-error{color:var(--red);max-width:240px}
.scheduler-table td{vertical-align:top;font-variant-numeric:tabular-nums}
.scheduler-table th{white-space:nowrap}
.scheduler-log{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.scheduler-log span{overflow-wrap:anywhere;min-width:0}
@media(max-width:540px){.scheduler-form-grid{grid-template-columns:minmax(0,1fr)}.scheduler-target-input{grid-template-columns:minmax(0,1fr) auto}.scheduler-target-input label:first-child{grid-column:span 2}.scheduler-log{gap:4px}.scheduler-log time{flex-basis:100%}}

/* Node resources lead the node page; keep all views inside the shared 1200px shell. */
#workspace[data-current-view=nodes] .page-heading{position:relative;align-items:flex-start}
#workspace[data-current-view=nodes] .page-heading-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.node-resource-overview{flex:1;min-width:0}
.node-resource-overview .section-title{margin-bottom:9px}
.node-resource-overview h2{font-size:13px;font-weight:700;color:#443a31}
.node-resource-overview .resource-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.node-resource-overview .resource-item{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:4px;background:#fff}
.node-resource-overview .resource-item>div{min-width:0;overflow-wrap:anywhere}
.node-resource-overview .resource-item .stat-icon{width:28px;height:28px;flex-shrink:0;border-radius:4px}
.node-resource-overview .resource-item .icon{width:15px;height:15px}
.node-resource-overview .resource-item small{font-size:11px;font-weight:600}
.node-resource-overview .resource-item strong{display:block;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.5}
.node-resource-overview .resource-caption{font-size:10px;margin:2px 0 0}
.node-resource-overview>p.hint{font-size:10px;margin:6px 0 0}
#workspace[data-current-view=nodes] .page-toolbar{margin-top:0}

.node-cards>.card{transition:border-color .15s,background-color .15s,box-shadow .15s;outline-offset:3px}
.node-cards>.card:hover{border-color:#dba38e;background:#fffcfa;box-shadow:0 0 0 1px #efdcd2}
.node-cards>.card.is-selected,.node-cards>.card:focus-visible{border-color:var(--primary);background:#fff8f3;box-shadow:inset 3px 0 0 var(--primary),0 0 0 1px #e8c7b8}
.node-cards>.card:active{background:#fcf0e7}
.node-cards .card-footer{flex-wrap:wrap;gap:8px}
.node-cards .node-card-actions{margin-left:auto}
@media(min-width:1000px){.node-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}

#workspace[data-current-view=overview] #server-status-section{grid-column:1 / -1;grid-row:3;min-height:0}
#workspace[data-current-view=overview] #alerts-section{grid-column:1 / -1;grid-row:4;min-height:0}
#server-status{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.node-resource-overview .resource-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
 .node-resource-overview{flex-basis:100%}
 #server-status{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace[data-current-view=overview] #server-status-section,#workspace[data-current-view=overview] #alerts-section{grid-row:auto}
}
@media(max-width:540px){
 .node-resource-overview .resource-summary,#server-status{grid-template-columns:minmax(0,1fr)}
 .node-cards{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.node-cards>.card{transition:none}}

/* Management cards share the node page's compact desktop layout and selection. */
.domain-cards>.card,.certificate-cards>.card{min-width:0;transition:border-color .15s,background-color .15s,box-shadow .15s;outline-offset:3px;overflow-wrap:anywhere}
.domain-cards>.card:hover,.certificate-cards>.card:hover{border-color:#dba38e;background:#fffcfa;box-shadow:0 0 0 1px #efdcd2}
.domain-cards>.card.is-selected,.certificate-cards>.card.is-selected,.domain-cards>.card:focus-visible,.certificate-cards>.card:focus-visible{border-color:var(--primary);background:#fff8f3;box-shadow:inset 3px 0 0 var(--primary),0 0 0 1px #e8c7b8}
.domain-cards .card-actions{flex-wrap:wrap;gap:6px}
@media(min-width:1000px){
 .domain-cards,.certificate-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 #settings-section,.quick-actions,.system-panel{grid-column:span 2;min-width:0;align-self:stretch}
 #settings-section .settings-row{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}
 #settings-section .settings-row>.stat-icon{width:28px;height:28px;flex-shrink:0}
 #settings-section .settings-row>div{flex:1;min-width:0}
 #settings-section .settings-row>button,#settings-section .settings-row>.badge{margin-left:36px}
 .system-panel dd{overflow-wrap:anywhere}
}
.admin-dialog{width:480px;max-width:calc(100% - 32px)}
.admin-dialog label{display:block;margin:12px 0}
.admin-dialog input{width:100%;min-width:0}
.admin-dialog label.admin-check{display:flex;gap:8px;align-items:flex-start}
.admin-dialog .admin-check input{width:auto;margin-top:3px;flex-shrink:0}
.admin-dialog .admin-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.admin-preview{border:1px solid var(--line);background:#faf8f5;padding:12px;border-radius:4px;white-space:pre-line;overflow-wrap:anywhere}
.admin-warning{border-left:3px solid var(--primary);padding:8px 10px;background:#fff8f3;font-size:12px}
@media(prefers-reduced-motion:reduce){.domain-cards>.card,.certificate-cards>.card{transition:none}}
