/* =========================================================================
   NEXUS IoT · 物联网标准平台
   ========================================================================= */
:root {
  --bg: #060a11;
  --bg-2: #09111c;
  --panel: rgba(16, 25, 39, 0.74);
  --panel-solid: #0e1726;
  --border: rgba(120, 160, 210, 0.14);
  --border-strong: rgba(120, 160, 210, 0.26);
  --text: #e8f0fb;
  --muted: #90a5c2;
  --dim: #647a97;
  --accent: #22d3ee;
  --accent-2: #5b8cff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --violet: #a78bfa;
  --pink: #f472b6;
  --radius: 16px;
  --shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(34, 211, 238, 0.08) 0%, transparent 60%),
    radial-gradient(900px 600px at 8% 100%, rgba(91, 140, 255, 0.07) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

body.app-mode { overflow: hidden; }

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
select { cursor: pointer; }
.hidden { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(110, 145, 190, 0.22);
  border-radius: 9px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(110, 145, 190, 0.38); background-clip: content-box; }

/* =========================================================================
   登录页
   ========================================================================= */
.login {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
  z-index: 100;
}

.login-bg { position: absolute; inset: 0; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-a { width: 560px; height: 560px; left: -120px; top: -160px; background: rgba(34, 211, 238, 0.24); }
.orb-b { width: 520px; height: 520px; right: -150px; bottom: -190px; background: rgba(91, 140, 255, 0.22); animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; left: 42%; bottom: -130px; background: rgba(167, 139, 250, 0.16); animation-delay: -11s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 160, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 160, 220, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.login-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  width: min(1120px, 94vw);
  min-height: 660px;
  border-radius: 28px;
  border: 1px solid rgba(130, 175, 225, 0.18);
  background: rgba(8, 13, 22, 0.72);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  padding: 44px 48px 36px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(34, 211, 238, 0.1), transparent 65%),
    linear-gradient(160deg, rgba(14, 25, 41, 0.72), rgba(7, 12, 20, 0.4));
  border-right: 1px solid rgba(120, 160, 210, 0.12);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.brand-top { display: flex; align-items: center; gap: 14px; }

.logo-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.85));
  color: #04121d;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  box-shadow: 0 10px 26px -10px rgba(34, 211, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.logo-mark span { transform: translateY(-1px); }
.logo-mark.small { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-word { display: flex; flex-direction: column; line-height: 1.25; }
.brand-word strong { font-size: 17px; letter-spacing: 2px; font-weight: 700; }
.brand-word em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: 3px; }

.brand-copy { margin-top: 52px; }
.brand-copy h1 {
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f2f7ff;
}
.grad-text {
  background: linear-gradient(100deg, #67e8f9 10%, #7aa2ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-copy p { margin-top: 18px; color: var(--muted); line-height: 1.9; font-size: 14px; }

.netmap-wrap { position: relative; flex: 1; min-height: 210px; margin-top: 10px; }
.netmap { width: 100%; height: 100%; min-height: 210px; display: block; }
.net-lines path {
  fill: none;
  stroke: rgba(94, 168, 220, 0.32);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dashFlow 16s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -200; } }
.net-nodes circle { fill: rgba(122, 220, 240, 0.85); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); }
.net-nodes circle.glow { fill: #7ce7f8; animation: nodePulse 3s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.net-rings circle {
  fill: none;
  stroke: rgba(34, 211, 238, 0.3);
  stroke-width: 1;
  animation: ringPulse 4s ease-out infinite;
}
.net-rings circle:nth-child(2) { animation-delay: -1.4s; }
.net-rings circle:nth-child(3) { animation-delay: -2.6s; }
@keyframes ringPulse {
  0% { transform: scale(0.7); opacity: 0.8; transform-origin: center; }
  100% { transform: scale(1.4); opacity: 0; transform-origin: center; }
}

.net-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: #b8e6f6;
  background: rgba(10, 24, 38, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.7);
}
.net-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tag1 { left: 2%; top: 62%; }
.tag2 { right: 4%; top: 24%; }

.brand-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.brand-stat {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(120, 160, 210, 0.12);
  background: rgba(14, 26, 42, 0.5);
}
.brand-stat b { display: block; font-size: 20px; letter-spacing: 0.5px; color: #dff6ff; }
.brand-stat span { font-size: 11.5px; color: var(--dim); }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 44px 40px; }
.login-card { width: min(384px, 100%); }

