/* 우리집 등하원 — 11-23 개편: 채도 낮춘 파스텔, 둥근 사진, 도톰한 버튼 (아이들나라 참고) */
@font-face { font-family: "Jua"; src: url("/vendor/jua-1.woff2") format("woff2"); font-display: swap; }
:root {
  /* 11-24 민지님 확정: 핀터레스트 팔레트(알라바스터·콜롬비아 블루·체리블라썸 핑크·케임브리지 그린·피치)를 더 연하게 */
  --bg: #f6f7f2; --blob: #eceee7; --card: #ffffff; --fg: #2f2f33; --mute: #6f6f78; --line: #e8e9e2; --line2: #d9dbd2;
  --coral: #fcebbf; --coral-d: #f1d796; --coral-t: #5c4a16;          /* 고른 것·주요 버튼 = 피치 */
  --mustard: #fdf4dc; --mustard-d: #f4e2b4;
  --ok: #8fbc93; --ok-soft: #e8f2e8; --ok-d: #c9e0cb; --ok-t: #2f5e36;
  --blue: #dbe4ee; --blue-d: #c6d4e4; --blue-t: #2c476b;
  --pink: #f4d5dd; --pink-d: #e9bcc8; --pink-t: #7a2f45;
  --green: #e3efe4; --green-d: #cfe3d1; --green-t: #2f5e36;
  --orange: #fbe6d2; --orange-d: #f1d2b6; --orange-t: #7a4a22;
  --adult: #ebe7f3; --adult-d: #dcd5ea; --adult-t: #5b4a7a;
  --fam: #fdf4dc; --fam-d: #f4e2b4; --fam-t: #5c4a16;
  --danger: #b5534a; --now: #d9607e;
  --disp: "Jua", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--blue-t); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.loading { padding: 60px 20px; text-align: center; color: var(--mute); }
.muted { color: var(--mute); } .sm { font-size: 13px; }
.empty { color: var(--mute); text-align: center; margin: 10px 0; font-size: 14px; }
.hint, .fn { color: var(--mute); font-size: 12.5px; margin: 8px 0 0; }
.fn.out { text-align: center; margin: 4px 6px 0; }
.hidden-file { position: fixed; left: -9999px; }

/* 색 묶음 (아이 색) */
.c-blue { --c: var(--blue); --d: var(--blue-d); --t: var(--blue-t); }
.c-pink { --c: var(--pink); --d: var(--pink-d); --t: var(--pink-t); }
.c-green { --c: var(--green); --d: var(--green-d); --t: var(--green-t); }
.c-orange { --c: var(--orange); --d: var(--orange-d); --t: var(--orange-t); }
.c-adult { --c: var(--adult); --d: var(--adult-d); --t: var(--adult-t); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--t); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; padding: 12px 18px; font-weight: 800; background: var(--coral); color: var(--coral-t); box-shadow: inset 0 -3px 0 var(--coral-d); }
.btn.ok { background: var(--ok-d); color: var(--ok-t); box-shadow: inset 0 -3px 0 #b3d3b6; }
.btn.soft { background: var(--ok-soft); color: var(--ok-t); box-shadow: inset 0 -3px 0 var(--ok-d); }
.btn.ghost { background: var(--card); color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.danger-fill { background: var(--danger); color: #fff; box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.big { font-size: 20px; padding: 16px; border-radius: 20px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; }
.lnk { color: var(--coral-t); font-weight: 800; font-size: 14px; padding: 6px 2px; }
.x { width: 32px; height: 32px; border-radius: 50%; color: var(--mute); display: grid; place-items: center; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }

.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 90; max-width: calc(100% - 32px); text-align: center; font-size: 14px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.offline { position: fixed; top: 0; left: 0; right: 0; padding: calc(6px + var(--safe-t)) 12px 6px; background: var(--danger); color: #fff; text-align: center; font-weight: 700; z-index: 95; font-size: 14px; }

/* ── 사진 동그라미 ── */
.av { position: relative; display: inline-block; flex: none; line-height: 0; }
.face { --c: var(--adult); width: var(--sz); height: var(--sz); border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-size: calc(var(--sz) * .44); line-height: 1; background: var(--c); color: var(--t); box-shadow: inset 0 -4px 0 var(--d), 0 0 0 3px #fff; overflow: hidden; }
.face.photo { background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--d); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.off { opacity: .5; filter: grayscale(.8); }
.stk { position: absolute; top: -4px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; box-shadow: 0 2px 0 var(--line2); }
.av-btn { border-radius: 50%; }

/* ── 카드 공통 ── */
.card { background: var(--card); border-radius: 24px; padding: 16px; }
.card-title { margin: 0 0 10px; font-family: var(--disp); font-weight: 400; font-size: 19px; }
.list-card { background: var(--card); border-radius: 20px; overflow: hidden; }
.list-card.pad { padding: 4px 14px; }
.ar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--card); }
.list-card > .ar:first-child, .list-card > .fr:first-child { border-top: 0; }
.ar > div { flex: 1; min-width: 0; display: grid; }
.ar b { font-size: 15.5px; }
.ar small { font-size: 12.5px; color: var(--mute); }
.ar small.inl { font-size: 12.5px; font-weight: 500; }
.ar .chev { color: var(--line2); font-size: 22px; }
.ar-ic { width: 34px; height: 34px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: none; }
.ar-av { flex: none; }
.pill { font-size: 12px; font-weight: 800; color: var(--coral-t); background: var(--coral); border-radius: 999px; padding: 4px 11px; }
.sec { display: grid; gap: 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.sec-h h3 { margin: 0; font-size: 15px; color: var(--mute); }
.sec-h .acts { display: flex; gap: 10px; }
.empty-card { background: var(--card); border-radius: 24px; padding: 28px 18px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.empty-card p { margin: 0; font-weight: 800; }
.empty-card small { color: var(--mute); margin-bottom: 8px; }

/* ── 로그인 ── */
.is-login { min-height: 100vh; }
.login { max-width: 420px; margin: 0 auto; padding: calc(56px + var(--safe-t)) 20px 40px; display: grid; gap: 16px; }
.login-top { display: grid; justify-items: center; gap: 4px; margin-bottom: 4px; }
.login-ic { width: 72px; height: 72px; border-radius: 24px; background: var(--coral); display: grid; place-items: center; font-size: 38px; box-shadow: inset 0 -4px 0 var(--coral-d); }
.login h1 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 30px; }
.login p { margin: 0; text-align: center; }
.login .choices { display: grid; gap: 10px; }
.login .choice { background: var(--card); border-radius: 20px; padding: 18px; display: grid; gap: 2px; text-align: center; box-shadow: inset 0 -3px 0 var(--line2); }
.login .choice b { font-size: 18px; } .login .choice small { color: var(--mute); }
.login-form { display: grid; gap: 14px; }
.in { width: 100%; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--bg); font-size: 16px; outline-offset: 0; }
.login .in { background: var(--card); font-size: 18px; padding: 14px; box-shadow: inset 0 0 0 1.5px var(--line2); }
.in.code { text-align: center; letter-spacing: .4em; font-size: 26px; font-weight: 800; }
.error { color: var(--danger); font-weight: 700; text-align: center; margin: 0; min-height: 1em; }

/* ── 폰 틀 ── */
.is-phone { background: var(--bg); }
.phone { min-height: 100vh; max-width: 560px; margin: 0 auto; position: relative; }
.ph-head { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) max(18px, var(--safe-r)) 8px max(18px, var(--safe-l)); }
.ph-head h1 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 26px; line-height: 1.15; }
.ph-sub { font-size: 13px; color: var(--mute); }
.ph-right { display: flex; gap: 8px; align-items: center; }
.ph-body { display: grid; gap: 14px; align-content: start; padding: 6px max(14px, var(--safe-r)) calc(110px + var(--safe-b)) max(14px, var(--safe-l)); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px max(8px, var(--safe-r)) calc(8px + var(--safe-b)) max(8px, var(--safe-l)); border-top: 1px solid var(--line); }
.nav button { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--mute); padding: 2px 0; }
.nav i { font-style: normal; font-size: 22px; width: 48px; height: 32px; display: grid; place-items: center; border-radius: 14px; }
.nav .on { color: var(--coral-t); }
.nav .on i { background: var(--coral); box-shadow: inset 0 -3px 0 var(--coral-d); }
@media (min-width: 561px) { .nav { left: 50%; transform: translateX(-50%); width: 560px; border-radius: 24px 24px 0 0; } }

