.center { text-align: center; padding: 40px 0; }
.center-row { justify-content: center; }

.label { font-size: 14px; color: var(--sub); }
.mid { font-size: 22px; font-weight: bold; }

.choices { display: grid; gap: 8px; margin-top: 8px; }
.choices button { background: #fff; color: var(--text); border-color: var(--line); text-align: left; padding: 14px 16px; }
.choices button.on { border-color: var(--accent); background: var(--accent-soft); font-weight: bold; }

.period-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.period-tabs button { flex: 1; background: #fff; color: var(--accent); padding: 8px 4px; }
.period-tabs button.on { background: var(--accent); color: #fff; }

.period-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.period-nav button { padding: 6px 14px; }
#periodLabel { font-weight: bold; text-align: center; flex: 1; }

.block-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.block-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.block-row:last-child { border-bottom: none; }
.block-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.block-name { flex: 1; }
.mine { font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.block-value { font-weight: bold; white-space: nowrap; }

.goal { margin-top: 6px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); }

.me { background: var(--accent-soft); border-color: #cfe2db; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

body { padding-bottom: 72px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  z-index: 50;
}
.bottom-nav button { flex: 1; background: #fff; color: var(--sub); border: none; padding: 10px 4px; }
.bottom-nav button.on { color: var(--accent); font-weight: bold; background: var(--accent-soft); }

.mode-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.mode-tabs button { flex: 1; background: #fff; color: var(--accent); padding: 8px 4px; }
.mode-tabs button.on { background: var(--accent); color: #fff; }

.unit-switch { display: flex; gap: 4px; margin: 8px 0; }
.unit-switch button { flex: 1; background: #fff; color: var(--sub); border-color: var(--line); padding: 8px 4px; font-size: 15px; }
.unit-switch button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: bold; }

.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit input { flex: 1; font-size: 22px; text-align: right; }
.input-unit span { white-space: nowrap; }

.preview { margin-top: 10px; font-size: 18px; font-weight: bold; color: var(--accent); min-height: 1.4em; }
.preview .warn { display: block; font-size: 14px; color: var(--danger); font-weight: normal; }
.center-text { text-align: center; }

.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }

.timer { font-size: 48px; font-weight: bold; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 2px; margin: 8px 0; }

.recent-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: none; }
.recent-main { flex: 1; }
.recent-item button { padding: 6px 10px; font-size: 14px; }

.choices.two { grid-template-columns: 1fr 1fr; }
.choices.two button { text-align: center; }
.right { text-align: right; }
.center-card { text-align: center; }
.thanks { font-size: 18px; font-weight: bold; color: var(--accent); margin: 16px 0 20px; line-height: 1.8; }
.transfer-link { margin-top: 16px; text-align: center; }
button.link { background: none; border: none; color: var(--accent); text-decoration: underline; font-size: 14px; padding: 4px; }
.bottom-nav button { font-size: 14px; }
