/* ============================================================
   采集机器人管理后台 — 科技风控制台（与仪表盘统一）
   仅使用系统字体，无任何外部字体 / CDN 依赖
   ============================================================ */

:root {
  color-scheme: dark;

  --sidebar-width: 224px;
  --topbar-h: 54px;

  /* 科技风基础色板（与 .tech-dash 保持一致） */
  --tech-bg: #070B14;
  --tech-panel: rgba(15, 23, 42, .72);
  --tech-panel-solid: #0F172A;
  --tech-line: rgba(56, 189, 248, .16);
  --tech-line-strong: rgba(56, 189, 248, .38);
  --tech-cyan: #38BDF8;
  --tech-violet: #818CF8;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 侧边栏 */
  --sidebar-bg: rgba(7, 11, 20, .94);
  --sidebar-item: #94A3B8;
  --sidebar-hover-bg: rgba(56, 189, 248, .07);
  --sidebar-active-bg: rgba(56, 189, 248, .14);
  --sidebar-active-border: #38BDF8;
  --sidebar-active-color: #7DD3FC;

  /* 全局强调色 */
  --accent: #38BDF8;
  --accent-dark: #0EA5E9;
  --accent-light: rgba(56, 189, 248, .12);
  --primary: #38BDF8;
  --accent-muted: rgba(56, 189, 248, .16);

  /* 语义色（暗底高亮版） */
  --success: #34D399;
  --warning: #FBBF24;
  --danger:  #F87171;
  --info:    #38BDF8;

  /* 页面底色 & 表面 */
  --bg:      #070B14;
  --surface: rgba(15, 23, 42, .72);
  --surface-2: rgba(30, 41, 59, .55);
  --surface-inset: rgba(2, 6, 23, .55);
  --card-bg: rgba(15, 23, 42, .72);
  --bg-sub: rgba(2, 6, 23, .45);
  --border:  rgba(56, 189, 248, .16);
  --border-strong: rgba(56, 189, 248, .38);
  --border-soft: rgba(148, 163, 184, .12);

  /* 文字 */
  --text:     #E2E8F0;
  --text-strong: #F8FAFC;
  --text-sub: #8B9AB0;
  --text-muted: #64748B;

  /* 圆角 & 阴影 */
  --radius:    12px;
  --radius-sm: 7px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 2px 8px rgba(2,6,23,.35);
  --shadow-md: 0 8px 24px rgba(2,6,23,.45);
  --shadow-lg: 0 20px 50px rgba(2,6,23,.6);
  --glow: 0 0 0 1px rgba(56,189,248,.18), 0 0 18px rgba(56,189,248,.12);
  --transition: .17s ease;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(900px 500px at 105% 0%, rgba(129,140,248,.09), transparent 60%),
    linear-gradient(rgba(56,189,248,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(56,189,248,.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }

::selection { background: rgba(56,189,248,.35); color: #fff; }

hr { border: none; border-top: 1px solid var(--border-soft); }

/* 原生表单元素的暗色基线（未加 .form-control 的 input/select/textarea） */
input, select, textarea, button { font-family: inherit; }
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--tech-cyan); }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="submit"]):not([type="button"]):not(.form-control)),
:where(select:not(.form-control)),
:where(textarea:not(.form-control)) {
  background-color: var(--surface-inset);
  color: var(--text);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--radius-sm);
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not(.form-control)):focus,
:where(select:not(.form-control)):focus,
:where(textarea:not(.form-control)):focus {
  outline: none;
  border-color: var(--tech-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
:where(input, select, textarea):disabled { opacity: .5; cursor: not-allowed; }
select option, select optgroup { background: var(--tech-panel-solid); color: var(--text); }
input[type="file"] { color: var(--text-sub); font-size: .8125rem; }
input[type="file"]::file-selector-button {
  margin-right: .75rem; padding: .375rem .875rem;
  border-radius: var(--radius-sm); cursor: pointer; font: inherit;
  color: #7DD3FC; background: rgba(56,189,248,.1);
  border: 1px solid var(--border-strong);
  transition: background var(--transition);
}
input[type="file"]::file-selector-button:hover { background: rgba(56,189,248,.2); }
:focus-visible { outline: 2px solid rgba(56,189,248,.75); outline-offset: 2px; }

/* ── 滚动条 ─────────────────────────────────────── */
* { scrollbar-color: rgba(148,163,184,.28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,.5); }

/* ── 顶部导航栏 ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(7, 11, 20, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem 0 calc(var(--sidebar-width) + 1.5rem);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(2,6,23,.35);
}
.navbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.65), rgba(129,140,248,.45), transparent);
  pointer-events: none;
}

.nav-brand {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tech-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15), 0 0 10px rgba(56,189,248,.9);
  flex-shrink: 0;
  animation: tech-breathe 2.4s ease-in-out infinite;
}

.nav-right { display: flex; align-items: center; gap: .875rem; }
.nav-right .nav-user {
  color: var(--text-sub); font-size: .78rem; font-family: var(--mono);
  padding: .15rem .6rem; border-radius: 999px;
  border: 1px solid var(--border-soft); background: rgba(15,23,42,.6);
}

/* ── 布局 ───────────────────────────────────────── */
.layout {
  display: flex;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* ── 侧边栏 ─────────────────────────────────────── */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  width: var(--sidebar-width);
  background:
    linear-gradient(180deg, rgba(56,189,248,.05), transparent 40%),
    var(--sidebar-bg);
  overflow-y: auto; overflow-x: hidden;
  padding: 1rem 0 2rem;
  border-right: 1px solid var(--border);
  z-index: 90;
}

.sidebar-section {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: #64748B;
  text-transform: uppercase;
  padding: .875rem 1.25rem .35rem;
  margin-top: .25rem;
  display: flex; align-items: center; gap: .5rem;
}
.sidebar-section::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(56,189,248,.22), transparent);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem 1.125rem;
  margin: 1px .5rem 1px 0;
  border-radius: 0 8px 8px 0;
  color: var(--sidebar-item);
  font-size: .8125rem;
  font-weight: 400;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  border-left: 2px solid transparent;
}

