:root{--ink:#1e293b;--muted:#526174;--line:#dfe5ed;font-size:14px;line-height:1.6;color:var(--ink)}
input,select,textarea{border-color:var(--line)}input:focus,select:focus,textarea:focus,.stack-form textarea:focus{outline:none;box-shadow:none;border-color:var(--line)}.keyboard-navigation input:focus,.keyboard-navigation select:focus,.keyboard-navigation textarea:focus,.keyboard-navigation .stack-form textarea:focus{outline:1px solid #285bd4;outline-offset:2px}
.history-sort-button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 3px;border:0;border-radius:4px;background:transparent;color:#475569;font:inherit;white-space:nowrap;cursor:pointer}.history-sort-button:hover{background:#eaf0fa;color:#2454b3}.history-sort-button:focus-visible{outline:2px solid #285bd4;outline-offset:3px}.history-sort-button:disabled{cursor:wait}.history-sort-arrows{display:flex;flex-direction:column;gap:2px;font-size:10px;line-height:1;color:#64748b}.history-sort-button[data-order="asc"] .sort-up,.history-sort-button[data-order="desc"] .sort-down{color:#2454b3}
small,td small,dialog td small{font-size:13px;line-height:1.65;color:#526174}
h1,.page-heading h1{font-size:22px;font-weight:650;letter-spacing:0}h2,.section-heading h2,.device-heading h2{font-size:16px;font-weight:650}h3{font-size:14px}
.muted,.fine,.app-shell .fine,.app-shell small,.app-shell dt,.app-shell time,.app-shell td small,.app-shell .panel small{color:#526174;font-size:13px;line-height:1.65}
.page-heading .muted{font-size:14px;color:#526174;margin-top:4px}.page-heading{margin-bottom:18px}.content{padding:24px;max-width:1720px}.panel{padding:18px 20px;border-radius:10px;margin-bottom:18px}.section-heading{margin-bottom:14px}
.primary,.secondary,.text-button,.device-heading-actions .primary,.device-heading-actions .secondary,.device-row-actions button,.type-select-hint .text-button,.type-catalog-row button{font-size:13px;min-height:36px}.primary,.secondary{padding:7px 12px}.primary{background:#285bd4}.primary:hover{background:#204cae}.text-button{color:#2454b3}.danger-text{color:#a33535}
input,select,textarea,.stack-form textarea{font-size:14px;line-height:1.5;color:#243349}input::placeholder,textarea::placeholder{color:#607086;opacity:1}.login-card label,.stack-form label,.type-create-form label,.history-query-form label{font-size:13px;color:#475569}
.nav-item{font-size:14px;min-height:42px;color:#475569}.nav-item img{opacity:.8}.sidebar .brand{font-size:15px}.sidebar .brand-sub,.sidebar-bottom,.sidebar-bottom .fine,.sidebar-bottom .text-button{font-size:12px;color:#526174}.sidebar .brand-sub{letter-spacing:0}.sidebar-bottom .secondary{font-size:13px}.nav-item.active{color:#244fb0}.topbar,.breadcrumb{color:#526174}
.app-shell footer,.app-shell footer span{color:#526174;font-size:12px}.app-shell .note,.app-shell .empty,.notice-amber p,.notice-amber,.range-preview,.dialog-intro,.purge-warning{font-size:13px;line-height:1.7}.note{color:#475569;background:#f1f5f9;border-color:#dfe5ed}.count-badge,.pill,.pill.neutral,.device-tabs button span{font-size:12px}.pill.neutral{color:#526174}.pill.amber{color:#805b13}.pill{color:#166746}.count-badge{color:#2454b3}.device-tabs button{color:#526174;font-size:13px}.device-tabs button.selected{color:#2454b3}
table,.device-table{font-size:13px}th,.device-table th{font-size:13px;color:#475569;background:#f5f7fb;font-weight:600;padding:12px 15px}td,.device-table td{font-size:13px;line-height:1.65;color:#26364b;padding:13px 15px}.device-table .device-id{font-size:14px;color:#2454b3}.device-table td small,.device-table .device-note{font-size:12px;color:#526174}.device-row-actions{gap:6px}.device-state-note{font-size:13px}.history-map-links,.history-map-links button,.history-map-links a{font-size:12px}.device-data dt,.detail-grid dt{font-size:13px;color:#526174}.device-data dd,.detail-grid dd{font-size:14px;color:#26364b}.device-notes,.device-type-badge,.purge-device-list,.purge-device-list span{font-size:13px;color:#526174}.firmware-row,.job-row{font-size:14px}.firmware-row code{font-size:12px;color:#475569}.eyebrow{font-size:12px;letter-spacing:1px}.error{font-size:13px;color:#a12828}
.broker-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;margin-bottom:18px;box-shadow:0 2px 4px #20365005}
.broker-metrics article{min-height:102px;border:0;border-radius:0;box-shadow:none;padding:17px 20px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);background:transparent}.broker-metrics article:nth-child(3n){border-right:0}.broker-metrics article:nth-last-child(-n+3){border-bottom:0}.broker-metrics p{font-size:13px;color:#475569}.broker-metrics strong{font-size:19px;font-weight:650;letter-spacing:0;line-height:1.5;margin:5px 0 2px}.broker-metrics small{font-size:12px;color:#526174}.host-cell dt{font-size:13px;color:#526174}.host-cell dd{font-size:14px;color:#26364b}.host-cell small{font-size:12px;color:#526174}.host-overview,.server-info{gap:24px}.data-overview article p,.data-overview article small{font-size:12px;color:#526174}.data-overview article strong{font-size:18px;margin:5px 0;font-weight:650}.overview-bottom{grid-template-columns:1fr 1fr;gap:18px}.server-chip,.server-chip strong{font-size:13px;color:#334155}.server-chip{padding:11px 13px}.container-chip .pill{font-size:12px}
.message-panel .section-heading{gap:16px}.message-panel .fine{font-size:13px;color:#475569}.message-panel input{font-size:14px;min-height:36px}.message-list{max-height:calc(100vh - 235px);margin-inline:-20px}.message-row{padding:15px 20px}.message-meta{font-size:12px;color:#526174;margin-bottom:6px;line-height:1.6}.message-meta time{font-size:12px;color:#526174}.message-topic{font-size:14px;color:#2454b3;line-height:1.6}.message-row pre{font-size:13px;line-height:1.8;color:#334155;margin-top:7px;max-height:110px}.message-meta span{color:#526174}
.diagnostics-panel{padding:0}.diagnostic-summary strong{font-size:15px}.diagnostic-summary .fine,.diagnostic-toggle-text{font-size:13px}.diagnostic-content{padding:18px 20px}.diagnostic-history-heading h3{font-size:14px;color:#475569}.diagnostic-event,.diagnostic-event time,.diagnostic-event .text-button,.diagnostic-content .fine{font-size:13px}.diagnostic-event{color:#334155;line-height:1.7;padding:10px 0}.diagnostic-event .text-button{min-height:30px}.diagnostic-empty{color:#526174}
.device-search-bar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}.device-search-bar .search-input{flex:1;min-width:200px}.device-search-bar input{width:100%;min-height:40px}.device-search-bar select{min-height:40px;max-width:190px}.device-search-bar label{font-size:13px;color:#475569}.device-search-bar .sr-only{font-size:13px}
#history-range-dialog{width:640px;max-width:96vw;padding:20px}#history-range-dialog .stack-form{margin-top:16px}.range-device-row{display:flex;gap:14px;align-items:center}.range-device-row label{flex:1}.range-device-row select{width:100%}.range-time-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range-time-inputs label{min-width:0}.range-time-inputs input{width:100%}.time-preset-row{gap:8px;margin:0}.time-preset-row>span{font-size:13px;color:#475569}.time-preset-row button{font-size:13px;min-height:36px;color:#475569;border-color:#dfe5ed}.time-preset-row button.selected{color:#244fb0;background:#eaf1ff;border-color:#a9bee9}.range-dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:16px}
#history-dialog{width:1120px;max-width:96vw;max-height:90vh;padding:0}#history-dialog>.dialog-heading{padding:15px 18px;border-bottom:1px solid var(--line);gap:15px;flex-wrap:wrap}#history-dialog .dialog-heading-actions{display:flex;gap:8px;flex-wrap:wrap}#history-dialog .history-results-panel{padding:0 18px 15px;border:0;border-radius:0;margin:0;box-shadow:none}#history-dialog .table-scroll{margin:0 -18px;max-height:62vh;overflow:auto}#history-dialog th{position:sticky;top:0;z-index:1}#history-scope{padding:12px 0;color:#475569;font-size:13px}#history-dialog h2{font-size:16px}.range-selector-note{font-size:13px;color:#526174}
@media(max-width:900px){.host-overview,.server-info{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-bottom{grid-template-columns:1fr}.broker-metrics strong{font-size:18px}.device-search-bar select{max-width:160px}}
@media(max-width:760px){.content{padding:18px 14px}.page-heading h1{font-size:21px}.page-heading .muted{font-size:13px}.page-heading .secondary{font-size:12px}.panel{padding:16px}.sidebar nav{display:flex;flex-wrap:wrap;gap:6px}.sidebar .nav-item{flex:1 1 calc(25% - 6px);font-size:13px;gap:5px;min-height:42px;white-space:nowrap;padding:9px 5px}.sidebar .nav-item:nth-child(n+5){flex-basis:calc(33.333% - 6px)}.broker-metrics{grid-template-columns:1fr 1fr}.broker-metrics article{padding:15px 13px;min-height:112px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.broker-metrics article:nth-child(3n){border-right:1px solid var(--line)}.broker-metrics article:nth-child(2n){border-right:0}.broker-metrics article:nth-last-child(-n+3){border-bottom:1px solid var(--line)}.broker-metrics article:nth-last-child(-n+2){border-bottom:0}.broker-metrics p{font-size:13px}.broker-metrics strong{font-size:18px}.host-cell dd{font-size:14px}.host-cell small{font-size:12px}.host-overview,.server-info{gap:20px 16px}.device-search-bar{gap:8px}.device-search-bar .search-input{flex-basis:100%}.device-search-bar select{flex:1;max-width:none;width:100%;min-width:0}.device-heading-actions button,.device-tabs button{font-size:13px;min-height:40px}.device-table{min-width:860px}.message-panel .section-heading{gap:12px}.message-list{margin-inline:-16px;max-height:65vh}.message-row{padding:14px 16px}.message-row pre{font-size:13px;line-height:1.8;max-height:140px}.message-topic{font-size:14px}.message-meta,.message-meta time{font-size:12px}.diagnostics-panel{padding:0}.diagnostic-summary strong{font-size:14px}.diagnostic-summary-meta .fine{font-size:12px}.diagnostic-content{padding:15px 13px}.diagnostic-event .text-button{min-height:40px}.range-time-inputs{grid-template-columns:1fr}.range-dialog-actions button{flex:1}.range-device-row{display:block}#history-dialog>.dialog-heading{padding:13px}#history-dialog .dialog-heading-actions{width:100%}#history-dialog .dialog-heading-actions button{flex:1;font-size:12px}#history-dialog .history-results-panel{padding-inline:13px}#history-dialog .table-scroll{margin-inline:-13px}.login-intro h1{font-size:30px}.login-card h2{font-size:24px}.login-intro>p,.login-card .fine{font-size:13px}}
