/* 财务系统 · 设计规范（浅绿主题）
   颜色、间距、字号都在 :root 里定义；页面只用这里的组件类，不写零散样式。
   - 主色是浅绿 --brand，全部用纯色，不用渐变、不发光、不加纹理。换主色只改 :root 里 --brand 这几行。
   - 浅绿底上用深绿字（--on-brand）；白底上的绿色文字、图标用深一档的 --accent，保证看得清。
   - 左侧导航是淡薄荷绿底 #eafbf3（深色模式下是深底）；当前页用同色系深一档的薄荷绿 + 深绿字，左边一道绿条。
   - 「警告」用琥珀黄、「有问题」用红色。 */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-3: #f0f1f4;
  --line: #e6e8ec;
  --line-strong: #d3d6dc;
  --fg: #1b1d22;
  --fg-2: #474b55;
  --muted: #858a96;

  --brand: #3ecf8e;           /* 主色：浅绿（纯色） */
  --brand-hover: #35c083;
  --brand-soft: #eafbf3;      /* 淡绿底：图标底、悬停、提示条（和左边栏同一个色） */
  --brand-line: #b8ecd3;
  --accent: #0d7f4f;          /* 白底上的绿色文字、链接、图标：深一档 */
  --accent-hover: #0a6640;
  --accent-ring: rgba(62, 207, 142, .3);
  --on-brand: #0b3d26;        /* 浅绿底上的字：深绿（白字在浅绿上看不清） */

  --ok: #16a34a;
  --ok-text: #15803d;
  --ok-soft: #e8f6ed;
  --warn: #a16207;
  --warn-soft: #fef6d8;
  --danger: #dc2626;
  --danger-text: #c42020;
  --danger-soft: #fdecec;
  --plan: #5b54c9;
  --plan-soft: #efeefb;

  /* 左侧导航（纯色、亮色）：淡薄荷绿底 */
  --side-bg: #eafbf3;
  --side-fg: #2e4038;
  --side-strong: #12261c;
  --side-muted: #7b9286;
  --side-icon: #6b8578;
  --side-hover: #d9f4e7;
  --side-line: #cdecdc;
  --side-planned: #98aea3;
  --side-active-bg: #c9f1dd;    /* 选中：同一个薄荷绿往深走一档 */
  --side-active-fg: #0a5a38;
  --side-active-icon: #14965e;

  --radius: 8px;
  --radius-lg: 12px;
  --sidebar: 240px;
  --shadow: 0 1px 2px rgba(27, 29, 34, .05);
  --shadow-lg: 0 12px 32px rgba(27, 29, 34, .14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --surface: #191a1d; --surface-2: #1e1f23; --surface-3: #26272c; --line: #2c2d33; --line-strong: #3b3d44;
    --fg: #ececee; --fg-2: #c0c2c8; --muted: #8b8e97;
    --brand: #3ecf8e; --brand-hover: #5ad9a0; --brand-soft: #12291f; --brand-line: #1f4a36;
    --accent: #5ee0a4; --accent-hover: #86e9ba; --accent-ring: rgba(62, 207, 142, .3);
    --ok: #4ade80; --ok-text: #4ade80; --ok-soft: #15291d; --warn: #facc15; --warn-soft: #302810;
    --danger: #f87171; --danger-text: #f87171; --danger-soft: #3a1a1a; --plan: #a5a0f0; --plan-soft: #24223d;
    --side-bg: #17181b; --side-fg: #c8cad0; --side-strong: #f3f4f6; --side-muted: #737782; --side-icon: #8c909b;
    --side-hover: #222327; --side-line: #26272b; --side-planned: #7c808a;
    --side-active-bg: #1b3328; --side-active-fg: #8be6b9; --side-active-icon: #5ee0a4;
    --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.6 var(--font); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-weight: 650; letter-spacing: .01em; }
h1 { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.3; }
h2 { font-size: 15px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent-ring); }