.menu-item .menu-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: .75;
  display: flex; align-items: center; justify-content: center;
}

.menu-item:hover {
  color: var(--text-strong);
  background: var(--sidebar-hover-bg);
}
.menu-item:hover .menu-icon { opacity: 1; color: #7DD3FC; }

.menu-item.active {
  color: var(--sidebar-active-color);
  background: linear-gradient(90deg, rgba(56,189,248,.18), rgba(56,189,248,.03));
  border-left-color: var(--sidebar-active-border);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.12);
}
.menu-item.active::before {
  content: ''; position: absolute; left: -2px; top: 20%; bottom: 20%; width: 2px;
  background: var(--tech-cyan); box-shadow: 0 0 10px var(--tech-cyan);
}

.menu-item.active .menu-icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(56,189,248,.7)); }

/* ── 主内容区 ────────────────────────────────────── */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 1.75rem 2rem 3rem;
  min-width: 0;
  overflow-x: auto;
}

/* ── 页面标题 ────────────────────────────────────── */
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .6rem;
}

h2::before {
  content: '';
  width: 4px; height: 1.35em; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--tech-cyan), var(--tech-violet));
  box-shadow: 0 0 12px rgba(56,189,248,.7);
}

h2::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  margin-left: .75rem;
}

h3 { font-size: .9375rem; font-weight: 600; color: var(--text-strong); margin-bottom: .75rem; letter-spacing: .03em; }
h4 { font-size: .875rem;  font-weight: 600; color: var(--text); margin-bottom: .625rem; }
strong, b { color: var(--text-strong); }
.alert strong, .alert b, .badge strong, .badge b, .btn strong, .btn b { color: inherit; }
small { color: var(--text-sub); }

