/* ===== 2차: 부모 상태·도장·앵무새·일정·사용 시간·효과 ===== */
.parents-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.parents-row .notice { flex: 1; min-width: 260px; }
.pstat { border-left: 6px solid var(--pc); min-width: 230px; }
.pstat.stale { opacity: .55; }
.pstat .pbody { min-width: 0; }
.pstat .who b { color: var(--ink); }
.pstat .prow { display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.pstat .ago { font-size: 11px; color: var(--ink2); }
.reach { color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.reach.sm { padding: 1px 5px; font-size: 11px; position: absolute; top: -6px; right: -6px; }
.pick { position: relative; }
.warn { background: #fff0f0; border: 2px solid #ffc9c9; color: #b3262b; border-radius: 14px; padding: 8px 12px; font-weight: 700; margin-bottom: 10px; }

/* 도장판 */
.sboard { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.sboard .slot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed #e2cfa8; display: grid; place-items: center; font-size: 13px; color: #c9b48d; font-weight: 800; background: #fff; }
.sboard .slot.on { border: 2px solid var(--kc); background: var(--kc-soft); font-size: 20px; transform: rotate(-12deg); }
.sboard .sb-book { font-size: 20px; margin-left: 2px; opacity: .5; }
.sboard.big { justify-content: center; gap: 10px; margin: 10px 0; }
.sboard.big .slot { width: 58px; height: 58px; font-size: 20px; border-width: 3px; }
.sboard.big .slot.on { font-size: 38px; }
.sboard.big .sb-book { font-size: 36px; }
.sboard .slot.new { animation: slam .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slam { from { transform: scale(3) rotate(30deg); opacity: 0; } to { transform: scale(1) rotate(-12deg); opacity: 1; } }
.sb-hint { text-align: center; font-size: 16px; }
.chip.ticket { background: #fff7d6; border-color: #ffd864; color: #a16b00; }
.chip.ticket b { font-size: 16px; }
.chip.ticket.zero { opacity: .55; }
.chip.parrot { background: #e6fbef; border-color: #9be3b8; color: #13804a; }
.chip.scr { color: var(--ink2); }
.chip.sel { border-color: var(--accent); background: #fff1dc; }
.gold { color: #c98a00; }
.tickets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tk { width: 92px; height: 58px; border-radius: 10px; background: linear-gradient(135deg, #ffe27a, #ffb238); color: #6b4200; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 3px 0 #d98e00; position: relative; transform: rotate(calc((var(--i) - 2) * 3deg)); }
.tk b { font-size: 13px; }
.tk small { font-size: 10px; }
.tk::before, .tk::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--card); transform: translateY(-50%); }
.tk::before { left: -6px; }
.tk::after { right: -6px; }
.tk.more { background: #fff; color: var(--ink2); box-shadow: none; border: 2px dashed var(--line); }
.btn.big { font-size: 22px; padding: 14px 24px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.inp { border: 3px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 16px; background: #fff; outline: none; width: 100%; }
.lbl { font-weight: 800; font-size: 14px; color: var(--ink2); margin-top: 4px; }
label.inline { flex-direction: row !important; align-items: center; gap: 6px !important; }
.memrow { border-bottom: 2px dashed var(--line); padding-bottom: 8px; }
.del { font-size: 18px; padding: 4px; }
.vh-e { font-size: 34px; }
.av.sm { width: 40px !important; height: 40px !important; font-size: 22px !important; }
.nbadge { position: absolute; top: 0; right: 4px; background: #e5484d; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 5px; font-style: normal; }
.hint { margin: -2px 4px; }

/* 홈 칸 */
.tiles .span2 { grid-column: span 2; }
.plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pcol { background: var(--kc-soft); border-radius: 14px; padding: 6px 8px; min-width: 0; }
.pname { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.pi { font-size: 14px; display: flex; gap: 4px; align-items: center; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi .pt { font-weight: 800; font-size: 13px; color: var(--ink2); min-width: 40px; }
.pi em { font-style: normal; font-size: 11px; background: #ffe7c7; color: #b35c00; border-radius: 6px; padding: 0 4px; font-weight: 800; }
.pi em.red { background: #ffe0e0; color: #c62828; }
.pi.off { text-decoration: line-through; color: var(--ink2); }
.pi.sup { color: #8a5a00; font-weight: 700; }
.pi.done { text-decoration: line-through; opacity: .5; }
.parrot-tile .pdone { display: flex; gap: 10px; align-items: center; background: var(--kc-soft); border-radius: 16px; padding: 8px 10px; margin-top: 8px; }
.parrot-tile .pe { font-size: 34px; white-space: nowrap; }
.ok { color: var(--good); font-weight: 800; }
.pbtn { background: var(--kc-soft); border: 3px solid var(--kc); border-radius: 16px; padding: 10px 12px; font-weight: 800; font-size: 16px; }
.pbtn:active { transform: scale(.95); }
.pmonth { font-size: 12px; color: var(--ink2); margin-top: 8px; font-weight: 700; }
.scr-mini { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.devs { display: flex; gap: 10px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.kid .kbody { min-width: 0; }
.kid .row { gap: 6px; }

/* 달력 */
.cal .d { position: relative; }
.cal .pmark { position: absolute; top: 1px; right: 1px; font-size: 10px; border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; }
.cal.mini .pmark { width: 13px; height: 13px; font-size: 8px; }
.cal:not(.mini) .pmark { width: 26px; height: 26px; font-size: 16px; top: 3px; right: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .1); }
.cal:not(.mini) .d { min-height: 86px; text-align: left; padding: 4px; border: 1px solid #f4e7cc; }
.cal:not(.mini) .d .dn { font-weight: 800; }
.cal:not(.mini) .d.today { background: #fff1dc; color: inherit; border: 3px solid var(--accent); }
.cal .ev { font-size: 12px; border-radius: 6px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.calpage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; align-items: start; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); margin-top: 10px; align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 3px; vertical-align: middle; }
.up .ke { font-size: 18px; }
.up .ub { min-width: 0; flex: 1; }
.up .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uprow { display: flex; gap: 4px; align-items: center; }
.uprow .up { flex: 1; }
.uprow { flex-wrap: wrap; }
.uprow .up, .up .ub { min-width: 0; }
.event-checklist { width: 100%; margin: 6px 0 10px; white-space: normal; }
.event-progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.event-progress { font-size: 13px; font-weight: 700; color: var(--ink2); }
.event-needed { display: inline-block; padding: 3px 7px; border-radius: 8px; background: #ffe4a3; color: #794500; font-size: 13px; }
.event-item-row { display: flex; gap: 6px; margin-top: 5px; }
.event-item, .event-item-del, .event-manage { min-height: 48px; padding: 10px 12px; border-radius: 12px; background: #fff8e7; border: 1px solid #d5bc85; font-size: 16px; touch-action: manipulation; }
.event-item { flex: 1; min-width: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.event-item.done { background: #edf0ee; border-color: #c9cfcb; color: #647068; text-decoration: line-through; }
.event-item-del { flex-shrink: 0; background: #fff; color: #a53030; }
.event-item:focus-visible, .event-item-del:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-event-supplies { margin-top: 8px; border-top: 1px dashed #d5bc85; padding-top: 8px; }
.cal button.ev { display: block; width: 100%; text-align: left; min-height: 44px; }
.cal .ev .event-progress, .cal .ev .event-needed { display: block; font-size: 11px; }
.acad { display: grid; gap: 4px; }
.acad .ah { text-align: center; font-weight: 800; padding: 6px; border-radius: 10px; background: var(--bg); }
.acad .ah.today { background: var(--accent); color: #fff; }
.acad .an { font-weight: 800; display: flex; align-items: center; }
.acad .ac { background: var(--card2); border-radius: 10px; min-height: 60px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.acad .ai { background: var(--kc-soft); border-left: 4px solid var(--kc); border-radius: 8px; padding: 3px 6px; font-size: 13px; }

/* 부모 상태 편집 */
.reach-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rbtn { border-radius: 16px; padding: 10px 4px; font-weight: 800; border: 3px solid var(--rc); color: var(--rc); background: #fff; font-size: 15px; }
.rbtn.on { background: var(--rc); color: #fff; }

/* 사용 시간 */
.dev { background: #fff; border-radius: 16px; padding: 10px; margin-bottom: 8px; border: 3px solid var(--line); }
.dev .dl { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dev .dl .de { font-size: 26px; }
.dev .dl b { margin-left: auto; font-family: var(--round); font-weight: 400; font-size: 22px; color: var(--kc); }
.dbtns { display: flex; gap: 6px; margin-top: 8px; }
.dbtns .btn { flex: 1; padding: 10px 4px; font-size: 16px; }
.week { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wk-row { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 6px; align-items: end; }
.wk-n { font-weight: 800; align-self: center; }
.wk-d { display: flex; flex-direction: column; align-items: center; font-size: 12px; position: relative; }
.wk-d small { color: var(--ink2); font-size: 11px; }
.wk-d em { position: absolute; top: -4px; right: 2px; font-style: normal; font-size: 12px; }
.wk-bar { width: 26px; height: 70px; background: #f6eedd; border-radius: 6px; display: flex; flex-direction: column-reverse; overflow: hidden; }
i.dv0 { background: #4f9dff; }
i.dv1 { background: #8b6cff; }
i.dv2 { background: #ff5b6e; }
.wk-bar i { display: block; width: 100%; }

/* 아이 판 (태블릿 2대 중 2번) */
.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; }
.kbcol { display: flex; flex-direction: column; gap: 8px; }
.kbsec { background: #fff; border-radius: 16px; padding: 8px 10px; cursor: pointer; }
.kbt { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; }
.kbcol .sboard.big .slot { width: 46px; height: 46px; }
.kbcol .sboard.big .slot.on { font-size: 30px; }
.parrotwin { background: #e6fbef; color: #13804a; font-weight: 800; text-align: center; }
.kbparrot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.b-family .tiles2 { grid-template-columns: 2fr 1fr; }
.choose.two { grid-template-columns: 1fr 1fr; margin-top: 10px; }

/* 큰 효과 */
.fx { position: fixed; inset: 0; z-index: 95; background: radial-gradient(circle at 50% 40%, rgba(255, 244, 200, .97), rgba(255, 190, 120, .96)); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadein .25s; overflow: hidden; }
@keyframes fadein { from { opacity: 0; } }
.fx-card { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; }
.fx-title { font-size: 52px; color: #5a3a00; text-shadow: 0 3px 0 #fff; }
.fx-reason { font-size: 26px; font-weight: 800; background: #fff; border-radius: 999px; padding: 8px 24px; box-shadow: var(--shadow); }
.fx-sub { font-size: 22px; font-weight: 700; color: #7a4f00; }
.fx-tap { position: absolute; bottom: 24px; color: #8a6a3a; font-size: 14px; }
.fx-big { font-size: 140px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.stamp { width: 220px; height: 220px; border-radius: 50%; border: 10px solid #e5484d; color: #e5484d; display: grid; grid-template-columns: repeat(5, auto); justify-content: center; align-content: center; font-family: var(--round); font-size: 34px; position: relative; background: rgba(255, 255, 255, .9); animation: stampIn .55s cubic-bezier(.2, 1.4, .4, 1) both; box-shadow: 0 0 0 6px rgba(229, 72, 77, .25); transform: rotate(-14deg); }
.stamp span { grid-row: 2; }
.stamp-face { grid-column: 1 / -1; grid-row: 1; font-size: 64px; line-height: 1; }
@keyframes stampIn { 0% { transform: scale(4) rotate(20deg); opacity: 0; } 70% { transform: scale(.92) rotate(-14deg); opacity: 1; } 100% { transform: scale(1) rotate(-14deg); } }
.spark { position: fixed; width: 12px; height: 12px; border-radius: 50%; z-index: 99; pointer-events: none; animation: spark 1.1s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.confetti { z-index: 98; pointer-events: none; }
.fx-card.gold .fx-title { color: #8a5a00; }
.rays { position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(rgba(255, 215, 90, .5) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spin 12s linear infinite; z-index: -1; -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
.ticket-big { width: 380px; height: 200px; border-radius: 24px; background: linear-gradient(135deg, #ffe680, #ffb000 60%, #ff8a00); box-shadow: 0 12px 0 #c87300, 0 20px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #5a3500; animation: ticketIn 1s cubic-bezier(.2, 1.3, .4, 1) both; position: relative; overflow: hidden; }
.ticket-big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); animation: shine 2s ease-in-out .8s infinite; }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes ticketIn { from { transform: translateY(-120vh) rotate(-40deg) scale(.5); } }
.tb-top { font-weight: 900; letter-spacing: 3px; font-size: 16px; }
.tb-main { font-family: var(--round); font-size: 64px; line-height: 1.1; }
.tb-sub { font-weight: 800; font-size: 18px; }
.game-pass { font-size: 30px; font-weight: 800; background: #1f2a44; color: #7cf0b0; border-radius: 18px; padding: 10px 26px; box-shadow: 0 6px 0 #0e1626; }
.game-pass b { color: #fff; }
.parrot-fly { animation: fly 1.4s ease-in-out infinite alternate; }
@keyframes fly { from { transform: translateY(-10px) rotate(-8deg); } to { transform: translateY(10px) rotate(8deg); } }

.cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .d { min-width: 0; overflow: hidden; }

/* 삼성 인터넷·크롬의 강제 다크 모드 막기(밝은 화면 전용) */
:root { color-scheme: only light; }
html, body { background: var(--bg) !important; color: var(--ink); }

/* 설정: PIN 바꾸기 */
.pinbox { border: 3px solid #ffb3b3; }
.pinbox .row input { flex: 1; min-width: 120px; }

/* 루틴 편집: 폰에서는 두 줄 */
.kidchk label { white-space: nowrap; }
@media (max-width: 900px) {
  .rt-edit { grid-template-columns: 48px 92px 1fr !important; row-gap: 4px; border-bottom: 2px dashed var(--line); padding-bottom: 8px; }
  .rt-edit .kidchk { grid-column: 1 / 3; gap: 10px; }
  .rt-edit .kidchk label { font-size: 15px !important; }
  .rt-edit > button { grid-column: 3; justify-self: end; font-size: 20px; }
}

/* 내용이 많거나 낮은 태블릿에서도 조작부를 자르지 않는다. */
@media (min-width: 901px) {
  #app.v-home.b-all, #app.v-home.b-family { min-height: 100vh; height: auto; overflow: visible; }
  .v-home .tiles2 { min-height: min-content; }
  .v-home .tiles2 > .card { min-height: min-content; }
  .kid .row { flex-wrap: wrap; }
  .kid .chip { font-size: 13px; padding: 3px 7px; white-space: nowrap; }
}

/* 홈: 급식 + 짧은 사용 시간 한 칸에 쌓기 */
.stack { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.stack > .card:first-child { flex: 1; min-height: 0; overflow: hidden; }
.scr-compact { padding: 10px 14px; flex: none; }
.scr-compact h2 { font-size: 18px; }
.scr-tot { display: flex; justify-content: space-around; margin-top: 6px; font-size: 18px; }
.scr-tot .e { font-size: 20px; }

/* ===== 캐릭터 시계(대기 화면) ===== */
.saver { position: fixed; inset: 0; z-index: 60; overflow: hidden; display: flex; flex-direction: column; color: #fff; cursor: pointer; }
.saver.dawn { background: linear-gradient(180deg, #ffb4a2 0%, #ffd6a5 45%, #fdffb6 100%); color: #5a3a2a; }
.saver.day { background: linear-gradient(180deg, #74c0fc 0%, #a5d8ff 55%, #d0f0ff 100%); color: #13406b; }
.saver.eve { background: linear-gradient(180deg, #5f3dc4 0%, #f76707 70%, #ffa94d 100%); }
.saver.night { background: radial-gradient(ellipse at 50% 120%, #1c2a5a 0%, #0b1026 60%, #05070f 100%); color: #c8d4f5; }
.sv-sky { position: absolute; inset: 0; pointer-events: none; }
.sv-sky .sun { position: absolute; top: 6%; right: 8%; font-size: 90px; animation: bob 6s ease-in-out infinite; }
.sv-sky .moon { position: absolute; top: 7%; right: 10%; font-size: 80px; filter: drop-shadow(0 0 20px #fff8); }
.sv-sky .cloud { position: absolute; font-size: 70px; opacity: .9; animation: drift 60s linear infinite; }
.sv-sky .c1 { top: 12%; left: -10%; } .sv-sky .c2 { top: 26%; left: -20%; animation-duration: 90s; animation-delay: -30s; font-size: 50px; }
.sv-sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.sv-sky .star:nth-child(3n) { animation-delay: -1s; } .sv-sky .star:nth-child(3n+1) { animation-delay: -2s; }
@keyframes drift { to { transform: translateX(130vw); } }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes twinkle { 50% { opacity: .2; } }
.sv-center { position: relative; z-index: 2; text-align: center; margin-top: 7vh; transition: transform 2s; }
.sv-time { font-family: var(--round); font-size: min(22vw, 230px); line-height: 1; text-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.sv-time small { font-size: .2em; margin-right: .3em; vertical-align: .9em; }
.sv-time .colon { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.saver.night .sv-time { opacity: .85; }
.sv-date { font-size: 30px; font-weight: 800; margin-top: 4px; }
.sv-info { font-size: 24px; font-weight: 700; margin-top: 8px; opacity: .9; }
.sv-field { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; background: linear-gradient(180deg, #8ce99a, #51cf66); border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.saver.night .sv-field { background: linear-gradient(180deg, #1b4332, #081c15); }
.saver.eve .sv-field { background: linear-gradient(180deg, #74b816, #2b8a3e); }
.sv-mon { position: absolute; bottom: 10vh; left: var(--x); text-align: center; display: flex; flex-direction: column; align-items: center; animation: walk calc(var(--d) * 2) ease-in-out var(--delay) infinite; }
/* 몸만 방향을 바꾸고 이름표는 그대로(글자가 뒤집히지 않게) */
.sv-flip { display: inline-block; animation: face calc(var(--d) * 2) steps(1) var(--delay) infinite; }
.sv-mon.sleep .sv-flip { animation: none; }
@keyframes face { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.sv-body { font-size: min(13vw, 120px); line-height: 1; animation: hop 1.2s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .2)); }
.sv-name { margin-top: 4px; background: #fff; color: #3b2f22; border: 3px solid var(--kc); border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: 18px; display: inline-block; }
.sv-bubble { background: #fff; color: #3b2f22; border-radius: 14px; padding: 2px 10px; font-weight: 800; font-size: 16px; display: inline-block; margin-bottom: 4px; animation: bob 3s ease-in-out infinite; }
.sv-mon.sleep { animation: none; }
.sv-mon.sleep .sv-body { animation: breathe 4s ease-in-out infinite; filter: brightness(.7) drop-shadow(0 8px 6px rgba(0, 0, 0, .4)); }
.sv-mon.sleep .sv-name { opacity: .7; }
@keyframes walk { 0% { transform: translateX(-6vw); } 50% { transform: translateX(14vw); } 100% { transform: translateX(-6vw); } }
@keyframes hop { 50% { transform: translateY(-14px); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
.sv-tap { position: absolute; bottom: 12px; width: 100%; text-align: center; font-size: 14px; color: #fff; opacity: .7; z-index: 3; }
/* 알람 */
.al-say { font-size: 34px; font-weight: 800; background: rgba(255, 255, 255, .2); border-radius: 20px; padding: 10px 26px; }
.al-mons { display: flex; gap: 30px; font-size: 90px; }
.al-mon { animation: hop .6s ease-in-out infinite; }
.al-mon:nth-child(2) { animation-delay: .2s; } .al-mon:nth-child(3) { animation-delay: .4s; }
/* 알람 편집 */
.al-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.al-item { display: flex; align-items: center; gap: 10px; background: var(--card2); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; }
.al-item.off { opacity: .5; }
.al-item .t { font-family: var(--round); font-size: 30px; }
.al-item .l { flex: 1; min-width: 0; }
.al-item .l b { display: block; }
.sw { width: 54px; height: 30px; border-radius: 15px; background: #ddd; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--good); }
.sw.on::after { left: 27px; }

/* 알림 켜기 안내 */
.step-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.step-n > b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.cmdbox { font-family: ui-monospace, monospace; background: #1f2a44; color: #7cf0b0; border-radius: 12px; padding: 12px; font-size: 18px; word-break: break-all; user-select: all; }

/* 홈 루틴 칸 */
.rt-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rt-row { display: grid; grid-template-columns: 30px 1fr 34px; gap: 6px; align-items: center; background: var(--kc-soft); border-radius: 14px; padding: 4px 6px; }
.rt-k { font-size: 22px; text-align: center; }
.rt-icons { display: flex; gap: 4px; flex-wrap: wrap; }
.rt-ic { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px dashed #d9c7a3; font-size: 19px; display: grid; place-items: center; filter: grayscale(.6); opacity: .65; }
.rt-ic.on { border: 3px solid var(--kc); filter: none; opacity: 1; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.rt-ic:active { transform: scale(.9); }
.rt-n { font-weight: 800; font-size: 14px; text-align: right; }
.rt-hint { margin-top: 4px; }
@media (min-width: 1151px) { .b-family .tiles2 { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (max-width: 900px) { .b-family .tiles2 { grid-template-columns: 1fr; } }

.pall { margin-top: 12px; border-top: 2px dashed var(--line); padding-top: 10px; }
.pall-h { font-weight: 800; margin-bottom: 6px; }
.pall-row { display: grid; grid-template-columns: 80px 1fr 52px 90px; gap: 8px; align-items: center; font-size: 15px; margin-top: 4px; }
.pall-row .bar { margin: 0; }
.pall-row b { text-align: right; color: var(--kc); }
.pinwarn { background: #fff0f0; border: 3px solid #ff9a9a; color: #b3262b; border-radius: 16px; padding: 10px 14px; font-weight: 700; cursor: pointer; }

/* 화면 위 줄: 좁으면 다음 줄로 */
.view-head { flex-wrap: wrap; row-gap: 8px; }
.view-head > .tabs, .view-head > .btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .view-head h1 { font-size: 24px; }
  .view-head .sp { flex-basis: 100%; height: 0; }
}

/* 오늘 주어진 시간: 기존 가족 글꼴·카드 유지 */
.allowance { min-width:0; }
.allowance-total { margin:12px 0; font-family:var(--round); font-size:clamp(26px,5vw,44px); color:var(--ink); }
.allowance-total small { font-size:18px; margin-left:5px; }
.screen-grant .row { flex-wrap:wrap; gap:10px; margin-top:12px; }
.screen-grant .btn, .allowance .btn { min-width:44px; min-height:44px; }
.usage-history { margin-top:16px; overflow-wrap:anywhere; }
.usage-history summary { min-height:44px; padding:10px 0; cursor:pointer; }
.usage-history summary:focus-visible { outline:3px solid #285d97; outline-offset:3px; }

/* 시간 고르기(휠·▲▼) */
.lbl-wrap { display: flex; flex-direction: column; gap: 4px; }
.tp { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 4px 8px; align-self: flex-start; }
.tp.empty .tp-num { color: #c9b48d; }
.tp-col { display: flex; flex-direction: column; align-items: center; cursor: ns-resize; border-radius: 12px; padding: 0 2px; }
.tp-col:hover { background: #fff6e5; }
.tp-col button { width: 52px; height: 30px; font-size: 14px; color: var(--ink2); border-radius: 10px; }
.tp-col button:active { background: var(--accent2); color: #fff; }
.tp-num { font-family: var(--round); font-size: 34px; line-height: 1.1; min-width: 52px; text-align: center; }
.tp-colon { font-family: var(--round); font-size: 30px; }
.tp-ampm { font-weight: 800; font-size: 14px; color: #d9822b; width: 30px; text-align: center; }
.tp-clear { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--ink2); margin-left: 4px; }
.acpick { min-width: 96px; border-color: transparent; }
.acpick.on { border-color: var(--kc); background: var(--kc-soft); }
.acpick .small { color: var(--ink2); line-height: 1.3; }

@media (max-width: 1150px) and (min-width: 901px) {
  .tiles .span2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .tiles .span2 { grid-column: auto; }
  .plan-cols, .kb, .calpage { grid-template-columns: 1fr; }
  .fx-title { font-size: 32px; }
  .fx-reason { font-size: 18px; }
  .stamp { width: 160px; height: 160px; font-size: 24px; }
  .stamp-face { font-size: 44px; }
  .ticket-big { width: 300px; height: 160px; }
  .tb-main { font-size: 46px; }
  .sboard.big .slot { width: 44px; height: 44px; }
  .sboard.big .slot.on { font-size: 28px; }
  .acad { grid-template-columns: 70px repeat(6, 1fr) !important; font-size: 11px; }
  .wk-row { grid-template-columns: 64px repeat(7, 1fr); }
  .cal:not(.mini) .d { min-height: 54px; }
  .cal .ev { font-size: 10px; }
  .pstat { min-width: 0; }
}
.alarm .al-tap { margin-top: 14px; color: #fff; opacity: .85; font-size: 18px; }
.auto-al { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e6d8bf; }
.auto-al .lbl { margin-top: 8px; }
.st-num { align-items: center; gap: 8px; }
.st-num #stNum { width: 110px; font-size: 26px; font-weight: 800; text-align: center; padding: 6px 8px; }

/* 2026-11-15 홈 한 화면: 요청 버튼은 부모 상태 줄 오른쪽, 우체통은 짧게, 집안일은 한 칸에 */
.parents-row .request-strip { margin-left: auto; align-self: center; }
.parents-row .request-strip button { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.mail-last .bubble { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.parrot-tile .chore-row + .chore-row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #eadcc4; }
.parrot-tile .chore-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.parrot-tile .chore-title .more { float: right; font-size: 12px; color: var(--ink2); }
.parrot-tile .pdone { margin-top: 0; padding: 4px 8px; }
.parrot-tile .pdone .pe { font-size: 24px; }
.parrot-tile .pdone .btn { margin-left: auto; }
.pbtn.sm { padding: 6px 8px; font-size: 14px; border-width: 2px; border-radius: 12px; }
.parrot-tile .pmonth { margin-top: 6px; }

.parrot-tile .chore-line { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px dashed #eadcc4; }
.parrot-tile h2 + .chore-line { border-top: 0; }
.chore-line .cn { flex: 1; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chore-line .cn em { font-style: normal; font-size: 12px; color: #2bb673; margin-left: 2px; }
.chore-line .cr { display: flex; gap: 4px; align-items: center; }
.pbtn.xs { width: 40px; height: 40px; padding: 0; font-size: 22px; border-width: 2px; border-radius: 50%; }
.chore-line .cdone { background: var(--kc-soft); border: 2px solid var(--kc); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.chore-line .cx { border: 0; background: none; color: var(--ink2); font-size: 16px; width: 32px; height: 32px; }
.mail-last .bubble { -webkit-line-clamp: 2; }
/* 넓은 태블릿 홈은 한 화면에: 맨 아래 줄이 남은 높이를 채우고, 넘치는 목록만 안에서 잘린다(버튼 칸은 위 줄들에) */
@media (min-width: 1100px) and (min-height: 700px) {
  #app.v-home.b-all { height: 100vh; min-height: 0; overflow: hidden; }
  #app.v-home.b-all .tiles2 { flex: 1; min-height: 0; }
  #app.v-home.b-all .tiles2 > .card, #app.v-home.b-all .tiles2 > .stack { min-height: 0; overflow: hidden; }
  #app.v-home.b-all .tiles2 .stack > .card { min-height: 0; overflow: hidden; }
  #app.v-home.b-all .kid .row { flex-wrap: nowrap; }
}
.mail-last .bubble .meta { display: inline; margin-right: 6px; }

/* 구매 요청 처리 기록(보호자 폰) */
.request-log { margin-top: 18px; }
.request-log .rlog { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px dashed #e2d6c0; }
.request-log .rwhen { font-variant-numeric: tabular-nums; color: var(--ink2); min-width: 92px; }
.request-log .rwho { font-weight: 800; color: var(--kc); }
.request-log .rwhat { flex: 1; min-width: 120px; font-weight: 700; overflow-wrap: anywhere; }
.request-log .rlog.deleted .rwhat { color: var(--ink2); text-decoration: line-through; }
.request-log .rst { font-size: 14px; white-space: nowrap; }

/* 학원 알람 팝업의 "다녀오겠습니다" */
.alarm .al-depart { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.alarm .al-go { min-width: 240px; min-height: 92px; padding: 12px 22px; border: 4px solid var(--kc); border-radius: 22px; background: #fff; color: #23303b; font-size: 22px; font-weight: 800; box-shadow: 0 6px 22px #0004; cursor: pointer; touch-action: manipulation; }
.alarm .al-go b { display: block; font-size: 30px; color: var(--kc); }
.alarm .al-go small { display: block; font-size: 14px; font-weight: 600; color: #5b6772; margin-top: 4px; }
.alarm .al-go:disabled { background: var(--kc-soft, #eef6ee); opacity: 1; cursor: default; }

/* 아빠 폰: 포켓몬 조절 */
.pet-adjust .padj { border-top: 1px dashed #e2d6c0; padding: 8px 0; }
.pet-adjust .padj-h { font-weight: 800; color: var(--kc); }
.pet-adjust .padj-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.pet-adjust .padj-r label { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.pet-adjust .padj-r input { width: 78px; min-height: 40px; font-size: 16px; padding: 4px 8px; border: 1px solid #cbbfa8; border-radius: 10px; }

/* 2026-11-16: 일정이 많아도 태블릿 한 화면이 찌그러지지 않게 — 가운데 줄과 아래 줄이 남은 높이를 나눠 갖고, 넘치면 칸 안에서 스크롤 */
@media (min-width: 1100px) and (min-height: 700px) {
  #app.v-home.b-all .tiles { flex: 1.15 1 0; min-height: 0; }
  #app.v-home.b-all .tiles2 { flex: 1 1 0; min-height: 0; }
  #app.v-home.b-all .tiles > .card { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  #app.v-home.b-all .tiles2 > .card, #app.v-home.b-all .tiles2 .stack > .card { overflow-y: auto; overscroll-behavior: contain; }
  #app.v-home.b-all .plan .academy-actions small { display: none; }
}
/* 일정 칸: "다녀오겠습니다/다녀왔습니다"를 학원 이름 아래 한 줄로(잘리지 않게) */
.plan .pi { flex-wrap: wrap; }
.plan .pi .academy-actions { flex-basis: 100%; display: flex; gap: 6px; margin: 4px 0 2px; }
.plan .pi .academy-check.btn { min-height: 36px; padding: 4px 10px; font-size: 13px; white-space: nowrap; flex: 1 1 0; text-align: center; }
.plan .pi .academy-check[disabled] { opacity: .55; }

/* 학원 메모(교실 등): 시간표 칸·오늘 일정에 보이고, 칸을 누르면 크게 */
.acad .ai { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; border-top: 0; border-right: 0; border-bottom: 0; }
.acad .ai .ai-memo { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--text, #333); opacity: .85; word-break: keep-all; }
.plan .pi .pmemo { margin-left: 6px; font-size: 12px; font-weight: 700; opacity: .8; }
.academy-info h2 { margin: 0 0 6px; }
.academy-info .ainfo-who { font-weight: 800; color: var(--kc); margin: 4px 0; }
.academy-info .ainfo-time { font-size: 22px; font-weight: 800; margin: 6px 0; }
.academy-info .ainfo-memo { font-size: 24px; font-weight: 800; background: var(--kc-soft); border-left: 6px solid var(--kc); border-radius: 12px; padding: 14px 16px; margin: 10px 0 14px; word-break: keep-all; }

.acad .ai .ai-period { display: block; font-size: 11px; opacity: .75; }
.log .ai-period { font-style: normal; font-size: 12px; opacity: .8; }
.academy-info .ainfo-period { font-weight: 700; margin: 0 0 10px; }
.al-go.done { opacity: .7; }

/* 가족 게시판(포스트잇) */
.board-help { margin: 0 0 10px; }
.postits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 6px 2px 16px; }
.postits.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.postit { position: relative; background: color-mix(in srgb, var(--kc) 22%, #fff8c5); border-radius: 4px 4px 14px 4px; padding: 16px 14px 12px; box-shadow: 0 6px 14px #0002; transform: rotate(-1deg); display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.postit:nth-child(2n) { transform: rotate(1.2deg); }
.postit:nth-child(3n) { transform: rotate(-0.4deg); }
.postit::before { content: ''; position: absolute; top: -8px; left: 50%; width: 60px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: #ffffffaa; border-radius: 3px; box-shadow: 0 1px 3px #0002; }
.postit .pi-text { font-size: 19px; font-weight: 800; line-height: 1.35; word-break: keep-all; color: #2d3740; }
.postit .pi-meta { font-size: 13px; color: #55606a; }
.postit .pi-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.postit .pi-tags span { background: #ffffffb0; border-radius: 10px; padding: 2px 8px; }
.postit .pi-tags .red { background: #e5484d; color: #fff; }
.postit .pi-checks { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.postit .pi-ck { flex: 1 1 auto; min-height: 40px; border: 2px solid var(--kc); background: #fff; color: #2d3740; border-radius: 12px; font-weight: 800; padding: 4px 8px; cursor: pointer; }
.postit .pi-ck.on { background: var(--kc); color: #fff; }
.postit .pi-del { position: absolute; top: 6px; right: 6px; border: 0; background: transparent; cursor: pointer; opacity: .6; }
.postit.done { opacity: .62; }
.postit.done .pi-text { text-decoration: line-through; }
.postit.late { outline: 3px solid #e5484d; }
.note-past summary { cursor: pointer; font-weight: 800; }
.note-past .np-row { padding: 6px 0; border-bottom: 1px dashed #ddd; }
.chip.note-chip { background: #fff3b0; color: #6b5200; cursor: pointer; }
/* 2026-11-19 홈: 시계에 날짜, 엄마·아빠 상태 작게, 게시판 할 일 체크리스트 */
.clock .cdate { display: block; font-size: 15px; color: var(--ink); font-weight: 800; white-space: nowrap; margin-bottom: 2px; }
.parents.mini { flex-direction: column; gap: 4px; }
.parents.mini .pstat { min-width: 0; width: 230px; padding: 3px 10px; border-radius: 12px; gap: 6px; }
.parents.mini .pstat .ic { font-size: 20px; }
.parents.mini .pstat .txt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.parents.mini .pstat .txt b { font-weight: 800; }
.parents.mini .pstat .prow { margin-top: 0; }
.home-notes { flex: 1; min-width: 300px; background: #fff8c9; border-radius: 16px; padding: 4px 12px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.home-notes .hn-head { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.home-notes .hn-head .more { font-size: 12px; font-weight: 600; color: var(--ink2); }
.home-notes .hn-row { display: flex; align-items: center; gap: 8px; border-top: 1px dashed #e6d68a; padding-top: 2px; }
.home-notes .hn-row.late .hn-text { color: #c4262d; }
.home-notes .hn-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-notes .hn-when { font-size: 12px; color: #8a6d00; white-space: nowrap; }
.home-notes .hn-who { display: flex; gap: 4px; }
.home-notes .hn-ck { min-width: 34px; height: 26px; line-height: 1; border-radius: 999px; border: 2px solid var(--kc, #ccc); background: #fff; font-size: 17px; padding: 0 5px; cursor: pointer; }
.home-notes .hn-ck.on { background: var(--kc, #8fd18f); color: #fff; }
.home-notes .hn-empty { font-size: 13px; color: var(--ink2); }
/* 2026-11-19: 제목 자리에 날짜·시간(제목 글씨 없앰) */
.top { grid-template-columns: auto 1fr auto; }
.top .clock { justify-self: start; padding: 6px 26px; }
.top .clock .cdate { font-size: 18px; }
.top .weather { justify-self: stretch; }
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .top .clock { display: flex; padding: 4px 14px; gap: 10px; }
  .top .clock .time { font-size: 30px; }
  .top .clock .cdate { font-size: 14px; }
}
/* 아빠 폰: 집안일 항목 편집 */
.chore-edit .cedit-row { display: flex; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px dashed #e3e3e3; }
.chore-edit .ce-icon { width: 46px; text-align: center; font-size: 20px; }
.chore-edit .ce-name { flex: 1; min-width: 0; }
.chore-edit .ce-min { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.chore-edit .ce-min input { width: 58px; }
