/* ============================================================
   设计 Token(现代深色 SaaS)
   ============================================================ */
:root {
  --bg-0: #070b14;          /* 最底背景 */
  --bg-1: #0d1322;          /* 页面背景 */
  --bg-2: #121a2e;          /* 卡片/面板 */
  --bg-3: #1a2540;          /* 表头/hover */
  --bg-glass: rgba(18, 26, 46, 0.72);

  --border-1: rgba(99, 130, 190, 0.18);
  --border-2: rgba(99, 130, 190, 0.32);
  --border-accent: rgba(0, 224, 255, 0.45);

  --text-1: #e6edf7;        /* 主标题 */
  --text-2: #b6c2db;        /* 正文 */
  --text-3: #8a9ab8;        /* 次要 */
  --text-4: #5d6c8a;        /* 弱化 */

  --brand: #4fc3ff;
  --brand-2: #00e0ff;
  --brand-3: #2f7fff;
  --accent-green: #2ecc71;
  --accent-yellow: #f1c40f;
  --accent-orange: #e67e22;
  --accent-red: #e74c3c;
  --accent-purple: #9b59b6;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow: 0 6px 20px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 0 1px rgba(0,224,255,0.18), 0 8px 28px rgba(0,180,255,0.12);

  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;

  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================
   通用
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,150,200,0.22); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,150,200,0.4); }

/* 通用顶栏(知识库/内容中心用) */
.top-nav, .content-header, .kb-shell > .top-nav {
  display: flex; gap: var(--gap-md); align-items: center;
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-1);
  margin-bottom: var(--gap-lg);
}
.top-nav .brand {
  font-size: 18px; font-weight: 600; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--brand), #fff, var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-right: auto;
}
.top-nav a {
  color: var(--text-3); font-size: 13px; padding: 6px 10px;
  border-radius: var(--radius-sm); transition: all .15s;
}
.top-nav a:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }
.top-nav a.active { color: var(--brand-2); background: rgba(0,224,255,0.08); }

/* ============================================================
   大屏
   ============================================================ */
.dashboard-body {
  overflow: hidden;
  color: var(--text-2);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47,127,255,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0,224,255,0.06), transparent 60%),
    var(--bg-0);
}
#app {
  display: grid;
  grid-template-rows: 64px 1fr;
  height: 100vh;
  padding: var(--gap);
  gap: var(--gap);
}
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-md);
  background: linear-gradient(180deg, rgba(47,127,255,0.10), transparent);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.header h1 {
  flex: 1; text-align: center; font-size: 22px; font-weight: 600;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--brand), #fff, var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header .side { font-size: 12px; color: var(--text-3); min-width: 220px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header .side.right { justify-content: flex-end; }
.header .side a {
  color: var(--text-3); padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all .15s;
}
.header .side a:hover { color: var(--brand-2); background: rgba(0,224,255,0.08); }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green); margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  overflow: hidden;
  min-height: 0;
}
.panel {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  padding: var(--gap) var(--gap-md);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 0; min-width: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.panel:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--brand-2); border-style: solid; pointer-events: none;
  opacity: .7;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: var(--radius); }
.panel::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--radius); }
.panel h2 {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  padding-bottom: var(--gap-sm); margin-bottom: var(--gap-sm);
  border-bottom: 1px solid var(--border-1);
  letter-spacing: 1px;
  display: flex; align-items: center;
}
.panel h2::before { content: ""; width: 3px; height: 14px; background: var(--brand-2); border-radius: 2px; margin-right: 8px; }
.count-badge {
  margin-left: auto; padding: 1px 8px; min-width: 22px; text-align: center;
  background: rgba(0,224,255,0.12); color: var(--brand-2);
  border: 1px solid rgba(0,224,255,0.3); border-radius: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0;
}
.chart { flex: 1; min-height: 0; width: 100%; min-width: 0; }

