/* 广告投放统计系统 · 界面样式 */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f8;
  --border: #e6eaf1;
  --border-strong: #d8dfeb;
  --text: #172033;
  --text-2: #4a5770;
  --muted: #8792a6;
  --primary: #3b5bfd;
  --primary-2: #6d4bf6;
  --primary-soft: #edf1ff;
  --green: #12a678;
  --green-soft: #e7f8f1;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #d98a0b;
  --amber-soft: #fff5e2;
  --purple: #7c4dff;
  --purple-soft: #f1ecff;
  --shadow: 0 1px 2px rgba(18, 32, 62, .04), 0 8px 28px rgba(18, 32, 62, .05);
  --shadow-lg: 0 20px 60px rgba(18, 32, 62, .16);
  --radius: 14px;
  --sidebar-w: 232px;
}
html[data-theme="dark"] {
  --bg: #0e1320;
  --surface: #161d2d;
  --surface-2: #1b2436;
  --surface-3: #222d42;
  --border: #28344a;
  --border-strong: #34425c;
  --text: #e9eef9;
  --text-2: #b6c1d6;
  --muted: #7f8da5;
  --primary: #6b83ff;
  --primary-2: #9a7bff;
  --primary-soft: #212b52;
  --green: #35c99a;
  --green-soft: #16372e;
  --red: #ff6b70;
  --red-soft: #3a2027;
  --amber: #f0b34a;
  --amber-soft: #3a2e18;
  --purple: #a98bff;
  --purple-soft: #2c2447;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
.num, .stat-value, .summary-total, .amount-input input { font-variant-numeric: tabular-nums; }

/* ---------- 布局 ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 24px 22px 22px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 16px rgba(59, 91, 253, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 15.5px; letter-spacing: .3px; }
.brand-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .6px; }
.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-label { padding: 18px 10px 8px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-size: 13.5px; margin-bottom: 3px; transition: .18s;
}
.nav-item .ni { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar-foot { padding: 16px 18px 20px; border-top: 1px solid var(--border); }
.role-chip { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; background: var(--green-soft); color: var(--green); margin-bottom: 12px; }
.role-chip.role-admin { background: var(--purple-soft); color: var(--purple); }
.sidebar-user { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 13px; font-weight: 700; flex: 0 0 auto;
}
.avatar.sm { width: 25px; height: 25px; border-radius: 8px; font-size: 11.5px; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 68px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.topbar-title p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.today { font-size: 12.5px; color: var(--muted); }
.icon-btn {
  width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 9px; cursor: pointer; font-size: 16px; line-height: 1; transition: .18s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--primary); border-color: var(--border-strong); }
.menu-btn { display: none; }
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--border);
  border-radius: 30px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2);
}
.user-pill:hover { border-color: var(--primary); color: var(--primary); }
.content { padding: 26px 28px 40px; flex: 1; }
.site-foot { padding: 0 28px 26px; color: var(--muted); font-size: 11.5px; text-align: right; }

/* ---------- 通用组件 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2 { font-size: 15px; font-weight: 650; }
.card-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px;
  border-radius: 9px; border: 1px solid transparent; font-size: 13px; font-weight: 550; cursor: pointer;
  transition: .18s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 5px 14px rgba(59, 91, 253, .22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59, 91, 253, .3); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-block { width: 100%; padding: 11px 16px; }
.alert { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 22%, transparent); }
.alert-error { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 22%, transparent); }
.alert-warning { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 22%, transparent); }
.muted { color: var(--muted); font-size: 13px; }
.no-data, .zero { color: var(--muted); opacity: .65; }
code.code-tag { font-size: 12px; background: var(--surface-3); padding: 3px 8px; border-radius: 6px; color: var(--text-2); }
.badge { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 550; }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-gray { background: var(--surface-3); color: var(--muted); }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card.accent { background: linear-gradient(130deg, #3b5bfd, #6d4bf6); border-color: transparent; color: #fff; }
.stat-card.accent::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -55px; top: -70px; background: rgba(255, 255, 255, .09); }
.stat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.stat-card.accent .stat-top { color: rgba(255, 255, 255, .82); }
.stat-icon { font-size: 15px; opacity: .65; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 10px 0 6px; line-height: 1.2; }
.stat-value small { font-size: 13px; font-weight: 500; opacity: .7; }
.stat-foot { font-size: 11.5px; color: var(--muted); }
.stat-card.accent .stat-foot { color: rgba(255, 255, 255, .78); }

/* ---------- 筛选 ---------- */
.filter-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 18px 22px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--text-2); font-weight: 550; }
.field > span i { color: var(--red); font-style: normal; }
.field input, .field select {
  height: 38px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); color: var(--text); font-size: 13px; outline: none; transition: .18s; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input[readonly], .field input:disabled, .field select:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.field.compact { min-width: 158px; }
