/* Layout: 한 장짜리 운동 기록장 — 상단 요약(주차·연속일), 요일 탭, 오늘 체크리스트(그림 펼침), 4주 기록 달력, 계획표 */
:root {
  --bg: #EEF1F4; --surface: #FFFFFF; --ink: #15212C; --muted: #5B6875; --line: #D5DCE3;
  --accent: #2D5BE3; --accent-soft: #E3EAFD; --done: #17905F; --done-soft: #DDF2E8; --warn: #B4610E;
  --fig: #15212C; --fig-far: #A3AEB9; --prop: #BCC5CE; --prop-fill: #E6EBF0;
  --display: "Black Han Sans", "Noto Sans KR", system-ui, sans-serif;
  --body: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F151B; --surface: #18212A; --ink: #E7EDF3; --muted: #93A1AE; --line: #2A3540;
  --accent: #7C9BFF; --accent-soft: #1F2A48; --done: #3FCB8F; --done-soft: #15332A; --warn: #E9A25A;
  --fig: #E7EDF3; --fig-far: #5F6E7C; --prop: #46535F; --prop-fill: #222D37; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F151B; --surface: #18212A; --ink: #E7EDF3; --muted: #93A1AE; --line: #2A3540;
  --accent: #7C9BFF; --accent-soft: #1F2A48; --done: #3FCB8F; --done-soft: #15332A; --warn: #E9A25A;
  --fig: #E7EDF3; --fig-far: #5F6E7C; --prop: #46535F; --prop-fill: #222D37; color-scheme: dark; }
body { margin: 0; -webkit-text-size-adjust: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; }
.wrap { max-width: 860px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 64px; display: flex; flex-direction: column; gap: 28px; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }
button:focus-visible, summary:focus-visible, input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.head { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.chip b { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat .big { font-family: var(--display); font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .big small { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 3px; }
.saveinfo { font-size: 12px; color: var(--muted); }

/* day tabs */
.tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 8px 2px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab .d { font-weight: 700; }
.tab .t { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tab .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: transparent; }
.tab .mark.part { border-color: var(--accent); }
.tab .mark.full { background: var(--done); border-color: var(--done); color: var(--surface); }
.tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.tab .today { font-size: 10px; color: var(--accent); font-weight: 700; height: 14px; line-height: 14px; }

/* day panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-top { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.panel-top .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bar { height: 10px; border-radius: 999px; background: var(--prop-fill); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.bar.full > i { background: var(--done); }
.banner { display: none; background: var(--done-soft); color: var(--done); font-weight: 700; padding: 10px 14px; border-radius: 10px; }
.banner.on { display: block; }
.rules { display: flex; flex-wrap: wrap; gap: 6px; }
.locked { background: var(--accent-soft); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-size: 13px; }

.items { list-style: none; margin: 0; padding: 0; }
.item { border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.check { position: relative; flex: none; display: block; width: 30px; height: 30px; }
.check input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check .box { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--prop); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check .box svg { opacity: 0; transition: opacity .15s; }
.check input:checked + .box { background: var(--done); border-color: var(--done); }
.check input:checked + .box svg { opacity: 1; }
.check input:disabled { cursor: not-allowed; }
.check input:disabled + .box { opacity: .45; }
.name-btn { all: unset; cursor: pointer; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.name-btn .nm { font-weight: 700; }
.item.done .name-btn .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--done); }
.name-btn .dose { font-size: 13px; color: var(--accent); font-weight: 500; }
.kind { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--muted); white-space: nowrap; }
.chev { flex: none; color: var(--muted); transition: transform .2s; }
.item.open .chev { transform: rotate(180deg); }

.how { display: none; padding: 4px 18px 20px; gap: 14px; flex-direction: column; }
.item.open .how { display: flex; }
.frames { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.frame { background: var(--bg); border-radius: 12px; padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.frame svg { width: 100%; height: auto; max-width: 260px; display: block; }
.frame .cap { font-size: 12px; color: var(--muted); font-weight: 500; }
.arrow { color: var(--accent); }
.play { all: unset; cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 700; align-self: flex-start; padding: 4px 0; }
.play:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.anim { display: none; justify-content: center; background: var(--bg); border-radius: 12px; padding: 6px; }
.anim svg { width: 100%; max-width: 360px; height: auto; }
.item.playing .frames { display: none; }
.item.playing .anim { display: flex; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 6px; }
.steps li { counter-increment: s; display: flex; gap: 10px; }
.steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; font-size: 13px; }
.note { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.note b { display: block; font-size: 12px; margin-bottom: 2px; }
.note.ok b { color: var(--done); } .note.no b { color: var(--warn); } .note.easy b { color: var(--accent); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dh { text-align: center; font-size: 12px; color: var(--muted); }
.cell { aspect-ratio: 1; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.cell.out { background: transparent; border-style: dashed; color: var(--muted); opacity: .5; }
.cell.part { background: var(--accent-soft); border-color: var(--accent); }
.cell.full { background: var(--done); border-color: var(--done); color: var(--surface); font-weight: 700; }
.cell.today { box-shadow: 0 0 0 2px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
.legend i.part { background: var(--accent-soft); border-color: var(--accent); }
.legend i.full { background: var(--done); border-color: var(--done); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
tr.cur td { background: var(--accent-soft); }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.reset { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; }
.confirm { display: none; gap: 8px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.confirm.on { display: flex; }
.confirm button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 2px 10px; cursor: pointer; }
.confirm .danger { color: var(--warn); border-color: var(--warn); }
@media (max-width: 520px) {
  .tab .t { display: none; }
  .item-row { padding: 12px 14px; gap: 10px; }
  .how { padding: 4px 14px 18px; }
  .kind { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bar > i, .chev, .check .box { transition: none; } }
.ghost { cursor: pointer; font-size: 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 12px; }
.ghost:focus-visible, .ghost:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* 허브로 돌아가기 */
.hub-back { align-self: flex-start; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.hub-back:hover { color: var(--ink); border-color: var(--accent); }
@media (display-mode: standalone) { .hub-back { display: none; } }

/* 계정 동기화 */
.saveinfo[data-sync="ok"] { color: var(--done); }
.saveinfo[data-sync="login"], .saveinfo[data-sync="offline"] { color: var(--warn); }
.sync-login { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; }

/* 영상처럼 보기 플레이어 */
.vbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vbtn { all: unset; box-sizing: border-box; cursor: pointer; font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); min-height: 44px; display: inline-flex; align-items: center; }
.vbtn.primary { background: var(--accent); color: var(--surface); }
.vbtn:focus-visible, .pbtn:focus-visible, .yt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vhint { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.item.playing .anim { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 8px; }
.stage { position: relative; background: var(--surface); border-radius: 10px; overflow: hidden; transition: background .3s; }
.stage.resting { background: var(--done-soft); }
.stage svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }
.ov { position: absolute; pointer-events: none; font-variant-numeric: tabular-nums; }
.ov.tl { top: 8px; left: 10px; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 2px 8px; border-radius: 6px; }
.ov.tr { top: 8px; right: 10px; font-size: 12px; color: var(--muted); }
.ov.tr:empty, .ov.tl:empty, .ov.cap:empty { display: none; }
.ov.big { right: 12px; bottom: 30px; font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); opacity: 0; transition: opacity .2s; }
.ov.big.on { opacity: .9; }
.ov.cap { left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent); border-radius: 8px; padding: 3px 6px; }
.ov.fin { inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); pointer-events: auto; text-align: center; padding: 12px; }
.ov.fin.on { display: flex; }
.ov.fin b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--done); }
.ov.fin span { font-size: 13px; color: var(--muted); }
.pbar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pbar > i { display: block; height: 100%; width: 0; background: var(--accent); }
.pctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pctl .sp { flex: 1; }
.pbtn { all: unset; box-sizing: border-box; cursor: pointer; font-size: 13px; font-weight: 700; padding: 8px 12px; min-height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; }
.pbtn:disabled { opacity: .45; cursor: default; }
.pbtn.primary { background: var(--done); border-color: var(--done); color: var(--surface); margin-top: 4px; }
.yt { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 8px 4px; }
@media (max-width: 420px) { .pctl .sp { display: none; } .yt { flex-basis: 100%; } .ov.big { font-size: 36px; } }
.ov.cap { position: static; display: block; margin: 0 8px 8px; min-height: 1.4em; }
.ov.big { bottom: auto; top: 34px; }