/* ── 卡片（科技面板，带角标） ─────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.03);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card::before, .card::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--tech-cyan); border-style: solid; opacity: .7;
}
.card::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius); }
.card::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius); }
.card h3:first-child { display: flex; align-items: center; gap: .5rem; }

/* ── 统计格 ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.stat-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--tech-violet), transparent); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, var(--success), transparent); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, transparent, var(--warning), transparent); }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem;
  font-size: 1rem;
}

.stat-card:nth-child(1) .stat-icon { background: rgba(56,189,248,.12); color: var(--tech-cyan); }
.stat-card:nth-child(2) .stat-icon { background: rgba(129,140,248,.12); color: var(--tech-violet); }
.stat-card:nth-child(3) .stat-icon { background: rgba(52,211,153,.12); color: var(--success); }
.stat-card:nth-child(4) .stat-icon { background: rgba(251,191,36,.12); color: var(--warning); }

.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
  letter-spacing: -.02em;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-sub);
  margin-top: .35rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ── 仪表盘 · 科技风控制中心 ─────────────────────── */
.tech-dash {
  --td-bg: #070B14;
  --td-panel: rgba(15, 23, 42, .72);
  --td-line: rgba(56, 189, 248, .16);
  --td-line-strong: rgba(56, 189, 248, .38);
  --td-text: #E2E8F0;
  --td-sub: #7C8BA1;
  --td-cyan: #38BDF8;
  --td-ok: #34D399;
  --td-warn: #FBBF24;
  --td-bad: #F87171;
  --td-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  position: relative;
  margin: -.25rem 0 0;
  padding: 1.5rem;
  border-radius: 14px;
  color: var(--td-text);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(900px 400px at 110% 10%, rgba(129,140,248,.12), transparent 60%),
    linear-gradient(rgba(56,189,248,.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(56,189,248,.045) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--td-bg);
  border: 1px solid rgba(56,189,248,.18);
  box-shadow: 0 20px 50px rgba(2,6,23,.35), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.tech-dash h2, .tech-dash h3 { color: var(--td-text); margin: 0; }
.tech-dash h2::after { display: none; }
.tech-dash h2 { font-size: 1.25rem; letter-spacing: .04em; }
.tech-dash h3 { font-size: 1rem; letter-spacing: .03em; }
.td-subtitle {
  margin-top: .25rem; font-size: .72rem; color: var(--td-sub);
  letter-spacing: .08em;
}

/* 顶部 */
.td-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.td-title { display: flex; align-items: center; gap: .75rem; }
.td-title-mark {
  width: 4px; height: 34px; border-radius: 2px;
  background: linear-gradient(180deg, var(--td-cyan), #818CF8);
  box-shadow: 0 0 12px rgba(56,189,248,.7);
}
.td-header-right { display: flex; align-items: center; gap: .75rem; }
.td-live {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .72rem;
  color: var(--td-ok); border: 1px solid rgba(52,211,153,.35);
  background: rgba(52,211,153,.08);
}
.td-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: td-ping 1.8s infinite;
}
.td-live.td-offline { color: var(--td-bad); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.td-live.td-offline .td-live-dot { animation: none; }
.td-clock {
  font-family: var(--td-mono); font-size: .95rem; color: var(--td-cyan);
  letter-spacing: .1em; text-shadow: 0 0 10px rgba(56,189,248,.5);
}

/* 指标 */
.td-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .875rem;
  margin-bottom: 1.25rem;
}
.td-kpi {
  position: relative; padding: 1rem 1.125rem; border-radius: 10px;
  background: var(--td-panel); border: 1px solid var(--td-line);
  backdrop-filter: blur(6px); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.td-kpi::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--kpi), transparent);
}
.td-kpi::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--kpi), transparent 70%); opacity: .18;
}
.td-kpi:hover { border-color: var(--td-line-strong); transform: translateY(-2px); }
.td-kpi-label { font-size: .75rem; color: var(--td-sub); }
.td-kpi-num {
  margin-top: .45rem; font-family: var(--td-mono); font-size: 1.9rem;
  font-weight: 700; line-height: 1; color: #F8FAFC;
  text-shadow: 0 0 18px color-mix(in srgb, var(--kpi) 45%, transparent);
}
.td-kpi-foot {
  margin-top: .5rem; font-size: .62rem; letter-spacing: .14em;
  color: var(--kpi); opacity: .8;
}

