/* 우리집 보드 v2 */
/* 테마 6종 (UIUX Renewal): --page=바탕 --card=카드 --soft=안쪽 칸 --bg=머리말 띠 */
:root,html[data-theme=butter]{--bg:#f5e2a1;--page:#faf7ed;--card:#fffdf7;--soft:#f5e2a1;--accent:#765719;--accent-ink:#faf7ed;--ink:#51452f;--sub:#70624a;--line:#f9edc3;--clockface:#FFFFFF;--hand:#E8683D;--good:#2F7D55;--warn:#B8631A;--bad:#C0392F;--r:22px;
  --head:'Noto Sans KR Variable','Noto Sans KR','Noto Sans CJK KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  --body:'Noto Sans KR Variable','Noto Sans KR','Noto Sans CJK KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif}
html[data-theme=butter]{--bg:#f5e2a1;--page:#faf7ed;--card:#fffdf7;--soft:#f5e2a1;--accent:#765719;--accent-ink:#faf7ed;--ink:#51452f;--sub:#70624a;--line:#f9edc3}
html[data-theme=forest]{--bg:#29483b;--page:#101e19;--card:#203b30;--soft:#29483b;--accent:#bde0bd;--accent-ink:#101e19;--ink:#f4f2e8;--sub:#b8cbbf;--line:#254337}
html[data-theme=lavender]{--bg:#dfd0f5;--page:#f3effa;--card:#fffaff;--soft:#dfd0f5;--accent:#65498d;--accent-ink:#f3effa;--ink:#514565;--sub:#635775;--line:#ece1f9}
html[data-theme=midnight]{--bg:#3b4564;--page:#121522;--card:#212638;--soft:#3b4564;--accent:#b7c5f0;--accent-ink:#121522;--ink:#f1edff;--sub:#b7bed6;--line:#313952}
html[data-theme=peach]{--bg:#f5c7b4;--page:#fff3ed;--card:#fffaf6;--soft:#f5c7b4;--accent:#7f3f35;--accent-ink:#fff3ed;--ink:#674b46;--sub:#6e524c;--line:#f9dbce}
html[data-theme=ocean]{--bg:#b8dcea;--page:#edf6fa;--card:#f8fcff;--soft:#b8dcea;--accent:#285f80;--accent-ink:#edf6fa;--ink:#324d61;--sub:#435f72;--line:#d2e9f2}
/* 야간: 어느 테마든 같은 중립 팔레트 */
html.night,html.night[data-theme]{--bg:#303947;--page:#11151c;--card:#202630;--soft:#303947;--ink:#f4f0fa;--sub:#b9c3d2;--line:#2a3340;--accent:#c9c1f3;--accent-ink:#11151c;--clockface:#202630;--hand:#FFB36B}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.5;word-break:keep-all;overflow-wrap:break-word;-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
h1,h2,h3{margin:0;font-family:var(--head);font-weight:400;letter-spacing:-.01em}
.app{max-width:760px;margin:0 auto;padding:0 14px 48px}
.app.boardmode{max-width:1100px}

/* 머리말 */
.top{margin:0 -14px 16px;padding:calc(env(safe-area-inset-top) + 14px) 18px 14px;background:var(--bg);border-radius:0 0 30px 30px}
.boardmode .top{margin:0 -14px 18px}
.toprow{display:flex;align-items:center;justify-content:space-between;min-height:30px}
.famtag{display:inline-block;background:var(--card);color:var(--ink);border-radius:999px;padding:3px 14px;font-weight:700;font-size:15px}
html.night .famtag{background:rgba(255,255,255,.12);color:var(--ink)}
.gear{font-size:22px;padding:4px 8px;opacity:.7;min-width:44px;min-height:44px}
.title{font-size:34px;line-height:1.15;margin:6px 0 8px;color:var(--ink)}
html.night .title{color:var(--ink)}
.timeblock{display:flex;align-items:center;gap:14px;color:var(--ink);margin-bottom:12px}
html.night .timeblock{color:var(--ink)}
.timebig{font-family:var(--head);font-size:40px;line-height:1.05}
.timebig small{font-size:18px;font-family:var(--body);font-weight:700;margin-right:2px}
.datesm{font-size:16px;font-weight:700;opacity:.8}
.clock{flex:none;color:#1E2A47}
html[data-theme=forest] .clock,html[data-theme=midnight] .clock{color:var(--ink)}
html.night .clock{color:var(--ink)}
.tabs{display:flex;gap:6px;background:var(--card);padding:5px;border-radius:999px;margin-top:4px}

.tabs button{flex:1;min-width:0;padding:6px 2px;border-radius:18px;font-weight:700;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);display:flex;flex-direction:column;align-items:center;min-height:48px;justify-content:center}
.tabs button i{font-style:normal;font-size:18px;line-height:1.1}
html.night .tabs button{color:var(--ink)}
html .tabs button[aria-current=page]{background:var(--accent);color:var(--accent-ink)}

/* 공통 */
.panel{background:var(--card);border-radius:var(--r);padding:16px;margin:0 0 12px;box-shadow:0 2px 0 var(--line)}
.panel>h2{font-size:21px;margin-bottom:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hint{color:var(--sub);font-size:14px;margin:6px 0}
h2 .hint{font-family:var(--body);margin:0}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.row.two>*{flex:1 1 140px}
.btn{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:12px 22px;font-weight:700;min-height:46px}
.btn.ghost{background:var(--soft);color:var(--ink)}
.btn.small{padding:8px 16px;min-height:38px;font-size:15px}
.btn.danger{background:var(--bad);color:#fff}
.mini{background:var(--soft);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700;min-height:34px}
.mini.nav{font-size:22px;line-height:1;padding:4px 14px}
.pill{background:var(--soft);border-radius:999px;padding:8px 14px;font-weight:700;font-size:15px;min-height:40px;border:2px solid transparent}
.pill[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.pill.wdp{min-width:42px;padding:8px 0;text-align:center}
.chip{background:var(--soft);border-radius:999px;padding:6px 12px;font-size:14px}
.chips{gap:6px}
input[type=text],input[type=password],input[type=date],input[type=time],select{background:var(--soft);border:2px solid transparent;border-radius:14px;padding:11px 14px;min-height:46px;max-width:100%;flex:1 1 160px;color:var(--ink)}
input:focus,select:focus,button:focus-visible{outline:3px solid var(--hand);outline-offset:2px}
input[type=time]{flex:0 1 130px}
.field{display:block;margin:14px 0 6px;font-weight:700;font-size:15px}
.field input,.field select{display:block;width:100%;margin-top:6px}
.field .row input{margin-top:0;width:auto}
.sub2{display:block;font-size:14px;flex:1 1 150px}
.sub2 input{display:block;width:100%;margin-top:6px}
.check{display:flex;gap:10px;align-items:center;margin:12px 0;font-weight:700}
.check input{width:22px;height:22px;accent-color:var(--accent)}
.empty{border:2px dashed var(--line);border-radius:16px;padding:14px;color:var(--sub);text-align:center;font-size:15px}
.err{color:var(--bad);min-height:24px;font-weight:700}
.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 26px);transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);padding:12px 22px;border-radius:999px;font-weight:700;z-index:50;max-width:90vw;text-align:center}

/* 아바타 */
.av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.av{--s:56px;overflow:hidden;width:var(--s);height:var(--s);border-radius:50%;display:inline-grid;place-items:center;font-size:calc(var(--s)*.55);line-height:1;flex:none}

/* 가족 카드 */
.cards{display:grid;gap:14px;margin-bottom:14px}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--card);border-radius:26px;padding:16px;box-shadow:0 2px 0 var(--line)}
.card .head{display:flex;align-items:center;gap:12px}
.card .who{flex:1;min-width:0;display:flex;flex-direction:column}
.card .nm{font-family:var(--head);font-size:26px;line-height:1.15}
.card .lab,.lab{font-size:13px;color:var(--sub);font-weight:700}
.stat{display:flex;align-items:center;gap:12px;background:var(--soft);border-radius:18px;padding:10px 14px;margin:12px 0 4px;font-family:var(--head);font-size:22px}
.stat .tile{width:48px;height:48px;border-radius:14px;background:var(--card);display:grid;place-items:center;font-size:28px;flex:none}
.stat.none{font-family:var(--body);color:var(--sub);font-size:17px}
.foot{font-size:13px;color:var(--sub);margin:0 2px 8px}
.stale{margin-left:8px;color:var(--warn);font-weight:700}
.row2{padding:10px 2px;border-top:1px dashed var(--line)}
.row2 strong{font-family:var(--head);font-size:24px;font-weight:400}
.soft{color:var(--sub);font-size:15px}
.none{color:var(--sub)}
.sline{display:flex;gap:8px;align-items:baseline;margin:3px 0}
.stars{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.star{fill:var(--line)}
.star.on{fill:#F2B91C}
.stars span{margin-left:6px;font-weight:700;color:var(--sub)}
.proxy{margin-top:8px}
.cards.big .nm{font-size:34px}
.cards.big .stat{font-size:28px}
.cta{display:block;width:100%;background:var(--accent);color:var(--accent-ink);border-radius:22px;padding:18px;font-family:var(--head);font-size:22px;margin:0 0 14px}

/* 일정 */
.plan-board{display:grid;gap:14px;grid-template-columns:1fr}
.boardmode .plan-board{grid-template-columns:1fr 1fr}
.plan-board .panel{margin:0}
.daygroup h3{font-size:19px;margin:2px 0 8px}
.sub{display:inline-block;background:var(--soft);border-radius:999px;padding:2px 12px;font-size:13px;font-weight:700;color:var(--sub);margin:8px 0 4px}
.item{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.item:last-child{border-bottom:0}
.emo{font-size:26px;width:34px;text-align:center;flex:none;line-height:1.2}
.ibody{flex:1 1 150px;min-width:0}
.ititle{font-weight:700}
.itime{display:inline-block;background:var(--soft);border-radius:8px;padding:0 8px;margin-right:8px;font-size:14px}
.imeta{font-size:13px;color:var(--sub)}
.iact{display:flex;gap:6px;margin-left:auto}
.item.gone{opacity:.6}
.item.done .ititle{color:var(--sub)}
.tick{width:34px;height:34px;border-radius:50%;border:3px solid var(--sub);display:grid;place-items:center;flex:none;color:#fff}
.item.done .tick{background:var(--good);border-color:var(--good)}
.up{display:flex;align-items:center;gap:12px;padding:8px 0}
.dday{font-family:var(--head);background:var(--bg);color:var(--ink);border-radius:999px;padding:4px 14px;font-size:18px;flex:none}
html.night .dday{color:var(--ink)}

/* 노트 */
.note{padding:10px 0;border-bottom:1px solid var(--line)}
.note:last-child{border-bottom:0}
.notehead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.by{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.pingtag{font-size:12px;color:var(--sub)}
.notehead .mini{margin-left:auto}
.note .txt{margin:4px 0 0 34px}
.note.gone .who-del{margin-left:34px;font-size:13px;color:var(--sub)}
.note.ping .txt{font-weight:700}

/* 상태 고르기 */
.presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px;margin:10px 0}
.preset{display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--soft);border-radius:18px;padding:10px 4px;font-weight:700;font-size:15px;border:2px solid transparent}
.preset .pe{font-size:30px}
.preset{position:relative}
.preset[aria-pressed=true]{border:3px solid var(--accent);background:var(--card)}
.preset[aria-pressed=true]::after{content:'✓';position:absolute;top:6px;right:8px;width:22px;height:22px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:13px;line-height:22px;text-align:center}
.sheet{background:var(--soft);border-radius:18px;padding:14px;margin:8px 0}
.sheet .q{font-weight:700;margin-bottom:6px}
.sheet .pill,.sheet input[type=time]{background:var(--card);border:2px solid var(--line)}
.sheet .btn{white-space:nowrap}
.hello h2{align-items:center}
.nowline{margin:4px 0;font-size:18px}
.nl-eta{margin-left:10px;color:var(--sub);font-size:15px}
.pings{display:flex;flex-wrap:wrap;gap:8px}
.ping-btn{background:var(--soft);border-radius:18px;padding:12px 16px;font-weight:700;border:2px solid transparent}
.ping-btn:active{border-color:var(--accent)}
.foot-actions{justify-content:center;margin-top:18px}

/* 누구예요 */
.whoscreen,.gate{max-width:560px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 34px) 18px;text-align:center}
.whoscreen h1,.gate h1{font-size:34px}
.whoscreen p,.gate p{color:var(--sub)}
.whogrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}
.whogrid.sm{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.whocard{background:var(--card);border-radius:26px;padding:16px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;font-family:var(--head);font-size:21px;box-shadow:0 2px 0 var(--line)}
.boardbtn{width:100%}
.gatelogo{width:76px;height:76px;border-radius:26px;background:var(--bg);display:grid;place-items:center;font-size:42px;margin:0 auto 10px}
.gate form{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:14px 0}

/* 달력 */
.calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.calhead h2{font-size:22px}
.wdrow,.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.wdrow span{text-align:center;font-size:13px;font-weight:700;color:var(--sub);padding:4px 0}
.sun{color:#D6453D}.sat{color:#3B7BD6}
.day{position:relative;min-width:0;min-height:62px;border-radius:12px;background:var(--soft);padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:2px;font-weight:700;border:2px solid transparent}
.day.out{opacity:.35}
.day.today .dn{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:0 7px}
.day.warn{border-color:#F08C00;background:#FFF1D6}.day.ok{border-color:#2E9E5B;background:#E3F5EA}.day.sel{box-shadow:0 0 0 2px var(--hand)}
.day .mk{position:absolute;top:2px;right:5px;font-size:12px;font-weight:800}.day.warn .mk{color:#7A4000}.day.ok .mk{color:#1F7A44}
.day .badges span.bp{position:relative}.day .badges span.bp::after{content:'';position:absolute;right:-1px;top:0;width:5px;height:5px;border-radius:50%;background:#F08C00}
.legend{font-size:12px;color:var(--sub);margin:8px 2px 0;line-height:1.6}.legend .lw{color:#7A4000}.legend .lo{color:#1F7A44}
.seg{margin-bottom:2px}
.day .badges{display:grid;grid-template-columns:repeat(3,minmax(0,15px));gap:1px 1px;font-size:13px;line-height:1.15;justify-content:center;margin-top:1px}
.day .more{font-size:11px;color:var(--sub)}
.wdrow .sun,.day.sun{color:#D6453D}.wdrow .sat,.day.sat{color:#3B7BD6}
.day.out.sun,.day.out.sat{opacity:.35}

/* 폼 */
.memberform{margin-top:4px}
.picks,.emojis,.cats{gap:6px}
.pick{width:46px;height:46px;border-radius:14px;background:var(--soft);display:grid;place-items:center;border:3px solid transparent}
.pick.emoji{font-size:26px}
.pick[aria-pressed=true]{border-color:var(--accent)}
.pick.tone{border-radius:50%;border-width:3px}
.pill.cat{font-size:14px;padding:6px 12px;min-height:36px}
.member-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.member-row:last-child{border-bottom:0}
.mname{flex:1;display:flex;flex-direction:column;min-width:0}
.mname span{font-size:13px;color:var(--sub)}
.swatches{gap:8px}
.swatch{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;font-weight:700;padding:8px;border-radius:16px;border:3px solid transparent;min-width:58px}
.swatch i{width:34px;height:34px;border-radius:50%;display:block}
.swatch[aria-pressed=true]{border-color:var(--accent)}
.tips p{background:var(--soft);border-radius:16px;padding:12px 14px;font-size:14px;margin:8px 0}

/* 말하기 창 */
.overlay{position:fixed;inset:0;background:rgba(20,22,40,.5);display:flex;align-items:flex-end;justify-content:center;z-index:40}
.sheetbox{background:var(--card);width:100%;max-width:560px;border-radius:28px 28px 0 0;padding:22px 18px calc(env(safe-area-inset-bottom) + 20px);display:flex;flex-direction:column;gap:14px;max-height:85vh;overflow:auto}
.sheetbox h2{font-size:22px;display:flex;align-items:center;gap:10px}

@media (max-width:520px){.title{font-size:30px}.timebig{font-size:36px}.tabs button{font-size:12px}.cards.two{grid-template-columns:1fr}.boardmode .plan-board{grid-template-columns:1fr}}
@media (min-width:900px){body{font-size:19px}.boardmode .title{font-size:42px}}
@media (prefers-reduced-motion:no-preference){.btn:active,.preset:active,.pill:active{transform:scale(.97)}}

.photorow{gap:10px}
.filebtn{display:inline-flex;align-items:center;cursor:pointer}

/* 거실 보드: 한 화면에 전체 보기 */
.bleft,.bright{display:contents}
.bctl{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center}
.bctl .gear{white-space:nowrap;flex:none;font-size:16px;font-weight:700;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.5)}
html.night .bctl .gear{background:rgba(255,255,255,.12)}
html.fitpage,html.fitpage body{height:100%;overflow:hidden}
.app.fit{zoom:var(--z,1);max-width:none;height:calc(100dvh / var(--z,1));padding:10px 14px;box-sizing:border-box;overflow:hidden;
  display:grid;grid-template-columns:1.25fr 1fr;grid-template-rows:auto minmax(0,1fr);gap:12px}
.fit .top{grid-column:1/-1;margin:0;padding:8px 18px;border-radius:24px;display:flex;align-items:center;gap:18px;flex-wrap:nowrap}
.fit .toprow{order:3;margin-left:auto;gap:10px}
.fit .title{font-size:30px;margin:0;order:1;white-space:nowrap}
.fit .timeblock{order:2;margin:0;gap:12px}
.fit .timeblock svg{width:56px;height:56px}
.fit .timebig{font-size:34px}
.fit .bleft,.fit .bright{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}
.fit .bleft .cards{flex:1;min-height:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:12px}
.fit .card{overflow:hidden;padding:12px;border-radius:22px;min-height:0}
.fit .cta{margin:0;padding:12px;font-size:19px}
.fit .bright .plan-board{grid-template-columns:1fr;flex:1;min-height:0;grid-auto-rows:minmax(0,1fr);gap:12px;margin:0}
.fit .bright .panel{overflow:hidden;padding:12px 16px;margin:0}
.fit .bright .upcoming,.fit .bright .panel.notes{margin:0}
@media (max-width:900px){.app.fit{grid-template-columns:1fr;grid-template-rows:auto auto auto;height:auto;overflow:visible}html.fitpage,html.fitpage body{overflow:auto;height:auto}}

.fit .bright .panel.notes{flex:0 1 auto;max-height:26%}
.fit .bright .plan-board .panel{overflow:auto;scrollbar-width:none}
.fit .bright .plan-board .panel::-webkit-scrollbar{display:none}
.fit .card .head{gap:8px}
.fit .card .nm{font-size:22px}
.fit .card .head svg{width:40px;height:40px}
.fit .stat{margin:8px 0 2px;padding:6px 10px;font-size:20px}
.fit .stat .tile{width:38px;height:38px;font-size:22px}
.fit .row2{padding:6px 2px}
.fit .row2 strong{font-size:20px}
.fit .foot{margin:0 2px 4px}
.fit .plan-board .daygroup h3{font-size:17px}
.fit .item{padding:6px 0}

.fit .bright .panel.notes{max-height:20%}
.fit .bright .plan-board{grid-template-rows:minmax(0,3fr) minmax(0,2fr)}
.fit .bright .panel h2{font-size:17px;margin-bottom:4px}

.palette{position:fixed;inset:0;background:rgba(0,0,0,.4);display:grid;place-items:center;z-index:50;padding:16px}
.palbox{background:var(--card);border-radius:26px;padding:20px;max-width:520px;width:100%;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.palbox h2{margin-bottom:12px}

/* 거실 태블릿 · 알람 설정 */
.alarm-row { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); }
.alarm-row:first-of-type { border-top: 0; }
.alarm-row input[type="time"] { font-size: 1.2rem; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(0,0,0,.2); }
.alarm-row input[type="text"] { flex: 1; min-width: 120px; }
.pill.small { padding: 4px 10px; font-size: .85rem; min-width: 38px; }

/* 한 화면에 안 들어가는 낮은 화면은 스크롤로 */
html.fitfail,html.fitfail body{overflow:auto !important;height:auto !important}
html.fitfail .app.fit{height:auto !important;overflow:visible !important;zoom:1 !important;grid-template-columns:1fr !important;grid-template-rows:auto !important}

/* 아이 방 태블릿 대시보드 */
.kd-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.kd-title{font-size:1.5rem;margin:0}
.kd-top .tabs{margin:0 auto;display:flex;gap:4px}
.kd-clock{display:flex;align-items:baseline;gap:8px}
.kd-clock b{font-size:2.2rem;line-height:1}
.kd{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-top:12px;align-items:start}
.kd-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.kd-prog{font-size:.9rem;font-weight:500;margin-left:8px;opacity:.75}
.kd-bar{height:8px;border-radius:4px;background:rgba(0,0,0,.1);margin:0 0 10px;overflow:hidden}
.kd-bar i{display:block;height:100%;background:#3b9a5a;border-radius:4px}
.kd-alarm{display:flex;align-items:baseline;gap:10px;padding:12px 16px;border-radius:14px;background:rgba(80,120,220,.14)}
.kd-alarm b{font-size:2rem;line-height:1}
.kd-alarm.off{opacity:.7}
.kd-fam{display:flex;align-items:center;gap:10px;padding:5px 0}
.kd-fam span{margin-left:auto;font-size:.95rem}
.sleeprow{align-items:center;gap:10px}
.sleeplabel{min-width:84px}
@media (max-width:799px){.kd{grid-template-columns:1fr}}

/* 준비물 · 칭찬 · 가족 기록 */
.prep{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.prepchk{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:14px;border:1px solid rgba(0,0,0,.15);background:transparent;font:inherit;font-size:.95rem;color:inherit;cursor:pointer}
.prepchk[aria-checked="true"]{background:rgba(60,150,90,.15);text-decoration:line-through;opacity:.8}
.pbox{display:inline-flex;width:18px;height:18px;border:1.5px solid currentColor;border-radius:5px;align-items:center;justify-content:center;font-size:.8rem}
.prepgroup{margin-bottom:6px}
.praise .pr{padding:8px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.praise .pr:last-child{border-bottom:0}
.pr-from{font-size:.85rem;opacity:.7}
.pr-text{font-size:1.15rem;font-weight:600;margin:2px 0 6px}
.pr-reply{font-size:.9rem;opacity:.75}
.moment{padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.moment:last-child{border-bottom:0}
.mphoto{width:100%;max-height:340px;object-fit:cover;border-radius:12px;background:rgba(0,0,0,.06);display:block}
.mtext{font-size:1.05rem;margin-top:8px}
.mmeta{font-size:.85rem;opacity:.65;margin:2px 0 6px}
.filebtn{cursor:pointer}

/* v16 접이식 섹션 · 준비물 */
.acc{background:var(--card,#fff);border-radius:16px;margin:8px 0;box-shadow:0 1px 3px rgba(0,0,0,.08);overflow:hidden}
html.night .acc{background:rgba(255,255,255,.08)}
.acc-h{display:flex;align-items:center;gap:12px;width:100%;padding:14px;text-align:left;color:inherit;font:inherit}
.acc-i{font-size:24px}.acc-t{flex:1;display:flex;flex-direction:column}.acc-t b{font-size:16px}.acc-t small{font-size:12px;color:var(--sub)}.acc-c{font-size:12px;color:var(--sub)}
.acc.open .acc-h{border-bottom:1px solid rgba(0,0,0,.08)}
.acc-b{padding:6px 8px 10px}.acc-b .panel{box-shadow:none;background:none;padding:6px}
.prepnow{border:2px solid #F08C00;background:#FFF6E3}.prepsoft{border:1.5px dashed rgba(0,0,0,.25)}.prepwarn{border:2px solid #E5484D}
.prepadd{border:2px solid var(--accent)}
.cardpraise{margin-top:8px}
.chip[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}

.tlist{margin-top:6px}.tday{margin:10px 0}
.tdh{position:sticky;top:0;z-index:2;display:flex;align-items:baseline;gap:4px;font-size:15px;padding:8px 6px;background:var(--page);border-bottom:1px solid var(--line)}
.tdh small{font-weight:400;color:var(--sub);flex:1}.tdh .kd-prog{margin-left:auto}
.trow{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line)}
.trow.done .ttitle{text-decoration:line-through;opacity:.55}.trow.done .tick{background:var(--good);border-color:var(--good)}
.twho{display:flex;flex-direction:column;align-items:center;width:46px;flex:none}.twho small{font-size:11px;color:var(--sub);max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tall{font-size:26px;line-height:34px}
.tbody{flex:1;min-width:0}.ttitle{font-size:17px;font-weight:700}

.tscroll{max-height:min(56vh,460px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin-top:8px;border:1px solid var(--line);border-radius:16px;padding:0 8px 6px;background:rgba(255,255,255,.04)}
.tscroll .tday{margin:0 0 6px}.tscroll .trow{padding:6px 2px}.tscroll .ttitle{font-size:16px}

/* ---------- 우리집(집 제어 데모) ---------- */
.demobadge{font-size:12px;font-weight:700;background:var(--soft);border-radius:999px;padding:3px 9px;color:var(--sub)}
.hsum{margin:0 0 10px;font-weight:700}
.hask{background:var(--soft);border-radius:14px;padding:12px;margin:10px 0}.hask p{margin:4px 0 8px}
.house{position:relative;margin:12px 0;border-radius:14px;overflow:hidden;background:#fff}
.house img{display:block;width:100%;height:auto}
.fx{position:absolute;pointer-events:none;display:block;opacity:0;transition:opacity .7s ease}.fx.on{opacity:1}.fx.off{visibility:hidden;transition:opacity .7s ease,visibility 0s .7s}
.fx.glow{background:radial-gradient(closest-side,rgba(255,206,70,.7),rgba(255,206,70,0))}
.fx.warm{background:radial-gradient(closest-side,rgba(255,120,60,.32),rgba(255,120,60,0));animation:hpulse 3s ease-in-out infinite}
.fx.wind{overflow:hidden}
.fx.wind.off b,.fx.warm.off{animation-play-state:paused}.fx.wind b{position:absolute;left:-30%;width:60%;height:3px;border-radius:3px;background:linear-gradient(90deg,rgba(80,170,230,0),rgba(80,170,230,.8));animation:hwind 2s linear infinite}
.fx.wind b:nth-child(1){top:30%}.fx.wind b:nth-child(2){top:50%;animation-delay:.6s}.fx.wind b:nth-child(3){top:70%;animation-delay:1.2s}
@keyframes hwind{to{transform:translateX(260%)}}@keyframes hpulse{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.fx.wind b,.fx.warm{animation:none}}
.rpill{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.92);border:2px solid var(--line);font-weight:700;font-size:14px;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.rpill.on{border-color:var(--accent)}.rpill em{font-style:normal;margin-left:5px;background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:1px 7px;font-size:12px}
.drow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);min-height:52px}
.di{font-size:22px}.dn{flex:1;display:flex;flex-direction:column}.dn small{color:var(--sub);font-size:13px}.lockb{padding:0 8px}
.tg{width:52px;height:30px;border-radius:999px;background:#c9c4bb;position:relative;flex:none}
.tg i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s}
.tg[aria-checked=true]{background:var(--accent)}.tg[aria-checked=true] i{left:25px}
.tstep{display:flex;gap:6px}.hh{font-size:16px;margin:12px 0 2px}.lrow{padding:4px 0;font-size:14px}
.rpill{transition:border-color .4s,transform .3s}.rpill.on{animation:hpop .5s}@keyframes hpop{40%{transform:translate(-50%,-50%) scale(1.12)}}.tg{transition:background .25s}
.hbase{filter:saturate(.45) brightness(.9)}.fx.lit{inset:0;left:0;top:0;width:100%;height:100%;background:url(/house.jpg) 0 0/100% 100% no-repeat;filter:saturate(1.2) brightness(1.08)}
.hbase{filter:none}.fx{inset:0;left:0;top:0;width:100%;height:100%;background-size:100% 100%;background-repeat:no-repeat}
.fx.lit{background-image:url(/house-lit.jpg);filter:none}
.fx.ac{background-image:url(/house-ac.jpg);mix-blend-mode:screen;mix-blend-mode:plus-lighter;animation:hbreath 2.4s ease-in-out infinite}
.fx.heat{background-image:url(/house-heat.jpg);mix-blend-mode:screen;mix-blend-mode:plus-lighter;animation:hbreath 3.2s ease-in-out infinite}
@keyframes hbreath{50%{filter:brightness(.7)}}
@media (prefers-reduced-motion:reduce){.fx.ac,.fx.heat{animation:none}}

/* 바깥 날씨·시간 */
.hday{position:absolute;inset:0;background:url(/house-day.jpg) 0 0/100% 100% no-repeat;opacity:0;transition:opacity 1.2s;pointer-events:none}
.house[data-time=day] .hday{opacity:1}.house[data-time=eve] .hday{opacity:.55}
.house[data-time=day] .fx.lit.on{opacity:.5}
.wxt{position:absolute;inset:0;pointer-events:none;transition:background 1.2s;background:transparent}
.house[data-time=eve] .wxt{background:rgba(255,120,40,.2)}
.house[data-sky=cloud] .wxt{background:rgba(70,85,110,.22)}
.house[data-sky=rain] .wxt{background:rgba(35,55,90,.34)}
.house[data-sky=snow] .wxt{background:rgba(210,225,245,.22)}
.wxp{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1s}
.house[data-sky=rain] .wxp{opacity:1}.house[data-sky=snow] .wxp{opacity:1}
.house[data-sky=rain] .wxp1{background:linear-gradient(105deg,transparent 0 46%,rgba(205,225,250,.7) 47% 51%,transparent 52%) 0 0/26px 54px;animation:hrain .55s linear infinite}
.house[data-sky=rain] .wxp2{background:linear-gradient(105deg,transparent 0 46%,rgba(205,225,250,.5) 47% 50%,transparent 51%) 0 0/41px 83px;animation:hrain .8s linear infinite}
@keyframes hrain{to{background-position:-10px 54px}}
.house[data-sky=snow] .wxp1{background:radial-gradient(circle,#fff 0 2.5px,transparent 3.5px) 0 0/43px 47px;animation:hsnow1 7s linear infinite}
.house[data-sky=snow] .wxp2{background:radial-gradient(circle,rgba(255,255,255,.85) 0 1.8px,transparent 2.8px) 10px 0/67px 71px;animation:hsnow2 11s linear infinite}
@keyframes hsnow1{to{background-position:-30px 47px}}@keyframes hsnow2{to{background-position:30px 71px}}
@media (prefers-reduced-motion:reduce){.wxp{animation:none!important}}
.wxrow{margin-top:-4px}
.fx{-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.wxc{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;-webkit-mask-image:url(/m-outside.png);mask-image:url(/m-outside.png);-webkit-mask-size:100% 100%;mask-size:100% 100%}
.wxp{display:none!important}

/* 우리집 도우미 (오른쪽 아래 버튼 + 대화창) */
.aifab{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom) + 18px);width:56px;height:56px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;box-shadow:0 4px 14px rgba(20,22,40,.28);z-index:30;cursor:pointer;padding:0}
.aifab:active{transform:scale(.94)}
.aiover{position:fixed;inset:0;background:rgba(20,22,40,.5);display:flex;align-items:flex-end;justify-content:center;z-index:45}
.aisheet{background:var(--card);color:var(--ink);width:100%;max-width:560px;height:min(82dvh,680px);border-radius:28px 28px 0 0;display:flex;flex-direction:column;overflow:hidden}
.aisheet header{display:flex;align-items:center;gap:8px;padding:16px 16px 10px;border-bottom:1px solid var(--line)}
.aisheet header b{font-size:18px}
.aisub{color:var(--sub);font-size:13px;flex:1;min-width:0}
.aimini{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer}
.aix{border:0;background:transparent;color:var(--sub);font-size:20px;padding:4px 8px;cursor:pointer}
.ailist{flex:1;overflow-y:auto;padding:14px 14px 6px;display:flex;flex-direction:column;gap:10px;-webkit-overflow-scrolling:touch}
.aim{max-width:86%;padding:10px 14px;border-radius:18px;line-height:1.5;font-size:16px;word-break:keep-all;overflow-wrap:anywhere}
.aim.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:6px}
.aim.bot{align-self:flex-start;background:var(--soft);border-bottom-left-radius:6px}
.aim.err{background:transparent;border:1px dashed var(--bad);color:var(--bad)}
.aim.typing{display:flex;gap:5px;padding:14px 16px}
.aim.typing i{width:7px;height:7px;border-radius:50%;background:var(--sub);animation:aidot 1s infinite ease-in-out}
.aim.typing i:nth-child(2){animation-delay:.15s}.aim.typing i:nth-child(3){animation-delay:.3s}
@keyframes aidot{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.aihello{text-align:center;padding:18px 6px;color:var(--ink)}
.aibig{width:56px;height:56px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;margin:0 auto 10px}
.aichips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0 10px}
.aichip{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:999px;padding:8px 14px;font:inherit;font-size:15px;cursor:pointer}
.aihint{color:var(--sub);font-size:13px;margin:6px 0 0}
.aibar{display:flex;gap:8px;align-items:flex-end;padding:10px 12px calc(env(safe-area-inset-bottom) + 12px);border-top:1px solid var(--line);background:var(--card)}
.aibar textarea{flex:1;resize:none;border:1px solid var(--line);background:var(--page);color:var(--ink);border-radius:18px;padding:10px 14px;font:inherit;font-size:16px;line-height:1.4;max-height:110px;outline:none}
.aisend{border:0;background:var(--accent);color:var(--accent-ink);border-radius:18px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer;min-height:44px}
.aisend:disabled{opacity:.5}
.aimini[hidden]{display:none}
.aidbg{display:block;margin-top:6px;font-size:11px;line-height:1.3;color:var(--sub);opacity:.8;word-break:break-all}

/* 달력: 새 일정 버튼(오른쪽 하단, AI 버튼 바로 위) + 입력 시트 */
.addfab{position:fixed;left:16px;bottom:calc(env(safe-area-inset-bottom) + 88px);height:52px;padding:0 20px 0 16px;border-radius:999px;border:0;background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:800;font-size:16px;display:flex;align-items:center;gap:6px;box-shadow:0 4px 14px rgba(20,22,40,.28);z-index:30;cursor:pointer}
.addfab span{font-size:22px;line-height:1}
.addfab:active{transform:scale(.97)}
.fabgap{height:150px}
.isheet{max-height:92vh}
.pill.pav{display:inline-flex;align-items:center;gap:6px;padding-left:8px}
.pill.pav .av{flex:none}
.aifab.live{box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 0 6px var(--accent),0 4px 14px rgba(20,22,40,.28)}
.aitag{position:fixed;right:80px;bottom:calc(env(safe-area-inset-bottom) + 32px);background:var(--card);color:var(--sub);border:1px solid var(--line);border-radius:999px;padding:4px 10px;font-size:12px;z-index:30;box-shadow:0 2px 8px rgba(20,22,40,.12)}
.aimini.on{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.aimic{border:1px solid var(--line);background:var(--soft);border-radius:18px;width:44px;min-height:44px;font-size:20px;cursor:pointer;padding:0}

/* 에이전트 오브 */
.agent-orb{--orb-size:56px;position:relative;isolation:isolate;display:grid;place-items:center;width:var(--orb-size);height:var(--orb-size);border:1px solid #e8e1ff88;border-radius:50%;padding:0;background:#eee9ff;cursor:pointer;touch-action:manipulation;overflow:visible;transition:background .55s,box-shadow .55s;box-shadow:0 0 12px #b8a8ff35;animation:ao-breathe 4s ease-in-out infinite}
.agent-orb .ao-fluid{position:absolute;inset:2px;overflow:hidden;border-radius:50%;z-index:-1;background:radial-gradient(circle at 30% 20%,#fff,#b8a4f8 40%,#478f91 80%,#244957);opacity:.25;transition:opacity .6s}
.agent-orb .ao-fluid::before,.agent-orb .ao-fluid::after{content:'';position:absolute;inset:-35%;border-radius:40%;background:conic-gradient(from 30deg,transparent,#91f5d9,#a391ff,#f5c4ef,transparent);filter:blur(7px);animation:ao-spin 9s linear infinite}
.agent-orb .ao-fluid::after{inset:-15%;background:conic-gradient(transparent,#7868db,#c8fff0,transparent,#f4b7ee,transparent);animation:ao-spin 13s linear infinite reverse;mix-blend-mode:screen}
.agent-orb .ao-star{width:55%;height:55%;filter:brightness(.15);transition:opacity .5s,transform .6s,filter .5s;animation:ao-star 4s ease-in-out infinite}
.agent-orb .ao-ring{position:absolute;inset:-5px;border:1px solid #b5e9e1aa;border-radius:50%;pointer-events:none;opacity:0}
.agent-orb:not([data-state=idle]){background:#344e70;box-shadow:0 0 20px #a5b0ff99,0 0 36px #76e7d944;animation:ao-breathe 2s ease-in-out infinite}
.agent-orb:not([data-state=idle]) .ao-fluid{opacity:1}
.agent-orb:not([data-state=idle]) .ao-star{opacity:0;transform:scale(.25);animation:none;filter:none}
.agent-orb:not([data-state=idle]) .ao-ring{animation:ao-ripple 2s ease-out infinite}
.agent-orb .ao-ring:nth-of-type(3){animation-delay:1s}
.agent-orb[data-state=thinking] .ao-fluid::before{animation-duration:1.8s}
.agent-orb[data-state=thinking] .ao-fluid::after{animation-duration:3s}
.agent-orb .ao-wave{display:flex;position:absolute;inset:0;align-items:center;justify-content:center;gap:3px;opacity:0;transition:opacity .4s}
.agent-orb .ao-wave i{width:3px;height:34%;border-radius:4px;background:#fff;box-shadow:0 0 5px #fff8;transform:scaleY(.3)}
.agent-orb[data-state=speaking] .ao-wave{opacity:1}
.agent-orb[data-state=speaking] .ao-wave i{animation:ao-wave .65s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.13s)}
.agent-orb[data-state=speaking]{animation-duration:.85s}
.agent-orb:focus-visible{outline:2px solid #fff;outline-offset:5px}
@keyframes ao-spin{to{transform:rotate(360deg)}}@keyframes ao-breathe{0%,100%{transform:scale(.98)}50%{transform:scale(1.045)}}@keyframes ao-star{0%,100%{transform:scale(.96) rotate(-4deg)}50%{transform:scale(1.08) rotate(4deg)}}@keyframes ao-ripple{0%{transform:scale(.95);opacity:.65}100%{transform:scale(1.45);opacity:0}}@keyframes ao-wave{to{transform:scaleY(1.25)}}
@media(prefers-reduced-motion:reduce){.agent-orb,.agent-orb *,.agent-orb *::before,.agent-orb *::after{animation:none!important;transition:none!important}.agent-orb[data-state=speaking] .ao-wave i{transform:scaleY(.8)}}

.aiorb{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom) + 18px);z-index:30}
.aiorb.live[data-state=idle]{box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 0 6px #b8a8ff}
.aiorbmini{--orb-size:30px;flex:none;cursor:default;margin-right:2px}

/* 날씨 (상단 시계 오른쪽) — 테두리·카드 없이 헤더 배경 위에 그대로 */
.wxslot{flex:none;margin-left:auto;width:84px;height:92px}
.wxfloat{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--s,90px)*.03);color:var(--ink);pointer-events:none;overflow:visible}
html.night .wxfloat{color:var(--ink)}
.wxfloat[hidden]{display:none}
.wxi{width:calc(var(--s,90px)*.66);height:calc(var(--s,90px)*.66);flex:none;filter:drop-shadow(0 1px 3px rgba(20,30,50,.28));user-select:none}
.wxi[hidden]{display:none}
.wxrow{display:flex;align-items:baseline;gap:5px;max-width:100%;white-space:nowrap}
.wxt{font-family:var(--head);font-size:max(15px,calc(var(--s,90px)*.2));line-height:1}
.wxl{font-size:max(11px,calc(var(--s,90px)*.14));font-weight:700;opacity:.85;overflow:hidden;text-overflow:ellipsis}
.fit .wxslot{width:92px;height:58px}
@media (min-width:900px){.wxslot{width:104px;height:96px}}
@media (max-width:359px){.wxslot{display:none}}

/* 음성 입력 버튼 (파형 아이콘) */
.voice-button{width:48px;height:48px;display:inline-grid;place-items:center;border:1px solid #395550;border-radius:20px;background:#203b39;color:#eee5ff;cursor:pointer;transition:background .25s,box-shadow .25s;touch-action:manipulation}.voice-button svg{width:30px;height:30px;overflow:visible}.voice-button .bar{transform-box:fill-box;transform-origin:center;transition:transform .25s}.voice-button[data-state=listening]{background:#345b54;box-shadow:0 0 12px #92e5d244}.voice-button[data-state=listening] .bar{animation:voice-wave .85s ease-in-out infinite alternate;animation-delay:var(--delay)}.voice-button[data-state=processing] .bar{animation:voice-wave 1.2s ease-in-out infinite alternate;animation-delay:var(--delay)}.voice-button:focus-visible{outline:2px solid #eee5ff;outline-offset:3px}@keyframes voice-wave{0%{transform:scaleY(.4)}100%{transform:scaleY(1.25)}}@media(prefers-reduced-motion:reduce){.voice-button .bar{animation:none!important}}

.aibar .voice-button{width:44px;height:44px;min-height:44px;border-radius:18px;flex:none;padding:0}
.aibar .voice-button svg{width:28px;height:28px}
.aibar .voice-button[data-state=processing] .bar{animation:voice-wave 1.2s ease-in-out infinite alternate;animation-delay:var(--delay)}

/* 대화창: 키보드가 올라와도 위쪽이 잘리지 않게, 보이는 화면 높이에 맞춰 시트를 채운다 */
.aiover{inset:auto;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh)}
.aisheet{height:min(82%,680px)}
.aiover.kb .aisheet{height:calc(100% - 8px);border-radius:20px 20px 0 0}
.aiover.kb .aisheet header{padding:10px 14px 8px}
.aiover.kb .aibig,.aiover.kb .aihint{display:none}
.aiover.kb .aihello{padding:8px 6px}
.aiover.kb .aichips{margin:8px 0 4px}
.aiover.kb .aibar{padding-bottom:10px}

/* Orb V2 — 우측 하단 호출 버튼 */
.home-orb{width:60px;height:60px;position:relative;display:inline-grid;place-items:center;border:0;border-radius:50%;background:radial-gradient(circle at 32% 24%,#e6fffa,#70dccc 32%,#7569d9 72%,#30366b);color:white;cursor:pointer;isolation:isolate;box-shadow:0 0 16px #83d9e999;overflow:visible;transition:box-shadow .4s;animation:home-breathe 3s ease-in-out infinite}
.home-orb .fluid{position:absolute;inset:2px;border-radius:50%;overflow:hidden;z-index:-1;pointer-events:none}.home-orb .fluid:before,.home-orb .fluid:after{content:'';position:absolute;inset:-30%;background:conic-gradient(#8b7bff,#6fffe1,#b4e8ff,#e6a6ff,#8b7bff);filter:blur(6px);border-radius:40%;animation:home-spin 5s linear infinite}.home-orb .fluid:after{inset:-12%;opacity:.65;background:radial-gradient(ellipse at 30% 25%,white,transparent 40%),conic-gradient(#aa85ff,transparent,#73f5cf,transparent,#aa85ff);animation:home-spin 7s linear infinite reverse}.home-orb .ring{position:absolute;inset:-4px;border-radius:48%;border:2px solid transparent;border-top-color:#baffed;border-right-color:#c5a2ff;animation:home-spin 3s linear infinite;pointer-events:none}.home-orb .ring.second{inset:-8px;border-width:1px;border-top-color:#a6b7ff;border-right-color:transparent;border-bottom-color:#a6ffe0;animation-duration:5s;animation-direction:reverse}.home-orb svg{width:30px;height:30px;filter:drop-shadow(0 0 5px #fff9);transition:opacity .35s,transform .35s;pointer-events:none}.home-orb[data-state]:not([data-state=idle]){box-shadow:0 0 26px #a6b9ffcc;animation-duration:1.7s}.home-orb[data-state]:not([data-state=idle]) svg{opacity:0;transform:scale(.3)}.home-orb[data-state=listening] .ring{animation-duration:1.5s}.home-orb[data-state=thinking] .fluid:before{animation-duration:1.2s}.home-orb[data-state=speaking] .fluid{animation:home-morph .8s ease-in-out infinite alternate}.home-orb[data-state=speaking]{animation-duration:.8s}.home-orb:focus-visible{outline:2px solid white;outline-offset:10px}@keyframes home-spin{to{transform:rotate(360deg)}}@keyframes home-breathe{0%,100%{transform:scale(.96)}50%{transform:scale(1.06)}}@keyframes home-morph{from{border-radius:50%;transform:scale(.93)}to{border-radius:42% 58% 45% 55%;transform:scale(1.04)}}@media(prefers-reduced-motion:reduce){.home-orb,.home-orb *,.home-orb .fluid:before,.home-orb .fluid:after{animation:none!important;transition:none!important}}

.home-orb.aiorb{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom) + 18px);z-index:30;width:56px;height:56px;display:grid}
.home-orb.aiorb svg{width:28px;height:28px}
.home-orb.aiorb.live[data-state=idle]{box-shadow:0 0 16px #83d9e999}

/* Orb V2 — 대화창 안의 오브(첫 화면 큰 구체, 머리글 작은 구체) */
.home-orb.aiorbbig{display:grid;width:68px;height:68px;margin:12px auto 18px;cursor:default}
.home-orb.aiorbbig svg{width:32px;height:32px}
.home-orb.aiorbm{display:grid;width:30px;height:30px;flex:none;margin:0 10px 0 6px;cursor:default;box-shadow:0 0 8px #83d9e999}
.home-orb.aiorbm svg{width:15px;height:15px}
.home-orb.aiorbm .ring.second{display:none}
.home-orb.aiorbm .ring{inset:-3px;border-width:1.5px}
.aiover.kb .aiorbbig{display:none}

/* 가족 한마디: 남기기 버튼과 입력창 */
.notes h2.noteh{display:flex;align-items:center;gap:8px}
.notes .noteadd{margin-left:auto;font-size:15px}
.notes .noteform{margin:4px 0 12px}

/* 가족 한마디: 4개 높이까지만 보이고 나머지는 스크롤, 날짜·시간은 작게 */
.notelist{max-height:376px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ntime{font-size:12px;color:var(--sub);font-weight:400;white-space:nowrap}

/* UIUX Renewal 1단계: 아이콘과 터치 크기 */
.ico{display:inline-block;width:1.25em;height:1.25em;object-fit:contain;vertical-align:-.25em;flex:none}
.tabs button i .ico{width:26px;height:26px;vertical-align:middle}
.preset .pe .ico{width:44px;height:44px}
.tile .ico{width:34px;height:34px}
.btn,.preset,.pill{min-height:48px}
.mini{min-height:44px}
.top .wxfloat{color:var(--ink)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
html[data-theme=forest],html[data-theme=midnight]{--clockface:var(--page)}

/* ---- 2단계: 하단 고정 메뉴 · 상태 바텀시트 · 가족 상태 줄 ---- */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--page);border-top:2px solid var(--line);padding:6px 10px calc(env(safe-area-inset-bottom) + 6px)}
.bnav .tabs{margin:0 auto;max-width:640px;background:var(--card)}
.bnav .tabs button{min-height:52px}
.app{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.app.boardmode{padding-bottom:0}
.home-orb.aiorb{bottom:calc(env(safe-area-inset-bottom) + 88px)}
.famstrip{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.fs-cell{display:flex;gap:8px;align-items:center;background:var(--soft);border-radius:14px;padding:8px;min-width:0}
.fs-cell>div{display:flex;flex-direction:column;min-width:0;font-size:14px;line-height:1.3}
.fs-cell span{color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-cell em{font-style:normal;font-size:12px;color:var(--sub)}
.stover{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center}
.stsheet{background:var(--page);color:var(--ink);width:100%;max-width:560px;max-height:88vh;overflow-y:auto;border-radius:24px 24px 0 0;padding:10px 16px calc(env(safe-area-inset-bottom) + 16px)}
.stsheet .grab{width:44px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 10px}
.stsheet h2{display:flex;align-items:center;gap:8px;font-size:20px;margin:4px 0 10px}
.hint.err{color:#b3261e;font-weight:700}
html.night .hint.err{color:#ffb4ab}
@media (max-width:360px){.famstrip{grid-template-columns:1fr}}

/* ---- 3단계 ---- */
html.sheetopen .home-orb.aiorb{opacity:0;pointer-events:none}
.qform{display:flex;flex-direction:column;gap:10px}
.qform input[type=text],.qform input[type=date],.qform input[type=time]{min-height:48px}
.pushh{display:flex;align-items:center;gap:8px}
.pushh .mini{margin-left:auto}
.psteps{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.pstep{display:flex;gap:10px;align-items:flex-start}
.pstep .pn{flex:none;width:28px;height:28px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-weight:800}
.pstep.done .pn{background:var(--accent);color:var(--accent-ink)}
.pstep>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.pstep>div>span{color:var(--sub);font-size:14px;line-height:1.4}
.pstep .btn{align-self:flex-start}
.app{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
@media (max-height:520px){.home-orb.aiorb{display:none}}
html:has(.app input:focus) .home-orb.aiorb{opacity:0;pointer-events:none}

.qform input[type=text],.qform input[type=date],.qform input[type=time]{height:48px;min-height:48px;flex:none;width:100%}
.qform .row input[type=date]{flex:1;width:auto}
.foot-actions{padding-right:76px}

/* ---- 4단계: 그림 화면 · 오래된 정보 · 밤 시계 ---- */
.lt .lt-pars{display:flex;gap:12px;justify-content:space-around;margin-top:8px}
.lt-par{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:18px}
.lt-par small{color:var(--sub);font-size:15px}
.lt-ic{font-size:44px;line-height:1}.lt-ic .ico{width:56px;height:56px}
.lt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lt-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:112px;border-radius:24px;background:var(--soft);border:3px solid var(--line);color:var(--ink);font:inherit;font-weight:800;padding:10px}
.lt-btn small{font-size:17px;line-height:1.25;text-align:center}
.lt-btn.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.lt-btn:active{transform:scale(.97)}
.lt-task{display:flex;align-items:center;gap:14px;width:100%;min-height:68px;border-radius:20px;background:var(--soft);border:3px solid var(--line);color:var(--ink);font:inherit;font-size:22px;font-weight:700;padding:10px 16px;margin-bottom:10px;text-align:left}
.lt-ck{flex:none;width:40px;height:40px;border-radius:12px;border:3px solid var(--ink);display:grid;place-items:center;font-size:26px}
.lt-task.done{opacity:.6}.lt-task.done .lt-ck{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.stalebar{position:fixed;left:50%;transform:translateX(-50%);bottom:14px;z-index:70;background:#b3261e;color:#fff;font-weight:800;padding:10px 18px;border-radius:999px;font-size:16px}
.nightclock{position:fixed;inset:0;z-index:90;background:#000;color:#d9d3c0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2vh;text-align:center;cursor:pointer}
.nc-time{font-size:min(30vw,38vh);font-weight:800;line-height:1;letter-spacing:.02em}
.nc-time small{font-size:.18em;margin-right:.3em;color:#9a9484}
.nc-date{font-size:min(5vw,6vh);color:#9a9484}
.nc-fam{display:flex;gap:18px;margin-top:2vh;opacity:.7}
.nc-m{display:flex;align-items:center;gap:6px}.nc-m i{font-style:normal;font-size:28px}.nc-m i .ico{width:30px;height:30px;filter:grayscale(1) brightness(.8)}
.nc-al{font-size:min(4vw,5vh);color:#9a9484}
.nc-hint{position:absolute;bottom:3vh;font-size:14px;color:#5b574b}

/* ---- 오늘 탭 빠른 버튼 · 가족 카드 컴팩트 ---- */
.qtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.qtile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:78px;border-radius:20px;background:var(--soft);border:2px solid var(--line);color:var(--ink);font:inherit;font-weight:800;font-size:15px;padding:8px 4px}
.qtile .ico{width:28px;height:28px}
.qtile.main{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.qtile:active{transform:scale(.97)}
.app:not(.boardmode) .card{padding:12px 14px}
.app:not(.boardmode) .card .head{gap:10px}
.app:not(.boardmode) .card .head .av{--s:44px !important}
.app:not(.boardmode) .card .head>svg{display:none}
.app:not(.boardmode) .card .nm{font-size:22px}
.app:not(.boardmode) .card .head .lab{display:none}
.app:not(.boardmode) .stat{margin:8px 0 2px;padding:6px 12px;font-size:18px}
.app:not(.boardmode) .foot{margin:0 2px 4px}
.app:not(.boardmode) .row2{display:grid;grid-template-columns:64px 1fr;gap:8px;align-items:baseline;padding:6px 2px}
.app:not(.boardmode) .row2 strong{font-size:20px}
.app:not(.boardmode) .cards{gap:10px}
.app:not(.boardmode) .card .proxy{margin:6px 6px 0 0}
.app:not(.boardmode) .stat .tile{width:34px;height:34px;font-size:20px;border-radius:10px}
.app:not(.boardmode) .stat .tile .ico{width:24px;height:24px}
.app:not(.boardmode) .stat{gap:10px}

/* ---- 알림 모아보기 · 일정 줄 컴팩트 ---- */
.hello h2{position:relative}
.bellbtn{margin-left:auto;position:relative;flex:none;width:48px;height:48px;border-radius:50%;background:var(--soft);border:2px solid var(--line);display:grid;place-items:center;color:var(--ink)}
.bellbtn .ico{width:26px;height:26px}
.badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#d93025;color:#fff;font:800 12px/20px var(--body);font-style:normal;text-align:center;padding:0 5px}
.feedsheet{max-height:min(62vh,480px)}
.feedlist{display:flex;flex-direction:column;overflow-y:auto;max-height:calc(min(62vh,480px) - 150px);margin:0 -4px 8px;padding:0 4px}
.fi{border-bottom:1px solid var(--line)}
.fi.new{background:var(--soft);border-radius:12px}
.fi-h{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 4px;text-align:left;color:var(--ink);font:inherit}
.fi-ic{flex:none;font-size:22px}
.fi-m{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:0 6px;align-items:baseline;line-height:1.3}
.fi-m small{color:var(--sub);font-size:12px}
.fi-t{flex-basis:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sub);font-size:14px}
.fi.open .fi-t{display:none}
.fi-h time{flex:none;font-size:11px;color:var(--sub);align-self:flex-start;margin-top:4px}
.fi-ar{flex:none;color:var(--sub)}
.fi-b{padding:0 8px 12px 36px;font-size:16px;line-height:1.5;word-break:break-word}
.item{flex-wrap:nowrap}
.iact{flex:none;gap:4px}
.iact .ib{min-width:40px;min-height:40px;padding:0;display:grid;place-items:center;font-size:18px}

.fi.new{background:var(--soft);border-radius:12px}
.fi.read{opacity:.7}
.fi.read .fi-m b,.fi.read .fi-t,.fi.read .fi-b{text-decoration:line-through;text-decoration-thickness:2px}
.fi.read .fi-ic{color:var(--accent);font-weight:800;font-size:24px}

/* 밤 모드에서도 고른 테마 색이 은은하게 보이게 */
html.night[data-theme=butter]{--bg:#3a3524;--page:#17150e;--card:#25221a;--soft:#3a3524;--line:#3a3626;--accent:#f5e2a1;--accent-ink:#17150e;--clockface:#25221a}
html.night[data-theme=forest]{--bg:#223a30;--page:#0c1511;--card:#17291f;--soft:#223a30;--line:#243a30;--accent:#bde0bd;--accent-ink:#0c1511;--clockface:#17291f}
html.night[data-theme=lavender]{--bg:#3a3150;--page:#141020;--card:#211b33;--soft:#3a3150;--line:#352c4a;--accent:#d3bff5;--accent-ink:#141020;--clockface:#211b33}
html.night[data-theme=midnight]{--bg:#2c3550;--page:#0d1019;--card:#181d2d;--soft:#2c3550;--line:#2a3350;--accent:#b7c5f0;--accent-ink:#0d1019;--clockface:#181d2d}
html.night[data-theme=peach]{--bg:#4a3029;--page:#1a1210;--card:#2a1d19;--soft:#4a3029;--line:#43302a;--accent:#f5c7b4;--accent-ink:#1a1210;--clockface:#2a1d19}
html.night[data-theme=ocean]{--bg:#24404f;--page:#0c161c;--card:#162630;--soft:#24404f;--line:#25404d;--accent:#b8dcea;--accent-ink:#0c161c;--clockface:#162630}

/* ---- V2 1단계 ---- */
/* 모바일 머리말 축소 (아날로그 시계는 유지) */
@media (max-width:520px){
  .app:not(.boardmode) .title{font-size:24px;margin:2px 0 4px}
  .app:not(.boardmode) .timeblock{gap:10px;margin-bottom:8px}
  .app:not(.boardmode) .timeblock>svg{width:60px;height:60px}
  .app:not(.boardmode) .timebig{font-size:32px}
  .app:not(.boardmode) .top{padding-top:calc(env(safe-area-inset-top) + 10px);padding-bottom:10px}
}
/* 가족 2×2 요약 카드 (좁은 화면·큰 글씨에서는 자동 1열) */
.famgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5rem),1fr));gap:10px;margin-bottom:14px}
.famcard{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;background:var(--card);color:var(--ink);border-radius:22px;padding:12px;min-height:132px;box-shadow:0 2px 0 var(--line);font:inherit}
.famcard:active{transform:scale(.98)}
.fc-top{display:flex;align-items:center;gap:8px;width:100%}
.fc-top strong{font-family:var(--head);font-size:20px;line-height:1.15}
.fc-st{display:flex;align-items:center;gap:6px;background:var(--soft);border-radius:12px;padding:5px 10px;font-size:16px;max-width:100%}
.fc-st .ico{width:24px;height:24px}
.fc-st.none{color:var(--sub);background:transparent;border:1px dashed var(--line)}
.fc-t{font-size:13px;color:var(--sub);line-height:1.3}
.fc-t.old{color:var(--warn);font-weight:700}
.fc-eta{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:700}
.fc-eta .ico{width:18px;height:18px}
.famsheet{max-height:88vh}
.famsheet .card{box-shadow:none;background:transparent;padding:4px 0}
/* 알림: 취소선 없이 점·배경 / 체크·차분한 배경 */
.fi.read .fi-m b,.fi.read .fi-t,.fi.read .fi-b{text-decoration:none}
.fi.read{opacity:1;background:transparent}
.fi.read .fi-m b,.fi.read .fi-t{color:var(--sub)}
.fi.new{background:var(--soft);border-radius:12px}
.fi-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#d93025;margin-right:6px;vertical-align:middle}
.fi-ck{font-style:normal;color:var(--accent);font-weight:800;font-size:22px}
.fi.read .fi-ic{font-size:22px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* 빠른 일정: 한국어 날짜·시각 라벨 */
.qpick{position:relative;overflow:hidden;min-height:48px}
.qpick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.qpick.set{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.qform .pill small{margin-left:4px;color:var(--sub);font-weight:600}
/* 안내 알약은 하단 메뉴 위로 */
.toast{bottom:calc(env(safe-area-inset-bottom) + 100px)}

/* ---- V2 2단계: 아이 화면 ---- */
.jr{font-size:18px}
.jr .panel h2{font-size:22px}
.jr .btn,.jr .pill,.jr .ping-btn{min-height:56px;font-size:18px}
.jr .ping-btn{padding:12px 18px}
.jr .qtile{min-height:84px;font-size:17px}
.lt .lt-btn{min-height:116px}
.lt .lt-btn small{font-size:18px}
.lt-par b{font-size:20px}
.lt .hello h2,.lt h2{font-size:24px}
.lt-task{min-height:72px;font-size:22px;position:relative;overflow:visible}
.lt-task.starpop{animation:starbump .5s ease}
.starfx{position:absolute;right:14px;top:50%;font-size:34px;pointer-events:none;animation:starfly 1s ease-out forwards}
@keyframes starbump{0%{transform:scale(1)}40%{transform:scale(1.05)}100%{transform:scale(1)}}
@keyframes starfly{0%{opacity:0;transform:translateY(-50%) scale(.4)}25%{opacity:1;transform:translateY(-90%) scale(1.3)}100%{opacity:0;transform:translateY(-170%) scale(1)}}
@media (prefers-reduced-motion:reduce){.lt-task.starpop,.starfx{animation:none}.starfx{display:none}}

/* ===== V2 3단계: 거실 보드 (가로 태블릿) ===== */
.app.boardmode{max-width:none;margin:0;padding:8px 12px 10px;height:calc(100dvh / var(--z,1));zoom:var(--z,1);display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;overflow:hidden;transform:translate(var(--sx,0),var(--sy,0));transition:transform .6s}
.app.boardmode>.top{margin:0;padding:6px 12px;border-radius:20px;min-height:0}
.lv-top{display:flex;align-items:center;gap:18px;min-height:78px}
.lv-clock{display:flex;align-items:baseline;gap:8px;color:var(--ink);font-weight:800}
.lv-clock b{font-size:64px;line-height:1;letter-spacing:.01em}
.lv-clock small{font-size:22px;font-weight:700;color:var(--sub)}
.lv-date{display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.lv-date strong{font-size:24px}
.lv-sync{font-size:16px;color:var(--sub)}
.wxslot.lv-wx{width:230px;height:76px;margin-left:auto}
.lv-gearbox{position:relative}
.lv-gear{width:56px;height:56px;font-size:28px;border-radius:16px;background:var(--card);border:1px solid var(--line);color:var(--ink)}
.gearback{position:fixed;inset:0;z-index:60}
.gearmenu{position:absolute;right:0;top:62px;z-index:61;min-width:260px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:8px;display:flex;flex-direction:column;gap:4px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.gearmenu button{min-height:52px;padding:8px 14px;border-radius:12px;font-size:18px;text-align:left;background:var(--soft);color:var(--ink)}
.gm-row{display:flex;align-items:center;gap:8px;padding:4px 6px;font-size:18px}.gm-row span{flex:1}
.gm-row button{min-width:56px;text-align:center}

.lv-fam{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:10px}
.lvcard{display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:10px 12px;min-height:150px;cursor:pointer}
.lv-h{display:flex;align-items:center;gap:10px;font-size:22px}
.lv-st{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:800;background:var(--soft);border-radius:14px;padding:6px 10px}
.lv-st .tile{width:40px;height:40px;display:grid;place-items:center;font-size:26px}
.lv-st .tile .ico{width:32px;height:32px}
.lv-when{font-size:19px;min-height:24px}.lv-when b{font-size:22px}
.lv-in{font-size:16px;color:var(--sub);margin-top:auto}
.lvcard.empty .lv-st{opacity:.7}

.lv-body{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:10px;min-height:0}
.lv-body .panel{margin:0;padding:10px 14px;overflow:hidden;min-height:0}
.lv-col,.lv-side .panel{scrollbar-width:none}
.lv-body .panel h2,.lv-body .daygroup h3{font-size:20px;margin:0 0 4px}
.lv-body .it,.lv-body .item{font-size:17px}
.lv-side{display:flex;flex-direction:column;gap:8px;min-height:0}
.lv-side .panel{flex:1 1 0}
.lv-side .notes .notelist{max-height:150px;overflow:hidden}
.lv-cta{min-height:56px;font-size:19px;flex:none}
.lvsheet{max-height:92vh;overflow:auto}
.lvsheet h3{font-size:20px;margin:10px 0 6px}
.lvpin input{font-size:20px;min-height:52px;flex:1}
.lvboard .stalebar{top:8px;bottom:auto}
@media (max-width:760px) and (orientation:portrait){
  .app.boardmode{height:auto;overflow:auto;display:block}
  .lv-fam{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0}.lv-body{grid-template-columns:1fr}
  .lv-clock b{font-size:44px}.wxslot.lv-wx{display:none}
}

/* 야간: 화면 어둡게(색으로만) · 움직임 멈춤 · 번인 방지 */
html[data-dim="1"].night body::after,html[data-dim="2"].night body::after{content:'';position:fixed;inset:0;z-index:300;pointer-events:none;background:#000}
html[data-dim="1"].night body::after{opacity:.35}
html[data-dim="2"].night body::after{opacity:.6}
html.night.lvboard *,html.night.lvboard *::before,html.night.lvboard *::after{animation:none!important;transition:none!important}
.nightclock>*{transform:translate(var(--sx,0),var(--sy,0))}
.lvcard{min-height:0;padding:8px 12px;gap:4px}
.lv-st{font-size:22px;padding:4px 10px}
.lv-when{min-height:0}
.lv-top{min-height:66px}.lv-clock b{font-size:56px}.lv-gear{width:52px;height:52px}
.lv-body .panel{overflow:auto;scrollbar-width:none}.lv-body .panel::-webkit-scrollbar{display:none}
.lv-side{gap:6px}.lv-side .panel{flex:1 1 auto;padding:8px 12px}
.lv-side .notes{flex:1 1 0}.lv-side .notes .notelist{max-height:none;overflow:auto}
.lv-side .panel .empty{padding:6px;font-size:16px}
.lv-cta{min-height:52px}
.lv-fam{align-items:start}
.lv-fam .lvcard{height:auto}
.lv-side>.panel:first-child{flex:0 0 auto}
.lv-side .notes{flex:1 1 0;min-height:96px}
.lv-side .panel .empty{padding:4px;font-size:15px;line-height:1.3}
.lv-h{font-size:21px}.lv-when{font-size:18px;line-height:1.2}.lv-when b{font-size:20px}.lv-in{font-size:15px;line-height:1.2}
.lvcard{gap:3px;padding:7px 12px}

/* ===== V2 4단계: 접근성 보강 ===== */
.mini.ib{min-width:48px;min-height:48px}
.tick{position:relative}.tick::after{content:'';position:absolute;inset:-8px}
.btn.small,.btn.sm{min-height:48px}
.badge,.ntime{font-size:14px}
.jr button,.jr .btn,.jr .preset,.jr .ping-btn{min-height:64px}
.lt button,.lt .lt-btn{min-height:64px}
.app:not(.boardmode) button:not(.mini):not(.tick):not(.pill){min-height:48px}
@media (prefers-reduced-motion:reduce){.app.boardmode{transition:none}}

/* 폰 머리말 한 줄 · 카드 정리 · 버튼 글자 가운데 */
.pill,.btn,.qpick{display:inline-flex;align-items:center;justify-content:center;text-align:center}
.qpick .qd-t,.qpick .qt-t{text-align:center}
.toprow .title.tl{margin:0;font-size:26px;line-height:1.1;flex:1;min-width:0;white-space:nowrap}
.app:not(.boardmode) .toprow{gap:10px;justify-content:flex-start}
.app:not(.boardmode) .top{padding-top:calc(env(safe-area-inset-top) + 8px);padding-bottom:6px}
.app:not(.boardmode) .timeblock{margin-bottom:2px;gap:10px;align-items:center}
.app:not(.boardmode) .timeblock>svg{width:52px;height:52px}
.app:not(.boardmode) .timebig{font-size:30px}
.app:not(.boardmode) .wxslot{width:78px;height:62px}
.fc-top{flex-wrap:wrap;row-gap:4px}
.fc-top .fc-st{margin-left:auto;padding:3px 8px;font-size:15px}
.fc-top strong{font-size:18px}
.famcard{min-height:0;gap:4px}
.top,.app>.top,.app.boardmode>.top{border-radius:0}

/* 도우미 대화창: 뒤 화면 스크롤 잠금 · 말풍선 겹침 방지 */
html.aiopen,html.aiopen body{overflow:hidden;overscroll-behavior:none}
.ailist{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ailist .aim{flex:none}
.airetry{display:block;margin-top:8px}
.aiact{margin-top:10px;padding:10px;border-radius:14px;background:var(--soft);border:1px solid var(--line)}
.aiact b{display:block;font-size:16px;line-height:1.4}
.aiact .row{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}

/* ===== 기록: 우리집 이야기 (주간·월간·연간 앨범) ===== */
.albh{font-size:24px;margin:4px 2px 8px}
.albseg{margin:0 0 8px}
.albnav{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.albarrow{min-width:48px;min-height:48px;border-radius:50%;background:var(--card);color:var(--ink);border:1px solid var(--line);font-size:26px;line-height:1}
.albarrow:disabled{opacity:.35}
.albtitle{flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.albtitle b{font-size:18px;color:var(--ink)}
.albtitle small{font-size:14px;color:var(--sub)}
.albback{margin:0 0 8px}
.albday h2{font-size:18px;margin:0 0 8px}
.mcard{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid var(--line)}
.mcard:last-child{margin-bottom:0;border-bottom:0;padding-bottom:0}
.mcard .mphoto{width:100%;max-height:360px;object-fit:cover;border-radius:18px;background:var(--soft);display:block;min-height:120px}
.mcard .mtext{font-size:17px;margin:10px 2px 0;line-height:1.5}
.mfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}
.mby{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--sub)}
.mact{display:flex;align-items:center;gap:6px}
.mheart{min-height:44px}
.albcover{position:relative;border-radius:24px;overflow:hidden;background:var(--soft);min-height:150px;margin:0 0 12px;color:var(--ink);border:1px solid var(--line)}
.albcover img{width:100%;height:210px;object-fit:cover;display:block}
.albcap{position:relative;padding:12px 16px;display:flex;flex-direction:column;gap:2px}
.albcap b{font-size:22px}
.albcap span{font-size:16px;color:var(--sub)}
.albcover.has .albcap{background:linear-gradient(transparent,var(--card) 60%)}
.albdoodle{position:absolute;right:12px;top:10px;width:96px;height:32px;color:var(--accent);opacity:.9;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
.albweeks{display:flex;flex-direction:column;gap:10px}
.albweek{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;background:var(--soft);color:var(--ink);border-radius:18px;padding:12px;min-height:64px}
.wkhead{display:flex;justify-content:space-between;gap:8px;font-size:16px}
.wkhead span{color:var(--sub);font-size:15px}
.wkthumbs{display:flex;gap:8px;align-items:center}
.wkth{width:72px;height:72px;object-fit:cover;border-radius:14px;background:var(--card)}
.wkmore{min-width:48px;height:72px;display:grid;place-items:center;font-size:18px;font-weight:800;color:var(--sub)}
.wktext{font-size:16px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wkedge{font-size:14px;color:var(--sub)}
.yrgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.yrcard{position:relative;aspect-ratio:1;border-radius:20px;overflow:hidden;background:var(--soft);color:var(--ink);border:1px solid var(--line);padding:0;min-height:96px}
.yrcard img,.yrblank{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.yrcard.none{opacity:.7}
.yrcard:disabled{opacity:.35}
.yrcap{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 8px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(transparent,rgba(0,0,0,.62));color:#fff;text-align:left}
.yrcap b{font-size:18px}.yrcap small{font-size:14px;opacity:.9}
.yrcard.none .yrcap{background:none;color:var(--ink)}
.albempty .empty{padding:18px 8px;text-align:center;font-size:17px}
.addhint{position:fixed;left:16px;bottom:calc(env(safe-area-inset-bottom) + 148px);z-index:31;background:var(--ink);color:var(--page);border-radius:12px;padding:8px 12px;font-size:15px;font-weight:700;pointer-events:none;animation:hintfade 8s forwards}
@keyframes hintfade{0%,80%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.addhint{animation:none}}
.app{padding-bottom:140px}

.albcover{display:block;width:100%;padding:0;text-align:left;font:inherit;cursor:pointer}
.albcover:active{transform:scale(.99)}
.albgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.gcell{padding:0;border:0;background:none;aspect-ratio:1;border-radius:12px;overflow:hidden}
.gimg{width:100%;height:100%;object-fit:cover;display:block;background:var(--card)}

/* ===== 기록 2단계: 새 기록 시트 · 사진 상세 ===== */
html.sheetopen,html.sheetopen body{overflow:hidden;overscroll-behavior:none}
.stover.mn{bottom:var(--kb,0px)}
.stover.mn .stsheet{max-height:calc(100dvh - var(--kb,0px) - 8px);overscroll-behavior:contain;position:relative}
.mndate{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;min-height:52px;padding:8px 16px;border-radius:16px;background:var(--soft);border:1px solid var(--line);margin:4px 0 10px;cursor:pointer}
.mndate .mndl{font-weight:800;font-size:17px}.mndate small{color:var(--sub);font-size:14px}
.mndate input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;font-size:16px}
.mnpick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:132px;padding:14px;border-radius:20px;border:2px dashed var(--line);background:var(--soft);margin:0 0 10px;text-align:center;cursor:pointer}
.mnpick span{font-size:34px;line-height:1}.mnpick b{font-size:18px}.mnpick small{color:var(--sub);font-size:14px}
.mnphoto{position:relative;margin:0 0 10px}
.mnphoto img{display:block;width:100%;max-height:190px;object-fit:cover;border-radius:18px;background:var(--soft)}
.mnpact{display:flex;gap:8px;margin:8px 0 2px}
.stsheet .field{position:relative;margin:6px 0}
.stsheet .field textarea{display:block;width:100%;box-sizing:border-box;min-height:72px;padding:12px 14px 22px;border-radius:16px;border:1px solid var(--line);background:var(--card,#fff);color:var(--ink);font:inherit;font-size:17px;line-height:1.5;resize:none}
.mncount{position:absolute;right:12px;bottom:6px;color:var(--sub);font-size:12px}
.mnerr{margin:8px 0;padding:10px 12px;border-radius:14px;background:rgba(220,60,60,.15);border:1px solid rgba(220,60,60,.45);font-weight:700;font-size:15px}
.mnprog{position:relative;height:30px;border-radius:15px;background:var(--soft);overflow:hidden;margin:8px 0;border:1px solid var(--line)}
.mnprog i{position:absolute;left:0;top:0;bottom:0;background:var(--accent,#f6d98a);opacity:.7;transition:width .2s}
.mnprog span{position:relative;display:block;text-align:center;line-height:28px;font-size:14px;font-weight:700}
.mnask{position:absolute;inset:auto 0 0 0;background:var(--page);border-top:1px solid var(--line);padding:16px;border-radius:20px 20px 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.35);z-index:3}
.mnask b{display:block;font-size:17px;margin-bottom:10px}
.mphotobtn{display:block;width:100%;padding:0;border:0;background:none;border-radius:18px}
.mdet{position:fixed;inset:0;z-index:75;background:#0b0b0b;color:#f3f3f3;display:flex;flex-direction:column}
.mdtop{display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px}
.mdtop .mini{background:rgba(255,255,255,.12);color:#fff;min-width:48px}
.mdwho{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:14px}
.mdwho span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdpos{font-size:13px;opacity:.8}
.mdimg{position:relative;flex:1;min-height:0;display:grid;place-items:center;touch-action:pan-y}
.mdimg img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.mdnav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;border:0;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font-size:30px}
.mdnav.l{left:6px}.mdnav.r{right:6px}
.mdfoot{padding:10px 14px calc(env(safe-area-inset-bottom) + 14px);background:linear-gradient(transparent,rgba(0,0,0,.55) 30%)}
.mdtext{font-size:18px;line-height:1.5;margin:0 0 10px;color:#fff}
.mdfoot .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mdfoot .pill,.mdfoot .mini{background:rgba(255,255,255,.14);color:#fff;border-color:transparent}
.mdet .mnask{color:var(--ink)}
html.sheetopen .addfab,html.sheetopen .addhint{display:none}

/* ===== 기록 3단계: 댓글 ===== */
.mdet{bottom:var(--kb,0px)}
.mcbox{margin:10px 0 0;padding:10px;border-radius:16px;background:rgba(255,255,255,.08)}
.mclist{max-height:30vh;overflow-y:auto;overscroll-behavior:contain}
.mcrow{padding:8px 2px;border-bottom:1px solid rgba(255,255,255,.12)}
.mcrow:last-child{border-bottom:0}
.mcrow p{margin:4px 0 0;font-size:16px;line-height:1.45;color:#fff;word-break:break-word}
.mcwho{display:flex;align-items:center;gap:6px;font-size:14px}.mcwho small{opacity:.7;font-size:12px}
.mcact{display:flex;gap:6px;margin-top:4px}
.mcact .mini{min-height:36px}
.mcnew{display:flex;gap:8px;align-items:flex-end;margin-top:8px}
.mcnew textarea,.mcedit textarea{flex:1;min-height:44px;max-height:96px;box-sizing:border-box;width:100%;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.35);color:#fff;font:inherit;font-size:16px;resize:none}
.mcedit .row{margin-top:6px}
.mcrow .btn.ghost{color:#fff;border-color:rgba(255,255,255,.4)}

/* ===== 오늘 3+2 · 원형 ＋ 버튼 (Orb 위) ===== */
.addfab{left:auto;right:18px;bottom:calc(env(safe-area-inset-bottom) + 158px);width:52px;height:52px;padding:0;gap:0;justify-content:center;font-size:0;border-radius:50%}
.addfab span{font-size:30px;line-height:1;font-weight:700;margin-top:-2px}
.addhint{left:auto;right:78px;bottom:calc(env(safe-area-inset-bottom) + 168px)}
.app:has(.addfab){padding-bottom:236px}
html:has(.app input:focus) .addfab,html:has(.app textarea:focus) .addfab{opacity:0;pointer-events:none}
@media (max-height:520px){.addfab{bottom:calc(env(safe-area-inset-bottom) + 20px)}}
.qwide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.qwbtn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px;padding:8px 12px;border-radius:20px;background:var(--soft);border:2px solid var(--line);color:var(--ink);font:inherit;text-align:left}
.qwbtn:active{transform:scale(.98)}
.qwic{font-size:26px;line-height:1;flex:none}
.qwt{display:flex;flex-direction:column;min-width:0}.qwt b{font-size:16px;line-height:1.2}.qwt small{font-size:13px;color:var(--sub);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qtile small{font-size:12px;font-weight:600;color:var(--sub)}
.prto{flex-wrap:wrap;margin:6px 0 10px}
.jr .qwbtn{min-height:68px}.lt .qwic,.kd .qwic{font-size:30px}
/* 오늘 인사 카드 여백 줄이기 */
.panel.hello{padding:12px 14px}.hello .nowline{margin:2px 0;font-size:17px}.hello .qtiles{margin-top:8px;gap:8px}.hello .qtile{min-height:70px}

/* ===== 장보기 2단계: 가족 요약 · 달력 · 더보기 ===== */
.famsum{padding:12px 14px}.famsum h2{margin:0 0 8px;font-size:18px}
.fsum-row{display:flex;flex-wrap:wrap;gap:6px}
.fsum-c{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border-radius:999px;background:var(--soft);border:1px solid var(--line);font-size:15px;font-weight:600}
.fsum-c.none{opacity:.7}
.fsum-prog{display:flex;justify-content:space-between;align-items:baseline;margin:10px 0 6px;font-size:15px}
.famsum .kd-bar{margin:0}
.planfold{margin:4px 0 10px}
/* 달력: 일정 있는 날만 은은하게, 오늘/선택 구분, 높이 줄이기 */
.day{min-height:54px}
.day:not(.has){background:transparent}
.day.has{background:var(--soft)}
.day.sel{box-shadow:0 0 0 2px var(--hand);background:var(--soft)}
.day.today .dn{background:var(--accent);color:var(--accent-ink)}
.day.today:not(.sel){border-color:var(--accent)}
/* 더보기 컴팩트 목록 */
.mgrp{font-size:13px;font-weight:800;color:var(--sub);margin:14px 4px 6px;letter-spacing:.02em}
.mlist{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.mrow{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border-radius:18px;background:var(--card);border:1px solid var(--line);color:var(--ink);font:inherit;text-align:left;width:100%}
.mrow:active{transform:scale(.99)}
.mic{font-size:24px;flex:none}.mt{display:flex;flex-direction:column;min-width:0;flex:1}.mt b{font-size:16px}.mt small{font-size:13px;color:var(--sub)}
.mcnt{font-size:14px;font-weight:800;color:var(--accent-ink);background:var(--accent);border-radius:999px;padding:3px 10px;white-space:nowrap}
.histlist{list-style:none;margin:0 0 6px;padding:0}.histlist li{padding:8px 2px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.histlist b{font-size:15px;font-weight:700;word-break:break-word}.histlist small{font-size:13px;color:var(--sub)}

/* ---- 장보기 ---- */
.shop{display:flex;flex-direction:column;gap:10px}
.shophd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shophd h2{margin:0;font-size:1.1rem;flex:1}
.ssync{color:var(--sub,#666);font-size:.78rem}
.shopadd,.shopedit{display:flex;flex-direction:column;gap:8px}
.sedr{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.shopadd input[name=name],.shopedit input[name=name]{flex:1;min-width:0}
.shop input:not([type=radio]){min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line,#ddd);background:var(--card,#fff);color:inherit;font:inherit}
.sqty{width:84px}
.schip{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line,#ddd);background:var(--card,#fff);color:inherit;font:inherit;font-size:.9rem;cursor:pointer}
.schip input{position:absolute;opacity:0;width:0;height:0}
.schip.on,.schip:has(input:checked){background:var(--accent,#f08a4b);color:#fff;border-color:transparent}
.scats,.sfreq{display:flex;gap:6px;flex-wrap:wrap}
.slist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.srow{display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 8px;border-radius:14px;background:var(--card,#fff);border:1px solid var(--line,#eee);flex-wrap:wrap}
.srow .stx{flex:1;min-width:0;display:flex;flex-direction:column}
.srow .stx small{color:var(--sub,#666)}
.schk{width:44px;height:44px;border-radius:50%;border:2px solid var(--accent,#f08a4b);background:transparent;color:#fff;font-size:1.2rem;cursor:pointer;flex:none}
.sdone .schk{background:var(--accent,#f08a4b)}
.sdone .stx b{text-decoration:line-through;opacity:.6}
.smore{width:44px;height:44px;border:0;background:transparent;color:inherit;font-size:1.3rem;cursor:pointer}
.smenu{display:flex;gap:8px;align-items:center;width:100%;padding-top:4px}
.sfold{min-height:44px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sempty{text-align:center;color:var(--sub,#666);padding:18px 0;margin:0}
.serr,.sdup{padding:10px 12px;border-radius:12px;background:rgba(240,138,75,.14);display:flex;flex-direction:column;gap:6px}
.sbot{margin-top:4px}
.shophd h2{white-space:nowrap}
.lvshop h3{margin:0 0 6px;font-size:1.05rem}.lvshop h3 small{color:var(--sub,#666);font-weight:400}
.lvshop .srow{min-height:52px}.lvshop .schk{width:48px;height:48px}
.lvshop input:not([type=radio]){min-height:48px;padding:0 12px;border-radius:12px;border:1px solid var(--line,#ddd);background:var(--card,#fff);color:inherit;font:inherit;flex:1;min-width:0}
.stbar{height:10px;border-radius:999px;background:var(--soft,#eee);overflow:hidden;margin:8px 0}
.stbar i{display:block;height:100%;background:var(--accent,#f08a4b);border-radius:999px}

/* 아이 태블릿(가로): 한 화면에 다 보이게 3칸 */
.app.kdmode{max-width:none;padding:0 16px 12px}
.kdmode .kd{grid-template-columns:1.1fr 1fr 1fr}
.kd-c3{min-width:0}
@media (min-width:900px) and (orientation:landscape){
  html:has(.app.kdmode),html:has(.app.kdmode) body{height:100%;overflow:hidden}
  .app.kdmode{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  .kdmode .kd{flex:1;min-height:0;align-items:stretch}
  .kdmode .kd-col{overflow-y:auto;min-height:0;padding-bottom:6px;scrollbar-width:thin}
  .kdmode .kd-top{padding-top:8px}
}
@media (max-width:899px),(orientation:portrait){
  .kdmode .kd{grid-template-columns:1.2fr 1fr}
  .kdmode .kd-c3{grid-column:1 / -1}
}

/* ===== 태블릿 UI/UX 개선 v2 (가로 전용) — 카드 높이는 내용이 정하고, 빈 칸을 억지로 늘리지 않는다 ===== */
:root{--tgap:12px}
/* 거실 */
.app.boardmode{grid-template-rows:auto auto minmax(0,1fr) auto;gap:var(--tgap);padding:10px 16px 12px}
.lv-top{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;column-gap:26px}
.lv-clock b{font-size:clamp(72px,6.6vw,120px);font-weight:800;letter-spacing:.01em}
.lv-clock small{font-size:clamp(24px,1.9vw,34px)}
.lv-date strong{font-size:clamp(28px,2.2vw,42px)}
.lv-sync{font-size:clamp(16px,1.15vw,20px)}
.lv-fam{gap:var(--tgap)}
.lvcard{align-items:stretch;text-align:center;min-height:0;padding:10px 12px;gap:4px}
.lv-h{justify-content:center}
.lv-st{justify-content:center}
.lv-when,.lv-in{text-align:center}
.lv-in{margin-top:0}
.lv-body{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tgap);align-items:start;grid-template-rows:minmax(0,1fr)}
.lv-colw{display:flex;flex-direction:column;gap:var(--tgap);min-width:0;max-height:100%;overflow-y:auto;scrollbar-width:none}
.lv-body .panel{margin:0;padding:12px 16px;overflow:visible;flex:none}
.lv-side .panel{flex:none}
.lv-body .panel h2,.lv-body .daygroup h3{font-size:clamp(20px,1.5vw,26px);margin:0 0 6px}
.lv-body .item,.lv-body .it{font-size:clamp(17px,1.25vw,22px)}
.lv-prog{display:flex;justify-content:space-between;align-items:baseline;font-size:clamp(17px,1.2vw,21px);margin-bottom:4px}
.lv-prog b{font-size:1.15em}.lv-prog.none{color:var(--sub);margin-bottom:6px}
.lv-quick{display:grid;grid-template-columns:repeat(var(--qn,4),minmax(0,1fr));gap:var(--tgap);margin:0}
.lvq-last{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:0 14px;min-height:60px;font-size:clamp(16px,1.15vw,20px)}
.lvq-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.lvq-btn{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;padding:0 14px;border-radius:16px;font-size:clamp(18px,1.3vw,22px);font-weight:800;background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.lvq-btn.cta{width:auto;margin:0;padding:0 14px;font-family:inherit;background:var(--accent);color:var(--accent-ink);border-color:transparent}
.lvq-ic{font-size:24px;line-height:1}
/* 첫째 */
.kd-bar{margin:4px 0 8px}
@media (min-width:800px) and (orientation:landscape){
  .app.kdmode{padding:0 16px 12px}
  .kdmode .kd{grid-template-columns:minmax(0,1.125fr) minmax(0,1fr) minmax(0,1fr);gap:var(--tgap);align-items:start;grid-template-rows:minmax(0,1fr);padding-bottom:76px;margin-top:var(--tgap)}
  .kdmode .kd-col{gap:var(--tgap);max-height:100%;overflow-y:auto;min-height:0;scrollbar-width:none;padding-bottom:0}
  .kdmode .kd-col>.panel,.kdmode .kd-col>.kd-alarm{margin:0;flex:none}
  .kdmode .kd-col>.cta{margin:0;flex:none}
  .kdmode .panel{padding:12px 16px}
  .kdmode .panel h2{font-size:clamp(20px,1.45vw,26px);margin:0 0 6px}
  .kdmode .item,.kdmode .it{font-size:clamp(17px,1.2vw,21px)}
  html:has(.app.kdmode) .home-orb.aiorb{bottom:calc(env(safe-area-inset-bottom) + 10px);right:16px}
}
.kdmode .kd-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;flex-wrap:nowrap}
.kdmode .kd-who{display:flex;align-items:center;gap:12px;min-width:0}
.kdmode .kd-top .tabs{margin:0;justify-self:center}
.kdmode .kd-top .tabs button{min-width:56px;white-space:nowrap;padding-left:6px;padding-right:6px}
.kdmode .kd-clock{justify-self:end}
.kdmode .kd-fam{display:grid;grid-template-columns:30px auto 1fr;gap:10px;align-items:center;padding:6px 0}
.kdmode .kd-fam span{text-align:right;margin:0}
.kdmode .presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kdmode .preset{min-height:92px;justify-content:center;text-align:center}
.kd-cur{display:flex;align-items:center;gap:12px;min-height:64px}
.kd-curi{width:56px;height:56px;display:grid;place-items:center;border-radius:16px;background:var(--soft);flex:none}
.kd-curi .ico{width:40px;height:40px}
.kd-curt{display:flex;flex-direction:column;min-width:0;flex:1}
.kd-curt b{font-size:clamp(19px,1.4vw,24px)}.kd-curt small{color:var(--sub);font-size:15px}
.kd-chg{min-height:52px;padding:0 18px;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:17px;flex:none}
.kd-now .presets{margin:12px 0 4px}
.kdmode .empty{padding:14px 10px}

/* 밀도 조정 */
.lv-clock b{font-size:clamp(64px,5.4vw,100px)}
.lv-body .item{padding:7px 0;gap:10px}
.lv-body .imeta{font-size:clamp(13px,.95vw,16px)}
.lv-body .sub{margin:6px 0 2px}
.lvshop .srow{min-height:48px;padding:4px 8px}
.lvshop .stx{display:flex;align-items:baseline;gap:8px;min-width:0}
.lvshop .stx small{white-space:nowrap}
.lvcard .lv-in{font-size:clamp(14px,1vw,17px)}
.lv-st{padding:4px 10px}
@media (min-width:800px) and (orientation:landscape){
  .kdmode .item{padding:8px 0;gap:10px}
  .kdmode .imeta{font-size:clamp(13px,.95vw,16px)}
}

.lvshop .stx{flex-direction:row}
.lv-colw.more,.kd-col.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 40px),transparent);mask-image:linear-gradient(#000 calc(100% - 40px),transparent)}
@media (max-height:780px) and (orientation:landscape){
  .lv-clock b{font-size:56px}.lv-top{min-height:64px}
  .lvcard{padding:6px 10px;gap:2px}.lv-in{display:none}.lv-when{min-height:0}
  .lv-body .panel{padding:10px 14px}
}
@media (min-width:1700px) and (min-height:1000px) and (orientation:landscape){
  .kdmode .kd{zoom:1.12}
  .lv-body,.lv-fam{zoom:1.12}
  .lv-quick{zoom:1.12}
}

/* ===== 최종 다듬기: 더보기 메뉴 · 전체 보기 · 새 칭찬 ===== */
.imore{min-width:48px;min-height:48px;font-size:22px;font-weight:800;line-height:1;border-radius:14px;display:inline-grid;place-items:center}
.imsheet{max-width:520px;width:100%}
.imt{margin:6px 0 10px;font-size:20px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imgrid{display:grid;gap:10px;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));margin-bottom:10px}
.imgrid.g1{--c:1}.imgrid.g2{--c:2}.imgrid.g3{--c:3}
.imb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:84px;border-radius:18px;background:var(--soft);border:2px solid var(--line);color:var(--ink);font:inherit;font-weight:800;font-size:18px}
.imb>span{font-size:17px}
.imb.danger{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.imask{text-align:center;font-size:18px;margin:6px 0 12px}
.lv-more{display:block;width:100%;min-height:48px;margin-top:6px;border-radius:14px;background:var(--soft);color:var(--ink);border:1px solid var(--line);font:inherit;font-weight:800;font-size:clamp(16px,1.15vw,19px);text-align:center}
.lvall{max-width:760px;width:100%}
.lvall .plain{margin:0}
.lvall .slist{display:flex;flex-direction:column;gap:6px;padding:0;margin:0 0 8px;list-style:none}
.pr-badge,.pr-new{display:none}
.kdmode .pr-badge{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:15px;font-weight:800;margin-left:8px;vertical-align:middle}
.kdmode .pr-new{display:inline-flex;align-items:center;padding:1px 8px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:800;opacity:1}
.kdmode .praise .pr.isnew{border-left:5px solid var(--accent);padding-left:12px;background:var(--soft);border-radius:12px;margin:6px 0}
.kdmode .praise .pr .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.kdmode .praise .pr .row .pill{min-height:52px;justify-content:center;text-align:center;padding:0 6px;font-size:17px;font-weight:700}
.kdmode .prep{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.kdmode .prepchk{min-height:56px;padding:0 14px;font-size:18px;border-radius:16px;justify-content:flex-start;gap:10px}
.kdmode .prepchk .box,.kdmode .prepchk input{width:26px;height:26px}

@media (max-height:850px) and (orientation:landscape){
  .lv-in{display:none}.lv-when{min-height:0}.lvcard{padding:6px 10px}
  .lv-clock b{font-size:60px}
}
@media (max-height:850px) and (orientation:landscape){
  .lv-body .panel{padding:8px 12px}.lv-body .item{padding:5px 0}.lvshop .srow{min-height:46px;padding:2px 8px}
  .lv-more{min-height:44px;margin-top:4px}.lv-top{min-height:56px}.lv-clock b{font-size:52px}
}
.imsheet .row,.lvall .row{display:grid;grid-template-columns:1fr}
.imsheet .row .btn,.lvall .row .btn{width:100%;min-height:52px;justify-content:center;text-align:center}
.kdmode .tick,.lv-body .tick{min-width:48px;min-height:48px;width:48px;height:48px;flex:none;display:inline-grid;place-items:center}

/* ===== 아인이 전용 태블릿 v3 — 5개 탭 공통 헤더/레이아웃 (kdmode 에서만 적용: 모바일·거실 영향 없음) ===== */
:root{--kdpad:16px;--kdgap:12px}
html:has(.app.kdmode),html:has(.app.kdmode) body{height:100%;overflow:hidden}
.app.kdmode{max-width:none;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:0 var(--kdpad) 0}
.kdmode>header.top{flex:none;margin:0 calc(var(--kdpad) * -1);padding:8px var(--kdpad)}
.kdmode .kd{flex:1;min-height:0;overflow-y:auto;padding-bottom:84px}
.kdmode .kd-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--kdgap)}
.kdmode .kd-who{min-width:0}
.kdmode .kd-title{font-size:clamp(18px,1.9vw,26px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kdmode .kd-top .tabs{margin:0;justify-self:center;display:flex;gap:4px}
.kdmode .kd-top .tabs button{min-width:64px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 8px}
.kdmode .kd-clock{justify-self:end;display:flex;align-items:center;gap:10px;min-width:0}
.kd-date{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25;text-align:right}
.kd-date small{font-size:clamp(12px,1vw,15px);white-space:nowrap}
.kdmode .kd-clock b{font-size:clamp(26px,2.6vw,40px);line-height:1;white-space:nowrap}
.kdmode .wxslot.kd-wx{width:64px;height:56px;margin:0;flex:none}
.kdpage{flex:1;min-height:0;overflow-y:auto;padding:var(--kdgap) 0 112px;scrollbar-width:thin}
.kdmode .kdpage .panel{margin:0}
.kdmode .kdbtn,.kdbtn{min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;border-radius:16px;padding:0 16px;font-size:clamp(16px,1.3vw,19px);font-weight:800;line-height:1.2}
.kdbtn.pri{background:var(--accent);color:var(--accent-ink);border:0}
.kdbtn:not(.pri){background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.kdbtn span[aria-hidden]{font-size:1.25em;line-height:1}
.kd-stale{color:var(--warn);font-weight:700}
.kd-vp{margin:10px 2px 0;font-size:12px;color:var(--sub);text-align:center}
.imhist{margin:-2px 0 10px;text-align:center;font-size:14px;color:var(--sub)}

/* 가족 탭 */
.kdfam-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--kdgap);margin-bottom:var(--kdgap)}
.kdfc{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:14px;text-align:center;min-width:0}
.kdfc.me{border:2px solid var(--accent)}
.kdfc h2{margin:0;font-size:clamp(18px,1.6vw,24px)}
.kdfc-st{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;border-radius:16px;background:var(--soft);color:var(--ink);font:inherit;font-weight:800;font-size:clamp(16px,1.3vw,19px);border:0;cursor:pointer}
.kdfc-st .ico{width:28px;height:28px;flex:none}
.kdfc-st.none{background:transparent;border:1px dashed var(--line);color:var(--sub);font-weight:600}
.kdfc-t{color:var(--sub);font-size:14px;line-height:1.3}
.kdfc-t.old{color:var(--warn);font-weight:700}
.kdfc-prog{width:100%;min-height:36px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.kdfc-prog .kd-bar{margin:0}.kdfc-prog small{font-size:13px;color:var(--sub)}
.kdfam-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--kdgap);align-items:start}
.kdfam-l,.kdfam-r{display:flex;flex-direction:column;gap:var(--kdgap);min-width:0}
.kdfam-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kdfam-btns .kdbtn{width:100%;padding:0 8px}

/* 일정 탭: 달력 60 / 선택일 40 */
.kdp-cal{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:var(--kdgap);align-items:start}
.kdp-cal>*{min-width:0}
.kdp-cal>.seg,.kdp-cal>.prepadd,.kdp-cal>.overlay{grid-column:1/-1}
.kdp-cal.kdp-task{display:block}
.kdmode .seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin:0 0 var(--kdgap)}
.kdmode .seg .pill{min-height:52px;justify-content:center;text-align:center;font-weight:800}
.kd-day{position:sticky;top:0}
.kd-today{display:inline-flex;align-items:center;margin-left:8px;padding:2px 10px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:.7em;font-weight:800;vertical-align:middle}
.kd-dayh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}.kd-dayh h2{margin:0;min-width:0}.kd-add{min-height:52px;padding:0 14px;white-space:nowrap;flex:none}

/* 기록 탭 */
.kdmode .addfab{left:auto;right:22px;bottom:calc(env(safe-area-inset-bottom) + 100px);width:56px;height:56px;z-index:29}
.kdmode .addhint{left:auto;right:86px;bottom:calc(env(safe-area-inset-bottom) + 112px)}
.app.kdmode:has(.addfab){padding-bottom:0}

/* 더보기 탭: 2열 그룹 */
.kdmore{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--kdgap);align-items:start}
.kdgrp{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:12px 14px;min-width:0}
.kdgrp>h2{margin:0 0 8px;font-size:clamp(17px,1.4vw,22px)}
.kdgrp .mlist{margin:0 0 6px}.kdgrp .acc{margin:6px 0}
.kdgrp .acc-h,.kdgrp .mrow{min-height:56px}
.kdgrp .panel.pushp{margin:6px 0;box-shadow:none}

@media (max-width:1100px){:root{--kdpad:12px;--kdgap:10px}
  .kdmode .kd-top .tabs button{min-width:56px;padding:4px 6px}
  .kdmode .wxslot.kd-wx{width:52px;height:48px}}
@media (min-width:800px) and (orientation:landscape){.kdmode .kd-c3{grid-column:auto}}
.kdp-cal>*{margin:0}
.kdp-cal>.seg{margin:0}

/* 기록 탭 (태블릿) */
.kd-albbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kdgap);margin:0 0 8px}
.kd-albbar .albh{margin:0;font-size:clamp(20px,1.8vw,26px)}
.kd-albbar .seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(88px,1fr);width:min(360px,48%);margin:0;gap:6px}
.kdmode .albnav{margin:0 0 var(--kdgap);gap:12px}
.kdmode .albarrow{min-width:52px;min-height:52px}
.kdalb{min-width:0}
.kdalb-week{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kdgap);align-items:start}
.kdalb-week>.albback,.kdalb-week>.hint{grid-column:1/-1}
.kdalb-week .albday{margin:0}
.kdalb .mcard .mphoto{aspect-ratio:4/3;max-height:none;min-height:0;height:auto;object-fit:cover}
.kdalb .mcard .mtext{font-size:clamp(15px,1.25vw,18px);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.kdalb .mfoot{flex-wrap:wrap;row-gap:6px}
.kdalb .mfoot .pill{min-height:48px;min-width:56px;justify-content:center}
.kdalb-month{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--kdgap)}
.kdalb-month .albcover{margin:0}
.kdalb-month .albcover img{height:clamp(140px,22vh,220px)}
.kdalb-month .albweeks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.kdalb-month .albweek{min-height:72px}
.kdalb-month .wkthumbs img{aspect-ratio:1;object-fit:cover}
.kdalb-year .yrgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--kdgap)}
.kdalb-year .yrcard{aspect-ratio:16/10;min-height:0}
@media (max-width:899px){.kdalb-week{grid-template-columns:repeat(2,minmax(0,1fr))}}
html:has(.app.kdmode) .home-orb.aiorb{display:grid}
@media (max-width:1100px){
  .kdmode .kd-cur{flex-wrap:wrap;row-gap:10px}
  .kdmode .kd-curt{flex:1 1 140px;min-width:140px}
  .kdmode .kd-chg{flex:1 1 100%;min-height:52px;display:inline-flex;align-items:center;justify-content:center}
}
.kdmode .kd{padding-bottom:0}
.kdmode .kd-c3{padding-bottom:76px}
.kdmode .qtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kdmode .qtile{display:grid;grid-template-rows:40px auto auto;align-content:center;justify-items:center;gap:4px;min-height:96px;padding:8px 4px;text-align:center}
.kdmode .qtile .ico,.kdmode .qtile svg{width:36px;height:36px}
.kdmode .qtile .qwic{font-size:32px;line-height:36px;width:36px;height:36px}
.kdmode .qtile span{line-height:1.2}
.kdmode .mini,.kdmode .noteadd,.kdmode .calhead .nav{min-height:48px;min-width:48px;display:inline-flex;align-items:center;justify-content:center}
.kdmode .calhead .nav{border-radius:50%}
.kdmode .pill{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.kdp-task>.row{margin:var(--kdgap) 0}
.kdp-task>.row .btn{width:100%;min-height:56px;display:inline-flex;align-items:center;justify-content:center}
.kdp-task .tscroll{max-height:none;overflow:visible}

/* ===== v4 아인 태블릿 (갤럭시탭 A9 가로 1006×601): 줄이지 않고 배치·항목 수로 해결 =====
   kdmode 에서만 적용 — 모바일·거실 보드 영향 없음 */
:root{--kdpad:12px;--kdgap:10px;--kdhead:64px;--kdfoot:60px}
.app.kdmode{padding:0 var(--kdpad)}
.kdmode>header.top{height:var(--kdhead);min-height:0;padding:0 var(--kdpad);margin:0 calc(var(--kdpad) * -1);display:flex;align-items:center}
.kdmode>header.top .kd-top{width:100%}
.kdmode .kd-title{font-size:19px}
.kdmode .kd-top .tabs button{min-width:60px;min-height:48px;padding:2px 8px;font-size:13px}
.kdmode .kd-clock b{font-size:26px}
.kdmode .kd-date small{font-size:12px}
.kdmode .wxslot.kd-wx{width:56px;height:48px}
.kdmode .kd,.kdmode .kdpage{flex:1;min-height:0;overflow:hidden;padding:var(--kdgap) 0 var(--kdgap);margin-bottom:0}
.kdmode .kdpage.kdp-moments{overflow-y:auto;padding-bottom:12px}
.kdmode .kdpage.kdp-cal.kdp-task{overflow:hidden}
/* 오늘 */
.kdmode .kd{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:var(--kdgap)}
.kdmode .kd-col,.kdmode .kd-c3{display:flex;flex-direction:column;gap:var(--kdgap);min-height:0;max-height:100%;overflow:hidden;padding:0;-webkit-mask-image:none;mask-image:none}
.kdmode .kd-col>*{flex:none;margin:0}
.kdmode .panel{padding:10px 12px;border-radius:16px}
.kdmode .panel.compact{padding:8px 12px}
.kdmode .panel h2,.kdmode .kdgrp h2{font-size:18px;margin:0 0 6px;line-height:1.25}
.kdmode .panel.compact h2{margin-bottom:2px}
.kdmode .item{padding:2px 0;gap:8px;min-height:52px}
.kdmode .ititle{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.kdmode .imeta{font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kdmode .daygroup h3{font-size:13px;margin:2px 0 0;color:var(--sub)}
.kdmode .sub{font-size:12px;margin:2px 0}
.kdmode .empty{font-size:14px;padding:4px 0;margin:0}
.kdmode .kd-bar{margin:4px 0 6px}
.kdmode .praise .pr .row{gap:8px;margin-top:6px}
.kdmode .praise .pr .row .pill{min-height:48px;font-size:15px}
.kdmode .praise .pr-text{font-size:16px}
.kdmode .prep{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.kdmode .prepchk{min-height:48px;font-size:15px;padding:0 10px;border-radius:14px}
.kdmode .prepchk .box,.kdmode .prepchk input{width:22px;height:22px}
.kdmode .kd-alarm{min-height:48px;padding:6px 12px}
.kdmode .kd-fam{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px}
.kdmode .kd-fam span{margin-left:auto;text-align:right;font-size:14px}
.kdmode .kd-stale{color:var(--warn);font-weight:700}
.kdmode .kd-now h2{display:none}
.kdmode .kd-cur{flex-wrap:wrap;gap:8px;min-height:0}
.kdmode .kd-curi{width:48px;height:48px}.kdmode .kd-curi .ico{width:32px;height:32px}
.kdmode .kd-curt{flex:1 1 120px;min-width:0}
.kdmode .kd-curt b{font-size:18px}.kdmode .kd-curt small{font-size:13px}
.kdmode .kd-chg{flex:1 0 100%;min-height:48px;font-size:16px}
.kdmode .panel:has(>.qtiles){padding:8px}
.kdmode .qtiles{margin:0;gap:8px}
.kdmode .qtile{grid-template-rows:28px auto;min-height:68px;padding:6px 4px;font-size:14px}
.kdmode .qtile .ico,.kdmode .qtile svg{width:26px;height:26px}
.kdmode .qtile .qwic{font-size:24px;line-height:28px;width:28px;height:28px}
.kdmode .qtile small{font-size:12px}
.kdmode .cta{min-height:52px;font-size:17px;margin:0}
.kdmode .noteh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kdmode .note{padding:6px 0}
.kdmode .note .txt{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.kdmode .notehead{font-size:13px}
/* 미리보기 줄이기 / 전체 보기 */
.kd-hid{display:none!important}
.kd-more[hidden]{display:none}
.kd-more,.kd-sum,.kd-link{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:48px;margin-top:4px;border-radius:12px;background:var(--soft);color:var(--ink);border:1px solid var(--line);font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.kd-sum{justify-content:space-between;padding:0 14px}
.kd-link{background:transparent;border-color:transparent;color:var(--sub);font-weight:700}
/* 가족 */
.kdmode .kdpage.kdp-board{display:flex;flex-direction:column;gap:var(--kdgap)}
.kdmode .kdfam-row{margin:0;gap:var(--kdgap)}
.kdmode .kdfc{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:4px;align-items:center;text-align:left;padding:10px 12px;border-radius:16px}
.kdmode .kdfc .av{grid-row:1/3}
.kdmode .kdfc h2{font-size:18px;align-self:end;margin:0}
.kdmode .kdfc-st{grid-column:2;min-height:48px;height:auto;padding:4px 8px;font-size:15px;line-height:1.15;text-align:center}
.kdmode .kdfc-st .ico{width:24px;height:24px}
.kdmode .kdfc-t,.kdmode .kdfc-prog{grid-column:1/-1}
.kdmode .kdfc-t{font-size:12px;text-align:left}
.kdmode .kdfc-prog{min-height:0}.kdmode .kdfc-prog small{font-size:12px}
.kdmode .kdfam-grid{flex:1;min-height:0;gap:var(--kdgap);align-items:start}
.kdmode .kdfam-l,.kdmode .kdfam-r{gap:var(--kdgap);max-height:100%;min-height:0;overflow:hidden}
.kdmode .kdfam-btns{gap:8px}
.kdmode .kdfam-btns .kdbtn{min-height:52px;font-size:15px}
.kdmode .famsum .fsum-c{min-height:32px;font-size:14px}
/* 일정 */
.kdmode .kdp-cal{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--kdgap);align-items:start}
.kdmode .kd-calp{padding:8px 10px}
.kdmode .kd-calp .calhead{display:flex;align-items:center;justify-content:space-between;margin:0 0 2px}
.kdmode .kd-cnav{display:flex;align-items:center;gap:8px}
.kdmode .kd-calp .calhead h2{font-size:20px;margin:0}
.kdmode .kd-todaybtn{min-height:48px;padding:0 14px;border-radius:14px;font-weight:800}
.kdmode .kd-calp .wdrow span{font-size:12px;padding:2px 0}
.kdmode .kd-calp .legend{font-size:11px;margin:2px 0 0;line-height:1.2}
.kdmode .kd-calr{display:flex;flex-direction:column;gap:var(--kdgap);min-height:0;max-height:100%;overflow:hidden}
.kdmode .kd-calr>*{margin:0;flex:none}
.kdmode .kdp-cal .seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.kdmode .kdp-cal .seg .pill{min-height:48px;justify-content:center}
.kdmode .kd-day{position:static}
.kdmode .kd-add{min-height:48px;padding:0 14px}
.kdmode .kdp-task{display:flex;flex-direction:column;gap:var(--kdgap)}
.kdmode .kdp-task .tscroll{flex:1;min-height:0;overflow-y:auto}
/* 기록 */
.kd-newrec{min-height:48px;padding:0 16px;white-space:nowrap;flex:none}
.kdmode .kd-albbar .seg{width:min(300px,40%)}
/* 더보기 */
.kdmode .kdmore{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--kdgap);align-items:start}
.kd-mcol{display:flex;flex-direction:column;gap:var(--kdgap);min-width:0}
.kdmode .kdgrp{padding:10px 12px;border-radius:16px}
.kdmode .kdgrp .mlist{display:flex;flex-direction:column;gap:6px;margin:0}
.kdmode .kdgrp .mrow{min-height:52px;padding:6px 12px;border-radius:14px}
.kdmode .kdgrp .mrow .mt b{font-size:16px}.kdmode .kdgrp .mrow .mt small{font-size:12px}
.kd-chev{margin-left:auto;font-size:24px;color:var(--sub);line-height:1}
.kdpop{max-width:640px;width:100%;max-height:90dvh;display:flex;flex-direction:column}
.kdpop-b{overflow-y:auto;min-height:0;flex:1}
.kdpop .kd-vp{margin:10px 0 0;font-size:12px;color:var(--sub)}
/* AI Orb · 앱 하단 버튼(알람·시계·설정): 내용과 겹치지 않는 하단 전용 띠 */
html:has(.app.kdmode) .home-orb.aiorb,html:has(.app.kdmode) .aiorb{right:16px;bottom:calc(env(safe-area-inset-bottom) + 2px)}
html.ohnative:has(.app.kdmode) .home-orb.aiorb,html.ohnative:has(.app.kdmode) .aiorb{right:188px}

/* v4 보정: 더 촘촘하게 (글씨는 줄이지 않고 여백·중복을 줄임) */
:root{--kdfoot:58px}
.kdmode .kd,.kdmode .kdpage{padding-top:8px}
.kdmode .panel{padding:8px 12px}
.kdmode .panel h2{margin:0 0 4px}
.kdmode .item{min-height:48px}
.kdmode .kd-bar{margin:2px 0 4px;height:8px}
.kdmode .kd-cur{flex-wrap:nowrap;gap:8px}
.kdmode .kd-chg{flex:none;min-width:96px;width:auto;padding:0 10px;font-size:15px}
.kdmode .kd-fam{min-height:40px}
.kdmode .qtile{min-height:64px}
.kdmode .panel:has(>.qtiles){padding:6px}
.kdmode .cta{min-height:52px}
.kdmode .praise .pr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;padding:2px 0}
.kdmode .praise .pr-from{grid-column:1/-1;font-size:13px}
.kdmode .praise .pr-body{min-width:0}
.kdmode .praise .pr-text{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kdmode .praise .pr .kd-reply{min-height:48px;min-width:88px;justify-content:center;font-size:15px;font-weight:800}
.kdmode .praise .pr .row{grid-column:1/-1}
.kdmode .praise .pr.isnew{margin:2px 0}
.lvall .praise .pr{display:block}
.kdmode .prepnow,.kdmode .prepsoft,.kdmode .prepwarn{background:var(--card)}
.kdmode .prepnow{border:2px solid #F08C00}.kdmode .prepwarn{border:2px solid #E5484D}
.kdmode .kd-fam b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kdmode .prep{display:flex;flex-wrap:wrap;gap:6px 8px}
.kdmode .prepchk{white-space:nowrap;padding:0 12px;min-height:48px}
.kdmode .prepgroup .sub{margin:0 0 4px}
.kdmode .kd-ptitle{font-size:13px;font-weight:600;color:var(--sub)}
.kdmode .prepgroup{margin:0;padding:0}
.kdmode .noteh{justify-content:flex-start}.kdmode .noteh .noteadd{margin-left:auto}
@media (max-height:580px){
  :root{--kdgap:8px}
  .kdmode .kdgrp{padding:8px 10px}
  .kdmode .kdgrp h2{margin:0 0 4px}
  .kdmode .kdgrp .mlist{gap:4px}
  .kdmode .kdgrp .mrow{min-height:48px;padding:2px 10px}
}
@media (max-height:580px){
  .kdmode .kd-calp{padding:6px 8px}
  .kdmode .kd-calp .calhead h2{font-size:18px}
  .kdmode .kd-calp .wdrow span{padding:0}
  .kdmode .kd-calp .legend{margin:0}
}

/* ===== v5 (실기기 검수 반영): 하단 전체 너비 예약 제거 → Orb·네이티브 버튼이 있는 우측 하단 구석만 비운다 =====
   원인: v4 의 `.kdmode .kd,.kdpage{margin-bottom:var(--kdfoot)}` 가 화면 하단 전체 너비를 58px(+카드 여백)만큼 비워 두었음 */
:root{--kdcorner:68px}
.kdmode .kd,.kdmode .kdpage{margin-bottom:0;padding-top:8px;padding-bottom:var(--kdgap)}
.kdmode .kdpage.kdp-moments{padding-bottom:calc(var(--kdcorner) + 8px)}
.kdmode .kd-col:last-child,.kdmode .kdfam-r,.kdmode .kd-calr,.kdmode .kd-mcol:last-child{padding-bottom:calc(var(--kdcorner) - var(--kdgap))}
/* 남는 높이는 카드 안에서 사용 (카드 밖 빈 띠 금지) */
.kdmode .kd{align-items:stretch}
.kdmode .kd-col>.panel:last-child,.kdmode .kd-col>.kd-fitgrow{flex:1 1 auto;min-height:0}
.kdmode .kdfam-grid{align-items:stretch}
.kdmode .kdfam-l>.panel,.kdmode .kdfam-r>.panel.notes{flex:1 1 auto;min-height:0}
.kdmode .kdfam-l,.kdmode .kdfam-r{display:flex;flex-direction:column}
.kdmode .kdp-cal{align-items:stretch}
.kdmode .kd-calp{display:flex;flex-direction:column;min-height:0}
.kdmode .kd-calp .grid{flex:1;min-height:0;grid-auto-rows:minmax(46px,1fr)}
.kdmode .kd-calp .day{min-height:0;overflow:hidden}
.kdmode .kd-calr>.panel{flex:1 1 auto;min-height:0}
.kdmode .kdmore{align-items:stretch}
.kdmode .kd-mcol>.kdgrp:last-child{flex:1 1 auto;min-height:0}
.kdmode .kd-mcol>.kdgrp:last-child .mlist{flex:1}
.kdmode .kdgrp .mrow{flex:1 1 auto;max-height:64px}
/* 작은 장식 요소: 보이는 크기는 줄이고 터치 영역은 48px 유지 */
.kdmode .tick{position:relative;width:48px;height:48px;min-width:48px;min-height:48px;border:0;background:transparent!important;padding:0}
.kdmode .tick::before{content:'';position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;border:2.5px solid var(--sub);box-sizing:border-box}
.kdmode .item.done .tick::before,.kdmode .tick[aria-checked="true"]::before{background:var(--good);border-color:var(--good)}
.kdmode .tick svg{position:relative;z-index:1;width:18px;height:18px}
.kdmode .item .imore,.kdmode .note .imore{background:transparent;border:0;box-shadow:none;color:var(--sub);min-width:48px;min-height:48px;font-size:22px}
.kdmode .item .emo{font-size:22px;width:28px;text-align:center}
.kdmode .item{min-height:48px;padding:0}
.kdmode .kd-more,.kdmode .kd-sum,.kdmode .kd-link{min-height:44px;margin-top:2px;font-size:14px}
.kdmode .av{flex:none}
.kdmode .kd-fam .av{--s:28px!important}
/* 오늘: 부가 설명(완료 시각·등록자·반복 등)은 줄이고 상세에서 확인 */
.kdmode .kd-lst[data-key="ktask"] .imeta,.kdmode .kd-lst[data-key="ksch0"] .imeta,.kdmode .kd-lst[data-key="ksch1"] .imeta{display:none}
.kdmode .kd-lst[data-key="ktask"] .item,.kdmode .kd-lst[data-key="ksch0"] .item,.kdmode .kd-lst[data-key="ksch1"] .item{min-height:48px}
.kdmode .kd-stale{color:var(--sub);font-weight:600}
.kdmode .kdfc-t.old{color:var(--sub);font-weight:400}
/* 가족: 카드 4장 가로 한 줄 + 한 줄 요약 + 다가오는 날(≥3) + 한마디 */
.kdmode .kdfam-row{margin:0;flex:none}
.kdmode .kdfc{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:2px;padding:8px 10px;border-radius:16px;align-items:center}
.kdmode .kdfc .av{grid-row:1;grid-column:1}
.kdmode .kdfc h2{grid-row:1;grid-column:2;font-size:18px;align-self:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kdmode .kdfc-st{grid-row:1;grid-column:3;width:auto;max-width:130px;min-height:48px;padding:0 10px;gap:4px;font-size:15px;white-space:nowrap}
.kdmode .kdfc-st span{overflow:hidden;text-overflow:ellipsis}
.kdmode .kdfc-st .ico{width:22px;height:22px}
.kdmode .kdfc-t{grid-row:2;grid-column:1/-1;font-size:13px;color:var(--sub);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kdmode .kdfc-prog{grid-row:3;grid-column:1/-1;min-height:0}
.kdmode .kdfc-prog .kd-bar{margin:2px 0}.kdmode .kdfc-prog small{font-size:12px}
.kdmode .fsum-line{display:flex;align-items:center;gap:6px 14px;padding:4px 12px;min-height:44px;flex:none;flex-wrap:nowrap;overflow:hidden}
.kdmode .fsum-line .fsl-t{font-size:16px;flex:none}
.kdmode .fsum-line .fsl-c{display:flex;gap:6px;flex:1;min-width:0;overflow:hidden}
.kdmode .fsum-line .fsum-c{min-height:30px;font-size:13px;white-space:nowrap;padding:0 10px}
.kdmode .fsum-line .fsl-i{font-size:14px;color:var(--sub);white-space:nowrap;flex:none}
.kdmode .fsum-line .fsl-i b{color:var(--ink)}
.kdmode .fsum-line .fsum-c.none{color:var(--sub);background:var(--soft)}
.kdmode .kdpage.kdp-board>.kdfam-grid{flex:1;min-height:0}
@media (max-height:580px){
  :root{--kdcorner:64px}
  .kdmode .kdfc{padding:6px 10px}
  .kdmode .item{min-height:46px}
}

.kdmode .kd-col>.panel,.kdmode .kdfam-l>.panel,.kdmode .kdfam-r>.panel,.kdmode .kd-calr>.panel{overflow:hidden}
/* 더보기: 행 높이 48px 통일 (2열 그룹 유지) */
.kdmode .kdgrp{padding:8px 12px}
.kdmode .kdgrp .mlist{gap:4px}
.kdmode .kdgrp .mrow{min-height:48px;padding:2px 12px}

.kdmode .kd-lst .item{align-items:center}
.kdmode .kd-lst .ibody{display:flex;flex-direction:column;justify-content:center}

.kdmode .kd-mcol>.kdgrp:last-child{flex:none}
.kdmode .kd-mcol>.kdgrp:last-child .mlist{flex:none}
.kdmode .kdgrp .mrow{flex:none;min-height:56px;max-height:none;padding:2px 12px}
@media (max-height:580px){.kdmode .kdgrp .mrow{min-height:48px}}

/* v5 높이 확보: 헤더 58px(명세 56~60), 카드 간격 8px */
:root{--kdhead:58px;--kdgap:8px}
.kdmode .kd,.kdmode .kdpage{padding-top:6px}
.kdmode .panel h2,.kdmode .kdgrp h2{margin:0 0 3px}
.kdmode .kd-bar{margin:2px 0 3px}
.kdmode .prepchk{min-height:48px}
.kdmode .praise .pr .kd-reply{min-height:48px}
.kdmode .panel{padding:6px 12px}
.kdmode .kd-col{gap:var(--kdgap)}

/* v5: "외 N개 · 전체 보기"는 짧은 제목 카드에서는 제목 줄 오른쪽으로 올려 세로 공간을 아낀다 (터치 영역 48px 유지) */
.kdmode .panel{position:relative}
.kdmode .panel:has(.kd-lst[data-key="ktask"]) > .kd-more,
.kdmode .panel:has(.kd-lst[data-key="kfam"]) > .kd-more,
.kdmode .panel:has(.kd-lst[data-key="kup"]) > .kd-more,
.kdmode .panel:has(.kd-lst[data-key="kpraise"]) > .kd-more,
.kdmode .panel:has(.kd-lst[data-group="ksch"]) > .kd-more{position:absolute;top:-6px;right:6px;width:auto;margin:0;min-height:48px;padding:0 12px;font-size:13px;background:transparent;border-color:transparent;color:var(--sub)}
.kdmode .kdgrp .mrow{height:54px}
@media (max-height:580px){.kdmode .kdgrp .mrow{height:48px}}

/* ===== v6 아인 태블릿 통합 디자인 시스템 (kdmode 전용 — 모바일·거실 보드 영향 없음) =====
   간격 4 배수 · 카드 패딩 12 · 카드 반경 12~16 · 버튼 반경 8~12 · 칩 6~8 · 버튼 높이 48~52
   본문 글꼴(--body)만 버튼·D-day·칩에 사용 (display 글꼴은 페이지/카드 제목·이름만) */
:root{--kdhead:60px;--kdr-card:14px;--kdr-btn:10px;--kdr-chip:8px;--kdcorner:68px}
/* 헤더: 좌(프로필)·중앙(내비)·우(시계)가 같은 세로 중심선 */
.kdmode>header.top{height:var(--kdhead);align-items:center}
.kdmode .kd-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;height:100%}
.kdmode .kd-who,.kdmode .kd-clock{align-self:center}
.kdmode .kd-top .tabs{align-self:center;margin:0;padding:4px;gap:4px;border-radius:14px;height:56px;box-sizing:border-box}
.kdmode .kd-top .tabs button{width:64px;min-width:64px;height:48px;min-height:48px;padding:0;border-radius:10px;font-size:13px;gap:2px;flex:none}
.kdmode .kd-top .tabs button[aria-current=page]{background:var(--accent);color:var(--accent-ink)}
.kdmode .kd-top .tabs button i .ico{width:22px;height:22px}
.kdmode .kd-clock{gap:10px}
/* 카드 */
.kdmode .panel{border-radius:var(--kdr-card)}
/* 버튼: 본문 글꼴 · 정확한 중앙 정렬 · 알약(999px) 대신 둥근 사각형 */
.kdmode .cta{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;min-height:50px;padding:0 16px;margin:0;border-radius:12px;font-family:var(--body);font-size:16px;font-weight:700;line-height:1;letter-spacing:0}
.kdmode .btn.kdbtn,.kdmode .kdbtn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;min-height:48px;padding:0 14px;border-radius:12px;font-family:var(--body);font-size:15px;font-weight:700;line-height:1}
.kdmode .btn,.kdmode .kd-chg,.kdmode .kd-add,.kdmode .kd-newrec{font-family:var(--body);font-weight:700;border-radius:var(--kdr-btn);line-height:1}
.kdmode .kd-chg{display:flex;align-items:center;justify-content:center;font-size:15px}
.kdmode .pill{border-radius:var(--kdr-btn);font-family:var(--body);font-weight:600}
.kdmode .dday{font-family:var(--body);font-size:14px;font-weight:600;border-radius:var(--kdr-chip);padding:2px 10px;min-width:52px;text-align:center;line-height:1.5;background:var(--soft)}
.kdmode .kd-today{font-family:var(--body);border-radius:var(--kdr-chip);font-size:12px;font-weight:600}
.kdmode .pr-badge,.kdmode .kd-prog{font-family:var(--body);border-radius:var(--kdr-chip)}
/* 전체 보기: 작은 텍스트 링크 (제목줄 오른쪽) */
.kdmode .panel>.kd-more,.kdmode .kd-more{position:absolute;top:-2px;right:4px;width:auto;margin:0;height:44px;min-height:44px;padding:0 10px;background:transparent;border:0;border-radius:var(--kdr-btn);color:var(--sub);font-size:13px;font-weight:600}
.kdmode .panel.notes>.kd-more{right:92px}
.kdmode .panel{position:relative}
.kdmode .kd-more[hidden]{display:none}
.kdmode .kd-sum{border-radius:var(--kdr-btn);font-family:var(--body);font-weight:600;min-height:44px;margin-top:2px}
.kdmode .kd-link{font-weight:600;font-size:13px}
/* 칩/배지 */
.kdmode .fsum-c,.kdmode .imeta .chip,.kdmode .mcnt{border-radius:var(--kdr-chip)}
.kdmode .mcnt{background:var(--soft);color:var(--ink);font-family:var(--body);font-size:13px;font-weight:600;padding:2px 8px;line-height:1.5}
.kdmode .kdfc-st{border-radius:var(--kdr-btn);font-family:var(--body);font-weight:700}
.kdmode .kdfc-st.none{background:var(--soft);border:0;color:var(--sub);font-weight:600}
.kdmode .qtile{border-radius:12px;border-width:1px;font-family:var(--body);font-weight:700;justify-content:center;align-content:center;align-items:center;display:flex;flex-direction:column;gap:2px;text-align:center}
.kdmode .qtile small{font-weight:500;color:var(--sub);margin:0}
.kdmode .qtile>span{display:block}
.kdmode .tick::before{border-radius:50%}
/* 한 줄 상태 카드 (내일 챙길 것 / 받은 칭찬 비어 있음) */
.kdmode .kd-oneline{display:flex;align-items:center;gap:6px;min-height:40px;padding:8px 12px;font-size:15px;color:var(--sub)}
.kdmode .kd-oneline b{font-weight:500}
/* 알람: 강조는 유지하고 낮게 */
.kdmode .kd-alarm{padding:8px 12px;min-height:0;border-radius:var(--kdr-card)}
.kdmode .kd-alarm.off{padding:8px 12px;min-height:0}
.kdmode .kd-fam{min-height:0}
.kdmode .kd-fam span{font-size:14px}
.kdmode .kd-stale{color:var(--sub);font-weight:500}
/* 받은 칭찬: 1건 미리보기 */
.kdmode .praise .pr{padding:6px 0}
.kdmode .praise .pr-text{font-size:16px}
/* 가족 탭 */
.kdmode .kdfam-r{padding-bottom:calc(var(--kdcorner) - var(--kdgap) + 12px)}
.kdmode .kdfam-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kdmode .kdfam-btns .kdbtn{width:100%;height:48px}
.kdmode .kdfc-prog{min-height:0}
.kdmode .kdfc{border-radius:var(--kdr-card)}
.kdmode .notes .noteadd{border-radius:var(--kdr-btn);font-family:var(--body);font-weight:700;font-size:14px;padding:0 12px;height:44px;min-height:44px}
.kdmode .notes .noteh{font-size:inherit}
/* 일정 탭 */
.kdmode .kd-calp .grid{grid-auto-rows:minmax(0,1fr);gap:4px}
.kdmode .day{border-radius:10px;padding:4px 2px;border-width:1px;justify-content:flex-start;align-items:center}
.kdmode .day .dn{width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:15px;line-height:1;flex:none}
.kdmode .day.today .dn{background:var(--accent);color:var(--accent-ink);border-radius:50%;padding:0}
.kdmode .day.sel{box-shadow:inset 0 0 0 2px var(--hand)}
.kdmode .day.today:not(.sel){border-color:transparent}
.kdmode .kd-calp .calhead{align-items:center;min-height:48px}
.kdmode .kd-cnav{align-items:center;gap:8px}
.kdmode .kd-cnav h2{display:flex;align-items:center;line-height:1}
.kdmode .calhead .nav{border-radius:var(--kdr-btn);width:44px;min-width:44px;height:44px;min-height:44px}
.kdmode .kd-todaybtn{border-radius:var(--kdr-btn);font-family:var(--body);font-weight:600;font-size:14px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px}
.kdmode .legend{font-size:13px;line-height:1.3;color:var(--ink);opacity:.8;margin:2px 0 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.kdmode .legend b{font-size:13px}
/* 세그먼트 컨트롤 (일정/할 일 · 주간/월간/연간) */
.kdmode .seg,.kdmode .kd-albbar .seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:4px;border-radius:12px;background:var(--soft);margin:0}
.kdmode .seg .pill{height:44px;min-height:44px;border-radius:9px;background:transparent;border:0;display:flex;align-items:center;justify-content:center;padding:0 12px;font-size:15px;font-weight:600;color:var(--ink)}
.kdmode .seg .pill[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.kdmode .kd-calr{gap:var(--kdgap)}
.kdmode .kd-add{height:44px;min-height:44px;padding:0 14px}
.kdmode .kd-upw{padding:6px 12px;flex:0 1 auto;min-height:0}
.kdmode .kd-upw:not(:has(.kd-lst>:not(.kd-hid))){display:none}
.kdmode .up7{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;height:44px;padding:0 4px;background:transparent;border:0;border-bottom:1px solid var(--line);font:inherit;font-size:14px;text-align:left;color:var(--ink)}
.kdmode .up7 .u7d{flex:none;width:68px;color:var(--sub);font-weight:600;font-size:13px}
.kdmode .up7 .u7t{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 기록 탭: 헤더 2줄 · 주간 3열 */
.kdmode .albnav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 0 var(--kdgap)}
.kdmode .albarrow{min-width:44px;width:44px;height:44px;min-height:44px;border-radius:var(--kdr-btn);font-size:22px}
.kdmode .albtitle{display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:row;line-height:1}
.kdmode .albtitle b{font-size:16px;font-weight:700}
.kdmode .albtitle small{font-size:12px;color:var(--sub);background:var(--soft);border-radius:var(--kdr-chip);padding:2px 8px}
.kdmode .kd-albbar{margin:0 0 6px}
.kdmode .kd-albbar .albh{font-size:18px}
.kdmode .kd-albbar .seg{width:min(320px,44%)}
.kdmode .kd-newrec{height:48px;min-height:48px;padding:0 16px;display:flex;align-items:center;gap:6px}
.kdmode .kdalb-week .albday{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kdgap);align-items:start;padding:8px 12px}
.kdmode .kdalb-week .albday>h2{grid-column:1/-1;margin:0}
.kdmode .kdalb .mcard{margin:0;min-width:0}
.kdmode .kdalb .mcard .mphoto{aspect-ratio:3/2;width:100%;object-fit:cover;border-radius:10px}
.kdmode .kdalb .mfoot .pill,.kdmode .kdalb .mfoot .mheart{background:transparent;border:0;border-radius:8px;min-width:44px;min-height:44px;padding:0 8px;font-size:14px;font-weight:600;color:var(--ink)}
.kdmode .kdalb .mfoot .pill[aria-pressed=true]{background:transparent;color:#B8332B}
.kdmode .kdalb-year .yrgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
.kdmode .kdalb-year .yrcard,.kdmode .kdalb .albcover{border-radius:var(--kdr-card)}
/* 더보기: 행 정렬 통일 (빈 공간을 억지로 채우지 않는다) */
.kdmode .kdgrp .mrow{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:0 12px;border-radius:12px;text-align:left}
.kdmode .kdgrp .mic{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
.kdmode .kdgrp .mt{display:flex;flex-direction:column;justify-content:center;min-width:0}
.kdmode .kdgrp .mt b{font-size:16px;font-weight:700;line-height:1.25}
.kdmode .kdgrp .mt small{font-size:13px;line-height:1.25;color:var(--sub)}
.kdmode .kdgrp .kd-chev,.kdmode .kdgrp .mcnt{align-self:center;justify-self:end}
.kdmode .kdgrp .kd-chev{font-size:20px;color:var(--sub);line-height:1}
.kdmode .kdgrp h2{font-size:17px}
.kdmode .kdgrp .mlist{gap:4px}
.kdmode .kd-vp{font-size:13px;color:var(--sub);margin:8px 0 0}
.kdmode .kd-top{padding:0;box-sizing:border-box}
.kdmode .kdfam-r .panel.notes .kd-more{right:92px}
.kdmode .note{padding:4px 0}
.kdmode .panel h2{margin:0 0 2px}
/* v6 보정 */
.kdmode .kd-calr .kd-day .kd-dayh{position:relative}

.kdmode .up7 .u7d{width:78px;white-space:nowrap}
.kdmode .kd-day .kd-more{position:absolute;right:104px;top:2px}
.kdmode .kd-calr>.kd-day{flex:0 0 auto}
.kdmode .kd-calr>.kd-upw:last-child{flex:0 0 auto}
.kdmode .kd-more[hidden],.kdmode .panel>.kd-more[hidden]{display:none}
/* v88 보정: 헤더 상하 패딩 제거 → 모든 요소가 헤더(60px) 정중앙 */
.kdmode>header.top{padding-top:0;padding-bottom:0;box-sizing:border-box;height:var(--kdhead)}
.kdmode>header.top .kd-top{margin:0;padding:0;height:100%}
.kdmode .kd-top .tabs{height:54px;padding:3px}
.app.kdmode>header.top{padding-top:0;padding-bottom:0}

/* ===== V5.1 태블릿 셸 (kdmode 전용): 헤더 60 · 콘텐츠 · 하단 기능 바 60 ===== */
.app.kdmode{padding:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;
  --body:'Noto Sans KR Variable','Noto Sans KR','Noto Sans CJK KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;font-family:var(--body)}
.app.kdmode>header.top{flex:0 0 60px;height:60px;margin:0;padding:0 12px;box-sizing:border-box}
.app.kdmode>.kd,.app.kdmode>.kdpage{flex:1 1 0;min-height:0;margin:0;padding:8px 10px;box-sizing:border-box;overflow:hidden}
.app.kdmode>.kdpage.kdp-moments{overflow-y:auto;overflow-x:hidden;padding:8px 10px}
.kdmode .kd{align-items:stretch;gap:10px}
.kdmode .kd-col,.kdmode .kd-col:last-child,.kdmode .kd-c3,.kdmode .kdfam-r,.kdmode .kd-calr,.kdmode .kd-mcol:last-child{padding-bottom:0}
.kdmode .kd-col{gap:10px}
/* 남는 높이는 의미 있는 카드가 받는다: 1열은 할 일, 나머지 열은 마지막 카드 */
.kdmode .kd-col:first-child>.panel:first-child{flex:1 1 auto;min-height:0}
.kdmode .kd-col:first-child>.panel:last-child{flex:none}
.kdmode .kd-col:first-child>.panel:only-child{flex:1 1 auto}
/* 카드 규격 */
.kdmode .panel{border-radius:12px;padding:10px 12px}
.kdmode .panel h2{font-family:var(--body);font-size:16px;font-weight:600;line-height:1.3}
/* 하단 기능 바 */
.kdbar{flex:0 0 60px;height:60px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;background:var(--page);border-top:1px solid var(--line,rgba(0,0,0,.08))}
.kdbar-l{display:flex;align-items:center;gap:8px;min-width:0}
.kdbar-r{flex:0 0 240px;height:48px}
.kdb{display:flex;align-items:center;justify-content:center;gap:6px;height:48px;min-height:48px;padding:0 16px;border:0;border-radius:10px;background:var(--soft,var(--card));color:var(--ink);font-family:var(--body);font-size:15px;font-weight:600;line-height:1;white-space:nowrap;margin:0}
.kdb.pri{background:var(--accent);color:var(--accent-ink,#fff)}
.kdb-i{display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1}
.kdb-t{line-height:1}
html:has(.app.kdmode) .home-orb.aiorb{bottom:2px}
.kdmode .kd-pmore{display:flex;align-items:center;justify-content:flex-end;width:100%;height:32px;min-height:32px;margin:2px 0 0;padding:0 2px;border:0;background:none;color:var(--accent);font-family:var(--body);font-size:13px;font-weight:600}

/* ===== V5.1 보정 2: 높이 분배 · 세로 체크리스트 · 글자 굵기 · 탭 배경 · 더보기 구분선 ===== */
/* 4. 상단 탭: 감싸는 배경 제거, 선택 탭만 배경 */
.kdmode .kd-top .tabs{background:transparent;box-shadow:none;border-radius:0;padding:0;height:56px;gap:4px}
.kdmode .kd-top .tabs button{background:transparent;border-radius:10px}
.kdmode .kd-top .tabs button[aria-current=page]{background:var(--accent);color:var(--accent-ink)}
/* 1. 카드 높이 분배: 남는 높이를 카드들이 나눠 갖고, 카드 안의 줄은 고르게 펼침 */
.kdmode .kd-col>.panel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.kdmode .kd-col>.panel.kd-now,.kdmode .kd-col>.kd-alarm,.kdmode .kd-col>.kd-oneline,.kdmode .kd-col>.cta{flex:none}
.kdmode .kd-col:first-child>.panel:first-child,.kdmode .kd-col:first-child>.panel:last-child{flex:1 1 auto}
.kdmode .kd-col>.panel>.kd-lst{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-evenly;min-height:0}
.kdmode .kd-col>.panel>.kd-lst>.item{flex:1 1 auto;max-height:84px}
.kdmode .kd-col>.panel>.kd-bar{flex:none}
/* 2. 내일 챙길 것: 세로 체크리스트 */
.kdmode .prep{display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;margin:0}
.kdmode .prepchk{display:flex;align-items:center;gap:12px;width:100%;height:44px;min-height:44px;padding:0 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-family:var(--body);font-size:15px;font-weight:400;text-align:left;opacity:1}
.kdmode .prepgroup:last-of-type .prepchk:last-child{border-bottom:0}
.kdmode .prepchk[aria-checked="true"]{background:transparent;text-decoration:none;opacity:1;color:var(--sub)}
.kdmode .prepchk .pbox{width:22px;height:22px;border:1.5px solid var(--sub);border-radius:50%;font-size:13px;flex:none}
.kdmode .prepchk[aria-checked="true"] .pbox{background:var(--good);border-color:var(--good);color:#fff}
.kdmode .prepgroup{display:flex;flex-direction:column}
.kdmode .prepgroup .sub{font-size:13px;font-weight:500;color:var(--sub);margin:2px 0}
/* 3. 글자 굵기: 카드 제목 600, 본문 400~500 */
.kdmode .ititle,.kdmode .itime{font-weight:500}
.kdmode .kd-fam b,.kdmode .by,.kdmode .kd-cur b,.kdmode .kd-chg,.kdmode .pill,.kdmode .kd-reply,.kdmode .pr-badge,.kdmode .pr-new,.kdmode .cta,.kdmode .kdbtn{font-weight:600}
.kdmode .kd-fam b{font-weight:500}
.kdmode .daygroup h3,.kdmode .panel h3{font-family:var(--body);font-weight:600;font-size:13px}
.kdmode .pr-text,.kdmode .txt{font-weight:400}
.kdmode .kd-alarm b{font-weight:600}
.kdmode .kd-prog{font-weight:400}
.kdmode .imore{font-weight:400}
/* 8. 더보기: 중첩 테두리 제거 → 구분선 */
.kdmode .kdgrp .mlist{gap:0}
.kdmode .kdgrp .mrow{background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:6px 4px}
.kdmode .kdgrp .mlist>*:last-child .mrow,.kdmode .kdgrp .mlist>.mrow:last-child{border-bottom:0}
/* 기록 주간: 카드 3열 (날짜는 카드별) */
.kdmode .kdalb-week{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.kdmode .kdalb-week>.albback,.kdmode .kdalb-week>.hint,.kdmode .kdalb-week>.albempty{grid-column:1/-1}
.kdmode .kdalb-week>.mcard{background:var(--card);border-radius:12px;padding:10px;margin:0}
.kdmode .kdalb-week .mfoot{flex-wrap:wrap;gap:4px}

/* ===== V5.1 보정 3 ===== */
/* 일정: 오른쪽 열 마지막 카드가 달력 하단선(533)까지 */
.kdmode .kd-calr>.kd-upw:last-child,.kdmode .kd-calr>.kd-day:last-child{flex:1 1 auto;min-height:0}
/* 기록 월간: 대표 사진 높이 축소 → 주차별 기록을 더 많이 */
.kdmode .kdalb-month .albcover{min-height:0}
.kdmode .kdalb-month .albcover img{height:84px}
.kdmode .kdalb-month .albcover .albcap{padding:8px 14px}
/* 기록 연간: 4열 × 3행, 1~12월 한 화면 */
.kdmode>.kdpage.kdp-moments:has(.kdalb-year){display:flex;flex-direction:column;overflow:hidden}
.kdmode .kdalb.kdalb-year{flex:1 1 0;min-height:0;display:flex}
.kdmode .kdalb-year .yrgrid{flex:1;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
.kdmode .kdalb-year .yrcard{aspect-ratio:auto;height:100%;min-height:0}
.kdmode .kdalb-month .albcover{height:96px;min-height:0;position:relative}
.kdmode .kdalb-month .albcover img{height:96px;width:100%;object-fit:cover}
.kdmode .kdalb-month .albcover .albcap{position:absolute;left:0;right:0;bottom:0;flex-direction:row;align-items:baseline;gap:12px;padding:8px 14px}
.kdmode .kdalb-month .albcover .albcap b{font-size:18px}
.kdmode .kdalb-month .albcover .albcap span{font-size:14px}
/* kdFit 측정 중: 내용 높이 기준 (끝나면 해제되어 카드가 남는 높이를 나눠 가짐) */
.kd-measure .kd-col>.panel,.kd-measure .kd-calr>.panel,.kd-measure .kdfam-r>.panel,.kd-measure .kdfam-l>.panel{flex:none!important}
.kd-measure .kd-lst{flex:none!important}
.kd-measure .kd-lst>.item{flex:none!important;max-height:none!important}
.kdmode .ttitle{font-weight:500}
.kdmode .twho small{font-weight:400}
/* 기록(태블릿): 긴 글도 잘리지 않게 전체 표시 */
.kdmode .kdalb .mtext{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible;max-height:none}
/* 다가오는 7일: 행 40px (전폭 버튼) → 2~3개 표시 */
.kdmode .up7{min-height:44px!important;height:44px!important}
/* 할 일 목록: 고정 날짜 제목에 항목이 가려지지 않게 (키보드 포커스·스크롤 이동 포함) */
.kdmode .tscroll{scroll-padding-top:44px;scroll-padding-bottom:12px;padding-bottom:8px;overscroll-behavior:contain}

/* ===== V5.1 야간 모드 글자 대비 (태블릿) ===== */
html.night{--sub2:#d0d8e4}
html.night .kdmode .trow.done .ttitle{opacity:1;color:var(--sub2);text-decoration-color:var(--sub)}
html.night .kdmode .ntime,html.night .kdmode .imeta,html.night .kdmode .itime,html.night .kdmode .pr-from,html.night .kdmode .mfoot .mby span,html.night .kdmode .wkhead>span,html.night .kdmode .kd-prog,html.night .kdmode .twho small,html.night .kdmode .legend,html.night .kdmode .kd-link,html.night .kdmode .hint,html.night .kdmode small{color:var(--sub2)}
html.night .kdmode .yrcard.none{opacity:1}
html.night .kdmode .yrcard.none .yrcap b,html.night .kdmode .yrcard.none .yrcap small{color:var(--sub2)}
html.night .kdmode .yrcard.none{background:var(--soft)}
html.night .kdmode .day.out{opacity:.62}
html.night .kdmode .day.sun .dn,html.night .kdmode .wdrow .sun{color:#ff9a92}
html.night .kdmode .day.sat .dn,html.night .kdmode .wdrow .sat{color:#9dbfff}
html.night .kdmode .legend .lw,html.night .kdmode .mk{color:#ffb866}
html.night .kdmode .legend .lo{color:#7fdca4}
html.night .kdmode .mheart[aria-pressed=true]{color:#ff9a92}
html.night .kdmode .day:not(.today) .dn{color:var(--ink)}
html.night .kdmode .day.sun:not(.today) .dn{color:#ff9a92}
html.night .kdmode .day.sat:not(.today) .dn{color:#9dbfff}
html.night .kdmode .day.out{opacity:.72}
/* 기록 주간: 같은 줄 카드는 높이를 맞춰 빈 구멍을 없앰 (날짜순 유지) */
.kdmode .kdalb-week{align-items:stretch}
.kdmode .kdalb-week>.mcard{display:flex;flex-direction:column}
.kdmode .kdalb-week>.mcard .mfoot{margin-top:auto}
.kdmode .kdalb-week .mphotobtn{display:block}
.kdmode .kdalb-week .mcard .mphoto{aspect-ratio:16/10}

/* ===== V5.1 모바일 단계 (태블릿 kdmode 제외) ===== */
html,html[data-theme]{--body:'Noto Sans KR Variable','Noto Sans KR','Noto Sans CJK KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif}
.app:not(.kdmode) .mini.nav{min-width:44px;min-height:44px}
.app:not(.kdmode) .tick{min-width:44px;min-height:44px;width:44px;height:44px;display:inline-grid}
.app:not(.kdmode) .card h2,.app:not(.kdmode) .card h3{font-weight:600}
.app:not(.kdmode) .itime,.app:not(.kdmode) .imeta,.app:not(.kdmode) small{font-size:max(13px,.8em)}
.app:not(.kdmode) .item,.app:not(.kdmode) .ititle{line-height:1.45}
html.night{--sub2:#d0d8e4}
html.night .app:not(.kdmode) .itime,html.night .app:not(.kdmode) .imeta,html.night .app:not(.kdmode) small{color:var(--sub2)}

/* V5.1 모바일 대시보드 */
.mhello{padding:12px 12px 12px}.mhello h2{font-size:20px;gap:10px}.mhello .nowline{margin:4px 0 8px;font-size:16px}
.mqrow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.mq{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;padding:6px 2px;border-radius:14px;background:var(--soft);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:13px;font-weight:600;line-height:1.1}
.mq.main{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.mq-i{display:grid;place-items:center;height:26px;font-size:22px;line-height:1}.mq-i .ico,.mq-i svg{width:24px;height:24px}
.mq-t{display:block;text-align:center;white-space:nowrap}
.mdash{padding:4px 14px}
.mdash .msec{background:none;border:0;border-radius:0;box-shadow:none;margin:0;padding:12px 0;border-top:1px solid var(--line)}
.mdash .msec:first-child{border-top:0}
.mdash .msec h2{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:16px;font-weight:600}
.mdash .msec h2 .ico{width:20px;height:20px}
.m-sp{flex:1}.m-al{font-size:14px;font-weight:600;color:var(--sub);white-space:nowrap}.m-al b{color:var(--ink)}
.mrow{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:4px 0;background:none;border:0;border-bottom:1px solid var(--line);color:var(--ink);font:inherit;font-size:16px;text-align:left}
.mrow:last-of-type{border-bottom:0}
.mr-t{flex:none;min-width:46px;font-weight:700;font-size:15px;color:var(--sub)}.mr-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-d{flex:none;font-size:13px;color:var(--sub)}
.m-fams{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:14px}
.m-fm{display:inline-flex;align-items:center;gap:5px;min-height:28px}.m-fm i{font-style:normal;color:var(--sub)}
.mdash .item{padding:2px 0;min-height:48px;align-items:center}.mdash .imeta{display:none}
.mdash .prepchk{min-height:44px}
.mdash .panel,.mdash .notes{background:none;box-shadow:none;border-radius:0}
.mdash .notelist .note{padding:6px 0}
.mdash .lv-more{min-height:44px;width:100%;text-align:center;color:var(--accent);font-weight:600;background:none;border:0}
.mdash .pr{padding:4px 0}
.lt-more{width:100%;min-height:64px;border-radius:20px;border:3px dashed var(--line);background:none;color:var(--ink);font:inherit;font-size:20px;font-weight:700}
.lt-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.lt-grid.three .lt-btn{min-height:96px}
.lt .pr-text{font-size:20px}
.lt .lt-grid.cols3{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lt .lt-grid.cols3 .lt-btn{min-height:88px;border-radius:20px;padding:6px 2px;gap:4px}
.lt .lt-grid.cols3 .lt-ic{font-size:36px}.lt .lt-grid.cols3 .lt-ic .ico{width:44px;height:44px}
.lt .lt-grid.cols3 .lt-btn small{font-size:17px;font-weight:700}
.lt .lt-pars{gap:8px;margin-top:6px}
.lt-par{flex-direction:row;gap:8px;align-items:center;font-size:18px}.lt-par .lt-ic{font-size:30px}.lt-par .lt-ic .ico{width:34px;height:34px}.lt-par small{font-size:15px}
.panel.lt{padding:12px 14px}.lt h2{margin-bottom:8px}
.lt .lt-pars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lt-par{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:8px;row-gap:0;align-items:center}
.lt-par>:first-child{grid-row:1/3}.lt-par small{grid-column:2/4;font-size:14px;line-height:1.2}.lt-par b{font-size:18px}
.lt .hello h2,.lt h2{font-size:20px}
.mdash .kd-pmore{display:block;width:100%;min-height:44px;text-align:center;color:var(--accent);font-weight:600;background:none;border:0;font-size:15px}

/* ===== V5.1 모바일 2차: 헤더 축소 · 카드 분리 · 색 대비 ===== */
.app:not(.boardmode):not(.kdmode)>.top{margin-bottom:10px;padding-top:calc(env(safe-area-inset-top) + 6px);padding-bottom:6px;border-radius:0 0 22px 22px}
.app:not(.boardmode):not(.kdmode)>.top .toprow{min-height:22px;gap:8px}
.app:not(.boardmode):not(.kdmode)>.top .famtag{font-size:12px;padding:1px 10px}
.app:not(.boardmode):not(.kdmode)>.top .toprow .title.tl{font-size:17px}
.app:not(.boardmode):not(.kdmode)>.top .timeblock{margin:0;gap:10px}
.app:not(.boardmode):not(.kdmode)>.top .timeblock>svg{width:44px;height:44px}
.app:not(.boardmode):not(.kdmode)>.top .timebig{font-size:26px}.app:not(.boardmode):not(.kdmode)>.top .timebig small{font-size:14px}
.app:not(.boardmode):not(.kdmode)>.top .datesm{font-size:14px}
.app:not(.boardmode):not(.kdmode)>.top .wxslot{width:70px;height:46px}
/* 카드 분리 */
.panel.msec{padding:12px 14px;margin:0 0 10px;box-shadow:none}
.panel.msec h2{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:16px;font-weight:600}
.panel.msec h2 .ico{width:20px;height:20px}
.panel.msec .notelist .note{padding:6px 0;border:0;background:none}
.panel.msec .prepchk{background:var(--soft);border:0}
.panel.msec .pr{padding:4px 0;border:0;background:none}
.msec .item{padding:2px 0;min-height:48px;align-items:center;border:0;background:none}.msec .imeta{display:none}
.msec .lv-more,.msec .kd-pmore{display:block;width:100%;min-height:44px;text-align:center;color:var(--accent);font-weight:600;background:none;border:0;font-size:15px}
.m-fams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;margin:0;font-size:15px}
.m-fm{display:flex;align-items:center;gap:6px;min-height:40px;min-width:0}.m-fm>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub)}
.m-fm i{font-style:normal}
/* 색 대비: 강조색 배경 위 글자는 항상 accent-ink */
.lt-btn.on,.lt-btn.on *,.mq.main,.mq.main *,.qtile.main,.qtile.main *{color:var(--accent-ink)!important}
/* 둘째: 위치 버튼 크기 */
.lt .lt-grid.cols3 .lt-btn{min-height:72px;padding:4px 2px;gap:2px}
.lt .lt-grid.cols3 .lt-ic{font-size:30px}.lt .lt-grid.cols3 .lt-ic .ico{width:34px;height:34px}
.lt .lt-grid.cols3 .lt-btn small{font-size:16px}
.lt button.lt-btn{min-height:72px}
.panel.msec .empty{border:0;background:none;padding:6px 0;min-height:0}

/* ===== V5.1 모바일 3차: 글자 역할 · 정렬 · 탭별 다듬기 (kdmode 제외) ===== */
/* 글자 역할: 카드 제목 16/600 · 본문 16/500 · 보조 13/400 */
.app:not(.kdmode):not(.boardmode) .panel>h2,.app:not(.kdmode):not(.boardmode) .panel.msec h2{font-family:var(--body);font-size:16px;font-weight:600;line-height:1.3}
.app:not(.kdmode):not(.boardmode) .panel.hello h2{font-family:var(--body);font-size:20px;font-weight:600}
.app:not(.kdmode):not(.boardmode) .lt h2,.app:not(.kdmode):not(.boardmode) .panel.lt>h2{font-size:20px;font-weight:700}
.app:not(.kdmode):not(.boardmode) .ititle,.app:not(.kdmode):not(.boardmode) .mr-n,.app:not(.kdmode):not(.boardmode) .note .txt,.app:not(.kdmode):not(.boardmode) .pr-text,.app:not(.kdmode):not(.boardmode) .m-fm b{font-size:16px;font-weight:500}
.app:not(.kdmode):not(.boardmode) .imeta,.app:not(.kdmode):not(.boardmode) .ntime,.app:not(.kdmode):not(.boardmode) .fc-t,.app:not(.kdmode):not(.boardmode) .mr-d,.app:not(.kdmode):not(.boardmode) .m-al,.app:not(.kdmode):not(.boardmode) .mt small,.app:not(.kdmode):not(.boardmode) .hint,.app:not(.kdmode):not(.boardmode) .pr-from{font-size:13px;font-weight:400}
.app:not(.kdmode):not(.boardmode) .itime,.app:not(.kdmode):not(.boardmode) .mr-t{font-size:15px;font-weight:600}
/* 버튼 안 아이콘·글자 정렬 */
.app:not(.kdmode):not(.boardmode) :is(.btn,.pill,.mini,.preset,.qwbtn,.chip){display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.2;text-align:center}
.app:not(.kdmode):not(.boardmode) .mq,.app:not(.kdmode):not(.boardmode) .lt-btn{display:flex;flex-direction:column;align-items:center;justify-content:center}
/* 첫째 체크: 보이는 크기만 작게, 터치 44px 유지 */
.app:not(.kdmode) .tick{position:relative;border:0!important;background:transparent!important;padding:0}
.app:not(.kdmode) .tick::after{display:none}
.app:not(.kdmode) .tick::before{content:'';position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:2.5px solid var(--sub);box-sizing:border-box}
.app:not(.kdmode) .item.done .tick::before,.app:not(.kdmode) .tick[aria-checked="true"]::before{background:var(--good);border-color:var(--good)}
.app:not(.kdmode) .tick svg{position:relative;z-index:1;width:16px;height:16px}
/* 세그먼트 (일정·기록 공통) */
.app:not(.kdmode):not(.boardmode) .row.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:4px;border-radius:14px;background:var(--soft);margin:0 0 10px}
.app:not(.kdmode):not(.boardmode) .row.seg .pill{height:44px;min-height:44px;border-radius:10px;background:transparent;border:0;padding:0 8px;font-size:15px;font-weight:600;color:var(--ink);box-shadow:none}
.app:not(.kdmode):not(.boardmode) .row.seg .pill[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
/* 달력 */
.app:not(.kdmode) .panel.calpanel{padding:8px 10px}
.app:not(.kdmode) .calhead{margin-bottom:2px;gap:4px}
.app:not(.kdmode) .calttl{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0}
.app:not(.kdmode) .calttl h2{font-family:var(--body);font-size:18px;font-weight:600;margin:0;white-space:nowrap}
.app:not(.kdmode) .todaybtn{min-height:36px!important;height:36px;padding:0 12px;font-size:13px;font-weight:600}
.app:not(.kdmode) .todaybtn{position:relative}.app:not(.kdmode) .todaybtn::after{content:'';position:absolute;inset:-4px 0}
.app:not(.kdmode) .calpanel .wdrow span{padding:2px 0;font-size:12px}
.app:not(.kdmode) .calpanel .grid{gap:2px}
.app:not(.kdmode) .calpanel .day{min-height:44px;padding:2px 1px;gap:0}
.app:not(.kdmode) .calpanel .day .badges{margin-top:0;font-size:11px;grid-template-columns:repeat(3,minmax(0,12px))}
.app:not(.kdmode) .calpanel .legend{margin:4px 2px 0;font-size:11px;line-height:1.3}
/* 가족 탭 카드 */
.famgrid{align-items:stretch}
.famcard{align-items:flex-start;gap:6px}
.famcard .fc-top{flex-wrap:nowrap}
.famcard .fc-st{margin:0}
.famcard .fc-prog{display:flex;flex-direction:column;gap:3px;width:100%;margin-top:auto}
.famcard .fc-prog small{font-size:12px;color:var(--sub)}
/* 더보기 */
.mlist .mrow:not(:has(.mcnt))::after{content:'›';margin-left:auto;font-size:22px;color:var(--sub);flex:none}
.pbadge{background:#F08C00;color:#1b1200;border-radius:999px;font-size:12px;font-weight:700;padding:2px 8px}
/* 둘째 부모 상태 */
.lt .lt-par .lt-ic{font-size:22px!important;line-height:1}.lt .lt-par .lt-ic .ico{width:26px;height:26px}
/* Orb 겹침 줄이기: 다가오는 날 배지를 오른쪽 끝이 아니라 앞쪽으로 */
.app:not(.kdmode) .up .dday{order:-1;font-family:var(--body);font-size:14px;font-weight:600;padding:2px 10px;min-width:52px;text-align:center}
.app:not(.kdmode) .todaybtn{min-height:44px!important;height:44px}.app:not(.kdmode) .todaybtn::after{display:none}
.app:not(.kdmode):not(.boardmode) .trow .mini{min-width:44px;min-height:44px}
/* 글자 대비 보정 (모바일) */
.app:not(.kdmode) .top .datesm{opacity:1}
.app:not(.kdmode):not(.boardmode) :is(.kd-prog,.pr-from,.ntime,.imeta,.fc-t,.mr-d,.m-al){color:var(--ink);opacity:.85}
.app:not(.kdmode):not(.boardmode) .prepchk{color:var(--ink)}
.app:not(.kdmode) .calpanel .day.out{opacity:.72}
.app:not(.kdmode) .calpanel .day.sun .dn,.app:not(.kdmode) .calpanel .wdrow .sun{color:#9e1f17}
.app:not(.kdmode) .calpanel .day.sat .dn,.app:not(.kdmode) .calpanel .wdrow .sat{color:#194f9c}
html[data-theme=forest] .app:not(.kdmode) .calpanel .day.sun .dn,html[data-theme=forest] .app:not(.kdmode) .calpanel .wdrow .sun,html[data-theme=midnight] .app:not(.kdmode) .calpanel .day.sun .dn,html[data-theme=midnight] .app:not(.kdmode) .calpanel .wdrow .sun,html.night .app:not(.kdmode) .calpanel .day.sun .dn,html.night .app:not(.kdmode) .calpanel .wdrow .sun{color:#ff9a92}
html[data-theme=forest] .app:not(.kdmode) .calpanel .day.sat .dn,html[data-theme=forest] .app:not(.kdmode) .calpanel .wdrow .sat,html[data-theme=midnight] .app:not(.kdmode) .calpanel .day.sat .dn,html[data-theme=midnight] .app:not(.kdmode) .calpanel .wdrow .sat,html.night .app:not(.kdmode) .calpanel .day.sat .dn,html.night .app:not(.kdmode) .calpanel .wdrow .sat{color:#9dbfff}
/* 내일 챙길 것 카드: 밤·어두운 테마에서도 읽히도록 카드색 사용, 중첩 테두리 대신 왼쪽 띠 */
.panel.msec.prepnow,.panel.msec.prepsoft,.panel.msec.prepwarn{background:var(--card);border:0}
.panel.msec.prepnow{box-shadow:inset 4px 0 0 #F08C00}.panel.msec.prepwarn{box-shadow:inset 4px 0 0 #E5484D}
.app:not(.kdmode) .prepchk[aria-checked="true"]{opacity:1;color:var(--ink)}
.app:not(.kdmode) .calpanel .day.out{opacity:.8}
.app:not(.kdmode) .calpanel .day.out{opacity:1}
.app:not(.kdmode) .calpanel .day.out .dn{color:var(--sub)!important}
.app:not(.kdmode) .calpanel .day.out .badges{opacity:.6}

/* ============================================================
   V8-B 최종 디자인 — 모바일 (태블릿 kdmode / 거실 보드는 아래 별도 블록)
   html.v8mob 범위. 색은 모두 기존 테마 토큰(--page/--card/--bg/--accent/--ink/--sub/--line) 사용.
   ============================================================ */
html.v8mob body{background:radial-gradient(ellipse at 92% 3%,var(--bg),transparent 46%) no-repeat fixed,linear-gradient(160deg,var(--page),var(--page)) fixed;font-size:16px}
html.v8mob .app{max-width:480px;padding:0 14px 116px}
html.v8mob .app>.top{background:none;margin:0;padding:calc(env(safe-area-inset-top) + 14px) 0 0;border-radius:0}
html.v8mob .v8top{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;gap:10px}
html.v8mob .v8brand{font-family:var(--body);font-size:20px;font-weight:700;letter-spacing:-.04em;color:var(--ink)}
html.v8mob .v8chip{display:flex;flex-direction:column;align-items:flex-end;background:rgba(255,255,255,.42);border-radius:15px;padding:6px 10px 6px;min-width:112px;color:var(--ink)}
html.night.v8mob .v8chip,html.v8mob.night .v8chip{background:rgba(255,255,255,.1)}
html.v8mob .v8chip small{font-size:12px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
html.v8mob .v8chip .wxslot{display:block;width:96px;height:28px;margin:0;flex:none}
html.v8mob .wxfloat{flex-direction:row;gap:6px;justify-content:flex-end}
html.v8mob .wxfloat .wxi{width:24px;height:24px}
html.v8mob .wxfloat .wxt{font-family:var(--body);font-weight:700;font-size:19px}
html.v8mob .wxfloat .wxl{display:none}
/* 인사 줄 */
html.v8mob .v8greet{display:flex;align-items:center;gap:9px;margin:0 0 14px}
html.v8mob .v8greet .av,html.v8mob .v8greet>img,html.v8mob .v8greet>span:first-child{flex:none}
html.v8mob .v8gt{min-width:0;flex:1}
html.v8mob .v8gt h1{font-family:var(--body);font-size:20px;font-weight:700;letter-spacing:-.04em;margin:0;line-height:1.25;color:var(--ink)}
html.v8mob .v8gt small{display:block;font-size:13px;font-weight:400;color:var(--sub);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.v8mob .v8greet.big .v8gt h1{font-size:22px}
html.v8mob .v8clock{margin-left:auto;flex:none;white-space:nowrap;font-weight:700;font-size:23px;letter-spacing:-.04em;color:var(--ink);font-variant-numeric:tabular-nums}
html.v8mob .v8clock small{font-size:13px;font-weight:500;letter-spacing:0}
html.v8mob .v8greet .bellbtn{position:relative;flex:none;min-width:44px;min-height:44px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.45);display:grid;place-items:center;margin:0}
html.v8mob .v8greet .bellbtn img{width:22px;height:22px}
html.v8mob .v8greet .bellbtn .badge{position:absolute;top:-2px;right:-2px}
/* 페이지 제목 */
html.v8mob .v8page{margin:8px 0 14px}
html.v8mob .v8page h1{font-family:var(--body);font-size:26px;font-weight:700;letter-spacing:-.05em;margin:0 0 3px;color:var(--ink);line-height:1.2}
html.v8mob .v8page p{margin:0;font-size:13px;color:var(--sub);line-height:1.4}
/* 카드 표면 */
html.v8mob .panel,html.v8mob .calpanel,html.v8mob .msec{background:var(--card);border:1px solid rgba(255,255,255,.75);box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9);border-radius:19px;padding:14px;margin:0 0 12px}
html.night.v8mob .panel,html.v8mob.night .panel,html.v8mob.night .calpanel,html.v8mob.night .msec{border-color:rgba(255,255,255,.08);box-shadow:0 7px 15px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,.05)}
html.v8mob .panel>h2,html.v8mob .msec>h2{display:flex;align-items:center;gap:6px;font-family:var(--body);font-size:16px;font-weight:700;letter-spacing:-.03em;margin:0 0 10px;line-height:1.3;color:var(--ink)}
html.v8mob .panel>h2 img.ico,html.v8mob .v8si{width:22px;height:22px;flex:none}
html.v8mob .v8hi{width:24px;height:24px;flex:none;object-fit:contain}
/* 빠른 조작 */
html.v8mob .panel.quick{padding:10px 4px;margin-bottom:12px}
html.v8mob .mqrow{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0}
html.v8mob .mq{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:56px;padding:2px 0;background:none!important;border:0;border-right:1px solid var(--line);border-radius:0;color:var(--ink);box-shadow:none}
html.v8mob .mq:last-child{border-right:0}
html.v8mob .mq.main{background:none!important;color:var(--ink)}
html.v8mob .mq-i{display:grid;place-items:center;width:34px;height:34px}
html.v8mob .mq-i .v8ic{width:32px;height:32px;object-fit:contain}
html.v8mob .v8emo{font-size:26px;line-height:1}
html.v8mob .mq-t{font-size:12px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
/* 일정/목록 행: 시간 배지 48px 고정, 제목 시작선 통일 */
html.v8mob .mrow{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:44px;padding:4px 0;border-bottom:1px solid var(--line);background:none;border-radius:0;text-align:left;width:100%;font-size:14px}
html.v8mob .mrow:last-of-type{border-bottom:0}
html.v8mob .mr-t{width:48px;text-align:center;background:var(--line);color:var(--accent);border-radius:10px;padding:3px 0;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
html.v8mob .mr-n{min-width:0;overflow-wrap:anywhere;font-weight:500;color:var(--ink)}
html.v8mob .mr-d{font-size:12px;color:var(--sub)}
/* 가족 지금 */
html.v8mob .m-fams{display:grid;grid-template-columns:1fr;gap:2px}
html.v8mob .m-fm{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:36px;font-size:14px}
html.v8mob .m-fm b{font-weight:600}
html.v8mob .m-fm>span:last-child{text-align:right;color:var(--ink)}
/* 진행 링 */
html.v8mob .v8ring{margin-left:auto;width:46px;height:46px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--line) 0);display:grid;place-items:center;flex:none}
html.v8mob .v8ring b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--card);font-size:12px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
/* 하단 5탭: 떠 있는 알약 */
html.v8mob .bnav{background:none;border:0;padding:0 10px calc(env(safe-area-inset-bottom) + 10px);pointer-events:none}
html.v8mob .bnav .tabs{pointer-events:auto;margin:0 auto;max-width:460px;background:var(--card);border-radius:24px;padding:5px;gap:2px;box-shadow:0 8px 22px rgba(52,78,120,.18),inset 0 1px 1px rgba(255,255,255,.8)}
html.v8mob .bnav .tabs button{min-height:52px;border-radius:19px;color:var(--ink);font-size:11px;font-weight:500;flex:1}
html.v8mob .bnav .tabs button[aria-current=page]{background:var(--line);color:var(--accent);font-weight:700}
html.v8mob .bnav .tabs button i img{width:24px;height:24px;opacity:.85}
html.v8mob .app:not(.boardmode):not(.kdmode)>.top .v8chip .wxslot{width:96px;height:28px}
html.v8mob .v8chip{min-width:0;padding:5px 10px 6px}

/* ---- V8-B 모바일 2: 분할 버튼 · 날짜 이동 · 달력 · 목록 ---- */
html.v8mob .albh{display:none}
html.v8mob .row.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;background:rgba(255,255,255,.38);border-radius:16px;padding:4px;margin:0 0 12px;box-shadow:inset 0 1px 2px rgba(52,78,120,.08)}
html.night.v8mob .row.seg,html.v8mob.night .row.seg{background:rgba(255,255,255,.07)}
html.v8mob .row.seg .pill{min-height:44px;border-radius:12px;border:0;background:none;color:var(--sub);font-weight:500;font-size:15px;box-shadow:none;padding:0 6px}
html.v8mob .row.seg .pill[aria-pressed=true]{background:var(--card);color:var(--accent);font-weight:700;box-shadow:0 3px 8px rgba(52,78,120,.12)}
html.v8mob .albnavrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0 0 14px;align-items:stretch}
html.v8mob .albnav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;margin:0;padding:4px;background:var(--card);border-radius:19px;box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9);min-height:52px}
html.v8mob .albarrow{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:14px;background:var(--line);border:0;color:var(--accent);font-size:24px;display:grid;place-items:center;padding:0 0 3px}
html.v8mob .albtitle{text-align:center;display:block}
html.v8mob .albtitle b{font-size:16px;font-weight:700;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
html.v8mob .albtoday{min-width:56px;min-height:52px;padding:0 14px;border-radius:19px;background:var(--card);color:var(--accent);font-weight:700;font-size:14px;box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9)}
html.v8mob .calpanel .calhead{display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;gap:6px;align-items:center;margin:0 0 8px}
html.v8mob .calpanel .calttl{text-align:center;display:block}
html.v8mob .calpanel .calttl h2{font-size:17px;font-weight:700;letter-spacing:-.03em}
html.v8mob .calpanel .mini.nav{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:14px;background:var(--line);color:var(--accent);border:0;font-size:22px;padding:0 0 2px}
html.v8mob .calpanel .todaybtn{min-height:44px!important;height:44px;padding:0 14px;border-radius:14px;background:var(--line);color:var(--accent);font-weight:700;font-size:14px}
html.v8mob .addfab{background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 18px rgba(52,78,120,.28)}

/* ---- V8-B 모바일 3: 우선순위 보강 + 기록 카드 ---- */
html.v8mob .app:not(.kdmode):not(.boardmode) .row.seg .pill{background:none;color:var(--sub);border:0;font-weight:500}
html.v8mob .app:not(.kdmode):not(.boardmode) .row.seg .pill[aria-pressed=true]{background:var(--card);color:var(--accent);font-weight:700}
html.v8mob .mcard{display:flex;flex-direction:column;gap:8px;background:var(--card);border-radius:19px;padding:12px 14px 12px;margin:0 0 12px;border:1px solid rgba(255,255,255,.75);box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9)}
html.v8mob .mcard .mfoot{display:contents}
html.v8mob .mcard .mby{order:0;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sub);font-weight:500}
html.v8mob .mcard .mby .av,html.v8mob .mcard .mby img{width:24px!important;height:24px!important;border-radius:50%;flex:none}
html.v8mob .mcard .mphotobtn{order:1;display:block;width:100%;border-radius:14px;overflow:hidden;padding:0}
html.v8mob .mcard .mphoto{display:block;width:100%;height:auto;max-height:340px;object-fit:cover;border-radius:14px}
html.v8mob .mcard .mtext{order:2;font-size:16px;line-height:1.5;color:var(--ink)}
html.v8mob .mcard .mact{order:3;display:flex;align-items:center;gap:6px;margin:0}
html.v8mob .mcard .mact .pill{min-height:44px;border-radius:14px;background:none;border:0;color:var(--ink);font-weight:600;padding:0 10px}
html.v8mob .mcard .mact .pill[aria-pressed=true]{background:none;color:#B8332B}
html.v8mob .mcard .mact .mini{min-height:44px;min-width:44px;margin-left:auto}
html.v8mob .albdate,html.v8mob .albday>h3{font-size:14px;font-weight:700;color:var(--sub);margin:10px 2px 6px}

/* ---- V8-B 모바일 4: 2열 짝 카드 · 기록 날짜 묶음 ---- */
html.v8mob .v8duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:0 0 12px;align-items:stretch}
html.v8mob .v8col{display:flex;flex-direction:column;gap:10px;min-width:0}
html.v8mob .v8col>.panel{margin:0;flex:0 0 auto;padding:12px 10px}
html.v8mob .v8col>.panel:last-child{flex:1 1 auto}
html.v8mob .v8duo .panel>h2{font-size:15px;gap:5px;margin-bottom:8px}
html.v8mob .v8duo .mrow{grid-template-columns:44px minmax(0,1fr);gap:5px;font-size:12px;min-height:40px;letter-spacing:-.02em}
html.v8mob .v8duo .mr-t{width:44px;font-size:11px}
html.v8mob .v8duo .mr-d,html.v8mob .v8duo .m-al{display:none}
html.v8mob .v8duo .m-fm{grid-template-columns:24px minmax(0,1fr) auto;gap:5px;font-size:13px}
html.v8mob .v8duo .m-fm .av,html.v8mob .v8duo .m-fm img.av{width:24px;height:24px}
html.v8mob .panel.albday{background:none;border:0;box-shadow:none;padding:0;margin:0}
html.v8mob .panel.albday>h2{font-size:14px;font-weight:700;color:var(--sub);margin:12px 2px 6px}

/* ---- V8-B 모바일 5: 더보기(⋯) 버튼은 배경 없이 · 둘째 화면 ---- */
html.v8mob .notes .mini,html.v8mob .msec .imore,html.v8mob .item .imore,html.v8mob .iact .mini{background:none;border:0;box-shadow:none;color:var(--sub)}
html.v8mob .notes .noteh .mini,html.v8mob .notes .noteh .btn{background:var(--line);color:var(--accent);border-radius:14px}
html.v8mob .panel.lt{border-radius:19px}
html.v8mob .panel.hello.lt{display:block}
html.v8mob .panel.hello.lt>h2{display:none}
html.v8mob .lt-pars{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html.v8mob .lt-btn{border-radius:19px;background:var(--card);border:1px solid var(--line);box-shadow:0 4px 10px rgba(52,78,120,.08)}
html.v8mob .lt-btn.on{background:var(--line);border-color:var(--accent)}

/* ============================================================
   V8-B 태블릿(kdmode) · 거실 보드 — 표면 스타일만 (치수·배치는 승인된 V5.1 값 유지)
   ============================================================ */
html.v8tab body,html.v8board body{background:radial-gradient(ellipse at 92% 2%,var(--bg),transparent 44%) no-repeat fixed,linear-gradient(160deg,var(--page),var(--page)) fixed}
html.v8tab .kdmode>header.top,html.v8board .boardmode>header.top{background:none;border-radius:0}
html.v8tab .kdmode .tabs{background:var(--card);box-shadow:0 6px 16px rgba(52,78,120,.12),inset 0 1px 1px rgba(255,255,255,.8)}
html.v8tab .kdmode .tabs button{color:var(--ink)}
html.v8tab .kdmode .tabs button[aria-current=page]{background:var(--line);color:var(--accent);font-weight:700}
html.v8tab .kdmode .panel,html.v8tab .kdmode .mcard,html.v8tab .kdmode .calpanel{background:var(--card);border:1px solid rgba(255,255,255,.75);box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9)}
html.night.v8tab .kdmode .panel,html.v8tab.night .kdmode .panel,html.v8tab.night .kdmode .mcard,html.v8tab.night .kdmode .calpanel{border-color:rgba(255,255,255,.08);box-shadow:0 7px 15px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,.05)}
html.v8tab .kdmode .panel>h2{font-family:var(--body);font-weight:700;letter-spacing:-.03em}
html.v8tab .kdmode .seg .pill[aria-pressed=true]{background:var(--card);color:var(--accent);font-weight:700;box-shadow:0 3px 8px rgba(52,78,120,.12)}
html.v8tab .kdmode .row.seg{background:rgba(255,255,255,.38);border-radius:16px}
html.night.v8tab .kdmode .row.seg,html.v8tab.night .kdmode .row.seg{background:rgba(255,255,255,.07)}
html.v8board .boardmode .panel,html.v8board .boardmode .card{background:var(--card);border:1px solid rgba(255,255,255,.75);box-shadow:0 7px 15px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9)}
html.night.v8board .boardmode .panel,html.v8board.night .boardmode .panel,html.v8board.night .boardmode .card{border-color:rgba(255,255,255,.08);box-shadow:0 7px 15px rgba(0,0,0,.28)}

/* ---- V8-B 검증 보정: 배경색 명시 · 어두운 테마(포레스트/미드나잇)에서 반투명 흰 칩 대신 어두운 칩 · 하트 대비 ---- */
html.v8 body{background-color:var(--page)}
html[data-theme=forest].v8mob .v8chip,html[data-theme=midnight].v8mob .v8chip,html[data-theme=forest].v8mob .v8greet .bellbtn,html[data-theme=midnight].v8mob .v8greet .bellbtn,html[data-theme=forest].v8mob .row.seg,html[data-theme=midnight].v8mob .row.seg{background:rgba(255,255,255,.1)}
html.v8mob.night .v8greet .bellbtn{background:rgba(255,255,255,.1)}
html[data-theme=forest].v8tab .kdmode .row.seg,html[data-theme=midnight].v8tab .kdmode .row.seg{background:rgba(255,255,255,.1)}
html.night .mcard .mact .pill[aria-pressed=true],html[data-theme=forest] .mcard .mact .pill[aria-pressed=true],html[data-theme=midnight] .mcard .mact .pill[aria-pressed=true],html.night .kdmode .kdalb .mfoot .pill[aria-pressed=true],html[data-theme=forest] .kdmode .kdalb .mfoot .pill[aria-pressed=true],html[data-theme=midnight] .kdmode .kdalb .mfoot .pill[aria-pressed=true]{color:#ff9b93}

/* ============ V8-B 2차 재현: 라인 아이콘 메뉴 · 태블릿 캡슐 메뉴 ============ */
.v8tic{width:23px;height:23px;display:block;margin:0 auto}
html.v8mob .bnav .tabs button i{display:block;height:24px;line-height:0}
html.v8mob .bnav .tabs button{gap:3px;display:flex;flex-direction:column;align-items:center;justify-content:center}
html.v8mob .bnav .tabs button[aria-current=page]{background:var(--soft);color:var(--accent)}
html.v8tab .kdmode .kd-top .tabs{display:flex;gap:2px;padding:5px;border-radius:999px;background:rgba(255,255,255,.62);box-shadow:0 5px 14px rgba(52,78,120,.1),inset 0 1px 1px rgba(255,255,255,.9)}
html.night.v8tab .kdmode .kd-top .tabs{background:rgba(255,255,255,.08)}
html.v8tab .kdmode .kd-top .tabs button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;width:auto;min-width:0;height:44px;min-height:44px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:600;background:transparent;color:var(--ink)}
html.v8tab .kdmode .kd-top .tabs button i{display:block;line-height:0}
html.v8tab .kdmode .kd-top .tabs button .v8tic{width:21px;height:21px}
html.v8tab .kdmode .kd-top .tabs button[aria-current=page]{background:var(--soft);color:var(--accent);font-weight:700;box-shadow:none}

/* ============ V8-B 3차 재현: 시안 수치 기준 (오션 팔레트 · 타이포 · 카드 · 체크 · 칭찬) ============ */
html[data-theme=ocean]:not(.night){--bg:#b8d5fa;--page:#dce7fa;--card:#f8faff;--soft:#e6edff;--accent:#2a5db8;--accent-ink:#ffffff;--ink:#142139;--sub:#506a98;--line:#d9e1ef}
html[data-theme=ocean]:not(.night).v8 body{background:radial-gradient(ellipse at 90% 8%,#b8d5fa,transparent 45%) no-repeat fixed,linear-gradient(145deg,#d8e7fc,#e9edf8 60%,#dce7fa) fixed;background-color:#e6edf9}
html[data-theme=ocean]:not(.night).v8mob .panel,html[data-theme=ocean]:not(.night).v8mob .mcard{background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(246,248,255,.81));border:1px solid rgba(255,255,255,.79)}
html[data-theme=ocean]:not(.night).v8tab .kdmode .panel,html[data-theme=ocean]:not(.night).v8tab .kdmode .mcard,html[data-theme=ocean]:not(.night).v8tab .kdmode .calpanel{background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(246,248,255,.81))}
html[data-theme=ocean]:not(.night) .bnav .tabs{background:rgba(255,255,255,.94)}
html.v8mob body{font-size:15px;line-height:1.45;letter-spacing:-.25px}
html.v8mob .panel,html.v8mob .mcard{box-shadow:0 8px 18px rgba(66,104,158,.13),inset 0 1px 2px #fff;border-radius:19px}
html.v8mob .panel.msec{padding:12px}
html.v8mob .panel>h2,html.v8mob .msec>h2{font-size:16px;font-weight:650;letter-spacing:-.45px;margin:0 0 10px;display:flex;align-items:center;gap:5px;line-height:1.35}
html.v8mob .panel>h2 .v8hi,html.v8mob .panel>h2 .ico{width:21px;height:21px;border-radius:5px;object-fit:contain;flex:none}
.v8bh{font-weight:400}
html.v8mob .v8brand{font-weight:600;letter-spacing:-1px}
html.v8mob .v8gt h1{font-weight:700;letter-spacing:-.7px}
html.v8mob .v8clock{font-weight:750;font-size:23px}
html.v8mob .v8greet>.av,html.v8mob .v8greet>span:first-child{box-shadow:none}
html.v8mob .v8greet .av,html.v8mob .v8greet [class*=avatar]{border-color:transparent!important}
/* 체크 — 승인 시안: 21px 둥근 사각, 터치 영역은 44px 유지 */
html.v8mob .item{align-items:center;min-height:44px;gap:4px;padding:0;border-bottom:0}
html.v8mob .item .tick{width:44px;height:44px;min-width:44px;border:0;background:none;box-shadow:none;position:relative;flex:none;color:#fff;display:grid;place-items:center;border-radius:0}
html.v8mob .item .tick:before{content:'';position:absolute;left:11px;top:11px;width:22px;height:22px;box-sizing:border-box;border:1.5px solid #a9b9d2;border-radius:7px;background:rgba(255,255,255,.8)}
html.v8mob .item .tick[aria-checked=true]:before{background:var(--accent);border-color:var(--accent)}
html.v8mob .item .tick svg{position:relative;width:15px;height:15px;stroke-width:3.2}
html.v8mob .item .ititle{font-size:15px;font-weight:400;line-height:1.4}
html.v8mob .item .imeta{font-size:12px;color:var(--sub)}
html.v8mob .item.done .ititle{text-decoration:line-through;color:#697386}
/* 준비물 — 세로 체크리스트 */
html.v8mob .prepgroup .sub,html.v8tab .kdmode .prepgroup .sub{font-size:12px;color:var(--sub);margin:-4px 0 4px;font-weight:500}
html.v8mob .prep,html.v8tab .kdmode .prep{display:flex;flex-direction:column;gap:0}
html.v8mob .prepchk,html.v8tab .kdmode .prepchk{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:15px;font-weight:400;color:var(--ink);text-align:left}
html.v8mob .prepchk .pbox,html.v8tab .kdmode .prepchk .pbox{width:21px;height:21px;box-sizing:border-box;border:1.5px solid #a9b9d2;border-radius:7px;background:rgba(255,255,255,.8);display:grid;place-items:center;color:#fff;font-size:13px;font-weight:700;flex:none;margin-left:1px}
html.v8mob .prepchk[aria-checked=true] .pbox,html.v8tab .kdmode .prepchk[aria-checked=true] .pbox{background:var(--accent);border-color:var(--accent)}
html.v8mob .prepchk[aria-checked=true],html.v8tab .kdmode .prepchk[aria-checked=true]{color:#697386;text-decoration:line-through}
html.v8mob .kd-pmore,html.v8tab .kdmode .kd-pmore{display:block;width:100%;min-height:44px;margin:2px 0 0;padding:0;background:none;border:0;color:var(--sub);font-size:12px;font-weight:600;text-align:center;border-radius:0;box-shadow:none}
html.v8mob .panel.prepsoft .kd-prog,html.v8mob .panel.prepnow .kd-prog{margin-left:auto;font-size:12px;color:var(--sub);font-weight:600}
/* 받은 칭찬 — 금빛 위젯 */
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8mob .panel.praise,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise{background:linear-gradient(145deg,#fffdf4,#fff1cf)!important}
html.v8mob .panel.praise .pr{border:0;background:none;padding:0;margin:0}
html.v8mob .panel.praise .pr-from{font-size:12px;margin:0 0 4px}
html.v8mob .panel.praise .pr-text{font-size:15px;font-weight:500;line-height:1.45;margin:0 0 6px}
html.v8mob .panel.praise .pr-new{font-size:10px}
html.v8mob .panel.praise .row{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}
html.v8mob .panel.praise .row .pill{min-height:44px;padding:0 14px;font-size:13px;font-weight:600;border-radius:999px;width:auto;flex:none}
html.v8mob .v8ps{display:block;font-size:12px;margin-top:4px}
html.v8mob .v8medal{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px}
html.v8mob .v8medal>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#fff4b6,#eab34e);box-shadow:0 3px 8px rgba(197,141,66,.2);color:#fff;font-size:24px;text-shadow:0 1px 2px #b17d27}
html.v8mob .v8medal b{font-size:23px;font-weight:700;color:var(--ink)}
html.v8mob .v8medal small{font-size:12px;margin-left:1px;color:var(--ink)}
html.v8mob .item .tick:before{left:11px!important;top:11px!important;margin:0!important;width:22px!important;height:22px!important;border-radius:7px!important;border:1.5px solid #a9b9d2!important;background:rgba(255,255,255,.8)!important}
html.v8mob .item .tick[aria-checked=true]:before,html.v8mob .item.done .tick:before{background:var(--accent)!important;border-color:var(--accent)!important}
html.v8mob .item.done .tick,html.v8mob .item .tick{background:none!important;border:0!important}
html.v8mob .item .ibody{padding-left:2px;min-width:0}
html.v8mob .prep,html.v8mob .prepgroup{background:none;border:0;padding:0;margin:0;box-shadow:none}
html.v8mob .panel.prepsoft,html.v8mob .panel.prepnow,html.v8mob .panel.prepwarn{padding:12px}
html.v8mob .panel.praise .kd-reply{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(197,141,66,.35);color:var(--ink);font-size:13px;font-weight:700;margin:2px 0 6px}
html.v8mob .app .prepchk,html.v8mob .app .prepchk[aria-checked=true],html.v8tab .kdmode .prepchk,html.v8tab .kdmode .prepchk[aria-checked=true]{background:none!important;border:0!important;box-shadow:none!important}
html.v8mob .v8greet .av{box-shadow:none!important}
.v8tile{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#d9eef3;color:#237e93;flex:none}
.v8tile .v8tic{width:16px;height:16px;stroke-width:2.2}
html.night .v8tile{background:rgba(120,200,215,.18);color:#8fd3e0}
html.v8mob .v8pn{font-size:12px;color:var(--sub);margin:-6px 0 4px;line-height:1.5}
html.v8mob .m-sp{flex:1}
/* 일정 시간 배지 · 한마디 말풍선 */
html.v8mob .mrow .mtm,html.v8mob .mrow time,html.v8mob .mrow .itime{background:var(--soft);color:var(--accent);font-size:12px;font-weight:500;padding:3px 5px;border-radius:10px;min-width:48px;text-align:center;white-space:nowrap}
html.v8mob .panel.notes .note{padding:6px 0 4px;border:0}
html.v8mob .panel.notes .notehead{font-size:12px}
html.v8mob .panel.notes .note .txt{background:var(--soft);border-radius:12px;padding:10px;font-size:15px;line-height:1.5;margin-top:6px}
html[data-theme=ocean]:not(.night).v8mob .panel.notes{background:linear-gradient(145deg,#fffaff,#f7e8ef)}
html[data-theme=ocean]:not(.night).v8mob .panel.notes .note .txt{background:#f9e9ef}
html.v8mob .mrow{font-size:15px}
html.v8mob .mrow .mr-t{background:var(--soft);color:var(--accent);font-size:12px;font-weight:500;padding:3px 5px;border-radius:10px;min-width:48px;text-align:center;white-space:nowrap;letter-spacing:-.25px;flex:none}
html.v8mob .mrow .mr-n{font-size:15px;font-weight:400}
html.v8mob .mrow .mr-d{font-size:12px;color:var(--sub)}
html.v8mob .app:not(.kdmode):not(.boardmode) .mr-t{font-size:12px;font-weight:500;color:var(--accent)}
html.v8mob .app:not(.kdmode):not(.boardmode) .ititle,html.v8mob .app:not(.kdmode):not(.boardmode) .mr-n,html.v8mob .app:not(.kdmode):not(.boardmode) .note .txt,html.v8mob .app:not(.kdmode):not(.boardmode) .pr-text,html.v8mob .app:not(.kdmode):not(.boardmode) .m-fm b{font-size:15px;font-weight:400}
html.v8mob .app:not(.kdmode):not(.boardmode) .m-fm b{font-weight:600}
html.v8mob .app:not(.kdmode):not(.boardmode) .pr-text{font-weight:500}
html.v8mob .app:not(.kdmode):not(.boardmode) .item.done .ititle{font-weight:400}
html.v8mob .panel.notes .note .txt{margin-left:0}
html.v8mob .panel.notes .noteadd{min-height:44px;font-size:13px;padding:0 12px;border-radius:14px}
html.v8tab .kdmode .panel>h2 .v8hi{width:22px;height:22px;object-fit:contain;border-radius:5px;flex:none;margin-right:2px}
html.v8tab .kdmode .panel>h2{display:flex;align-items:center;gap:6px}

/* ---- 더보기(V8-B): 프로필 카드 · 그룹 목록 ---- */
.kdmode .mlist .mrow.kd-mrow::after{display:none}
.v8prof{margin:0 0 12px}
.v8pf-top{display:flex;align-items:center;gap:12px}
.v8pf-t{min-width:0;flex:1}
.v8pf-t b{display:block;font-size:18px;font-weight:700;letter-spacing:-.4px;line-height:1.3}
.v8pf-t small{display:block;font-size:13px;color:var(--sub)}
.v8pf-sw{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:14px;font-weight:700;flex:none}
.v8pf-sw .v8tic{width:18px;height:18px}
.v8pf-fam{display:flex;gap:14px;margin-top:12px;overflow:hidden}
.v8pf-m{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:48px;background:none;border:0;color:var(--ink)}
.v8pf-m small{font-size:12px;font-weight:600}
.v8pf-plus{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:24px;line-height:1}
.mlist .mrow .mic{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);font-size:19px;flex:none}
.mlist .mrow .mt b{font-size:15px;font-weight:650;letter-spacing:-.3px}
.mlist .mrow .mt small{font-size:12px;color:var(--sub)}
.v8stm{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:120px}
.v8stm b{font-size:13px;font-weight:700}
.v8stm i{display:block;width:120px;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.v8stm u{display:block;height:100%;background:var(--accent);border-radius:3px}
html.v8tab .kdmode .kdmore{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
html.v8tab .kdmode>.kdpage .v8prof,html.v8tab .kdmode .v8prof{margin-bottom:10px}
html[data-theme=ocean]:not(.night).v8mob .panel.albday,html.v8mob .panel.albday{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
html.v8mob .v8page h1{font-size:28px;font-weight:800;letter-spacing:-1px;line-height:1.2}
html.v8mob .v8page p{font-size:14px;color:var(--sub);margin-top:4px}
html.v8mob .mcard .mphoto img,html.v8mob .mcard>.mph img,html.v8mob .mcard img.mimg{aspect-ratio:16/9;object-fit:cover}
html.v8mob .mcard img.mphoto{aspect-ratio:16/9;width:100%;height:auto;object-fit:cover}
html.v8tab .kdmode .mcard img.mphoto{aspect-ratio:16/10;width:100%;height:auto;max-height:none;object-fit:cover}
html.v8tab .kdmode .kdp-moments h1,html.v8tab .kdmode .kdp-moments .title{font-weight:800;font-size:20px}
/* 일정 목록: [시간 배지 고정폭][제목][⋯] 그리드 — 시작선 정렬 */
html.v8mob .item:not(:has(.tick)){display:grid;grid-template-columns:80px minmax(0,1fr) 44px;column-gap:8px;align-items:start;padding:8px 0;min-height:48px}
html.v8mob .item:not(:has(.tick)) .emo{display:none}
html.v8mob .item:not(:has(.tick)) .ibody,html.v8mob .item:not(:has(.tick)) .ititle{display:contents}
html.v8mob .item:not(:has(.tick)) .itime{grid-column:1;grid-row:1;justify-self:stretch;text-align:center;margin:0;padding:3px 4px;font-size:12px;font-weight:500;background:var(--soft);color:var(--accent);border-radius:10px;white-space:nowrap;align-self:start}
html.v8mob .item:not(:has(.tick)) .imeta{grid-column:2;grid-row:2;font-size:12px}
html.v8mob .item:not(:has(.tick)) .iact{grid-column:3;grid-row:1/span 2;margin:0;justify-self:end;align-self:center}
html.v8mob .item:not(:has(.tick)) .ititle{font-size:15px}
html.v8mob .item:not(:has(.tick)) .iact{grid-row:1;margin:-8px 0}
html.v8mob .item:not(:has(.tick)){row-gap:0}
/* 둘째(큰 글자) — 승인 시안 Second: 큰 퀵 2버튼 · 엄마아빠 카드 · 64px 행 */
html.v8mob .lt-q .mqrow{display:grid;grid-template-columns:1fr 1fr}
html.v8mob .lt-q .mq{min-height:76px;flex-direction:row;gap:12px;font-size:18px;font-weight:650;justify-content:center;border:0}
html.v8mob .lt-q .mq:first-child{border-right:1px solid var(--line)}
html.v8mob .lt-q .mq .mq-t{font-size:18px}
html.v8mob .lt-q .v8ic{width:40px;height:40px}
html.v8mob .v8lt .panel>h2{font-size:19px}
html.v8mob .v8lt .item{min-height:64px}
html.v8mob .v8lt .item .tick{width:64px;height:64px;min-width:64px}
html.v8mob .v8lt .item .tick:before{left:18px!important;top:18px!important;width:28px!important;height:28px!important}
html.v8mob .v8lt .item .tick svg{width:20px;height:20px}
html.v8mob .v8lt .app:not(.kdmode):not(.boardmode) .ititle,html.v8mob .v8lt .ititle{font-size:18px}
html.v8mob .v8lt .prepchk{min-height:64px;font-size:18px}
html.v8mob .v8lt .prepchk .pbox{width:28px;height:28px}
html.v8mob .v8lt .m-fm{min-height:48px;font-size:16px}
html.v8mob .v8lt .m-fm b{font-size:17px}
html.v8mob .v8lt .mrow{min-height:56px;font-size:16px}
html.v8mob .v8lt .lt-pr{display:flex;align-items:center;gap:8px}
html.v8mob .v8lt .lt-pr>span:last-child{margin-left:auto;font-size:16px}
html.v8mob .v8lt .v8duo{grid-template-columns:1fr}
html.v8mob .v8lt .item .ititle,html.v8mob .v8lt .app:not(.kdmode):not(.boardmode) .item .ititle{font-size:18px!important}
html.v8mob .v8lt .m-fams{display:block}
html.v8mob .v8lt .m-fm.lt-pr{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%}
html.v8mob .v8lt .m-fm.lt-pr b{flex:none;text-align:left}
html.v8mob .v8lt .m-fm.lt-pr>span:last-child{margin-left:auto}
html.v8mob .v8lt .prepchk,html.v8mob .v8lt .app:not(.kdmode) .prepchk{font-size:18px}
html.v8mob .m-fm>.av,html.v8mob .m-fm>span.av{display:inline-grid;place-items:center;overflow:hidden;text-overflow:clip;white-space:normal;color:inherit;line-height:1}
.acc-i{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);font-size:19px;flex:none}
html.v8mob .mlist{background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(246,248,255,.81));border:1px solid rgba(255,255,255,.79);border-radius:19px;box-shadow:0 8px 18px rgba(66,104,158,.13);padding:2px 12px;margin-bottom:12px}
html.v8mob .mlist .mrow{border-bottom:1px solid var(--line);padding:8px 0;min-height:56px}
html.v8mob .mlist .mrow:last-child{border-bottom:0}
html.v8mob .acc{border-radius:19px}
html.v8mob h3.mgrp{font-size:13px;font-weight:700;color:var(--sub);margin:14px 4px 6px}
.v8sbar{display:block;width:100%;max-width:200px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin-top:5px}
.v8sbar u{display:block;height:100%;background:var(--accent);border-radius:3px}
/* 가족 탭 카드 — 시안: 상태는 칩 없이 텍스트, 진행 막대는 포인트 색, 펼침 표시 */
html.v8mob .famcard .fc-st{background:none!important;padding:0!important;border:0!important;border-radius:0;font-size:15px;min-height:0;box-shadow:none}
html.v8mob .famcard .fc-st b{font-weight:500}
html.v8mob .famcard .fc-t{font-size:12px;color:var(--sub)}
html.v8mob .famcard .fc-top{position:relative}
html.v8mob .famcard .fc-top::after{content:'';position:absolute;right:2px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid var(--sub);border-bottom:2px solid var(--sub);transform:rotate(45deg)}
html.v8mob .famcard .fc-prog .kd-bar i,html.v8mob .famcard .kd-bar i{background:var(--accent)}
html.v8mob .famcard .fc-prog small{font-size:12px;font-weight:600}
/* 시간 배지 대비 4.5:1 확보 */
html.v8mob .item:not(:has(.tick)) .itime,html.v8mob .mrow .mr-t,html.v8mob .app:not(.kdmode):not(.boardmode) .mr-t{color:var(--ink)}
html[data-theme=ocean]:not(.night).v8mob .item:not(:has(.tick)) .itime,html[data-theme=ocean]:not(.night).v8mob .mrow .mr-t,html[data-theme=ocean]:not(.night).v8mob .app:not(.kdmode):not(.boardmode) .mr-t{color:#2858a0}

.v8pf-sw{color:var(--ink)}

/* ---- 태블릿 대비 보정 ---- */
html.v8tab .kdmode .kd-alarm.off{opacity:1;color:var(--sub)}
html.v8tab .kdmode .kd-alarm.off *{color:var(--sub)}
html.v8tab .kdmode .pr-new,html.v8mob .pr-new{background:var(--ink)!important;color:var(--page)!important}
html.v8tab .kdmode .prepchk[aria-checked=true],html.v8mob .prepchk[aria-checked=true]{color:var(--sub)}
html.v8mob .item.done .ititle,html.v8mob .app:not(.kdmode):not(.boardmode) .item.done .ititle{color:var(--sub)}
html.v8tab .kdmode .sat,html.v8tab .kdmode .day.sat,html.v8tab .kdmode .wdrow .sat,html.v8tab .kdmode .dn.sat{color:#2358b0}
html.v8tab .kdmode .sun,html.v8tab .kdmode .day.sun,html.v8tab .kdmode .wdrow .sun,html.v8tab .kdmode .dn.sun{color:#b8332b}
html.night.v8tab .kdmode .sat,html.night.v8tab .kdmode .day.sat,html.night.v8tab .kdmode .wdrow .sat,html.night.v8tab .kdmode .dn.sat{color:#b9d2ff}
html.night.v8tab .kdmode .sun,html.night.v8tab .kdmode .day.sun,html.night.v8tab .kdmode .wdrow .sun,html.night.v8tab .kdmode .dn.sun{color:#ff9b93}
html.v8mob .sat,html.v8mob .wdrow .sat{color:#2358b0}
html.v8mob .sun,html.v8mob .wdrow .sun{color:#b8332b}
html.night.v8mob .sat,html.night.v8mob .wdrow .sat{color:#b9d2ff}
html.night.v8mob .sun,html.night.v8mob .wdrow .sun{color:#ff9b93}
/* 태블릿 캡슐 메뉴: 어두운 테마·밤 모드에서는 어두운 캡슐 + 밝은 글자, 활성 글자는 잉크색 */
html[data-theme=forest].v8tab .kdmode .kd-top .tabs,html[data-theme=midnight].v8tab .kdmode .kd-top .tabs{background:rgba(255,255,255,.1)}
html.v8tab .kdmode .kd-top .tabs button[aria-current=page]{color:var(--ink)}
html[data-theme=forest].v8tab .kdmode .kd-top .tabs button[aria-current=page],html[data-theme=midnight].v8tab .kdmode .kd-top .tabs button[aria-current=page],html.night.v8tab .kdmode .kd-top .tabs button[aria-current=page]{background:rgba(255,255,255,.16);color:var(--ink)}
html[data-theme=ocean]:not(.night).v8tab .kdmode .kd-top .tabs button[aria-current=page]{color:var(--accent)}
html.v8tab .kdmode .sun,html.v8tab .kdmode .day.sun,html.v8tab .kdmode .wdrow .sun,html.v8tab .kdmode .dn.sun{color:#a82a23}
html[data-theme=forest].v8tab .kdmode .sat,html[data-theme=forest].v8tab .kdmode .dn.sat,html[data-theme=midnight].v8tab .kdmode .sat,html[data-theme=midnight].v8tab .kdmode .dn.sat,html[data-theme=forest].v8tab .kdmode .wdrow .sat,html[data-theme=midnight].v8tab .kdmode .wdrow .sat{color:#b9d2ff}
html[data-theme=forest].v8tab .kdmode .sun,html[data-theme=forest].v8tab .kdmode .dn.sun,html[data-theme=midnight].v8tab .kdmode .sun,html[data-theme=midnight].v8tab .kdmode .dn.sun,html[data-theme=forest].v8tab .kdmode .wdrow .sun,html[data-theme=midnight].v8tab .kdmode .wdrow .sun{color:#ff9b93}
html.v8tab .kdmode .kd-alarm.off,html.v8tab .kdmode .kd-alarm.off *{color:var(--ink)}
html.v8mob .sun,html.v8mob .wdrow .sun{color:#a82a23}
html[data-theme=forest].v8mob .sat,html[data-theme=midnight].v8mob .sat,html[data-theme=forest].v8mob .wdrow .sat,html[data-theme=midnight].v8mob .wdrow .sat{color:#b9d2ff}
html[data-theme=forest].v8mob .sun,html[data-theme=midnight].v8mob .sun,html[data-theme=forest].v8mob .wdrow .sun,html[data-theme=midnight].v8mob .wdrow .sun{color:#ff9b93}
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8mob .panel.praise,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8mob .panel.praise .pr-text,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise .pr-text,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise h2{color:#3a2f16}
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8mob .panel.praise .pr-from,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise .pr-from,html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8mob .v8ps{color:#5b4a22}
html.v8tab .kdmode .kd-prog,html.v8mob .kd-prog{color:var(--ink)}
html.v8tab .kdmode .day.out,html.v8tab .kdmode .day.out.sun,html.v8tab .kdmode .day.out.sat{opacity:.72}
html.v8tab .kdmode .day.out,html.v8tab .kdmode .day.out.sun,html.v8tab .kdmode .day.out.sat{opacity:.86}
html.v8tab .kdmode .panel .kd-prog,html.v8mob .panel .kd-prog{color:var(--ink)!important}
html.v8tab .kd-prog,html.v8mob .kd-prog{color:var(--ink)!important}
html.v8tab .kdmode .day.out.has,html.v8tab .kdmode .day.out.has.sat,html.v8tab .kdmode .day.out.has.sun{opacity:1}
html.v8tab .kdmode .dn.sat{color:#1f4f9e}
/* 태블릿 더보기: 프로필 카드를 한 줄로 압축 — 두 열 목록이 화면(헤더 60 ~ 하단 기준선)에 그대로 들어가도록 */
html.v8tab .kdmode .v8prof{display:flex;align-items:center;gap:14px;padding:6px 14px;margin:0 0 10px;min-height:0}
html.v8tab .kdmode .v8pf-top{display:contents}
html.v8tab .kdmode .v8prof .av{--s:44px!important}
html.v8tab .kdmode .v8pf-t b{font-size:16px}
html.v8tab .kdmode .v8pf-t small{font-size:12px}
html.v8tab .kdmode .v8pf-t{flex:none;order:1}
html.v8tab .kdmode .v8pf-fam{order:2;margin:0 0 0 auto;gap:10px}
html.v8tab .kdmode .v8pf-sw{order:3}
html.v8tab .kdmode .v8pf-m .av{--s:34px!important}
html.v8tab .kdmode .v8pf-plus{width:34px;height:34px;font-size:20px}
html.v8tab .kdmode .v8pf-m small{font-size:11px}
html.v8tab .kdmode .kdmore{align-items:start}
html.v8tab .kdmode .kd-top ~ * .kdgrp{margin-bottom:10px}
html.v8tab .kdmode [data-act=cal-day]{min-height:44px}
html.v8mob .calgrid,html.v8mob .calpanel .days{gap:0}
html.v8tab .kdmode .kdgrp .mrow.kd-mrow{min-height:0;height:44px;padding-top:2px;padding-bottom:2px}
html.v8tab .kdmode .kdgrp>h2{margin-bottom:2px;font-size:15px}
html.v8tab .kdmode .kdgrp .mic{width:34px;height:34px}
/* 태블릿 더보기 최종 압축 */
html.v8tab .kdmode .v8prof{padding:4px 12px;margin:0 0 6px;min-height:0;flex-wrap:nowrap}
html.v8tab .kdmode .kdmore .kdgrp{padding-top:6px;padding-bottom:6px}
/* 대비 보정 (라벤더/피치 진행 칩, 피치 토요일 셀) */
/* 360폭 달력 셀 터치 44px 확보 */
@media (max-width:389px){html.v8mob .calpanel{padding-left:6px!important;padding-right:6px!important}html.v8mob .calpanel .grid{gap:0!important}}
html.v8tab:not(.night)[data-theme=lavender] .kd-prog,html.v8mob:not(.night)[data-theme=lavender] .kd-prog{color:#3f3354!important}
html.v8tab:not(.night)[data-theme=peach] .kd-prog,html.v8mob:not(.night)[data-theme=peach] .kd-prog{color:#573f3a!important}
html.v8tab:not(.night)[data-theme=peach] .day.out.sat .dn{color:#1f4a96}

/* V92 phase 1: shared widget surface; preserve V91 layout and actions. */
html.v8tab .kdmode .panel,html.v8tab .kdmode .mcard,html.v8tab .kdmode .calpanel,html.v8board .boardmode .panel,html.v8board .boardmode .card{border-radius:18px;}
html.v8tab .kdmode .panel>h2{font-weight:600;letter-spacing:-.025em;}
html.v8tab .kdmode .kd-top .tabs{gap:3px;}
html.v8tab .kdmode .kd-top .tabs button{flex:1 1 0;white-space:nowrap;}
html.ohnative:has(.app.kdmode) .home-orb.aiorb,html:has(.app.kdmode) .home-orb.aiorb{right:calc(env(safe-area-inset-right) + 16px);bottom:calc(env(safe-area-inset-bottom) + 8px);}
html.v8tab .kdmode .kdbar-r{flex:0 0 88px;}
html.v8tab .kdmode .kdb{border-radius:14px;}

/* V92: + 버튼은 Orb 위 14px (모바일), 360폭 포함 */
html.v8mob .addfab{bottom:calc(env(safe-area-inset-bottom) + 160px)}
@media (max-height:520px){html.v8mob .addfab{bottom:calc(env(safe-area-inset-bottom) + 20px)}}
/* V92: 태블릿 일정 목록 행 터치 44px */

/* V92 최종: 받은 칭찬 알약(배경 --soft) 글자 대비 확보 (밝은 테마) */
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise .pr.isnew,
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise .pr.isnew *{color:#2b2210}
html:not(.night):not([data-theme=forest]):not([data-theme=midnight]).v8tab .kdmode .panel.praise .pr.isnew .pr-from{opacity:1;color:#3a2f16}
/* V92 최종: 어두운 테마·밤 모드에서 답장하기 버튼 대비 (반투명 흰 배경 + 밝은 글자 → 진한 면 + 밝은 글자) */
html.night.v8mob .panel.praise .kd-reply,html[data-theme=forest].v8mob .panel.praise .kd-reply,html[data-theme=midnight].v8mob .panel.praise .kd-reply{background:var(--accent);color:var(--accent-ink);border-color:transparent}

/* V92 최종: 모바일 더보기 목록 패널이 어두운 테마·밤에도 흰 배경이던 문제 */
html.night.v8mob .mlist,html[data-theme=forest].v8mob .mlist,html[data-theme=midnight].v8mob .mlist{background:var(--card);border:1px solid var(--line);box-shadow:0 8px 18px rgba(0,0,0,.28)}

/* V92 최종: 오션 낮 모드 부제·날짜 머리글 대비 4.5 이상 */
html[data-theme=ocean]:not(.night) .v8page p,html[data-theme=ocean]:not(.night) .albday>h2{color:#2c4558}

/* ===== V92 모바일 부모 '오늘' — V8-B 승인 시안 (pt-) : 이 블록은 부모 오늘 탭에만 적용 ===== */
html.v8mob .v8top:is(.pt,.cm){align-items:flex-start;margin:15px 0 16px;min-height:59px;height:59px}
html.v8mob .v8top:is(.pt,.cm) .v8brand{font-size:20px;font-weight:700;line-height:28px;margin-top:15px;letter-spacing:-.03em}
html.v8mob .v8top:is(.pt,.cm) .v8chip{min-width:89px;width:89px;height:59px;box-sizing:border-box;padding:8px 10px 7px;border-radius:18px;align-items:center;justify-content:space-between;background:rgba(255,255,255,.4)}
html.v8mob .v8top:is(.pt,.cm) .v8chip .wxslot{width:70px;height:26px}
html.v8mob .v8top:is(.pt,.cm) .v8chip small{font-size:12px;font-weight:400;line-height:16px}
html.v8mob:has(.v8top:is(.pt,.cm)) .wxfloat{flex-direction:row;justify-content:center;align-items:center;gap:4px}
html.v8mob:has(.v8top:is(.pt,.cm)) .wxfloat .wxi{width:22px;height:22px;flex:none}
html.v8mob:has(.v8top:is(.pt,.cm)) .wxfloat .wxrow{display:block}
html.v8mob:has(.v8top:is(.pt,.cm)) .wxfloat .wxt{position:static;inset:auto;background:none;font-size:20px;font-weight:700;line-height:26px;letter-spacing:-.02em}
html.v8mob .v8greet.pt{gap:8px;margin:0 0 3px;min-height:48px;height:48px}
html.v8mob .v8greet.pt .av{--s:48px!important}
html.v8mob .v8greet.pt .v8gt h1{font-size:20px;font-weight:700;line-height:26px;margin:0;letter-spacing:-.03em}
html.v8mob .v8greet.pt .v8gt small{display:block;font-size:13px;font-weight:400;line-height:18px;margin-top:2px;color:var(--ink);opacity:.86}
html.v8mob .v8greet.pt .bellbtn{width:44px;height:44px;margin:0 -4px 0 auto}
html.v8mob .v8greet.pt .bellbtn+.v8clock{margin-left:0}
html.v8mob .v8greet.pt .v8clock{font-size:22px;font-weight:700;line-height:30px;letter-spacing:-.04em}
html.v8mob .v8greet.pt .v8clock small{font-size:13px;font-weight:400;margin-right:2px}
/* 빠른 실행 */
html.v8mob .panel.pt-q{box-sizing:border-box;padding:0;margin:0 0 12px;border:0;border-radius:20px;height:78px;min-height:78px;box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8)}
html.v8mob .pt-q .mqrow{height:78px}
html.v8mob .pt-q .mq{position:relative;justify-content:flex-start!important;gap:7px;padding:11px 0 0;min-height:78px;border:0;font-size:12px}
html.v8mob .pt-q .mq+.mq::before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:1px;background:var(--line)}
html.v8mob .pt-q .mq-i{width:30px;height:30px}
html.v8mob .pt-q .mq-i .v8ic{width:30px;height:30px}
html.v8mob .pt-q .mq-t{font-size:13px;font-weight:700;line-height:16px;letter-spacing:-.02em}
/* 카드 */
html.v8mob{--pt-hi:color-mix(in srgb,var(--accent) 80%,#fff)}
html[data-theme=ocean]:not(.night).v8mob{--pt-hi:#5689f5}
html.v8mob .pt-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px;align-items:stretch}
html.v8mob .pt-c{position:relative;display:flex;flex-direction:column;box-sizing:border-box;min-width:0;padding:12px;margin:0;border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 93%,var(--soft)));border:0;box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8);color:var(--ink)}
html.v8mob .pt-c.pt-prep{margin:0 0 12px}
html.v8mob .pt-sch{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 82%,var(--soft)),color-mix(in srgb,var(--card) 68%,var(--soft)))}
html.night.v8mob .pt-c,html[data-theme=forest].v8mob .pt-c,html[data-theme=midnight].v8mob .pt-c,html.night.v8mob .panel.pt-q,html[data-theme=forest].v8mob .panel.pt-q,html[data-theme=midnight].v8mob .panel.pt-q{box-shadow:0 7px 15px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08)}
html.v8mob .pt-h{display:flex;align-items:center;gap:4px;height:24px;margin:0 0 8px;font-family:var(--body);font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.03em;color:var(--ink)}
html.v8mob .pt-ic{flex:none;width:22px;height:22px;display:grid;place-items:center}
html.v8mob .pt-ic img,html.v8mob .pt-ic svg{width:22px;height:22px;display:block;object-fit:contain}
html.v8mob .pt-ic .v8tic{width:18px;height:18px;padding:2px;box-sizing:content-box;border-radius:7px;background:color-mix(in srgb,var(--soft) 70%,var(--card));color:var(--accent)}
html.v8mob .pt-t{min-width:0;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-go{flex:none;width:44px;height:44px;margin:-10px -14px -10px 0;display:grid;place-items:center;background:none;border:0;color:var(--sub);font-size:18px;line-height:1;padding:0 0 3px;font-family:var(--body)}
html.v8mob .pt-empty{padding:10px 0;font-size:14px;color:var(--sub);text-align:center}
html.v8mob .pt-c .lv-more{display:block;width:100%;min-height:44px;margin-top:auto;padding:0;text-align:left;font-size:12px;font-weight:600;color:var(--accent);background:none;border:0}
/* 일정 */
html.v8mob .pt-sl{display:flex;flex-direction:column}
html.v8mob .pt-sr{display:flex;align-items:center;gap:6px;width:100%;height:40px!important;min-height:0!important;box-sizing:border-box;padding:0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;font:inherit;text-align:left;color:var(--ink)}
html.v8mob .pt-sr:last-child{border-bottom:0}
html.v8mob .pt-tm{flex:none;display:grid;place-items:center;min-width:48px;height:24px;padding:0 4px;border-radius:12px;box-sizing:border-box;background:color-mix(in srgb,var(--soft) 92%,var(--accent));color:var(--accent);font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html.v8mob .pt-tm.all{background:color-mix(in srgb,var(--soft) 88%,var(--card));font-weight:400}
html.v8mob .pt-nm{min-width:0;flex:1 1 auto;font-size:15px;font-weight:400;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-tm.all+.pt-nm{font-weight:600}
html.v8mob .pt-dy{flex:none;font-style:normal;font-size:13px;color:var(--sub)}
html.v8mob .pt-al{margin-top:8px;padding-top:8px;border-top:1px solid var(--line, rgba(128,128,128,.25));font-size:12px;color:var(--sub)}
/* 가족 지금 */
html.v8mob .pt-fl{display:flex;flex-direction:column}
html.v8mob .pt-fr{display:flex;align-items:center;gap:6px;height:34px}
html.v8mob .pt-av{flex:none;width:24px;height:24px;display:block}
html.v8mob .pt-av .av{--s:24px!important;box-shadow:none!important}
html.v8mob .pt-fn{display:flex;align-items:center;gap:3px;flex:1 1 auto;min-width:0;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-dot{flex:none;width:4px;height:4px;border-radius:50%;background:#34a853}
html.v8mob .pt-dot.off{background:var(--sub);opacity:.5}
html.v8mob .pt-fs{flex:none;max-width:60px;font-size:15px;font-weight:400;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-fs i{font-style:normal;color:var(--sub)}
/* 오늘 할 일 */
html.v8mob .pt-task .pt-h{height:48px;margin:0}
html.v8mob .pt-ring{flex:none;margin-left:auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--pt-hi) calc(var(--p)*1%),var(--line) 0)}
html.v8mob .pt-ring b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--card);font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
html.v8mob .pt-tl .item{display:flex;align-items:center;gap:0;min-height:44px;height:44px;padding:0;margin:0;border:0;background:none;border-radius:0;box-shadow:none}
html.v8mob .pt-tl .tick{position:relative;flex:none;width:44px;height:44px;margin:0 -5px 0 -13px;padding:0;background:none!important;border:0!important;box-shadow:none!important;color:var(--accent-ink)}
html.v8mob .pt-tl .tick::before{content:'';position:absolute;left:13px;top:13px;width:18px;height:18px;box-sizing:border-box;border-radius:5px;border:1.5px solid color-mix(in srgb,var(--ink) 55%,transparent);background:var(--card)}
html.v8mob .pt-tl .item.done .tick::before{background:var(--pt-hi);border-color:var(--pt-hi)}
html.v8mob .pt-tl .tick svg{position:absolute;left:15px;top:15px;width:14px;height:14px}
html.v8mob .pt-tl .ibody{min-width:0;flex:1 1 auto}
html.v8mob .pt-tl .ititle{font-size:15px;font-weight:400;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-tl .item.done .ititle{text-decoration:line-through;color:var(--sub)}
html.v8mob .pt-tl .imeta{display:none}
/* 가족 한마디 (분홍 카드) */
html.v8mob .pt-note{background:linear-gradient(180deg,#fdf7fb,#f8ebf2)}
html.v8mob .pt-note .pt-h{margin-bottom:6px}
html.v8mob .pt-who{display:flex;align-items:center;gap:6px;height:24px;margin:0 0 8px;font-size:13px;min-width:0}
html.v8mob .pt-who .av{--s:24px!important;box-shadow:none!important;flex:none}
html.v8mob .pt-who b{font-weight:700;flex:none}
html.v8mob .pt-who time{min-width:0;color:var(--sub);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .pt-bub{box-sizing:border-box;padding:10px 12px;border-radius:12px;background:#f9e9ef;font-size:15px;font-weight:400;line-height:21px;color:#3b2d3a;white-space:pre-line;overflow-wrap:anywhere}
html.v8mob .pt-bub.ping{background:#f5e3ef}
html.v8mob .pt-add{align-self:flex-start;margin-top:auto;min-height:44px;padding:0;background:none;border:0;font-family:var(--body);font-size:12px;font-weight:600;color:var(--accent)}
html.v8mob .pt-note .noteform{display:grid;gap:6px;margin:0 0 8px}
html.v8mob .pt-note .noteform input{min-width:0;font-size:14px}
html.night.v8mob .pt-note,html[data-theme=forest].v8mob .pt-note,html[data-theme=midnight].v8mob .pt-note{background:linear-gradient(180deg,rgba(255,140,170,.16),rgba(255,140,170,.1)),var(--card)}
html.night.v8mob .pt-bub,html[data-theme=forest].v8mob .pt-bub,html[data-theme=midnight].v8mob .pt-bub{background:rgba(255,140,170,.18);color:var(--ink)}
html.v8mob .pt-nf{display:flex;align-items:center;justify-content:flex-start;gap:2px;margin-top:auto;min-height:44px}
html.v8mob .pt-nf .pt-add{margin-top:0}
html.v8mob .pt-nf .pt-more{min-width:44px;min-height:44px;margin:0;background:none;border:0;color:var(--sub);font-size:20px}
html.v8mob .pt-tl .ititle,html.v8mob .pt-sr .pt-nm{font-size:15px!important;font-weight:400!important}
html.v8mob .pt-tm.all+.pt-nm{font-weight:600!important}
html.v8mob .pt-tl .tick::before{left:13px!important;top:13px!important;width:18px!important;height:18px!important;border-radius:5px!important;border-width:1.5px!important}
html.v8mob .pt-tl .item.done .tick::before,html.v8mob .pt-tl .item .tick[aria-checked=true]::before{background:var(--pt-hi)!important;border-color:var(--pt-hi)!important}
html.v8mob .pt-tl .item:not(.done) .tick::before{background:var(--card)!important;border-color:color-mix(in srgb,var(--ink) 78%,transparent)!important}
html.v8mob .pt-bub{word-break:normal;line-break:auto}
html.v8mob .pt-bub{font-size:14px;line-height:21px}
html.v8mob .pt-ic .v8tic{width:22px;height:22px;padding:0;background:none;border-radius:0;color:var(--accent)}
html.v8mob .pt-ic img,html.v8mob .pt-q .mq-i img{background:none;border-radius:0;box-shadow:none}
html.night.v8mob .v8top:is(.pt,.cm) .v8chip,html[data-theme=forest].v8mob .v8top:is(.pt,.cm) .v8chip,html[data-theme=midnight].v8mob .v8top:is(.pt,.cm) .v8chip{background:rgba(255,255,255,.1)}
html.v8mob .pt-tm{color:color-mix(in srgb,var(--accent) 70%,var(--ink))}
html.v8mob .pt-tm{color:color-mix(in srgb,var(--accent) 50%,var(--ink))}
html.v8mob .pt-tm{color:color-mix(in srgb,var(--accent) 25%,var(--ink))}
html.v8mob .pt-sr{position:relative}
html.v8mob .pt-sr::after{content:'';position:absolute;left:0;right:0;top:-2px;bottom:-2px}
/* --- 내부 배치 보정 (승인 시안 실측 비교) --- */
html.v8mob .pt-task .pt-h{align-items:flex-start}
html.v8mob .pt-task .pt-h .pt-ic,html.v8mob .pt-task .pt-h .pt-t{margin-top:6px}
html.v8mob .pt-task .pt-ring{margin-top:0}
html.v8mob .pt-tl .tick{margin:0 -10px 0 -14px}
html.v8mob .pt-fl{margin-top:-2px}
html.v8mob .pt-av,html.v8mob .pt-av .av{width:22px;height:22px}
html.v8mob .pt-av .av{--s:22px!important}
html.v8mob .pt-who .av{--s:22px!important}
html.v8mob .pt-note .pt-h{margin-bottom:5px}
html.v8mob .pt-who{gap:6px;margin:0 0 8px}
html.v8mob .pt-bub{padding:10px;font-size:15px;line-height:22px;word-break:keep-all;overflow-wrap:break-word;line-break:strict}
html.v8mob .v8greet.pt .v8gt small{margin-top:4px}
html.v8mob .pt-fl{margin-top:-4px}
html.v8mob .pt-tl{margin-top:2px}
html.v8mob .pt-who{margin-bottom:11px}
html.v8mob .pt-note .pt-h{margin-bottom:6px}
html.v8mob .pt-task .pt-h .pt-ic,html.v8mob .pt-task .pt-h .pt-t{margin-top:9px}
html.v8mob .pt-tl{margin-top:-1px}
html.v8mob .pt-who{margin-bottom:13px}
html.v8mob .pt-note .pt-h{margin-bottom:7px}
html.v8mob .pt-tl{margin-top:4px}
html.v8mob .pt-duo:nth-of-type(1) .pt-c{min-height:188px}
html.v8mob .pt-duo:nth-of-type(2) .pt-c{height:252px;overflow:hidden}
/* --- GPT 검토 확정 (2026-11-26) --- */
html.v8mob .pt-bub{white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
html.v8mob .pt-duo:nth-of-type(1) .pt-c{height:188px;min-height:0;overflow:hidden}
html.v8mob .pt-c .pt-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:0 0 12px;font-size:14px;line-height:20px;color:var(--sub)}
html.v8mob .pt-c .pt-empty::before{font-size:26px;line-height:30px;opacity:.9}
html.v8mob .pt-sch .pt-empty::before{content:none}
html.v8mob .pt-task .pt-empty::before{content:none}
html.v8mob .pt-note .pt-empty::before{content:none}
html.v8mob .pt-c .lv-more{display:block;width:100%;min-height:0;height:24px;margin:0;padding:0;font-size:12px;line-height:24px;text-align:left;background:none;border:0;box-shadow:none;color:var(--accent-ink,var(--accent));font-weight:600}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more) .pt-sr{height:34px!important}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more){margin-top:-2px}
@media (max-width:374px){html.v8mob .pt-ring{width:40px;height:40px}html.v8mob .pt-task .pt-h{gap:4px}}
html.v8mob .pt-c .lv-more{opacity:1!important;color:color-mix(in srgb,var(--accent) 65%,var(--ink))!important}
html.v8mob.night .pt-c .lv-more{color:color-mix(in srgb,var(--accent) 55%,#fff)!important}
@media (max-width:374px){html.v8mob .pt-ring b{width:31px;height:31px;font-size:12px}}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more) .pt-sr::after{top:-5px;bottom:-5px}
/* === 4차: 실기기 기준 밀도 조정 (13px 본문) === */
html.v8mob .panel.pt-q{margin-bottom:10px}
html.v8mob .pt-duo{margin-bottom:10px}
html.v8mob .pt-c.pt-prep{margin-bottom:10px}
html.v8mob .pt-duo:nth-of-type(n) .pt-c{height:auto!important;min-height:0!important;overflow:visible!important}
html.v8mob .pt-duo:has(.pt-empty) .pt-c{min-height:150px!important}
html.v8mob .pt-h{margin-bottom:6px}
/* 일정 */
html.v8mob .pt-sr{height:34px!important}
html.v8mob .pt-tm{min-width:46px;width:46px;height:22px;font-size:12px!important}
html.v8mob .pt-sr .pt-nm,html.v8mob .pt-tl .ititle{font-size:13px!important;line-height:18px}
html.v8mob .pt-dy{font-size:11px}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more) .pt-sr{height:30px!important}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more){margin-top:0}
/* 가족 */
html.v8mob .pt-fl{margin-top:0}
html.v8mob .pt-fr{height:30px}
html.v8mob .pt-fn,html.v8mob .pt-fs{font-size:13px}
html.v8mob .pt-fs{max-width:64px}
/* 할 일: 시각 간격 36, 터치 44는 투명 확장 */
html.v8mob .pt-tl{margin-top:0}
html.v8mob .pt-tl .item{height:36px;min-height:36px}
html.v8mob .pt-tl .tick{margin:-4px -10px -4px -14px}
/* 한마디 */
html.v8mob .pt-bub{padding:8px 10px;font-size:13px;line-height:19px}
html.v8mob .pt-who{margin:0 0 6px}
html.v8mob .pt-who time{font-size:11px}
html.v8mob .pt-note .pt-h{margin-bottom:6px}
/* 일정 탭(모바일): 종일 배지, 마지막 행이 + 버튼/Orb에 가려지지 않도록 */
html.v8mob .item:not(:has(.tick)) .itime.all{background:color-mix(in srgb,var(--soft) 88%,var(--card));font-weight:500}
html.v8mob .cal-day-panel{padding-bottom:120px}
html.v8mob .pt-bub{padding:0 10px;border:solid transparent;border-width:8px 0;background-clip:border-box}
html.v8mob .pt-sr::after{top:-5px;bottom:-5px}
html.v8mob .pt-sch .pt-sl:has(+ .lv-more) .pt-sr::after{top:-7px;bottom:-7px}
/* === 5차: 내일 챙길 것 (부모 오늘 탭) === */
html.v8mob .pt-prep{padding:12px;border-radius:18px}
html.v8mob .pt-prep h2{display:flex;align-items:center;gap:4px;height:24px;margin:0 0 6px;font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.03em}
html.v8mob .pt-prep h2 .v8hi{width:22px;height:22px}
html.v8mob .pt-prep .kd-prog{margin-left:auto;font-size:13px;font-weight:600;line-height:16px;color:var(--sub)}
html.v8mob .pt-prep .prepgroup{margin:0}
html.v8mob .pt-prep .prepgroup+.prepgroup{margin-top:2px}
html.v8mob .pt-prep .sub{display:inline-flex;align-items:center;height:22px;margin:0 0 2px;padding:0 10px;border-radius:11px;font-size:12px;font-weight:500;line-height:16px}
html.v8mob .pt-prep .prepchk{position:relative;gap:6px;height:36px!important;min-height:0!important;font-size:13px;font-weight:400}
html.v8mob .pt-prep .prepchk::after{content:'';position:absolute;left:0;right:0;top:-4px;bottom:-4px}
html.v8mob .pt-prep .prepchk .pbox{width:18px;height:18px;margin:0;border-radius:5px;font-size:12px}
html.v8mob .pt-prep .prepchk:not([aria-checked=true]) .pbox{border-color:color-mix(in srgb,var(--ink) 78%,transparent);background:var(--card)}
html.v8mob .pt-prep .prepchk[aria-checked=true] .pbox{background:var(--pt-hi);border-color:var(--pt-hi)}
html.v8mob .pt-prep .lv-more,html.v8mob .pt-prep .kd-pmore{height:24px;min-height:0;margin:0;padding:0;font-size:12px;line-height:24px}
/* === 6차: 가족 탭 (모바일) === 오늘 탭과 같은 글꼴·카드·그림자 기준 */
html.v8mob .v8page.ft{margin:8px 0 16px}
html.v8mob .v8page.ft h1{font-size:22px;font-weight:700;letter-spacing:-.03em;line-height:28px;margin:0 0 4px}
html.v8mob .v8page.ft p{font-size:12px;font-weight:400;line-height:16px;margin:0;letter-spacing:-.01em}
html.v8mob .famgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 10px;align-items:stretch}
html.v8mob .famcard{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;box-sizing:border-box;min-height:0;min-width:0;padding:12px;border:0;border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 93%,var(--soft)));box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8);color:var(--ink);text-align:left}
html.v8mob .famcard .fc-top{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding-right:20px;flex-wrap:nowrap}
html.v8mob .famcard .fc-top::after{right:2px;top:50%;width:9px;height:9px;margin-top:-7px;border-width:2px}
html.v8mob .famcard .fc-top strong{font-family:var(--body);font-size:16px;font-weight:600;line-height:22px;letter-spacing:-.03em;font-synthesis:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html.v8mob .famcard .av{--s:36px!important;width:36px;height:36px;flex:none;box-shadow:inset 0 0 0 2px var(--ring,transparent)!important}
html.v8mob .famcard .fc-st{display:flex;align-items:center;gap:6px;min-height:20px;font-size:14px;font-weight:500;line-height:20px;margin:0}
html.v8mob .famcard .fc-st .ico,html.v8mob .famcard .fc-st svg,html.v8mob .famcard .fc-st img{width:18px;height:18px;flex:none}
html.v8mob .famcard .fc-st b{font-size:14px;font-weight:500}
html.v8mob .famcard .fc-st.none{font-weight:400}
html.v8mob .famcard .fc-t{font-size:12px;font-weight:400;line-height:16px}
html.v8mob .famcard .fc-eta{font-size:12px;font-weight:500;line-height:16px}
html.v8mob .famcard .fc-prog{display:flex;flex-direction:column;gap:6px;margin-top:auto;width:100%}
html.v8mob .famcard .fc-prog small{order:-1;font-size:12px;font-weight:500;line-height:16px;color:var(--sub)}
html.v8mob .famcard .kd-bar{display:block;height:6px;border-radius:999px;overflow:hidden}
html.v8mob .famcard .kd-bar i{display:block;height:100%;border-radius:999px}
/* 다가오는 날 · 일정 자세히 */
html.v8mob .bright>.panel{box-sizing:border-box;padding:12px;margin:0 0 10px;border:0;border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 93%,var(--soft)));box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8)}
html.v8mob .bright>.panel>h2{display:flex;align-items:center;gap:6px;min-height:24px;margin:0 0 8px;font-family:var(--body);font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.03em}
html.v8mob .bright>.panel .empty{border:0;border-radius:12px;background:color-mix(in srgb,var(--soft) 70%,transparent);padding:12px;font-size:13px;font-weight:400;line-height:19px;color:var(--sub);text-align:center}
html.v8mob .bright>.panel .up{gap:8px;padding:6px 0;min-height:44px}
html.v8mob .bright>.panel .up .ititle{font-size:13px;font-weight:500;line-height:18px}
html.v8mob .bright>.panel .up .imeta,html.v8mob .bright>.panel .up .dday{font-size:12px;font-weight:400}
html.v8mob .planfold{display:inline-flex;align-items:center;min-height:44px;margin:0 0 10px;padding:0 12px;font-size:14px;font-weight:600}
html.night.v8mob .famcard,html[data-theme=forest].v8mob .famcard,html[data-theme=midnight].v8mob .famcard,html.night.v8mob .bright>.panel,html[data-theme=forest].v8mob .bright>.panel,html[data-theme=midnight].v8mob .bright>.panel{box-shadow:0 7px 15px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08)}
html.v8mob .v8page.ft{margin-bottom:0}
html.v8mob .famcard .fc-t{font-size:12px!important;line-height:16px}
html.v8mob .famcard .fc-top::after{width:10px;height:10px;margin-top:-8px}
html.v8mob .bright>.panel .up{min-height:40px;padding:4px 0}
html.v8mob .bright>.panel .up .dday{font-size:12px;font-weight:600;min-width:46px;padding:0 6px;height:22px;line-height:22px;box-sizing:border-box;background:var(--soft);color:color-mix(in srgb,var(--accent) 25%,var(--ink))}
html.v8mob .bright>.panel .up .emo{font-size:20px;line-height:24px;width:24px;text-align:center}
html.v8mob .bright>.panel .empty{background:color-mix(in srgb,var(--soft) 40%,transparent)}

/* === 7차: 5개 탭 공통 헤더/페이지 제목 (오늘 탭 좌표 기준) === */
html.v8mob .v8page.cm{box-sizing:border-box;height:51px;margin:-2px 0 2px;padding:0}
html.v8mob .v8page.cm h1{font-size:20px;font-weight:700;line-height:28px;letter-spacing:-.03em;margin:0 0 4px;height:28px}
html.v8mob .v8page.cm p{font-size:13px;font-weight:400;line-height:19px;letter-spacing:-.01em;margin:0;height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.v8mob .v8page.cm+*{margin-top:0!important}
/* === 7차 b: 일정·기록·더보기 세부 === */
/* 날짜 이동: 일정(달력 머리)·기록(주/월 이동) 같은 모양 — 44 화살표, 44 '오늘' */
html.v8mob .albnavrow{display:flex;align-items:center;gap:6px;margin:0 0 10px}
html.v8mob .albnav{flex:1;min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center;margin:0;padding:0;background:none;box-shadow:none;border-radius:0;min-height:0}
html.v8mob .albarrow,html.v8mob .calpanel .mini.nav{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:14px;background:var(--soft);color:var(--accent);border:0;box-shadow:none;font-size:22px;font-weight:700;line-height:1;padding:0 0 2px;display:grid;place-items:center}
html.v8mob .albtoday,html.v8mob .calpanel .mini.todaybtn{min-width:56px;height:44px;min-height:44px;padding:0 12px;border-radius:14px;background:var(--soft);color:var(--accent);border:0;box-shadow:none;font-size:14px;font-weight:600}
html.v8mob .albtitle b,html.v8mob .calpanel .calttl h2{font-family:var(--body);font-size:16px;font-weight:700;letter-spacing:-.03em;line-height:22px}
html.v8mob .calpanel .calhead{margin:0 0 8px}
/* 선택 영역(일정/할 일 · 주간/월간/연간): 44px, 14/600 */
html.v8mob .row.seg .pill{height:44px;min-height:44px;font-size:14px;font-weight:600}
/* 기록 빈 데이터: 가족 탭과 같은 은은한 안내 영역 */
html.v8mob .panel.albempty{box-sizing:border-box;padding:12px;border:0;border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 93%,var(--soft)));box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8)}
html.v8mob .albempty .empty{border:0;border-radius:12px;background:color-mix(in srgb,var(--soft) 40%,transparent);padding:16px 12px;font-size:14px;font-weight:600;line-height:20px;color:var(--ink);text-align:center}
html.v8mob .albempty .empty small{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:17px;color:var(--sub)}
/* 더보기: 제목용 장식 글꼴+700 이중 굵기로 뭉치던 섹션 라벨 */
html.v8mob .mgrp{font-family:var(--body);font-size:13px;font-weight:600;letter-spacing:-.02em;font-synthesis:none;color:var(--sub)}
html.v8mob .mrow .mt b,html.v8mob .acc-t b{font-size:15px;font-weight:600;line-height:21px;letter-spacing:-.02em}
html.v8mob .mrow .mt small,html.v8mob .acc-t small{font-size:12px;font-weight:400;line-height:17px}
html.v8mob .mrow .mcnt{font-size:13px;font-weight:700}
html.v8mob .v8prof .v8pf-top b{font-size:16px;font-weight:600}
html.v8mob .v8prof .v8pf-top small{font-size:12px;font-weight:400}
html.v8mob .pbadge{font-weight:600}
/* === 8차: 첫째 오늘 탭 (k1) — 부모 카드 기준 재사용, 글자·터치만 첫째 기준 === */
html.v8mob .k1.pt-task .pt-h{height:48px}
html.v8mob .k1 .pt-tl .item{height:44px!important;min-height:44px!important}
html.v8mob .k1 .pt-tl .tick{margin:0 -6px 0 -12px}
html.v8mob .k1 .pt-tl .tick::before{left:12px!important;top:12px!important;width:20px!important;height:20px!important;border-radius:6px!important}
html.v8mob .k1 .pt-tl .tick svg{left:15px;top:15px;width:14px;height:14px}
html.v8mob .k1 .pt-tl .ititle{font-size:14px!important;font-weight:500!important;line-height:20px}
html.v8mob .k1 .pt-tl .item.done .ititle{font-weight:400!important}
html.v8mob .k1 .pt-ring{width:48px;height:48px}
html.v8mob .k1.pt-prep .prepchk{height:44px!important;min-height:44px!important;font-size:14px;font-weight:500;gap:8px}
html.v8mob .k1.pt-prep .pbox{width:20px;height:20px;border-radius:6px}
html.v8mob .k1.pt-prep .prepchk::after{top:0!important;bottom:0!important}
html.v8mob .k1.pt-prep .sub{font-size:12px}
html.v8mob .k1.pt-prep .kd-prog{font-size:12px}
/* 일정: 제목은 최대 2줄까지, 시간 배지 12 */
html.v8mob .k1.pt-sch .pt-sr{height:auto;min-height:36px;padding:3px 0;align-items:center}
html.v8mob .k1.pt-sch .pt-nm{font-size:13px!important;line-height:17px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
html.v8mob .k1.pt-sch .pt-tm{font-size:12px}
html.v8mob .k1 .pt-fn,html.v8mob .k1 .pt-fs{font-size:13px}
/* 가족 한마디 */
html.v8mob .k1.pt-note .pt-who{font-size:12px}
html.v8mob .k1.pt-note .pt-who b{font-size:12px}
html.v8mob .k1.pt-note .pt-who time{font-size:12px}
html.v8mob .k1.pt-note .pt-bub{font-size:13px;line-height:19px}
/* 받은 칭찬: 기존 카드보다 낮게, 본문 14 / 보조 12 */
html.v8mob .k1.pt-praise{background:linear-gradient(180deg,color-mix(in srgb,#ffd36b 24%,var(--card)),color-mix(in srgb,#ffd36b 12%,var(--card)))}
html.v8mob .k1-new{margin-left:auto;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;line-height:22px}
html.v8mob .k1-pt{font-size:14px;font-weight:500;line-height:20px;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html.v8mob .k1-pf,html.v8mob .k1-rep,html.v8mob .k1-wk{font-size:12px;font-weight:400;line-height:17px;color:var(--ink);opacity:.82;margin-top:4px}
html.v8mob .k1-wk b{font-weight:600;color:var(--ink)}
html.v8mob .k1-rbtn{position:relative;align-self:flex-start;margin-top:6px;min-height:0!important;height:30px;padding:0 12px;font-size:12px;font-weight:600;border-radius:15px}
html.v8mob .k1-rbtn::after{content:'';position:absolute;left:-6px;right:-6px;top:-7px;bottom:-7px}
html.v8mob .k1.pt-praise .lv-more{height:24px;min-height:0;font-size:12px}
html.night.v8mob .k1.pt-praise,html[data-theme=forest].v8mob .k1.pt-praise,html[data-theme=midnight].v8mob .k1.pt-praise{background:linear-gradient(180deg,color-mix(in srgb,#ffd36b 12%,var(--card)),var(--card))}
/* === 8차 b: 첫째(v8k1) 가족·일정 탭 === */
html.v8k1.v8mob .bleft>.cta{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:52px;min-height:52px;padding:0 12px;border-radius:16px;font-family:var(--body);font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.02em;font-synthesis:none;margin-top:10px}
html.v8k1.v8mob .bleft>.famgrid+.cta{margin-top:0}
/* 일정 탭: 날짜 제목 14/600 (제목용 글꼴 이중 굵기 제거) */
html.v8k1.v8mob .cal-day-panel h2,html.v8k1.v8mob .plan-board h3,html.v8k1.v8mob .daygrp>h3,html.v8k1.v8mob .dayhd{font-family:var(--body);font-size:14px;font-weight:600;line-height:20px;letter-spacing:-.02em;font-synthesis:none;margin:0 0 6px}
html.v8k1.v8mob .cal-day-panel .item,html.v8k1.v8mob .plan-board .item{padding:10px 0;min-height:44px;gap:8px;align-items:center}
html.v8k1.v8mob .cal-day-panel .ititle,html.v8k1.v8mob .plan-board .ititle{font-size:14px;font-weight:500;line-height:20px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
html.v8k1.v8mob .cal-day-panel .imeta,html.v8k1.v8mob .plan-board .imeta{font-size:12px;font-weight:400;line-height:17px}
html.v8k1.v8mob .cal-day-panel .imore,html.v8k1.v8mob .plan-board .imore{position:relative;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;font-size:18px;font-weight:700;line-height:1;display:grid;place-items:center}
/* 달력: 날짜 아래 이모지 가로 중앙, 선택 날짜는 숫자 배경 원형 */
html.v8k1.v8mob .calpanel .day .badges{display:flex;justify-content:center;align-items:center;gap:1px;width:100%;margin:0}
html.v8k1.v8mob .calpanel .day .dn{display:grid;place-items:center;width:26px;height:26px;padding:0;border-radius:50%;line-height:1;margin:0 auto}
html.v8k1.v8mob .calpanel .day.sel .dn{background:var(--accent);color:var(--accent-ink)!important}
html.v8k1.v8mob .calpanel .day.today:not(.sel) .dn{background:none;box-shadow:inset 0 0 0 2px var(--accent);color:var(--ink)}
html.v8k1.v8mob .calpanel .day.sel{box-shadow:none}
html.v8k1.v8mob .cal-day-panel .empty,html.v8k1.v8mob .plan-board .empty{border:0;border-radius:12px;background:color-mix(in srgb,var(--soft) 40%,transparent);padding:16px 12px;text-align:center;font-size:13px;font-weight:400;line-height:19px;color:var(--sub)}
/* 일정 탭 > 할 일 (첫째) */
html.v8k1.v8mob .tdh{display:flex;align-items:baseline;gap:4px;margin:0 0 4px;padding:4px 0;font-family:var(--body);font-size:14px;font-weight:600;line-height:20px;letter-spacing:-.02em;font-synthesis:none}
html.v8k1.v8mob .tdh small{font-size:12px;font-weight:400;color:var(--sub)}
html.v8k1.v8mob .tdh .kd-prog{margin-left:auto;font-size:12px;font-weight:600}
html.v8k1.v8mob .trow{gap:8px;padding:10px 0;min-height:44px}
html.v8k1.v8mob .ttitle{font-family:var(--body);font-size:14px;font-weight:500;line-height:20px;letter-spacing:-.02em;font-synthesis:none;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
html.v8k1.v8mob .trow .imeta{font-size:12px;font-weight:400;line-height:17px}
html.v8k1.v8mob .twho{width:54px}
html.v8k1.v8mob .twho small{font-size:12px;max-width:54px}
html.v8k1.v8mob .trow .tick{position:relative;flex:none;width:24px;height:24px;min-width:24px!important;min-height:24px!important;padding:0;margin:0 10px}
html.v8k1.v8mob .trow .tick::after{content:'';position:absolute;left:-10px;right:-10px;top:-10px;bottom:-10px}
html.v8k1.v8mob .trow .tick svg{width:16px;height:16px}
html.v8k1.v8mob .trow .mini{font-size:18px;font-weight:700;line-height:1}
/* === 9차: 첫째 최종 정렬 === */
html.v8mob .k1.pt-c{margin:0 0 10px}
html.v8mob .pt-duo.k1d{margin:0 0 10px;align-items:stretch}
html.v8mob .pt-duo.k1d>.k1.pt-c{margin:0!important;height:auto!important;min-height:0!important}
html.v8mob .k1-rbtn{font-size:13px;font-weight:600}
html.v8k1.v8mob .addfab{transform:translateY(1px)}
/* 상세 일정·할 일 줄: 행 사이 12px, 내부 세로 여백 최소 */
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .item{padding:0!important;margin:0 0 12px;min-height:44px;row-gap:0;align-items:start}
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .item:last-child{margin-bottom:0}
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .itime{min-width:78px;width:78px;height:24px;line-height:24px;padding:0;text-align:center;font-size:12px;font-weight:600}
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .ititle{line-height:24px;min-height:24px}
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .imeta{margin-top:0;line-height:17px}
html.v8k1.v8mob :is(.cal-day-panel,.plan-board) .item .imore{align-self:start;margin-top:-2px}
/* 긴 할 일 제목은 줄바꿈 (행 높이는 최소 44) */
html.v8mob .k1 .pt-tl .item{height:auto!important;min-height:44px!important;align-items:center}
html.v8mob .k1 .pt-tl .ititle{white-space:normal!important;overflow:visible;text-overflow:clip;word-break:keep-all;overflow-wrap:anywhere;padding:4px 0}
html.v8mob .k1 .pt-tl .tick{align-self:center}
/* === 10차: 첫째 최종 미세 수정 === */
/* 오늘 할 일: 카드 외부 높이 240 고정, 목록만 내부 스크롤 */
html.v8mob .k1.pt-task{height:240px;min-height:240px;box-sizing:border-box;padding:12px 12px 8px;margin:0 0 10px;overflow:hidden}
html.v8mob .k1.pt-task .pt-h{flex:none;height:44px;margin:0;align-items:center}
html.v8mob .k1.pt-task .pt-h .pt-ic,html.v8mob .k1.pt-task .pt-h .pt-t{margin-top:0}
html.v8mob .k1.pt-task .pt-ring{width:44px;height:44px;margin-top:0}
html.v8mob .k1.pt-task .pt-ring b{width:34px;height:34px;font-size:13px}
html.v8mob .k1.pt-task .k1-tl{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;-webkit-overflow-scrolling:touch}
html.v8mob .k1.pt-task .pt-empty{flex:1}
html.v8mob .k1 .pt-tl .tick{margin:0 -4px 0 -12px}
html.v8mob .k1 .pt-tl .ititle{padding:2px 0;line-height:20px}
/* 내일 챙길 것 / 받은 칭찬: 밀도 높임 */
html.v8mob .k1.pt-prep h2,html.v8mob .k1.pt-praise .pt-h{font-size:15px;font-weight:600}
html.v8mob .k1.pt-prep .kd-prog{font-size:12px;font-weight:500}
html.v8mob .k1.pt-prep .sub{font-size:12px}
html.v8mob .k1.pt-prep .prepgroup+.prepgroup{margin-top:0}
html.v8mob .k1.pt-prep .prepchk{font-size:13px!important;font-weight:500;gap:8px;margin:0}
html.v8mob .k1.pt-prep .prep{gap:0}
html.v8mob .k1.pt-praise{gap:0}
html.v8mob .k1-pt{font-size:13px;font-weight:500;line-height:18px;margin-top:6px}
html.v8mob .k1-pf,html.v8mob .k1-rep{font-size:11px;line-height:16px;margin-top:6px}
html.v8mob .k1-wk{font-size:12px;line-height:16px;margin-top:6px}
html.v8mob .k1-rbtn{font-size:12px;font-weight:600;margin-top:6px;color:var(--ink);border:1px solid color-mix(in srgb,#d99a1e 55%,transparent);background:color-mix(in srgb,#ffc857 38%,var(--card))}
html.night.v8mob .k1-rbtn,html[data-theme=forest].v8mob .k1-rbtn,html[data-theme=midnight].v8mob .k1-rbtn{background:color-mix(in srgb,#ffc857 26%,var(--card));border-color:color-mix(in srgb,#ffc857 60%,transparent)}
html.v8mob .k1.pt-praise .lv-more{font-size:12px;font-weight:600;margin-top:6px}
/* 가족 탭 간격 10 */
html.v8k1.v8mob .bleft>.cta{margin-bottom:10px}
/* 가족 탭 > 오늘·내일 일정 자세히 (plan-board) */
html.v8k1.v8mob .bright .plan-board>.panel{padding:14px}
html.v8k1.v8mob .plan-board .item{margin:0 0 10px!important;min-height:44px;column-gap:10px;align-items:start}
html.v8k1.v8mob .plan-board .item:last-child{margin-bottom:0!important}
html.v8k1.v8mob .plan-board .itime{width:80px!important;min-width:80px!important;height:24px;line-height:24px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;padding:0;text-align:center;letter-spacing:-.02em;display:inline-flex;align-items:center;justify-content:center}
html.v8k1.v8mob .plan-board .item:not(:has(.tick)) .ititle{font-size:14px;font-weight:500;line-height:24px;min-height:24px}
html.v8k1.v8mob .plan-board .item:not(:has(.tick)) .imeta{font-size:11px;font-weight:400;line-height:16px;margin-top:3px}
html.v8k1.v8mob .plan-board .item:has(.tick){align-items:start;min-height:44px}
html.v8k1.v8mob .plan-board .item:has(.tick) .ititle{font-size:14px;font-weight:500;line-height:20px;min-height:20px;padding-top:2px}
html.v8k1.v8mob .plan-board .item:has(.tick) .imeta{font-size:11px;font-weight:400;line-height:16px;margin-top:0}
html.v8k1.v8mob .plan-board .item .tick{position:relative;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:2px 10px 0 12px;padding:0}
html.v8k1.v8mob .plan-board .item .tick::after{content:'';position:absolute;left:-12px;right:-12px;top:-12px;bottom:-12px}
html.v8k1.v8mob .plan-board .item .tick svg{width:14px;height:14px}
html.v8k1.v8mob .plan-board .item .tick{margin:2px 10px 0 0}
html.v8k1.v8mob .plan-board .item .tick svg{position:absolute;left:3px;top:3px;width:14px;height:14px}
html.v8k1.v8mob .plan-board .item .tick{color:#fff}
html.v8k1.v8mob .plan-board .item .tick svg{color:#fff;stroke:#fff;z-index:1}
html.v8k1.v8mob .plan-board .item .tick::before{left:0!important;top:0!important;width:20px!important;height:20px!important;border-radius:6px!important;box-sizing:border-box!important}
html.v8k1.v8mob .plan-board .item:not(.done) .tick::before{background:var(--card)!important;border:1.5px solid color-mix(in srgb,var(--ink) 70%,transparent)!important}
html.v8k1.v8mob .plan-board .item.done .tick::before{background:var(--pt-hi)!important;border-color:var(--pt-hi)!important}
/* === 11차: 오늘 탭 재조정 (208 고정, 칭찬/준비물 묶음) === */
html.v8mob .k1.pt-task{height:208px;min-height:208px;padding:12px;gap:4px}
html.v8mob .k1.pt-task .pt-h{height:44px}
html.v8mob .k1.pt-task .pt-ring{width:40px;height:40px}
html.v8mob .k1.pt-task .pt-ring b{width:30px;height:30px;font-size:12px}
html.v8mob .k1.pt-task .k1-tl{gap:0}
html.v8mob .k1.pt-task .pt-tl .item,html.v8mob .k1.pt-task .k1-tl .item{margin:0!important}
/* 칭찬/준비물 듀오: 기본 190, 함께 확장, 패딩 12 */
html.v8mob .pt-duo.k1d{min-height:190px}
html.v8mob .pt-duo.k1d>.k1.pt-c{padding:12px;display:flex;flex-direction:column;box-sizing:border-box}
html.v8mob .k1.pt-praise .pt-h{margin:0 0 8px;min-height:0}
html.v8mob .k1.pt-prep>h2{margin:0 0 8px}
html.v8mob .k1-grp{margin:0}
html.v8mob .k1-pt{margin:0;font-size:13px;line-height:18px}
html.v8mob .k1-grp .k1-pf{margin:4px 0 0;font-size:11px;line-height:15px}
html.v8mob .k1.pt-praise>.k1-rbtn{align-self:flex-start;position:relative;height:28px;min-height:28px!important;padding:0 12px;margin:6px 0 0;line-height:26px;font-size:12px;font-weight:600}
html.v8mob .k1.pt-praise>.k1-rbtn::after{content:'';position:absolute;left:-6px;right:-6px;top:-10px;bottom:-6px}
html.v8mob .k1.pt-praise>.k1-rep{margin:6px 0 0;font-size:11px;line-height:15px}
html.v8mob .k1-bot{margin-top:6px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
html.v8mob .k1-bot .k1-wk{margin:0;font-size:12px;line-height:16px}
html.v8mob .k1-bot .lv-more{position:relative;margin:0;padding:0;min-height:16px!important;height:16px;line-height:16px;font-size:12px;font-weight:600;background:none;border:0}
html.v8mob .k1-bot .lv-more::after{content:'';position:absolute;left:-6px;right:-6px;top:-14px;bottom:-14px}
/* 11차: 가족 탭 상세 일정 소제목/메타 */
html.v8k1.v8mob .plan-board .daygroup>h3{font-size:16px;font-weight:700}
html.v8k1.v8mob .plan-board .daygroup>.sub{display:block;background:none;border-radius:0;padding:0 0 4px;margin:8px 0 8px;font-size:13px;font-weight:700;line-height:18px;color:color-mix(in srgb,var(--accent) 80%,var(--ink));border-bottom:1px solid var(--line)}
html.v8k1.v8mob .plan-board .daygroup>.item+.sub{margin-top:16px}
html.v8k1.v8mob .plan-board .item:has(+ .sub){margin-bottom:0!important}
html.v8k1.v8mob .plan-board .item:not(:has(.tick)) .imeta,html.v8k1.v8mob .plan-board .item:has(.tick) .imeta{line-height:15px}
/* 11차: 일정 탭 날짜별 목록 */
html.v8k1.v8mob .cal-day-panel{padding:14px}
html.v8k1.v8mob .cal-day-panel>h2{font-size:16px;font-weight:700;line-height:22px;margin:0 0 12px}
html.v8k1.v8mob .cal-day-panel .item{margin:0 0 10px!important;column-gap:10px}
html.v8k1.v8mob .cal-day-panel .item:last-child{margin-bottom:0!important}
html.v8k1.v8mob .cal-day-panel .itime{min-width:80px;width:80px}
html.v8k1.v8mob .cal-day-panel .imeta{line-height:15px;margin-top:3px}
html.v8k1.v8mob .cal-day-panel>h2{font-weight:700!important;line-height:22px!important}
/* 11차: 더보기 알림 설정 카드 (접힌 상태) */
html.v8k1.v8mob .panel.pushp{padding:11px 12px 8px}
html.v8k1.v8mob .pushp .pushh{min-height:44px;margin:0;gap:8px;font-family:var(--body);font-size:15px;font-weight:600;line-height:20px;font-synthesis:none;flex-wrap:nowrap}
html.v8k1.v8mob .pushp .pbadge{flex:none;font-size:11px;font-weight:600;line-height:16px;padding:2px 8px;white-space:nowrap}
html.v8k1.v8mob .pushp .pushh .mini{position:relative;flex:none;margin-left:auto;min-width:44px;height:32px;min-height:32px!important;padding:0 10px;font-size:13px;font-weight:600;line-height:30px}
html.v8k1.v8mob .pushp .pushh .mini::after{content:'';position:absolute;left:-4px;right:-4px;top:-6px;bottom:-6px}
html.v8k1.v8mob .pushp>.hint{margin:-2px 0 0;font-size:12px;line-height:16px}
/* === 12차: 10·11절 통합 (242 / 자연 높이 / 중심 정렬) === */
html.v8mob .k1.pt-task{height:242px;min-height:242px;padding:12px;gap:8px}
html.v8mob .k1.pt-task .pt-h{height:32px;min-height:0}
html.v8mob .k1.pt-task .pt-ring{width:32px;height:32px}
html.v8mob .k1.pt-task .pt-ring b{width:24px;height:24px;font-size:11px}
html.v8mob .k1.pt-task .k1-tl{padding:0}
html.v8mob .pt-duo.k1d{min-height:0}
html.v8mob .k1.pt-praise .pt-h{margin:0 0 8px}
html.v8mob .k1-pt{font-size:14px;line-height:20px}
html.v8mob .k1-grp .k1-pf{font-size:12px;line-height:16px;margin-top:4px}
html.v8mob .k1.pt-praise>.k1-rep{font-size:12px;line-height:16px}
/* 오늘 일정 / 가족 지금 */
html.v8mob .pt-duo.k1d>.k1.pt-sch,html.v8mob .pt-duo.k1d>.k1.pt-fam{padding:12px}
html.v8mob .k1.pt-sch .pt-h,html.v8mob .k1.pt-fam .pt-h{height:24px;min-height:0;margin:0 0 8px}
html.v8mob .k1.pt-sch .pt-sr{min-height:44px;height:44px;align-items:center;padding:0}
html.v8mob .k1.pt-fam .pt-fr{min-height:34px;height:34px;align-items:center;padding:0}
html.v8mob .k1.pt-sch .pt-tm{width:44px;height:22px;min-width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
html.v8mob .k1.pt-sch .pt-sl,html.v8mob .k1.pt-fam .pt-fl{margin:0;padding:0;gap:0}
html.v8mob .k1.pt-sch .pt-sl>*:last-child,html.v8mob .k1.pt-fam .pt-fl>*:last-child{margin-bottom:0}
/* 가족 한마디: 남기기 왼쪽, ⋯ 오른쪽 끝 */
html.v8mob .k1.pt-note{padding:12px}
html.v8mob .k1.pt-note .pt-nf{display:flex;align-items:center;justify-content:space-between;min-height:44px;height:44px;margin:4px 0 -6px;padding:0}
html.v8mob .k1.pt-note .pt-add{position:relative;height:28px;min-height:28px!important;padding:0 8px;display:inline-flex;align-items:center;margin:0}
html.v8mob .k1.pt-note .pt-add::after{content:'';position:absolute;left:-6px;right:-6px;top:-8px;bottom:-8px}
html.v8mob .k1.pt-note .pt-more{margin:0 -10px 0 0}
/* 더보기 알림 카드 (11.4) */
html.v8k1.v8mob .panel.pushp{padding:12px}
html.v8k1.v8mob .pushp>.hint{margin:4px 0 0;font-size:12px;line-height:16px}
html.v8k1.v8mob .pushp .pbadge{height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;line-height:1.2;font-size:11px;font-weight:600}
html.v8mob .k1.pt-note .pt-add{margin:0!important;align-self:center;top:0}
html.v8mob .k1.pt-sch .pt-sr{height:44px!important;min-height:44px!important}
html.v8mob .k1.pt-fam .pt-fr{height:32px;min-height:32px}
html.v8mob .k1.pt-note .pt-nf{margin:-3px 0 -8px}
/* 11.4 더보기 프로필 4열 균등 / 하단바 97% */
html.v8k1.v8mob .v8pf-fam{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;justify-items:center}
html.v8k1.v8mob .v8pf-fam .v8pf-m{min-width:0;width:100%;align-items:center;text-align:center}
html.v8k1.v8mob .v8pf-fam .v8pf-m small{display:block;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.v8mob .bnav .tabs,html[data-theme=ocean]:not(.night).v8mob .bnav .tabs{background:color-mix(in srgb,var(--card) 97%,transparent)}
/* === 13차: 알림 카드 / 할 일 목록 / 새 기록 / 작성창 === */
.tpg,.tbar{display:none}
/* 알림 카드 */
html.v8k1.v8mob .panel.pushp{padding:10px 12px 11px}
html.v8k1.v8mob .pushp .pushh{min-height:36px;height:36px;gap:6px;font-size:16px;line-height:22px;font-weight:600}
html.v8k1.v8mob .pushp .pushh img.ico,html.v8k1.v8mob .pushp .pushh .ico{width:18px;height:18px;flex:none}
html.v8k1.v8mob .pushp .pushh .mini::after{top:-6px;bottom:-6px}
html.v8k1.v8mob .pushp>.hint{margin:4px 0 0;font-size:12px;line-height:17px}
html.v8k1.v8mob .pushp+.mgrp,html.v8k1.v8mob .panel.pushp{margin-bottom:12px}
/* 할 일 목록: 날짜 행 + 진행률 */
html.v8k1.v8mob .tscroll{padding:0 12px 6px}
html.v8k1.v8mob .tdh{align-items:center;padding:4px 0;margin:0 0 6px;font-size:15px;font-weight:600;line-height:22px}
html.v8k1.v8mob .tdh .kd-prog{display:none}
html.v8k1.v8mob .tdh .tpg{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;height:24px;padding:0 8px;box-sizing:border-box;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,var(--card));white-space:nowrap}
html.v8k1.v8mob .tbar{display:block;height:4px;margin:0 0 8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 16%,var(--card));overflow:hidden}
html.v8k1.v8mob .tbar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
html.v8k1.v8mob .tscroll .trow,html.v8k1.v8mob .trow{min-height:64px;box-sizing:border-box;padding:8px 0;gap:8px;align-items:center}
html.v8k1.v8mob .twho{width:48px;min-width:48px;align-items:center;text-align:center;gap:0}
html.v8k1.v8mob .twho .av{--s:26px!important}
html.v8k1.v8mob .twho small{font-size:11px;line-height:15px;max-width:48px;text-align:center}
html.v8k1.v8mob .tall{font-size:22px;line-height:26px}
html.v8k1.v8mob .tbody{min-width:0}
html.v8k1.v8mob .ttitle{font-size:14px;font-weight:500;line-height:20px}
html.v8k1.v8mob .trow .imeta{font-size:12px;line-height:17px;margin-top:3px}
html.v8k1.v8mob .trow .tick{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;margin:0 4px 0 0;flex:none}
html.v8k1.v8mob .trow .tick::after{left:-8px;right:-8px;top:-10px;bottom:-10px}
html.v8k1.v8mob .trow .mini{position:relative;flex:none;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-size:18px;line-height:1}
html.v8k1.v8mob .trow .mini::after{content:'';position:absolute;left:-4px;right:-4px;top:-6px;bottom:-6px}
/* 반복 중인 할 일 관리 */
html.v8k1.v8mob .acc-h{min-height:60px;padding:8px 12px}
html.v8k1.v8mob .acc-i{width:32px;height:32px;font-size:20px;display:inline-flex;align-items:center;justify-content:center}
html.v8k1.v8mob .acc-t b{font-size:15px;line-height:21px}
html.v8k1.v8mob .acc-t small{font-size:12px;line-height:17px}
html.v8k1.v8mob .acc-b .empty{min-height:48px;padding:8px 12px;font-size:13px;line-height:18px;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box}
html.v8k1.v8mob .tscroll{background:var(--card)}
html.v8k1.v8mob .tdh{background:var(--card)}
html.v8k1.v8mob .acc-h{min-height:60px!important}
/* 새 기록 작성창 (첫째 모바일) */
html.v8k1.v8mob .stover.mn .stsheet{padding:12px 16px calc(env(safe-area-inset-bottom) + 16px)}
html.v8k1.v8mob .stsheet .grab{width:32px;height:4px;margin:0 auto 12px}
html.v8k1.v8mob .stsheet h2{font-size:18px;font-weight:700;line-height:24px;margin:0 0 10px;gap:8px}
html.v8k1.v8mob .stsheet h2 .ico,html.v8k1.v8mob .stsheet h2 img{width:20px;height:20px}
html.v8k1.v8mob .mndate{min-height:44px;padding:0 12px;margin:0 0 10px;border-radius:14px;flex-wrap:wrap}
html.v8k1.v8mob .mndate .mndl{font-size:14px;font-weight:600;line-height:20px}
html.v8k1.v8mob .mndate small{font-size:12px;font-weight:500;line-height:17px;display:inline-flex;align-items:center;min-height:44px}
html.v8k1.v8mob .mnpick{min-height:108px;padding:10px;gap:4px;margin:0 0 10px;border-width:1.5px}
html.v8k1.v8mob .mnpick span{font-size:32px;line-height:32px}
html.v8k1.v8mob .mnpick b{font-size:15px;font-weight:600;line-height:21px}
html.v8k1.v8mob .mnpick small{font-size:12px;font-weight:400;line-height:17px}
html.v8k1.v8mob .stsheet .field{margin:0 0 10px}
html.v8k1.v8mob .stsheet .field textarea{min-height:80px;padding:12px 12px 24px;font-size:14px;font-weight:400;line-height:20px}
html.v8k1.v8mob .stsheet .field textarea::placeholder{font-size:14px;font-weight:400;line-height:20px}
html.v8k1.v8mob .mncount{font-size:11px;line-height:15px;right:12px;bottom:8px}
html.v8k1.v8mob .stsheet .hint{font-size:12px;line-height:17px;margin:0 0 10px}
html.v8k1.v8mob .stsheet form>.row{display:flex;gap:8px;margin:0}
html.v8k1.v8mob .stsheet form>.row .btn{flex:1 1 0;min-width:0;min-height:44px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;box-sizing:border-box;line-height:1.2}
/* 작성창 타이포 통일 (첫째 모바일): 필드 14, 입력 14, 설명 12, 버튼 14, 터치 44, 간격 10 */
html.v8k1.v8mob form.memberform{font-size:14px}
html.v8k1.v8mob form.memberform .field,html.v8k1.v8mob form.memberform label.field{font-size:14px;font-weight:600;line-height:20px;margin:0 0 10px;gap:6px}
html.v8k1.v8mob form.memberform .sub2{font-size:14px;font-weight:600;line-height:20px}
html.v8k1.v8mob form.memberform input,html.v8k1.v8mob form.memberform textarea,html.v8k1.v8mob form.memberform select{font-size:14px;font-weight:400;line-height:20px;min-height:44px;box-sizing:border-box}
html.v8k1.v8mob form.memberform input::placeholder,html.v8k1.v8mob form.memberform textarea::placeholder{font-size:14px;font-weight:400}
html.v8k1.v8mob form.memberform .hint{font-size:12px;font-weight:400;line-height:17px}
html.v8k1.v8mob form.memberform .pill,html.v8k1.v8mob form.memberform .chip,html.v8k1.v8mob form.memberform .cat{font-size:14px;font-weight:500;min-height:44px!important;height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1.2}
html.v8k1.v8mob form.memberform .pick.emoji{min-height:44px!important;min-width:44px!important}
html.v8k1.v8mob form.memberform .row{gap:8px}
html.v8k1.v8mob form.memberform>.row:last-of-type .btn,html.v8k1.v8mob form.memberform .btn{font-size:14px;font-weight:600;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
html.v8k1.v8mob .noteform input,html.v8k1.v8mob .cardpraise input,html.v8k1.v8mob form[data-act=praise-custom] input{font-size:14px;font-weight:400;line-height:20px;min-height:44px}
html.v8k1.v8mob .noteform .btn,html.v8k1.v8mob form[data-act=praise-custom] .btn{font-size:14px;font-weight:600;min-height:44px}
html.v8k1.v8mob .ping-btn{font-size:14px;font-weight:500;min-height:44px}
html.v8k1.v8mob .overlay{z-index:65}
html.v8k1.v8mob .overlay .sheetbox{padding-bottom:calc(env(safe-area-inset-bottom) + 16px)}
/* === 14차: 오늘 할 일 자동 높이 / 더 보기 / 중첩 스크롤 제거 === */
html.v8mob .k1.pt-task{height:auto!important;min-height:0!important;overflow:visible;padding:12px;gap:4px}
html.v8mob .k1.pt-task .pt-h{height:32px;min-height:0;margin:0}
html.v8mob .k1.pt-task .pt-h .pt-t{font-size:16px;font-weight:600;line-height:22px}
html.v8mob .k1.pt-task .pt-ring{width:32px;height:32px}
html.v8mob .k1.pt-task .pt-ring b{width:24px;height:24px;font-size:12px;font-weight:600}
html.v8mob .k1.pt-task .k1-tl{flex:none;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;padding:0;margin:0;gap:0}
html.v8mob .k1.pt-task .pt-empty{flex:none;padding:8px 0}
html.v8mob .k1.pt-task .pt-tl .item{min-height:32px!important;height:auto!important;padding:6px 0!important;margin:0!important;align-items:center;gap:8px;cursor:pointer;box-sizing:border-box}
html.v8mob .k1.pt-task .pt-tl .tick{position:relative;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:0!important;flex:none}
html.v8mob .k1.pt-task .pt-tl .tick::before{left:0!important;top:0!important;width:20px!important;height:20px!important}
html.v8mob .k1.pt-task .pt-tl .ititle{padding:0;font-size:14px;font-weight:500;line-height:20px}
html.v8mob .k1.pt-task .pt-tl .ibody{min-width:0}
/* 더 보기/접기 */
html.v8mob .k1-more{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:28px;min-height:28px!important;margin:4px 0 0;padding:0;border:0;background:none;color:var(--sub);font-size:12px;font-weight:600;line-height:1.2;box-sizing:border-box}
html.v8mob .k1-more::after{content:'';position:absolute;left:0;right:0;top:-8px;bottom:-8px}
html.v8mob .k1-more.un{color:var(--accent)}
html.v8mob .k1-more .k1-chev{font-style:normal;font-size:11px;line-height:1}
html.v8mob .k1.pt-prep .k1-more{margin-top:2px}
@media (prefers-reduced-motion:no-preference){html.v8mob .k1-more .k1-chev{transition:transform .2s}}
html.v8mob .k1.pt-task:not(:has(.k1-tl)){min-height:0!important}
html.v8mob .k1.pt-task .pt-empty{padding:4px 0 0;min-height:0;line-height:20px}
html.v8mob .k1.pt-task .pt-empty{display:block;gap:0;text-align:center;padding:6px 0 4px}
html.v8mob .k1.pt-task .pt-empty::before,html.v8mob .k1.pt-task .pt-empty::after{content:none!important;display:none!important}
/* 준비물: 항목 32, 체크 20, 글자 14, 간격 8 / 펼침 시 상단 정렬 */
html.v8mob .k1.pt-prep .prepchk{min-height:32px!important;height:auto;padding:6px 0!important;margin:0!important;font-size:14px!important;font-weight:500;line-height:20px;gap:8px;align-items:center}
html.v8mob .k1.pt-prep .pbox{width:20px;height:20px;min-width:20px;flex:none;font-size:13px;line-height:18px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
html.v8mob .k1.pt-prep .prep{gap:0}
html.v8mob .k1.pt-prep>h2{font-size:16px;font-weight:600}
html.v8mob .pt-duo.k1d:has(.k1-more[aria-expanded=true]){align-items:flex-start}
html.v8mob .k1.pt-prep .prepchk{height:auto!important;min-height:32px!important}
html.v8mob .k1.pt-prep .prepchk::after{top:0!important;bottom:0!important}
/* 15차: 가족별 일정 색상 (담당자 tone 기준, 모든 역할·화면 공통) */
html :is(.itime,.pt-tm,.mr-t,.dday).ac1{background:color-mix(in srgb,var(--ac) 16%,var(--card))!important;color:color-mix(in srgb,var(--ac) 36%,#000)!important}
html.night :is(.itime,.pt-tm,.mr-t,.dday).ac1,html[data-theme=forest] :is(.itime,.pt-tm,.mr-t,.dday).ac1,html[data-theme=midnight] :is(.itime,.pt-tm,.mr-t,.dday).ac1{background:color-mix(in srgb,var(--ac) 28%,var(--card))!important;color:color-mix(in srgb,var(--ac) 38%,#fff)!important}
.adots{display:inline-flex;align-items:center;gap:3px;margin-left:6px;vertical-align:middle;flex:none}
.adots i,.cdots i{display:block;width:7px;height:7px;border-radius:50%;background:var(--ac);outline:1px solid color-mix(in srgb,var(--ac) 55%,#000);outline-offset:0;flex:none}
html.night .adots i,html.night .cdots i,html[data-theme=forest] :is(.adots,.cdots) i,html[data-theme=midnight] :is(.adots,.cdots) i{outline-color:color-mix(in srgb,var(--ac) 55%,#fff)}
html.v8mob .pt-sr>.adots{margin-left:4px}
.cdots{display:flex;justify-content:center;align-items:center;gap:3px;height:7px;margin-top:1px;pointer-events:none}
.cdots i{width:6px;height:6px}
.day .cdots{position:absolute;left:0;right:0;bottom:2px;margin:0;height:6px}
/* 16차: 장보기 화면 (모바일) — 보이는 크기는 작게, 터치 영역은 ::after 로 44px 확보 */
.slh{display:flex;justify-content:space-between;align-items:baseline}
.slab{color:var(--sub);font-size:12px}
.sback{position:relative;display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:30px!important;padding:0;border:0;border-radius:50%;background:var(--soft);color:var(--ink);cursor:pointer}
.sback::after{content:"";position:absolute;inset:-7px}
html.v8mob .panel.shop{padding:14px;border-radius:20px;height:auto;gap:12px}
html.v8mob .shophd{flex-wrap:nowrap;gap:8px;min-height:30px}
html.v8mob .shophd h2{font-size:18px;font-weight:700;line-height:1.4;margin:0;flex:1;min-width:0}
html.v8mob .ssync{font-size:11px;font-weight:400;color:var(--sub);white-space:nowrap}
html.v8mob .shopadd{gap:10px}
html.v8mob .shopadd .sedr:first-child{flex-wrap:nowrap;gap:8px}
html.v8mob .shop input:not([type=radio]){height:44px;min-height:44px;padding:0 12px;border-radius:10px;font-size:14px;box-sizing:border-box}
html.v8mob .shopadd input[name=name]{flex:1;min-width:0}
html.v8mob .shopadd .sqty{width:56px;flex:none;padding:0 6px;text-align:center}
html.v8mob .shopadd button[type=submit]{width:56px;min-width:56px;height:44px;min-height:44px;padding:0;border-radius:10px;font-size:14px;font-weight:600;flex:none}
html.v8mob .srcat{gap:8px;flex-wrap:wrap}
html.v8mob .rchip{position:relative;min-height:30px!important;height:30px;padding:0 12px;font-size:12px;font-weight:500;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink)}
html.v8mob .rchip::after{content:"";position:absolute;left:-2px;right:-2px;top:-7px;bottom:-7px}
html.v8mob .rchip:has(input:checked){background:var(--soft);color:var(--accent);border-color:var(--accent);font-weight:600}
html.v8mob .slh b{font-size:14px;font-weight:600}
html.v8mob .slh small{font-size:12px;color:var(--sub)}
html.v8mob .sseg{display:flex;gap:0;flex-wrap:nowrap;margin-top:-4px}
html.v8mob .fchip{position:relative;flex:1 1 0;justify-content:center;height:36px;min-height:36px!important;padding:0 4px;font-size:13px;font-weight:500;border-radius:0;border:1px solid var(--line);margin-left:-1px;background:var(--card);color:var(--ink)}
html.v8mob .fchip:first-child{border-radius:10px 0 0 10px;margin-left:0}
html.v8mob .fchip:last-child{border-radius:0 10px 10px 0}
html.v8mob .fchip::after{content:"";position:absolute;left:0;right:0;top:-4px;bottom:-4px}
html.v8mob .fchip.on{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600;z-index:1}
html.v8mob .sempty{min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 0;font-size:14px}
html.v8mob .sempty .sei{font-size:24px;line-height:1}
html.v8mob .sbot{gap:8px;flex-wrap:wrap;margin-top:0}
html.v8mob .sbot .btn{min-height:44px;font-size:13px;font-weight:600;padding:0 12px;line-height:1.3}
html.v8mob .sbot .sprim{flex:1 1 140px}
html.v8mob .sbot .ssec{flex:none;width:86px;padding:0 6px}
html.v8mob .shopadd button[type=submit]{height:44px!important;min-height:44px!important}
html.v8mob .sbot .btn{height:auto;min-height:44px!important}
/* 17차: 일정 상세 행 / 달력 점 (모바일) */
.cdots em{font-style:normal;font-size:9px;line-height:6px;color:var(--sub);font-weight:600}
.cdots i.n{background:var(--sub);outline-color:color-mix(in srgb,var(--sub) 60%,#000)}
.cdots i{width:6px;height:6px}
html.v8mob .calpanel .day .cdots{gap:3px;left:0;right:0;bottom:3px;height:7px}
html.v8mob .calpanel .day{overflow:hidden}
html.v8mob .calpanel .day .badges{font-size:11px;line-height:13px;margin-top:0}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item:not(:has(.tick)) .itime{width:68px!important;min-width:68px!important;height:auto!important;min-height:26px!important;line-height:26px!important;padding:0!important;margin:0!important;border-radius:8px!important;font-size:12px!important;font-weight:600!important;text-align:center;display:inline-flex;align-items:center;justify-content:center}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item{gap:10px}
.imeta>.adots{margin:0 6px 0 0;vertical-align:1px}
.imeta>.adots i{width:7px;height:7px}
html.v8mob .fchip.on{color:var(--accent-ink,#fff)}
/* 18차: 달력 날짜 셀 — 선택 원 26×26 정원, 날짜 슬롯 26 + 마커 슬롯 16 고정 (모든 역할 모바일 공통) */
html.v8mob .calpanel .day,html.v8k1.v8mob .calpanel .day{box-sizing:border-box;min-width:0;height:50px;min-height:50px;padding:3px 0;display:grid;grid-template-rows:26px 16px;row-gap:2px;justify-items:center;align-content:center;gap:2px 0;overflow:visible;border-width:0;border-radius:12px;box-shadow:none}
html.v8mob .calpanel .day .dn,html.v8k1.v8mob .calpanel .day .dn{box-sizing:border-box;flex:0 0 26px;display:grid;place-items:center;width:26px;height:26px;min-width:26px;min-height:26px;max-width:26px;max-height:26px;aspect-ratio:1/1;padding:0;margin:0;border-radius:50%;font-size:16px;font-weight:600;line-height:1;background:none;box-shadow:none;color:inherit}
html.v8mob .calpanel .day.today:not(.sel) .dn{background:none;box-shadow:inset 0 0 0 2px var(--accent);color:var(--ink)}
html.v8mob .calpanel .day.sel .dn,html.v8k1.v8mob .calpanel .day.sel .dn{background:var(--accent);color:var(--accent-ink)!important;box-shadow:none}
html.v8mob .calpanel .day .mkr{height:16px;min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;gap:2px;overflow:hidden;pointer-events:none}
html.v8mob .calpanel .day .mkr .me{position:relative;font-size:12px;line-height:14px;flex:none}
html.v8mob .calpanel .day .mkr .me.bp::after{content:'';position:absolute;right:-2px;top:0;width:4px;height:4px;border-radius:50%;background:#F08C00}
html.v8mob .calpanel .day .mkr i{width:5px;height:5px;border-radius:50%;background:var(--ac);outline:1px solid color-mix(in srgb,var(--ac) 55%,#000);outline-offset:0;flex:none}
html.v8mob .calpanel .day .mkr i.n{background:var(--sub);outline-color:color-mix(in srgb,var(--sub) 60%,#000)}
html.night.v8mob .calpanel .day .mkr i,html[data-theme=forest].v8mob .calpanel .day .mkr i,html[data-theme=midnight].v8mob .calpanel .day .mkr i{outline-color:color-mix(in srgb,var(--ac) 55%,#fff)}
html.v8mob .calpanel .day .mkr em{font-style:normal;font-size:9px;font-weight:700;line-height:12px;color:var(--sub);flex:none}
html.v8mob .calpanel .day .mk{top:1px;right:2px;font-size:11px;line-height:12px}
html.v8mob .calpanel .day.warn,html.v8mob .calpanel .day.ok{border-width:0}
/* 범례 */
html.v8mob .legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;line-height:1.5;margin:8px 0 0;color:var(--sub)}
html.v8mob .legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.legend .lgd{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--sub);box-shadow:-9px 0 0 #8DB8F2,-4px 0 0 #F5A48C;margin-left:10px;margin-right:2px}
html.night .day .mk.w,html.night .legend .lw,html.night .day.warn .mk{color:#FFB84D}
html.night .legend .lo,html.night .day.ok .mk{color:#6FD39B}
html[data-theme=forest] .day.warn .mk,html[data-theme=forest] .legend .lw,html[data-theme=midnight] .day.warn .mk,html[data-theme=midnight] .legend .lw{color:#FFB84D}
html[data-theme=forest] .day.ok .mk,html[data-theme=forest] .legend .lo,html[data-theme=midnight] .day.ok .mk,html[data-theme=midnight] .legend .lo{color:#6FD39B}
/* 19차: 달력 일정 종류 아이콘 제거 — 6×6 대상자 색 점만 (모바일·태블릿 공통) */
html.v8mob .calpanel .day .mkr i,.calpanel .day .mkr i{width:6px;height:6px;border-radius:50%}
html.v8mob .calpanel .day .mkr{gap:3px}
.calpanel .day .mkr{display:flex;align-items:center;justify-content:center;gap:3px;height:16px;max-width:100%;overflow:hidden;pointer-events:none}
.calpanel .day .mkr i{display:block;flex:none;background:var(--ac);outline:1px solid color-mix(in srgb,var(--ac) 55%,#000)}
.calpanel .day .mkr i.n{background:#8E86B8;outline-color:#554D86}
.calpanel .day .mkr i.u{background:var(--sub);outline-color:color-mix(in srgb,var(--sub) 60%,#000)}
.calpanel .day .mkr em{font-style:normal;font-size:9px;font-weight:700;line-height:12px;color:var(--sub);flex:none}
html.night .calpanel .day .mkr i,html[data-theme=forest] .calpanel .day .mkr i,html[data-theme=midnight] .calpanel .day .mkr i{outline-color:color-mix(in srgb,var(--ac) 55%,#fff)}
html.night .calpanel .day .mkr i.n,html[data-theme=forest] .calpanel .day .mkr i.n,html[data-theme=midnight] .calpanel .day .mkr i.n{background:#B4ADDB;outline-color:#E4E0F7}
html.night .calpanel .day .mkr i.u,html[data-theme=forest] .calpanel .day .mkr i.u,html[data-theme=midnight] .calpanel .day .mkr i.u{outline-color:color-mix(in srgb,var(--sub) 60%,#fff)}
.legend .lgd{box-shadow:none;background:linear-gradient(90deg,#F5A48C 0 33%,#8DB8F2 33% 66%,#7FCFA8 66%);width:14px;height:6px;border-radius:3px;margin:0 2px 0 0;vertical-align:1px}
html.v8mob .calpanel .day,html.v8k1.v8mob .calpanel .day{row-gap:2px!important;column-gap:0!important;padding-top:3px!important;padding-bottom:3px!important;align-content:start!important}
/* 20차: 일정 없는 날 안내 — 44~48px, 13px 가운데 정렬 / 하단 Orb 여유는 카드 밖 여백으로 */
html.v8mob .cal-day-panel{padding:14px!important;margin-bottom:106px}
html.v8mob .cal-day-panel .empty{box-sizing:border-box;height:46px;min-height:0!important;padding:0 12px!important;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;line-height:1.4}
/* 21차: 팝업 공통 — Noto Sans KR 통일, 18/700 제목, 16px 패딩, 24px 상단 모서리, 핸들 32×4 */
.overlay .sheetbox,.overlay .sheetbox *,.overlay .sheetbox input,.overlay .sheetbox textarea,.overlay .sheetbox button,.overlay .sheetbox select{font-family:var(--body)}
.overlay .sheetbox h1,.overlay .sheetbox h2,.overlay .sheetbox h3{font-family:var(--body);font-weight:700;letter-spacing:-.02em}
.overlay .sheetbox input,.overlay .sheetbox textarea,.overlay .sheetbox button{font:inherit}
.sheetbox .grab{display:block;width:32px;height:4px;border-radius:2px;background:var(--line);margin:-6px auto 2px;flex:none}
html.v8mob .overlay .sheetbox{padding:16px 16px calc(env(safe-area-inset-bottom) + 16px);gap:12px;border-radius:24px 24px 0 0;max-height:min(88vh,calc(var(--vvh,100vh) - 12px));overflow-y:auto;overscroll-behavior:contain}
html.v8mob .overlay .sheetbox h2{font-size:18px;line-height:1.4;gap:10px}
html.v8mob .overlay .sheetbox .btn{min-height:44px;border-radius:12px;font-size:14px;font-weight:600}
html.v8mob.sheetopen body{overflow:hidden}
html.v8mob .overlay.say-ov{z-index:70}
html.v8mob .saybox .quick-message-grid,.saybox .quick-message-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.saybox .quick-message-grid>:last-child:nth-child(odd){grid-column:1/-1}
.saybox .quick-message-grid .ping-btn{min-height:44px;border-radius:12px;padding:8px 10px;font-size:14px;font-weight:600;line-height:1.3;margin:0;width:auto}
.saybox .say-div{height:1px;background:var(--line);margin:2px 0}
.saybox .cm-lab{font-size:14px;font-weight:600;line-height:1.4;color:var(--ink)}
.saybox .custom-message{box-sizing:border-box;width:100%;min-height:88px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:14px;line-height:1.5;resize:none}
.saybox .custom-message:focus-visible{outline:2px solid var(--accent);outline-offset:1px;box-shadow:none}
.saybox .cm-cnt{text-align:right;font-size:11px;line-height:1;color:var(--sub);margin-top:-6px}
.saybox .message-send{width:100%;background:var(--accent);color:var(--accent-ink);border:0}
.saybox .message-send:disabled{opacity:.45}
.saybox .sheet-close{width:100%}
.saybox h2 .av{flex:none}
/* 22차: 새 기록 작성창 — 모든 역할 모바일 공통 (첫째 기준을 전체로) */
html.v8mob .stover.mn .stsheet{padding:12px 16px calc(env(safe-area-inset-bottom) + 16px)}
html.v8mob .stsheet .grab{width:32px;height:4px;margin:0 auto 12px}
html.v8mob .stsheet h2{font-size:18px;font-weight:700;line-height:24px;margin:0 0 10px;gap:8px}
html.v8mob .stsheet h2 .ico,html.v8mob .stsheet h2 img{width:20px;height:20px}
html.v8mob .mndate{min-height:44px;padding:0 12px;margin:0 0 10px;border-radius:14px;flex-wrap:wrap}
html.v8mob .mndate .mndl{font-size:14px;font-weight:600;line-height:20px}
html.v8mob .mndate small{font-size:12px;font-weight:500;line-height:17px;display:inline-flex;align-items:center;min-height:44px}
html.v8mob .mnpick{min-height:108px;padding:10px;gap:4px;margin:0 0 10px;border-width:1.5px}
html.v8mob .mnpick span{font-size:32px;line-height:32px}
html.v8mob .mnpick b{font-size:15px;font-weight:600;line-height:21px}
html.v8mob .mnpick small{font-size:12px;font-weight:400;line-height:17px}
html.v8mob .stsheet .field{margin:0 0 10px}
html.v8mob .stsheet .field textarea{min-height:80px;padding:12px 12px 24px;font-size:14px;font-weight:400;line-height:20px}
html.v8mob .stsheet .field textarea::placeholder{font-size:14px;font-weight:400;line-height:20px}
html.v8mob .mncount{font-size:11px;line-height:15px;right:12px;bottom:8px}
html.v8mob .stsheet .hint{font-size:12px;line-height:17px;margin:0 0 10px}
html.v8mob .stsheet form>.row{display:flex;gap:8px;margin:0}
html.v8mob .stsheet form>.row .btn{flex:1 1 0;min-width:0;min-height:44px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;box-sizing:border-box;line-height:1.2}
html.v8mob .stsheet form>.row{gap:10px}
html.v8mob .stsheet,html.v8mob .stsheet *,html.v8mob .stsheet input,html.v8mob .stsheet textarea,html.v8mob .stsheet button{font-family:var(--body)}
html.v8mob .stsheet h2{font-family:var(--body)}
html.v8mob .stsheet .field textarea:focus,html.v8mob .stsheet .field textarea:focus-visible,html.v8mob .mndate:focus-within{outline:2px solid var(--accent);outline-offset:0;box-shadow:none;border-color:var(--accent)}
html.v8mob .stsheet .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none}
html.v8mob .saybox .quick-message-grid .ping-btn{font-weight:600!important;font-size:14px!important}
html.v8mob .saybox .custom-message{font-size:14px!important;line-height:1.5!important}
/* 23차: 가족 한마디 팝업 (모바일) — 제목 1개, 메시지 카드 12px 패딩, ⋯ 44×44 */
html.v8mob .stsheet.lvall h3{font-family:var(--body);font-size:18px;font-weight:700;line-height:1.4;margin:0 0 10px}
html.v8mob .stsheet.lvall .notes .note{position:relative;display:block;padding:12px;margin:0 0 10px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
html.v8mob .stsheet.lvall .notes .notehead{display:grid;grid-template-columns:32px minmax(0,1fr) 44px;grid-template-areas:"av nm mn" "av tm mn";column-gap:10px;row-gap:0;align-items:center;min-height:44px}
html.v8mob .stsheet.lvall .notes .notehead .by{display:contents;font-size:14px;font-weight:600;line-height:20px}
html.v8mob .stsheet.lvall .notes .notehead .by .av{grid-area:av;--s:32px;width:32px;height:32px;font-size:16px}
html.v8mob .stsheet.lvall .notes .notehead .ntime{grid-area:tm;font-size:12px;line-height:17px;margin:0}
html.v8mob .stsheet.lvall .notes .notehead .pingtag{display:none}
html.v8mob .stsheet.lvall .notes .notehead .imore{grid-area:mn;position:relative;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;font-size:18px;line-height:1;justify-self:end}
html.v8mob .stsheet.lvall .notes .note .txt{margin:6px 0 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
html.v8mob .stsheet.lvall .notes .note.gone{opacity:.8}
html.v8mob .stsheet.lvall>.row .btn{width:100%;min-height:44px;font-size:14px;font-weight:600;border-radius:12px}
/* 24차: 내일 챙길 것 / 받은 칭찬 — 제목 16/600, 요소 간격 6~8, 답장하기 터치 44 */
html.v8mob .k1.pt-prep h2,html.v8mob .k1.pt-praise .pt-h,html.v8mob .k1.pt-prep .pt-h,html.v8mob .k1.pt-praise .pt-t{font-size:16px!important;font-weight:600!important;line-height:22px}
html.v8mob .k1-grp .k1-pf{margin-top:6px}
html.v8mob .k1.pt-praise>.k1-rbtn{margin-top:8px}
html.v8mob .k1-bot{margin-top:8px;gap:6px}
html.v8mob .pt-duo.k1d>*{min-height:0!important}

/* 25차(V93): 오늘 일정 행 — [시간 배지 44] [제목 13/500 최대 2줄 + 보조(점 6×6·내일 11px)] */
html.v8mob .pt-sch .pt-sr{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;column-gap:8px!important;align-items:start!important;height:auto!important;min-height:44px!important;padding:6px 0!important;text-align:left}
html.v8mob .pt-sch .pt-sr .pt-tm{width:44px!important;min-width:44px!important;height:22px!important;padding:0!important;margin:0!important;font-size:12px!important;align-self:start!important}
html.v8mob .pt-sch .pt-bd{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:2px}
html.v8mob .pt-sch .pt-bd .pt-nm{font-size:13px!important;font-weight:500!important;line-height:17px!important;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
html.v8mob .pt-sch .pt-mt{display:flex;align-items:center;gap:6px;font-size:11px;line-height:14px;min-height:14px;color:var(--sub)}
html.v8mob .pt-sch .pt-mt .adots{margin:0!important;gap:3px}
html.v8mob .pt-sch .pt-mt .adots i{width:6px;height:6px}
html.v8mob .pt-sch .pt-mt .pt-dy{font-size:11px!important;line-height:14px}

/* 26차(V93): Orb — 스크롤 중 임시 축소(0.6배, 190ms). 터치 영역은 줄어든 상태에서도 44px 이상, 장식은 pointer-events:none 유지 */
.home-orb.aiorb{transition:box-shadow .4s,scale .19s ease,opacity .19s ease}
html.v8mob.orbmin .home-orb.aiorb{scale:.6;opacity:.92}
html.v8mob.orbmin .home-orb.aiorb::after{content:'';position:absolute;inset:-16px;border-radius:0;background:transparent}
@media (prefers-reduced-motion:reduce){.home-orb.aiorb{transition:none}}

/* 27차(V93): 하단 탭바 — 배경 100% 불투명(테마별 카드색 그대로) */
html.v8mob .bnav .tabs,html[data-theme=ocean]:not(.night).v8mob .bnav .tabs,html[data-theme=ocean]:not(.night) .bnav .tabs{background:var(--card)!important}

/* 28차(V93): 받은 칭찬 전체 너비 압축형 — 패딩 12, 제목 16/600, 본문 14, 보낸 사람·날짜·답장 12, 높이 고정 없음 */
html.v8mob .k1.pt-praise.pt-wide{padding:12px!important;display:block!important;height:auto!important;min-height:0!important}
html.v8mob .pt-wide .pt-h{margin:0 0 6px!important;height:24px!important;min-height:0!important;display:flex;align-items:center}
html.v8mob .pt-wide .pt-t{font-size:16px!important;font-weight:600!important}
html.v8mob .pt-wide .k1-new{margin-left:8px!important}
html.v8mob .pt-wide .pw-wk{margin-left:auto;font-size:12px;line-height:16px;color:var(--sub);white-space:nowrap}
html.v8mob .pt-wide .pw-wk b{color:var(--ink);font-weight:700}
html.v8mob .pt-wide .pw-pt{font-size:14px;line-height:20px;font-weight:500;color:var(--ink);overflow-wrap:anywhere;word-break:keep-all}
html.v8mob .pt-wide .pw-mt{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;min-height:20px}
html.v8mob .pt-wide .pw-pf{font-size:12px;line-height:16px;color:var(--sub);min-width:0}
html.v8mob .pt-wide .pw-rp{font-size:12px;line-height:16px;color:var(--ink);text-align:right;overflow-wrap:anywhere;min-width:0}
html.v8mob .pt-wide .pw-mt .k1-rbtn{position:relative;margin:0!important;height:28px!important;min-height:28px!important;padding:0 12px!important;font-size:12px!important;line-height:26px!important;flex:none}
html.v8mob .pt-wide .pw-mt .k1-rbtn::after{content:'';position:absolute;left:-6px;right:-6px;top:-8px;bottom:-8px}
html.v8mob .pt-wide .pw-pills{margin-top:6px}
html.v8mob .pt-wide .pw-bot{margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
html.v8mob .pt-wide .pw-bot .lv-more{position:relative;margin:0;padding:0;min-height:16px!important;height:16px;line-height:16px;font-size:12px;font-weight:600;background:none;border:0}
html.v8mob .pt-wide .pw-bot .lv-more::after{content:'';position:absolute;left:-6px;right:-6px;top:-14px;bottom:-14px}

/* 29차(V93): 날씨 없음 — 날씨 영역을 접고 날짜만 남긴다(visibility 숨김·빈 칸·"--" 없음) */
html.v8mob.nowx .v8chip .wxslot{display:none!important}
html.v8mob.nowx .v8top .v8chip{height:auto!important;min-width:0!important;width:auto!important;padding:6px 14px!important;justify-content:center!important}

/* 30차(V93): 더보기 하단 버전·빌드 표기 */
.oh-build{margin:22px 0 12px;text-align:center;font-size:11px;line-height:16px;color:var(--sub);opacity:.85;user-select:text}

/* 31차: 글꼴 완전 통일 — 장식 글꼴 제거 후 제목류 굵기 보정(기존 고딕 굵은 글꼴 대체), 폼 요소 상속 */
h1,h2,h3,.timebig,.card .nm,.row2 strong,.cta,.dday,.whocard,.wxt,.fc-top strong,.stat{font-weight:700}
button,input,select,textarea{font-family:inherit}
.v8bh svg{display:inline-block;vertical-align:-.14em}

/* 32차: Orb 아래로 마지막 카드(⋯ 등)가 스크롤로 완전히 벗어나도록 하단 여유 확보 */
html.v8mob:has(.home-orb.aiorb) #app>.app{padding-bottom:144px}
.home-orb.aiorb::after{content:"";position:absolute;inset:-12px;border-radius:0;background:transparent;pointer-events:auto}

/* 33차: 가족 지금 행 — 사진 + (이름 / 상태) 2줄. 상태는 우측 끝 정렬 제거, 행 높이·카드 너비 유지 */
html.v8mob .pt-fam .pt-fr{display:flex;align-items:center;gap:6px;height:32px;min-height:32px;padding:0}
html.v8mob .pt-fam .pt-ft{display:flex;flex-direction:column;justify-content:center;gap:2px;flex:1 1 auto;min-width:0}
html.v8mob .pt-fam .pt-ft .pt-fn{flex:none;display:flex;align-items:center;gap:3px;min-width:0;max-width:100%;font-size:13px;font-weight:600;line-height:15px}
html.v8mob .pt-fam .pt-ft .pt-fs{flex:none;max-width:100%;font-size:12px;font-weight:400;line-height:14px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 34차: Orb 임시 위치(충돌 회피) — translate 만 사용, 190ms. 크기(scale)·투명도 규칙은 그대로 */
.home-orb.aiorb{translate:var(--orb-dx,0px) var(--orb-dy,0px);transition:box-shadow .4s,scale .19s ease,opacity .19s ease,translate .19s ease}
@media (prefers-reduced-motion:reduce){.home-orb.aiorb{transition:none}}

/* 35차: 태블릿 일정 줄의 종류별 아이콘(📌 등) 제거 — 모바일 규칙(.v8mob .item .emo)과 동일하게 적용. 레이아웃·간격 불변 */
.kdmode .item:not(:has(.tick)) .emo{display:none}

/* 36차: 야간 모드 입력창 안내 문구 — 기본 회색(#757575)이 어두운 배경에서 대비 부족 → 기존 테마 보조 글자색 사용 */
html.night input::placeholder,html.night textarea::placeholder{color:var(--sub);opacity:1}

/* 37차: 모바일 시트(일정 추가 등)가 하단 내비 뒤로 가려지던 문제 — 부모·둘째도 첫째 폰과 동일하게 시트를 내비 위에 표시(z-index만) */
html.v8mob .overlay{z-index:65}

/* 38차: 실제 모바일 캡처의 정렬·외곽·텍스트 넘침 수정 */
html.v8mob .pt-fam .pt-fl{display:flex;flex-direction:column;gap:4px}
html.v8mob .pt-fam .pt-fr,html.v8mob .k1.pt-fam .pt-fr{height:auto;min-height:36px;gap:8px;align-items:center}
html.v8mob .pt-fam .pt-av{position:relative;width:24px;height:24px;flex:0 0 24px}
html.v8mob .pt-fam .pt-av .av{--s:24px!important;width:24px;height:24px}
html.v8mob .pt-fam .pt-av .pt-dot{position:absolute;right:0;bottom:0;width:5px;height:5px;box-sizing:content-box;border:1px solid var(--card);margin:0}
html.v8mob .pt-fam .pt-ft .pt-fn{display:block;line-height:16px;font-size:13px;font-weight:600}
html.v8mob .pt-fam .pt-ft .pt-fs{line-height:15px;font-size:12px;font-weight:400}
html .calpanel .day .mkr i,html .calpanel .day .cdots i{display:block;width:6px!important;height:6px!important;min-width:6px;min-height:6px;max-width:6px;max-height:6px;flex:0 0 6px;box-sizing:border-box;border-radius:50%;border:0!important;outline:none!important;box-shadow:none!important;padding:0;margin:0}
html .calpanel .day .mkr{height:16px;gap:3px;align-items:center;justify-content:center}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item:not(:has(.tick)){grid-template-columns:var(--tbw,94px) minmax(0,1fr) 44px;column-gap:10px}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item:not(:has(.tick)):not(:has(.iact)){grid-template-columns:var(--tbw,94px) minmax(0,1fr)}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item:not(:has(.tick)) .itime{width:var(--tbw,94px)!important;min-width:94px!important;min-height:28px!important;height:auto!important;line-height:18px!important;padding:5px 8px!important;box-sizing:border-box;font-size:12px!important;font-weight:500!important;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;border-radius:9px!important}
html.v8mob .pt-prep>h2,html.v8mob .prepwarn>h2{height:auto!important;min-height:24px;flex-wrap:wrap;align-items:center;row-gap:2px;margin-bottom:6px!important}
html.v8mob .pt-prep>h2 .hint,html.v8mob .prepwarn>h2 .hint{flex:0 0 100%;font-size:11px;line-height:16px;margin:0;position:static}
html.v8mob :is(.pt-prep,.prepwarn) .prepgroup .sub{height:auto;min-height:22px;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0 0 8px;padding:3px 10px;box-sizing:border-box}
.boardmode .item:not(:has(.tick)) .emo{display:none}
html.v8mob .k1.pt-fam .pt-fl{gap:4px}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup) .item:not(:has(.tick)) .schedule-title{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere;align-self:start;line-height:1.45;padding-top:4px}

/* 39차: 준비물 카드 "(오늘)"을 제목 오른쪽에 인라인 배치(별도 줄 제거). 제목 16px·날짜 11px 보조색·간격 4px·세로 중앙.
   좁으면 이 헤더만 제목을 14px→13px로 줄여 한 줄 유지, 그래도 모자라면 날짜만 제목 글자선 아래로 내림. 다른 카드·배지·체크리스트 불변 */
html.v8mob h2:has(>.pw-t){display:flex;flex-wrap:nowrap!important;align-items:center;gap:4px;height:auto!important;min-height:24px;container-type:inline-size;min-width:0}
html.v8mob h2>.pw-t{flex:0 1 auto;min-width:0;white-space:nowrap;font-size:16px;line-height:24px}
html.v8mob h2>.pw-t+.hint{flex:0 0 auto!important;margin:0!important;padding:0;font-size:11px!important;line-height:16px!important;color:var(--sub)!important;white-space:nowrap;align-self:center;position:static}
@container (max-width:158px){html.v8mob h2>.pw-t{font-size:14px}}
@container (max-width:138px){html.v8mob h2>.pw-t{font-size:13px}}

/* V93-41: wide child tablet only; shared mobile cards */
html.ainwide .ain-today .mqrow{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0}
html.ainwide .ain-today .mq{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:56px;padding:2px 0;background:none!important;border:0;border-right:1px solid var(--line);border-radius:0;color:var(--ink);box-shadow:none}
html.ainwide .ain-today .mq:last-child{border-right:0}
html.ainwide .ain-today .mq.main{background:none!important;color:var(--ink)}
html.ainwide .ain-today .mq-i{display:grid;place-items:center;width:34px;height:34px}
html.ainwide .ain-today .mq-i .v8ic{width:32px;height:32px;object-fit:contain}
html.ainwide .ain-today .mq-t{font-size:12px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
html.ainwide .ain-today .lt-q .mqrow{display:grid;grid-template-columns:1fr 1fr}
html.ainwide .ain-today .lt-q .mq{min-height:76px;flex-direction:row;gap:12px;font-size:18px;font-weight:650;justify-content:center;border:0}
html.ainwide .ain-today .lt-q .mq:first-child{border-right:1px solid var(--line)}
html.ainwide .ain-today .lt-q .mq .mq-t{font-size:18px}
html.ainwide .ain-today .panel.pt-q{box-sizing:border-box;padding:0;margin:0 0 12px;border:0;border-radius:20px;height:78px;min-height:78px;box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8)}
html.ainwide .ain-today .pt-q .mqrow{height:78px}
html.ainwide .ain-today .pt-q .mq{position:relative;justify-content:flex-start!important;gap:7px;padding:11px 0 0;min-height:78px;border:0;font-size:12px}
html.ainwide .ain-today .pt-q .mq+.mq::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:var(--line)}
html.ainwide .ain-today .pt-q .mq-i{width:30px;height:30px}
html.ainwide .ain-today .pt-q .mq-i .v8ic{width:30px;height:30px}
html.ainwide .ain-today .pt-q .mq-t{font-size:13px;font-weight:700;line-height:16px;letter-spacing:-.02em}
html.ainwide .ain-today .pt-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px;align-items:stretch}
html.ainwide .ain-today .pt-c{position:relative;display:flex;flex-direction:column;box-sizing:border-box;min-width:0;padding:12px;margin:0;border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 93%,var(--soft)));border:0;box-shadow:0 6px 16px rgba(52,78,120,.08),inset 0 0 0 1px rgba(255,255,255,.8);color:var(--ink)}
html.ainwide .ain-today .pt-c.pt-prep{margin:0 0 12px}
html.ainwide .ain-today .pt-sch{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 82%,var(--soft)),color-mix(in srgb,var(--card) 68%,var(--soft)))}
html.ainwide .ain-today .pt-h{display:flex;align-items:center;gap:4px;height:24px;margin:0 0 8px;font-family:var(--body);font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.03em;color:var(--ink)}
html.ainwide .ain-today .pt-ic{flex:none;width:22px;height:22px;display:grid;place-items:center}
html.ainwide .ain-today .pt-ic img,html.ainwide .ain-today .pt-ic svg{width:22px;height:22px;display:block;object-fit:contain}
html.ainwide .ain-today .pt-ic .v8tic{width:18px;height:18px;padding:2px;box-sizing:content-box;border-radius:7px;background:color-mix(in srgb,var(--soft) 70%,var(--card));color:var(--accent)}
html.ainwide .ain-today .pt-t{min-width:0;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-go{flex:none;width:44px;height:44px;margin:-10px -14px -10px 0;display:grid;place-items:center;background:none;border:0;color:var(--sub);font-size:18px;line-height:1;padding:0 0 3px;font-family:var(--body)}
html.ainwide .ain-today .pt-empty{padding:10px 0;font-size:14px;color:var(--sub);text-align:center}
html.ainwide .ain-today .pt-c .lv-more{display:block;width:100%;min-height:44px;margin-top:auto;padding:0;text-align:left;font-size:12px;font-weight:600;color:var(--accent);background:none;border:0}
html.ainwide .ain-today .pt-sl{display:flex;flex-direction:column}
html.ainwide .ain-today .pt-sr{display:flex;align-items:center;gap:6px;width:100%;height:40px!important;min-height:0!important;box-sizing:border-box;padding:0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;font:inherit;text-align:left;color:var(--ink)}
html.ainwide .ain-today .pt-sr:last-child{border-bottom:0}
html.ainwide .ain-today .pt-tm{flex:none;display:grid;place-items:center;min-width:48px;height:24px;padding:0 4px;border-radius:12px;box-sizing:border-box;background:color-mix(in srgb,var(--soft) 92%,var(--accent));color:var(--accent);font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html.ainwide .ain-today .pt-tm.all{background:color-mix(in srgb,var(--soft) 88%,var(--card));font-weight:400}
html.ainwide .ain-today .pt-nm{min-width:0;flex:1 1 auto;font-size:15px;font-weight:400;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-tm.all+.pt-nm{font-weight:600}
html.ainwide .ain-today .pt-dy{flex:none;font-style:normal;font-size:13px;color:var(--sub)}
html.ainwide .ain-today .pt-al{margin-top:8px;padding-top:8px;border-top:1px solid var(--line, rgba(128,128,128,.25));font-size:12px;color:var(--sub)}
html.ainwide .ain-today .pt-fl{display:flex;flex-direction:column}
html.ainwide .ain-today .pt-fr{display:flex;align-items:center;gap:6px;height:34px}
html.ainwide .ain-today .pt-av{flex:none;width:24px;height:24px;display:block}
html.ainwide .ain-today .pt-av .av{--s:24px!important;box-shadow:none!important}
html.ainwide .ain-today .pt-fn{display:flex;align-items:center;gap:3px;flex:1 1 auto;min-width:0;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-dot{flex:none;width:4px;height:4px;border-radius:50%;background:#34a853}
html.ainwide .ain-today .pt-dot.off{background:var(--sub);opacity:.5}
html.ainwide .ain-today .pt-fs{flex:none;max-width:60px;font-size:15px;font-weight:400;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-fs i{font-style:normal;color:var(--sub)}
html.ainwide .ain-today .pt-task .pt-h{height:48px;margin:0}
html.ainwide .ain-today .pt-ring{flex:none;margin-left:auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--pt-hi) calc(var(--p)*1%),var(--line) 0)}
html.ainwide .ain-today .pt-ring b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--card);font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
html.ainwide .ain-today .pt-tl .item{display:flex;align-items:center;gap:0;min-height:44px;height:44px;padding:0;margin:0;border:0;background:none;border-radius:0;box-shadow:none}
html.ainwide .ain-today .pt-tl .tick{position:relative;flex:none;width:44px;height:44px;margin:0 -5px 0 -13px;padding:0;background:none!important;border:0!important;box-shadow:none!important;color:var(--accent-ink)}
html.ainwide .ain-today .pt-tl .tick::before{content:"";position:absolute;left:13px;top:13px;width:18px;height:18px;box-sizing:border-box;border-radius:5px;border:1.5px solid color-mix(in srgb,var(--ink) 55%,transparent);background:var(--card)}
html.ainwide .ain-today .pt-tl .item.done .tick::before{background:var(--pt-hi);border-color:var(--pt-hi)}
html.ainwide .ain-today .pt-tl .tick svg{position:absolute;left:15px;top:15px;width:14px;height:14px}
html.ainwide .ain-today .pt-tl .ibody{min-width:0;flex:1 1 auto}
html.ainwide .ain-today .pt-tl .ititle{font-size:15px;font-weight:400;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-tl .item.done .ititle{text-decoration:line-through;color:var(--sub)}
html.ainwide .ain-today .pt-tl .imeta{display:none}
html.ainwide .ain-today .pt-note{background:linear-gradient(180deg,#fdf7fb,#f8ebf2)}
html.ainwide .ain-today .pt-note .pt-h{margin-bottom:6px}
html.ainwide .ain-today .pt-who{display:flex;align-items:center;gap:6px;height:24px;margin:0 0 8px;font-size:13px;min-width:0}
html.ainwide .ain-today .pt-who .av{--s:24px!important;box-shadow:none!important;flex:none}
html.ainwide .ain-today .pt-who b{font-weight:700;flex:none}
html.ainwide .ain-today .pt-who time{min-width:0;color:var(--sub);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-bub{box-sizing:border-box;padding:10px 12px;border-radius:12px;background:#f9e9ef;font-size:15px;font-weight:400;line-height:21px;color:#3b2d3a;white-space:pre-line;overflow-wrap:anywhere}
html.ainwide .ain-today .pt-bub.ping{background:#f5e3ef}
html.ainwide .ain-today .pt-add{align-self:flex-start;margin-top:auto;min-height:44px;padding:0;background:none;border:0;font-family:var(--body);font-size:12px;font-weight:600;color:var(--accent)}
html.ainwide .ain-today .pt-note .noteform{display:grid;gap:6px;margin:0 0 8px}
html.ainwide .ain-today .pt-note .noteform input{min-width:0;font-size:14px}
html.ainwide .ain-today .pt-nf{display:flex;align-items:center;justify-content:flex-start;gap:2px;margin-top:auto;min-height:44px}
html.ainwide .ain-today .pt-nf .pt-add{margin-top:0}
html.ainwide .ain-today .pt-nf .pt-more{min-width:44px;min-height:44px;margin:0;background:none;border:0;color:var(--sub);font-size:20px}
html.ainwide .ain-today .pt-tl .ititle,html.ainwide .ain-today .pt-sr .pt-nm{font-size:15px!important;font-weight:400!important}
html.ainwide .ain-today .pt-tm.all+.pt-nm{font-weight:600!important}
html.ainwide .ain-today .pt-tl .tick::before{left:13px!important;top:13px!important;width:18px!important;height:18px!important;border-radius:5px!important;border-width:1.5px!important}
html.ainwide .ain-today .pt-tl .item.done .tick::before,html.ainwide .ain-today .pt-tl .item .tick[aria-checked=true]::before{background:var(--pt-hi)!important;border-color:var(--pt-hi)!important}
html.ainwide .ain-today .pt-tl .item:not(.done) .tick::before{background:var(--card)!important;border-color:color-mix(in srgb,var(--ink) 78%,transparent)!important}
html.ainwide .ain-today .pt-bub{word-break:normal;line-break:auto}
html.ainwide .ain-today .pt-bub{font-size:14px;line-height:21px}
html.ainwide .ain-today .pt-ic .v8tic{width:22px;height:22px;padding:0;background:none;border-radius:0;color:var(--accent)}
html.ainwide .ain-today .pt-ic img,html.ainwide .ain-today .pt-q .mq-i img{background:none;border-radius:0;box-shadow:none}
html.ainwide .ain-today .pt-tm{color:color-mix(in srgb,var(--accent) 70%,var(--ink))}
html.ainwide .ain-today .pt-tm{color:color-mix(in srgb,var(--accent) 50%,var(--ink))}
html.ainwide .ain-today .pt-tm{color:color-mix(in srgb,var(--accent) 25%,var(--ink))}
html.ainwide .ain-today .pt-sr{position:relative}
html.ainwide .ain-today .pt-sr::after{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px}
html.ainwide .ain-today .pt-task .pt-h{align-items:flex-start}
html.ainwide .ain-today .pt-task .pt-h .pt-ic,html.ainwide .ain-today .pt-task .pt-h .pt-t{margin-top:6px}
html.ainwide .ain-today .pt-task .pt-ring{margin-top:0}
html.ainwide .ain-today .pt-tl .tick{margin:0 -10px 0 -14px}
html.ainwide .ain-today .pt-fl{margin-top:-2px}
html.ainwide .ain-today .pt-av,html.ainwide .ain-today .pt-av .av{width:22px;height:22px}
html.ainwide .ain-today .pt-av .av{--s:22px!important}
html.ainwide .ain-today .pt-who .av{--s:22px!important}
html.ainwide .ain-today .pt-note .pt-h{margin-bottom:5px}
html.ainwide .ain-today .pt-who{gap:6px;margin:0 0 8px}
html.ainwide .ain-today .pt-bub{padding:10px;font-size:15px;line-height:22px;word-break:keep-all;overflow-wrap:break-word;line-break:strict}
html.ainwide .ain-today .pt-fl{margin-top:-4px}
html.ainwide .ain-today .pt-tl{margin-top:2px}
html.ainwide .ain-today .pt-who{margin-bottom:11px}
html.ainwide .ain-today .pt-note .pt-h{margin-bottom:6px}
html.ainwide .ain-today .pt-task .pt-h .pt-ic,html.ainwide .ain-today .pt-task .pt-h .pt-t{margin-top:9px}
html.ainwide .ain-today .pt-tl{margin-top:-1px}
html.ainwide .ain-today .pt-who{margin-bottom:13px}
html.ainwide .ain-today .pt-note .pt-h{margin-bottom:7px}
html.ainwide .ain-today .pt-tl{margin-top:4px}
html.ainwide .ain-today .pt-duo:nth-of-type(1) .pt-c{min-height:188px}
html.ainwide .ain-today .pt-duo:nth-of-type(2) .pt-c{height:252px;overflow:hidden}
html.ainwide .ain-today .pt-bub{white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
html.ainwide .ain-today .pt-duo:nth-of-type(1) .pt-c{height:188px;min-height:0;overflow:hidden}
html.ainwide .ain-today .pt-c .pt-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:0 0 12px;font-size:14px;line-height:20px;color:var(--sub)}
html.ainwide .ain-today .pt-c .pt-empty::before{font-size:26px;line-height:30px;opacity:.9}
html.ainwide .ain-today .pt-sch .pt-empty::before{content:none}
html.ainwide .ain-today .pt-task .pt-empty::before{content:none}
html.ainwide .ain-today .pt-note .pt-empty::before{content:none}
html.ainwide .ain-today .pt-c .lv-more{display:block;width:100%;min-height:0;height:24px;margin:0;padding:0;font-size:12px;line-height:24px;text-align:left;background:none;border:0;box-shadow:none;color:var(--accent-ink,var(--accent));font-weight:600}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more) .pt-sr{height:34px!important}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more){margin-top:-2px}
html.ainwide .ain-today .pt-c .lv-more{opacity:1!important;color:color-mix(in srgb,var(--accent) 65%,var(--ink))!important}
html.ainwide.night .ain-today .pt-c .lv-more{color:color-mix(in srgb,var(--accent) 55%,#fff)!important}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more) .pt-sr::after{top:-5px;bottom:-5px}
html.ainwide .ain-today .panel.pt-q{margin-bottom:10px}
html.ainwide .ain-today .pt-duo{margin-bottom:10px}
html.ainwide .ain-today .pt-c.pt-prep{margin-bottom:10px}
html.ainwide .ain-today .pt-duo:nth-of-type(n) .pt-c{height:auto!important;min-height:0!important;overflow:visible!important}
html.ainwide .ain-today .pt-duo:has(.pt-empty) .pt-c{min-height:150px!important}
html.ainwide .ain-today .pt-h{margin-bottom:6px}
html.ainwide .ain-today .pt-sr{height:34px!important}
html.ainwide .ain-today .pt-tm{min-width:46px;width:46px;height:22px;font-size:12px!important}
html.ainwide .ain-today .pt-sr .pt-nm,html.ainwide .ain-today .pt-tl .ititle{font-size:13px!important;line-height:18px}
html.ainwide .ain-today .pt-dy{font-size:11px}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more) .pt-sr{height:30px!important}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more){margin-top:0}
html.ainwide .ain-today .pt-fl{margin-top:0}
html.ainwide .ain-today .pt-fr{height:30px}
html.ainwide .ain-today .pt-fn,html.ainwide .ain-today .pt-fs{font-size:13px}
html.ainwide .ain-today .pt-fs{max-width:64px}
html.ainwide .ain-today .pt-tl{margin-top:0}
html.ainwide .ain-today .pt-tl .item{height:36px;min-height:36px}
html.ainwide .ain-today .pt-tl .tick{margin:-4px -10px -4px -14px}
html.ainwide .ain-today .pt-bub{padding:8px 10px;font-size:13px;line-height:19px}
html.ainwide .ain-today .pt-who{margin:0 0 6px}
html.ainwide .ain-today .pt-who time{font-size:11px}
html.ainwide .ain-today .pt-note .pt-h{margin-bottom:6px}
html.ainwide .ain-today .pt-bub{padding:0 10px;border:solid transparent;border-width:8px 0;background-clip:border-box}
html.ainwide .ain-today .pt-sr::after{top:-5px;bottom:-5px}
html.ainwide .ain-today .pt-sch .pt-sl:has(+ .lv-more) .pt-sr::after{top:-7px;bottom:-7px}
html.ainwide .ain-today .pt-prep{padding:12px;border-radius:18px}
html.ainwide .ain-today .pt-prep h2{display:flex;align-items:center;gap:4px;height:24px;margin:0 0 6px;font-size:16px;font-weight:600;line-height:24px;letter-spacing:-.03em}
html.ainwide .ain-today .pt-prep h2 .v8hi{width:22px;height:22px}
html.ainwide .ain-today .pt-prep .kd-prog{margin-left:auto;font-size:13px;font-weight:600;line-height:16px;color:var(--sub)}
html.ainwide .ain-today .pt-prep .prepgroup{margin:0}
html.ainwide .ain-today .pt-prep .prepgroup+.prepgroup{margin-top:2px}
html.ainwide .ain-today .pt-prep .sub{display:inline-flex;align-items:center;height:22px;margin:0 0 2px;padding:0 10px;border-radius:11px;font-size:12px;font-weight:500;line-height:16px}
html.ainwide .ain-today .pt-prep .prepchk{position:relative;gap:6px;height:36px!important;min-height:0!important;font-size:13px;font-weight:400}
html.ainwide .ain-today .pt-prep .prepchk::after{content:"";position:absolute;left:0;right:0;top:-4px;bottom:-4px}
html.ainwide .ain-today .pt-prep .prepchk .pbox{width:18px;height:18px;margin:0;border-radius:5px;font-size:12px}
html.ainwide .ain-today .pt-prep .prepchk:not([aria-checked=true]) .pbox{border-color:color-mix(in srgb,var(--ink) 78%,transparent);background:var(--card)}
html.ainwide .ain-today .pt-prep .prepchk[aria-checked=true] .pbox{background:var(--pt-hi);border-color:var(--pt-hi)}
html.ainwide .ain-today .pt-prep .lv-more,html.ainwide .ain-today .pt-prep .kd-pmore{height:24px;min-height:0;margin:0;padding:0;font-size:12px;line-height:24px}
html.ainwide .ain-today .k1.pt-task .pt-h{height:48px}
html.ainwide .ain-today .k1 .pt-tl .item{height:44px!important;min-height:44px!important}
html.ainwide .ain-today .k1 .pt-tl .tick{margin:0 -6px 0 -12px}
html.ainwide .ain-today .k1 .pt-tl .tick::before{left:12px!important;top:12px!important;width:20px!important;height:20px!important;border-radius:6px!important}
html.ainwide .ain-today .k1 .pt-tl .tick svg{left:15px;top:15px;width:14px;height:14px}
html.ainwide .ain-today .k1 .pt-tl .ititle{font-size:14px!important;font-weight:500!important;line-height:20px}
html.ainwide .ain-today .k1 .pt-tl .item.done .ititle{font-weight:400!important}
html.ainwide .ain-today .k1 .pt-ring{width:48px;height:48px}
html.ainwide .ain-today .k1.pt-prep .prepchk{height:44px!important;min-height:44px!important;font-size:14px;font-weight:500;gap:8px}
html.ainwide .ain-today .k1.pt-prep .pbox{width:20px;height:20px;border-radius:6px}
html.ainwide .ain-today .k1.pt-prep .prepchk::after{top:0!important;bottom:0!important}
html.ainwide .ain-today .k1.pt-prep .sub{font-size:12px}
html.ainwide .ain-today .k1.pt-prep .kd-prog{font-size:12px}
html.ainwide .ain-today .k1.pt-sch .pt-sr{height:auto;min-height:36px;padding:3px 0;align-items:center}
html.ainwide .ain-today .k1.pt-sch .pt-nm{font-size:13px!important;line-height:17px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
html.ainwide .ain-today .k1.pt-sch .pt-tm{font-size:12px}
html.ainwide .ain-today .k1 .pt-fn,html.ainwide .ain-today .k1 .pt-fs{font-size:13px}
html.ainwide .ain-today .k1.pt-note .pt-who{font-size:12px}
html.ainwide .ain-today .k1.pt-note .pt-who b{font-size:12px}
html.ainwide .ain-today .k1.pt-note .pt-who time{font-size:12px}
html.ainwide .ain-today .k1.pt-note .pt-bub{font-size:13px;line-height:19px}
html.ainwide .ain-today .k1.pt-praise{background:linear-gradient(180deg,color-mix(in srgb,#ffd36b 24%,var(--card)),color-mix(in srgb,#ffd36b 12%,var(--card)))}
html.ainwide .ain-today .k1-new{margin-left:auto;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;line-height:22px}
html.ainwide .ain-today .k1-pt{font-size:14px;font-weight:500;line-height:20px;color:var(--ink);word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html.ainwide .ain-today .k1-pf,html.ainwide .ain-today .k1-rep,html.ainwide .ain-today .k1-wk{font-size:12px;font-weight:400;line-height:17px;color:var(--ink);opacity:.82;margin-top:4px}
html.ainwide .ain-today .k1-wk b{font-weight:600;color:var(--ink)}
html.ainwide .ain-today .k1-rbtn{position:relative;align-self:flex-start;margin-top:6px;min-height:0!important;height:30px;padding:0 12px;font-size:12px;font-weight:600;border-radius:15px}
html.ainwide .ain-today .k1-rbtn::after{content:"";position:absolute;left:-6px;right:-6px;top:-7px;bottom:-7px}
html.ainwide .ain-today .k1.pt-praise .lv-more{height:24px;min-height:0;font-size:12px}
html.ainwide .ain-today .k1.pt-c{margin:0 0 10px}
html.ainwide .ain-today .pt-duo.k1d{margin:0 0 10px;align-items:stretch}
html.ainwide .ain-today .pt-duo.k1d>.k1.pt-c{margin:0!important;height:auto!important;min-height:0!important}
html.ainwide .ain-today .k1-rbtn{font-size:13px;font-weight:600}
html.ainwide .ain-today .k1 .pt-tl .item{height:auto!important;min-height:44px!important;align-items:center}
html.ainwide .ain-today .k1 .pt-tl .ititle{white-space:normal!important;overflow:visible;text-overflow:clip;word-break:keep-all;overflow-wrap:anywhere;padding:4px 0}
html.ainwide .ain-today .k1 .pt-tl .tick{align-self:center}
html.ainwide .ain-today .k1.pt-task{height:240px;min-height:240px;box-sizing:border-box;padding:12px 12px 8px;margin:0 0 10px;overflow:hidden}
html.ainwide .ain-today .k1.pt-task .pt-h{flex:none;height:44px;margin:0;align-items:center}
html.ainwide .ain-today .k1.pt-task .pt-h .pt-ic,html.ainwide .ain-today .k1.pt-task .pt-h .pt-t{margin-top:0}
html.ainwide .ain-today .k1.pt-task .pt-ring{width:44px;height:44px;margin-top:0}
html.ainwide .ain-today .k1.pt-task .pt-ring b{width:34px;height:34px;font-size:13px}
html.ainwide .ain-today .k1.pt-task .k1-tl{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;-webkit-overflow-scrolling:touch}
html.ainwide .ain-today .k1.pt-task .pt-empty{flex:1}
html.ainwide .ain-today .k1 .pt-tl .tick{margin:0 -4px 0 -12px}
html.ainwide .ain-today .k1 .pt-tl .ititle{padding:2px 0;line-height:20px}
html.ainwide .ain-today .k1.pt-prep h2,html.ainwide .ain-today .k1.pt-praise .pt-h{font-size:15px;font-weight:600}
html.ainwide .ain-today .k1.pt-prep .kd-prog{font-size:12px;font-weight:500}
html.ainwide .ain-today .k1.pt-prep .sub{font-size:12px}
html.ainwide .ain-today .k1.pt-prep .prepgroup+.prepgroup{margin-top:0}
html.ainwide .ain-today .k1.pt-prep .prepchk{font-size:13px!important;font-weight:500;gap:8px;margin:0}
html.ainwide .ain-today .k1.pt-prep .prep{gap:0}
html.ainwide .ain-today .k1.pt-praise{gap:0}
html.ainwide .ain-today .k1-pt{font-size:13px;font-weight:500;line-height:18px;margin-top:6px}
html.ainwide .ain-today .k1-pf,html.ainwide .ain-today .k1-rep{font-size:11px;line-height:16px;margin-top:6px}
html.ainwide .ain-today .k1-wk{font-size:12px;line-height:16px;margin-top:6px}
html.ainwide .ain-today .k1-rbtn{font-size:12px;font-weight:600;margin-top:6px;color:var(--ink);border:1px solid color-mix(in srgb,#d99a1e 55%,transparent);background:color-mix(in srgb,#ffc857 38%,var(--card))}
html.ainwide .ain-today .k1.pt-praise .lv-more{font-size:12px;font-weight:600;margin-top:6px}
html.ainwide .ain-today .k1.pt-task{height:208px;min-height:208px;padding:12px;gap:4px}
html.ainwide .ain-today .k1.pt-task .pt-h{height:44px}
html.ainwide .ain-today .k1.pt-task .pt-ring{width:40px;height:40px}
html.ainwide .ain-today .k1.pt-task .pt-ring b{width:30px;height:30px;font-size:12px}
html.ainwide .ain-today .k1.pt-task .k1-tl{gap:0}
html.ainwide .ain-today .k1.pt-task .pt-tl .item,html.ainwide .ain-today .k1.pt-task .k1-tl .item{margin:0!important}
html.ainwide .ain-today .pt-duo.k1d{min-height:190px}
html.ainwide .ain-today .pt-duo.k1d>.k1.pt-c{padding:12px;display:flex;flex-direction:column;box-sizing:border-box}
html.ainwide .ain-today .k1.pt-praise .pt-h{margin:0 0 8px;min-height:0}
html.ainwide .ain-today .k1.pt-prep>h2{margin:0 0 8px}
html.ainwide .ain-today .k1-grp{margin:0}
html.ainwide .ain-today .k1-pt{margin:0;font-size:13px;line-height:18px}
html.ainwide .ain-today .k1-grp .k1-pf{margin:4px 0 0;font-size:11px;line-height:15px}
html.ainwide .ain-today .k1.pt-praise>.k1-rbtn{align-self:flex-start;position:relative;height:28px;min-height:28px!important;padding:0 12px;margin:6px 0 0;line-height:26px;font-size:12px;font-weight:600}
html.ainwide .ain-today .k1.pt-praise>.k1-rbtn::after{content:"";position:absolute;left:-6px;right:-6px;top:-10px;bottom:-6px}
html.ainwide .ain-today .k1.pt-praise>.k1-rep{margin:6px 0 0;font-size:11px;line-height:15px}
html.ainwide .ain-today .k1-bot{margin-top:6px;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
html.ainwide .ain-today .k1-bot .k1-wk{margin:0;font-size:12px;line-height:16px}
html.ainwide .ain-today .k1-bot .lv-more{position:relative;margin:0;padding:0;min-height:16px!important;height:16px;line-height:16px;font-size:12px;font-weight:600;background:none;border:0}
html.ainwide .ain-today .k1-bot .lv-more::after{content:"";position:absolute;left:-6px;right:-6px;top:-14px;bottom:-14px}
html.ainwide .ain-today .k1.pt-task{height:242px;min-height:242px;padding:12px;gap:8px}
html.ainwide .ain-today .k1.pt-task .pt-h{height:32px;min-height:0}
html.ainwide .ain-today .k1.pt-task .pt-ring{width:32px;height:32px}
html.ainwide .ain-today .k1.pt-task .pt-ring b{width:24px;height:24px;font-size:11px}
html.ainwide .ain-today .k1.pt-task .k1-tl{padding:0}
html.ainwide .ain-today .pt-duo.k1d{min-height:0}
html.ainwide .ain-today .k1.pt-praise .pt-h{margin:0 0 8px}
html.ainwide .ain-today .k1-pt{font-size:14px;line-height:20px}
html.ainwide .ain-today .k1-grp .k1-pf{font-size:12px;line-height:16px;margin-top:4px}
html.ainwide .ain-today .k1.pt-praise>.k1-rep{font-size:12px;line-height:16px}
html.ainwide .ain-today .pt-duo.k1d>.k1.pt-sch,html.ainwide .ain-today .pt-duo.k1d>.k1.pt-fam{padding:12px}
html.ainwide .ain-today .k1.pt-sch .pt-h,html.ainwide .ain-today .k1.pt-fam .pt-h{height:24px;min-height:0;margin:0 0 8px}
html.ainwide .ain-today .k1.pt-sch .pt-sr{min-height:44px;height:44px;align-items:center;padding:0}
html.ainwide .ain-today .k1.pt-fam .pt-fr{min-height:34px;height:34px;align-items:center;padding:0}
html.ainwide .ain-today .k1.pt-sch .pt-tm{width:44px;height:22px;min-width:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
html.ainwide .ain-today .k1.pt-sch .pt-sl,html.ainwide .ain-today .k1.pt-fam .pt-fl{margin:0;padding:0;gap:0}
html.ainwide .ain-today .k1.pt-sch .pt-sl>*:last-child,html.ainwide .ain-today .k1.pt-fam .pt-fl>*:last-child{margin-bottom:0}
html.ainwide .ain-today .k1.pt-note{padding:12px}
html.ainwide .ain-today .k1.pt-note .pt-nf{display:flex;align-items:center;justify-content:space-between;min-height:44px;height:44px;margin:4px 0 -6px;padding:0}
html.ainwide .ain-today .k1.pt-note .pt-add{position:relative;height:28px;min-height:28px!important;padding:0 8px;display:inline-flex;align-items:center;margin:0}
html.ainwide .ain-today .k1.pt-note .pt-add::after{content:"";position:absolute;left:-6px;right:-6px;top:-8px;bottom:-8px}
html.ainwide .ain-today .k1.pt-note .pt-more{margin:0 -10px 0 0}
html.ainwide .ain-today .k1.pt-note .pt-add{margin:0!important;align-self:center;top:0}
html.ainwide .ain-today .k1.pt-sch .pt-sr{height:44px!important;min-height:44px!important}
html.ainwide .ain-today .k1.pt-fam .pt-fr{height:32px;min-height:32px}
html.ainwide .ain-today .k1.pt-note .pt-nf{margin:-3px 0 -8px}
html.ainwide .ain-today .k1.pt-task{height:auto!important;min-height:0!important;overflow:visible;padding:12px;gap:4px}
html.ainwide .ain-today .k1.pt-task .pt-h{height:32px;min-height:0;margin:0}
html.ainwide .ain-today .k1.pt-task .pt-h .pt-t{font-size:16px;font-weight:600;line-height:22px}
html.ainwide .ain-today .k1.pt-task .pt-ring{width:32px;height:32px}
html.ainwide .ain-today .k1.pt-task .pt-ring b{width:24px;height:24px;font-size:12px;font-weight:600}
html.ainwide .ain-today .k1.pt-task .k1-tl{flex:none;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;padding:0;margin:0;gap:0}
html.ainwide .ain-today .k1.pt-task .pt-empty{flex:none;padding:8px 0}
html.ainwide .ain-today .k1.pt-task .pt-tl .item{min-height:44px!important;height:auto!important;padding:6px 0!important;margin:0!important;align-items:center;gap:8px;cursor:pointer;box-sizing:border-box}
html.ainwide .ain-today .k1.pt-task .pt-tl .tick{position:relative;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:0!important;flex:none}
html.ainwide .ain-today .k1.pt-task .pt-tl .tick::before{left:0!important;top:0!important;width:20px!important;height:20px!important}
html.ainwide .ain-today .k1.pt-task .pt-tl .ititle{padding:0;font-size:14px;font-weight:500;line-height:20px}
html.ainwide .ain-today .k1.pt-task .pt-tl .ibody{min-width:0}
html.ainwide .ain-today .k1-more{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:28px;min-height:28px!important;margin:4px 0 0;padding:0;border:0;background:none;color:var(--sub);font-size:12px;font-weight:600;line-height:1.2;box-sizing:border-box}
html.ainwide .ain-today .k1-more::after{content:"";position:absolute;left:0;right:0;top:-8px;bottom:-8px}
html.ainwide .ain-today .k1-more.un{color:var(--accent)}
html.ainwide .ain-today .k1-more .k1-chev{font-style:normal;font-size:11px;line-height:1}
html.ainwide .ain-today .k1.pt-prep .k1-more{margin-top:2px}
html.ainwide .ain-today .k1.pt-task:not(:has(.k1-tl)){min-height:0!important}
html.ainwide .ain-today .k1.pt-task .pt-empty{padding:4px 0 0;min-height:0;line-height:20px}
html.ainwide .ain-today .k1.pt-task .pt-empty{display:block;gap:0;text-align:center;padding:6px 0 4px}
html.ainwide .ain-today .k1.pt-task .pt-empty::before,html.ainwide .ain-today .k1.pt-task .pt-empty::after{content:none!important;display:none!important}
html.ainwide .ain-today .k1.pt-prep .prepchk{min-height:32px!important;height:auto;padding:6px 0!important;margin:0!important;font-size:14px!important;font-weight:500;line-height:20px;gap:8px;align-items:center}
html.ainwide .ain-today .k1.pt-prep .pbox{width:20px;height:20px;min-width:20px;flex:none;font-size:13px;line-height:18px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
html.ainwide .ain-today .k1.pt-prep .prep{gap:0}
html.ainwide .ain-today .k1.pt-prep>h2{font-size:16px;font-weight:600}
html.ainwide .ain-today .pt-duo.k1d:has(.k1-more[aria-expanded=true]){align-items:flex-start}
html.ainwide .ain-today .k1.pt-prep .prepchk{height:auto!important;min-height:44px!important}
html.ainwide .ain-today .k1.pt-prep .prepchk::after{top:0!important;bottom:0!important}
html.ainwide .ain-today .pt-sr>.adots{margin-left:4px}
html.ainwide .ain-today .k1.pt-prep h2,html.ainwide .ain-today .k1.pt-praise .pt-h,html.ainwide .ain-today .k1.pt-prep .pt-h,html.ainwide .ain-today .k1.pt-praise .pt-t{font-size:16px!important;font-weight:600!important;line-height:22px}
html.ainwide .ain-today .k1-grp .k1-pf{margin-top:6px}
html.ainwide .ain-today .k1.pt-praise>.k1-rbtn{margin-top:8px}
html.ainwide .ain-today .k1-bot{margin-top:8px;gap:6px}
html.ainwide .ain-today .pt-duo.k1d>*{min-height:0!important}
html.ainwide .ain-today .pt-sch .pt-sr{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;column-gap:8px!important;align-items:start!important;height:auto!important;min-height:44px!important;padding:6px 0!important;text-align:left}
html.ainwide .ain-today .pt-sch .pt-sr .pt-tm{width:44px!important;min-width:44px!important;height:22px!important;padding:0!important;margin:0!important;font-size:12px!important;align-self:start!important}
html.ainwide .ain-today .pt-sch .pt-bd{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:2px}
html.ainwide .ain-today .pt-sch .pt-bd .pt-nm{font-size:13px!important;font-weight:500!important;line-height:17px!important;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
html.ainwide .ain-today .pt-sch .pt-mt{display:flex;align-items:center;gap:6px;font-size:11px;line-height:14px;min-height:14px;color:var(--sub)}
html.ainwide .ain-today .pt-sch .pt-mt .adots{margin:0!important;gap:3px}
html.ainwide .ain-today .pt-sch .pt-mt .adots i{width:6px;height:6px}
html.ainwide .ain-today .pt-sch .pt-mt .pt-dy{font-size:11px!important;line-height:14px}
html.ainwide .ain-today .k1.pt-praise.pt-wide{padding:12px!important;display:block!important;height:auto!important;min-height:0!important}
html.ainwide .ain-today .pt-wide .pt-h{margin:0 0 6px!important;height:24px!important;min-height:0!important;display:flex;align-items:center}
html.ainwide .ain-today .pt-wide .pt-t{font-size:16px!important;font-weight:600!important}
html.ainwide .ain-today .pt-wide .k1-new{margin-left:8px!important}
html.ainwide .ain-today .pt-wide .pw-wk{margin-left:auto;font-size:12px;line-height:16px;color:var(--sub);white-space:nowrap}
html.ainwide .ain-today .pt-wide .pw-wk b{color:var(--ink);font-weight:700}
html.ainwide .ain-today .pt-wide .pw-pt{font-size:14px;line-height:20px;font-weight:500;color:var(--ink);overflow-wrap:anywhere;word-break:keep-all}
html.ainwide .ain-today .pt-wide .pw-mt{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;min-height:20px}
html.ainwide .ain-today .pt-wide .pw-pf{font-size:12px;line-height:16px;color:var(--sub);min-width:0}
html.ainwide .ain-today .pt-wide .pw-rp{font-size:12px;line-height:16px;color:var(--ink);text-align:right;overflow-wrap:anywhere;min-width:0}
html.ainwide .ain-today .pt-wide .pw-mt .k1-rbtn{position:relative;margin:0!important;height:28px!important;min-height:28px!important;padding:0 12px!important;font-size:12px!important;line-height:26px!important;flex:none}
html.ainwide .ain-today .pt-wide .pw-mt .k1-rbtn::after{content:"";position:absolute;left:-6px;right:-6px;top:-8px;bottom:-8px}
html.ainwide .ain-today .pt-wide .pw-pills{margin-top:6px}
html.ainwide .ain-today .pt-wide .pw-bot{margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
html.ainwide .ain-today .pt-wide .pw-bot .lv-more{position:relative;margin:0;padding:0;min-height:16px!important;height:16px;line-height:16px;font-size:12px;font-weight:600;background:none;border:0}
html.ainwide .ain-today .pt-wide .pw-bot .lv-more::after{content:"";position:absolute;left:-6px;right:-6px;top:-14px;bottom:-14px}
html.ainwide .ain-today .pt-fam .pt-fr{display:flex;align-items:center;gap:6px;height:32px;min-height:32px;padding:0}
html.ainwide .ain-today .pt-fam .pt-ft{display:flex;flex-direction:column;justify-content:center;gap:2px;flex:1 1 auto;min-width:0}
html.ainwide .ain-today .pt-fam .pt-ft .pt-fn{flex:none;display:flex;align-items:center;gap:3px;min-width:0;max-width:100%;font-size:13px;font-weight:600;line-height:15px}
html.ainwide .ain-today .pt-fam .pt-ft .pt-fs{flex:none;max-width:100%;font-size:12px;font-weight:400;line-height:14px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ainwide .ain-today .pt-fam .pt-fl{display:flex;flex-direction:column;gap:4px}
html.ainwide .ain-today .pt-fam .pt-fr,html.ainwide .ain-today .k1.pt-fam .pt-fr{height:auto;min-height:36px;gap:8px;align-items:center}
html.ainwide .ain-today .pt-fam .pt-av{position:relative;width:24px;height:24px;flex:0 0 24px}
html.ainwide .ain-today .pt-fam .pt-av .av{--s:24px!important;width:24px;height:24px}
html.ainwide .ain-today .pt-fam .pt-av .pt-dot{position:absolute;right:0;bottom:0;width:5px;height:5px;box-sizing:content-box;border:1px solid var(--card);margin:0}
html.ainwide .ain-today .pt-fam .pt-ft .pt-fn{display:block;line-height:16px;font-size:13px;font-weight:600}
html.ainwide .ain-today .pt-fam .pt-ft .pt-fs{line-height:15px;font-size:12px;font-weight:400}
html.ainwide .ain-today .pt-prep>h2{height:auto!important;min-height:24px;flex-wrap:wrap;align-items:center;row-gap:2px;margin-bottom:6px!important}
html.ainwide .ain-today .pt-prep>h2 .hint{flex:0 0 100%;font-size:11px;line-height:16px;margin:0;position:static}
html.ainwide .ain-today :is(.pt-prep,.prepwarn) .prepgroup .sub{height:auto;min-height:22px;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0 0 8px;padding:3px 10px;box-sizing:border-box}
html.ainwide .ain-today .k1.pt-fam .pt-fl{gap:4px}
html.ainwide .ain-today h2:has(>.pw-t){display:flex;flex-wrap:nowrap!important;align-items:center;gap:4px;height:auto!important;min-height:24px;container-type:inline-size;min-width:0}
html.ainwide .ain-today h2>.pw-t{flex:0 1 auto;min-width:0;white-space:nowrap;font-size:16px;line-height:24px}
html.ainwide .ain-today h2>.pw-t+.hint{flex:0 0 auto!important;margin:0!important;padding:0;font-size:11px!important;line-height:16px!important;color:var(--sub)!important;white-space:nowrap;align-self:center;position:static}
html.ainwide .app.kdmode{height:100dvh;overflow:hidden}
html.ainwide .ain-today{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:1;min-height:0;padding:8px 12px;overflow:hidden}
html.ainwide .ain-col{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow:auto;scrollbar-width:thin}
html.ainwide .ain-today .ain-col>*{margin:0!important;flex-shrink:0;min-width:0}
html.ainwide .ain-today .ain-col>.pt-c{height:auto!important;min-height:0!important;padding:10px!important;overflow:visible!important}
html.ainwide .ain-today .ain-col>.pt-c:last-child{flex:1 0 auto}
html.ainwide .ain-today .pt-task{border:2px solid var(--accent)!important}
html.ainwide .ain-today .pt-task .item,html.ainwide .ain-today .prepchk,html.ainwide .ain-today .pt-sr,html.ainwide .ain-today button.lv-more,html.ainwide .ain-today .mq{min-height:44px!important}
html.ainwide .ain-today .pt-al{margin-top:8px!important}
html.ainwide .ain-today .pt-sl,html.ainwide .ain-today .pt-fl{flex:none!important}
html.ainwide .ain-today .mq-i img{width:26px;height:26px}
html.ainwide .ain-nav{position:relative;flex:none;min-height:64px;padding:4px 88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--page);border-top:1px solid var(--line)}
html.ainwide .ain-nav>.tabs{width:min(100%,520px);height:52px;margin:0;border-radius:28px;background:var(--card);display:flex;justify-content:space-around}
html.ainwide .ain-nav>.tabs button{min-height:44px;flex:1}
html.ainwide .ain-nav .kdbar{height:auto;min-height:44px;flex:none;padding:0;border:0;background:transparent}
html.ainwide .ain-nav .kdbar-r{display:none}
html.ainwide .ain-nav .kdb{min-height:44px;height:44px;padding:0 10px}
html.ainwide .kdmode .kdp-cal:not(.kdp-task){grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:stretch;overflow:hidden}
html.ainwide .kdmode .kdp-cal:not(.kdp-task) .calpanel{display:flex;flex-direction:column;min-height:0;overflow:auto}
html.ainwide .kdmode .kdp-cal:not(.kdp-task) .grid{flex:1;grid-auto-rows:minmax(44px,1fr);min-height:0}
html.ainwide .kdmode .kdp-cal:not(.kdp-task) .day{height:auto;min-height:44px}
html.ainwide .kdmode .kd-calr{min-height:0;overflow:auto;scrollbar-width:thin}
html.ainwide .kdmode .kd-calr>.panel{flex:0 0 auto;overflow:visible}
html.ainwide .kdmode .kdpage.kdp-family{overflow:auto}
html.ainwide .home-orb.aiorb{bottom:8px!important;right:14px!important}
html.ainwide .overlay{z-index:65}

/* 41차 보정: 가로 태블릿 오늘 할 일 체크박스가 카드 왼쪽에서 잘림 — .kdmode .tick::before 의 음수 여백(-14px)을 이 화면에서만 0 으로 */
html.ainwide .ain-today .k1.pt-task .pt-tl .tick::before{margin:0!important;transform:none!important}

/* V93-43: shared visual policy; scoped to personal home and tablet. (운영 보정: 모바일 '(오늘)' 한 줄 규칙과 충돌하는 .pt-prep h2 wrap 규칙은 태블릿에만 적용) */
.ui-inline{width:16px;height:16px;vertical-align:middle;flex:none}
html.ainwide .ain-today .pt-prep>h2:has(.pw-t){flex-wrap:wrap!important;gap:4px;container-type:normal}
html.ainwide .ain-today .pt-prep>h2 .pw-t{white-space:normal;min-width:0;flex:0 1 auto}
html.ainwide .ain-today .pt-prep>h2 .hint{flex:0 0 auto!important;white-space:nowrap;margin:0!important}
html.ainwide .ain-today .k1.pt-task .pt-tl .tick{overflow:visible!important;margin:0!important}
html.ainwide .ain-today .k1.pt-task .pt-tl .tick svg{position:absolute;left:3px;top:3px;width:14px;height:14px}
html.ainwide .ain-today .k1.pt-task .pt-tl .item{min-height:44px!important;overflow:visible!important}
html.ainwide .ain-today .k1.pt-prep .prepchk{min-height:44px!important}

/* 시간 배지 유동폭 측정용(fitTimeBadges): 측정 중에만 자연 폭으로 */
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup).tbmeasure .item:not(:has(.tick)){grid-template-columns:max-content minmax(0,1fr) 44px!important}
html.v8mob :is(.cal-day-panel,.plan-board,.daygroup).tbmeasure .item:not(:has(.tick)) .itime{width:max-content!important;min-width:94px!important}

/* 상태 시트 선택 타일: 배경이 밝은 카드색이라 글자는 본문색(ink)으로 — accent-ink(밝은 글자)가 되어 안 보이던 문제 */
.preset[aria-pressed="true"],.preset[aria-pressed="true"] *{color:var(--ink)!important}
/* 44차: 팝업·버튼 라인 아이콘 정렬 */
.mic .ico,.acc-i .ico{width:24px;height:24px}
button .ui-inline,h2 .ui-inline,h3 .ui-inline,.pill .ui-inline{width:18px;height:18px;vertical-align:-3px;margin-right:2px}
img.v8hi.ui-inline{width:18px;height:18px;vertical-align:-3px}
/* 44차: 더보기(모바일)에서 Orb(최소 35px/기본 56px)가 행 오른쪽 끝 조작부(▼·›·배지)를 가리지 않도록 오른쪽 여백 확보 */
html.v8mob:not(.ainwide):has(.home-orb.aiorb) #app .acc-h,
html.v8mob:not(.ainwide):has(.home-orb.aiorb) #app .mlist .mrow{padding-right:62px}
/* 44차: 대비 보정 — 피치 태블릿 달력 숫자, 숲 테마 답장하기 */
html[data-theme=forest] .kd-reply,html[data-theme=forest] .k1-rbtn{color:#fff6dc!important;font-weight:800}
html[data-theme=peach]:not(.night) .calpanel .day.has.sat .dn,html[data-theme=peach]:not(.night) .calpanel .day.sel.sat .dn{color:#174a94!important}
html[data-theme=peach]:not(.night) .calpanel .day.has.sun .dn,html[data-theme=peach]:not(.night) .calpanel .day.sel.sun .dn{color:#8f1f19!important}
html[data-theme=peach]:not(.night) .calpanel .day.has:not(.today):not(.sat):not(.sun) .dn{color:#4f3a35!important}
/* 45차: 거실 보드 화면색 제목·설정 메뉴의 새 아이콘 크기·정렬 */
.palbox h2 .ui-inline{width:28px;height:28px;vertical-align:-5px;margin-right:6px}
.gearmenu button .ui-inline{width:22px;height:22px;vertical-align:-5px;margin-right:6px}

/* 46차: 가족별 색상 — 프로필 테두리(바깥 2.5px 색 + 안쪽 1.5px 여백), 색상 선택, 범례 */
.av{position:relative}
.av::after{content:'';position:absolute;inset:0;border-radius:50%;pointer-events:none;
  --rw:clamp(1.5px,calc(var(--s)*.055),3px);--rg:clamp(1px,calc(var(--s)*.03),2px);
  box-shadow:inset 0 0 0 var(--rw) var(--ring,transparent),inset 0 0 0 calc(var(--rw) + var(--rg)) var(--card,#fff)}
html.v8mob .famcard .av{box-shadow:none!important}
.member-row .cbtn,.cbtn{display:inline-flex;align-items:center;gap:6px;min-width:56px;min-height:44px;padding:0 12px;border-radius:999px;border:0;background:var(--soft);color:var(--ink);flex:none;cursor:pointer}
.cbtn i{width:20px;height:20px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.cbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.member-row{flex-wrap:nowrap;gap:8px}
.member-row .mname{min-width:0;flex:1}
.cpal{margin:2px 0 10px;padding:12px;border-radius:16px;background:var(--soft)}
.cpal>b{display:block;font-size:14px;margin-bottom:8px}
.cpal-g{display:flex;flex-wrap:wrap;gap:4px}
.csw{position:relative;width:44px;height:44px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;padding:0;cursor:pointer}
.csw i{width:32px;height:32px;border-radius:50%;display:block}
.csw svg{position:absolute;inset:0;margin:auto;width:18px;height:18px}
.csw.on i{box-shadow:0 0 0 2px var(--card,#fff),0 0 0 4px var(--ink)}
.csw.used{opacity:.35;cursor:not-allowed}
.csw:focus-visible,.cbtn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.cpal-pin{margin-top:8px}.cpal .hint{display:block;margin-top:6px}
.legend.legfam{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin:8px 2px 2px}
.legend .lgm{display:inline-flex;align-items:center;gap:5px;font-size:12px}
.legend .lgm i{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
/* 공통 일정 중립색(가족 선택 색과 겹치지 않는 진한 회보라 회색) */
.legend .lgm i.cmn,.calpanel .day .mkr i.n,html.v8mob .calpanel .day .mkr i.n{background:#6E6A80}
html.night .legend .lgm i.cmn,html.night .calpanel .day .mkr i.n,html[data-theme=forest] .calpanel .day .mkr i.n,html[data-theme=midnight] .calpanel .day .mkr i.n{background:#C4C1D2}

/* 46차: 일정 목록 정보 정리 — 공통 일정 중립색 시간 배지, 하단 정보 없는 일정은 세로 중앙 정렬 */
html :is(.itime).acn{--ac:#6E6A80}
html.night :is(.itime).acn,html[data-theme=forest] :is(.itime).acn,html[data-theme=midnight] :is(.itime).acn{--ac:#C4C1D2}
.item.nometa{align-items:center}
.item.nometa .ibody{align-self:center}
.item.nometa .iact{align-self:center}
.item.nometa .ititle{display:flex;align-items:center;gap:8px}

/* 46차 보정: 일정 목록 시간 배지의 가족 색이 너무 연해 구분이 어렵다는 지적 → 배경 비율만 높임(글자색·크기·레이아웃 그대로) */
html .itime.ac1:not(.acn){background:color-mix(in srgb,var(--ac) 46%,var(--card))!important;color:color-mix(in srgb,var(--ac) 22%,#000)!important}
html.night .itime.ac1:not(.acn),html[data-theme=forest] .itime.ac1:not(.acn),html[data-theme=midnight] .itime.ac1:not(.acn){background:color-mix(in srgb,var(--ac) 36%,var(--card))!important;color:color-mix(in srgb,var(--ac) 6%,#fff)!important}

/* 46차 최종: 복수 가족 시간 배지 균등 분할(그라데이션 없음). 크기·모서리·중앙 정렬은 기존 .itime 규칙 그대로 */
html{--mix:46%}
html.night,html[data-theme=forest],html[data-theme=midnight]{--mix:36%}
html .itime.acs{background:var(--sp)!important;color:#1F1D2B!important;text-align:center}
html.night .itime.acs,html[data-theme=forest] .itime.acs,html[data-theme=midnight] .itime.acs{color:#fff!important}
/* 46차 최종: 하단 정보가 없는 일정은 시간 배지·제목·⋯ 메뉴를 행 높이 기준 세로 중앙에 맞춘다 */
html .item.nometa{align-items:center!important}
html .item.nometa .itime,html .item.nometa .schedule-title,html .item.nometa .tick{align-self:center!important}

/* 47차: 다가오는 날 D-day 배지도 일정 배지와 같은 가족 색 규칙 */
html .dday.acn{--ac:#6E6A80}
html.night .dday.acn,html[data-theme=forest] .dday.acn,html[data-theme=midnight] .dday.acn{--ac:#C4C1D2}
html .dday.ac1:not(.acn){background:color-mix(in srgb,var(--ac) 46%,var(--card))!important;color:color-mix(in srgb,var(--ac) 22%,#000)!important}
html.night .dday.ac1:not(.acn),html[data-theme=forest] .dday.ac1:not(.acn),html[data-theme=midnight] .dday.ac1:not(.acn){background:color-mix(in srgb,var(--ac) 36%,var(--card))!important;color:color-mix(in srgb,var(--ac) 6%,#fff)!important}
html .dday.acs{background:var(--sp)!important;color:#1F1D2B!important;text-align:center}
html.night .dday.acs,html[data-theme=forest] .dday.acs,html[data-theme=midnight] .dday.acs{color:#fff!important}

/* V93 design candidate: scoped dashboard & archive */
.oh-full>.pt-c{margin:0 0 10px;min-height:0!important;height:auto!important}.oh-full>.pt-c .pt-empty{min-height:0!important;padding:10px 0!important}.oh-kid-pair{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:9px;align-items:stretch;margin-bottom:10px}.oh-kid-pair>.pt-c{margin:0!important;min-width:0;min-height:0!important;height:auto!important}.oh-kid-pair .pt-h{gap:4px!important}.oh-kid-pair .pt-ring{flex-shrink:0}.oh-kid-pair .pt-task .item{min-width:0}.oh-kid-pair .pt-task .item .itext{overflow-wrap:anywhere}.oh-four{grid-template-columns:repeat(4,minmax(0,1fr))!important}.oh-four>.mq{min-width:0}.oh-archive-card{display:flex!important;min-width:0;min-height:96px!important;background:color-mix(in srgb,#ecc96c 22%,var(--card))!important;padding:8px!important}.oh-archive-open{display:flex;flex:1;min-width:0;width:100%;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:0;background:none;color:var(--ink);font:inherit;padding:6px;min-height:96px;cursor:pointer;text-align:center}.oh-archive-title{font-weight:700;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;font-size:14px}.oh-archive-open img{width:54px;height:54px;object-fit:contain}.oh-archive-open small,.oh-archive-label{font-size:12px;color:var(--sub);overflow-wrap:anywhere}.oh-new{display:inline-block;font-size:10px;line-height:1.4;padding:2px 5px;border-radius:8px;background:#f5d375;color:#513a0e;font-weight:800}.oh-archive-open.fresh img{animation:oh-praise-glow 2s ease-in-out infinite}@keyframes oh-praise-glow{50%{filter:drop-shadow(0 0 6px #f3c755);transform:scale(1.04)}}@media(prefers-reduced-motion:reduce){.oh-archive-open.fresh img{animation:none}}.oh-parent-pair{align-items:stretch}.oh-parent-prep{min-width:0}.oh-prep-person{display:grid;gap:4px;padding:7px 0;border-bottom:1px solid var(--line, #ddd)}.oh-prep-person>div:first-child{display:flex;align-items:center;gap:5px}.oh-prep-person i{width:8px;height:8px;border-radius:50%}.oh-prep-person small{font-size:12px;color:var(--sub)}.oh-prep-person>div:first-child small{margin-left:auto}.oh-prep-names{display:grid;font-size:12px;overflow-wrap:anywhere}.oh-parent-prep>.pill{min-height:44px;font-size:12px}.oh-archive-sheet{display:flex;flex-direction:column;max-height:85dvh;overflow:hidden;gap:8px}.oh-archive-heading{justify-content:space-between;align-items:center}.oh-archive-heading h2{margin:0}.oh-archive-heading .mini{min-width:44px;min-height:44px}.oh-archive-filters{display:flex;flex-wrap:wrap}.oh-archive-filters>.pill{min-height:44px;display:flex;align-items:center;gap:4px}.oh-archive-list{overflow:auto;min-height:0;overscroll-behavior:contain}.oh-archive-date{margin:12px 0 6px;font-size:13px;color:var(--sub)}.oh-archive-entry{border:1px solid var(--line,#ddd);background:var(--card);border-radius:14px;padding:12px;margin-bottom:8px;overflow-wrap:anywhere}.oh-archive-entry.unread{background:color-mix(in srgb,#ecc96c 17%,var(--card))}.oh-archive-entry p{margin:10px 0;white-space:pre-wrap}.oh-archive-who{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.oh-archive-who small{color:var(--sub);margin-left:auto}.oh-archive-reply{background:color-mix(in srgb,var(--accent) 10%,var(--card));border-radius:12px;padding:10px}.oh-archive-entry small{color:var(--sub)}.oh-archive-reply .pill,.oh-reply-details .pill,.oh-reply-details summary{min-height:44px}.oh-reply-details summary{cursor:pointer;display:flex;align-items:center;color:var(--accent)}.oh-reply-details .row{flex-wrap:wrap}.oh-heart-received{color:#dc839a}.oh-moment-menu{position:absolute;top:8px;right:10px;z-index:2}.mcard{position:relative}.oh-moment-menu summary{list-style:none;min-width:44px;min-height:44px;display:grid;place-items:center;background:var(--card);border-radius:50%;font-size:20px;cursor:pointer}.oh-moment-menu>button{position:absolute;right:0;top:46px;white-space:nowrap;min-height:44px;background:var(--card)}.mact .v8tic,.mact .ico{width:20px;height:20px;vertical-align:middle}.seg .ico{width:20px;height:20px}.oh-orb-blocked.v8mob .home-orb.aiorb{visibility:hidden;pointer-events:none}.v8mob .addfab{z-index:29}.v8mob .oh-kid-pair .pt-task .pt-tl{min-width:0}.v8mob .oh-kid-pair .pt-task .pt-tl .item{min-width:0}.v8lt .oh-archive-card{min-height:125px}.v8lt .oh-archive-open{min-height:110px}

/* Unified task checkboxes; retain existing hit-area padding. */
.trow .tick{border-radius:7px!important}.trow.done .tick{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.tscroll{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--sub) 32%,transparent) transparent}.oh-kid-pair .pt-task .pt-h .pt-t{white-space:normal}.oh-kid-pair .pt-task .pt-h{flex-wrap:wrap}.oh-kid-pair .pt-task .pt-ring{margin-left:auto}.oh-kid-pair .pt-task .item{overflow-wrap:anywhere}.oh-moment-menu summary::-webkit-details-marker{display:none}
/* 48차 보완: 아엘 하단 버튼 2개 → 2열(빈 칸 제거), 높이는 기존 3열 규칙과 동일 */
.lt-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.lt-grid.two .lt-btn{min-height:96px}
/* 49차: 보관함 '새로운 답장/칭찬' 영역, 새 소식 띠, 칭찬 보내기 버튼 */
.oh-archive-new{border:1.5px solid color-mix(in srgb,#ecc96c 70%,var(--line,#ddd));background:color-mix(in srgb,#ecc96c 12%,transparent);border-radius:18px;padding:8px 8px 2px;margin:0 0 12px}
.oh-archive-newh{margin:2px 4px 8px;font-size:15px;display:flex;align-items:center;gap:6px}
.oh-archive-newbar{align-self:stretch;margin:0 0 6px;background:#f5d375!important;color:#513a0e!important;font-weight:800;min-height:44px}
.oh-archive-newbar[hidden]{display:none}
.oh-archive-send{margin-left:auto;min-height:40px;padding:0 14px;font-weight:700}
.oh-archive-heading .mini[aria-label="닫기"]{margin-left:0}
/* 49차: 아인 태블릿 세로 — 2열, 카드는 내용 높이, 오늘 할 일과 받은 칭찬을 한 열에 가깝게. 가로(landscape) 3열은 건드리지 않는다 */
@media (orientation:portrait){
  .kdmode .kd{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:none!important;align-items:start!important;flex:none!important;overflow:visible!important;padding-bottom:92px!important;gap:12px}
  .kdmode .kd-col,.kdmode .kd-c3{max-height:none!important;overflow:visible!important;min-height:0}
  .kdmode .kd-c3{grid-column:1 / -1!important}
  .kdmode .kd-col>.panel,.kdmode .kd-col>.kd-alarm{flex:none!important;height:auto!important;min-height:0!important}
  .kdmode .panel:has(.kd-lst) > .kd-more{position:static!important;width:100%;min-height:44px;margin-top:4px;padding:0 12px;background:var(--soft);border-color:transparent}
  .kdmode .kd .oh-archive-card{min-height:88px!important}
}
/* 800px 안팎: 상단 탭이 시계를 가리거나 시계가 탭을 가리지 않게 */
@media (min-width:700px) and (max-width:1000px){
  .kdmode .kd-top{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important;align-items:center}
  .kdmode .kd-top .tabs{justify-self:center!important;min-width:0}
  .kdmode .kd-top .tabs button{min-width:50px!important;padding:2px 6px!important;font-size:12.5px!important}
  .kdmode .kd-who{min-width:0}.kdmode .kd-title{font-size:17px!important;white-space:nowrap}
  .kdmode .kd-clock{gap:6px;min-width:0}.kdmode .kd-clock .kd-date{display:none}.kdmode .kd-clock b{font-size:26px!important}
}
/* 49차: Orb 실제 터치 영역 = 충돌 검사 영역. 원래 크기 64px(56+4*2), 축소 시 (56+9*2)*.6≈44px 이상. 숨김 상태는 터치를 가로채지 않는다 */
.home-orb.aiorb::after{inset:-4px}
html.v8mob.orbmin .home-orb.aiorb::after{inset:-9px}
html.oh-orb-blocked .home-orb.aiorb{visibility:hidden;pointer-events:none}
html.oh-orb-blocked .home-orb.aiorb::after{pointer-events:none}


/* ===== 50차: 카드 간격 레이아웃 충돌 수정(CSS만) — 기존 html.v8mob .pt-c{margin:0} 등이 신규 .oh-full 규칙을 덮던 문제 ===== */
html.v8mob .oh-full{display:flex;flex-direction:column;gap:10px;margin:0 0 10px;min-width:0}
html.v8mob .oh-full>*{margin:0!important;min-width:0}
html.v8mob .oh-full>.pt-c{height:auto!important;min-height:0!important;overflow:visible!important}
html.v8mob .oh-full>.pt-task .pt-h{height:auto!important;min-height:0!important}
html.v8mob .oh-full>.pt-task:has(.pt-empty){padding-top:10px;padding-bottom:6px}
html.v8mob .oh-full>.pt-c .pt-empty{min-height:0!important;padding:4px 0!important;gap:4px}
html.v8mob .pt-duo.oh-parent-pair,html.ainwide .pt-duo.oh-parent-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 10px;align-items:stretch}
html.v8mob .oh-parent-pair>.pt-c,html.ainwide .oh-parent-pair>.pt-c{margin:0!important;height:auto!important;min-height:0!important;overflow:visible!important;box-sizing:border-box;align-self:stretch}
html.v8mob .oh-parent-pair>.oh-archive-card{min-height:96px!important}
/* 카드 그룹 사이 간격 10px로 통일: 오늘 화면의 직속 블록 */
html.v8mob .oh-full+.oh-full,html.v8mob .oh-full+.pt-duo,html.v8mob .pt-duo+.oh-full{margin-top:0}
html.v8mob .v8lt>.pt-c.oh-archive-card{margin:0 0 12px}

.oh-star-plus{display:inline-flex;align-items:center;font-size:11px;line-height:1.4;font-weight:800;padding:2px 6px;border-radius:8px;background:color-mix(in srgb,#f3c755 35%,var(--card));color:var(--ink)}
