/* 落ち着いた見た目に、手応えの伝わる色の変化を加える。未達成に赤は使わない */

:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ece8e0;
  --ink: #1d2125;
  --ink-2: #5a6068;
  --ink-3: #969ca4;
  --line: #e0dbd1;
  --accent: #2c6e68;
  --accent-ink: #ffffff;
  --accent-soft: #e0eeec;
  --adv: #9a6514;
  --adv-strong: #b8781a;
  --adv-soft: #f6e8cf;
  --rest-soft: #e5e9f2;
  --stretch-soft: #e3eedf;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141618;
    --surface: #1d2023;
    --surface-2: #2a2e33;
    --ink: #eceae5;
    --ink-2: #a9aeb4;
    --ink-3: #6f757c;
    --line: #33383d;
    --accent: #62b5ac;
    --accent-ink: #0d1a18;
    --accent-soft: #1d3431;
    --adv: #e4a94f;
    --adv-strong: #c98d2f;
    --adv-soft: #3a2d17;
    --rest-soft: #222936;
    --stretch-soft: #1f2d1d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; }

h1, h2, h3, p { margin: 0; }

.screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

.screen--center { min-height: 100dvh; justify-content: center; text-align: center; }
.screen--with-foot { padding-bottom: 0; }

.eyebrow { font-size: 0.8rem; color: var(--ink-2); letter-spacing: 0.04em; }
.hero { font-size: 1.6rem; line-height: 1.5; }
.title { font-size: 1.4rem; line-height: 1.4; }
.lead { color: var(--ink-2); }
.label { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.85rem; }
.big { font-size: 1.5rem; font-weight: 700; }
.adv { color: var(--adv); font-weight: 600; }

/* ボタン */
.btn {
  font: inherit;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 48px;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-2);
  touch-action: manipulation;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .seg__btn:focus-visible, .card:focus-visible, .menu-row:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--secondary { background: var(--surface-2); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn--text { background: none; color: var(--accent); min-height: 40px; padding: 8px; }
.btn--block { width: 100%; }
.btn--large { min-height: 56px; font-size: 1.05rem; }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 導入 */
.ob-head { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.ob-head .btn--text { justify-self: start; padding-left: 0; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: var(--line); }
.dot.is-on { width: 20px; background: var(--accent); }

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.card--choice { cursor: pointer; }
.card--choice.is-on { border-color: var(--accent); background: var(--accent-soft); }
.card--small { padding: 12px; }
.card--disabled { opacity: 0.55; }
.card--course { border-color: var(--accent); gap: 10px; }
.card__title { font-weight: 700; font-size: 1.05rem; }
.card__sub { font-size: 0.85rem; color: var(--ink-2); }
.facts { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 0.9rem; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-height: 48px;
  width: 100%;
}
.field--row input { width: 96px; text-align: right; }
.field input:focus { outline: none; border-color: var(--accent); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg--stack { grid-auto-flow: row; }
.seg__btn, .chip {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  min-height: 44px;
  cursor: pointer;
}
.seg__btn--left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; }
.seg__btn--left span { font-size: 0.85rem; color: var(--ink-2); }
.seg__btn.is-on, .chip.is-on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 8px 14px; }

/* 今日 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topbar__day { font-size: 1.3rem; font-weight: 700; }
.topbar__day span { font-size: 0.9rem; font-weight: 400; color: var(--ink-2); }
.topbar__title { font-size: 1.05rem; text-align: center; flex: 1; }
.topbar__spacer { width: 64px; }

.panel { background: var(--surface); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel__note { font-weight: 600; }

.tickets { display: flex; gap: 10px; }
.ticket { width: 52px; height: 30px; border-radius: 6px; border: 2px dashed var(--ink-3); }
.ticket.is-used { background: var(--accent); border: 2px solid var(--accent); }

.practice__name { font-size: 1.5rem; }
.practice__menu { line-height: 1.5; }
.hint--adv { color: var(--adv); font-size: 0.9rem; }

.tag { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-left: 6px; }
.tag--adv { background: var(--adv-soft); color: var(--adv); }
.card .tag { align-self: flex-start; margin-left: 0; }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.log li:first-child { border-top: 0; }
.log__note { flex-basis: 100%; }
.log--today li { border-top: 1px solid var(--line); }

/* メニュー */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.menu-row__title { font-weight: 700; }
.menu-row__detail { grid-column: 1; font-size: 0.85rem; color: var(--ink-2); }
.menu-row__chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); font-size: 1.4rem; }
.menu-row--fixed { cursor: default; background: transparent; border-style: dashed; }
.menu-row--note { cursor: default; background: transparent; border: 0; padding: 0 4px; color: var(--ink-2); font-size: 0.9rem; display: block; }

