/* ============================================================
   每日收集 — 黑白简约现代设计系统
   ============================================================ */

:root {
    --black: #0A0A0A;
    --ink: #171717;
    --text: #1F1F1F;
    --text-2: #525252;
    --text-3: #8A8A8A;
    --line: #E8E8E5;
    --line-strong: #D4D4D0;
    --bg: #FFFFFF;
    --bg-soft: #FAFAF9;
    --bg-sink: #F5F5F4;
    --white: #FFFFFF;
    --danger: #C0392B;
    --danger-bg: #FBEEEC;
    --success: #171717;
    --radius: 8px;
    --radius-sm: 6px;
    --sidebar-w: 232px;
    --shadow-pop: 0 8px 28px rgba(10, 10, 10, .12), 0 2px 6px rgba(10,10,10,.06);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
            "Noto Sans SC", sans-serif;
    --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--black); color: #fff; }

/* ---------- 图标 ---------- */
.ico {
    width: 17px; height: 17px;
    stroke: currentColor; fill: none;
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: -3px;
}
.ico-sm { width: 14px; height: 14px; }
.ico-lg { width: 22px; height: 22px; }

/* ---------- 布局骨架 ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--black);
    color: rgba(255,255,255,.62);
    display: flex;
    flex-direction: column;
    padding: 22px 14px 16px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    overflow-y: auto;
    transition: transform .25s ease;
}
.content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    padding: 44px 56px 80px;
}
.content-inner { max-width: 820px; margin: 0 auto; }
.content-wide .content-inner { max-width: 1080px; }

/* ---------- 侧边栏 ---------- */
.brand {
    display: flex; align-items: center; gap: 10px;
    padding: 2px 10px 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.brand-mark {
    width: 26px; height: 26px;
    background: #fff; color: var(--black);
    border-radius: 6px;
    display: grid; place-items: center;
}
.brand-name { color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: .01em; }

.nav-label {
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    padding: 14px 10px 6px;
    font-weight: 600;
}
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: rgba(255,255,255,.66);
    margin-bottom: 1px;
    transition: background .12s, color .12s;
    position: relative;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 500; }
.nav-link .ico { width: 16px; height: 16px; }
.nav-count {
    margin-left: auto;
    background: #fff; color: var(--black);
    font-size: 11px; font-weight: 600;
    min-width: 19px; height: 19px;
    border-radius: 10px;
    display: grid; place-items: center;
    padding: 0 5px;
}
.nav-count.zero { background: rgba(255,255,255,.14); color: rgba(255,255,255,.55); }

.side-foot {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 12px;
}
.side-user {
    padding: 6px 10px 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,.45);
}
.side-user b { color: rgba(255,255,255,.85); font-weight: 500; }

/* ---------- 移动端顶栏 ---------- */
.topbar {
    display: none;
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
    height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.topbar .brand-name { color: var(--ink); font-size: 14px; }
.topbar .brand-mark { width: 24px; height: 24px; }
.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    color: var(--ink);
}
.icon-btn:hover { background: var(--bg-sink); }
.drawer-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,10,10,.45);
    z-index: 55;
}