.login-head { margin-bottom: 30px; }
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8fd9ea;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 5px 11px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.login-badge .ic { width: 13px; height: 13px; }
.login-head h2 { font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.login-head p { margin-top: 8px; color: var(--muted); font-size: 13px; }

.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 210, 0.2);
  background: rgba(9, 16, 27, 0.75);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input-wrap:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  background: rgba(10, 20, 33, 0.9);
}
.input-wrap .field-ic { position: absolute; left: 15px; color: #6f8cad; width: 17px; height: 17px; }
.input-wrap input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 44px 0 43px;
  font-size: 14px;
  color: var(--text);
}
.input-wrap input::placeholder { color: #58708e; }
.eye-btn {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6f8cad;
  transition: color 0.2s, background 0.2s;
}
.eye-btn:hover { color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.eye-btn .ic { width: 17px; height: 17px; }

.login-error {
  min-height: 20px;
  font-size: 12.5px;
  color: var(--red);
  margin: -4px 0 10px;
}
.login-error.show::before { content: "! "; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #04121d;
  font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(34, 211, 238, 0.65);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(34, 211, 238, 0.85); filter: brightness(1.05); }

.btn-soft {
  background: rgba(120, 160, 210, 0.08);
  border-color: rgba(120, 160, 210, 0.2);
  color: var(--text);
}
.btn-soft:hover { background: rgba(120, 160, 210, 0.14); border-color: rgba(120, 160, 210, 0.34); }

.btn-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(120, 160, 210, 0.08); }

.btn-danger { background: rgba(251, 113, 133, 0.14); border-color: rgba(251, 113, 133, 0.38); color: #ffb1bc; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.22); }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.login-btn { width: 100%; height: 48px; border-radius: 12px; font-size: 15px; letter-spacing: 4px; margin-top: 6px; }
.login-btn .ic { width: 17px; height: 17px; letter-spacing: 0; }
.login-arrow { letter-spacing: 0; font-size: 16px; line-height: 1; opacity: 0.9; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  color: var(--dim);
  font-size: 12px;
}
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: rgba(120, 160, 210, 0.16); }

.demo-btn { width: 100%; height: 44px; border-radius: 12px; }
.demo-hint { text-align: center; margin-top: 14px; font-size: 12px; color: var(--dim); }
.demo-hint b { color: #9adcef; font-weight: 600; }

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 11.5px;
  color: var(--dim);
}
.foot-sep { width: 1px; height: 10px; background: rgba(120, 160, 210, 0.25); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.login-card.shake { animation: shake 0.45s ease; }

/* =========================================================================
   应用框架
   ========================================================================= */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  position: relative;
  z-index: 40;
  width: 248px;
  flex: 0 0 248px;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  background: linear-gradient(180deg, rgba(12, 19, 31, 0.97), rgba(7, 11, 18, 0.98));
  border-right: 1px solid rgba(120, 160, 210, 0.12);
  box-shadow: 12px 0 30px -24px rgba(0, 0, 0, 0.8);
}
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.4), transparent);
}

