/* 生活服务管家 · 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e5e9f0;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --primary: #2563eb;
  --primary-weak: #eff4ff;
  --success: #16a34a;
  --success-weak: #ecfdf3;
  --warning: #d97706;
  --warning-weak: #fff8eb;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  --sidebar-w: 220px;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.hidden { display: none !important; }
.dim { color: var(--text-3); font-size: 12px; }

/* ---------- 云服务未开通 ---------- */
.cloud-missing {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); z-index: 200;
}
.cloud-missing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 56px; text-align: center; max-width: 420px; box-shadow: var(--shadow);
}
.cloud-missing-icon { font-size: 40px; margin-bottom: 12px; }
.cloud-missing-card h2 { font-size: 18px; margin-bottom: 10px; }
.cloud-missing-card p { color: var(--text-2); margin-bottom: 6px; }

/* ---------- 登录页 ---------- */
.auth-view {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #eef3fc 0%, var(--bg) 100%); z-index: 100;
}
.auth-card {
  width: 380px; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 34px; box-shadow: var(--shadow);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.auth-logo .logo-dot {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.auth-logo h1 { font-size: 19px; font-weight: 600; }
.auth-sub { color: var(--text-2); font-size: 13px; margin-bottom: 26px; }
.auth-error {
  background: var(--danger-weak); color: var(--danger); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 14px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
  font-size: 14px; background: #fff; color: var(--text); outline: none; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field .field-error { color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 14px; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 16px;
  font-size: 14px; cursor: pointer; font-family: inherit; transition: opacity .15s;
  background: var(--primary); color: #fff; font-weight: 500;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-plain { background: #fff; color: var(--text); border-color: var(--border); }
.btn-plain:hover { background: #f8fafc; opacity: 1; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-danger-plain { background: #fff; color: var(--danger); border-color: #f3c1c1; }
.btn-danger-plain:hover { background: var(--danger-weak); opacity: 1; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wechat-btn {
  width: 100%; border: 1px solid #19c15a; background: #f2fbf6; color: #0e9f4e;
  border-radius: 8px; padding: 9px 16px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.wechat-btn:hover { background: #e6f8ee; }

/* ---------- 主布局 ---------- */
.app-view { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 10;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.sidebar-logo .logo-dot {
  width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.sidebar-logo b { font-size: 15px; }
.nav { flex: 1; padding: 6px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--text-2); cursor: pointer; margin-bottom: 2px; font-size: 14px; text-decoration: none;
}
.nav-item:hover { background: #f3f6fb; color: var(--text); }
.nav-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 500; }
.nav-item .nav-icon { width: 18px; text-align: center; }
.sidebar-user { padding: 14px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-weak); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0;
}
.sidebar-user .user-meta { overflow: hidden; }
.sidebar-user .user-meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-meta span { font-size: 12px; color: var(--text-3); }
.logout-btn {
  margin-left: auto; border: none; background: none; color: var(--text-3); cursor: pointer;
  font-size: 12px; padding: 4px 6px; border-radius: 6px; font-family: inherit;
}
.logout-btn:hover { color: var(--danger); background: var(--danger-weak); }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 24px 28px 48px; max-width: 1200px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar h2 { font-size: 20px; font-weight: 600; }
.topbar .topbar-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.month-picker { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit; color: var(--text); }

/* ---------- 卡片与网格 ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi .kpi-label { color: var(--text-2); font-size: 13px; }
.kpi .kpi-value { font-size: 26px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .kpi-value small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.kpi .kpi-foot { font-size: 12px; color: var(--text-3); }
.kpi.k-primary .kpi-value { color: var(--primary); }
.kpi.k-success .kpi-value { color: var(--success); }
.kpi.k-warning .kpi-value { color: var(--warning); }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-body { padding: 16px 20px 20px; }

/* ---------- 列表 / 表格 ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.cat-icon {
  width: 36px; height: 36px; border-radius: 9px; background: #f3f6fb; display: flex;
  align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.list-main { flex: 1; min-width: 0; }
.list-main b { display: block; font-size: 14px; }
.list-main .dim { display: block; }
.list-side { text-align: right; }
.list-side b { font-size: 15px; font-variant-numeric: tabular-nums; }
.list-side .dim { display: block; }
.charge-soon { color: var(--warning); font-weight: 500; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 12px; color: var(--text-3); font-weight: 500;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafbfd; }
.td-money { font-variant-numeric: tabular-nums; font-weight: 500; }
.td-actions { white-space: nowrap; }
.td-actions .btn { margin-left: 6px; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.6;
}
.tag-blue { background: var(--primary-weak); color: var(--primary); }
.tag-green { background: var(--success-weak); color: var(--success); }
.tag-gray { background: #f1f2f5; color: var(--text-2); }
.tag-amber { background: var(--warning-weak); color: var(--warning); }
.tag-red { background: var(--danger-weak); color: var(--danger); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.toolbar input[type="text"], .toolbar select {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px;
  font-family: inherit; color: var(--text); background: #fff; outline: none;
}
.toolbar input[type="text"] { width: 200px; }
.toolbar .spacer { flex: 1; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .empty-icon { font-size: 34px; margin-bottom: 8px; }
.empty b { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- 图表 ---------- */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bar {
  width: 100%; max-width: 46px; background: var(--primary); border-radius: 6px 6px 2px 2px;
  min-height: 3px; position: relative;
}
.bar-col .bar .bar-tip {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.bar-col .bar-label { font-size: 12px; color: var(--text-3); }
.hbar-list .hbar-item { margin-bottom: 13px; }
.hbar-item .hbar-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.hbar-item .hbar-meta b { font-weight: 500; }
.hbar-item .hbar-meta span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.hbar-track { height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--primary); }

/* ---------- 模态框 / 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .4); display: flex;
  align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 520px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 12px 40px rgba(16, 24, 40, .18);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-close { border: none; background: none; font-size: 20px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-body { padding: 16px 22px 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span2 { grid-column: span 2; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }

.confirm-box { text-align: center; padding: 10px 6px; }
.confirm-box .confirm-icon { font-size: 34px; margin-bottom: 10px; }
.confirm-box h3 { font-size: 16px; margin-bottom: 6px; }
.confirm-box p { color: var(--text-2); font-size: 13px; margin-bottom: 18px; }

/* ---------- Toast ---------- */
#toast-box { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #111827; color: #fff; border-radius: 8px; padding: 10px 18px; font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); animation: toast-in .2s ease;
}
.toast.toast-error { background: var(--danger); }
.toast.toast-success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 个人中心 ---------- */
.me-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.me-card { text-align: center; padding: 30px 20px; }
.me-card .avatar { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 12px; }
.me-card h3 { font-size: 17px; }
.me-rows { padding: 8px 20px 14px; }
.me-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.me-row:last-child { border-bottom: none; }
.me-row span { color: var(--text-2); }
.me-row b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 记一笔 ---------- */
.kpi.k-purple .kpi-value { color: #7c3aed; }
.link-btn { color: var(--primary); font-size: 13px; text-decoration: none; }
.voice-card { text-align: center; padding: 22px 20px 20px; margin-bottom: 16px; }
.mic-btn {
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; font-size: 30px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .32); transition: transform .15s, box-shadow .15s;
}
.mic-btn:active { transform: scale(.94); }
.mic-btn.listening {
  background: linear-gradient(160deg, #f87171, #dc2626);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.voice-hint { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.voice-text {
  margin-top: 12px; padding: 10px 14px; background: var(--primary-weak); color: var(--primary);
  border-radius: 10px; font-size: 14px; display: inline-block; max-width: 100%;
}
.ai-status { margin-top: 10px; color: var(--text-3); font-size: 12.5px; }
.ai-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25 } }

.quick-row { display: flex; gap: 10px; padding: 14px 16px; }
.quick-row input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; outline: none; color: var(--text);
}
.quick-row input:focus { border-color: var(--primary); }

.amount-row { display: flex; align-items: center; gap: 8px; padding: 18px 20px 6px; border-bottom: 1px dashed var(--border); margin-bottom: 14px; }
.amount-row .cny { font-size: 26px; color: var(--text-3); }
.amount-row input {
  flex: 1; border: none; outline: none; font-size: 34px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums; background: transparent; font-family: inherit; width: 100%;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 14px; -webkit-overflow-scrolling: touch; }
.chip {
  flex-shrink: 0; border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; color: var(--text-2); font-family: inherit;
  white-space: nowrap;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
#page-add .field { padding: 0 20px; }
.btn-lg { padding: 13px 18px; font-size: 15.5px; }
#page-add .card-body .list-row { align-items: flex-start; }

/* ---------- 家庭 ---------- */
.fam-opts { display: flex; flex-direction: column; gap: 10px; }
.fam-opt {
  display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; padding: 13px 15px; cursor: pointer; font-family: inherit; color: var(--text);
}
.fam-opt:hover { border-color: var(--primary); background: var(--primary-weak); }
.fam-opt b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.fam-opt span { font-size: 12.5px; color: var(--text-3); }
.fam-opt.selected { border-color: var(--primary); background: var(--primary-weak); }
.fam-hero { text-align: center; padding: 26px 20px; }
.fam-hero .fam-icon { font-size: 44px; margin-bottom: 8px; }
.fam-hero h3 { font-size: 18px; margin-bottom: 4px; }
.invite-code {
  display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 6px;
  background: var(--primary-weak); color: var(--primary); border-radius: 12px;
  padding: 10px 18px; font-size: 24px; font-weight: 600; letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
}
.invite-code .copy { font-size: 12px; letter-spacing: 0; font-weight: 400; opacity: .8; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }
.member-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.member-row .list-main b { font-size: 14px; }
.member-row .tag { flex-shrink: 0; }
.fam-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px 20px; }
.fam-actions .btn { flex: 1; min-width: 120px; }
.owner-tag { font-size: 12px; color: var(--text-3); }

/* ---------- 手机端底部导航（桌面隐藏） ---------- */
.tabbar { display: none; }

@media (max-width: 960px) {
  .grid-kpi { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .me-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}

/* =========================================================
   手机端独立布局（≤768px）：底部 Tab + 全宽内容 + 卡片式表格
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 14px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

  /* 桌面侧边栏在手机上让位给底部 Tab */
  .sidebar { display: none !important; }

  /* 顶部标题栏：固定吸顶 */
  .main { margin-left: 0 !important; padding: 0 12px calc(84px + env(safe-area-inset-bottom)); max-width: 100%; }
  .topbar {
    position: sticky; top: 0; z-index: 20; align-items: flex-end;
    margin: 0 -12px 14px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: rgba(245, 247, 250, .94); backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .topbar h2 { font-size: 18px; }
  .topbar .topbar-sub { font-size: 12px; margin-top: 1px; }
  .topbar-actions .btn { padding: 7px 13px; font-size: 13px; white-space: nowrap; }
  .month-picker { padding: 6px 8px; font-size: 12px; }

  /* 卡片与 KPI：两列紧凑排布 */
  .card { border-radius: 14px; }
  .card-head { padding: 14px 14px 0; }
  .card-head h3 { font-size: 14.5px; }
  .card-body { padding: 12px 14px 14px; }
  .grid-kpi { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
  .kpi { padding: 12px 13px; }
  .kpi .kpi-label { font-size: 12px; line-height: 1.35; }
  .kpi .kpi-value { font-size: 21px; margin: 3px 0 1px; }
  .kpi .kpi-value small { font-size: 11.5px; }
  .kpi .kpi-foot { font-size: 11px; line-height: 1.4; }
  .grid-2 { gap: 12px; margin-bottom: 12px; }
  .card > .card { margin-bottom: 12px; }
  .empty { padding: 30px 14px; }

  /* 图表 */
  .bar-chart { height: 148px; gap: 8px; }
  .bar-col .bar { max-width: 32px; }
  .bar-col .bar .bar-tip { font-size: 10px; top: -18px; }
  .bar-col .bar-label { font-size: 11px; }
  .hbar-list .hbar-item { margin-bottom: 11px; }
  .hbar-item .hbar-meta { font-size: 12.5px; }

  /* 列表行 */
  .list-row { gap: 10px; padding: 10px 0; }
  .cat-icon { width: 32px; height: 32px; font-size: 15px; }
  .list-main b { font-size: 13.5px; }
  .list-side b { font-size: 14px; }

  /* 工具栏：搜索与筛选各占一行满宽 */
  .toolbar { padding: 12px 14px; gap: 8px; }
  .toolbar input[type="text"] { width: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .toolbar .spacer { display: none; }
  .toolbar .dim { width: 100%; text-align: right; }

  /* 表格 → 卡片列表 */
  .table-wrap { overflow: visible; padding: 10px 12px 12px; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
    background: #fff; box-shadow: var(--shadow);
  }
  table.data tr:last-child { margin-bottom: 0; }
  table.data td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 5px 0; border-bottom: none; font-size: 13.5px; text-align: left;
  }
  table.data td::before {
    content: attr(data-label); color: var(--text-3); font-size: 12px; flex-shrink: 0;
  }
  table.data td.td-name { padding: 0 0 6px; font-size: 15px; }
  table.data td.td-name::before { display: none; }
  table.data td.td-name b { font-size: 15px; }
  table.data td.td-actions {
    justify-content: flex-end; gap: 8px; padding-top: 10px; margin-top: 6px;
    border-top: 1px dashed var(--border);
  }
  table.data td.td-actions::before { display: none; }
  table.data td.td-actions .btn { margin-left: 0; padding: 6px 12px; font-size: 12.5px; }

  /* 弹窗 → 底部抽屉 */
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh;
    padding-bottom: env(safe-area-inset-bottom); animation: sheet-in .22s ease;
  }
  .modal-head { padding: 16px 18px 0; position: sticky; top: 0; background: #fff; z-index: 2; }
  .modal-body { padding: 12px 18px 18px; }
  .modal-foot { padding: 0 18px calc(18px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; padding: 11px 16px; }
  .modal-foot .btn-plain { flex: 0 0 34%; }
  @keyframes sheet-in { from { transform: translateY(14px); opacity: .6 } to { transform: none; opacity: 1 } }

  /* 输入控件放大到易点尺寸 */
  .field input, .field select, .field textarea { padding: 11px 12px; font-size: 16px; }

  /* 登录页铺满 */
  .auth-view { align-items: flex-start; padding: calc(28px + env(safe-area-inset-top)) 16px 24px; }
  .auth-card { width: 100%; max-width: 420px; padding: 26px 20px; border-radius: 18px; }
  .cloud-missing-card { padding: 32px 22px; margin: 0 16px; }

  /* Toast 避开刘海 */
  #toast-box { top: calc(14px + env(safe-area-inset-top)); width: calc(100% - 32px); left: 16px; transform: none; }
  .toast { text-align: center; }

  /* 个人中心 */
  .me-card { padding: 22px 16px; }

  /* 底部 Tab 栏 */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 7px 0 6px; color: var(--text-3); text-decoration: none; font-size: 11px;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-item .tab-icon { font-size: 19px; line-height: 1.2; filter: grayscale(1); opacity: .55; }
  .tab-item.active { color: var(--primary); font-weight: 500; }
  .tab-item.active .tab-icon { filter: none; opacity: 1; }

  /* 记一笔：手机上更紧凑、更好按 */
  .voice-card { padding: 16px 14px 14px; margin-bottom: 12px; }
  .mic-btn { width: 68px; height: 68px; font-size: 27px; }
  .quick-row { padding: 12px 14px; }
  .amount-row { padding: 14px 14px 4px; margin-bottom: 12px; }
  .amount-row input { font-size: 32px; }
  .chips { padding: 0 14px 12px; }
  #page-add .field { padding: 0 14px; }
  #page-add .topbar-actions { display: none; }

  /* 家庭页 */
  .fam-hero { padding: 18px 14px; }
  .fam-actions { padding: 0 14px 16px; }
  .fam-actions .btn { min-width: 0; }

  /* 底部中间凸起的新增按钮 */
  .tab-item.tab-add { justify-content: flex-start; padding: 0; }
  .tab-add-circle {
    width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(160deg, #3b82f6, #2563eb);
    color: #fff; font-size: 27px; line-height: 48px; text-align: center; margin-top: -18px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .38);
  }
  .tab-item.tab-add.active .tab-add-circle { background: linear-gradient(160deg, #2563eb, #1d4ed8); }
}

/* 超窄屏（≤360px）KPI 改单列，避免数字被挤断 */
@media (max-width: 360px) {
  .grid-kpi { grid-template-columns: 1fr; }
  .kpi .kpi-value { font-size: 24px; }
}

/* ---------- 记一笔：数字键盘 ---------- */
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 14px 14px;
}
.keypad button {
  height: 50px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text); font-size: 21px; font-weight: 600;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.keypad button:active { background: var(--primary-weak); border-color: var(--primary); }
.keypad button.kp-fn { font-size: 17px; color: var(--text-2); background: #fafbfc; }

/* ---------- 记一笔：语音提示 ---------- */
.voice-tip {
  display: none; margin: 10px 12px 0; padding: 9px 12px; border-radius: 10px;
  background: var(--warning-weak); color: #92400e; font-size: 12.5px; line-height: 1.55;
  text-align: left;
}
.voice-tip.show { display: block; }
.voice-hint.is-error { color: var(--danger); }
.mic-btn.mic-off { opacity: .42; }
.mic-btn.listening { animation: micPulse 1.1s ease-in-out infinite; }
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .34); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}

/* 桌面端键盘不再强制隐藏：点金额即可展开 */

/* 金额已填时，保存按钮高亮 */
#exp-save-btn.btn-ready {
  background: linear-gradient(160deg, #2563eb, #1d4ed8);
  color: #fff; border-color: transparent;
}

/* ---------- 记一笔 · 微信式单对话框 ---------- */
.compose { padding: 0; overflow: hidden; }
.compose-display {
  min-height: 140px; padding: 18px 16px; background: #fff;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.cd-ph { color: var(--text-3); font-size: 14px; line-height: 1.75; }
.cd-ph span { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
.compose-display .voice-text {
  font-size: 18px; line-height: 1.6; color: var(--text); text-align: left; font-weight: 500;
}
.compose-display .ai-status {
  margin-top: 10px; font-size: 12.5px; color: var(--text-2); text-align: left;
}
.compose-display .voice-tip { margin: 10px 0 0; }

.compose-result { padding: 2px 14px 16px; border-top: 1px dashed var(--border); }
.cr-amount { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 6px 0 4px; }
.cr-amount .cny { font-size: 20px; color: var(--text-2); }
.cr-amount input {
  width: 160px; border: none; border-bottom: 1px dashed var(--border); background: transparent;
  font-size: 34px; font-weight: 600; text-align: center; color: var(--text);
  font-family: inherit; outline: none; padding: 2px 0;
}
.cr-amount input:focus { border-bottom-color: var(--primary); }
.cr-meta { display: flex; gap: 8px; margin: 8px 0 12px; }
.cr-meta input {
  flex: 1; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0 12px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
}
.cr-date {
  height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fafbfc; font-size: 14px; color: var(--text-2); font-family: inherit; cursor: pointer;
}

.compose-bar { padding: 10px 12px 12px; background: #fff; border-top: 1px solid var(--border); }
.cb-row { display: flex; gap: 8px; }
.cb-row input {
  flex: 1; min-width: 0; height: 42px; border: 1px solid var(--border); border-radius: 21px;
  padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
}
.cb-send {
  height: 42px; padding: 0 18px; border: none; border-radius: 21px;
  background: var(--primary); color: #fff; font-size: 14px; font-family: inherit; cursor: pointer;
}
.cb-mic {
  margin-top: 10px; width: 100%; height: 52px; border: none; border-radius: 26px;
  background: linear-gradient(160deg, #3b82f6, #2563eb); color: #fff; font-size: 16px;
  font-family: inherit; cursor: pointer; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cb-mic.holding { background: linear-gradient(160deg, #1d4ed8, #1e40af); transform: scale(.99); }
.cb-mic.cancel { background: linear-gradient(160deg, #9ca3af, #6b7280); }
.cb-mic.mic-off { opacity: .45; }

/* 键盘默认收起，点金额才展开；桌面端也保留（金额输入框是只读的） */
@media (min-width: 769px) {
  .cr-amount input { width: 180px; }
}

/* ---------- 悬浮打卡按钮 ---------- */
.fab {
  position: fixed; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 420; width: 58px; height: 58px; padding: 0; border: none; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fab-ring {
  display: block; width: 58px; height: 58px; border-radius: 50%; padding: 4px; box-sizing: border-box;
  background: conic-gradient(var(--primary) calc(var(--p, 0) * 1%), #dbe3ee 0);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .26); transition: background .3s;
}
.fab:active .fab-ring { transform: scale(.94); }
.fab-inner {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fab-inner b { font-size: 17px; line-height: 1; color: var(--primary); font-weight: 700; }
.fab-inner i { font-style: normal; font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.fab-inner em { font-style: normal; font-size: 10px; color: var(--text-3); margin-top: 1px; }
@media (min-width: 769px) { .fab { right: 26px; bottom: 26px; } }

/* ---------- 打卡面板 ---------- */
.ck-mask {
  position: fixed; inset: 0; z-index: 600; background: rgba(15, 23, 42, .42);
  display: flex; align-items: flex-end; justify-content: center;
}
.ck-panel {
  width: 100%; max-width: 560px; background: var(--bg); border-radius: 18px 18px 0 0;
  max-height: 90vh; display: flex; flex-direction: column; animation: ckUp .22s ease;
}
@keyframes ckUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ck-head { padding: 6px 16px 0; background: #fff; border-bottom: 1px solid var(--border); border-radius: 18px 18px 0 0; flex: none; }
.ck-grab { width: 38px; height: 4px; border-radius: 2px; background: #e2e8f0; margin: 4px auto 10px; }
.ck-title-row { display: flex; align-items: flex-start; gap: 10px; }
.ck-title-row h3 { font-size: 17px; margin: 0; }
.ck-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.ck-close { margin-left: auto; width: 30px; height: 30px; flex: none; border: none; background: #f3f4f6; border-radius: 50%; font-size: 18px; color: var(--text-2); cursor: pointer; line-height: 1; }
.ck-stat { display: flex; gap: 9px; margin: 12px 0 10px; }
.ck-stat .cs { flex: 1; background: #f8fafc; border-radius: 12px; padding: 9px 6px; text-align: center; }
.ck-stat .cs b { display: block; font-size: 18px; line-height: 1.2; color: var(--text); }
.ck-stat .cs span { font-size: 11px; color: var(--text-3); }
.ck-tabs { display: flex; gap: 6px; padding-bottom: 10px; }
.ck-tab { flex: 1; height: 34px; border: none; border-radius: 9px; background: #f3f4f6; color: var(--text-2); font-size: 13.5px; font-family: inherit; cursor: pointer; }
.ck-tab.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.ck-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }

.ck-group { background: #fff; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.ck-ghead { display: flex; align-items: center; gap: 7px; padding: 12px 14px 2px; font-size: 14px; font-weight: 600; }
.ck-ghead .g-ico { font-size: 15px; }
.ck-ghead .ck-gdesc { margin-left: auto; font-size: 11px; color: var(--text-3); font-weight: 400; }
.ck-item, .ck-numrow { display: flex; align-items: center; gap: 11px; padding: 11px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ck-item + .ck-item, .ck-numrow + .ck-numrow, .ck-item + .ck-numrow, .ck-numrow + .ck-item { border-top: 1px solid #f1f5f9; }
.ck-box { width: 23px; height: 23px; flex: none; border-radius: 7px; border: 1.8px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 13px; color: transparent; transition: .15s; background: #fff; }
.ck-item.on .ck-box, .ck-numrow.on .ck-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.ck-label { font-size: 14.5px; line-height: 1.45; color: var(--text); }
.ck-item.on .ck-label { color: var(--text-3); text-decoration: line-through; text-decoration-color: #cbd5e1; }
.ck-hint { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; text-decoration: none; }
.ck-item.on .ck-hint { text-decoration: none; }

.ck-numrow input {
  width: 76px; height: 34px; border: 1px solid var(--border); border-radius: 9px;
  text-align: center; font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
}
.ck-numrow .ck-unit { font-size: 12.5px; color: var(--text-3); margin-left: -5px; }
.ck-numrow .ck-box { margin-left: auto; }
.ck-numrow .ck-label { flex: 1; }

.ck-metrics { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid #f1f5f9; }
.ck-metric { flex: 1; }
.ck-metric label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.ck-metric input { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff; box-sizing: border-box; }
.ck-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #f1f5f9; }
.ck-choice > span { font-size: 13.5px; color: var(--text-2); }
.ck-opts { margin-left: auto; display: flex; gap: 8px; }
.ck-opt { height: 32px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-family: inherit; color: var(--text-2); cursor: pointer; }
.ck-opt.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.ck-flags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.ck-flag { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2); cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.ck-flag.on { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.ck-note { padding: 0 14px 12px; }
.ck-note input { width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; box-sizing: border-box; }
.ck-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; padding: 0 4px 14px; }
.ck-done { text-align: center; padding: 8px 0 2px; font-size: 12.5px; color: var(--text-3); }

/* 概览页今日打卡卡片 */
.dash-ck { display: flex; align-items: center; gap: 14px; }
.dash-ck .dck-left { flex: none; text-align: center; }
.dash-ck .dck-left b { font-size: 22px; color: var(--primary); line-height: 1; }
.dash-ck .dck-left span { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }
.dash-ck .dck-main { flex: 1; min-width: 0; }
.dash-ck .dck-bar { height: 8px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
.dash-ck .dck-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width .3s; }
.dash-ck .dck-txt { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

@media (min-width: 769px) {
  .ck-mask { align-items: center; }
  .ck-panel { border-radius: 18px; max-height: 86vh; animation: ckPop .18s ease; }
  .ck-head { border-radius: 18px 18px 0 0; }
  @keyframes ckPop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- 云端同步状态 ---------- */
.sync-bar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 12.5px; background: var(--warning-weak); color: #92400e;
  border-bottom: 1px solid #fde3b2;
}
@media (max-width: 768px) {
  .sync-bar { left: 0; padding-top: calc(9px + env(safe-area-inset-top)); }
}
.sync-bar b { color: #b45309; }
.sync-bar button {
  border: 1px solid #f0c98a; background: #fff; color: #92400e; border-radius: 7px;
  height: 24px; padding: 0 10px; font-size: 12px; font-family: inherit; cursor: pointer; margin-left: 4px;
}
.sync-bar .sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); flex: none; }

.ck-sync { font-size: 11.5px; color: var(--text-3); padding: 0 0 8px; }
.ck-sync.ok { color: var(--success); }
.ck-sync.warn { color: #b45309; }
.ck-sync b { font-weight: 600; }

/* ---------- 打卡日期条 ---------- */
.ck-datebar { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.ck-datebar .dt-nav {
  width: 30px; height: 30px; flex: none; border: 1px solid var(--border); background: #fff;
  border-radius: 9px; font-size: 16px; color: var(--text-2); cursor: pointer; line-height: 1; font-family: inherit;
}
.ck-datebar .dt-nav[disabled] { opacity: .4; }
.ck-datebar .dt-mid { flex: 1; text-align: center; line-height: 1.25; }
.ck-datebar .dt-mid b { display: block; font-size: 14.5px; }
.ck-datebar .dt-mid span { font-size: 11px; color: var(--text-3); }
.ck-datebar .dt-today {
  flex: none; height: 30px; padding: 0 12px; border: none; border-radius: 9px;
  background: var(--primary-weak); color: var(--primary); font-size: 12.5px; font-family: inherit; cursor: pointer;
}

/* ---------- 今日打卡里的运动 ---------- */
.ck-week { padding: 4px 14px 12px; border-top: 1px solid #f1f5f9; }
.ck-week .cw { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ck-week .cw > span { flex: none; font-size: 12.5px; color: var(--text-2); width: 60px; }
.ck-week .cw-bar { flex: 1; height: 7px; border-radius: 4px; background: #eef2f7; overflow: hidden; }
.ck-week .cw-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #34d399, #16a34a); transition: width .3s; }
.ck-week .cw b { flex: none; font-size: 13px; color: var(--text); }
.ck-week .cw b em { font-style: normal; font-size: 11px; color: var(--text-3); }

/* ---------- 月度看版 ---------- */
.mk-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.mk-top b { font-size: 15.5px; min-width: 96px; text-align: center; }
.mk-nav {
  width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 50%;
  font-size: 16px; color: var(--text-2); cursor: pointer; line-height: 1; font-family: inherit;
}
.mk-nav[disabled] { opacity: .35; }

.mk-cal { background: #fff; border-radius: 14px; padding: 12px 10px 10px; margin-bottom: 12px; }
.mk-head { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.mk-head span { text-align: center; font-size: 11px; color: var(--text-3); }
.mk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.mk-cell { display: flex; flex-direction: column; align-items: center; padding: 3px 0 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk-cell.mk-empty { cursor: default; }
.mk-ring {
  --p: 0; --c: #dbe2ea;
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef2f7 0);
}
.mk-ring i {
  width: 27px; height: 27px; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; font-style: normal; font-size: 12.5px; color: var(--text-2); font-weight: 600;
}
.mk-cell.mk-full .mk-ring { --c: #16a34a; }
.mk-cell.mk-pass .mk-ring { --c: #4ade80; }
.mk-cell.mk-part .mk-ring { --c: #fbbf24; }
.mk-cell.mk-none .mk-ring { background: #f1f5f9; }
.mk-cell.mk-none .mk-ring i { color: var(--text-3); }
.mk-cell.mk-future { opacity: .45; cursor: default; }
.mk-cell.mk-today .mk-ring i { color: var(--primary); font-weight: 700; }
.mk-cell.mk-cur .mk-ring { box-shadow: 0 0 0 2px var(--primary-weak); }
.mk-cell.mk-cur.mk-today .mk-ring { box-shadow: 0 0 0 2px #bfdbfe; }
.mk-dots { height: 12px; display: flex; gap: 1px; font-size: 8px; line-height: 12px; }
.mk-dots em { font-style: normal; }

.mk-sum { background: #fff; border-radius: 14px; padding: 16px 14px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.mk-big {
  --p: 0; flex: none; width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), #eef2f7 0);
  display: flex; align-items: center; justify-content: center;
}
.mk-big-in {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.15;
}
.mk-big-in b { font-size: 22px; color: var(--primary); }
.mk-big-in b i { font-style: normal; font-size: 12px; color: var(--text-3); }
.mk-big-in span { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mk-nums { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 6px; min-width: 0; }
.mk-nums .mn { text-align: center; }
.mk-nums .mn b { display: block; font-size: 16px; line-height: 1.2; }
.mk-nums .mn b em { font-style: normal; font-size: 11px; color: var(--text-3); }
.mk-nums .mn span { font-size: 11px; color: var(--text-3); }

.mk-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4px 14px; font-size: 11.5px; color: var(--text-3); }
.mk-legend span { display: flex; align-items: center; gap: 4px; }
.mk-legend .lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-full { background: #16a34a; }
.lg-pass { background: #4ade80; }
.lg-part { background: #fbbf24; }
.lg-none { background: #dbe2ea; }
.lg-dot { background: transparent; }

/* 个人中心 · 云端台账 */
.cl-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--success-weak);
  color: #15803d; font-size: 12.5px; line-height: 1.6;
}
.cl-note.warn { background: var(--warning-weak); color: #92400e; }
.cl-note b { font-weight: 700; }

@media (max-width: 768px) {
  .mk-ring { width: 32px; height: 32px; }
  .mk-ring i { width: 25px; height: 25px; font-size: 12px; }
  .mk-sum { padding: 14px 12px; gap: 12px; }
  .mk-big { width: 84px; height: 84px; }
  .mk-big-in { width: 66px; height: 66px; }
  .mk-big-in b { font-size: 19px; }
}
