/* 一步 · 手机优先样式表 */
:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --ink: #23252b;
  --muted: #7b8089;
  --line: #e6e4df;
  --accent: #3f7267;
  --accent-soft: #eaf1ee;
  --warn: #b07d2b;
  --err: #a94442;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --card: #1f2228;
    --ink: #e8e8e6;
    --muted: #9198a3;
    --line: #2e323a;
    --accent: #7fb8a8;
    --accent-soft: #232c2a;
    --warn: #d9ac5f;
    --err: #e08383;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 40px;
}
a { color: var(--accent); text-decoration: none; }

.nav {
  display: flex; gap: 4px; align-items: center;
  padding: 10px 12px calc(10px);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .right { margin-left: auto; }
.guest-tag { font-size: 14px; color: var(--muted); padding: 8px 4px; }

.wrap { max-width: 620px; margin: 0 auto; padding: 14px 14px 0; }
.foot { max-width: 620px; margin: 18px auto 0; padding: 0 14px; font-size: 13px; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.card h2 { font-size: 15px; margin: 0 0 10px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.card h2 .sub { font-weight: 400; float: right; }

.her-text {
  font-size: 19px; line-height: 1.8; margin: 4px 0 12px;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
}
audio { width: 100%; margin-top: 6px; }

.encourage { font-size: 17px; line-height: 1.8; white-space: pre-wrap; }
.encourage.empty { color: var(--muted); font-size: 15px; }

.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 12px; padding: 12px 16px; font-size: 16px; font-family: inherit;
  min-height: 46px; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.wide { width: 100%; }
.btn.link { border: 0; background: none; color: var(--muted); padding: 8px 4px; min-height: auto; font-size: 14px; }
.btn:active { transform: translateY(1px); }

.inline { display: inline; }

.state-row { display: flex; gap: 8px; }
.state-row form { flex: 1; }
.state-row .btn { width: 100%; }

.task {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.task.done { background: var(--accent-soft); border-color: transparent; }
.task.min { background: #fbf7ee; border-color: transparent; }
@media (prefers-color-scheme: dark) { .task.min { background: #2b2820; } }
.task-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chip {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.chip.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.chip.ok { background: var(--accent); color: #fff; }
.chip.warn { background: #f3e6cd; color: var(--warn); }
.task-title { font-size: 16px; line-height: 1.6; }
.task-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.task-actions .btn { min-height: 40px; padding: 9px 14px; font-size: 15px; }

label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=time], select, textarea {
  width: 100%; padding: 12px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
}
textarea { min-height: 70px; line-height: 1.6; }
input[type=file] { width: 100%; font-size: 14px; }
.row2 { display: flex; gap: 10px; }
.row2 > div { flex: 1; }

.big-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 90px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 600; }

.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.flash.ok { background: var(--accent-soft); color: var(--accent); }
.flash.warn { background: #f7edd8; color: var(--warn); }
.flash.err { background: #f7e3e3; color: var(--err); }

.reason { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

table.hist { width: 100%; border-collapse: collapse; font-size: 15px; }
table.hist th, table.hist td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.hist th { font-size: 12px; color: var(--muted); font-weight: 500; }

.chart { width: 100%; height: 140px; display: block; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.empty-hint { color: var(--muted); font-size: 15px; }