/* 面板 */
.td-panel {
  position: relative; padding: 1.25rem; border-radius: 12px;
  background: var(--td-panel); border: 1px solid var(--td-line);
  margin-bottom: 1.25rem;
}
.td-panel:last-child { margin-bottom: 0; }
.td-panel::before, .td-panel::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-color: var(--td-cyan); border-style: solid; opacity: .7;
}
.td-panel::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 12px; }
.td-panel::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 12px; }
.td-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.125rem; flex-wrap: wrap;
}
.td-more { font-size: .78rem; color: var(--td-cyan); text-decoration: none; }
.td-more:hover { text-decoration: underline; }

/* 状态色 */
.tech-dash .pipeline-success { --st: var(--td-ok); }
.tech-dash .pipeline-warning { --st: var(--td-warn); }
.tech-dash .pipeline-danger  { --st: var(--td-bad); }

/* 整体负载 */
.td-overall {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .5rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--st) 45%, transparent);
  background: color-mix(in srgb, var(--st) 10%, transparent);
}
.td-overall-ring {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--st); box-shadow: 0 0 10px var(--st);
}
.td-overall-ring::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--st); animation: td-pulse 1.6s ease-in-out infinite;
}
.td-overall-text { display: flex; flex-direction: column; line-height: 1.15; }
.td-overall-text small { font-size: .62rem; color: var(--td-sub); letter-spacing: .08em; }
.td-overall-text b { font-size: .9rem; color: var(--st); }

/* 流水线 */
.td-flow {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) minmax(0, 3.2fr) minmax(28px, 1fr) minmax(0, 3.2fr) minmax(28px, 1fr) minmax(0, 3.2fr) minmax(28px, 1fr) auto;
  align-items: center;
}
.td-endpoint {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-size: .72rem; color: var(--td-sub); white-space: nowrap;
}
.td-endpoint-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--td-cyan); border: 1px solid var(--td-line-strong);
  background: rgba(56,189,248,.08); box-shadow: 0 0 16px rgba(56,189,248,.18);
}
.td-link {
  position: relative; height: 2px; margin: 0 .35rem;
  background: color-mix(in srgb, var(--st) 30%, transparent);
  overflow: hidden;
}
.td-link i {
  position: absolute; top: -2px; left: -12px; width: 12px; height: 6px;
  border-radius: 3px; background: var(--st); box-shadow: 0 0 8px var(--st);
  animation: td-flow 1.8s linear infinite;
}
.td-link i:nth-child(2) { animation-delay: .6s; }
.td-link i:nth-child(3) { animation-delay: 1.2s; }
.td-link.pipeline-warning i { animation-duration: 2.8s; }
.td-link.pipeline-danger i { animation-duration: 4.2s; }

.td-stage {
  position: relative; padding: 1rem; border-radius: 10px; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--st) 8%, rgba(15,23,42,.9)), rgba(15,23,42,.9));
  border: 1px solid color-mix(in srgb, var(--st) 35%, transparent);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 24px color-mix(in srgb, var(--st) 12%, transparent);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.td-stage.pipeline-danger { animation: td-alert 1.6s ease-in-out infinite; }