.sticky-foot {
  position: sticky;
  bottom: 0;
  margin: 8px -16px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sticky-foot__line { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }

.stepper { display: grid; grid-template-columns: 1fr 48px 72px 48px; align-items: center; gap: 8px; }
.stepper__btn { font: inherit; font-size: 1.3rem; height: 48px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.stepper__btn:disabled { opacity: 0.35; cursor: default; }
.stepper__value { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* シート */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__title { font-size: 1.15rem; }

/* タイマー */
.screen--timer { min-height: 100dvh; transition: background-color 0.4s; }
.phase-work { background: var(--accent-soft); }
.phase-rest { background: var(--rest-soft); }
.phase-stretch { background: var(--stretch-soft); }
.phase-pilates { background: var(--accent-soft); }
.phase-dance { background: var(--accent-soft); }
.phase-prep, .phase-warmup, .phase-cooldown, .phase-done, .phase-open, .phase-free { background: var(--surface-2); }
.screen--timer.is-adv { background: var(--adv-soft); }

.timer-top { display: flex; justify-content: space-between; align-items: center; }
.timer-frame { display: flex; flex-direction: column; gap: 6px; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.is-adv .bar span { background: var(--adv-strong); }

.timer-banner { background: var(--adv-strong); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; text-align: center; }

.timer-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px 0; }
.timer-kind { font-size: 0.95rem; color: var(--ink-2); font-weight: 600; }
.phase-work .timer-kind { color: var(--accent); }
.is-adv .timer-kind { color: var(--adv); }
.timer-title { font-size: 1.9rem; line-height: 1.3; }
.timer-sub { color: var(--ink-2); }
.timer-clock { font-size: clamp(72px, 26vw, 120px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.is-paused .timer-clock { opacity: 0.45; }
.timer-next { color: var(--ink-2); min-height: 1.6em; }
.timer-controls { display: grid; gap: 8px; }
.timer-controls .btn--secondary { background: var(--surface); }

/* 練習のあと */
.rating { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rating__btn {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.rating__btn.is-on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.stars { color: var(--adv-strong); letter-spacing: 0.05em; }

/* 結果発表 */
.discovery { background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.discovery__title { font-size: 1.7rem; }
.discovery--quiet { background: var(--surface); border-color: var(--line); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stat-grid div { background: var(--surface); border-radius: 12px; padding: 12px; }
.stat-grid dt { font-size: 0.8rem; color: var(--ink-2); }
.stat-grid dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.stat-sub { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-2); }

.radar { width: 100%; height: auto; display: block; }
.radar__ring { fill: none; stroke: var(--line); }
.radar__spoke { stroke: var(--line); }
.radar__self { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.radar__real { fill: var(--accent); fill-opacity: 0.22; stroke: var(--accent); stroke-width: 2; }
.radar__label { font-size: 13px; fill: var(--ink); }
.radar__label.is-unknown { fill: var(--ink-3); }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--ink-2); }
.key { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 8px; }
.key--self { border-top: 2px dashed var(--ink-2); }
.key--real { height: 10px; background: var(--accent); opacity: 0.6; border-radius: 2px; }

/* お知らせ */
.toast {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* 動きの絵とポイント */
.fig { width: 100%; max-width: 300px; margin: 0 auto; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig-seg { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fig-seg.is-far { stroke: var(--ink-3); }
.fig-seg.is-hl { stroke: var(--accent); }
.fig-seg.is-far.is-hl { stroke: var(--accent); stroke-opacity: 0.5; }
.fig-head { fill: var(--ink); }
.fig-dot { fill: var(--accent); fill-opacity: 0.6; }
.fig-floor { stroke: var(--ink-3); stroke-opacity: 0.5; stroke-width: 3; stroke-linecap: round; }
.fig-prop { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fig-mat { fill: var(--ink-3); fill-opacity: 0.16; }
.is-ghost .fig-seg, .is-ghost .fig-head, .is-ghost .fig-dot { opacity: 0.25; }
/* 厚みのある人型（見本。data-style="solid" の絵だけ）。手前の手足と頭を濃く、胴を少し薄く、奥の手足をさらに薄くする */
.fig-solid { fill: var(--ink); stroke: none; }
.fig-solid.is-core { fill: var(--fig-core, #454c53); }
.fig-solid.is-far { fill: var(--ink-3); }
.fig-solid.is-hl { fill: var(--accent); }
.fig-solid.is-far.is-hl { fill: var(--accent); fill-opacity: 0.5; }
.is-ghost .fig-solid { opacity: 0.25; }
@media (prefers-color-scheme: dark) { .fig-solid.is-core { fill: var(--fig-core, #b9b8b4); } }
.tips { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 2px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.menu-row--fig { grid-template-columns: 64px 1fr auto; gap: 2px 12px; align-items: center; }
.menu-row__fig { display: block; grid-column: 1; grid-row: 1 / span 2; width: 64px; }
.menu-row__fig svg { overflow: hidden; }
.menu-row--fig .menu-row__title, .menu-row--fig .menu-row__detail { grid-column: 2; }
.menu-row--fig .menu-row__chev { grid-column: 3; }

.howto { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 8px 14px 12px; }
.howto .fig { max-width: 260px; }
.howto__what { font-weight: 600; text-align: center; }

.timer-fig { width: min(62vw, 240px); }
.timer-tip { font-weight: 600; font-size: 0.95rem; min-height: 1.6em; }
.fig.is-flip svg { transform: scaleX(-1); }
.seg--variants .seg__btn { min-height: 0; padding: 8px 12px; }

/* ピラティスの「はじめる前に」と「こんなときは」。ふだんはたたんでおく */
.notes { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; font-size: 0.9rem; color: var(--ink-2); }
.notes summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.notes ul { margin: 8px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.notes__safety li { color: var(--ink); font-weight: 600; }

/* ダンス：足あと図・拍の帯・つなげる */
.feet { width: 100%; max-width: 220px; margin: 0 auto; }
.feet svg { display: block; width: 100%; height: auto; max-height: 200px; }
.feet__foot { stroke-width: 0.05; stroke-linejoin: round; }
.feet__foot--r { --foot: var(--accent); }
.feet__foot--l { --foot: var(--ink-2); }
.feet__foot.is-mark { fill: var(--foot); fill-opacity: 0.14; stroke: var(--foot); stroke-opacity: 0.35; }
.feet__foot.is-mark.is-lit { fill-opacity: 0.3; stroke-opacity: 0.9; }
.feet__foot.is-now { stroke: var(--foot); stroke-width: 0.07; }
.feet__foot.is-weight { fill: var(--foot); fill-opacity: 0.5; }
.feet__foot.is-tap, .feet__foot.is-free { fill: var(--surface); }
.feet__foot.is-air { fill: var(--surface); fill-opacity: 0.6; stroke-dasharray: 0.12 0.08; }
.feet__foot.is-start { opacity: 0.55; }
.feet__foot.is-active { stroke: var(--adv-strong); stroke-width: 0.1; }
.feet__num { font-size: 0.3px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.feet__num.is-lit { font-size: 0.38px; }
.feet__front { font-size: 0.24px; fill: var(--ink-3); }
/* ダンスの絵：上の段に正面（鏡写し）と横から見た絵、下の段に足あと図 */
.dance-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.dance-pair .fig, .dance-pair .feet { max-width: none; }
.dance-pair .feet { grid-column: 1 / -1; justify-self: center; width: 50%; }
.fig.has-cap { position: relative; }
.fig.has-cap::after { content: attr(data-cap); position: absolute; top: 2px; left: 6px; font-size: 0.72rem; font-weight: 700; color: var(--ink-3); }
.counts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.counts li { display: flex; gap: 6px; align-items: baseline; }
.counts b { font-variant-numeric: tabular-nums; color: var(--accent); min-width: 1em; }
.combo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.combo-part { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.combo-part > span:last-child { display: flex; flex-direction: column; }
.combo-part__fig { width: 56px; }
.timer-visual.is-dance { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; align-items: center; width: min(92vw, 420px); }
.timer-visual.is-dance .timer-fig { width: 100%; }
.timer-visual.is-dance .timer-feet { grid-column: 1 / -1; justify-self: center; width: 46%; }
.dance-now[hidden] { display: none; }
.dance-now { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(92vw, 420px); }
.dance-now__part { color: var(--ink-2); font-size: 0.9rem; min-height: 1.3em; margin: 0; }
.dance-now__act { font-weight: 700; font-size: 1.25rem; min-height: 1.5em; margin: 0; }
.beats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; width: 100%; }
.beats__cell { position: relative; border-radius: 8px; background: var(--surface); color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 0 10px; text-align: center; }
.beats__cell.has-step::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink-3); }
.beats__cell.has-and::before { content: ''; position: absolute; right: -4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.beats__cell.is-now { background: var(--accent); color: var(--accent-ink); }
.beats__cell.is-now::after { background: var(--accent-ink); }
.screen--timer.is-dance .timer-clock { font-size: clamp(48px, 16vw, 80px); }
.screen--timer.is-dance .timer-title { font-size: 1.4rem; }
.screen--timer.is-dance .timer-main { gap: 4px; padding: 8px 0; }

/* はじめの画面とロゴ（MoveCard by Rehastud） */
.welcome { gap: 28px; }
.welcome__logo img { display: block; width: min(66vw, 260px); height: auto; margin: 0 auto; }
.welcome__line { font-size: 1.15rem; font-weight: 700; }
.topbar__mark img { display: block; width: 30px; height: auto; }
.topbar__main { flex: 1; }

/* 練習を替える・全種目から選ぶ */
.practice__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.switch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.switch-card { font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.switch-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.switch-card__fig { width: 72px; height: 60px; }
.switch-card__all { display: grid; place-items: center; font-size: 2rem; color: var(--accent); }
.switch-card__name { font-weight: 700; }
.switch-card__sub { font-size: 0.8rem; color: var(--ink-2); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.pick { position: relative; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: center; }
.pick.is-on { border-color: var(--accent); background: var(--accent-soft); }
.pick__fig { width: 64px; }
.pick__name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.pick__load { font-size: 0.65rem; color: var(--accent); letter-spacing: -0.05em; }
.pick__n { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }

/* ひとこと・受け取ったメニュー・渡す・コースの誘い */
.menu-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--adv-soft); color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.menu-note .label { margin: 0; color: var(--adv); }
.recv-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.recv-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.recv-row > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.share-link { width: 100%; font: inherit; font-size: 0.8rem; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.field textarea { font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); resize: vertical; }
.invite { gap: 10px; }

/* マイメニューの一覧。いま使っているものは縁取りで示す */
.my-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-card { border: 1.5px solid transparent; gap: 6px; }
.my-card.is-on { border-color: var(--accent); }
.my-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.my-card__name { margin: 0; font-size: 1.05rem; }
.my-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* 練習の途中のテンポ（筋トレの運動の手順）。つまみは大きめにして、動きながらでも触りやすく */
.tempo-ctl { width: 100%; max-width: 420px; margin: 4px auto 0; display: flex; flex-direction: column; gap: 4px; }
.tempo-ctl__label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.tempo-ctl__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.tempo-ctl input[type="range"] { width: 100%; height: 36px; accent-color: var(--accent); touch-action: pan-x; }
.tempo-ctl__out { text-align: center; color: var(--ink-2); }

/* メニューを渡すQRコード。暗い画面でも読めるよう、いつも白地。マスが細かいもの（組み替えたメニュー）でも読めるよう、幅いっぱいまで大きく */
.qr { align-self: center; width: min(100%, 340px); background: #fff; padding: 6px; border-radius: 12px; border: 1.5px solid var(--line); }
.qr__svg { display: block; width: 100%; height: auto; }

/* 「預からない」の一文と、情報の扱い */
.keep-line { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.keep-line p { margin: 0; }
.info-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.info-list svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-list li > span { display: flex; flex-direction: column; gap: 2px; }
.info-state { margin: 0; padding: 8px 12px; border-radius: 10px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 0.9rem; text-align: center; }
.info-state.is-on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }

/* 一つ前の画面に戻る。どの画面も左上の同じ場所に置く */
.btn--back { flex: none; padding-left: 6px; }
.btn--back::before { content: '‹'; font-size: 1.35em; line-height: 0.7; margin-right: 3px; position: relative; top: 0.04em; }
.ob-head .btn--back { justify-self: start; }
.welcome { position: relative; }
.corner-back { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; }
.timer-top { gap: 8px; }
.timer-top #t-count { flex: 1; text-align: center; }