/* ---------- 布局：左侧导航 + 右侧内容 ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }

/* ---------- 左侧导航：淡薄荷绿底，当前页同色系深一档 ---------- */
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: var(--side-fg); background: var(--side-bg); border-right: 1px solid var(--side-line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; color: var(--side-strong); }
.brand:hover { color: var(--side-strong); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.brand-name { font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: .04em; }
.brand-sub { color: var(--side-muted); font-size: 12px; letter-spacing: .06em; }
.sidebar .rule { height: 1px; margin: 0 16px 4px; background: var(--side-line); }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.nav-section { margin: 18px 0 6px; padding: 0 10px; color: var(--side-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 2px 0; border-radius: 8px; color: var(--side-fg); transition: background .12s, color .12s; }
.nav a .label { flex: 1; }
.nav a .icon { width: 17px; height: 17px; color: var(--side-icon); }
.nav a:hover { background: var(--side-hover); color: var(--side-strong); }
.nav a:hover .icon { color: var(--accent); }
.nav a { position: relative; }
.nav a.active { background: var(--side-active-bg); color: var(--side-active-fg); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-active-icon); }
.nav a.active .icon { color: var(--side-active-icon); }
.nav a.active .phase { color: var(--side-active-fg); border-color: currentColor; }
.nav a.planned { color: var(--side-planned); }
.nav a.planned .icon { color: var(--side-planned); }
.nav .count { font-size: 11px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; text-align: center; font-weight: 700; line-height: 18px; }
.nav .phase { font-size: 10.5px; color: var(--side-planned); border: 1px solid var(--side-line); border-radius: 5px; padding: 0 5px; line-height: 16px; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--side-line); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--side-line); }
.user-card:hover { background: var(--side-hover); }
.user-card .who { flex: 1; min-width: 0; line-height: 1.35; }
.user-card .name { color: var(--side-strong); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.user-card .role { color: var(--side-muted); font-size: 12px; }
.user-card form { margin: 0; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; min-height: 0; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--side-icon); cursor: pointer; }
.icon-button:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.main { min-width: 0; padding: 0 32px 56px; }
.content { max-width: 1320px; margin: 0 auto; }

/* 顶栏：位置（分组 / 页面）、日期；滚动时吸顶 */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; margin-bottom: 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .where { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.topbar .where b { color: var(--fg); font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.today { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg-2); }
.today .icon { width: 15px; height: 15px; color: var(--accent); }
.me { display: none; align-items: center; gap: 8px; color: var(--fg); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }

/* 窄屏：导航收起，顶栏左边一个「菜单」按钮（不用脚本，checkbox 控制） */
.menu-toggle, .menu-button, .scrim { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 20; left: 0; top: 0; width: 84vw; max-width: 300px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .menu-toggle:checked ~ .app .sidebar { transform: translateX(0); }
  .menu-toggle:checked ~ .app .scrim { display: block; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 10; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; color: var(--fg); }
  .main { padding: 0 16px 40px; }
  .me { display: flex; }
  .today .weekday { display: none; }
  .topbar .where .section { display: none; }
}

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 20px; }
.page-head .sub { color: var(--muted); margin-top: 6px; max-width: 780px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.greeting { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 4px; }

/* ---------- 卡片、指标 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 16px 20px 12px; margin-bottom: 0; }
.grid { display: grid; gap: 18px; align-items: start; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--accent); }
.kpi .ico .icon { width: 17px; height: 17px; }
.kpi .value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.01em; }
.kpi .value.small { font-size: 18px; }
.kpi .foot { font-size: 12.5px; color: var(--fg-2); }
.kpi .lines { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.kpi .lines .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kpi .lines .row b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.kpi .lines .row .cur { color: var(--muted); font-size: 12.5px; }
td .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; }
tr.editor td { background: var(--surface-2, #f7f8f8); border-top: 0; }
tr.subhead td { background: var(--surface-2, #f7f8f8); color: var(--fg-2); font-size: 12.5px; padding-top: 6px; padding-bottom: 6px; }
button.badge { cursor: pointer; border: 1px solid var(--line); }
select.locked { pointer-events: none; opacity: .6; }
tr.editor .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
tr.editor .actions { display: flex; gap: 6px; align-items: end; }
.kpi a.foot { color: var(--accent); }
.kpi.alert { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.kpi.alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--danger); }
.kpi.alert .value { color: var(--danger-text); }
.kpi.alert .ico { background: var(--danger-soft); color: var(--danger); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--brand-soft); }
td.num, th.num { text-align: right; white-space: nowrap; }
td.nowrap, .nowrap { white-space: nowrap; }
tr.total td { font-weight: 700; background: var(--surface-2); }
.card:not(.flush) > table, .card:not(.flush) > .table-wrap { margin: 0 -20px -18px; width: calc(100% + 40px); }
.card table th:first-child, .card table td:first-child { padding-left: 20px; }
.card table th:last-child, .card table td:last-child { padding-right: 20px; }
.neg { color: var(--danger-text); }
.pos { color: var(--ok-text); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- 标签 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--fg-2); white-space: nowrap; line-height: 21px; }
.badge.live { background: var(--ok-soft); color: var(--ok-text); }
.badge.partial { background: var(--warn-soft); color: var(--warn); }
.badge.planned { background: var(--plan-soft); color: var(--plan); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--brand-soft); color: var(--accent); }
.badge.live::before, .badge.partial::before, .badge.planned::before, .badge.danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- 按钮、表单 ---------- */
input, select, button, textarea { font: inherit; color: var(--fg); }
input, select, textarea { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); min-height: 34px; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover { border-color: var(--brand-line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-ring); }
input[type="checkbox"] { min-height: auto; accent-color: var(--brand); }
input[type="file"] { padding: 4px 6px; }
input:disabled, select:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px; min-height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--fg); transition: background .12s, border-color .12s, color .12s; }
button:hover, .btn:hover { background: var(--surface-2); border-color: var(--brand); color: var(--accent); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
button.primary:hover, .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
button.danger { color: var(--danger-text); }
button.danger:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }
.btn.small, button.small { padding: 3px 10px; min-height: 28px; font-size: 12.5px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .field .label { font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; align-items: end; }
details > summary { cursor: pointer; color: var(--accent); font-weight: 600; }

/* ---------- 提示 ---------- */
.flash { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; margin: 14px 0 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.flash.ok { border-color: transparent; background: var(--ok-soft); color: var(--ok-text); }
.flash.error { border-color: transparent; background: var(--danger-soft); color: var(--danger-text); }
.flash.warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.note { padding: 11px 14px; border-radius: var(--radius); background: var(--brand-soft); border-left: 3px solid var(--brand); color: var(--fg-2); margin-bottom: 18px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

/* ---------- 待接入页面：设计稿 ---------- */
.plan-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--plan-soft); border-left: 3px solid var(--plan); color: var(--fg); margin-bottom: 18px; }
.plan-banner .badge { flex-shrink: 0; background: var(--surface); }
.plan-banner ul { margin: 6px 0 0; padding-left: 18px; color: var(--fg-2); }
.ghost-value { display: block; height: 24px; width: 62%; border-radius: 6px; background: var(--surface-3); }
.ghost-cell { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); }
.ghost-input { min-height: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 6px 0; color: var(--fg-2); }
.steps li::marker { color: var(--accent); font-weight: 700; }
h2.block-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
h2.block-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }

