:root {
  --bg: #08090d;
  --bg-panel: rgba(19, 22, 31, 0.82);
  --bg-card: rgba(23, 26, 37, 0.88);
  --bg-elev: rgba(33, 37, 52, 0.85);
  --bg-input: #10131c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #dfc186;
  --accent-light: #f3e0b5;
  --accent-deep: #b88c44;
  --text: #f6f7fb;
  --text-sub: #a6adbe;
  --text-muted: #6c7385;
  --danger: #f06565;
  --success: #34c98e;
  --blue: #5fa0ff;
  --purple: #a78bfa;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 18% -8%, rgba(223, 193, 134, 0.11), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(95, 160, 255, 0.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.hidden { display: none !important; }
.muted { color: var(--text-sub); }
.small { font-size: 12px; }
.full { width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.uppercase { text-transform: uppercase; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }

/* ---------- 表单控件 ---------- */
input, select, textarea {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
input:hover, select:hover, textarea:hover {
  border-color: var(--border-strong);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(223, 193, 134, 0.72);
  box-shadow: 0 0 0 3px rgba(223, 193, 134, 0.14);
}
textarea { resize: vertical; line-height: 1.55; }
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.field { display: flex; flex-direction: column; }

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-with-icon input { padding-left: 36px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-elev);
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 12px 18px; font-size: 14px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 52%, var(--accent-deep) 100%);
  color: #140f07;
  border: none;
  box-shadow: 0 6px 20px rgba(223, 193, 134, 0.24);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(223, 193, 134, 0.34); }
.btn-gold-outline {
  background: rgba(223, 193, 134, 0.08);
  border-color: rgba(223, 193, 134, 0.36);
  color: var(--accent-light);
}
.btn-gold-outline:hover { background: rgba(223, 193, 134, 0.16); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-sub); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn-danger {
  background: rgba(240, 101, 101, 0.11);
  color: #ff8a8a;
  border-color: rgba(240, 101, 101, 0.28);
}
.btn-danger:hover { background: rgba(240, 101, 101, 0.2); border-color: rgba(240, 101, 101, 0.55); }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 9px; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: var(--border-strong); }

/* ---------- 登录页 ---------- */
.login-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
}
.orb-1 { width: 380px; height: 380px; background: rgba(223, 193, 134, 0.22); top: -90px; left: 15%; }
.orb-2 { width: 340px; height: 340px; background: rgba(95, 160, 255, 0.18); bottom: -80px; right: 16%; }

.login-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: rgba(20, 23, 33, 0.82);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(223, 193, 134, 0.22);
  border-radius: 24px;
  padding: 34px 32px 26px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(243, 224, 181, 0.22), rgba(184, 140, 68, 0.12));
  border: 1px solid rgba(223, 193, 134, 0.4);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo svg { width: 26px; height: 26px; }
.login-card h1 { margin: 18px 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.login-desc { margin: 0; font-size: 13px; color: var(--text-sub); }
.login-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.error-text { color: var(--danger); font-size: 12px; min-height: 18px; text-align: center; }
.login-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---------- 工作台框架 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: rgba(14, 16, 24, 0.9);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(243, 224, 181, 0.25), rgba(184, 140, 68, 0.14));
  border: 1px solid rgba(223, 193, 134, 0.4);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 12px 6px;
  text-transform: uppercase;
}
.nav-list { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(223, 193, 134, 0.16), rgba(223, 193, 134, 0.05));
  border-color: rgba(223, 193, 134, 0.28);
  color: var(--accent-light);
  font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--accent); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  color: #161108;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ---------- 主内容区 ---------- */
.main-content { flex: 1; padding: 26px 32px 52px; max-width: 1400px; width: 100%; }
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.breadcrumb span { color: var(--accent); }
.topbar h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

.sn-tester {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-panel);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.sn-tester .input-with-icon input { width: 220px; border: none; background: transparent; padding-top: 7px; padding-bottom: 7px; }
.sn-tester .input-with-icon input:focus { box-shadow: none; }
.sn-tester select { width: 112px; padding: 7px 10px; background: var(--bg-input); }