.td-stage-head { display: flex; align-items: center; gap: .5rem; }
.td-stage-idx {
  font-family: var(--td-mono); font-size: .7rem; color: var(--st);
  padding: .1rem .35rem; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--st) 45%, transparent);
}
.td-stage-name { font-size: .85rem; font-weight: 600; }
.td-badge {
  margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--st);
  padding: .12rem .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--st) 14%, transparent);
}
.td-stage-num {
  margin-top: .75rem; font-family: var(--td-mono); font-size: 2rem;
  font-weight: 700; line-height: 1; color: #F8FAFC;
  text-shadow: 0 0 16px color-mix(in srgb, var(--st) 40%, transparent);
}
.td-stage-unit { margin-top: .3rem; font-size: .68rem; color: var(--td-sub); }
.td-meter {
  margin-top: .7rem; height: 5px; border-radius: 3px;
  background: rgba(148,163,184,.14); overflow: hidden;
}
.td-meter span {
  display: block; height: 100%; min-width: 2px; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--st) 50%, transparent), var(--st));
  box-shadow: 0 0 8px var(--st);
  transition: width .6s ease;
}
.td-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem .5rem; margin: .85rem 0 0;
}
.td-metrics div { min-width: 0; }
.td-metrics dt { font-size: .64rem; color: var(--td-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-metrics dd {
  margin: .1rem 0 0; font-family: var(--td-mono); font-size: .9rem;
  font-weight: 600; color: var(--td-text);
}
.td-metrics dd.td-hot { color: var(--td-bad); text-shadow: 0 0 8px rgba(248,113,113,.5); }
.td-oldest {
  margin-top: .75rem; padding-top: .6rem;
  border-top: 1px dashed rgba(148,163,184,.18);
  font-size: .66rem; color: var(--td-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.td-oldest span { font-family: var(--td-mono); color: var(--td-text); }
.td-flash { animation: td-flash .9s ease; }

.td-stage-head { min-width: 0; }
.td-stage-name, .td-badge { white-space: nowrap; }

.td-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1rem; font-size: .7rem; color: var(--td-sub);
}
.td-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.td-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); box-shadow: 0 0 6px var(--st); }
.td-legend-note { margin-left: auto; }

/* 表格 */
.td-table-wrap { overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.td-table th {
  text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .08em;
  color: var(--td-sub); padding: .55rem .75rem;
  border-bottom: 1px solid var(--td-line-strong);
}
.td-table td { padding: .65rem .75rem; border-bottom: 1px solid rgba(148,163,184,.08); color: var(--td-text); }
.td-table tbody tr { transition: background var(--transition); }
.td-table tbody tr:hover { background: rgba(56,189,248,.06); }
.td-table code {
  font-family: var(--td-mono); font-size: .78rem; color: var(--td-cyan);
  background: rgba(56,189,248,.08); padding: .1rem .4rem; border-radius: 4px;
}
.td-tag {
  font-size: .72rem; padding: .12rem .5rem; border-radius: 4px;
  color: #C4B5FD; background: rgba(129,140,248,.14); border: 1px solid rgba(129,140,248,.28);
}
.td-mono { font-family: var(--td-mono); }
.td-dim { color: var(--td-sub); }
.td-link-out { color: var(--td-cyan); font-weight: 500; text-decoration: none; }
.td-link-out:hover { text-shadow: 0 0 8px rgba(56,189,248,.6); }
.td-empty { text-align: center; padding: 2.5rem 0 !important; color: var(--td-sub); }

@keyframes td-flow { from { left: -12px; } to { left: 100%; } }
@keyframes td-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes td-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes td-alert {
  0%, 100% { box-shadow: 0 0 18px rgba(248,113,113,.15); }
  50% { box-shadow: 0 0 30px rgba(248,113,113,.45); }
}
@keyframes td-flash { 0% { color: var(--td-cyan); text-shadow: 0 0 12px var(--td-cyan); } 100% { } }

@media (max-width: 1200px) {
  .td-flow { grid-template-columns: 1fr; gap: 0; }
  .td-endpoint { flex-direction: row; justify-content: center; }
  .td-endpoint-icon { width: 34px; height: 34px; }
  .td-link { width: 2px; height: 26px; margin: .35rem auto; }
  .td-link i { left: -2px; top: -12px; width: 6px; height: 12px; animation-name: td-flow-v; }
}
@keyframes td-flow-v { from { top: -12px; } to { top: 100%; } }
@media (max-width: 1100px) { .td-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .tech-dash { padding: 1rem; border-radius: 10px; }
  .td-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .td-kpi-num { font-size: 1.5rem; }
  .td-legend-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-dash *, .tech-dash *::before, .tech-dash *::after { animation: none !important; transition: none !important; }
}

/* 仪表盘在全局科技风背景上的衔接 */
.tech-dash h2::before { display: none; }
.tech-dash strong, .tech-dash b { color: inherit; }

/* ── 表单 ───────────────────────────────────────── */
.form-group { margin-bottom: 1.125rem; }

.form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: #CBD5E1;
  margin-bottom: .375rem;
}

.form-control {
  width: 100%;
  padding: .5625rem .875rem;
  background: var(--surface-inset);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control:hover { border-color: rgba(56,189,248,.35); }

.form-control:focus {
  outline: none;
  border-color: var(--tech-cyan);
  background: rgba(2,6,23,.8);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18), 0 0 14px rgba(56,189,248,.15);
}

.form-control:disabled, .form-control[readonly] {
  background: rgba(148,163,184,.07);
  border-style: dashed;
  color: var(--text-sub);
}
.form-control:disabled { cursor: not-allowed; opacity: .65; }

.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 80px;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.6;
}

