/* 商务风：稳重、清楚、像正式的公司系统。深蓝主色，细线，小圆角 */
:root {
  --bg: #f6f9ff;
  --fg: #0f1b2d;
  --muted: #536176;
  --accent: #0b4f8a;
  --accent-fg: #ffffff;
  --card: #ffffff;
  --border: #d5dbe3;
  --bar: #0b4f8a;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  font-size: 19px;
  border-top: 6px solid var(--bar);
}

.app { max-width: 640px; margin: 0 auto; padding: 32px 16px; }

h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; }

.lead { margin: 0 0 24px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border); }

button {
  min-height: 56px;
  padding: 0 20px;
  font-size: 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:active { filter: brightness(0.95); }

input, select, textarea {
  min-height: 52px;
  padding: 8px 12px;
  font-size: 1.05rem;
  max-width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.output, .card {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--card);
}

.output:empty { display: none; }

.app { padding: 20px 14px 60px; }
.card { margin-top: 18px; }
.card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; align-items: center; }
.row > * { flex: 1 1 0; min-width: 0; }
.row.fixed > button { flex: 0 0 auto; }
.full { width: 100%; }
button.alt { background: #fff; color: var(--accent); }
button.danger { background: #fff; color: #b3261e; border-color: #b3261e; }
button.sel { background: #ffd166; color: #0f1b2d; border-color: #e0a800; }
.big { font-size: 4.2rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0; }
.done { display: none; text-align: center; background: #2e9e4f; color: #fff; font-size: 2rem; font-weight: 700; border-radius: 8px; padding: 14px; margin: 8px 0; }
.done.on { display: block; animation: pop .6s ease-in-out infinite alternate; }
@keyframes pop { to { transform: scale(1.04); } }
.setrow { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.setrow span { flex: 0 0 auto; min-width: 2.2em; font-weight: 600; }
.setrow input { flex: 1 1 0; min-width: 0; width: 0; }
.setrow button { flex: 0 0 56px; padding: 0; }
.day { margin: 22px 0 6px; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.ex h3 { margin: 0; font-size: 1.2rem; }
.sets { margin: 4px 0; font-size: 1.1rem; }
.trend { margin: 6px 0; padding: 8px 10px; background: #eef5ff; border-radius: 6px; font-size: 1.05rem; }
.up { color: #1b7a38; font-weight: 700; } .same { color: #7a5b00; font-weight: 700; } .down { color: #b3261e; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chips button { min-height: 46px; padding: 0 14px; }
.empty { color: var(--muted); text-align: center; margin-top: 30px; }