/* 대화 버튼 */
.fab { position: fixed; z-index: 31; right: max(16px, calc(var(--safe-r) + 12px)); bottom: calc(84px + var(--safe-b)); width: 60px; height: 60px; border-radius: 50%;
  background: var(--coral); box-shadow: inset 0 -4px 0 var(--coral-d), 0 10px 22px -10px rgba(160,130,40,.45); display: grid; place-items: center; font-size: 27px; }
@media (min-width: 561px) { .is-phone .fab { right: calc(50% - 280px + 16px); } }
.badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--now); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff; font-family: var(--body); }
.peek { position: fixed; z-index: 31; right: 110px; bottom: calc(36px + var(--safe-b)); background: #fff; border-radius: 18px 18px 4px 18px; padding: 9px 14px; font-size: 15px; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px -8px rgba(80,60,20,.35); }

/* ── 안내 줄 ── */
.notes { display: grid; gap: 6px; }
.nt { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; border-radius: 16px; padding: 9px 10px 9px 12px; background: var(--blue); box-shadow: inset 0 -3px 0 var(--blue-d); }
.nt i { font-style: normal; font-size: 20px; }
.nt div { display: grid; line-height: 1.3; min-width: 0; }
.nt b { font-size: 14px; } .nt div span { font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
.nt.fee { background: var(--mustard); box-shadow: inset 0 -3px 0 var(--mustard-d); }
.nt.ev { background: var(--card); box-shadow: inset 0 -3px 0 var(--line); }
.nt.done { opacity: .75; }
.nt-act { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; color: var(--blue-t); white-space: nowrap; }
.nt.fee .nt-act { color: var(--coral-t); }
.nt-ok { font-size: 12px; color: var(--ok-t); font-weight: 800; white-space: nowrap; }
.nt-more { justify-self: center; font-size: 13px; color: var(--mute); font-weight: 700; padding: 2px 10px; }

/* ── 내 상태 ── */
.me-card { display: grid; gap: 12px; }
.me-head { display: flex; gap: 12px; align-items: center; }
.me-txt { display: grid; min-width: 0; }
.me-txt small { font-size: 12px; color: var(--mute); font-weight: 700; }
.me-txt b { font-family: var(--disp); font-weight: 400; font-size: 22px; line-height: 1.2; }
.me-txt em { font-style: normal; font-size: 13px; color: var(--coral-t); font-weight: 700; }
.st-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.st-btns.n5 { grid-template-columns: repeat(5, 1fr); }
.st-btns.n4 { grid-template-columns: repeat(4, 1fr); }
.st-btns button { background: var(--bg); border-radius: 16px; padding: 8px 2px 9px; display: grid; justify-items: center; gap: 1px; font-weight: 800; font-size: 12.5px; box-shadow: inset 0 -3px 0 var(--line); white-space: nowrap; }
.st-btns i { font-style: normal; font-size: 22px; line-height: 1.3; }
.st-btns .on { background: var(--coral); color: var(--coral-t); box-shadow: inset 0 -3px 0 var(--coral-d); }
.st-btns.big button { font-size: 18px; padding: 16px 4px; border-radius: 22px; }
.st-btns.big i { font-size: 38px; }
.eta-row { display: flex; gap: 6px; align-items: center; }
.eta-row button { flex: 1; }
.eta-row > span { font-size: 13px; font-weight: 700; color: var(--mute); padding-right: 2px; }
.eta-row button { background: var(--bg); border-radius: 12px; padding: 7px 2px; text-align: center; font-weight: 800; font-size: 13.5px; box-shadow: inset 0 -2px 0 var(--line); font-variant-numeric: tabular-nums; }
.eta-row .on { background: var(--coral); color: var(--coral-t); box-shadow: inset 0 -2px 0 var(--coral-d); }
.eta-row .more { color: var(--mute); }

/* ── 우리 가족 지금 ── */
.fam { padding: 14px 10px 12px; }
.fam .card-title { margin-left: 6px; }
.fg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 4px; }
.fc { display: grid; justify-items: center; text-align: center; gap: 1px; padding: 4px 2px; border-radius: 16px; min-width: 0; }
.fc .av { margin-bottom: 6px; }
.fc-name { font-size: 13px; color: var(--mute); font-weight: 700; }
.fc-ph { font-size: 14px; font-weight: 900; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.fc.guess .fc-ph, .fc.none .fc-ph { color: var(--mute); font-weight: 600; }
.fc-sub { font-size: 12px; color: #8a6a1c; font-weight: 800; }
.fam .hint { text-align: center; }

/* ── 시트 (아래에서 올라오는 창) ── */
.dim { position: fixed; inset: 0; z-index: 60; background: rgba(40,40,50,.28); animation: fade .18s; }
.dim.out { opacity: 0; transition: opacity .18s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 28px 28px 0 0;
  padding: 8px max(18px, var(--safe-r)) calc(22px + var(--safe-b)) max(18px, var(--safe-l)); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet.out { transform: translateY(100%); transition: transform .18s ease-in; }
@media (min-width: 640px) { .sheet { left: 50%; right: auto; width: 520px; transform: translateX(-50%); animation: upc .22s cubic-bezier(.2,.8,.2,1); } .sheet.out { transform: translate(-50%, 100%); } }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line2); margin: 0 auto 10px; }
.sheet-body { display: grid; gap: 14px; }
.sh-title { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 22px; }
.ask-msg { margin: 6px 0; font-size: 17px; font-weight: 700; text-align: center; word-break: keep-all; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes upc { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .dim, .page { animation: none !important; transition: none !important; } }

/* 사람 상세 */
.ps-head { display: flex; gap: 16px; align-items: center; }
.ps-head > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.ps-head b { font-family: var(--disp); font-weight: 400; font-size: 26px; line-height: 1; }
.ps-head small { font-size: 12.5px; color: var(--mute); }
.bub { background: var(--bg); border-radius: 14px; padding: 6px 12px; font-weight: 800; font-size: 15px; }
.bub.faded { color: var(--mute); font-weight: 600; }
.ps-sec { display: grid; gap: 8px; }
.ps-sec h4 { margin: 0; font-size: 13px; color: var(--mute); }
.it-row { display: flex; justify-content: space-between; background: var(--bg); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 14.5px; }
.it-row.done { color: var(--mute); }
.it-row small { color: var(--ok-t); font-weight: 800; }
.call-grp { display: grid; gap: 2px; }
.call-grp > small { font-size: 12.5px; color: var(--mute); font-weight: 700; margin-top: 4px; }
.cl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.cl > span { display: grid; }
.cl small { font-size: 12.5px; color: var(--mute); }
.cl b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cl i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.cl.static { border-top: 0; }
.dt { display: grid; gap: 2px; }
.dt small { font-size: 13px; color: var(--mute); }
.dt b { font-family: var(--disp); font-weight: 400; font-size: 26px; line-height: 1.15; }
.dt span { font-size: 13.5px; color: var(--mute); }
.memo2 { margin: 0; font-size: 13.5px; color: var(--mute); background: var(--bg); border-radius: 12px; padding: 8px 12px; }

/* 일정 줄 (눌러서 ✔) */
.srow { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 8px; align-items: center; width: 100%; background: #fff; border-radius: 14px; padding: 9px 12px; }
.ps-sec .srow, .card .srow { background: var(--bg); }
.sr-t { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--t, var(--fg)); font-size: 15px; }
.sr-p { display: grid; min-width: 0; }
.sr-p b { font-size: 15.5px; overflow-wrap: anywhere; }
.sr-p small { font-size: 12px; color: var(--mute); font-weight: 700; }
.srow .chk { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line2); display: grid; place-items: center; color: transparent; font-weight: 900; font-size: 15px; background: #fff; }
.srow.done .chk { background: var(--ok); box-shadow: none; color: #fff; }
.srow.done .sr-t, .srow.done .sr-p b { opacity: .5; }
.srow.done .sr-p small { color: var(--ok-t); }

/* ── 전체 화면 창 (페이지) ── */
.page { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; overscroll-behavior: contain; animation: slide .22s cubic-bezier(.2,.8,.2,1); }
.page.out { transform: translateX(100%); transition: transform .18s ease-in; }
@keyframes slide { from { transform: translateX(100%); } }
.pg-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(8px + var(--safe-t)) max(8px, var(--safe-r)) 8px max(8px, var(--safe-l)); }
.pg-head h2 { margin: 0; text-align: center; font-family: var(--disp); font-weight: 400; font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-back { width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; color: var(--fg); display: grid; place-items: center; }
.pg-body { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; align-content: start; padding: 6px max(14px, var(--safe-r)) calc(28px + var(--safe-b)) max(14px, var(--safe-l)); }
.pg-foot { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 10px 0 calc(6px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.pg-foot .btn { flex: 1; } .pg-foot .btn.ghost { flex: 0 0 30%; }

/* 입력 묶음 */
.fgp { background: var(--card); border-radius: 20px; overflow: hidden; }
.fgp.pad { padding: 2px 16px 14px; display: grid; gap: 8px; }
.fgp.pad .fh { padding: 12px 0 0; }
.fh { padding: 12px 16px 4px; font-size: 13px; font-weight: 900; color: var(--mute); }
.fh small { font-weight: 500; }
.fr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 50px; }
.fgp > .fr:first-child { border-top: 0; }
.fr.col { flex-direction: column; align-items: stretch; gap: 8px; }
.fr-l { color: var(--mute); font-size: 14.5px; flex: none; display: grid; }
.fr-l small { font-size: 12px; }
.fr .in { max-width: 62%; text-align: right; background: transparent; padding: 6px 0; font-weight: 700; }
.fr select.in { text-align-last: right; appearance: none; -webkit-appearance: none; }
.fr .in::placeholder { color: #cbbfa6; font-weight: 500; }
.suffix { display: flex; align-items: center; gap: 4px; font-weight: 700; max-width: 62%; }
.suffix .in { max-width: none; }
.fgp.pad .in { text-align: left; background: var(--bg); padding: 11px 14px; max-width: none; }
textarea.in { resize: vertical; line-height: 1.5; }
.tpick { display: flex; gap: 6px; }
.tpick select { border: 0; border-radius: 12px; background: var(--bg); padding: 8px 10px; font-weight: 700; }
.preset { margin: 0 16px 6px; background: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 800; display: grid; }
.preset small { font-weight: 500; color: var(--mute); }

/* 고르기 묶음 */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; background: var(--bg); color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line); }
.seg .on { background: var(--coral); color: var(--coral-t); box-shadow: inset 0 -2px 0 var(--coral-d); }
.seg.big { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 18px; padding: 4px; gap: 4px; }
.seg.big button { border-radius: 14px; padding: 11px; text-align: center; box-shadow: none; background: transparent; font-size: 15px; }
.seg.big .on { background: var(--coral); box-shadow: inset 0 -3px 0 var(--coral-d); }
.seg.nseg { display: grid; grid-template-columns: repeat(5, 1fr); margin: 4px 16px 8px; background: var(--bg); border-radius: 12px; padding: 3px; gap: 0; }
.seg.nseg button { border-radius: 9px; padding: 7px 0; text-align: center; font-size: 13px; background: transparent; box-shadow: none; }
.seg.nseg .on { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg.tt { gap: 18px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 4px; }
.seg.tt button { background: none; box-shadow: none; border-radius: 0; padding: 6px 0 9px; font-size: 15px; white-space: nowrap; }
.seg.tt .on { color: var(--fg); box-shadow: inset 0 -3px 0 var(--blue-t); }
.tabs-t:empty { display: none; }

/* 수업 시간 줄 */
.slots { display: grid; }
.sr2 { display: grid; grid-template-columns: 58px 1fr auto 32px; gap: 8px; align-items: center; padding: 6px 12px 6px 16px; border-top: 1px solid var(--line); }
.sr2 .wd { border: 0; background: var(--blue); color: var(--blue-t); font-weight: 900; border-radius: 10px; padding: 6px 8px; }
.sr2 .tbtn { text-align: left; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 4px; font-size: 15.5px; }
.sr2.ed2 { background: rgba(252,235,191,.35); }
.sr2 .mark { font-size: 11.5px; color: var(--coral-t); font-weight: 800; }
.slots .fn { padding: 0 16px 8px; margin: 0; }
.addl { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--coral-t); font-weight: 800; font-size: 14px; width: 100%; }

/* 준비물 쓰기 */
.kp2 { display: flex; flex-wrap: wrap; gap: 6px; }
.kp2 button { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 14px; font-weight: 800; }
.kp2 button:last-child { padding: 7px 12px; }
.kp2 .on { background: var(--coral); color: var(--coral-t); }
.kp2 .face { box-shadow: 0 0 0 2px #fff; }
.cps { display: flex; flex-wrap: wrap; gap: 6px; }
.cps button, .cp-date { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 700; box-shadow: inset 0 -2px 0 var(--line); position: relative; }
.cps .on, .cp-date.on { background: var(--ok-d); color: var(--ok-t); box-shadow: inset 0 -2px 0 #b3d3b6; font-weight: 900; }
.cp-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.cps.sm button { padding: 6px 10px; font-size: 13px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked button { background: var(--ok-d); color: var(--ok-t); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.in-add { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.in-add .btn { padding: 0 16px; font-size: 18px; }
.sw { width: 46px; height: 28px; border-radius: 99px; background: var(--line2); position: relative; flex: none; transition: background .15s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.sw.on { background: var(--ok); } .sw.on i { left: 21px; }

/* 사진 창 */
.big-av { display: grid; justify-items: center; padding: 6px 0; }
.opt { display: grid; gap: 8px; }
.opt button { background: var(--bg); border-radius: 16px; padding: 14px 16px; font-weight: 800; font-size: 15.5px; }
.opt .ghost { background: transparent; color: var(--mute); font-weight: 600; text-align: center; }

/* ── 주간 시간표 ── */
.tt { padding: 10px 10px 14px 6px; }
.tt-grid { display: grid; grid-template-columns: 22px 1fr; gap: 4px; position: relative; }
.tt-dh { height: 38px; display: grid; justify-items: center; align-content: center; line-height: 1.15; }
.tt-dh b { font-size: 13.5px; } .tt-dh small { font-size: 11px; color: var(--mute); }
.tt-col.today .tt-dh b, .tt-col.today .tt-dh small { color: var(--coral-t); }
.tt-axb { position: relative; height: var(--h); font-size: 11px; color: var(--mute); }
.tt-axb span { position: absolute; right: 3px; transform: translateY(-50%); }
.tt-cols { position: relative; display: grid; gap: 4px; }
.tt-lines { position: absolute; left: 0; right: 0; top: 38px; }
.tt-lines i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.tt-col { min-width: 0; }
.tt-body { position: relative; height: var(--h); }
.tt-col.today .tt-body { background: rgba(252,235,191,.35); border-radius: 8px; }
.tt-lanes { position: absolute; inset: 0; display: grid; gap: 2px; }
.tt-lane { position: relative; }
.bk { position: absolute; left: 1px; right: 1px; border-radius: 8px; background: var(--c); color: var(--t); padding: 4px 5px; display: grid; align-content: start; line-height: 1.2; overflow: hidden; text-align: left; box-shadow: inset 0 -2px 0 var(--d); }
.bk b { font-size: 11.5px; overflow-wrap: anywhere; } .bk small { font-size: 10.5px; color: var(--mute); }
.bk.sch { background: #eceee7; box-shadow: none; } .bk.sch b { color: var(--mute); }
.bk.v { padding: 0; } .bk.v b { display: none; } /* '모두'에서는 칸이 좁아 색 막대만 (누르면 자세히) */
.tt-now { position: absolute; left: -3px; right: -3px; border-top: 2px solid var(--now); z-index: 2; }
.tt-empty { position: absolute; left: 0; right: 0; top: 45%; text-align: center; color: var(--mute); font-size: 14px; margin: 0; }
.legend { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.nextl { display: flex; align-items: baseline; gap: 10px; padding: 0 6px; font-size: 15px; }
.nextl span { font-size: 13px; color: var(--mute); } .nextl small { margin-left: auto; color: var(--coral-t); font-weight: 800; font-size: 13px; }
.li-day { font-size: 12.5px; font-weight: 900; color: var(--mute); padding: 10px 0 2px; }
.ni { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.li-day + .ni { border-top: 0; }
.ni i { font-style: normal; font-size: 18px; }
.ni div { display: grid; } .ni b { font-size: 14.5px; } .ni small { font-size: 12px; color: var(--mute); }
.ni.done b { color: var(--mute); }

/* ── 학원 탭 ── */
.mnav { display: flex; justify-content: center; align-items: center; gap: 18px; }
.mnav button { width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 20px; color: var(--mute); display: grid; place-items: center; }
.mnav b { font-family: var(--disp); font-weight: 400; font-size: 20px; min-width: 70px; text-align: center; }
.sum2 { display: grid; gap: 6px; padding: 16px 18px; }
.sum2 small { font-size: 13px; color: var(--mute); }
.sum2 > b { font-family: var(--disp); font-weight: 400; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bar2 { height: 6px; border-radius: 9px; background: var(--bg); margin-top: 4px; overflow: hidden; }
.bar2 i { display: block; height: 100%; border-radius: 9px; background: var(--ok); }
.sum2 span { font-size: 13px; color: var(--mute); }
.grp { display: grid; gap: 6px; }
.grp h4 { margin: 4px 0 0 6px; font-size: 13px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.ck { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line2); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 15px; flex: none; }
.ck.on { background: var(--ok); box-shadow: none; }
.ar[role=button] { cursor: pointer; }

/* 기기 연결 숫자 */
.pair-box { text-align: center; display: grid; gap: 6px; }
.pair-box p { margin: 0; font-weight: 700; }
.big-code { font-family: var(--disp); font-size: 48px; letter-spacing: .25em; color: var(--coral-t); }

/* ── 가족 대화 ── */
.chat-sheet { display: flex; flex-direction: column; max-height: 88vh; }
.chat-sheet .sheet-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.msgs { flex: 1; min-height: 200px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.m { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.m > div { display: grid; gap: 2px; }
.m .who { font-size: 11.5px; color: var(--mute); font-weight: 700; padding-left: 4px; }
.m .tx { background: var(--bg); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 15px; overflow-wrap: anywhere; }
.m .at { font-size: 10.5px; color: var(--mute); padding-left: 4px; }
.m.me { align-self: flex-end; }
.m.me .tx { background: var(--coral); border-radius: 16px 16px 4px 16px; }
.m.me .at { text-align: right; padding-right: 4px; }
.m.pending { opacity: .6; }
.dayline { align-self: center; font-size: 12px; color: var(--mute); background: var(--bg); border-radius: 999px; padding: 2px 10px; }
.msgs .more { align-self: center; }
.pick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pick-l { font-size: 12.5px; color: var(--mute); font-weight: 700; margin-right: 2px; }
.pick button { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 800; font-size: 14px; }
.pick .on { background: var(--coral); color: var(--coral-t); }
.pick .face { box-shadow: 0 0 0 2px #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: var(--bg); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; box-shadow: inset 0 -2px 0 var(--line); }
.quick.talk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick.talk button { display: grid; justify-items: center; padding: 8px 2px 10px; border-radius: 16px; font-size: 12.5px; font-weight: 900; }
.quick.talk i { font-style: normal; font-size: 28px; line-height: 1.3; }
.quick.talk .p0 { background: var(--green); color: var(--green-t); box-shadow: inset 0 -3px 0 var(--green-d); }
.quick.talk .p1 { background: var(--mustard); box-shadow: inset 0 -3px 0 var(--mustard-d); }
.quick.talk .p2 { background: var(--pink); color: var(--pink-t); box-shadow: inset 0 -3px 0 var(--pink-d); }
.compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.compose input { border: 0; border-radius: 999px; background: var(--bg); padding: 11px 16px; font-size: 16px; min-width: 0; }
.compose .btn { border-radius: 999px; padding: 10px 18px; }

/* ── 거실 태블릿 ── */
.is-tablet { overflow: hidden; height: 100vh; height: 100dvh; }
.tb { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; position: relative; overflow: hidden;
  padding: var(--safe-t) max(24px, var(--safe-r)) 0 max(24px, var(--safe-l)); }
.tb::before, .tb::after { content: ""; position: absolute; border-radius: 50%; background: var(--blob); z-index: 0; pointer-events: none; }
.tb::before { width: 460px; height: 460px; bottom: -230px; left: -140px; }
.tb::after { width: 320px; height: 320px; top: -170px; right: 300px; }
.tb > * { position: relative; z-index: 1; }
.tb > .fab, .tb > .peek { position: fixed; z-index: 31; }
.tb-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tb-when { padding-top: 14px; display: grid; }
.tb-when b { font-family: var(--disp); font-weight: 400; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tb-when span { font-size: 16px; color: var(--mute); font-weight: 700; }
.tb-tabs { display: flex; gap: 6px; }
.tb-tabs button { display: grid; justify-items: center; gap: 2px; padding: 12px 16px 10px; font-size: 14px; font-weight: 800; color: var(--mute); border-radius: 0 0 20px 20px; min-width: 84px; }
.tb-tabs i { font-style: normal; font-size: 26px; }
.tb-tabs .on { background: var(--coral); color: var(--coral-t); box-shadow: none; }
.tb-main { overflow-y: auto; display: grid; gap: 12px; align-content: start; padding: 10px 0 120px; }
.tline { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 11px 18px; font-size: 16px; white-space: nowrap; overflow: hidden; }
.tline b { margin-right: 8px; }
.tline .sep { width: 1px; height: 18px; background: var(--line2); flex: none; }
.tline .more { margin-left: auto; color: var(--mute); font-size: 14px; }
.tline span { overflow: hidden; text-overflow: ellipsis; }
.is-tablet .fam { padding: 14px 18px 12px; }
.is-tablet .fg { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.is-tablet .fc-ph { font-size: 15px; background: var(--bg); border-radius: 14px; padding: 5px 10px; margin-top: 4px; }
.is-tablet .fc.guess .fc-ph, .is-tablet .fc.none .fc-ph { background: transparent; }
.is-tablet .fc-name { font-size: 15px; color: var(--fg); font-weight: 800; }
.is-tablet .fam .face { --sz: 78px !important; }
.tb-kids { display: grid; gap: 14px; }
.kc { background: var(--c); border-radius: 24px; padding: 14px 14px 16px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 -5px 0 var(--d); }
.kc h4 { margin: 0 0 2px 4px; font-family: var(--disp); font-weight: 400; font-size: 26px; color: var(--t); }
.kc .srow { background: #fff; }
.kc-bring { background: rgba(255,255,255,.7); border-radius: 12px; padding: 7px 12px; font-size: 14px; font-weight: 700; }
.tb-foot { text-align: center; color: var(--mute); font-size: 13px; margin: 4px 0 0; }
.is-tablet .fab { right: max(24px, var(--safe-r)); bottom: calc(24px + var(--safe-b)); width: 76px; height: 76px; font-size: 34px; }
.is-tablet .sheet.chat-sheet { left: auto; right: 0; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 28px 0 0 28px; transform: none; animation: slide .22s cubic-bezier(.2,.8,.2,1); padding-top: calc(16px + var(--safe-t)); }
.is-tablet .sheet.chat-sheet.out { transform: translateX(100%); }
.is-tablet .sheet.chat-sheet .grab { display: none; }
.is-tablet .msgs { max-height: none; }
.is-tablet .bk b { font-size: 14px; } .is-tablet .bk small { font-size: 12.5px; } .is-tablet .tt-dh b { font-size: 16px; } .is-tablet .tt-axb { font-size: 13px; }
.is-tablet .tt { padding: 14px 16px 18px 10px; }
.is-tablet .sheet { font-size: 17px; }
.tb-st { display: grid; gap: 18px; padding: 22px; }
.pick.big button { font-size: 18px; padding: 5px 18px 5px 5px; }
.pick.big .face { --sz: 64px !important; }
.tb-now { margin: 0; font-size: 18px; color: var(--mute); } .tb-now b { color: var(--fg); }
.ta-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--bg); border-radius: 20px; padding: 10px 16px; width: 100%; margin-top: 8px; }
.ta-row b { font-size: 19px; }
.tic { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tic span { background: #fff; border-radius: 12px; padding: 5px 12px; font-weight: 900; font-size: 16px; }
.tck { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 2.5px var(--line2); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 22px; background: #fff; }
.ta-row.done .tck { background: var(--ok); box-shadow: none; }
.ta-row.done .tic span { opacity: .55; text-decoration: line-through; }
.ta-ev { background: var(--mustard); border-radius: 16px; padding: 10px 14px; font-weight: 700; margin-top: 8px; }
.talert-wrap .dim { z-index: 80; background: rgba(40,40,50,.36); }
.talert { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 32px; padding: 24px; display: grid; gap: 4px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.45); }
.ta-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.ta-head .bell { font-size: 40px; }
.ta-head div { display: grid; } .ta-head b { font-family: var(--disp); font-weight: 400; font-size: 32px; line-height: 1.1; } .ta-head small { color: var(--mute); font-weight: 700; }
.talert .btn.big { margin-top: 12px; }
.talert .btn.ghost.sm { justify-self: center; box-shadow: none; background: none; }
/* 밤에 어둡게 (태블릿) */
body.is-tablet.night::after { content: ""; position: fixed; inset: 0; background: rgba(20,20,28,.5); pointer-events: none; z-index: 200; }

/* 폰 가로 넓은 화면(태블릿 아닌데 큰 화면)에서도 보기 좋게 */
@media (min-width: 900px) { .is-phone .fg { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 360px) { .st-btns button { font-size: 11.5px; } .fg { gap: 12px 2px; } }

/* ═══ 11-24 아이 스스로 준비 (할 일·가방·보상) ═══ */
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-h .card-title { margin: 0; flex: 1; }
.cnt { background: var(--now); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 900; }
.lnk.mute { color: var(--mute); font-weight: 700; }
.stack { display: grid; gap: 14px; }
.my-st { background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* 우리 가족 지금 = 피치 칸 */
.fam { background: var(--fam); }
.fam .card-title { color: var(--fam-t); }
.fam .fc-name { color: #6b5d33; }
.fam .face.photo { box-shadow: 0 0 0 3px #fff; }

/* 아이 칸 (아이 색) */
.kc { background: var(--c); border-radius: 26px; padding: 14px; display: grid; gap: 10px; align-content: start; box-shadow: none; }
.kc-h { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.kc-h h4 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 24px; color: var(--t); }
.kc-n { flex: 1; color: var(--mute); font-size: 14px; }
.pts { background: #fff; border-radius: 999px; padding: 5px 12px; font-family: var(--disp); font-size: 17px; white-space: nowrap; }
.pts.big { font-size: 24px; padding: 10px 20px; background: var(--fam); }
.pts-row { display: grid; gap: 4px; justify-items: start; margin-top: 10px; }
.pts-row small, .pts-card small { color: var(--mute); font-size: 12.5px; }
.pts-card { display: grid; gap: 6px; justify-items: start; }

/* 할 일 줄 */
.td-list { display: grid; gap: 8px; }
.td { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; gap: 10px; align-items: center; width: 100%; background: #fff; border-radius: 18px; padding: 8px 12px; min-height: 56px; text-align: left; color: var(--fg); border: 3px solid transparent; }
.card .td { background: var(--bg); }
.kc .td, .kc .td.bag .td-main { background: #fff; }
.td > i, .td-main > i { font-style: normal; font-size: 24px; line-height: 1; text-align: center; }
.td-tx { display: grid; min-width: 0; line-height: 1.3; }
.td-tx b { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-tx small { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td.is-now { border-color: var(--d, var(--line2)); }
.td.done { opacity: .62; }
.td-tag { border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.td-tag.now { background: var(--c, var(--coral)); color: var(--t, var(--coral-t)); }
.td-tag.wait { font-size: 11.5px; color: #8a6a1c; padding: 0; }
.td-pt { font-size: 13px; font-weight: 900; color: #8a6a1c; }
.tc { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: transparent; }
.tc.on { background: var(--ok-d); border-color: var(--ok-d); color: var(--ok-t); }
.td.bag { grid-template-columns: 1fr auto; padding: 0; border: 2px dashed var(--d, var(--line2)); }
.td-main { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; min-height: 52px; border-radius: 16px; text-align: left; color: var(--fg); }
.td-go { font-size: 13.5px; font-weight: 900; color: var(--t, var(--blue-t)); white-space: nowrap; }
.td.wait { grid-template-columns: 30px minmax(0,1fr) auto; background: var(--ok-soft); opacity: 1; }
.ap-btns { display: flex; gap: 6px; }
.ap-btns button { border-radius: 12px; padding: 8px 12px; font-weight: 900; font-size: 14px; white-space: nowrap; }
.ap-ok { background: var(--ok-d); color: var(--ok-t); box-shadow: inset 0 -2px 0 #b3d3b6; }
.ap-no { background: #fff; color: var(--mute); }
.td.bag .ap-btns { padding-right: 10px; }

/* 엄마 폰: 아이 탭 */
.ktabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ktabs button { flex: 1; border-radius: 999px; padding: 9px 8px; font-family: var(--disp); font-size: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--mute); position: relative; }
.ktabs .on { background: var(--c); color: var(--t); box-shadow: none; }
.ktabs em { font-style: normal; position: absolute; top: -6px; right: 6px; background: var(--now); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font: 900 11.5px var(--body); display: grid; place-items: center; padding: 0 5px; }
.kids-card { padding: 14px; }

/* 아이가 고른 보상 */
.claims { display: grid; gap: 8px; }
.claim { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 10px; align-items: center; background: var(--pink); border-radius: 20px; padding: 10px 12px; }
.claim > i { font-style: normal; font-size: 28px; }
.claim span { display: grid; } .claim b { font-size: 14.5px; } .claim small { font-size: 12px; color: var(--mute); }
.claim-ok { background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 900; font-size: 14px; color: var(--pink-t); }

/* 칭찬 효과 */
.cheer { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.9); z-index: 120; background: #fff; border-radius: 28px; padding: 18px 28px; font-family: var(--disp); font-size: 26px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -16px rgba(40,40,60,.35); animation: pop .35s cubic-bezier(.2,1.4,.4,1) forwards; pointer-events: none; max-width: calc(100vw - 32px); }
.cheer span { font-size: 40px; }
.cheer.out { opacity: 0; transition: opacity .35s; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cheer { animation: none; transform: translate(-50%, -50%); } }

/* 아이 고르기 (가방·보상) */
.kidpick { display: flex; gap: 8px; flex-wrap: wrap; }
.kidpick button { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 16px 4px 4px; background: #fff; font-family: var(--disp); font-size: 17px; color: var(--mute); box-shadow: inset 0 0 0 2px var(--line); }
.kidpick .on { background: var(--c); color: var(--t); box-shadow: none; }

/* 가방 챙기기 */
.bagv, .shop { display: grid; gap: 14px; }
.bag-head, .shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bag-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bag-title > div { display: grid; min-width: 0; }
.bag-title b { font-family: var(--disp); font-weight: 400; font-size: 22px; line-height: 1.2; }
.bag-title small { color: var(--mute); font-size: 13.5px; }
.bag-bar { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 8px 16px; }
.bag-bar b { font-family: var(--disp); font-weight: 400; font-size: 17px; white-space: nowrap; }
.bar { flex: 1; height: 12px; border-radius: 99px; background: var(--bg); overflow: hidden; display: block; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .3s; }
.bag-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.bag-card { display: grid; justify-items: center; align-content: center; gap: 6px; background: #fff; border-radius: 26px; padding: 18px 10px; min-height: 170px; box-shadow: inset 0 -5px 0 var(--line); color: var(--fg); }
.bag-card.on { background: var(--ok-soft); box-shadow: inset 0 0 0 3px var(--ok), inset 0 -5px 0 var(--ok-d); }
.bag-emo { font-size: 54px; line-height: 1; }
.bag-card b { font-family: var(--disp); font-weight: 400; font-size: 22px; text-align: center; word-break: keep-all; }
.bag-chip { border-radius: 999px; padding: 6px 14px; font-family: var(--disp); font-size: 15px; background: var(--coral); color: var(--coral-t); }
.bag-card.on .bag-chip { background: var(--ok-d); color: var(--ok-t); }
.bag-foot { text-align: center; color: var(--mute); margin: 0; font-size: 15px; }
.bag-ev { display: grid; gap: 6px; }
.bag-ev span { background: #fff; border-radius: 14px; padding: 8px 14px; font-weight: 700; font-size: 14px; }

/* 보상 가게 */
.shop-wait { background: var(--pink); border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.rw-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rw-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; background: #fff; border-radius: 24px; padding: 14px 16px; box-shadow: inset 0 -4px 0 var(--line); }
.rw-emo { width: 64px; height: 64px; border-radius: 20px; background: var(--bg); display: grid; place-items: center; font-size: 38px; }
.rw-card.can .rw-emo { background: var(--fam); }
.rw-tx { display: grid; gap: 2px; min-width: 0; }
.rw-tx b { font-family: var(--disp); font-weight: 400; font-size: 20px; line-height: 1.2; }
.rw-tx small { color: var(--mute); font-size: 14px; }
.rw-tx em { font-style: normal; font-size: 13px; font-weight: 900; color: #8a6a1c; margin-top: 4px; }
.rw-tx .bar { height: 9px; flex: none; }
.rw-go { background: var(--coral); color: var(--coral-t); border-radius: 18px; padding: 12px 16px; font-family: var(--disp); font-size: 18px; white-space: nowrap; box-shadow: inset 0 -3px 0 var(--coral-d); }

/* 할 일·보상 정하기 */
.emo-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emo-pick button { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); font-size: 22px; }
.emo-pick .on { background: var(--coral); box-shadow: inset 0 0 0 2px var(--coral-d); }
.wdp { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wdp button { border-radius: 12px; padding: 9px 0; font-weight: 900; background: var(--bg); color: var(--mute); }
.wdp .on { background: var(--blue); color: var(--blue-t); }
.ni .plus { color: var(--ok-t); } .ni .minus { color: var(--pink-t); }

/* ── 태블릿: 글자 크게 ── */
.is-tablet .fam { padding: 14px 22px 14px; }
.is-tablet .fam .card-title { font-size: 22px; }
.is-tablet .fc-ph { background: #fff; font-size: 17px; }
.is-tablet .fc-sub { font-size: 14px; }
.is-tablet .kc { padding: 16px; gap: 10px; }
.is-tablet .kc-h h4 { font-size: 30px; }
.is-tablet .kc-n { font-size: 16px; }
.is-tablet .pts { font-size: 20px; padding: 6px 14px; }
.is-tablet .td { min-height: 62px; padding: 8px 14px; grid-template-columns: 34px minmax(0,1fr) auto auto; }
.is-tablet .td.bag { padding: 0; grid-template-columns: 1fr auto; }
.is-tablet .td-main { min-height: 58px; grid-template-columns: 34px minmax(0,1fr) auto; padding: 8px 14px; }
.is-tablet .td > i, .is-tablet .td-main > i { font-size: 28px; }
.is-tablet .td-tx b { font-size: 19px; }
.is-tablet .td-tx small { font-size: 14px; }
.is-tablet .td-tag { font-size: 14px; padding: 3px 12px; }
.is-tablet .td-pt { font-size: 15px; }
.is-tablet .tc { width: 38px; height: 38px; font-size: 18px; }
.is-tablet .tb-tabs button { font-size: 16px; }
.bagv.big .bag-title b, .shop.big .bag-title b { font-size: 36px; }
.bagv.big .bag-title small, .shop.big .bag-title small { font-size: 18px; }
.bagv.big .bag-bar { padding: 12px 22px; } .bagv.big .bag-bar b { font-size: 24px; } .bagv.big .bar { height: 16px; }
.bagv.big .bag-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.bagv.big .bag-grid.n4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bagv.big .bag-grid.n1, .bagv.big .bag-grid.n2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.bagv.big .bag-card { min-height: 300px; gap: 10px; border-radius: 32px; }
.bagv.big .bag-emo { font-size: 110px; }
.bagv.big .bag-card b { font-size: 40px; }
.bagv.big .bag-chip { font-size: 22px; padding: 12px 24px; }
.bagv.big .bag-foot { font-size: 22px; }
.bagv.big .kidpick button, .shop.big .kidpick button { font-size: 21px; }
.shop.big .rw-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.shop.big .rw-card { padding: 22px; border-radius: 30px; gap: 20px; }
.shop.big .rw-emo { width: 104px; height: 104px; font-size: 64px; border-radius: 28px; }
.shop.big .rw-tx b { font-size: 30px; }
.shop.big .rw-tx small { font-size: 19px; }
.shop.big .rw-tx em { font-size: 17px; }
.shop.big .rw-go { font-size: 24px; padding: 16px 22px; }
.shop.big .pts.big { font-size: 30px; }
.shop.big .shop-wait { font-size: 18px; }
@media (min-width: 700px) { .is-phone .bag-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.td-fold { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(255,255,255,.55); border-radius: 16px; padding: 6px 12px; min-height: 44px; font-weight: 800; font-size: 14px; color: var(--ok-t); text-align: left; }
.td-fold .tc { width: 26px; height: 26px; font-size: 13px; border-width: 0; }
.td-fold .chev { margin-left: auto; color: var(--mute); }
.card .td-fold { background: var(--ok-soft); }
.is-tablet .td-fold { font-size: 16px; min-height: 48px; }
.fam.compact { padding: 12px 8px 10px; }
.fam.compact .card-h { padding: 0 6px; }
.fam.compact .fg { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px 2px; }
.fam.compact .fc-ph { font-size: 12.5px; }
.fam.compact .fc-name { font-size: 12px; }
.fam.compact .fc-sub { font-size: 11px; }
.fam.compact .stk { width: 22px; height: 22px; font-size: 12px; right: -6px; }
.wdp button { text-align: center; }

/* ── 처음 시작하기 (11-29) ── */
.login .tagline { font-size: 18px; color: var(--mute); margin-top: -2px; }
.login .start-art { display: flex; justify-content: center; gap: 10px; margin: 6px 0 10px; }
.login .start-art span { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font-size: 32px; background: var(--c); box-shadow: inset 0 -4px 0 var(--d); }
.login .start-pts { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.login .start-pts li { background: var(--card); border-radius: 18px; padding: 14px 16px; font-size: 17px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.login .start-pts li span { font-size: 24px; }
.login .btn.big { font-size: 20px; padding: 18px; border-radius: 20px; }
.login .lnk-btn { justify-self: center; background: none; color: var(--mute); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.login.ob { padding-top: calc(28px + var(--safe-t)); gap: 14px; }
.ob-dots { display: flex; justify-content: center; gap: 8px; }
.ob-dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--line2); transition: width .2s; }
.ob-dots i.on { width: 28px; background: var(--ok); } .ob-dots i.done { background: var(--ok-d); }
.ob-q { font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1.3; margin: 6px 0 0; text-align: center; }
.ob-q2 { font-family: var(--disp); font-weight: 400; font-size: 22px; margin: 12px 0 0; text-align: center; }
.ob-sub { color: var(--mute); font-size: 15px; margin-top: -6px !important; }
.ob-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-chips button { background: var(--card); border-radius: 999px; padding: 12px 18px; font-size: 18px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line2); }
.ob-chips button.on { background: var(--coral); color: var(--coral-t); box-shadow: inset 0 0 0 2px var(--coral-d); }
.ob-kid { background: var(--c); border-radius: 24px; padding: 14px; display: grid; gap: 12px; }
.ob-kid-h { display: flex; gap: 8px; align-items: center; }
.ob-kid .in { background: #fff; box-shadow: none; font-family: var(--disp); font-size: 22px; color: var(--t); }
.ob-x { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--t); font-size: 16px; }
.ob-colors { display: flex; gap: 10px; align-items: center; }
.ob-color { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 var(--d), 0 0 0 3px #fff; }
.ob-color.on { box-shadow: inset 0 -3px 0 var(--d), 0 0 0 3px #fff, 0 0 0 6px var(--t); }
.ob-phone { justify-self: start; background: rgba(255,255,255,.75); border-radius: 999px; padding: 10px 16px; font-size: 16px; font-weight: 700; color: var(--mute); }
.ob-phone.on { background: #fff; color: var(--t); }
.ob-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-tasks button { position: relative; background: var(--card); border-radius: 20px; padding: 14px 10px 12px; display: grid; justify-items: center; gap: 2px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ob-tasks button.on { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok-d); }
.ob-tasks .ob-t-e { font-size: 30px; line-height: 1.1; } .ob-tasks b { font-size: 16px; } .ob-tasks small { color: var(--mute); font-weight: 700; }
.ob-tasks i { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 900; box-shadow: inset 0 0 0 2px var(--line2); }
.ob-tasks .on i { background: var(--ok-d); color: var(--ok-t); box-shadow: none; }
.ob-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg); background: var(--card); border-radius: 16px; padding: 14px; line-height: 1.45; }
.ob-agree input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--ok); }
.ob-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 4px; }
.ob-nav .btn { font-size: 18px; padding: 16px; }
.ob-nav .btn:disabled { opacity: .45; }
.dot.big { width: 28px; height: 28px; background: var(--c); box-shadow: inset 0 -3px 0 var(--d); flex: 0 0 28px; }
.danger-lnk { display: block; margin: 8px auto 0; color: var(--danger); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fr .ob-colors { gap: 8px; } .fr .ob-color { width: 34px; height: 34px; }
.login, .ob-agree, .ob-sub, .ob-q { word-break: keep-all; }

/* 11-30 기획서 v2: 엄마 첫 화면(아이마다 한 장) · 확인+칭찬 한마디 · 칭찬 말풍선 */
.my-st.sm { padding: 6px 12px; font-size: 13px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px var(--line); }
.cf-ban { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--mustard); box-shadow: inset 0 0 0 1px var(--mustard-d); color: var(--coral-t); }
.cf-ban > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cf-ban b { font-family: var(--disp); font-weight: 400; font-size: 20px; }
.cf-ban small { font-size: 14px; word-break: keep-all; }
.cf-go { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-d); font-weight: 900; font-size: 15px; color: var(--coral-t); }
.ov { display: grid; gap: 14px; }
.ov-kid { display: grid; gap: 12px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 22px; }
.ov-h { display: flex; align-items: center; gap: 12px; }
.ov-name { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.ov-name b { font-family: var(--disp); font-weight: 400; font-size: 22px; color: var(--t); }
.ov-name small { font-size: 14px; color: #4a4a52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-streak { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-t); font-size: 13px; font-weight: 900; }
.ov-prog { display: grid; gap: 6px; }
.ov-prog > div { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #4a4a52; }
.ov-prog .bar { height: 10px; background: var(--blob); }
.ov-rows { display: grid; border-top: 1px solid var(--blob); }
.ov-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--blob); }
.ov-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ov-l { width: 40px; flex: none; font-size: 13px; font-weight: 900; color: var(--t); }
.ov-tx { flex: 1; display: grid; gap: 2px; font-size: 15px; min-width: 0; word-break: keep-all; }
.ov-tx small { color: var(--mute); font-size: 14px; }
.ov-tx small.wait { color: var(--pink-t); font-weight: 700; }
.ov-tx b.ok { color: var(--ok-t); }
.ov-more { justify-self: start; color: var(--t); font-weight: 800; font-size: 14px; padding: 6px 2px; min-height: 36px; }
.ov-week { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--green); box-shadow: inset 0 0 0 1px var(--green-d); color: var(--green-t); }
.ov-week b { font-family: var(--disp); font-weight: 400; font-size: 18px; }
.ov-week span { font-size: 14px; }
.kc-streak { font-style: normal; color: var(--ok-t); font-weight: 800; }
.praise { margin: -2px 0 2px 42px; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--mustard); box-shadow: inset 0 0 0 1px var(--mustard-d); display: grid; gap: 2px; color: var(--coral-t); }
.praise small { font-size: 12px; font-weight: 900; }
.praise span { font-family: var(--disp); font-size: 18px; line-height: 1.35; word-break: keep-all; }
.cf-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cf-h > div { display: grid; gap: 2px; min-width: 0; }
.cf-h b { font-family: var(--disp); font-weight: 400; font-size: 21px; line-height: 1.25; word-break: keep-all; }
.cf-h small { color: var(--mute); font-size: 14px; }
.cf-praise { display: grid; gap: 10px; margin-bottom: 16px; }
.cf-praise .fh small { color: var(--mute); font-weight: 500; }
.cf-praise .cps button { padding: 10px 14px; border-radius: 999px; }
.cf-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.cf-btns .btn { min-height: 54px; font-size: 16px; }
.cf-praise .fh { padding: 0; font-size: 15px; color: var(--fg); }

/* 11-30 구글·애플 로그인 버튼 (애플: 검정 바탕 흰 로고 / 구글: 흰 바탕 테두리, 공식 G 로고) */
.social { display: grid; gap: 10px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border-radius: 20px; font-size: 18px; font-weight: 800; }
.sbtn.apple { background: #000; color: #fff; }
.sbtn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1.5px var(--line2); }
.page .social { margin-top: 4px; }

/* ── 11-30 화면 크기에 맞추기 (회사 PC·태블릿에서도 엄마·아빠 화면을 넓게) ──
   폰: 그대로 / 700px~ 세로 태블릿: 폭 넓히고 아이 카드 2열 / 980px~ PC·가로 태블릿: 메뉴는 왼쪽, 아이 카드 나란히 */
.ov > .ov-week { grid-column: 1 / -1; }
@media (min-width: 700px) and (max-width: 979px) {
  .phone { max-width: 760px; }
  .nav { width: 760px; }
  .is-phone .fab { right: calc(50% - 380px + 16px); }
  .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 980px) {
  .phone { max-width: none; padding-left: 220px; }
  .nav { top: 0; bottom: 0; left: 0; right: auto; width: 220px; transform: none; border-radius: 0; border-top: 0; border-right: 1px solid var(--line);
    grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: max-content; align-content: start; gap: 4px;
    padding: calc(28px + var(--safe-t)) 14px 24px max(14px, var(--safe-l)); }
  .nav::before { content: "우아루틴"; font-family: var(--disp); font-size: 24px; color: var(--fg); padding: 0 10px 18px; }
  .nav button { grid-template-columns: 44px 1fr; justify-items: start; align-items: center; gap: 10px; font-size: 17px; padding: 6px 8px; border-radius: 16px; }
  .nav button:hover { background: var(--blob); }
  .nav i { width: 44px; height: 36px; }
  .ph-head, .ph-body { max-width: 1080px; margin: 0 auto; }
  .ph-head { padding-top: calc(22px + var(--safe-t)); padding-left: 28px; padding-right: 28px; }
  .ph-body { padding: 8px 28px 48px; }
  .is-kid .ph-head, .is-kid .ph-body { max-width: 780px; }
  .is-phone .fab { right: 32px; bottom: 32px; }
  .is-phone .peek { bottom: 44px; right: 104px; }
  .toast { bottom: 40px; margin-left: 110px; }
  .ov { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); align-items: start; }
}