.form-row { display: flex; gap: 1rem; }
.form-group.half { flex: 1; }
.form-inline { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.text-muted { font-size: .75rem; color: var(--text-sub); margin-top: .3rem; display: block; }

/* ── 按钮 ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .4375rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(30,41,59,.6);
  color: var(--text);
  cursor: pointer;
  font-size: .8125rem; font-weight: 500;
  font-family: inherit;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--border-strong); color: var(--text-strong); background: rgba(56,189,248,.1); }

.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(56,189,248,.35); }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284C7, #2563EB);
  border-color: rgba(125,211,252,.45);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(56,189,248,.15), 0 4px 14px rgba(14,165,233,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0EA5E9, #3B82F6);
  border-color: rgba(186,230,253,.6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(56,189,248,.3), 0 0 20px rgba(56,189,248,.35);
}

.btn-success {
  background: linear-gradient(135deg, #047857, #059669);
  border-color: rgba(110,231,183,.4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.2);
}
.btn-success:hover { background: linear-gradient(135deg, #059669, #10B981); color: #fff; border-color: rgba(167,243,208,.6); box-shadow: 0 0 18px rgba(52,211,153,.3); }

.btn-danger {
  background: linear-gradient(135deg, #B91C1C, #DC2626);
  border-color: rgba(252,165,165,.45);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}
.btn-danger:hover { background: linear-gradient(135deg, #DC2626, #EF4444); color: #fff; border-color: rgba(254,202,202,.65); box-shadow: 0 0 18px rgba(248,113,113,.4); }

.btn-outline {
  background: rgba(15,23,42,.35);
  color: #CBD5E1;
  border: 1px solid rgba(148,163,184,.3);
}
.btn-outline:hover { background: rgba(56,189,248,.1); color: #E0F2FE; border-color: var(--tech-cyan); box-shadow: 0 0 12px rgba(56,189,248,.18); }

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(56,189,248,.08); color: var(--text-strong); border-color: transparent; }

.btn-sm { padding: .3125rem .6875rem; font-size: .75rem; border-radius: 6px; }
.btn-block { width: 100%; }

/* 分页当前页 */
.btn-current, .page-current {
  background: rgba(56,189,248,.18) !important;
  border-color: var(--tech-cyan) !important;
  color: #E0F2FE !important;
  box-shadow: 0 0 12px rgba(56,189,248,.35);
  pointer-events: none;
  font-family: var(--mono);
}
.pager-ellipsis { color: var(--text-muted); padding: 0 4px; }

/* ── 表格 ───────────────────────────────────────── */
.table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table-wrap .table, .card .table { border: none; }
.card .table { background: transparent; }

.table th {
  background: rgba(56,189,248,.06);
  padding: .625rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.table td {
  padding: .6875rem 1rem;
  border-bottom: 1px solid rgba(148,163,184,.08);
  font-size: .875rem;
  vertical-align: middle;
  color: var(--text);
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover td { background: rgba(56,189,248,.06); }

code {
  background: rgba(56,189,248,.08);
  padding: .125rem .4rem;
  border-radius: 4px;
  font-size: .8rem;
  font-family: var(--mono);
  color: #7DD3FC;
  border: 1px solid rgba(56,189,248,.2);
}
pre { font-family: var(--mono); }

/* 代码/文本标签的语义变体（替代浅色内联背景） */
.code-warn { background: rgba(251,191,36,.1) !important; color: #FCD34D !important; border-color: rgba(251,191,36,.3) !important; }
.code-ok   { background: rgba(52,211,153,.1) !important; color: #6EE7B7 !important; border-color: rgba(52,211,153,.3) !important; }

/* ── Badge ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .18rem .55rem;
  border-radius: 20px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(148,163,184,.1);
  color: #CBD5E1;
}

.badge-success { background: rgba(52,211,153,.12);  color: #6EE7B7; border-color: rgba(52,211,153,.35); }
.badge-warning { background: rgba(251,191,36,.12);  color: #FCD34D; border-color: rgba(251,191,36,.35); }
.badge-danger  { background: rgba(248,113,113,.12); color: #FCA5A5; border-color: rgba(248,113,113,.35); }
.badge-info    { background: rgba(56,189,248,.12);  color: #7DD3FC; border-color: rgba(56,189,248,.35); }
.badge-pending { background: rgba(148,163,184,.12); color: #CBD5E1; border-color: rgba(148,163,184,.3); }
.badge-violet  { background: rgba(129,140,248,.14); color: #C4B5FD; border-color: rgba(129,140,248,.3); }

/* ── 提示框 ─────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
  border-left-width: 3px;
  animation: slideDown .25s ease;
  backdrop-filter: blur(4px);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-success { background: rgba(52,211,153,.08);  color: #A7F3D0; border-color: rgba(52,211,153,.35); border-left-color: var(--success); }
.alert-error,
.alert-danger  { background: rgba(248,113,113,.08); color: #FECACA; border-color: rgba(248,113,113,.35); border-left-color: var(--danger); }
.alert-info    { background: rgba(56,189,248,.08);  color: #BAE6FD; border-color: rgba(56,189,248,.35); border-left-color: var(--tech-cyan); }
.alert-warning { background: rgba(251,191,36,.08);  color: #FDE68A; border-color: rgba(251,191,36,.35); border-left-color: var(--warning); }

/* 说明/提示面板（替代浅色 #f8fafc 等内联背景） */
.tech-note {
  background: rgba(56,189,248,.05) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid rgba(56,189,248,.55) !important;
  color: var(--text-sub);
}
.tech-note-warn {
  background: rgba(251,191,36,.06) !important;
  border: 1px solid rgba(251,191,36,.28) !important;
  border-left: 3px solid var(--warning) !important;
}
.tech-inset {
  background: var(--surface-inset) !important;
  border: 1px solid var(--border-soft);
  color: var(--text);
}

/* ── 分割线 ─────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); margin: 1.5rem 0; }

/* ── 登录页 ─────────────────────────────────────── */
.login-page {
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(800px 420px at 110% 110%, rgba(129,140,248,.12), transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}

/* 精细网格背景 */
.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* 中心光晕 */
.login-page::after {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 70%);
  pointer-events: none;
}

.login-box {
  background: var(--tech-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  width: 380px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; z-index: 1;
  animation: fadeUp .4s ease;
}
.login-box::before, .login-box::after {
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--tech-cyan); border-style: solid; opacity: .8;
}
.login-box::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; }
.login-box::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center; margin-bottom: 1.75rem;
}

.login-logo-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(56,189,248,.1);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 20px rgba(56,189,248,.25);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}

.login-logo-mark svg { color: var(--tech-cyan); filter: drop-shadow(0 0 4px rgba(56,189,248,.7)); }

.login-box h2 {
  justify-content: center; text-align: center; margin-bottom: 1.75rem;
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-strong);
}

.login-box h2::before, .login-box h2::after { display: none; }

.login-box .form-group label { color: #CBD5E1; }

.login-box .form-control:focus {
  border-color: var(--tech-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.2);
}

.login-box .text-muted { color: var(--text-muted); }
.login-foot { text-align: center; margin-top: 1.5rem; font-size: .72rem; color: var(--text-muted); letter-spacing: .12em; }

/* ── 重启遮罩 / 弹窗 ─────────────────────────────── */
.tech-mask {
  background: rgba(2,6,23,.72) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tech-dialog {
  position: relative;
  background: rgba(15,23,42,.96);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(56,189,248,.12);
}
.tech-dialog::before, .tech-dialog::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--tech-cyan); border-style: solid; opacity: .8;
}
.tech-dialog::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 12px; }
.tech-dialog::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 12px; }

