:root {
  color-scheme: light;
  --bg: #f5f7fb; --surface: #ffffff; --surface-soft: #f8fafe; --surface-tint: #edf7f7;
  --ink: #15233e; --muted: #64728b; --subtle: #8b98aa; --border: #e4e9f1; --border-strong: #cbd6e3;
  --primary: #155dbe; --primary-hover: #104e9f; --primary-tint: #eaf2ff;
  --teal: #008a83; --teal-tint: #dcf6f1; --ok: #117e5b; --ok-bg: #e1f7ed;
  --warn: #986600; --warn-bg: #fff4d7; --bad: #ad3543; --bad-bg: #fff0f0;
  --shadow: 0 8px 32px rgba(22,38,77,.045); --focus: #3a88e6;
  --radius: 16px; --sidebar: #ffffff;
  font: 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0c1426; --surface:#152137; --surface-soft:#192940; --surface-tint:#142d38;
  --ink:#edf3fc; --muted:#a9b7cc; --subtle:#889db5; --border:#2a3c53; --border-strong:#40546b;
  --primary:#6baaff; --primary-hover:#8dbdfd; --primary-tint:#203852;
  --teal:#59d4c5; --teal-tint:#1a3f43; --ok:#6be0ab; --ok-bg:#173f35;
  --warn:#f1bf61; --warn-bg:#41351f; --bad:#f6a1ac; --bad-bg:#472a33;
  --shadow:0 8px 40px rgba(0,0,0,.14); --focus:#86b9fc; --sidebar:#111d30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg:#0c1426; --surface:#152137; --surface-soft:#192940; --surface-tint:#142d38;
    --ink:#edf3fc; --muted:#a9b7cc; --subtle:#889db5; --border:#2a3c53; --border-strong:#40546b;
    --primary:#6baaff; --primary-hover:#8dbdfd; --primary-tint:#203852;
    --teal:#59d4c5; --teal-tint:#1a3f43; --ok:#6be0ab; --ok-bg:#173f35;
    --warn:#f1bf61; --warn-bg:#41351f; --bad:#f6a1ac; --bad-bg:#472a33;
    --shadow:0 8px 40px rgba(0,0,0,.14); --focus:#86b9fc; --sidebar:#111d30;
  }
}
*, *::before, *::after {box-sizing:border-box}
html, body {margin:0; min-height:100%; width:100%; max-width:100%;}
body {background:var(--bg);color:var(--ink);overflow-x:hidden}
[hidden] {display:none!important}
button, input, select, textarea {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {cursor:not-allowed; opacity:.52}
button, a, input, select, textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible {outline:3px solid var(--focus);outline-offset:2px}
a {color:var(--primary);text-decoration:none}
a:hover {text-decoration:underline}
h1,h2,h3,p {margin-top:0}
h1,h2,h3 {letter-spacing:-.025em;line-height:1.28}
svg.icon {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon-defs {position:absolute;width:0;height:0;overflow:hidden}
.eyebrow,.overline,.side-caption {font-size:10px;line-height:1.4;letter-spacing:.15em;font-weight:800;color:var(--teal)}
.description {font-size:13px;line-height:1.65;color:var(--muted);margin:4px 0 16px}
.fine-print {font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 0}
.btn,.icon-button {height:40px;max-height:40px;box-sizing:border-box;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,transform .15s;padding:0 14px;max-width:100%}
.btn .icon,.icon-button .icon {width:16px;height:16px}
.btn:active,.icon-button:active {transform:translateY(1px)}
.btn-primary {color:#fff;background:#155dbe}
.btn-primary:hover:not(:disabled) {background:#104e9f}
.btn-secondary {color:var(--ink);background:var(--surface-soft);border-color:var(--border)}
.btn-secondary:hover:not(:disabled) {background:var(--primary-tint);border-color:var(--border-strong)}
.btn-quiet {color:var(--muted);background:transparent;border-color:transparent}
.btn-quiet:hover:not(:disabled) {color:var(--ink);background:var(--surface-soft)}
.btn-danger,.btn-danger-soft {color:#fff;background:#ab3341}
.btn-danger:hover:not(:disabled) {background:#902837}
.btn-danger-soft {color:var(--bad);background:var(--bad-bg);border-color:var(--bad)}
.btn-danger-soft:hover:not(:disabled) {background:var(--bad-bg);filter:brightness(.96)}
.icon-button {width:40px;min-width:40px;padding:0;background:var(--surface);border-color:var(--border);color:var(--muted)}
.icon-button:hover {color:var(--primary);background:var(--surface-soft)}
input:not([type="checkbox"]),select {height:40px;max-height:40px;min-height:40px;line-height:20px;width:100%;min-width:0;background:var(--surface);border:1px solid var(--border-strong);border-radius:9px;padding:0 12px;font-size:13px;box-shadow:none}
input::placeholder,textarea::placeholder {color:var(--subtle)}
input:focus,select:focus,textarea:focus {border-color:var(--primary)}
textarea {background:var(--surface);width:100%;min-width:0;padding:10px 12px;min-height:92px;resize:vertical;border:1px solid var(--border-strong);border-radius:10px;font-size:13px}
label {display:block;font-size:12px;font-weight:750;color:var(--ink)}
.form-stack {display:flex;flex-direction:column;gap:8px;min-width:0}
.form-stack label:not(:first-child) {margin-top:7px}
.form-stack>.btn {align-self:start;margin-top:10px}
.form-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:5px}
.form-footer small {color:var(--muted);font-size:11px}
.checkline {display:flex;align-items:center;gap:10px;min-height:40px;cursor:pointer;font-weight:550}
.checkline input {width:16px;height:16px;accent-color:var(--teal);flex:none}
/* App shell */
.app-layout {display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100svh}
.sidebar {position:sticky;top:0;height:100svh;align-self:start;display:flex;flex-direction:column;padding:25px 17px 19px;border-right:1px solid var(--border);background:var(--sidebar);min-width:0}
.brand {display:flex;align-items:center;gap:12px;padding:0 8px 36px;color:var(--ink);text-decoration:none}
.brand:hover {text-decoration:none}
.brand-icon {display:block;width:46px;height:46px;border-radius:12px;object-fit:cover}
.brand-copy {display:grid;gap:0;min-width:0}
.brand-copy strong {font-size:21px;letter-spacing:-.04em;line-height:1.22}
.brand-copy small {font-size:11px;white-space:nowrap;color:var(--muted);font-weight:550}
.side-caption {padding:0 17px 10px;color:var(--subtle)}
.navigation {display:flex;flex-direction:column;gap:5px;min-height:0}
.nav-item {width:100%;min-height:40px;height:40px;max-height:40px;display:flex;gap:12px;align-items:center;border:0;background:transparent;border-radius:10px;text-align:left;padding:0 14px;font-weight:650;font-size:13px;color:var(--muted);white-space:nowrap}
.nav-item:hover {color:var(--ink);background:var(--surface-soft)}
.nav-item.is-active {background:var(--primary-tint);color:var(--primary)}
.nav-item .icon {width:17px;height:17px}
.sidebar-bottom {margin-top:auto;padding:16px 8px 0;border-top:1px solid var(--border)}
.sidebar-connection {display:flex;gap:9px;align-items:center;font-size:12px;font-weight:800}
.sidebar-bottom p {font-size:11px;line-height:1.6;margin:10px 0 0;color:var(--muted)}
.status-dot {width:8px;height:8px;border-radius:50%;background:var(--subtle);flex:none;box-shadow:0 0 0 4px var(--surface-soft)}
.status-dot.connected {background:var(--ok);box-shadow:0 0 0 4px var(--ok-bg)}
.status-dot.disconnected {background:var(--bad);box-shadow:0 0 0 4px var(--bad-bg)}
.workspace {min-width:0;width:100%;display:flex;flex-direction:column}
.app-header {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:27px clamp(18px,3.5vw,44px) 22px;border-bottom:1px solid var(--border);background:var(--surface)}
.app-header-title {min-width:0}
.app-header-title h1 {font-size:23px;margin:3px 0 4px}
.app-header-title p {font-size:12px;margin:0;color:var(--muted)}
.header-actions {display:flex;gap:8px;align-items:center;flex:none}
.last-update {font-size:11px;color:var(--muted);margin-right:9px;white-space:nowrap}
.app-content {width:100%;max-width:1550px;margin:0 auto;padding:27px clamp(18px,3.5vw,44px) 38px;flex:1;min-width:0}
.page {min-width:0;animation:pageIn .18s ease-out}
@keyframes pageIn {from{opacity:.72;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.section-intro {margin:0 0 21px}
.section-intro h2 {font-size:22px;margin-bottom:6px}
.section-intro p {margin:0;color:var(--muted);font-size:13px}
.welcome {display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(110deg,#0c2146 0%,#112d67 60%,#0a666c 100%);color:#fff;border-radius:18px;padding:27px 30px;min-height:170px;overflow:hidden;position:relative}
.welcome::after {content:"";position:absolute;pointer-events:none;inset:0;background:radial-gradient(circle at 92% 18%,rgba(0,224,213,.2),transparent 37%)}
.welcome>div {position:relative;z-index:1}
.welcome-label {letter-spacing:.14em;font-size:10px;font-weight:800;color:#8df1e6}
.welcome h2 {font-size:24px;max-width:520px;margin:9px 0}
.welcome p {font-size:12px;line-height:1.7;color:#c6d9ee;margin:0;max-width:450px}
.welcome img {width:110px;height:110px;object-fit:contain;border-radius:25px;position:relative;z-index:1;box-shadow:0 12px 36px rgba(0,0,0,.18)}
.stat-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:20px 0}
.stat-card,.card {background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius);min-width:0}
.stat-card {padding:18px;min-height:124px;display:grid;align-content:start;gap:7px}
.stat-heading {display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:650}
.stat-heading .icon {color:var(--teal)}
.stat-card strong {font-size:23px;letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}
.stat-card small {font-size:11px;color:var(--muted)}
.content-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.card {padding:22px;margin-bottom:16px}
.card-header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.card-header h2,.card-header h3 {font-size:17px;margin:2px 0 0}
.card-header h3 {font-size:16px}
.card-header .description {margin:5px 0 0}
.card-mark {color:var(--teal)}
.health-lines {display:grid;gap:0;margin:8px 0 15px}
.health-lines>div {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px;color:var(--muted)}
.health-lines>div strong {font-weight:700;color:var(--ink);text-align:right}
.pill {font-size:11px;font-weight:800;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);padding:4px 9px;border-radius:999px;white-space:nowrap}
.pill.good {color:var(--ok);background:var(--ok-bg);border-color:transparent}
.pill.bad {color:var(--bad);background:var(--bad-bg);border-color:transparent}
.pill.warn {color:var(--warn);background:var(--warn-bg);border-color:transparent}
.pill-neutral {color:var(--primary);background:var(--primary-tint);border-color:transparent}
.device-status {font-size:20px;font-weight:750;letter-spacing:-.03em;margin:2px 0 10px;overflow-wrap:anywhere}
.qr-wrap {margin:15px auto 21px;padding:14px;border-radius:14px;background:var(--surface-soft);text-align:center;max-width:340px}
.qr-wrap img {max-width:100%;height:auto;border-radius:9px;border:12px solid #fff;background:#fff}
.qr-wrap p {color:var(--muted);font-size:11px;line-height:1.6;margin:9px 0 0}
.critical-card {border-color:var(--border)}
.critical-card .btn {margin-top:16px}
.list-card {margin-top:0}
.counter {display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;background:var(--surface-soft);color:var(--muted);border:1px solid var(--border);border-radius:9px;font-size:12px;font-weight:800}
.item-list {display:grid;gap:9px}
.item {min-width:0;border:1px solid var(--border);background:var(--surface-soft);border-radius:11px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.item-main {display:grid;gap:3px;min-width:0}
.item-title {display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;font-size:13px;font-weight:800;overflow-wrap:anywhere}
.meta {font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.item-actions {display:flex;align-items:center;gap:7px;flex:none}
.item-actions .btn {max-width:100%}
.empty-state {border:1px dashed var(--border-strong);background:var(--surface-soft);border-radius:13px;text-align:center;padding:28px 15px;color:var(--muted);font-size:13px}
.empty-state strong {display:block;color:var(--ink);margin-bottom:5px}
.copy-field {display:flex;gap:8px;align-items:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:11px;padding:8px;margin:12px 0 16px;min-width:0}
.copy-field code {flex:1;overflow-wrap:anywhere;font-size:12px;color:var(--ink);padding-left:7px}
.feature-list {display:grid;gap:12px}
.feature-list>div {display:grid;gap:3px;padding:8px 0;border-bottom:1px solid var(--border)}
.feature-list>div:last-child {border:0}
.feature-list strong {font-size:13px}
.feature-list span {font-size:12px;color:var(--muted);line-height:1.65}
.feature-list.columns {grid-template-columns:repeat(2,minmax(0,1fr))}
.feature-list code {font-size:11px;overflow-wrap:anywhere}
.filters {display:grid;grid-template-columns:1fr 1fr minmax(170px,1.2fr);gap:10px;margin-bottom:17px}
.filter-field {display:grid;gap:6px;font-size:11px}
.filters select,.filters input {font-weight:500}
.message-entry .item-main {gap:4px}
.load-more {margin:16px auto 0;display:flex}
.snippet {border:1px solid var(--border);border-radius:11px;overflow:hidden;background:var(--surface-soft);margin:12px 0}
.snippet-head {display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-bottom:1px solid var(--border);font-size:11px;color:var(--muted);font-weight:700}
.snippet pre {overflow:auto;max-width:100%;margin:0;padding:14px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8;color:var(--ink)}
.app-footer {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px clamp(18px,3.5vw,44px);border-top:1px solid var(--border);color:var(--muted);font-size:10px}
/* Feedback is a toast, never a persistent banner */
.toast-stack {position:fixed;bottom:24px;right:24px;z-index:1000;max-width:min(420px,calc(100vw - 28px))}
.toast {display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);color:var(--ink);border:1px solid var(--border-strong);box-shadow:0 15px 50px rgba(9,20,45,.2);border-radius:12px;padding:11px 12px 11px 16px;font-size:12px;min-width:250px;line-height:1.5}
.toast[data-tone="error"] {border-left:4px solid var(--bad)}
.toast[data-tone="success"] {border-left:4px solid var(--ok)}
.toast .icon-button {width:30px;min-width:30px;height:30px;max-height:30px}
.dialog {background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:17px;box-shadow:0 24px 85px rgba(0,0,0,.23);padding:25px;max-height:min(88svh,620px);width:min(460px,calc(100vw - 28px));overflow:auto}
.dialog::backdrop {background:rgba(6,19,43,.62);backdrop-filter:blur(3px)}
.dialog h2 {font-size:21px;margin:11px 0 7px}
.dialog p {font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:15px}
.dialog-mark {display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:var(--warn);background:var(--warn-bg)}
.dialog-mark.positive {color:var(--ok);background:var(--ok-bg)}
.dialog-mark .icon {width:21px;height:21px}
.dialog label {margin:14px 0 6px}
.dialog-actions {display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;margin-top:19px}
.secret-code {display:block;padding:12px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--border);font-size:12px;line-height:1.6;overflow-wrap:anywhere;user-select:all}
/* Login */
.login-layout {display:grid;grid-template-columns:minmax(380px,46%) minmax(0,1fr);min-height:100svh}
.login-branding {padding:clamp(24px,5vw,64px);display:flex;flex-direction:column;background:radial-gradient(circle at 5% 86%,rgba(24,225,206,.16),transparent 42%),linear-gradient(152deg,#07162e,#122a5c 61%,#0c5662);color:#fff;overflow:hidden}
.login-brand {display:flex;align-items:center;gap:13px}
.login-brand img {border-radius:14px;object-fit:cover}
.login-brand>span {display:grid;gap:1px}
.login-brand strong {font-size:22px;letter-spacing:-.05em;line-height:1.1}
.login-brand small {font-size:11px;color:#b7cbea}
.login-promo {margin:auto 0;max-width:520px}
.login-promo .eyebrow {color:#8de7db}
.login-promo h1 {font-size:clamp(31px,3.5vw,50px);line-height:1.18;margin:16px 0 19px;letter-spacing:-.045em}
.login-promo p {color:#bed1e7;font-size:14px;line-height:1.8;max-width:435px}
.login-footnote {color:#b0c6dc;font-size:11px;margin:0}
.login-surface {display:grid;place-items:center;padding:25px;background:var(--bg)}
.login-card {width:min(100%,420px);padding:clamp(22px,4vw,32px);background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}
.login-card h2 {font-size:27px;margin:6px 0 5px}
.login-card .description {margin-bottom:25px}
.login-form {gap:9px}
.login-form label:not(:first-child) {margin-top:12px}
.login-submit {width:100%;margin-top:14px!important}
.password-control {display:flex;align-items:center;position:relative}
.password-control input {padding-right:50px}
.password-control button {position:absolute;right:4px;top:4px;width:32px;min-width:32px;height:32px;max-height:32px;padding:0;border:1px solid var(--border);background:var(--surface-soft);border-radius:7px}
.login-tools {display:flex;justify-content:flex-end;margin:-10px -10px 6px 0}
.login-tools .icon-button {border-radius:10px}
.mobile-brand {display:none;border-radius:19px;margin:8px auto 18px;width:78px;height:78px;object-fit:cover}
.login-error {position:fixed;bottom:23px;right:23px;z-index:10;background:var(--surface);border-left:4px solid var(--bad);border-radius:10px;padding:12px 18px;box-shadow:0 16px 45px rgba(0,0,0,.2);font-size:13px;max-width:calc(100vw - 46px)}
/* Viewports */
@media(max-width:1180px) { .stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))} .last-update {display:none} }
@media(max-width:950px) {
 .app-layout {display:flex;flex-direction:column}
 .sidebar {position:relative;top:auto;height:auto;min-height:0;min-width:0;width:100%;max-width:100%;display:block;z-index:5;padding:12px 18px 0;border-right:0;border-bottom:1px solid var(--border)}
 .brand {display:none}
 .side-caption,.sidebar-bottom {display:none}
 .navigation {flex-direction:row;min-width:0;max-width:100%;width:100%;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:8px}
 .nav-item {flex:none;width:auto;padding:0 11px;gap:7px}
 .nav-item .icon {width:16px;height:16px}
 .app-header {padding-top:17px;padding-bottom:17px}
 .app-content {padding-top:20px}
 .login-layout {grid-template-columns:minmax(320px,40%) minmax(0,1fr)}
}
@media(max-width:680px) {
 .content-grid,.filters {grid-template-columns:1fr}
 .stat-grid {gap:9px}
 .stat-card {padding:14px;min-height:105px}
 .stat-card strong {font-size:20px}
 .card {padding:17px;margin-bottom:12px}
 .welcome {padding:20px;min-height:135px}
 .welcome h2 {font-size:19px}
 .welcome img {width:66px;height:66px;border-radius:17px}
 .app-header-title h1 {font-size:19px}
 .app-header-title p {font-size:11px}
 .header-actions {gap:5px}
 .header-actions #logout {padding:0 9px;width:40px}
 .header-actions #logout span {display:none}
 .feature-list.columns {grid-template-columns:1fr}
 .app-footer {flex-direction:column;align-items:flex-start}
 .item {align-items:flex-start;flex-wrap:wrap}
 .item-actions {width:100%;justify-content:flex-start}
 .item-actions .btn {margin-top:1px}
 .login-layout {grid-template-columns:1fr}
 .login-branding {display:none}
 .login-surface {min-height:100svh;padding:18px}
 .mobile-brand {display:block}
 .toast-stack {right:14px;bottom:14px}
}
@media(max-width:380px) {
 .app-header {gap:9px;align-items:flex-start}
 .header-actions .icon-button {width:36px;min-width:36px}
 .header-actions #logout {width:36px}
 .app-header-title p {display:none}
 .welcome img {width:51px;height:51px}
 .welcome h2 {font-size:17px}
 .stat-heading {font-size:11px}
 .dialog-actions .btn {flex:1}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* OWN-WA-08: desktop-only editorial density. Mobile typography and sizes from R7 are unchanged. */
@media (min-width:951px) {
 :root {font-size:13px}
 .app-layout {grid-template-columns:228px minmax(0,1fr)}
 .sidebar {padding:19px 13px 16px}
 .brand {padding:0 7px 25px}
 .brand-icon {width:39px;height:39px;border-radius:11px}
 .brand-copy strong {font-size:18px;font-weight:680}
 .nav-item {font-size:12px;font-weight:550;gap:10px;padding:0 12px}
 .nav-item.is-active {font-weight:650}
 .side-caption,.eyebrow,.overline {font-weight:650;letter-spacing:.12em}
 .app-header {padding-top:18px;padding-bottom:17px}
 .app-header-title h1 {font-size:19px;font-weight:660}
 .app-content {padding-top:19px;padding-bottom:27px}
 .section-intro {margin-bottom:15px}
 .section-intro h2 {font-size:17px;font-weight:660}
 .welcome {min-height:138px;padding:19px 23px}
 .welcome h2 {font-size:20px;font-weight:670}
 .welcome img {width:88px;height:88px;border-radius:21px}
 .stat-grid {margin:15px 0;gap:11px}
 .stat-card {min-height:106px;padding:15px;gap:5px}
 .stat-card strong {font-size:20px;font-weight:650}
 .stat-heading {font-size:11px;font-weight:550}
 .card {padding:18px;margin-bottom:13px}
 .content-grid {gap:13px}
 .card-header {margin-bottom:12px}
 .card-header h2,.card-header h3 {font-size:15px;font-weight:650}
 .device-status {font-size:17px;font-weight:660}
 .btn,.icon-button {font-size:12px;font-weight:600}
 label {font-weight:600}
 .pill {font-weight:650}
 .item-title {font-weight:600}
 .counter {font-weight:650}
 .health-lines>div {padding:9px 0;font-size:12px}
 .health-lines>div strong {font-weight:650}
}
.ops-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.ops-toolbar-text {display:grid;gap:3px;min-width:0}
.ops-toolbar-text strong {font-size:13px;font-weight:650}
.ops-toolbar-text span {font-size:11px;color:var(--muted)}
.ops-actions {display:flex;gap:7px;flex-wrap:wrap}
.ops-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.ops-stat {display:grid;gap:7px;align-content:start;min-height:104px;margin:0}
.ops-stat>span {font-size:11px;color:var(--muted)}
.ops-stat>strong {font-size:20px;font-weight:650;line-height:1.15;overflow-wrap:anywhere}
.ops-stat>small {font-size:11px;color:var(--muted)}
.text-critical {color:var(--bad)}
.ops-projects {display:grid;gap:12px}
.ops-project {display:grid;gap:6px;padding:10px 0;border-bottom:1px solid var(--border)}
.ops-project:last-child {border:0}
.ops-project-head {display:flex;justify-content:space-between;gap:10px;align-items:center;min-width:0}
.ops-project-head strong {font-size:13px;font-weight:650;overflow-wrap:anywhere}
.ops-project-head span {font-size:11px;white-space:nowrap;color:var(--muted)}
.ops-progress {height:7px;border-radius:999px;background:var(--border);overflow:hidden}
.ops-progress-fill {display:block;height:100%;background:var(--teal);border-radius:999px;transition:width .16s}
.ops-progress-fill.near-limit {background:var(--warn)}
.ops-project small {font-size:11px;color:var(--muted)}
@media(max-width:1180px) {.ops-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px) {.ops-metrics {gap:9px}.ops-stat {padding:14px;min-height:100px}.ops-stat>strong {font-size:18px}.ops-toolbar {align-items:stretch}.ops-actions .btn {flex:1}}

/* OWN-WA-09 — Mobile application navigation; each route remains accessible by keyboard/label. */
@media (max-width:950px) {
 .app-layout {display:flex;flex-direction:column;min-height:100svh}
 .workspace {min-width:0;padding-bottom:calc(73px + env(safe-area-inset-bottom,0px))}
 .sidebar {position:fixed;inset:auto 0 0 0;top:auto;z-index:90;display:block;width:100%;max-width:none;height:auto;min-height:0;padding:8px max(10px,env(safe-area-inset-left,0px)) calc(9px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-right,0px));border-right:0;border-bottom:0;border-top:1px solid var(--border);border-radius:17px 17px 0 0;background:var(--sidebar);box-shadow:0 -8px 30px rgba(12,30,63,.10)}
 .navigation {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;width:100%;max-width:640px;margin:0 auto;gap:clamp(1px,1vw,6px);padding:0;overflow:visible}
 .nav-item {position:relative;width:100%;min-width:0;max-width:none;flex:none;height:40px;min-height:40px;max-height:40px;display:flex;align-items:center;justify-content:center;padding:0;gap:0;border-radius:11px}
 .nav-item .icon {width:20px;height:20px}
 .nav-item span {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .nav-item.is-active::after {content:"";position:absolute;bottom:3px;width:13px;height:3px;border-radius:5px;background:var(--primary)}
 .app-footer {margin-bottom:0}
 .toast-stack {bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:680px) {
 .app-footer {display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:17px 20px 22px;border-top:1px solid var(--border);background:var(--surface-soft)}
 .app-footer-brand {justify-content:center}
 .app-footer-meta {text-align:center}
 .login-surface {padding:16px}
 .login-card {padding:21px}
 .login-card .mobile-brand {display:block}
 .login-card .overline {display:block;text-align:center}
 .login-card h2,.login-card>.description {text-align:center}
}
.app-footer-brand {display:flex;align-items:center;gap:10px}
.app-footer-brand img {display:block;flex:none;border-radius:7px}
.app-footer-brand>span {display:flex;flex-direction:column;gap:1px}
.app-footer-brand strong {font-size:12px;font-weight:650;color:var(--ink)}
.app-footer-brand small {font-size:10px;color:var(--muted)}
.app-footer-meta {font-size:10px;line-height:1.5;color:var(--muted)}
.integration-download {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;row-gap:6px;border-color:var(--border-strong);background:var(--surface-tint)}
.integration-download-copy {min-width:0}
.integration-download-copy h3 {margin:5px 0 7px;font-size:16px;font-weight:650}
.integration-download-copy p {margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.integration-download .fine-print {grid-column:1/-1;margin:0}
@media(max-width:720px) {
 .integration-download {grid-template-columns:1fr}
 .integration-download>.btn {width:100%;margin:6px 0}
}
