:root {
  --bg: #080b12; --sidebar: #0c111b; --panel: #111824; --panel-2: #151e2d;
  --border: #222d3d; --border-strong: #304057; --text: #eef3fb; --soft: #bdc8d8;
  --muted: #7f8da3; --blue: #4f8cff; --blue-2: #72a5ff; --blue-soft: #172b4d;
  --green: #38d996; --green-soft: #102f29; --amber: #f6bd5e; --amber-soft: #332813;
  --red: #ff7180; --red-soft: #351a24; --radius: 14px; --shadow: 0 18px 50px rgba(0,0,0,.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); text-decoration: none; } a:hover { color: #a9c7ff; }
button, input, textarea, select { font: inherit; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
code { color: #dce8ff; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 248px; display: flex; flex-direction: column; padding: 24px 16px; background: linear-gradient(180deg,#0d131e,#090e17); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; color: var(--text); }
.brand:hover { color: var(--text); }.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: white; font-weight: 800; background: linear-gradient(145deg,#4e8dff,#7564ee); box-shadow: 0 8px 24px rgba(79,140,255,.25); }
.brand strong,.brand small { display: block; }.brand strong { font-size: 14px; letter-spacing: .02em; }.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 9px; color: #909db0; font-size: 14px; font-weight: 550; transition: .15s ease; }.side-nav a span { width: 18px; color: #738198; text-align: center; font-size: 17px; }.side-nav a:hover { color: var(--text); background: #141d2a; }.side-nav a.active { color: white; background: linear-gradient(90deg,#1a3359,#162640); box-shadow: inset 3px 0 var(--blue); }.side-nav a.active span { color: #8eb6ff; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--border); }.system-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.system-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(56,217,150,.75); }.nav-logout { width: 100%; margin-top: 12px; padding: 8px; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }.nav-logout:hover { color: var(--text); border-color: var(--border-strong); }
.main-panel { min-height: 100vh; margin-left: 248px; padding: 38px clamp(22px,4vw,56px) 24px; background: radial-gradient(900px 450px at 80% -100px,rgba(50,93,164,.14),transparent 65%),var(--bg); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: 1400px; margin: 0 auto 26px; }.eyebrow { color: var(--blue-2); font-size: 10px; font-weight: 750; letter-spacing: .18em; }.page-head h1 { margin: 4px 0 3px; font-size: clamp(26px,3vw,35px); line-height: 1.18; letter-spacing: -.035em; }.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.stats-grid,.panel { max-width: 1400px; margin-left: auto; margin-right: auto; }.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }.stat-card { position: relative; overflow: hidden; padding: 19px 20px; background: linear-gradient(160deg,var(--panel-2),var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }.stat-card::after { content:""; position:absolute; right:-20px; top:-25px; width:85px; height:85px; border-radius:50%; background:rgba(79,140,255,.05); }.stat-card span,.stat-card small { display:block; color:var(--muted); font-size:12px; }.stat-card strong { display:block; margin:5px 0 3px; font-size:28px; line-height:1.15; }.stat-good strong { color:var(--green); }.stat-warn strong { color:var(--amber); }
.panel { margin-bottom: 18px; padding: 22px; background: linear-gradient(165deg,rgba(21,30,45,.98),rgba(15,22,33,.98)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }.accent-panel { border-top-color: #4169a9; }.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }.panel-head h2 { margin:0 0 3px; font-size:16px; letter-spacing:-.01em; }.panel-head p { margin:0; color:var(--muted); font-size:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 15px; color:white; font-size:13px; font-weight:650; background:linear-gradient(180deg,#568fff,#3e78e4); border:1px solid #6196fa; border-radius:9px; cursor:pointer; box-shadow:0 8px 20px rgba(57,111,214,.18); }.button:hover { color:white; filter:brightness(1.08); }.button.secondary { color:var(--soft); background:#1a2535; border-color:var(--border-strong); box-shadow:none; }.button.ghost { color:#a9c6ff; background:transparent; border-color:#345588; box-shadow:none; }.button.danger-ghost { color:#ff9ba5; background:transparent; border-color:#61313c; box-shadow:none; }.small-button { padding:6px 10px; font-size:11px; }
.badge,.status { display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.02em; background:#1d2839; color:#aebbd0; border:1px solid #2b3a50; }.badge-info { color:#9dbfff; background:var(--blue-soft); border-color:#294c7e; }.status-pending,.status-running { color:var(--amber); background:var(--amber-soft); border-color:#5b471d; }.status-succeeded { color:var(--green); background:var(--green-soft); border-color:#235946; }.status-failed,.status-interrupted { color:var(--red); background:var(--red-soft); border-color:#63303c; }.status-draft,.status-none { color:#9ba8ba; }
.machine-identity-row { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }.agent-version-badge { display:inline-flex; align-items:center; min-height:19px; padding:2px 7px; border:1px solid; border-radius:5px; font-size:9px; font-weight:750; line-height:1; letter-spacing:.01em; white-space:nowrap; }.agent-version-badge.is-current { color:#72e5b2; background:var(--green-soft); border-color:#235946; }.agent-version-badge.is-outdated { color:var(--amber); background:var(--amber-soft); border-color:#5b471d; }
.badge-purple { color:#c4afff; background:#251d43; border-color:#4d3d7d; }.role-badges { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }.muted-text { color:var(--muted); }
.command-box { display:grid; grid-template-columns:1fr auto; gap:0; overflow:hidden; background:#080d15; border:1px solid var(--border); border-radius:10px; }.command-box code { display:block; padding:13px 15px; overflow-x:auto; white-space:nowrap; color:#bcd3ff; font-size:12px; }.command-box button { padding:0 16px; color:#a9c5fa; background:#152033; border:0; border-left:1px solid var(--border); cursor:pointer; }.command-box button:hover { background:#1b2b45; }
.command-box-actions { grid-template-columns:minmax(0,1fr) auto auto; }.command-box-actions button { white-space:nowrap; }
.details-box { margin-top:14px; padding:12px 14px; background:#0d141f; border:1px solid var(--border); border-radius:10px; }.details-box summary { color:var(--soft); font-size:12px; cursor:pointer; }.details-box[open] summary { margin-bottom:14px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.compact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.stack-form { display:grid; gap:16px; }label { display:grid; gap:6px; color:#aeb9c9; font-size:12px; font-weight:550; }input,textarea,select { width:100%; padding:10px 11px; color:var(--text); background:#0a1019; border:1px solid #29374a; border-radius:8px; outline:none; transition:.15s ease; }input:focus,textarea:focus,select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(79,140,255,.13); }input[readonly] { color:#8290a3; background:#0e141d; }textarea { min-height:110px; resize:vertical; line-height:1.55; }.required { color:var(--red); margin-left:3px; }.input-with-action { display:grid; grid-template-columns:1fr auto; }.input-with-action input { border-radius:8px 0 0 8px; }.mini-button { color:#a8c5fa; background:#172338; border:1px solid #293e60; border-left:0; border-radius:0 8px 8px 0; cursor:pointer; }.check-row { display:flex; flex-wrap:wrap; gap:18px; }.check-row label { display:flex; align-items:center; grid-auto-flow:column; gap:8px; }.check-row input { width:auto; accent-color:var(--blue); }.actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }.form-message { color:var(--muted); font-size:12px; }.form-message.error { color:var(--red); }.form-message.success { color:var(--green); }
.warning-box { padding:13px 15px; background:#2a2111; border:1px solid #5a451d; border-radius:9px; }.warning-box strong { color:var(--amber); font-size:12px; }.warning-box p { margin:3px 0 0; color:#baa984; font-size:11px; }
.form-section { display:grid; gap:15px; padding:18px; background:#0d141f; border:1px solid var(--border); border-radius:11px; }.form-section-head { display:flex; align-items:flex-start; gap:11px; }.form-section-head>span { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; color:#bcd2ff; font-size:11px; font-weight:800; background:#193052; border:1px solid #2d5184; border-radius:8px; }.form-section-head h3 { margin:1px 0 2px; font-size:14px; }.form-section-head p { margin:0; color:var(--muted); font-size:11px; }.provider-section { display:grid; gap:13px; padding:15px; background:#09111b; border:1px solid #26364b; border-radius:9px; }.provider-section[hidden] { display:none; }.provider-title { display:flex; align-items:baseline; justify-content:space-between; gap:14px; }.provider-title strong { font-size:12px; }.provider-title span { color:var(--muted); font-size:10px; }.probe-section p { margin:3px 0 0; color:var(--muted); font-size:11px; }.check-card { display:flex; align-items:center; min-height:41px; padding:9px 11px; color:var(--soft); background:#0a1019; border:1px solid #29374a; border-radius:8px; }.check-card input { width:auto; margin:0 8px 0 0; accent-color:var(--blue); }.token-actions { padding-top:2px; }.form-submit { padding:2px 0; }.install-result-panel { border-color:#315486; background:linear-gradient(155deg,#13243b,#101925); }.install-notes { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:10px; color:var(--muted); font-size:10px; }.install-notes strong { color:var(--soft); }
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:10px; }table { width:100%; border-collapse:collapse; font-size:12px; }th { padding:9px 12px; color:#77859a; background:#0d141f; text-align:left; text-transform:uppercase; letter-spacing:.06em; font-size:9px; }td { padding:12px; color:#b8c3d2; border-top:1px solid var(--border); }tbody tr:hover td { background:rgba(66,106,166,.06); }.cell-sub { display:block; margin-top:3px; color:var(--muted); font-size:10px; }.live-dot { display:inline-block; width:6px; height:6px; margin-right:7px; border-radius:50%; background:var(--green); box-shadow:0 0 7px rgba(56,217,150,.6); }.live-dot.off { background:#606d80; box-shadow:none; }
.machine-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.machine-card { padding:17px; background:#0e151f; border:1px solid var(--border); border-radius:11px; }.machine-card-head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; }.machine-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:9px; color:#aac8ff; font-weight:750; background:#192b47; border:1px solid #29446d; }.machine-card h3 { margin:0 0 2px; font-size:13px; }.machine-card-head code { color:var(--muted); font-size:10px; }.machine-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:16px 0; }.machine-meta div { padding:9px 10px; background:#0a1018; border-radius:7px; }.machine-meta dt { color:var(--muted); font-size:9px; text-transform:uppercase; }.machine-meta dd { margin:3px 0 0; color:var(--soft); font-size:11px; }.machine-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.empty-state { padding:35px 20px; text-align:center; color:var(--muted); border:1px dashed var(--border-strong); border-radius:10px; }.empty-state strong { color:var(--soft); }.empty-state p { margin:5px 0 14px; font-size:12px; }.empty-inline { color:var(--muted); font-size:12px; }.log-output { max-height:420px; margin:0; padding:15px; overflow:auto; white-space:pre-wrap; word-break:break-word; color:#b9c8dd; background:#070b11; border:1px solid var(--border); border-radius:9px; font-size:11px; line-height:1.55; }
.flash { position:fixed; z-index:100; top:18px; right:24px; max-width:360px; padding:11px 15px; color:#d9e7ff; background:#183157; border:1px solid #335b93; border-radius:9px; box-shadow:0 14px 35px rgba(0,0,0,.35); font-size:12px; transition:.3s ease; }.flash-error { color:#ffd5da; background:#431e29; border-color:#76313f; }.flash-hide { opacity:0; transform:translateY(-8px); pointer-events:none; }.page-footer { max-width:1400px; margin:28px auto 0; color:#4e5a6b; text-align:center; font-size:10px; }.mobile-nav-toggle,.nav-scrim { display:none; }

/* Legacy template compatibility */
.card { max-width:1400px; margin:0 auto 18px; padding:22px; background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); }.row { display:flex; align-items:center; }.row.gap { gap:10px; }.row.between { justify-content:space-between; }.wrap { max-width:1400px; }.muted { color:var(--muted); }.small { font-size:11px; }.ok { color:var(--green); }.bad { color:var(--red); }.stack { display:grid; gap:12px; }.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.lb-sync-fieldset { padding:14px; border:1px solid var(--border); border-radius:9px; }.lb-sync-checks { display:grid; gap:7px; }.provider-fields { display:grid; gap:12px; }.btn-secondary { display:inline-flex; padding:6px 10px; color:var(--soft); background:#192333; border:1px solid var(--border-strong); border-radius:7px; cursor:pointer; }

.auth-page { display:grid; place-items:center; min-height:100vh; padding:20px; background:radial-gradient(700px 400px at 50% 0,rgba(58,101,176,.2),transparent 65%),var(--bg); }.auth-card { width:min(420px,100%); padding:30px; background:var(--panel); border:1px solid var(--border); border-radius:16px; box-shadow:0 30px 80px rgba(0,0,0,.35); }.auth-brand { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 17px; border-radius:13px; background:linear-gradient(145deg,#4e8dff,#7564ee); font-weight:800; }.auth-card h1 { margin:0; text-align:center; font-size:22px; }.auth-card>p { margin:6px 0 22px; color:var(--muted); text-align:center; font-size:12px; }.auth-form { display:grid; gap:14px; }.auth-form .button { width:100%; margin-top:4px; }

.public-status-page { min-height:100vh; background:radial-gradient(900px 450px at 80% -100px,rgba(50,93,164,.14),transparent 65%),var(--bg); }.public-status-main { width:min(1450px,100%); margin:0 auto; padding:28px clamp(16px,3vw,38px) 22px; }.public-status-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }.public-status-head h1 { margin:3px 0 2px; font-size:clamp(23px,3vw,31px); line-height:1.2; letter-spacing:-.03em; }.public-status-head p { margin:0; color:var(--muted); font-size:11px; }.public-live { display:flex; align-items:center; gap:7px; padding:7px 11px; color:var(--green); background:var(--green-soft); border:1px solid #235946; border-radius:999px; font-size:10px; font-weight:700; white-space:nowrap; }.public-live i { width:6px; height:6px; background:var(--green); border-radius:50%; box-shadow:0 0 8px rgba(56,217,150,.65); }.public-empty { max-width:720px; margin:70px auto; }.public-status-page .page-footer { margin-top:22px; }

.dashboard-head { margin-bottom:16px; }.fleet-status-head { align-items:center; margin-bottom:14px; }.fleet-count { padding:4px 9px; color:#9dbfff; background:var(--blue-soft); border:1px solid #294c7e; border-radius:999px; font-size:10px; font-weight:700; white-space:nowrap; }
.dashboard-machine-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); justify-content:start; align-items:start; gap:12px; }.dashboard-machine-card { position:relative; width:100%; max-width:340px; overflow:hidden; padding:14px; background:#0c131d; border:1px solid var(--border); border-radius:10px; }.dashboard-machine-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; }.dashboard-machine-card .machine-icon { width:32px; height:32px; border-radius:8px; font-size:13px; }.dashboard-machine-name { min-width:0; }.dashboard-machine-name h3 { overflow:hidden; margin:0 0 1px; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.dashboard-machine-name code { color:var(--muted); font-size:9px; }.dashboard-machine-card .machine-identity-row { gap:5px; }.dashboard-machine-card .agent-version-badge { min-height:17px; padding:2px 5px; font-size:8px; }.online-state { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; border:1px solid #374456; border-radius:999px; color:#8e9aac; background:#161e29; font-size:9px; font-weight:700; }.online-state i { width:5px; height:5px; border-radius:50%; background:#687589; }.online-state.online { color:#72e5b2; background:var(--green-soft); border-color:#235946; }.online-state.online i { background:var(--green); box-shadow:0 0 8px rgba(56,217,150,.7); }
.dashboard-status-grid { display:grid; gap:0; margin:12px 0 0; padding:4px 10px; background:#080e16; border:1px solid #151f2c; border-radius:8px; }.dashboard-status-grid>div { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; min-width:0; min-height:32px; padding:5px 0; border-bottom:1px solid #151f2c; }.dashboard-status-grid>div:last-child { border-bottom:0; }.dashboard-status-grid dt { color:var(--muted); font-size:9px; font-weight:650; letter-spacing:.03em; }.dashboard-status-grid dd { min-width:0; margin:0; color:var(--soft); font-size:10px; }.dashboard-status-grid .ip-value code { display:block; overflow:hidden; color:#dce8ff; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }.gfw-state { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; }.gfw-state i { display:grid; place-items:center; width:16px; height:16px; border-radius:50%; font-size:10px; font-style:normal; }.gfw-state.clear { color:var(--green); }.gfw-state.clear i { color:#07140f; background:var(--green); box-shadow:0 0 10px rgba(56,217,150,.22); }.gfw-state.blocked { color:var(--red); }.gfw-state.blocked i { color:#21090d; background:var(--red); box-shadow:0 0 10px rgba(255,113,128,.22); }.gfw-state.changing { color:var(--blue-2); }.gfw-state.changing i { color:#c9dcff; background:var(--blue-soft); border:1px solid #31598e; animation:gfw-state-spin 1.25s linear infinite; }.gfw-state.pending { color:var(--amber); }.gfw-state.pending i { color:var(--amber); background:var(--amber-soft); border:1px solid #5b471d; }.gfw-state.unconfigured { color:#596679; }.status-empty { padding:45px 20px; }@keyframes gfw-state-spin { to { transform:rotate(360deg); } }
.dashboard-status-grid .ip-value { display:flex; align-items:center; justify-content:space-between; gap:8px; }.dashboard-status-grid .ip-value code { flex:1; min-width:0; }.ip-copy-button { display:grid; place-items:center; flex:0 0 25px; width:25px; height:25px; padding:0; color:#8eaddf; background:#111c2c; border:1px solid #293a52; border-radius:6px; cursor:pointer; transition:.15s ease; }.ip-copy-button:hover { color:#c6d9ff; background:#18283e; border-color:#3b5e91; }.ip-copy-button svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.3; }.ip-copy-button.is-copied { color:var(--green); border-color:#2a6d54; }.ip-copy-button.is-copied svg,.ip-copy-button.copy-failed svg { display:none; }.ip-copy-button.is-copied::after { content:"✓"; font-size:13px; font-weight:800; }.ip-copy-button.copy-failed::after { content:"!"; color:var(--red); font-size:13px; font-weight:800; }.setup-record-trigger { appearance:none; gap:5px; cursor:pointer; }.setup-record-trigger:hover { filter:brightness(1.13); border-color:var(--blue); }.setup-record-trigger i { font-size:14px; font-style:normal; line-height:8px; }
.runtime-monitor { margin-top:9px; padding:10px; background:#080e16; border:1px solid #1b2838; border-radius:8px; }.runtime-monitor-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }.runtime-monitor-head strong { font-size:10px; letter-spacing:.03em; }.runtime-monitor-head span { color:var(--green); font-size:8px; font-weight:700; }.runtime-monitor.is-waiting .runtime-monitor-head span,.runtime-monitor.is-stale .runtime-monitor-head span { color:var(--amber); }.metric-bars { display:grid; gap:5px; }.metric-row { display:grid; grid-template-columns:36px minmax(60px,1fr) 38px; align-items:center; gap:7px; color:var(--muted); font-size:8px; }.metric-row b { color:var(--soft); font-size:8px; text-align:right; }.metric-track { overflow:hidden; height:6px; background:#1b2534; border-radius:999px; }.metric-track i { display:block; width:0; height:100%; background:linear-gradient(90deg,#1e9e68,var(--green)); border-radius:inherit; transition:width .35s ease; }.metric-track i.is-warn { background:linear-gradient(90deg,#b77616,var(--amber)); }.metric-track i.is-high { background:linear-gradient(90deg,#c23a4e,var(--red)); }.runtime-detail-grid { display:grid; grid-template-columns:1fr; gap:4px; margin:9px 0 0; padding-top:8px; border-top:1px solid #182331; }.runtime-detail-grid>div { display:grid; grid-template-columns:76px minmax(0,1fr); gap:7px; }.runtime-detail-grid dt { color:var(--muted); font-size:8px; }.runtime-detail-grid dd { overflow:hidden; margin:0; color:var(--soft); font-size:9px; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }.runtime-disabled { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; padding:7px 10px; color:var(--muted); background:#0a111a; border:1px dashed #283649; border-radius:8px; font-size:9px; }.runtime-disabled a { font-weight:700; }.monitor-options { margin-top:10px; padding:12px 13px; background:#09111b; border:1px solid #29374a; border-radius:9px; }.monitor-options label { max-width:280px; }.badge-success { color:#72e5b2; background:var(--green-soft); border-color:#235946; }

@media (max-width:1050px) { .stats-grid { grid-template-columns:repeat(2,1fr); }.compact-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px) { .sidebar { transform:translateX(-100%); transition:.2s ease; }.nav-open .sidebar { transform:none; }.nav-scrim { position:fixed; inset:0; z-index:35; background:rgba(0,0,0,.58); }.nav-open .nav-scrim { display:block; }.mobile-nav-toggle { display:block; position:fixed; z-index:30; top:13px; left:13px; width:38px; height:38px; color:var(--text); background:#121b28; border:1px solid var(--border); border-radius:9px; }.main-panel { margin-left:0; padding:66px 14px 20px; }.page-head { align-items:flex-start; }.stats-grid,.form-grid,.compact-grid,.machine-grid,.grid { grid-template-columns:1fr; }.panel { padding:17px; }.dashboard-machine-card { padding:15px; }.form-section { padding:14px; }.provider-title,.install-notes { align-items:flex-start; flex-direction:column; }.command-box-actions { grid-template-columns:1fr 1fr; }.command-box-actions code { grid-column:1/-1; }.command-box-actions button { min-height:42px; border-top:1px solid var(--border); }.check-row { display:grid; }.flash { left:14px; right:14px; top:14px; }.page-head .button { white-space:nowrap; } }
@media (max-width:430px) { .dashboard-machine-grid { grid-template-columns:1fr; }.dashboard-machine-head { grid-template-columns:auto minmax(0,1fr); }.online-state { grid-column:1/-1; justify-self:start; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; }.gfw-state.changing i { animation:none; } }

/* Management workspace, drawers and display controls */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }[hidden] { display:none!important; }.button:disabled { opacity:.45; cursor:not-allowed; filter:none; }
.nav-theme { display:flex; align-items:center; gap:9px; width:100%; margin-bottom:12px; padding:8px 10px; color:var(--muted); background:transparent; border:1px solid var(--border); border-radius:8px; cursor:pointer; }.nav-theme:hover { color:var(--text); border-color:var(--border-strong); }.nav-theme span:first-child { width:18px; color:var(--blue-2); font-size:15px; }
.management-head { align-items:center; }.management-head-actions,.page-toolbar,.toolbar-group,.view-switch { display:flex; align-items:center; gap:8px; }.management-head-actions { flex-wrap:wrap; justify-content:flex-end; }.page-toolbar { justify-content:space-between; max-width:1400px; margin:0 auto 16px; padding:12px; background:var(--panel); border:1px solid var(--border); border-radius:11px; }.toolbar-search { position:relative; width:min(340px,45vw); }.toolbar-search input { padding-left:34px; }.toolbar-search::before { content:"⌕"; position:absolute; z-index:1; left:12px; top:8px; color:var(--muted); font-size:17px; }.view-switch { padding:3px; background:#0a1018; border:1px solid var(--border); border-radius:8px; }.view-button { min-width:35px; height:31px; padding:0 9px; color:var(--muted); background:transparent; border:0; border-radius:6px; cursor:pointer; }.view-button:hover,.view-button.active { color:var(--text); background:#1c2a3d; }.view-button.active { box-shadow:0 1px 5px rgba(0,0,0,.2); }
.resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }.resource-card { min-width:0; padding:17px; background:#0d141f; border:1px solid var(--border); border-radius:11px; transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease; }.resource-card:hover { border-color:#34445b; box-shadow:0 12px 30px rgba(0,0,0,.13); }.resource-card[hidden] { display:none!important; }.resource-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }.resource-card-title { display:flex; align-items:center; min-width:0; gap:11px; }.resource-card-title>div:last-child { min-width:0; }.resource-card h3 { overflow:hidden; margin:0 0 3px; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }.resource-card-sub { display:block; color:var(--muted); font-size:10px; }.resource-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 14px; }.resource-meta>div { min-width:0; padding:9px 10px; background:#080e16; border:1px solid #151f2c; border-radius:7px; }.resource-meta dt { color:var(--muted); font-size:9px; text-transform:uppercase; }.resource-meta dd { overflow-wrap:anywhere; margin:4px 0 0; color:var(--soft); font-size:11px; }.resource-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }.resource-actions form { display:inline-flex; }.resource-grid[data-view="list"] { grid-template-columns:1fr; }.resource-grid[data-view="list"] .resource-card { display:grid; grid-template-columns:minmax(190px,.9fr) minmax(360px,1.6fr) auto; align-items:center; gap:16px; padding:13px 15px; }.resource-grid[data-view="list"] .resource-card-head { margin:0; }.resource-grid[data-view="list"] .resource-meta { grid-template-columns:repeat(4,minmax(95px,1fr)); margin:0; }.resource-grid[data-view="list"] .resource-meta>div { padding:7px 8px; }.resource-grid[data-view="list"] .resource-actions { justify-content:flex-end; }
.resource-meta dd code { white-space:nowrap; }.resource-grid[data-view="list"] .resource-meta { grid-template-columns:minmax(112px,1.15fr) repeat(3,minmax(82px,1fr)); }
.role-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.role-choice { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:10px; padding:13px; color:var(--soft); background:#09111b; border:1px solid #29374a; border-radius:9px; cursor:pointer; transition:.15s ease; }.role-choice:hover { border-color:#3b5c89; }.role-choice:has(input:checked) { background:#12233b; border-color:#3c6eb1; box-shadow:inset 0 0 0 1px rgba(79,140,255,.08); }.role-choice input { width:17px; height:17px; margin:2px 0 0; accent-color:var(--blue); }.role-choice span { display:grid; gap:3px; }.role-choice strong { color:var(--text); font-size:12px; }.role-choice small { color:var(--muted); font-size:10px; font-weight:500; }.helper-fields { display:grid; gap:12px; padding:15px; background:#09111b; border:1px solid #2a3b53; border-radius:9px; }.helper-fields-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-bottom:2px; }.helper-fields-head strong { font-size:12px; }.helper-fields-head span { color:var(--muted); font-size:10px; }
.selection-group { display:grid; gap:10px; }.selection-group+.selection-group { padding-top:4px; border-top:1px solid var(--border); }.selection-group-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }.selection-group-head>div { display:grid; gap:2px; }.selection-group-head strong { color:var(--text); font-size:12px; }.selection-group-head span { color:var(--muted); font-size:10px; }.selection-group-head>a { font-size:10px; white-space:nowrap; }.selection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.selection-grid.single-column { grid-template-columns:1fr; }.selection-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 39px 12px 13px; color:var(--soft); background:#09111b; border:1px solid #29374a; border-radius:9px; cursor:pointer; transition:.15s ease; }.selection-card:hover { border-color:#3b5c89; }.selection-card:has(input:focus-visible) { box-shadow:0 0 0 3px rgba(79,140,255,.18); }.selection-card:has(input:checked) { background:#12233b; border-color:#477abc; }.selection-card>input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.selection-card-main { display:grid; min-width:0; gap:2px; }.selection-card-main b { overflow:hidden; color:var(--text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.selection-card-main code { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.selection-card-main small { margin-top:3px; color:var(--muted); font-size:10px; font-weight:500; }.selection-check { display:grid; place-items:center; position:absolute; top:50%; right:12px; width:19px; height:19px; transform:translateY(-50%); color:transparent; border:1px solid #405069; border-radius:6px; }.selection-card:has(input:checked) .selection-check { color:#07140f; background:var(--green); border-color:var(--green); }.selection-card-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }.selection-card-tags em { padding:2px 6px; color:#90b8f4; background:#172b49; border:1px solid #294b78; border-radius:999px; font-size:9px; font-style:normal; }.selection-empty { padding:18px; text-align:center; color:var(--muted); background:#09111b; border:1px dashed #34445a; border-radius:9px; }.selection-empty strong { color:var(--soft); font-size:12px; }.selection-empty p { margin:3px 0 10px; font-size:10px; }
.section-stack { display:grid; gap:18px; max-width:1400px; margin:0 auto; }.data-panel { margin:0; }.data-panel .table-wrap { max-height:430px; }.status-running-dot { display:inline-flex; align-items:center; gap:6px; color:var(--green); font-weight:700; }.status-running-dot::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 7px rgba(56,217,150,.6); }.status-paused-dot { color:var(--amber); }
.history-head { margin-bottom:20px; }.history-toolbar { align-items:flex-end; }.history-filter { width:min(300px,100%); }.history-filter>span { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }.history-list { display:grid; gap:12px; max-width:1400px; margin:0 auto; }.history-card { margin:0; padding:17px 19px; }.history-card-head,.history-identity,.history-event-meta,.history-ip-flow { display:flex; align-items:center; }.history-card-head { justify-content:space-between; gap:18px; }.history-identity { min-width:0; gap:11px; }.history-identity>div:last-child { min-width:0; }.history-identity h2 { overflow:hidden; margin:0 0 2px; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }.history-identity code { color:var(--muted); font-size:10px; }.history-event-meta { align-items:flex-end; flex-direction:column; gap:5px; }.history-event-meta time { color:var(--muted); font-size:10px; }.history-ip-flow { gap:12px; margin-top:15px; padding:11px 13px; background:#080e16; border:1px solid #151f2c; border-radius:8px; }.history-ip-flow>div { display:grid; gap:3px; }.history-ip-flow span { color:var(--muted); font-size:9px; font-weight:650; letter-spacing:.04em; text-transform:uppercase; }.history-ip-flow code { color:#dce8ff; font-size:13px; font-weight:750; }.history-ip-flow i { color:var(--blue-2); font-size:17px; font-style:normal; }.history-dns-table { margin-top:12px; }
.drawer-backdrop { visibility:hidden; position:fixed; inset:0; z-index:80; opacity:0; background:rgba(2,6,12,.66); backdrop-filter:blur(2px); transition:.2s ease; }.drawer-backdrop.is-open { visibility:visible; opacity:1; }.drawer-panel { visibility:hidden; position:fixed; z-index:90; inset:0 0 0 auto; width:min(720px,94vw); transform:translateX(102%); display:flex; flex-direction:column; color:var(--text); background:#0e151f; border-left:1px solid var(--border); box-shadow:-24px 0 70px rgba(0,0,0,.34); transition:.24s ease; }.drawer-panel.is-open { visibility:visible; transform:none; }.drawer-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; padding:19px 22px; background:#111a27; border-bottom:1px solid var(--border); }.drawer-head h2 { margin:0 0 3px; font-size:17px; }.drawer-head p { margin:0; color:var(--muted); font-size:11px; }.drawer-close { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; color:var(--muted); background:transparent; border:1px solid var(--border); border-radius:8px; cursor:pointer; }.drawer-close:hover { color:var(--text); border-color:var(--border-strong); }.drawer-body { flex:1; min-height:0; padding:20px 22px 32px; overflow-y:auto; }.drawer-body>.panel,.drawer-body>.card { margin:0 0 15px; padding:0; background:transparent; border:0; box-shadow:none; }.drawer-body .form-grid,.drawer-body .compact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.drawer-body .form-section { padding:15px; }.drawer-footer { position:sticky; bottom:-32px; z-index:2; margin:18px -22px -32px; padding:14px 22px; background:rgba(14,21,31,.96); border-top:1px solid var(--border); backdrop-filter:blur(10px); }.drawer-open { overflow:hidden; }
.setup-record-dialog { width:min(680px,calc(100vw - 28px)); max-height:min(760px,calc(100vh - 28px)); padding:0; overflow:hidden; color:var(--text); background:#0e151f; border:1px solid var(--border-strong); border-radius:14px; box-shadow:0 28px 90px rgba(0,0,0,.48); }.setup-record-dialog::backdrop { background:rgba(2,6,12,.72); backdrop-filter:blur(3px); }.setup-record-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:19px 21px; background:#111a27; border-bottom:1px solid var(--border); }.setup-record-head h2 { margin:3px 0 2px; font-size:18px; }.setup-record-head p { margin:0; color:var(--muted); font-size:11px; }.setup-record-body { padding:19px 21px 22px; overflow:auto; }.setup-record-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:0 0 17px; }.setup-record-meta>div { min-width:0; padding:10px 11px; background:#080e16; border:1px solid #151f2c; border-radius:8px; }.setup-record-meta dt { color:var(--muted); font-size:9px; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }.setup-record-meta dd { overflow-wrap:anywhere; margin:6px 0 0; color:var(--soft); font-size:11px; }.setup-record-output-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:8px; }.setup-record-output-head h3 { margin:0; font-size:13px; }.setup-record-output-head span { color:var(--muted); font-size:9px; }.setup-record-output { min-height:150px; max-height:340px; }

/* Light theme: tuned as a complete palette instead of a background swap. */
html[data-theme="light"] {
  color-scheme:light;
  --bg:#edf2f8; --sidebar:#f8fbff; --panel:#ffffff; --panel-2:#f6f9fc;
  --border:#d5dfeb; --border-strong:#b9c7d8; --text:#122036; --soft:#384a62;
  --muted:#617188; --blue:#216fd1; --blue-2:#125da9; --blue-soft:#e5f0ff;
  --green:#087a51; --green-soft:#e6f6ef; --amber:#9b5b00; --amber-soft:#fff2d2;
  --red:#c62f46; --red-soft:#ffeaee; --shadow:0 12px 32px rgba(30,55,86,.09);
}
html[data-theme="light"] body { background:#edf2f8; }
html[data-theme="light"] .main-panel {
  background-color:#edf2f8;
  background-image:
    radial-gradient(850px 440px at 86% -110px,rgba(36,112,205,.12),transparent 65%),
    linear-gradient(180deg,#f4f7fb 0,#edf2f8 300px);
}
html[data-theme="light"] .sidebar {
  background:linear-gradient(180deg,#fbfdff 0,#f4f8fc 100%);
  border-right-color:#d4deea;
  box-shadow:8px 0 28px rgba(40,66,98,.05);
}
html[data-theme="light"] .brand small,html[data-theme="light"] .system-state { color:#66778e; }
html[data-theme="light"] .side-nav a { color:#52647c; }
html[data-theme="light"] .side-nav a span { color:#657891; }
html[data-theme="light"] .side-nav a:hover { color:#122036; background:#eaf1f9; }
html[data-theme="light"] .side-nav a.active {
  color:#124f91;
  background:linear-gradient(90deg,#dcecff,#eaf4ff);
  box-shadow:inset 3px 0 #2779dc;
}
html[data-theme="light"] .nav-logout,html[data-theme="light"] .nav-theme {
  color:#53657c;
  background:#f9fbfe;
  border-color:#cfdbe8;
}
html[data-theme="light"] .page-head p,html[data-theme="light"] .panel-head p { color:#5e7087; }
html[data-theme="light"] .panel,html[data-theme="light"] .card,html[data-theme="light"] .stat-card {
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-color:#d6e0eb;
  box-shadow:var(--shadow);
}
html[data-theme="light"] .resource-card,html[data-theme="light"] .dashboard-machine-card,html[data-theme="light"] .machine-card {
  background:linear-gradient(180deg,#fff,#fbfdff);
  border-color:#d6e0eb;
  box-shadow:0 5px 18px rgba(35,63,95,.055);
}
html[data-theme="light"] .resource-card:hover {
  border-color:#9fb8d3;
  box-shadow:0 13px 28px rgba(35,63,95,.11);
}

html[data-theme="light"] .machine-icon {
  color:#164f91;
  background:#e4effd;
  border-color:#b7ceed;
}
html[data-theme="light"] .resource-meta>div,html[data-theme="light"] .dashboard-status-grid>div,html[data-theme="light"] .machine-meta div {
  background:#f3f7fc;
  border-color:#dfe8f2;
}
html[data-theme="light"] .dashboard-status-grid { background:#f3f7fc; border-color:#dfe8f2; }
html[data-theme="light"] .history-ip-flow { background:#f3f7fc; border-color:#dfe8f2; }
html[data-theme="light"] .history-ip-flow code { color:#0d3f73; }
html[data-theme="light"] .resource-meta dt,html[data-theme="light"] .dashboard-status-grid dt,html[data-theme="light"] .machine-meta dt { color:#566a83; }
html[data-theme="light"] .resource-meta dd,html[data-theme="light"] .dashboard-status-grid dd,html[data-theme="light"] .machine-meta dd { color:#344760; }
html[data-theme="light"] code { color:#174c82; }
html[data-theme="light"] .dashboard-status-grid .ip-value code {
  color:#0d3f73;
  font-weight:800;
  letter-spacing:.01em;
}
html[data-theme="light"] .dashboard-machine-name code,html[data-theme="light"] .resource-card-sub { color:#52677f; }
html[data-theme="light"] .badge,html[data-theme="light"] .status {
  color:#506279;
  background:#eef3f8;
  border-color:#cfdbe7;
}
html[data-theme="light"] .badge-info { color:#135da8; background:#e5f0ff; border-color:#b6d0ef; }
html[data-theme="light"] .badge-purple { color:#6644a8; background:#f0eafd; border-color:#cdbceb; }
html[data-theme="light"] .status-pending,html[data-theme="light"] .status-running { color:#875000; background:#fff1cf; border-color:#e6c985; }
html[data-theme="light"] .status-succeeded { color:#08704b; background:#e4f5ed; border-color:#a7d9c6; }
html[data-theme="light"] .status-failed,html[data-theme="light"] .status-interrupted { color:#b7273d; background:#ffe8ec; border-color:#efb4be; }
html[data-theme="light"] .agent-version-badge.is-current { color:#08704b; background:#e4f5ed; border-color:#a7d9c6; }
html[data-theme="light"] .agent-version-badge.is-outdated { color:#875000; background:#fff1cf; border-color:#e6c985; }
html[data-theme="light"] .status-draft,html[data-theme="light"] .status-none { color:#53657b; }
html[data-theme="light"] .online-state { color:#53657b; background:#eef3f8; border-color:#cbd7e4; }
html[data-theme="light"] .online-state i { background:#7e8fa4; }
html[data-theme="light"] .online-state.online { color:#08704b; background:#e4f5ed; border-color:#a7d9c6; }
html[data-theme="light"] .online-state.online i { background:var(--green); box-shadow:0 0 8px rgba(8,122,81,.35); }
html[data-theme="light"] .ip-copy-button { color:#376796; background:#e7eff8; border-color:#bfd0e2; }
html[data-theme="light"] .ip-copy-button:hover { color:#104e8c; background:#dce9f7; border-color:#94b4d6; }
html[data-theme="light"] .gfw-state.unconfigured { color:#5a6d84; }
html[data-theme="light"] .gfw-state.changing i { color:#155da8; background:#e5f0ff; border-color:#9bbce2; }
html[data-theme="light"] .runtime-monitor { background:#f5f8fc; border-color:#dce5ef; }
html[data-theme="light"] .runtime-detail-grid { border-color:#dce5ef; }
html[data-theme="light"] .metric-track { background:#dfe7f0; }
html[data-theme="light"] .metric-row b,html[data-theme="light"] .runtime-detail-grid dd { color:#344760; }
html[data-theme="light"] .runtime-disabled { color:#617188; background:#f4f7fb; border-color:#cbd7e4; }
html[data-theme="light"] .monitor-options { background:#fff; border-color:#bdcad9; }
html[data-theme="light"] .badge-success { color:#08704b; background:#e4f5ed; border-color:#a7d9c6; }
html[data-theme="light"] .page-toolbar { background:rgba(255,255,255,.88); border-color:#d2dde9; box-shadow:0 4px 16px rgba(39,65,96,.05); }
html[data-theme="light"] .view-switch { background:#e8eef5; border-color:#ced9e5; }
html[data-theme="light"] .view-button:hover,html[data-theme="light"] .view-button.active { color:#174c82; background:#fff; }
html[data-theme="light"] .form-section,html[data-theme="light"] .provider-section,html[data-theme="light"] .details-box {
  background:#f3f7fb;
  border-color:#d8e2ed;
}
html[data-theme="light"] .form-section-head>span { color:#174c82; background:#e3effd; border-color:#b7ceeb; }
html[data-theme="light"] label { color:#40536b; }
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select,html[data-theme="light"] .check-card {
  color:#122036;
  background:#fff;
  border-color:#bdcad9;
}
html[data-theme="light"] .role-choice,html[data-theme="light"] .helper-fields,html[data-theme="light"] .selection-card,html[data-theme="light"] .selection-empty { color:#40536b; background:#fff; border-color:#bdcad9; }
html[data-theme="light"] .role-choice:has(input:checked),html[data-theme="light"] .selection-card:has(input:checked) { background:#e8f2ff; border-color:#78a6dc; }
html[data-theme="light"] .selection-check { border-color:#a7b7c9; }
html[data-theme="light"] .selection-card-tags em { color:#175b9e; background:#e7f1fc; border-color:#bad1ea; }
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder { color:#79899c; opacity:1; }
html[data-theme="light"] input[readonly] { color:#52647b; background:#edf2f7; }
html[data-theme="light"] .table-wrap { background:#fff; border-color:#d4deea; }
html[data-theme="light"] th { color:#52657d; background:#edf3f8; }
html[data-theme="light"] td { color:#374960; }
html[data-theme="light"] tbody tr:hover td { background:#f2f7fd; }
html[data-theme="light"] .btn-secondary,html[data-theme="light"] .button.secondary { color:#344a65; background:#edf3f8; border-color:#bdcada; }
html[data-theme="light"] .button.ghost { color:#175fae; border-color:#9bbce2; }
html[data-theme="light"] .button.danger-ghost { color:#b8273e; border-color:#e1a9b3; }
html[data-theme="light"] .command-box { background:#eef4fb; border-color:#c8d7e7; }
html[data-theme="light"] .command-box code { color:#103f75; }
html[data-theme="light"] .command-box button { color:#175fae; background:#dfebf9; border-left-color:#c5d5e6; }
html[data-theme="light"] .warning-box { background:#fff6df; border-color:#e8cc8c; }
html[data-theme="light"] .warning-box strong { color:#895100; }
html[data-theme="light"] .warning-box p { color:#735f36; }
html[data-theme="light"] .drawer-backdrop { background:rgba(30,45,65,.42); }
html[data-theme="light"] .drawer-panel { background:#f8fbfe; box-shadow:-24px 0 70px rgba(31,52,77,.2); }
html[data-theme="light"] .drawer-head { background:#fff; }
html[data-theme="light"] .drawer-footer { background:rgba(248,251,254,.96); }
html[data-theme="light"] .setup-record-dialog { color:#122036; background:#f8fbfe; border-color:#b9c7d8; box-shadow:0 28px 80px rgba(31,52,77,.24); }
html[data-theme="light"] .setup-record-dialog::backdrop { background:rgba(30,45,65,.44); }
html[data-theme="light"] .setup-record-head { background:#fff; border-color:#d5dfeb; }
html[data-theme="light"] .setup-record-meta>div { background:#f3f7fc; border-color:#dfe8f2; }
html[data-theme="light"] .setup-record-meta dd { color:#344760; }
html[data-theme="light"] .flash { color:#123e70; background:#e2efff; border-color:#a9c7ea; }
html[data-theme="light"] .flash-error { color:#982137; background:#ffe8ed; border-color:#e9aeb9; }
html[data-theme="light"] .page-footer { color:#6b7b8f; }
html[data-theme="light"] .auth-page { background:radial-gradient(700px 400px at 50% 0,rgba(39,121,220,.12),transparent 65%),#edf2f8; }

@media (max-width:1100px) { .resource-grid[data-view="list"] .resource-card { grid-template-columns:minmax(170px,.8fr) minmax(300px,1.4fr); }.resource-grid[data-view="list"] .resource-actions { grid-column:1/-1; justify-content:flex-start; } }
@media (max-width:760px) { .management-head { display:grid; }.management-head-actions { justify-content:flex-start; }.page-toolbar { align-items:stretch; flex-direction:column; }.toolbar-search { width:100%; }.toolbar-group { justify-content:space-between; }.resource-grid { grid-template-columns:1fr; }.resource-grid[data-view="list"] .resource-card { display:block; }.resource-grid[data-view="list"] .resource-card-head { margin-bottom:15px; }.resource-grid[data-view="list"] .resource-meta { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:14px; }.drawer-panel { width:100%; }.drawer-body { padding:16px 15px 26px; }.drawer-head { padding:16px 15px; }.drawer-body .form-grid,.drawer-body .compact-grid,.role-choice-grid,.selection-grid { grid-template-columns:1fr; }.helper-fields-head,.selection-group-head { align-items:flex-start; flex-direction:column; }.target-selection-card { grid-template-columns:1fr; }.selection-card-tags { justify-content:flex-start; }.drawer-footer { bottom:-26px; margin:16px -15px -26px; padding:12px 15px; }.setup-record-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }.setup-record-head,.setup-record-body { padding-left:15px; padding-right:15px; } }
@media (max-width:430px) { .setup-record-meta { grid-template-columns:1fr; }.setup-record-output-head { align-items:flex-start; flex-direction:column; } }
@media (max-width:560px) { .public-status-main { padding:19px 12px; }.public-status-head { align-items:flex-start; flex-direction:column; }.public-status-head p { max-width:290px; } }

/* Panel settings */
.settings-restart-note { display:flex; align-items:center; gap:12px; max-width:1400px; margin:0 auto 16px; padding:12px 15px; color:#bba97f; background:#2a2111; border:1px solid #5a451d; border-radius:10px; font-size:11px; }.settings-restart-note strong { flex:0 0 auto; color:var(--amber); }.settings-restart-note code { color:#f6ca7e; }
.settings-panel { padding:0; overflow:hidden; }.settings-tabs { display:flex; align-items:center; gap:2px; padding:0 16px; overflow-x:auto; background:#0d141f; border-bottom:1px solid var(--border); }.settings-tabs button { position:relative; flex:0 0 auto; padding:15px 16px 13px; color:var(--muted); background:transparent; border:0; cursor:pointer; font-size:12px; font-weight:650; }.settings-tabs button::after { content:""; position:absolute; right:12px; bottom:0; left:12px; height:2px; transform:scaleX(0); background:var(--blue); border-radius:2px 2px 0 0; transition:.15s ease; }.settings-tabs button:hover,.settings-tabs button.active { color:var(--text); }.settings-tabs button.active::after { transform:scaleX(1); }
.settings-form { display:grid; }.settings-tab-panel { padding:23px; }.settings-tab-panel[hidden] { display:none; }.settings-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }.settings-section-head h2 { margin:0 0 3px; font-size:16px; }.settings-section-head p { margin:0; color:var(--muted); font-size:11px; }.settings-field-list { display:grid; gap:11px; }.settings-field-list-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.settings-field,.settings-toggle { min-width:0; padding:14px 15px; background:#0b121c; border:1px solid var(--border); border-radius:10px; }.settings-field { display:grid; grid-template-columns:minmax(230px,.85fr) minmax(260px,1.15fr); align-items:center; gap:22px; }.settings-field textarea { min-height:92px; }.settings-field-copy { display:grid; min-width:0; gap:3px; }.settings-field-copy strong { color:var(--text); font-size:12px; }.settings-field-copy strong em { display:inline-flex; margin-left:7px; padding:1px 5px; color:var(--amber); background:var(--amber-soft); border:1px solid #5b471d; border-radius:4px; font-size:8px; font-style:normal; vertical-align:1px; }.settings-field-copy small { color:var(--muted); font-size:10px; font-weight:500; line-height:1.45; }.settings-field-copy code { margin-top:3px; color:#61758f; font-size:9px; font-weight:500; }.settings-field-list-grid .settings-field { grid-template-columns:minmax(0,1fr) 140px; }.settings-toggle { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:12px; cursor:pointer; }.settings-toggle>input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }.settings-toggle-track { position:relative; width:38px; height:21px; margin-top:1px; background:#283448; border:1px solid #3b4b62; border-radius:999px; transition:.15s ease; }.settings-toggle-track i { position:absolute; top:3px; left:3px; width:13px; height:13px; background:#8997aa; border-radius:50%; transition:.15s ease; }.settings-toggle:has(input:checked) { background:#101c2c; border-color:#315887; }.settings-toggle input:checked+.settings-toggle-track { background:#246fcd; border-color:#4389df; }.settings-toggle input:checked+.settings-toggle-track i { transform:translateX(17px); background:white; }.settings-toggle:has(input:focus-visible) { box-shadow:0 0 0 3px rgba(79,140,255,.18); }.settings-clear-secret { display:flex; align-items:center; grid-auto-flow:column; justify-content:flex-start; gap:8px; margin-top:12px; color:var(--red); }.settings-clear-secret input { width:auto; accent-color:var(--red); }.settings-inline-actions { display:flex; align-items:center; gap:12px; margin-top:15px; }.settings-inline-actions span,.settings-save-bar span { color:var(--muted); font-size:10px; }.settings-save-bar { display:flex; align-items:center; gap:14px; padding:15px 23px; background:#0d141f; border-top:1px solid var(--border); }.settings-tab-panel .warning-box { margin-top:13px; }
html[data-theme="light"] .settings-restart-note { color:#705d34; background:#fff6df; border-color:#e8cc8c; }.settings-restart-note strong { color:#895100; }html[data-theme="light"] .settings-restart-note code { color:#7d5000; }
html[data-theme="light"] .settings-tabs,html[data-theme="light"] .settings-save-bar { background:#f3f7fb; border-color:#d6e0eb; }html[data-theme="light"] .settings-tabs button { color:#5a6c83; }html[data-theme="light"] .settings-tabs button:hover,html[data-theme="light"] .settings-tabs button.active { color:#145caa; }
html[data-theme="light"] .settings-field,html[data-theme="light"] .settings-toggle { background:#fbfdff; border-color:#d5dfeb; }html[data-theme="light"] .settings-toggle:has(input:checked) { background:#eaf3ff; border-color:#8eb3dd; }html[data-theme="light"] .settings-toggle-track { background:#d4deea; border-color:#b4c1d0; }html[data-theme="light"] .settings-toggle-track i { background:#71839a; }html[data-theme="light"] .settings-field-copy code { color:#667a92; }
@media (max-width:1000px) { .settings-field-list-grid { grid-template-columns:1fr; } }
@media (max-width:760px) { .settings-restart-note { align-items:flex-start; flex-direction:column; }.settings-tabs { padding:0 8px; }.settings-tab-panel { padding:17px 14px; }.settings-field { grid-template-columns:1fr; gap:10px; }.settings-field-list-grid .settings-field { grid-template-columns:minmax(0,1fr) 120px; }.settings-save-bar { align-items:stretch; flex-direction:column; padding:14px; }.settings-save-bar .button { width:100%; }.settings-inline-actions { align-items:flex-start; flex-direction:column; } }
@media (max-width:480px) { .settings-field-list-grid .settings-field { grid-template-columns:1fr; }.settings-section-head { align-items:flex-start; flex-direction:column; } }

/* Shared dashboard/public views and persistent machine ordering */
.public-visibility-choice { grid-column:1/-1; }
.public-status-actions { display:flex; align-items:center; gap:9px; }
.sort-feedback { color:var(--muted); font-size:9px; white-space:nowrap; transition:color .15s ease; }
.sort-feedback[data-state="saving"] { color:var(--blue-2); }
.sort-feedback[data-state="saved"] { color:var(--green); }
.sort-feedback[data-state="failed"] { color:var(--red); }
.sortable-machine-grid .dashboard-machine-card { cursor:grab; transition:opacity .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.sortable-machine-grid .dashboard-machine-card:active { cursor:grabbing; }
.sortable-machine-grid .dashboard-machine-card.is-dragging { z-index:2; opacity:.42; border-color:var(--blue); box-shadow:0 14px 36px rgba(0,0,0,.28); }
.machine-drag-handle { position:absolute; z-index:1; top:3px; right:5px; display:grid; place-items:center; width:17px; height:17px; color:#64738a; font-size:13px; line-height:1; }
.sortable-machine-grid .dashboard-machine-head { padding-right:9px; }
html[data-theme="light"] .machine-drag-handle { color:#71839a; }
@media (max-width:760px) {
  .fleet-status-head { align-items:flex-start; flex-direction:column; }
  .fleet-status-head .toolbar-group { width:100%; }
  .sort-feedback { white-space:normal; }
}
@media (max-width:560px) {
  .public-status-actions { align-items:flex-start; flex-direction:column; }
}

/* Dense machine table used by the real list view */
.machine-view>[data-view-pane="list"] { display:none; }
.machine-view[data-view="list"]>[data-view-pane="card"] { display:none; }
.machine-view[data-view="list"]>[data-view-pane="list"] { display:block; }
.machine-table-scroll { overflow-x:auto; background:#0b121c; border:1px solid var(--border); border-radius:9px; scrollbar-gutter:stable; }
.machine-status-table { min-width:1540px; table-layout:auto; font-size:10px; }
.machine-status-table th { height:38px; padding:8px 9px; white-space:nowrap; text-align:center; }
.machine-status-table.is-sortable th:nth-child(2),.machine-status-table:not(.is-sortable) th:first-child { text-align:left; }
.machine-status-table td { height:54px; padding:8px 9px; white-space:nowrap; text-align:center; vertical-align:middle; }
.machine-status-table .machine-name-cell { min-width:132px; text-align:left; }
.machine-name-cell strong,.machine-name-cell code,.machine-ip-cell small { display:block; }
.machine-name-cell strong { overflow:hidden; max-width:160px; color:var(--text); font-size:11px; text-overflow:ellipsis; }
.machine-name-cell code { margin-top:3px; color:var(--muted); font-size:8px; }
.machine-ip-cell { min-width:118px; text-align:left!important; }
.machine-ip-cell .ip-value { justify-content:flex-start; }
.machine-ip-cell small { margin-top:4px; color:var(--muted); font-size:8px; }
.machine-status-table .online-state { padding:3px 6px; }
.machine-status-table .agent-version-badge { white-space:nowrap; }
.machine-status-table .status { white-space:nowrap; }
.machine-status-table .gfw-state { justify-content:center; white-space:nowrap; }
.machine-order-column { width:26px; min-width:26px; padding-right:3px!important; padding-left:5px!important; }
.machine-row-drag { display:grid; place-items:center; width:18px; height:24px; color:#68778d; font-size:14px; cursor:grab; }
.machine-status-row[data-agent-sort-item] { cursor:grab; }
.machine-status-row[data-agent-sort-item]:active,.machine-row-drag:active { cursor:grabbing; }
.machine-status-row.is-dragging td { opacity:.45; background:#12233b; border-color:var(--blue); }
.machine-metric-cell { min-width:96px; }
.machine-list-metric { display:grid; grid-template-columns:58px 30px; align-items:center; justify-content:center; gap:5px; }
.machine-list-metric .metric-track { height:7px; }
.machine-list-metric b { color:var(--soft); font-size:9px; font-variant-numeric:tabular-nums; text-align:right; }
.numeric-cell { color:var(--soft); font-variant-numeric:tabular-nums; }
.gfw-elapsed { font-variant-numeric:tabular-nums; white-space:nowrap; }
.live-sync-state { color:var(--muted); font-size:11px; }
.live-sync-state.is-error { color:var(--orange,#e5a153); }
.machine-status-table td[data-runtime-value="uptime_sec"] { min-width:80px; }
.machine-status-table td[data-runtime-value="load"] { min-width:112px; }
.machine-status-table td[data-runtime-value="connections"] { min-width:130px; }
.machine-status-table td[data-runtime-value="speed"] { min-width:155px; }
.machine-status-table td[data-runtime-value="traffic"] { min-width:165px; }
html[data-theme="light"] .machine-table-scroll { background:#fff; border-color:#d4deea; }
html[data-theme="light"] .machine-status-row.is-dragging td { background:#e2efff; border-color:#78a6dc; }
html[data-theme="light"] .machine-list-metric b { color:#344760; }

@media (min-width:1500px) {
  .public-status-main { width:min(1780px,100%); }
}

@media (max-width:560px) {
  .public-status-actions { flex-direction:row; align-items:center; flex-wrap:wrap; width:100%; }
  .public-status-actions .live-sync-state { order:3; flex-basis:100%; }
  .fleet-status-head .toolbar-group { flex-wrap:wrap; }
  .fleet-status-head .sort-feedback { flex-basis:100%; }
  .fleet-status-head .live-sync-state { margin-right:auto; }
}
/* Compact status history, shared by machine cards and table rows. */
.machine-history[hidden] { display:none; }
.machine-history { min-width:0; margin:0 0 12px; }
.machine-history-heading,.machine-history-caption { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:10px; }
.machine-history-legend { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.machine-history-legend i { display:inline-block; width:5px; height:5px; border-radius:1px; margin-left:3px; }
.machine-history-bars { display:flex; gap:2px; width:100%; height:19px; padding:2px 0; margin:6px 0; border-radius:2px; }
.history-bar { flex:1 1 0; min-width:0; height:100%; background:var(--border-strong); border-radius:1px; }
.history-bar.normal,.machine-history-legend .normal { background:var(--green); }
.history-bar.blocked,.machine-history-legend .blocked { background:var(--amber); }
.history-bar.offline,.machine-history-legend .offline { background:var(--red); }
.history-bar:hover,.history-bar.is-selected { outline:2px solid var(--text); outline-offset:1px; position:relative; z-index:1; }
.machine-history-bars:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.machine-history-caption { font-size:9px; align-items:start; }
.machine-history-caption>span:first-child { min-width:0; overflow-wrap:anywhere; }
.machine-history-caption>span:last-child { flex-shrink:0; }
.machine-name-cell:has(.machine-history:not([hidden])) { min-width:300px; max-width:340px; }
.machine-name-cell .machine-history { margin:9px 0 0; }
.machine-name-cell .machine-history-heading { font-size:9px; }
.machine-name-cell .machine-history-caption { white-space:normal; }
.machine-name-cell .machine-history-bars { height:16px; }
.gfw-state.blocked { color:var(--amber); background:var(--amber-soft); }
.gfw-state.blocked i { color:var(--bg); background:var(--amber); }
@media(max-width:480px) { .machine-history-bars { gap:1px; } .machine-history-heading { font-size:9px; } }
.online-state.offline { color:var(--red); background:var(--red-soft); border-color:var(--red); }
.online-state.offline i { background:var(--red); }

.lb-source-state { flex-shrink:0; white-space:nowrap; }

/* Instance ownership uses the existing operational table/card hierarchy. */
.ownership-details { margin-top:7px; max-width:270px; color:var(--muted); font-size:10px; font-weight:400; white-space:normal; }
.ownership-details[hidden] { display:none; }
.ownership-details summary { cursor:pointer; color:var(--text); line-height:1.7; }
.ownership-details summary:focus-visible { outline:2px solid var(--blue,#548fff); outline-offset:3px; border-radius:2px; }
.ownership-details dl { margin:6px 0 0; padding-top:5px; border-top:1px solid var(--border); }
.ownership-details dl > div { display:grid; grid-template-columns:76px minmax(0,1fr); gap:8px; padding:3px 0; }
.ownership-details dt { color:var(--muted); }
.ownership-details dd { margin:0; color:var(--text); overflow-wrap:anywhere; }
.dashboard-machine-card .ownership-details { max-width:none; margin:9px 0; }

.gfw-full-scan { margin:12px 0; min-width:0; max-width:100%; }
.scan-target { min-width:0; margin:8px 0; padding:10px 12px; border:1px solid var(--border); border-radius:6px; }
.scan-target-summary { display:flex; flex-wrap:wrap; gap:6px 12px; cursor:pointer; font-size:12px; line-height:1.8; }
.scan-target-summary strong::before { content:'▸ '; color:var(--muted); }
.scan-target[open] .scan-target-summary strong::before { content:'▾ '; }
.scan-target-summary:focus-visible { outline:2px solid var(--blue,#548fff); outline-offset:3px; }
.scan-counts,.scan-meta { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.scan-meta { margin:7px 0; line-height:1.7; }
.scan-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.scan-toolbar input,.scan-toolbar select { min-width:100px; width:auto; flex:1; font-size:12px; }
.scan-table-wrap { max-width:100%; overflow-x:auto; }
.gfw-sections .scan-port-table { min-width:620px; width:100%; }
.scan-port-table td,.scan-port-table th { font-size:11px; padding:8px; text-align:left; }
.scan-probe-list { white-space:pre-line; line-height:1.7; }
.scan-state-clear { color:var(--green); }
.scan-state-blocked { color:var(--red); }
.scan-state-unreachable { color:var(--amber,#e3b45e); }
.scan-state-unknown { color:var(--muted); }
.scan-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; color:var(--muted); font-size:11px; }
.scan-footer > span { margin-right:auto; }
.gfw-state.unreachable { color:var(--amber,#e3b45e); }

.gfw-control-hint { color:var(--muted); font-size:11px; line-height:1.7; margin:8px 0 12px; }

.gfw-sections .gfw-rule-full { grid-column:1 / -1; }
.gfw-sections .resource-grid[data-view="list"] .gfw-rule-full { display:block; }
.gfw-sections .gfw-rule-full .resource-card-head { margin-bottom:15px; }
.gfw-sections .gfw-rule-full .resource-meta { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); margin:0 0 14px; }
.gfw-rule-full .scan-table-wrap { max-height:440px; overflow:auto; }
.gfw-rule-full .scan-port-table th { position:sticky; top:0; background:var(--bg); z-index:1; }
.gfw-sections .gfw-rule-full .resource-actions { justify-content:flex-start; }
@media(max-width:480px) { .gfw-sections .gfw-rule-full .resource-meta { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.gfw-state.limited { color:var(--blue-2); background:var(--blue-soft); }
.gfw-state.limited i { color:var(--bg); background:var(--blue-2); }
.history-bar.limited,.machine-history-legend .limited { background:var(--blue-2); }

.gfw-scan-options { align-items:start; }

/* Compact dashboard chrome */
.dashboard-head { margin-bottom:10px; }
/* Let the machines sit directly on the page in both themes. */
.panel.fleet-status-panel,html[data-theme="light"] .panel.fleet-status-panel { padding:0; background:none; border:0; border-radius:0; box-shadow:none; }
.fleet-status-panel .fleet-status-head { flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:10px; }
.fleet-status-panel .fleet-status-head .toolbar-group { width:auto; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.fleet-status-panel .sort-feedback:empty,.fleet-status-panel .live-sync-state:not(.is-error) { display:none; }
.fleet-status-panel .dashboard-machine-grid { gap:10px; }
.fleet-status-panel .dashboard-machine-card { max-width:none; padding:12px; }
.fleet-status-panel .machine-history { margin-bottom:8px; }
.fleet-status-panel .dashboard-status-grid { margin-top:8px; padding:3px 9px; }
.fleet-status-panel .dashboard-status-grid>div { min-height:28px; padding:4px 0; }
.fleet-status-panel .runtime-monitor { margin-top:7px; padding:8px; }
.fleet-status-panel .runtime-monitor-head { margin-bottom:6px; }
.fleet-status-panel .runtime-detail-grid { gap:3px; margin-top:7px; padding-top:6px; }
.fleet-status-panel .runtime-disabled { margin-top:7px; padding:6px 8px; }
.fleet-status-panel .machine-status-table th { height:34px; padding:6px 8px; }
.fleet-status-panel .machine-status-table td { height:46px; padding:6px 8px; }

.fleet-status-panel .machine-name-cell:has(.machine-history:not([hidden])) { min-width:220px; max-width:260px; }
.fleet-status-panel .machine-name-cell .machine-history { margin:5px 0 0; }
.fleet-status-panel .machine-name-cell .machine-history-bars { height:14px; gap:1px; margin:3px 0 0; }
.fleet-status-panel .machine-name-cell .ownership-details { margin-top:4px; }
.fleet-status-panel .machine-name-cell .machine-history-legend,.fleet-status-panel .machine-name-cell .machine-history-caption { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Responsive fleet canvas and a single-line machine identity. */
.main-panel:has(>.fleet-status-panel) { padding:24px 20px; }
.dashboard-head,.panel.fleet-status-panel { max-width:none; }
.public-status-main { width:100%; max-width:none; padding:24px 20px; }
.fleet-status-panel .dashboard-machine-grid,.public-status-main .dashboard-machine-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.public-status-main .dashboard-machine-card { max-width:none; }
.dashboard-machine-card .dashboard-machine-head { grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:0; }
.dashboard-machine-head .dashboard-machine-name { grid-column:1; grid-row:1; display:flex; align-items:center; gap:6px; min-width:0; }
.dashboard-machine-head .dashboard-machine-name h3 { flex:0 1 auto; min-width:0; margin:0; line-height:1.3; }
.dashboard-machine-head .dashboard-machine-name .agent-version-badge { flex-shrink:0; }
.dashboard-machine-card .dashboard-machine-head>.online-state { grid-column:2; grid-row:1; justify-self:end; }
.dashboard-machine-card .dashboard-machine-name .agent-version-badge,.dashboard-machine-card .dashboard-machine-head>.online-state { min-height:20px; height:20px; line-height:1; }
@media(max-width:760px) { .main-panel:has(>.fleet-status-panel) { padding:66px 14px 20px; } }
@media(max-width:560px) { .public-status-main { padding:19px 12px; } }

/* Resource capacity details without changing the compact meter layout. */
[data-runtime-capacity] { cursor: help; }
[data-runtime-capacity]:focus-visible { outline: 1px solid var(--accent, #60a5fa); outline-offset: 3px; border-radius: 3px; }
.ui-tooltip { position:fixed; z-index:10000; pointer-events:none; max-width:min(360px,calc(100vw - 16px)); padding:7px 9px; border:0; border-radius:3px; background:rgba(38,38,38,.96); color:#fff; font-size:12px; font-weight:500; line-height:1.45; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; box-shadow:0 3px 10px #0005; }
.ui-tooltip[hidden] { display: none; }

/* Hide the two secondary card rows; keep keyboard history announcements. */
.dashboard-machine-card .machine-history-caption { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.dashboard-machine-card>.ownership-details { display:none; }


/* Flatten the status and runtime sections inside each machine card. */
.dashboard-machine-card .dashboard-status-grid,
html[data-theme="light"] .dashboard-machine-card .dashboard-status-grid {
  margin-top:6px; padding:0; background:none; border:0; border-radius:0; box-shadow:none;
}
.dashboard-machine-card .dashboard-status-grid>div,
html[data-theme="light"] .dashboard-machine-card .dashboard-status-grid>div {
  background:none; border-bottom-color:var(--border);
}
.dashboard-machine-card .runtime-monitor,
.dashboard-machine-card .runtime-disabled,
html[data-theme="light"] .dashboard-machine-card .runtime-monitor,
html[data-theme="light"] .dashboard-machine-card .runtime-disabled {
  margin-top:8px; padding:8px 0 0; background:none; border:0; border-top:1px solid var(--border); border-radius:0; box-shadow:none;
}



/* Flat card content without section rules or a runtime heading row. */
.dashboard-machine-card .runtime-monitor-head { display:none; }
.dashboard-machine-card .dashboard-status-grid>div,
.dashboard-machine-card .runtime-monitor,
.dashboard-machine-card .runtime-disabled,
.dashboard-machine-card .runtime-detail-grid,
html[data-theme="light"] .dashboard-machine-card .dashboard-status-grid>div,
html[data-theme="light"] .dashboard-machine-card .runtime-monitor,
html[data-theme="light"] .dashboard-machine-card .runtime-disabled,
html[data-theme="light"] .dashboard-machine-card .runtime-detail-grid { border:0; }
.dashboard-machine-card .runtime-monitor { padding-top:4px; }
.dashboard-machine-card .runtime-detail-grid { padding-top:0; }
