/* LUCKY OPERATIONS / an editorial workbench. Local fonts, no external assets. */
.form-select{background-repeat:no-repeat!important}
.secret-toggle{white-space:nowrap}
:root,
[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f3ee;--surface:#fffefa;--surface-hover:#eeeee6;
  --border:#dedfd5;--border-light:#e9e9e1;
  --primary:#bc4d1c;--primary-hover:#a94017;--primary-light:#fae8dc;
  --primary-soft:#fcf4ed;--primary-border:#ebc5ae;--primary-glow:transparent;
  --green:#2f6a50;--green-bg:#e8f1e8;--green-border:#c6dbc8;
  --red:#b03e37;--red-bg:#f9eae6;--red-border:#e8c3bc;
  --amber:#95600e;--amber-bg:#f8eed6;--amber-border:#e6d3a0;
  --blue:#315b77;--blue-bg:#e8eff3;--blue-border:#c8d9e4;
  --purple:#67557e;--purple-bg:#f0eaf4;--purple-border:#d9cce5;
  --text:#626b62;--text-muted:#687062;--text-dark:#354238;--text-bright:#202f25;
  --r:10px;--r-lg:16px;--r-xl:22px;
  --shadow:0 2px 5px #17231f03;--shadow-md:0 8px 24px #17231f08;--shadow-lg:0 26px 80px #17231f24;
  --font:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;
  --mono:"Cascadia Code","Consolas","SFMono-Regular",monospace;
  --sidebar-w:244px;--topbar-h:76px;
  --login-bg:var(--bg);--card-bg:#fffefa;--input-bg:#fbfbf7;--input-border:#d8dcd1;
  --nav-bg:#17231f;--toast-bg:#fffefa;--modal-bg:#fffefa;
  --sidebar-text:#b6c2b9;--sidebar-strong:#f7f6ee;--sidebar-muted:#91a095;
  --sidebar-active:#f5e6d7;--sidebar-border:#ffffff12;--accent:#de6d30;
  --content-width:1560px;--ease:cubic-bezier(.2,.75,.25,1);
}
[data-theme="dark"]{
  color-scheme:dark;
  --bg:#111a16;--surface:#1a2620;--surface-hover:#26352b;
  --border:#344137;--border-light:#2a362d;
  --primary:#f5a875;--primary-hover:#ffc299;--primary-light:#493225;
  --primary-soft:#30271f;--primary-border:#79523a;
  --green:#9fc7a4;--green-bg:#243d2c;--green-border:#3b5941;
  --red:#f3a497;--red-bg:#442a25;--red-border:#75463c;
  --amber:#e7c37c;--amber-bg:#403722;--amber-border:#6a5a31;
  --blue:#a2c6dd;--blue-bg:#263944;--blue-border:#405c6c;
  --purple:#c6b3de;--purple-bg:#3a3045;--purple-border:#5c4b70;
  --text:#b3beb2;--text-muted:#9aa79a;--text-dark:#d6ddd1;--text-bright:#f2f2e9;
  --shadow:0 2px 8px #0000000d;--shadow-md:0 8px 24px #00000018;--shadow-lg:0 26px 80px #00000060;
  --card-bg:#1a2620;--input-bg:#162019;--input-border:#3b4a3d;
  --nav-bg:#0d1611;--toast-bg:#202d24;--modal-bg:#1a2620;
  --sidebar-text:#afbcaf;--sidebar-strong:#f2f2e9;--sidebar-muted:#8c9d90;
  --sidebar-active:#f5dcc6;--accent:#f2a272;
}
html{scroll-behavior:smooth;scroll-padding-top:100px;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:14px;line-height:1.65;font-weight:400;background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:0;min-width:320px}
body::before,body::after{display:none!important}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
a{color:var(--primary)}
a:hover{text-decoration:underline;text-underline-offset:4px}
button,button.btn,.btn,.nav-item,.quick-link,.filter-chip,.command-option,.server-tile,.theme-toggle,a{transition:background-color 160ms var(--ease),color 160ms var(--ease),border-color 160ms var(--ease),box-shadow 160ms var(--ease),transform 160ms var(--ease)!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,.nav-item:focus-visible,.radio-pill:focus-visible,.preset:focus-visible,.srv-card:focus-visible{outline:3px solid var(--accent)!important;outline-offset:3px!important;box-shadow:0 0 0 5px var(--bg)!important}
button:disabled{opacity:.48;cursor:not-allowed}
::selection{background:#efc5a9;color:#17231f}
svg{flex-shrink:0}
button svg,.btn svg{width:17px;height:17px}
code,kbd{font-family:var(--mono)}
kbd{font-size:11px;padding:1px 6px;background:var(--input-bg);border:1px solid var(--border);border-bottom-width:2px;border-radius:5px;color:var(--text-muted)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:10px;left:260px;z-index:10000;padding:10px 18px;border-radius:10px;background:var(--primary);color:var(--bg);transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
/* The navigation keeps its ink identity in both themes. */
.sidebar{width:var(--sidebar-w);background:var(--nav-bg);border-right:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0 12px;color:var(--sidebar-text)}
.sidebar::after{display:none}
.sidebar-logo{min-height:var(--topbar-h);padding:24px 12px;gap:11px;border-bottom:1px solid var(--sidebar-border)}
.sidebar-logo .sl-icon{width:36px;height:36px;background:#e8894f1f;border:1px solid #e8894f30;border-radius:11px;color:#ec9866}
.sidebar-logo .sl-icon svg{width:24px;height:24px}
.sidebar-logo .sl-text{font-family:var(--font);font-size:16px;letter-spacing:.02em;font-weight:700;color:var(--sidebar-strong)}
.sidebar-logo .sl-ver{font-family:var(--mono);font-size:9px;line-height:1.9;letter-spacing:.09em;color:var(--sidebar-muted);text-transform:uppercase}
.sidebar-nav{padding:26px 0 14px;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent}
.nav-sec{margin-bottom:26px}
.nav-sec-title{font-size:10px;font-weight:600;letter-spacing:.16em;color:var(--sidebar-muted);margin-bottom:10px;padding:0 14px}
.nav-item{width:100%;font-family:var(--font);text-align:left;border:0;background:transparent;display:flex;align-items:center;gap:11px;min-height:45px;padding:10px 14px;border-radius:9px;color:var(--sidebar-text);font-size:13px;font-weight:500;margin-bottom:3px;letter-spacing:.01em}
.nav-item svg{width:18px;height:18px;opacity:.7;stroke-width:1.6}
.nav-item:hover{background:#ffffff08;color:var(--sidebar-strong);text-decoration:none}
.nav-item.active{background:#f2e7d912;color:var(--sidebar-active);font-weight:650}
.nav-item.active::before{left:-12px;top:14px;bottom:14px;width:3px;border-radius:0 2px 2px 0;background:#de8651}
.nav-item.active svg{color:#e79a6c;opacity:1}
.nav-item:focus-visible{outline-offset:-3px!important;box-shadow:none!important}
.sidebar-footer{padding:18px 10px 22px;border-top:1px solid var(--sidebar-border)}
.sidebar-footer .sf-user{gap:10px;margin-bottom:16px}
.sidebar-footer .sf-avatar{width:34px;height:34px;border-radius:50%;background:#cedbc01a;color:#d6e0cc;border:1px solid #cedbc027;font-size:13px}
.sidebar-footer .sf-name{font-size:13px;color:var(--sidebar-strong);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.sidebar-footer .btn-outline{color:var(--sidebar-text);border-color:#ffffff1a;font-size:12px!important;background:#ffffff03;padding:6px 9px;min-height:34px}
.sidebar-footer .btn-outline:hover{background:#ffffff0c;border-color:#ffffff35;color:#fff}
/* Workbench chrome */
.topbar{left:var(--sidebar-w);height:var(--topbar-h);padding:0 clamp(24px,3vw,48px);background:var(--bg);border-bottom:1px solid var(--border);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.topbar::after{display:none}
.topbar-title{font-size:13px;letter-spacing:.02em;font-weight:500;color:var(--text-muted);display:flex;align-items:center;gap:9px}
.topbar-title::before{content:'WORKSPACE';font-family:var(--mono);font-size:10px;font-weight:400;letter-spacing:.09em;color:var(--text-muted);padding-right:14px;margin-right:5px;border-right:1px solid var(--border)}
.topbar-right{gap:10px!important}
.theme-toggle,#app-theme-toggle{width:38px!important;height:38px!important;border-radius:9px!important;background:var(--surface);border:1px solid var(--border);font-size:16px;box-shadow:none;color:var(--text-dark)}
.theme-toggle:hover{background:var(--surface-hover);border-color:var(--input-border);transform:none!important}
.command-trigger{display:inline-flex;align-items:center;gap:10px;min-width:164px;min-height:38px;padding:7px 11px;justify-content:space-between;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer;flex-shrink:0}
.command-trigger::before{content:'⌕';font:20px/1 var(--font);color:var(--text-muted);margin-right:-3px}
.command-trigger:hover{border-color:var(--text-muted);background:var(--surface-hover)}
.command-trigger kbd{font-size:9px;white-space:nowrap}
.topbar-date{font-size:10px;color:var(--text-muted);white-space:nowrap;margin-right:7px}
.topbar .btn{min-height:38px;font-size:12px}
.main{margin-left:var(--sidebar-w);margin-top:var(--topbar-h);padding:38px clamp(24px,3vw,48px) 54px;min-height:calc(100vh - var(--topbar-h));position:relative;isolation:isolate}
.main>*{max-width:var(--content-width);margin-left:auto;margin-right:auto}
.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px;min-height:86px}
.eyebrow{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.17em;text-transform:uppercase;font-weight:500;color:var(--primary);margin-bottom:10px}
.workspace-heading h1{font-size:clamp(25px,2.4vw,34px);font-weight:650;line-height:1.3;letter-spacing:-.055em;color:var(--text-bright);margin:0}
.page-description{font-size:13px;color:var(--text-muted);margin-top:8px;line-height:1.7;max-width:640px}
.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding-bottom:3px;flex-shrink:0}
.workspace-heading+.health-strip{margin-top:-8px}
.card,.panel{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden;margin-bottom:22px;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.card:hover,.panel:hover,[data-theme="light"] .card:hover{border-color:var(--border);box-shadow:var(--shadow)!important}
.card-head,.panel-head{padding:20px 24px;min-height:68px;border-bottom:1px solid var(--border-light);display:flex;justify-content:space-between;align-items:center;gap:16px}
.card-head h3,.panel-head h2,.panel-head h3{font-size:15px;font-weight:650;color:var(--text-bright);margin:0;letter-spacing:-.015em;display:flex;align-items:center;gap:9px}
.card-head h3 svg{color:var(--primary);width:18px;height:18px;stroke-width:1.7}
.card-body,.panel-body{padding:24px}
.panel-head>span,.panel-head>a{font-size:12px;color:var(--text-muted)}
.panel-head>a:hover{color:var(--primary)}
.panel-body:empty{display:none}
/* The overview is intentionally typographic; the orbit is a quiet brand mark. */
.console-hero{display:flex;position:relative;gap:24px;min-height:230px;padding:30px 36px;margin-bottom:24px;border-radius:var(--r-lg);overflow:hidden;background:#dce3d3;border:1px solid #cfd7c4;color:#24362b;isolation:isolate}
.hero-copy{position:relative;z-index:2;max-width:68%;display:flex;flex-direction:column;justify-content:center}
.hero-copy .eyebrow{color:#516345;margin-bottom:14px;font-size:10px}
.hero-copy h2{color:#203327;font-size:clamp(25px,2.6vw,37px);font-weight:600;letter-spacing:-.055em;line-height:1.38;margin:0 0 12px}
.hero-copy p{font-size:13px;line-height:1.9;max-width:520px;color:#596651}
.hero-copy .btn{align-self:flex-start;margin-top:20px;background:#263d2d;color:#f4f3e9;border-color:#263d2d;min-height:38px;font-size:12px}
.hero-copy .btn:hover{background:#1a2e20}
.hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:20px}
.hero-actions .btn{margin-top:0;min-height:38px;font-size:12px;align-self:auto}
.hero-actions .btn-outline{background:transparent;color:#2e4833;border-color:#a3b197}
.hero-actions .btn-outline:hover{background:#cdd9c0;color:#203327;border-color:#8b9e7b}
.hero-index{position:absolute;top:28px;right:32px;font:11px var(--mono);letter-spacing:.06em;color:#556744;z-index:2}
.hero-orbit{position:absolute;width:340px;height:340px;right:2%;top:50%;transform:translateY(-45%);opacity:.7;z-index:1;pointer-events:none}
.hero-orbit svg{width:100%;height:100%;overflow:visible}
.hero-orbit>.node-visual{position:static;width:100%;height:100%;color:#57713e;opacity:.9}
.hero-orbit>.hero-index{position:absolute;left:0;right:0;top:auto;bottom:18px;text-align:center;font:8px var(--mono);letter-spacing:.12em;color:#556744}
.console-hero>svg.hero-orbit{width:340px;height:340px}
[data-theme="dark"] .console-hero{background:#293a2a;border-color:#405140;color:#dbe4d1}
[data-theme="dark"] .hero-copy h2{color:#e4ead9}
[data-theme="dark"] .hero-copy p,[data-theme="dark"] .hero-index,[data-theme="dark"] .hero-copy .eyebrow{color:#b7c3a8}
[data-theme="dark"] .hero-copy .btn{background:#d7e0c9;color:#203327;border-color:#d7e0c9}
[data-theme="dark"] .hero-actions .btn-outline{background:transparent;color:#d5ddc9;border-color:#748568}
[data-theme="dark"] .hero-actions .btn-outline:hover{background:#364a33;border-color:#a6b496}
[data-theme="dark"] .hero-orbit>.node-visual,[data-theme="dark"] .hero-orbit>.hero-index{color:#b4c49b}
.metric-grid,.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.metric-card,.stat-card{min-width:0;padding:22px 24px;background:var(--card-bg);color:var(--text-bright);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow);position:relative;overflow:hidden;transform:none!important}
.metric-label{font-size:12px;color:var(--text);display:flex;align-items:center;gap:7px;font-weight:500}
.metric-label svg{width:15px;height:15px;stroke-width:1.6;color:var(--text-muted)}
.metric-value{font-family:var(--font);font-size:36px;letter-spacing:-.055em;font-weight:600;line-height:1.25;color:var(--text-bright);margin:14px 0 10px}
.metric-note{font-size:11px;color:var(--text-muted);line-height:1.6;display:flex;align-items:center;gap:6px}
.metric-note strong{color:var(--green);font-weight:500}
.metric-card .status-dot{width:6px;height:6px}
.stat-card::after{display:none}
.stat-card .sc-icon{width:28px;height:28px;background:var(--primary-soft);color:var(--primary);border-radius:8px;margin-bottom:16px}
.stat-card .sc-num{font-size:32px;line-height:1.3;letter-spacing:-.045em;color:var(--text-bright);font-weight:600;margin-bottom:6px}
.stat-card .sc-label{color:var(--text);font-size:12px;font-weight:500}
.s-red,.s-green,.s-blue,.s-amber,.s-purple{background:var(--card-bg)}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:22px;align-items:start;margin-bottom:0}
.overview-grid>.panel{width:100%;min-width:0}
.overview-grid>.panel:last-child{margin-bottom:0}
.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.quick-link{display:flex;align-items:center;gap:13px;min-height:76px;padding:18px 20px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text-dark);cursor:pointer;text-align:left}
.quick-link>svg{width:20px;height:20px;color:var(--primary);stroke-width:1.6}
.quick-link>span{flex:1;min-width:0}
.quick-link strong{display:block;font-size:13px;color:var(--text-bright);font-weight:600}
.quick-link small{font-size:11px;color:var(--text-muted);display:block;margin-top:3px}
.quick-link:hover{background:var(--primary-soft);border-color:var(--primary-border);text-decoration:none;transform:translateY(-2px)!important}
.quick-link .arrow{color:var(--text-muted);font-size:17px;font-weight:400;margin-left:auto}
.quick-link .quick-number{flex:0;font:10px var(--mono);color:var(--primary);align-self:flex-start;padding-top:2px;min-width:20px}
.quick-link>div{flex:1;min-width:0}
.quick-link>div>span{display:block;font-size:10px;color:var(--text-muted);margin-top:4px;line-height:1.7}
.quick-link>span:last-child:not(.quick-number){font-size:17px;color:var(--text-muted);flex:0;margin-left:auto}
.download-link{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border:1px solid var(--border);border-radius:11px;background:var(--surface);font-size:12px;color:var(--text-dark)}
.download-link:hover{background:var(--primary-soft);border-color:var(--primary-border);text-decoration:none}
.health-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:13px 18px;margin-bottom:24px;border:1px solid var(--border);border-radius:11px;background:var(--surface);font-size:12px;color:var(--text)}
.health-strip>span,.health-strip .health-label{display:inline-flex;gap:8px;align-items:center}
.health-strip .status-dot{margin-right:3px}
.health-strip .btn{padding:3px 10px;min-height:29px;font-size:11px}
.health-strip small{color:var(--text-muted)}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--text-muted);flex-shrink:0;vertical-align:middle}
.status-dot.green,.status-dot.success,.status-dot.online,.status-dot.ok{background:var(--green);box-shadow:0 0 0 3px var(--green-bg)}
.status-dot.red,.status-dot.error,.status-dot.offline{background:var(--red);box-shadow:0 0 0 3px var(--red-bg)}
.status-dot.amber,.status-dot.warning{background:var(--amber);box-shadow:0 0 0 3px var(--amber-bg)}
.status-dot.good{background:var(--green);box-shadow:0 0 0 3px var(--green-bg)}
.status-dot.bad{background:var(--red);box-shadow:0 0 0 3px var(--red-bg)}
.badge-green .status-dot{background:var(--green);width:5px;height:5px}
.badge-red .status-dot{background:var(--red);width:5px;height:5px}
.activity-list{display:flex;flex-direction:column}
.activity-item{display:flex;align-items:flex-start;gap:13px;padding:17px 0;border-bottom:1px solid var(--border-light);min-width:0;font-size:12px}
.activity-item:first-child{padding-top:0}
.activity-item:last-child{padding-bottom:0;border:0}
.activity-item>.status-dot{margin-top:7px}
.activity-item>div{min-width:0;flex:1}
.activity-item strong{display:block;font-weight:550;color:var(--text-dark);font-size:12px;overflow-wrap:anywhere}
.activity-item small{display:block;color:var(--text-muted);font-size:10px;margin-top:4px}
.activity-item time{font-family:var(--mono);font-size:10px;color:var(--text-muted);flex-shrink:0;padding-top:1px}
.activity-item>.activity-copy{flex:1;min-width:0}
.activity-copy>span{display:block;font-size:10px;color:var(--text-muted);margin-top:4px;overflow-wrap:anywhere;line-height:1.7}
.activity-copy strong>.activity-action{font-size:10px;font-weight:400;color:var(--text-muted);margin-left:3px}
.activity-item>.node-icon{flex:0 0 34px}
.activity-item>.badge{align-self:center;font-size:9px}
.node-icon{width:36px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:10px;border:1px solid var(--border);color:var(--text-dark);background:var(--input-bg)}
.node-icon svg{width:18px;height:18px;stroke-width:1.5}
.panel-foot{padding:14px 24px;font-size:10px;line-height:1.9;color:var(--text-muted);border-top:1px solid var(--border-light);background:var(--input-bg)}
.main>.panel-foot{border:1px solid var(--border);border-radius:10px;margin-top:0;margin-bottom:22px}
.panel-head .eyebrow{font-size:8px;letter-spacing:.12em;margin-bottom:6px}
/* Server nodes / endpoint cards */
.server-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}
.server-tile{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--r-lg);padding:24px;position:relative;overflow:hidden;min-width:0}
.server-tile:hover{border-color:var(--input-border);box-shadow:var(--shadow-md)}
.server-tile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.server-tile-head h2,.server-tile-head h3{font-size:17px;line-height:1.4;font-weight:600;letter-spacing:-.02em;color:var(--text-bright);margin:0}
.server-tile-head>div{min-width:0}
.server-tile-head>.node-icon{flex:0 0 36px}
.server-tile-head .node-index{font:9px var(--mono);letter-spacing:.07em;color:var(--text-muted);margin-right:auto}
.server-tile>h2{font-size:22px;line-height:1.4;font-weight:600;letter-spacing:-.04em;color:var(--text-bright);margin:0 0 10px}
.server-tile-head small{font:10px var(--mono);color:var(--text-muted);letter-spacing:.04em;display:block;margin-top:4px}
.server-endpoint{display:flex;align-items:center;gap:9px;margin:0 0 20px;font:15px var(--mono);color:var(--text-dark);overflow-wrap:anywhere;word-break:break-word}
.server-endpoint svg{width:16px;height:16px;color:var(--text-muted)}
.server-endpoint code{font:inherit;background:transparent;padding:0}
.server-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border-top:1px solid var(--border-light);border-bottom:1px solid var(--border-light);padding:17px 0;margin-bottom:18px}
.server-facts>div{min-width:0}
.server-facts dt,.server-facts small,.server-facts .label{display:block;color:var(--text-muted);font-size:10px;line-height:1.6;margin-bottom:5px;font-weight:400}
.server-facts>div>span{display:block;color:var(--text-muted);font-size:10px;line-height:1.6;margin-bottom:5px;font-weight:400}
.server-facts dd,.server-facts strong,.server-facts .value{display:block;color:var(--text-dark);font-size:13px;line-height:1.5;font-weight:500;margin:0;overflow-wrap:anywhere}
.server-facts .badge{font-size:10px;padding:2px 7px}
.server-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.server-actions .btn{min-height:36px;font-size:12px;padding:6px 12px}
.server-actions>.btn:first-child{margin-right:auto}
.server-tile .node-visual{position:absolute;right:24px;top:75px;opacity:.6}
.node-visual{width:70px;height:50px;pointer-events:none;color:var(--primary)}
.node-visual svg{width:100%;height:100%}
.server-test-detail{font-size:12px;padding:12px 14px;background:var(--input-bg);border-radius:9px;border:1px solid var(--border-light);margin:14px 0;overflow-wrap:anywhere;color:var(--text)}
.server-test-detail.error{color:var(--red);background:var(--red-bg);border-color:var(--red-border)}
.server-test-detail.success{color:var(--green);background:var(--green-bg);border-color:var(--green-border)}
.node-diagnostic{padding:11px 13px;margin-bottom:20px;border:1px solid var(--border-light);background:var(--input-bg);border-radius:8px;font-size:11px;color:var(--text-muted);line-height:1.8;overflow-wrap:anywhere}
.node-diagnostic.has-error{background:var(--red-bg);border-color:var(--red-border);color:var(--red)}
/* Forms / actions */
.btn{min-height:40px;padding:9px 17px;font-size:13px;font-weight:550;line-height:1.4;border-radius:9px;border-width:1px;letter-spacing:.01em;box-shadow:none}
.btn:active:not(:disabled){transform:translateY(1px)!important;box-shadow:none!important}
.btn-primary{background:var(--primary);color:#fffaf6;border-color:var(--primary)}
.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover);box-shadow:none!important}
[data-theme="dark"] .btn-primary{color:#211b15}
.btn-outline,[data-theme="light"] .btn-outline{background:transparent;border-color:var(--input-border);color:var(--text-dark)}
.btn-outline:hover:not(:disabled){background:var(--surface-hover);border-color:var(--text-muted);color:var(--text-bright)}
.btn-green{background:var(--green);border-color:var(--green);color:#fff}
[data-theme="dark"] .btn-green{color:#16241a}
.btn-green:hover:not(:disabled){filter:brightness(.96);box-shadow:none}
.btn-sm{min-height:33px;padding:6px 11px;font-size:12px;border-radius:7px}
.btn-block{width:100%}
.btn-danger{background:var(--red-bg);color:var(--red);border-color:var(--red-border)}
.btn-danger:hover:not(:disabled){background:var(--red);color:#fff;border-color:var(--red)}
.btn-quiet{background:transparent;border-color:transparent;color:var(--text-muted)}
.btn-quiet:hover:not(:disabled){background:var(--surface-hover);color:var(--text-bright)}
.btn.danger{color:var(--red)}
.btn.danger:hover:not(:disabled){background:var(--red-bg);border-color:var(--red-border)}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);cursor:pointer}
.icon-button:hover{background:var(--surface-hover);color:var(--text-dark)}
.form-group{margin-bottom:20px}
.form-group>label{font-size:12px;font-weight:600;line-height:1.5;color:var(--text-dark);margin-bottom:8px}
.form-input,.form-select,.form-textarea{font-family:var(--font);padding:10px 13px;min-height:43px;font-size:13px;background:var(--input-bg);border:1px solid var(--input-border);border-radius:9px;color:var(--text-bright);line-height:1.5;transition:border-color 150ms var(--ease),box-shadow 150ms var(--ease)!important}
.form-input::placeholder,.form-textarea::placeholder{color:var(--text-muted);opacity:.85}
.form-input:hover,.form-select:hover,.form-textarea:hover{border-color:var(--text-muted)}
.form-input:focus,.form-select:focus,.form-textarea:focus{background:var(--input-bg);border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.form-input:disabled,.form-select:disabled{opacity:.6;cursor:not-allowed;background:var(--surface-hover)}
.form-textarea{min-height:96px;line-height:1.8}
.form-select{padding-right:34px;background-position:right 14px center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4 3 3 3-3' stroke='%23757d70' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.form-row{gap:16px}
.form-hint{font-size:11px;color:var(--text-muted);margin-top:6px;line-height:1.7}
input[type="checkbox"],input[type="radio"]{accent-color:var(--primary);cursor:pointer;min-width:16px;min-height:16px;vertical-align:middle}
.radio-group,.presets{gap:7px}
.radio-pill,.preset,[data-theme="light"] .radio-pill,[data-theme="light"] .preset{font-size:12px;font-weight:500;border:1px solid var(--border);background:var(--input-bg);color:var(--text);border-radius:7px;line-height:1.5;min-height:34px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center}
.radio-pill:hover,.preset:hover{border-color:var(--primary-border);color:var(--primary)}
.radio-pill.active,.preset.on{border-color:var(--primary-border);background:var(--primary-light);color:var(--primary);font-weight:600}
.srv-cards{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.srv-card,[data-theme="light"] .srv-card{background:var(--input-bg);border:1px solid var(--border);padding:14px;border-radius:10px}
.srv-card::before{display:none}
.srv-card:hover,.srv-card.on{border-color:var(--primary-border);background:var(--primary-soft)}
.srv-card-name{font-size:13px;font-weight:600}
.srv-card-info{font-size:11px;margin-top:5px}
.account-form{max-width:420px;padding:8px 0}
.account-row{grid-template-columns:112px minmax(0,1fr);gap:14px;margin-bottom:18px}
.account-row .form-input{height:39px;padding:8px 11px;min-height:39px}
.account-row label{font-size:12px;font-weight:500}
.account-check{margin-bottom:24px;font-size:13px}
.collapse-header{padding:13px 15px;background:var(--input-bg);border-color:var(--border);border-radius:10px}
.collapse-header .ch-left{font-size:13px}
.collapse-header.open{border-color:var(--primary-border);background:var(--primary-soft)}
.collapse-body.open{max-height:2400px}
/* Table system */
.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 24px;border-bottom:1px solid var(--border-light)}
.toolbar-group{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.table-toolbar .form-input,.table-toolbar .form-select{min-height:37px;font-size:12px;padding:8px 11px;width:auto;max-width:100%}
.table-toolbar .form-input{min-width:190px}
.table-toolbar .form-select{padding-right:30px}
.table-toolbar .btn{min-height:37px}
.filter-chips{display:flex;align-items:center;gap:4px;background:var(--input-bg);border:1px solid var(--border);padding:3px;border-radius:8px;flex-wrap:wrap}
.filter-chip{padding:6px 11px;min-height:30px;border:1px solid transparent;border-radius:6px;font-size:11px;font-weight:500;background:transparent;color:var(--text);cursor:pointer}
.filter-chip:hover{color:var(--text-bright);background:var(--surface-hover)}
.filter-chip.active{background:var(--card-bg);border-color:var(--border);color:var(--text-bright);box-shadow:0 1px 3px #17231f08}
#user-filters.table-toolbar{justify-content:flex-start;gap:6px;padding-top:12px;padding-bottom:12px;background:var(--input-bg)}
.data-table{font-size:13px;line-height:1.5;width:100%;border-collapse:separate;border-spacing:0}
.data-table th{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:none;color:var(--text-muted);padding:15px 20px;background:var(--input-bg);border-bottom:1px solid var(--border);white-space:nowrap;line-height:1.5;z-index:1}
[data-theme="light"] .data-table th{background:var(--input-bg)}
.data-table td{font-size:12px;padding:17px 20px;border-bottom:1px solid var(--border-light);color:var(--text);vertical-align:middle;line-height:1.6}
.data-table td strong{font-weight:600;color:var(--text-dark)}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table tr:hover td{background:var(--primary-soft)}
.data-table code,[data-theme="light"] .data-table code{font-size:11px;background:var(--surface-hover);color:var(--text-dark);padding:3px 6px;border-radius:5px;overflow-wrap:anywhere}
.data-table .btn{font-size:11px;min-height:31px;padding:5px 10px;line-height:1.5}
.data-table th:first-child,.data-table td:first-child{padding-left:24px}
.data-table th:last-child,.data-table td:last-child{padding-right:24px}
.data-table td:last-child{white-space:nowrap}
.data-table td .badge{font-size:10px}
.data-table td input[type="checkbox"]{width:16px!important;height:16px!important}
.row-actions .btn{margin-right:5px}
.row-actions .btn:last-child{margin-right:0}
.cell-sub{display:block;font-size:10px;color:var(--text-muted);margin-top:5px;line-height:1.5}
.badge{font-size:10px;font-weight:550;padding:3px 8px;border-radius:5px;line-height:1.45;gap:5px;white-space:nowrap;vertical-align:middle}
.badge-green{background:var(--green-bg);border:1px solid var(--green-border);color:var(--green)}
.badge-red{background:var(--red-bg);border:1px solid var(--red-border);color:var(--red)}
.badge-amber{background:var(--amber-bg);border:1px solid var(--amber-border);color:var(--amber)}
.badge-blue{background:var(--blue-bg);border:1px solid var(--blue-border);color:var(--blue)}
.badge-purple{background:var(--purple-bg);border:1px solid var(--purple-border);color:var(--purple)}
.badge-gray,[data-theme="light"] .badge-gray{background:var(--input-bg);border:1px solid var(--border);color:var(--text)}
.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:15px 24px;border-top:1px solid var(--border-light);font-size:11px;color:var(--text-muted)}
.table-scroll{overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.scroll-hint{display:none;font-size:10px;color:var(--text-muted);padding:8px 20px;background:var(--input-bg);border-bottom:1px solid var(--border-light)}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;color:var(--text-muted)}
.pagination button{min-width:31px;min-height:31px;padding:4px 9px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text-dark);cursor:pointer}
.pagination button[aria-current="page"],.pagination button.active{background:var(--text-bright);border-color:var(--text-bright);color:var(--bg)}
.pagination button:hover:not(:disabled){border-color:var(--text-muted);background:var(--surface-hover)}
.pagination .form-select{min-height:31px;height:31px;padding:4px 27px 4px 9px;width:65px;font-size:11px;border-radius:6px}
.pagination>span{min-width:44px;text-align:center;font:10px var(--mono)}
.secret-toggle{font-family:var(--mono);font-size:11px;color:var(--text);border:0;background:var(--input-bg);border-radius:5px;padding:3px 7px;cursor:pointer;min-height:29px}
.secret-toggle:hover{color:var(--primary);background:var(--primary-light)}
.secret-toggle svg{width:13px;height:13px;margin-left:7px;vertical-align:middle}
.secret-toggle>span{font:9px var(--font);margin-left:8px;color:var(--text-muted)}
.selection-bar{background:var(--input-bg);padding-top:12px;padding-bottom:12px;justify-content:flex-start;gap:10px}
.selection-bar>.toolbar-group{margin-left:auto}
.selection-hint{font-size:10px;color:var(--text-muted)}
.selection-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--primary-soft);border:1px solid var(--primary-border);padding:11px 14px;margin-bottom:16px;border-radius:10px;font-size:12px}
.user-check-table{border:1px solid var(--border);border-radius:10px;max-height:340px;scrollbar-width:thin}
.user-check-table th{font-size:11px;background:var(--input-bg);padding:11px 14px;color:var(--text-muted);border-bottom-color:var(--border)}
.user-check-table td{font-size:12px;padding:9px 14px;border-bottom-color:var(--border-light)}
.empty-state{padding:48px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:220px;color:var(--text-muted)}
.empty-state>svg{width:36px;height:36px;stroke-width:1.2;color:var(--text-muted);margin-bottom:16px;opacity:.7}
.empty-state .empty-icon{width:54px;height:54px;border:1px solid var(--border);border-radius:16px;background:var(--input-bg);display:flex;align-items:center;justify-content:center;margin-bottom:18px;color:var(--text-muted)}
.empty-state h3,.empty-state strong{font-size:15px;color:var(--text-dark);font-weight:600;margin-bottom:7px}
.empty-state p{font-size:12px;line-height:1.8;max-width:370px}
.empty-state .btn{margin-top:18px;min-height:36px;font-size:12px}
.empty-state.error{color:var(--red)}
.empty-state.error h3{color:var(--red)}
.loading-center{min-height:170px;padding:38px;font-size:12px;gap:12px;color:var(--text-muted)}
.spinner,.spinner-sm{border-color:var(--border);border-top-color:var(--primary);border-width:2px;animation:console-spin .75s linear infinite!important}
.spinner{width:18px;height:18px}
.spinner-sm{width:14px;height:14px}
.skeleton{background:var(--surface-hover);border-radius:5px;min-height:16px;animation:none!important}
@keyframes console-spin{to{transform:rotate(360deg)}}
@keyframes console-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
/* Dialogs and task progress; functional focus handling is supplied in JS. */
.modal-overlay,.progress-overlay,.command-overlay{background:#101a164d;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important;padding:24px;animation:console-enter 180ms var(--ease)!important}
.modal-box,.progress-card,.command-dialog{background:var(--modal-bg);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:20px;animation:console-enter 180ms var(--ease)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.modal-box{max-width:580px;max-height:86dvh;max-height:min(86vh,860px)}
.modal-box::before,.progress-card::before{display:none}
.modal-head{padding:23px 26px;border-bottom:1px solid var(--border-light);gap:16px}
.modal-head h3{font-size:17px;font-weight:600;color:var(--text-bright);letter-spacing:-.02em}
.modal-close,[data-theme="light"] .modal-close{width:32px;height:32px;border-radius:8px;background:var(--input-bg);color:var(--text-muted);font-size:17px;border:1px solid var(--border);flex-shrink:0}
.modal-close:hover{background:var(--red-bg);color:var(--red);border-color:var(--red-border)}
.modal-body{padding:26px;scrollbar-width:thin;scrollbar-color:var(--border) transparent;overscroll-behavior:contain}
.modal-foot{padding:18px 26px;border-top:1px solid var(--border-light);background:var(--input-bg);gap:9px}
.modal-foot .btn{min-width:82px}
.modal-description{font-size:13px;line-height:1.8;color:var(--text);margin-bottom:18px}
.confirm-summary{padding:17px 19px;border:1px solid var(--border);border-radius:10px;background:var(--input-bg);margin:17px 0;font-size:12px;line-height:1.8;color:var(--text)}
.confirm-summary strong{color:var(--text-dark);font-weight:600}
.confirm-summary dl{display:grid;grid-template-columns:auto 1fr;gap:8px 24px}
.confirm-summary dt{color:var(--text-muted)}
.confirm-summary dd{text-align:right;color:var(--text-dark);margin:0;overflow-wrap:anywhere}
.confirm-summary.danger{background:var(--red-bg);border-color:var(--red-border);color:var(--red)}
.preview-notice{display:flex;align-items:flex-start;gap:11px;padding:15px 18px;border:1px solid var(--amber-border);border-radius:10px;background:var(--amber-bg);font-size:12px;line-height:1.8;color:var(--amber);margin:18px 0}
.preview-notice svg{width:17px;height:17px;margin-top:3px}
.progress-card{max-width:430px;padding:30px}
.progress-bar-bg{height:6px;margin:22px 0;background:var(--border-light);border-radius:8px}
.progress-bar{background:var(--primary);border-radius:8px;animation:none!important;transition:width 160ms var(--ease)!important}
.progress-stats{gap:10px;margin:20px 0}
.progress-stat,[data-theme="light"] .progress-stat{border:1px solid var(--border-light);background:var(--input-bg);border-radius:9px;padding:15px 8px}
.progress-stat .ps-num{font-size:23px;font-weight:550;line-height:1.4}
.progress-stat .ps-label{font-size:10px;letter-spacing:.04em;margin-top:3px}
.copy-box,[data-theme="light"] .copy-box{font:12px/1.95 var(--mono);padding:15px 18px;border:1px solid var(--border);background:var(--input-bg);border-radius:10px;max-height:260px}
.command-overlay{position:fixed;inset:0;z-index:800;display:flex;align-items:flex-start;justify-content:center;padding-top:min(15vh,130px)}
.command-dialog{width:100%;max-width:570px;max-height:75dvh;overflow:hidden;display:flex;flex-direction:column}
.command-input{font:14px var(--font);width:100%;background:transparent;color:var(--text-bright);border:0;border-bottom:1px solid var(--border);min-height:68px;padding:20px 24px;outline:none;border-radius:20px 20px 0 0}
.command-input::placeholder{color:var(--text-muted)}
.command-input:focus-visible{outline:0!important;box-shadow:inset 0 -2px var(--primary)!important}
.command-results{padding:10px;overflow:auto;min-height:80px;scrollbar-width:thin}
.command-option{width:100%;display:flex;align-items:center;gap:12px;text-align:left;min-height:49px;padding:11px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-dark);font-size:13px;cursor:pointer}
.command-option svg{width:18px;height:18px;stroke-width:1.6;color:var(--text-muted)}
.command-option:hover,.command-option.active,.command-option[aria-selected="true"]{border-color:var(--primary-border);background:var(--primary-soft);color:var(--primary)}
.command-option small{font-size:10px;margin-left:auto;color:var(--text-muted)}
.command-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--text-muted);padding:12px 21px;border-top:1px solid var(--border-light);background:var(--input-bg)}
.command-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 0}
.command-head h3{font-size:13px;color:var(--text-dark);font-weight:600}
.command-head .btn{min-height:27px;font:10px var(--mono);padding:4px 7px;border:1px solid var(--border);background:var(--input-bg)}
.command-option>span:last-child{margin-left:auto;color:var(--text-muted);font-size:14px}
.command-foot{padding:12px 22px;border-top:1px solid var(--border-light);background:var(--input-bg);color:var(--text-muted);font:10px var(--mono)}
body.dialog-open,body:has(>.command-overlay),body:has(>.progress-overlay){overflow:hidden}
body[data-preview]>.preview-notice{position:fixed;bottom:12px;left:calc(var(--sidebar-w) + 24px);right:24px;z-index:80;margin:0;padding:8px 14px;min-height:33px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--amber-border);border-radius:8px;font-size:10px;line-height:1.6;background:var(--amber-bg);color:var(--amber);box-shadow:var(--shadow-md);text-align:center}
body[data-preview] .main{padding-bottom:80px}
/* Login is the same product, not a separate template. */
#login-page{background:var(--bg);padding:40px 24px;overflow:auto}
#login-page::before{display:none}
.login-card{max-width:430px;border:1px solid var(--border);padding:38px;border-radius:20px;background:var(--card-bg);box-shadow:var(--shadow-md);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.login-card::before{display:none}
.login-card .logo{background:var(--primary-light);border:1px solid var(--primary-border);width:52px;height:52px;border-radius:14px;margin-bottom:24px;animation:none!important}
.login-card h1{font-family:var(--font);font-size:23px;line-height:1.4;letter-spacing:-.035em;font-weight:600;margin-bottom:8px}
.login-card>.sub{font-size:12px;line-height:1.8;color:var(--text-muted);margin-bottom:26px}
.login-mode{padding:4px;border:1px solid var(--border);background:var(--input-bg);gap:4px;margin-bottom:24px;border-radius:9px}
.login-mode-btn{font:500 12px var(--font);border-radius:6px;min-height:38px;padding:9px 4px;color:var(--text);border:1px solid transparent;background:transparent;cursor:pointer}
.login-mode-btn.on{background:var(--card-bg);color:var(--text-bright);box-shadow:0 1px 4px #17231f0a;border-color:var(--border)}
.login-card .form-group{margin-bottom:20px}
.login-card .form-input{min-height:46px;font-size:14px}
.login-card #login-btn{height:46px!important;margin-top:8px!important;letter-spacing:.03em;font-size:13px!important}
.login-error{background:var(--red-bg);border-color:var(--red-border);color:var(--red);font-size:12px;border-radius:9px;padding:11px 14px;margin-bottom:20px;line-height:1.8}
.login-theme{top:24px;right:28px}
.login-brand{position:fixed;top:30px;left:36px;display:flex;align-items:center;gap:9px;color:var(--text-bright);font-size:14px;font-weight:600}
.login-brand small{font:9px var(--mono);letter-spacing:.14em;color:var(--text-muted)}
.login-note{font:10px/1.8 var(--mono);letter-spacing:.07em;color:var(--text-muted);position:fixed;bottom:24px;left:0;right:0;text-align:center}
/* Feedback does not cover the primary action. */
#toasts{top:90px;right:24px;width:340px;max-width:calc(100vw - 32px);gap:9px}
.toast{background:var(--toast-bg);padding:14px 16px;border-radius:11px;border:1px solid var(--border);box-shadow:0 8px 24px #17231f18;font-size:12px;font-weight:400;line-height:1.65;gap:11px;align-items:flex-start;animation:console-enter 180ms var(--ease)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow-wrap:anywhere}
.toast .ti{width:22px;height:22px;border-radius:6px;flex-shrink:0;font-size:12px;margin-top:-1px}
.toast.out{opacity:0;transform:translateY(-4px);transition:opacity 180ms var(--ease),transform 180ms var(--ease)!important;animation:none!important}
::-webkit-scrollbar{width:7px;height:7px}
::-webkit-scrollbar-thumb,[data-theme="light"] ::-webkit-scrollbar-thumb{background:var(--border);border:1px solid var(--bg);border-radius:7px}
::-webkit-scrollbar-thumb:hover,[data-theme="light"] ::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}
::-webkit-scrollbar-track{background:transparent}
/* Intermediate widths: keep the control surface calm, not merely smaller. */
@media(min-width:1800px){.main{padding-left:max(48px,calc((100vw - var(--sidebar-w) - var(--content-width))/2));padding-right:max(48px,calc((100vw - var(--sidebar-w) - var(--content-width))/2))}.topbar{padding-left:48px;padding-right:48px}}
@media(max-width:1280px){
  :root,[data-theme="light"]{--sidebar-w:220px}
  .main{padding:30px 26px 44px}.topbar{padding:0 26px}
  .metric-card,.stat-card{padding:20px}.metric-value{font-size:32px}
  .overview-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}
  .card-head,.panel-head{padding:18px 20px}.card-body,.panel-body{padding:20px}
  .console-hero{padding:28px}.hero-orbit{right:-40px;opacity:.5}
}
@media(max-width:1100px){
  :root,[data-theme="light"]{--sidebar-w:204px}
  .sidebar{padding:0 10px}.sidebar-logo{padding-left:7px;padding-right:7px;gap:8px}.sidebar-logo .sl-text{font-size:14px}.sidebar-logo .sl-ver{font-size:8px}
  .sidebar-logo .sl-icon{width:31px;height:31px}.nav-item{padding:10px 12px;font-size:12px;gap:9px}.nav-item.active::before{left:-10px}
  .main{padding:28px 22px 40px}.topbar{padding:0 22px}
  .workspace-heading{gap:16px;margin-bottom:24px}.page-description{font-size:12px;max-width:440px}
  .heading-actions{gap:7px}.heading-actions .btn{font-size:12px;padding-left:12px;padding-right:12px}
  .metric-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .overview-grid{grid-template-columns:1fr}.overview-grid>.panel:last-child{margin-bottom:22px}
  .server-grid{grid-template-columns:1fr}.server-tile{padding:24px}
  .quick-links{gap:9px}.quick-link{padding:15px 12px;gap:9px}.quick-link>svg{width:17px;height:17px}.quick-link strong{font-size:12px}.quick-link small{font-size:10px}
  .console-hero{min-height:218px}.hero-copy{max-width:74%}.hero-orbit{width:300px;height:300px;right:-55px;opacity:.38}.console-hero>svg.hero-orbit{width:300px;height:300px}
  .table-toolbar{padding:16px 20px;gap:12px}.table-toolbar>.toolbar-group{flex-wrap:wrap}
  .topbar-date{display:none}.command-trigger{min-width:150px}.topbar-title::before{display:none}
  .data-table th{padding:13px 16px}.data-table td{padding:15px 16px}.data-table th:first-child,.data-table td:first-child{padding-left:20px}.data-table th:last-child,.data-table td:last-child{padding-right:20px}
}
@media(max-width:768px){
  :root,[data-theme="light"]{--sidebar-w:244px;--topbar-h:65px}
  html{scroll-padding-top:82px}.main{margin-left:0;margin-top:var(--topbar-h);padding:26px 20px 36px;min-height:calc(100dvh - var(--topbar-h))}
  .main>*{width:100%;min-width:0}.topbar{left:0;padding:0 20px;height:var(--topbar-h);background:var(--bg)}
  .topbar-title{font-size:12px;gap:6px}.topbar-title::before{font-size:8px;padding-right:10px;margin-right:2px;letter-spacing:.05em}
  .topbar-right{gap:7px!important}.topbar .btn{font-size:11px;padding:7px 10px}.command-trigger{min-width:0}.command-trigger kbd{display:none}
  .topbar .command-trigger{width:36px;height:36px;min-height:36px;padding:0;justify-content:center}.command-trigger .command-label{display:none}
  .command-trigger>span,.command-trigger kbd{display:none}.command-trigger::before{margin:0;font-size:22px}.topbar-date{display:none}
  #app-theme-toggle{width:35px!important;height:35px!important}
  #menu-btn{display:inline-flex!important;width:35px;height:35px;min-height:35px;padding:0;border-radius:8px}
  .sidebar{position:fixed;inset:0 auto 0 0;width:min(82vw,280px);max-width:280px;transform:translateX(-101%);transition:transform 220ms var(--ease)!important;box-shadow:18px 0 60px #0b17112b;z-index:100;padding:0 14px;height:100dvh}
  .sidebar.open{transform:translateX(0)!important}.sidebar-logo{min-height:80px;padding:23px 10px;gap:11px}.sidebar-logo .sl-icon{width:36px;height:36px}.sidebar-logo .sl-text{font-size:16px}.sidebar-logo .sl-ver{font-size:9px}
  .sidebar-nav{padding-top:24px}.nav-item{font-size:14px;min-height:46px;padding:11px 14px}.nav-item.active::before{left:-14px}.nav-item svg{width:19px;height:19px}.nav-sec{margin-bottom:24px}
  .sidebar-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}.sidebar-footer .btn{min-height:38px}
  .sidebar-mask{display:none;position:fixed;inset:0;background:#0b17116b;z-index:95}.sidebar-mask.show{display:block}
  .workspace-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px;min-height:0}.workspace-heading h1{font-size:28px;letter-spacing:-.05em}.eyebrow{margin-bottom:8px;font-size:9px}.page-description{font-size:12px;max-width:100%;margin-top:7px}
  .heading-actions{width:100%;justify-content:flex-start;padding:0;gap:8px}.heading-actions .btn{min-height:40px;font-size:12px}
  .console-hero{padding:26px 24px;min-height:226px;margin-bottom:20px}.hero-copy{max-width:85%}.hero-copy h2{font-size:27px}.hero-copy p{font-size:12px;max-width:380px}.hero-copy .eyebrow{font-size:9px;margin-bottom:13px}.hero-copy .btn{min-height:39px;font-size:11px}
  .hero-index{right:20px;top:20px;font-size:9px}.hero-orbit{right:-96px;width:290px;height:290px;opacity:.3}.console-hero>svg.hero-orbit{width:290px;height:290px}
  .hero-actions{gap:8px;margin-top:19px}.hero-actions .btn{font-size:11px;min-height:39px;margin-top:0}.hero-orbit>.hero-index{display:none}
  .metric-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.metric-card,.stat-card{padding:18px 17px;border-radius:13px}.metric-label{font-size:11px}.metric-value{font-size:31px;margin:12px 0 9px}.metric-note{font-size:10px}.stat-card .sc-num{font-size:28px}.stat-card .sc-label{font-size:11px}.stat-card .sc-icon{margin-bottom:13px}
  .overview-grid{grid-template-columns:1fr;gap:0}.overview-grid>.panel:last-child{margin-bottom:20px}.dash-grid{grid-template-columns:1fr!important;gap:0!important}
  .card,.panel{margin-bottom:20px;border-radius:14px}.card-head,.panel-head{padding:18px 20px;min-height:62px;gap:12px}.card-head h3,.panel-head h2,.panel-head h3{font-size:14px}.card-body,.panel-body{padding:20px}
  .quick-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.quick-link{padding:15px 11px;min-height:106px;flex-direction:column;align-items:flex-start;gap:9px;border-radius:11px}.quick-link>span{flex:0}.quick-link .arrow{display:none}.quick-link strong{font-size:11px}.quick-link small{font-size:9px;line-height:1.6;margin-top:3px}.quick-link>svg{width:18px;height:18px}
  .quick-link>span:last-child:not(.quick-number){display:none}.quick-link .quick-number{font-size:9px;padding:0}.quick-link>div>span{font-size:9px;line-height:1.7;margin-top:4px}.panel-foot{padding:13px 20px;font-size:10px}
  .health-strip{padding:12px 14px;gap:10px;margin-bottom:20px;font-size:11px;border-radius:9px}.health-strip small{font-size:10px}.health-strip .btn{min-height:30px}
  .activity-item{gap:11px;padding:15px 0}.activity-item strong{font-size:12px}.activity-item time{font-size:9px;white-space:nowrap}
  .server-grid{grid-template-columns:1fr;gap:16px;margin-bottom:20px}.server-tile{padding:21px;border-radius:14px}.server-tile-head{margin-bottom:20px}.server-tile-head h2,.server-tile-head h3{font-size:16px}.server-endpoint{font-size:13px;margin-bottom:18px}.server-facts{gap:10px;padding:15px 0}.server-facts dt,.server-facts small{font-size:9px}.server-facts dd,.server-facts strong{font-size:12px}.server-actions .btn{min-height:40px;font-size:11px;padding:7px 11px}
  .server-tile>h2{font-size:21px}.server-facts>div>span{font-size:9px}.server-facts{grid-template-columns:repeat(4,minmax(0,1fr))}.node-index{font-size:8px!important}.node-diagnostic{font-size:10px;margin-bottom:17px}.server-tile-head>.badge{font-size:9px}.server-tile-head>.node-icon{flex-basis:33px;width:33px;height:33px}
  .form-row{grid-template-columns:1fr!important;gap:0!important}.form-group{margin-bottom:19px}.form-input,.form-select,.form-textarea{font-size:14px;min-height:45px}.form-group>label{font-size:12px}.radio-pill,.preset{min-height:39px;padding:8px 12px}.srv-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.srv-card{padding:12px}.srv-card-name{font-size:12px}.srv-card-info{font-size:10px}
  .table-toolbar{padding:16px 18px;gap:12px;align-items:stretch}.toolbar-group{width:100%;gap:8px}.table-toolbar .form-input{min-width:0;flex:1;width:auto;min-height:42px;font-size:13px}.table-toolbar .form-select{flex:1;min-width:120px;min-height:42px;font-size:12px}.table-toolbar .btn{min-height:42px}.table-toolbar .toolbar-group:has(.filter-chips){overflow:auto}.filter-chips{flex-wrap:nowrap;max-width:100%;overflow:auto}.filter-chip{min-height:36px;padding:7px 11px;white-space:nowrap}
  #user-filters.table-toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:5px}#user-filters .filter-chip{flex-shrink:0}
  .data-table{min-width:720px;font-size:12px}.data-table th{font-size:10px;padding:13px 16px}.data-table td{font-size:12px;padding:14px 16px}.data-table th:first-child,.data-table td:first-child{padding-left:18px}.data-table th:last-child,.data-table td:last-child{padding-right:18px}.data-table .btn{min-height:36px;font-size:11px;padding:6px 11px}.scroll-hint{display:block}.table-footer{padding:14px 18px;font-size:10px;gap:12px}.pagination{gap:6px}.pagination button{min-height:36px;min-width:36px}.selection-toolbar{padding:12px;font-size:11px;gap:7px}.selection-toolbar .btn{min-height:37px}
  .selection-bar{gap:8px}.selection-bar>.toolbar-group{margin-left:0;width:100%;gap:7px}.selection-bar .btn{font-size:10px;padding:7px 10px;min-height:36px}.pagination .form-select{min-height:36px;height:36px;font-size:11px}.table-footer .pagination{width:100%;justify-content:flex-end}
  .empty-state{min-height:200px;padding:36px 20px}.empty-state p{font-size:11px;max-width:285px}.empty-state .btn{min-height:42px}.loading-center{padding:30px 18px;min-height:160px;font-size:12px}
  .modal-overlay,.progress-overlay,.command-overlay{padding:16px}.modal-box{border-radius:16px;max-height:90dvh;max-height:90vh;max-width:540px}.modal-head{padding:20px}.modal-head h3{font-size:16px}.modal-close{width:36px;height:36px}.modal-body{padding:20px}.modal-foot{padding:16px 20px}.modal-foot .btn{min-height:43px;min-width:84px}.account-row{grid-template-columns:102px minmax(0,1fr);gap:12px;margin-bottom:17px}.account-row .form-input{min-height:42px;height:42px;font-size:13px}.account-row label{font-size:12px}.confirm-summary{padding:14px 16px;font-size:12px}.preview-notice{padding:13px 15px;font-size:11px}.progress-card{padding:26px;border-radius:16px}.progress-card .btn{min-height:44px}.progress-stat .ps-num{font-size:23px}
  .command-overlay{padding-top:70px}.command-dialog{border-radius:16px;max-height:75dvh}.command-input{min-height:62px;font-size:15px;padding:18px 20px}.command-option{min-height:47px;font-size:13px}.command-footer{padding:12px 16px;font-size:9px}
  .command-head{padding:17px 19px 0}.command-foot{font-size:9px;padding:12px 19px}
  body[data-preview]>.preview-notice{left:12px;right:12px;bottom:10px;padding:7px 10px;font-size:9px;min-height:32px}
  #toasts{top:78px;left:16px;right:16px;width:auto;max-width:none}.toast{padding:13px 14px;font-size:12px;border-radius:10px}
  #login-page{padding:80px 20px}.login-card{padding:31px 26px;max-width:410px;border-radius:17px}.login-card h1{font-size:22px}.login-brand{left:22px;top:22px}.login-theme{right:22px;top:20px}.login-note{bottom:18px;padding:0 16px;font-size:9px}.skip-link{left:16px}
}
@media(max-width:420px){
  .main{padding:24px 16px 32px}.topbar{padding:0 16px}.topbar-title::before{display:none}.topbar-title{font-size:12px}.topbar-right{gap:6px!important}
  .workspace-heading h1{font-size:26px}.heading-actions .btn{font-size:11px;padding:9px 12px}.page-description{font-size:11px;line-height:1.8}
  .console-hero{padding:25px 21px;min-height:220px}.hero-copy{max-width:92%}.hero-copy h2{font-size:25px}.hero-copy p{font-size:11px}.hero-copy .eyebrow{font-size:8px}.hero-index{font-size:8px}.hero-orbit{opacity:.2}
  .metric-grid,.stats-grid{gap:10px}.metric-card,.stat-card{padding:17px 15px}.metric-value{font-size:29px}.metric-label{font-size:10px;gap:5px}.metric-label svg{width:13px;height:13px}.metric-note{font-size:9px}.stat-card .sc-label{font-size:10px}
  .quick-links{gap:7px}.quick-link{padding:14px 10px;min-height:106px}.quick-link strong{font-size:10px}.quick-link small{font-size:9px}
  .server-tile{padding:19px}.server-facts{gap:8px}.server-facts dd,.server-facts strong{font-size:11px}.server-actions{gap:6px}.server-actions .btn{padding:7px 9px;font-size:10px}.server-endpoint{font-size:12px}.server-tile-head h2,.server-tile-head h3{font-size:15px}
  .card-head,.panel-head{padding:16px 17px}.card-body,.panel-body{padding:18px}.panel-head>span,.panel-head>a{font-size:10px}.activity-item{gap:9px}.activity-item time{font-size:8px}.activity-item strong{font-size:11px}.activity-item small{font-size:9px}
  .table-toolbar{padding:14px 16px}.filter-chip{font-size:10px;padding:7px 9px}.table-footer{padding:13px 16px}.table-toolbar .form-select{min-width:110px}
  .modal-overlay,.progress-overlay,.command-overlay{padding:12px}.modal-head,.modal-body{padding:18px}.modal-foot{padding:15px 18px}.account-row{grid-template-columns:92px minmax(0,1fr);gap:10px}.account-row label{font-size:11px}.form-input,.form-select,.form-textarea{font-size:14px}.confirm-summary dl{gap:7px 12px}
  .command-overlay{padding-top:65px}.command-footer{font-size:8px;padding:11px 13px}.command-footer kbd{font-size:9px;padding:1px 4px}
  .login-card{padding:29px 23px}.login-card h1{font-size:20px}.login-card>.sub{font-size:11px}.login-card .form-input{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  button,button.btn,.btn,.nav-item,.quick-link,.filter-chip,.command-option,.server-tile,.theme-toggle,a,.form-input,.form-select,.form-textarea,.sidebar,.progress-bar,.toast.out{transition:none!important}
  .modal-overlay,.progress-overlay,.command-overlay,.modal-box,.progress-card,.command-dialog,.toast,.spinner,.spinner-sm{animation:none!important}
  .quick-link:hover,.btn:active:not(:disabled){transform:none!important}
}
@media print{
  .sidebar,.topbar,.heading-actions,.server-actions,#toasts,.modal-overlay,.command-overlay,.progress-overlay,.quick-links{display:none!important}
  .main{margin:0;padding:20px;max-width:none}.main>*{max-width:none}.card,.panel,.metric-card,.server-tile{break-inside:avoid;box-shadow:none!important}
  body{background:white;color:#222;font-size:11px}.data-table{min-width:0!important}.data-table td,.data-table th{font-size:9px;padding:7px}
}