.field-help { font-size: 11px; color: var(--muted); }
.filter-actions { display: flex; gap: 9px; }
.quick-row { display: flex; align-items: center; gap: 8px; padding: 4px 22px 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.quick-row a { padding: 3px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.quick-row a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 1180px; }
.data-table th, .data-table td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 11.5px; position: sticky; top: 0; z-index: 2; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; }
.data-table .col-total { color: var(--primary); font-weight: 650; background: color-mix(in srgb, var(--primary) 4%, transparent); }
.data-table thead .col-total { color: var(--primary); }
.col-sticky { position: sticky; left: 0; background: var(--surface); z-index: 3; }
.data-table thead .col-sticky { background: var(--surface-2); z-index: 4; }
.data-table tbody tr:hover .col-sticky { background: var(--surface-2); }
.date-main { display: block; font-weight: 600; font-size: 12.5px; }
.date-sub { display: block; font-size: 10.5px; color: var(--muted); }
.user-tag { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--surface-3); font-size: 12px; font-weight: 550; }
.data-table tfoot td { background: var(--surface-2); font-weight: 650; border-top: 1px solid var(--border-strong); position: sticky; bottom: 0; }
.data-table tfoot .col-sticky { background: var(--surface-2); }
.col-shot { min-width: 82px; }
.shots { display: flex; align-items: center; gap: 4px; position: relative; }
.shot { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border); cursor: zoom-in; transition: .18s; }
.shot:hover { transform: scale(1.12); border-color: var(--primary); position: relative; z-index: 2; }
.shot-more { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.col-op { min-width: 104px; }
.link-btn { background: none; border: none; padding: 0 5px 0 0; color: var(--primary); font-size: 12.5px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }
.inline-form { display: inline; }
.user-table { min-width: 900px; }
.user-cell { display: flex; align-items: center; gap: 9px; }
.muted-cell { color: var(--muted); font-size: 12px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 30px; opacity: .4; margin-bottom: 10px; }
.empty strong { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.empty p { font-size: 12px; }
.pager { display: flex; gap: 6px; padding: 16px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.page-btn { min-width: 32px; height: 32px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- 渠道分布 ---------- */
.channel-list { padding: 8px 22px 20px; }
.channel-row { display: grid; grid-template-columns: 88px 1fr 130px 52px; gap: 14px; align-items: center; padding: 7px 0; font-size: 12.5px; }
.channel-name { color: var(--text-2); }
.channel-bar { height: 8px; background: var(--surface-3); border-radius: 20px; overflow: hidden; }
.channel-bar i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.channel-val { text-align: right; font-variant-numeric: tabular-nums; }
.channel-pct { text-align: right; color: var(--muted); font-size: 11.5px; }

/* ---------- 录入表单 ---------- */
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 20px; align-items: start; }
.entry-main .card { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field-full { grid-column: 1 / -1; }
.pad-grid { padding: 20px 22px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px 22px 24px; }
.amount-field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.amount-input { position: relative; }
.amount-input i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 13px; }
.amount-input input { width: 100%; height: 42px; padding: 0 12px 0 28px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; outline: none; }
.amount-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 130px;
  border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; text-align: center; transition: .18s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone input { display: none; }
.upload-icon { font-size: 22px; color: var(--primary); }
.upload-zone strong { font-size: 13px; font-weight: 550; }
.upload-zone em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.preview-grid, .old-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.preview-grid { margin-top: 12px; }
.preview-grid:empty, .old-shots:empty { display: none; }
.preview-grid img, .old-shots img { width: 100%; height: 76px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }
.old-shots { margin-bottom: 6px; }
.shot-item { position: relative; display: block; }
.shot-check { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); margin-top: 4px; cursor: pointer; }
.summary-card { position: sticky; top: 88px; }
.summary-total { font-size: 30px; font-weight: 700; padding: 22px 22px 8px; color: var(--primary); letter-spacing: -.5px; }
.summary-list { padding: 4px 22px 10px; }
.summary-list div { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); padding: 3px 0; }
.summary-list div span:last-child { font-variant-numeric: tabular-nums; }
.summary-tip { border-top: 1px solid var(--border); padding: 13px 22px 17px; font-size: 11.5px; color: var(--muted); }
.entry-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 模态框 ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(10, 16, 30, .48); backdrop-filter: blur(2px); }
.modal-box { position: relative; width: min(520px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 22px 24px 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h2 { font-size: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.section-label { font-size: 12px; font-weight: 650; color: var(--text-2); padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8, 12, 22, .92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-counter { position: absolute; bottom: 22px; color: rgba(255,255,255,.7); font-size: 12px; }

/* ---------- 登录页 ---------- */
.auth-body { min-height: 100vh; background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 100vh; }
.auth-panel { padding: 56px clamp(34px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.auth-panel h1 { font-size: 30px; letter-spacing: -.5px; }
.auth-sub { color: var(--muted); margin: 8px 0 30px; font-size: 13.5px; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-form .field input { height: 44px; }
.auth-form .btn { margin-top: 8px; height: 44px; font-size: 14px; }
.auth-tip { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }
.auth-visual { position: relative; overflow: hidden; background: linear-gradient(145deg, #283fc9, #6d4bf6 62%, #a45cf7); color: #fff; display: grid; place-items: center; padding: 50px; }
.visual-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); top: -180px; right: -160px; }
.visual-inner { position: relative; max-width: 420px; width: 100%; }
.visual-tag { font-size: 11px; letter-spacing: 3px; opacity: .75; margin-bottom: 22px; }
.visual-inner h2 { font-size: 38px; line-height: 1.35; letter-spacing: -1px; }
.visual-inner p { opacity: .8; font-size: 14px; margin-top: 16px; line-height: 1.9; }
.visual-cards { display: flex; gap: 14px; margin-top: 38px; }
.vcard { flex: 1; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(6px); }
.vcard span { font-size: 11.5px; opacity: .8; display: block; }
.vcard strong { font-size: 21px; display: block; margin: 6px 0 2px; }
.vcard em { font-size: 11px; opacity: .75; font-style: normal; }
.visual-bars { display: flex; align-items: flex-end; gap: 9px; height: 96px; margin-top: 42px; }
.visual-bars i { flex: 1; background: rgba(255,255,255,.34); border-radius: 5px 5px 0 0; display: block; }

/* ---------- 安装页 ---------- */
.install-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.install-wrap { width: min(560px, 100%); }
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px 36px; }
.install-title { font-size: 24px; margin-bottom: 8px; }
.install-card .form-grid { margin-top: 16px; }
.install-card .btn-block { margin-top: 24px; }
.install-note { font-size: 11.5px; color: var(--muted); margin-top: 20px; line-height: 1.8; }

/* ---------- 设计预览页 ---------- */
.preview-bar { background: linear-gradient(90deg, #3b5bfd, #6d4bf6); color: #fff; padding: 12px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.preview-bar strong { font-size: 14px; }
.preview-bar .pv-tabs { display: flex; gap: 8px; margin-left: auto; }
.preview-bar .pv-tab { padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; cursor: pointer; font-size: 12.5px; }
.preview-bar .pv-tab.active { background: #fff; color: #3b5bfd; border-color: #fff; }
.preview-view[hidden] { display: none; }
.preview-shot { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: linear-gradient(135deg, #dbe3ff, #b9c8ff); border: 1px solid var(--border); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .22s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-grid; place-items: center; }
  .content { padding: 20px 16px 32px; }
  .topbar { padding: 0 16px; }
  .today { display: none; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid, .amount-grid { grid-template-columns: 1fr; }
  .card-head { padding: 16px; }
  .filter-form { padding: 16px; }
  .quick-row { padding: 4px 16px 16px; }
  .channel-row { grid-template-columns: 72px 1fr 96px; }
  .channel-pct { display: none; }
  .install-card { padding: 24px 20px; }
}