.panel.crawl .kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}
.kpi {
  text-align: center;
  background: linear-gradient(180deg, rgba(47,127,255,0.14), rgba(47,127,255,0.02));
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: var(--gap-sm) var(--gap-xs);
  transition: transform .15s, border-color .15s;
}
.kpi:hover { transform: translateY(-1px); border-color: var(--border-accent); }
.kpi .v { font-size: 22px; font-weight: 700; color: var(--brand-2); text-shadow: 0 0 12px rgba(0,224,255,0.4); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.ticker-list { flex: 1; overflow: hidden; }
.ticker-list ul { list-style: none; }
.ticker-list li {
  padding: 7px var(--gap-xs);
  border-bottom: 1px solid var(--border-1);
  font-size: 12px; display: flex; gap: var(--gap-sm); align-items: center;
  transition: background .15s;
}
.ticker-list li:last-child { border-bottom: none; }
.tag { padding: 2px 7px; border-radius: var(--radius-sm); font-size: 10px; flex-shrink: 0; font-weight: 500; }
.tag.pos { background: rgba(46,204,113,0.15); color: var(--accent-green); border: 1px solid rgba(46,204,113,0.4); }
.tag.neg { background: rgba(231,76,60,0.15);  color: var(--accent-red);   border: 1px solid rgba(231,76,60,0.4); }
.tag.neu { background: rgba(241,196,15,0.15); color: var(--accent-yellow); border: 1px solid rgba(241,196,15,0.4); }
.ticker-list .src { color: var(--text-3); min-width: 60px; font-size: 11px; }
.ticker-list .ttl { flex: 1; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-list .tm  { color: var(--text-4); font-size: 11px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.project-list { flex: 1; overflow: auto; padding-right: 4px; }
.project-item { margin-bottom: var(--gap-sm); font-size: 12px; padding: var(--gap-sm); border: 1px solid var(--border-1); border-radius: var(--radius-sm); transition: all .15s; }
.project-item:hover { border-color: var(--border-2); background: rgba(255,255,255,0.02); }
.project-item .top { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.project-item .name { color: var(--text-1); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.project-item .pct { color: var(--brand-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.bar-inner {
  height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 8px rgba(0,224,255,0.5);
  border-radius: 3px; transition: width 1s ease;
}
.project-item .meta { color: var(--text-3); font-size: 11px; margin-top: 5px;
  display: flex; justify-content: space-between; }
.stage-tag { display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 500; }
.stage-1 { background: rgba(46,204,113,0.15); color: var(--accent-green); }
.stage-2 { background: rgba(52,152,219,0.15); color: #3498db; }
.stage-3 { background: rgba(241,196,15,0.15); color: var(--accent-yellow); }
.stage-4 { background: rgba(125,140,160,0.18); color: #bdc3c7; }

/* ============================================================
   登录
   ============================================================ */
.login-body {
  background:
    radial-gradient(ellipse at center, rgba(47,127,255,0.18), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.login-card {
  width: 400px;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(12px);
}
.login-card h1 { font-size: 22px; color: var(--text-1); text-align: center;
  margin-bottom: 4px; letter-spacing: 4px; font-weight: 600;
  background: linear-gradient(90deg, var(--brand), #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-card .sub { text-align: center; color: var(--text-3); font-size: 12px;
  margin-bottom: var(--gap-lg); }
.field { margin-bottom: var(--gap-md); }
.field label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-2);
  color: var(--text-1); border-radius: var(--radius-sm);
  font-size: 14px; outline: none;
  transition: all .15s;
}
.field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0,224,255,0.12); }
.btn {
  width: 100%; padding: 11px;
  background: linear-gradient(90deg, var(--brand-3), var(--brand-2));
  border: none; color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: 4px; cursor: pointer; border-radius: var(--radius-sm);
  transition: all .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,224,255,0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.error-msg { color: var(--accent-red); font-size: 12px; min-height: 18px; margin-top: var(--gap-sm); }
.hint { color: var(--text-4); font-size: 11px; text-align: center; margin-top: var(--gap-md); }

/* ============================================================
   管理后台
   ============================================================ */
.admin-body {
  background: var(--bg-1);
  color: var(--text-2);
  min-height: 100vh;
}
.admin-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-0);
  border-right: 1px solid var(--border-1);
  padding: var(--gap-md) 0;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.sidebar .brand {
  padding: 0 var(--gap-md) var(--gap-md);
  font-size: 15px; font-weight: 600;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-1);
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar .brand::before { content: "◆"; color: var(--brand-2); }
.sidebar nav { padding: var(--gap-sm) var(--gap-xs); }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gap-md); color: var(--text-3);
  font-size: 13px; cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 2px var(--gap-xs);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.04); color: var(--text-1); }
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(0,224,255,0.12), transparent);
  border-left-color: var(--brand-2); color: var(--brand-2);
  font-weight: 500;
}
.admin-main {
  padding: var(--gap-md) var(--gap-lg);
  overflow: auto;
}
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-1);
}
.admin-header h1 { font-size: 20px; color: var(--text-1); font-weight: 600; }
.admin-header .user {
  color: var(--text-3); font-size: 13px;
  display: flex; align-items: center; gap: var(--gap-sm);
}
.admin-header .user a { color: var(--brand-2); cursor: pointer; transition: opacity .15s; }
.admin-header .user a:hover { opacity: .8; }

.toolbar { margin-bottom: var(--gap); display: flex; gap: var(--gap-sm); flex-wrap: wrap; }
.btn-primary, .btn-default, .btn-danger, .btn-warn {
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid;
  transition: all .15s;
}
.btn-primary { background: var(--brand-3); color: #fff; border-color: var(--brand-3); }
.btn-primary:hover { background: #1e6ce8; transform: translateY(-1px); }
.btn-default { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-default:hover { background: var(--bg-3); color: var(--text-1); }
.btn-danger  { background: transparent; color: var(--accent-red); border-color: rgba(231,76,60,0.5); }
.btn-danger:hover  { background: rgba(231,76,60,0.12); }
.btn-warn    { background: var(--accent-orange); color: #fff; border-color: var(--accent-orange); }
.btn-warn:hover { background: #d68910; }

.admin-search {
  flex: 1; min-width: 200px; max-width: 360px;
  padding: 7px 12px; font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-1);
  border-radius: var(--radius-sm); outline: none; transition: all .15s;
}
.admin-search:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0,224,255,0.10); }
.admin-search::placeholder { color: var(--text-4); }
.admin-count { color: var(--text-3); font-size: 12px; align-self: center; margin-left: auto; }

/* 自定义确认弹窗 */
.confirm-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 10, 25, 0.7); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.confirm-mask.show { display: flex; }
.confirm-card {
  width: 360px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: var(--gap-lg); box-shadow: var(--shadow);
}
.confirm-card .msg { color: var(--text-1); font-size: 14px; line-height: 1.7; margin-bottom: var(--gap-md); }
.confirm-card .actions { display: flex; gap: var(--gap-sm); justify-content: flex-end; }

table.data {
  width: 100%; border-collapse: collapse;
  background: var(--bg-2); font-size: 13px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-1);
}
table.data th, table.data td {
  padding: 11px var(--gap-md); border-bottom: 1px solid var(--border-1);
  text-align: left;
}
table.data th { background: var(--bg-3); color: var(--text-1); font-weight: 600; font-size: 12px; letter-spacing: .5px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr { transition: background .12s; }
table.data tr:hover td { background: rgba(255,255,255,0.03); }
.actions { white-space: nowrap; }
.actions a { color: var(--brand-2); margin-right: var(--gap-md); cursor: pointer; font-size: 13px; }
.actions a:hover { text-decoration: underline; }
.actions a.del { color: var(--accent-red); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: var(--gap-lg) var(--gap-lg) var(--gap-md);
  width: 480px; max-width: 92vw; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow);
}
.modal h3 { font-size: 17px; color: var(--text-1); margin-bottom: var(--gap-md); font-weight: 600; }
.modal .field input,
.modal .field select,
.modal .field textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-1); border: 1px solid var(--border-2);
  color: var(--text-1); font-size: 13px; border-radius: var(--radius-sm); outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0,224,255,0.10); }