.btn-restart { color: #FCA5A5 !important; border-color: rgba(248,113,113,.4) !important; }
.btn-restart:hover { background: rgba(248,113,113,.12) !important; color: #FECACA !important; border-color: var(--danger) !important; box-shadow: 0 0 12px rgba(248,113,113,.25); }

/* ── 工具类 ─────────────────────────────────────── */
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sub     { color: var(--text-sub); }
.text-accent  { color: var(--accent); }
.text-violet  { color: #C4B5FD; }
.text-dim     { color: var(--text-muted); }
.mono         { font-family: var(--mono); }
.fw-600       { font-weight: 600; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── 空状态 ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-sub);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .45; }
.empty-state p { font-size: .875rem; }
.empty-cell { text-align: center; color: var(--text-muted) !important; padding: 2rem 1rem !important; letter-spacing: .04em; }

/* ── 页面头部 ────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
}
.page-header h2 { margin-bottom: 0; }
.page-header h2::after { display: none; }

/* ── 状态点 ─────────────────────────────────────── */
.dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: .35rem; vertical-align: middle;
}
.dot-success { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot-warning { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.dot-danger  { background: var(--danger);  box-shadow: 0 0 6px var(--danger); }

/* ── 表单操作区 ──────────────────────────────────── */
.form-actions {
  display: flex; align-items: center; gap: .875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ── 标签 ───────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: .175rem .5rem;
  background: var(--accent-light);
  color: #7DD3FC;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 4px;
  font-size: .75rem; font-weight: 600;
}

/* ── 汉堡菜单 ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 34px; height: 34px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent; padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: #94A3B8;
  border-radius: 2px;
  transition: all .22s ease;
}

.hamburger:hover { border-color: var(--border); }
.hamburger:hover span { background: var(--tech-cyan); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 侧边栏遮罩 ──────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(2,6,23,.7);
  backdrop-filter: blur(2px);
  z-index: 98;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-overlay.active { display: block; }

/* ── HTML 编辑工具栏 ─────────────────────────────── */
.html-toolbar {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 5px 8px;
  background: rgba(56,189,248,.06);
  border: 1px solid rgba(148,163,184,.25);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.html-toolbar button {
  padding: 2px 8px;
  font-size: .75rem;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.8);
  border-radius: 4px;
  cursor: pointer;
  color: #CBD5E1;
  line-height: 1.6;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.html-toolbar button:hover { background: rgba(56,189,248,.14); border-color: var(--border-strong); color: var(--text-strong); }
.html-toolbar button code { border: none; background: transparent; padding: 0; }
.html-toolbar .tb-sep { width: 1px; background: rgba(148,163,184,.25); margin: 2px 3px; }
.html-editor-wrap .html-editor { border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; border-top: none !important; }

@keyframes tech-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56,189,248,.15), 0 0 10px rgba(56,189,248,.9); }
  50% { box-shadow: 0 0 0 5px rgba(56,189,248,.05), 0 0 16px rgba(56,189,248,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand-dot { animation: none; }
}

/* ── 响应式 ─────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 99;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { transform: translateX(0); }

  .content { margin-left: 0; padding: 1rem; }
  .navbar { padding-left: 1rem; }
  .hamburger { display: flex; }

  .nav-brand { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
  .nav-right { gap: .5rem; }
  .nav-right .nav-user { display: none; }

  .login-box { width: calc(100vw - 2rem); padding: 2rem 1.5rem; }

  .table-wrap, .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .form-row { flex-direction: column; gap: 0; }
}