.side-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 22px; }
.side-brand .brand-word strong { font-size: 15px; letter-spacing: 1.5px; }
.side-brand .brand-word em { font-size: 10.5px; letter-spacing: 2px; }
.ver-tag {
  margin-left: auto;
  font-size: 10px;
  color: #7fa6bb;
  border: 1px solid rgba(120, 160, 210, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
}

.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-bottom: 12px; }
.nav-group {
  font-size: 11px;
  color: #526884;
  letter-spacing: 2px;
  padding: 16px 12px 8px;
  text-transform: uppercase;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #93a8c4;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}
.nav-item .ic { width: 18px; height: 18px; color: #6f87a6; transition: color 0.18s; }
.nav-item:hover { background: rgba(120, 160, 210, 0.07); color: #d7e6f7; }
.nav-item:hover .ic { color: #9ec3e6; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.02) 70%, transparent);
  color: #e9fbff;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.nav-item.active .ic { color: var(--accent); }

.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: #7f97b4;
  background: rgba(120, 160, 210, 0.1);
  border-radius: 20px;
  padding: 2px 7px;
  min-width: 22px;
  text-align: center;
}
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  color: #ffd7dd;
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: 20px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.side-status {
  margin: 8px 4px 12px;
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid rgba(120, 160, 210, 0.12);
  background: rgba(13, 23, 37, 0.6);
}
.status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cfe6f7;
  margin-bottom: 10px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.status-line { display: flex; justify-content: space-between; font-size: 11.5px; color: #6e84a1; padding: 3px 0; }
.status-line b { color: #9fb4cf; font-weight: 500; }
.status-line b.ok { color: var(--green); }

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-top: 1px solid rgba(120, 160, 210, 0.1);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #d9f7ff;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(91, 140, 255, 0.3));
  border: 1px solid rgba(34, 211, 238, 0.3);
  flex: 0 0 auto;
}
.avatar.tiny { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.user-meta strong { font-size: 12.5px; color: #dce9f8; }
.user-meta span { font-size: 11px; color: #7288a4; }
.logout-btn { margin-left: auto; width: 32px; height: 32px; color: #6d84a1; }
.logout-btn:hover { color: var(--red); background: rgba(251, 113, 133, 0.1); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #93a9c4;
  transition: background 0.18s, color 0.18s;
  border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(120, 160, 210, 0.1); color: var(--text); }
.icon-btn .ic { width: 18px; height: 18px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: transparent; }

.topbar {
  height: 66px;
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(120, 160, 210, 0.1);
  background: rgba(7, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  z-index: 20;
}
.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; min-width: 0; }
.crumb-root { color: #536a87; letter-spacing: 0.5px; }
.crumb-sep { color: #3d536e; }
.crumb-main { color: #e3eefb; font-size: 14px; font-weight: 600; white-space: nowrap; }
.crumb-sub { color: #8299b6; white-space: nowrap; }
.crumb-sub::before { content: "/"; margin-right: 9px; color: #3d536e; }
.crumb-sub:empty::before { display: none; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync-pill, .clock-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  color: #88a3c2;
  border: 1px solid rgba(120, 160, 210, 0.14);
  border-radius: 20px;
  background: rgba(13, 22, 36, 0.55);
}
.sync-pill .pulse-dot { width: 6px; height: 6px; }
.clock-pill .ic { width: 14px; height: 14px; color: #6d84a1; }
.clock-pill span { font-family: var(--mono); letter-spacing: 0.5px; }

.bell-btn { position: relative; }
.bell-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.5);
}

.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid rgba(120, 160, 210, 0.13);
}
.top-user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.top-user-meta strong { font-size: 12px; }
.top-user-meta span { font-size: 10.5px; color: #67809d; }

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 26px 36px;
  scroll-behavior: smooth;
}
.page { max-width: 1480px; margin: 0 auto; }

.view-loading { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-size: 13px; }
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   通用页面元素
   ========================================================================= */
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: 0.5px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.78), rgba(11, 18, 29, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow);
  padding: 20px;
  min-width: 0;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-title { font-size: 14.5px; font-weight: 600; letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; }
.panel-title .ic { width: 16px; height: 16px; color: var(--accent); }
.panel-desc { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.panel-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-link { font-size: 12px; color: #7fcbe0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.panel-link:hover { color: #a7e6f4; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 16px; }

.kpi {
  --c: var(--accent);
  position: relative;
  padding: 18px 19px 16px;
  border-radius: 15px;
  border: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(160deg, rgba(20, 31, 48, 0.82), rgba(10, 17, 28, 0.7));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  filter: blur(26px);
  pointer-events: none;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12.5px; color: #8ba1bd; letter-spacing: 0.4px; }
.kpi-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.kpi-icon .ic { width: 16px; height: 16px; }
.kpi-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-value small { font-size: 12px; color: #7e94b1; font-weight: 400; margin-left: 5px; letter-spacing: 1px; }
.kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: #7d93af; flex-wrap: wrap; }
.kpi-foot .up { color: var(--green); }
.kpi-foot .warn { color: var(--amber); }
.kpi-foot .bad { color: var(--red); }
.kpi-sep { width: 1px; height: 9px; background: rgba(120, 160, 210, 0.22); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 15px; margin-bottom: 16px; }
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 15px; }

.chart-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.select, .input {
  height: 34px;
  padding: 0 30px 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(120, 160, 210, 0.19);
  background: rgba(10, 18, 30, 0.8);
  color: #d6e4f5;
  font-size: 12.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f8cad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.select:focus, .input:focus { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }
.input { padding: 0 12px; width: 100%; }
.input::placeholder { color: #58708e; }

.range-chips { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(10, 18, 30, 0.7); border: 1px solid rgba(120, 160, 210, 0.14); }
.range-chip {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  color: #7f96b4;
  transition: background 0.18s, color 0.18s;
}
.range-chip:hover { color: #cfe5f7; }
.range-chip.active { background: rgba(34, 211, 238, 0.15); color: #b9f2fd; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22); }

.chart-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); margin-bottom: 6px; flex-wrap: wrap; }
.chart-meta b { color: #dbf4fb; font-size: 16px; font-variant-numeric: tabular-nums; }
.chart-canvas, .trend-canvas { width: 100%; display: block; }
.trend-canvas { height: 268px; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-canvas { width: 154px; height: 154px; flex: 0 0 154px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #9db2cc; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--accent)); }
.legend-row b { margin-left: auto; color: #e4eefc; font-size: 14px; font-variant-numeric: tabular-nums; }
.legend-row small { color: #6d84a1; font-size: 11px; }

.mini-bar-list { display: flex; flex-direction: column; gap: 15px; }
.mini-bar-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9fb4cf; margin-bottom: 7px; }
.mini-bar-top .name { color: #d8e6f6; }
.mini-bar-top b { margin-left: auto; color: #93aac7; font-size: 11.5px; font-weight: 500; }
.mini-track { height: 7px; border-radius: 6px; background: rgba(120, 160, 210, 0.1); overflow: hidden; }
.mini-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 45%, #fff 0%)); transition: width 0.5s ease; }
.mini-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: #5f7694; margin-top: 5px; }

.alarm-feed { display: flex; flex-direction: column; }
.feed-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(120, 160, 210, 0.08);
  cursor: pointer;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: rgba(120, 160, 210, 0.04); border-radius: 8px; }
.feed-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(251, 113, 133, 0.12);
  color: var(--red);
}
.feed-icon.warning { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.feed-icon.resolved { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.feed-icon .ic { width: 15px; height: 15px; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 12.5px; color: #dce8f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sub { font-size: 11px; color: #6d84a1; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { font-size: 10.5px; color: #5d7391; white-space: nowrap; }

.empty-state {
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #6f85a3;
  font-size: 12.5px;
  text-align: center;
}
.empty-state .empty-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(120, 160, 210, 0.07);
  border: 1px solid rgba(120, 160, 210, 0.14);
  color: #6d8aa8;
}
.empty-state .empty-ic .ic { width: 22px; height: 22px; }
.empty-state b { color: #a9bcd4; font-size: 13.5px; }

/* ---------- 项目卡片 ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 15px; }
.project-card {
  --c: var(--accent);
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(165deg, rgba(19, 29, 45, 0.82), rgba(10, 17, 28, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.project-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c), transparent 85%);
  opacity: 0.9;
}
.project-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  filter: blur(30px);
}
.project-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.project-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  color: var(--c);
}
.project-ic .ic { width: 19px; height: 19px; }
.project-name { font-size: 15px; font-weight: 600; color: #edf5ff; }
.project-code { font-size: 10.5px; color: #69809d; font-family: var(--mono); letter-spacing: 0.5px; margin-top: 3px; }
.project-actions { margin-left: auto; display: flex; gap: 3px; opacity: 0.75; }
.project-card:hover .project-actions { opacity: 1; }
.project-desc {
  position: relative;
  z-index: 1;
  margin: 14px 0 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #8299b7;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-stats { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding-top: 14px; border-top: 1px solid rgba(120, 160, 210, 0.1); }
.pstat { display: flex; flex-direction: column; gap: 3px; }
.pstat b { font-size: 17px; color: #e2eefb; font-variant-numeric: tabular-nums; }
.pstat span { font-size: 10.5px; color: #677e9b; }
.project-status { margin-left: auto; font-size: 11px; color: #79d5b0; display: flex; align-items: center; gap: 5px; }
.project-status .pulse-dot { width: 5px; height: 5px; background: var(--green); }

/* ---------- 工具栏 / 表格 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 15px;
  margin-bottom: 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(13, 21, 34, 0.62);
}
.toolbar .search-box { position: relative; min-width: 210px; flex: 1; max-width: 330px; }
.toolbar .search-box .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #69809d; }
.toolbar .search-box input {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  padding: 0 11px 0 33px;
  border: 1px solid rgba(120, 160, 210, 0.18);
  background: rgba(10, 18, 30, 0.8);
  font-size: 12.5px;
}
.toolbar .search-box input:focus { border-color: rgba(34, 211, 238, 0.45); }
.toolbar .spacer { flex: 1; }
.toolbar-note { font-size: 11.5px; color: #6a809d; display: flex; align-items: center; gap: 6px; }
.toolbar-note .ic { width: 14px; height: 14px; color: var(--accent); }

.table-card { padding: 4px 0 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.data-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 500;
  color: #7088a6;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(120, 160, 210, 0.12);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(120, 160, 210, 0.07);
  color: #b9cbe0;
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(120, 160, 210, 0.045); cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-actions { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.cell-actions .icon-btn { width: 28px; height: 28px; }
.cell-actions .icon-btn .ic { width: 15px; height: 15px; }
.cell-actions .icon-btn:hover { color: var(--accent); }
.cell-actions .icon-btn.danger:hover { color: var(--red); background: rgba(251, 113, 133, 0.1); }

.dev-cell { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.type-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 28%, transparent);
}
.type-ic .ic { width: 17px; height: 17px; }
.dev-name { color: #e6f0fc; font-size: 13px; font-weight: 500; }
.dev-code { font-family: var(--mono); font-size: 10.5px; color: #637a96; margin-top: 2px; letter-spacing: 0.4px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 21px;
  padding: 0 8px;
  border-radius: 20px;
  font-size: 10.5px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge .b-dot { width: 5px; height: 5px; border-radius: 50%; }
.badge-online { color: #82eec9; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); }
.badge-online .b-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.badge-offline { color: #90a0b6; background: rgba(120, 160, 210, 0.08); border-color: rgba(120, 160, 210, 0.18); }
.badge-offline .b-dot { background: #6f829b; }
.badge-normal { color: #82eec9; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.22); }
.badge-warning { color: #ffd987; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.28); }
.badge-critical { color: #ffb1bc; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.badge-active { color: #ffb1bc; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.badge-ack { color: #ffd987; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.26); }
.badge-resolved { color: #8fa4bd; background: rgba(120, 160, 210, 0.08); border-color: rgba(120, 160, 210, 0.16); }
.badge-disabled { color: #7d91ab; background: rgba(120, 160, 210, 0.07); border-color: rgba(120, 160, 210, 0.14); }
.badge-level-critical { color: #ffb1bc; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.badge-level-warning { color: #ffd987; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.26); }

.proj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #a9bdd6;
  white-space: nowrap;
}
.proj-tag .legend-dot { width: 7px; height: 7px; border-radius: 2px; }

.value-now { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.value-now b { font-size: 14px; color: #dff7ff; }
.value-now span { font-size: 10.5px; color: #6f86a4; }
.value-now.is-high b { color: var(--red); }
.value-now.is-low b { color: var(--amber); }
.value-none { color: #607694; font-size: 11.5px; }
.time-cell { font-size: 11px; color: #6c829f; font-family: var(--mono); white-space: nowrap; }

.table-empty { padding: 50px 20px; }

/* ---------- 数据监控 ---------- */
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.live-card {
  position: relative;
  padding: 17px 18px 15px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(165deg, rgba(19, 29, 45, 0.8), rgba(10, 17, 28, 0.68));
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.live-card:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.32); box-shadow: 0 16px 34px -20px rgba(34, 211, 238, 0.35); }
.live-card.offline { opacity: 0.72; }
.live-card.offline:hover { opacity: 0.9; }
.live-top { display: flex; align-items: center; gap: 10px; }
.live-title { font-size: 13.5px; font-weight: 600; color: #e9f3ff; }
.live-sub { font-size: 10.5px; color: #677e9d; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.live-status { margin-left: auto; }
.live-values { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.lv-item {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(9, 16, 27, 0.55);
  border: 1px solid rgba(120, 160, 210, 0.08);
}
.lv-name { font-size: 10.5px; color: #7188a5; display: flex; align-items: center; gap: 5px; }
.lv-name .dot { width: 5px; height: 5px; border-radius: 50%; background: #4d6a86; }
.lv-val { margin-top: 5px; font-size: 18px; font-weight: 600; color: #dff6ff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lv-val small { font-size: 10px; color: #7088a6; font-weight: 400; margin-left: 3px; }
.lv-item.high { border-color: rgba(251, 113, 133, 0.28); background: rgba(251, 113, 133, 0.06); }
.lv-item.high .lv-val { color: #ffb1bc; }
.lv-item.low { border-color: rgba(251, 191, 36, 0.26); background: rgba(251, 191, 36, 0.05); }
.lv-item.low .lv-val { color: #ffd987; }
.live-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 10.5px; color: #5f7694; }
.live-foot .arrow { margin-left: auto; color: #5f8aa6; display: flex; align-items: center; gap: 3px; }
.live-card:hover .live-foot .arrow { color: var(--accent); }

/* ---------- 阈值页 ---------- */
.thr-legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: #7f96b3; flex-wrap: wrap; }
.thr-legend span { display: flex; align-items: center; gap: 6px; }
.thr-legend .bar { width: 16px; height: 3px; border-radius: 3px; }
.thr-value { font-variant-numeric: tabular-nums; color: #d8e9fa; font-size: 12.5px; }
.thr-value.high { color: #ffb1bc; }
.thr-value.low { color: #ffd987; }
.thr-range { font-family: var(--mono); font-size: 11.5px; color: #91a8c4; white-space: nowrap; }

.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: 0 0 auto; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(120, 160, 210, 0.16);
  border: 1px solid rgba(120, 160, 210, 0.18);
  transition: background 0.2s, border-color 0.2s;
}
.switch .track::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  background: #93a9c4;
  transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .track { background: rgba(34, 211, 238, 0.28); border-color: rgba(34, 211, 238, 0.5); }
.switch input:checked + .track::after { transform: translateX(16px); background: #6ff0ff; box-shadow: 0 0 8px rgba(34, 211, 238, 0.65); }
.switch input:disabled + .track { opacity: 0.5; cursor: not-allowed; }

/* ---------- 告警记录 ---------- */
.alarm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.alarm-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.summary-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #8ba1bd;
  border: 1px solid rgba(120, 160, 210, 0.14);
  background: rgba(13, 21, 34, 0.6);
}
.summary-chip b { font-size: 14px; color: #dfeefb; font-variant-numeric: tabular-nums; }
.summary-chip.danger b { color: var(--red); }

.alarm-list { display: flex; flex-direction: column; gap: 9px; }
.alarm-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 210, 0.12);
  background: linear-gradient(165deg, rgba(18, 28, 43, 0.7), rgba(10, 17, 28, 0.58));
  border-left: 3px solid rgba(120, 160, 210, 0.25);
}
.alarm-item.active { border-left-color: var(--red); }
.alarm-item.warning.active { border-left-color: var(--amber); }
.alarm-item.acknowledged { border-left-color: var(--amber); opacity: 0.92; }
.alarm-item.resolved { border-left-color: rgba(120, 160, 210, 0.32); opacity: 0.8; }
.alarm-main { flex: 1; min-width: 0; }
.alarm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alarm-title { font-size: 13px; color: #e6f0fc; font-weight: 500; }
.alarm-meta { margin-top: 6px; font-size: 11px; color: #6d84a1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alarm-meta .sep { width: 1px; height: 9px; background: rgba(120, 160, 210, 0.2); }
.alarm-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.alarm-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(251, 113, 133, 0.1);
  color: var(--red);
  flex: 0 0 auto;
}
.alarm-icon.warning { background: rgba(251, 191, 36, 0.1); color: var(--amber); }
.alarm-icon.resolved { background: rgba(120, 160, 210, 0.09); color: #8298b4; }
.alarm-icon .ic { width: 15px; height: 15px; }

/* ---------- 设备详情 ---------- */
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 160, 210, 0.16);
  background: rgba(13, 22, 35, 0.6);
  color: #8ba1bd;
  margin-top: 4px;
}
.back-btn:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.35); }
.detail-title-wrap { flex: 1; min-width: 220px; }
.detail-title { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.detail-title h1 { font-size: 22px; font-weight: 700; }
.detail-meta { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-size: 11.5px; color: #798fab; flex-wrap: wrap; }
.detail-meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(120, 160, 210, 0.07);
  border: 1px solid rgba(120, 160, 210, 0.12);
}
.detail-meta .chip .ic { width: 13px; height: 13px; color: #6b86a4; }
.detail-head .head-actions { margin-top: 4px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 13px; margin-bottom: 15px; }
.metric-card {
  --c: var(--accent);
  padding: 15px 16px 12px;
  border-radius: 13px;
  border: 1px solid rgba(120, 160, 210, 0.13);
  background: linear-gradient(165deg, rgba(18, 28, 43, 0.76), rgba(10, 17, 28, 0.62));
  position: relative;
  overflow: hidden;
}
.metric-card.alarm { border-color: rgba(251, 113, 133, 0.35); }
.metric-card.warn { border-color: rgba(251, 191, 36, 0.32); }
.metric-card-top { display: flex; align-items: center; gap: 7px; }
.metric-name { font-size: 11.5px; color: #88a0bc; }
.metric-card-top .badge { margin-left: auto; height: 18px; font-size: 9.5px; }
.metric-val { margin-top: 10px; font-size: 25px; font-weight: 700; color: #e9fbff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-val small { font-size: 11px; font-weight: 400; color: #748ca9; margin-left: 4px; }
.metric-val.high { color: #ffb1bc; }
.metric-val.low { color: #ffd987; }
.metric-spark { width: 100%; height: 36px; display: block; margin-top: 9px; }
.metric-limit { font-size: 10.5px; color: #627b98; margin-top: 3px; font-variant-numeric: tabular-nums; }

.detail-chart-panel { margin-bottom: 15px; }
.detail-chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-tabs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.chart-tab {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #7f96b3;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chart-tab:hover { color: #d3e7f8; background: rgba(120, 160, 210, 0.07); }
.chart-tab.active {
  color: #b9f2fd;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}
.chart-unit { font-size: 11px; color: #6b82a0; }
.detail-chart-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.detail-canvas { width: 100%; height: 300px; display: block; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 15px; }

.thr-form { display: flex; flex-direction: column; gap: 0; }
.thr-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) 46px minmax(70px, 0.8fr) minmax(70px, 0.8fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(120, 160, 210, 0.08);
}
.thr-row:last-of-type { border-bottom: none; }
.thr-metric { display: flex; align-items: center; gap: 8px; min-width: 0; }
.thr-metric .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.thr-metric b { font-size: 12.5px; color: #d9e7f7; font-weight: 500; display: block; }
.thr-metric small { font-size: 10.5px; color: #6a819f; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.thr-input { position: relative; }
.thr-input input {
  width: 100%;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(120, 160, 210, 0.18);
  background: rgba(9, 16, 27, 0.8);
  padding: 0 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #dbeafb;
}
.thr-input input:focus { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }
.thr-input input:disabled { opacity: 0.5; }
.thr-label { font-size: 10px; color: #647b99; margin-bottom: 5px; display: block; }
.thr-unit { font-size: 10.5px; color: #6f86a4; text-align: right; }
.thr-form-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(120, 160, 210, 0.1); }
.thr-form-foot .note { font-size: 10.5px; color: #627a97; line-height: 1.5; }
.thr-form-foot .right { margin-left: auto; display: flex; gap: 8px; }

.detail-alarm-list { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.device-alarm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(9, 16, 27, 0.5);
  border: 1px solid rgba(120, 160, 210, 0.09);
}
.device-alarm-row .alarm-icon { width: 28px; height: 28px; border-radius: 8px; }
.device-alarm-body { flex: 1; min-width: 0; }
.device-alarm-title { font-size: 11.5px; color: #d9e6f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-alarm-time { font-size: 10.5px; color: #617a98; margin-top: 3px; }
.device-alarm-row .badge { height: 19px; font-size: 9.5px; }

/* =========================================================================
   弹窗 / 提示
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
  overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  width: min(var(--w, 540px), 96vw);
  border-radius: 18px;
  border: 1px solid rgba(130, 175, 225, 0.22);
  background: linear-gradient(165deg, #111c2c, #0a1320);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid rgba(120, 160, 210, 0.1); }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-head p { font-size: 11.5px; color: #7288a5; margin-top: 5px; line-height: 1.6; }
.modal-close { margin-left: auto; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #7c93b0; }
.modal-close:hover { background: rgba(120, 160, 210, 0.1); color: var(--text); }
.modal-body { padding: 20px 22px; max-height: 64vh; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-top: 1px solid rgba(120, 160, 210, 0.1); background: rgba(8, 14, 23, 0.4); }
.modal-foot .right { margin-left: auto; display: flex; gap: 9px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 11.5px; color: #8ca2be; margin-bottom: 7px; letter-spacing: 0.3px; }
.form-field .req { color: var(--red); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(120, 160, 210, 0.2);
  background: rgba(9, 17, 28, 0.85);
  padding: 0 11px;
  font-size: 13px;
  color: #e0edfb;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { height: 74px; padding: 10px 11px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }
.form-field input:disabled, .form-field select:disabled { opacity: 0.55; }
.form-field .hint { font-size: 10.5px; color: #647b99; margin-top: 5px; line-height: 1.5; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f8cad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.metric-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.metric-preview span {
  font-size: 10.5px;
  color: #8fb6c8;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 4px 8px;
  border-radius: 6px;
}

.color-row { display: flex; gap: 9px; flex-wrap: wrap; }
.color-swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; position: relative; }
.color-swatch.active { border-color: #e8f7ff; box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35); }

.confirm-text { font-size: 13px; line-height: 1.8; color: #b7c9de; }
.confirm-text b { color: #ffb1bc; }
.confirm-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(251, 113, 133, 0.12);
  color: var(--red);
  margin-bottom: 14px;
}
.confirm-emoji .ic { width: 20px; height: 20px; }

.toast-root { position: fixed; top: 22px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 380px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid rgba(120, 160, 210, 0.22);
  background: rgba(12, 21, 34, 0.95);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 12.5px;
  color: #dce9f8;
  backdrop-filter: blur(10px);
  animation: toastIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast .toast-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; }
.toast.success .toast-ic { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.toast.error .toast-ic { background: rgba(251, 113, 133, 0.14); color: var(--red); }
.toast.info .toast-ic { background: rgba(34, 211, 238, 0.14); color: var(--accent); }
.toast .ic { width: 14px; height: 14px; }
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; width: min(460px, 94vw); }
  .brand-panel { display: none; }
  .login-panel { padding: 40px 30px; }
  .login { padding: 22px; align-items: flex-start; }
}

@media (max-width: 960px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-102%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .side-mask { position: fixed; inset: 0; z-index: 35; background: rgba(3, 7, 12, 0.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .side-mask.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .view { padding: 20px 18px 30px; }
  .topbar { padding: 0 16px; }
  .top-user-meta, .sync-pill span:last-child { display: none; }
}

@media (max-width: 760px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .kpi { padding: 15px; }
  .kpi-value { font-size: 24px; }
  .dash-grid, .dash-bottom, .detail-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 20px; }
  .topbar-right { gap: 6px; }
  .clock-pill { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .thr-row { grid-template-columns: minmax(105px, 1.4fr) 42px minmax(58px, 1fr) minmax(58px, 1fr) 34px; gap: 7px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar .search-box { max-width: none; flex-basis: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .monitor-grid { grid-template-columns: 1fr; }
  .donut-wrap { justify-content: center; }
  .chart-tab { padding: 5px 8px; font-size: 11px; }
  .alarm-item { flex-wrap: wrap; }
  .alarm-side { margin-left: auto; }
}

/* =========================================================================
   巴法云接入
   ========================================================================= */
.cloud-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; margin-bottom: 16px; position: relative; overflow: hidden; }
.cloud-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 68%);
  pointer-events: none;
}
.cloud-hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cloud-orb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #a9f4ff;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.2), rgba(91, 140, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3), 0 12px 28px -16px rgba(34, 211, 238, 0.6);
}
.cloud-orb .ic { width: 25px; height: 25px; }
.cloud-hero h2 { font-size: 17px; letter-spacing: 0.3px; margin-bottom: 5px; }
.cloud-hero p { font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 640px; }
.cloud-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cloud-meta .chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; font-size: 11px; color: #93a9c6; background: rgba(10, 20, 34, 0.6); border: 1px solid rgba(120, 160, 210, 0.14); font-family: var(--mono); }
.cloud-meta .chip .ic { width: 12px; height: 12px; color: #7dd3fc; }
.cloud-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; z-index: 1; }
.cloud-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; border: 1px solid transparent; white-space: nowrap; }
.cloud-state.ok { color: #7af0c0; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); }
.cloud-state.warn { color: #ffd88a; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
.cloud-error { display: flex; align-items: center; gap: 9px; margin: -6px 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 12px; color: #ffc2ca; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.22); }
.cloud-error .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.cloud-groups { display: grid; gap: 14px; }
.cloud-group .panel-head { margin-bottom: 10px; }
.cloud-table td { vertical-align: middle; }
.cloud-msg-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: #b9cde4; }
.cloud-time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cloud-muted { color: var(--dim); }
.cloud-msg-btn { height: 28px; padding: 0 10px; font-size: 11.5px; }
.cloud-msg-btn .ic { width: 13px; height: 13px; }
.cloud-msg-list { display: flex; flex-direction: column; gap: 9px; max-height: 420px; overflow-y: auto; padding-right: 3px; }
.cloud-msg-row { border: 1px solid rgba(120, 160, 210, 0.14); border-radius: 10px; background: rgba(9, 17, 28, 0.7); padding: 11px 13px; }
.cloud-msg-text { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.65; color: #d8e8fa; white-space: pre-wrap; word-break: break-word; }
.cloud-msg-time { margin-top: 7px; font-size: 11px; color: var(--dim); }
.cloud-bindings { margin-top: 14px; }
.cloud-note { padding: 10px 16px 14px; font-size: 11.5px; line-height: 1.7; color: var(--dim); border-top: 1px solid rgba(120, 160, 210, 0.1); }
.bind-flag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 500; color: #7af0c0; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.24); vertical-align: middle; }
.mode-pill { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 10.5px; color: #9fd8ff; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.2); }
.bind-help { font-size: 11.5px; line-height: 1.8; color: var(--muted); padding: 10px 12px; border-radius: 9px; background: rgba(9, 17, 28, 0.6); border: 1px dashed rgba(120, 160, 210, 0.2); }
.bind-help code { font-family: var(--mono); font-size: 11px; color: #9fd8ff; background: rgba(34, 211, 238, 0.08); padding: 1px 5px; border-radius: 4px; }
.src-pill { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px; font-size: 10px; line-height: 1.6; color: #8fa6c0; background: rgba(120, 160, 210, 0.1); border: 1px solid rgba(120, 160, 210, 0.18); white-space: nowrap; }
.src-pill.cloud { color: #7af0c0; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.26); }
.cloud-msg-btn + .cloud-msg-btn { margin-left: 6px; }
@media (max-width: 760px) {
  .cloud-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .cloud-hero-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cloud-msg-cell { max-width: 180px; }
}

/* 设备控制台 */
.cmd-panel { margin-bottom: 15px; }
.cmd-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.cmd-preset {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(120, 160, 210, 0.18);
  background: rgba(14, 24, 38, 0.7);
  color: #a9c2dc;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.cmd-preset:hover { color: #9fe8f5; border-color: rgba(34, 211, 238, 0.38); background: rgba(34, 211, 238, 0.07); }
.cmd-form { display: flex; align-items: center; gap: 9px; }
.cmd-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 25, 0.82);
  color: #dcecff;
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
}
.cmd-form input:focus { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08); }
.cmd-form .btn { flex: 0 0 auto; }
.cmd-history { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(120, 160, 210, 0.1); }
.cmd-history-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; color: var(--dim); }
.cmd-row { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(9, 17, 28, 0.55); border: 1px solid rgba(120, 160, 210, 0.1); }
.cmd-row-top { display: flex; align-items: center; gap: 8px; }
.cmd-code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: #cfe6ff; word-break: break-all; }
.cmd-state { flex: 0 0 auto; padding: 1px 7px; border-radius: 5px; font-size: 10px; }
.cmd-state.ok { color: #7af0c0; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.24); }
.cmd-state.bad { color: #ffb1bc; background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.24); }
.cmd-row-meta { font-size: 10.5px; color: var(--dim); }
.cmd-empty { padding: 14px; text-align: center; font-size: 11.5px; color: var(--dim); }

@media (max-width: 760px) {
  .cmd-form { flex-wrap: wrap; }
  .cmd-form input { flex: 1 0 100%; }
  .cmd-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .login-panel { padding: 30px 20px; }
  .login-head h2 { font-size: 24px; }
  .view { padding: 16px 12px 26px; }
  .topbar { height: 58px; flex: 0 0 58px; }
  .crumb-root, .crumb-sep, .sync-pill { display: none; }
  .page-head { margin-bottom: 16px; }
  .page-head .head-actions { width: 100%; margin-left: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 13px 14px 10px; }
  .thr-row { grid-template-columns: 1fr 42px 1fr 1fr; }
  .thr-unit { display: none; }
  .modal-body { padding: 16px; }
  .modal-head, .modal-foot { padding: 14px 16px; }
  .toast-root { left: 14px; right: 14px; }
  .toast { max-width: none; }
}
