/* 画面の共通の見た目（設計 6.1）。
   字は端末のもの（外から読み込まない）。インラインの style は使わない（CSP の style-src 'self'）。
   押せるところは縦横 44px 以上、文字のコントラストは 4.5:1 以上。 */

:root {
  color-scheme: light dark;
  --header-bg: #14325c;
  --header-fg: #ffffff;
  --banner-bg: #fff3d1;
  --banner-fg: #4f3600;
  --banner-border: #e8d9a8;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --muted: #555b62;
  --border: #d5d9de;
  --accent: #1d5bc4;
  --nav-fg: #3f454c;
  --nav-active: #14325c;
  --error: #b3261e;
  /* 荒れ度（色だけでなく「低・中・高」の文字も出す） */
  --rough-low-fg: #134f94;
  --rough-low-bg: #e6eef9;
  --rough-mid-fg: #3f454c;
  --rough-mid-bg: #eceef0;
  --rough-high-fg: #8f3a05;
  --rough-high-bg: #fbe6d6;
  /* 枠の色（競艇の決まり：1白・2黒・3赤・4青・5黄・6緑） */
  --waku-1: #ffffff;
  --waku-2: #1a1a1a;
  --waku-3: #d42a20;
  --waku-4: #1d5bc4;
  --waku-5: #f3d11e;
  --waku-6: #1a7a35;
  /* グラフ */
  --chart-hit: #1f5fad;
  --chart-ml: #1f5fad;
  --chart-pop: #c2600f;
  --chart-grid: #d5d9de;
  --chart-track: #eef0f2;
  --chart-skip: #c2600f;
  --skip-bg: #f7f7f5;
  --skip-fg: #5a6068;
  --pill-bg: #ffffff;
  --state-morning: #6b7178;
  --state-updating: #1d5bc4;
  --state-done: #1a7a35;
  --state-missing: #b45309;
  --state-expired: #b3261e;
  --nav-height: 56px;
  --tap: 44px;
  font-family: system-ui, -apple-system, "Noto Sans CJK JP", "Noto Sans JP", "Hiragino Sans",
    "Yu Gothic UI", "Meiryo", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1c1f24;
    --fg: #e8eaed;
    --muted: #a9afb7;
    --border: #343a42;
    --accent: #8ab4f8;
    --nav-fg: #c4c9cf;
    --nav-active: #8ab4f8;
    --error: #f2b8b5;
    --chart-ml: #5596e6;
    --chart-pop: #dd7b34;
    --chart-grid: #3d444c;
    --chart-track: #2a2f36;
    --skip-bg: #181a1e;
    --skip-fg: #9aa0a8;
    --pill-bg: #1c1f24;
    --banner-bg: #3a2f10;
    --banner-fg: #f6e3ae;
    --banner-border: #5a4a1c;
    --rough-low-fg: #a9cbf5;
    --rough-low-bg: #1b2a40;
    --rough-mid-fg: #d3d7dc;
    --rough-mid-bg: #2a2e34;
    --rough-high-fg: #f6bf93;
    --rough-high-bg: #3d2414;
    --state-morning: #a9afb7;
    --state-updating: #8ab4f8;
    --state-done: #6fcf8a;
    --state-missing: #f0a860;
    --state-expired: #f2b8b5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums; /* 数字の桁をそろえる */
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

[hidden],
.is-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- 上の帯（ヘッダー） ---- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
}

.app-header a {
  color: var(--header-fg);
}

.app-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ---- 仮の版の帯・つながっていないときの帯 ---- */

.banner {
  background: var(--banner-bg);
  color: var(--banner-fg);
  border-bottom: 1px solid var(--banner-border);
  padding: 10px 16px;
  font-size: 0.9375rem;
}

/* ---- 中身 ---- */

.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px calc(var(--nav-height) + 24px + env(safe-area-inset-bottom));
}

.page-login .app-main {
  padding-bottom: 24px;
}