/* ---------- 页面标题 ---------- */
.page-head { margin-bottom: 28px; }
.eyebrow {
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 8px;
}
.page-title {
    font-size: 26px; font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.25;
}
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 7px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 卡片 / 区块 ---------- */
.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.card + .card, .stack > * + * { margin-top: 14px; }
.section { margin-top: 34px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.section-title { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.section-hint { font-size: 12.5px; color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-size: 13.5px; font-weight: 500;
    white-space: nowrap;
    transition: transform .05s, background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #000; border-color: #000; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 15px; height: 15px; }
.btn-outline {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--bg-sink); border-color: var(--ink); }
.btn-ghost {
    background: transparent; border-color: transparent; color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg-sink); color: var(--ink); border-color: transparent; }
.btn-danger {
    background: var(--bg); color: var(--danger); border-color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 29px; padding: 0 11px; font-size: 12.5px; border-radius: 5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 20px; }
.field-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}
.req { color: var(--danger); font-weight: 700; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.input, select.input, textarea.input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #B3B3AE; }
.input:hover { border-color: #A8A8A2; }
.input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
textarea.input { min-height: 84px; resize: vertical; line-height: 1.6; }
.input:disabled, .input[readonly] { background: var(--bg-sink); color: var(--text-2); cursor: default; }
select.input { appearance: none; padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}

/* 固定值状态 */
.input.is-fixed { background: var(--bg-soft); border-style: dashed; border-color: var(--ink); }
.fixed-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    color: var(--text-2);
    border: 1px solid var(--line-strong);
    padding: 1px 7px; border-radius: 20px;
}
.pin-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--text-3);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 2px 10px; height: 24px;
    transition: all .15s;
    background: var(--bg);
}
.pin-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.pin-btn.active { color: var(--ink); border-color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.pin-btn .ico { width: 12px; height: 12px; }

/* 复选 / 多选 / 开关 */
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: all .13s;
    background: var(--bg);
}
.option-chip:hover { border-color: var(--ink); }
.option-chip input { accent-color: var(--ink); width: 14px; height: 14px; }
.option-chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }

.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch { position: relative; width: 38px; height: 22px; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch-track {
    position: absolute; inset: 0;
    background: #D4D4D0; border-radius: 20px;
    transition: background .18s;
}
.switch-track::after {
    content: ""; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; top: 2px; left: 2px;
    transition: transform .18s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }

/* 评分 */
.rating { display: inline-flex; gap: 4px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { cursor: pointer; color: #D4D4D0; line-height: 1; padding: 2px; }
.rating .ico { width: 26px; height: 26px; stroke-width: 1.2; transition: color .1s, transform .1s; }
.rating label:hover .ico { transform: scale(1.12); }
.rating input:checked ~ label { color: #D4D4D0; }
.rating label.hovered, .rating label.selected { color: var(--ink); }

/* ---------- 状态徽章 ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600;
    padding: 2.5px 9px; border-radius: 20px;
    background: var(--bg-sink); color: var(--text-2);
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge .ico { width: 12px; height: 12px; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-outline { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-success { background: #EAF7EF; color: #0B7A3B; }

/* ---------- 提示条 ---------- */
.alerts { margin-bottom: 20px; display: flex; flex-direction: column; gap: 9px; }
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    background: var(--bg-soft);
}
.alert .ico { width: 16px; height: 16px; margin-top: 2px; }
.alert-success { border-left-color: var(--ink); }
.alert-error, .alert-danger { border-left-color: var(--danger); background: var(--danger-bg); color: #7A241B; }
.alert-warning { border-left-color: #B7791F; background: #FBF6EC; color: #7A5417; }
.alert-info { border-left-color: var(--text-3); }

/* ---------- 数据表格 ---------- */
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
    text-align: left;
    font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-3);
    background: var(--bg-soft);
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--bg-soft); }
.cell-main { font-weight: 500; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--text-3); }
.cell-clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    background: var(--bg);
}
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.stat-num small { font-size: 15px; font-weight: 500; color: var(--text-3); }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }

/* 进度条 */
.progress { height: 6px; background: var(--bg-sink); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .4s; }

/* 趋势条形图 */
.trend { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.trend-bar { width: 100%; max-width: 38px; background: var(--line-strong); border-radius: 4px 4px 0 0; min-height: 3px; transition: background .15s; position: relative; }
.trend-col:hover .trend-bar { background: var(--ink); }
.trend-col.today .trend-bar { background: var(--ink); }
.trend-num { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.trend-day { font-size: 11px; color: var(--text-3); }

/* ---------- 人员名单 ---------- */
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 5px 13px 5px 6px;
    font-size: 13px;
    background: var(--bg);
}
.avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--ink); color: #fff;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 600;
}
.person.done { background: var(--bg-soft); color: var(--text-3); }
.person.done .avatar { background: var(--line-strong); }

