* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #185FA5;
  --primary-dark: #0C447C;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #1F2329;
  --text-2: #5F6B7A;
  --text-3: #9AA5B1;
  --green: #0F6E56;
  --red: #A32D2D;
  --amber: #854F0B;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16,24,40,.08);
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
label input, label select, label textarea { margin-top: 4px; }

/* 按钮 */
.btn { padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.link-btn { background: none; border: none; color: var(--primary); font-size: 13px; padding: 4px; }
.link-btn:hover { text-decoration: underline; }

/* 登录页 */
#auth-view, #setup-view, #pending-view {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #EAF2FB 0%, #F5F6F8 60%);
  padding: 20px;
}
.auth-card {
  width: 400px; max-width: 100%; background: var(--card); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(16,24,40,.10); padding: 36px 32px;
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px;
  background: var(--primary); color: #fff; font-size: 24px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.auth-brand h1 { font-size: 20px; font-weight: 600; }
.auth-brand p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: var(--bg); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; padding: 8px; border: none; border-radius: 8px; background: transparent; font-size: 14px; color: var(--text-2); }
.auth-tab.active { background: #fff; color: var(--primary); font-weight: 500; box-shadow: var(--shadow); }
.auth-form .btn-block { margin-top: 4px; }
.auth-error { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex-shrink: 0; white-space: nowrap; }
.code-row .btn:disabled { opacity: .5; cursor: not-allowed; }
.reset-tip { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
#pending-view .btn-block { margin-top: 8px; }
#pending-view .link-btn { display: block; margin: 12px auto 0; }

/* 主布局 */
#app-view { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; background: #16213B;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0;
}
.side-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px;
  font-size: 16px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-logo {
  width: 32px; height: 32px; border-radius: 9px; background: #2E6BE6; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.side-nav { padding: 10px 12px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; margin-bottom: 2px;
  border: none; border-radius: 8px; background: transparent; font-size: 14px;
  color: rgba(255,255,255,.68);
}
.nav-item .nav-ico { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: #2E6BE6; color: #fff; font-weight: 500; }
.nav-item { position: relative; }
.nav-badge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #F04438; color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
#sound-toggle { margin-bottom: 6px; }
.nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,.45); padding: 14px 14px 6px; letter-spacing: 1px;
  font-family: inherit;
}
.nav-group-toggle:hover { color: rgba(255,255,255,.7); }
.toggle-arrow { font-size: 10px; }
.nav-item-sub { padding-left: 24px; }
.side-user { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user-name { font-weight: 500; color: #fff; }
.side-user-role { font-size: 12px; color: rgba(255,255,255,.45); margin: 2px 0 6px; }
.side-user .link-btn { color: rgba(255,255,255,.55); }

.main { flex: 1; padding: 24px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { font-size: 18px; font-weight: 600; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.head-actions input[type="date"] { width: auto; }

/* 看板 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-2); }
.stat-card .stat-value { font-size: 26px; font-weight: 600; margin-top: 4px; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.stat-card.accent .stat-value { color: var(--primary); }
.stat-card.good .stat-value { color: var(--green); }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.grid-3 .panel { margin-bottom: 0; }

.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.funnel-label { width: 90px; font-size: 13px; color: var(--text-2); text-align: right; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; background: var(--bg); border-radius: 6px; height: 28px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: 12px; min-width: 44px; transition: width .4s; }
.funnel-rate { width: 130px; font-size: 12px; color: var(--text-3); flex-shrink: 0; }

.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: left; color: var(--text-3); font-weight: 400; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid #F2F4F7; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-tip { color: var(--text-3); font-size: 13px; text-align: center; padding: 20px 0; }

/* 客资筛选 */
.scope-tip { font-size: 12px; color: var(--text-3); margin: -10px 0 12px; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar input[type="date"] { width: 150px; }
.filter-bar select { width: 130px; }
.filter-bar input[type="search"] { width: 200px; }
.filter-sep { color: var(--text-3); }

/* 表格 */
.panel-table { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 12px 14px; color: var(--text-2); font-weight: 500;
  background: #FAFBFC; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid #F2F4F7; vertical-align: middle; }
.table tbody tr:hover { background: #F8FAFD; }
.table .col-check { width: 36px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--text-2); font-size: 13px; }
.pager { display: flex; align-items: center; gap: 10px; }
.pager .btn { padding: 4px 12px; font-size: 13px; }
.pager .btn:disabled { opacity: .4; cursor: not-allowed; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.cell-sub { font-size: 12px; color: var(--text-3); }

/* 弹窗 / 抽屉 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { background: #fff; border-radius: 14px; width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-sm { width: 420px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-x { background: none; border: none; font-size: 22px; color: var(--text-3); line-height: 1; }
.modal-x:hover { color: var(--text); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

#drawer-mask { justify-content: flex-end; padding: 0; }
.drawer { background: #fff; width: 520px; max-width: 96vw; height: 100vh; overflow-y: auto; }
.drawer-body { padding: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 18px; }
.detail-item .k { font-size: 12px; color: var(--text-3); }
.detail-item .v { font-size: 14px; margin-top: 2px; word-break: break-all; }
.drawer-section { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.drawer-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.status-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.status-btn { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2); }
.status-btn:hover { border-color: var(--primary); color: var(--primary); }
.status-btn.current { font-weight: 500; pointer-events: none; }

.follow-item { padding: 10px 12px; background: #F8FAFC; border-radius: 8px; margin-bottom: 10px; }
.follow-item .f-meta { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.follow-item .f-content { font-size: 13px; white-space: pre-wrap; }
.follow-item .f-next { font-size: 12px; color: var(--amber); margin-top: 4px; }

.assign-row { display: flex; gap: 8px; }
.assign-row select { flex: 1; }

/* toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: #1F2329; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

.boot-loading {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 14px; background: var(--bg);
}
.team-tip { font-size: 13px; color: var(--text-3); }

/* 侧边导航分组 */
.side-nav { overflow-y: auto; }
.nav-group {
  font-size: 12px; color: rgba(255,255,255,.38); padding: 14px 12px 6px;
  letter-spacing: 1px;
}
.auth-note { font-size: 12px; color: var(--text-3); margin-top: 12px; text-align: center; }

/* 提醒条 */
.remind-banner {
  display: flex; align-items: center; gap: 10px;
  background: #FFF8EB; border: 1px solid #F2DFA6; color: var(--amber);
  padding: 10px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
}
.remind-banner .remind-ico { font-size: 16px; }
.remind-banner .link-btn { margin-left: auto; color: var(--amber); font-weight: 500; }

/* 主视觉横幅 */
.hero-banner {
  background: linear-gradient(135deg, #2E6BE6 0%, #173E8F 100%);
  border-radius: 14px; padding: 26px 28px; color: #fff; margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(23,62,143,.25);
}
.hero-sub { font-size: 13px; opacity: .82; }
.hero-title { font-size: 22px; font-weight: 600; margin: 6px 0 16px; }
.hero-actions { display: flex; gap: 10px; }
.btn-light { background: #fff; color: #173E8F; font-weight: 500; }
.btn-light:hover { background: #EDF3FF; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* 双栏 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.grid-2 .panel { margin-bottom: 0; }

/* 当月客户阶段分布 */
.stage-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stage-row:last-child { margin-bottom: 0; }
.stage-label { width: 56px; font-size: 13px; color: var(--text-2); text-align: right; flex-shrink: 0; }
.stage-bar-wrap { flex: 1; background: var(--bg); height: 20px; border-radius: 5px; overflow: hidden; }
.stage-bar { height: 100%; border-radius: 5px; min-width: 2px; transition: width .4s; opacity: .85; }
.stage-num { width: 34px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* 临近跟进 */
.up-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #F8FAFC; border-radius: 8px; margin-bottom: 8px; font-size: 13px;
}
.up-item:last-child { margin-bottom: 0; }
.up-time { color: var(--primary); font-weight: 500; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.up-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 面板内标题（panel-table 内嵌） */
.panel-title-in { padding: 14px 16px 0; font-size: 15px; font-weight: 600; }
.panel-title-in.warn { color: var(--amber); }
.panel-table .table { margin-top: 8px; }

/* 数字单元格 / 金额高亮 */
.num-cell { text-align: right; font-variant-numeric: tabular-nums; }
.good-text { color: var(--green); font-weight: 500; }

/* 预警行 */
.row-warn { background: #FFF7F5; }
.row-warn:hover { background: #FEF0ED !important; }
.warn-text { color: var(--red); font-weight: 500; font-size: 12px; }
.row-disabled td { color: var(--text-3); }
.row-me { background: #F4F9FF; }

/* 近 7 日趋势 */
.trend { display: flex; gap: 10px; align-items: flex-end; }
.trend-col { flex: 1; max-width: 74px; text-align: center; }
.trend-bars { display: flex; gap: 4px; align-items: flex-end; justify-content: center; height: 110px; }
.trend-bar { width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .4s; }
.trend-bar.t-in { background: #378ADD; }
.trend-bar.t-deal { background: #0F6E56; }
.trend-num { font-size: 11px; color: var(--text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.trend-day { font-size: 11px; color: var(--text-3); }

/* 成交汇总 */
.deals-summary { display: flex; gap: 22px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.deals-summary b { font-size: 18px; color: var(--text); }

/* 业绩目标 */
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.goal-bar-wrap { background: var(--bg); border-radius: 6px; height: 12px; overflow: hidden; margin: 6px 0 4px; }
.goal-bar { height: 100%; background: var(--primary); border-radius: 6px; transition: width .4s; }
.goal-bar.green { background: var(--green); }
.goal-in { padding: 5px 8px; }

/* 快捷原因 chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border);
  background: #fff; font-size: 12px; color: var(--text-2);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 顶部页签条 */
#tab-strip {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 20px; background: #fff; border-bottom: 1px solid var(--border);
}
.opentab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 14px; font-size: 13px; cursor: pointer;
  background: #F1F5F9; border: 1px solid var(--border); border-radius: 8px 8px 0 0;
  color: var(--text); user-select: none;
}
.opentab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.opentab-x {
  border: none; background: transparent; color: inherit; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px; opacity: .7;
}
.opentab-x:hover { opacity: 1; color: #D64545; }

/* 实时进线 */
tr.row-new { background: #EDF9F1; }
tr.row-new td:first-child { box-shadow: inset 3px 0 0 #0F9D6E; }
.rt-new-badge {
  display: inline-block; background: #0F9D6E; color: #fff; font-size: 11px;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}
@media (max-width: 900px) {
  #tab-strip { padding: 6px 12px; overflow-x: auto; flex-wrap: nowrap; }
}

/* 月历 */
.cal-title { font-size: 15px; font-weight: 600; min-width: 110px; text-align: center; }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 12px; color: var(--text-3); text-align: center; padding-bottom: 8px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  min-height: 74px; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; cursor: pointer; background: #fff; transition: border-color .15s;
}
.cal-cell:hover { border-color: var(--primary); }
.cal-empty { border: none; background: transparent; cursor: default; }
.cal-today { border-color: var(--primary); background: #F4F9FF; }
.cal-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,95,165,.15); }
.cal-num { font-size: 13px; font-weight: 500; }
.cal-today .cal-num { color: var(--primary); }
.cal-dots { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.cal-count { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-follow { background: #378ADD; }
.dot-trip { background: #0F6E56; }
.cal-legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.cal-legend .dot { margin-right: 5px; }
.cal-event {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #F8FAFC; border-radius: 8px; margin-bottom: 8px;
}
.cal-event-main { flex: 1; font-size: 13px; }

/* 昨日战报 */
.yesterday-strip {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, #F0F6FF, #EAF2FB); border: 1px solid #D8E6F8;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.ys-title { font-weight: 600; font-size: 14px; color: #1F3563; flex-shrink: 0; }
.ys-items { display: flex; gap: 26px; flex-wrap: wrap; flex: 1; }
.ys-item { text-align: center; min-width: 64px; }
.ys-label { font-size: 12px; color: var(--text-3); }
.ys-value { font-size: 20px; font-weight: 700; color: #1F3563; }
.ys-delta { font-size: 12px; }
.delta { color: var(--text-3); }
.delta.up { color: #0F6E56; font-weight: 600; }
.delta.down { color: #D64545; font-weight: 600; }
.speed-summary { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.speed-summary strong { color: var(--primary); }
.conv-bar-wrap { display: inline-block; width: 90px; height: 8px; background: #EEF2F7; border-radius: 4px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.conv-bar { height: 100%; background: #0F6E56; border-radius: 4px; }
.gross-preview {
  font-size: 13px; color: var(--text-3); background: #F8FAFC;
  border-radius: 8px; padding: 9px 12px; margin-top: 2px;
}
.gross-preview.gross-ok { color: #0F6E56; background: #E1F5EE; font-weight: 600; }
.gross-preview.gross-bad { color: #D64545; background: #FCEBEB; font-weight: 600; }

@media (max-width: 900px) {
  .nav-item { font-size: 13px; padding: 9px 10px; }
  .form-grid, .goal-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: 52px; }
  .hero-title { font-size: 18px; }
}

/* 手机顶部导航栏（桌面隐藏） */
.m-topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1002;
  height: 50px; align-items: center; gap: 10px; padding: 0 10px;
  background: #16213B; color: #fff;
}
.m-menu-btn {
  background: transparent; border: none; color: #fff; font-size: 20px;
  padding: 6px 10px; cursor: pointer; line-height: 1;
}
.m-title { flex: 1; font-size: 15px; font-weight: 500; }
.m-topbar .link-btn { color: rgba(255,255,255,.8); font-size: 13px; }
.m-mask { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1000; }

/* 手机端布局：侧边栏变抽屉，内容全屏 */
@media (max-width: 768px) {
  .m-topbar { display: flex; }
  #app-view { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 236px;
    transform: translateX(-105%); transition: transform .22s ease; z-index: 1001;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(15,23,42,.3); }
  .m-mask.show { display: block; }
  .main { padding: 62px 12px 48px; width: 100%; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .head-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .page-head h2 { font-size: 17px; }
  .scope-tip { margin-bottom: 10px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
  .stat-value { font-size: 22px; }
  .grid-2, .grid-3, .form-grid, .goal-grid { grid-template-columns: 1fr; }
  .grid-2 .panel, .grid-3 .panel { margin-bottom: 14px; }
  .panel { padding: 14px 12px; }
  .panel h3 { font-size: 15px; }
  .panel-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .panel-table table { min-width: 600px; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-bar input[type="date"], .filter-bar select, .filter-bar input[type="search"] { width: 100%; }
  .filter-bar .btn { grid-column: 1 / -1; }
  .filter-sep { display: none; }
  .hero-banner { padding: 18px 16px; }
  .hero-title { font-size: 17px; }
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .assign-row { flex-wrap: wrap; }
  .remind-banner { padding: 10px 12px; font-size: 13px; }
  .drawer { width: 100%; max-width: 100%; border-radius: 0; }
  .modal { width: 94vw; max-width: 94vw; }
  .cal-cell { min-height: 48px; }
  .table-foot { flex-wrap: wrap; gap: 8px; }
}
