/* ボイトレノート 閲覧画面。デザインはアストラの原案(画像01・03・04・05、design-tokens.css の値)。
   背景はアイボリーのまま暗くしない(要件書 4.1)。押せる所は 48px 以上。色だけで状態を伝えない。 */
:root {
  --background: #f8f7f2;
  --surface: #ffffff;
  --primary: #397b70;
  --primary-dark: #2f675e;
  --primary-soft: #e8f1e9;
  --accent-soft: #f3dfc5;
  --accent-wash: #fbeee1;
  --text: #293d38;
  --muted: #606e68;
  --border: #dce3de;
  --radius-card: 20px;
  --radius-control: 16px;
  --space-page: 24px;
  --space-card: 20px;
  --touch-target: 48px;
  --body-size: 17px;
  --body-leading: 1.7;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}
body.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px var(--space-page) 32px; }
@media (max-width: 360px) { :root { --space-page: 16px; --space-card: 16px; } }
a { color: inherit; }
svg { display: block; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; margin: 0; line-height: 1.35;
  text-wrap: balance; word-break: auto-phrase; }   /* 1文字だけ次の行に落ちないように(2026-10-17) */
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* 見出しまわり */
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.logo svg { width: 44px; height: 44px; }
.brand-name { font-family: var(--round); font-weight: 700; font-size: 22px; white-space: nowrap; }
.page-title { font-size: clamp(27px, 8vw, 34px); margin-top: 18px; letter-spacing: .02em; }
.lead { color: var(--muted); font-size: 17px; margin-top: 4px; }
.section-title { font-size: 22px; margin: 32px 0 14px; }
.month { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 600; margin: 20px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 10px; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 4px 0; }
.label { font-size: 14px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft);
  display: inline-block; padding: 2px 12px; border-radius: 999px; margin: 14px 0 6px; }

/* 札 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border-radius: 999px;
  font-size: 15px; background: var(--primary-soft); color: var(--text); text-decoration: none; }
.chip.song { background: var(--accent-soft); }
.chip.soft { background: rgba(255,255,255,.7); color: var(--muted); }
.chip.label { min-height: 28px; font-size: 14px; color: var(--primary-dark); }
.chip.sample { background: var(--accent-soft); font-size: 13px; margin-left: auto; white-space: nowrap; padding: 2px 10px; }
.chip.jump { min-height: var(--touch-target); background: var(--primary-soft); }
.chip.done-tag { background: var(--accent-soft); min-height: 28px; font-size: 14px; margin-top: 6px; }

/* カード */
.card { position: relative; border-radius: var(--radius-card); padding: var(--space-card); margin-top: 16px; }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.card.white { background: var(--surface); border: 1px solid var(--border); }
.card.sage { background: var(--primary-soft); }
.card.apricot { background: var(--accent-wash); }
.card.empty { background: var(--surface); border: 1px solid var(--border); }
.card.empty p + p, .card.empty p + .btn { margin-top: 12px; }
.wave { position: absolute; top: 12px; right: 14px; width: 96px; height: 40px; opacity: .9; pointer-events: none; }

/* 最新のレッスン */
.latest { background: var(--primary-soft); margin-top: 22px; padding: 22px var(--space-card); }
.latest .chip.label { background: rgba(255,255,255,.75); }
.latest .date { margin-top: 10px; font-size: 17px; }
.latest .theme { font-size: 24px; margin-top: 4px; padding-right: 8px; }
.quote { background: var(--surface); border-left: 4px solid var(--primary); border-radius: 12px; padding: 10px 14px;
  margin-top: 14px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: var(--radius-control);
  text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 19px; margin-top: 18px; position: relative; }
.btn.primary { background: var(--primary); color: #fff; }
button.btn { width: 100%; border: 0; cursor: pointer; font-family: var(--round); }
.btn.primary:hover { background: var(--primary-dark); }
.btn svg { width: 22px; height: 22px; position: absolute; right: 18px; }

/* 記録の見方の切り替え(01 を基準: 選択中は白いカプセル+青緑の文字) */
.seg4 { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--primary-soft); border-radius: 999px;
  padding: 5px; gap: 2px; }