/* ---- 下のボタン（今日・成績・設定） ---- */

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-height);
  min-width: var(--tap);
  color: var(--nav-fg);
  text-decoration: none;
  font-weight: 600;
  border-top: 3px solid transparent;
}

.nav-item.is-active {
  color: var(--nav-active);
  border-top-color: var(--nav-active);
}

/* ---- フォーム ---- */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 48px auto 0;
}

.field-label {
  font-weight: 600;
}

.field-input {
  min-height: 48px;
  padding: 8px 12px;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 6px;
}

.button-primary {
  min-height: 48px;
  min-width: var(--tap);
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--header-bg);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.form-error {
  margin: 0;
  color: var(--error);
  font-weight: 600;
}

/* ---- 枠の番号（白と黄は濃い文字、ほかは白い文字） ---- */

.waku {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1;
}

.waku-1 {
  background: var(--waku-1);
  color: #1a1a1a;
  box-shadow: inset 0 0 0 1px #8a8f96;
}

.waku-2 {
  background: var(--waku-2);
  color: #ffffff;
}

.waku-3 {
  background: var(--waku-3);
  color: #ffffff;
}

.waku-4 {
  background: var(--waku-4);
  color: #ffffff;
}

.waku-5 {
  background: var(--waku-5);
  color: #1a1a1a;
}

.waku-6 {
  background: var(--waku-6);
  color: #ffffff;
}

/* ---- 荒れ度 ---- */

.rough {
  display: inline-block;
  padding: 0 0.4em;
  border-radius: 4px;
  font-weight: 600;
}

.rough-low {
  color: var(--rough-low-fg);
  background: var(--rough-low-bg);
}

.rough-mid {
  color: var(--rough-mid-fg);
  background: var(--rough-mid-bg);
}

.rough-high {
  color: var(--rough-high-fg);
  background: var(--rough-high-bg);
}

/* ---- 上の帯の中身 ---- */

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.header-row .app-title {
  flex: 1;
}

.header-sub {
  margin-top: 2px;
  font-size: 0.875rem;
}

.header-status,
.header-release,
.header-now {
  font-size: 0.875rem;
}

.header-alert {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  font-weight: 700;
  color: #14325c !important;
  background: #fbe6d6;
  border-radius: 999px;
  text-decoration: none;
}

.day-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  font-size: 1.5rem;
  text-decoration: none;
}

.banner-stale {
  position: sticky;
  top: 0;
  z-index: 9;
  font-weight: 600;
}

/* ---- 左に一覧・右に詳細（幅 960px 以上） ---- */

.layout-detail {
  display: none;
}

@media (min-width: 960px) {
  .page-today .layout {
    display: grid;
    grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: start;
  }

  .page-today .layout-detail {
    display: block;
    position: sticky;
    top: 96px;
  }
}

.detail-empty {
  color: var(--muted);
}

/* ---- 今日のレース ---- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  color: var(--fg);
  background: var(--pill-bg);
  border: 1px solid var(--muted);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.pill-button.is-active {
  color: #ffffff;
  background: var(--header-bg);
  border-color: var(--header-bg);
}

.race-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.race-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.race-row.is-skip {
  background: var(--skip-bg);
  color: var(--skip-fg);
}

.race-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.race-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5em;
}

.race-clock {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.race-left {
  font-size: 0.8125rem;
  color: var(--muted);
}

.is-skip .race-left {
  color: var(--skip-fg);
}

.race-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.race-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.race-name {
  font-weight: 700;
}

.mark {
  display: inline-block;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.mark-target {
  color: #ffffff;
  background: var(--header-bg);
}

.mark-skip {
  color: var(--skip-fg);
  border: 1px solid var(--skip-fg);
}

.race-bet {
  font-size: 0.9375rem;
}

.race-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.is-skip .race-state {
  color: var(--skip-fg);
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.state-morning {
  background: var(--state-morning);
}

.state-updating {
  background: var(--state-updating);
}

.state-done {
  background: var(--state-done);
}

.state-missing {
  background: var(--state-missing);
}

.state-expired {
  background: var(--state-expired);
}

.rough-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.75rem;
  padding: 4px 8px;
  border-radius: 10px;
  line-height: 1.25;
}

.rough-box.rough-none {
  color: var(--muted);
  background: var(--rough-mid-bg);
}

.rough-label-top {
  font-size: 0.6875rem;
}

.rough-num {
  font-size: 1.25rem;
  font-weight: 700;
}

.rough-band {
  font-size: 0.8125rem;
  font-weight: 700;
}

.empty {
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

.done-card {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.done-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.done-counts {
  margin: 0 0 4px;
  color: var(--muted);
}

.done-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}

.loaded-at {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
}

/* ---- レース詳細（設計 6.3） ---- */