/* ---------- 系统地图 ---------- */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.layer .name { font-weight: 700; display: flex; gap: 10px; }
.layer .name .no { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 13px; }
.layer .name .muted { display: block; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.modules { display: flex; flex-wrap: wrap; gap: 8px; }
.module { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 168px; background: var(--surface-2); color: var(--fg); transition: border-color .12s, background .12s; }
.module:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--fg); }
.module .icon { color: var(--muted); }
.module .t { font-weight: 600; font-size: 13px; display: block; }
.module.live .icon { color: var(--ok); }
.module.partial .icon { color: var(--warn); }
.module.planned .icon { color: var(--plan); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.progress span { display: block; height: 100%; }
.progress .live { background: var(--brand); }
.progress .partial { background: var(--brand-line); }
.progress .planned { background: transparent; }
@media (max-width: 860px) {
  .layer { grid-template-columns: 1fr; }
  .kpi .value { font-size: 20px; }
  .kpi { padding: 14px; }
  .kpi .ico { width: 28px; height: 28px; }
  .module { min-width: 0; flex: 1 1 150px; }
  h1 { font-size: 20px; }
}

/* ---------- 登录页：淡绿底 + 浅绿 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero { position: relative; overflow: hidden; padding: 56px 60px 48px; color: var(--fg-2); background: var(--brand-soft); border-right: 1px solid var(--brand-line); display: flex; flex-direction: column; justify-content: space-between; }
.auth-hero::before { content: ""; position: absolute; right: -150px; top: -150px; width: 440px; height: 440px; border-radius: 50%; background: var(--brand); opacity: .10; }
.auth-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--brand); opacity: .16; }
.auth-hero .brand { padding: 0; position: relative; z-index: 1; }
.auth-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; margin-bottom: 16px; }
.auth-hero .eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.auth-hero h2 { font-size: 30px; line-height: 1.45; margin: 0 0 22px; font-weight: 700; color: var(--fg); }
.auth-hero h2 em { font-style: normal; color: var(--accent); }
.auth-hero .brand { color: var(--fg); }
.auth-hero .brand-sub { color: var(--muted); }
.auth-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-hero li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); }
.auth-hero li .icon { margin-top: 2px; color: var(--accent); }
.auth-hero .foot { color: var(--muted); font-size: 12.5px; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-panel .card { width: 100%; max-width: 380px; padding: 30px 28px 28px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--brand); }
.auth-panel h1 { margin-bottom: 4px; }
.auth-panel .mobile-brand { display: none; color: var(--fg); }
.auth-panel .mobile-brand .brand-sub { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack input, .stack button { width: 100%; }
.stack button { min-height: 40px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel .mobile-brand { display: flex; padding: 0 0 18px; }
}

/* 充值订单：一行一单 */
table.sales td, table.sales th { white-space: nowrap; }
table.sales td.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* 待归类：一行一笔，归类表单横排 */
table.unclassified td { white-space: nowrap; vertical-align: middle; }
table.unclassified td.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
form.classify { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
form.classify select { max-width: 200px; }

.nav a .count.hidden { display: none; }

.section-title { font-size: 15px; font-weight: 700; margin: 22px 0 10px; color: var(--fg-2); }
