:root {
  --bg: #FBF7F4;
  --card: #FFFFFF;
  --card-2: #F4EEE9;
  --ink: #2A2421;
  --ink-2: #6E6460;
  --ink-3: #A49A95;
  --line: #ECE4DE;
  --accent: #EE6C5A;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE7E2;
  --left: #E8786B;
  --right: #6F8FE0;
  --formula: #E3A63B;
  --bmilk: #5FB585;
  --sleep: #8B7FD9;
  --sleep-soft: rgba(139, 127, 217, .32);
  --diaper: #B98A5E;
  --ok: #3FA672;
  --warn: #E3A63B;
  --danger: #E0533F;
  --shadow: 0 1px 2px rgba(60, 40, 30, .05), 0 6px 24px rgba(60, 40, 30, .06);
  --r: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #14110F;
  --card: #1F1A17;
  --card-2: #2A2420;
  --ink: #F3ECE7;
  --ink-2: #B5AAA4;
  --ink-3: #7D736E;
  --line: #322B27;
  --accent: #F07D6C;
  --accent-soft: #3A2420;
  --left: #EE8A7E;
  --right: #8AA6EE;
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110F; --card: #1F1A17; --card-2: #2A2420; --ink: #F3ECE7; --ink-2: #B5AAA4; --ink-3: #7D736E;
    --line: #322B27; --accent: #F07D6C; --accent-soft: #3A2420; --left: #EE8A7E; --right: #8AA6EE; --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 calc(96px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ── 상단 ─────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; max-width: 560px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.age { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.topclock { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.view { max-width: 560px; margin: 0 auto; padding: 4px 16px 24px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 10px; font-weight: 700; font-size: 17px; }
.section-title .link { font-size: 14px; color: var(--ink-2); font-weight: 500; }

/* ── 히어로: 수유텀 링 ───────────────── */
.hero { padding: 22px 18px 18px; text-align: center; }
.ring-wrap { position: relative; width: min(64vw, 236px); aspect-ratio: 1; margin: 0 auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--card-2); }
.ring-fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dasharray .6s ease, stroke .3s; }
.ring-fg.warn { stroke: var(--warn); }
.ring-fg.over { stroke: var(--danger); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label { font-size: 13px; color: var(--ink-2); }
.ring-big { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.hero-next { margin-top: 14px; font-size: 17px; }
.hero-next b { font-weight: 800; }
.hero-next .over { color: var(--danger); font-weight: 700; }
.hero-meta { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.hero-empty { padding: 28px 10px 8px; }
.hero-empty h2 { margin: 0 0 6px; font-size: 22px; }
.hero-empty p { margin: 0; color: var(--ink-2); }
.say { display: inline-block; margin-top: 14px; background: var(--card-2); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--ink-2); }

/* ── 수유 중(라이브) ─────────────────── */
.live { border: 2px solid var(--accent); }
.live-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.pulse.paused { animation: none; background: var(--ink-3); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238,108,90,.55); } 70% { box-shadow: 0 0 0 10px rgba(238,108,90,0); } 100% { box-shadow: 0 0 0 0 rgba(238,108,90,0); } }
.timer-main { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-btn { border-radius: 18px; padding: 16px 10px 14px; background: var(--card-2); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; transition: transform .1s; }
.side-btn:active { transform: scale(.97); }
.side-btn span { font-weight: 700; font-size: 15px; }
.side-btn b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side-btn small { font-size: 12px; color: var(--ink-3); }
.side-btn.L.on { border-color: var(--left); background: color-mix(in srgb, var(--left) 14%, var(--card)); }
.side-btn.R.on { border-color: var(--right); background: color-mix(in srgb, var(--right) 14%, var(--card)); }
.side-btn.on small { color: var(--ink-2); font-weight: 600; }
.live-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 12px; }
.btn { height: 56px; border-radius: 16px; font-weight: 700; font-size: 17px; background: var(--card-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn:active { opacity: .8; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink-2); font-weight: 500; height: 40px; font-size: 14px; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 44px; font-size: 15px; }

/* ── 빠른 기록 ───────────────────────── */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.qbtn { position: relative; background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 12px; text-align: left; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-start; transition: transform .1s; }
.qbtn:active { transform: scale(.97); }
.qbtn .q-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.qbtn .q-ico svg { width: 19px; height: 19px; }
.qbtn .q-t { font-weight: 700; font-size: 15px; margin-top: 10px; line-height: 1.25; }
.qbtn .q-s { font-size: 12px; color: var(--ink-3); }
.qbtn .badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.c-S { background: var(--sleep); } .c-D { background: var(--diaper); }
.c-L { background: var(--left); } .c-R { background: var(--right); } .c-F { background: var(--formula); } .c-B { background: var(--bmilk); }

/* ── 요약 ────────────────────────────── */
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; padding: 14px 8px; }
.stats4 b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats4 span { font-size: 12px; color: var(--ink-3); }

/* ── 타임라인 ────────────────────────── */
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 8px; }
.day-head h3 { margin: 0; font-size: 17px; }
.day-head span { font-size: 13px; color: var(--ink-3); }
.tl { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 0; }
.item { display: grid; grid-template-columns: 74px 12px 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; }
.item:active { background: var(--card-2); }
.item .t { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .dot { width: 10px; height: 10px; border-radius: 50%; }
.item .main { font-weight: 600; font-size: 15px; }
.item .sub { font-size: 12px; color: var(--ink-3); }
.item .chev { color: var(--ink-3); font-size: 18px; }
.gap { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 100px; font-size: 12px; color: var(--ink-3); height: 18px; }
.gap::before { content: ""; flex: 0 0 1px; height: 100%; background: var(--line); margin-left: -15px; margin-right: 6px; }
.gap b { color: var(--ink-2); font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--card-2); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* ── 통계 ────────────────────────────── */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; }
.kpi span { font-size: 13px; color: var(--ink-2); }
.kpi b { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: auto; display: block; stroke: none; }
.chart text { fill: var(--ink-3); font-size: 10px; font-family: inherit; }
.chart .val { fill: var(--ink); font-weight: 700; font-size: 11px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ── 설정 ────────────────────────────── */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row label, .row .lbl { font-weight: 600; }
.row small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.row input[type=text], .row input[type=date] { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 8px 10px; width: 150px; text-align: right; }
.switch { position: relative; width: 52px; height: 32px; border-radius: 99px; background: var(--line); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }
.seg { display: inline-flex; background: var(--card-2); border-radius: 12px; padding: 3px; }
.seg button { padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); font-size: 20px; font-weight: 600; }
.stepper b { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }

/* ── 바텀시트 ────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 12, 8, .45); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 26px 26px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; animation: up .25s cubic-bezier(.2,.9,.3,1); }
.grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet h3 { margin: 2px 0 14px; font-size: 20px; }
.kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.kind button { padding: 12px 6px; border-radius: 14px; background: var(--card-2); font-weight: 700; font-size: 15px; border: 2px solid transparent; }
.kind button.on[data-kind=breast] { border-color: var(--left); }
.kind button.on[data-kind=formula] { border-color: var(--formula); }
.kind button.on[data-kind=bmilk] { border-color: var(--bmilk); }
.field { margin-bottom: 18px; }
.field > .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 99px; background: var(--card-2); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--ink); color: var(--bg); }
.dt { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 12px; margin-bottom: 8px; font-size: 16px; }
.amount { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 12px; }
.amount button { width: 56px; height: 56px; border-radius: 50%; background: var(--card-2); font-size: 26px; font-weight: 500; }
.amount b { font-size: 48px; font-weight: 800; min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }
.amount b small { font-size: 18px; color: var(--ink-3); margin-left: 2px; }
.dur2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dur2 > div { background: var(--card-2); border-radius: 16px; padding: 12px; text-align: center; }
.dur2 .lbl { font-weight: 700; font-size: 14px; }
.dur2 .stepper { justify-content: center; margin-top: 6px; }
.dur2 .stepper button { background: var(--card); }
.dur2 .stepper b { min-width: 56px; font-size: 22px; }
.memo { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 12px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 6px; }
.sheet-actions.one { grid-template-columns: 1fr; }

/* ── 하단 탭바 & 마이크 ──────────────── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 88px 1fr 1fr; align-items: end; max-width: 560px; margin: 0 auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-3); font-size: 11px; font-weight: 600; padding: 6px 0; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--ink); }
.mic-fab { justify-self: center; width: 72px; height: 72px; margin-top: -30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(238, 108, 90, .45), 0 0 0 6px var(--bg); transition: transform .12s; }
.mic-fab:active { transform: scale(.93); }
.mic-fab svg { width: 30px; height: 30px; }

/* ── 토스트 ──────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; width: calc(100% - 32px); max-width: 528px; background: #2A2421; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #FFB4A8; font-weight: 700; white-space: nowrap; padding: 4px 2px; }
:root[data-theme="dark"] .toast { background: #F3ECE7; color: #1F1A17; }
:root[data-theme="dark"] .toast button { color: var(--danger); }

/* ── 음성 오버레이 ───────────────────── */
.voice { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .2s; display: flex; }
.voice-panel { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.voice-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); font-size: 18px; }
.orb { position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-top: 4vh; }
.orb svg { width: 50px; height: 50px; position: relative; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; }
.orb.listening .orb-ring { animation: orb 1.6s ease-out infinite; }
.orb:not(.listening) { background: var(--ink-3); }
@keyframes orb { 0% { box-shadow: 0 0 0 0 rgba(238,108,90,.5), 0 0 0 0 rgba(238,108,90,.3); } 100% { box-shadow: 0 0 0 26px rgba(238,108,90,0), 0 0 0 52px rgba(238,108,90,0); } }
.v-status { margin-top: 22px; font-weight: 700; font-size: 18px; text-align: center; }
.v-status.err { color: var(--danger); }
.v-text { min-height: 64px; margin-top: 8px; font-size: 24px; font-weight: 700; text-align: center; line-height: 1.3; word-break: keep-all; }
.v-label { margin-top: auto; font-size: 13px; color: var(--ink-3); align-self: flex-start; margin-bottom: 8px; }
.v-examples { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; }
.v-examples button { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; font-size: 14px; }
.v-form { display: flex; gap: 8px; align-self: stretch; margin-top: 14px; }
.v-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 13px 14px; font-size: 16px; }
.v-form button { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 0 18px; font-weight: 700; }