.seg4 .seg-item { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
  font-size: 15px; text-align: center; line-height: 1.25; padding: 0 4px; }
.seg4 .on { background: var(--surface); color: var(--primary-dark); font-weight: 700; box-shadow: 0 1px 2px rgba(41,61,56,.08); }
.seg4 .off { color: var(--muted); opacity: .75; }

/* 一覧 */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: var(--touch-target); text-decoration: none; }
.row.quiet { color: var(--muted); }
.datebox { flex: none; width: 68px; min-height: 76px; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 1px 3px rgba(41,61,56,.06); }
.datebox .md { font-size: 17px; }
.datebox .wd { font-size: 14px; width: 28px; height: 28px; border-radius: 999px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-family: var(--round); font-weight: 700; font-size: 19px; line-height: 1.4; }
.row-sub { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .chips { margin-top: 6px; }
.row .chip { min-height: 28px; font-size: 14px; }
.chev { flex: none; color: var(--muted); }
.chev svg { width: 22px; height: 22px; }
.seg4 a.seg-item { color: var(--primary-dark); text-decoration: none; }

/* 曲ごとの記録(06・07。本人 2026-10-17) */
.page-sub { color: var(--muted); font-size: 18px; margin-top: 4px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 18px;
  padding: 0 16px; min-height: 56px; margin: 18px 0 14px; box-shadow: 0 1px 3px rgba(41,61,56,.06); }
.search-icon svg { width: 24px; height: 24px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.card.list { padding-top: 4px; padding-bottom: 4px; }
.row.song { align-items: flex-start; }
.song-icon { flex: none; width: 52px; height: 52px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.song-icon.warm { background: var(--accent-soft); color: #c98a5a; }
.song-icon svg { width: 26px; height: 26px; }
.row.song .chev { align-self: center; }
.chip.count { background: var(--accent-wash); }
.chip.task { background: var(--primary-soft); color: var(--primary-dark); }
.row.song .row-sub { margin-top: 6px; }
.row-lead { font-size: 16px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.none { margin: 14px 4px; }
.says { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.say { background: var(--surface); border-left: 4px solid #9cc3b5; border-radius: 12px; padding: 12px 14px; }
.say-tag { display: inline-block; font-size: 13px; color: var(--primary-dark); background: var(--primary-soft);
  border-radius: 999px; padding: 0 10px; margin-right: 8px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--border); }
.visit { position: relative; display: flex; gap: 14px; padding: 4px 0 18px 16px; }
.visit::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 999px;
  background: var(--border); }
.visit-date { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; padding-top: 6px; min-height: var(--touch-target); }
.visit-date .md { font-size: 17px; }
.visit-date .wd { font-size: 14px; width: 28px; height: 28px; border-radius: 999px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; }
.visit-main { flex: 1; min-width: 0; }
.visit-main .chips { margin-top: 2px; }
.visit .says { margin-top: 8px; }
.visit .say { border-left-color: var(--border); }

/* ログイン(本人 2026-10-17) */
.login { margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.field input { font: inherit; font-weight: 400; min-height: 52px; border: 1px solid var(--border); border-radius: 14px;
  padding: 0 14px; background: var(--background); color: var(--text); }
.error-text { color: #a34a2a; margin-top: 12px; }
.btn.plain { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.logout { margin-top: 24px; }

/* くり返しのポイント(08。本人 2026-10-17) */
.card.repeat { padding: 18px var(--space-card); }
.repeat-head { display: flex; gap: 14px; align-items: flex-start; }
.repeat-title { font-size: 21px; line-height: 1.4; margin: 2px 0 0; }
.repeat-meta { color: var(--muted); font-size: 16px; margin-top: 4px; font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; column-gap: 14px; }
.repeat-meta span { white-space: nowrap; }      /* 「いちばん最近は」の途中で折り返さない(2026-10-17) */
.card.repeat .chip { min-height: 26px; font-size: 13px; margin-top: 6px; }
.btn.soft { background: var(--primary-soft); color: var(--primary-dark); min-height: 52px; font-size: 17px; margin-top: 14px; }
.btn.soft:hover { background: #dcebe0; }

/* レッスンの上部 */
.topbar { display: flex; align-items: center; min-height: 56px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--touch-target); padding-right: 12px;
  text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 20px; }
.back svg { width: 26px; height: 26px; }
.date { font-size: 18px; margin-top: 6px; }
.lesson-title { font-size: 26px; margin-top: 2px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--primary-soft); border-radius: var(--radius-control);
  padding: 5px; margin-top: 18px; }
.seg2 .seg-item { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  text-decoration: none; font-size: 17px; }
.seg2 .on { background: var(--primary); color: #fff; font-weight: 700; }

/* 行 */
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; }
.card.sage > .lines .line, .card.apricot > .lines .line { background: var(--surface); }
.card.white > .lines { gap: 6px; }
.card.white > .lines .line { padding: 4px 0; }
.box .line { padding: 4px 0; }
.num { flex: none; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-top: -1px; }
.num.sage { background: var(--primary-soft); }
.num.apricot { background: var(--accent-wash); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--primary); margin-top: 11px; }
.none { color: var(--muted); }
.star { color: #b5772e; margin-right: 4px; }
.tag { display: inline-block; font-size: 13px; background: var(--accent-soft); border-radius: 999px; padding: 0 10px;
  margin-right: 6px; vertical-align: 1px; }
.more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch-target);
  margin-top: 12px; border-radius: 14px; background: rgba(255,255,255,.6); text-decoration: none; }
.more svg { width: 20px; height: 20px; }
.more.white { background: var(--surface); justify-content: space-between; padding: 0 16px; color: var(--primary-dark);
  font-weight: 700; }
.more.solo { margin-top: 24px; border: 1px solid var(--border); }
.notice { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; margin-top: 20px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pill { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--touch-target);
  background: var(--surface); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; padding: 0 12px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill.off { background: transparent; }

/* 詳細: 練習ごと */
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-btn { font: inherit; font-size: 15px; color: var(--primary-dark); background: none; border: 0; min-height: var(--touch-target);
  padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.jumps { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--space-page)) 4px; padding: 2px var(--space-page) 6px;
  scrollbar-width: none; }
.jumps::-webkit-scrollbar { display: none; }
.jumps .chip { flex: 0 0 auto; white-space: nowrap; }
.block { background: var(--surface); border-radius: var(--radius-card); margin-top: 12px; border: 1px solid var(--border); }
.block summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 16px var(--space-card);
  min-height: 64px; cursor: pointer; }
.block summary::-webkit-details-marker { display: none; }
.block-title { font-family: var(--round); font-weight: 700; font-size: 20px; flex: 1 1 60%; }
.block .chev svg, details .chev svg { transition: transform .2s; }
.block[open] > summary .chev svg { transform: rotate(180deg); }
.block-body { padding: 0 var(--space-card) var(--space-card); }
.box { background: var(--background); border-radius: 14px; padding: 10px 14px; }
.box .lines { gap: 4px; }
.box .line { background: transparent; }
.scales { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.scale-name { font-weight: 700; }
.score { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  overflow-x: auto; }
.score img { display: block; max-width: none; height: 96px; }
.score figcaption { font-size: 13px; color: var(--muted); }

/* 次回までにやること */
.banner { display: flex; gap: 10px; align-items: center; background: var(--primary-soft); border-radius: 16px;
  padding: 14px 16px; margin-top: 18px; }
.banner svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.tasks { list-style: none; padding: 4px var(--space-card); }
.task { display: flex; gap: 14px; padding: 16px 0; align-items: flex-start; }
.task + .task { border-top: 1px solid var(--border); }
.check-form { margin: 0; }
.checkbox { width: var(--touch-target); height: var(--touch-target); border-radius: 12px; border: 2px solid #9aa6a1;
  background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  color: transparent; flex: none; }
.checkbox svg { width: 28px; height: 28px; }
.checkbox[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkbox[aria-busy="true"] { opacity: .6; }
.task-main { flex: 1; min-width: 0; padding-top: 8px; }
.task-text { font-family: var(--round); font-weight: 700; font-size: 18px; line-height: 1.5; }
.error { color: #9c3d2c; font-size: 14px; margin-top: 6px; }
.fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 40px;
  font-family: var(--round); font-weight: 700; font-size: 19px; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary svg { width: 22px; height: 22px; }
.fold[open] summary svg { transform: rotate(180deg); }
.fold .lines { margin-top: 12px; }
.point .lines { padding-right: 70px; }
.point .more { margin-top: 14px; }

/* 設定(本人 2026-10-15): 右上の歯車と、音質の選択 */
.gear { margin-left: auto; width: var(--touch-target); height: var(--touch-target); display: flex; align-items: center;
  justify-content: center; color: var(--text); border-radius: 999px; }
.gear svg { width: 30px; height: 30px; }
.brand .chip.sample + .gear { margin-left: 8px; }
.settings h2 { margin-bottom: 8px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--background); cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--primary); margin: 0; }
.choice:has(input:checked) { background: var(--primary-soft); font-weight: 700; }
.saved { margin-top: 12px; color: var(--primary-dark); font-weight: 700; }

/* 聞き返し(本人 2026-10-15): 行の右の再生ボタンと、画面の下の再生バー */
.line-text { flex: 1; min-width: 0; }
.seek { flex: none; width: 40px; height: 40px; margin: -6px -6px -6px 0; border-radius: 999px; border: 0;
  background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; }
.seek svg { width: 18px; height: 18px; margin-left: 2px; }
.seek.on { background: var(--primary); color: #fff; }
.box .seek { background: var(--surface); }
.player { position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 11;
  display: flex; align-items: center; gap: 10px; background: var(--text); color: #fff; border-radius: 999px;
  padding: 6px 8px; box-shadow: 0 4px 16px rgba(41,61,56,.25); max-width: 536px; margin: 0 auto; }
.player button { width: var(--touch-target); height: var(--touch-target); border-radius: 999px; border: 0;
  background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.player button svg { width: 24px; height: 24px; }
.player .pt { font-variant-numeric: tabular-nums; font-size: 15px; min-width: 44px; }
.player .pt { margin-right: auto; }
/* 進み具合は、再生バーの下の端の細い線(スマホでは横に並べる場所がないため。2026-10-17) */
.pbar { position: absolute; left: 22px; right: 22px; bottom: 3px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.25); overflow: hidden; }
.pfill { display: block; height: 100%; width: 0; background: #fff; }
.qsel { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.qlabel { font-size: 12px; padding: 0 2px 0 8px; color: rgba(255,255,255,.85); white-space: nowrap; }
/* 高・中・低は小さめ(本人 2026-10-15) */
.player .qsel .q { width: 30px; height: 28px; font-size: 13px; font-weight: 700; font-family: var(--round); color: #fff; }
.player .qsel .q.on { background: #fff; color: var(--text); }
/* 音量のつまみは PC だけ(本人 2026-10-15) */
.pvol { display: none; align-items: center; gap: 4px; flex: none; }
.pvol svg { width: 20px; height: 20px; }
.pvol .vx, .pvol.zero .vw { display: none; }
.pvol.zero .vx { display: inline; }
.vol { width: 72px; margin: 0; accent-color: #fff; cursor: pointer; }
@media (hover: hover) and (pointer: fine) and (min-width: 481px) { .pvol { display: flex; } }
@media (max-width: 480px) { .player { gap: 6px; } }
@media (max-width: 360px) { .player .pt { display: none; } }

/* 下のタブ */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -2px 12px rgba(41,61,56,.08);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; justify-content: center;
  text-decoration: none; color: var(--muted); font-size: 14px; }
.tab-icon { position: relative; width: 52px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tab-icon svg { width: 26px; height: 26px; }
.tab.on { color: var(--primary-dark); font-weight: 700; }
.tab.on .tab-icon { background: var(--primary-soft); }
.badge { position: absolute; top: -4px; right: -10px; min-width: 24px; height: 24px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text); font-size: 13px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; padding: 0 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .tabbar, .lesson-nav, .seg2, .topbar .back { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* ▶ の案内(初めて押すまで。2026-10-17) */
.card .play-hint { margin: -4px 0 10px; }
.play-hint { margin: 0 4px 12px; }

/* 見本の札があっても、右上の歯車が画面からはみ出さないように(2026-10-17) */
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .logo svg { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand .chip.sample { font-size: 12px; padding: 2px 8px; min-height: 28px; }
  .brand .chip.sample + .gear { margin-left: 0; }
}

/* 場面の札(どの練習・場面で先生が言ったか。本人 2026-10-18)。長いので文の上の行に出す */
.tag.scene { display: table; margin: 0 0 4px; }

/* 録音を送る(先生。本人 2026-10-18 案 A) */
.upload-go { margin: 16px 0 4px; }
.upload-go svg { width: 22px; height: 22px; margin-right: 6px; }
.upload h2 { margin: 6px 0 10px; }
.upload h2 + .choices { margin-bottom: 14px; }
.file-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.file-pick input { font-size: 16px; }
.upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.upload-progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; }
.upload-progress .fill { display: block; height: 100%; width: 0; background: var(--primary); }
.upload-result.error { color: #9b3b2f; }
h3.sub { font-size: 16px; margin: 14px 0 6px; }

/* 送る前の確認と、送ったあとの取り消し(本人 2026-10-18) */
.confirm-box { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }
.confirm-q { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.confirm-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; }
.confirm-list dt { color: var(--muted); }
.confirm-list dd { margin: 0; word-break: break-all; }
.confirm-list .c-student { font-size: 20px; font-weight: 700; }
.confirm-actions { display: flex; gap: 10px; margin-top: 12px; }
.confirm-actions .btn { flex: 1; }
.upload-line { align-items: center; }
.act-form { flex: none; margin-left: 8px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
/* つなぐ順番(録音が2つ以上に分かれたとき。2026-10-18) */
.order-box { margin: 4px 0 14px; }
.order-box p { margin: 0 0 10px; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.order-list li + li { border-top: 1px solid var(--border); }
.order-list .o-num { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.order-list .o-text { flex: 1; min-width: 0; word-break: break-all; }
.order-list .o-meta { display: block; color: var(--muted); font-size: 14px; }
.order-list .btn.small { flex: none; width: auto; min-width: 44px; min-height: 44px; font-size: 18px; }
.order-list .btn.small:disabled { opacity: .35; cursor: default; }
.c-file ol { margin: 0; padding-left: 1.4em; }
/* レッスンの日は「今日」か「別の日」だけ(2026-10-19) */
.day-choice { display: flex; gap: 14px; flex-wrap: wrap; }
.day-choice label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.day-choice input { width: 20px; height: 20px; }
.c-when .c-date { display: block; margin-top: 6px; font: inherit; min-height: 44px; }
.c-when .c-date[hidden] { display: none; }
/* 同じ日の何回目か */
.datebox .nth { display: block; font-size: 12px; color: var(--muted); }
/* 日付・順番を直す */
.upload-line { flex-wrap: wrap; }
.upload-line .line-text { flex: 1 1 11em; }    /* ボタンが入りきらないときは、ボタンを次の行へ */
.upload-line .act-form { flex: none; margin-left: auto; }
.upload-line .fix { flex-basis: 100%; margin: 4px 0 0 18px; }
.upload-line .fix summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
.fix-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 4px; }
.fix-form label { display: inline-flex; align-items: center; gap: 6px; }
.fix-form input, .fix-form select { font: inherit; min-height: 40px; }
.fix-form .btn.small { width: auto; }

/* 先生の画面: 生徒ごとの状況・名前で探す・レッスンの日時(要件 S12〜S15・S24。2026-10-18) */
.small-link { font-size: 14px; font-weight: 400; margin-left: 8px; }
.student-status + .student-status { margin-top: 10px; }
.student-search { margin-bottom: 10px; }
.c-when { display: flex; gap: 8px; flex-wrap: wrap; }
.c-when input { font-size: 16px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
