/* Level 2.2 prototype · shared by phone.html, ipad.html, laptop.html */
:root {
  /* Tangerine palette from the 2.1 Figma: orange is the main color, blue marks today and the PRO Advisor, red marks the review and whatever is weak. */
  --stage: #EFE9E2; --bg: #FFFFFF; --surface: #F8F4EF; --card: #FFFFFF;
  --ink: #1B1410; --muted: #8C827A; --faint: #BDB4AB; --line: #EEE8E1; --rest: #E4E1DD;
  --or: #FF8A00; --tan: #D56919; --or-soft: #FFF1DF; --on-or: #1B1410;
  --peel: #AE2905; --peel-ink: #AE2905; --peel-soft: #FBE9E3;
  --blue: #001B9A; --blue-ink: #001B9A; --blue-soft: #E7EAF7; --on-blue: #FFFFFF;
  --h0: #F4EEE7; --h1: #FFDDB4; --h2: #FFBB6B; --h3: #FF8A00; --h4: #D56919;
  --bezel: #1C1714; --scrim: rgba(27, 20, 16, .42); --glass: rgba(255, 255, 255, .88);
  --shadow: 0 40px 80px -30px rgba(90, 50, 10, .4), 0 0 0 1px rgba(0, 0, 0, .05);
  --logo-filter: none; --logo-blend: multiply;
  --f: "Manrope", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --barh: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #0B0908; --bg: #141110; --surface: #1F1B18; --card: #26211D;
    --ink: #F3EEE9; --muted: #A89E95; --faint: #6E655E; --line: #2E2824; --rest: #2A2622;
    --or: #FF8A00; --tan: #FF9D3D; --or-soft: rgba(255, 138, 0, .15); --on-or: #1B1410;
    --peel: #D2462A; --peel-ink: #FF8A70; --peel-soft: rgba(210, 70, 42, .18);
    --blue: #2E4BD8; --blue-ink: #9DAEFF; --blue-soft: rgba(77, 107, 255, .18); --on-blue: #FFFFFF;
    --h0: #2A241F; --h1: #563817; --h2: #8F5513; --h3: #C96A0A; --h4: #FF8A00;
    --bezel: #2B2723; --scrim: rgba(0, 0, 0, .58); --glass: rgba(38, 33, 29, .92);
    --shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
    --logo-filter: invert(1); --logo-blend: screen;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stage: #0B0908; --bg: #141110; --surface: #1F1B18; --card: #26211D;
  --ink: #F3EEE9; --muted: #A89E95; --faint: #6E655E; --line: #2E2824; --rest: #2A2622;
  --or: #FF8A00; --tan: #FF9D3D; --or-soft: rgba(255, 138, 0, .15); --on-or: #1B1410;
  --peel: #D2462A; --peel-ink: #FF8A70; --peel-soft: rgba(210, 70, 42, .18);
  --blue: #2E4BD8; --blue-ink: #9DAEFF; --blue-soft: rgba(77, 107, 255, .18); --on-blue: #FFFFFF;
  --h0: #2A241F; --h1: #563817; --h2: #8F5513; --h3: #C96A0A; --h4: #FF8A00;
  --bezel: #2B2723; --scrim: rgba(0, 0, 0, .58); --glass: rgba(38, 33, 29, .92);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  --logo-filter: invert(1); --logo-blend: screen;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--stage); color: var(--ink); font: 14px/1.5 var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button[disabled] { cursor: not-allowed; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.logo { height: 20px; width: auto; display: block; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
.faint { color: var(--faint); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- prototype bar ---------- */
.pbar { position: fixed; inset: 0 0 auto; height: var(--barh); z-index: 10; display: flex; align-items: center; gap: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); }
.pb-home { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 12.5px; white-space: nowrap; flex: none; }
.pb-home .logo { height: 16px; }
.pb-scroll { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.pb-scroll::-webkit-scrollbar { display: none; }
.seg { display: flex; flex: none; background: var(--surface); border-radius: 999px; padding: 3px; }
.seg a { padding: 5px 13px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.pb-div { width: 1px; height: 26px; background: var(--line); flex: none; }
.scenes { display: flex; gap: 6px; flex: none; }
.scene { display: flex; flex-direction: column; padding: 4px 11px 5px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; line-height: 1.3; }
.scene b { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.scene b i { font-size: 10px; font-style: normal; width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); color: var(--muted); }
.scene small { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.scene.on { border-color: var(--or); background: var(--or-soft); }
.scene.on b i { background: var(--or); color: var(--on-or); }
.pb-pro { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.pb-pro i { width: 26px; height: 16px; border-radius: 99px; background: var(--rest); position: relative; transition: background .2s; }
.pb-pro i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; transition: transform .2s; }
.pb-pro.on { color: var(--blue-ink); border-color: var(--blue-soft); background: var(--blue-soft); }
.pb-pro.on i { background: var(--blue); }
.pb-pro.on i::after { transform: translateX(10px); }
.pb-reset { flex: none; font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); white-space: nowrap; }

/* ---------- stage + devices ---------- */
.stage { position: fixed; top: var(--barh); left: 0; right: 0; bottom: 0; display: grid; place-items: center; }
.fit { position: relative; }
.device { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
[data-device="phone"] .device { width: 417px; height: 876px; padding: 12px; border-radius: 60px; background: var(--bezel); box-shadow: var(--shadow); }
[data-device="tablet"] .device { width: 1234px; height: 874px; padding: 20px; border-radius: 44px; background: var(--bezel); box-shadow: var(--shadow); }
[data-device="laptop"] .device { width: 1440px; height: 900px; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); isolation: isolate; }
[data-device="phone"] .screen { border-radius: 48px; }
[data-device="tablet"] .screen { border-radius: 24px; }
body.bleed .stage { display: block; }
body.bleed .fit { width: 100%; height: 100%; }
body.bleed .device { position: static; width: 100%; height: 100%; padding: 0; border-radius: 0; transform: none; box-shadow: none; }
body.bleed .screen { border-radius: 0; }
body.bleed .sb, body.bleed .homebar, body.bleed .tabs::after { display: none; }

.shell { position: absolute; inset: 0; display: flex; flex-direction: column; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.fx > * { pointer-events: auto; }

/* status bars */
.sb { flex: none; position: relative; z-index: 3; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; font-size: 16px; color: var(--ink); }
.sb > b { font-weight: 700; }
.sb-i { display: flex; align-items: center; gap: 6px; }
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
[data-device="tablet"] .sb { height: 30px; padding: 0 24px; font-size: 13px; }
.tbar { flex: none; height: 40px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.lights { position: absolute; left: 16px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.tclock { position: absolute; right: 16px; font-size: 12px; font-weight: 500; }

/* layout */
.body { flex: 1; min-height: 0; display: flex; }
.scroll { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.page { padding: 10px 20px 28px; display: flex; flex-direction: column; }
.wide .page { padding: 34px 40px 48px; max-width: 1140px; }
[data-device="laptop"] .wide .page { padding: 40px 56px 56px; }
.wide .page.narrow { max-width: 640px; margin: 0 auto; width: 100%; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
[data-device="laptop"] .grid2 { gap: 40px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.onb-top { flex: none; height: 64px; display: flex; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); }
.onb-top .logo { height: 22px; }

/* side bar (iPad, laptop) */
.side { flex: none; width: 216px; display: flex; flex-direction: column; gap: 4px; padding: 24px 14px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.side-logo { padding: 2px 12px 22px; }
.side-logo .logo { height: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 14px; color: var(--muted); font-weight: 500; font-size: 15px; width: 100%; }
.nav.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.nav.on .i { color: var(--tan); }
.nav .tb-b { position: static; margin-left: auto; }

/* tab bar (phone): icons only, D-day badges */
.tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.tabs::after { content: ""; grid-column: 1 / -1; justify-self: center; width: 134px; height: 5px; border-radius: 9px; background: var(--ink); margin-top: 14px; }
.tab { position: relative; display: grid; place-items: center; height: 40px; }
.tab-ic { width: 56px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--faint); transition: background .2s, color .2s; }
.tab.on .tab-ic { background: var(--or-soft); color: var(--tan); }
.tb-b { position: absolute; top: -6px; left: calc(50% + 14px); padding: 1px 6px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 700; font-style: normal; line-height: 15px; white-space: nowrap; }
.tb-b.hot { background: var(--or); color: var(--on-or); }
.homebar { flex: none; display: grid; place-items: center; height: 30px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.homebar i { width: 134px; height: 5px; border-radius: 9px; background: var(--ink); }
.dock { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 20px; background: var(--bg); }
.dock.solo { padding-bottom: 4px; }

/* ---------- type ---------- */
h1.t { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.wide h1.t { font-size: 32px; }
h1.t.ic { display: flex; align-items: center; gap: 12px; margin: 14px 0 22px; font-size: 26px; }
.moon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--or-soft); color: var(--tan); }
.lead { margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.thead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.wide .thead { margin: 0 0 24px; }
.thead:has(+ .lead) { margin-bottom: 0; }
.thead .sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lbl { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lbl-row span { font-size: 12px; color: var(--faint); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.red { background: var(--peel-soft); color: var(--peel-ink); }
.chip.sm { height: 22px; padding: 0 8px; font-size: 11px; }
.pro { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 10.5px; font-weight: 800; font-style: normal; letter-spacing: .04em; line-height: 16px; vertical-align: 2px; }
.sec { margin-top: 26px; }
.foot { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.lockline { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* sub-screen header: back, centered title, pill */
.nh { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px; align-items: center; height: 48px; margin: 0 -6px 4px; }
.nh-b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.nh-t { text-align: center; font-size: 17px; font-weight: 700; }
.nh-t .num { font-size: 15px; font-weight: 600; color: var(--muted); }
.nh-r { display: flex; justify-content: flex-end; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 18px; border-radius: 16px; background: var(--surface); font-size: 16px; font-weight: 700; white-space: nowrap; transition: transform .1s, opacity .2s; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn.pri { background: var(--or); color: var(--on-or); }
.btn.blue { background: var(--blue); color: var(--on-blue); }
.btn.soft { background: var(--surface); }
.btn.ghost { background: transparent; color: var(--muted); font-weight: 500; font-size: 14.5px; height: 44px; }
.btn.danger { color: var(--peel-ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; }
.btns { display: flex; gap: 10px; }
.btns > .btn { flex: 1; min-width: 0; }
.pm { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.pm[disabled] { opacity: .35; }

/* switch */
.sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--rest); transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.sw[aria-checked="true"] { background: var(--blue); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }

/* status ring + dots + bars */
.st { flex: none; display: block; }
.st .trk { fill: none; stroke: var(--line); }
.st .arc { fill: none; stroke: var(--or); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.st.ok { border-radius: 50%; background: var(--tan); color: #FFFFFF; display: grid; place-items: center; }
.bar { position: relative; display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--or); transition: width .5s ease; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.hb-row b { font-size: 12.5px; font-weight: 600; text-align: right; color: var(--ink); }
.hb-row.zero b, .hb-row.lo b, .hb-row.lo span { color: var(--peel-ink); }
.hb-row.lo span { font-weight: 700; }
.hb-row.lo .bar > i { background: var(--peel); }
.hbars.words .hb-row { grid-template-columns: 52px minmax(0, 1fr) 24px; font-size: 14px; color: var(--ink); }
.say { margin: 16px 0 0; font-size: 15px; font-weight: 600; line-height: 1.55; }

/* heat colors */
.l0 { background: var(--h0); } .l1 { background: var(--h1); } .l2 { background: var(--h2); } .l3 { background: var(--h3); } .l4 { background: var(--h4); }
.legend { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--faint); }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend i:first-child { margin-left: 3px; }
.legend i:last-child { margin-right: 3px; }

/* ---------- 00 루틴 만들기 / 03 루틴 수정 ---------- */
.tl { margin: 0 0 18px; }
.tl-track { position: relative; height: 34px; border-radius: 12px; background: var(--surface); }
.tl-track i { position: absolute; top: 7px; bottom: 7px; border-radius: 6px; background: var(--or); }
.tl-track i.ai { background: var(--blue); }
.tl-ax { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--faint); }
.elist { display: flex; flex-direction: column; gap: 10px; }
.erow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px 13px 16px; border-radius: 16px; background: var(--surface); text-align: left; }
.erow > .i { flex: none; color: var(--faint); }
.er-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.er-t b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.er-t small { font-size: 13px; color: var(--muted); }
.er-e { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.erow.del { background: transparent; border: 1.5px dashed var(--line); opacity: .6; }
.erow.del .er-t b { color: var(--muted); font-weight: 500; }
.bdg { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 6px; background: var(--or-soft); color: var(--tan); font-size: 10px; font-weight: 800; font-style: normal; line-height: 15px; }
.bdg.ai { background: var(--blue-soft); color: var(--blue-ink); }
.addrow { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 16px; border: 1.5px dashed var(--faint); color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- 01 루틴 · 오늘 ---------- */
.mhead { display: flex; align-items: flex-end; justify-content: space-between; margin: 8px 0 18px; }
.wide .mhead { margin-top: 0; }
.mhead h1.t { font-size: 30px; }
.mpct { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mpct b { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--tan); letter-spacing: -.02em; }
.hm-wd, .hm { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.hm-wd { margin-bottom: 8px; font-size: 11px; color: var(--faint); text-align: center; }
.cell { height: 32px; border-radius: 7px; display: block; }
.wide .cell { height: auto; aspect-ratio: 1.3; border-radius: 10px; }
.cell.rest { background: var(--rest); }
.cell.fut { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.cell.now { box-shadow: inset 0 0 0 2.5px var(--blue); }
button.cell:hover { filter: brightness(.96); }
.day { margin-top: 26px; }
.wide .day { margin-top: 0; }
.day-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; margin-bottom: 8px; }
.day-h b { font-size: 16px; font-weight: 800; }
.day-h span { font-size: 15px; font-weight: 600; color: var(--muted); }
.wide .day-h { margin-top: 6px; }
.restday { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 0; color: var(--muted); }
.restday b { font-size: 16px; color: var(--ink); }
.restday span { font-size: 13px; }

/* ---------- 01 하루 회고 ---------- */
.card { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 20px; background: var(--surface); }
.col > .card + .card { margin-top: 14px; }
.auto-h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auto-h b { font-size: 40px; line-height: 1; font-weight: 800; color: var(--tan); letter-spacing: -.02em; }
.sq { width: 22px; height: 22px; border-radius: 6px; }
.blk { margin-top: 26px; }
.wide .col > .blk:first-child { margin-top: 0; }
.sat { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; }
.sat-b { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); font-size: 17px; font-weight: 700; color: var(--muted); text-align: center; transition: background .15s; }
.sat-b.on { background: var(--or); color: var(--on-or); }
.inp { display: block; width: 100%; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--surface); font-size: 16px; line-height: 1.6; resize: none; }
textarea.inp { min-height: 130px; }
.inp:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--or); }
.inp::placeholder { color: var(--faint); }
.inp.big { height: 52px; padding: 0 16px; }

/* ---------- 02 주간 조정 ---------- */
.wlist { display: flex; flex-direction: column; gap: 10px; }
.wide .wlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wide .col .wlist { display: flex; }
.wcard { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border-radius: 18px; background: var(--surface); }
.wc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wc-h b { font-size: 16px; font-weight: 700; }
.wc-h .bdg { margin-left: 6px; vertical-align: 2px; }
.strip { display: inline-flex; gap: 3px; }
.strip i { width: 10px; height: 10px; border-radius: 3px; }
.strip i.l0 { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.wc-c { display: flex; gap: 8px; flex-wrap: wrap; }
.tchip, .vstep { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.tchip .i { color: var(--muted); }
.vstep { padding: 0 4px; gap: 4px; }
.vstep button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.vstep b, .tchip b { font-weight: 700; }
.vstep b { min-width: 44px; text-align: center; }
.tchip s, .vstep s { color: var(--faint); font-size: 12.5px; }
.tchip.chg, .vstep.chg { box-shadow: inset 0 0 0 1.5px var(--or); }
.tchip.chg b, .vstep.chg b, .tchip.chg .i { color: var(--tan); }
.tchip.chg.ai, .vstep.chg.ai { box-shadow: inset 0 0 0 1.5px var(--blue); }
.tchip.chg.ai b, .vstep.chg.ai b, .tchip.chg.ai .i { color: var(--blue-ink); }
.tchip[disabled], .vstep button[disabled] { cursor: default; }
.tstep { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px 0 8px; }
.tstep b { font-size: 44px; font-weight: 800; letter-spacing: -.02em; min-width: 140px; text-align: center; }

/* activity ratings: 집중 · 강도 · 보람 */
.mb { display: block; height: 4px; border-radius: 9px; background: var(--line); overflow: hidden; }
.mb > i { display: block; height: 100%; border-radius: inherit; background: var(--or); }
.warn .mb > i { background: var(--peel); }
.fl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fm { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 6px; row-gap: 6px; padding: 8px 10px 9px; border-radius: 11px; background: var(--card); }
.fm small { font-size: 12px; color: var(--muted); }
.fm b { font-size: 15px; font-weight: 800; text-align: right; }
.fm .mb { grid-column: 1 / -1; }
.fm.warn small, .fm.warn b { color: var(--peel-ink); }
.fl-none { margin: 0; font-size: 13px; color: var(--faint); }
.ft { display: grid; grid-template-columns: 38px repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: center; }
.ft > small { font-size: 12px; color: var(--muted); }
.ft-n { font-size: 13px; color: var(--muted); }
.fc { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fc-v { display: flex; align-items: baseline; gap: 5px; }
.fc-v b { font-size: 14px; font-weight: 700; }
.fc-v em { font-size: 10.5px; font-weight: 700; font-style: normal; white-space: nowrap; }
.fc-v em.up { color: var(--tan); }
.fc-v em.dn, .fc.warn b { color: var(--peel-ink); }
.ft-k { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); }

/* the PRO report card in the weekly tab */
.rp-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; margin-bottom: 14px; border-radius: 18px; background: var(--blue-soft); color: var(--blue-ink); text-align: left; }
.rp-card .adv-ic { width: 34px; height: 34px; background: var(--blue); color: #FFFFFF; }
.rp-card .adv-t b { font-size: 16px; }
.rp-card .adv-t small { opacity: .8; }
.rp-card.new { background: var(--blue); color: var(--on-blue); }
.rp-card.new .adv-ic, .rp-card.new .pro { background: #FFFFFF; color: #001B9A; }
.rp-card.off { opacity: .6; }
.lockv + .rp-card { margin-top: 12px; }

/* lock state (weekly / review before they open) */
.lockv { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 70px 0 30px; }
.lk-ring { width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: inset 0 0 0 10px var(--surface); color: var(--faint); margin-bottom: 10px; }
.lk-ring b { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.lockv h2 { margin: 0; font-size: 20px; font-weight: 800; }
.lockv p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* ---------- 03 복기 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); }
.stat b { display: block; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.or b { color: var(--tan); }
.mx { display: grid; grid-template-columns: 30px repeat(30, minmax(0, 1fr)); gap: 3px 2px; align-items: center; }
.mx i { height: 15px; border-radius: 2px; }
.mx i.fut { box-shadow: inset 0 0 0 1px var(--line); }
.mx-l { font-size: 12px; color: var(--muted); }
.mx-l.lo { color: var(--peel-ink); font-weight: 700; }
.mx-ax { margin-top: 6px; font-size: 10px; color: var(--faint); }
.mx-ax span { text-align: center; }
.wdb { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 132px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.wb em { height: 14px; font-size: 10.5px; font-weight: 700; font-style: normal; color: var(--peel-ink); }
.wb-t { position: relative; flex: 1; width: 100%; max-width: 30px; border-radius: 7px; background: var(--surface); overflow: hidden; }
.card .wb-t { background: var(--card); }
.wb-t i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 7px; background: var(--or); }
.wb.lo .wb-t i { background: var(--peel); }
.wb small { font-size: 12px; color: var(--muted); }
.wb.lo small { color: var(--peel-ink); font-weight: 700; }
.rl-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.rl-h h3 { margin: 0; font-size: 18px; font-weight: 800; }
.rl-h h3 em { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.wide .col > .sec:first-child { margin-top: 0; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.rlist { display: flex; flex-direction: column; gap: 8px; }
.rcard { padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.rc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rc-h b { font-size: 13px; font-weight: 700; }
.rcard p { margin: 0; font-size: 15px; line-height: 1.6; }
.adv-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border-radius: 18px; background: var(--blue); color: var(--on-blue); text-align: left; }
.adv-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: #001B9A; }
.adv-t { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.adv-t b { font-size: 17px; font-weight: 800; }
.adv-t small { font-size: 13px; opacity: .85; }
.adv-card .pro { background: #FFFFFF; color: #001B9A; }
.v2 { gap: 0; }
.v2-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.v2-h b { font-size: 17px; font-weight: 800; }
.v2 .tl { margin-bottom: 12px; }
.v2 .tl-track { background: var(--card); }
.v2-l p { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.v2-l small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ---------- 03 어드바이저 ---------- */
.hero { padding: 18px 20px 20px; border-radius: 20px; background: var(--blue); color: var(--on-blue); margin-bottom: 14px; }
.hero small { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: .85; }
.hero p { margin: 8px 0 0; font-size: 19px; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.col > .hero + .card, .page > .hero + .card { margin-top: 0; }
.page > .card + .card { margin-top: 14px; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; color: var(--faint); }
.ba > div { padding: 12px 14px; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; }
.ba b { font-size: 26px; font-weight: 800; color: var(--faint); letter-spacing: -.02em; }
.ba .after b { color: var(--tan); }
.ba small { font-size: 12px; color: var(--muted); }
.sugs { display: flex; flex-direction: column; gap: 10px; }
.sug { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.sug.on { box-shadow: inset 0 0 0 1.5px var(--blue); }
.sg-h { display: flex; align-items: center; gap: 8px; }
.sg-h b { flex: 1; font-size: 15px; font-weight: 800; }
.sg-t { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 10.5px; font-weight: 800; font-style: normal; }
.sg-ft { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sg-ft s { color: var(--faint); }
.sg-ft b { color: var(--blue-ink); }
.sug small { font-size: 12px; color: var(--muted); }
.sug:not(.on) .sg-ft b { color: var(--muted); }
.pw { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 10px; }
.pw-art { position: relative; width: 100%; height: 200px; border-radius: 22px; background: var(--surface); overflow: hidden; margin-bottom: 26px; }
.pw-blur { position: absolute; inset: 0; filter: blur(7px); opacity: .9; }
.pw-blur i { position: absolute; border-radius: 6px; background: var(--or); }
.pw-blur .pl1 { left: 16px; top: 22px; width: 62%; height: 12px; }
.pw-blur .pl2 { left: 16px; top: 46px; width: 38%; height: 10px; opacity: .5; }
.pw-blur .pl3 { left: 16px; top: 66px; width: 30%; height: 10px; opacity: .5; }
.pw-blur .pb1 { left: 16px; bottom: 24px; width: 30px; height: 64px; }
.pw-blur .pb2 { left: 58px; bottom: 24px; width: 30px; height: 56px; }
.pw-blur .pb3 { left: 100px; bottom: 24px; width: 30px; height: 60px; }
.pw-blur .pb4 { left: 142px; bottom: 24px; width: 30px; height: 22px; background: var(--peel); }
.pw-blur .pbx { right: 18px; bottom: 26px; width: 30%; height: 64px; background: var(--blue); border-radius: 10px; }
.pw-lock { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #FFFFFF; box-shadow: 0 8px 24px rgba(0, 27, 154, .35); }
.pw h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pw > p { margin: 6px 0 24px; font-size: 15px; color: var(--muted); }
.pw-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; align-self: stretch; text-align: left; }
.pw-l li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.pw-l .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); }

/* ---------- 02 2주 보고서 ---------- */
.rp-seg { margin: 2px 0 18px; max-width: 420px; }
.wide .rp-seg { margin-bottom: 24px; }
.rp-sub { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.stats + .card { margin-top: 14px; }
.bas { display: flex; flex-direction: column; gap: 16px; }
.ba-r p { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ba-r p span { font-size: 13px; color: var(--muted); }
.ba-r.no .after b { color: var(--peel-ink); }
.rl-s { font-size: 12.5px; color: var(--faint); }
.flag { margin-top: 14px; background: var(--peel-soft); }
.flag .lbl { color: var(--peel-ink); font-weight: 700; }
.flag p { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14.5px; }
.flag p span { color: var(--peel-ink); font-size: 13.5px; }
.flag small { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ---------- sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: var(--scrim); }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 10px 20px calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-radius: 30px 30px 0 0; }
.wide .scrim { align-items: center; justify-content: center; }
.wide .sheet { width: 480px; max-height: 84%; padding: 26px; border-radius: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.grab { width: 38px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 2px; flex: none; }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sh-head h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 800; }
.sh-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.x { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); margin: -4px -6px 0 0; }
.logdial { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 6px 0 4px; }
.dial { position: relative; width: 168px; height: 168px; }
.dial .trk { stroke: var(--surface); }
.dial-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-v b { font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.dial-v span { font-size: 15px; color: var(--muted); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface); }
.seg2 button { height: 40px; border-radius: 10px; text-align: center; font-size: 15px; color: var(--muted); }
.seg2 button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 8px; border-radius: 16px; background: var(--surface); min-width: 0; }
.box small { font-size: 12px; color: var(--muted); }
.tin { width: 100%; height: 36px; padding: 0; border: 0; background: transparent; font-size: 22px; font-weight: 800; }
.tin:focus { outline: none; }
.bstep { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.bstep b { font-size: 22px; font-weight: 800; }
.bstep button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.units { display: flex; gap: 6px; }
.units button { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 13.5px; color: var(--muted); }
.units button.on { background: var(--or-soft); color: var(--tan); font-weight: 700; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { aspect-ratio: 1; max-width: 44px; justify-self: center; width: 100%; border-radius: 50%; background: var(--surface); text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.days button.on { background: var(--or); color: var(--on-or); }

/* ---------- toast + banner ---------- */
.toast { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 700; text-align: center; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: rise .3s ease; }
[data-device="tablet"] .toast, [data-device="laptop"] .toast { bottom: 32px; }
.banner { position: absolute; top: 56px; left: 10px; right: 10px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 12px 34px rgba(0, 0, 0, .22); text-align: left; animation: drop .45s cubic-bezier(.2, .9, .3, 1.15); }
[data-device="tablet"] .banner { left: 50%; right: auto; width: 440px; margin-left: -220px; top: 38px; }
[data-device="laptop"] .banner { top: 52px; left: auto; right: 16px; width: 370px; border-radius: 16px; }
body.bleed .banner { top: 8px; }
.lt { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--or); color: var(--on-or); display: grid; place-items: center; font-size: 19px; font-weight: 800; }
.bn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--muted); }
.bn strong { font-size: 14px; color: var(--ink); }
.banner small { align-self: flex-start; font-size: 11.5px; color: var(--faint); }

.enter.scrim { animation: fade .22s ease; }
.enter.scrim .sheet { animation: up .32s cubic-bezier(.2, .9, .3, 1); }
.wide .enter.scrim .sheet { animation: pop .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes drop { from { transform: translateY(-130%); opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }

/* small screens: the bar wraps into its scroller, the phone fills the window */
@media (max-width: 520px) {
  :root { --barh: 52px; }
  .pb-home span { display: none; }
  .scene small { display: none; }
}

/* =====================================================================
   2.2 · four tabs: 하루 · 루틴 · 주간 · 월간
   ===================================================================== */
.mt { margin-top: 10px; }
.gap-t { margin-top: 26px; }
.chip.hot { background: var(--or); color: var(--on-or); }
.pm.sm { width: 38px; height: 38px; }
.side-pro { margin: auto 0 0; padding: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.note { margin: 22px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.note .i { flex: none; }
.stats.sm .stat b { font-size: 22px; }
.stat b small { font-size: 13px; font-weight: 700; margin: 0 1px; }
.stat.warn b { color: var(--peel-ink); }
.mhead .sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mpct b small { font-size: 18px; font-weight: 700; color: var(--muted); }
.mp-s { font-size: 12px; color: var(--muted); }

/* app-usage categories (하루) */
.c-deep, .bar > i.c-deep { background: var(--h4); }
.c-learn, .bar > i.c-learn { background: var(--h2); }
.c-talk, .bar > i.c-talk { background: var(--muted); }
.c-browse, .bar > i.c-browse { background: var(--peel); }
.c-etc, .bar > i.c-etc { background: var(--faint); }
.c-away { background: var(--h1); }

/* ---------- 하루 · 오늘의 흐름 ---------- */
.dnav { display: flex; gap: 6px; }
.df { display: flex; flex-direction: column; gap: 6px; }
.df-rt { position: relative; height: 24px; }
.df-rt span { position: absolute; bottom: 0; height: 6px; min-width: 4px; border-radius: 3px; background: var(--or); }
.df-rt span em { position: absolute; bottom: 9px; left: 0; font-size: 10.5px; font-weight: 700; font-style: normal; color: var(--tan); white-space: nowrap; }
.df-rt span.part { background: var(--h2); }
.df-rt span.miss { background: none; box-shadow: inset 0 0 0 1.5px var(--peel); }
.df-rt span.miss em { color: var(--peel-ink); }
.df-rt span.fut { background: var(--line); }
.df-rt span.fut em { color: var(--faint); }
.df-track { position: relative; height: 52px; border-radius: 12px; background: var(--card); overflow: hidden; }
.df-track i { position: absolute; top: 9px; bottom: 9px; min-width: 1.5px; border-radius: 2px; }
.df-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--blue); }
.df-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.df-lg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.df-lg span { display: inline-flex; align-items: center; gap: 6px; }
.df-lg i, .kr > i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.rws { display: flex; flex-direction: column; gap: 14px; }
.rw { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: center; }
.rw-n { display: flex; flex-direction: column; line-height: 1.3; }
.rw-n b { font-size: 14px; font-weight: 700; }
.rw-n small { font-size: 11px; color: var(--faint); }
.rw-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rw-b small { font-size: 12px; color: var(--muted); }
.rw-b small em { font-style: normal; }
.rw-b small em.warn { color: var(--peel-ink); font-weight: 700; }
.stack { display: flex; height: 10px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.card .stack { background: var(--card); }
.stack > i { display: block; height: 100%; }
.stack.big { height: 18px; border-radius: 8px; gap: 2px; background: none; }
.stack.big > i { border-radius: 4px; }
.krs { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.kr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; font-size: 14px; }
.kr b { font-size: 13.5px; font-weight: 700; }
.kr small { text-align: right; font-size: 12px; color: var(--muted); }
.hbars.apps .hb-row { grid-template-columns: 78px minmax(0, 1fr) 76px; color: var(--ink); }
.rhy { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 156px; }
.rh { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.rh em { height: 14px; font-size: 10.5px; font-weight: 700; font-style: normal; color: var(--faint); }
.rh-t { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 7px; overflow: hidden; background: var(--surface); }
.rh-t i { display: block; width: 100%; flex: none; }
.rh small { font-size: 12px; color: var(--muted); }
.rh:not(.on) .rh-t { opacity: .5; }
.rh.on em { color: var(--ink); }
.rh.on small { color: var(--ink); font-weight: 800; }

/* ---------- 루틴 · 오늘 ---------- */
.wks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.wk-d { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wk-d .cell { width: 100%; height: 30px; }
.wide .wk-d .cell { height: 34px; aspect-ratio: auto; }
.wk-d small { font-size: 11px; color: var(--faint); }
.wk-d.now small { color: var(--blue-ink); font-weight: 800; }
.card .cell.fut { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); }

/* ---------- 주간 · 월간: steps ---------- */
.wsteps { display: flex; flex-direction: column; gap: 8px; }
.ws { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 14px; border-radius: 16px; background: var(--surface); text-align: left; }
.ws-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 800; }
.ws-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ws-t b { font-size: 15.5px; font-weight: 700; }
.ws-t small { font-size: 12.5px; color: var(--muted); }
.ws > .i { flex: none; color: var(--faint); }
.ws.lock { opacity: .62; }
.ws.todo { background: var(--or-soft); box-shadow: inset 0 0 0 1.5px var(--or); }
.ws.todo .ws-n { background: var(--or); color: var(--on-or); }
.ws.todo > .i { color: var(--tan); }
.ws.done .ws-n { background: var(--tan); color: #FFFFFF; }
.ws.new { background: var(--blue); color: var(--on-blue); }
.ws.new .ws-t small { color: inherit; opacity: .85; }
.ws.new .ws-n, .ws.new .pro { background: #FFFFFF; color: #001B9A; }
.ws.new > .i { color: inherit; }
.ws.wait .ws-n, .ws.past .ws-n { background: var(--blue-soft); color: var(--blue-ink); }

/* daily reflections, weekly retro form, notes */
.rcard.none { padding: 10px 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.rcard.none .rc-h { margin: 0; }
.rcard.none small { font-size: 12.5px; color: var(--faint); }
.rc-d { display: inline-flex; align-items: center; gap: 8px; }
.rc-sq { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rcard.wk { background: var(--or-soft); }
.rcard.wk p + p { margin-top: 6px; }
.rcard p small, .quote p small, .mn-r p small { display: block; font-size: 11.5px; color: var(--muted); }
.auto-h .ah-s { font-size: 13px; color: var(--muted); }
.ah-f { margin-top: 14px; }
.mini-hm { display: grid; grid-template-columns: repeat(7, 16px); gap: 4px; }
.mini-hm i { height: 16px; border-radius: 4px; }
.mini-hm i.rest { background: var(--rest); }
.mini-hm i.fut { box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.rq { display: flex; flex-direction: column; gap: 14px; }
.rq label { display: flex; flex-direction: column; gap: 6px; }
.rq small { font-size: 13px; font-weight: 600; color: var(--muted); }
textarea.inp.sm { min-height: 0; height: 78px; padding: 12px 14px; font-size: 15px; }
.aibar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; margin-bottom: 12px; border-radius: 16px; background: var(--blue); color: var(--on-blue); font-size: 14.5px; font-weight: 700; text-align: left; }
.aibar span { flex: 1; min-width: 0; }
.aibar.on, .aibar.off { background: var(--blue-soft); color: var(--blue-ink); }
.aibar.off { font-weight: 600; }
.notes { gap: 10px; margin-bottom: 14px; }
.notes .lbl { margin-bottom: 2px; }
.mn-r, .quote { padding: 12px 14px; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.mn-r .rc-h, .quote .rc-h { margin: 0; }
.mn-r p, .quote p { margin: 0; font-size: 14px; line-height: 1.5; }
.mn-empty { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--faint); color: var(--muted); font-size: 14px; font-weight: 600; }
.mn-d { display: flex; flex-direction: column; gap: 6px; }
.mn-l { margin: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.5; }
.mn-l b { color: var(--muted); font-size: 12.5px; }
.notes .more { align-self: flex-start; }
.wc-why { display: flex; align-items: center; gap: 4px; margin-top: -2px; font-size: 12px; font-weight: 600; color: var(--blue-ink); }

/* weekly report */
.wchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 2px 0 18px; padding-bottom: 2px; }
.wchips::-webkit-scrollbar { display: none; }
.wchips button { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); white-space: nowrap; }
.wchips button.on { background: var(--blue); color: var(--on-blue); font-weight: 700; }
.wide .wchips { margin-bottom: 24px; }
.col > .card + .card, .page > .card + .card, .stats + .card { margin-top: 14px; }
.reads { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.reads p { margin: 0; display: flex; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.reads p .i { flex: none; margin-top: 4px; color: var(--blue-ink); }
.card .quote { margin-top: 14px; }
.hero small { flex-wrap: wrap; }

/* ---------- 월간 ---------- */
.mcal-wd, .mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mcal-wd { margin-bottom: 8px; font-size: 11px; color: var(--faint); text-align: center; }
.mc { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.mc.l3, .mc.l4 { color: var(--on-or); }
.mc.rest { background: var(--rest); color: var(--faint); }
.mc.fut { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--faint); font-weight: 500; }
.mc.now { box-shadow: inset 0 0 0 2.5px var(--blue); }
.mc-r { position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .55; }
button.mc:hover { filter: brightness(.96); }
.wide .mc { aspect-ratio: 1.3; border-radius: 14px; place-items: start; padding: 8px 10px; font-size: 15px; }
.wide .mc-r { left: auto; right: 10px; bottom: 10px; }
.rdots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-device="laptop"] .rdots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd { padding: 14px 14px 16px; border-radius: 18px; background: var(--surface); min-width: 0; }
.rd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.rd-h > b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-h span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rd-h span b { font-size: 15px; font-weight: 800; color: var(--tan); }
.rd-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px 4px; justify-items: center; align-items: center; }
.rd-g i { width: 13px; height: 13px; border-radius: 50%; background: var(--line); }
.rd-g i.on { background: var(--or); }
.rd-g i.half { background: var(--h2); }
.rd-g i.miss { background: var(--line); }
.rd-g i.fut { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.rd-g i.off { width: 4px; height: 4px; background: var(--faint); opacity: .5; }

/* day sheet */
.dsh { display: flex; flex-direction: column; }
.dsr { display: grid; grid-template-columns: minmax(0, 1fr) auto 108px; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dsr small { text-align: right; font-size: 13px; color: var(--muted); }
.dsr.hd { min-height: 0; padding-bottom: 6px; }
.dsr.hd small { font-size: 11px; color: var(--faint); }

/* ---------- 월간 리포트 (PRO) ---------- */
.mr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.mr-brand b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .2em; }
.mr-brand small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .26em; color: var(--muted); }
.mr-per { text-align: right; }
.mr-per b { display: block; font-size: 12.5px; font-weight: 700; }
.mr-per small { font-size: 11px; color: var(--faint); }
.mr-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; border-radius: 22px; background: var(--surface); }
.mr-hero .k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--blue-ink); }
.mr-hero p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; font-weight: 800; letter-spacing: -.01em; }
.mr-hero p.s { font-size: 12.5px; font-weight: 500; line-height: 1.6; color: var(--muted); letter-spacing: 0; }
.wide .mr-hero { padding: 28px 30px; gap: 32px; }
.wide .mr-hero p:not(.s) { font-size: 21px; }
.mr-ring { width: 104px; display: block; }
.wide .mr-ring { width: 150px; }
.mr-ring .trk { fill: none; stroke: var(--line); stroke-width: 9; }
.mr-ring .n1 { font: 800 30px var(--f); fill: var(--ink); }
.mr-ring .n2 { font: 600 12px var(--f); fill: var(--muted); }
.mr-sc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.wide .mr-sc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msc { padding: 14px; border-radius: 16px; background: var(--surface); min-width: 0; }
.msc.low { background: var(--peel-soft); box-shadow: inset 0 0 0 1.5px var(--peel); }
.msc .v { margin: 0; }
.msc .v b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.msc.low .v b, .msc.low > b { color: var(--peel-ink); }
.msc .v small { margin-left: 2px; font-size: 11px; color: var(--muted); }
.msc > b { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }
.msc .mb { margin-top: 8px; height: 5px; background: var(--card); }
.msc.low .mb > i { background: var(--peel); }
.msc > p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.mr-focus { margin-top: 16px; padding: 20px; border-radius: 22px; background: #231A15; color: #F3EEE9; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.mr-focus .k { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mr-focus .k small { font-size: 12px; font-weight: 800; color: #FF9D3D; }
.mr-focus .st { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid #FF8A00; font-size: 17px; line-height: 1.5; font-weight: 800; }
.wide .mr-focus { padding: 26px 28px; }
.wide .mr-focus .st { font-size: 20px; }
.mr-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.65; color: rgba(243, 238, 233, .76); }
.wide .mr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mr-cols b { display: block; margin-bottom: 4px; font-size: 13.5px; color: #F3EEE9; }
.rl-h em.rl-s { font-style: normal; }
.probs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.probs li { counter-increment: p; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); }
.probs li::before { content: counter(p); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--peel-soft); color: var(--peel-ink); font-size: 12px; font-weight: 800; }
.probs b { display: block; font-size: 15px; font-weight: 800; }
.probs small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.evs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev { padding: 14px; border-radius: 16px; background: var(--surface); min-width: 0; }
.ev > small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ev > b { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; }
.ev > em { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 700; font-style: normal; }
.ev > em.up { color: var(--tan); }
.ev > em.dn { color: var(--peel-ink); }
.ev > em.eq { color: var(--faint); }
.spark { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--or); }
.ev.bad .spark polyline { stroke: var(--peel); }
.ev.bad .spark circle { fill: var(--peel); }
.sp-ax { display: flex; justify-content: space-between; padding: 0 2px; font-size: 9.5px; color: var(--faint); }
.ev > p { margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--faint); }
.hbars.tbars .hb-row { grid-template-columns: 78px minmax(0, 1fr) 40px; color: var(--ink); }
.card .bar { background: var(--card); }
.sugs.mt { margin-top: 12px; }
.mr-disc { margin: 24px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--faint); }

/* 2.2 · 루틴: today as a vertical day, like a calendar */
.dcal { position: relative; margin: 6px 0 4px; }
.dc-h { position: absolute; left: 52px; right: 0; height: 0; border-top: 1px solid var(--line); }
.dc-h span { position: absolute; left: -52px; top: -8px; width: 42px; text-align: right; font-size: 11px; line-height: 16px; color: var(--faint); }
.dc-b { position: absolute; z-index: 1; left: calc(54px + (100% - 54px) * var(--l) / var(--n)); width: calc((100% - 54px) / var(--n) - 3px); display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px 6px 14px; border-radius: 10px; background: var(--surface); text-align: left; overflow: hidden; }
.dc-b::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rest); }
.dc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.32; }
.dc-t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-t small.due { color: var(--tan); font-weight: 700; }
.dc-b .st { margin-top: 1px; }
.dc-b.ok { background: var(--h1); }
.dc-b.ok::before { background: var(--tan); }
.dc-b.ok .dc-t small { color: var(--ink); opacity: .68; }
.dc-b.live, .dc-b.part { background: var(--or-soft); }
.dc-b.live { box-shadow: inset 0 0 0 1.5px var(--or); }
.dc-b.live::before { background: var(--or); }
.dc-b.part::before { background: var(--h2); }
.dc-b.miss::before { background: var(--peel); }
.dc-b.miss .dc-t b { color: var(--muted); }
.dc-now { position: absolute; z-index: 0; left: 52px; right: 0; height: 0; margin-top: -1px; border-top: 2px solid var(--blue); pointer-events: none; }
.dc-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.dc-now em { position: absolute; left: -52px; top: -10px; width: 44px; text-align: center; border-radius: 6px; background: var(--blue); color: var(--on-blue); font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; }
textarea.inp.long { min-height: 190px; resize: vertical; }
.lbl-row span.warn { color: var(--peel-ink); font-weight: 700; }

/* 2.2 · 주간: the week so far as a chart */
.wg-h b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--tan); }
.wg.feel .wg-h b { color: var(--ink); }
.wg .wg-h b.warn { color: var(--peel-ink); }
.wg-h small { font-size: 12.5px; color: var(--muted); }
.wg-seg { display: flex; gap: 2px; margin: 12px 0 6px; padding: 3px; border-radius: 999px; background: var(--card); }
.wg-seg button { flex: 1; display: grid; place-items: center; height: 30px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.wg-seg button.on { background: var(--or); color: var(--on-or); font-weight: 700; }
.wg-p { position: relative; height: 128px; margin: 22px 2px 0 22px; }
.wg-g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); }
.wg-g span { position: absolute; left: -22px; top: -7px; width: 16px; text-align: right; font-size: 10px; line-height: 14px; color: var(--faint); }
.wg-g.ref { border-top-color: var(--faint); }
.wg-p::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); }
.wg-cs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.wg-c { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.wg-c i { width: 44%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: var(--h1); }
.wg-c.fut::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44%; max-width: 26px; border-radius: 5px; border: 1.5px dashed var(--line); }
.wg-ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wg-ln polyline { fill: none; stroke: var(--tan); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wg-pt { position: absolute; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--tan); }
.wg-pt.warn { box-shadow: inset 0 0 0 2.5px var(--peel); }
.wg-pt.now { width: 11px; height: 11px; margin: 0 0 -5.5px -5.5px; background: var(--blue); box-shadow: 0 0 0 2.5px var(--card); }
.wg-v { position: absolute; transform: translate(-50%, -13px); font-style: normal; font-size: 12px; font-weight: 800; color: var(--blue-ink); white-space: nowrap; pointer-events: none; }
.wg-x { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 6px 2px 0 22px; text-align: center; }
.wg-x small { font-size: 11px; color: var(--faint); }
.wg-x small.now { color: var(--blue-ink); font-weight: 800; }
.wg-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
.wg-lg span { display: inline-flex; align-items: center; gap: 5px; }
.wg-lg i.bx { width: 9px; height: 9px; border-radius: 2px; background: var(--h1); }
.wg-lg i.ln { width: 14px; height: 3px; border-radius: 2px; background: var(--tan); }
.wg-lg i.rf { width: 14px; border-top: 1px dashed var(--faint); }
.wg-lg .wg-k { flex-basis: 100%; color: var(--faint); }

/* 2.2 · 루틴: the header stays put while the day scrolls to now; the reflection is one more block */
.today .mhead { position: sticky; top: 0; z-index: 4; margin: -10px -20px 6px; padding: 18px 20px 12px; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 -3px 0 var(--bg); } /* the upward shadow hides the 1px sliver of timeline that fractional scroll positions leave above the stuck header */
.wide .today { max-width: 760px; }
.wide .today .mhead { margin: -34px -40px 6px; padding: 34px 40px 14px; top: -22px; }
.dc-b.refl::before { background: var(--blue); }
.dc-b.refl .dc-moon { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); }
.dc-b.refl.live { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.dc-b.refl.live .dc-moon { background: var(--blue); color: var(--on-blue); }
.dc-b.refl.live .dc-t small.due { color: var(--blue-ink); }
.dc-b.refl.ok { background: var(--h1); }
.dc-b.refl.ok::before { background: var(--tan); }

/* 2.2 · ratings and satisfaction out of 10 */
.s10 { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tan); }
.s10 > i { display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--rest); overflow: hidden; }
.s10 > i > i { display: block; height: 100%; border-radius: 3px; background: var(--or); }
.s10 b { font-weight: 800; min-width: 1.2em; text-align: right; }
.ws.new .s10, .ws.new .s10 > i > i { color: inherit; }
.sat.ten { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.sat.ten .sat-b { width: 100%; height: 42px; border-radius: 11px; font-size: 15px; }
.wide .sat.ten .sat-b { height: 46px; }

/* 2.2 · 일간 회고: one routine at a time, then the writing */
.rv-prog { display: flex; gap: 4px; margin: 4px 0 18px; }
.rv-prog i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-style: normal; }
.rv-prog i::before { content: ""; height: 4px; border-radius: 2px; background: var(--rest); }
.rv-prog i.ok::before { background: var(--tan); }
.rv-prog i.on::before { background: var(--or); }
.rv-prog span { font-size: 11px; color: var(--faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-prog i.on span { color: var(--ink); font-weight: 700; }
.rv-r { display: flex; flex-direction: column; gap: 22px; }
.rv-rh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-rh small { font-size: 13px; color: var(--muted); }
.rv-rh h1.t { margin: 2px 0 0; font-size: 26px; }
.rv-f { position: relative; display: grid; place-items: center; flex: none; }
.rv-f > b { position: absolute; font-size: 11px; font-weight: 800; color: var(--tan); }
.rv-f > .st.ok + b { display: none; }
.rq10 { display: flex; flex-direction: column; gap: 8px; }
.rq-h { display: flex; align-items: baseline; justify-content: space-between; }
.rq-h > b { font-size: 16px; font-weight: 800; }
.rq-h span { font-size: 13px; color: var(--faint); }
.rq-h span b { font-size: 18px; font-weight: 800; color: var(--tan); }
.r10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.r10 button { height: 42px; border-radius: 11px; background: var(--surface); font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; transition: background .15s; }
.r10 button.on { background: var(--or); color: var(--on-or); }
.wide .r10 button { height: 46px; }
.r10-c { display: flex; justify-content: space-between; }
.r10-c small { font-size: 11px; color: var(--faint); }
.rv-ss { display: flex; flex-direction: column; gap: 10px; }
.rv-s { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-sn { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rv-sn b { font-size: 14.5px; }
.rv-sn small { font-size: 12px; color: var(--muted); }
.rv-sv { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.rv-sv em { font-style: normal; }
.rv-sv b { font-size: 14px; font-weight: 800; color: var(--ink); }
.rv-sv em.warn b { color: var(--peel-ink); }
.rv-sv.none { color: var(--faint); }

/* routine sheet: 기록 ↔ 평가, swiped sideways */
.pg { margin: 0 -20px; overflow: hidden; touch-action: pan-y; }
.wide .pg { margin: 0 -26px; }
.pg-t { display: flex; align-items: stretch; transform: translateX(calc(var(--p) * -100%)); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.pg.drag .pg-t { transition: none; }
.pg.drag { cursor: grabbing; user-select: none; }
.pg-p { flex: 0 0 100%; min-width: 0; padding: 0 20px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.wide .pg-p { padding: 0 26px; }
.pg-p .rq10 { gap: 7px; }
.pg-hint { align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 14px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--muted); }
.pg-hint svg { color: var(--faint); }
.pg-dots { display: flex; justify-content: center; gap: 4px; margin-top: -4px; }
.pg-dots button { width: 22px; height: 16px; display: grid; place-items: center; }
.pg-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: var(--rest); transition: width .2s, background .2s; }
.pg-dots button.on::before { width: 18px; background: var(--or); }

/* ---------- embedded in the website (?embed) ---------- */
body.embed { --barh: 0px; background: transparent; }
body.embed .pbar { display: none; }
body.embed .device { box-shadow: none; }