/* ---------- KPI 概览条 ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon.gold { background: rgba(223, 193, 134, 0.14); color: var(--accent-light); }
.kpi-icon.blue { background: rgba(95, 160, 255, 0.14); color: var(--blue); }
.kpi-icon.green { background: rgba(52, 201, 142, 0.14); color: var(--success); }
.kpi-icon.purple { background: rgba(167, 139, 250, 0.14); color: var(--purple); }
.kpi-label { font-size: 12px; color: var(--text-sub); }
.kpi-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }

/* ---------- 工具条与通用卡片 ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-wide { flex: 1; max-width: 380px; }

.card, .table-card, .subcard {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-section-title { font-size: 15px; font-weight: 600; color: var(--text); }
.subcard { background: rgba(255, 255, 255, 0.02); box-shadow: none; padding: 16px; border-radius: 15px; }
.subcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.subcard-head h4 { margin: 0; font-size: 14px; color: var(--accent-light); }
.subcard-head select { max-width: 320px; }

/* ---------- SN 方案卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.sn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.sn-card:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 193, 134, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}
.sn-card-banner {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(223, 193, 134, 0.14), rgba(22, 26, 38, 0.4));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.sn-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}
.sn-model { font-size: 13px; color: var(--text); font-weight: 500; margin-top: 2px; }
.sn-card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  font-size: 11px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(223, 193, 134, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(223, 193, 134, 0.25);
}
.pill.green { background: rgba(52, 201, 142, 0.14); color: var(--success); border-color: rgba(52, 201, 142, 0.28); }
.sn-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ---------- 视频素材库 ---------- */
.upload-box {
  background: linear-gradient(135deg, rgba(223, 193, 134, 0.06), rgba(23, 26, 37, 0.85));
  border: 1.5px dashed rgba(223, 193, 134, 0.36);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.18s ease;
}
.upload-box.dragover {
  border-color: var(--accent-light);
  background: rgba(223, 193, 134, 0.12);
  transform: scale(1.005);
}
.upload-hero { display: flex; align-items: center; gap: 14px; }
.upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(223, 193, 134, 0.14);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload-icon svg { width: 20px; height: 20px; }
.upload-title { font-size: 15px; font-weight: 600; }
.upload-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-actions input[type="text"] { max-width: 340px; }

.progress-wrap { display: flex; align-items: center; gap: 12px; }
.progress-track { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-light)); width: 0%; transition: width 0.15s; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.media-card:hover { transform: translateY(-2px); border-color: rgba(223, 193, 134, 0.34); }
.media-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; display: block; }
.media-info { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.media-name { font-weight: 600; font-size: 14px; word-break: break-all; }

/* ---------- 表格与空状态 ---------- */
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-inline input, .form-inline select { flex: 1; min-width: 150px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.checkbox-label input { width: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:last-child td { border-bottom: none; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  color: var(--text-sub);
}
.empty-state strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }

/* ---------- 12 语种切换栏 & 组件编辑器 ---------- */
.lang-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.lang-bar-label { font-size: 12px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
.lang-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-pill {
  position: relative;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-sub);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.lang-pill:hover { border-color: var(--border-strong); color: var(--text); }
.lang-pill.has-content::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  margin-left: 6px;
  vertical-align: middle;
}
.lang-pill.active {
  background: rgba(223, 193, 134, 0.18);
  border-color: var(--accent);
  color: var(--accent-light);
  font-weight: 600;
}

.comp-list { display: flex; flex-direction: column; gap: 12px; }
.comp-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(16, 19, 28, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.comp-head-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 9, 0.74); backdrop-filter: blur(6px); }
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #141722;
  border: 1px solid rgba(223, 193, 134, 0.28);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-dialog.large { max-width: 980px; }
.modal-header, .modal-footer {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.modal-footer { border-bottom: none; border-top: 1px solid var(--border); justify-content: flex-end; gap: 10px; }
.modal-header h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-dialog.modal-auth {
  max-width: 430px;
  background:
    radial-gradient(320px 160px at 15% 0%, rgba(223, 193, 134, 0.14), transparent 70%),
    rgba(20, 23, 33, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(223, 193, 134, 0.28);
  border-radius: 22px;
  overflow: hidden;
  animation: modalPop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-auth-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-auth-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(243, 224, 181, 0.22), rgba(184, 140, 68, 0.12));
  border: 1px solid rgba(223, 193, 134, 0.4);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-auth-icon svg { width: 18px; height: 18px; }
.modal-auth-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 12px;
}
.modal-auth-footer {
  padding: 14px 22px 18px;
  background: rgba(255, 255, 255, 0.015);
}
.code-box {
  background: #0b0d14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent-light);
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  background: rgba(20, 23, 34, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 193, 134, 0.55);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 960px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); }
  .main-content { padding: 18px 16px 40px; }
  .grid-2, .grid-4, .kpi-strip { grid-template-columns: 1fr; }
}