/* ---------- 空状态 ---------- */
.empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 54px 24px;
    text-align: center;
    color: var(--text-3);
}
.empty-glyph { width: 40px; height: 40px; margin: 0 auto 14px; color: #BDBDB7; }
.empty-title { color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* ---------- 筛选栏 ---------- */
.filter {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 14px;
    margin-bottom: 18px;
}
.filter .f-item { display: flex; flex-direction: column; gap: 5px; }
.filter label { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.filter .input { padding: 7px 10px; font-size: 13px; min-width: 130px; background: #fff; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager-pages { display: flex; gap: 5px; }
.pager-pages a, .pager-pages span {
    min-width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px; padding: 0 8px;
    color: var(--text-2);
}
.pager-pages a:hover { border-color: var(--ink); color: var(--ink); }
.pager-pages .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(10,10,10,.42);
    display: none;
    align-items: flex-start; justify-content: center;
    padding: 60px 18px;
    z-index: 100;
    overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 10px;
    width: 100%; max-width: 460px;
    box-shadow: var(--shadow-pop);
    animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 0;
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.modal-body { padding: 18px 22px 22px; }
.modal-close { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); }
.modal-close:hover { background: var(--bg-sink); color: var(--ink); }

/* ---------- 今日收集页 ---------- */
.status-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 24px; }
.form-card .field { padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.form-card .field:last-of-type { border-bottom: none; }
.field-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }

.submit-bar {
    position: sticky; bottom: 16px;
    margin-top: 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(10,10,10,.05);
}
.submit-bar .save-hint { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }

/* ---------- 记录列表 ---------- */
.rec-group + .rec-group { margin-top: 26px; }
.rec-month {
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-3);
    padding-bottom: 8px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.rec-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
    border-radius: 4px;
}
a.rec-item:hover { background: var(--bg-soft); }
.rec-date { font-weight: 600; font-size: 14px; min-width: 52px; color: var(--ink); }
.rec-wd { font-size: 12px; color: var(--text-3); margin-left: 8px; font-weight: 400; }
.rec-preview { color: var(--text-2); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 14px; }
.rec-meta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

/* 详情 */
.detail-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-k { font-size: 12.5px; color: var(--text-3); font-weight: 500; padding-top: 2px; }
.detail-v { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* 跳过日 */
.rest-page { text-align: center; padding: 70px 20px; }
.rest-mark {
    width: 64px; height: 64px; margin: 0 auto 22px;
    border: 1.5px solid var(--line-strong); border-radius: 50%;
    display: grid; place-items: center; color: var(--text-2);
}
.rest-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }

/* ---------- 认证页 ---------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    background: var(--bg);
    padding: 24px;
}
.auth-card { width: 100%; max-width: 370px; }
.auth-brand { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 34px; }
.auth-brand .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.auth-brand .brand-name { font-size: 18px; color: var(--ink); }
.auth-title { font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 6px; letter-spacing: -.01em; }
.auth-sub { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--text-3); }
.auth-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.check-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ink); }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.center { display: flex; align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: 12.5px; }
.tac { text-align: center; }
.w-full { width: 100%; }
.whitespace-nowrap { white-space: nowrap; }
.code-k {
    font-family: var(--mono); font-size: 11.5px;
    background: var(--bg-sink); border: 1px solid var(--line);
    padding: 2px 7px; border-radius: 4px; color: var(--text-2);
}
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); width: 272px; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .drawer-mask { display: block; }
    .content { margin-left: 0; padding: 22px 16px 90px; }
    .topbar { display: flex; }
    .stat-grid { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; gap: 5px; }
    .trend { gap: 4px; }
    .trend-day { font-size: 10px; }
    .form-card { padding: 4px 16px 18px; }
    .submit-bar { flex-direction: column; align-items: stretch; }
    .submit-bar .btn { width: 100%; }
    .filter { flex-direction: column; align-items: stretch; }
    .filter .f-item { width: 100%; }
    .filter .input { width: 100%; }
    .page-title { font-size: 22px; }
    .rec-preview { display: none; }
    .row-actions { flex-wrap: wrap; }
}