.banner { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.banner button { margin-left: auto; font-weight: 700; color: var(--accent); white-space: nowrap; }

@media (max-width: 360px) {
  .ring-big { font-size: 44px; }
  .timer-main { font-size: 54px; }
  .item { grid-template-columns: 66px 10px 1fr auto; gap: 8px; padding: 12px; }
  .gap { padding-left: 88px; }
}

/* ── v2: 세 가지 질문 카드 ───────────── */
.top-right { display: flex; align-items: center; gap: 10px; }
.gear { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.gear svg { width: 21px; height: 21px; }
.gear.on { background: var(--card-2); color: var(--ink); }
.ans-q { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.hero .ans-q { margin-bottom: 8px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ans { text-align: left; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.ans:active { transform: scale(.98); }
.ans-a { font-size: 19px; font-weight: 800; line-height: 1.2; word-break: keep-all; }
.ans-a.ok { color: var(--ok); } .ans-a.warn { color: #C98A1E; } .ans-a.bad { color: var(--danger); } .ans-a.mute { color: var(--ink-3); font-size: 16px; }
.ans-s { font-size: 11.5px; color: var(--ink-3); margin-top: auto; line-height: 1.35; }
.big-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.meter .bar { height: 8px; border-radius: 9px; background: var(--card-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 9px; background: var(--warn); }
.meter .bar i.ok { background: var(--ok); } .meter .bar i.bad { background: var(--danger); }
.meter b { font-size: 13px; font-variant-numeric: tabular-nums; }
.meter b small { color: var(--ink-3); font-weight: 500; }
.sleep-live { display: flex; align-items: center; gap: 12px; border: 2px solid var(--sleep); padding: 14px; }
.sleep-live .q-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.sleep-live .q-ico svg { width: 21px; height: 21px; }
.sl-body { flex: 1; }
.sl-t { font-weight: 700; } .sl-t b { font-size: 20px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sl-s { font-size: 12px; color: var(--ink-3); }
.sleep-live .btn { padding: 0 16px; }
.say-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.say-list span { background: var(--card-2); border-radius: 99px; padding: 6px 11px; font-size: 13px; color: var(--ink-2); }

/* ── 시트 부가 요소 ──────────────────── */
.kind { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kind button { padding: 10px 2px; font-size: 13px; word-break: keep-all; }
.kind button.on[data-kind=sleep] { border-color: var(--sleep); }
.kind button.on[data-kind=diaper] { border-color: var(--diaper); }
.chips.center { justify-content: center; }
.seg.wide { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.seg.wide button { padding: 12px; }
.diaper-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.diaper-big button { background: var(--card-2); border-radius: 20px; padding: 20px 6px; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.diaper-big button span { font-size: 30px; }
.diaper-big button:active { transform: scale(.96); background: var(--accent-soft); }
.hint { text-align: center; font-size: 12px; color: var(--ink-3); margin: 0; }
.ex { color: var(--ink-2); margin: 0 0 10px; }
.ex.warn { background: var(--card-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.ex-list { margin: 0 0 14px; padding-left: 18px; color: var(--ink); }
.ex-list li { margin-bottom: 6px; }
.ex-stats { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; background: var(--card-2); border-radius: 14px; padding: 10px 4px; margin-bottom: 12px; font-size: 11px; color: var(--ink-3); }
.ex-stats b { display: block; font-size: 18px; color: var(--ink); }
.btn.wide { width: 100%; }

/* ── 질문하기 ────────────────────────── */
.ask-head h2 { margin: 6px 4px 2px; font-size: 22px; }
.ask-head p { margin: 0 4px 14px; color: var(--ink-3); font-size: 13px; }
.ask-sugg { margin-bottom: 14px; }
.ask-sugg .chip { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); text-align: left; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.msg.bot p { margin: 0 0 6px; } .msg.bot p:last-child { margin-bottom: 0; }
.msg.bot ul { margin: 4px 0 8px; padding-left: 18px; } .msg.bot li { margin-bottom: 4px; }
.msg.bot p.alert { color: var(--danger); font-weight: 700; }
.msg.err { color: var(--danger); }
.typing { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.typing span { margin-left: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.link-btn { display: block; margin: 10px auto 0; font-size: 13px; color: var(--ink-3); }
.ask-form { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; gap: 8px; margin-top: 14px; background: var(--bg); padding: 6px 0; }
.ask-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 13px 14px; font-size: 16px; }
.ask-form button[type=submit] { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 0 16px; font-weight: 700; }
.ask-form button:disabled, .ask-form input:disabled { opacity: .5; }
.ask-mic { width: 48px; flex: none; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.disclaimer { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: 8px 8px 0; }

/* ── 설정 부가 요소 ──────────────────── */
.card.list { padding: 4px 16px; }
.row.col { flex-direction: column; align-items: stretch; }
.copy { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 10px; font-size: 13px; color: var(--ink-2); }
.pill { font-size: 13px; font-weight: 600; background: var(--card-2); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.pill-btn { padding: 0 16px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 20px; }
.btn.add { width: 100%; margin-top: 6px; background: var(--card); box-shadow: var(--shadow); }

/* ── 음성: 키보드 받아쓰기 모드 & AI 생각 중 ── */
.voice.kbd .orb { width: 84px; height: 84px; margin-top: 2vh; }
.voice.kbd .orb svg { width: 34px; height: 34px; }
.voice.kbd .v-form input { border: 2px solid var(--accent); }
.orb.thinking { background: var(--sleep); }
.orb.thinking .orb-ring { animation: orb 1s ease-out infinite; }

@media (max-width: 380px) {
  .quick { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .qbtn { padding: 10px; }
  .ans-a { font-size: 17px; }
  .kind button { font-size: 12px; }
}

/* ── v3: 음성 중심 · 한눈에 보는 홈 ─────────── */
body.onboarding .tabbar { display: none; }
body.onboarding { padding-bottom: 24px; }
.mic-fab { flex-direction: column; gap: 0; width: 76px; height: 76px; }
.mic-fab svg { width: 28px; height: 28px; }
.mic-fab span { font-size: 11px; font-weight: 800; margin-top: -2px; }
.tab span { white-space: nowrap; }

.feed-hero { padding: 18px 18px 16px; }
.fh-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fh-label { font-weight: 800; font-size: 15px; }
.fh-what { font-size: 13px; color: var(--ink-2); text-align: right; }
.fh-big { margin: 6px 0 10px; display: flex; align-items: baseline; gap: 6px; }
.fh-big b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fh-big span { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.fh-bar { height: 10px; border-radius: 9px; background: var(--card-2); overflow: hidden; }
.fh-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--ok); transition: width .6s; }
.fh-bar i.warn { background: var(--warn); } .fh-bar i.over { background: var(--danger); }
.fh-next { margin-top: 10px; font-size: 16px; }
.fh-next .over { color: var(--danger); font-weight: 800; }
.feed-hero.empty .fh-empty { font-size: 26px; font-weight: 800; margin: 8px 0 6px; }
.feed-hero.empty .fh-next { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.side-chip { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; flex-wrap: wrap; }
.side-chip b { font-size: 20px; font-weight: 900; }
.side-chip small { font-size: 12px; font-weight: 500; color: var(--ink-2); width: 100%; }
.side-chip.s-L { background: color-mix(in srgb, var(--left) 16%, var(--card)); } .side-chip.s-L b { color: var(--left); }
.side-chip.s-R { background: color-mix(in srgb, var(--right) 16%, var(--card)); } .side-chip.s-R b { color: var(--right); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tile { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 112px; }
.tile:active { transform: scale(.98); }
.t-label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.t-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.t-big small { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.t-big.mute { color: var(--ink-3); }
.t-sub { font-size: 12.5px; color: var(--ink-2); margin-top: auto; }
.t-sub.ok { color: var(--ok); font-weight: 700; } .t-sub.warn { color: #C98A1E; font-weight: 700; } .t-sub.bad { color: var(--danger); font-weight: 700; }
.tile.sleeping { border: 2px solid var(--sleep); }
.t-btn { margin-top: 8px; background: var(--sleep); color: #fff; border-radius: 12px; padding: 9px; font-weight: 800; }

.today { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; text-align: left; margin-bottom: 12px; }
.td-v { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.td-v i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.today.ok .td-v i { background: var(--ok); } .today.warn .td-v i { background: var(--warn); } .today.bad .td-v i { background: var(--danger); }
.today.bad .td-v { color: var(--danger); }
.td-s { font-size: 12.5px; color: var(--ink-3); }

.voice-hint { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--accent); color: #fff; border-radius: 22px; padding: 16px 18px; text-align: left; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(238,108,90,.3); }
.voice-hint:active { transform: scale(.98); }
.vh-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.vh-ico svg { width: 28px; height: 28px; }
.voice-hint b { display: block; font-size: 20px; font-weight: 800; }
.voice-hint small { font-size: 14px; opacity: .92; }

.quick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qb { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.qb:active { transform: scale(.97); }
.qb:last-child:nth-child(odd) { grid-column: span 2; }
.qb-e { font-size: 26px; line-height: 1; }
.qb b { font-size: 18px; font-weight: 800; margin-top: 8px; }
.qb small { font-size: 13px; color: var(--ink-3); }
.q-breast small { color: var(--accent); font-weight: 700; }

.live { text-align: center; padding: 18px; }
.live.s-L { border-color: var(--left); } .live.s-R { border-color: var(--right); }
.live-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.live-side { font-size: 40px; font-weight: 900; margin-top: 6px; }
.live.s-L .live-side { color: var(--left); } .live.s-R .live-side { color: var(--right); }
.live .timer-main { margin: 0 0 6px; font-size: 60px; }
.live-split { display: flex; justify-content: center; gap: 16px; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.live-split .on { color: var(--ink); font-weight: 700; }
.live-split b { font-variant-numeric: tabular-nums; }
.switch-hint { min-height: 20px; font-size: 14px; font-weight: 700; color: #C98A1E; margin-bottom: 6px; }
.btn.huge { width: 100%; height: 64px; font-size: 20px; font-weight: 800; border-radius: 18px; margin-top: 10px; }
.live-links { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.live-links button { font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

.diaper-big.two { grid-template-columns: 1fr 1fr; }
.t-acts { display: flex; gap: 14px; }
.log-seg { margin: 6px 0 4px; }

.v-form { display: none; }
.voice.kbd .v-form, .voice.typing .v-form { display: flex; }
.voice.kbd .type-link, .voice.typing .type-link { display: none; }
.type-link { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.v-text { font-size: 26px; }

.ob { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); padding-top: 4vh; }
.ob-step { font-size: 13px; font-weight: 800; color: var(--accent); }
.ob h1 { font-size: 28px; margin: 8px 0 6px; line-height: 1.25; word-break: keep-all; }
.ob p { color: var(--ink-2); margin: 0 0 18px; }
.ob-input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 16px; font-size: 18px; margin-bottom: 10px; }
.ob .btn.huge { margin-top: auto; }
.ob-choices { display: grid; gap: 12px; }
.ob-choices button { background: var(--card); box-shadow: var(--shadow); border-radius: 20px; padding: 20px; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.ob-choices span { font-size: 30px; }
.ob-mic { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 14px auto; }
.ob-mic svg { width: 44px; height: 44px; }
.ob-big { font-size: 20px; font-weight: 700; color: var(--ink) !important; text-align: center; line-height: 1.45; }
.ob-ex { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ob-ex li { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 17px; font-weight: 700; box-shadow: var(--shadow); }
.ob-note { font-size: 14px; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; color: var(--ink) !important; }

.age:empty { display: none; }

/* ── v4: 지금 할 일 중심 ─────────────── */
.status { padding: 18px; }
.st-k { font-size: 15px; font-weight: 800; color: var(--ink-2); }
.st-big { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 10px; }
.st-big b { font-size: 46px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.st-big span { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.st-sub { margin-top: 10px; font-size: 16px; color: var(--ink); }
.st-sub .over { color: var(--danger); font-weight: 800; }
.st-first { font-size: 26px; font-weight: 800; line-height: 1.35; margin-top: 6px; }
.sleeping-st { border: 2px solid var(--sleep); }
.actions { display: grid; gap: 10px; margin-bottom: 12px; }
.coach { text-align: center; font-weight: 800; color: var(--accent); font-size: 16px; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.act-big { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border-radius: 22px; padding: 18px; background: var(--card); box-shadow: var(--shadow); border: 2px solid transparent; }
.act-big:active { transform: scale(.98); }
.act-big .ab-e { font-size: 38px; line-height: 1; }
.act-big b { display: block; font-size: 22px; font-weight: 900; }
.act-big small { font-size: 14px; color: var(--ink-2); }
.act-big em { font-style: normal; font-weight: 900; }
.act-big em.s-L { color: var(--left); } .act-big em.s-R { color: var(--right); }
.act-big.breast { border-color: color-mix(in srgb, var(--left) 55%, transparent); }
.act-big.bottle { border-color: color-mix(in srgb, var(--formula) 60%, transparent); }
.act-big.wake { border-color: var(--sleep); background: color-mix(in srgb, var(--sleep) 12%, var(--card)); }
.act-small { background: var(--card); border-radius: 16px; padding: 14px; font-weight: 700; box-shadow: var(--shadow); }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act-row .act-mid:only-child { grid-column: span 2; }
.act-mid { background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 16px 10px; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.act-mid span { font-size: 26px; }
.act-mid:active { transform: scale(.97); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.strip button { background: var(--card); box-shadow: var(--shadow); border-radius: 16px; padding: 12px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.strip span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.strip b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip small { font-size: 11.5px; color: var(--ink-2); }
.strip small.ok { color: var(--ok); } .strip small.warn { color: #C98A1E; } .strip small.bad { color: var(--danger); } .strip small.mute { color: var(--ink-3); }
.missed { display: block; margin: 14px auto 0; font-size: 14px; color: var(--ink-3); }
.missed b { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.after-done { font-size: 16px; font-weight: 800; color: var(--ok); margin: 2px 0 6px; }
.link-inline { font-size: 14px; color: var(--ink-2); text-decoration: underline; margin-left: 6px; font-weight: 600; }
.sheet .btn.huge { margin-top: 0; }
.ob h1 { font-size: 30px; }
.ob-choices button { padding: 24px 20px; font-size: 24px; }

/* ── v5: 비서 ─────────────────────────── */
.tabbar { display: none; }
body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.brand { background: none; }
.top-icons { display: flex; align-items: center; gap: 4px; }
.top-icons button { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.top-icons button svg { width: 22px; height: 22px; }
.micbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); pointer-events: none; }
.micbar > * { pointer-events: auto; }
.mic-big { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(238,108,90,.45); transition: transform .12s; }
.mic-big:active { transform: scale(.93); }
.mic-big svg { width: 36px; height: 36px; }
.micbar span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
body.onboarding .micbar { display: none; }
body[data-view="settings"] .micbar, body[data-view="stats"] .micbar { display: none; }

.assistant { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 20px 20px 14px; margin-top: 6px; }
.as-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.as-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 16px; }
.as-say { font-size: 26px; font-weight: 800; line-height: 1.32; margin: 12px 0 6px; word-break: keep-all; letter-spacing: -0.02em; }
.as-say .red { color: var(--danger); }
.as-say em, .as-sub em { font-style: normal; font-weight: 900; }
em.s-L { color: var(--left); } em.s-R { color: var(--right); }
.as-big { font-size: 17px; color: var(--ink-2); font-weight: 600; }
.as-big b { font-size: 22px; color: var(--ink); font-weight: 800; }
.as-timer { font-size: 56px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.as-sub { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.as-sub b { font-variant-numeric: tabular-nums; color: var(--ink); }
.as-tip { font-size: 15px; font-weight: 700; color: #C98A1E; margin-top: 6px; min-height: 0; }
.as-tip:empty { display: none; }
.as-body { margin-top: 16px; display: grid; gap: 10px; }
.primary-act { width: 100%; min-height: 68px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 21px; font-weight: 900; padding: 14px; box-shadow: 0 6px 16px rgba(238,108,90,.3); }
.primary-act:active { transform: scale(.98); }
.primary-act.sleep, .primary-act.wake { background: var(--sleep); box-shadow: 0 6px 16px rgba(139,127,217,.3); }
.chips2 { display: flex; gap: 8px; }
.chips2 button { flex: 1; background: var(--card-2); border-radius: 16px; padding: 14px 8px; font-weight: 800; font-size: 16px; }
.choice3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice3 button { background: var(--card-2); border-radius: 18px; padding: 16px 4px; font-weight: 800; font-size: 17px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.choice3 span { font-size: 28px; }
.choice3 button:active { background: var(--accent-soft); }
.other { display: block; margin: 12px auto 2px; font-size: 15px; color: var(--ink-3); font-weight: 600; padding: 6px 10px; }

.qa { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.qa-q { font-weight: 800; margin-bottom: 8px; }
.qa-a { font-size: 15px; line-height: 1.6; }
.qa-a p { margin: 0 0 6px; } .qa-a ul { margin: 4px 0 6px; padding-left: 18px; }
.qa-a p.alert { color: var(--danger); font-weight: 800; }
.qa-a.err { color: var(--danger); }
.qa-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.qa-foot button { font-size: 13px; color: var(--ink-2); font-weight: 700; }

.recent { margin-top: 14px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 6px 4px; }
.rc-head { width: 100%; display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rc-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 15px; font-weight: 600; text-align: left; border-top: 1px solid var(--line); }
.rc-t { color: var(--ink-3); font-weight: 500; font-size: 13px; min-width: 68px; font-variant-numeric: tabular-nums; }
.rc-all { width: 100%; padding: 12px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }
.other-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.other-grid button { background: var(--card-2); border-radius: 20px; padding: 20px 8px; font-size: 18px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.other-grid span { font-size: 30px; }
.backbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.backbar button { font-weight: 800; color: var(--accent); padding: 6px 0; }
.backbar b { font-size: 18px; }
.toast { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ── v6: 말로 하는 홈 ─────────────────── */
.alarm-btn { width: auto !important; padding: 0 10px; font-size: 13px; font-weight: 800; color: var(--ink) !important; background: var(--card); border-radius: 99px !important; height: 32px !important; box-shadow: var(--shadow); }
.hero2 { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 20px; margin-top: 6px; }
.hero2.s-L { border: 2px solid var(--left); } .hero2.s-R { border: 2px solid var(--right); } .hero2.sleep { border: 2px solid var(--sleep); }
.h2-k { font-size: 14px; font-weight: 800; color: var(--ink-3); }
.h2-big { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.h2-big small { font-size: 20px; color: var(--ink-2); font-weight: 700; }
.h2-big em { font-style: normal; }
.h2-sub { font-size: 17px; color: var(--ink-2); }
.h2-sub b { color: var(--ink); }
.h2-sub em { font-style: normal; font-weight: 900; }
.h2-sub .red { color: var(--danger); font-weight: 900; }
.h2-ask { font-size: 28px; font-weight: 900; line-height: 1.3; margin-top: 4px; word-break: keep-all; }
.say { margin-top: 12px; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 14px; }
.hf-pill { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 18px; padding: 12px 14px; background: var(--card-2); }
.hf-pill b { display: block; font-size: 16px; font-weight: 800; }
.hf-pill small { font-size: 12.5px; color: var(--ink-2); }
.hp-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); flex: none; }
.hf-pill.on { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.hf-pill.on .hp-dot { background: var(--ok); animation: pulse2 1.6s infinite; }
.hf-pill.armed { background: var(--accent); color: #fff; } .hf-pill.armed small { color: #fff; }
.hf-pill.armed .hp-dot { background: #fff; animation: pulse2 .8s infinite; }
.hf-pill.stalled { background: color-mix(in srgb, var(--warn) 18%, var(--card)); }
.hf-pill.stalled .hp-dot { background: var(--warn); }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(63,166,114,.5); } 70% { box-shadow: 0 0 0 10px rgba(63,166,114,0); } 100% { box-shadow: 0 0 0 0 rgba(63,166,114,0); } }
.say-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.say-chips button { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.say-chips button:active { background: var(--accent-soft); border-color: var(--accent); }
.say-chips button:first-child { grid-column: span 2; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.say-chips b { font-size: 20px; font-weight: 900; }
.say-chips button:first-child b { font-size: 24px; }
.say-chips small { font-size: 13px; color: var(--ink-2); }
.say-more { font-size: 12.5px; color: var(--ink-3); margin: 12px 4px 2px; line-height: 1.5; }

.today-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 8px 4px 4px; margin-top: 12px; }
.tc-head { width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 8px 14px 4px; text-align: left; }
.tc-head b { font-size: 18px; font-weight: 900; }
.tc-head span { flex: 1; font-size: 12.5px; color: var(--ink-2); }
.tc-head em { font-style: normal; color: var(--ink-3); }
.daybar { padding: 8px 14px 6px; }
.db-track { position: relative; height: 30px; border-radius: 10px; background: var(--card-2); overflow: hidden; }
.db-track i { position: absolute; display: block; }
.db-sleep { top: 0; bottom: 0; background: var(--sleep-soft); }
.db-feed { top: 7px; height: 16px; border-radius: 4px; }
.db-feed.live { background: var(--accent); animation: blink 1.2s infinite; }
.db-dot { top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--card); }
.db-tick { top: 0; width: 3px; height: 8px; margin-left: -1px; background: var(--diaper); border-radius: 0 0 2px 2px; }
.db-now { top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.db-due { top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--accent); }
.db-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.today-card .tl { box-shadow: none; background: none; }
.item { grid-template-columns: 58px 40px 1fr; gap: 12px; padding: 10px 14px; }
.item .t { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.15; text-align: right; }
.item .t br + * , .item .t { white-space: normal; }
.item .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.item .main { font-size: 16px; font-weight: 700; }
.gap { padding: 0 14px 0 82px; height: 22px; }
.gap::before { display: none; }
.gap span { font-size: 12px; color: var(--ink-3); background: var(--card-2); border-radius: 99px; padding: 2px 10px; }
.gap b { color: var(--accent); }
.day-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin: 0 4px 2px; }
.day-sum b { color: var(--ink); }
.empty { padding: 30px 0; }
.say-chips button:last-child:nth-child(even) { grid-column: span 2; }

/* ══ v7: 모던 · 심플 · 음성 중심 ══════════════════════════════ */
:root {
  --bg: #F6F6F4; --card: #FFFFFF; --card-2: #F0F0EE; --ink: #111113; --ink-2: #66666E; --ink-3: #A1A1AA; --line: #E7E7E4;
  --accent: #6D5DF6; --accent-ink: #FFFFFF; --accent-soft: #EEEBFF;
  --left: #FF7A59; --right: #3E7BFA; --formula: #F2A93B; --bmilk: #2FB37A; --sleep: #8B7CF6; --sleep-soft: rgba(139,124,246,.22); --diaper: #B08968;
  --ok: #22A06B; --warn: #E8A21A; --danger: #E5484D; --shadow: none; --r: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0C0C10; --card: #16161C; --card-2: #1F1F27; --ink: #F4F4F6; --ink-2: #A0A0AB; --ink-3: #6B6B76; --line: #26262F; --accent: #8B7EFF; --accent-soft: #221F3D; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0C0C10; --card: #16161C; --card-2: #1F1F27; --ink: #F4F4F6; --ink-2: #A0A0AB; --ink-3: #6B6B76; --line: #26262F; --accent: #8B7EFF; --accent-soft: #221F3D; color-scheme: dark; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; padding-bottom: calc(40px + env(safe-area-inset-bottom)); letter-spacing: -0.015em; }
.card, .today-card, .qa, .recent, .kpi, .tl, .say, .hero2 { box-shadow: none; border: 1px solid var(--line); }
.topbar { padding-top: 16px; }
.brand { font-size: 17px; font-weight: 800; }
.age { background: var(--card-2); color: var(--ink-2); font-weight: 700; }
.top-icons button { color: var(--ink-2); }
.alarm-btn { box-shadow: none !important; border: 1px solid var(--line); }

/* 홈: 상태 → 오브 → 제안 → 대화 */
.v-home { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6vh 0 8px; }
.v-home .hero2 { background: none; border: 0; padding: 0; margin: 0; }
.v-home .hero2.s-L, .v-home .hero2.s-R, .v-home .hero2.sleep { border: 0; }
.h2-k { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.h2-big { font-size: 52px; font-weight: 800; letter-spacing: -0.045em; margin: 4px 0 6px; }
.h2-big small { font-size: 22px; font-weight: 600; color: var(--ink-3); }
.h2-sub { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.h2-sub b { font-weight: 700; }
.h2-ask { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.v-home .as-tip { color: var(--warn); }
.orb-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 5vh; width: 100%; }
.orb3 { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 28%, #B4A9FF 0%, #6D5DF6 45%, #3E7BFA 100%); box-shadow: 0 18px 40px rgba(109,93,246,.35); transition: transform .15s; }
.orb3:active { transform: scale(.94); }
.orb3 svg { width: 44px; height: 44px; position: relative; z-index: 2; }
.orb3 .o1, .orb3 .o2 { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(109,93,246,.35); opacity: 0; }
.orb3.live .o1 { animation: ripple 2.4s ease-out infinite; }
.orb3.live .o2 { animation: ripple 2.4s ease-out 1.2s infinite; }
.orb3.live { animation: breathe 3.2s ease-in-out infinite; }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.04); } }
.hf-line { margin-top: 18px; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 99px; }
.hf-line b { color: var(--accent); font-weight: 700; }
.hf-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.hf-line.on i { background: var(--ok); animation: pulse2 1.6s infinite; }
.hf-line.on b { color: var(--ink); }
.hf-line.armed { background: var(--accent); color: #fff; } .hf-line.armed b { color: #fff; } .hf-line.armed i { background: #fff; }
.hf-line.stalled i { background: var(--warn); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 420px; }
.pills button { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 11px 16px; font-size: 17px; font-weight: 700; color: var(--ink); }
.pills button:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills button:active { transform: scale(.96); }
.convo { margin-top: 22px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 6px; }
.c-me { align-self: flex-end; background: var(--card-2); border-radius: 18px 18px 4px 18px; padding: 9px 14px; font-weight: 600; }
.c-bot { align-self: flex-start; text-align: left; background: var(--accent-soft); color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 600; }
.c-bot button { color: var(--accent); font-weight: 800; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* 타임라인 */
.today-card { margin-top: 26px; border-radius: 24px; padding: 6px 2px 2px; background: var(--card); }
.tc-head b { font-size: 17px; }
.tc-head span { color: var(--ink-3); }
.db-track { height: 22px; border-radius: 8px; }
.db-feed { top: 5px; height: 12px; }
.db-dot { top: 5px; width: 12px; height: 12px; border-color: var(--card-2); }
.item { grid-template-columns: 52px 30px 1fr; padding: 9px 14px; }
.item .t { font-size: 14px; font-weight: 700; }
.item .ic { width: 30px; height: 30px; font-size: 15px; background: var(--card-2) !important; }
.item .main { font-size: 15.5px; font-weight: 650; }
.item .sub { font-size: 12.5px; }
.gap { padding-left: 74px; }
.gap span { background: none; padding: 0; }
.gap b { color: var(--ink-2); }
.rc-all { color: var(--ink-3); }
.qa { margin-top: 18px; border-radius: 24px; }

/* 말하기 화면 (음성 모드) */
.voice { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.voice .orb { width: 140px; height: 140px; background: radial-gradient(circle at 30% 28%, #B4A9FF 0%, #6D5DF6 45%, #3E7BFA 100%); box-shadow: 0 18px 40px rgba(109,93,246,.35); }
.voice .orb:not(.listening) { background: var(--card-2); color: var(--ink-3); box-shadow: none; }
.voice .orb.listening .orb-ring { animation: ripple 1.4s ease-out infinite; border: 2px solid rgba(109,93,246,.4); }
.voice .orb.thinking { background: radial-gradient(circle at 30% 28%, #E0D9FF, #8B7CF6); }
.v-status { font-weight: 600; color: var(--ink-2); font-size: 16px; }
.v-text { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.v-examples button { background: var(--card); border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.voice-close { background: var(--card-2); }
.v-form input { border-radius: 99px; }
.v-form button { border-radius: 99px; }

/* 시트 · 버튼 톤 */
.sheet-panel { border-radius: 28px 28px 0 0; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.huge.primary { background: var(--ink); }
.diaper-big button, .other-grid button, .ob-choices button { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.ob-choices button:active, .diaper-big button:active { background: var(--accent-soft); }
.ob-mic { background: radial-gradient(circle at 30% 28%, #B4A9FF 0%, #6D5DF6 45%, #3E7BFA 100%); }
.ob-note { background: var(--card-2); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); border-radius: 18px; }
.toast button { color: var(--accent-soft); }
.backbar button { color: var(--ink); }
.switch.on { background: var(--accent); }
.chip.on { background: var(--ink); }
body.onboarding .top-icons { display: none; }
.hf-heard { min-height: 18px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diag { display: grid; gap: 6px; margin: 10px 0; }
.diag div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.diag span { color: var(--ink-2); }
.diag b.ok { color: var(--ok); } .diag b.bad { color: var(--danger); }

/* ── 수유 패턴 ── */
.pattern { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; margin-top: 18px; }
.pt-head { display: flex; justify-content: space-between; align-items: baseline; }
.pt-head b { font-size: 17px; font-weight: 800; }
.pt-head span { font-size: 12.5px; color: var(--ink-3); }
.pt-empty { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.pt-avg { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.pt-avg b { color: var(--accent); }
.pt-dn { display: flex; gap: 12px; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.pt-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 14px; }
.pt-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.pt-bars i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--accent) 55%, var(--card-2)); min-height: 6px; }
.pt-bars div:last-child i { background: var(--accent); }
.pt-bars b { font-size: 11.5px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pt-bars small { font-size: 10px; color: var(--ink-3); }
.pt-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.pt-next b { background: var(--card-2); border-radius: 99px; padding: 5px 10px; color: var(--ink); font-size: 13.5px; }
.pt-next b:first-of-type { background: var(--ink); color: var(--bg); }

/* ── v10: 더 단순하게 ── */
.hint { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.hint button { font-size: 20px; font-weight: 800; color: var(--ink); padding: 6px 4px; border-bottom: 2px solid var(--line); border-radius: 0; }
.hint button:active { color: var(--accent); border-color: var(--accent); }
.hf-line { margin-top: 16px; font-size: 13.5px; }
.mini { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 4px 0 0; }
.mini .tl { border: 0; background: none; }
.ob-foot { margin-top: 18px !important; font-size: 13px; color: var(--ink-3) !important; text-align: center; }
.pattern { margin-top: 6px; }

/* ══ v11: 대화형 + 실시간 대시보드 ═════════════════ */
body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.onboarding .vbar { display: none !important; }
.dash { margin-top: 4px; }
.db-main { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; }
.db-main.live.s-L { border: 2px solid var(--left); } .db-main.live.s-R { border: 2px solid var(--right); }
.dm-k { font-size: 13.5px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.dm-big { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.dm-big small { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.dm-big em { font-style: normal; }
.dm-big.mute { color: var(--ink-3); font-size: 30px; }
.dm-bar { height: 6px; border-radius: 9px; background: var(--card-2); overflow: hidden; margin-bottom: 8px; }
.dm-bar i { display: block; height: 100%; border-radius: 9px; background: var(--ok); }
.dm-bar i.warn { background: var(--warn); } .dm-bar i.over { background: var(--danger); }
.dm-sub { font-size: 15.5px; color: var(--ink-2); }
.dm-sub b { color: var(--ink); } .dm-sub em { font-style: normal; font-weight: 800; }
.red { color: var(--danger); font-weight: 800; }
.db-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.db-tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; min-width: 0; }
.db-tile.sleeping { border-color: var(--sleep); }
.db-tile.alarm { border-color: var(--accent); }
.dt-k { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.dt-big { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-sub { font-size: 12.5px; color: var(--ink-2); }
.db-today { font-size: 12.5px; color: var(--ink-3); margin: 10px 4px 0; line-height: 1.5; }

.convo2 { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.m { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.m.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; font-weight: 600; }
.m.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.m.bot.has-card { max-width: 100%; width: 100%; }
.m.bot p { margin: 0 0 6px; } .m.bot p:last-child { margin: 0; } .m.bot ul { margin: 4px 0; padding-left: 18px; }
.m.bot p.alert { color: var(--danger); font-weight: 800; }
.m.err { color: var(--danger); }
.m.typing { display: flex; gap: 4px; padding: 14px; }
.card-in { margin-top: 10px; }
.card-in .daybar { padding: 4px 0 6px; }
.card-in .tl { border: 0; background: none; margin: 0 -10px; }
.m .pattern { border: 0; padding: 0; margin: 8px 0 0; background: none; }
.pt-sleep { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.pt-sleep div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.pt-sleep span { color: var(--ink-2); } .pt-sleep b { font-weight: 700; text-align: right; }

.vbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.orb-s { position: relative; width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 28%, #B4A9FF 0%, #6D5DF6 45%, #3E7BFA 100%); box-shadow: 0 8px 20px rgba(109,93,246,.35); }
.orb-s svg { width: 26px; height: 26px; position: relative; z-index: 2; }
.orb-s .o1 { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(109,93,246,.4); opacity: 0; }
.vbar.live .orb-s .o1 { animation: ripple 2.4s ease-out infinite; }
.vbar.armed .orb-s { box-shadow: 0 0 0 6px rgba(109,93,246,.25), 0 8px 20px rgba(109,93,246,.35); }
.vbar.armed .orb-s .o1 { animation: ripple 1s ease-out infinite; }
.vbar.stalled .orb-s { background: var(--card-2); color: var(--ink-3); box-shadow: none; }
.vb-text { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.vb-text b { font-size: 16.5px; font-weight: 800; }
.vbar.armed .vb-text b { color: var(--accent); }
.vb-text small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
/* 대시보드는 항상 위에 고정 (실시간 진행 상황) · 최신 대답은 음성 바에 가리지 않게 */
.dash { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: 6px 0 8px; margin: 0 -2px; box-shadow: 0 10px 12px -12px rgba(0,0,0,.15); }
.dash .db-main { padding: 12px 16px; }
.dash .dm-big { font-size: 32px; margin: 0 0 4px; }
.dash .db-tile { padding: 10px 12px; }
.dash .dt-big { font-size: 19px; }
.dash .db-today { margin-top: 6px; }
#convoEnd { scroll-margin-bottom: 130px; height: 1px; }

/* ══ v12: 완전 음성 중심 홈 ══════════════════════════ */

body[data-view="home"] { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.vhome { display: flex; flex-direction: column; min-height: calc(100dvh - 80px); }
.strip3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.s3 { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; min-width: 0; }
.s3 span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.s3 b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3 b i, .s3 small i { font-style: normal; font-variant-numeric: tabular-nums; }
.s3 b em { font-style: normal; }
.s3 b.mute { color: var(--ink-3); }
.s3 small { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.s3.over { border-color: var(--danger); } .s3.over small { color: var(--danger); font-weight: 700; }
.s3.sleeping { border-color: var(--sleep); }
.s3.alarm { border-color: var(--accent); } .s3.alarm b { color: var(--accent); }
.s3.live.s-L { border-color: var(--left); } .s3.live.s-R { border-color: var(--right); }
.s3.live.s-L em { color: var(--left); } .s3.live.s-R em { color: var(--right); }

.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6vh 8px 4vh; }
.orb4 { position: relative; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 28%, #C9C0FF 0%, #7B6CFA 42%, #3E7BFA 100%); box-shadow: 0 22px 50px rgba(109,93,246,.35); transition: transform .25s ease, filter .25s, box-shadow .25s; }
.orb4 svg { width: 54px; height: 54px; position: relative; z-index: 2; transition: opacity .2s; }
.orb4 .r1, .orb4 .r2, .orb4 .r3 { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(123,108,250,.35); opacity: 0; }
.orb4:active { transform: scale(.95); }
.orb4.off { background: var(--card-2); color: var(--ink-3); box-shadow: none; }
.orb4.live { animation: breathe 3.4s ease-in-out infinite; }
.orb4.live .r1 { animation: ripple 3s ease-out infinite; }
.orb4.armed { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(123,108,250,.18), 0 26px 60px rgba(109,93,246,.5); }
.orb4.armed .r1, .orb4.hearing .r1 { animation: ripple 1.1s ease-out infinite; }
.orb4.armed .r2, .orb4.hearing .r2 { animation: ripple 1.1s ease-out .37s infinite; }
.orb4.armed .r3, .orb4.hearing .r3 { animation: ripple 1.1s ease-out .74s infinite; }
.orb4.hearing { animation: talk .5s ease-in-out infinite alternate; }
.orb4.thinking { filter: saturate(.6) brightness(1.1); animation: spinGlow 1.2s linear infinite; }
.orb4.speaking { animation: talk .35s ease-in-out infinite alternate; }
.orb4.speaking svg, .orb4.thinking svg { opacity: .35; }
.orb4.reply { box-shadow: 0 0 0 10px rgba(34,160,107,.15), 0 22px 50px rgba(109,93,246,.3); }
.orb4.err { box-shadow: 0 0 0 10px rgba(229,72,77,.15), 0 22px 50px rgba(109,93,246,.25); }
@keyframes talk { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes spinGlow { 0% { box-shadow: 0 0 0 0 rgba(123,108,250,.4), 0 22px 50px rgba(109,93,246,.3); } 50% { box-shadow: 0 0 0 16px rgba(123,108,250,.1), 0 22px 50px rgba(109,93,246,.3); } 100% { box-shadow: 0 0 0 0 rgba(123,108,250,.4), 0 22px 50px rgba(109,93,246,.3); } }
.cap-main { margin-top: 34px; font-size: 28px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; word-break: keep-all; min-height: 36px; max-width: 100%; font-variant-numeric: tabular-nums; }
.cap-sub { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.45; word-break: keep-all; min-height: 20px; max-width: 100%; }
.ans-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.ans-card p { margin: 0 0 6px; } .ans-card ul { margin: 4px 0; padding-left: 18px; } .ans-card p.alert { color: var(--danger); font-weight: 800; }
.ans-card.typing { display: flex; gap: 4px; justify-content: center; }
.ans-foot { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 360px) { .orb4 { width: 160px; height: 160px; } .cap-main { font-size: 24px; } }

/* v13: 지금 상태 = 문장 한 줄씩 */
.strip3.nowlist { display: flex; flex-direction: column; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 4px 16px; }
.nl { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.nl:first-child { border-top: 0; }
.nl > i { font-style: normal; font-size: 20px; width: 24px; text-align: center; flex: none; }
.nl p { margin: 0; flex: 1; min-width: 0; color: var(--ink); }
.nl b { font-weight: 800; font-variant-numeric: tabular-nums; }
.nl small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.nl small em { font-style: normal; }
.nl.nl-over b, .nl.nl-over p { color: #E5484D; }
.nl.nl-live b, .nl.nl-sleep b { color: var(--accent, #6D5DF6); }
.pt-lines p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }

/* v14: 눌러서 기록(조용히) */
.qbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 4px; }
.qbar button, .qgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qbar button i, .qgrid button i { font-style: normal; font-size: 22px; line-height: 1; }
.qbar button.on { border-color: var(--accent, #6D5DF6); color: var(--accent, #6D5DF6); background: color-mix(in srgb, var(--accent, #6D5DF6) 8%, var(--card)); }
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qbig { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.qbig button { flex: 1 1 30%; min-height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2, #f1f1ef); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.qbig button.pri, .qform button.pri { background: var(--accent, #6D5DF6); color: #fff; border-color: transparent; }
.qchips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.qchips button { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2, #f1f1ef); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.qchips button.on { border-color: var(--accent, #6D5DF6); box-shadow: inset 0 0 0 1px var(--accent, #6D5DF6); }
.qtime { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.qtime button { border: 1px solid var(--line); background: transparent; color: var(--ink-2, var(--ink)); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.qtime button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qhint { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.qform { display: flex; gap: 8px; margin: 10px 0; }
.qform input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.qform button { border: 0; border-radius: 14px; padding: 0 18px; font: inherit; font-weight: 700; }

/* v14: 통계 한눈에 */
.st-day { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 10px; font-size: 17px; }
.st-day button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.st-day button:disabled { opacity: .3; }
.st-clock { position: relative; padding: 14px; display: flex; justify-content: center; }
.clock24 { width: 100%; max-width: 320px; height: auto; display: block; }
.ck-h { font-size: 12px; fill: var(--ink-3); font-weight: 600; }
.ck-now { stroke: #E5484D; stroke-width: 2; stroke-linecap: round; }
.ck-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ck-center b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.ck-center span { font-size: 12px; color: var(--ink-3); }
.ck-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; color: var(--ink-3); margin: 8px 0 14px; }
.ck-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-big > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; }
.st-big span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.st-big b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.st-big small { display: block; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.st-lines { padding: 6px 16px 14px; }
.st-lines p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; }
.st-lines small { color: var(--ink-3); font-size: 13px; }
.st-week { padding: 8px 16px; }
.st-week > div { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.st-week > div:first-child { border-top: 0; }
.st-week span { color: var(--ink-3); font-weight: 600; }
.st-week i { height: 10px; background: var(--card-2, #eee); border-radius: 99px; overflow: hidden; }
.st-week em { display: block; height: 100%; background: var(--accent, #6D5DF6); border-radius: 99px; }
.st-week b { text-align: right; font-variant-numeric: tabular-nums; }
.st-week small { grid-column: 2 / 4; color: var(--ink-3); font-size: 12.5px; margin-top: -2px; }
.clock24, .clock24 path, .clock24 circle { stroke: none; }
.clock24 circle[style*="fill:none"] { stroke: var(--card-2, #eee); }
.clock24 text { font-family: inherit; stroke: none; }
.clock24 .ck-now { stroke: #E5484D; }

/* v15: 대시보드 — 마지막 수유 후 경과가 가장 크게 */
.dash { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; padding: 0; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 14px; }
.hero .h-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hero .h-top span { font-size: 14px; font-weight: 700; color: var(--ink-2, var(--ink)); }
.hero .h-top small { font-size: 13px; color: var(--ink-3); }
.hero .h-big { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 10px; }
.hero .h-big b { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .h-big b.mute { color: var(--ink-3); font-size: 28px; }
.hero .h-big span { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.hero .h-bar { height: 12px; border-radius: 99px; background: var(--card-2, #eee); overflow: hidden; }
.hero .h-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8B7CF8, var(--accent, #6D5DF6)); transition: width .6s; }
.hero .h-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); align-items: baseline; }
.hero .h-foot b { font-size: 14px; color: var(--accent, #6D5DF6); font-weight: 800; white-space: nowrap; }
.hero .h-foot span:last-child { text-align: right; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.hero.over .h-bar i { background: #E5484D; }
.hero.over .h-foot b, .hero.over .h-big b { color: #E5484D; }
.hero.live .h-big b { color: var(--accent, #6D5DF6); }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.mini span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.mini b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin: 3px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b i { font-style: normal; }
.mini small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini.m-sleep b, .mini.m-alarm b { color: var(--accent, #6D5DF6); }
.mini.m-over b, .mini.m-over small { color: #E5484D; }
.ck-center span { font-size: 12px; color: var(--ink-3); }
.ck-due { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 4 3; }
.clock24 .ck-due { stroke: var(--ink); }
.ck-legend i.dash-i { width: 12px; height: 0; border-top: 2.5px dashed var(--ink); border-radius: 0; vertical-align: 3px; }
.st-feeds { padding: 4px 16px; display: flex; flex-direction: column-reverse; }
.st-feeds > div { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st-feeds > div:first-child { border-bottom: 0; }
.st-feeds span { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 600; }
.st-feeds p { margin: 0; min-width: 0; }
.st-feeds b { font-variant-numeric: tabular-nums; color: var(--accent, #6D5DF6); }
.st-feeds .st-fh { font-size: 12px; padding: 8px 0 6px; }
.st-feeds .st-fh p, .st-feeds .st-fh b { color: var(--ink-3); font-weight: 600; }
.mini3.two { grid-template-columns: 1fr 1fr; }
.scard { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.scard > i { font-style: normal; font-size: 26px; flex: none; }
.scard > div { flex: 1; min-width: 0; }
.scard b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.scard b em { font-style: normal; color: var(--accent, #6D5DF6); }
.scard small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.scard .s-bar { height: 8px; border-radius: 99px; background: var(--card-2, #eee); overflow: hidden; margin-top: 7px; }
.scard .s-bar em { display: block; height: 100%; border-radius: 99px; background: #7FB6F5; }
.scard.soon b { color: #D9822B; } .scard.soon .s-bar em { background: #F0A44B; }
.scard.late b { color: #E5484D; } .scard.late .s-bar em { background: #E5484D; }
.scard.sleeping { background: color-mix(in srgb, var(--sleep, #8B7CF8) 10%, var(--card)); }
.mini { font: inherit; color: var(--ink); text-align: left; } button.mini { cursor: pointer; }
.mini3 .mini { margin-top: 0; padding: 10px 12px; border-radius: 16px; }
.strip3.nowlist.dash { background: none; border: 0; padding: 0; border-radius: 0; }
.hero .h-foot { align-items: center; }
.hero .h-foot span:last-child { white-space: nowrap; }
.vhome .stage { padding: 3vh 8px 2vh; }
.vhome .orb4 { width: 150px; height: 150px; }
.vhome .cap-main { font-size: 24px; }
details.fold summary { cursor: pointer; list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold[open] summary small { display: none; }

/* ── v16: 음성 오브(유리 구슬 + 흐르는 색) · 메인 수유 대시보드 · 기준 카드 · 시계 ── */
.orb4 { background: radial-gradient(circle at 50% 50%, #0E0B2A 0%, #1B1446 70%); overflow: hidden; isolation: isolate;
  box-shadow: 0 18px 50px rgba(96, 80, 240, .35), inset 0 0 0 1px rgba(255,255,255,.12); }
.orb4 svg, .orb4 .r1, .orb4 .r2, .orb4 .r3 { display: none; }
.orb4::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #5EE7FF, #7B6CFA, #FF6FD8, #FFB86B, #5EE7FF);
  filter: blur(18px); animation: orbSpin 9s linear infinite; opacity: .9; }
.orb4::after { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.75) 0, rgba(255,255,255,.18) 18%, transparent 42%),
              radial-gradient(circle at 70% 78%, rgba(255,255,255,.18) 0, transparent 40%);
  box-shadow: inset 0 -14px 30px rgba(20,10,60,.35), inset 0 10px 24px rgba(255,255,255,.18); }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes orbTalk { 0% { transform: scale(1); } 30% { transform: scale(1.07); } 60% { transform: scale(.99); } 100% { transform: scale(1.04); } }
.orb4.off { background: #2A2738; box-shadow: none; } .orb4.off::before { filter: blur(22px) saturate(.15); animation-duration: 30s; opacity: .55; }
.orb4.live { animation: orbPulse 4s ease-in-out infinite; } .orb4.live::before { animation-duration: 10s; }
.orb4.armed, .orb4.hearing { animation: orbTalk .7s ease-in-out infinite alternate; box-shadow: 0 0 0 12px rgba(123,108,250,.16), 0 24px 60px rgba(109,93,246,.5); }
.orb4.armed::before, .orb4.hearing::before { animation-duration: 2.4s; filter: blur(12px) saturate(1.3); }
.orb4.thinking { animation: none; filter: none; } .orb4.thinking::before { animation-duration: 1.1s; filter: blur(14px); }
.orb4.speaking { animation: orbTalk .38s ease-in-out infinite alternate; } .orb4.speaking::before { animation-duration: 3s; }
.orb4.reply { box-shadow: 0 0 0 10px rgba(34,160,107,.16), 0 22px 50px rgba(109,93,246,.3); }
@media (prefers-reduced-motion: reduce) { .orb4, .orb4::before { animation: none !important; } }

/* 메인 수유 → 다음 수유 */
.hero2 { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 14px; }
.h2-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h2-row > div { display: flex; flex-direction: column; min-width: 0; }
.h2-row span { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.h2-row b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.h2-row small { font-size: 13px; color: var(--ink-2); }
.h2-next { text-align: right; align-items: flex-end; } .h2-next b { color: var(--accent); }
.h2-arrow { font-style: normal; font-size: 22px; color: var(--ink-3); }
.h2-track { position: relative; height: 12px; border-radius: 99px; background: var(--card-2); margin: 14px 0 26px; }
.h2-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #8B7CF8, var(--accent)); transition: width .6s; }
.h2-track em { position: absolute; top: -4px; width: 0; height: 20px; border-left: 2px solid var(--ink); transition: left .6s; }
.h2-track em u { position: absolute; top: 22px; white-space: nowrap; text-decoration: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.h2-foot { font-size: 15px; color: var(--ink-2); } .h2-foot b { color: var(--ink); }
.hero2.past .h2-track > i { background: var(--ink-3); } .hero2.past .h2-next b { color: var(--ink-2); }
.h2-also { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

/* 오늘 잘하고 있나요? */
.guide { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px 12px; margin-top: 10px; text-align: left; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.g-head b { font-size: 16px; } .g-head span { font-size: 12px; color: var(--ink-3); }
.g-row { padding: 9px 0; border-top: 1px solid var(--line); } .g-row:first-of-type { border-top: 0; }
.g-k { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.g-k span { color: var(--ink-2); min-width: 72px; } .g-k b { font-size: 18px; font-variant-numeric: tabular-nums; } .g-k small { color: var(--ink-3); font-size: 12.5px; }
.g-k em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.g-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.g-low { color: #B7791F; background: color-mix(in srgb, var(--warn) 16%, transparent); }
.g-bar { position: relative; height: 8px; border-radius: 99px; background: var(--card-2); margin-top: 6px; }
.g-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ok); }
.g-bar u { position: absolute; top: -3px; height: 14px; border-left: 2px dashed var(--ink-3); }
.g-row p { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; } .g-row p b { color: var(--ink-2); }
.g-tips { margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.g-tips p { margin: 0 0 4px; } .g-tips p:last-child { margin: 0; }
.g-foot { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.vhome .mini3.two .mini { margin-top: 0; }

/* ml 직접 입력 */
.qml { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.qml > button { width: 48px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); font-size: 22px; color: var(--ink); }
.qml label { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; border: 2px solid var(--accent); border-radius: 14px; height: 52px; padding: 0 10px; background: var(--card); }
.qml input { width: 100%; min-width: 0; border: 0; background: none; font-size: 28px; font-weight: 800; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; outline: none; }
.qml label span { font-size: 16px; color: var(--ink-3); font-weight: 700; }
.qml .pri { height: 52px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 800; }

/* 메인 수유 줄 */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 12px 14px 4px; }
.ch-t { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 10px; background: var(--card-2); line-height: 1.15; }
.ch-t b { font-size: 14px; font-variant-numeric: tabular-nums; } .ch-t small { font-size: 11px; color: var(--ink-3); }
.ch-t.next { background: none; border: 1.5px dashed var(--accent); } .ch-t.next b { color: var(--accent); }
.ch-gap { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-gap::before { content: '─ '; } .ch-gap::after { content: ' →'; }
.item.is-main .main { font-weight: 800; }
.tag.main { background: var(--accent-soft); color: var(--accent); }

/* 시계 */
.clock24 .ck-track { fill: none; stroke: var(--card-2); stroke-width: 34; }
.clock24 .ck-track2 { fill: none; stroke: var(--card-2); stroke-width: 18; opacity: .55; }
.clock24 .ck-tick { stroke: var(--ink-3); stroke-width: 1.2; opacity: .6; }
.clock24 .ck-h { font-size: 10.5px; fill: var(--ink-3); font-weight: 600; }
.clock24 .ck-gap.a { fill: color-mix(in srgb, var(--accent) 55%, transparent); }
.clock24 .ck-gap.b { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.clock24 .ck-gap.cur { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.clock24 .ck-gl { font-size: 13px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
.clock24 .ck-main { stroke: var(--card); stroke-width: 2.5; }
.clock24 .ck-mline { stroke: var(--ink-3); stroke-width: 1; opacity: .5; }
.clock24 .ck-mt { font-size: 12.5px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
.clock24 .ck-next { font-size: 12px; font-weight: 800; fill: var(--accent); }
.clock24 .ck-due { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.ck-legend { flex-direction: column; align-items: flex-start; padding: 0 6px; }
.ck-legend .dot { border-radius: 50%; background: var(--formula); }
.ck-legend .band { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.st-day small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.st-feeds b.off { color: #B7791F; }
.st-feeds p b { font-weight: 800; } .st-feeds p small { font-size: 12.5px; color: var(--ink-3); }
.st-note { font-size: 12px; color: var(--ink-3); margin: 6px 6px 0; }
.st-week i { position: relative; overflow: visible; } .st-week u { position: absolute; top: -3px; height: 16px; border-left: 2px dashed var(--ink-3); }
.st-feeds { flex-direction: column; } .st-feeds > div { border-bottom: 0; border-top: 1px solid var(--line); } .st-feeds > div:first-child { border-top: 0; }
.st-feeds p b { color: var(--ink); }
/* 통계 탭: 일주일 · 간격 */
.st-tabs { margin-bottom: 10px; }
.st-wk { padding: 10px 8px 12px; }
.wkgrid { width: 100%; height: auto; display: block; }
.wkgrid .wk-grid { stroke: var(--line); stroke-width: 1; }
.wkgrid .wk-h { font-size: 10px; fill: var(--ink-3); }
.wkgrid .wk-col { fill: var(--card-2); opacity: .6; } .wkgrid .wk-col.today { fill: var(--accent-soft); opacity: 1; }
.wkgrid .wk-d { font-size: 12px; font-weight: 800; fill: var(--ink-2); } .wkgrid .wk-d.today { fill: var(--accent); }
.wkgrid .wk-w { font-size: 10px; fill: var(--ink-3); }
.wkgrid .wk-main { fill: var(--ink); stroke: var(--card); stroke-width: 1.5; }
.wkgrid .wk-dp { fill: var(--diaper); }
.wkgrid .wk-now { stroke: #E5484D; stroke-width: 1.5; }
.wkgrid .wk-ml { font-size: 11px; font-weight: 800; fill: var(--ink); } .wkgrid .wk-n { font-size: 10px; fill: var(--ink-3); }
.ck-legend.row { flex-direction: row; justify-content: center; }
.ck-legend .dp { border-radius: 50%; background: var(--diaper); width: 7px; height: 7px; }
.ck-legend .nowi { height: 2px; background: #E5484D; }
.wk-main-l { background: var(--ink); }
.st-wk .ck-legend .dot { background: var(--ink); }
.gaps { display: flex; flex-direction: column; gap: 6px; }
.gp-next { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--accent); }
.gp-next span { font-size: 13px; color: var(--ink-2); font-weight: 700; } .gp-next b { font-size: 22px; color: var(--accent); font-variant-numeric: tabular-nums; } .gp-next small { color: var(--ink-3); font-size: 12px; }
.gp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.gp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .gp-head b { font-size: 20px; font-variant-numeric: tabular-nums; } .gp-head span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.gp-item { display: grid; grid-template-columns: 8px 44px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.gp-item i { width: 8px; height: 8px; border-radius: 50%; } .gp-item span { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.gp-item p { margin: 0; } .gp-item small { color: var(--ink-3); font-size: 12px; }
.gp-item.main { color: var(--ink); font-weight: 800; }
.gp-pill { align-self: center; font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); }
.gp-pill b { color: var(--ink); } .gp-pill small { font-size: 12px; color: var(--ink-3); }
.gp-pill.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); } .gp-pill.ok b { color: var(--ok); }
.gp-pill.short, .gp-pill.long { background: color-mix(in srgb, var(--warn) 16%, transparent); } .gp-pill.short b, .gp-pill.long b { color: #B7791F; }
.gp-pill.cur { border: 1px dashed var(--accent); background: none; color: var(--accent); font-weight: 700; }
.wkgrid rect, .wkgrid circle, .wkgrid text { stroke: none; }
.wkgrid .wk-main { stroke: var(--card); stroke-width: 1.5; }
.clock24 text { stroke: none; }
/* 아래 음성 바도 같은 구슬 */
.vbar .orb-s { position: relative; overflow: hidden; isolation: isolate; background: #1B1446; }
.vbar .orb-s svg, .vbar .orb-s .o1 { display: none; }
.vbar .orb-s::before { content: ''; position: absolute; inset: -20%; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, #5EE7FF, #7B6CFA, #FF6FD8, #FFB86B, #5EE7FF); filter: blur(8px); animation: orbSpin 8s linear infinite; }
.vbar .orb-s::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.7) 0, rgba(255,255,255,.15) 20%, transparent 45%); }
.vbar.armed .orb-s::before { animation-duration: 2s; }
.vbar.stalled .orb-s::before { filter: blur(8px) saturate(.15); }

/* ── v17: 아래 탭 · 간단한 홈 · 파이차트 · 필터 ── */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.navbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.navbar button svg { width: 24px; height: 24px; }
.navbar button.on { color: var(--accent); }
body.onboarding .navbar { display: none; }
/* (예전 아래 음성 바 숨김 규칙은 위 음성 바로 대체) */
.view { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
.pg-title { font-size: 24px; font-weight: 800; margin: 4px 4px 12px; letter-spacing: -.02em; }

/* 홈: 다음 수유 하나 + 오늘 4칸 */
.hero3 { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 14px; display: flex; flex-direction: column; text-align: left; }
.h3-k { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.h3-big { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.h3-big small { font-size: 20px; font-weight: 700; margin-right: 6px; color: var(--ink-2); letter-spacing: 0; }
.h3-big.mute { font-size: 24px; color: var(--ink-3); }
.h3-sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.hero3 .h2-track { margin: 10px 0 8px; }
.h3-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.h3-foot b { color: var(--accent); font-size: 15px; }
.hero3.past .h3-foot b { color: var(--ink-2); } .hero3.past .h2-track > i { background: var(--ink-3); }
.hero3.live .h3-big { color: var(--accent); }
.tt-head { font-size: 13px; font-weight: 800; color: var(--ink-3); margin: 14px 4px 6px; text-align: left; }
.tt4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 9px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; color: var(--ink); min-width: 0; font: inherit; }
.tt span { font-size: 12px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.tt b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .tt b small { font-size: 12px; margin-left: 1px; color: var(--ink-3); }
.tt em { font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.25; }
.tt.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--card)); } .tt.ok b { color: var(--ok); }
.tt.low { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--card)); } .tt.low b { color: #B7791F; }
button.tt:active { transform: scale(.97); }
@media (max-width: 360px) { .tt b { font-size: 18px; } .h3-big { font-size: 36px; } }

/* 해석 카드 */
.verdict { border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--card); }
.verdict > b { display: block; font-size: 19px; margin-bottom: 6px; }
.verdict.good > b { color: var(--ok); } .verdict.low > b { color: #B7791F; }
.verdict p { margin: 3px 0; font-size: 14.5px; color: var(--ink-2); } .verdict p b { color: var(--ink); } .verdict p small { color: var(--ink-3); font-size: 12px; }
.verdict details { margin-top: 8px; font-size: 13px; color: var(--ink-3); } .verdict summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.verdict details p { font-size: 13px; color: var(--ink-3); }

/* 파이차트 */
.pie-title { font-weight: 800; font-size: 15px; padding: 2px 4px 0; text-align: left; } .pie-title small { font-weight: 500; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.clock24.pie text { stroke: none; text-anchor: middle; }
.clock24 .pie-bg { fill: var(--card-2); }
.clock24 .pie-s { stroke: var(--card); stroke-width: 2; opacity: .88; } .clock24 .pie-s.ongoing { opacity: .4; }
.clock24 .pie-t { font-size: 14px; font-weight: 800; fill: #fff; } .clock24 .pie-t2 { font-size: 12px; font-weight: 700; fill: #fff; }
.clock24 .pie-edge { stroke: var(--card); stroke-width: 2; }
.clock24 .pie-dot { stroke: var(--card); stroke-width: 2; }
.clock24 .pie-lbl { font-size: 12px; font-weight: 800; fill: var(--ink); } .clock24 .pie-lbl.due { fill: var(--accent); }
.clock24 .pie-h { font-size: 8.5px; font-weight: 700; fill: var(--ink-3); }
.clock24 .pie-now { stroke: #E5484D; stroke-width: 2; } .clock24 .pie-due { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.clock24.pie { max-width: 360px; margin: 0 auto; }
.pie-list { padding: 4px 14px; }
.pie-list > div { display: grid; grid-template-columns: 12px 92px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pie-list > div:first-child { border-top: 0; }
.pie-list i { width: 12px; height: 12px; border-radius: 4px; } .pie-list .pl-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.pie-list p { margin: 0; min-width: 0; } .pie-list p small { color: var(--ink-3); font-size: 12px; }
.pie-list em { font-style: normal; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.pie-list .pl-h { order: -1; font-size: 11.5px; color: var(--ink-3); padding: 6px 0; } .pie-list .pl-h em { color: var(--ink-3); font-weight: 600; } .pie-list .pl-h i { background: none; }
.pie-list { display: flex; flex-direction: column; } .pie-list .pl-h + div { border-top: 0; }

/* 간격: 판단 문구 없이 간격만 */
.gp-gap { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; font-weight: 700; padding: 0 18px; }
.gp-gap::before, .gp-gap::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.gp-gap.cur { color: var(--accent); }

/* 기록 필터 */
.fchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; } .fchips::-webkit-scrollbar { display: none; }
.fchips button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.fchips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchips button.add { color: var(--accent); border-style: dashed; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .day-head span { font-size: 12.5px; color: var(--ink-3); }
.wkgrid .wk-grid.thin { opacity: .45; }
.h3-top { display: flex; justify-content: space-between; align-items: baseline; }
.h3-top b { color: var(--accent); font-size: 15px; } .hero3.past .h3-top b { color: var(--ink-2); }
.h3-sess { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; border: 0; background: none; padding: 2px 0 0; text-align: left; font: inherit; color: inherit; width: 100%; }
.h3-sess > span { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.h3-sess > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.h3-sess .sc { font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.h3-sess .sc.main { background: var(--accent-soft); color: var(--accent); }
.h3-sess .sc u { text-decoration: none; font-size: 10.5px; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 6px; }
.h3-sess em { font-style: normal; color: var(--ink-3); font-size: 12px; } .h3-sess em.info { margin-left: 4px; color: var(--accent); font-size: 14px; }
.rule-ol { margin: 6px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.rule-ex { background: var(--card-2); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.rule-ex > span { font-size: 12px; font-weight: 800; color: var(--ink-3); } .rule-ex p { margin: 0; font-size: 14px; }
.pie-title { border: 0; background: none; font: inherit; font-weight: 800; color: var(--ink); width: 100%; cursor: pointer; }
.vnotes { list-style: none; margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--card-2); display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.vnotes li::before { content: '· '; }
.al-pill { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.al-pill button { border: 0; background: var(--card); color: var(--ink-2); border-radius: 99px; padding: 4px 12px; font-weight: 700; }
.vhome .stage { padding: 2vh 8px 1vh; } .vhome .orb4 { width: 120px; height: 120px; } .vhome .cap-main { margin-top: 18px; font-size: 22px; }
.st-clock { flex-direction: column; align-items: stretch; }
.vhome { min-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
body[data-view="home"] .view { padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
.clock24 .pie-ap { font-size: 9.5px; font-weight: 700; fill: var(--ink-3); } .clock24 .pie-ap.due { fill: var(--accent); }
.clock24 .pie-lbl { font-size: 11.5px; }
.al-pill.off { width: 100%; justify-content: center; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: none; font: inherit; font-weight: 700; color: var(--accent); }
.al-pill .al-main { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; }
.al-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.al-opts button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.al-opts button b { font-size: 15px; } .al-opts button small { font-size: 12px; color: var(--ink-3); }
.al-opts button.pri, .al-opts button.on { border-color: var(--accent); background: var(--accent-soft); } .al-opts button.on b, .al-opts button.pri b { color: var(--accent); }
.al-opts button:disabled { opacity: .35; }
.al-time { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .al-time label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.al-time > div { display: flex; gap: 8px; } .al-time input { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 18px; padding: 0 12px; }
.al-time .pri { height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.clock24 .pie-t { font-size: 12.5px; } .clock24 .pie-t2 { font-size: 11px; opacity: .95; }
.st-clock .pie-list { padding: 4px 2px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.st-clock .pie-list > div { grid-template-columns: 12px 96px 1fr auto; font-size: 13.5px; padding: 7px 0; }
.st-clock + .tt-head + .tt4 + .verdict { margin-top: 10px; }
.item.trash { display: grid; grid-template-columns: 74px 36px 1fr auto; align-items: center; gap: 10px; }
.item.trash .t small { display: block; font-size: 10.5px; color: var(--ink-3); }
.restore { border: 0; border-radius: 99px; padding: 8px 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }

/* ── v18: 잘하고 있나 한 줄 · 차오르는 게이지 · 음성 줄 ── */
.vline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; margin-bottom: 8px; border-radius: 16px; border: 1px solid var(--line); font: inherit; text-align: left; }
.vline b { font-size: 16px; font-weight: 800; } .vline small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.vline.good { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); } .vline.good b { color: var(--ok); }
.vline.low { background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); } .vline.low b { color: #B7791F; }
.tt-head small { font-weight: 600; margin-left: 6px; font-size: 11.5px; }
.tt { align-items: center; text-align: center; gap: 2px; padding: 10px 4px 9px; }
.tt span { font-size: 12px; margin-top: 2px; }
.tt b { position: relative; font-size: 19px; line-height: 1.1; }
.tt em { text-align: center; }
.tt-ok { position: absolute; top: -4px; right: -14px; font-style: normal; font-size: 10px; width: 14px; height: 14px; line-height: 14px; border-radius: 50%; background: var(--ok); color: #fff; text-align: center; }
.tt.ok, .tt.low { background: var(--card); } .tt.ok b, .tt.low b { color: var(--ink); }
.gz { width: auto; height: 50px; display: block; fill: none; stroke: none; }
.gz .gz-bg { fill: var(--card-2); }
.gz .gz-line { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; opacity: .7; }
.gz .gz-tick { stroke: var(--ink-3); stroke-width: 1.2; opacity: .6; }
.gz .gz-fill { transform-box: fill-box; transform-origin: 50% 100%; animation: gzRise 1s cubic-bezier(.2,.8,.2,1) both; }
.gz-ring { width: 50px; } .gz .gz-bg2 { fill: none; stroke: var(--card-2); stroke-width: 7; }
.gz .gz-arc { fill: none; stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 28px 28px; animation: gzRing 1s cubic-bezier(.2,.8,.2,1) both; }
.gz .gz-n { font-size: 15px; font-weight: 800; fill: var(--ink); text-anchor: middle; stroke: none; }
@keyframes gzRise { from { transform: scaleY(0); } }
@keyframes gzRing { from { stroke-dasharray: 0 200; } }
@media (prefers-reduced-motion: reduce) { .gz .gz-fill, .gz .gz-arc { animation: none; } }
.tt-ring-hide {}
/* 음성: 가운데 큰 공간 대신 한 줄 */
.vhome { min-height: 0 !important; }
.vhome .stage.vrow { flex: none; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; padding: 12px 14px; margin-top: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.vhome .stage.vrow .orb4 { width: 58px; height: 58px; flex: none; }
.vhome .stage.vrow .orb4::before { filter: blur(9px); }
.vhome .stage.vrow .orb4.armed, .vhome .stage.vrow .orb4.hearing { box-shadow: 0 0 0 6px rgba(123,108,250,.18), 0 10px 24px rgba(109,93,246,.4); }
.vhome .vtxt { min-width: 0; flex: 1; }
.vhome .stage.vrow .cap-main { margin: 0; font-size: 17px; min-height: 0; line-height: 1.3; }
.vhome .stage.vrow .cap-sub { margin-top: 2px; font-size: 13px; min-height: 0; }
.vhome .qbar { margin-top: 0; }
.live-acts { display: flex; gap: 8px; margin-top: 12px; }
.live-acts button { flex: 1; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); font: inherit; font-weight: 800; font-size: 14px; }
.live-acts button.pri { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn.ghost { background: none; border: 1px dashed var(--line); color: var(--ink-2); margin-top: 10px; }
.restore-box { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.restore-box p { margin: 0; font-size: 13px; color: var(--ink-3); }
.past-form { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.past-form label { font-size: 14px; font-weight: 800; }
.past-form > div { display: flex; gap: 8px; }
.past-form input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; padding: 0 12px; }
.past-form .pri { height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.past-form small { font-size: 12px; color: var(--ink-3); }
.item.flash { animation: flash 1.6s ease-out; } @keyframes flash { 0%, 40% { background: var(--accent-soft); } 100% { background: transparent; } }
.toast { bottom: calc(92px + env(safe-area-inset-bottom)) !important; z-index: 70; }
.toast .t-acts button[data-act="undo"] { background: var(--accent); color: #fff; border: 0; border-radius: 99px; padding: 8px 16px; font-weight: 800; }

/* ── v19: 겹침 없애기 · 지우기 버튼 · 말로 추가 · 이번 수유 상태 ── */
.strip3.nowlist.dash, .vhome .dash { position: static !important; box-shadow: none !important; z-index: auto; }
.vhome .stage.vrow { margin-top: 16px; }
.vhome .tt4 { margin-bottom: 4px; }
.irow { display: flex; align-items: stretch; gap: 4px; }
.irow .item { flex: 1; min-width: 0; }
.idel { flex: none; width: 44px; border: 0; background: none; color: var(--ink-3); border-radius: 12px; display: grid; place-items: center; }
.idel svg { width: 20px; height: 20px; } .idel:active { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.past-mic { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font: inherit; text-align: left; color: var(--ink); }
.past-mic b { display: block; font-size: 15px; } .past-mic small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pm-orb { flex: none; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 0deg, #5EE7FF, #7B6CFA, #FF6FD8, #FFB86B, #5EE7FF); box-shadow: inset 0 -6px 12px rgba(20,10,60,.3); }
.past-mic.on { border-color: var(--accent); background: var(--accent-soft); } .past-mic.on .pm-orb { animation: orbSpin 1.4s linear infinite; } .past-mic.on small { color: var(--accent); font-weight: 700; }
.h3-how { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; } .h3-how.ok { color: var(--ok); } .h3-how.low { color: #B7791F; }
.h3-dp { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.h3-why { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.h3-rule { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.agecard { margin-top: 10px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.ag-head b { font-size: 15px; }
.ag-row { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ag-row span { color: var(--ink-3); font-weight: 700; } .ag-row b { font-weight: 800; } .ag-row em { font-style: normal; color: var(--ink-2); font-weight: 700; }
.ag-row em.ok { color: var(--ok); } .ag-row em.hi { color: var(--warn); }
.ag-basis { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.ag-row.h { border-top: 0; padding: 8px 0 2px; font-size: 11.5px; } .ag-row.h b, .ag-row.h em { color: var(--ink-3); font-weight: 700; }
.ag-tip { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.ag-tip.good { background: color-mix(in srgb, var(--ok) 10%, var(--card)); color: var(--ink-2); } .ag-tip.low { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--ink-2); }

/* ── v20: 텀 막대 · 텀별 요약 ── */
.term-bar { margin: 10px 0 6px; }
.tb-track { position: relative; height: 12px; border-radius: 99px; background: var(--card-2); }
.tb-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #8B7CF8, var(--accent)); }
.tb-track > em { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.tb-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; font-weight: 800; }
.tb-ends span { display: flex; flex-direction: column; } .tb-ends span:last-child { text-align: right; color: var(--accent); }
.tb-ends small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.hero3.past .tb-track > i { background: var(--ink-3); }
.h3-sess .sc.dp { background: color-mix(in srgb, var(--diaper) 14%, var(--card)); color: var(--ink-2); }
.h3-sess > span { display: flex; align-items: center; gap: 4px; }
.terms { display: flex; flex-direction: column; gap: 6px; }
.term { padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 4px; }
.term.now { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tm-time { display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; } .tm-time i { font-style: normal; color: var(--ink-3); } .tm-time small { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.tm-what { font-size: 13px; color: var(--ink-2); }
.tm-chk { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-chk span { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--card-2); color: var(--ink-3); }
.tm-chk .ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); }
.tm-chk .no { background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: #B7791F; }
.link-more { border: 0; background: none; color: var(--accent); font-weight: 800; font-size: 13.5px; padding: 8px 4px; align-self: flex-end; }
.gp-head i { font-style: normal; color: var(--ink-3); } .gp-head small { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.gp-card .tm-chk { margin: 2px 0 6px; }
.pie-cats { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; margin: 8px 0 4px; }
.pie-cats button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); text-align: left; }
.pie-cats button i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.pie-cats button small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.pie-cats button.on { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 12%, var(--card)); }
.pie-cats button:first-child { justify-content: center; align-items: center; }
.clock24 .pie-s.fade { opacity: .12; }
.clock24 .pie-cat { stroke: var(--card); stroke-width: 1.5; }
.clock24 .pie-cv { font-size: 11px; font-weight: 800; fill: #fff; }
.pl-sum { font-size: 15px; font-weight: 800; padding: 8px 0; color: var(--c); }
@media (max-width: 380px) { .pie-cats { grid-template-columns: repeat(2, 1fr); } }
.past-row { display: flex; gap: 6px; margin-bottom: 12px; } .past-row .past-mic { margin-bottom: 0; flex: 1; min-width: 0; }
.past-kbd { flex: none; width: 52px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 20px; }
.past-type { display: flex; gap: 6px; margin-bottom: 12px; }
.past-type input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 1.5px solid var(--accent); background: var(--card); color: var(--ink); font-size: 15px; padding: 0 12px; }
.past-type .pri { height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.past-type button[type=button] { width: 40px; border: 0; background: none; color: var(--ink-3); font-size: 16px; }
.h3-sess .sc { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 12px; padding: 5px 10px; line-height: 1.25; }
.h3-sess .sc small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.h3-sess .sc.main small { color: color-mix(in srgb, var(--accent) 70%, var(--ink-3)); }
.h3-sess .sc span { display: inline-flex; align-items: center; gap: 4px; }
/* 계정 */
.acct { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.acct > b { font-size: 16px; } .acct p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ac-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; }
.ac-btn i { font-style: normal; font-weight: 900; font-size: 18px; }
.ac-btn.naver { background: #03C75A; color: #fff; } .ac-btn.google { background: var(--card); color: var(--ink); border: 1px solid var(--line); } .ac-btn.google i { color: #4285F4; }
.ac-btn.off { opacity: .45; }
.ac-note { color: var(--ink-3); font-size: 12px; }
.ac-top { display: flex; align-items: center; gap: 12px; } .ac-top b { display: block; font-size: 15px; } .ac-top small { color: var(--ink-3); font-size: 12.5px; }
.ac-badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #03C75A; color: #fff; font-weight: 900; }
.ac-acts { display: flex; gap: 8px; } .ac-acts .btn { text-decoration: none; display: inline-flex; align-items: center; }
.ob-login { display: block; margin-top: 18px; text-align: center; color: #03A94F; font-weight: 800; text-decoration: none; font-size: 15px; }
.wtrain { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; } .wtrain p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; } .wtrain small { color: var(--ink-3); font-size: 12px; }

/* ── v21: 하루 타임라인 · 텀 안 시간 목록 ── */
.dstrip { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 8px; margin-bottom: 8px; }
.ds-track { position: relative; height: 30px; border-radius: 8px; background: var(--card-2); overflow: hidden; }
.ds-b { position: absolute; top: 5px; bottom: 5px; border-radius: 3px; min-width: 3px; }
.ds-d { position: absolute; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--diaper); }
.ds-a { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed var(--ink-3); opacity: .7; }
.ds-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #E5484D; }
.ds-due { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--accent); }
.ds-ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }
.ds-lg { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.ds-lg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ds-lg em { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--diaper); margin-right: 4px; }
.ds-lg u { display: inline-block; height: 9px; border-left: 1.5px dashed var(--ink-3); margin-right: 4px; vertical-align: -1px; }
.ds-lg b { display: inline-block; width: 2px; height: 9px; background: #E5484D; margin-right: 4px; vertical-align: -1px; }
.tm-items { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.tm-items li { display: grid; grid-template-columns: 8px minmax(0, 150px) 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.tm-items li i { width: 8px; height: 8px; border-radius: 50%; }
.tm-items li span { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.tm-items li.main b { color: var(--ink); } .tm-items li b { font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.tm-items li u { text-decoration: none; font-size: 10px; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 6px; }
.pl-term p { display: flex; flex-direction: column; gap: 2px; }
.pl-it { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; } .pl-it i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pl-it.main { color: var(--ink); font-weight: 800; }
.st-clock .pie-list > div.pl-term { grid-template-columns: 12px 84px 1fr auto; align-items: start; }
button.ac-btn { width: 100%; border: 0; font: inherit; font-weight: 800; font-size: 16px; } button.ac-btn.google { border: 1px solid var(--line); }
button.ob-login { width: 100%; border: 0; background: none; font: inherit; }

/* ── v22: 홈 줄이기 · 기록 버튼 항상 보이기 · 텀 한 줄 ── */
body[data-view="home"] .qbar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 26; max-width: 560px; margin: 0 auto; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); gap: 6px; }
body[data-view="home"] .qbar button { padding: 6px 2px; min-height: 0; }
body[data-view="home"] .qbar button i { font-size: 20px; }
body[data-view="home"] .view { padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
body.onboarding .qbar { position: static; }
.trows { display: flex; flex-direction: column; gap: 6px; }
.trow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: inherit; color: var(--ink); text-align: left; }
.trow.now { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.trow.open { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.tr-t { display: flex; flex-direction: column; line-height: 1.25; } .tr-t b { font-size: 14.5px; } .tr-t small { font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.trow.now .tr-t small { color: var(--accent); }
.tr-s { font-size: 13px; color: var(--ink-2); font-weight: 700; min-width: 0; }
.tr-c { display: flex; align-items: center; gap: 4px; }
.tr-c i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--card-2); color: var(--ink-3); }
.tr-c i.ok { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
.tr-c i.no { background: color-mix(in srgb, var(--warn) 20%, var(--card)); color: #B7791F; }
.tr-c em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.tr-detail { margin: -4px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--card); }
.tm-items li.due i { background: none; border: 2px dashed var(--accent); width: 6px; height: 6px; } .tm-items li.due b, .tm-items li.due span { color: var(--accent); }
.clock24 .pie-ring { stroke: var(--card); stroke-width: .8; }
.st-week2 { padding: 6px 14px 10px; }
.wrow { display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.wrow:first-child { border-top: 0; }
.wrow > span { font-weight: 800; font-size: 14px; display: flex; flex-direction: column; line-height: 1.2; } .wrow > span small { color: var(--ink-3); font-size: 11px; font-weight: 600; }
.wbars { display: flex; flex-direction: column; gap: 5px; }
.wb { display: grid; grid-template-columns: 1fr 104px; gap: 8px; align-items: center; }
.wb i { position: relative; height: 10px; border-radius: 99px; background: var(--card-2); }
.wb i em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.wb i u { position: absolute; top: -3px; height: 16px; border-left: 2px dashed var(--ink-3); }
.wb b { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; } .wb b.ok { color: var(--ok); }
.wmeta { grid-column: 2; color: var(--ink-3); font-size: 11.5px; }
.section-title small { font-weight: 600; color: var(--ink-3); margin-left: 6px; font-size: 12px; }
.st-clock .pie-list > div.pl-sum { display: block; grid-template-columns: none; }

/* 알람 울림 화면 (휴대폰 기본 알람처럼) */
.ring-ov { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px)); background: #10131a; color: #fff; text-align: center; }
.ring-bell { font-size: 64px; animation: ringShake 0.6s ease-in-out infinite; }
@keyframes ringShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.ring-clock { font-size: clamp(34px, 11vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.ring-lab { font-size: 19px; font-weight: 700; color: #ffd9a8; max-width: 22em; }
.ring-side { font-size: 16px; color: #c9cfdb; }
.ring-btns { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; width: min(100%, 340px); }
.ring-btns button { border: 0; border-radius: 99px; padding: 18px; font: inherit; font-size: 18px; font-weight: 800; background: #2a2f3b; color: #fff; }
.ring-btns .ring-stop { background: #F2766B; font-size: 22px; padding: 24px; }

/* 오늘 목표 5칸 (분유·유축·직수·소변·대변) */
.tt5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.tt5 .tt { padding: 9px 2px 8px; border-radius: 14px; }
.tt5 .gz { height: 42px; } .tt5 .gz-ring { width: 42px; }
.tt5 .tt b { font-size: 17px; } .tt5 .tt b small { font-size: 10.5px; }
.tt5 .tt span { font-size: 11.5px; }
.tt5 .tt em { font-size: 10.5px; }
.tt5 .tt-ok { right: -12px; }
.tt-head { display: flex; align-items: baseline; gap: 6px; }
.tt-head .tt-goal { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; padding: 2px 4px; }
.goal-rows { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.goal-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.goal-row small { font-weight: 600; color: var(--ink-3); font-size: 11px; margin-left: 4px; }
@media (max-width: 360px) { .tt5 .tt b { font-size: 15px; } .tt5 .gz { height: 36px; } .tt5 .gz-ring { width: 36px; } }

/* 맨 위 음성 바 — 어느 화면에서든 “수유야” */
.vbar.vdock { position: sticky; top: env(safe-area-inset-top, 0px); bottom: auto; left: auto; right: auto; z-index: 30; display: flex !important; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto 4px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 0; border-bottom: 1px solid var(--line); }
.vdock .orb4 { width: 48px; height: 48px; flex: none; }
.vdock .orb4 svg { width: 20px; height: 20px; }
.vdock .orb4::before { filter: blur(7px); }
.vdock .orb4.armed, .vdock .orb4.hearing { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(123,108,250,.2), 0 8px 22px rgba(109,93,246,.45); }
.vdock .vtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: var(--ink); }
.vdock .cap-main { margin: 0; font-size: 16px; font-weight: 800; min-height: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vdock .cap-sub { margin: 1px 0 0; font-size: 12.5px; min-height: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vdock.armed { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.vdock.armed .cap-main { color: var(--accent); }
.topbar { padding-bottom: 2px; }
/* 오늘 전체 한 줄 */
.tsum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.tsum span { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tsum span[style] { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.tsum b { color: var(--ink); font-size: 14px; } .tsum small { font-size: 11px; color: var(--ink-3); }
.tt-split { display: inline; font-style: normal; } .tt-split u { text-decoration: none; color: var(--c); font-weight: 700; white-space: nowrap; }
.tr-d { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); }

/* ── v37: ElevenLabs 느낌 오브 — 밝은 무광 구슬 안에서 파스텔 색이 천천히 흐름 ── */
#bigOrb { background: #EAF0FA; border: 0; outline: none; padding: 0; overflow: hidden; isolation: isolate; transform: translateZ(0);
  box-shadow: inset 0 0 0 1px rgba(30,50,90,.08), 0 4px 14px rgba(70,100,170,.18); transition: transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .35s; }
#bigOrb::before { display: none; }
#bigOrb .r1, #bigOrb .r2, #bigOrb .r3 { display: block; position: absolute; border: 0; border-radius: 50%; opacity: 1; z-index: 0; will-change: transform; }
#bigOrb .r1 { inset: -35%; filter: blur(8px);
  background: radial-gradient(circle at 32% 34%, #5B9BFF 0, rgba(91,155,255,0) 40%), radial-gradient(circle at 70% 66%, #A98BFF 0, rgba(169,139,255,0) 40%);
  animation: elA 9s linear infinite; }
#bigOrb .r2 { inset: -30%; filter: blur(9px); mix-blend-mode: multiply; opacity: .85;
  background: radial-gradient(circle at 66% 30%, #7FDCEF 0, rgba(127,220,239,0) 38%), radial-gradient(circle at 34% 72%, #F3A9D6 0, rgba(243,169,214,0) 36%);
  animation: elB 13s linear infinite; }
#bigOrb .r3 { inset: 18%; filter: blur(10px); background: radial-gradient(circle, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 70%); animation: elC 6s ease-in-out infinite alternate; }
#bigOrb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 36% 24%, rgba(255,255,255,.65) 0, rgba(255,255,255,0) 34%);
  box-shadow: inset 0 -6px 14px rgba(40,60,120,.18), inset 0 4px 10px rgba(255,255,255,.6); }
@keyframes elA { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes elB { 0% { transform: rotate(360deg) scale(1.08); } 50% { transform: rotate(180deg) scale(.95); } 100% { transform: rotate(0) scale(1.08); } }
@keyframes elC { from { transform: translate(-12%, -8%) scale(.9); } to { transform: translate(10%, 12%) scale(1.15); } }
@keyframes elBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes elTalk { 0% { transform: scale(1.06); } 35% { transform: scale(1.14); } 70% { transform: scale(1.04); } 100% { transform: scale(1.11); } }
#bigOrb.live { animation: elBreath 4.5s ease-in-out infinite; }
#bigOrb.off { background: #ECEDF0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); animation: none; }
#bigOrb.off .r1, #bigOrb.off .r2 { filter: blur(10px) grayscale(1); opacity: .5; animation-duration: 40s; }
#bigOrb.armed, #bigOrb.hearing { animation: elTalk .9s ease-in-out infinite alternate; box-shadow: 0 0 0 5px rgba(111,168,255,.22), 0 6px 22px rgba(90,120,230,.42); }
#bigOrb.armed .r1, #bigOrb.hearing .r1 { animation-duration: 2.6s; filter: blur(6px) saturate(1.3); }
#bigOrb.armed .r2, #bigOrb.hearing .r2 { animation-duration: 3.6s; }
#bigOrb.armed .r3, #bigOrb.hearing .r3 { animation-duration: 1.2s; }
#bigOrb.thinking { animation: none; } #bigOrb.thinking .r1 { animation-duration: 1.4s; } #bigOrb.thinking .r2 { animation-duration: 2s; }
#bigOrb.speaking { animation: elTalk .45s ease-in-out infinite alternate; } #bigOrb.speaking .r1 { animation-duration: 3s; }
#bigOrb.reply { box-shadow: 0 0 0 5px rgba(34,160,107,.18), 0 6px 18px rgba(70,100,170,.22); }
#bigOrb.err { box-shadow: 0 0 0 5px rgba(229,72,77,.2), 0 6px 18px rgba(70,100,170,.22); }
#bigOrb.err .r1, #bigOrb.err .r2 { filter: blur(9px) saturate(.4); }
#bigOrb svg { display: none; }
.vbar.armed { background: color-mix(in srgb, #6FA8FF 10%, var(--bg)); }
.diag-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { #bigOrb, #bigOrb .r1, #bigOrb .r2, #bigOrb .r3 { animation: none !important; } }
/* v38: 기록 수정에서 숫자 직접 입력 */
.numin { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; border-bottom: 2px solid var(--line); padding: 0 2px; }
.numin:focus-within { border-color: var(--accent); }
.numin input { width: 2.6ch; border: 0; background: none; font: inherit; font-weight: 800; font-size: 20px; text-align: right; color: var(--ink); padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.numin input::-webkit-outer-spin-button, .numin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numin input:focus { outline: none; }
.numin span { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.numin.big input { width: 3.4ch; font-size: 46px; }
.numin.big span { font-size: 18px; }
.numin2 { display: inline-flex; gap: 10px; min-width: 130px; justify-content: center; }
.numin2 .numin input { font-size: 30px; }
.stepper .numin { min-width: 74px; }
.tr-detail li[data-act] { cursor: pointer; }
.tr-detail li[data-act]:active { background: var(--card-2); }
.pm-orb { background: radial-gradient(circle at 36% 26%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 36%), radial-gradient(circle at 30% 35%, #5B9BFF 0, rgba(91,155,255,0) 55%), radial-gradient(circle at 72% 68%, #A98BFF 0, rgba(169,139,255,0) 55%), radial-gradient(circle at 68% 26%, #7FDCEF 0, rgba(127,220,239,0) 45%), radial-gradient(circle at 30% 78%, #F3A9D6 0, rgba(243,169,214,0) 45%), #EAF0FA; box-shadow: inset 0 -4px 10px rgba(40,60,120,.18), 0 2px 8px rgba(70,100,170,.18); }

.banner .go { margin-left: auto; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 7px 12px; white-space: nowrap; text-decoration: none; }

/* 수유 시계 글자 크게 (휴대폰에서도 읽히게) */
.clock24.pie { max-width: 520px; width: 100%; }
.clock24 .pie-lbl { font-size: 21px; font-weight: 800; }
.clock24 .pie-ap { font-size: 15px; font-weight: 700; }
.clock24 .pie-t { font-size: 18px; } .clock24 .pie-t2 { font-size: 15px; }
.clock24 .pie-cv { font-size: 16px; }
.clock24 .pie-h { font-size: 13px; }
.clock24 .pie-lbl { font-size: 20px; } .clock24 .pie-ap { font-size: 14px; }
.clock24 .pie-t { font-size: 20px; } .clock24 .pie-t2 { font-size: 16px; } .clock24 .pie-cv { font-size: 18px; }
.st-clock .pie-list > div { grid-template-columns: 12px 118px 1fr auto; }

/* 첫 실행 로그인·아기 정보 */
.ob-logins { display: grid; gap: 10px; margin-top: 8px; }
.ob-logins .ac-btn { font-size: 17px; padding: 16px; }
.ob-skip { margin-top: 18px; color: var(--ink-3); font-size: 14px; text-decoration: underline; background: none; border: 0; }
.ob-lbl { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 6px 2px; }
.ob-err { color: #E5484D !important; font-weight: 700; min-height: 1.2em; margin: 4px 2px 8px !important; }
.ac-del { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; } .ac-del.ask { color: #E5484D; font-weight: 700; }
.ob-legal { font-size: 12px !important; color: var(--ink-3) !important; text-align: center; margin-top: 14px !important; } .ob-legal a, .acct p a { color: inherit; text-decoration: underline; }

/* 아이폰: 처음 한 번 눌러야 듣기 시작 → 화면 전체 안내 */
#tapGate { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--accent, #6D5DF6); color: #fff; border-radius: 18px; padding: 12px 16px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.18); pointer-events: none; max-width: 520px; margin: 0 auto; }
#tapGate b { font-size: 18px; animation: tgPulse 1.6s ease-in-out infinite; } #tapGate span { font-size: 13px; opacity: .9; }
@keyframes tgPulse { 50% { transform: scale(1.06); } }

/* 홈 단순화 */
.hero3 .h3-term { margin: 8px 0 0; font-size: 13px; color: var(--accent); } .hero3 .h3-term button { all: unset; cursor: pointer; text-decoration: underline; font-weight: 600; }
.hero3 .h3-last { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); } .hero3 .h3-last .low { color: var(--accent); }
.tt b small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
/* 기록 탭: 빠른 기록 + 목록·하루·일주일·간격 */
.rec-tabs { margin: 12px 0 14px; }
[data-view-page] .qbar, #view > .qbar { position: static; margin: 4px 0 0; }
body[data-view="home"] .view { padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }
.navbar { grid-template-columns: repeat(3, 1fr); }
.rec-tabs { display: grid !important; grid-template-columns: repeat(4, 1fr); }
.tt .tt-g { font-style: normal; font-size: 12px; color: var(--ink-3); }
.seg.wide.st-tabs.rec-tabs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; flex-wrap: nowrap; }
.hero3 .h3-done { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* 홈: 이번 텀에 한 것 (시각 + 무엇) */
.h3-done .sc { font-style: normal; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.h3-done .sc.main { background: var(--accent-soft); color: var(--accent); }
.h3-done .sc u { text-decoration: none; font-size: 10.5px; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 6px; }
.h3-done .sc.dp { background: color-mix(in srgb, var(--diaper) 14%, var(--card)); color: var(--ink-2); }
.h3-done .sc { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 12px; padding: 5px 10px; line-height: 1.25; }
.h3-done .sc small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.h3-done .sc.main small { color: color-mix(in srgb, var(--accent) 70%, var(--ink-3)); }
.h3-done .sc span { display: inline-flex; align-items: center; gap: 4px; }

.h3-done .sc { position: relative; cursor: pointer; padding-right: 24px; }
.h3-done .sc .sc-x { position: absolute; top: 2px; right: 3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; font-size: 14px; font-weight: 600; line-height: 1; color: var(--ink-3); cursor: pointer; }
.h3-done .sc .sc-x:active { background: color-mix(in srgb, var(--ink-3) 18%, transparent); }

.agecard .ag-src, .qhint .lnk { all: unset; cursor: pointer; display: block; margin-top: 8px; font-size: 12.5px; color: var(--accent); text-decoration: underline; }
.qhint .lnk { display: inline; margin: 0; }
.src-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.src-list li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.src-list li b { font-size: 14px; }
.src-list li small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.src-list .src-url { color: var(--accent); }
.tt-head .tt-sub { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 8px; }

.goal-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.goal-modes .gm { display: grid; gap: 4px; text-align: left; padding: 10px; border-radius: 12px; background: var(--card-2); border: 2px solid transparent; cursor: pointer; }
.goal-modes .gm b { font-size: 13px; }
.goal-modes .gm small { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.goal-modes .gm.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 380px) { .goal-modes { grid-template-columns: 1fr; } }

.tt-g .tt-now { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }

/* 방금 한 기록 · 진행 중 (v61) */
.item.fresh { animation: recFresh 2.4s ease-out 1; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 16px; }
@keyframes recFresh { 0% { background: color-mix(in srgb, var(--accent) 34%, transparent); } 100% { background: color-mix(in srgb, var(--accent) 10%, transparent); } }
.tag.inprog { background: color-mix(in srgb, #F2766B 18%, var(--card)); color: #d4544a; }
.item .t small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.hrec { margin-top: 0; }
.hrec .item { padding-block: 7px; }
/* 수유 일시정지 (v61) */
.live-acts { flex-wrap: wrap; }
.live-acts .la-row { flex-basis: 100%; display: flex; gap: 8px; }
.live-acts .la-pause { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.hero3.live.paused .h3-big { opacity: .45; }
.hero3.live.paused .la-pause { background: var(--accent); color: var(--accent-ink); border: 0; }

/* ── 컴퓨터(넓은 화면) 전용 배치 (v64) ─────────────────────────
   휴대폰: 한 줄 세로 (그대로) / 컴퓨터: 왼쪽 사이드바(아기·음성·메뉴) + 넓은 본문, 홈은 두 칸 */
.dcol { display: contents; }
.hrec .irow:nth-child(n+6) { display: none; }
/* 휴대폰 순서: 다음 수유 → 오늘 → 최근 기록 → 또래 비교 → 알람 */
.recwrap { order: 1; } .agewrap { order: 2; } .dash .al-pill { order: 3; }
.recwrap, .agewrap { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1024px) {
  :root { --side: 264px; }
  body, body[data-view] { padding: 0 0 0 var(--side) !important; }
  /* 사이드바: 아기 이름 → 음성 상태 → 메뉴 */
  .topbar { position: fixed; left: 0; top: 0; width: var(--side); max-width: none; margin: 0; padding: 26px 22px 10px; z-index: 31; box-sizing: border-box; }
  .topbar .brand { font-size: 20px; }
  .vbar.vdock { position: fixed; left: 14px; top: 76px; width: calc(var(--side) - 28px); max-width: none; margin: 0; box-sizing: border-box; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 16px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); z-index: 31; }
  .vdock .orb4 { width: 76px; height: 76px; }
  .vdock .orb4 svg { width: 26px; height: 26px; }
  .vdock .vtxt { align-items: center; text-align: center; width: 100%; }
  .vdock .cap-main { white-space: normal; font-size: 16px; text-align: center; }
  .vdock .cap-sub { white-space: normal; text-align: center; font-size: 12.5px; }
  .vdock.armed { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
  .navbar { position: fixed; left: 0; right: auto; top: 0; bottom: 0; width: var(--side); max-width: none; margin: 0; padding: 300px 14px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; background: var(--bg); border-top: 0; border-right: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 30; }
  .navbar button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; color: var(--ink-2); }
  .navbar button svg { width: 22px; height: 22px; }
  .navbar button:hover { background: var(--card-2); color: var(--ink); }
  .navbar button.on { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
  /* 본문 */
  .view { max-width: 1180px; padding: 30px 40px 48px !important; box-sizing: border-box; }
  body[data-view="log"] .view, body[data-view="stats"] .view, body[data-view="settings"] .view, body[data-view="ask"] .view { max-width: 920px; }
  .pg-title { font-size: 28px; margin-top: 0; }
  /* 홈: 왼쪽(다음 수유·오늘) + 오른쪽(최근 기록·또래 비교·알람) */
  .strip3.dash { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .dcol { display: flex; flex-direction: column; min-width: 0; }
  .dcol-b { position: sticky; top: 24px; }
  .dcol-b > .tt-head:first-child { margin-top: 0; }
  .hero3 { padding: 26px 28px; }
  .hero3 .h3-big { font-size: 64px; }
  .tt4 { gap: 12px; }
  .tt { padding-block: 18px; }
  .hrec .irow:nth-child(n+6) { display: flex; }
  .recwrap, .agewrap, .dash .al-pill { order: 0; }
  .dcol { gap: 8px; }
  .item { grid-template-columns: 92px 40px 1fr; }
  .item .t { white-space: nowrap; }
  .hrec { margin-top: 0; }
  /* 기록 탭: 빠른 기록 버튼 크게 한 줄 */
  .qbar { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .qbar button { padding: 14px 6px; }
  /* 누를 수 있는 것은 마우스 올리면 보이게 */
  button, [data-act] { cursor: pointer; }
  .item:hover, .tt:hover, .qbar button:hover, .fchips button:hover, .al-pill:hover { background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
  .irow .idel { opacity: .35; transition: opacity .15s; }
  .irow:hover .idel { opacity: 1; }
  /* 아래에서 올라오는 창 → 가운데 창 */
  .sheet-panel { top: 50%; bottom: auto; left: calc(50% + var(--side) / 2); right: auto; transform: translate(-50%, -50%); width: 520px; max-width: calc(100vw - var(--side) - 48px); border-radius: 26px; max-height: 86vh; padding: 14px 24px 24px; animation: pop .2s cubic-bezier(.2,.9,.3,1); }
  .sheet-panel .grabber { display: none; }
  .voice-panel { max-width: 640px; }
  .toast { left: calc(50% + var(--side) / 2); bottom: 28px; max-width: 520px; }
  body.onboarding, body[data-view="onboard"] { padding-left: 0 !important; }
  body.onboarding .topbar { position: static; width: auto; }
  body.onboarding .view { max-width: 560px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .strip3.dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  .view { padding: 24px 24px 40px !important; }
  .hero3 .h3-big { font-size: 52px; }
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.tt4.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Siri로 기록하기 안내 */
.siri-card { display: block; width: 100%; text-align: left; margin: 10px 0 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line, #EDE4DE); background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; }
.siri-card b { display: block; font-size: 15px; } .siri-card small { color: var(--ink-2); }
.siri-guide { text-align: left; }
.sg-hero { background: linear-gradient(135deg, #2B2140, #4B2F6E); color: #fff; border-radius: 18px; padding: 16px 18px; margin: 4px 0 12px; }
.sg-hero p { margin: 2px 0 !important; color: #fff !important; } .sg-hero .sg-say { font-size: 18px; } .sg-hero .sg-arrow { font-size: 13px; opacity: .75; }
.sg-why { font-size: 14px; }
.sg-login { background: var(--soft, #F6EEE9); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; } .sg-login .ac-btn { margin-top: 8px; }
.sg-steps { list-style: none; padding: 0; margin: 0; } .sg-steps.off { opacity: .45; pointer-events: none; }
.sg-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #EDE4DE); }
.sg-step > div { flex: 1; min-width: 0; } .sg-step p { margin: 4px 0 8px !important; font-size: 14px; } .sg-step ul { margin: 0; padding-left: 18px; font-size: 14px; }
.sg-step small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.sg-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.sg-code { width: 100%; font: 11px ui-monospace, monospace; padding: 8px; border-radius: 10px; border: 1px solid var(--line, #EDE4DE); background: var(--soft, #F6EEE9); color: inherit; margin-bottom: 8px; }
.sg-step a.btn { display: block; text-align: center; text-decoration: none; color: var(--ink, #2B2522); font-weight: 700; }
.sg-ex { display: flex; flex-wrap: wrap; gap: 6px; } .sg-ex span { background: var(--soft, #F6EEE9); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.sg-tip { font-size: 13px !important; color: var(--ink-2); }
.sg-help { margin: 8px 0 14px; font-size: 14px; } .sg-help summary { cursor: pointer; font-weight: 700; } .sg-help ul { padding-left: 18px; }
.ob-siri { padding-bottom: 30px; }
.qok { margin-top: 14px; }
