:root{
  --bg:#0f172a;
  --bg2:#111827;
  --panel:#ffffff;
  --panel2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --green:#16a34a;
  --amber:#d97706;
  --red:#dc2626;
  --gray:#475569;
  --shadow:0 20px 60px rgba(15,23,42,.12);
  --radius:22px;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:#eef2f7;color:var(--text)}
a{color:inherit;text-decoration:none}
.layout{min-height:100vh;display:flex}
.sidebar{width:286px;background:linear-gradient(180deg,#0b1224,#111827);color:white;padding:26px 20px;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0}
.brand{display:flex;gap:14px;align-items:center;margin-bottom:34px}.brand-logo,.login-logo{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#60a5fa,#2563eb);display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff;box-shadow:0 10px 30px rgba(37,99,235,.35)}
.brand-title{font-weight:800;font-size:20px;letter-spacing:.2px}.brand-sub{font-size:12px;color:#94a3b8;margin-top:3px}.nav{display:flex;flex-direction:column;gap:8px}.nav-link{padding:13px 14px;border-radius:14px;color:#cbd5e1;font-weight:650}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.10);color:#fff}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:18px}.mini-label{color:#94a3b8;font-size:12px}.mini-label.mt-mini{margin-top:12px}.mini-value{margin:5px 0 15px;font-weight:700}.mini-value.compact{margin:4px 0 8px;font-size:12px;color:#dbeafe;line-height:1.35;word-break:break-word}.logout{display:inline-flex;color:#bfdbfe;font-size:14px}
.main{margin-left:286px;width:calc(100% - 286px);padding:30px 34px 50px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.topbar h1{margin:0;font-size:34px;letter-spacing:-.8px}.topbar p{margin:7px 0 0;color:var(--muted)}.top-actions,.toolbar{display:flex;gap:12px;align-items:center}.toolbar{margin-bottom:18px}.toolbar.wrap{justify-content:space-between;flex-wrap:wrap}.filter-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{border:0;border-radius:14px;padding:11px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;box-shadow:none}.btn.primary{background:linear-gradient(135deg,var(--primary),#4f46e5);color:white}.btn.primary:hover{background:linear-gradient(135deg,var(--primary2),#4338ca)}.btn.ghost{background:#fff;color:#1e293b;border:1px solid var(--line)}.btn.danger{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}.btn.small{padding:8px 10px;border-radius:10px;font-size:12px}.btn.wide{width:100%}.alert{border-radius:16px;padding:14px 16px;margin-bottom:18px;font-weight:700}.alert.success{background:#dcfce7;color:#166534}.alert.danger{background:#fee2e2;color:#991b1b}.alert.warning{background:#fef3c7;color:#92400e}.alert.info{background:#dbeafe;color:#1e40af}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.stat-card{border-radius:var(--radius);padding:22px;background:#fff;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-22px;top:-22px;width:96px;height:96px;border-radius:50%;opacity:.14}.stat-card.blue:after{background:#2563eb}.stat-card.green:after{background:#16a34a}.stat-card.amber:after{background:#d97706}.stat-card.gray:after{background:#475569}.stat-card span{display:block;color:var(--muted);font-weight:800}.stat-card strong{display:block;font-size:42px;margin:8px 0 5px;letter-spacing:-1px}.stat-card small{color:#94a3b8;font-weight:650}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-head h2{margin:0;font-size:20px}.panel-head a{font-weight:800;color:var(--primary);font-size:14px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px;vertical-align:top}th{color:#64748b;font-size:13px;background:#f8fafc;font-weight:900}td{font-size:14px}.records-table{min-width:1120px}.muted{color:#64748b;font-size:12px}.empty{text-align:center;color:#94a3b8;padding:34px!important}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;margin:2px 2px 2px 0}.pill.ok{background:#dcfce7;color:#166534}.pill.warn{background:#fef3c7;color:#92400e}.pill.gray{background:#e2e8f0;color:#334155}.status-stack{display:flex;flex-wrap:wrap;gap:3px;max-width:240px}.error-text{margin-top:7px;color:#b91c1c;font-size:12px;max-width:320px;line-height:1.45}.actions{display:flex;flex-wrap:wrap;gap:8px;min-width:220px}.actions form{display:inline-flex}.inline-form{display:flex;gap:6px}.inline-form input{width:48px;padding:8px;border:1px solid var(--line);border-radius:10px}.timeline{display:flex;flex-direction:column;gap:10px}.tl-item{border:1px solid var(--line);border-left:4px solid #94a3b8;border-radius:14px;padding:12px 14px;background:#fff}.tl-item.success{border-left-color:#16a34a}.tl-item.error,.tl-item.warning{border-left-color:#d97706}.tl-title{font-weight:900}.tl-title span{float:right;color:#94a3b8;font-weight:600;font-size:12px}.tl-body{margin-top:6px;color:#334155;font-size:13px;line-height:1.5}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;font-size:14px;outline:none;background:#fff}input:focus,select:focus,textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.18)}label{font-weight:900;color:#334155;display:flex;flex-direction:column;gap:8px}label small{font-weight:600;color:#64748b}.form-panel{max-width:980px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-stack{display:flex;flex-direction:column;gap:16px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.form-actions{display:flex;gap:12px;align-items:center}.record-title{display:flex;align-items:center;justify-content:space-between;font-size:20px;margin-bottom:18px}.kv{display:flex;flex-direction:column;gap:12px}.kv div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding-bottom:12px}.kv span{color:#64748b;font-weight:750}.kv strong{text-align:right}.notice-list{display:flex;flex-direction:column;gap:12px;line-height:1.65;color:#334155}.mt{margin-top:18px}code{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:2px 6px;color:#0f172a}.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 10%,#1d4ed8 0,#0f172a 30%,#020617 100%);padding:24px}.login-card{width:420px;background:rgba(255,255,255,.95);border-radius:28px;padding:34px;box-shadow:0 35px 100px rgba(0,0,0,.35)}.login-logo{margin-bottom:18px}.login-card h1{margin:0;font-size:28px}.login-card p{color:#64748b;margin:8px 0 24px}.login-tip{color:#64748b;font-size:12px;margin-top:18px;line-height:1.5}
@media (max-width:1100px){.sidebar{position:static;width:100%;height:auto}.layout{display:block}.main{margin-left:0;width:100%;padding:22px}.stat-grid,.grid-2{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.form-grid,.form-row{grid-template-columns:1fr}.sidebar-footer{display:none}.nav{flex-direction:row;flex-wrap:wrap}.nav-link{padding:10px 12px}.brand{margin-bottom:18px}}

.toolbar-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.choice-card{border:1px solid var(--line);border-radius:18px;padding:16px;background:#f8fafc;cursor:pointer;transition:.15s;gap:8px}
.choice-card:hover{border-color:#93c5fd;box-shadow:0 10px 30px rgba(37,99,235,.10);transform:translateY(-1px)}
.choice-card input{width:auto;margin:0}
.choice-card strong{font-size:16px;color:#0f172a}
.choice-card span{font-weight:600;color:#64748b;line-height:1.5;font-size:13px}
@media (max-width:1100px){.choice-grid{grid-template-columns:1fr}.toolbar-actions{width:100%}}
.wide-panel{max-width:1120px}.node-line{margin-top:5px}.loss-mini{margin-top:8px;display:flex;align-items:center;gap:8px;color:#64748b;font-size:12px}.loss-mini-bar{height:8px;flex:1;min-width:80px;border-radius:99px;background:#e2e8f0;overflow:hidden}.loss-mini-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#16a34a,#22c55e)}.records-table-v23{min-width:1280px}.records-table-v23 th:nth-child(3),.records-table-v23 td:nth-child(3){min-width:310px}
.vmess-preview{margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;padding:8px;max-width:360px}.vmess-preview summary{cursor:pointer;font-weight:900;color:#1e293b;font-size:12px}.vmess-preview textarea{margin-top:8px;width:100%;max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.45;word-break:break-all}.vmess-preview-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.vmess-qr-preview{display:block;width:132px;height:132px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:6px}

/* v2.4 */
.domain-preview-box{background:#f8fafc;border:1px dashed #93c5fd;border-radius:18px;padding:14px}
.copy-row{display:flex;gap:10px;align-items:center;margin-top:8px}
.copy-row code{font-size:16px;font-weight:900;word-break:break-all;flex:1}
.cf-filter{align-items:end}
.cf-scan-panel .filter-form input{min-width:320px}
.cf-records-table{min-width:1180px}
.break-all{word-break:break-all;overflow-wrap:anywhere}
.public-body{background:#0b1224;color:#e5e7eb;min-height:100vh}
.public-wrap{max-width:1500px;margin:0 auto;padding:28px}
.public-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;background:linear-gradient(135deg,#111827,#0f172a);border:1px solid rgba(148,163,184,.18);border-radius:26px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.3);margin-bottom:18px}
.public-title{font-size:34px;font-weight:950;letter-spacing:-.8px}
.public-sub{color:#94a3b8;margin-top:8px}
.public-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.public-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.public-kpi{background:linear-gradient(180deg,#111827,#0f172a)!important;color:#e5e7eb;border:1px solid rgba(148,163,184,.18)}
.public-kpi .l{color:#94a3b8}
.public-panel{background:#0f172a;border:1px solid rgba(148,163,184,.18);box-shadow:0 20px 60px rgba(0,0,0,.3)}
.public-panel th{background:#111827;color:#94a3b8;border-bottom-color:#1f2937}
.public-panel td{border-bottom-color:#1f2937;color:#e5e7eb}
.public-panel code{background:#111827;border-color:#334155;color:#e5e7eb}
.public-table{min-width:1180px}
@media (max-width:900px){
  .public-hero{flex-direction:column}
  .public-grid{grid-template-columns:1fr 1fr}
  .copy-row{flex-direction:column;align-items:stretch}
}


/* v2.5 推送设置与公开页重构 */
button:disabled,.btn:disabled{opacity:.45;cursor:not-allowed}
.panel-subtitle{font-weight:900;color:#0f172a;border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
.switch-line{display:grid;grid-template-columns:1fr 180px;align-items:center}
.push-test-grid{display:grid;grid-template-columns:1fr;gap:12px}

.public-v25-body{
  min-height:100vh;
  margin:0;
  color:#e5e7eb;
  background:
    radial-gradient(circle at 15% 10%, rgba(37,99,235,.28), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(34,197,94,.12), transparent 26%),
    linear-gradient(180deg,#070b16,#0b1224 55%,#09111f);
}
.public-v25{max-width:1560px;margin:0 auto;padding:30px}
.status-hero{
  display:grid;
  grid-template-columns:1fr 260px;
  gap:22px;
  align-items:stretch;
  margin-bottom:20px;
}
.hero-copy,.hero-score,.status-kpi,.status-section,.domain-card{
  border:1px solid rgba(148,163,184,.16);
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
}
.hero-copy{
  border-radius:30px;
  padding:34px;
  background:linear-gradient(135deg,rgba(15,23,42,.95),rgba(17,24,39,.82));
}
.hero-eyebrow{color:#93c5fd;text-transform:uppercase;font-size:12px;letter-spacing:.16em;font-weight:900}
.hero-copy h1{font-size:44px;line-height:1.05;margin:10px 0 10px;letter-spacing:-1.2px}
.hero-copy p{color:#94a3b8;margin:0}
.hero-score{
  border-radius:30px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}
.hero-score.score-ok{background:linear-gradient(135deg,rgba(22,163,74,.25),rgba(15,23,42,.92))}
.hero-score.score-warn{background:linear-gradient(135deg,rgba(217,119,6,.28),rgba(15,23,42,.92))}
.hero-score span{font-weight:900;color:#cbd5e1}
.hero-score strong{display:block;font-size:50px;letter-spacing:-1px;margin:6px 0}
.hero-score small{color:#94a3b8}
.status-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.status-kpi{border-radius:24px;padding:22px;background:rgba(15,23,42,.72);position:relative;overflow:hidden}
.status-kpi:after{content:"";position:absolute;right:-24px;top:-24px;width:100px;height:100px;border-radius:999px;opacity:.15}
.status-kpi.good:after{background:#22c55e}.status-kpi.bad:after{background:#ef4444}.status-kpi.soon:after{background:#f59e0b}.status-kpi.node:after{background:#60a5fa}
.status-kpi span{display:block;color:#94a3b8;font-weight:800}
.status-kpi strong{display:block;font-size:38px;margin-top:8px}
.status-section{border-radius:28px;background:rgba(15,23,42,.70);padding:22px;margin-bottom:20px}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}
.section-head h2{margin:0 0 6px;font-size:24px}
.section-head p{margin:0;color:#94a3b8}
.legend-v25{display:flex;gap:12px;flex-wrap:wrap;color:#94a3b8;font-size:13px}
.dot{display:inline-block;width:10px;height:10px;border-radius:99px;margin-right:6px}.dot.ok{background:#22c55e}.dot.warn{background:#f59e0b}.dot.gray{background:#64748b}
.expiry-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.expiry-card,.empty-card{border:1px solid rgba(148,163,184,.16);border-radius:18px;background:rgba(2,6,23,.35);padding:16px}
.expiry-card strong{display:block;color:#fff;word-break:break-all}.expiry-card span{display:block;color:#fbbf24;margin-top:7px;font-size:13px}.empty-card{color:#94a3b8}
.status-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.domain-card{border-radius:24px;background:linear-gradient(180deg,rgba(17,24,39,.86),rgba(15,23,42,.74));padding:18px;position:relative;overflow:hidden}
.domain-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#22c55e}.domain-card.card-bad:before{background:#ef4444}
.domain-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.domain-head h3{margin:0;font-size:18px;word-break:break-all}.domain-head p{margin:6px 0 0;color:#94a3b8;font-size:13px}
.big-state{border-radius:999px;padding:7px 12px;font-weight:950;font-size:12px}.big-state.ok{background:rgba(34,197,94,.16);color:#86efac}.big-state.bad{background:rgba(239,68,68,.16);color:#fecaca}
.domain-meta{display:grid;grid-template-columns:1.2fr .7fr .9fr;gap:10px;margin-bottom:12px}
.domain-meta div{border:1px solid rgba(148,163,184,.14);border-radius:16px;padding:10px;background:rgba(2,6,23,.26)}
.domain-meta span{display:block;color:#94a3b8;font-size:12px}.domain-meta strong{display:block;margin-top:5px;word-break:break-all}
.health-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.health-pill{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.health-pill.ok{background:rgba(34,197,94,.16);color:#86efac}.health-pill.warn{background:rgba(245,158,11,.16);color:#fcd34d}.health-pill.gray{background:rgba(100,116,139,.18);color:#cbd5e1}
.node-box{border:1px solid rgba(148,163,184,.14);border-radius:16px;background:rgba(2,6,23,.25);padding:12px;margin-bottom:12px}
.node-main,.node-stats,.card-foot{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.node-main span,.node-stats span,.card-foot span{color:#cbd5e1;font-size:12px}
.node-stats{margin-top:8px}.muted-box{color:#94a3b8}
.card-foot{border-top:1px solid rgba(148,163,184,.14);padding-top:11px;color:#94a3b8;justify-content:space-between}
@media (max-width:1050px){
  .status-hero{grid-template-columns:1fr}
  .status-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .status-cards{grid-template-columns:1fr}
}
@media (max-width:650px){
  .public-v25{padding:16px}
  .hero-copy h1{font-size:34px}
  .status-kpis{grid-template-columns:1fr}
  .domain-meta{grid-template-columns:1fr}
  .section-head{flex-direction:column}
  .switch-line{grid-template-columns:1fr}
}

/* v2.6 VMess 自动生成 */
.vmess-generator{border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#ffffff);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:16px}
.vmess-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.vmess-head h2{margin:0 0 7px;font-size:22px}
.vmess-head p{margin:0;color:#64748b;line-height:1.6;font-weight:650}
.vmess-toggle{flex-direction:row;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#fff;font-size:13px}.vmess-toggle input{width:auto}
.vmess-section{border-radius:18px;padding:16px}.vmess-dynamic{border:2px solid #f87171;background:#fff7f7}.vmess-fixed{border:2px solid #38bdf8;background:#f0f9ff}.section-title{font-weight:950;margin-bottom:12px;color:#0f172a}.vmess-inner-grid{gap:14px}.input-button-row{display:grid;grid-template-columns:1fr auto;gap:8px}.fixed-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.fixed-grid div{border:1px solid rgba(14,165,233,.25);border-radius:14px;background:rgba(255,255,255,.72);padding:11px}.fixed-grid span{display:block;color:#64748b;font-weight:800;font-size:12px}.fixed-grid strong{display:block;margin-top:5px;font-size:15px}.generated-vmess-label textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.5}.vmess-actions{justify-content:flex-start;margin-top:-8px}
@media (max-width:900px){.vmess-head{flex-direction:column}.fixed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.input-button-row{grid-template-columns:1fr}}
@media (max-width:520px){.fixed-grid{grid-template-columns:1fr}}

/* v2.7 additions */
.quick-panel { margin: 18px 0; }
.quick-actions { display:flex; gap:12px; flex-wrap:wrap; }
.two-col-compact { grid-template-columns: 1fr 1fr; gap: 12px; }
.code-preview-box { margin-top: 18px; }
.code-preview-box textarea, #cmdPreview { width:100%; min-height:220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border:1px solid var(--border); border-radius:16px; padding:14px; background:#f8fafc; color:#0f172a; resize:vertical; }
.break-all { word-break: break-all; overflow-wrap:anywhere; }
.form-stack { display:flex; flex-direction:column; gap:14px; }
.form-stack input, .form-stack select { width:100%; }
@media (max-width: 768px){ .two-col-compact{ grid-template-columns: 1fr; } .quick-actions .btn{ width:100%; text-align:center; } }

/* v2.8 Root 登录终端 */
.root-grid{align-items:start}
.terminal-panel{display:flex;flex-direction:column;min-height:620px}
.terminal-head{align-items:flex-start}
.terminal-output{
  flex:1;
  min-height:470px;
  max-height:70vh;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  background:#05070c;
  color:#d1fae5;
  border:1px solid #111827;
  border-radius:18px;
  padding:18px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:13px;
  line-height:1.55;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 50px rgba(2,6,23,.18);
}
.terminal-input-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
.terminal-input{
  height:48px;
  border-radius:14px;
  border:1px solid var(--line);
  padding:0 14px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  background:#0f172a;
  color:#e5e7eb;
}
.terminal-input::placeholder{color:#94a3b8}
@media (max-width:900px){.terminal-input-row{grid-template-columns:1fr}.terminal-panel{min-height:auto}.terminal-output{min-height:360px}}

/* v2.9 Root 批量命令 */
.batch-command-box{
  width:100%;
  min-height:310px;
  resize:vertical;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0f172a;
  color:#e5e7eb;
  padding:16px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:13px;
  line-height:1.55;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.batch-command-box::placeholder{color:#94a3b8}
.batch-output{margin-top:16px;min-height:330px;max-height:58vh}
.compact-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.check-line{display:flex!important;align-items:center;gap:8px;font-weight:600;color:var(--muted)}
.check-line input{width:auto!important}
@media (max-width:900px){.compact-actions{justify-content:flex-start}.batch-command-box{min-height:260px}}
.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.clock-value{margin:5px 0 15px;font-weight:800;letter-spacing:.2px;color:#fff}

/* v3.1 fluctuation detection and CF inline editing */
.inline-edit-form{display:flex;gap:8px;align-items:center;min-width:260px}
.inline-value-input{min-width:180px;width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.btn.tiny{padding:7px 10px;font-size:12px;border-radius:10px}
.fluct-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.fluct-hero h2{margin:0 0 8px}
.fluct-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inline-form{display:flex;gap:8px;align-items:center}
.inline-form input{max-width:110px}
.fluct-kpis{margin-bottom:16px}
.fluct-panel{margin-top:16px}
.fluct-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}
.fluct-card{border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,var(--card),var(--card-2));padding:16px;box-shadow:var(--shadow)}
.fluct-card.good{outline:1px solid rgba(34,197,94,.28)}
.fluct-card.warn{outline:1px solid rgba(245,158,11,.28)}
.fluct-card.bad{outline:1px solid rgba(239,68,68,.32)}
.fluct-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.fluct-card h3{margin:0 0 5px;font-size:17px;word-break:break-all}
.fluct-card p{margin:0;color:var(--muted);font-size:13px;word-break:break-all}
.health-badge{border-radius:999px;padding:7px 12px;font-weight:900;font-size:12px;white-space:nowrap;border:1px solid var(--border)}
.health-badge.good{color:#16a34a;background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.45)}
.health-badge.warn{color:#d97706;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.45)}
.health-badge.bad{color:#dc2626;background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.45)}
.health-badge.unknown{color:var(--muted);background:rgba(148,163,184,.10)}
.fluct-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 14px}
.fluct-metrics div{background:rgba(255,255,255,.03);border:1px solid var(--border);border-radius:14px;padding:10px}
.fluct-metrics span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}
.fluct-metrics strong{font-size:16px}
.fluct-chart{height:130px;display:flex;align-items:flex-end;gap:4px;padding:10px;border:1px solid var(--border);border-radius:14px;background:rgba(0,0,0,.12);overflow:hidden}
.fluct-bar-wrap{flex:1;height:100%;display:flex;align-items:flex-end;min-width:5px}
.fluct-bar{width:100%;border-radius:6px 6px 2px 2px;min-height:4px;background:#94a3b8;transition:height .2s ease}
.fluct-bar.good{background:#22c55e}.fluct-bar.warn{background:#f59e0b}.fluct-bar.bad{background:#ef4444}.fluct-bar.unknown{background:#64748b}
.fluct-foot{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:12px}
.warn-text{color:#f59e0b}
.empty.small{width:100%;text-align:center;color:var(--muted);font-size:13px;align-self:center}
@media (max-width: 768px){.fluct-hero{display:block}.fluct-actions{margin-top:12px}.fluct-list{grid-template-columns:1fr}.fluct-metrics{grid-template-columns:repeat(2,1fr)}}

/* v3.2 波动侦测明细增强 */
.fluct-chart.detailed { height: 140px; align-items: end; gap: 5px; padding-top: 12px; }
.fluct-chart.detailed .fluct-bar-wrap { position: relative; min-width: 20px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.fluct-chart.detailed .fluct-bar-wrap span { font-size: 10px; color: var(--muted); writing-mode: vertical-rl; max-height: 46px; overflow: hidden; }
.fluct-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.fluct-samples div { border: 1px solid var(--border); background: rgba(255,255,255,.03); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 12px; }
.fluct-samples strong { color: var(--text); }
.fluct-samples span { color: var(--muted); }
.compact-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 14px; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.qr-mini { width: 76px; height: 76px; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 4px; }
@media (max-width: 720px){
  .fluct-chart.detailed { overflow-x: auto; }
  .fluct-chart.detailed .fluct-bar-wrap { min-width: 28px; }
}
.pill.bad{background:#fee2e2;color:#991b1b}
.notify-btn{position:relative}.notify-btn span{position:absolute;right:-7px;top:-7px;background:#ef4444;color:#fff;border-radius:999px;font-size:11px;min-width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.inline-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-controls input,.inline-controls select{min-width:220px;flex:1}.btn.tiny{padding:5px 9px;font-size:12px}

/* v8.0 control-console refresh */
:root{
  --bg:#f4f6f3;
  --bg2:#e9eee8;
  --panel:#ffffff;
  --panel2:#f7f9f6;
  --card:#ffffff;
  --card-2:#f7f9f6;
  --text:#17201b;
  --muted:#66736c;
  --line:#dce3dd;
  --border:#dce3dd;
  --primary:#0f766e;
  --primary2:#115e59;
  --green:#16835f;
  --amber:#b7791f;
  --red:#b42318;
  --gray:#59645d;
  --shadow:0 10px 30px rgba(31,42,36,.08);
  --radius:8px;
}
body.app-shell{background:var(--bg);color:var(--text)}
.layout{min-height:100vh;display:flex;background:linear-gradient(180deg,#f7f9f6 0,#eef2ee 100%)}
.sidebar{
  width:280px;
  background:#1f2a24;
  color:#f6fbf7;
  padding:20px 16px;
  border-right:1px solid rgba(255,255,255,.08);
  position:fixed;
  inset:0 auto 0 0;
  overflow:auto;
}
.brand{gap:12px;margin-bottom:24px;padding:6px 6px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-logo,.login-logo{border-radius:8px;background:#0f766e;box-shadow:none}
.brand-title{font-size:17px;letter-spacing:0}
.brand-sub{color:#a8b7af}
.nav{gap:4px}
.nav-link{border-radius:8px;padding:10px 11px;color:#d9e4dd;font-size:14px;font-weight:760}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.09);color:#fff}
.nav-group{margin:2px 0}
.nav-parent{display:flex;align-items:center;justify-content:space-between;gap:8px}
.nav-arrow{font-size:12px;opacity:.65}
.nav-sub{display:none;margin:3px 0 7px 12px;border-left:1px solid rgba(255,255,255,.13);padding-left:8px}
.nav-group.open .nav-sub{display:block}
.nav-sub a{display:block;color:#b9c8c0;text-decoration:none;font-size:13px;padding:7px 10px;border-radius:8px}
.nav-sub a:hover,.nav-sub a.active{background:rgba(255,255,255,.08);color:#fff}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.08);padding-top:14px}
.main{margin-left:280px;width:calc(100% - 280px);padding:22px 26px 42px}
.topbar{
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.topbar h1{font-size:28px;letter-spacing:0;line-height:1.15}
.topbar p{font-size:14px;line-height:1.5;max-width:860px}
.top-actions,.toolbar-actions,.row-actions,.quick-actions{gap:8px}
.btn{
  border-radius:8px;
  padding:9px 12px;
  font-size:13px;
  font-weight:760;
  min-height:38px;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:#0f766e;color:#fff}
.btn.primary:hover{background:#115e59}
.btn.ghost{background:#fff;color:#223029;border:1px solid var(--line)}
.btn.ghost:hover{border-color:#9fb3aa;background:#f8faf8}
.btn.danger{background:#fff1f0;color:#b42318;border:1px solid #f3b5ad}
.btn.small,.btn.tiny{border-radius:7px;min-height:30px}
.panel,.stat-card,.queue-kpi,.fluct-simple-card,.group-card,.node-editor,.selected-panel,.choice-card,.domain-preview-box,.vmess-generator,.vmess-section,.public-panel,.status-section,.domain-card{
  border-radius:8px!important;
  box-shadow:var(--shadow)!important;
}
.panel,.stat-card,.queue-kpi{border:1px solid var(--line);background:#fff}
.panel{padding:16px;margin-bottom:16px}
.panel-head{margin-bottom:12px;gap:12px}
.panel-head h2{font-size:17px;letter-spacing:0}
.panel-head a{color:var(--primary)}
.stat-grid{gap:12px;margin-bottom:16px}
.stat-card{padding:16px}
.stat-card:after{display:none}
.stat-card span{font-size:12px;color:var(--muted)}
.stat-card strong{font-size:32px;letter-spacing:0;margin:5px 0}
.stat-card small{font-size:12px;color:#7b8780}
.grid-2{gap:16px}
.toolbar{margin-bottom:14px}
.filter-form{gap:8px}
input,select,textarea{
  border-radius:8px;
  border-color:var(--line);
  padding:10px 11px;
  color:var(--text);
  background:#fff;
}
input:focus,select:focus,textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.13)}
label{gap:6px;color:#2d3a33;font-weight:760}
table{min-width:720px}
th,td{padding:11px 10px;border-bottom:1px solid var(--line)}
th{font-size:12px;color:#58665f;background:#f7f9f6}
td{font-size:13px}
.records-table,.records-table-v23,.cf-records-table{min-width:1180px}
.pill{border-radius:999px;padding:3px 8px;font-size:11px}
.pill.ok{background:#e6f4ee;color:#0f6b4f}
.pill.warn{background:#fff3d7;color:#8a5a00}
.pill.bad{background:#ffe8e5;color:#b42318}
.pill.gray{background:#eef2ee;color:#4c5a52}
.alert{border-radius:8px;border:1px solid transparent}
.timeline{gap:8px}
.tl-item{border-radius:8px}
.kv{gap:8px}
.kv div{align-items:flex-start;padding-bottom:9px}
.notice-list{gap:8px;line-height:1.55}
.subtabs,.soft-tabs,.sub-tabs,.group-switch{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.subtabs a,.soft-tabs a,.sub-tabs a,.group-switch a{border-radius:8px!important}
.sub-tabs a{padding:9px 12px;background:#fff;border:1px solid var(--line);color:#2d3a33;text-decoration:none}
.sub-tabs a:hover{border-color:#0f766e;color:#0f766e}
.node-picker{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px;background:#f7f9f6}
.node-row{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start;border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px;margin-bottom:8px}
.node-row strong{display:block}
.node-row code{font-size:11px;word-break:break-all;color:#66736c}
.sub-status{display:flex;flex-direction:column;gap:4px}
.ua-box{max-width:360px;white-space:normal;word-break:break-all;font-size:12px;color:#66736c}
.time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:800px){.time-grid{grid-template-columns:1fr}}
.notify-btn{position:relative}
.notify-btn span{
  position:absolute;
  right:-7px;
  top:-7px;
  background:#b42318;
  color:#fff;
  border-radius:999px;
  font-size:11px;
  min-width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
}
.toast-stack{position:fixed;right:18px;top:18px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.toast{min-width:260px;max-width:420px;border-radius:8px;padding:12px 14px;color:#fff;box-shadow:0 12px 32px rgba(31,42,36,.2);animation:toastIn .18s ease}
.toast.success{background:#16835f}.toast.error{background:#b42318}.toast.warning{background:#b7791f}.toast.info{background:#0f766e}
@keyframes toastIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.btn.loading{opacity:.7;pointer-events:none}
.btn.loading::after{content:'...'}
.login-body{background:linear-gradient(135deg,#18231d,#0f766e);padding:24px}
.login-card{border-radius:8px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.public-v25-body{
  background:linear-gradient(180deg,#17201b,#223029 60%,#111814);
}
.public-v25{max-width:1500px}
.status-hero,.hero-copy,.hero-score,.status-kpi,.status-section,.domain-card,.expiry-card,.empty-card{border-radius:8px!important}
@media (max-width:1100px){
  .sidebar{position:static;width:100%;height:auto;max-height:none}
  .layout{display:block}
  .main{margin-left:0;width:100%;padding:18px}
  .topbar{flex-direction:column}
  .nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .nav-sub{grid-column:1/-1}
  .sidebar-footer{display:none}
}
@media (max-width:720px){
  .main{padding:14px}
  .topbar h1{font-size:24px}
  .top-actions,.toolbar-actions,.form-actions{width:100%;flex-wrap:wrap}
  .top-actions .btn,.toolbar-actions .btn{flex:1}
}

/* v8.5 响应式控制台与交互增强 */
:root{
  --bg:#eef3f6;
  --bg2:#e6edf2;
  --panel:#ffffff;
  --panel2:#f8fbfd;
  --card:#ffffff;
  --card-2:#f6faf9;
  --text:#111827;
  --muted:#566475;
  --line:#d8e1e8;
  --border:#d8e1e8;
  --primary:#0f766e;
  --primary2:#0b5f59;
  --accent-blue:#2563eb;
  --accent-sky:#0284c7;
  --accent-violet:#6d28d9;
  --green:#15803d;
  --amber:#b45309;
  --red:#b91c1c;
  --gray:#475569;
  --focus:0 0 0 3px rgba(37,99,235,.16),0 0 0 1px rgba(37,99,235,.22);
  --shadow:0 12px 34px rgba(17,24,39,.10);
  --shadow-hover:0 18px 48px rgba(17,24,39,.14);
  --radius:10px;
}
html{scroll-behavior:smooth}
body.app-shell{
  min-height:100vh;
  background:
    linear-gradient(135deg,rgba(37,99,235,.06),transparent 32%),
    linear-gradient(225deg,rgba(15,118,110,.08),transparent 28%),
    var(--bg);
  color:var(--text);
}
.layout{background:transparent}
.sidebar{
  width:292px;
  padding:18px 14px;
  background:linear-gradient(180deg,#101827 0,#16251f 56%,#0d1714 100%);
  box-shadow:12px 0 36px rgba(15,23,42,.20);
  scrollbar-width:thin;
  scrollbar-color:rgba(203,213,225,.35) transparent;
}
.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(203,213,225,.28);border-radius:999px}
.brand{
  position:sticky;
  top:0;
  z-index:2;
  margin:-2px -2px 16px;
  padding:10px 8px 16px;
  background:linear-gradient(180deg,rgba(16,24,39,.98),rgba(16,24,39,.88));
  backdrop-filter:blur(10px);
}
.brand-logo,.login-logo{
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,#0f766e,#2563eb);
}
.brand-title{font-size:16px}
.brand-sub{color:#b4c5d2}
.nav{gap:5px}
.nav-group{border-radius:10px}
.nav-group.open{background:rgba(255,255,255,.035)}
.nav-link{
  min-height:40px;
  border:1px solid transparent;
  border-radius:9px;
  color:#dbe5ee;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.nav-link:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.06)}
.nav-link.active{
  background:linear-gradient(135deg,rgba(15,118,110,.95),rgba(37,99,235,.82));
  border-color:rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 10px 24px rgba(2,132,199,.18);
}
.nav-parent[aria-expanded="true"] .nav-arrow{transform:rotate(180deg)}
.nav-arrow{transition:transform .18s ease}
.nav-sub{margin:4px 0 8px 16px;padding-left:10px;border-left-color:rgba(148,163,184,.24)}
.nav-sub a{color:#c6d3dd;transition:background .14s ease,color .14s ease,transform .14s ease}
.nav-sub a:hover{transform:translateX(2px)}
.nav-sub a.active{background:rgba(96,165,250,.16);color:#fff}
.sidebar-footer{color:#d9e7ef}
.clock-value{font-variant-numeric:tabular-nums;color:#f8fafc}
.logout{
  width:100%;
  justify-content:center;
  margin-top:8px;
  padding:9px 10px;
  border-radius:9px;
  background:rgba(255,255,255,.08);
  color:#e0f2fe;
  transition:background .16s ease,color .16s ease;
}
.logout:hover{background:rgba(96,165,250,.16);color:#fff}
.main{
  margin-left:292px;
  width:calc(100% - 292px);
  padding:24px clamp(18px,2.4vw,34px) 46px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:5;
  margin:-24px calc(clamp(18px,2.4vw,34px) * -1) 18px;
  padding:18px clamp(18px,2.4vw,34px);
  background:rgba(238,243,246,.88);
  border-bottom:1px solid rgba(216,225,232,.8);
  backdrop-filter:blur(12px);
}
.topbar h1{font-size:clamp(24px,2.6vw,34px);font-weight:900;color:#0f172a}
.topbar p{color:#4b5d6f}
.top-actions{gap:9px}
.mobile-menu-btn,.sidebar-backdrop{display:none}
.panel,.stat-card,.queue-kpi,.fluct-simple-card,.group-card,.node-editor,.selected-panel,.choice-card,.domain-preview-box,.vmess-generator,.vmess-section{
  border:1px solid rgba(216,225,232,.95);
  background:linear-gradient(180deg,#fff,#fbfdfd);
  transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease;
}
.panel:hover,.stat-card:hover,.queue-kpi:hover,.choice-card:hover{
  border-color:#c4d4df;
  box-shadow:var(--shadow-hover)!important;
}
.panel-head{
  padding-bottom:10px;
  border-bottom:1px solid rgba(216,225,232,.66);
}
.panel-head h2{font-weight:900;color:#172033}
.panel-head a{color:var(--accent-blue)}
.stat-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.stat-card{
  min-height:124px;
  position:relative;
  overflow:hidden;
}
.stat-card:before{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:4px;
  background:var(--accent-blue);
}
.stat-card.blue:before{background:var(--accent-blue)}
.stat-card.green:before{background:var(--green)}
.stat-card.amber:before{background:var(--amber)}
.stat-card.gray:before{background:#64748b}
.stat-card strong{font-variant-numeric:tabular-nums}
.quick-actions,.toolbar-actions,.row-actions,.actions{gap:8px}
.btn{
  position:relative;
  overflow:hidden;
  min-height:38px;
  border:1px solid transparent;
  box-shadow:0 1px 0 rgba(17,24,39,.04);
  user-select:none;
}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:none;
  box-shadow:var(--focus);
}
.btn.primary{
  background:linear-gradient(135deg,#0f766e,#2563eb);
  color:#fff;
}
.btn.primary:hover{background:linear-gradient(135deg,#0b5f59,#1d4ed8)}
.btn.ghost{background:#fff;border-color:#d8e1e8;color:#172033}
.btn.ghost:hover{background:#f3f8fb;border-color:#b8c9d6;color:#0f172a}
.btn.danger{background:#fff5f5;border-color:#fecaca;color:#b91c1c}
.btn.danger:hover{background:#fee2e2}
.btn.pressed:after{
  content:"";
  position:absolute;
  left:var(--press-x,50%);
  top:var(--press-y,50%);
  width:12px;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.42);
  transform:translate(-50%,-50%) scale(0);
  animation:btnRipple .42s ease-out;
  pointer-events:none;
}
.btn.ghost.pressed:after,.btn.danger.pressed:after{background:rgba(37,99,235,.16)}
@keyframes btnRipple{to{transform:translate(-50%,-50%) scale(24);opacity:0}}
.btn.loading{color:transparent!important}
.btn.loading:before{
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  border:2px solid currentColor;
  border-top-color:transparent;
  border-radius:999px;
  color:#fff;
  animation:spin .7s linear infinite;
}
.btn.ghost.loading:before,.btn.danger.loading:before{color:#2563eb}
.btn.loading:after{content:""}
@keyframes spin{to{transform:rotate(360deg)}}
input,select,textarea{
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
input:hover,select:hover,textarea:hover{border-color:#b8c9d6}
label small,.muted{color:#66778a}
.filter-form{
  padding:10px;
  border:1px solid rgba(216,225,232,.8);
  border-radius:10px;
  background:rgba(255,255,255,.72);
}
.filter-form input,.filter-form select{min-width:160px}
.table-wrap{
  position:relative;
  border:1px solid rgba(216,225,232,.8);
  border-radius:10px;
  background:#fff;
}
.table-wrap:focus-visible{box-shadow:var(--focus);outline:none}
.table-wrap.scrollable:after{
  content:"可横向滚动";
  position:absolute;
  right:10px;
  top:8px;
  z-index:2;
  font-size:11px;
  font-weight:800;
  color:#2563eb;
  background:rgba(239,246,255,.92);
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:3px 8px;
  pointer-events:none;
}
.table-wrap.shadow-left{box-shadow:inset 14px 0 18px -18px rgba(15,23,42,.45)}
.table-wrap.shadow-right{box-shadow:inset -14px 0 18px -18px rgba(15,23,42,.45)}
table{background:#fff}
th{
  position:sticky;
  top:0;
  z-index:1;
  background:#f3f7fa;
  color:#475569;
}
tbody tr{transition:background .12s ease}
tbody tr:hover{background:#f8fbff}
td code{background:#eef6f8;border-color:#d1e5ea;color:#0f3f3b}
.pill{border:1px solid transparent;letter-spacing:0}
.pill.ok{background:#e8f7ef;color:#11613f;border-color:#bdebd1}
.pill.warn{background:#fff7df;color:#8a4f00;border-color:#fde68a}
.pill.bad{background:#ffe8e8;color:#991b1b;border-color:#fecaca}
.pill.gray{background:#eef3f6;color:#475569;border-color:#d8e1e8}
.alert{box-shadow:0 8px 26px rgba(17,24,39,.08)}
.timeline .tl-item{
  background:linear-gradient(180deg,#fff,#fbfcfd);
  transition:transform .16s ease,box-shadow .16s ease;
}
.timeline .tl-item:hover{transform:translateX(2px);box-shadow:0 10px 24px rgba(17,24,39,.08)}
.toast-stack{top:20px;right:20px}
.toast{border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px)}
.reveal{opacity:0;transform:translateY(10px)}
.reveal.is-visible{opacity:1;transform:none;transition:opacity .32s ease,transform .32s ease}
.vmess-preview,.domain-preview-box,.node-picker{
  background:linear-gradient(180deg,#f8fbff,#fff);
}
.vmess-preview summary{outline:none}
.loss-mini-bar i{background:linear-gradient(90deg,#15803d,#0ea5e9)}
.login-card{
  border:1px solid rgba(255,255,255,.5);
  backdrop-filter:blur(10px);
}
.login-card .btn.primary{width:100%}
@media (max-width:1180px){
  .sidebar{
    position:fixed;
    width:min(86vw,320px);
    transform:translateX(-104%);
    transition:transform .22s ease;
    z-index:40;
  }
  body.sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:35;
    background:rgba(15,23,42,.44);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
  }
  body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
  .mobile-menu-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    position:fixed;
    left:14px;
    bottom:14px;
    z-index:45;
    min-height:42px;
    padding:10px 13px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:999px;
    background:linear-gradient(135deg,#0f766e,#2563eb);
    color:#fff;
    font-weight:900;
    box-shadow:0 14px 34px rgba(15,23,42,.28);
  }
  .mobile-menu-icon{font-size:18px;line-height:1}
  .main{margin-left:0;width:100%;padding:18px clamp(12px,2.8vw,22px) 78px}
  .topbar{
    margin:-18px calc(clamp(12px,2.8vw,22px) * -1) 16px;
    padding:16px clamp(12px,2.8vw,22px);
  }
  .nav{display:flex;flex-direction:column;gap:5px}
  .sidebar-footer{display:block}
}
@media (max-width:860px){
  .topbar{position:static}
  .top-actions,.toolbar-actions,.form-actions,.quick-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .top-actions .btn,.toolbar-actions .btn,.form-actions .btn,.quick-actions .btn{width:100%;white-space:normal;text-align:center}
  .toolbar.wrap{align-items:stretch}
  .filter-form{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .filter-form input,.filter-form select,.filter-form button{width:100%;min-width:0}
  .panel{padding:14px}
  .panel-head{align-items:flex-start;flex-direction:column}
  .stat-card{min-height:108px}
  .stat-card strong{font-size:28px}
  .grid-2{grid-template-columns:1fr}
}
@media (max-width:560px){
  .main{padding-left:10px;padding-right:10px}
  .topbar{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
  .topbar h1{font-size:22px}
  .topbar p{font-size:13px}
  .top-actions,.toolbar-actions,.form-actions,.quick-actions{grid-template-columns:1fr}
  .actions{min-width:0;width:100%}
  .actions .btn,.actions form,.actions form .btn{width:100%}
  .inline-form{display:grid;grid-template-columns:1fr auto;width:100%}
  .inline-form input{width:100%;max-width:none}
  .toast-stack{left:10px;right:10px;top:10px}
  .toast{min-width:0;max-width:none;width:100%}
  .table-wrap{margin-left:-6px;margin-right:-6px;border-radius:8px}
  .table-wrap.scrollable:after{top:auto;bottom:8px}
}
.record-monitoring-fields{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel2);padding:16px}
.record-monitoring-fields legend{padding:0 6px;color:var(--text);font-weight:900}
.record-monitoring-fields .form-grid{margin-top:14px}
.record-monitoring-fields select{min-height:44px;font-size:16px}
.record-monitoring-fields select:disabled{opacity:.6;cursor:not-allowed}
.record-monitoring-fields p{margin:10px 0 0;line-height:1.55}
.record-edit-link{min-height:44px}
@media (max-width:560px){.record-monitoring-fields{padding:12px}}
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
}

/* AI v20260709: mobile fluctuation status visibility */
.fluct-simple-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));}
.fluct-simple-card,.fluct-card-top,.latest-one,.status-grid-wrap{min-width:0;max-width:100%;}
.fluct-card-top h3,.fluct-card-top p,.latest-grid strong,.latest-foot span{overflow-wrap:anywhere;word-break:break-word;}
@media(max-width:720px){
  .fluct-simple-list{display:block;}
  .fluct-simple-card{margin-bottom:14px;padding:12px;border-radius:16px;}
  .fluct-card-top{display:grid;grid-template-columns:1fr;gap:8px;}
  .health-chip{justify-self:start;}
  .latest-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .status-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px;}
  .status-square{max-width:none;border-radius:8px;}
  .status-time{font-size:10px;}
  .legend-inline{gap:8px;font-size:11px;}
  .latest-foot{display:grid;grid-template-columns:1fr;gap:4px;}
}
@media(max-width:380px){
  .latest-grid{grid-template-columns:1fr!important;}
  .status-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}

.nav-sub-title{margin:10px 10px 4px;color:#8aa0b4;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}

/* v7: Distinguish second-level server/function submenu sections */
.nav-sub-layered{background:rgba(15,23,42,.18);border-radius:12px;padding:8px 8px 8px 10px;border-left:1px solid rgba(148,163,184,.26)}
.nav-sub-title{display:flex;align-items:center;gap:6px;margin:10px 6px 5px;padding:6px 8px;border-radius:10px;color:#d8e6f3;font-size:11px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;border:1px solid rgba(255,255,255,.06)}
.nav-sub-title::before{content:"";width:7px;height:7px;border-radius:99px;background:#60a5fa;box-shadow:0 0 12px rgba(96,165,250,.75)}
.nav-title-ip{background:rgba(34,197,94,.12)}.nav-title-ip::before{background:#22c55e;box-shadow:0 0 12px rgba(34,197,94,.75)}
.nav-title-ssh{background:rgba(249,115,22,.12)}.nav-title-ssh::before{background:#f97316;box-shadow:0 0 12px rgba(249,115,22,.75)}
.nav-title-collect{background:rgba(168,85,247,.12)}.nav-title-collect::before{background:#a855f7;box-shadow:0 0 12px rgba(168,85,247,.75)}
.nav-title-feature{background:rgba(59,130,246,.12)}.nav-title-feature::before{background:#3b82f6;box-shadow:0 0 12px rgba(59,130,246,.75)}
.nav-sub-layered a{margin-left:8px;border-left:2px solid rgba(148,163,184,.14)}
.nav-sub-layered a.active{border-left-color:#60a5fa;background:linear-gradient(90deg,rgba(96,165,250,.22),rgba(96,165,250,.08))}

/* v9.0 design-system refresh: control console foundation */
:root{
  --font-family-primary:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;
  --font-family-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --radius-xs:4px;
  --radius-sm:6px;
  --radius:8px;
  --radius-lg:8px;
  --bg:#eef3f6;
  --bg2:#e5edf2;
  --panel:#ffffff;
  --panel2:#f8fbfd;
  --card:#ffffff;
  --card-2:#f7fbfa;
  --text:#111827;
  --text-strong:#0b1220;
  --muted:#5b6b7c;
  --line:#d8e2ea;
  --border:#d8e2ea;
  --primary:#0f766e;
  --primary2:#0b5f59;
  --primary-soft:#e7f5f2;
  --info:#2563eb;
  --info-soft:#eff6ff;
  --green:#15803d;
  --green-soft:#e8f7ef;
  --amber:#b45309;
  --amber-soft:#fff6dc;
  --red:#b91c1c;
  --red-soft:#fff0f0;
  --gray:#475569;
  --focus:0 0 0 3px rgba(37,99,235,.18),0 0 0 1px rgba(37,99,235,.28);
  --shadow-sm:0 1px 2px rgba(17,24,39,.05);
  --shadow:0 12px 30px rgba(17,24,39,.08);
  --shadow-hover:0 18px 42px rgba(17,24,39,.12);
}
html{
  min-width:320px;
  text-size-adjust:100%;
  -webkit-text-size-adjust:100%;
}
body{
  font-family:var(--font-family-primary);
  letter-spacing:0;
}
body.app-shell{
  background:linear-gradient(180deg,#f6f9fb 0,#eef3f6 38%,#e8eef3 100%);
  color:var(--text);
  line-height:1.5;
}
.skip-link{
  position:fixed;
  left:16px;
  top:12px;
  z-index:10000;
  transform:translateY(-140%);
  border-radius:var(--radius);
  background:#fff;
  color:var(--info);
  border:1px solid #bfdbfe;
  box-shadow:var(--shadow);
  padding:10px 14px;
  font-weight:900;
}
.skip-link:focus{transform:none;outline:none;box-shadow:var(--focus),var(--shadow)}
#mainContent:focus{outline:none}
.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;
}
h1,h2,h3,h4,.brand-title,.public-title,.hero-copy h1,.tt-title{letter-spacing:0!important}
a{transition:color .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease}
code{
  font-family:var(--font-family-mono);
  background:#eef6f8;
  border-color:#d4e8ed;
  color:#0b4a45;
}
.layout{
  min-height:100vh;
  background:
    linear-gradient(90deg,rgba(15,118,110,.04),transparent 36%),
    linear-gradient(180deg,rgba(37,99,235,.04),transparent 28%);
}
.sidebar{
  width:300px;
  padding:18px 14px;
  background:linear-gradient(180deg,#101827 0,#14231f 52%,#0c1613 100%);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:14px 0 36px rgba(15,23,42,.18);
}
.brand{
  min-height:66px;
  gap:12px;
  margin:0 0 14px;
  padding:8px 8px 14px;
  border-bottom:1px solid rgba(226,232,240,.13);
}
.brand-logo,.login-logo{
  width:44px;
  height:44px;
  border-radius:var(--radius);
  background:linear-gradient(135deg,#0f766e,#2563eb);
  box-shadow:0 10px 24px rgba(15,118,110,.25);
  font-size:15px;
}
.brand-title{
  color:#f8fafc;
  font-size:16px;
  line-height:1.2;
}
.brand-sub{
  color:#a8bccb;
  font-size:12px;
}
.nav{
  gap:5px;
  padding-bottom:14px;
}
.nav-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:40px;
  border:1px solid transparent;
  border-radius:var(--radius);
  padding:9px 11px;
  color:#d9e5ee;
  font-size:14px;
  line-height:1.25;
}
.nav-link:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.07);
  color:#fff;
}
.nav-link.active{
  background:linear-gradient(135deg,rgba(15,118,110,.98),rgba(37,99,235,.86));
  border-color:rgba(255,255,255,.15);
  box-shadow:0 10px 24px rgba(37,99,235,.18);
  color:#fff;
}
.nav-parent{
  justify-content:space-between;
}
.nav-group{
  border-radius:var(--radius);
}
.nav-group.open{
  background:rgba(255,255,255,.035);
}
.nav-arrow{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.nav-sub{
  margin:4px 0 8px 16px;
  padding-left:10px;
  border-left:1px solid rgba(148,163,184,.26);
}
.nav-sub a{
  min-height:32px;
  border-radius:var(--radius);
  color:#c5d4df;
}
.nav-sub a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
  transform:none;
}
.nav-sub a.active{
  background:rgba(96,165,250,.16);
  color:#fff;
}
.nav-sub-parent{
  font-weight:900;
  color:#eaf3ff!important;
}
.nav-sub-children{
  margin:2px 0 4px 12px;
  padding-left:10px;
  border-left:1px solid rgba(148,163,184,.22);
  display:grid;
  gap:2px;
}
.nav-sub-children a{
  min-height:28px;
  font-size:12px;
  padding-left:10px;
}
.nav-sub-layered{
  border-radius:var(--radius);
  background:rgba(15,23,42,.22);
}
.nav-sub-title{
  border-radius:var(--radius);
  letter-spacing:0;
}
.sidebar-footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(226,232,240,.13);
}
.mini-label{
  color:#a8bccb;
  font-size:12px;
}
.mini-value.compact,.clock-value{
  color:#eef6ff;
  font-variant-numeric:tabular-nums;
}
.logout{
  min-height:38px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.08);
  color:#e0f2fe;
}
.main{
  margin-left:300px;
  width:calc(100% - 300px);
  padding:24px clamp(18px,2.2vw,32px) 48px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  min-height:86px;
  margin:-24px calc(clamp(18px,2.2vw,32px) * -1) 18px;
  padding:18px clamp(18px,2.2vw,32px);
  border-bottom:1px solid rgba(216,226,234,.86);
  background:rgba(246,249,251,.9);
  backdrop-filter:blur(12px);
}
.topbar h1{
  color:var(--text-strong);
  font-size:30px;
  line-height:1.14;
  font-weight:900;
}
.topbar p{
  margin-top:6px;
  color:#506173;
  font-size:14px;
  line-height:1.55;
}
.top-actions,.toolbar-actions,.form-actions,.quick-actions,.row-actions,.compact-actions,.inline-actions{
  gap:8px;
}
.btn{
  min-height:42px;
  border-radius:var(--radius);
  padding:9px 14px;
  font-size:13px;
  font-weight:850;
  line-height:1.2;
  border:1px solid transparent;
}
.btn:hover{
  transform:none;
}
.btn.primary{
  background:#0f766e;
  border-color:#0f766e;
  color:#fff;
}
.btn.primary:hover{
  background:#0b5f59;
  border-color:#0b5f59;
}
.btn.ghost{
  background:#fff;
  border-color:var(--border);
  color:#172033;
}
.btn.ghost:hover{
  background:#f4f9fb;
  border-color:#b8c9d6;
}
.btn.danger{
  background:#fff;
  border-color:#f5b5b5;
  color:var(--red);
}
.btn.danger:hover{
  background:var(--red-soft);
}
.btn.small,.btn.tiny{
  min-height:34px;
  padding:7px 10px;
  border-radius:var(--radius-sm);
  font-size:12px;
}
.btn:disabled,.btn[disabled],button:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.mobile-menu-btn:focus-visible{
  outline:none;
  box-shadow:var(--focus);
}
.panel,.stat-card,.queue-kpi,.fluct-simple-card,.group-card,.node-editor,.selected-panel,.choice-card,.domain-preview-box,.vmess-generator,.vmess-section{
  border-radius:var(--radius)!important;
  border:1px solid rgba(216,226,234,.96);
  background:linear-gradient(180deg,#fff,#fbfdfd);
  box-shadow:var(--shadow-sm)!important;
}
.panel{
  padding:18px;
  margin-bottom:18px;
}
.panel:hover,.stat-card:hover,.queue-kpi:hover,.choice-card:hover{
  border-color:#c7d6e0;
  box-shadow:var(--shadow)!important;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:11px;
  border-bottom:1px solid rgba(216,226,234,.72);
}
.panel-head h2{
  color:#172033;
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}
.panel-head a{
  color:var(--info);
}
.stat-grid{
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
  margin-bottom:18px;
}
.stat-card{
  min-height:126px;
  padding:18px;
}
.stat-card span{
  color:var(--muted);
  font-size:12px;
}
.stat-card strong{
  margin:6px 0 4px;
  color:var(--text-strong);
  font-size:34px;
  line-height:1;
}
.stat-card small{
  color:#718196;
  line-height:1.35;
}
.grid-2{
  gap:18px;
}
.toolbar.wrap{
  align-items:flex-start;
}
.filter-form{
  gap:8px;
  padding:10px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.82);
}
input,select,textarea{
  min-height:42px;
  border-radius:var(--radius);
  border-color:var(--border);
  color:var(--text);
  background:#fff;
  font-family:var(--font-family-primary);
}
textarea{
  line-height:1.5;
}
input:hover,select:hover,textarea:hover{
  border-color:#b8c9d6;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--info);
  box-shadow:var(--focus);
}
input::placeholder,textarea::placeholder{
  color:#8a98a8;
}
label{
  color:#273442;
  font-weight:850;
}
label small,.muted{
  color:var(--muted);
}
.check-line{
  min-height:42px;
}
.check-line input,input[type="checkbox"],input[type="radio"]{
  accent-color:var(--primary);
}
.table-wrap{
  border-radius:var(--radius);
  border-color:rgba(216,226,234,.96);
}
table{
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}
th,td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}
th{
  top:0;
  background:#f4f8fb;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
td{
  color:#263343;
  font-size:13px;
}
tbody tr:hover{
  background:#f8fbff;
}
.empty,.empty-card{
  color:#718196;
  background:#f8fbfd;
}
.pill,.health-chip,.health-badge,.big-state,.tt-badge{
  border-radius:999px;
  font-weight:900;
}
.pill.ok,.health-chip.good,.health-badge.good{
  background:var(--green-soft);
  color:#11613f;
  border-color:#bdebd1;
}
.pill.warn,.health-chip.warn,.health-badge.warn{
  background:var(--amber-soft);
  color:#8a4f00;
  border-color:#f7d58b;
}
.pill.bad,.health-chip.bad,.health-chip.offline,.health-badge.bad{
  background:var(--red-soft);
  color:#991b1b;
  border-color:#f6baba;
}
.pill.gray,.health-chip.unknown,.health-badge.unknown{
  background:#eef3f6;
  color:#475569;
  border-color:#d8e2ea;
}
.alert{
  border-radius:var(--radius);
  border:1px solid transparent;
  box-shadow:var(--shadow-sm);
}
.alert.success{background:var(--green-soft);color:#11613f;border-color:#bdebd1}
.alert.danger,.alert.error{background:var(--red-soft);color:#991b1b;border-color:#f6baba}
.alert.warning{background:var(--amber-soft);color:#8a4f00;border-color:#f7d58b}
.alert.info{background:var(--info-soft);color:#1d4ed8;border-color:#bfdbfe}
.timeline .tl-item{
  border-radius:var(--radius);
  background:#fff;
}
.tl-title span{
  float:none;
  display:inline-block;
  margin-left:8px;
  color:#718196;
}
.kv div{
  gap:14px;
}
.kv strong{
  color:#172033;
  overflow-wrap:anywhere;
}
.form-grid,.form-row,.node-form-grid,.tt-form-grid{
  gap:14px;
}
.form-actions{
  flex-wrap:wrap;
}
.choice-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.choice-card{
  display:flex;
  flex-direction:column;
}
.toast-stack{
  right:18px;
  top:18px;
}
.toast{
  border-radius:var(--radius);
  box-shadow:0 16px 40px rgba(17,24,39,.18);
}
.login-body{
  min-height:100vh;
  background:
    linear-gradient(135deg,rgba(15,118,110,.92),rgba(37,99,235,.82)),
    #101827;
}
.login-card{
  width:min(420px,100%);
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.54);
  box-shadow:0 30px 80px rgba(15,23,42,.28);
}
.login-card h1{
  color:#0f172a;
  font-size:28px;
  letter-spacing:0;
}
.login-tip{
  color:#5b6b7c;
}
.public-wrap,.public-v25{
  width:100%;
}
.mobile-menu-btn{
  border-radius:999px;
}
@media (max-width:1180px){
  .sidebar{
    width:min(88vw,320px);
    z-index:50;
  }
  .sidebar-backdrop{
    z-index:45;
  }
  .mobile-menu-btn{
    z-index:55;
    min-height:44px;
    border:1px solid rgba(255,255,255,.34);
    background:#0f766e;
    box-shadow:0 16px 36px rgba(15,23,42,.28);
  }
  .main{
    margin-left:0;
    width:100%;
    padding:18px clamp(12px,2.8vw,22px) 78px;
  }
  .topbar{
    margin:-18px calc(clamp(12px,2.8vw,22px) * -1) 16px;
    padding:16px clamp(12px,2.8vw,22px);
  }
}
@media (max-width:860px){
  .topbar{
    position:static;
    align-items:flex-start;
    min-height:0;
  }
  .topbar h1{
    font-size:24px;
  }
  .top-actions,.toolbar-actions,.form-actions,.quick-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .top-actions .btn,.toolbar-actions .btn,.form-actions .btn,.quick-actions .btn{
    width:100%;
    white-space:normal;
  }
  .filter-form{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .filter-form input,.filter-form select,.filter-form button{
    width:100%;
    min-width:0;
  }
  .panel{
    padding:14px;
  }
  .panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .stat-card{
    min-height:112px;
  }
  .stat-card strong{
    font-size:30px;
  }
  .grid-2,.form-grid,.form-row,.node-form-grid,.tt-form-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:560px){
  .main{
    padding-left:10px;
    padding-right:10px;
  }
  .topbar{
    margin-left:-10px;
    margin-right:-10px;
    padding-left:10px;
    padding-right:10px;
  }
  .topbar h1{
    font-size:22px;
  }
  .topbar p{
    font-size:13px;
  }
  .top-actions,.toolbar-actions,.form-actions,.quick-actions{
    grid-template-columns:1fr;
  }
  .actions{
    min-width:0;
    width:100%;
  }
  .actions .btn,.actions form,.actions form .btn{
    width:100%;
  }
  .inline-form{
    display:grid;
    grid-template-columns:1fr auto;
    width:100%;
  }
  .inline-form input{
    width:100%;
    max-width:none;
  }
  .table-wrap{
    margin-left:-6px;
    margin-right:-6px;
  }
  .toast-stack{
    left:10px;
    right:10px;
    top:10px;
  }
  .toast{
    width:100%;
    min-width:0;
    max-width:none;
  }
}
