:root {
  --bg: #F5F5F7; --card: #FFFFFF; --text: #1D1D1F; --sub: #6E6E73; --line: #D2D2D7; --accent: #0071E3;
  --good: #248A3D; --warn: #C9341F; --chip: #E8E8ED;
  --r: 14px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1C1C1E; --text: #F5F5F7; --sub: #98989D; --line: #38383A; --accent: #0A84FF; --good: #30D158; --warn: #FF6961; --chip: #2C2C2E; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.45; }
button { font: inherit; color: inherit; }
.app { min-height: 100vh; }
main { padding: 16px max(16px, env(safe-area-inset-left)) 96px max(16px, env(safe-area-inset-right)); max-width: 820px; margin: 0 auto; outline: none; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 16px; }
h2 { font-size: 22px; font-weight: 700; margin: 28px 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px 18px; margin: 0 0 12px; }
.sub { color: var(--sub); font-size: 15px; }
.big { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.chip { background: var(--chip); color: var(--sub); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.chip.src { color: var(--accent); }
.fix { border-left: 4px solid var(--accent); }
.good { color: var(--good); } .warn { color: var(--warn); }
ol.drills { margin: 8px 0 0; padding-left: 22px; } ol.drills li { margin: 6px 0; }
.list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.list button { display: flex; width: 100%; min-height: 56px; padding: 10px 18px; border: 0; background: none; text-align: left; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list button:last-child { border-bottom: 0; }
.list .score { font-weight: 700; font-size: 20px; white-space: nowrap; }
.seg { display: inline-flex; background: var(--chip); border-radius: 10px; padding: 2px; margin: 0 0 12px; }
.seg button { border: 0; background: none; padding: 8px 14px; min-height: 36px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
table.sc { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; table-layout: fixed; }
table.sc th:first-child { width: 3.2em; }
table.sc th, table.sc td { padding: 6px 2px; border-bottom: 1px solid var(--line); }
table.sc th { color: var(--sub); font-weight: 500; }
.scroll { overflow-x: auto; }
.link { border: 0; background: none; color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tabs .brand { display: none; }
.tab { flex: 1; border: 0; background: none; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--sub); cursor: pointer; }
.tab .ico { font-size: 20px; line-height: 1; }
.tab.on { color: var(--accent); }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet[hidden] { display: none; }
.sheet-card { background: var(--bg); width: 100%; max-width: 820px; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 8px 16px 32px; animation: up .22s ease-out; }
.sheet-bar { display: flex; justify-content: flex-end; position: sticky; top: 0; background: var(--bg); }
@keyframes up { from { transform: translateY(24px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet-card { animation: none; } }
svg.spark { width: 100%; height: 120px; display: block; }
svg.spark .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; }
svg.spark .dot { fill: var(--accent); }
svg.spark text { fill: var(--sub); font-size: 11px; }
.guide td { padding: 6px 8px; vertical-align: top; } .guide { border-collapse: collapse; width: 100%; font-size: 15px; }
.term { font-weight: 600; }
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 240px 1fr; }
  .tabs { position: sticky; top: 0; height: 100vh; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 24px 12px; border-top: 0; border-right: 1px solid var(--line); }
  .tabs .brand { display: block; font-weight: 700; font-size: 20px; padding: 0 12px 16px; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 17px; min-height: 48px; padding: 0 12px; border-radius: 10px; }
  .tab.on { background: var(--chip); }
  main { padding-bottom: 40px; }
  .sheet { align-items: center; }
  .sheet-card { border-radius: 16px; max-width: 720px; }
}

/* V2 */
.chip.low { color: var(--warn); }
.small { font-size: 13px; }
.need { color: var(--warn); font-weight: 600; }
h2.in { margin: 2px 0 10px; font-size: 22px; }
.brief { border-left: 4px solid var(--good); }
ul.check { list-style: none; margin: 0; padding: 0; }
ul.check li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.check li:last-child { border-bottom: 0; }
ul.check .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--good); border-radius: 6px; margin-top: 2px; }
ul.check .rule { font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis .card { margin: 0; padding: 12px; }
.kv { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
svg.spark.score { height: auto; aspect-ratio: 480 / 230; }
svg.spark .grid { stroke: var(--line); stroke-width: 1; }
svg.spark .tick { fill: var(--sub); font-size: 12px; }
svg.spark .val.best { fill: var(--good); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 6px; align-items: center; }
.legend .lg { display: inline-block; vertical-align: middle; margin-right: 5px; }
.legend .lg.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.legend .lg.dot.best { background: var(--good); }
.legend .lg.dash { width: 18px; border-top: 2px dashed var(--sub); }
svg.spark .avg { stroke: var(--sub); stroke-dasharray: 5 5; stroke-width: 1.5; }
svg.spark .avgl { fill: var(--sub); font-size: 13px; }
svg.spark .val { fill: var(--text); font-size: 14px; font-weight: 600; }
svg.spark.score text { font-size: 13px; }
svg.spark.score .val { font-size: 14px; }
svg.spark .dot.best { fill: var(--good); }
.lead { font-size: 19px; font-weight: 600; margin: 6px 0; }
.minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.mini { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.mv { font-size: 22px; font-weight: 700; }
@media (min-width: 700px) { .minis { grid-template-columns: repeat(4, 1fr); } }
.bars { margin: 4px 0 8px; }
.bar-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 10px; align-items: center; padding: 6px 0; }
.bar-row .bv, .bar-row .need, .bar-row .small { grid-column: 2; }
svg.bar { width: 100%; height: 14px; display: block; }
svg.bar .track { fill: var(--chip); }
svg.bar .fill { fill: var(--accent); }
svg.bar .fill.top { fill: var(--warn); }
table.sc.wide { table-layout: auto; }
table.sc.wide th:first-child { width: auto; text-align: left; }
details.acc summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details.acc .ref { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.best-badge { display: inline-block; background: var(--good); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }

/* SHARE */
body.gate .tabs { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
input.code { width: 100%; font: inherit; font-size: 22px; letter-spacing: 0.12em; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); text-transform: uppercase; }
button.primary, button.danger { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 12px; font-weight: 600; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; }
button.primary:disabled { opacity: .45; cursor: default; }
button.danger { background: none; color: var(--warn); border: 1px solid var(--warn); }

/* SWING */
.pick { border-top: 1px solid var(--line); padding: 10px 0; }
.pick h3 { margin: 0; }
.filebtn { display: block; margin-top: 8px; min-height: 48px; line-height: 48px; text-align: center; border: 1px dashed var(--accent); border-radius: 12px; color: var(--accent); font-weight: 600; cursor: pointer; }
.filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
progress#sw-bar { width: 100%; height: 10px; margin-top: 10px; accent-color: var(--accent); }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.frames figure { margin: 0; } .frames img { width: 100%; border-radius: 8px; display: block; background: var(--chip); }
.frames figcaption { font-size: 12px; color: var(--sub); text-align: center; margin-top: 2px; }
@media (max-width: 520px) { .frames { grid-template-columns: repeat(2, 1fr); } }
h3.mt { margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; } .switch input { width: 22px; height: 22px; }

/* fixes & drills in red (owner 2026-11-26) — --red passes 4.5:1 on the card in light and dark (tests/test_contrast.py) */
:root { --red: #C4161C; --red-bg: #FDECEC; }
@media (prefers-color-scheme: dark) { :root { --red: #FF7B72; --red-bg: #3A1D1D; } }
.chip.red { background: var(--red-bg); color: var(--red); font-weight: 700; }
.fixred, h3.fixred { color: var(--red); font-weight: 700; }
.drillred { color: var(--red); margin-top: 4px; }
ol.fixes li { margin: 10px 0; }
ul.meas { margin: 4px 0 0; padding-left: 20px; font-size: 15px; }
.modebar { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; min-height: 48px; cursor: pointer; font-size: 16px; }
.modeline { margin-top: 10px; font-size: 15px; }
.card.mind { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; background: var(--card); }
.mind-text { font-size: 22px; line-height: 1.5; font-weight: 500; margin: 6px 0; letter-spacing: -0.01em; }

/* REDESIGN 2026-11-26 (owner: "애플처럼 심플하고 예쁘게", 8-bit pixel art per situation) */
:root { --r: 20px; }
main { padding-top: max(20px, env(safe-area-inset-top)); }
.date { color: var(--sub); font-size: 13px; font-weight: 600; text-transform: none; margin-top: 8px; }
h1 { margin: 0 0 14px; }
h2 { font-size: 20px; letter-spacing: -0.01em; }
.card { padding: 18px 20px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .card { box-shadow: none; } }
.seg { display: flex; width: 100%; }
.seg button { flex: 1; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2.in { margin: 0; font-size: 19px; line-height: 1.3; }
svg.px { display: block; flex: none; image-rendering: pixelated; }
svg.px.ico { width: 40px; height: 40px; background: var(--chip); border-radius: 10px; padding: 4px; }
svg.px.hero { width: 96px; height: 96px; margin: 4px auto 10px; }
.card.empty { text-align: center; }
.brief { border-left: 0; }
.fix { border-left: 0; }
ul.check .box { border-radius: 50%; }
.kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kpis .card { padding: 12px 12px 10px; border-radius: 16px; }
.kpis .card .sub { font-size: 13px; line-height: 1.3; min-height: 2.6em; }
.kpis .kv { font-size: 24px; }
.kpis .chip { font-size: 12px; padding: 2px 7px; border-radius: 8px; }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpis .sub.small { font-size: 12px; } }
.tab svg.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on svg.ico { stroke-width: 2.2; }

/* mind card: soft pastel background by mood (text contrast checked in tests/test_contrast.py) */
:root {
  --mood-sky: linear-gradient(140deg, #DCEBFF 0%, #EEF4FF 55%, #F3EEFF 100%);
  --mood-mint: linear-gradient(140deg, #D8F5E6 0%, #ECFAF2 55%, #EAF6FF 100%);
  --mood-peach: linear-gradient(140deg, #FFE5D4 0%, #FFF1E6 55%, #FFF8DC 100%);
  --mood-lavender: linear-gradient(140deg, #E7E0FF 0%, #F2EEFF 55%, #FDEEF6 100%);
  --mood-sand: linear-gradient(140deg, #F8EBCF 0%, #FBF4E4 55%, #EEF7E6 100%);
  --mood-rose: linear-gradient(140deg, #FFE0EA 0%, #FFF0F4 55%, #EFEAFF 100%);
  --mind-text: #1D1D1F; --mind-sub: #4A4A55;
}
@media (prefers-color-scheme: dark) { :root {
  --mood-sky: linear-gradient(140deg, #1C2D4A 0%, #1E2538 55%, #2A2240 100%);
  --mood-mint: linear-gradient(140deg, #163A2C 0%, #1A2E28 55%, #1B2A3A 100%);
  --mood-peach: linear-gradient(140deg, #43281A 0%, #3A2A1F 55%, #3A321A 100%);
  --mood-lavender: linear-gradient(140deg, #2C2450 0%, #282338 55%, #3A2233 100%);
  --mood-sand: linear-gradient(140deg, #3D3220 0%, #332D21 55%, #253321 100%);
  --mood-rose: linear-gradient(140deg, #45202E 0%, #3A2229 55%, #2A2442 100%);
  --mind-text: #F5F5F7; --mind-sub: #C7C7CF;
} }
.card.mind { padding: 18px 20px 16px; color: var(--mind-text); box-shadow: none; border-radius: 24px; }
.card.mind.mood-sky { background: var(--mood-sky); } .card.mind.mood-mint { background: var(--mood-mint); }
.card.mind.mood-peach { background: var(--mood-peach); } .card.mind.mood-lavender { background: var(--mood-lavender); }
.card.mind.mood-sand { background: var(--mood-sand); } .card.mind.mood-rose { background: var(--mood-rose); }
.mind-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--mind-sub); }
.mind-label { font-weight: 600; }
.mind-body { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; }
svg.px.mind-px { width: 84px; height: 84px; background: rgba(255,255,255,.55); border-radius: 18px; padding: 8px; }
@media (prefers-color-scheme: dark) { svg.px.mind-px { background: rgba(255,255,255,.10); } }
.card.mind .mind-text { font-size: 21px; line-height: 1.45; font-weight: 600; margin: 0; letter-spacing: -0.015em; }
.mind-n { font-size: 13px; color: var(--mind-sub); }
@media (max-width: 380px) { svg.px.mind-px { width: 64px; height: 64px; } .card.mind .mind-text { font-size: 19px; } }

/* idle animation — off under reduced motion */
.px-drift { animation: px-drift 3.2s steps(3) infinite alternate; }
.px-wave { animation: px-wave 0.9s steps(1) infinite; }
.px-bob { animation: px-bob 1.2s steps(1) infinite; }
.px-blink { animation: px-blink 1.6s steps(1) infinite; }
.px-roll { animation: px-roll 2.4s steps(4) infinite; }
.px-drop { animation: px-drop 0.9s steps(2) infinite; }
@keyframes px-drift { from { transform: translateX(0); } to { transform: translateX(-3px); } }
@keyframes px-wave { 50% { transform: translateY(1px); } }
@keyframes px-bob { 50% { transform: translateY(1px); } }
@keyframes px-blink { 50% { opacity: .25; } }
@keyframes px-roll { from { transform: translateX(0); } to { transform: translateX(4px); } }
@keyframes px-drop { from { transform: translateY(0); } to { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .px-drift, .px-wave, .px-bob, .px-blink, .px-roll, .px-drop { animation: none; } }

/* chip text: readable on the chip grey (reviewer1 2026-11-26: --sub on --chip was 4.15:1 light) */
:root { --chip-text: #56565B; --chip-low: #B3261E; }
@media (prefers-color-scheme: dark) { :root { --chip-text: #AEAEB2; --chip-low: #FF7B72; } }
.chip { color: var(--chip-text); }
.chip.low { color: var(--chip-low); }

/* mind card carousel (owner 2026-11-26): horizontal swipe only on the rail; vertical page scroll passes through */
.mind-wrap { margin: 0 -16px 14px; }
.mind-rail { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y; padding: 0 16px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.mind-rail::-webkit-scrollbar { display: none; }
.mind-rail > .card.mind { flex: 0 0 86%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: default; }
@media (min-width: 700px) { .mind-rail > .card.mind { flex-basis: 70%; } }
.mind-dots { display: flex; justify-content: center; gap: 0; margin-top: 0; min-height: 44px; align-items: center; }
.mind-dots .dot { width: 28px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.mind-dots .dot::after { content: ''; position: absolute; left: 11px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.mind-dots .dot.on::after { background: var(--text); width: 16px; left: 6px; border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) { .mind-rail { scroll-behavior: smooth; } }
:root { --dot: #86868B; } @media (prefers-color-scheme: dark) { :root { --dot: #6E6E73; } }

/* phone-width tables (owner 2026-11-26 '글자가 겹쳐서 보기 힘듬') */
@media (max-width: 699px) { .only-wide { display: none; } }
@media (min-width: 700px) { .only-phone { display: none; } }
.bucket-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }
.bucket { background: var(--bg); border-radius: 16px; padding: 12px 14px; border: 2px solid transparent; }
.bucket.best { border-color: var(--good); }
.bucket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.bucket-head .chips { margin: 0; }
.bt { font-weight: 700; font-size: 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tile { background: var(--card); border-radius: 12px; padding: 8px 10px; }
.tile .tv { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tile.hi .tv { color: var(--good); }
.tile .sub.small.warn { color: var(--warn); }
table.sc.kv { table-layout: auto; }
table.sc.kv th:first-child { width: auto; text-align: left; overflow-wrap: anywhere; word-break: keep-all; min-width: 5.5em; max-width: 9em; font-size: 13px; }

/* friend version (dcjc-golf-coach) */
.notice { border-left: 4px solid var(--accent); }
.btn { border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; min-height: 48px; padding: 0 18px; cursor: pointer; }
.btn.ghost { background: var(--chip); color: var(--text); }
.btn.danger { background: var(--warn); color: #fff; }
.btn:disabled { opacity: .45; }
.btn.file { display: inline-flex; align-items: center; }
.kpis .card { padding: 12px; }
.ocrchk { margin-top: 8px; padding: 8px; border-radius: 10px; background: var(--chip); }
.ocrchk.done { opacity: .7; }
.crops { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.crop { margin: 0; text-align: center; }
.crop img { display: block; height: 66px; border-radius: 6px; background: #fff; }
.crop figcaption { font-size: 12px; color: var(--sub); }
progress { height: 8px; width: 100%; }
.kpis .big { font-size: 28px; }
.kpis .big .sub { font-size: 13px; }
@media (max-width: 420px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
label.f { display: block; margin: 10px 0 4px; color: var(--sub); font-size: 15px; }
input.in, select.in { font: inherit; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--card); color: var(--text); }
.hole { border-bottom: 1px solid var(--line); padding: 10px 0; }
.hole:last-child { border-bottom: 0; }
.hole .hn { font-weight: 700; min-width: 3.2em; }
.step { display: inline-flex; align-items: center; gap: 6px; }
.step button { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 22px; cursor: pointer; }
.step output { min-width: 2.2em; text-align: center; font-weight: 700; font-size: 20px; }
.hole .lbl { color: var(--sub); font-size: 13px; display: block; }
.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-items: center; margin-top: 6px; }
.pars .lbl.in { display: inline; align-self: center; margin-right: 4px; }
.tee { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tee button { min-height: 40px; min-width: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; }
.tee button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pars { display: inline-flex; gap: 4px; }
.pars button { min-width: 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.pars button.on { background: var(--text); color: var(--bg); }
.err { color: var(--warn); font-size: 14px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 30; font-size: 15px; }

/* APPLE REDESIGN for the friend app (CEO/owner 2026-11-26 '이것도 ui를 좀 예쁘고 애플처럼'): same tokens as the owner app,
   stacked stat cards on phones, grouped action list, every tap target >= 44px */
.seg button { min-height: 44px; }
.tee button, .pars button { min-height: 44px; min-width: 44px; }
.tee button { min-width: 56px; }
details.acc summary { min-height: 44px; display: flex; align-items: center; }
.group { background: var(--card); border-radius: var(--r); overflow: hidden; margin: 0 0 14px; }
.group .act { display: flex; width: 100%; min-height: 64px; padding: 10px 16px; border: 0; background: none; text-align: left; align-items: center; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text); font: inherit; }
.group .act:last-child { border-bottom: 0; }
.group .act:active, .list button:active { background: var(--chip); }
.act-l { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.act-l .sub.small { font-weight: 400; }
.chev { color: var(--sub); font-size: 24px; line-height: 1; }
.hero-stat .big { font-size: 52px; }
.hero-stat .unit { font-size: 20px; font-weight: 600; color: var(--sub); margin-left: 4px; letter-spacing: 0; }
.card .card-head h2.in .fixred { color: var(--red); }
p.lead.fixred { margin: 4px 0 8px; }
ol.drills.fixes { padding-left: 20px; }
.list button > span:first-child { min-width: 0; }
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; gap: 8px; }
  .kpis .card { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .kpis .card > .sub:first-child { grid-column: 1; min-height: 0; font-size: 15px; color: var(--text); font-weight: 600; }
  .kpis .card > .big, .kpis .card > .need { grid-column: 2; grid-row: 1; text-align: right; }
  .kpis .card > .chips, .kpis .card > .sub.small { grid-column: 1 / -1; }
}
.bucket-list .tiles { grid-template-columns: repeat(3, 1fr); }
.bucket-list .tile .tv { font-size: 20px; }
.mind-dots .dot { width: 44px; }
.mind-dots .dot::after { left: 19px; }
.mind-dots .dot.on::after { left: 14px; }
.link { min-width: 44px; }
.mind-text, .lead, h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
