:root {
  --ink: #0b1220;
  --ink-2: #101828;
  --slate: #344054;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #eaecf0;
  --line-2: #f2f4f7;
  --paper: #f6f7f9;
  --card: #fff;
  --coral: #ff5a2d;
  --coral-2: #ff7a4d;
  --coral-bg: #fff1ec;
  --mint: #12b76a;
  --mint-bright: #2dd4a7;
  --mint-bg: #e9fbf4;
  --amber: #f5a524;
  --amber-bg: #fff7e6;
  --red: #e5484d;
  --red-bg: #fef3f2;
  --violet: #6d5ef8;
  --violet-bg: #f1efff;
  --blue: #2f6bff;
  --blue-bg: #eff4ff;
  --radius: 14px;
  --shadow: 0 1px 2px #10182808, 0 8px 24px #1018280a;
  --shadow-lg: 0 20px 60px #1018281f;
  --sidebar: 248px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
button, input, textarea, select { font-size: 14px; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ───────────────── 布局 ───────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0b1220 0%, #0d1526 60%, #0a101c 100%);
  padding: 22px 14px 16px; color: #fff;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, #ff7a4d, #ff3d0d);
  display: grid; place-items: center; font-weight: 900; font-size: 19px; color: #0b1220;
  box-shadow: 0 8px 18px #ff5a2d40;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 17px; letter-spacing: .5px; }
.brand-text small { color: #ffffff6b; font-size: 10.5px; letter-spacing: 1.5px; margin-top: 2px; }
.nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav-group { margin-top: 14px; }
.nav-title { color: #667085; font-size: 10px; letter-spacing: 2px; padding: 0 12px 7px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0;
  color: #98a2b3; border-radius: 10px; font-size: 13.5px; cursor: pointer;
  transition: background .16s ease, color .16s ease; position: relative;
}
.nav-item svg { flex: 0 0 auto; opacity: .9; }
.nav-item:hover { background: #ffffff0d; color: #e4e7ec; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, #ff5a2d26, #ff5a2d08); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px;
  border-radius: 3px; background: var(--coral);
}
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--coral); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.side-plan {
  margin-top: auto; background: #ffffff0a; border: 1px solid #ffffff14; border-radius: 14px; padding: 13px;
}
.side-plan .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-plan .plan-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.side-plan .plan-days { font-size: 10px; color: #98a2b3; }
.plan-bar { height: 4px; border-radius: 4px; background: #ffffff14; margin: 10px 0 9px; overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--coral), #ffb020); }
.side-plan .plan-quota { display: flex; justify-content: space-between; font-size: 10.5px; color: #98a2b3; }
.side-plan .plan-link { display: block; margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--coral-2); background: #ff5a2d14; border-radius: 8px; padding: 6px; }
.side-user { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 8px 2px; border-top: 1px solid #ffffff0d; }
.side-user .avatar { width: 32px; height: 32px; font-size: 13px; }
.side-user .u-name { font-size: 12.5px; font-weight: 600; color: #f2f4f7; line-height: 1.3; }
.side-user .u-sub { font-size: 10.5px; color: #667085; }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 30px;
  background: #fffffff0; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.crumb-home { color: var(--soft); }
.crumb-sep { color: #d0d5dd; }
#crumbCurrent { color: var(--slate); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger {
  display: flex; align-items: center; gap: 9px; width: 240px; height: 38px; padding: 0 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  color: var(--soft); font-size: 12.5px; cursor: pointer; transition: .16s;
}
.search-trigger:hover { border-color: #d0d5dd; background: #fff; }
.search-trigger .search-icon { width: 14px; height: 14px; border: 1.8px solid #98a2b3; border-radius: 50%; position: relative; }
.search-trigger .search-icon::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 6px; height: 1.8px; background: #98a2b3; transform: rotate(45deg); border-radius: 2px; }
.search-trigger kbd {
  margin-left: auto; font-family: var(--font); font-size: 10px; color: #98a2b3;
  background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--slate); display: grid; place-items: center; cursor: pointer;
  position: relative; transition: .16s;
}
.icon-btn:hover { background: var(--paper); border-color: var(--line); }
.unread-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }
.user-chip {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; height: 40px;
}
.user-chip:hover { border-color: #d0d5dd; box-shadow: var(--shadow); }
.user-chip .avatar { width: 30px; height: 30px; font-size: 12px; }
.user-chip-name { font-size: 12.5px; font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 7px; height: 7px; border-right: 1.6px solid #98a2b3; border-bottom: 1.6px solid #98a2b3; transform: rotate(45deg); margin: -2px 2px 0 2px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ff7a4d, #ff3d0d); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.avatar.mint { background: linear-gradient(135deg, #2dd4a7, #0e9f6e); }
.avatar.ink { background: linear-gradient(135deg, #344054, #0b1220); }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.view { padding: 26px 30px 70px; width: 100%; max-width: 1360px; margin: 0 auto; }

/* ───────────────── 页头 / 通用 ───────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-title { font-size: 25px; font-weight: 800; letter-spacing: -.6px; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 640px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.section-title { font-size: 15px; font-weight: 750; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.section-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.coral { color: var(--coral); }
.mint { color: var(--mint); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* ───────────────── 按钮 ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .16s, background .16s, border-color .16s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--coral-2), #ff4a18); color: #fff; box-shadow: 0 6px 16px #ff5a2d33; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 22px #ff5a2d4d; }
.btn-secondary { background: #fff; border-color: #d0d5dd; color: var(--slate); }
.btn-secondary:hover:not(:disabled) { border-color: #98a2b3; }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover:not(:disabled) { background: var(--paper); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1d2939; }
.btn-danger { background: var(--red); color: #fff; }
.btn-mint { background: var(--mint-bg); color: #067647; border-color: #a6f4c5; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 11.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .plus { font-size: 16px; line-height: 1; margin-top: -1px; }
.link { color: var(--coral); font-weight: 600; cursor: pointer; font-size: 12.5px; }
.link:hover { text-decoration: underline; }
.text-btn { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-btn:hover { color: var(--coral); }

/* ───────────────── 卡片 / 统计 ───────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px #10182805; }
.card.pad { padding: 20px; }
.card-head { padding: 18px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
.card.hover { transition: box-shadow .18s, transform .18s; }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat { padding: 18px; display: flex; flex-direction: column; gap: 5px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 550; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--slate); }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: 0; margin-left: 2px; }
.stat-delta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.up { color: #067647; }
.down { color: #b42318; }
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px 26px;
  background: radial-gradient(1000px 300px at 90% -20%, #ff5a2d33, transparent 60%), linear-gradient(120deg, #0b1220, #131e33 70%, #1b2942);
  color: #fff; display: flex; align-items: center; gap: 24px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -110px; width: 280px; height: 280px;
  border-radius: 50%; border: 1px solid #ffffff14; box-shadow: 0 0 0 40px #ffffff08, 0 0 0 80px #ffffff05;
}
.hero-main { flex: 1; position: relative; z-index: 1; min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 1px; color: #ffd6c7; text-transform: uppercase; margin-bottom: 8px; }
.hero h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 800; }
.hero p { color: #ffffff99; font-size: 12.5px; margin-top: 6px; max-width: 520px; }
.hero-actions { display: flex; gap: 9px; margin-top: 16px; }
.hero-side { position: relative; z-index: 1; display: flex; gap: 10px; }
.hero-metric { background: #ffffff0d; border: 1px solid #ffffff14; border-radius: 12px; padding: 10px 14px; min-width: 96px; }
.hero-metric b { font-size: 20px; display: block; font-variant-numeric: tabular-nums; }
.hero-metric span { font-size: 10.5px; color: #ffffff80; }
.quota-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quota-box { background: var(--paper); border-radius: 12px; padding: 11px 13px; border: 1px solid var(--line-2); }
.quota-box b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.quota-box span { font-size: 11px; color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--coral), #ffb020); transition: width .4s ease; }
.progress.mint i { background: linear-gradient(90deg, #2dd4a7, #12b76a); }

/* ───────────────── pills / 标签 ───────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap;
  background: var(--line-2); color: var(--slate);
}
.pill.mint { background: var(--mint-bg); color: #067647; }
.pill.amber { background: var(--amber-bg); color: #b54708; }
.pill.coral { background: var(--coral-bg); color: #c4320a; }
.pill.red { background: var(--red-bg); color: #b42318; }
.pill.violet { background: var(--violet-bg); color: #4a3aff; }
.pill.blue { background: var(--blue-bg); color: #1d4ed8; }
.pill.gray { background: #f2f4f7; color: #475467; }
.pill.line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 6px; background: linear-gradient(135deg, #6d5ef8, #a78bfa); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  background: #f8f9fb; border: 1px solid var(--line); color: var(--slate); font-size: 11.5px;
}
.tag.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ───────────────── 表格 ───────────────── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 10.5px; letter-spacing: 1px; color: var(--soft);
  font-weight: 650; padding: 11px 14px; background: #fafbfc; border-bottom: 1px solid var(--line);
  white-space: nowrap; text-transform: uppercase;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfcfd; }
.table .t-title { font-weight: 650; color: var(--ink); }
.table .t-sub { color: var(--soft); font-size: 11px; margin-top: 2px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table.compact td { padding: 10px 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
.pager { display: flex; gap: 4px; }
.pager button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; font-size: 12px; }
.pager button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ───────────────── 表单 ───────────────── */
.field { margin-bottom: 14px; }
.label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 650; color: var(--slate); margin-bottom: 6px; }
.label .opt { color: var(--soft); font-weight: 400; font-size: 11px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 11px; background: #fff;
  padding: 0 12px; height: 42px; color: var(--ink); outline: none; transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px #ff5a2d18; }
.input::placeholder, .textarea::placeholder { color: #98a2b3; }
.input.sm { height: 36px; font-size: 12.5px; }
.hint { color: var(--soft); font-size: 11px; line-height: 1.6; margin-top: 5px; }
.error-text { color: var(--red); font-size: 11.5px; margin-top: 5px; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--slate); line-height: 1.6; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--coral); margin-top: 2px; flex: 0 0 auto; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 3px #0003; transition: .2s; }
.switch input:checked + i { background: var(--coral); }
.switch input:checked + i::after { transform: translateX(16px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 7px; font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 600; }
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #10182812; }

/* ───────────────── 空状态 / 骨架 ───────────────── */
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--soft); }
.empty h4 { font-size: 14px; color: var(--slate); margin-bottom: 4px; }
.empty p { font-size: 12px; max-width: 320px; margin: 0 auto 14px; line-height: 1.7; }
.skeleton { background: linear-gradient(90deg, #f2f4f7 25%, #fafbfc 37%, #f2f4f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
.skeleton-line { height: 12px; margin-bottom: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ───────────────── toast / modal / drawer ───────────────── */
.toast-root { position: fixed; z-index: 200; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  min-width: 220px; max-width: 400px; background: #101828; color: #fff; border-radius: 11px;
  padding: 11px 14px; font-size: 12.5px; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: flex-start;
  animation: toastIn .22s ease; pointer-events: auto;
}
.toast.success { background: #054f31; }
.toast.error { background: #7a271a; }
.toast .t-ic { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; background: #0b122066; backdrop-filter: blur(3px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .16s ease;
}
.modal { width: 560px; max-width: 100%; max-height: 88vh; overflow: hidden; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: modalIn .2s ease; }
.modal.wide { width: 820px; }
.modal.narrow { width: 420px; }
.modal-head { padding: 20px 22px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.modal-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.modal-body { padding: 10px 22px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fcfcfd; }
.x-btn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--paper); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.x-btn:hover { background: var(--line); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-backdrop { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { width: 560px; max-width: 100%; background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: -20px 0 60px #10182826; animation: drawerIn .22s ease; }
.drawer.wide { width: 760px; }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.drawer-body { padding: 20px 22px 40px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fcfcfd; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: .5; } to { transform: none; opacity: 1; } }

/* ───────────────── tabs ───────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 0 2px 10px; margin-right: 20px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--coral); }
.tab .count { font-size: 10.5px; color: var(--soft); margin-left: 4px; }

/* ───────────────── 图表 ───────────────── */
.chart-box { width: 100%; }
.chart-legend { display: flex; gap: 16px; align-items: center; font-size: 11px; color: var(--muted); }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.chart-tip { font-size: 10px; fill: var(--soft); }
.bar-row { display: grid; grid-template-columns: 78px 1fr 46px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.bar-track { height: 8px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff7a4d, #ff4a18); }
.bar-row:nth-child(2n) .bar-track i { background: linear-gradient(90deg, #36d7b0, #0e9f6e); }
.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.funnel-label { width: 78px; font-size: 11.5px; color: var(--slate); flex: 0 0 auto; }
.funnel-track { flex: 1; height: 30px; background: var(--paper); border-radius: 7px; overflow: hidden; }
.funnel-track i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a2d, #ffb020); border-radius: 7px; opacity: .9; }
.funnel-val { width: 56px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────── 首页 ───────────────── */
.greeting { font-size: 25px; font-weight: 800; letter-spacing: -.6px; }
.greeting span { color: var(--coral); }
.priority-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.priority-item:last-child { border-bottom: 0; padding-bottom: 0; }
.priority-item .avatar { width: 38px; height: 38px; font-size: 13px; }
.priority-ai { background: #faf9ff; border: 1px solid #ece9ff; border-radius: 10px; padding: 9px 11px; margin-top: 8px; font-size: 12px; color: #4a3aff; line-height: 1.65; }
.priority-ai b { font-size: 10px; letter-spacing: 1px; display: block; margin-bottom: 2px; color: #6d5ef8; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.work-item { border: 1px solid var(--line); border-radius: 12px; padding: 11px; display: flex; gap: 10px; align-items: center; cursor: pointer; transition: .16s; background: #fff; }
.work-item:hover { border-color: #d0d5dd; box-shadow: var(--shadow); }
.work-thumb { width: 42px; height: 42px; border-radius: 9px; background: var(--paper); overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; color: var(--soft); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.schedule-item { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.schedule-item:last-child { border: 0; }
.schedule-time { width: 48px; flex: 0 0 auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.schedule-time b { display: block; color: var(--ink); font-size: 13px; }
.dot-line { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.dot-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.dot-line s { width: 1px; flex: 1; background: var(--line); min-height: 20px; }

/* ───────────────── 创作 / 脚本 ───────────────── */
.script-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: #fff; transition: .16s; }
.script-card:hover { border-color: #d0d5dd; }
.script-card.on { border-color: var(--coral); box-shadow: 0 0 0 3px #ff5a2d12; }
.script-style { font-size: 10.5px; color: var(--coral); font-weight: 700; letter-spacing: 1px; }
.script-title { font-size: 14.5px; font-weight: 750; margin: 5px 0 6px; letter-spacing: -.2px; }
.script-hook { font-size: 12px; color: var(--slate); background: var(--paper); border-radius: 8px; padding: 8px 10px; margin-bottom: 7px; }
.script-body { font-size: 12px; color: var(--muted); line-height: 1.7; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.script-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--soft); }
.step b { width: 20px; height: 20px; border-radius: 50%; background: var(--line-2); color: var(--muted); display: grid; place-items: center; font-size: 10.5px; }
.step.on { color: var(--ink); font-weight: 650; }
.step.on b { background: var(--coral); color: #fff; }
.step.done b { background: var(--mint-bg); color: #067647; }
.step-line { width: 26px; height: 1px; background: var(--line); }
.task-panel { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.task-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.task-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.task-ring b { position: relative; z-index: 1; font-size: 19px; font-variant-numeric: tabular-nums; }
.task-steps { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; color: var(--soft); }
.task-steps .ok { color: #067647; }
.task-steps .doing { color: var(--coral); font-weight: 600; }
.preview-video { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 12; background: #0b1220; max-width: 280px; }
.preview-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-video .play { position: absolute; inset: 0; display: grid; place-items: center; background: #0b122033; }
.preview-video .play span { width: 46px; height: 46px; border-radius: 50%; background: #ffffffdd; color: var(--ink); display: grid; place-items: center; font-size: 16px; padding-left: 3px; }
.preview-video .ai-tag { position: absolute; left: 8px; bottom: 8px; }
.voice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.voice-chip { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; font-size: 11.5px; cursor: pointer; color: var(--slate); }
.voice-chip.on { border-color: var(--coral); background: var(--coral-bg); color: #b93815; }

/* ───────────────── 海报 ───────────────── */
.poster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.poster-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: .18s; }
.poster-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d0d5dd; }
.poster-thumb { aspect-ratio: 3 / 4; background: var(--paper); overflow: hidden; position: relative; }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-thumb .paid-flag { position: absolute; top: 8px; right: 8px; }
.poster-meta { padding: 9px 11px 11px; }
.poster-meta b { font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-meta span { font-size: 10.5px; color: var(--soft); display: flex; justify-content: space-between; margin-top: 3px; }
.editor-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.preview-frame { background: #f2f4f7; border-radius: 14px; padding: 14px; display: grid; place-items: center; min-height: 420px; }
.preview-frame img { max-width: 100%; max-height: 560px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.result-poster { display: flex; gap: 18px; align-items: flex-start; }
.result-poster img { width: 220px; border-radius: 10px; box-shadow: var(--shadow); }
.copy-field { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 11.5px; color: var(--slate); }
.copy-field code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.copy-btn { border: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; height: 26px; padding: 0 8px; font-size: 11px; cursor: pointer; color: var(--slate); }
.copy-btn:hover { border-color: var(--coral); color: var(--coral); }

/* ───────────────── 分发渠道 ───────────────── */
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fff; cursor: pointer; transition: .16s; position: relative; }
.channel-card:hover { border-color: #d0d5dd; box-shadow: var(--shadow); }
.channel-card.disabled { opacity: .65; }
.channel-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.channel-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.channel-name { font-size: 13px; font-weight: 700; }
.channel-desc { font-size: 11.5px; color: var(--muted); line-height: 1.65; min-height: 38px; }
.channel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.channel-req { font-size: 10px; color: var(--soft); margin-top: 7px; border-top: 1px dashed var(--line); padding-top: 7px; line-height: 1.5; }
.asset-copy { background: var(--paper); border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.75; white-space: pre-wrap; color: var(--slate); }
.steps-list { counter-reset: step; }
.steps-list li { list-style: none; counter-increment: step; position: relative; padding-left: 30px; margin-bottom: 9px; font-size: 12px; color: var(--slate); line-height: 1.6; }
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--coral-bg); color: var(--coral); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.note-box { background: var(--amber-bg); border: 1px solid #fedf89; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; color: #93370d; line-height: 1.65; display: flex; gap: 8px; }
.note-box.info { background: var(--blue-bg); border-color: #d1e0ff; color: #1d4ed8; }
.note-box.danger { background: var(--red-bg); border-color: #fecdca; color: #b42318; }
.note-box.ok { background: var(--mint-bg); border-color: #a6f4c5; color: #067647; }

/* ───────────────── 日历 ───────────────── */
.calendar { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: #fafbfc; border-bottom: 1px solid var(--line); }
.cal-head span { padding: 9px; text-align: center; font-size: 10.5px; color: var(--soft); font-weight: 650; letter-spacing: 1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day { min-height: 96px; padding: 7px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .14s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: #fcfcfd; }
.cal-day.out { background: #fbfbfc; color: var(--soft); }
.cal-day .dnum { font-size: 11.5px; color: var(--slate); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.cal-day.today .dnum { background: var(--ink); color: #fff; font-weight: 700; }
.cal-event { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.5; padding: 2px 5px; border-radius: 4px; background: var(--coral-bg); color: #b93815; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.mint { background: var(--mint-bg); color: #067647; }
.cal-event.gray { background: var(--line-2); color: var(--muted); }

/* ───────────────── 线索 ───────────────── */
.lead-table-name { display: flex; align-items: center; gap: 9px; }
.lead-table-name .avatar { width: 30px; height: 30px; font-size: 11px; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 15px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; border: 2px solid #fff; box-shadow: 0 0 0 1px #d0d5dd; }
.tl-item.hot::before { background: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.tl-item.ok::before { background: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.tl-title { font-size: 12px; color: var(--slate); line-height: 1.55; }
.tl-time { font-size: 10.5px; color: var(--soft); margin-top: 2px; }
.fission-hero { background: radial-gradient(600px 200px at 100% 0%, #ff5a2d2e, transparent 60%), linear-gradient(120deg, #101828, #1d2939); border-radius: 18px; padding: 22px; color: #fff; display: flex; align-items: center; gap: 24px; }
.fission-count { font-size: 40px; font-weight: 850; letter-spacing: -2px; line-height: 1; }
.fission-count span { font-size: 13px; font-weight: 500; color: #ffffff99; letter-spacing: 0; }
.invite-poster { width: 150px; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ───────────────── 订阅 ───────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--ink); box-shadow: 0 12px 30px #10182814; }
.plan-card .plan-name { font-size: 13px; font-weight: 750; }
.plan-price { font-size: 26px; font-weight: 850; letter-spacing: -1px; margin: 8px 0 2px; }
.plan-price small { font-size: 11px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.plan-features { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-direction: column; gap: 7px; }
.plan-features li { font-size: 11.5px; color: var(--muted); display: flex; gap: 7px; line-height: 1.5; }
.plan-features li::before { content: "✓"; color: var(--mint); font-weight: 800; }
.quota-cell { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.quota-cell b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.quota-cell span { font-size: 11px; color: var(--muted); }
.quota-cell .bar { height: 4px; background: var(--line-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.quota-cell .bar i { display: block; height: 100%; background: var(--coral); border-radius: 4px; }

/* ───────────────── 素材 / 消息 ───────────────── */
.asset-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.asset-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.asset-card .thumb { aspect-ratio: 1; background: var(--paper); display: grid; place-items: center; overflow: hidden; color: var(--soft); position: relative; }
.asset-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-card .meta { padding: 8px 10px; font-size: 11px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.msg-item { display: flex; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .14s; }
.msg-item:hover { background: #fcfcfd; }
.msg-item.unread { background: #fffaf8; }
.msg-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--slate); flex: 0 0 auto; }
.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 12.5px; font-weight: 650; display: flex; justify-content: space-between; gap: 10px; }
.msg-text { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.msg-time { font-size: 10px; color: var(--soft); white-space: nowrap; }

/* ───────────────── 登录 ───────────────── */
.login-root { min-height: 100vh; background: #fff; }
.login-shell { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 100vh; }
.login-left { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 110% -10%, #ff5a2d33, transparent 55%), linear-gradient(140deg, #0b1220, #101c33 60%, #16213a); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; }
.login-left::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid #ffffff10; border-radius: 50%; right: -140px; top: 120px; box-shadow: 0 0 0 60px #ffffff06, 0 0 0 120px #ffffff04; }
.login-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.login-brand .brand-mark { width: 42px; height: 42px; font-size: 21px; }
.login-brand b { font-size: 19px; }
.login-left h1 { font-size: 46px; line-height: 1.16; letter-spacing: -2px; font-weight: 850; margin-top: 64px; position: relative; z-index: 1; }
.login-left h1 em { font-style: normal; color: var(--coral-2); }
.login-left .lead { color: #ffffffa6; font-size: 14px; line-height: 1.85; margin-top: 16px; max-width: 430px; position: relative; z-index: 1; }
.login-points { display: flex; flex-direction: column; gap: 13px; margin-top: 32px; position: relative; z-index: 1; }
.login-point { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: #ffffffcc; }
.login-point i { width: 22px; height: 22px; border-radius: 7px; background: #ff5a2d1f; color: var(--coral-2); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: 0 0 auto; }
.login-foot { margin-top: auto; color: #ffffff59; font-size: 10.5px; line-height: 1.8; position: relative; z-index: 1; }
.login-right { display: grid; place-items: center; padding: 40px; }
.login-box { width: 380px; max-width: 100%; }
.login-box h2 { font-size: 25px; letter-spacing: -.7px; }
.login-box .login-sub { color: var(--muted); font-size: 13px; margin: 6px 0 26px; }
.demo-label { font-size: 11px; color: var(--soft); letter-spacing: 1px; margin: 22px 0 9px; }
.demo-list { display: flex; flex-direction: column; gap: 8px; }
.demo-account { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: .16s; background: #fff; text-align: left; }
.demo-account:hover { border-color: var(--coral); box-shadow: 0 0 0 3px #ff5a2d10; }
.demo-account .avatar { width: 34px; height: 34px; font-size: 12px; flex: 0 0 34px; overflow: hidden; }
.demo-account b { display: block; font-size: 12.5px; color: var(--ink); }
.demo-account span { display: block; font-size: 10.5px; color: var(--soft); }
.demo-account .go { margin-left: auto; color: var(--coral); font-size: 12px; }
.login-legal { color: var(--soft); font-size: 10.5px; line-height: 1.7; margin-top: 18px; }
.login-error { background: var(--red-bg); color: #b42318; border-radius: 9px; padding: 9px 11px; font-size: 12px; margin-bottom: 10px; }

/* ───────────────── 响应式 ───────────────── */
.only-mobile { display: none; }
.mobile-tabbar { display: none; }

@media (max-width: 900px) {
  .mobile-tabbar:not(:empty) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
    border-top: 1px solid #EAECF0; padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 28px rgba(11,18,32,.08);
  }
  .mobile-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #98A2B3; font-size: 9.5px; padding: 3px 0; position: relative; }
  .mobile-tabbar a svg { width: 20px; height: 20px; }
  .mobile-tabbar a.on { color: #FF5A2D; font-weight: 700; }
  .mobile-tabbar a i { position: absolute; top: 0; right: 26%; width: 6px; height: 6px; border-radius: 50%; background: #FF3B30; }
  .view { padding-bottom: 86px; }
  .topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
  .quick-create span:not(.plus) { display: none; }
  .page-title { font-size: 22px; }
  .page-sub { font-size: 11.5px; line-height: 1.6; }
  .view { padding-left: 12px; padding-right: 12px; }
  .card.pad { padding: 14px; }
  .live-title { font-size: 18px; }
  .live-tabs { margin-left: -4px; margin-right: -4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .live-tabs button { min-width: 0; padding: 8px 5px; }
  .live-tabs button b { font-size: 11px; }
  .live-tabs button span { font-size: 8px; line-height: 1.35; }
  .tele-main { font-size: 24px; }
  .auth-summary, .finance-hero { grid-template-columns: 1fr; }
  .finance-strip { grid-template-columns: 1fr 1fr; }
  .finance-strip .fs-actions { grid-column: 1/-1; justify-content: flex-start; }
  .finance-strip .fs-cell { border-left: 0; }
  .table-wrap, .card [style*="overflow:auto"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 520px; }
  .poster-grid, .media-grid, .people-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 210px; }
  .chat-stream { max-height: 46vh; min-height: 260px; }
  .drawer { max-width: 100vw; }
  .drawer-body { padding: 14px; }
}
@media (max-width: 1180px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 18px 10px; align-items: center; }
  .brand-text, .nav-title, .nav-item span.nav-label, .side-plan, .side-user .u-name, .side-user .u-sub, .nav-badge { display: none; }
  .brand { padding: 0 0 14px; }
  .nav-item { justify-content: center; padding: 11px; width: 46px; }
  .nav-item.active::before { display: none; }
  .side-user { justify-content: center; border-top: 0; }
  .nav-group { margin-top: 8px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 248px; align-items: stretch; padding: 22px 14px 16px; }
  .sidebar.open { transform: none; }
  .sidebar .brand-text, .sidebar .nav-title, .sidebar .nav-item span.nav-label, .sidebar .side-plan, .sidebar .side-user .u-name, .sidebar .side-user .u-sub, .sidebar .nav-badge { display: block; }
  .sidebar .nav-item { justify-content: flex-start; width: auto; padding: 9px 12px; }
  .only-mobile { display: inline-flex; }
  .main { margin-left: 0; }
  .view { padding: 18px 16px 90px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; }
  .search-trigger span:not(.search-icon), .search-trigger kbd { display: none; }
  .user-chip-name { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid-2, .grid-3, .grid-2-1, .grid-1-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-side { width: 100%; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { min-height: 100vh; }
  .form-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .drawer { width: 100%; }
  .stat-value { font-size: 23px; }
  .cal-day { min-height: 70px; padding: 4px; }
  .cal-event { font-size: 8.5px; }
}