.modal .field textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.modal .footer {
  margin-top: var(--gap-md); display: flex; justify-content: flex-end; gap: var(--gap-sm);
}
.tag-mini { padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; }
.tag-mini.pos { background: rgba(46,204,113,0.15); color: var(--accent-green); }
.tag-mini.neg { background: rgba(231,76,60,0.15);  color: var(--accent-red); }
.tag-mini.neu { background: rgba(241,196,15,0.15); color: var(--accent-yellow); }
.empty { padding: 60px 0; text-align: center; color: var(--text-4); }
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--bg-3); color: var(--text-1); padding: 10px 20px;
  border-radius: var(--radius-sm); z-index: 200; font-size: 13px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  opacity: 0; transition: all .25s;
  pointer-events: none;
}
.toast.error { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   大屏详情弹窗
   ============================================================ */
.detail-mask {
  position: fixed; inset: 0; background: rgba(2,8,20,0.78);
  display: none; align-items: center; justify-content: center;
  z-index: 500; backdrop-filter: blur(6px);
}
.detail-mask.show { display: flex; }
.detail-card {
  width: 660px; max-width: 92vw; max-height: 84vh;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  color: var(--text-2);
  display: flex; flex-direction: column;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--gap-md) var(--gap-lg); border-bottom: 1px solid var(--border-1);
  font-size: 15px; color: var(--text-1); letter-spacing: 2px; font-weight: 600;
}
.detail-close {
  cursor: pointer; font-size: 22px; color: var(--text-3);
  width: 30px; height: 30px; line-height: 26px; text-align: center;
  border-radius: var(--radius-sm); transition: all .15s;
}
.detail-close:hover { background: rgba(231,76,60,0.18); color: var(--accent-red); }
.detail-body {
  padding: var(--gap-md) var(--gap-lg); overflow: auto; font-size: 13px; line-height: 1.7;
}
.detail-body .row { display: flex; margin-bottom: var(--gap-sm); gap: var(--gap-sm); }
.detail-body .row .k {
  flex: 0 0 92px; color: var(--text-3); font-size: 12px;
}
.detail-body .row .v { flex: 1; color: var(--text-1); word-break: break-all; }
.detail-body .row .v a { color: var(--brand-2); }
.detail-body .row .v a:hover { text-decoration: underline; }
.detail-body .title-big {
  font-size: 17px; color: #fff; margin-bottom: var(--gap-sm); line-height: 1.5; font-weight: 600;
}
.detail-body .summary-block {
  background: rgba(47,127,255,0.06);
  border-left: 2px solid var(--brand-2);
  padding: var(--gap-sm) var(--gap-md); margin-top: var(--gap-sm);
  color: var(--text-2); line-height: 1.7;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.detail-body .bar-big {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 5px; overflow: hidden; margin: 6px 0;
}
.detail-body .bar-big > div {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 12px rgba(0,224,255,0.6);
  transition: width .4s;
}

/* 点击提示 */
.clickable { cursor: pointer; transition: background .15s; }
.ticker-list li.clickable:hover { background: rgba(0,224,255,0.06); }
.project-item.clickable { cursor: pointer; }
.project-item.clickable:hover { border-color: var(--border-accent); background: rgba(0,224,255,0.05); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1280px) {
  .main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .header h1 { font-size: 18px; letter-spacing: 2px; }
  .header .side { min-width: 160px; font-size: 11px; }
}
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 64px 1fr; }
  .sidebar .brand { font-size: 0; }
  .sidebar .brand::before { font-size: 18px; }
  .sidebar nav a { justify-content: center; padding: 12px 8px; font-size: 18px; letter-spacing: 0; }
  .admin-main { padding: var(--gap) var(--gap-md); }
}
@media (max-height: 760px) {
  #app { grid-template-rows: 56px 1fr; }
  .header { padding: 0 var(--gap); }
  .header h1 { font-size: 16px; }
  .panel { padding: var(--gap-sm) var(--gap); }
  .panel h2 { font-size: 12px; }
  .kpi .v { font-size: 18px; }
}