/* ===== v2.1 휴대폰 가독성 ===== */
:root { --track: #DDE3EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --track: #34424F; } }
:root[data-theme="dark"] { --track: #34424F; }
.bar, .pbar { background: var(--track); }
.lead b { color: var(--ink); font-weight: 700; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }

/* 요일 탭: 오늘·날짜·진행 표시를 또렷하게 */
.tab { gap: 3px; padding: 6px 2px 10px; min-height: 92px; }
.tab .today { height: 18px; line-height: 18px; font-size: 11px; padding: 0 7px; border-radius: 999px; }
.tab.is-today .today { background: var(--accent); color: var(--surface); }
.tab.is-today:not([aria-selected="true"]) { border-color: var(--accent); }
.tab .d { font-size: 16px; line-height: 1.2; }
.tab .dn { font-size: 11px; color: var(--muted); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tab .mark { width: 26px; height: 26px; border-color: var(--prop); font-size: 14px; font-weight: 700; margin-top: 2px; }
.tab .mark.part { border-color: var(--accent); background: conic-gradient(var(--accent) var(--p, 50%), transparent 0); }
.tab.future { background: transparent; }
.tab.future .d, .tab.future .dn { color: var(--muted); }
.tab[aria-selected="true"] .d { color: var(--accent); }

/* 4주 계획: 표 대신 주차 카드 */
.weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.wk { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wk.cur { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.wk.past { opacity: .7; }
.wk-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-n { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.wk-ph { font-size: 13px; color: var(--muted); font-weight: 700; }
.wk-now, .wk-done { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.wk-now { background: var(--accent); color: var(--surface); }
.wk-done { border: 1px solid var(--line); color: var(--muted); }
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; }
.wk-grid dt { font-size: 11px; color: var(--muted); }
.wk-grid dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.wk-goal { font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }

/* 휴대폰: 위쪽을 줄여서 오늘 운동이 첫 화면에 보이게 */
@media (max-width: 520px) {
  .wrap { gap: 18px; padding-block: 14px 48px; }
  .head { gap: 8px; }
  .hub-back { padding: 2px 10px; font-size: 12px; }
  h1 { font-size: 28px; }
  .chips { gap: 4px; }
  .chip { font-size: 12px; padding: 1px 10px; }
  .lead { font-size: 13px; line-height: 1.55; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stat { padding: 8px 6px 9px; align-items: center; text-align: center; border-radius: 12px; gap: 0; }
  .stat .lbl { font-size: 11px; white-space: nowrap; }
  .stat .big { font-size: 24px; }
  .stat .big small { font-size: 11px; margin-left: 1px; }
  .stat .sub { display: none; }
  .tabs { gap: 4px; }
  .tab { min-height: 86px; border-radius: 10px; }
  .tab .today { font-size: 10px; padding: 0 5px; }
  .panel-top { padding: 14px 14px 12px; gap: 8px; }
  #p-title { font-size: 22px !important; }
  .item-row { padding: 12px 14px; min-height: 64px; }
  .name-btn .nm { font-size: 16px; }
  .name-btn .dose { font-size: 14px; }
  .check, .check .box { width: 32px; height: 32px; }
  h2 { font-size: 20px; }
  .card { padding: 16px 14px; }
}
@media (max-width: 520px) { .today-head .saveinfo { flex: 1 1 auto; } .sync-login { padding: 2px 10px; } }

/* ===== 세트 타이머 (휴대폰 하단 고정) ===== */
.tbtn { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; background: var(--surface); }
.tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.item.timing { box-shadow: inset 4px 0 0 var(--accent); }
.item.timing .tbtn { background: var(--accent); border-color: var(--accent); }
.vbtn.tmr { border-color: var(--done); color: var(--done); }
.ivbtn { all: unset; box-sizing: border-box; cursor: pointer; font-size: 14px; font-weight: 700; padding: 8px 14px; min-height: 40px; border-radius: 999px; background: var(--done); color: var(--surface); display: inline-flex; align-items: center; }
.ivbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.t-on { padding-bottom: 300px; }
body.t-on.t-mini { padding-bottom: 96px; }
.tsheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 50; width: min(100%, 560px); box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.18); padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.tsheet[hidden] { display: none; }
.t-top { display: flex; align-items: center; gap: 8px; }
.t-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.t-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-mini-time { display: none; font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); }
.tsheet.mini .t-mini-time { display: block; }
.tsheet.mini { gap: 6px; padding-top: 10px; }
.t-btn.t-icon { flex: none; width: 40px; height: 40px; padding: 0 !important; justify-content: center; font-size: 16px !important; }
.t-dots { display: flex; gap: 6px; }
.t-dots i { flex: 1; height: 6px; border-radius: 999px; background: var(--track); }
.t-dots i.on { background: var(--done); }
.t-dots i.cur { background: var(--accent); }
.t-mid { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.t-label { font-size: 16px; font-weight: 700; }
.t-time { font-family: var(--display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--accent); }
.t-hint { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.t-bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.t-bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.tsheet.ph-rest .t-time, .tsheet.ph-switch .t-time { color: var(--done); }
.tsheet.ph-rest .t-bar > i, .tsheet.ph-switch .t-bar > i { background: var(--done); }
.tsheet.ph-rest { background: var(--done-soft); }
.tsheet.ph-done .t-time { color: var(--done); font-size: 44px; }
.tsheet.paused .t-time { opacity: .5; }
.t-main { display: flex; flex-direction: column; gap: 8px; }
.t-row { display: flex; gap: 8px; flex-wrap: wrap; }
.t-row .t-btn { flex: 1; justify-content: center; }
.t-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; }
.t-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--surface); min-height: 54px; font-size: 17px; }
.t-btn.primary.big { min-height: 64px; font-size: 20px; }
.tsheet.ph-rest .t-btn.primary { background: var(--done); border-color: var(--done); }
.t-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t-btn:active { transform: scale(.98); }
@media (max-width: 380px) { .t-time { font-size: 54px; } .t-row .t-btn { font-size: 13px; padding: 8px 6px; } }