.race-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 12px;
  padding: 10px 16px;
  color: var(--header-fg);
  background: var(--header-bg);
  border-radius: 10px;
}

.page-race .race-head {
  margin: -12px -16px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  border-radius: 0;
}

.race-head .back-link {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--header-fg);
  text-decoration: none;
}

.race-title {
  margin: 0;
  font-size: 1.25rem;
}

.race-deadline {
  margin: 0;
}

.race-countdown {
  margin: 0 0 0 auto;
  font-size: 1.75rem;
  font-weight: 700;
}

.card {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.sub-title {
  margin: 16px 0 6px;
  font-size: 0.9375rem;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.verdict-line {
  margin: 4px 0 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.note {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.tag-morning {
  margin-left: 8px;
  padding: 0 6px;
  color: var(--banner-fg);
  background: var(--banner-bg);
  border-radius: 4px;
}

.table-scroll {
  overflow-x: auto;
}

.boats,
.bets,
.payouts,
.verdicts {
  width: 100%;
  border-collapse: collapse;
}

.boats th,
.bets th,
.payouts th {
  padding: 4px 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.boats td,
.bets td,
.payouts td,
.verdicts td,
.verdicts th {
  padding: 6px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.boats .num,
.bets .num,
.payouts .num,
.verdicts .num {
  text-align: right;
}

.boat-row[data-scratched] {
  opacity: 0.55;
}

.grade {
  color: var(--muted);
  font-size: 0.8125rem;
}

.ex-best {
  font-weight: 800;
}

.prob-cell {
  white-space: nowrap;
}

.pbar {
  vertical-align: middle;
}

.pbar-bg {
  fill: var(--rough-mid-bg);
}

.pbar-fill {
  fill: var(--chart-hit);
}

.bet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.combo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.combo .waku {
  width: 1.5em;
  height: 1.5em;
  font-size: 0.875rem;
}

.combo-sep {
  color: var(--muted);
}

.mark-cell {
  color: var(--chart-skip);
  font-weight: 700;
}

.combo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-order {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.result-order span:first-child {
  margin-right: 8px;
  color: var(--muted);
}

.verdicts th {
  font-weight: 600;
}

.verdict-hit {
  color: var(--chart-hit);
  font-weight: 700;
}

.verdict-miss {
  color: var(--muted);
}

.version-info {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.page-race .layout-detail {
  display: none;
}

/* ---- 締切済み・動きの状態（設計 6.4・6.7） ---- */

.back-link-row {
  margin: 0 0 8px;
}

.outcome {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 72px;
  font-weight: 700;
}

.outcome-hit {
  color: var(--waku-6);
}

.outcome-miss,
.outcome-none,
.outcome-waiting {
  color: var(--muted);
}

.outcome-refund {
  color: #8f3a05;
}

.status-card {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.status-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-alert-message {
  margin: 0;
  font-weight: 600;
}

.status-note {
  margin: 2px 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.status-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}

.status-dl dd {
  margin: 0;
}

/* ---- 成績 ---- */

.stats-note-yellow {
  margin: 0 0 12px;
  border: 1px solid var(--banner-border);
  border-radius: 8px;
}

.stats-filters {
  margin-bottom: 8px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

.filter-select {
  min-height: var(--tap);
  padding: 0 8px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  font: inherit;
}

.stats-releases {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.stats-card {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.stats-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.stats-big {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--chart-hit);
}

.stats-sub {
  margin: 0 0 8px;
  color: var(--muted);
}

.stats-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 8px;
}

.stats-figures dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.stats-figures dd {
  margin: 0;
  font-weight: 700;
}

.stats-greybox {
  margin: 0 0 8px;
  padding: 8px 12px;
  background: var(--skip-bg);
  color: var(--skip-fg);
  border-radius: 8px;
}

.stats-greybox p {
  margin: 2px 0;
}

.stats-legend {
  margin: 0 0 8px;
  font-size: 0.875rem;
}

.legend-swatch {
  vertical-align: middle;
  margin-left: 8px;
}

.bar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-row {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 2px 8px;
  align-items: center;
  margin-bottom: 8px;
}

.bar-label {
  font-weight: 600;
}

.bar-svg {
  width: 100%;
  height: 14px;
  border-radius: 3px;
}

.bar-text {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--muted);
}

.skip-tiles {
  display: flex;
  gap: 8px;
}

.skip-tile {
  flex: 1;
  padding: 8px 12px;
  background: var(--skip-bg);
  color: var(--skip-fg);
  border-radius: 8px;
}

.skip-tile p {
  margin: 0;
}

.skip-name {
  font-size: 0.8125rem;
}

.skip-rate {
  font-size: 1.5rem;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stats-table th,
.stats-table td {
  padding: 6px 8px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.stats-table th:first-child {
  text-align: left;
}

.stats-title-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.daily-chart {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
}

.chart-grid {
  stroke: var(--chart-grid);
}

.chart-ml-line {
  stroke: var(--chart-ml);
}

.chart-pop-line {
  stroke: var(--chart-pop);
}

.chart-ml-fill {
  fill: var(--chart-ml);
}

.chart-pop-fill {
  fill: var(--chart-pop);
}

.bar-track {
  fill: var(--chart-track);
}

.chart-text {
  fill: var(--muted);
}

.daily-table summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* ---- 設定（設計 6.6） ---- */

.header-sub-text {
  margin: 2px 0 0;
  font-size: 0.875rem;
}

.settings-notice {
  margin: 0 0 8px;
  border: 1px solid var(--banner-border);
  border-radius: 8px;
  font-weight: 600;
}

.settings-card {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.settings-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.value-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.value-row:last-child {
  border-bottom: 0;
}

.value-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

.value-label {
  font-weight: 600;
}

.slider-value {
  font-size: 2rem;
  line-height: 1.1;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stepper-btn {
  min-width: var(--tap);
  min-height: var(--tap);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 8px;
  cursor: pointer;
}

.stepper-input {
  width: 5.5em;
  text-align: center;
}

.value-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 4px;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.button-secondary {
  min-height: var(--tap);
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
}

.slider {
  display: block;
  width: 100%;
  min-height: var(--tap);
  margin: 4px 0;
  accent-color: var(--header-bg);
}

.curve-block {
  margin-top: 8px;
}

.settings-chart {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
}

.curve-now {
  stroke: var(--muted);
}

.chart-dot {
  stroke: var(--surface);
}

.curve-note {
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
}

.check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.push-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.push-box p {
  margin: 0;
}

.settings-form .field-input {
  width: 100%;
}

.settings-form .stepper-input {
  width: 5.5em;
}

.save-button {
  width: 100%;
  margin-top: 12px;
}

.logout-form {
  margin-top: 16px;
  text-align: center;
}

/* グラフの文字は線の色にしない（4.5:1 を保つ）。線の色は線と凡例の色見本で示す */
.chart-name {
  fill: var(--fg);
}

.changed-badge {
  display: inline-block;
  padding: 0 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--banner-fg);
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-radius: 4px;
}
