/* ── 손글씨 느낌 (받은 플래너 디자인과 합침) ── */
:root{--title:'Poor Story',Pretendard,sans-serif}
:root[data-font="gaegu"]{--hand:'Gaegu',Pretendard,sans-serif;--title:'Gaegu',Pretendard,sans-serif}
:root[data-font="pen"]{--hand:'Nanum Pen Script',Pretendard,sans-serif;--title:'Nanum Pen Script',Pretendard,sans-serif}
:root[data-font="plain"]{--hand:Pretendard,sans-serif;--round:Pretendard,sans-serif}
.date-year{font-family:var(--title);font-size:18px;color:var(--sub);line-height:1.1}
.date-main{font-family:var(--title);font-size:clamp(26px,2.6vw,36px);font-weight:400;letter-spacing:.03em;line-height:1.1;white-space:nowrap}
.date-main .wd{color:var(--accent);white-space:pre}
/* 날짜 밑 형광펜: 손으로 그은 듯 끝이 둥글고 가장자리가 조금 울퉁불퉁 */
.date-main .mk,.st-date{position:relative;isolation:isolate;display:inline-block}
.date-main .mk::before,.st-date::before{content:'';position:absolute;z-index:-1;left:-.18em;right:-.18em;bottom:.17em;height:.34em;background:var(--hl,#F4B9BE);opacity:.78;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 200 20%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M4 5.5C38 3 82 5 128 3.2S186 2 196 4.6c3 3 3 8.6.6 11.4C152 18 104 16 62 18.2S12 19 4 16.4C.8 13 .9 8.4 4 5.5z%27/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 200 20%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M4 5.5C38 3 82 5 128 3.2S186 2 196 4.6c3 3 3 8.6.6 11.4C152 18 104 16 62 18.2S12 19 4 16.4C.8 13 .9 8.4 4 5.5z%27/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.date-year:empty{display:none}
.card-tag{font-family:Pretendard,sans-serif;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text);display:flex;align-items:center;gap:8px}
.card-tag::after{content:"";flex:1;height:1px;background:var(--line)}
.stat-label{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--sub)}
.stat-val,.stat-num{font-family:var(--round);font-weight:900;font-size:30px;color:var(--accent);letter-spacing:-.01em;line-height:1.1}
.stat-val small,.stat-num small,.big small,.box-v small{font-size:.5em;font-weight:900;margin:0 1px}
.stat-sub{font-family:var(--hand);font-size:15px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grp-name{font-family:var(--hand);font-size:19px;font-weight:700}
.todo-t,.todo-in{font-family:var(--hand);font-size:18px;line-height:1.25}
.ev-title{font-family:var(--hand);font-size:18px;font-weight:700}
.ev-time{font-family:var(--hand);font-size:15px}
.b3 input{font-family:var(--hand);font-size:18px}
.goal textarea,.review textarea,.memo{font-family:var(--hand);font-size:18px;line-height:1.5}
.quick-box input{font-family:var(--hand);font-size:19px}
.quick-box input::placeholder{font-family:Pretendard,sans-serif;font-size:14px}
.empty,.note{font-family:var(--hand);font-size:16px}
.chip{font-family:var(--hand);font-size:16px}

/* 할 일 표시 ○ △ × → */
.chk.mk-o,.chk.mk-tri,.chk.mk-x,.chk.mk-arrow{background:transparent;border-color:var(--line)}
.chk .mkg{font-family:var(--round);font-weight:800;font-size:15px;line-height:1}
.mk-o .mkg{color:var(--green)}.mk-tri .mkg{color:#E9A23B}.mk-x .mkg{color:var(--accent)}.mk-arrow .mkg{color:var(--blue)}
.todo.m-o .todo-t,.todo.m-arrow .todo-t{color:var(--sub);text-decoration:line-through}
.todo.m-x .todo-t{color:var(--sub)}

/* 줄 긋는 제목: OVERVIEW ───── 설명 */
.sec-t{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;letter-spacing:.02em;margin:4px 0 12px;color:var(--text)}
.sec-t i{flex:1;height:1.5px;background:var(--text);opacity:.85}
.sec-t em{font-style:normal;font-family:var(--hand);font-size:15px;font-weight:400;color:var(--sub)}
.big{font-family:var(--round);font-weight:800;color:var(--accent);line-height:1}
.hand{font-family:var(--hand)}

/* 주간·월간 */
.wgoal{display:flex;align-items:center;gap:8px;margin:-2px 0 12px;padding:0 2px}
.wgoal .flag{color:var(--accent);font-size:18px}
.wgoal input{flex:1;border:0;border-bottom:1px dashed var(--line);background:none;outline:0;font-family:var(--hand);font-size:21px;padding:2px 0;color:var(--text)}
.wgoal input::placeholder{color:var(--faint)}
.wk-h b{font-family:var(--hand);font-size:24px;font-weight:700}
.wk-ev span,.wk-td span{font-family:var(--hand);font-size:16px}
.wk-ev time{font-family:var(--hand);font-size:14px}
.wk-foot{font-family:var(--round);font-weight:800;font-size:13px;color:var(--accent)}
.mo-n{font-family:var(--hand);font-size:17px;font-weight:700}
.mo-chip{font-family:var(--hand);font-size:14px}
.mo-min{font-family:var(--round);font-weight:800;font-size:10.5px;color:var(--accent)}
.cal-sub{display:flex;gap:4px;margin-bottom:10px}
.cal-sub button{flex:1;height:34px;border-radius:9px;background:var(--soft);font-size:13px;color:var(--sub)}
.cal-sub button.on{background:var(--btn);color:var(--btn-fg);font-weight:600}

/* ── 통계 ── */
.st{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:28px 36px;padding:6px 4px}
.st-col{display:flex;flex-direction:column;gap:26px;min-width:0}
.st-head{display:flex;align-items:baseline;gap:22px;flex-wrap:wrap}
.st-date{font-family:var(--title);font-size:56px;font-weight:400;letter-spacing:.03em;line-height:1;margin-left:.2em}
.st-date span{color:var(--accent)}
.st-goal{font-family:var(--title);font-size:22px;color:var(--faint);display:flex;align-items:center;gap:6px}
.st-goal.has{color:var(--text)}
.st-goal::before{content:"⚑";color:var(--accent)}
.boxes{display:grid;border:1px solid var(--line);background:var(--card)}
.boxes>div{padding:14px 16px 12px;min-width:0}
.boxes>div+div{border-left:1px dashed var(--line)}
.box-l{font-size:10.5px;font-weight:700;letter-spacing:.14em;color:var(--sub)}
.box-v{font-family:var(--round);font-weight:900;font-size:clamp(24px,2.5vw,42px);color:var(--accent);line-height:1.15;margin:8px 0 4px;white-space:nowrap}
.box-v.inkc{color:var(--text)}
.box-v small{font-size:.5em}
.box-s{font-family:var(--hand);font-size:16px;color:var(--sub)}
.bars{display:flex;align-items:flex-end;gap:2%;height:220px;border-bottom:1.5px solid var(--text);position:relative;padding-left:44px}
.bars .gl{position:absolute;left:44px;right:0;border-top:1px dotted var(--line);font-size:11px;color:var(--sub)}
.bars .gl span{position:absolute;left:-44px;top:-9px;width:36px;text-align:right;font-family:var(--hand);font-size:14px}
.bar{flex:1;background:var(--teal);border-radius:2px 2px 0 0;position:relative;min-height:0;cursor:pointer}
.bar .bv{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-family:var(--round);font-weight:800;font-size:15px;color:var(--accent);white-space:nowrap;margin-bottom:4px}
.blabels{display:flex;gap:2%;padding-left:44px;margin-top:6px}
.blabels span{flex:1;text-align:center;font-family:var(--hand);font-size:15px;color:var(--sub);white-space:nowrap}
.blabels span.now{color:var(--text);font-weight:700;background:linear-gradient(transparent 70%,var(--pink-soft) 70%)}
.tod{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));border-top:1.5px solid var(--text);border-bottom:1.5px solid var(--text);height:46px}
.tod i{border-left:1px dotted var(--line);display:block;margin:6px 0}
.todl{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));margin-top:6px}
.todl span{font-family:var(--hand);font-size:14px;text-align:center;color:var(--text)}
.tod-note{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-family:var(--hand);font-size:17px;color:var(--sub);flex-wrap:wrap;gap:8px}
.tod-note b{color:var(--accent);font-weight:700}
.lv{display:inline-flex;gap:4px;vertical-align:middle;margin:0 6px}
.lv i{width:22px;height:14px;border-radius:2px;display:inline-block}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:36px}
.wd-bars{display:flex;align-items:flex-end;gap:7%;height:130px;border-bottom:1.5px solid var(--text);padding:0 4%}
.wd-bars .bar{background:var(--pink)}
.wd-l{display:flex;gap:7%;padding:6px 4% 0}
.wd-l span{flex:1;text-align:center;font-size:11px;letter-spacing:.08em;color:var(--sub)}
.wd-l span.sat{color:var(--blue)}.wd-l span.sun{color:var(--accent)}
.marks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.marks>div{text-align:center;padding:4px 0}
.marks>div+div{border-left:1px dotted var(--line)}
.marks .g{font-family:var(--round);font-weight:800;font-size:40px;line-height:1}
.marks .n{font-family:var(--round);font-weight:800;font-size:34px;color:var(--faint);margin-top:6px}
.marks .n.has{color:var(--text)}
.marks .t{font-family:var(--hand);font-size:17px;color:var(--sub)}
.marks-note{font-family:var(--hand);font-size:16px;color:var(--sub);text-align:center;margin-top:8px}
.hl-row{display:grid;grid-template-columns:minmax(80px,1fr) 2.2fr auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line2)}
.hl-name{font-family:var(--hand);font-size:21px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hl-name.dim{color:var(--sub);font-weight:400}
.hl-bar{height:14px;border-bottom:1px dotted var(--line);position:relative}
.hl-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:3px}
.hl-v{font-family:var(--round);font-weight:800;font-size:16px;min-width:64px;text-align:right}
.hl-v.zero{color:var(--faint)}
.hl-note{font-family:var(--hand);font-size:15px;color:var(--sub);margin-top:8px}
.heat{display:grid;grid-template-columns:44px repeat(7,minmax(0,1fr)) 40px;gap:6px;align-items:center}
.heat .hh{text-align:center;font-size:10.5px;letter-spacing:.1em;color:var(--sub)}
.heat .hh.sat{color:var(--blue)}.heat .hh.sun{color:var(--accent)}
.heat .wl{font-family:var(--hand);font-size:15px;color:var(--sub);text-align:right}
.hc{aspect-ratio:1/0.82;border:1px dashed var(--line);border-radius:6px;padding:4px 5px;text-align:left;position:relative;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.hc .hd{font-family:var(--hand);font-size:16px;color:var(--text)}
.hc .hm{font-family:var(--round);font-weight:800;font-size:10px;color:#7A2F35;text-align:center}
.hc.fut{opacity:.35}
.hc.today{box-shadow:0 0 0 2px var(--accent);border-color:transparent}
.hleg{display:flex;flex-direction:column;align-items:center;gap:2px}
.hleg i{width:22px;height:18px;border-radius:4px;border:1px dashed var(--line)}
.hleg span{font-family:var(--hand);font-size:13px;color:var(--sub)}
.dd-big{font-family:var(--hand);font-size:30px;color:var(--faint);text-align:center;padding:14px 0;width:100%}
.dd-list{display:flex;flex-direction:column;gap:6px}
.dd-item{display:flex;justify-content:space-between;align-items:baseline;font-family:var(--hand);font-size:22px;border-bottom:1px dotted var(--line);padding:4px 0}
.dd-item b{font-family:var(--round);font-weight:900;color:var(--accent);font-size:24px}
body.dev-phone .st,body.dev-pad .st{grid-template-columns:minmax(0,1fr)}
body.dev-phone .boxes{grid-template-columns:1fr 1fr!important}
body.dev-phone .boxes>div:nth-child(3){border-left:0;border-top:1px dashed var(--line)}
body.dev-phone .boxes>div:nth-child(4){border-top:1px dashed var(--line)}
body.dev-phone .two{grid-template-columns:minmax(0,1fr)}
body.dev-phone .st-date{font-size:42px}
body.dev-phone .todl span:nth-child(odd){visibility:hidden}

/* ── 우리 학교: 시간표 · 급식 · 학사일정 ── */
.school{padding:10px 14px 12px}
.sc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;margin-top:6px}
.sc-h{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--sub);margin-bottom:4px}
.sc-h .muted{font-weight:400;letter-spacing:0;font-family:var(--hand);font-size:14px}
.sc-tt{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:1px 12px}
.sc-tt li{font-family:var(--hand);font-size:17px;display:flex;gap:6px;align-items:baseline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-tt b{font-family:var(--round);font-weight:800;font-size:12px;color:var(--accent);min-width:12px}
.sc-meal{list-style:none;margin:0;padding:0;font-family:var(--hand);font-size:17px;line-height:1.35}
.sc-ev{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sc-ev span,.wk-sev{font-family:var(--hand);font-size:15px;border:1px solid var(--accent);color:var(--accent);border-radius:999px;padding:0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-sev{font-size:13px;padding:0 6px;align-self:flex-start;max-width:100%}
.sc-empty{font-family:var(--hand);font-size:16px;margin:2px 0}
.sc-hits{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.sc-hits button{text-align:left;border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:13px}
.sc-hits button:hover{background:var(--hover)}
.sc-hits b{font-family:var(--hand);font-size:17px;margin-right:6px}
body.dev-phone .sc-grid{grid-template-columns:minmax(0,1fr)}

/* ── 한 줄 10분 시간표: 계획은 빗금, 한 것은 꽉 찬 색 ── */
.ln-sum{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:2px 4px 10px;font-family:var(--hand);font-size:17px;color:var(--sub)}
.ln-sum b{font-family:var(--round);font-weight:800;font-size:14px;color:var(--text);margin-left:2px}
.ln-sum em{font-style:normal;font-family:var(--round);font-weight:800;font-size:13px;color:var(--accent)}
.ln-sum .mini{margin-left:auto;font-family:Pretendard,sans-serif}
.ln-row{display:grid;grid-template-columns:34px repeat(6,minmax(0,1fr));height:30px;position:relative;border-bottom:1px solid var(--line2)}
.ln-sum + .ln-row{border-top:1px solid var(--line2)}
.ln-h{display:grid;place-items:center;font-family:var(--round);font-weight:700;font-size:12px;color:var(--sub)}
.ln-h span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%}
.ln-h.now span{background:var(--accent);color:#fff}
.ln-h.mid span{background:var(--ink);color:var(--card)}
.c.ln{border-left:1px dotted var(--line);border-bottom:0}
.ln-row .c.ln:nth-child(2){border-left:1px solid var(--line)}
.c.ln.on.jp{border-left-color:transparent}
.lb.plan{color:var(--sub)}
.lb.done{color:#3B4048;font-weight:600}
.pmode{display:inline-flex;background:var(--soft);border-radius:9px;padding:2px;gap:2px;flex:none}
.pmode button{height:26px;padding:0 10px;border-radius:7px;font-size:12.5px;color:var(--sub)}
.pmode button.on{background:var(--card);color:var(--text);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
body.dev-pad .ln-row{height:32px}
body.dev-phone .ln-row{height:36px}
.c.ln .lb{font-family:var(--hand);font-size:15px;left:6px}
.c.ln .lb.plan{color:var(--ink);font-weight:400}
.c.ln .lb.done{color:#2B2F36;font-weight:700}

/* 형광펜 막대: 점선 10분 칸 위에 둥근 막대 */
.ln-row .bar{position:absolute;top:5px;bottom:5px;border-radius:5px;pointer-events:none;display:flex;align-items:center;padding:0 7px;overflow:hidden;z-index:1;box-sizing:border-box}
.ln-row .bar.done{background:var(--c)}
.ln-row .bar.plan{background:repeating-linear-gradient(135deg,var(--c) 0 3px,transparent 3px 7px);box-shadow:inset 0 0 0 1.5px var(--c)}
.ln-row .bar.cl{border-top-left-radius:0;border-bottom-left-radius:0}
.ln-row .bar.cr{border-top-right-radius:0;border-bottom-right-radius:0}
.ln-row .bar em{font-style:normal;font-family:var(--hand);font-size:15px;color:#2B2F36;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ln-row .bar.plan em{color:var(--ink);background:color-mix(in srgb,var(--card) 70%,transparent);border-radius:3px;padding:0 3px}
.ln-h{font-size:14px;font-weight:800;color:var(--text);border-right:1px solid var(--line)}
.c.ln:hover{background:var(--soft2)}

/* ── 깔끔: 손글씨 대신 반듯한 글씨 (손글씨 크기에 맞춰 조금 줄인 Pretendard) ── */
@font-face{font-family:'DpClean';font-weight:400;font-display:swap;size-adjust:84%;src:url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2) format('woff2')}
@font-face{font-family:'DpClean';font-weight:500 600;font-display:swap;size-adjust:84%;src:url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2) format('woff2')}
@font-face{font-family:'DpClean';font-weight:700 900;font-display:swap;size-adjust:84%;src:url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Bold.woff2) format('woff2')}
:root[data-font="clean"]{--hand:'DpClean',Pretendard,sans-serif;--round:Pretendard,sans-serif;--title:Pretendard,sans-serif}
/* 10/14 글꼴 통일: 깔끔하게 = 날짜·D-day·TOTAL·할 일까지 전부 프리텐다드 / 손글씨체·펜글씨 = 숫자·이름표까지 고른 글꼴 하나 */
:root[data-font="clean"] .date-main{font-weight:700;letter-spacing:-.01em}
:root[data-font="clean"] .date-year{font-weight:500}
:root:is([data-font="poor"],[data-font="gaegu"],[data-font="pen"],[data-font="kyobo"],[data-font="kyobo20"],[data-font="seoyun"]){--round:var(--hand)}
:root:is([data-font="poor"],[data-font="gaegu"],[data-font="pen"],[data-font="kyobo"],[data-font="kyobo20"],[data-font="seoyun"]) :is(.sh-lab,.dd-one .dd-n){font-family:var(--title);font-weight:400;letter-spacing:.06em}
:root:is([data-font="poor"],[data-font="gaegu"],[data-font="pen"],[data-font="kyobo"],[data-font="kyobo20"],[data-font="seoyun"]) .tk-lab{font-family:var(--hand);font-weight:400}
/* 깔끔하게는 할 일 글꼴(DpClean)이 84%라 과목 이름표와 크기가 비슷해 보인다 — 손글씨에서도 그 비율로 */
:root:is([data-font="poor"],[data-font="gaegu"],[data-font="pen"],[data-font="kyobo"],[data-font="kyobo20"],[data-font="seoyun"]) .tk-row .lab-hl{font-size:1.15em}
/* .tk-lab·.sh-lab 은 font 한 줄로 써서 아래 크기 맞춤이 풀린다 — 다시 걸기 */
:root[data-font="pen"] :is(.tk-lab,.sh-lab){font-size-adjust:.58}
:root[data-font="kyobo"] :is(.tk-lab,.sh-lab){font-size-adjust:.5}
/* 10/14 칸마다 폰트(설정 › 구조·글꼴, planner.js partFont): 그 칸 안에서만 글꼴 변수를 바꾼다. 이름표(DATE·TASKS)는 기본 폰트 그대로 */
html body [data-pf="pretendard"]{--hand:'DpClean',Pretendard,sans-serif;--title:Pretendard,sans-serif;--round:Pretendard,sans-serif;font-size-adjust:none}
html body [data-pf="round"]{--hand:'Nunito',Pretendard,sans-serif;--title:'Nunito',Pretendard,sans-serif;--round:'Nunito',Pretendard,sans-serif;font-size-adjust:none}
html body [data-pf="poor"]{--hand:'Poor Story',Pretendard,sans-serif;--title:'Poor Story',Pretendard,sans-serif;--round:'Poor Story',Pretendard,sans-serif;font-size-adjust:none}
html body [data-pf="gaegu"]{--hand:'Gaegu',Pretendard,sans-serif;--title:'Gaegu',Pretendard,sans-serif;--round:'Gaegu',Pretendard,sans-serif;font-size-adjust:none}
html body [data-pf="pen"]{--hand:'Nanum Pen Script',Pretendard,sans-serif;--title:'Nanum Pen Script',Pretendard,sans-serif;--round:'Nanum Pen Script',Pretendard,sans-serif;font-size-adjust:.58}
html body [data-pf="kyobo"]{--hand:'KyoboHandwriting2019',Pretendard,sans-serif;--title:'KyoboHandwriting2019',Pretendard,sans-serif;--round:'KyoboHandwriting2019',Pretendard,sans-serif;font-size-adjust:.5}
html body [data-pf="kyobo20"]{--hand:'KyoboHandwriting2020ParkDoYeon',Pretendard,sans-serif;--title:'KyoboHandwriting2020ParkDoYeon',Pretendard,sans-serif;--round:'KyoboHandwriting2020ParkDoYeon',Pretendard,sans-serif;font-size-adjust:none}
html body [data-pf="seoyun"]{--hand:'LeeSeoyun',Pretendard,sans-serif;--title:'LeeSeoyun',Pretendard,sans-serif;--round:'LeeSeoyun',Pretendard,sans-serif;font-size-adjust:none}
html body :is([data-pf="poor"],[data-pf="gaegu"],[data-pf="pen"],[data-pf="kyobo"],[data-pf="kyobo20"],[data-pf="seoyun"]){font-synthesis:none}
html body [data-pf][data-pf] :is(.tk-lab,.sh-lab){font-size-adjust:inherit}
html body [data-pf][data-pf] .sh-lab{font-size-adjust:none}
html body :is([data-pf="poor"],[data-pf="gaegu"],[data-pf="pen"],[data-pf="kyobo"],[data-pf="kyobo20"],[data-pf="seoyun"]) :is(.date-main,.date-year){font-weight:400;letter-spacing:.02em}
html body [data-pf="pretendard"] .date-main{font-weight:700;letter-spacing:-.01em}
html body [data-pf="round"] .date-main{font-weight:900;letter-spacing:-.01em}
html body [data-pf]:not([data-pf="pretendard"]) .tk-lab{font-family:var(--hand);font-weight:400}
html body :is([data-pf="poor"],[data-pf="gaegu"],[data-pf="pen"],[data-pf="kyobo"],[data-pf="kyobo20"],[data-pf="seoyun"]) .tk-row .lab-hl{font-size:1.15em}
html body :is([data-pf="pretendard"],[data-pf="round"]) .tk-row .lab-hl{font-size:1em}
/* 설정의 견본 글자 */
.pf-row{gap:8px}
.pf-row .pf-k{flex:none;width:84px;font-size:12.5px}
.pf-row .pf-s{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--hand);font-size:16px;color:var(--text)}
.pf-row .pf-title{font-family:var(--title);font-size:18px}
.pf-row .pf-round{font-family:var(--round);font-weight:900;font-size:17px;color:var(--accent)}
.pf-row select{flex:none;max-width:118px}
/* 펜글씨·교보 또박은 글자 폭이 좁아 작아 보인다 → 종이 안에서만 조금 키운다 (다른 손글씨와 같은 크기로) */
:root[data-font="pen"] :is(.page,.wk-page,.mo,.date-main,.date-year){font-size-adjust:.58}
:root[data-font="kyobo"] :is(.page,.wk-page,.mo,.date-main,.date-year){font-size-adjust:.5}
:root[data-font="clean"] body{font-variant-numeric:tabular-nums}
:root[data-font="clean"] .grp-name,:root[data-font="clean"] .ev-title,:root[data-font="clean"] .hl-name,:root[data-font="clean"] .wk-h b{font-weight:600}
:root[data-font="clean"] .ln-row .bar{border-radius:2px}
:root[data-font="clean"] .ln-row .bar em{font-weight:600;font-size:14px}
:root[data-font="clean"] .ln-h{font-weight:600;font-size:12.5px;color:var(--sub)}
:root[data-font="clean"] .chk .mkg{font-weight:700}
.st-date::before{bottom:.12em}
/* 학교 수업: 형광펜과 섞이지 않게 옅은 회색 칸 + 왼쪽 가는 줄, 내가 칠한 막대가 그 위로 올라간다 */
.ln-row .bar.sch{z-index:0;top:3px;bottom:3px;border-radius:3px;background:color-mix(in srgb,var(--sub) 13%,transparent);box-shadow:inset 2px 0 0 color-mix(in srgb,var(--sub) 45%,transparent)}
.ln-row .bar.sch.cl{box-shadow:none}
.ln-row .bar.sch.lunch{background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--sub) 10%,transparent) 0 6px,transparent 6px 9px);box-shadow:none}
.ln-row .bar.sch em{font-family:Pretendard,sans-serif;font-size:12px;font-weight:600;color:var(--sub2);letter-spacing:-.01em}

/* ══ 하루 쪽: 종이 한 장 (상자 없이 이름표와 줄로 나눈다) ══ */
body.dev-pad .board{max-width:1240px;margin:0 auto;padding:18px 26px 26px}
.sheet{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:0 30px;align-items:start}
.sheet-l,.sheet-r{display:flex;flex-direction:column;gap:22px;min-width:0}
#midRow{display:flex;flex-direction:column;gap:22px}
#midRow[hidden]{display:none}
.sh-lab{display:flex;align-items:center;gap:10px;font:700 11px/1 Pretendard,sans-serif;letter-spacing:.12em;color:var(--text);margin-bottom:8px;min-height:18px}
.sh-lab::after{content:"";order:1;flex:1;height:1px;background:var(--text);opacity:.75}
.sh-r{order:2;display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:0;color:var(--sub);font-size:12px}

/* 맨 위: DATE | TOTAL TIME — 상자 없이 */
body.view-day .top{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px;padding-bottom:4px}
body.view-day .top .card{border:0;background:none;border-radius:0;min-height:0}
body.view-day .top .stat:last-child{display:none}
body.view-day .date-card{padding:0;justify-content:flex-start;gap:4px}
body.view-day .date-mid{order:1;flex:1;text-align:left}
body.view-day .date-mid::before{content:"DATE";display:flex;font:700 11px/1 Pretendard,sans-serif;letter-spacing:.12em;color:var(--text);margin-bottom:12px}
body.view-day #prev{order:2}body.view-day #next{order:3}
body.view-day .date-card .nav{width:30px;height:30px;color:var(--faint)}
body.view-day .date-card .nav:hover{color:var(--text)}
body.view-day .stat{padding:0;gap:4px;align-items:flex-end;text-align:right}
body.view-day .stat-label{color:var(--text);margin-bottom:6px}
body.view-day .stat-val{font-size:clamp(34px,3.4vw,46px)}

/* COMMENT · MEMO · REVIEW: 줄 위에 손글씨 */
#goal,#memo,#review{width:100%;border:0;outline:0;resize:none;background:none;font-family:var(--hand);font-size:18px;line-height:34px;padding:0 4px;min-height:34px;
  background-image:linear-gradient(transparent 33px,var(--line2) 33px);background-size:100% 34px}
#memo{min-height:68px}
.memo{min-height:0}

/* TASKS: 공책 줄 */
.tk-tabs{display:flex;gap:2px}
.tk-tabs button{font:600 12px Pretendard,sans-serif;color:var(--faint);padding:2px 6px;border-radius:6px}
.tk-tabs button.on{color:var(--text);background:var(--soft)}
.tk-cnt{font-family:var(--round);font-weight:900;font-size:14px;color:var(--accent)}
.tk{display:flex;flex-direction:column}
.todo.tk-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto 26px;align-items:center;gap:8px;min-height:40px;border-radius:0;padding:0 2px;background:none;border-bottom:1px solid var(--line2)}
.todo.tk-row.sel{background:color-mix(in srgb,var(--sel) 35%,transparent)}
.tk-lab{font:500 12.5px/1.2 Pretendard,sans-serif;color:var(--sub);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 0}
button.tk-lab:hover,button.tk-lab.on{color:var(--text)}
.tk-row .todo-t{padding:6px 0;font-size:17px;line-height:1.35}
.tk-row .hl{background:linear-gradient(transparent 50%,var(--sel) 50%,var(--sel) 92%,transparent 92%);padding:0 3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.tk-row.m-o .hl,.tk-row.m-arrow .hl{background:none}
.tk-row .handle{opacity:0;width:16px}
.tk-row:hover .handle{opacity:.6}
.tk-row .chk{width:22px;height:22px;border:1.5px dotted var(--faint2);border-radius:3px;background:none;justify-self:end}
.tk-row .chk .mkg{color:var(--accent);font-size:17px}
.tk-row .chk.ghost{opacity:.45}
.tk-row.blank{grid-template-columns:64px minmax(0,1fr) 26px}
.tk-row.blank .todo-in{border:0;font-size:17px;padding:6px 0}
.tk-row.blank .todo-in::placeholder{color:var(--faint);font-family:Pretendard,sans-serif;font-size:13px}
.tk-row.editing{grid-template-columns:64px minmax(0,1fr) 26px}
.tk-ed{display:flex;align-items:center;gap:2px;min-width:0}
.tk-ed .todo-in{border-bottom-color:var(--accent)}
.carry{border:0;text-align:right;padding:8px 2px 0;font-size:12.5px;color:var(--sub)}
.carry:hover{background:none;color:var(--text)}
.tasks .evs{gap:0}
.tasks .ev{border:0;border-bottom:1px solid var(--line2);border-radius:0;background:none;padding:2px 0}
.tasks .note{font-size:12.5px;color:var(--faint)}

/* D-DAY · SCHOOL: 오른쪽에 작게 */
.sheet .dday{display:block;padding:0}
.dd-i{display:flex;justify-content:space-between;align-items:baseline;font-family:var(--hand);font-size:17px;padding:2px 0}
.dd-i b{font-family:var(--round);font-weight:900;font-size:16px;color:var(--accent)}
.dd-empty{font-family:var(--hand);font-size:22px;color:var(--faint);width:100%;text-align:center;padding:2px 0}
.dd-empty:hover{color:var(--sub)}
.sheet .school{padding:0}
.sc-line{display:flex;gap:10px;align-items:baseline;font-family:var(--hand);font-size:16px;line-height:1.45;padding:2px 0;min-width:0}
.sc-line b{font-family:var(--round);font-weight:800;font-size:11px;color:var(--accent);margin-right:2px}
.sc-k{font:600 11.5px Pretendard,sans-serif;color:var(--sub);flex:none;width:28px}
.sc-meal summary{display:flex;gap:10px;align-items:baseline;cursor:pointer;list-style:none;min-width:0}
.sc-meal summary::-webkit-details-marker{display:none}
.sc-dish{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sc-meal[open] .sc-dish{display:none}
.sc-more{padding-left:38px;margin-top:-22px}
.sc-meal{display:block}

/* TIMETABLE: 상자 없이 */
.sheet .grid-card{padding:0;border:0;background:none}
.brush-bar:empty{display:none}
.sheet .ln-sum{font-size:14px;padding:0 2px 8px}

/* 1000px 보다 좁으면 한 줄로 쌓는다 (휴대폰은 아래 탭으로 나눠 본다) */
@media (max-width:999px){
  .sheet{grid-template-columns:minmax(0,1fr);gap:22px}
  body.view-day .top{grid-template-columns:minmax(0,1fr) auto}
}
body.dev-phone .board{padding:12px 14px}
body.dev-phone.view-day .top{grid-template-columns:minmax(0,1fr) auto;gap:12px}
body.dev-phone.view-day .date-card{grid-column:auto}
body.dev-phone.view-day .stat-val{font-size:30px}
body.dev-phone .todo.tk-row{grid-template-columns:52px minmax(0,1fr) auto 26px;min-height:44px}
body.dev-phone .tk-row.blank,body.dev-phone .tk-row.editing{grid-template-columns:52px minmax(0,1fr) 26px}
/* 대충 적기: 예시 줄은 칸을 눌렀을 때만, 필기 칸은 점선 종이처럼 가볍게 */
.quick:not(.typing):not(:focus-within) .quick-hint{display:none}
.ink{border:0;padding:0;background:none}
.ink-area{background:none;border:1.5px dashed var(--line);border-radius:12px}
/* 휴대폰도 흰 종이 위에 */
html:has(body.dev-phone),body.dev-phone,body.dev-phone .board,body.dev-phone .quick{background:var(--board)}

/* ══ 하루 쪽 머리: DATE | D-DAY / COMMENT | TOTAL TIME ══ */
body.view-day .top{display:none}
.sheet-head{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px 30px;margin-bottom:22px;align-items:start}
#slotDate{grid-area:1/1}#ddaySec{grid-area:1/2}#midRow{grid-area:2/1}#slotTotal{grid-area:2/2}
#slotDate .date-card,#slotTotal .stat{border:0;background:none;border-radius:0;padding:0;min-height:0}
body.view-day .date-mid::before{content:none}
#slotDate .date-card{display:flex;align-items:center;gap:2px}
#slotDate .date-mid{order:1;flex:1;text-align:left}
#slotDate #prev{order:2}#slotDate #next{order:3}
#slotTotal .stat-label{display:none}
#slotTotal .stat{align-items:center;text-align:center;gap:0}
#slotTotal .stat-val{font-size:clamp(38px,3.8vw,52px);line-height:1}
#slotTotal .stat-sub{font-size:14px}
.dd-list{align-items:flex-end}
.dd-i{justify-content:flex-end;gap:12px}
/* 왼쪽 가장자리: 스프링 공책 구멍 */
body.dev-pad.view-day .board{padding-left:44px;background-image:radial-gradient(circle,var(--ink) 0 2.6px,transparent 3px);background-size:14px 30px;background-repeat:repeat-y;background-position:14px 22px}
@media (max-width:999px){ body.dev-pad.view-day .board{padding-left:34px;background-position:8px 22px} }
/* 휴대폰: DATE | TOTAL TIME 한 줄, 그 아래 D-DAY, COMMENT */
body.dev-phone .sheet-head{grid-template-columns:minmax(0,1fr) auto;gap:14px 16px}
body.dev-phone #slotDate{grid-area:1/1}body.dev-phone #slotTotal{grid-area:1/2}
body.dev-phone #ddaySec{grid-area:2/1/3/3}body.dev-phone #midRow{grid-area:3/1/4/3}
body.dev-phone #slotTotal .stat-val{font-size:30px}
#ddaySec{display:block;padding:0}
#goal{min-height:68px}
/* 점심: 칸을 채우지 않고 코랄 화살표 줄 */
.ln-row .bar.sch.lunch{background:none;box-shadow:none;overflow:visible}
.ln-row .bar.sch.lunch::before{content:"";position:absolute;left:0;right:2px;top:50%;height:1.5px;margin-top:-.75px;background:var(--accent)}
.ln-row .bar.sch.lunch:not(.cr)::after{content:"";position:absolute;right:2px;top:50%;width:7px;height:7px;margin-top:-4.5px;border-top:1.5px solid var(--accent);border-right:1.5px solid var(--accent);transform:rotate(45deg)}
.ln-row .bar.sch.lunch em{position:relative;z-index:1;color:var(--accent);background:var(--board);border:1.5px solid var(--accent);border-radius:999px;padding:0 7px;font-size:11px;line-height:16px}

/* ══ 휴대폰: 덜어 내기 — 머리는 날짜·D-Day·총 시간만, 오늘 탭은 할 일 중심, 급식은 시간표 탭으로 ══ */
body.dev-phone .sheet-head{grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line2)}
body.dev-phone #slotDate .sh-lab,body.dev-phone #slotTotal .sh-lab,body.dev-phone #ddaySec .sh-lab,body.dev-phone #goalCard .sh-lab{display:none}
body.dev-phone #slotDate{grid-area:1/1}body.dev-phone #slotTotal{grid-area:1/2/3/3;align-self:center}
body.dev-phone #ddaySec{grid-area:2/1}body.dev-phone #midRow{grid-area:3/1/4/3;margin-top:8px}
body.dev-phone #slotDate .nav{display:none}
body.dev-phone .date-main{font-size:28px}
body.dev-phone .today-chip{font-size:12px}
body.dev-phone .dd-list{align-items:flex-start;gap:0}
body.dev-phone .dd-i{justify-content:flex-start;gap:6px;font-size:14px;padding:0}
body.dev-phone .dd-i b{font-size:13px}
body.dev-phone .dd-empty{display:none}
body.dev-phone #slotTotal .stat-val{font-size:32px}
body.dev-phone #slotTotal .stat-sub{font-size:12px}
body.dev-phone #goal{min-height:34px;font-size:16px;color:var(--sub)}
body.dev-phone .sheet-l{gap:16px}
body.dev-phone #memo{min-height:34px}
body.dev-phone .sh-lab::after{opacity:.25}
body.dev-phone .sheet-head{border-bottom:0;padding-bottom:0}

/* 시간표 시각 칸 너비 (막대 위치도 이 값으로 계산) */
.tt{--hc:34px}
.ln-row{grid-template-columns:var(--hc) repeat(6,minmax(0,1fr))}
/* 점심 표시 → 누르면 급식 */
.ln-row .bar.sch.lunch em[data-meal]{pointer-events:auto;cursor:pointer}
.ln-row .bar.sch.lunch em[data-meal]:hover{background:var(--accent);color:#fff}
.meal-pop{min-width:180px;max-width:260px;padding:4px 2px}
.meal-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.meal-h b{font:700 12px Pretendard,sans-serif;letter-spacing:.08em;color:var(--accent)}
.meal-h .muted{font-size:11.5px}
.meal-pop ul{list-style:none;margin:0;padding:0;font-family:var(--hand);font-size:17px;line-height:1.5}

/* ══ 휴대폰 하루: 종이처럼 왼쪽 할 일 · 오른쪽 시간표를 한 화면에 ══ */
body.dev-phone .sheet{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto auto auto 1fr;gap:12px 10px}
body.dev-phone .sheet-l,body.dev-phone .sheet-r{display:contents}
body.dev-phone #schoolCard{display:none}
body.dev-phone .tasks{grid-area:2/1}
body.dev-phone .memo-sec{grid-area:3/1}
body.dev-phone #reviewCard{grid-area:4/1}
body.dev-phone .sheet .grid-card{grid-area:2/2/6/3}
body.dev-phone .tk-tabs,body.dev-phone .tk-row .tk-lab,body.dev-phone .tk-row .handle,body.dev-phone .ln-sum{display:none}
body.dev-phone .todo.tk-row,body.dev-phone .tk-row.blank,body.dev-phone .tk-row.editing{grid-template-columns:minmax(0,1fr) 20px;gap:4px;min-height:34px}
body.dev-phone .tk-row .todo-t,body.dev-phone .tk-row.blank .todo-in{font-size:14.5px;padding:5px 0}
body.dev-phone .tk-row .chk{width:18px;height:18px}
body.dev-phone .tk-row .chk .mkg{font-size:14px}
body.dev-phone .tt{--hc:20px}
body.dev-phone .ln-row{height:24px}
body.dev-phone .ln-h{font-size:11px}
body.dev-phone .ln-row .bar{top:3px;bottom:3px;padding:0 3px}
body.dev-phone .ln-row .bar em{font-size:10.5px}
body.dev-phone .ln-row .bar.sch.lunch em{font-size:9.5px;padding:0 4px;line-height:13px}
body.dev-phone .sh-lab{font-size:10px;margin-bottom:4px}

/* ══ 종이 틀 줄 맞추기: 굵은 이름표 줄, 머리 닫는 줄, 할 일 과목 칸 점선, 5줄마다 진한 줄 ══ */
.sh-lab{font-weight:600;font-size:12px;letter-spacing:.02em}
.sh-lab::after{height:1.5px;background:var(--ink);opacity:1}
body.dev-phone .sh-lab::after{height:1px;opacity:.5}
#slotDate .date-mid{text-align:center}
body.dev-pad .date-main{font-size:clamp(34px,3.6vw,54px)}
#slotDate .date-card .nav{opacity:.45}
#midRow,#slotTotal{border-bottom:1.5px solid var(--ink);padding-bottom:10px;align-self:stretch}
#midRow #goal{background-image:none}
#slotTotal .stat-val{font-size:clamp(44px,4.4vw,64px)}
.sheet-head{row-gap:14px;margin-bottom:34px}
.dd-empty{font-size:26px;padding:8px 0}
/* TASKS: 과목 칸(점선으로 나눔) | 할 일 | 점선 네모 */
body.dev-pad .todo.tk-row{grid-template-columns:110px minmax(0,1fr) auto 30px;min-height:46px;gap:0 10px}
body.dev-pad .tk-row.blank,body.dev-pad .tk-row.editing{grid-template-columns:110px minmax(0,1fr) 30px}
.tk-row .tk-lab{align-self:stretch;display:flex;align-items:center;border-right:1px dotted var(--line);padding:0 6px 0 2px}
.tk-row.r5{border-bottom:1.5px solid var(--ink)}
.tk-row .chk{width:26px;height:26px;border:1.5px dotted var(--faint2)}
.tasks .tk>.tk-row:last-child,.tasks .tk>.todos:last-child>.tk-row:last-child{border-bottom:1.5px solid var(--ink)}
/* MEMO: 과목 칸 자리만큼 점선, 세 줄 */
body.dev-pad .memo-sec{position:relative}
body.dev-pad .memo-sec::before{content:"";position:absolute;left:110px;top:28px;bottom:2px;border-left:1px dotted var(--line)}
body.dev-pad #memo{padding-left:122px;min-height:102px;border-bottom:1.5px solid var(--ink)}
/* TIMETABLE: 굵은 시각 숫자, 맨 아래 닫는 줄 */
.ln-h{font-family:var(--round);font-weight:800;font-size:14px;color:var(--ink)}
body.dev-pad .ln-row{height:34px}
.sheet .grid-card{border-bottom:1.5px solid var(--ink);padding-bottom:2px}
.ln-row .bar{border-radius:4px}

/* 휴대폰 하루: 할 일 → 메모 → 시간표(맨 아래, 가로 전체) */
body.dev-phone .sheet{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:22px}
body.dev-phone .tasks,body.dev-phone .memo-sec,body.dev-phone #reviewCard,body.dev-phone .sheet .grid-card{grid-area:auto}
body.dev-phone .tk-row .tk-lab{display:flex;border-right:1px dotted var(--line)}
body.dev-phone .todo.tk-row{grid-template-columns:52px minmax(0,1fr) 22px;gap:0 8px;min-height:40px}
body.dev-phone .tk-row.blank,body.dev-phone .tk-row.editing{grid-template-columns:52px minmax(0,1fr) 22px}
body.dev-phone .tk-row .todo-t,body.dev-phone .tk-row.blank .todo-in{font-size:16px}
body.dev-phone .tk-row .chk{width:20px;height:20px}
body.dev-phone .tt{--hc:28px}
body.dev-phone .ln-row{height:32px}
body.dev-phone .ln-h{font-size:12.5px}
body.dev-phone .ln-row .bar{top:4px;bottom:4px;padding:0 6px}
body.dev-phone .ln-row .bar em{font-size:12.5px}
body.dev-phone .ln-row .bar.sch.lunch em{font-size:11px;padding:0 6px;line-height:15px}
body.dev-phone .sh-lab{font-size:11px;margin-bottom:6px}
/* 휴대폰 하루 순서: 할 일 → 시간표 → 메모(맨 아래) */
body.dev-phone .tasks{order:1}body.dev-phone .sheet .grid-card{order:2}body.dev-phone .memo-sec{order:3}body.dev-phone #reviewCard{order:4}

/* 휴대폰 머리 정리: 날짜 왼쪽 · 총 시간 오른쪽, 굵은 줄 없이 */
body.dev-phone #slotDate .date-mid{text-align:left}
body.dev-phone .date-main{font-size:30px}
body.dev-phone #slotDate .date-card .today-chip{display:inline-block;color:var(--sub);background:none;border:1px solid var(--line);border-radius:999px;padding:1px 9px;font-size:11px;font-weight:500;margin:6px 0 0}
body.dev-phone #slotDate .date-card .today-chip[hidden]{display:none}
body.dev-phone #slotTotal,body.dev-phone #midRow{border-bottom:0;padding-bottom:0}
body.dev-phone #slotTotal{align-self:start}
body.dev-phone #slotTotal .stat{align-items:flex-end;text-align:right}
body.dev-phone #ddaySec{margin-top:6px}
body.dev-phone #midRow{margin-top:10px}
body.dev-phone #goal{min-height:36px;line-height:36px;border-bottom:1px solid var(--line2)}
body.dev-phone .sheet-head{margin-bottom:22px}
#goal,#memo,#review{overflow:hidden}
body.dev-phone #slotDate .date-card .today-chip{display:none}

/* ══ 휴대폰 하루(최종): 왼쪽 할 일 · 오른쪽 시간표 나란히, 메모는 맨 아래 가로 전체 ══ */
body.dev-phone .sheet{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:14px 10px}
body.dev-phone .tasks{grid-area:1/1}
body.dev-phone .sheet .grid-card{grid-area:1/2}
body.dev-phone .memo-sec{grid-area:2/1/3/3}
body.dev-phone #reviewCard{grid-area:3/1/4/3}
body.dev-phone .tk-row .tk-lab{display:none}
body.dev-phone .todo.tk-row,body.dev-phone .tk-row.blank,body.dev-phone .tk-row.editing{grid-template-columns:minmax(0,1fr) 20px;gap:4px;min-height:34px}
body.dev-phone .tk-row .todo-t,body.dev-phone .tk-row.blank .todo-in{font-size:14.5px;padding:5px 0}
body.dev-phone .tk-row .chk{width:18px;height:18px}
body.dev-phone .tt{--hc:20px}
body.dev-phone .ln-row{height:24px}
body.dev-phone .ln-h{font-size:11px}
body.dev-phone .ln-row .bar{top:3px;bottom:3px;padding:0 3px}
body.dev-phone .ln-row .bar em{font-size:10.5px}
body.dev-phone .ln-row .bar.sch.lunch em{font-size:9.5px;padding:0 4px;line-height:13px}
body.dev-phone .sh-lab{font-size:10.5px;margin-bottom:4px}

/* ══ 휴대폰 머리(최종): 큰 화면과 같은 틀 — DATE | D-DAY / COMMENT | TOTAL TIME ══ */
body.dev-phone .sheet-head{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:10px 14px;margin-bottom:22px}
body.dev-phone #slotDate .sh-lab,body.dev-phone #slotTotal .sh-lab,body.dev-phone #ddaySec .sh-lab,body.dev-phone #goalCard .sh-lab{display:flex}
body.dev-phone #slotDate{grid-area:1/1}body.dev-phone #ddaySec{grid-area:1/2;margin-top:0}
body.dev-phone #midRow{grid-area:2/1;margin-top:0}body.dev-phone #slotTotal{grid-area:2/2;align-self:stretch}
body.dev-phone #slotDate .date-mid{text-align:center}
body.dev-phone .date-main{font-size:25px}
body.dev-phone .dd-list{align-items:center}
body.dev-phone .dd-i{justify-content:center;font-size:14px}
body.dev-phone .dd-empty{display:block;font-size:19px;padding:2px 0}
body.dev-phone #midRow,body.dev-phone #slotTotal{border-bottom:1.5px solid var(--ink);padding-bottom:6px}
body.dev-phone #goal{min-height:52px;line-height:26px;font-size:15px;border-bottom:0}
body.dev-phone #slotTotal .stat{align-items:center;text-align:center}
body.dev-phone #slotTotal .stat-val{font-size:34px}
body.dev-phone #slotTotal .stat-sub{display:none}
body.dev-phone .sh-lab{font-size:10.5px;margin-bottom:6px}
body.dev-phone .sh-lab::after{height:1.5px;opacity:1;background:var(--ink)}
/* 휴대폰 머리 줄이기 */
body.dev-phone .sheet-head{gap:4px 12px;margin-bottom:14px}
body.dev-phone .sheet-head .sh-lab{margin-bottom:2px;min-height:14px}
body.dev-phone .date-main{font-size:22px;line-height:1.15}
body.dev-phone .dd-i{font-size:13px}
body.dev-phone .dd-empty{font-size:16px;padding:0}
body.dev-phone #goal{min-height:28px;line-height:28px;font-size:14px}
body.dev-phone #midRow,body.dev-phone #slotTotal{padding-bottom:3px}
body.dev-phone #slotTotal .stat-val{font-size:27px}

/* ══ 휴대폰 하루 = 종이 한 쪽을 같은 비율로 줄인 것 (왼쪽 6.5 : 오른쪽 3.5, 할 일 15줄+메모 3줄 높이 = 시간표 24줄 높이) ══ */
body.dev-phone .board{padding:8px 10px}
body.dev-phone .sheet-head,body.dev-phone .sheet{grid-template-columns:minmax(0,1.87fr) minmax(0,1fr);column-gap:12px}
body.dev-phone .sheet-head{row-gap:4px;margin-bottom:12px}
body.dev-phone .sh-lab{font-size:9px;letter-spacing:.04em;margin-bottom:2px;min-height:12px;gap:6px}
body.dev-phone .date-main{font-size:21px}
body.dev-phone #slotTotal .stat-val{font-size:26px}
body.dev-phone #goal{min-height:26px;line-height:26px;font-size:13px}
body.dev-phone .sheet{grid-template-rows:auto auto 1fr;row-gap:10px}
body.dev-phone .tasks{grid-area:1/1}
body.dev-phone .memo-sec{grid-area:2/1}
body.dev-phone #reviewCard{grid-area:3/1}
body.dev-phone .sheet .grid-card{grid-area:1/2/4/3}
body.dev-phone .tk-row .tk-lab{display:flex;font-size:9.5px;padding:0 3px 0 0}
body.dev-phone .todo.tk-row,body.dev-phone .tk-row.blank,body.dev-phone .tk-row.editing{grid-template-columns:30px minmax(0,1fr) 16px;gap:0 5px;min-height:28px}
body.dev-phone .tk-row .todo-t,body.dev-phone .tk-row.blank .todo-in{font-size:12.5px;padding:3px 0;line-height:1.3}
body.dev-phone .tk-row .chk{width:15px;height:15px;border-width:1.2px}
body.dev-phone .tk-row .chk .mkg{font-size:12px}
body.dev-phone .tk-row .rp,body.dev-phone .tk-row .star{font-size:9px}
body.dev-phone #memo{min-height:84px;line-height:28px;font-size:12.5px;padding-left:35px;background-size:100% 28px;background-image:linear-gradient(transparent 27px,var(--line2) 27px)}
body.dev-phone .memo-sec{position:relative}
body.dev-phone .memo-sec::before{content:"";position:absolute;left:30px;top:16px;bottom:0;border-left:1px dotted var(--line)}
body.dev-phone .tt{--hc:16px}
body.dev-phone .ln-row{height:23px}
body.dev-phone .ln-h{font-size:9.5px}
body.dev-phone .ln-h span{width:16px;height:16px}
body.dev-phone .ln-row .bar{top:3px;bottom:3px;padding:0 2px;border-radius:3px}
body.dev-phone .ln-row .bar em{font-size:9px}
body.dev-phone .ln-row .bar.sch.lunch em{font-size:8.5px;padding:0 3px;line-height:11px;border-width:1px}
body.dev-phone .tk-cnt{font-size:11px}
/* 휴대폰: 시간표 줄 높이는 왼쪽(할 일+메모) 끝에 맞춰 늘어난다 */
body.dev-phone .sheet .grid-card{display:flex;flex-direction:column}
body.dev-phone #tt{flex:1;display:flex;flex-direction:column}
body.dev-phone .ln-row{height:auto;flex:1 1 0;min-height:20px}
body.dev-phone .sheet .grid-card{align-self:stretch}
/* 큰 화면도: 시간표가 할 일+메모 끝까지 내려와 같이 끝난다 (종이 비율) */
@media (min-width:1000px){
  body.dev-pad .sheet-r{align-self:stretch}
  body.dev-pad .sheet .grid-card{flex:1;display:flex;flex-direction:column}
  body.dev-pad #tt{flex:1;display:flex;flex-direction:column}
  body.dev-pad .ln-row{height:auto;flex:1 1 0;min-height:30px}
}

/* ══ 큰 화면: 책상 위에 펼친 플래너 + 오른쪽 도구 막대 ══ */
.rail{display:none}
body.dev-pad{background:#E4E7EA}
body.dev-pad .app{padding:14px 96px 24px 18px}
body.dev-pad .board{max-width:1500px;background:none;border:0;padding:0;box-shadow:none}
body.dev-pad #viewSw,body.dev-pad #openSide{display:none}
body.dev-pad .quick{max-width:760px;margin:0 auto 4px;width:100%}
body.dev-pad .page{background:var(--board);border-radius:4px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 8px 28px rgba(20,30,40,.08);padding:22px 26px 26px;min-width:0}
body.dev-pad.view-day .board{background-image:none;padding-left:0}
.spread{display:block}
body.spread-on .spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;position:relative}
body.spread-on .prev-page{border-radius:4px 0 0 4px;cursor:pointer}
body.spread-on .cur-page{border-radius:0 4px 4px 0}
body.spread-on .prev-page .pp{pointer-events:none;opacity:.5}   /* 10/17 고치는 쪽과 확실히 구별 (사용자 "어떤 게 어떤 일인지 모를 수도") — 전엔 .92 */
@media (hover:hover){body.spread-on .prev-page:hover .pp{opacity:.7}}   /* 마우스만 — 손가락 기기는 누른 자리에 hover 가 남아 덜 흐려 보였다 */
body.spread-on .spread.cur-left>.prev-page{order:2}   /* 10/17 고치는 쪽이 왼쪽이면 흐린 쪽(다음 날)을 오른쪽으로 */
/* 가운데 스프링 */
body.spread-on .spread::after{content:"";position:absolute;top:18px;bottom:18px;left:50%;width:26px;margin-left:-13px;z-index:3;pointer-events:none;
  background:radial-gradient(ellipse 13px 4.5px at 50% 50%,#9AA0A8 0 60%,#5E646C 61% 75%,transparent 76%) 0 0/26px 34px repeat-y}
/* 왼쪽(어제) 쪽은 같은 틀을 class 로 */
.prev-page .sheet-head .m-date{grid-area:1/1}.prev-page .sheet-head .m-dday{grid-area:1/2}
.prev-page .sheet-head .m-goal{grid-area:2/1;border-bottom:1.5px solid var(--ink);padding-bottom:10px;align-self:stretch}
.prev-page .sheet-head .m-total{grid-area:2/2;border-bottom:1.5px solid var(--ink);padding-bottom:10px;text-align:center;align-self:stretch}
.prev-page .m-date .date-main{text-align:center}
.prev-page .m-total .stat-val{font-size:clamp(34px,3vw,50px);line-height:1}
.m-text{font-family:var(--hand);font-size:16px;line-height:1.6;min-height:34px;text-align:center;white-space:pre-wrap}
.m-memo{text-align:left;min-height:68px}
/* 두 쪽일 때 한 쪽이 좁아지니 칸을 조금 줄인다 */
body.spread-on .sheet,body.spread-on .sheet-head{column-gap:20px}
body.spread-on .todo.tk-row{grid-template-columns:62px minmax(0,1fr) auto 26px;min-height:40px}
body.spread-on .tk-row.blank,body.spread-on .tk-row.editing{grid-template-columns:62px minmax(0,1fr) 26px}
body.spread-on .memo-sec::before{left:62px}
body.spread-on #memo{padding-left:72px}
body.spread-on .date-main{font-size:clamp(28px,2.4vw,40px)}
body.spread-on #slotTotal .stat-val{font-size:clamp(34px,3vw,50px)}
body.spread-on .tt{--hc:28px}

/* 오른쪽 세로 도구 막대 */
body.dev-pad .rail{display:flex;flex-direction:column;align-items:center;gap:6px;position:fixed;right:12px;top:14px;bottom:14px;width:70px;padding:10px 6px;background:var(--card);border-radius:22px;box-shadow:0 2px 14px rgba(20,30,40,.1);z-index:30;overflow-y:auto;scrollbar-width:none}
.rl-g{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:4px 0;border-bottom:1px solid var(--line2)}
.rl-g:last-child{border-bottom:0}
.rl-end{margin-top:auto}
.rail button{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%;padding:5px 0;border-radius:12px;color:var(--sub2);font-size:10.5px}
.rail button:hover{background:var(--hover)}
.rl-v.on{background:var(--ink);color:var(--card)}
.rl-v.on:hover{background:var(--ink)}
.rl-cal{position:relative}
.rl-cal i{width:24px;height:24px;border:1.5px solid var(--sub);border-radius:5px;border-top:5px solid var(--accent);display:block}
.rl-cal b{position:absolute;top:13px;font-family:var(--round);font-weight:800;font-size:12px;color:var(--text)}
/* 형광펜 */
.pen{position:relative}
.pen .pen-b{display:block;width:34px;height:12px;border-radius:3px 6px 6px 3px;background:linear-gradient(90deg,var(--pd) 0 26%,var(--pc) 26% 92%,var(--pd) 92%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);transition:transform .15s}
.pen span{font-size:9.5px;max-width:62px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pen.on .pen-b{transform:translateX(-7px) scale(1.12)}
.pen.on span{color:var(--text);font-weight:700}
.pen.eraser .pen-b{background:linear-gradient(90deg,#fff 0 40%,#3E5C9A 40%);height:13px}

/* ══ 휴대폰: 위 보기 탭 · 아래 필통 ══ */
.pens-bar{display:none}
body.dev-phone{background:#E4E7EA}
body.dev-phone .app{padding:calc(60px + env(safe-area-inset-top)) 8px calc(84px + env(safe-area-inset-bottom))}
body.dev-phone .board{background:var(--board);border-radius:6px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 6px 20px rgba(20,30,40,.08)}
body.dev-phone .tabbar{top:calc(8px + env(safe-area-inset-top));bottom:auto;left:8px;right:8px;height:44px;padding:0 6px;border:0;border-radius:22px;align-items:center;gap:6px;box-shadow:0 2px 12px rgba(20,30,40,.1)}
body.dev-phone .tabbar button{flex:none;font-size:13px}
.tb-seg{display:flex;background:var(--soft);border-radius:16px;padding:3px;gap:2px}
.tb-seg button{height:30px;padding:0 11px;border-radius:13px;color:var(--sub)}
.tb-seg button.on{background:var(--ink);color:var(--card);font-weight:600}
.tb-today{margin-left:auto;height:30px;padding:0 12px;border-radius:13px;background:var(--soft);color:var(--text)!important}
.tb-set{width:34px;height:34px;justify-content:center}
body.dev-phone .pens-bar{display:flex;align-items:center;gap:4px;position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));height:66px;padding:0 8px;background:var(--card);border-radius:22px;box-shadow:0 2px 14px rgba(20,30,40,.12);z-index:40}
.pb-pens{display:flex;gap:2px;flex:1;overflow-x:auto;scrollbar-width:none;align-items:flex-end;height:100%;padding-bottom:6px}
.pb-pens .pen{flex:none;width:40px;padding:0;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:2px}
.pb-pens .pen .pen-b{width:13px;height:36px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,var(--pd) 0 22%,var(--pc) 22% 90%,var(--pd) 90%)}
.pb-pens .pen.on .pen-b{transform:translateY(-8px)}
.pb-pens .pen.eraser .pen-b{background:linear-gradient(180deg,#fff 0 38%,#3E5C9A 38%)}
.pb-pens .pen span{font-size:9.5px;color:var(--sub);max-width:40px}
.pb-tool{flex:none;display:flex;flex-direction:column;align-items:center;gap:2px;width:42px;padding:6px 0;border-radius:12px;font-size:10px;color:var(--sub2);border-left:1px solid var(--line2)}
/* 적기 칸: 누르면 필통 위로 */
body.dev-phone .quick{display:none;bottom:calc(80px + env(safe-area-inset-bottom));left:8px;right:8px;border-radius:18px;border:0;box-shadow:0 2px 14px rgba(20,30,40,.14);background:var(--card)}
body.dev-phone.qopen .quick{display:flex}
body.dev-phone .toast{bottom:calc(84px + env(safe-area-inset-bottom))}

/* ══ 쪽 틀 고정: 두 쪽이 줄 단위로 같게 (머리 높이 고정, 쪽 안 덧칸 빼기) ══ */
body.dev-pad .sheet-head,body.dev-phone .sheet-head{grid-template-rows:auto auto}
body.dev-pad #slotDate,body.dev-pad #ddaySec,body.dev-pad .m-date,body.dev-pad .m-dday{height:78px;overflow:hidden}
body.dev-pad #midRow,body.dev-pad #slotTotal,body.dev-pad .m-goal,body.dev-pad .m-total{height:96px;overflow:hidden}
body.dev-pad .sh-lab{height:18px;min-height:18px;margin-bottom:8px}
body.dev-pad #slotDate .nav,body.dev-pad #slotDate .today-chip{display:none}
body.dev-pad #goal{height:58px;min-height:0;line-height:29px;text-align:center}
body.dev-pad .m-text{height:58px;line-height:29px;overflow:hidden}
body.dev-pad #slotTotal .stat,body.dev-pad .m-total{justify-content:flex-start}
body.dev-pad #slotTotal .stat-sub{font-size:12px;margin-top:2px}
body.dev-pad #schoolCard,body.dev-pad .grid-card .ln-sum,body.dev-phone .grid-card .ln-sum{display:none}
body.dev-pad .sheet-head{margin-bottom:26px}
body.dev-pad .tk-cnt,body.dev-pad .tk-tabs{font-size:11px}
.prev-page .todo-in::placeholder{color:transparent}
/* 칠하기 막대는 쪽 위에 끼우지 않고 떠 있는 알약으로 */
#brushBar:not(:empty){position:fixed;left:50%;transform:translateX(-50%);bottom:22px;z-index:45;background:var(--card);border-radius:999px;box-shadow:0 2px 14px rgba(20,30,40,.16);padding:6px 8px 6px 14px;min-height:0;white-space:nowrap}
body.dev-pad #brushBar:not(:empty){margin-left:-42px}
body.dev-phone #brushBar:not(:empty){bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}
body.dev-phone.qopen #brushBar:not(:empty){display:none}
/* 할 일 한 줄 = 한 칸 (넘치면 …) — 두 쪽 줄이 늘 맞게 */
body.dev-pad .todo.tk-row,body.dev-phone .todo.tk-row{height:40px;min-height:0}
body.dev-phone .todo.tk-row{height:28px}
.tk-row .todo-t{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tk-row.editing{height:auto!important;min-height:40px}
/* 왼쪽(어제) 쪽 시간표도 같은 비율로 늘어나게 (#tt 가 아닌 .tt 로) */
@media (min-width:1000px){ body.dev-pad .grid-card .tt{flex:1;display:flex;flex-direction:column} }
body.dev-phone .grid-card .tt{flex:1;display:flex;flex-direction:column}
/* 메모 칸도 두 쪽 같은 높이(세 줄) */
body.dev-pad #memo{height:102px!important;min-height:0}
body.dev-pad .prev-page .m-memo{height:102px;min-height:0;padding:0 4px 0 72px;line-height:34px;font-size:16px;background-image:linear-gradient(transparent 33px,var(--line2) 33px);background-size:100% 34px;border-bottom:1.5px solid var(--ink);overflow:hidden}
#goal,#memo,#review{display:block}
.prev-page .m-dday{display:block}
.prev-page .tk-row.blank .todo-in::placeholder{color:transparent}

/* ══ 휴대폰 확대 ══ */
.zb-back{width:36px;height:36px;justify-content:center;flex:none!important}
.zb-date{display:flex;flex-direction:column;line-height:1.15;margin-right:auto}
.zb-date b{font-size:13.5px;font-weight:700;color:var(--text)}
.zb-date span{font-family:var(--round);font-weight:900;font-size:10.5px;color:var(--accent);letter-spacing:.02em}
/* 쓰기: 왼쪽 쪽(DATE·COMMENT·TASKS·MEMO)만 크게 */
body.dev-phone.zoom-write .sheet-head,body.dev-phone.zoom-write .sheet{grid-template-columns:minmax(0,1fr)}
body.dev-phone.zoom-write #ddaySec,body.dev-phone.zoom-write #slotTotal,body.dev-phone.zoom-write .sheet .grid-card{display:none}
body.dev-phone.zoom-write #slotDate{grid-area:1/1}body.dev-phone.zoom-write #midRow{grid-area:2/1}
body.dev-phone.zoom-write .tasks,body.dev-phone.zoom-write .memo-sec{grid-area:auto}
body.dev-phone.zoom-write .board{padding:14px 16px}
body.dev-phone.zoom-write .date-main{font-size:32px}
body.dev-phone.zoom-write .sh-lab{font-size:11px;margin-bottom:6px}
body.dev-phone.zoom-write #goal{min-height:64px;line-height:32px;font-size:17px;text-align:center}
body.dev-phone.zoom-write .todo.tk-row,body.dev-phone.zoom-write .tk-row.blank,body.dev-phone.zoom-write .tk-row.editing{grid-template-columns:58px minmax(0,1fr) 26px;height:44px;gap:0 10px}
body.dev-phone.zoom-write .tk-row.editing{height:auto}
body.dev-phone.zoom-write .tk-row .tk-lab{font-size:12px}
body.dev-phone.zoom-write .tk-row .todo-t,body.dev-phone.zoom-write .tk-row.blank .todo-in{font-size:17px}
body.dev-phone.zoom-write .tk-row .chk{width:24px;height:24px}
body.dev-phone.zoom-write .tk-row .chk .mkg{font-size:17px}
body.dev-phone.zoom-write #memo{min-height:120px;line-height:40px;font-size:16px;padding-left:68px;background-size:100% 40px;background-image:linear-gradient(transparent 39px,var(--line2) 39px)}
body.dev-phone.zoom-write .memo-sec::before{left:58px}
/* 시간: 시간표만 크게 */
body.dev-phone.zoom-time .sheet-head,body.dev-phone.zoom-time .tasks,body.dev-phone.zoom-time .memo-sec,body.dev-phone.zoom-time #reviewCard{display:none}
body.dev-phone.zoom-time .sheet{grid-template-columns:minmax(0,1fr)}
body.dev-phone.zoom-time .sheet .grid-card{grid-area:auto}
body.dev-phone.zoom-time .board{padding:12px 14px}
body.dev-phone.zoom-time .tt{--hc:30px}
body.dev-phone.zoom-time .ln-row{height:36px;flex:none}
body.dev-phone.zoom-time .ln-h{font-size:13px}
body.dev-phone.zoom-time .ln-h span{width:22px;height:22px}
body.dev-phone.zoom-time .ln-row .bar{top:5px;bottom:5px;padding:0 7px;border-radius:4px}
body.dev-phone.zoom-time .ln-row .bar em{font-size:13px}
body.dev-phone.zoom-time .ln-row .bar.sch.lunch em{font-size:11px;padding:0 7px;line-height:16px;border-width:1.5px}
body.dev-phone.zoom-time .sh-lab{font-size:11px}

/* ══ 주간 한 장 ══ */
.wk-page{background:var(--board);border-radius:4px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 8px 28px rgba(20,30,40,.08);padding:20px 22px 22px}
.wk-goal{display:flex;align-items:center;gap:12px;border-bottom:1.5px solid var(--ink);padding:4px 2px 8px;margin-bottom:14px}
.wk-rev{margin:14px 0 0;border-bottom:0;border-top:1.5px solid var(--ink);padding-top:10px}
.wk-lab{font:600 11px Pretendard,sans-serif;letter-spacing:.06em;color:var(--sub);border:1px solid var(--line);border-radius:4px;padding:3px 8px;flex:none}
.wk-goal input{flex:1;min-width:0;border:0;outline:0;background:none;font-family:var(--title);font-size:20px;color:var(--text)}
.wk-goal input::placeholder{color:var(--faint);font-family:Pretendard,sans-serif;font-size:14px}
.wk-sum{font-size:12px;color:var(--sub);white-space:nowrap}
.wk-sum b{font-family:var(--round);font-weight:900;font-size:16px;color:var(--accent)}
.wk-cols{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:3px}
.wk-col{display:flex;flex-direction:column;border-right:1px solid var(--line);min-width:0}
.wk-col:last-child{border-right:0}
.wk-col.today{background:color-mix(in srgb,var(--accent) 4%,transparent)}
.wk-ch{display:flex;align-items:baseline;justify-content:space-between;gap:4px;padding:8px 8px 6px;border-bottom:1.5px solid var(--ink);text-align:left}
.wk-ch b{font-family:var(--title);font-weight:400;font-size:22px;color:var(--text)}
.wk-ch span{font:600 8.5px Pretendard,sans-serif;letter-spacing:.08em;color:var(--sub)}
.wk-ch.sun span{color:var(--accent)}.wk-ch.sat span{color:var(--blue)}
.wk-col.today .wk-ch b{color:var(--accent)}
.wk-sev-l{display:flex;flex-wrap:wrap;gap:3px;padding:4px 6px 0}
.wk-sev-l .wk-sev{font-size:11px;padding:0 6px}
.wk-tasks{display:flex;flex-direction:column}
.wk-t{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:4px;height:26px;padding:0 6px;border-bottom:1px solid var(--line2)}
.wk-t:nth-child(4n){border-bottom-color:var(--line)}
.wk-tt-t{text-align:left;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--hand);font-size:13px;height:100%}
.wk-t .hl{background:linear-gradient(transparent 50%,var(--sel) 50%,var(--sel) 92%,transparent 92%);padding:0 2px}
.wk-t.m-o .wk-tt-t,.wk-t.m-arrow .wk-tt-t{color:var(--sub)}
.wk-t .chk{width:15px;height:15px;border:1.2px dotted var(--faint2);border-radius:2px;background:none}
.wk-t .chk .mkg{color:var(--accent);font-size:12px}
.wk-t .chk.ghost{opacity:.45}
.wk-more{font-size:11px;color:var(--sub);padding:2px 6px;text-align:left}
.wk-tt{--hc:14px;display:block;border-top:1.5px solid var(--ink);margin-top:6px;cursor:pointer;pointer-events:auto}
.wk-tt *{pointer-events:none}
.wk-tt .ln-row{height:13px}
.wk-tt .ln-h{font-size:7.5px;font-weight:700}
.wk-tt .ln-h span{width:11px;height:11px}
.wk-tt .bar{top:2px!important;bottom:2px!important;padding:0!important;border-radius:2px}
.wk-tt .bar em{display:none}
.wk-tt .bar.sch.lunch::after{display:none}
.wk-total{text-align:center;padding:6px 0 4px;border-top:1.5px solid var(--ink);font-family:var(--round);font-weight:900;font-size:18px;color:var(--text)}
.wk-total small{font-size:.55em;margin:0 1px;color:var(--sub)}
.wk-col.today .wk-total{color:var(--accent)}
/* 휴대폰 주간: 칸을 옆으로 넘겨 본다 (아래 요일 줄로 바로 가기) */
body.dev-phone .wk-page{padding:12px 10px}
body.dev-phone .wk-cols{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
body.dev-phone .wk-col{flex:0 0 42%;scroll-snap-align:start}
.wk-strip{display:flex;gap:2px;width:100%;justify-content:space-between}
.wk-strip button{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 0;border-radius:12px;font-size:10.5px;color:var(--sub)}
.wk-strip b{font-family:var(--round);font-weight:800;font-size:16px;color:var(--text)}
.wk-strip button.on{background:var(--ink);color:var(--card)}
.wk-strip button.on b{color:var(--card)}
body.dev-pad .cal{padding:0}
/* 주간: 행사 줄 높이를 늘 같게 → 요일마다 시간표 시작이 맞는다 */
.wk-sev-l{height:22px;overflow:hidden;flex-wrap:nowrap}
.wk-sev-l .wk-sev{max-width:100%}
/* 하루가 아닌 보기: 종이 밖 테두리 한 겹만, 위 날짜는 상자 없이 */
body.dev-phone:not(.view-day) .board{background:none;box-shadow:none;padding:4px 0}
body:not(.view-day) .top .date-card{border:0;background:none;min-height:0;padding:2px 4px 8px}
body:not(.view-day) .date-main{font-size:24px}
body:not(.view-day) .date-year{font-size:13px}
/* 주간 작은 시간표: 요약 줄 없이, 하루 쪽 늘이기 규칙에서 빼기 */
.wk-tt .ln-sum{display:none}
.wk-tt .ln-row{min-height:0!important;height:13px!important;flex:none!important}
body.dev-pad .wk-tt .ln-row{height:15px!important}

/* ══ 홈 통계: 큰 화면은 종이 한 쪽(두 단), 휴대폰은 칸마다 카드 ══ */
body.view-stats .top{display:none}
body.dev-pad .st{background:var(--board);border-radius:4px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 8px 28px rgba(20,30,40,.08);padding:22px 28px 28px}
body.dev-pad.spread-on .st{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
body.dev-phone .st{gap:12px;padding:0}
body.dev-phone .st-col{gap:12px}
body.dev-phone .st-col>*{background:var(--board);border-radius:16px;box-shadow:0 1px 2px rgba(20,30,40,.06),0 4px 14px rgba(20,30,40,.06);padding:14px 14px 16px}
body.dev-phone .st-col>.boxes{padding:6px 4px}
body.dev-phone .st-date{font-size:30px}
body.dev-phone .st-col>*{overflow:hidden;min-width:0}
body.dev-phone .sec-t em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* ══ 책상 배경 테마 (종이 뒤) ══ */
body:is(.dev-pad,.dev-phone){min-height:100vh;background-attachment:fixed}
body[data-desk="school"]:is(.dev-pad,.dev-phone){background:
  linear-gradient(112deg,transparent 0 22%,rgba(255,255,255,.28) 22% 31%,transparent 31% 40%,rgba(255,255,255,.22) 40% 47%,transparent 47%),
  repeating-linear-gradient(90deg,rgba(110,70,30,.06) 0 2px,transparent 2px 11px),
  linear-gradient(180deg,#D9B78E,#C89D70) fixed}
body[data-desk="beach"]:is(.dev-pad,.dev-phone){background:
  radial-gradient(ellipse at 15% 0%,rgba(255,255,255,.7) 0,transparent 45%),
  linear-gradient(118deg,transparent 0 30%,rgba(60,90,110,.10) 30% 36%,transparent 36% 58%,rgba(60,90,110,.08) 58% 63%,transparent 63%),
  linear-gradient(165deg,#EEDFC4 0%,#E5CFAB 52%,#C7DCE2 100%) fixed}
body[data-desk="night"]:is(.dev-pad,.dev-phone){background:
  radial-gradient(circle at 78% 12%,rgba(255,196,120,.38) 0,transparent 42%),
  repeating-linear-gradient(90deg,rgba(0,0,0,.10) 0 2px,transparent 2px 12px),
  linear-gradient(180deg,#4B3B2F,#2B221B) fixed}
body[data-desk="mat"]:is(.dev-pad,.dev-phone){background:
  linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px) 0 0/24px 24px,
  linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px) 0 0/24px 24px,
  linear-gradient(180deg,#3E6B5A,#335A4B) fixed}
/* 어두운 책상: 막대들도 어둡게, 종이 밖 글씨는 밝게 */
body:is([data-desk="night"],[data-desk="mat"]) :is(.rail,.tabbar,.pens-bar){background:rgba(30,30,32,.86);color:#E8E8EA}
body:is([data-desk="night"],[data-desk="mat"]) :is(.rail button,.tabbar button,.pb-tool,.pen span){color:#C9C9CE}
body:is([data-desk="night"],[data-desk="mat"]) .rl-v.on,body:is([data-desk="night"],[data-desk="mat"]) .tb-seg button.on{background:#ECECEF;color:#1B1B1E}
body:is([data-desk="night"],[data-desk="mat"]) .tb-seg,body:is([data-desk="night"],[data-desk="mat"]) .tb-today{background:rgba(255,255,255,.1)}
body:is([data-desk="night"],[data-desk="mat"]) .rl-g{border-color:rgba(255,255,255,.08)}
body:is([data-desk="night"],[data-desk="mat"]):not(.view-day) .top .date-card{color:#EEE}
body:is([data-desk="night"],[data-desk="mat"]):not(.view-day) .date-year{color:#BBB}
/* 10/20 다크(밝기 › 어둡게·기기 따라): 기본 책상도 어둡게 — 밝은 회색이 종이 둘레에 남아 눈부셨다. 종이(--board)보다 한 단계 어둡게 */
:root[data-theme="dark"] body:is(.dev-pad,.dev-phone):is([data-desk="plain"],:not([data-desk])){background:#0B0C0F}
/* 설정 견본 */
.desks{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;flex:1}
.desk-sw{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:11.5px;color:var(--sub2);text-align:left}
.desk-sw .dsw{display:block;height:42px;border-radius:8px;border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.desk-sw.on .dsw{border-color:var(--ink)}
.desk-sw b{font-size:9px;color:var(--accent);letter-spacing:.04em}
.dsw[data-d="plain"]{background:#E4E7EA}
:root[data-theme="dark"] .dsw[data-d="plain"]{background:#0B0C0F;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.dsw[data-d="school"]{background:linear-gradient(112deg,transparent 0 30%,rgba(255,255,255,.3) 30% 45%,transparent 45%),linear-gradient(180deg,#D9B78E,#C89D70)}
.dsw[data-d="beach"]{background:linear-gradient(165deg,#EEDFC4 0%,#E5CFAB 52%,#C7DCE2 100%)}
.dsw[data-d="night"]{background:radial-gradient(circle at 78% 20%,rgba(255,196,120,.5) 0,transparent 50%),linear-gradient(180deg,#4B3B2F,#2B221B)}
.dsw[data-d="mat"]{background:linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px) 0 0/8px 8px,#3E6B5A}

/* ══ 휴대폰 아래: 채팅처럼 말하거나 적는 칸 + 형광펜 버튼 하나 ══ */
body.dev-phone .quick{display:flex!important;left:8px;right:76px;bottom:calc(8px + env(safe-area-inset-bottom));padding:6px;border-radius:22px;border:0;box-shadow:0 2px 14px rgba(20,30,40,.12);background:var(--card)}
body.dev-phone .quick .quick-box{border:0;box-shadow:none;padding:2px 2px 2px 10px;background:none}
body.dev-phone .quick .quick-box input{font-size:16px}
body.dev-phone .quick .quick-ico{display:none}
body.dev-phone .pens-bar{left:auto;right:8px;width:62px;height:auto;min-height:58px;padding:0;justify-content:center;bottom:calc(8px + env(safe-area-inset-bottom))}
body.dev-phone .app{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.mic-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--sub2);flex:none}
.mic-btn:hover{background:var(--hover)}
.mic-btn.on{background:var(--accent);color:#fff;animation:micPulse 1.2s ease-in-out infinite}
@keyframes micPulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 8px transparent}}
/* 말이 멈추면 마이크 둘레 링이 3초 동안 줄어든다 (다 줄면 넣음) */
.mic-btn{position:relative}
.mic-btn .mic-ring{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;transform:rotate(-90deg);pointer-events:none;opacity:0;overflow:visible}
.mic-btn .mic-ring circle{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0}
.mic-btn.v-wait .mic-ring{opacity:1}
.mic-btn.v-wait .mic-ring circle{animation:micWait 3s linear forwards}
@keyframes micWait{to{stroke-dashoffset:100}}
.quick.listening .quick-box input::placeholder{color:var(--accent)}
.pb-pen{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;padding:6px 0 4px;border-radius:18px}
.pb-pen .pen-b{width:14px;height:30px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,var(--pd) 0 22%,var(--pc) 22% 90%,var(--pd) 90%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.pb-pen.eraser .pen-b{background:linear-gradient(180deg,#fff 0 38%,#3E5C9A 38%)}
.pb-pen span{font-size:9.5px;color:var(--sub);max-width:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pb-pen.on span{color:var(--text);font-weight:700}
/* 형광펜 고르기 팝업 */
.pen-pop{min-width:220px;padding:2px}
.pp-h{font:700 11px Pretendard,sans-serif;letter-spacing:.08em;color:var(--sub);margin-bottom:8px}
.pp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:6px}
.pp-grid .pen{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;border-radius:12px}
.pp-grid .pen:hover{background:var(--hover)}
.pp-grid .pen.on{background:var(--soft)}
.pp-grid .pen .pen-b{width:14px;height:32px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,var(--pd) 0 22%,var(--pc) 22% 90%,var(--pd) 90%);transform:none}
.pp-grid .pen.eraser .pen-b{background:linear-gradient(180deg,#fff 0 38%,#3E5C9A 38%)}
.pp-grid .pen span{font-size:11px;max-width:64px}

/* ══ 주간·월간: 날짜는 종이 안 맨 위에, 종이 위에 스프링 고리 ══ */
body:is(.view-week,.view-month) .top{display:none}
.wk-page{position:relative;margin-top:14px}
.wk-page::before{content:"";position:absolute;left:24px;right:24px;top:-12px;height:24px;pointer-events:none;
  background:radial-gradient(ellipse 4.5px 12px at 50% 50%,#9AA0A8 0 55%,#5E646C 56% 72%,transparent 73%) 0 0/30px 24px repeat-x}
.pg-head{display:flex;align-items:flex-end;gap:14px;padding:10px 2px 12px}
.pg-title{display:flex;flex-direction:column;gap:2px;margin-right:auto;min-width:0}
.pg-y{font:600 11px Pretendard,sans-serif;letter-spacing:.06em;color:var(--sub)}
.pg-range{font-family:var(--title);font-size:clamp(26px,2.6vw,36px);line-height:1.1;color:var(--text);align-self:flex-start;position:relative;isolation:isolate;display:inline-block}
.pg-range::before{content:"";position:absolute;z-index:-1;left:-.18em;right:-.18em;bottom:.14em;height:.34em;background:#F4B9BE;opacity:.78;border-radius:.2em}
.pg-nav{display:flex;align-items:center;gap:2px;flex:none}
.pg-nav button{display:grid;place-items:center;height:32px;min-width:32px;border-radius:10px;color:var(--sub2)}
.pg-nav button:hover{background:var(--hover)}
.pg-today{padding:0 10px;background:var(--soft);font-size:12.5px;color:var(--text)!important}
.mo-page .wk-sum{align-self:center}
body.dev-phone .wk-page{margin-top:16px}
body.dev-phone .pg-head{gap:8px;padding:6px 0 10px}
body.dev-phone .pg-range{font-size:26px}
body.dev-phone .mo-page .wk-sum{display:none}
/* 주간·월간·홈: 종이 밖 흰 판은 없앤다 (종이 한 겹만) */
body:not(.view-day) .cal{background:none;border:0;box-shadow:none;padding:0}
body.dev-phone:not(.view-day) .board{padding:0 2px}

/* ══ 월간: 달력이 화면을 꽉 채운다 (칸이 늘어나고 일정이 더 보인다) ══ */
.mo-page{display:flex;flex-direction:column}
.mo-page .mo{flex:1;grid-auto-rows:minmax(0,1fr)}
.mo-page .mo-d{min-height:0}
body.dev-pad .mo-page{min-height:calc(100vh - 110px)}
body.dev-phone .mo-page{min-height:calc(100dvh - 60px - 92px - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:10px 8px 10px}
body.dev-phone .mo-page .mo{gap:3px}
body.dev-phone .mo-page .mo-d{padding:3px 3px 4px;border-radius:7px;gap:1px}
body.dev-phone .mo-page .mo-n{font-size:15px}
body.dev-phone .mo-page .mo-chip{font-family:Pretendard,sans-serif;font-size:9.5px;line-height:1.35;padding:0 3px;border-radius:3px}
body.dev-phone .mo-page .mo-more{font-size:9px}
body.dev-phone .mo-page .mo-min{font-size:9.5px}

/* 주간·월간 위 스프링 빼기 */
.wk-page::before{display:none}
.wk-page{margin-top:0}
body.dev-phone .wk-page{margin-top:2px}
/* 주간 작은 시간표: 시각 숫자는 3시간마다(6·9·12·3…)만, 자정 동그라미 없이 */
.wk-tt .ln-row:not(:nth-child(3n+2)) .ln-h span{visibility:hidden}
.wk-tt .ln-h.mid span,.wk-tt .ln-h.now span{background:none!important;color:inherit!important}
.wk-tt .ln-row{border-bottom-color:transparent}
.wk-tt .ln-row:nth-child(3n+2){border-top:1px solid var(--line2)}
/* 휴대폰 주간: 한 화면에 두 칸, 여백 넉넉히 */
body.dev-phone .wk-col{flex:0 0 49%}
body.dev-phone .wk-t{height:30px}
body.dev-phone .wk-tt .ln-row{height:12px!important}

/* ══ 큰 화면도 입력 칸은 아래로 (휴대폰처럼 채팅 칸) ══ */
body.dev-pad .quick{position:fixed;left:calc(50% - 41px);transform:translateX(-50%);bottom:16px;width:min(760px,calc(100% - 200px));max-width:none;margin:0;z-index:35;background:var(--card);border-radius:20px;box-shadow:0 4px 18px rgba(20,30,40,.14);padding:6px;display:flex;flex-direction:column}
body.dev-pad .quick .quick-box{border:0;box-shadow:none;background:none}
body.dev-pad .quick-hint{order:-2;padding:4px 10px 2px}
body.dev-pad .quick .ink{order:-1;margin:0 0 6px}
body.dev-pad .app{padding-bottom:110px}
body.dev-pad #brushBar:not(:empty){bottom:92px}


/* ══ 휴대폰 주간: 큰 요일 칸을 옆으로 넘겨 본다 (한 화면 두 칸 반) + 아래 요일 줄 ══ */
body.dev-phone .wk-cols{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding-left:0}
body.dev-phone .wk-col{flex:0 0 41%;scroll-snap-align:start}
body.dev-phone .wk-ch{padding:8px 8px 6px}
body.dev-phone .wk-ch b{font-size:22px}
body.dev-phone .wk-col.today .wk-ch b{color:var(--text);position:relative;isolation:isolate}
body.dev-phone .wk-col.today .wk-ch b::before{content:"";position:absolute;z-index:-1;left:-.15em;right:-.15em;bottom:.08em;height:.36em;background:#F4B9BE;opacity:.8;border-radius:.2em}
body.dev-phone .wk-t{height:30px;padding:0 8px}
body.dev-phone .wk-tt-t{font-size:13.5px}
body.dev-phone .wk-t .chk{width:16px;height:16px}
body.dev-phone .wk-tt{--hc:20px;margin-top:0}
body.dev-phone .wk-tt .ln-row{height:21px!important;border-bottom:1px solid var(--line2)!important;border-top:0!important}
body.dev-phone .wk-tt .ln-row .ln-h span{visibility:visible!important}
body.dev-phone .wk-tt .ln-h{font-size:9.5px;font-weight:600}
body.dev-phone .wk-total{font-size:18px;padding:8px 0 6px}
body.dev-phone .wk-col.today{background:none}
/* 요일 줄: 채팅 칸 위에 */
.wk-strip-bar{display:none}
.wk-strip-bar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:0;padding:5px 0;border-radius:14px;font-size:11px;color:var(--sub)}
.wk-strip-bar b{font-family:var(--round);font-weight:800;font-size:17px;color:var(--text)}
.wk-strip-bar .sat span{color:var(--blue)}.wk-strip-bar .sun span{color:var(--accent)}
.wk-strip-bar button.on{background:var(--ink);color:var(--card)}
.wk-strip-bar button.on b,.wk-strip-bar button.on span{color:var(--card)}
/* REVIEW 별점 */
.wk-stars{display:flex;gap:1px;flex:none}
.wk-stars button{font-size:20px;line-height:1;color:var(--line);padding:2px}
.wk-stars button.on{color:#F2B33D}
body.dev-phone .wk-rev input{font-size:15px}
/* 주간 요일 줄: 종이 맨 위 날짜 아래 (휴대폰만 — 큰 화면은 7일이 다 보인다) */
.wk-strip-in{display:none}
body.dev-phone .wk-strip-in{display:flex;gap:2px;background:var(--soft2);border-radius:16px;padding:4px;margin:0 0 12px}
.wk-strip-in button{flex:1;display:flex;flex-direction:column;align-items:center;padding:4px 0;border-radius:12px;font-size:10.5px;color:var(--sub)}
.wk-strip-in b{font-family:var(--round);font-weight:800;font-size:16px;color:var(--text)}
.wk-strip-in .sat span{color:var(--blue)}.wk-strip-in .sun span{color:var(--accent)}
.wk-strip-in button.on{background:var(--ink)}
.wk-strip-in button.on b,.wk-strip-in button.on span{color:var(--card)}

/* 휴대폰: 형광펜 버튼 없이 채팅 칸을 넓게 */
body.dev-phone .pens-bar{display:none}
body.dev-phone .quick{right:8px}
/* 무엇을 했나요? */
.pick-pop{min-width:230px;max-width:300px}
.pick-list{display:flex;flex-direction:column;gap:2px;max-height:300px;overflow-y:auto}
.pick{display:flex;align-items:center;gap:8px;padding:8px 8px;border-radius:10px;text-align:left;font-size:14px}
.pick:hover{background:var(--hover)}
.pick i{width:14px;height:14px;border-radius:4px;background:var(--pc);box-shadow:inset 0 0 0 1.5px var(--pd);flex:none}
.pick span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--hand);font-size:16px}
.pick.subj span{font-family:Pretendard,sans-serif;font-size:13px;color:var(--sub2)}
.pick.subj{padding:6px 8px}

/* ══ 쪽 넘기기 ══ */
.curl-ghost{position:fixed!important;margin:0!important;z-index:60;pointer-events:none;box-sizing:border-box;overflow:hidden;transform:none!important}
.curl-flap{position:fixed;z-index:61;pointer-events:none;filter:drop-shadow(0 2px 5px rgba(20,25,35,.12))}
.curl-back{position:absolute;left:0;top:0;transform-origin:0 0;background-color:#F5F3EE;border-radius:4px}
body:is([data-desk="night"],[data-desk="mat"]) .curl-back{background-color:#EDEBE6}

/* ══ 기본 손글씨: 교보손글씨 2019 (교보문고, 웹·앱 넣어 쓰기 허용 — 눈누 표기) ══ */
@font-face{font-family:'KyoboHandwriting2019';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/KyoboHand.woff') format('woff');font-weight:normal;font-display:swap}
:root[data-font="kyobo"]{--hand:'KyoboHandwriting2019',Pretendard,sans-serif;--title:'KyoboHandwriting2019',Pretendard,sans-serif}

/* ══ 설정: 아이폰 설정처럼 묶음 목록 → 페이지 ══ */
.sg-h{font-size:12.5px;color:var(--sub);padding:16px 6px 6px}
.sg{background:var(--card);border-radius:18px;overflow:hidden;padding:0 2px}
.sr{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:6px 12px;text-align:left;font-size:15px;color:var(--text);position:relative}
.sr+.sr::before{content:"";position:absolute;left:54px;right:0;top:0;height:1px;background:var(--line2)}
.sr:hover{background:var(--hover)}
.si{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;flex:none}
.sr-t{flex:1;min-width:0}
.sr-v{font-size:13.5px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42%}
.sr .sc{color:var(--faint);flex:none}
.sp-head{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;padding:2px 0 10px}
.sp-head b{text-align:center;font-size:16px}
.sp-back{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--text);background:var(--card)}
.sp-intro{display:flex;gap:12px;align-items:flex-start;padding:4px 4px 14px}
.sp-intro .si{width:44px;height:44px;border-radius:12px}
.sp-intro .si svg{width:24px;height:24px}
.sp-intro p{margin:0;font-size:13px;line-height:1.6;color:var(--sub2)}
.sp-intro p b{color:var(--text)}
.sp-body{padding:4px 14px 12px}
.sp-sub+.sp-sub{border-top:1px solid var(--line2);margin-top:4px;padding-top:4px}
/* 기본 컬러 카드 */
.col-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 0}
.col-card{display:flex;flex-direction:column;border:1.5px solid var(--line);border-radius:14px;overflow:hidden;text-align:left;background:var(--card)}
.col-card.on{border-color:var(--c)}
.cc-prev{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px 10px;background:var(--soft2)}
.cc-d{font-family:var(--title);font-size:19px;color:var(--text)}
.cc-hl{background:linear-gradient(transparent 58%,color-mix(in srgb,var(--c) 38%,white) 58%,color-mix(in srgb,var(--c) 38%,white) 92%,transparent 92%);padding:0 3px}
.cc-d b{font-weight:400;color:var(--c)}
.cc-t{font-family:var(--round);font-weight:900;font-size:24px;color:var(--c);line-height:1}
.cc-t small{font-size:.5em}
.cc-n{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:13.5px}
.cc-n i{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--faint)}
.col-card.on .cc-n i{background:var(--c);border-color:var(--c);box-shadow:inset 0 0 0 3px var(--card)}
/* 날짜 밑 형광펜도 기본 컬러를 따라 */
.pg-range::before,body.dev-phone .wk-col.today .wk-ch b::before{background:var(--hl,#F4B9BE)}
/* 교보손글씨 2020 박도연 (가는 펜) — 기본. 손글씨는 한 굵기뿐이라 가짜 굵게는 끈다 */
@font-face{font-family:'KyoboHandwriting2020ParkDoYeon';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2112@1.0/KyoboHandwriting2020A.woff') format('woff');font-weight:normal;font-display:swap}
:root[data-font="kyobo20"]{--hand:'KyoboHandwriting2020ParkDoYeon',Pretendard,sans-serif;--title:'KyoboHandwriting2020ParkDoYeon',Pretendard,sans-serif}
/* 10/14 이서윤체(흥국생명, 눈누 — 웹 임베딩 허용, 유료 판매·개작 재배포만 금지) */
@font-face{font-family:'LeeSeoyun';src:url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2202-2@1.0/LeeSeoyun.woff') format('woff');font-weight:normal;font-display:swap}
:root[data-font="seoyun"]{--hand:'LeeSeoyun',Pretendard,sans-serif;--title:'LeeSeoyun',Pretendard,sans-serif}
:root:is([data-font="kyobo"],[data-font="kyobo20"],[data-font="poor"],[data-font="gaegu"],[data-font="pen"],[data-font="seoyun"]) body{font-synthesis:none}

/* ── 플래너 책장: 권마다 표지 한 장 ── */
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:18px 12px;padding:4px 2px 8px}
.bk{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;background:none;border:0;padding:0;text-align:left;font:inherit;color:var(--ink);min-width:0}
.bk-cover{position:relative;display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:3/4;border-radius:3px 9px 9px 3px;background:var(--c);color:#fff;padding:11px 9px 9px 17px;border:0;cursor:pointer;font:inherit;text-align:left;overflow:hidden;
  box-shadow:inset 7px 0 0 rgba(0,0,0,.13),inset 8px 0 0 rgba(255,255,255,.18),0 1px 2px rgba(0,0,0,.12),0 6px 14px -6px rgba(0,0,0,.25);transition:transform .15s}
.bk-cover:active{transform:scale(.97)}
.bk-cover::after{content:'';position:absolute;right:0;top:6px;bottom:6px;width:3px;border-radius:2px 0 0 2px;background:repeating-linear-gradient(#fff 0 1px,rgba(255,255,255,.55) 1px 2px);opacity:.5}
.bk-t{font-family:var(--hand);font-size:16px;line-height:1.18;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bk-y{font-family:'Nunito',var(--round),sans-serif;font-weight:900;font-size:12px;letter-spacing:.04em;opacity:.85}
.bk-on{position:absolute;right:8px;bottom:8px;width:20px;height:20px;border-radius:50%;background:#fff;color:var(--c);display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.bk.on .bk-cover{outline:2.5px solid var(--c);outline-offset:3px}
.bk-cap{display:flex;flex-direction:column;gap:1px;min-width:0}
.bk-cap b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-cap small{font-size:11px;color:var(--sub);white-space:nowrap}
.bk-ed{align-self:flex-start;background:none;border:0;padding:2px 0;font:inherit;font-size:12px;color:var(--accent);cursor:pointer}
.bk-new{cursor:pointer}
.bk-new .bk-cover{background:transparent;border:1.5px dashed var(--line);color:var(--sub);box-shadow:none;align-items:center;justify-content:center;padding:0}
.bk-new .bk-cover::after{display:none}
.bk-new .bk-cover b{font-size:30px;font-weight:300;line-height:1}
.bk-form{margin-top:14px;padding:12px 14px 14px;border-radius:14px;background:var(--soft2);border:1px solid var(--line2)}
.bk-f-h{font-weight:700;font-size:14px;margin-bottom:6px}
.bk-f{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line2)}
.bk-f>span{width:48px;flex:none;font-size:13px;color:var(--sub)}
.bk-f .ed-in{flex:1}
.bk-f .ed-date{width:150px;background:var(--card);color:var(--ink)}
.bk-f small{font-size:12px;color:var(--faint)}
.bk-form .btns{margin-top:12px}
.bk-ok{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.bk-ok:hover{background:var(--accent);filter:brightness(.95)}
.bk-notes{margin:16px 2px 0;padding:0 0 0 16px;font-size:12px;color:var(--sub);line-height:1.75}
/* 이 권 밖의 날은 흐리게 */
.mo-d.oob,.wk-col.oob{opacity:.32}

/* ── 스티커: 쪽 위에 붙는 그림 ── */
.page{position:relative}
.stk-layer{position:absolute;inset:0;pointer-events:none;z-index:6}
.stk{position:absolute;transform:translate(-50%,-50%) rotate(var(--r,0deg));pointer-events:none;user-select:none;-webkit-user-select:none;touch-action:none;container-type:inline-size}
.stk img{display:block;width:100%;height:auto;-webkit-user-drag:none;filter:drop-shadow(0 1.5px 1.5px rgba(30,30,40,.16))}
.stk.gone{display:none}
body.stk-on #stkLayer .stk{pointer-events:auto;cursor:grab}
body.stk-on #stkLayer .stk:active{cursor:grabbing}
body.stk-on #stkLayer .stk.sel{outline:1.5px dashed var(--accent);outline-offset:5px;border-radius:4px}
.stk-del,.stk-rot,.stk-size{position:absolute;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;pointer-events:auto;box-shadow:0 1px 4px rgba(0,0,0,.22)}
.stk-del{left:-17px;top:-17px;background:#fff;border:1px solid var(--line);color:#333;font-size:17px;line-height:1;padding:0;cursor:pointer}
.stk-rot{right:-15px;top:-15px;width:22px!important;height:22px!important;background:#fff;border:1px solid var(--line);cursor:grab;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 7A4.5 4.5 0 1 1 9.6 3.3'/%3E%3Cpath d='M9.2 1.2l.6 2.3-2.3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center}
/* 라벨: 손글씨 이름표 */
.stk-lab{display:block;text-align:center;white-space:nowrap;font-family:var(--hand);font-weight:400;color:#fff;background:var(--c);
  font-size:calc(100cqw / (var(--n) * .92 + 1.5));line-height:1.25;padding:.32em .55em .28em;border-radius:.55em;
  outline:1.5px dashed rgba(255,255,255,.75);outline-offset:-.22em;box-shadow:0 1.5px 2px rgba(30,30,40,.18)}
/* 마스킹테이프: 양 끝을 찢은 모양 */
.stk-tape{display:block;aspect-ratio:4.4/1;opacity:.88;
  clip-path:polygon(0 0,100% 0,98.4% 16%,100% 33%,98.4% 50%,100% 67%,98.4% 84%,100% 100%,0 100%,1.6% 84%,0 67%,1.6% 50%,0 33%,1.6% 16%)}
.tp-pink{background:#F6C3CF}.tp-mint{background:#BFE7DA}.tp-sky{background:#C4DDF6}.tp-lemon{background:#F8E5A0}.tp-lav{background:#DCD2F4}
.tp-grid{background-color:#FFF6E2;background-image:linear-gradient(rgba(214,160,90,.35) 1px,transparent 1px),linear-gradient(90deg,rgba(214,160,90,.35) 1px,transparent 1px);background-size:8px 8px}
.tp-dot{background-color:#F7CAD4;background-image:radial-gradient(#fff 1.6px,transparent 1.8px);background-size:9px 9px}
.tp-stripe{background:repeating-linear-gradient(-45deg,#F5BFC8 0 6px,#FFF4F5 6px 12px)}
/* 확대해서 쓰는 동안은 스티커를 잠깐 숨긴다 */
body.zoom-write .stk-layer,body.zoom-time .stk-layer{display:none}
/* 큰 화면은 오른쪽 도구 막대에 스티커 단추가 있어서 적기 칸의 것은 숨긴다 */
body.dev-pad .stk-btn{display:none}
body.stk-on .stk-btn,.rail [data-rail="stk"].on{color:var(--accent)}

/* 스티커 서랍 */
.stk-tray{position:fixed;z-index:70;background:var(--card);border:1px solid var(--line);box-shadow:0 12px 40px rgba(20,30,40,.2);display:flex;flex-direction:column;color:var(--ink)}
body.dev-pad .stk-tray{right:84px;bottom:22px;width:340px;max-height:min(540px,72vh);border-radius:18px}
body.dev-phone .stk-tray{left:0;right:0;bottom:0;height:min(44vh,380px);border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
.st-head{display:flex;align-items:center;gap:10px;padding:12px 14px 6px}
.st-head b{flex:1;font-size:15px}
.st-done{background:var(--accent);color:#fff;border:0;border-radius:999px;padding:6px 15px;font-size:13px;font-weight:600;cursor:pointer}
.st-tidy{background:none;border:0;color:var(--sub);font-size:13px;cursor:pointer}
.st-tabs{display:flex;gap:6px;overflow-x:auto;padding:4px 14px 8px;scrollbar-width:none;flex:none}
.st-tabs::-webkit-scrollbar{display:none}
.st-tabs button{flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:5px 12px;font-size:12.5px;color:var(--sub);cursor:pointer}
.st-tabs button.on{background:var(--ink);color:var(--card);border-color:var(--ink)}
.st-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:6px;padding:4px 14px 10px;align-content:start}
.st-i{position:relative;aspect-ratio:1;border:0;background:var(--soft2);border-radius:12px;padding:8px;display:grid;place-items:center;cursor:pointer;min-width:0;container-type:inline-size}
.st-i:active{transform:scale(.94)}
.st-i img{width:100%;height:100%;object-fit:contain;-webkit-user-drag:none}
.st-i.st-lab,.st-i.st-tape{grid-column:span 2;aspect-ratio:auto;height:54px;padding:8px 12px}
.st-i.st-lab .stk-lab{width:100%;font-size:calc(min(100cqw, 160px) / (var(--n) * .92 + 1.5))}
.st-i.st-tape .stk-tape{width:100%}
.st-make{background:transparent;border:1.5px dashed var(--line);color:var(--sub);display:flex;flex-direction:column;gap:2px;padding:4px}
.st-make b{font-size:22px;font-weight:300;line-height:1}
.st-make span{font-size:10.5px;line-height:1.2;text-align:center;word-break:keep-all}
.st-w{position:relative;display:block;min-width:0}
.st-w .st-i{width:100%}
.st-x{position:absolute;right:-5px;top:-5px;width:20px;height:20px;border-radius:50%;background:var(--red);color:#fff;border:2px solid var(--card);font-size:12px;line-height:1;padding:0;cursor:pointer}
.st-empty{grid-column:1/-1;color:var(--sub);font-size:13px;padding:20px 0;text-align:center}
.st-foot{font-size:11px;color:var(--faint);padding:7px 14px 10px;border-top:1px solid var(--line2);flex:none}

/* 스티커 만들기 (누끼) */
.cut{position:fixed;inset:0;z-index:120;background:#15171c;color:#fff;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);font-family:inherit}
.cut-top{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 14px 8px}
.cut-top b{font-size:15px}
.cut-x,.cut-save{border:0;border-radius:999px;padding:7px 16px;font-size:14px;cursor:pointer}
.cut-x{background:rgba(255,255,255,.1);color:#fff}
.cut-save{background:var(--accent);color:#fff;font-weight:600}
.cut-stage{flex:1;min-height:0;display:grid;place-items:center;padding:8px}
.cut-wrap{position:relative;touch-action:none;cursor:crosshair}
.cut-wrap[data-tool="erase"],.cut-wrap[data-tool="restore"]{cursor:cell}
.cut-wrap.pv{background:repeating-conic-gradient(#3a3d45 0 25%,#2b2e35 0 50%) 0 0/18px 18px}
.cut-view{display:block;width:100%;height:100%;border-radius:4px}
.cut-pts{position:absolute;inset:0;pointer-events:none}
.cut-pts i{position:absolute;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;border:2.5px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.cut-pts i.pos{background:#2F9A84}
.cut-pts i.neg{background:#E2545E}
.cut-msg{text-align:center;font-size:13.5px;padding:8px 16px 4px;color:rgba(255,255,255,.88);min-height:34px}
.cut-msg b{color:#fff}
.cut-sub{display:block;font-size:11.5px;color:rgba(255,255,255,.5);margin-top:2px}
.cut-tools{display:flex;justify-content:center;gap:6px;padding:6px 10px}
.cut-tools button{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:68px;padding:8px 6px;border:0;border-radius:12px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.75);font-size:12px;cursor:pointer}
.cut-tools button.on{background:#fff;color:#15171c}
.cut-tools2{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:6px 12px 14px;font-size:12.5px}
.cut-tools2 button{background:none;border:0;color:rgba(255,255,255,.72);font-size:12.5px;cursor:pointer;padding:4px 2px}
.cut-tools2 button.on{color:#fff;text-decoration:underline}
.cut-tools2 label{display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.72)}

/* ── 월간: 날짜를 누르면 달력이 위로 접히고 아래에 그날 내용 ── */
.mo-d{position:relative}
.mo-d.sel{border:2px solid var(--accent)!important;border-radius:12px;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.mo-d.hid{display:none}
.mo-stk{position:absolute;right:3px;bottom:3px;width:40%;max-width:46px;pointer-events:none;transform:rotate(-6deg)}
.mo-stk img{display:block;width:100%;height:auto;filter:drop-shadow(0 1px 1px rgba(30,30,40,.18))}
.mo-stk .stk-lab{font-size:9px;padding:1px 3px;border-radius:4px;outline:none}
.mo-page.has-sel .mo{flex:none;grid-auto-rows:auto}
.mo-page.has-sel .mo-d{min-height:52px;align-items:center;justify-content:flex-start;padding-top:6px}
body.dev-phone .mo-page.has-sel .mo-d{min-height:44px}
.mo-page.has-sel .mo-stk{width:30%;max-width:24px;right:2px;bottom:2px}
.mo-dots{display:flex;gap:3px;justify-content:center;min-height:6px;margin-top:3px}
.mo-dots i{width:5px;height:5px;border-radius:50%}
.mo-sheet{flex:1;display:flex;flex-direction:column;min-height:220px;margin-top:8px;border-top:1px solid var(--line2)}
.mo-grab{align-self:center;background:none;border:0;padding:9px 34px 7px;cursor:grab;touch-action:none}
.mo-grab i{display:block;width:44px;height:5px;border-radius:3px;background:var(--line)}
.ms-head{display:flex;align-items:center;gap:6px 10px;padding:2px 6px 10px;flex-wrap:wrap;border-bottom:1px solid var(--line2)}
.ms-date{font-family:var(--hand);font-size:21px;font-weight:400;margin-right:auto}
.ms-sum{font-family:'Nunito',var(--round),sans-serif;font-weight:900;color:var(--accent);font-size:14px}
.ms-sum small{font-size:.7em}
.ms-btn{border:0;background:none;color:var(--accent);font-size:13px;display:inline-flex;align-items:center;gap:4px;padding:6px 2px;cursor:pointer;font-family:inherit}
.ms-btn.ms-sub{color:var(--sub)}
.ms-btn.ms-open{background:var(--soft2);color:var(--ink);border-radius:999px;padding:6px 12px}
.ms-cur{display:inline-block;width:20px;height:20px}
.ms-cur img{width:100%;height:100%;object-fit:contain}
.ms-cur .stk-lab{font-size:8px;padding:1px 2px;outline:none}
.ms-body{flex:1;overflow-y:auto;padding:8px 2px 12px}
.ms-sec{padding:6px 6px 8px}
.ms-h{display:flex;align-items:center;gap:7px;font-weight:700;font-size:14px;margin-bottom:4px}
.ms-h i{width:10px;height:10px;border-radius:50%}
.ms-h small{color:var(--sub);font-weight:400;font-size:12px}
.ms-row{display:flex;align-items:center;gap:12px;padding:7px 6px;width:100%;background:none;border:0;text-align:left;font:inherit;color:var(--ink);border-radius:10px}
button.ms-row{cursor:pointer}
button.ms-row:hover{background:var(--soft2)}
.ms-bar{width:4px;align-self:stretch;border-radius:2px;min-height:36px;flex:none}
.ms-row b{font-family:var(--hand);font-size:18px;font-weight:400;line-height:1.3}
.ms-t{display:flex;align-items:center;gap:4px;font-size:12.5px;color:var(--sub);margin-top:1px}
.ms-todo{gap:10px}
.ms-todo.m-o b,.ms-todo.m-x b{color:var(--sub);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--sub) 60%,transparent)}
.ms-empty{text-align:center;color:var(--sub);font-size:13px;line-height:1.75;padding:26px 0}
/* 위로 넓힌 모양: 고른 주만 남는다 */
.mo-page.sel-full .mo-sheet{min-height:calc(100% - 140px)}
/* 달력 스티커 서랍 */
.stk-tray.for-month .st-head b{font-size:14px}

/* 아이폰: 16px 보다 작은 입력 칸을 누르면 화면이 확대된 채로 남는다 → 휴대폰에서는 입력 칸 글자를 16px 이상으로 */
@media (pointer: coarse){
  input[type="text"],input[type="date"],input[type="search"],input:not([type]),textarea,select{font-size:max(16px,1em)}
  .ed-in,.ed-date,.m-in,#schoolQ,#bkName{font-size:16px}
}

/* 결제 전 고지·동의 */
.pm-notice{margin:12px 0 8px;padding:10px 12px 10px 28px;background:var(--soft2);border-radius:12px;font-size:12px;line-height:1.65;color:var(--sub);text-align:left}
.pm-notice b{color:var(--ink)}
.pm-agree{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.5;text-align:left;margin:6px 2px 4px;color:var(--ink);cursor:pointer}
.pm-agree input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--accent)}
.pm-plan:disabled{opacity:.45;cursor:not-allowed}
/* 설정 맨 아래 사업자 정보 한 줄 */
.biz-line{font-size:11px;color:var(--faint);text-align:center;margin:14px 8px 4px;line-height:1.6}
a.sr{color:inherit;text-decoration:none}
/* 필기 칸 AI 안내 */
.ink-note{display:block;width:100%;order:9;font-size:10.5px;color:var(--faint);margin-top:2px}

/* 적기 칸: 글이 있으면 지우기(×) 단추 */
.q-clear{display:none;flex:none;width:22px;height:22px;border-radius:50%;border:0;padding:0;background:var(--soft2);color:var(--sub);place-items:center;cursor:pointer;margin:0 2px}
.q-clear:hover{background:var(--line);color:var(--ink)}
.quick.typing .q-clear{display:grid}

/* 주간 요일 칸: 칸이 좁으면 요일을 줄여 쓰고(MON), 더 좁으면 날짜 아래로 — 옆 칸으로 넘치지 않게 */
.wk-col{container-type:inline-size}
.wk-ch{min-width:0;overflow:hidden}
.wk-ch b{white-space:nowrap}
.wk-ch .ds{display:none}
@container (max-width: 150px){
  .wk-ch .dl{display:none}
  .wk-ch .ds{display:inline}
}
@container (max-width: 112px){
  .wk-ch{flex-direction:column;align-items:flex-start;gap:0;padding:6px 7px 5px}
  .wk-ch b{font-size:19px;line-height:1.1}
  .wk-t{grid-template-columns:minmax(0,1fr) 15px;padding:0 4px;gap:2px}
  .wk-t .chk{width:13px;height:13px}
}

/* 가운데: 스프링 고리 대신 공책 제본선 — 가운데로 갈수록 살짝 그늘지게 */
body.spread-on .spread::after{top:0;bottom:0;width:60px;margin-left:-30px;
  background:linear-gradient(90deg,transparent 0,rgba(20,30,40,.035) 30%,rgba(20,30,40,.10) 47%,rgba(20,30,40,.16) 50%,rgba(20,30,40,.10) 53%,rgba(20,30,40,.035) 70%,transparent 100%)}

/* ── 큰 화면 하루 쪽: 할 일 줄과 시간표 줄을 같은 높이(--row)로 — 가로줄이 양쪽에서 딱 맞게 ──
   왼쪽 = 할 일 (시간표 줄 수 - 5)줄 + MEMO 이름표 1줄 + 메모 4줄, 오른쪽 = 시간표 줄 */
body.dev-pad{--row:40px}
body.dev-pad .sheet .ln-row{height:var(--row)!important;min-height:0!important;flex:0 0 var(--row)!important}
body.dev-pad .sheet .grid-card .tt{flex:none!important;display:block!important}
body.dev-pad .sheet .todo.tk-row{height:var(--row)!important;min-height:0!important}
body.dev-pad .sheet-l{gap:0!important}
body.dev-pad .sheet .tasks{position:relative}
body.dev-pad .sheet .tasks .carry{position:absolute;top:-6px;right:0;padding:0;z-index:2;background:var(--board)}
body.dev-pad .sheet .memo-sec{padding-top:calc(var(--row) - 26px)}
body.dev-pad .sheet .memo-sec .sh-lab{margin:0 0 8px}
body.dev-pad .sheet .memo-sec::before{top:var(--row)}
body.dev-pad #memo,body.dev-pad .prev-page .m-memo{height:calc(var(--row) * 4)!important;min-height:0!important;line-height:var(--row);padding-top:0;padding-bottom:0;box-sizing:border-box;
  background-size:100% var(--row);background-image:linear-gradient(transparent calc(var(--row) - 1px),var(--line2) calc(var(--row) - 1px));overflow:hidden}
body.dev-pad .prev-page .m-memo{padding-left:72px;border-bottom:1.5px solid var(--ink);text-align:left}

/* TASKS 안의 일정 줄: 시간이 붙은 할 일 */
.todo.tk-row.ev .hl{font-variant-numeric:tabular-nums}


/* 시간표 일정 옮기기 (꾹 누르고 끌기) */
#tt .c.mv-from{opacity:.35}
#tt .c.mv-to{background:color-mix(in srgb,var(--accent) 22%,transparent)!important;box-shadow:inset 0 0 0 1.5px var(--accent)}
body.tt-moving #tt{cursor:grabbing;touch-action:none}
body.tt-moving #tt .bar{opacity:.5}

/* ── 휴대폰 하루 쪽도: 할 일 줄 = 시간표 줄 (--row 28px), 왼쪽 = 할 일 + MEMO 1줄 + 메모 4줄 ── (확대해서 쓸 때는 빼고) */
body.dev-phone{--row:28px}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet{row-gap:0!important}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .ln-row{height:var(--row)!important;min-height:0!important;flex:0 0 var(--row)!important}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .grid-card .tt{flex:none!important;display:block!important}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .todo.tk-row{height:var(--row)!important;min-height:0!important}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .tasks{position:relative}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .tasks .carry{position:absolute;top:-3px;right:0;padding:0;z-index:2;background:var(--board);font-size:10.5px}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .memo-sec .sh-lab{height:calc(var(--row) - 2px);margin:0 0 2px;display:flex;align-items:flex-end}
body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .memo-sec::before{top:var(--row)}
body.dev-phone:not(.zoom-write):not(.zoom-time) #memo{height:calc(var(--row) * 4)!important;min-height:0!important;line-height:var(--row);padding-top:0;padding-bottom:0;box-sizing:border-box;
  background-size:100% var(--row);background-image:linear-gradient(transparent calc(var(--row) - 1px),var(--line2) calc(var(--row) - 1px));overflow:hidden}

/* 필기 칸 닫기 (오른쪽 위 ×) */
.ink-area{position:relative}
.ink-close{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;border:0;background:var(--soft2);color:var(--sub);display:grid;place-items:center;cursor:pointer;z-index:2}
.ink-close:hover{background:var(--line);color:var(--ink)}

/* '안 끝난 할 일 내일로' 는 TASKS 이름표를 가리지 않게 — 맨 아래 빈 줄 오른쪽에 글자만 */
body.dev-pad .sheet .tasks .carry,body.dev-phone .sheet .tasks .carry{top:auto!important;bottom:calc((var(--row) - 1.4em) / 2);right:40px;background:none!important;padding:0!important;line-height:1.4;font-size:11.5px;color:var(--accent)}
body.dev-phone .sheet .tasks .carry{right:30px;font-size:10px}

/* D-DAY: 'D-10' 이 두 줄로 쪼개지지 않게, 이름이 길면 말줄임 */
.dd-i{min-width:0}
.dd-i span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dd-i b{white-space:nowrap;flex:none}

/* 일정·할 일의 장소 메모: 이름 뒤 흐린 작은 글씨 */
.todo-t .pl,.ev .pl{margin-left:6px;font-family:Pretendard,sans-serif;font-size:11px;color:var(--faint);white-space:nowrap}
.ev-pl{flex:0 1 110px;min-width:60px;border:0;border-bottom:1px dashed var(--line);background:none;font:inherit;font-size:12px;color:var(--sub);padding:2px 4px;outline:0}
.ev-pl:focus{border-bottom-color:var(--accent);color:var(--ink)}

/* 주간 작은 시간표도 끌어서 칠한다 */
.wk-tt{cursor:crosshair;user-select:none;-webkit-user-select:none}
body.dev-pad .wk-tt{touch-action:none}
/* '내일로' 글자가 마지막 줄 체크 칸을 가리지 않게 */
body.dev-pad .sheet .tasks .carry{right:50px}
body.dev-phone .sheet .tasks .carry{right:38px}

/* 계획 막대: 빗금 대신 테두리만 (한 것은 꽉 찬 색) — 더 깔끔하게 */
.ln-row .bar.plan{background:color-mix(in srgb,var(--d) 6%,transparent)!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--d) 75%,transparent)!important}
.ln-row .bar.plan em{background:none!important;padding:0;color:var(--ink)}
.ln-row .bar.plan.cl{box-shadow:inset 1.5px 0 0 color-mix(in srgb,var(--d) 75%,transparent),inset 0 1.5px 0 color-mix(in srgb,var(--d) 75%,transparent),inset 0 -1.5px 0 color-mix(in srgb,var(--d) 75%,transparent)!important}

/* MEMO 이름표 줄: 다른 구역 제목처럼 글자와 가로선을 가운데 맞춘다. */
body.dev-pad .sheet .memo-sec{padding-top:0}
body.dev-pad .sheet .memo-sec .sh-lab,body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .memo-sec .sh-lab{height:var(--row);min-height:0;margin:0;align-items:center;line-height:1}
body.dev-pad .sheet .memo-sec .sh-lab::after,body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .memo-sec .sh-lab::after{align-self:center}

/* D-DAY: 오른쪽 정렬 — 이름은 오른쪽으로 붙이고, D-숫자는 같은 너비 칸에 넣어 끝이 세로로 맞게 */
.sheet-head .dd-list{display:flex;flex-direction:column;align-items:stretch}
.sheet-head .dd-i{justify-content:flex-end!important;gap:8px;text-align:right}
.sheet-head .dd-i b{min-width:3.3em;text-align:right}
.sheet-head .dd-list{align-items:stretch!important}
.sheet-head .dd-i{width:100%;min-width:0;box-sizing:border-box}

/* 학년·반을 안 골랐을 때 시간표 위 안내 */
.sc-need{display:block;width:100%;margin:0 0 8px;padding:8px 10px;border:1.5px dashed var(--accent);border-radius:10px;background:color-mix(in srgb,var(--accent) 7%,transparent);color:var(--ink);font:500 12.5px/1.4 Pretendard,sans-serif;text-align:left;cursor:pointer}
.sc-need b{color:var(--accent);white-space:nowrap}
body.dev-phone .sc-need{font-size:11px;padding:6px 8px}
/* 설정 › 우리 학교: 비어 있는 학년·반 칸을 눈에 띄게 */
select[data-school]:has(option[value=""]:checked){outline:2px solid var(--accent);outline-offset:1px}
/* 하루 쪽: 종이 위 가로 전체 */
.cur-page > .sc-need{margin:0 0 10px}

/* 처음 시작 화면 */
.onb{position:fixed;inset:0;z-index:150;background:color-mix(in srgb,#14171c 45%,transparent);display:grid;place-items:center;padding:16px;backdrop-filter:blur(2px)}
.onb-card{width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--card);color:var(--ink);border-radius:22px;padding:26px 22px 18px;box-shadow:0 20px 60px rgba(0,0,0,.25);font-family:Pretendard,sans-serif}
.onb-logo img{width:52px;height:52px;border-radius:14px;display:block;margin:0 auto 10px}
.onb h2{margin:0 0 6px;font-size:20px;text-align:center}
.onb-lead{margin:0 0 16px;font-size:13.5px;color:var(--sub);line-height:1.6;text-align:center}
.onb-ck{display:flex;align-items:center;gap:8px;padding:10px 4px;font-size:14px;border-top:1px solid var(--line2);cursor:pointer}
.onb-ck.all{border-top:0;background:var(--soft2);border-radius:12px;padding:12px 10px;margin-bottom:4px}
.onb-ck input{width:18px;height:18px;accent-color:var(--accent);flex:none}
.onb-ck a{margin-left:auto;font-size:12px;color:var(--sub)}
.onb-go{display:block;width:100%;margin-top:16px;padding:13px;border:0;border-radius:14px;background:var(--accent);color:#fff;font:600 15px Pretendard,sans-serif;cursor:pointer}
.onb-go:disabled{opacity:.35;cursor:not-allowed}
.onb-skip{display:block;width:100%;margin-top:6px;padding:10px;border:0;background:none;color:var(--sub);font-size:13px;cursor:pointer}
.onb-search{display:flex;gap:6px}
.onb-search input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font-size:16px;background:var(--card);color:var(--ink);outline:0}
.onb-search input:focus{border-color:var(--accent)}
.onb-search button{border:0;border-radius:12px;padding:0 16px;background:var(--btn);color:var(--btn-fg);font-weight:600}
.onb-hits{margin-top:8px;max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:4px}
.onb-hits button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--card);text-align:left;cursor:pointer}
.onb-hits button:hover{border-color:var(--accent)}
.onb-hits span{font-size:11.5px;color:var(--sub)}
.onb-empty{font-size:12.5px;color:var(--faint);text-align:center;padding:14px 0}
.onb-picked{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:12px;border-radius:12px;background:var(--soft2)}
.onb-picked span{font-size:12px;color:var(--sub)}
.onb-link{margin-left:auto;border:0;background:none;color:var(--accent);font-size:12.5px;cursor:pointer}
.onb-row{display:flex;gap:10px;margin-top:10px}
.onb-row label{flex:1;display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--sub)}
.onb-row select{padding:10px;border:1px solid var(--line);border-radius:12px;font-size:16px;background:var(--card);color:var(--ink)}

/* 형광펜 색 고르기 (기본 컬러 한 색 / 과목마다) */
.seg{display:inline-flex;background:var(--soft2);border-radius:10px;padding:2px;gap:2px}
.seg button{border:0;background:none;border-radius:8px;padding:6px 10px;font-size:12.5px;color:var(--sub);cursor:pointer}
.seg button.on{background:var(--card);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}

/* 형광펜은 반투명 (날짜 제목 띠처럼): 진한 색을 비치게 칠해서 밑의 10분 점선·공책 줄이 보인다 */
:root{--pen-a:26%}
.ln-row .bar.done{background:color-mix(in srgb,var(--d) var(--pen-a),transparent)}
.tk-row .hl,.wk-t .hl{--pen:color-mix(in srgb,var(--hi,var(--dot,var(--sel))) var(--pen-a),transparent);background:linear-gradient(transparent 50%,var(--pen) 50%,var(--pen) 92%,transparent 92%)}

/* ── 시간표 막대 정리: 줄마다 닫힌 둥근 틀, 글씨 크기는 옆 할 일과 같게 ── */
html body .ln-row .bar,html body .ln-row .bar.cl,html body .ln-row .bar.cr{border-radius:5px}
html body.dev-phone .ln-row .bar,html body.dev-phone .ln-row .bar.cl,html body.dev-phone .ln-row .bar.cr{border-radius:4px}
html body .ln-row .bar.sch,html body .ln-row .bar.sch.cl,html body .ln-row .bar.sch.cr{border-radius:3px}
:root body.dev-pad .ln-row .bar em{font-size:17px;font-weight:500}
html body.dev-phone:not(.zoom-time) .ln-row .bar em{font-size:12.5px;font-weight:500}
html body.dev-phone.zoom-time .ln-row .bar em{font-weight:500}
/* 휴대폰 머리: COMMENT·TOTAL TIME 아래 가로줄(가운데 선) 빼기 */
html body.dev-phone #midRow,html body.dev-phone #slotTotal{border-bottom:0!important}

/* ── 계획(하기 전) 모양: body[data-plan] — 한 것은 늘 반투명 형광펜 ── */
html body .ln-row .bar.plan,html body .ln-row .bar.plan.cl,html body .ln-row .bar.plan.cr{border:0!important;box-shadow:none!important;background:none!important}
html body[data-plan="outline"] .ln-row .bar.plan{background:color-mix(in srgb,var(--d) 5%,transparent)!important;box-shadow:inset 0 0 0 .9px color-mix(in srgb,var(--d) 70%,transparent)!important}
html body[data-plan="dash"] .ln-row .bar.plan{border:.9px dashed color-mix(in srgb,var(--d) 75%,transparent)!important}
html body[data-plan="hatch"] .ln-row .bar.plan{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--d) 40%,transparent) 0 2px,transparent 2px 6px)!important}
html body[data-plan="pale"] .ln-row .bar.plan{background:color-mix(in srgb,var(--d) 10%,transparent)!important}
html body[data-plan="under"] .ln-row .bar.plan{background:linear-gradient(transparent calc(100% - 2px),color-mix(in srgb,var(--d) 45%,transparent) calc(100% - 2px))!important;border-radius:0!important}
html body .ln-row .bar.plan em{background:none!important;padding:0;color:var(--ink)}

/* 설정 › 계획 → 한 것 고르기 (작은 견본) */
.ps-row{border-bottom:0!important;padding-bottom:0!important}
.ps-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px;padding:8px 0 12px}
.ps{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 4px 7px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--sub);font-size:12px;cursor:pointer}
.ps.on{border-color:var(--accent);color:var(--ink);font-weight:600;box-shadow:0 0 0 1px var(--accent)}
.ps-pv{display:flex;align-items:center;gap:4px}
.ps-pv b{font-weight:400;color:var(--faint);font-size:11px}
.ps-pv i{display:block;width:26px;height:14px;border-radius:3px;box-sizing:border-box}
.ps-pv .ps-b{background:color-mix(in srgb,var(--accent) var(--pen-a),transparent)}
.ps[data-planstyle="outline"] .ps-a{background:color-mix(in srgb,var(--accent) 5%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 70%,transparent)}
.ps[data-planstyle="clear"] .ps-a{background:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 70%,transparent)}
.ps[data-planstyle="dash"] .ps-a{border:1.5px dashed color-mix(in srgb,var(--accent) 75%,transparent)}
.ps[data-planstyle="hatch"] .ps-a{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--accent) 40%,transparent) 0 2px,transparent 2px 5px)}
.ps[data-planstyle="pale"] .ps-a{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.ps[data-planstyle="under"] .ps-a{border-radius:0;background:linear-gradient(transparent 12px,color-mix(in srgb,var(--accent) 45%,transparent) 12px)}

/* 통계 색도 기본 컬러 하나로 (형광펜처럼 반투명) */
body[data-colors="simple"] .st{--teal:var(--accent);--pink:var(--accent)}
body[data-colors="simple"] .st .bars .bar,body[data-colors="simple"] .st .wd-bars .bar{background:color-mix(in srgb,var(--accent) 45%,transparent)}
body[data-colors="simple"] .st .marks .mkg{color:var(--accent)!important}

/* 학교 수업 고치기 */
.pp-sch{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:8px;padding:9px 10px;border:1px dashed var(--line);border-radius:10px;background:none;color:var(--ink);font-size:13px;cursor:pointer}
.pp-sch span{color:var(--sub);font-size:12px}
.sch-edit{min-width:min(330px,calc(100vw - 40px));font-size:13px}
.se-allof{display:flex;gap:6px;align-items:center;padding:6px 2px 8px;color:var(--sub);font-size:12.5px}
.se-list{display:flex;flex-direction:column;gap:4px;max-height:46vh;overflow:auto}
.se-list.dim{opacity:.35;pointer-events:none}
.se-row{display:grid;grid-template-columns:36px minmax(0,1fr) 50px 8px 50px auto;gap:4px;align-items:center}
.se-row.off .se-s,.se-row.off .se-a,.se-row.off .se-b{opacity:.35;text-decoration:line-through}
.se-p{font-size:11.5px;color:var(--sub)}
.se-row input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;padding:4px 5px;font-size:13px;background:var(--card);color:var(--ink)}
.se-row .se-a,.se-row .se-b{text-align:center;font-variant-numeric:tabular-nums;padding:4px 2px}
.se-row .se-on input{width:auto}
.se-dash{color:var(--faint);text-align:center}
.se-on{display:flex;gap:3px;align-items:center;font-size:11.5px;color:var(--sub);white-space:nowrap}
.se-btns{display:flex;gap:6px;justify-content:flex-end;align-items:center;margin-top:10px;flex-wrap:wrap}
.se-btns .btn{padding:7px 16px}
.sch-edit{width:min(340px,calc(100vw - 48px));min-width:0}
@media (max-width:420px){.se-row{grid-template-columns:32px minmax(0,1fr) 50px 6px 50px auto}.se-row input{font-size:16px}}

/* 일요일은 늘 빨강 (기본 컬러를 바꿔도) */
:root{--sun:#E2545E}
:root[data-theme="dark"]{--sun:#F06A73}
.wd-l span.sun,.heat .hh.sun,.wk-ch.sun span,.wk-ch.sun b,.wk-strip-bar .sun span,.wk-strip-in .sun span,.wk-h.sun b,.date-main .wd.sun{color:var(--sun)!important}

/* 주간 '+n개 더' 는 8번째 줄 자리에 (줄 수가 늘 같아 시간표가 옆 칸과 맞는다) */
.wk-more-row{display:flex;align-items:center}
.wk-more-row .wk-more{width:100%;height:100%;padding:0 4px;border:0;background:none;text-align:left;font-size:11.5px;color:var(--sub);cursor:pointer}
/* 학교 수업 고치기 창은 조금 넓게 (화면 안에서) */
.pop:has(.sch-edit){max-width:min(360px,calc(100vw - 24px))}
.pop .sch-edit{width:min(348px,calc(100vw - 36px));padding:4px 6px 6px;box-sizing:border-box}

/* 다채롭게: ○△×→ 를 표시마다 다른 색으로, 통계 막대도 반투명 여러 색 */
/* 10/15 멀티도 ○△×→ 는 메인 색 하나로 (사용자 "세모 동그라미도 멀티색에서도 메인색으로 가는 게 더 깔끔") */
body[data-colors="colorful"] .chk.mk-o .mkg{color:var(--accent)!important}
body[data-colors="colorful"] .chk.mk-tri .mkg{color:var(--accent)!important}
body[data-colors="colorful"] .chk.mk-x .mkg{color:var(--accent)!important}
body[data-colors="colorful"] .chk.mk-arrow .mkg{color:var(--accent)!important}
body[data-colors="colorful"] .st .bars .bar{background:color-mix(in srgb,var(--teal) 60%,transparent)}
body[data-colors="colorful"] .st .wd-bars .bar{background:color-mix(in srgb,var(--pink) 60%,transparent)}

/* 기본 컬러 › 색 쓰는 법 고르기 */
.cm-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:2px 0 10px}
.cm{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}
.cm.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.cm b{font-size:14px}
.cm small{font-size:11.5px;color:var(--sub)}
.cm-pv{display:flex;gap:4px;margin-bottom:6px}
.cm-pv i{display:block;width:22px;height:12px;border-radius:3px}
.cm-pv.theme i{background:color-mix(in srgb,var(--accent) var(--pen-a),transparent)}
.cm-pv.duo i:nth-child(odd){background:color-mix(in srgb,var(--accent) var(--pen-a),transparent)}.cm-pv.duo i:nth-child(even){background:color-mix(in srgb,var(--accent2) var(--pen-a),transparent)}
.cm-pv.subject i:nth-child(1){background:#FCEAB0}.cm-pv.subject i:nth-child(2){background:#D3E9F8}.cm-pv.subject i:nth-child(3){background:#FAD9DF}.cm-pv.subject i:nth-child(4){background:#D9EFD2}

/* 1도·2도·다채롭게 고르기: 좁은 화면에서도 세 칸 */
.cm{padding:10px 9px;min-width:0}
.cm-pv{gap:3px}.cm-pv i{width:14px;height:10px}
.cm small{line-height:1.35}
.c2-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:8px 2px;font-size:13px;color:var(--sub)}
.c2-dots{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.c2{width:24px;height:24px;border-radius:50%;border:2px solid var(--card);background:var(--c);box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.c2.on{box-shadow:0 0 0 2px var(--ink)}

/* 2도: ○△ 는 기본 컬러, ×→ 는 두 번째 색 / 통계는 주간=기본, 요일=두 번째 */
body[data-colors="duo"] .chk.mk-o .mkg,body[data-colors="duo"] .chk.mk-tri .mkg{color:var(--accent)!important}
body[data-colors="duo"] .chk.mk-x .mkg,body[data-colors="duo"] .chk.mk-arrow .mkg{color:var(--accent2)!important}
body[data-colors="duo"] .st{--teal:var(--accent);--pink:var(--accent2)}
body[data-colors="duo"] .st .bars .bar{background:color-mix(in srgb,var(--accent) 45%,transparent)}
body[data-colors="duo"] .st .wd-bars .bar{background:color-mix(in srgb,var(--accent2) 45%,transparent)}

/* 2도 › 보조색 조화 고르기 */
.c2-row{flex-direction:column;align-items:stretch;margin-bottom:4px}
.hm-pick{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.hm{display:flex;align-items:center;gap:5px;padding:8px 9px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font-size:12.5px;cursor:pointer;text-align:left}
.hm.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);font-weight:600}
.hm i{display:block;width:14px;height:14px;border-radius:50%;flex:none}
.hm i+i{margin-left:-7px;box-shadow:0 0 0 2px var(--card)}
.c2-hint{margin:0 0 14px}

/* 주간: 학교 행사는 할 일 첫 줄에 */
.wk-sev-row .wk-tt-t{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden}
.wk-sev-row .wk-sev{font-size:11px;padding:0 6px;line-height:16px;max-width:100%}
.wk-sev-row small{font-size:10px;color:var(--sub);flex:none}

/* 휴대폰 플래너 위 두 손가락은 앱이 받는다 (브라우저 확대 대신 크게 보기·쪽 전체) */
body.dev-phone #dayView,body.dev-phone #calView{touch-action:pan-x pan-y}

/* 휴대폰 쪽 전체에서 적는 칸을 누르면: 화면은 그대로, 그 칸만 살짝 떠오르며 커진다 (줄 높이는 그대로라 시간표와 안 어긋남) */
body.dev-phone:not(.zoom-write):not(.zoom-time) .tk-row.blank:focus-within{position:relative;z-index:4}
body.dev-phone:not(.zoom-write):not(.zoom-time) .tk-row.blank .todo-in{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;transform-origin:left center}
body.dev-phone:not(.zoom-write):not(.zoom-time) .tk-row.blank .todo-in:focus{font-size:16px;transform:scale(1.04);background:var(--card);box-shadow:0 2px 12px rgba(20,30,40,.14),0 0 0 1.5px var(--accent);border-radius:8px;padding-left:8px;padding-right:8px;margin-left:-6px;outline:0}
body.dev-phone:not(.zoom-write):not(.zoom-time) #goal,body.dev-phone:not(.zoom-write):not(.zoom-time) #memo{transition:transform .16s ease,box-shadow .16s ease}
body.dev-phone:not(.zoom-write):not(.zoom-time) #goal:focus,body.dev-phone:not(.zoom-write):not(.zoom-time) #memo:focus{position:relative;z-index:4;font-size:16px;background-color:var(--card);box-shadow:0 2px 12px rgba(20,30,40,.14),0 0 0 1.5px var(--accent);border-radius:8px;outline:0}
/* 휴대폰 위 막대의 '크게 보기' 단추: 일간에서만 */
.tb-zoom{display:none;border:0;background:var(--soft2);color:var(--ink);border-radius:999px;width:34px;height:34px;align-items:center;justify-content:center;cursor:pointer;flex:none}
body.dev-phone.view-day:not(.zoom-write):not(.zoom-time) .tb-zoom{display:inline-flex}
/* '할 일 더 적기' 안내 글씨도 할 일 글씨와 같은 크기·글꼴로 (기기마다 할 일 크기를 따라감) */
.tk-row.blank .todo-in::placeholder{font-family:inherit;font-size:1em;letter-spacing:normal}
html body.dev-phone:not(.zoom-write) #goal:not(:focus){font-size:12.5px}
/* 주간 MY GOAL 아래 선 빼기 (하루 쪽 COMMENT 아래 선을 뺀 것과 같게, 아래 날짜 칸 선과 겹쳐 보여서) */
html body .wk-goal{border-bottom:0;padding-bottom:4px}

/* 주간: 요일 줄 아래 시험 · 급식 한 줄 */
.wk-info{display:flex;align-items:center;gap:10px;margin:10px 0 6px;padding:9px 14px;border:1px solid var(--line2);border-radius:14px;background:var(--card);font-size:13px;min-width:0}
.wk-info em{font-style:normal;color:var(--accent);font-weight:600;margin-right:6px;flex:none}
.wi-ex{display:flex;align-items:center;gap:6px;flex:none;white-space:nowrap}
.wi-ex b{font-weight:700}
.wi-ex span{color:var(--sub)}
.wi-ex i{font-style:normal;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.wi-ex i.now{background:color-mix(in srgb,#E9A23B 22%,transparent);color:#B5711B}
.wi-ex i.past{background:var(--soft2);color:var(--sub)}
.wi-sep{width:1px;height:14px;background:var(--line);flex:none}
.wi-ml{display:flex;align-items:center;gap:6px;min-width:0;flex:1;border:0;background:none;padding:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.wi-ml>span:not(.wi-dish){color:var(--sub);flex:none}
.wi-dish{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 휴대폰: 시험 / 급식 두 줄 */
body.dev-phone .wk-info{flex-direction:column;align-items:stretch;gap:6px;padding:8px 12px;font-size:12.5px}
body.dev-phone .wi-sep{display:none}
body.dev-phone .wi-ex{flex-wrap:nowrap;overflow:hidden}

/* 주간 학교 한 줄 → 펼치기 */
.wk-info-wrap{margin:10px 0 6px;border:1px solid var(--line2);border-radius:14px;background:var(--card);overflow:hidden}
.wk-info-wrap .wk-info{margin:0;border:0;border-radius:0;background:none}
.wi-tog{margin-left:auto;display:inline-flex;align-items:center;gap:4px;flex:none;border:0;background:var(--soft2);color:var(--sub);border-radius:999px;padding:4px 10px;font-size:12px;cursor:pointer}
.wi-more{border-top:1px solid var(--line2);padding:10px 14px 14px}
.wi-days{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.wi-days::-webkit-scrollbar{display:none}
.wi-days button{flex:0 0 auto;min-width:64px;max-width:110px;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 8px;border:1px solid var(--line2);border-radius:12px;background:var(--card);color:var(--ink);cursor:pointer}
.wi-days button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent) 6%,transparent)}
.wi-days span{font-size:11px;color:var(--sub)}
.wi-days b{font-size:16px}
.wi-days .sun span,.wi-days .sun b{color:var(--sun)}
.wi-days .sat span{color:var(--blue)}
.wi-days small{font-size:10.5px;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent);border-radius:6px;padding:1px 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wi-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}
.wi-col h4{margin:0 0 6px;font-size:12.5px;font-weight:700}
.wi-col ul,.wi-col ol{margin:0;padding:0;list-style:none;font-size:13px;line-height:1.7}
.wi-tt li b{display:inline-block;width:18px;color:var(--sub);font-weight:600}
.wi-col .muted{font-size:12px;margin:0}
body.dev-phone .wi-body{grid-template-columns:1fr 1fr}
body.dev-phone .wi-body .wi-col:first-child{grid-column:1/-1}
body.dev-phone .wk-info{flex-direction:row;flex-wrap:wrap}
body.dev-phone .wi-ex{flex:1 1 100%}
body.dev-phone .wi-ml{flex:1 1 0}
/* 휴대폰 시간표 시각 숫자: 둥근 굵은 숫자라 글씨보다 커 보여서 작고 연하게 */
html body.dev-phone:not(.zoom-time) .ln-h{font-size:10px;font-weight:600;color:var(--sub)}
html body.dev-phone:not(.zoom-time) .ln-h span{width:17px;height:17px}
html body.dev-phone:not(.zoom-time) .wk-tt .ln-h{font-size:9px}

/* 주간 학교 한 줄: 작게 (상자 없이 요일 줄 밑 작은 글씨 한 줄) */
html body .wk-info-wrap{margin:6px 0 4px;border:0;border-radius:0;background:none;overflow:visible}
html body .wk-info-wrap .wk-info,html body .wk-info{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:7px;margin:0;padding:2px 2px;border:0;background:none;font-size:12px;line-height:1.4}
html body .wk-info em{margin-right:3px;font-size:11px}
html body .wi-ex{gap:4px;flex:0 1 auto;min-width:0;overflow:hidden}
html body .wi-ex b{font-weight:600}
html body .wi-ex i{font-size:10px;padding:1px 6px;line-height:14px}
html body .wi-ml{gap:4px;flex:1 1 0}
html body .wi-ml>span:not(.wi-dish){flex:none}
html body .wi-sep{height:10px}
.wi-wd{font-size:.85em}
html body .wi-tog{padding:0;width:22px;height:22px;justify-content:center;border-radius:50%;flex:none}
html body .wi-more{border:1px solid var(--line2);border-radius:12px;background:var(--card);margin-top:6px;padding:9px 11px 11px}
html body .wi-days button{min-width:52px;padding:5px 6px;border-radius:10px}
html body .wi-days b{font-size:14px}
html body .wi-body{gap:10px;margin-top:8px}
html body .wi-col h4{font-size:11.5px;margin-bottom:4px}
html body .wi-col ul,html body .wi-col ol{font-size:12px;line-height:1.6}
/* 휴대폰: 한 줄에 시험 · 급식, 요일 표시는 숨기고 넘치면 … */
html body.dev-phone .wk-info{font-size:11.5px;gap:6px}
html body.dev-phone .wi-wd{display:none}
html body.dev-phone .wi-ex{flex:0 0 auto}
html body.dev-phone .wi-ex>span{display:none}
html body.dev-phone .wi-ml{flex:1 1 0}
html body.dev-phone .wi-sep{display:block}
/* '진행 중'도 기본 컬러로 (D-n 은 테두리만) */
html body .wi-ex i{background:none;border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}
html body .wi-ex i.now{background:color-mix(in srgb,var(--accent) 14%,transparent);border-color:transparent;color:var(--accent)}
html body .wi-ex i.past{background:var(--soft2);border-color:transparent;color:var(--sub)}
/* 주간 학교 행사 줄: 행사 이름표를 줄 가운데에 (다른 할 일 줄과 같은 높이·같은 선) */
html body .wk-sev-row .wk-tt-t{align-items:center;height:100%}
html body .wk-sev-row .wk-sev{align-self:center;line-height:15px}
html body .wk-sev-row small{align-self:center}

/* 주간 머리: '이번 주' 자리에 시험·급식 두 줄, 화살표는 요일 줄 양 끝 */
.pg-info{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;margin-left:auto}
html body .pg-info .wk-info{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:0;font-size:11.5px;line-height:1.35;min-width:0}
html body .pg-info .wi-ex,html body .pg-info .wi-ml{justify-content:flex-end;max-width:100%}
html body .pg-info .wi-ml{flex:none}
html body .pg-info .wi-dish{max-width:150px}
html body .pg-info .wi-sep{display:none}
.pg-head .pg-title{flex:0 0 auto;margin-right:0}
.pg-head{justify-content:space-between}
.wk-strip-wrap{display:none}
body.dev-phone .wk-strip-wrap{display:flex;align-items:center;gap:2px;margin:0 0 10px}
body.dev-phone .wk-strip-wrap .wk-strip-in{flex:1;margin:0;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.ws-arr{flex:none;display:grid;place-items:center;width:26px;height:44px;border:0;background:none;color:var(--sub2);border-radius:10px;cursor:pointer}
.ws-arr:active{background:var(--soft2)}
body.dev-phone .pg-nav-pad{display:none}
body.dev-phone .pg-head{align-items:center}
html body.dev-phone .pg-info .wi-dish{max-width:118px}
html body.dev-phone .pg-info .wi-wd{display:none}
html body.dev-phone .pg-info .wi-ex>span{display:none}
html body .wi-more{margin:0 0 10px}

/* 홈 D-DAY: 이름과 숫자 사이 띄우기, 진행 중은 작게 */
html body .dd-item{gap:12px}
/* 10/15 '진행 중'도 D-6 과 같은 글꼴 (사용자 "D-Day 진행중 폰트 똑같이") — 글자 수가 많아 크기만 조금 작게 */
html body .dd-item.now b,html body .dd-i.now b{font-size:.8em}
/* 주간 막대 아래 날짜: 휴대폰은 한 주 걸러 적고 작게 (12개가 다 안 들어가 끝이 잘리던 것) */
body.dev-phone .blabels span{font-size:11px;overflow:visible}
body.dev-phone .blabels span:nth-child(odd):not(.now){visibility:hidden}
body.dev-phone .bars .gl span{font-size:12px}
/* 주간 머리 오른쪽: 시험·급식 두 줄을 같은 왼쪽 선에 맞춰 (이름표 '시험' '급식'이 위아래로 나란히) */
html body .pg-info .wk-info{align-items:stretch}
html body .pg-info .wi-ex,html body .pg-info .wi-ml{justify-content:flex-start}
html body .pg-info .wk-info em{width:26px;margin-right:2px;flex:none}

/* 시험 · 급식 한 줄 번갈아 보이기 (같은 자리에 겹쳐 두고 살짝 떠오르며 바뀜) */
html body .pg-info .wk-info.wi-rot{display:grid;align-items:center;justify-items:end;min-width:0}
html body .wi-rot>.wi-item{grid-area:1/1;opacity:0;transform:translateY(5px);transition:opacity .4s ease,transform .4s ease;pointer-events:none;max-width:100%;min-width:0}
html body .wi-rot>.wi-item.on{opacity:1;transform:none;pointer-events:auto}
html body .pg-info .wi-ml .wi-dish{max-width:170px}
html body.dev-phone .pg-info .wi-ml .wi-dish{max-width:120px}
@media (prefers-reduced-motion:reduce){html body .wi-rot>.wi-item{transition:none;transform:none}}

/* 펼친 학교 칸: 세 줄 (일정 · 급식 · 시간표). 휴대폰은 위 요일 줄로 날을 고르니 칸 속 요일 줄은 숨김 */
html body .wi-more{padding:9px 12px 10px}
body.dev-phone .wi-more .wi-days{display:none}
/* 10/15 홈 학교 칸 펼침: 일주일 시간표(머리 = 요일 칩) + 고른 날 급식·행사, 표를 옆으로 밀면 주 이동 */
html body .hb-school .hs-week{border:1px solid var(--line2);border-radius:12px;background:var(--card);margin:0 2px 10px;padding:10px 12px 12px}
.hb-school .hs-head{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 10.5px/1 Pretendard,sans-serif;letter-spacing:.08em;color:var(--sub)}
.hb-school .hs-r{flex:1;min-width:0;text-align:right;letter-spacing:0;font-weight:500;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-school .hs-now{flex:none;padding:4px 8px;border:0;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);font:600 11px/1 Pretendard,sans-serif;letter-spacing:0}
.hb-school .hs-tt{touch-action:pan-y}
.hb-school .hs-tt.hs-next{animation:hsNext .22s ease-out}
.hb-school .hs-tt.hs-prev{animation:hsPrev .22s ease-out}
@keyframes hsNext{from{transform:translateX(26px);opacity:.35}}
@keyframes hsPrev{from{transform:translateX(-26px);opacity:.35}}
@media (prefers-reduced-motion:reduce){.hb-school .hs-tt{animation:none!important}}
.hb-school .wt-wrap,.hb-school .hs-tt>.wt-empty{border:0;background:none}
.hb-school .wt{--rh:32px}
/* 과목 이름 전체를 작은 글씨로 두 줄까지 (잘리지 않게) */
.hb-school .wt-b:not(.lunch){font-size:9.5px;line-height:1.15;letter-spacing:-.04em;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:center;padding:0 1px}
.hb-school .wt-c0,.hb-school .wt-dh{border-bottom:1px solid var(--line2)}
.hb-school .wt-dh.wt-pick{position:relative;gap:3px;padding:2px 0 6px;border-left:0;background:none;cursor:pointer}
.hb-school .wt-pick span{font:400 10px/1 Pretendard,sans-serif;letter-spacing:0;color:var(--sub)}
.hb-school .wt-pick b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font:450 14px/1 Pretendard,sans-serif;background:none}
.hb-school .wt-pick.today b{color:var(--accent);font-weight:600}
.hb-school .wt-pick.on b{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--ink);font-weight:600}
.hb-school .wt-pick.on span{color:var(--accent)}
.hb-school .wt-ev{position:absolute;bottom:2px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent);opacity:.6}
.hb-school .hs-lines{margin-top:8px;padding-top:6px;border-top:1px solid var(--line2)}
.hb-school .hs-lines .sc-line{font-size:15px}
.hb-school .sc-meal summary .sc-open{margin-left:auto;flex:none;font:500 11px Pretendard,sans-serif;color:var(--faint)}
.hb-school .sc-meal summary .sc-open::after{content:'전체'}
.hb-school .sc-meal[open] summary .sc-open::after{content:'접기'}
.hb-school .sc-meal .sc-more{padding-left:38px;margin-top:2px;font-family:var(--hand);font-size:15px;line-height:1.5}
.wi-d{font-size:12px;font-weight:700;margin:0 0 5px}
body.dev-pad .wi-d{margin-top:8px}
.wi-r{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px;font-size:12px;line-height:1.55;padding:2px 0}
.wi-r em{font-style:normal;color:var(--accent);font-weight:600}
.wi-r i{font-style:normal;color:var(--faint)}
.wi-r b{color:var(--sub);font-weight:600}
/* 위 요일 줄: 행사 있는 날 점, 고른 날 테두리 */
.wk-strip-in button{position:relative}
.wk-strip-in .ev-dot{position:absolute;bottom:3px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent)}
.wk-strip-in button.on .ev-dot{background:var(--card)}
.wk-strip-in button.wsel:not(.on){box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--card)}

/* 주간 보기 고르기 */
.wk-mode{display:flex;justify-content:flex-end;gap:2px;margin:-4px 0 6px}
.wk-mode button{border:0;background:none;color:var(--faint);font-size:11.5px;padding:3px 8px;border-radius:999px;cursor:pointer}
.wk-mode button.on{background:var(--soft2);color:var(--ink);font-weight:600}
/* 시간표만: 할 일 칸을 빼고 7일 형광펜 시간표를 한 화면에 */
.wk-time .wk-tasks,.wk-time .wk-more-row{display:none}
html body.dev-phone .wk-time .wk-cols{display:grid;grid-template-columns:22px repeat(7,minmax(0,1fr));overflow:visible;scroll-snap-type:none}
html body.dev-phone .wk-time .wk-col{flex:none;min-width:0}
html body.dev-phone .wk-time .wk-col:first-child{grid-column:1/3}
html body.dev-phone .wk-time .wk-ch{flex-direction:column;align-items:center;gap:0;padding:5px 0 4px}
html body.dev-phone .wk-time .wk-ch b{font-size:13px;line-height:1.2}
html body.dev-phone .wk-time .wk-ch .dl{display:none}
html body.dev-phone .wk-time .wk-ch .ds{display:inline;font-size:8px}
html body.dev-phone .wk-time .wk-col:first-child .wk-ch{padding-left:22px}
/* 시각 숫자는 맨 앞 날에만, 나머지 날은 시각 칸 없이 꽉 */
html body .wk-time .wk-col:not(:first-child) .wk-tt{--hc:0px}
html body .wk-time .wk-col:not(:first-child) .wk-tt .ln-h{display:none}
html body.dev-phone .wk-time .wk-col:first-child .wk-tt{--hc:22px}
html body .wk-time .wk-tt .ln-row{height:24px}
html body .wk-time .wk-tt .ln-h span{visibility:visible!important}
html body.dev-phone .wk-time .wk-total{font-size:11px}
html body.dev-phone .wk-time .wk-total small{font-size:8px}

/* 주간 작은 시간표의 학교 수업: 왼쪽 세로 표시 없이 연한 회색 띠만 */
html body .wk-tt .bar.sch:not(.lunch){box-shadow:none!important;background:color-mix(in srgb,var(--sub) 9%,transparent);border-radius:0;top:0!important;bottom:0!important}
/* 주간 '시간표만': 표처럼 — 10분 점선 없이 한 시간 한 칸, 요일 칸 선은 또렷하게, 칠한 시간은 칸을 꽉 */
html body .wk-time .wk-tt .c.ln{border-left-color:transparent!important}
html body .wk-time .wk-tt .ln-row{border-bottom:1px solid var(--line2)}
html body .wk-time .wk-col{border-right:1px solid var(--line)}
html body .wk-time .wk-col:last-child{border-right:0}
html body .wk-time .wk-tt .ln-h{border-right:1px solid var(--line)}
html body .wk-time .wk-ch{border-bottom:1.5px solid var(--ink)}
html body .wk-time .ln-row .bar:not(.sch){top:2px!important;bottom:2px!important;border-radius:3px}
html body .wk-time .ln-row .bar.cl{border-top-left-radius:0;border-bottom-left-radius:0}
html body .wk-time .ln-row .bar.cr{border-top-right-radius:0;border-bottom-right-radius:0}
html body .wk-time .wk-tt .ln-row:nth-child(odd){background:color-mix(in srgb,var(--sub) 2.5%,transparent)}

/* 주간 기본 보기: 학교 수업 막대에 과목 이름 (교시 + 과목, 작게) */
html body .wk-page:not(.wk-time) .wk-tt .bar.sch:not(.lunch) em{display:block;min-width:0;padding:0 3px;font:600 9.5px/1 Pretendard,sans-serif;color:var(--sub2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.02em}
html body.dev-phone .wk-page:not(.wk-time) .wk-tt .bar.sch:not(.lunch) em{font-size:9px}
html body .wk-page:not(.wk-time) .wk-tt .bar.sch:not(.lunch){background:color-mix(in srgb,var(--sub) 11%,transparent);border-radius:2px;top:1px!important;bottom:1px!important}

/* '시간표만' = 표: 줄 높이 고정(--rh), 수업은 한 덩어리 칸 + 짧은 과목 이름, 줄무늬 없음 */
html body .wk-time .wk-tt{--rh:24px}
html body .wk-time .wk-tt .ln-row{height:var(--rh)!important;background:none!important}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk{position:absolute;left:var(--hc)!important;right:0;width:auto!important;bottom:auto!important;z-index:1;display:flex;align-items:center;justify-content:center;padding:0 1px!important;border-radius:3px;background:color-mix(in srgb,var(--sub) 13%,var(--card));box-shadow:none!important;overflow:hidden}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk em{display:block!important;font:600 9.5px/1.1 Pretendard,sans-serif;color:var(--sub2);white-space:nowrap;overflow:hidden;text-overflow:clip;letter-spacing:-.03em}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk.lunch{background:none;border-top:1px dashed color-mix(in srgb,var(--sub) 35%,transparent);border-bottom:1px dashed color-mix(in srgb,var(--sub) 35%,transparent);border-radius:0}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk.lunch::before,html body .wk-time .wk-tt .ln-row .bar.sch.tblk.lunch::after{display:none}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk.lunch em{color:var(--faint);font-weight:500;background:none;border:0;padding:0}
html body .wk-time .wk-tt .ln-row .bar:not(.sch){z-index:2}
html body .wk-time .wk-tt .ln-row:nth-child(odd){background:none!important}
html body .wk-time .wk-tt .ln-row .bar.sch.tblk{top:var(--t)!important}

/* 주간 '시간표만' = 학교 시간표 표 */
.wt-wrap{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:var(--card)}
.wt{--rh:34px;display:grid;grid-template-columns:24px repeat(var(--n),minmax(0,1fr));grid-template-rows:auto calc(var(--rh) * var(--rows))}
body.dev-pad .wt{--rh:44px;grid-template-columns:34px repeat(var(--n),minmax(0,1fr))}
.wt-c0{grid-row:1;grid-column:1;border-bottom:1.5px solid var(--ink)}
.wt-dh{grid-row:1;display:flex;flex-direction:column;align-items:center;gap:0;padding:6px 0 5px;border:0;border-left:1px solid var(--line2);border-bottom:1.5px solid var(--ink);background:none;color:var(--ink);cursor:pointer;min-width:0}
.wt-dh b{font-family:var(--title);font-weight:400;font-size:15px;line-height:1.15}
.wt-dh span{font:600 8.5px Pretendard,sans-serif;letter-spacing:.06em;color:var(--sub)}
.wt-dh.sat span{color:var(--blue)}.wt-dh.sun span,.wt-dh.sun b{color:var(--sun)}
.wt-dh.today b{background:linear-gradient(transparent 60%,var(--hl) 60%)}
.wt-hrs{grid-row:2;grid-column:1;display:grid;grid-auto-rows:var(--rh)}
.wt-hrs span{font:600 10px var(--round),sans-serif;color:var(--sub);text-align:center;padding-top:2px;border-top:1px solid var(--line2)}
.wt-hrs span:first-child{border-top:0}
.wt-col{grid-row:2;position:relative;border-left:1px solid var(--line2);background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--rh) - 1px),var(--line2) calc(var(--rh) - 1px) var(--rh));background-position:0 -1px}
.wt-col.today{background-color:color-mix(in srgb,var(--accent) 4%,transparent)}
.wt-b{position:absolute;left:2px;right:2px;margin-top:1px;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:color-mix(in srgb,var(--accent) 12%,var(--card));color:var(--ink);font:600 11px/1.1 Pretendard,sans-serif;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;padding:0 2px;cursor:pointer}
body.dev-phone .wt-b{font-size:10.5px}
/* 10/15 사용자 "점심은 형광펜 칠하기 전의 모습으로 (지금은 줄이 그어져 있어서 점심인지 모르겠어)": 일간 계획처럼 테두리만 있는 칸 */
.wt-b.lunch{background:color-mix(in srgb,var(--accent) 4%,var(--card));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 75%,transparent);color:var(--accent);font-weight:600;font-size:10.5px}
.wt-empty{padding:28px 12px;text-align:center;color:var(--sub);font-size:13px}
/* 주간 보기 고르기: 표 윗변에 붙은 폴더 탭 (플래너 / 학교 시간표) */
html body .wk-mode{display:flex;justify-content:flex-start;gap:2px;margin:4px 0 0;padding-left:6px;position:relative;z-index:1}
html body .wk-mode button{margin-bottom:-1px;padding:7px 14px 6px;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;background:none;color:var(--sub);font-size:12.5px;font-weight:500}
html body .wk-mode button.on{background:var(--card);border-color:var(--line);color:var(--ink);font-weight:700}
html body .wk-mode button:not(.on):hover{color:var(--ink)}
html body .wk-mode+.wk-cols,html body .wk-mode+.wt-wrap{border-top-left-radius:6px;border-top-right-radius:6px}
html body .wk-goal:not(.wk-rev){margin-bottom:6px}
/* 스크롤 막대가 생겼다 없어지며 앱 폭이 흔들리지 않게: 큰 화면은 막대 자리를 늘 비워 두고,
   휴대폰 화면(미리보기 포함)은 실제 휴대폰처럼 막대를 숨긴다 */
html{scrollbar-gutter:stable}
html:has(> body.dev-phone){scrollbar-gutter:auto;scrollbar-width:none}
html:has(> body.dev-phone)::-webkit-scrollbar{display:none}
/* 10/16 폴드 펼침 세로(두 쪽 · 세로): 막대 자리 15px 때문에 두 쪽이 오른쪽으로 잘리고 가운데 날짜가 비켜 섰다 → 휴대폰처럼 숨김 */
html:has(> body.dev-pad:not(.af-side)){scrollbar-gutter:auto;scrollbar-width:none}
html:has(> body.dev-pad:not(.af-side))::-webkit-scrollbar{display:none}
/* 학교 시간표 표: 살짝 작게 */
html body .wt{--rh:28px}
html body.dev-pad .wt{--rh:38px}
html body .wt-b{font-size:10.5px;border-radius:4px}
html body.dev-phone .wt-b{font-size:10px}
html body .wt-dh{padding:5px 0 4px}
html body .wt-dh b{font-size:14px}
html body .wt-hrs span{font-size:9.5px}
/* 시험·급식 번갈아 줄: 두 줄이 같은 자리(왼쪽 맞춤)에서 바뀌게 — '시험' '급식' 이름표 위치 통일 */
html body .pg-info .wk-info.wi-rot{justify-items:start}
html body .pg-info .wi-rot>.wi-item{justify-content:flex-start;width:max-content;max-width:100%}
/* 일정에서 온 할 일 줄(.ev)도 다른 할 일 줄과 같은 여백 — 예전 일정 목록 모양(.tasks .ev)이 묻어 ○△× 칸이 2px 어긋나던 것 */
html body .tasks .todo.tk-row.ev{padding:0 2px;border-radius:0;background:none}
/* 주간 작은 시간표 시각 숫자: 두 자리(10·11·12)가 동그라미 밖으로 넘치던 것 */
html body .wk-tt .ln-h span{width:auto;min-width:11px;padding:0 1px}
/* 머리 날짜 범위 글자가 형광 띠 상자보다 살짝 넓던 것 */
.pg-range{white-space:nowrap;width:max-content;max-width:100%}
/* 홈 WEEKDAYS 요일 글자: 좁은 화면에서 SUN 이 칸 밖으로 넘치던 것 — 막대와 같은 칸 나눔으로 */
html body .wd-l{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));column-gap:7%;padding:6px 4% 0}
html body .wd-l span{min-width:0;text-align:center;overflow:hidden;text-overflow:clip;font-size:clamp(9px,2.2vw,11px)}
/* 홈(휴대폰 좁은 화면): 지난 35일 칸 날짜 숫자가 칸보다 크던 것, 주간 막대 맨 끝 '이번 주'가 오른쪽으로 삐져나가던 것 */
html body.dev-phone .heat .hd{font-size:clamp(9px,2.9vw,12px)}
html body.dev-phone .blabels span.now{text-align:right;white-space:nowrap;direction:rtl}
html body.dev-phone .blabels span{min-width:0}
html body.dev-phone .blabels span.now{direction:ltr;display:flex;justify-content:flex-end;overflow:visible}

/* 처음 시작: 무엇을 준비해요? · 하루 · 시험 */
.onb-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.onb-kinds button,.onb-seg button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}
.onb-kinds button:hover,.onb-seg button:hover{border-color:var(--accent)}
.onb-kinds b,.onb-seg b{font-size:14.5px}
.onb-kinds span,.onb-seg span{font-size:11.5px;color:var(--sub);line-height:1.4}
.onb-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.onb-seg button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--card))}
.onb-form{display:flex;flex-direction:column;gap:2px}
.onb-fr{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-top:1px solid var(--line2);font-size:13.5px}
.onb-fr>span:first-child{color:var(--sub);flex:none}
.onb-fr small{color:var(--faint);font-size:11px}
.onb-fr input,.onb-fr select{min-width:0;width:150px;border:1px solid var(--line);border-radius:10px;padding:7px 9px;font-size:16px;background:var(--card);color:var(--ink)}
.onb-tt{display:flex;align-items:center;gap:4px}
.onb-tt input{width:64px;text-align:center}
/* 하루 쪽 TOTAL 아래 하루 목표 % */
.dg{color:var(--accent);font-weight:600}
/* 홈 맨 위: 합격 페이스 */
.pace{margin-bottom:6px}
.pace-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:6px 0 4px}
.pace-row b{font-family:var(--round);font-weight:900;font-size:28px;color:var(--accent)}
.pace-row span{color:var(--sub);font-size:13px}
.pace-row .pace-note{margin-left:auto;color:var(--ink)}
.pace-row .pace-note b{font-size:16px}
.pace-row.sm b{font-size:18px}
.pace-bar{height:8px;border-radius:99px;background:var(--soft2);overflow:hidden;margin-bottom:6px}
.pace-bar.sm{height:5px}
.pace-bar i{display:block;height:100%;border-radius:99px;background:color-mix(in srgb,var(--accent) 60%,transparent)}
/* 설정 › 나의 공부: 고정 시간 */
.fx-row{display:grid;grid-template-columns:minmax(0,1fr) 58px 8px 58px auto;gap:4px;align-items:center;padding:8px 0;border-top:1px solid var(--line2)}
.fx-row .fx-days{grid-column:1/-1;display:flex;gap:3px}
.fx-d{flex:1;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--sub);font-size:12px;padding:4px 0;cursor:pointer}
.fx-d.on{border-color:var(--accent);color:var(--accent);font-weight:700;background:color-mix(in srgb,var(--accent) 7%,var(--card))}
.fx-t{text-align:center;width:58px}
/* 고정 시간(학원·근무) 칸은 학교 수업보다 한 톤 연하게 */
.wt-b.fx{background:color-mix(in srgb,var(--sub) 12%,var(--card));color:var(--sub2)}

/* ── 습관: TASKS 맨 아래 '습관' 묶음 (매일 저절로) ── */
html body .hb-todos .tk-lab{color:var(--sub)}
html body .hb-todos button.tk-lab{border:0;background:none;font:inherit;cursor:pointer;display:flex;align-items:center;justify-content:flex-start}
html body .hb-todos .tk-lab .hb-ic{margin:0;width:16px;height:16px}
html body.dev-phone .hb-todos .tk-lab .hb-ic{width:13px;height:13px}
html body.dev-pad .hb-todos .tk-lab .hb-ic{width:18px;height:18px}

/* 월간 › 달력 | 습관 탭 */
html body .mo-mode{margin-top:6px}
/* 월간 › 습관: 종이 습관 표 — 습관마다 한 줄, 날짜만큼 작은 칸 */
html body .hbm-wrap{background:var(--card);border:1px solid var(--line);border-radius:0 8px 8px 8px;padding:16px 16px 12px}
html body .hbm{display:grid;grid-template-columns:76px repeat(var(--dim),minmax(0,22px)) 40px;gap:7px 3px;align-items:center;justify-content:start}
html body .hbm-d{font-size:10.5px;color:var(--faint);text-align:center;font-variant-numeric:tabular-nums;line-height:1}
html body .hbm-d.sun{color:var(--sun)}
html body .hbm-d.sat{color:var(--blue)}
html body .hbm-d.today{color:var(--accent);font-weight:800}
html body .hbm-n{font-size:12.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:6px}
html body .hbm-x{display:block;aspect-ratio:1;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:3px;background:none;padding:0;margin:0;cursor:pointer}
html body .hbm-x.on{background:color-mix(in srgb,var(--accent) 72%,transparent);border-color:transparent}
html body .hbm-x.today:not(.on){border:1.5px solid color-mix(in srgb,var(--accent) 70%,transparent)}
html body .hbm-x.pre{border:0;background:var(--line2);opacity:.6;cursor:default}
html body .hbm-x.half{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 60%,transparent) 50%,transparent 50%);border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
html body .hbm-x.fut{border-color:var(--line2);cursor:default}
html body .hbm-p{font-size:11px;color:var(--sub);text-align:right;font-variant-numeric:tabular-nums}
html body .hbm-sum{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line2);font-size:12px;color:var(--sub)}
html body .hbm-sum b{color:var(--ink);font-weight:700}
html body .hbm-ed{margin-left:auto;border:1px solid var(--line);background:none;border-radius:999px;padding:4px 11px;font:inherit;font-size:11.5px;color:var(--sub);cursor:pointer}
html body .hbm-empty{text-align:center;padding:44px 12px;color:var(--sub);font-size:13px;line-height:1.6}
html body .hbm-empty .btn{margin-top:12px}
html body.dev-phone .hbm-wrap{padding:12px 10px 10px}
html body.dev-phone .hbm{grid-template-columns:52px repeat(var(--dim),minmax(0,1fr)) 30px;gap:6px 1.5px}
html body.dev-phone .hbm-d{font-size:9px}
html body.dev-phone .hbm-d:not(.k){visibility:hidden}
html body.dev-phone .hbm-n{font-size:11px;padding-right:4px}
html body.dev-phone .hbm-x{border-radius:2px}
html body.dev-phone .hbm-p{font-size:10px}
html body.dev-phone .hbm-sum{font-size:11px;gap:4px 12px}

/* 설정 › 습관 */
html body .hb-ed .hb-no{flex:none;width:18px;text-align:center;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
html body .hb-pre{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 10px}
html body .hb-chip{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:5px 11px;font:inherit;font-size:12.5px;color:var(--sub2,var(--sub));cursor:pointer}
html body .hb-chip:hover{border-color:var(--accent);color:var(--accent)}

/* 습관 아이콘 (Tabler Icons): TASKS 이름 앞 · 시간표 막대 · 월간 표 · 설정 */
html body .hb-ic{width:1.05em;height:1.05em;flex:none;vertical-align:-.16em;margin-right:5px;color:var(--sub);stroke-width:1.9}
html body .hb-todos .todo-t{display:flex;align-items:center;min-width:0}
html body .hb-todos .todo-t .hl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .hb-todos .m-o .hb-ic{color:var(--accent)}
html body .bar-ic{width:1.1em;height:1.1em;flex:none;vertical-align:-.18em;margin-right:2px;stroke-width:2.1}
html body .hbm-n{display:flex;align-items:center;gap:4px;min-width:0}
html body .hbm-n span{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body .hbm-n .hb-ic{margin:0;width:14px;height:14px}
html body.dev-phone .hbm{grid-template-columns:74px repeat(var(--dim),minmax(0,1fr)) 28px}
html body.dev-phone .hbm-n .hb-ic{width:12px;height:12px}
html body .hb-chip{display:inline-flex;align-items:center;gap:5px}
html body .hb-chip .hb-ic{margin:0;width:15px;height:15px}
html body .hb-ed2{padding:6px 0 8px;border-bottom:1px solid var(--line2)}
html body .hb-ed2:last-of-type{border-bottom:0}
html body .hb-icb{flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--card);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
html body .hb-icb .hb-ic{margin:0;width:19px;height:19px;color:var(--ink)}
html body .hb-icb.on{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}
html body .hb-time{display:flex;align-items:center;gap:6px;margin:4px 0 0 42px;font-size:12px;color:var(--sub)}
html body .hb-time .ed-in.fx-t{width:66px;min-width:66px;flex:none;text-align:center;padding-left:4px;padding-right:4px}
html body .hb-time small{color:var(--faint);font-size:11px;margin-left:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body .hb-time>span{white-space:nowrap;flex:none}
html body .hb-icgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:4px;margin:8px 0 2px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--card);max-height:min(260px,40dvh);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
html body .hb-icgrid button{height:36px;border:0;border-radius:8px;background:none;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
html body .hb-icgrid button:hover{background:var(--soft2)}
html body .hb-icgrid button.on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
html body .hb-icgrid button .hb-ic{margin:0;width:21px;height:21px;color:inherit}
html body .hb-icgrid .hb-auto{grid-column:span 2;font:inherit;font-size:12px;color:var(--sub)}

/* ── 큰 화면도 휴대폰처럼: 오른쪽 세로 막대(보기·날짜·형광펜·도구) 없애고 위 가운데 막대 하나 (주간·일간·월간·홈 · ‹ 오늘 › · 설정).
   형광펜은 휴대폰처럼 시간표 칸을 끌면 고르고, 필기·스티커는 아래 툭 적기 칸에 ── */
html body.dev-pad .rail{display:none}
html body.dev-pad .tabbar{display:flex;position:fixed;top:12px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(620px,calc(100% - 24px));height:46px;padding:0 7px;border:0;border-radius:23px;align-items:center;gap:6px;box-shadow:0 2px 12px rgba(20,30,40,.1);z-index:40;box-sizing:border-box}
html body.dev-pad .tabbar button{flex:none;flex-direction:row;font-size:13.5px}
html body.dev-pad .tabbar .tb-seg button{padding:0 14px}
html body.dev-pad .tabbar .tb-zoom{display:none}
html body.dev-pad .tabbar .tb-nav{margin-left:auto;width:32px;height:32px;border-radius:50%;justify-content:center;color:var(--sub)}
html body.dev-pad .tabbar .tb-nav+.tb-today{margin-left:0}
html body.dev-pad .tabbar .tb-today~.tb-nav{margin-left:0}
html body.dev-pad .tabbar .tb-nav:hover{background:var(--soft)}
html body.dev-pad .app{padding:72px 18px 110px}
html body.dev-pad .quick{left:50%;width:min(760px,calc(100% - 40px))}
html body.dev-pad .stk-btn{display:flex}
/* 위 막대에 ‹ 오늘 › 이 생겨서 큰 화면 주간·월간 머리의 같은 단추는 뺀다 */
html body.dev-pad .wk-page .pg-nav{display:none}

/* ── 습관 네 갈래: 순간(목표 시각·한 시각) · 횟수(3/8) · 시간표 표시 · 월간 공부/생활 묶음 · 설정 갈래 ── */
html body .hb-todos .hb-at{margin-left:6px;font-family:Pretendard,sans-serif;font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
html body .hb-todos .hb-did{margin-left:4px;font-family:Pretendard,sans-serif;font-size:11px;color:var(--accent);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
html body .hb-todos .hb-did::before{content:"✓ "}
html body .tk-row .chk.hb-cnt{width:auto;min-width:30px;padding:0 4px;border-style:dotted;font:600 10.5px/1 Pretendard,sans-serif;color:var(--sub);font-variant-numeric:tabular-nums;display:grid;place-items:center;grid-auto-flow:column;gap:0}
html body .tk-row .chk.hb-cnt i{font-style:normal;color:var(--faint);margin:0 1px}
html body .tk-row .chk.hb-cnt.part{border-style:solid;border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--accent)}
html body .tk-row .chk.hb-cnt.full{border-style:solid;border-color:color-mix(in srgb,var(--accent) 65%,transparent);background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
html body.dev-phone .tk-row .chk.hb-cnt{min-width:24px;height:15px;font-size:9px;padding:0 2px}
html body.dev-pad .tk-row .chk.hb-cnt{min-width:38px;height:26px;font-size:11.5px}
/* 시간표: 순간 습관 표시 (가는 점선 + 아이콘) */
html body .ln-row .hb-mark{position:absolute;top:0;bottom:0;width:0;border-left:1.5px dashed var(--faint2);z-index:3;pointer-events:none}
html body .ln-row .hb-mark .hb-mk-ic{position:absolute;top:50%;left:3px;transform:translateY(-50%);width:15px;height:15px;color:var(--sub);background:var(--board);border-radius:4px;stroke-width:2}
html body .ln-row .hb-mark.on{border-left-color:var(--accent)}
html body .ln-row .hb-mark.on .hb-mk-ic{color:var(--accent)}
html body.dev-phone .ln-row .hb-mark .hb-mk-ic{width:11px;height:11px;left:2px}
/* 월간 표: 공부/생활 묶음 이름, 과목 색 점, 횟수는 센 만큼 */
html body .hbm-g{grid-column:1/-1;font-size:10.5px;font-weight:700;letter-spacing:.06em;color:var(--faint);margin-top:4px}
html body .hbm-dot{flex:none;width:8px;height:8px;border-radius:50%}
html body .hbm-x.part{background:color-mix(in srgb,var(--accent) calc(var(--f) * 72%),transparent);border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
/* 설정 › 습관: 공부 과목 칩 · 갈래 고르기 · 순간/시간/횟수/체크 */
html body .hb-sj{flex:none;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-size:12.5px;color:var(--ink);white-space:nowrap}
html body .hb-sj i{width:8px;height:8px;border-radius:50%;background:var(--dot)}
html body .hb-opt{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0 42px}
html body .hb-cat{height:28px;border:1px solid var(--line);border-radius:8px;background:var(--card);font:inherit;font-size:12px;color:var(--ink);padding:0 6px}
html body .hb-kinds{display:inline-flex;background:var(--soft);border-radius:9px;padding:2px;gap:2px}
html body .hb-kinds button{height:24px;padding:0 9px;border:0;border-radius:7px;background:none;font:inherit;font-size:11.5px;color:var(--sub);cursor:pointer}
html body .hb-kinds button.on{background:var(--card);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(20,30,40,.12)}
html body .hb-time .hb-goal{width:44px!important;min-width:44px!important}
html body .hb-time .hb-unit{width:58px;flex:none;text-align:center;padding:0 4px}
html body .hb-repeat{display:flex;align-items:center;gap:9px;width:calc(100% - 42px);margin:7px 0 0 42px;padding:7px 0;border:0;background:none;text-align:left;font:inherit;font-size:12px;color:var(--sub);cursor:pointer}
html body .hb-repeat b{flex:1;min-width:0;color:var(--ink);font-weight:500}
html body .hb-repeat i{font-style:normal;font-size:19px;color:var(--faint)}
html body .repeat-picker{z-index:57;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto}
html body .repeat-backdrop{z-index:56}
html body .repeat-picker .m-msg{font-size:14px;font-weight:400;text-align:left}
html body .repeat-title{font-size:19px;font-weight:700;color:var(--ink)}
html body .repeat-name{margin:5px 0 19px;color:var(--sub);font-size:13px;overflow-wrap:anywhere}
html body .repeat-field{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px}
html body .repeat-field>span{width:46px;flex:none;color:var(--sub)}
html body .repeat-field select,html body .repeat-field input{min-width:0;flex:1;width:100%;height:38px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:inherit;font-size:13px;color-scheme:light dark}
html body .repeat-days{display:flex;justify-content:space-between;gap:3px;margin:0 0 17px;padding:0;border:0}
html body .repeat-days[hidden]{display:none}
html body .repeat-days legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body .repeat-days label{position:relative;flex:1;cursor:pointer}
html body .repeat-days input{position:absolute;opacity:0;width:100%;height:100%;margin:0}
html body .repeat-days span{display:grid;place-items:center;height:34px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:var(--card);color:var(--sub)}
html body .repeat-days input:checked+span{background:var(--ink);border-color:var(--ink);color:var(--card)}
html body .repeat-days input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
html body .repeat-note{margin:14px 0 0;font-size:11px;line-height:1.55;color:var(--sub)}
html body .repeat-error{margin:8px 0 0;font-size:12px;color:var(--accent)}
html body .ln-row.mk0 .bar:not(.cl) em{padding-left:19px}
html body.dev-phone .ln-row.mk0 .bar:not(.cl) em{padding-left:14px}
/* 학교·근무·학원 시간표: 머리는 요일만 (월 화 수 목 금) */
html body .wt-dh{padding:7px 0 6px}
html body .wt-dh b{font-family:Pretendard,sans-serif;font-weight:700;font-size:13px}
html body.dev-pad .wt-dh b{font-size:14.5px}
html body .wt-dh.sat b{color:var(--blue)}
html body .wt-dh.today b{background:none;color:var(--card);background-color:var(--ink);border-radius:999px;padding:1px 8px}
html body .wt-note{margin:8px 2px 0;font-size:11.5px;color:var(--faint)}

/* ── 바인더 탭: 종이 오른쪽 가장자리에 튀어나온 칸막이 (주간 플래너·시간표, 월간 달력·습관). 고른 칸은 종이와 이어 붙고 바깥에 기본 컬러 띠 ── */
html body .wk-page.has-binder{margin-right:22px}
html body.dev-pad .wk-page.has-binder{margin-right:38px}
html body .binder{position:absolute;left:100%;top:64px;display:flex;flex-direction:column;gap:6px;z-index:1}
html body .bd-t{display:flex;align-items:center;justify-content:center;width:22px;min-height:62px;padding:10px 0;margin:0;border:1px solid var(--line);border-left:0;border-radius:0 9px 9px 0;background:color-mix(in srgb,var(--board) 88%,var(--ink) 7%);color:var(--sub);writing-mode:vertical-rl;font:600 11.5px/1 Pretendard,sans-serif;letter-spacing:.12em;cursor:pointer;box-shadow:2px 2px 6px rgba(20,30,40,.06);-webkit-tap-highlight-color:transparent}
html body .bd-t:hover{color:var(--ink)}
html body .bd-t.on{background:var(--board);color:var(--ink);font-weight:700;border-right:3px solid var(--accent);margin-left:-1px;width:23px;box-shadow:3px 2px 8px rgba(20,30,40,.08)}
html body .bd-t .bd-x{display:none}
html body.dev-pad .binder{top:92px;gap:8px}
html body.dev-pad .bd-t{width:36px;min-height:118px;font-size:13.5px}
html body.dev-pad .bd-t.on{width:37px}
html body.dev-pad .bd-t .bd-x{display:inline}
html body .hbm-wrap{border-radius:8px}
#wkCols{cursor:grab}
html body:not(.dev-phone) #wkCols{cursor:auto}

/* ── 큰 화면 하루 쪽 머리: 원래 두 줄 모양 그대로 (위 DATE · D-DAY, 아래 COMMENT · TOTAL), 칸 높이만 줄여서 아래 줄 자리를 확보 ── */
html body.dev-pad .sheet-head{row-gap:6px;margin-bottom:12px}
html body.dev-pad #slotDate,html body.dev-pad #ddaySec,html body.dev-pad .prev-page .m-date,html body.dev-pad .prev-page .m-dday{height:58px;overflow:hidden}
html body.dev-pad .sheet-head .dd-i b{font-size:15px;line-height:1.1}
html body.dev-pad .sheet-head .dd-i{padding:0!important}
html body.dev-pad .sheet-head .sh-lab{height:auto!important;min-height:14px!important}
html body.dev-pad #midRow,html body.dev-pad #slotTotal,html body.dev-pad .prev-page .m-goal,html body.dev-pad .prev-page .m-total{height:60px;overflow:hidden;padding-bottom:4px;box-sizing:border-box}
html body.dev-pad .sheet-head .sh-lab{margin-bottom:3px}
html body.dev-pad .sheet-head .date-main{font-size:clamp(24px,2.2vw,32px)}
html body.dev-pad #slotTotal .stat-val,html body.dev-pad .prev-page .m-total .stat-val{font-size:clamp(25px,2.3vw,32px);line-height:1}
html body.dev-pad #slotTotal .stat-sub{font-size:10.5px;margin-top:1px;line-height:1.1}
html body.dev-pad #midRow{gap:0}
html body.dev-pad #goal{min-height:0;line-height:1.35}
html body.dev-pad .sheet-head .dd-i{font-size:12px;line-height:1.25}
html body.dev-pad .sheet-head .dd-list{gap:0!important}
html body.dev-pad .sheet-head > *{margin-top:0!important;padding-top:0!important}
html body.dev-pad .sheet-head #big3Card{display:none}

/* ── 큰 화면 글씨: 휴대폰과 같은 비율로 — 줄 높이(--row)에 맞춰 커지고 작아진다 (휴대폰 줄 28px : 글씨 12.5px) ── */
html body.dev-pad{--fs:max(12.5px, calc(var(--row) * .446))}
html body.dev-pad .sheet .tk-row .todo-t,html body.dev-pad .sheet .tk-row.blank .todo-in,html body.dev-pad .sheet .tk-row .hl,html body.dev-pad .sheet .tk-row .todo-in{font-size:var(--fs);line-height:1.3}
/* 10/17 아이패드 할 일 글자도 아이폰처럼 줄 가운데에 (사용자 "아이폰에선 가운데로 잘 나오잖아") — 위아래 6px 여백(.tk-row .todo-t)이 줄 높이보다 커서
   글줄이 아래로 밀려 밑줄에 붙고 과목 이름표보다 낮았다. 여백을 빼면 단추·입력 칸이 글자를 세로 가운데에 놓는다 */
html body.dev-pad .sheet .tk-row :is(.todo-t,.todo-in){padding-top:0;padding-bottom:0}
/* 고치는 줄의 입력 칸은 줄 높이에 꽉 — 빨간 밑줄이 종이 밑줄 위에 온다 (전엔 여백만큼 커져 다음 줄로 내려갔다) */
html body.dev-pad .sheet .tk-row .tk-ed{align-self:stretch}
html body.dev-pad .sheet .tk-row .tk-ed .todo-in{align-self:stretch;height:auto;box-sizing:border-box}
html body.dev-pad .sheet .tk-row .tk-lab{font-size:max(9.5px, calc(var(--row) * .34))}
html body.dev-pad .sheet .tk-row .chk:not(.hb-cnt){width:max(15px, calc(var(--row) * .54));height:max(15px, calc(var(--row) * .54))}
html body.dev-pad .sheet .tk-row .chk .mkg{font-size:max(12px, calc(var(--row) * .43))}
html body.dev-pad .sheet .tk-row .rp,html body.dev-pad .sheet .tk-row .star{font-size:max(9px, calc(var(--row) * .32))}
html body.dev-pad .sheet .tk-row .pl{font-size:max(9.5px, calc(var(--row) * .34))}
html body.dev-pad .sheet .sh-lab,html body.dev-pad .sheet-head .sh-lab{font-size:max(9.5px, calc(var(--row) * .35))}
html body.dev-pad .sheet .tk-cnt,html body.dev-pad .sheet .tk-tabs{font-size:max(10px, calc(var(--row) * .38))}
html body.dev-pad .sheet .ln-h{font-size:max(10px, calc(var(--row) * .36))}
html body.dev-pad .sheet .ln-h span{width:max(17px, calc(var(--row) * .6));height:max(17px, calc(var(--row) * .6))}
html body.dev-pad .sheet .ln-row .bar em{font-size:var(--fs)}
html body.dev-pad #memo,html body.dev-pad .prev-page .m-memo{font-size:var(--fs)}
html body.dev-pad #goal,html body.dev-pad .prev-page .m-goal .m-text{font-size:var(--fs)}
html body.dev-pad .sheet .hb-todos .hb-at,html body.dev-pad .sheet .hb-todos .hb-did{font-size:max(9.5px, calc(var(--row) * .36))}
html body.dev-pad .sheet .tk-row .chk.hb-cnt{height:max(15px, calc(var(--row) * .54));min-width:max(26px, calc(var(--row) * 1.1));font-size:max(9.5px, calc(var(--row) * .34))}
html body.dev-pad .sheet .hb-todos .tk-lab .hb-ic{width:max(13px, calc(var(--row) * .46));height:max(13px, calc(var(--row) * .46))}
html body.dev-pad .sheet .carry{font-size:max(10px, calc(var(--row) * .38))}

/* ── 꺼내 보는 카드 (주간 '▦ 시간표', 월간 '▦ 습관'): 제목 옆 작은 단추 → 아래에서 올라오는 시트 ── */
html body .pg-rr{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body .pg-card{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);font:600 12px/1 Pretendard,sans-serif;color:var(--ink);cursor:pointer;white-space:nowrap;letter-spacing:0;-webkit-tap-highlight-color:transparent}
html body .pg-card:hover{border-color:var(--accent);color:var(--accent)}
html body.dev-pad .pg-card{height:30px;padding:0 12px;font-size:13px}
.pcard{position:fixed;inset:0;z-index:44;pointer-events:none}
.pcard .pc-scrim{position:absolute;inset:0;background:rgba(20,25,35,0);transition:background .24s ease;pointer-events:auto}
.pcard.open .pc-scrim{background:rgba(20,25,35,.26)}
.pcard .pc-sheet{position:absolute;left:50%;bottom:0;width:min(100%,920px);max-height:84vh;box-sizing:border-box;display:flex;flex-direction:column;transform:translate(-50%,100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);background:var(--board);border-radius:18px 18px 0 0;box-shadow:0 -10px 34px rgba(20,30,40,.18);padding:0 14px calc(16px + env(safe-area-inset-bottom));pointer-events:auto}
.pcard.open .pc-sheet{transform:translate(-50%,0)}
.pcard .pc-grab{flex:none;height:24px;display:grid;place-items:center;cursor:grab;touch-action:none}
.pcard .pc-grab i{width:42px;height:4px;border-radius:2px;background:var(--line)}
.pcard .pc-h{flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 2px 10px}
.pcard .pc-h b{font-size:15px;font-weight:700;color:var(--ink)}
.pcard .pc-x{width:30px;height:30px;border-radius:50%;border:0;background:var(--soft2);display:grid;place-items:center;color:var(--sub);cursor:pointer}
.pcard .pc-body{overflow:auto;min-height:0;overscroll-behavior:contain}
body.dev-pad .pcard .pc-sheet{padding:0 22px calc(20px + env(safe-area-inset-bottom))}
html body.dev-phone .pg-card .pc-k{display:none}
html body.dev-phone .pg-card{height:24px;padding:0 8px;font-size:11.5px;gap:4px}
html body .pg-head{min-width:0}
html body .pg-head .pg-title{flex:none}
html body .pg-head .pg-info{min-width:0;flex:1 1 auto;overflow:hidden}
/* 큰 화면 줄 맞춤: 과목 칸 최소 높이(28px) 때문에 줄보다 높은 칸 기준으로 네모가 내려가던 것 → 줄 높이 안에서 가운데 / 형광펜 막대는 휴대폰처럼 줄의 약 80% */
html body.dev-pad .sheet .tk-row{grid-template-rows:minmax(0,1fr);align-items:center}
html body.dev-pad .sheet .tk-row > *{min-height:0;max-height:100%}
html body.dev-pad .sheet .tk-row .tk-lab{height:100%;min-height:0}
html body.dev-pad .sheet .tk-row .chk{align-self:center;margin:0}
html body.dev-pad .sheet .ln-row .bar{top:calc(var(--row) * .11);bottom:calc(var(--row) * .11)}

/* 고르기 창의 링크 항목 (구글 캘린더에 넣기) */
.choice .ch-link{display:block;text-align:left;padding:11px 12px;border:1px solid var(--line);border-radius:11px;font-size:13.5px;color:inherit;text-decoration:none}
.choice .ch-link:hover{background:var(--hover)}
/* ── 주간 한눈에: 휴대폰은 제목 줄 빼고 요일 줄만 (▦ 시간표는 요일 줄 끝), 큰 화면은 제목만 ── */
html body.dev-phone .wk-page:not(.mo-page) > .pg-head{display:none}
html body .ws-card{display:none}
html body.dev-phone .ws-card{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);cursor:pointer;margin-left:2px}
html body.dev-phone .wk-page:not(.mo-page){padding-top:8px}
/* ── 주간 작은 시간표: 한 시간에 한 줄, 시각 숫자 모두, 시각 칸과 시간표 사이·위·아래는 또렷한 실선, 10분 세로선은 아주 옅게, 학교 수업은 이름 없이 옅은 띠 ── */
html body .wk-page .wk-tt .ln-row{height:var(--wkh,15px)!important;border-top:0!important;border-bottom:1px solid var(--line2)!important}
html body.dev-phone .wk-page .wk-tt .ln-row{height:var(--wkh,21px)!important}
html body .wk-page .wk-tt .ln-row .ln-h span{visibility:visible!important}
html body .wk-page .wk-tt .ln-h{border-right:1.5px solid var(--ink);font-size:9px;font-weight:600}
html body .wk-page .wk-tt{border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink)}
html body .wk-page .wk-tt .c.ln{border-left:1px dotted color-mix(in srgb,var(--line) 55%,transparent)!important}
html body .wk-page .wk-tt .c.ln:first-of-type{border-left-color:transparent!important}
html body .wk-page .wk-tt .bar.sch{opacity:.5}
html body .wk-page .wk-tt .bar.sch em,html body .wk-page .wk-tt .bar.sch::after{display:none!important}
/* 패드 세로(1000px 아래)도 가로처럼 두 칸: 왼쪽 할 일·메모, 오른쪽 시간표 (한 줄로 쌓지 않는다) */
@media (max-width:999px){
  html body.dev-pad .sheet{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:0 24px}
  html body.dev-pad .sheet-r{align-self:stretch}
}
/* 큰 화면 주간: 위 막대의 ▦ 시간표 카드 단추 (제목 줄을 뺀 대신) */
html body .tabbar .tb-card{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 12px;margin-left:6px;border:1px solid var(--line);border-radius:999px;background:var(--card);font:600 13px/1 Pretendard,sans-serif;color:var(--ink);cursor:pointer;white-space:nowrap}
html body .tabbar .tb-card:hover{border-color:var(--accent);color:var(--accent)}
/* ════ 책상 위 종이 (10/11): 종이는 어느 기기든 같은 설계 크기·비율, fitPage 가 책상(위 막대~아래 적기 칸)에 맞춰 zoom ════ */
:root{--pw:374px;--ph:584px}
/* 하루: 세로 화면(휴대폰·패드 세로)은 .board 가 종이 한 장, 큰 화면 가로는 .spread 안 두 쪽 */
html body.dev-phone.view-day:not(.zoom-write):not(.zoom-time) .board{background:none;box-shadow:none;border-radius:0;padding:0}
html body.dev-phone.view-day:not(.zoom-write):not(.zoom-time) .spread{width:max-content;max-width:none;margin:0 auto}
html body.dev-phone.view-day:not(.zoom-write):not(.zoom-time) .cur-page{width:var(--pw);min-height:var(--ph);box-sizing:border-box;background:var(--board);border-radius:6px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 6px 20px rgba(20,30,40,.08)}
html body.dev-pad.view-day .spread{width:max-content;max-width:none;margin:0 auto}
html body.dev-pad.view-day .page{width:var(--pw);min-height:var(--ph);box-sizing:border-box}
html body.dev-pad.spread-on.view-day .spread{grid-template-columns:var(--pw) var(--pw)}
/* 위 막대 맨 왼쪽 ▦ (주간 = 시간표, 월간 = 습관) */
html body .tabbar .tb-card{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;margin:0 4px 0 0;gap:0;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink)}
/* 주간: 요일 줄은 책상 위(종이 밖), 종이 안은 요일 칸만. 칸 폭·줄 높이는 고정 (기기마다 같은 비율) */
html body.dev-phone .wk-strip-wrap{margin:0 0 8px;padding:0 2px}
html body .wk-page:not(.mo-page){--wkh:15px}
html body.dev-phone .wk-page:not(.mo-page){padding:10px 10px 12px;margin-top:0}
html body.dev-pad .wk-page:not(.mo-page){width:max-content;max-width:none;margin:0 auto;padding:14px 14px 16px}
html body .wk-page .wk-cols{display:flex!important;gap:6px;border:0!important;border-radius:0;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}
html body.dev-pad .wk-page .wk-cols{overflow:visible;scroll-snap-type:none}
html body .wk-page .wk-col{flex:0 0 146px!important;width:146px;min-width:0;border:0!important;background:none!important;scroll-snap-align:start;display:flex;flex-direction:column}
/* 요일 한 칸 = 따로 선 상자 (원본처럼), 그날 합계는 상자 밖 밑줄 위 H · M */
html body .wk-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:3px;background:var(--board);padding:0 6px 6px}
html body .wk-card .wk-ch{padding:8px 2px 6px}
html body .wk-card .wk-t{height:28px;padding:0;gap:4px;border-bottom:1px solid var(--line2)}
html body .wk-card .wk-t:nth-child(4n){border-bottom-color:var(--line2)}
html body .wk-card .wk-tt-t{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;white-space:nowrap;font-family:var(--hand);font-size:13px;color:var(--text)}
html body .wk-card .wk-x{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body .wk-card .wk-tm{flex:none;font:600 9.5px/1 Pretendard,sans-serif;color:var(--sub)}
html body .wk-card .wk-t .star{flex:none;color:var(--accent);font-size:10px}
html body .wk-card .wk-t.m-o .wk-x,html body .wk-card .wk-t.m-arrow .wk-x{color:var(--sub)}
html body .wk-card .wk-more{font-size:11.5px}
/* 작은 시간표: 시각 칸은 좁게, 숫자는 가운데 */
html body .wk-page .wk-tt{--hc:15px;margin-top:0}
html body .wk-page .wk-tt .ln-h{border-right:1px solid var(--ink);font-size:8.5px;font-weight:600;padding:0}
html body .wk-page .wk-tt .ln-h span{width:auto;height:auto;border-radius:0;background:none!important;color:inherit}
html body .wk-page .wk-tt .ln-h.now span{color:var(--accent);font-weight:800}
html body .wk-total{display:grid;grid-template-columns:1fr 1fr;margin:5px 7px 0;padding:0 0 3px;border:0!important;border-bottom:1px solid var(--line)!important;background:none;text-align:right;font:inherit}
html body .wk-total span{display:flex;justify-content:flex-end;align-items:flex-end;gap:2px;height:17px}
html body .wk-total b{font-family:var(--round);font-weight:900;font-size:15px;line-height:1;color:var(--text)}
html body .wk-total small{font:600 8px/1 Pretendard,sans-serif;letter-spacing:.05em;color:var(--sub);margin:0}
html body .wk-col.today .wk-total b{color:var(--accent)}
/* 하루 쪽: 할 일 줄(--row)과 시간표 줄(--trow)은 따로 — 둘 다 종이 아래끝까지 (원본처럼 할 일 15줄 + 메모 3줄 / 시간표 24줄) */
html body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .ln-row,html body.dev-pad .sheet .ln-row{height:var(--trow,var(--row))!important;flex:0 0 var(--trow,var(--row))!important;min-height:0!important}
html body.dev-pad .sheet .ln-row .bar{top:calc(var(--trow,var(--row)) * .12);bottom:calc(var(--trow,var(--row)) * .12)}
html body.dev-pad .sheet .ln-h{font-size:max(9.5px, calc(var(--trow,var(--row)) * .52))}
html body.dev-pad .sheet .ln-h span{width:max(15px, calc(var(--trow,var(--row)) * .9));height:max(15px, calc(var(--trow,var(--row)) * .9))}
html body.dev-phone:not(.zoom-write):not(.zoom-time) .sheet .ln-h span{width:16px;height:16px}
html body.dev-pad #memo,html body.dev-pad .prev-page .m-memo,html body.dev-phone:not(.zoom-write):not(.zoom-time) #memo{height:calc(var(--row) * 3)!important}
/* 머리·칸 이름표(DATE · COMMENT · TASKS …)는 작게 */
html body .sheet-head .sh-lab,html body .sheet .sh-lab{font-size:8.5px!important;font-weight:600;letter-spacing:.04em}
/* 종이 여백: 휴대폰 한 쪽과 큰 화면 한 쪽이 같게 */
html body.dev-phone.view-day:not(.zoom-write):not(.zoom-time) .cur-page{padding:14px 14px 12px}
html body.dev-pad.view-day .page{padding:14px 14px 12px}
/* 큰 화면 가로 두 쪽도 휴대폰 한 쪽과 같은 모양 (같은 설계 크기, 같은 칸 비율·글씨) */
html body.dev-pad .sheet-head,html body.dev-pad .sheet{grid-template-columns:minmax(0,1.87fr) minmax(0,1fr);column-gap:12px}
html body.dev-pad .sheet-head{row-gap:4px;margin-bottom:12px}
html body.dev-pad #slotDate,html body.dev-pad #ddaySec,html body.dev-pad .prev-page .m-date,html body.dev-pad .prev-page .m-dday{height:47px}
html body.dev-pad #midRow,html body.dev-pad #slotTotal,html body.dev-pad .prev-page .m-goal,html body.dev-pad .prev-page .m-total{height:45px;padding-bottom:0}
html body.dev-pad .sheet-head .date-main{font-size:21px}
html body.dev-pad #slotTotal .stat-val,html body.dev-pad .prev-page .m-total .stat-val{font-size:26px}
html body.dev-pad .sheet .sh-lab{height:12px;min-height:0;margin:0 0 2px;line-height:12px}
html body.dev-pad .sheet .todo.tk-row{grid-template-columns:30px minmax(0,1fr) auto 16px;gap:0 5px}
html body.dev-pad .sheet .tk-row.blank,html body.dev-pad .sheet .tk-row.editing{grid-template-columns:30px minmax(0,1fr) 16px;gap:0 5px}
html body.dev-pad .sheet .tk-row .tk-lab{font-size:9.5px;padding:0 3px 0 0}
html body.dev-pad .sheet .tt{--hc:16px}
html body.dev-pad .sheet .ln-h{font-size:10px}
html body.dev-pad .sheet .memo-sec::before{left:30px}
html body.dev-pad #memo,html body.dev-pad .prev-page .m-memo{padding-left:35px}
/* 월간: 넘기기는 종이를 옆으로 밀기 · 위 막대 '오늘', 멀리 갈 때는 제목 '10월' 눌러 달 고르기 */
html body .mo-pickbtn{display:inline-flex;align-items:center;gap:3px;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}
html body .mo-pickbtn .mo-caret{color:var(--sub);flex:none;margin-top:4px}
.mpick{width:250px}
.mpick .mp-h{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.mpick .mp-h b{font-family:var(--round);font-weight:800;font-size:16px;color:var(--text)}
.mpick .mp-h button{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:var(--ink)}
.mpick .mp-h button:hover{background:var(--hover)}
.mpick .mp-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mpick .mp-g button{height:40px;border-radius:10px;font-size:14px;font-weight:600;color:var(--text);background:var(--soft2)}
.mpick .mp-g button:hover{background:var(--hover)}
.mpick .mp-g button.now{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent)}
.mpick .mp-g button.on{background:var(--ink);color:var(--card);box-shadow:none}
.mpick .mp-g button:disabled{opacity:.3;cursor:default}
/* 책상 위 스톱워치 (종이 밖, 열품타처럼): 카드 없이 책상 위 시계처럼 — 눈이 가는 건 숫자 하나.
   플래너 크기는 그대로, 종이 위 남은 높이(--dth)만큼 크게(big)·보통(mid)·작게(small) / 큰 화면 가로는 종이 오른쪽(tall) / 자리가 없으면 적기 칸 단추 */
.dtimer{position:fixed;z-index:30;box-sizing:border-box}
.dtimer[hidden]{display:none}
.dt-card{display:flex;align-items:center;gap:12px;height:100%;padding:0 6px 0 4px;box-sizing:border-box;background:none}
.dt-sub{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:24px;padding:0;background:none;font-size:13px;font-weight:600;color:var(--sub2)}
.dt-sub span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt-sub em{flex:none;font-style:normal;font-weight:500;color:var(--sub)}
.dt-sub .dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--dot)}
.dt-card.run .dt-sub .dot{animation:dt-blink 1.6s ease-in-out infinite}
@keyframes dt-blink{50%{opacity:.25}}
.dt-time{flex:1;min-width:0;font-family:Pretendard,sans-serif;font-weight:500;font-size:24px;line-height:1;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.dt-go{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:none;border:1.5px solid var(--ink);color:var(--ink)}
.dt-card.run .dt-go{background:var(--dot);border-color:var(--dot);color:#fff}
.dt-go .tri{width:0;height:0;border-left:11px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px}
.dt-go .sq{width:11px;height:11px;border-radius:2px;background:currentColor}
/* 크게: 과목 한 줄 위, 큰 숫자, 오른쪽 단추 */
.dtimer.big .dt-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);gap:2px 12px;padding:6px 8px 4px 6px}
.dtimer.big .dt-sub{grid-area:1/1;justify-self:start}
.dtimer.big .dt-time{grid-area:2/1;align-self:center;font-size:clamp(34px, calc(var(--dth) * .46), 66px);font-weight:400}
.dtimer.big .dt-go{grid-area:1/2/3/3;align-self:center;width:52px;height:52px}
.dtimer.big .dt-go .tri{border-left-width:13px;border-top-width:8px;border-bottom-width:8px}
.dtimer.big .dt-go .sq{width:13px;height:13px}
/* 보통 */
.dtimer.mid .dt-time{font-size:clamp(24px, calc(var(--dth) * .45), 34px)}
/* 작게 */
.dtimer.small .dt-card{gap:10px}
.dtimer.small .dt-time{font-size:19px}
.dtimer.small .dt-go{width:32px;height:32px}
.dtimer.small .dt-go .tri{border-left-width:9px;border-top-width:5.5px;border-bottom-width:5.5px;margin-left:2px}
.dtimer.small .dt-go .sq{width:9px;height:9px}
/* 큰 화면 가로: 종이 오른쪽 책상에 세로로 */
.dtimer.tall .dt-card{flex-direction:column;align-items:center;justify-content:flex-start;height:auto;gap:10px;padding:8px 0}
.dtimer.tall .dt-time{flex:none;font-size:28px;font-weight:400}
.dtimer.tall .dt-go{width:48px;height:48px}
/* 자리가 없을 때: 적기 칸 안 단추 */
html body .quick .dt-chip{display:flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:36px;padding:0 8px;border-radius:12px}
html body .quick .dt-chip[hidden]{display:none}
html body .quick .dt-chip.run{background:var(--accent);color:#fff}
html body .quick .dt-chip .dt-time{font-family:Pretendard,sans-serif;font-weight:600;font-size:13px;color:inherit;flex:none;letter-spacing:0}
.dt-pop .dt-card{padding:0;height:48px;width:260px;max-width:100%}
.dt-subs .pick.on{background:var(--soft2);font-weight:700}
.dt-subs .dt-auto i{background:none;box-shadow:inset 0 0 0 1.5px var(--sub);border-radius:50%}
/* 늘 가운데 정렬 (사용자 "가운데 정렬… 항상"): 과목·숫자는 한가운데, 단추는 오른쪽 끝에 따로 떠서 숫자를 밀지 않는다 */
.dtimer.big .dt-card,.dtimer.mid .dt-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:0 64px}
.dtimer.big .dt-time,.dtimer.mid .dt-time{flex:none;text-align:center}
.dtimer.big .dt-time{font-size:clamp(34px, min(calc(var(--dth) * .46), calc(var(--dtw, 374px) * .15)), 66px)}
.dtimer.big .dt-go,.dtimer.mid .dt-go{position:absolute;right:6px;top:50%;transform:translateY(-50%)}
.dtimer.mid .dt-go{width:40px;height:40px}
.dtimer.small .dt-card{justify-content:center}
.dtimer.small .dt-time{flex:none}
/* 스톱워치 한 줄(작게): 진짜 휴대폰은 남는 자리가 30px 남짓 */
.dtimer.small .dt-card{gap:10px;padding:0 4px}
.dtimer.small .dt-sub{height:auto;font-size:12.5px}
.dtimer.small .dt-time{font-size:min(20px, calc(var(--dth) * .62))}
.dtimer.small .dt-go{width:min(30px, var(--dth));height:min(30px, var(--dth));border-width:1.3px}
/* 큰 화면 가로·PC: 위 막대를 왼쪽 책상의 세로 막대로 (가로 화면은 높이가 아까워서) */
html body.dev-pad .app{padding:16px 16px 110px 88px}
html body.tab-port .app{padding:16px 16px calc(84px + env(safe-area-inset-bottom)) 88px}
html body:is(.dev-pad,.tab-port) .tabbar{display:grid;grid-template-columns:1fr 1fr;align-content:start;justify-items:stretch;position:fixed;left:12px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:64px;height:auto;padding:8px 6px;gap:6px 2px;border-radius:22px}
html body:is(.dev-pad,.tab-port) .tabbar > *{grid-column:1/-1}
html body:is(.dev-pad,.tab-port) .tabbar .tb-card{order:1;justify-self:center;margin:0 0 2px;width:40px;height:40px}
html body:is(.dev-pad,.tab-port) .tabbar .tb-seg{order:2;display:flex;flex-direction:column;gap:2px;padding:3px;border-radius:16px}
html body:is(.dev-pad,.tab-port) .tabbar .tb-seg button{padding:0;height:38px;justify-content:center;border-radius:12px;font-size:13px}
html body:is(.dev-pad,.tab-port) .tabbar .tb-today{order:3;margin:4px 0 0;height:34px;padding:0;justify-content:center;font-size:13px}
html body:is(.dev-pad,.tab-port) .tabbar .tb-nav{order:4;grid-column:auto;margin:0;width:auto;height:30px;border-radius:10px}
html body:is(.dev-pad,.tab-port) .tabbar .tb-nav~.tb-nav{order:5}
html body:is(.dev-pad,.tab-port) .tabbar .tb-set{order:6;justify-self:center;margin:6px 0 0}
/* 옆에 세로(패드 세로·가로): 폭에 맞춰 숫자 크기, 과목 이름은 줄바꿈해서 가운데 */
html body .dtimer.tall .dt-time{font-size:min(28px, calc(var(--dtw, 132px) * .3))}
html body .dtimer.tall .dt-sub{flex-wrap:wrap;justify-content:center;row-gap:0;height:auto;text-align:center}
html body .dtimer.tall .dt-go{width:min(48px, calc(var(--dtw, 132px) * .5));height:min(48px, calc(var(--dtw, 132px) * .5))}
/* 패드 세로 세로 막대: 휴대폰용 확대 단추는 빼고, 막대 단추 모양 맞춤 */
html body.tab-port .tabbar .tb-zoom{display:none!important}
html body.tab-port .tabbar button{flex-direction:row}
/* TOTAL TIME 옆 작은 ▶ (잴 때는 깜빡이는 점) — 누르면 크게 보는 스톱워치 */
html body #slotTotal,html body .sheet .grid-card{position:relative}
.tt-go{position:absolute;right:0;top:-4px;bottom:auto;display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:1.3px solid var(--sub2);color:var(--sub2);background:none;cursor:pointer;z-index:2}
.tt-go:hover{border-color:var(--ink);color:var(--ink)}
.tt-go .tri{width:0;height:0;border-left:7px solid currentColor;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;margin-left:2px}
.tt-go.run{border-color:var(--accent)}
.tt-go .rec{width:9px;height:9px;border-radius:50%;background:var(--accent);animation:dt-blink 1.6s ease-in-out infinite}
/* 크게 보는 스톱워치: 종이 위에 젖빛 유리, 그 위에 카드 없이 큰 숫자 (열품타처럼) */
.dt-big{position:fixed;inset:0;z-index:44;display:grid;place-items:center}
.dt-big .dtb-scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--bg) 82%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.dtb-box{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;padding:44px 24px 30px;min-width:min(340px,88vw)}
.dtb-box .dt-sub{height:auto;font-size:15px}
.dtb-box .dt-sub .dot{width:10px;height:10px}
.dtb-time{flex:none;font-family:Pretendard,sans-serif;font-weight:300;font-size:clamp(64px,19vw,128px);line-height:1;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums}
.dtb-today{font-size:13.5px;color:var(--sub)}
.dtb-today b{font-family:var(--round);font-weight:800;color:var(--text)}
.dtb-today b small{font-size:.7em}
.dtb-go{width:76px;height:76px;margin-top:6px}
.dtb-go .tri{border-left-width:19px;border-top-width:11.5px;border-bottom-width:11.5px;margin-left:5px}
.dtb-go .sq{width:20px;height:20px;border-radius:4px}
.dtb-box.run .dtb-go{background:var(--dot);border-color:var(--dot);color:#fff}
.dtb-box.run .dt-sub .dot{animation:dt-blink 1.6s ease-in-out infinite}
.dtb-x{position:absolute;top:0;right:0;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--sub2)}
.dtb-x:hover{background:var(--hover)}
/* 왼쪽 막대 위 스톱워치: 숫자를 누르면 크게 보기 */
.dtimer .dt-time[data-dtb-open]{cursor:pointer}
.tt-go{background:var(--board)}
/* 위 막대 맨 왼쪽(▦ 자리) ▶ 스톱워치 단추 — 잴 때는 과목 대신 깜빡이는 빨간 점 */
html body .tabbar .tb-sw .tri{width:0;height:0;border-left:10px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:3px}
html body .tabbar .tb-sw.run{border-color:var(--accent)}
html body .tabbar .tb-sw .rec{width:10px;height:10px;border-radius:50%;background:var(--accent);animation:dt-blink 1.6s ease-in-out infinite}
/* 홈 '오늘' (열품타처럼): 큰 숫자 하나 · 지금 계획대로 ▶ · 과목마다 ▶ */
.st-today .tdy{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}
.st-today .tdy-l{display:flex;flex-direction:column;gap:4px;min-width:0}
.st-today .tdy-v{font-family:var(--round);font-weight:900;font-size:46px;line-height:1;color:var(--accent)}
.st-today .tdy-v small{font-size:.5em;margin:0 1px}
.st-today .tdy-clock{font-family:Pretendard,sans-serif;font-weight:400;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums}
.st-today .tdy-s{font-size:12.5px;color:var(--sub)}
.st-today .tdy-s small{font-size:.75em}
.st-today .tdy-go{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:1.5px solid var(--ink);color:var(--ink);background:none;cursor:pointer}
.st-today.run .tdy-go{background:var(--accent);border-color:var(--accent);color:#fff}
.st-today .tri{width:0;height:0;border-left:15px solid currentColor;border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:4px}
.st-today .sq{width:16px;height:16px;border-radius:3px;background:currentColor}
.st-today .tdy-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.tdy-sub{display:flex;align-items:center;gap:7px;height:40px;padding:0 8px 0 11px;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:left;cursor:pointer;color:var(--text)}
.tdy-sub:hover{border-color:var(--sub)}
.tdy-sub .dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--dot)}
.tdy-sub .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;font-weight:600}
.tdy-sub b{flex:none;font-variant-numeric:tabular-nums;font-size:13px;font-weight:600;color:var(--sub2)}
.tdy-sub .pl{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.2px solid var(--sub);color:var(--sub2)}
.tdy-sub .pl .tri{border-left-width:7px;border-top-width:4.5px;border-bottom-width:4.5px;margin-left:2px}
.tdy-sub.run{border-color:var(--accent)}
.tdy-sub .rec{flex:none;font-style:normal;font-size:12px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.st-today.run .tdy-sub .rec{animation:none}
/* 시간표 카드: 누른 요일·교시 진하게 */
.wt-col.sel{background:color-mix(in srgb,var(--accent) 7%,transparent);border-radius:8px}
.wt-b.sel{box-shadow:inset 0 0 0 2px var(--accent)}
/* 일정 메뉴의 '이 시간 학교 수업' 한 줄 · 툭 적기 안내의 '겹쳐요' · 달 고르기의 습관 보기 */
.pp-schline{display:block;width:100%;box-sizing:border-box;text-align:left;font-size:12.5px;color:var(--sub2);padding:8px 10px;margin:2px 0 6px;border-radius:10px;background:var(--soft2);cursor:pointer}
.pp-schline b{color:var(--text)}
.q-sch{color:var(--accent);font-size:12px}
.mpick .mp-hab{display:block;width:100%;margin-top:10px;height:38px;border-radius:10px;border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--text);background:none;cursor:pointer}
.mpick .mp-hab:hover{background:var(--hover)}
/* 메뉴: 아래에서 올라오는 작은 창 — 맨 위 무엇의 메뉴인지, 가운데 줄 단추(짧은 글자 + 작은 설명), 맨 아래 취소 */
html body .pop.modal.sheet{display:flex;flex-direction:column;align-items:stretch;max-width:none;min-width:0;left:50%;right:auto;top:auto;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(400px,calc(100vw - 16px));padding:6px 8px 8px;border-radius:22px;animation:sheet-up .18s ease-out}
@keyframes sheet-up{from{transform:translate(-50%,28px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
html body .pop.sheet .m-msg{font-size:13px;line-height:1.45;color:var(--sub2);text-align:center;padding:10px 12px 10px;margin:0;border-bottom:1px solid var(--line2);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
html body .pop.sheet .m-msg b{color:var(--text);font-weight:700}
html body .pop.sheet .choice{display:flex;flex-direction:column;gap:0;margin:4px 0 0}
html body .pop.sheet .choice button,html body .pop.sheet .choice .ch-link{border:0;border-radius:14px;padding:12px 14px;font-size:15px;font-weight:500;text-align:center;color:var(--text)}
html body .pop.sheet .choice .danger{color:var(--red)}
html body .pop.sheet .choice small{display:block;font-size:11.5px;font-weight:400;color:var(--sub);margin-top:2px}
html body .pop.sheet .m-btns{display:block;margin-top:4px;padding-top:4px;border-top:1px solid var(--line2)}
html body .pop.sheet .m-btns button{display:block;width:100%;padding:12px;border-radius:14px;font-size:15px;font-weight:700;color:var(--sub2);text-align:center}
html body .pop.sheet .m-btns button:hover,html body .pop.sheet .choice button:hover{background:var(--hover)}
/* 칠하기 막대: 무엇으로 칠하는지 + 무엇을 하면 되는지 + 다 했어요 */
html body #brushBar .bb-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
html body #brushBar .bb-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #brushBar .bb-t small{font-size:11px;color:var(--sub)}
html body #brushBar .bb-done{flex:none;margin-left:auto;height:32px;padding:0 14px;border-radius:16px;background:var(--ink);color:var(--card);font-size:13px;font-weight:700}
/* 할 일·습관·일정 메뉴: 종이와 아래 적기 칸 사이 틈의 한 줄 막대 — 이름 · 짧은 단추들 · × */
html body .pop.strip{display:flex;align-items:center;gap:6px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 16px);min-width:0;height:44px;box-sizing:border-box;padding:0 4px 0 14px;border-radius:22px;animation:strip-up .14s ease-out}
@keyframes strip-up{from{transform:translate(-50%,8px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
html body .pop.strip .st-t{flex:0 1 auto;min-width:0;max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--sub2)}
html body .pop.strip .st-t b{color:var(--text);font-weight:700}
html body .pop.strip .st-ch{display:flex;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:none}
html body .pop.strip .st-ch::-webkit-scrollbar{display:none}
html body .pop.strip .st-ch button,html body .pop.strip .st-ch .ch-link{flex:none;display:inline-flex;align-items:center;height:32px;padding:0 12px;border:0;border-radius:16px;background:var(--soft2);font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;text-decoration:none}
html body .pop.strip .st-ch button:hover,html body .pop.strip .st-ch .ch-link:hover{background:var(--hover)}
html body .pop.strip .st-ch .danger{color:var(--red)}
html body .pop.strip .st-x{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--sub)}
/* 취소 = 오른쪽 위 × (아래 창·한 줄 막대 모두) */
html body .pop.sheet{position:fixed}
html body .pop.sheet .sh-x{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--sub)}
html body .pop.sheet .sh-x:hover{background:var(--hover)}
html body .pop.sheet .m-msg{padding-left:40px;padding-right:40px}
html body .pop.strip{padding-right:20px;overflow:visible}
html body .pop.strip .st-x{position:absolute;top:-9px;right:-7px;width:22px;height:22px;background:var(--card);box-shadow:0 1px 4px rgba(20,30,40,.18);color:var(--sub2)}
html body .pop.strip .st-x svg{width:9px;height:9px}
/* 한 줄 메뉴의 이름에 그 과목 형광펜 색 (TASKS 글자와 같은 반 높이 형광펜) */
html body .pop.strip .st-t[style] b{padding:0 3px;background:linear-gradient(transparent 45%,var(--sel) 45%,var(--sel) 92%,transparent 92%)}
/* 한 줄 메뉴: 이름 앞 작은 네모(계획 빗금 · 한 것 꽉 찬 색 · 과목 없음 회색) · 계획/한 것 글자 · 시각 · 메뉴 안 네모 */
html body .pop.strip .st-t{display:inline-flex;align-items:center;gap:5px}
html body .pop.strip .st-t b,html body .modebar .st-t b{background:none!important;padding:0}
.st-sw{flex:none;width:14px;height:14px;border-radius:3px;box-sizing:border-box;border:1.5px solid var(--dot,#9AA1A9);background:var(--sel,#E5E7EB)}
.st-sw.plan{background:repeating-linear-gradient(135deg,var(--sel,#E5E7EB) 0 2px,transparent 2px 5px)}
.st-sw.gray{--sel:#DDE0E5;--dot:#9AA1A9}
.st-sw:not(.plan):not(.done):not(.gray){width:9px;height:9px;border-radius:50%;border:0;background:var(--dot,#9AA1A9)}
html body .pop.strip .st-t em{font-style:normal;font-size:11px;color:var(--sub)}
html body .pop.strip .st-t small{font-size:11px;color:var(--sub);font-variant-numeric:tabular-nums}
html body .pop.strip .st-box{flex:none;display:grid;place-items:center;width:32px;height:32px}
html body .pop.strip .st-box .chk{margin:0}
html body .pop.strip .st-ch .dot{width:8px;height:8px;border-radius:50%;flex:none}
/* 고치는 중 · 색 지우는 중 막대 (틈에 한 줄) */
.modebar{position:fixed;z-index:46;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;height:44px;box-sizing:border-box;max-width:calc(100vw - 16px);padding:0 6px 0 14px;border-radius:22px;background:var(--card);box-shadow:0 2px 14px rgba(20,30,40,.16)}
.modebar[hidden]{display:none}
.modebar .st-t{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;white-space:nowrap;min-width:0;overflow:hidden}
.modebar .mb-say{font-size:12px;color:var(--sub2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.modebar .mb-done{flex:none;height:32px;padding:0 14px;border-radius:16px;background:var(--ink);color:var(--card);font-size:13px;font-weight:700}
body.tt-editing #tt,body.tt-editing .wk-tt{outline:2px dashed color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:3px;border-radius:4px}
/* 홈: 이번 주 목표 한 줄 (숫자 칸 아래) */
.st-goalrow{display:flex;align-items:baseline;gap:10px;padding:2px 2px 0;font-size:13px;color:var(--sub)}
.st-goalrow span{flex:none;font-size:11.5px;font-weight:600;letter-spacing:.02em}
.st-goalrow .st-goal{font-family:var(--hand);font-weight:400;font-size:16px;color:var(--sub);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-goalrow .st-goal.has{color:var(--text)}
/* 한 줄 메뉴: 앞쪽 이름·시각은 줄지 않게 (단추들이 옆으로 밀리며 넘친다) */
html body .pop.strip .st-t{flex:none}
html body .pop.strip .st-t b{max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 메모 칸 맨 아래도 시간표 맨 아래처럼 굵은 마감 선 */
html body .sheet #memo,html body .prev-page .m-memo{border-bottom:1.5px solid var(--ink)!important;box-sizing:border-box}
/* 종이를 누르거나 끌어 넘길 때 글자가 파랗게 선택되지 않게 (적는 칸은 그대로) */
html body .page,html body .wk-page,html body .st,html body .tabbar,html body .pop.strip,html body .modebar{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html body .page input,html body .page textarea,html body .wk-page input,html body .wk-page textarea{-webkit-user-select:text;user-select:text}
/* 휴대폰: 적는 동안 필기구만 접는다. 받아쓰기가 글자를 채워도 마이크의 중지·다시 말하기 단추는 남긴다. */
html body.dev-phone .quick.typing .ink-btn,html body.dev-phone.tt-editing .quick .ink-btn,html body.dev-phone.tt-editing .quick .mic-btn{display:none!important}
/* 일간 D-DAY: 하나만, 누르면 다음 것 (여러 개면 앞에 작게 1/2) */
html body .dd-one{border:0;background:none;padding:2px 0;margin:0;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .dd-one .dd-n{flex:none;font:600 10px/1 Pretendard,sans-serif;color:var(--faint);letter-spacing:.02em;align-self:center}
html body.dev-phone .dd-one .dd-n{font-size:9px}
/* 주간 시간표: 칸은 누를 수 있게 (막대·글자는 그대로 통과) — 톡 → 메뉴, 끌기 → 칠하기 */
html body .wk-tt .c{pointer-events:auto}
/* ── 할 일 표시: 형광펜 = 한 것 ──
   과목 색은 앞(이름 칸)에: 첫 줄 이름에 형광펜 + 묶음 끝까지 색줄(묶음마다 끊어서 같은 색이어도 경계가 보이게)
   글씨는 평소엔 그냥 글씨, ○ 하면 과목 형광펜, × 는 회색 줄, → 는 흐리게, △ 는 그대로 */
html body .todos:not(.hb-todos){--pen:color-mix(in srgb,var(--hi,var(--dot,var(--sel))) var(--pen-a),transparent)}
html body .tk-row .lab-hl{display:inline-block;max-width:100%;vertical-align:middle;color:var(--text);background:linear-gradient(transparent 50%,var(--pen) 50%,var(--pen) 92%,transparent 92%);padding:0 2px;border-radius:1px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .todos:not(.hb-todos) > .tk-row .tk-lab{position:relative;overflow:visible}
html body .todos:not(.hb-todos) > .tk-row .tk-lab::after{content:"";position:absolute;right:-2px;top:0;bottom:-1px;width:3px;border-radius:2px;background:color-mix(in srgb,var(--dot) 60%,transparent);pointer-events:none}
html body .todos:not(.hb-todos) > .tk-row:first-child .tk-lab::after{top:4px}
html body .todos:not(.hb-todos) > .tk-row:last-child .tk-lab::after{bottom:4px}
html body .tk-row .hl{background:none}
html body .tk-row.m-o .hl{background:linear-gradient(transparent 50%,var(--pen) 50%,var(--pen) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body .hb-todos .tk-row.m-o .hl{--pen:color-mix(in srgb,var(--accent-hi,var(--accent)) var(--pen-a),transparent)}   /* 습관 ○ = 기본 컬러 형광펜 (컬러를 바꾸면 같이) */
html body .todo.m-o .todo-t{color:var(--text);text-decoration:none}
html body .todo.m-x .todo-t{color:var(--sub);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--sub) 75%,transparent)}
html body .todo.m-arrow .todo-t{color:var(--faint);text-decoration:none}
/* 주간 쪽도 같은 규칙 */
html body .wk-card .wk-t.m-o .wk-x{--wpen:color-mix(in srgb,var(--dot,var(--accent)) var(--pen-a),transparent);color:var(--text);background:linear-gradient(transparent 50%,var(--wpen) 50%,var(--wpen) 92%,transparent 92%);padding:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body .wk-card .wk-t.m-x .wk-x{color:var(--sub);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--sub) 75%,transparent)}
html body .wk-card .wk-t.m-arrow .wk-x{color:var(--faint)}
html body .wk-t.m-o .wk-tt-t{color:var(--text)}
/* 월간 그날 목록도 */
html body .ms-todo.m-o b{--mpen:color-mix(in srgb,var(--dot,var(--accent)) var(--pen-a),transparent);color:var(--text);text-decoration:none;background:linear-gradient(transparent 50%,var(--mpen) 50%,var(--mpen) 92%,transparent 92%);padding:0 2px}
html body .ms-todo.m-x b{color:var(--sub);text-decoration:line-through}
html body .ms-todo.m-arrow b{color:var(--faint)}
/* 손잡이: 고른 덩어리 양 끝 동그라미 (메뉴 바탕 위 · 메뉴 아래), 손가락으로 잡기 쉽게 잡히는 자리는 넓게 */
.rz-layer{position:fixed;inset:0;pointer-events:none;z-index:45}   /* 10/23 고치기 알약(46)·과목 목록(47) 아래로: 겹쳐도 알약 단추가 눌리게 (예전 48 이라 ✓·과목을 누르면 손잡이가 잡혔다) */
.rz-h{position:fixed;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#fff;border:2.5px solid var(--d,var(--accent));box-sizing:border-box;pointer-events:auto;touch-action:none;cursor:ew-resize;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:transform .12s ease}
.rz-h::before{content:"";position:absolute;inset:-14px;border-radius:50%}
.rz-h.on{transform:scale(1.25)}
html body .ln-row .bar.rz-on{outline:1.5px solid var(--d);outline-offset:0;z-index:2}
/* 한 줄 메뉴 머리 칸: 이름·시작·끝을 눌러 바로 고치기 (휴대폰은 16px — 아이폰이 확대하지 않게) */
html body .pop.strip .st-t{max-width:none;overflow:visible}
html body .pop.strip .st-in{font:inherit;font-size:13px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);padding:0 6px;height:28px;box-sizing:border-box;-webkit-user-select:text;user-select:text;min-width:0;margin:0}
html body .pop.strip .st-in:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 22%,transparent)}
html body .pop.strip .st-nm{width:calc(var(--n) * 1.05em + 14px);font-weight:700}
html body .pop.strip .st-tm{width:3.9em;padding:0 2px;text-align:center;font-variant-numeric:tabular-nums}
html body .pop.strip .st-tms{display:inline-flex;align-items:center;gap:2px}
html body .pop.strip .st-tms i{font-style:normal;color:var(--sub)}
html body.dev-phone .pop.strip .st-in{font-size:16px;height:30px}
html body.dev-phone .pop.strip .st-tm{width:3.3em}
/* 고른 계획 틀: 칠한 색 위에 점선 (동그라미가 이 틀 양 끝) */
html body .ln-row .bar.rz-frame{background:none!important;box-shadow:none!important;border:1.5px dashed var(--d);box-sizing:border-box;z-index:3;pointer-events:none;padding:0}
html body .ln-row .bar.rz-frame.cl{border-left:0}
html body .ln-row .bar.rz-frame.cr{border-right:0}
/* 메뉴도 누른 덩어리 모양: 계획 = 빗금 테두리, 한 것 = 꽉 찬 색 */
html body .pop.strip.look-plan{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--sel) 60%,transparent) 0 3px,var(--card) 3px 8px);box-shadow:inset 0 0 0 1.5px var(--dot),0 10px 36px rgba(0,0,0,.18)}
html body .pop.strip.look-done{background:color-mix(in srgb,var(--sel) 75%,var(--card));box-shadow:0 10px 36px rgba(0,0,0,.18)}
html body .pop.strip.look-plan .st-t em,html body .pop.strip.look-done .st-t em{font-style:normal;font-size:11.5px;font-weight:700;border-radius:999px;padding:1px 7px;flex:none}
html body .pop.strip.look-plan .st-t em{border:1.2px dashed var(--dot);color:var(--text);background:var(--card)}
html body .pop.strip.look-done .st-t em{background:var(--dot);color:#fff}
/* 한 줄 메뉴의 ○△× 네모: 단추 알약 모양을 걷고 TASKS 네모와 같게, 표시 색은 그 덩어리 과목 색 · 단추는 칸처럼 흰 바탕 */
html body .pop.strip .st-box{width:28px}
html body .pop.strip .st-ch .st-box .chk:not(.hb-cnt){width:22px;height:22px;min-width:0;padding:0;border:1.4px dotted var(--dot,var(--accent));border-radius:4px;background:var(--card);display:grid;place-items:center;color:var(--dot,var(--accent))}
html body .pop.strip .st-ch .st-box .chk .mkg{color:var(--dot,var(--accent));font-size:15px;line-height:1}
html body .pop.strip:is(.look-plan,.look-done) .st-ch > button{background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
/* 계획 메뉴·앞 네모·꼬리표도 설정 › 계획 → 한 것 에서 고른 모양을 따른다 (테두리·점선·빗금·연한 형광펜·밑줄) */
html body[data-plan] .pop.strip.look-plan{border:0;box-shadow:0 10px 36px rgba(0,0,0,.18)}
html body[data-plan="outline"] .pop.strip.look-plan{background:color-mix(in srgb,var(--dot) 5%,var(--card));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--dot) 70%,transparent),0 10px 36px rgba(0,0,0,.18)}
html body[data-plan="dash"] .pop.strip.look-plan{background:var(--card);border:1.5px dashed color-mix(in srgb,var(--dot) 75%,transparent)}
html body[data-plan="hatch"] .pop.strip.look-plan{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--dot) 30%,var(--card)) 0 2px,var(--card) 2px 6px)}
html body[data-plan="pale"] .pop.strip.look-plan{background:color-mix(in srgb,var(--dot) 12%,var(--card))}
html body[data-plan="under"] .pop.strip.look-plan{background:var(--card);box-shadow:inset 0 -2.5px 0 color-mix(in srgb,var(--dot) 50%,transparent),0 10px 36px rgba(0,0,0,.18)}
html body[data-plan] .pop.strip.look-plan .st-t em{border:0;background:var(--card);color:var(--text);box-shadow:none}
html body[data-plan="outline"] .pop.strip.look-plan .st-t em{box-shadow:inset 0 0 0 1.2px color-mix(in srgb,var(--dot) 70%,transparent)}
html body[data-plan="dash"] .pop.strip.look-plan .st-t em{border:1.2px dashed color-mix(in srgb,var(--dot) 75%,transparent)}
html body[data-plan="hatch"] .pop.strip.look-plan .st-t em{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--dot) 35%,var(--card)) 0 2px,var(--card) 2px 5px);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dot) 40%,transparent)}
html body[data-plan="pale"] .pop.strip.look-plan .st-t em{background:color-mix(in srgb,var(--dot) 24%,var(--card))}
html body[data-plan="under"] .pop.strip.look-plan .st-t em{border-radius:0;background:none;box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--dot) 55%,transparent)}
html body[data-plan="outline"] .st-sw.plan{background:color-mix(in srgb,var(--dot,#9AA1A9) 5%,var(--card));border:1.5px solid color-mix(in srgb,var(--dot,#9AA1A9) 70%,transparent)}
html body[data-plan="clear"] .st-sw.plan{background:none;border:1.5px solid color-mix(in srgb,var(--dot,#9AA1A9) 70%,transparent)}
html body[data-plan="clear"] .pop.strip.look-plan{background:var(--card);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--dot) 70%,transparent),0 10px 36px rgba(0,0,0,.18)}
html body[data-plan="clear"] .pop.strip.look-plan .st-t em{background:none;box-shadow:inset 0 0 0 1.2px color-mix(in srgb,var(--dot) 70%,transparent)}
html body[data-plan="dash"] .st-sw.plan{background:var(--card);border:1.5px dashed var(--dot,#9AA1A9)}
html body[data-plan="hatch"] .st-sw.plan{border:0;background:repeating-linear-gradient(135deg,var(--dot,#9AA1A9) 0 1.5px,transparent 1.5px 4px)}
html body[data-plan="pale"] .st-sw.plan{border:0;background:color-mix(in srgb,var(--dot,#9AA1A9) 28%,var(--card))}
html body[data-plan="under"] .st-sw.plan{border:0;border-radius:0;background:linear-gradient(transparent calc(100% - 2.5px),var(--dot,#9AA1A9) calc(100% - 2.5px))}
/* 한 줄 메뉴의 × : 모서리에 걸치지 않고 메뉴 안 오른쪽 끝에 (흰 칸·단추와 같은 모양) */
html body .pop.strip{padding-right:6px}
html body .pop.strip .st-x{position:static;flex:none;display:grid;place-items:center;width:30px;height:30px;margin:0 0 0 2px;border:0;border-radius:50%;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);color:var(--sub2);padding:0}
html body .pop.strip .st-x:hover{color:var(--text)}
html body .pop.strip .st-x svg{width:10px;height:10px}
/* ── 고치기 = 아래 적기 칸: 누른 덩어리 모양으로 바뀌고 [앞 네모][적는 칸][휴지통][체크][×] ── */
html body .quick.editing .quick-ico,html body .quick.editing .ink-btn,html body .quick.editing .mic-btn,html body .quick.editing #openSide{display:none!important}
html body .quick .q-front[hidden],html body .quick .q-ib[hidden]{display:none!important}
html body .quick .q-front{flex:none;display:grid;place-items:center;min-width:22px}
html body .quick .q-front .chk{width:22px;height:22px;min-width:0;padding:0;margin:0;border:1.4px dotted var(--dot,var(--accent));border-radius:4px;background:var(--card);display:grid;place-items:center;color:var(--dot,var(--accent))}
html body .quick .q-front .chk .mkg{color:var(--dot,var(--accent));font-size:15px;line-height:1}
html body .quick .q-front .st-sw{width:18px;height:18px;border-radius:5px}
html body .quick .q-ib{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);color:var(--sub2);cursor:pointer}
html body .quick .q-ib svg{width:16px;height:16px}
html body .quick .q-del{color:var(--red)}
html body .quick .quick-go.q-ok{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%}
html body .quick .quick-go.q-ok svg{width:18px;height:18px}
html body .quick.editing #q{background:var(--card);border:1.5px solid var(--dot,var(--accent));border-radius:12px;padding:6px 10px;min-width:0}
html body .quick.editing.look-done{background:color-mix(in srgb,var(--sel) 75%,var(--card))!important}
html body[data-plan="outline"] .quick.editing.look-plan{background:color-mix(in srgb,var(--dot) 5%,var(--card))!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--dot) 70%,transparent),0 2px 14px rgba(20,30,40,.12)!important}
html body[data-plan="clear"] .quick.editing.look-plan{background:var(--card)!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--dot) 70%,transparent),0 2px 14px rgba(20,30,40,.12)!important}
html body[data-plan="dash"] .quick.editing.look-plan{background:var(--card)!important;outline:1.5px dashed color-mix(in srgb,var(--dot) 75%,transparent);outline-offset:-1.5px}
html body[data-plan="hatch"] .quick.editing.look-plan{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--dot) 30%,var(--card)) 0 2px,var(--card) 2px 6px)!important}
html body[data-plan="pale"] .quick.editing.look-plan{background:color-mix(in srgb,var(--dot) 12%,var(--card))!important}
html body[data-plan="under"] .quick.editing.look-plan{box-shadow:inset 0 -2.5px 0 color-mix(in srgb,var(--dot) 50%,transparent),0 2px 14px rgba(20,30,40,.12)!important}
/* 고치는 중 시간표 둘레 점선은 이제 필요 없음 (점선 판·동그라미가 대신) */
html body.tt-editing #tt,html body.tt-editing .wk-tt{outline:none}
/* 고치는 중엔 적은 글 지우기 × 를 숨김 (그만두기 × 와 헷갈리고 적는 칸이 좁아져서) */
html body .quick.editing #qClear{display:none!important}
/* ── 아래 칸 = 아까 알약 모양: [네모][이름 칸][시작]~[끝][휴지통][×] / 빈칸 과목 고르기 [네모][시각][칩들 ✎][×] ── */
html body .quick.editing .quick-row,html body .quick.editing .quick-hint{display:none!important}
html body .quick .q-edit{display:flex;align-items:center;gap:5px;min-height:40px;padding:0 0 0 6px;min-width:0}
html body .quick .q-edit[hidden]{display:none!important}
html body .q-edit .st-in{font:inherit;font-size:14px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);padding:0 7px;height:32px;box-sizing:border-box;min-width:0;margin:0;-webkit-user-select:text;user-select:text}
html body .q-edit .st-in:focus{outline:none;border-color:var(--dot,var(--accent));box-shadow:0 0 0 2px color-mix(in srgb,var(--dot,var(--accent)) 22%,transparent)}
html body .q-edit .st-nm{flex:0 1 auto;width:calc(var(--n,4) * 1.05em + 16px);font-weight:700}
html body .q-edit .q-ask-in{flex:1 1 auto;width:auto;font-weight:500}
html body .q-edit .st-tms{display:inline-flex;align-items:center;gap:2px;flex:none}
html body .q-edit .st-tms i{font-style:normal;color:var(--sub)}
html body .q-edit .st-tm{width:4em;text-align:center;font-variant-numeric:tabular-nums;padding:0 2px}
html body .q-edit .q-del{margin-left:auto}
html body .q-edit .q-tm{flex:none;font-size:13px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;padding:0 2px;white-space:nowrap}
html body .q-edit .q-chips{flex:1;min-width:0;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}
html body .q-edit .q-chips::-webkit-scrollbar{display:none}
html body .q-edit .q-chip{flex:none;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border:0;border-radius:16px;background:var(--soft2);font-size:13px;color:var(--text);cursor:pointer}
html body .q-edit .q-chip .dot{width:8px;height:8px;border-radius:50%}
html body .q-edit .q-chip.q-w{padding:0 10px;color:var(--sub2)}
html body .q-edit .q-chip.q-w svg{width:15px;height:15px}
html body .q-edit .q-okb{background:var(--btn);color:var(--btn-fg);box-shadow:none}
html body .q-edit .q-blk[disabled]{cursor:default}
html body.dev-phone .q-edit .st-in{font-size:16px}
html body.dev-phone .q-edit .st-tm{width:3.4em}
/* 덩어리 메뉴(계획·한 것)가 폰에서 잘리지 않게: 지우기 = 휴지통, 앞 작은 색 네모 빼기, 칸 조금 좁게 */
html body .pop.strip .st-ch button.danger{padding:0 10px;color:var(--red)}
html body .pop.strip .st-ch button.danger .tr-ic{width:17px;height:17px}
html body.dev-phone .pop.strip:is(.look-plan,.look-done){gap:4px;padding-left:9px}
html body.dev-phone .pop.strip:is(.look-plan,.look-done) .st-t{gap:4px}
html body.dev-phone .pop.strip:is(.look-plan,.look-done) .st-t > .st-sw{display:none}
html body.dev-phone .pop.strip .st-nm{max-width:calc(3.6em + 14px)}
html body.dev-phone .pop.strip .st-tm{width:3.1em}
html body.dev-phone .pop.strip .st-ch{gap:3px}
html body.dev-phone .pop.strip .st-box{width:26px}
/* 아래 칸 고르기 머리(습관 이름 등) · 빨강 칩 */
html body .q-edit .q-head{flex:none;display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--sub2);white-space:nowrap;max-width:40%;overflow:hidden}
html body .q-edit .q-head b{color:var(--text);font-weight:700;overflow:hidden;text-overflow:ellipsis}
html body .q-edit .q-head em{font-style:normal}
html body .q-edit .q-chip.danger{color:var(--red)}
html body .q-edit .q-chips .st-box{flex:none;display:grid;place-items:center;width:30px}
html body .q-edit .q-chips .st-box .chk:not(.hb-cnt){width:22px;height:22px;padding:0;border:1.4px dotted var(--dot,var(--accent));border-radius:4px;background:var(--card);display:grid;place-items:center}
html body .q-edit .q-chips .st-box .chk .mkg{color:var(--dot,var(--accent));font-size:15px;line-height:1}
/* 그 자리 고치기: 폰은 고치는 칸(16px)이 종이 줄보다 커서 넘침 → 그 줄을 아래 줄보다 위에 (넘친 ☆·×가 아래 줄에 덮여 안 눌리던 것) */
html body .tk-row.editing{position:relative;z-index:6;overflow:visible}
html body .tk-row.editing .tk-ed{position:relative;z-index:6}
/* 그 자리 고치기(휴대폰): 빈 줄에 적을 때처럼 떠 있는 카드 — 흰 바탕·그림자로 아래 줄 글씨를 덮고, ☆·→내일·× 도 카드 안에 */
html body.dev-phone .tk-row.editing .tk-ed{display:flex;align-items:center;gap:2px;background:var(--card);box-shadow:0 2px 12px rgba(20,30,40,.14),0 0 0 1.5px var(--accent);border-radius:8px;padding:0 4px 0 6px;margin-left:-6px;min-width:0;align-self:center}
html body.dev-phone .tk-row.editing .tk-ed .todo-in{font-size:16px;background:none;border:0;outline:0;padding:4px 0;min-width:0;flex:1}
html body.dev-phone .tk-row.editing .tk-ed .mini{flex:none;font-size:12px;padding:2px 4px}
/* 줄 고치는 동안 아래 칸 = 그 줄 도구 [★][내일로][반복][시간][휴지통][완료] (적는 칸·필기구는 숨김) */
html body .quick .q-tools[hidden]{display:none!important}
html body .quick .q-tools{justify-content:flex-start;gap:6px;padding:0 4px}
html body .quick .q-tools .q-ib.on{color:#E9A23B;box-shadow:inset 0 0 0 1.5px #E9A23B}
html body .quick .q-tools .q-del{margin-left:auto}
html body .quick .q-tools .q-okb{width:38px;height:38px}
/* 줄 도구 알약 (습관 메뉴처럼 아래 칸 위에 떠오름): 아이콘 단추 · 중요는 노랑 */
html body .pop.strip.q-tools{display:flex}
html body .pop.strip.q-tools[hidden]{display:none!important}
html body .pop.strip.q-tools .st-ch .t-ib{width:38px;padding:0;justify-content:center}
html body .pop.strip.q-tools .t-ib svg{width:18px;height:18px}
html body .pop.strip.q-tools .t-ib.on{color:#E9A23B}
html body .pop.strip.q-tools .st-ch .t-ib.danger{color:var(--red)}
html body .pop.strip.q-tools .st-ch .t-ib.t-time{width:auto;padding:0 10px;gap:4px}
html body .pop.strip.q-tools .t-time small{font-size:12.5px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}
html body .pop.strip.q-tools .rep-in{font:inherit;font-size:14px;width:9em;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);padding:0 8px;box-sizing:border-box;-webkit-user-select:text;user-select:text}
html body.dev-phone .pop.strip.q-tools .rep-in{font-size:16px;width:7.5em}
html body .pop.strip.q-tools .t-ib.rep-go{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:0;background:var(--btn);color:var(--btn-fg);padding:0}
html body .pop.strip.q-tools .t-ib.rep-go svg{width:16px;height:16px}
/* 시간표 시각 숫자의 동그라미 빼기 (지금 시각 빨강·자정 검정) — 지금 시각 모양은 따로 정하는 중, 빨간 세로선은 그대로 */
html body .ln-h.now span,html body .ln-h.mid span{background:none!important;color:inherit!important}
/* 도구 알약 맨 앞 과목 단추 · 과목 고르기 칩 · 폰에서 안 넘치게 조금 좁게 */
html body .pop.strip.q-tools .st-ch .t-sub{display:inline-flex;align-items:center;gap:5px;padding:0 11px;font-weight:700}
html body .pop.strip.q-tools .st-ch .dot{width:8px;height:8px;border-radius:50%;flex:none}
html body .pop.strip.q-tools .st-ch button.on{box-shadow:inset 0 0 0 1.5px var(--dot,var(--accent))}
html body.dev-phone .pop.strip.q-tools{gap:3px;padding-left:8px}
html body.dev-phone .pop.strip.q-tools .st-ch{gap:3px}
html body.dev-phone .pop.strip.q-tools .st-ch .t-ib{width:34px}
html body.dev-phone .pop.strip.q-tools .st-ch .t-ib.t-time{padding:0 8px}
html body.dev-phone .pop.strip.q-tools .t-time small{font-size:11.5px}
html body.dev-phone .pop.strip.q-tools .st-ch .t-sub{padding:0 9px}
/* 줄 도구 알약 = 아래 칸과 같은 너비로 꽉, 단추는 고르게 (시간 글자가 잘리지 않게) */
html body .pop.strip.q-tools{transform:none;max-width:none;box-sizing:border-box;padding:0 6px 0 10px}
html body .pop.strip.q-tools .st-ch{flex:1;min-width:0;justify-content:space-between;overflow:visible}
html body .pop.strip.q-tools .st-ch .t-ib.t-time{white-space:nowrap;flex:none}
html body .pop.strip.q-tools .st-ch .t-sub{white-space:nowrap;flex:none}
/* ── 알약 통일(사용자 "알약 크기·종류가 달라, 모두 최근 걸로"): 모든 한 줄 메뉴 = 아래 칸 너비로 꽉, 같은 높이,
      단추는 하나의 모양 — 아이콘은 34px 동그라미, 글자는 34px 알약, 바탕은 같은 연회색, × 는 오른쪽 끝 흰 동그라미 ── */
html body .pop.strip{height:46px;padding:0 6px 0 10px;gap:6px;transform:none;max-width:none;box-sizing:border-box}
html body .pop.strip .st-ch{flex:1;min-width:0;display:flex;align-items:center;gap:5px}
html body .pop.strip .st-ch > button,html body .pop.strip .st-ch > a{flex:none;height:34px;min-width:34px;padding:0 12px;border:0;border-radius:17px;background:var(--soft2);display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:600;color:var(--text);box-shadow:none;white-space:nowrap}
html body .pop.strip .st-ch > button.t-ib:not(.t-time){width:34px;padding:0;border-radius:50%}
html body .pop.strip .st-ch > button.t-ib.t-time{width:auto;padding:0 11px}
html body .pop.strip .st-ch > button svg{width:17px;height:17px;flex:none}
html body .pop.overlap-choice{position:fixed;z-index:1200;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 16px);min-height:44px;padding:5px 7px 5px 13px;border-radius:999px;box-sizing:border-box}
html body .pop.overlap-choice .overlap-question{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}
html body .pop.overlap-choice .overlap-actions{display:flex;align-items:center;gap:4px;flex:none}
html body .pop.overlap-choice button{min-width:42px;height:34px;padding:0 10px;border-radius:17px;background:var(--soft2);color:var(--text);font-size:13px;font-weight:700}
html body .pop.overlap-choice button[data-choice="replace"]{background:var(--accent);color:#fff}
html body .pop.overlap-choice button[data-mbtn="cancel"]{min-width:30px;width:30px;padding:0;background:transparent;color:var(--sub);font-size:20px;font-weight:400}
/* 10/17 겹친 짧은 일정 = 바깥 상자 안의 상자 (월간 시즌처럼). 위아래 줄로 이어지면 줄 사이 테두리를 지워 한 상자로 */
html body .ln-row .bar.ov-in{top:calc(5px + var(--ov-y,3px));bottom:calc(5px + var(--ov-y,3px));z-index:4;pointer-events:auto;cursor:pointer;padding:0 5px;margin:0;font:inherit;color:inherit;border-radius:5px}
html body.dev-phone .ln-row .bar.ov-in{top:calc(3px + var(--ov-y,2px));bottom:calc(3px + var(--ov-y,2px));padding:0 3px}
html body[data-plan] .ln-row .bar.plan.ov-in{box-shadow:none!important;border:1.2px solid color-mix(in srgb,var(--d) 85%,transparent)!important}
html body[data-plan] .ln-row .bar.plan.ov-in.ov-up{top:-1px!important;border-top-width:0!important;border-top-left-radius:0;border-top-right-radius:0}
html body[data-plan] .ln-row .bar.plan.ov-in.ov-dn{bottom:-1px!important;border-bottom-width:0!important;border-bottom-left-radius:0;border-bottom-right-radius:0}
html body .ln-row .bar.ov-in.cl{border-top-left-radius:0;border-bottom-left-radius:0}
html body .ln-row .bar.ov-in.cr{border-top-right-radius:0;border-bottom-right-radius:0}
html body.dev-phone{--ov-x:3px;--ov-y:2px}
html body .wk-tt{--ov-x:2px;--ov-y:1px}
html body .ln-row .bar.plan-overlap-hit{top:auto!important;bottom:0!important;height:24px!important;padding:0 2px!important;z-index:4;pointer-events:auto;border:0;border-radius:0;background:transparent;color:var(--ink);overflow:visible;cursor:pointer}
html body .ln-row .bar.plan-overlap-hit::after{content:"";position:absolute;left:1px;right:1px;bottom:1px;height:7px;border:1px solid var(--d);border-radius:4px;background:var(--c);pointer-events:none}
html body .ln-row .bar.plan-overlap-hit em{position:absolute;left:3px;right:3px;bottom:2px;z-index:1;display:block!important;font:600 7px/6px Pretendard,sans-serif;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.dev-phone.zoom-time .ln-row .bar.plan-overlap-hit::after{height:9px}
html body .tt-row .c:has(.plan-overlap-dot){position:relative}
html body .tt-row .plan-overlap-dot{position:absolute;inset:0;z-index:4;display:grid;place-items:center;padding:0;background:transparent;color:var(--accent);font:700 10px/1 Pretendard,sans-serif}
html body .pop.strip .st-ch > button.danger{color:var(--red)}
html body .pop.strip .st-ch > .st-box{flex:none;width:34px;height:34px;display:grid;place-items:center}
html body .pop.strip .st-ch > button.on{box-shadow:inset 0 0 0 1.5px var(--dot,var(--accent))}
html body .pop.strip .st-x{flex:none;width:32px;height:32px;margin-left:2px}
html body .pop.strip.q-tools .st-ch{justify-content:space-between}
html body.dev-phone .pop.strip{gap:4px;padding:0 5px 0 8px}
html body.dev-phone .pop.strip .st-ch{gap:3px}
html body.dev-phone .pop.strip .st-ch > button:not(.t-ib),html body.dev-phone .pop.strip .st-ch > a{padding:0 10px;font-size:12.5px}
html body.dev-phone .pop.strip .st-ch > button.t-ib:not(.t-time){width:32px;min-width:32px;height:32px}
html body.dev-phone .pop.strip .st-ch > button.t-ib.t-time{padding:0 9px;font-size:12px}
html body.dev-phone .pop.strip.q-tools .st-ch .t-ib.t-time,html body .pop.strip.q-tools .st-ch .t-ib.t-time{width:auto}
/* 줄 없는 덩어리 도구: 이름·시간 글자 */
html body .pop.strip.q-tools .t-name{font-weight:700;font-size:13px;color:var(--text);white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis;align-self:center}
html body .pop.strip.q-tools .t-when{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--sub2);white-space:nowrap;font-variant-numeric:tabular-nums;align-self:center}
/* 폰 줄 도구 알약: 겹치지 않게 — 아이콘 30px·간격 2px, 시간 단추는 시계 아이콘 빼고 글자만, 그래도 넘치면 옆으로 밀기(겹치지 않음) */
html body.dev-phone .pop.strip.q-tools .st-ch{gap:2px;overflow-x:auto;scrollbar-width:none;justify-content:space-between}
html body.dev-phone .pop.strip.q-tools .st-ch::-webkit-scrollbar{display:none}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib:not(.t-time){width:30px;min-width:30px;height:30px}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib.t-time{padding:0 8px;height:30px}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib.t-time svg{display:none}
html body.dev-phone .pop.strip.q-tools .st-ch > .t-sub{padding:0 8px;height:30px}
@media (max-width:365px){html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib.t-time{padding:0 6px;font-size:11px}html body.dev-phone .pop.strip.q-tools .st-ch > .t-sub{padding:0 6px}}
/* 습관 메뉴도 줄 도구 알약과 같은 틀 (look-tools): 머리글 없음 · 이름 칩 · 고르게 퍼짐 */
html body .pop.strip.look-tools .st-t{display:none}
html body .pop.strip.look-tools .st-ch{justify-content:space-between}
html body .pop.strip .st-ch > .t-sub{flex:none;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 11px;border-radius:17px;background:var(--soft2);font-size:13px;font-weight:700;color:var(--text);white-space:nowrap;max-width:8em;overflow:hidden;text-overflow:ellipsis}
html body .pop.strip .st-ch > .t-sub .dot{width:8px;height:8px;border-radius:50%;flex:none}
html body.dev-phone .pop.strip .st-ch > .t-sub{height:30px;padding:0 9px;font-size:12.5px}
/* 폰: 한 줄 메뉴 단추 높이를 모두 32px 로 (이름 칩·글자 단추·아이콘·네모 칸) */
html body.dev-phone .pop.strip .st-ch > button,html body.dev-phone .pop.strip .st-ch > a,html body.dev-phone .pop.strip .st-ch > .t-sub,html body.dev-phone .pop.strip .st-ch > .st-box{height:32px}
html body.dev-phone .pop.strip .st-ch > button.t-ib:not(.t-time),html body.dev-phone .pop.strip .st-ch > .st-box{width:32px;min-width:32px}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib:not(.t-time){width:30px;min-width:30px;height:30px}
/* ── 지난 시간 = 연하게 (칠하면 한 것), 앞 = 흰 칸 (계획) ── */
html body .ln-row .c.ln.past{background:color-mix(in srgb,var(--sub) 9%,transparent)}
/* 형광펜 막대 두께는 줄 높이에 비례 (작은 줄에서 너무 가늘지 않게) */
/* 칸 가운데 놓고, 서로 다른 형광펜 사이에는 작은 여백을 남긴다. */
html body :is(#tt,.tt,.wk-tt){--bar-gap:.65px}
html body :is(#tt,.tt,.wk-tt) .ln-row .bar:not(.sch):not(.rz-frame){top:13%!important;bottom:13%!important}
html body #tt .ln-row .bar.rz-frame{top:10%!important;bottom:10%!important}
/* 10/17 겹친 안쪽 상자: 바깥 막대(13%)보다 조금 안으로, 위아래 줄로 이어지면 줄 끝까지 붙인다 */
html body :is(#tt,.tt,.wk-tt) .ln-row .bar.plan.ov-in{top:calc(13% + var(--ov-y,3px))!important;bottom:calc(13% + var(--ov-y,3px))!important}
html body :is(#tt,.tt,.wk-tt) .ln-row .bar.plan.ov-in.ov-up{top:-1px!important}
html body :is(#tt,.tt,.wk-tt) .ln-row .bar.plan.ov-in.ov-dn{bottom:-1px!important}
/* ── 순간 습관 = 그 시각에 작은 이름 칩 (했으면 꽉 찬 색 + ✓, 누르면 했어요) ── */
html body .ln-row .hb-chip{position:absolute;top:12%;bottom:12%;z-index:3;display:inline-flex;align-items:center;gap:2px;padding:0 5px 0 3px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent);color:var(--ink);font-size:10px;line-height:1;white-space:nowrap;pointer-events:auto;cursor:pointer;max-width:60%;overflow:hidden}
html body .ln-row .hb-chip em{font-style:normal;font-weight:600;overflow:hidden;text-overflow:ellipsis}
html body .ln-row .hb-chip .hb-mk-ic{width:11px;height:11px;flex:none}
html body .ln-row .hb-chip b{font-weight:800}
html body .ln-row .hb-chip.on{background:var(--accent);color:#fff;box-shadow:none}
html body .wk-tt .ln-row .hb-chip{pointer-events:none;padding:0 2px}
html body .wk-tt .ln-row .hb-chip em,html body .wk-tt .ln-row .hb-chip b{display:none}
/* ── D-DAY 여러 개면 이름표 옆에 점 (예전 '1/8' 은 날짜처럼 읽혀서) ── */
html body .dd-dots{display:inline-flex;gap:3px;margin:0 6px;vertical-align:middle;align-items:center}
html body .dd-dots i{width:4px;height:4px;border-radius:50%;background:var(--line);display:block}
html body .dd-dots i.on{background:var(--accent)}
html body .dd-one .dd-n{display:none}
/* ── 줄 도구 알약: 앞 □ 네모, 시간 칩(기본값은 흐리게), 시간 고치기 칸은 꽉 ── */
html body .pop.strip.q-tools .st-ch > .st-box .chk{width:22px;height:22px;padding:0;border:1.4px dotted var(--dot,var(--accent));border-radius:4px;background:var(--card);display:grid;place-items:center}
html body .pop.strip.q-tools .st-ch > .st-box .chk .mkg{color:var(--dot,var(--accent));font-size:14px;line-height:1}
html body .pop.strip.q-tools .t-time.soft small{color:var(--sub)}
html body .pop.strip.q-tools .q-fill{flex:1;min-width:0;display:flex;align-items:center;gap:4px}
html body .pop.strip.q-tools .q-fill .st-in{flex:1;min-width:0;width:auto;height:32px;text-align:center;font:inherit;font-size:14px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);-webkit-user-select:text;user-select:text}
html body.dev-phone .pop.strip.q-tools .q-fill .st-in{font-size:16px}
/* 쓰는 칸은 늘 꽉: 반복 직접 적기 칸도 */
html body .pop.strip.q-tools .rep-in{flex:1;min-width:0;width:auto}
html body.dev-phone .pop.strip.q-tools .rep-in{width:auto}
/* 순간 습관 칩 = 아이콘만 (사용자 "무조건 이모지로만") — 했으면 꽉 찬 색 */
html body .ln-row .hb-chip em,html body .ln-row .hb-chip b{display:none}
html body .ln-row .hb-chip{padding:0 3px;gap:0}
html body .ln-row .hb-chip .hb-mk-ic{width:12px;height:12px}
html body .ln-row .hb-chip.on .hb-mk-ic{color:#fff}
/* 폰 줄 도구 알약: 9칸이 들어가게 조금 더 작게 */
html body.dev-phone .pop.strip.q-tools .st-ch{gap:1px}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib:not(.t-time){width:28px;min-width:28px;height:28px}
html body.dev-phone .pop.strip.q-tools .st-ch > .st-box{width:28px;min-width:28px}
html body.dev-phone .pop.strip.q-tools .st-ch > .t-sub{padding:0 7px}
html body.dev-phone .pop.strip.q-tools .st-ch > button.t-ib.t-time{padding:0 7px}
html body.dev-phone .pop.strip.q-tools .t-time small{font-size:11px}
html body.dev-phone .pop.strip.q-tools .st-ch > button svg{width:16px;height:16px}
/* 순간 습관 = 알약 없이 아이콘만, TASKS 습관 아이콘과 같은 색 (평소 회색 · 했으면 기본 컬러) */
html body .ln-row .hb-chip{background:none!important;box-shadow:none!important;padding:0;border-radius:0}
html body .ln-row .hb-chip .hb-mk-ic{width:13px;height:13px;color:var(--sub)}
html body .ln-row .hb-chip.on .hb-mk-ic{color:var(--accent)}
/* D-day 설정: 종이에 보이기 단추 · 학교 시험(자동) 줄 */
html body .mini.dd-show{flex:none;font-size:12px;padding:3px 9px;border-radius:999px;background:var(--soft2);color:var(--sub)}
html body .mini.dd-show.on{background:var(--accent);color:#fff}
html body .ed-row.dd-auto .dd-auto-t{display:flex;align-items:center;gap:6px;border:0;background:none;font-size:13px}
html body .ed-row.dd-auto .dd-auto-t small{color:var(--sub);font-size:11px}
/* 종이의 D-day 두 개면 위아래로 */
html body .sheet-head .dd-list{gap:2px}
/* 덩어리가 다음 줄로 이어질 때 그 줄 이름은 연하게 (같은 덩어리인지 보이게) */
html body .ln-row .bar em.cont{opacity:.45}
/* 덩어리가 다음 줄로 이어지면 이어지는 쪽 끝 테두리를 열어 색이 이어져 보이게 (줄마다 닫힌 상자처럼 안 보이게) */
html body[data-plan="outline"] .ln-row .bar.plan.cr:not(.cl){box-shadow:inset 0 1.5px 0 color-mix(in srgb,var(--d) 70%,transparent),inset 0 -1.5px 0 color-mix(in srgb,var(--d) 70%,transparent),inset 1.5px 0 0 color-mix(in srgb,var(--d) 70%,transparent)!important}
html body[data-plan="outline"] .ln-row .bar.plan.cl:not(.cr){box-shadow:inset 0 1.5px 0 color-mix(in srgb,var(--d) 70%,transparent),inset 0 -1.5px 0 color-mix(in srgb,var(--d) 70%,transparent),inset -1.5px 0 0 color-mix(in srgb,var(--d) 70%,transparent)!important}
html body[data-plan="outline"] .ln-row .bar.plan.cl.cr{box-shadow:inset 0 1.5px 0 color-mix(in srgb,var(--d) 70%,transparent),inset 0 -1.5px 0 color-mix(in srgb,var(--d) 70%,transparent)!important}
html body[data-plan="dash"] .ln-row .bar.plan.cl{border-left:0!important}
html body[data-plan="dash"] .ln-row .bar.plan.cr{border-right:0!important}
html body .ln-row .bar.cl{border-top-left-radius:0!important;border-bottom-left-radius:0!important}
html body .ln-row .bar.cr{border-top-right-radius:0!important;border-bottom-right-radius:0!important}

/* ── 여러 줄에 걸친 덩어리 = 한 모양 (mergeBars 가 그리는 계단 모양 하나) ── */
html body #tt,html body .tt,html body .wk-tt{position:relative}
html body svg.mg{position:absolute;left:0;top:0;pointer-events:none;z-index:0;overflow:visible}
html body svg.mg path{stroke:none}
html body svg.mg.mg-done path{fill:color-mix(in srgb,var(--d) var(--pen-a),transparent)}
html body svg.mg.mg-plan path{fill:color-mix(in srgb,var(--d) 6%,transparent);stroke:color-mix(in srgb,var(--d) 75%,transparent);stroke-width:.9px}
html body[data-plan="outline"] svg.mg.mg-plan path{fill:color-mix(in srgb,var(--d) 5%,transparent);stroke:color-mix(in srgb,var(--d) 70%,transparent)}
html body[data-plan="clear"] svg.mg.mg-plan path{fill:none;stroke:color-mix(in srgb,var(--d) 70%,transparent);stroke-width:var(--bar-stroke,.9px)}
html body[data-plan="dash"] svg.mg.mg-plan path{fill:none;stroke-width:var(--bar-stroke,.9px);stroke-dasharray:var(--bar-dash,3px 2.5px)}
html body[data-plan="pale"] svg.mg.mg-plan path{fill:color-mix(in srgb,var(--d) 10%,transparent);stroke:none}
html body[data-plan="hatch"] svg.mg.mg-plan path{stroke:none}
html body svg.mg .mgh{fill:color-mix(in srgb,var(--d) 40%,transparent)}
/* A partly painted appointment keeps one outside contour while the ink only
   covers its completed minutes. Draw the contour last, above the ink. */
html body svg.mg.mg-mixed-edge path{fill:none;stroke:color-mix(in srgb,var(--d) 70%,transparent);stroke-width:var(--bar-stroke,.9px)}
html body[data-plan="dash"] svg.mg.mg-mixed-edge path{stroke-dasharray:var(--bar-dash,3px 2.5px)}
html body svg.mg.mg-rz-frame{z-index:3}
html body svg.mg.mg-rz-frame path{fill:none;stroke:var(--d);stroke-width:calc(var(--bar-stroke,.9px) * 1.6667);stroke-dasharray:var(--bar-dash,3px 2.5px)}
html body .ln-row .bar.mg-in.mg-in.mg-in.mg-in.mg-in.mg-in{background:none!important;box-shadow:none!important;border-color:transparent!important}
/* 습관 알약: '오늘만 쉬기·편집' — 넓은 화면은 한 줄, 폰은 '오늘만'을 위에 작게 접어 알약 한 줄에 다 들어가게 */
html body .t2 small{font-size:inherit;font-weight:inherit}
html body.dev-phone .pop.strip .st-ch > button .t2{display:inline-flex;flex-direction:column;align-items:center;line-height:1.05}
html body.dev-phone .pop.strip .st-ch > button .t2 small{font-size:9px;font-weight:600;opacity:.65}
html body.dev-phone .pop.strip .st-ch > button:has(.t2){padding:0 9px}
html body.dev-phone .pop.strip .st-ch > button.t-ib.t-time{width:auto;min-width:0;padding:0 8px;font-size:12px}
html body.dev-phone .pop.strip .st-ch > button.t-ib:not(.t-time),html body.dev-phone .pop.strip .st-ch > .st-box{width:28px;min-width:28px;height:28px}
html body.dev-phone .pop.strip .st-ch > button.t-ib.t-time{padding:0 6px;font-size:11px}
html body.dev-phone .pop.strip .st-ch > .t-sub.hb-name{max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}
/* 습관 알약: 이름 칩 앞 = 그 습관 아이콘 (했으면 기본 컬러) · 별 켜짐 = 과목 알약과 같은 노랑 */
html body .pop.strip .hb-name .hb-ic{margin:0 5px 0 0;color:var(--sub)}
html body .pop.strip .hb-name.on .hb-ic{color:var(--accent)}
html body .pop.strip .t-ib.on{color:#E9A23B}
/* 습관 알약(look-tools)도 폰에선 과목 줄 알약처럼 빽빽하게 */
html body.dev-phone .pop.strip.look-tools .st-ch{gap:1px;justify-content:space-between}
html body.dev-phone .pop.strip.look-tools .hb-name .hb-ic{margin-right:3px}
@media (max-width:365px){
  html body.dev-phone .pop.strip.look-tools .st-ch > button.t-ib:not(.t-time),html body.dev-phone .pop.strip.look-tools .st-ch > .st-box{width:26px;min-width:26px}
  html body.dev-phone .pop.strip.look-tools .st-ch > button.t-ib.t-time{padding:0 4px;font-size:10.5px}
  html body.dev-phone .pop.strip.look-tools .st-ch > .t-sub.hb-name{max-width:21%;padding:0 5px}
}

/* ── 내지 꾸미기: 종이 바탕 · 틀 색 (body[data-paper] · body[data-frame], 값은 --paper · --frame) ── */
html body[data-paper]:not([data-paper="white"]) :is(.page,.wk-page){--card:var(--paper);--board:var(--paper);background-color:var(--paper)}
:root[data-theme="dark"] body[data-paper]:not([data-paper="white"]) :is(.page,.wk-page){--card:color-mix(in srgb,var(--paper) 7%,#1D2126);--board:color-mix(in srgb,var(--paper) 7%,#15181C);background-color:var(--board)}
html body[data-frame]:not([data-frame="ink"]) :is(.page,.wk-page){--ink:var(--frame)}
html body[data-frame]:not([data-frame="ink"]) :is(.page,.wk-page) .sh-lab{color:var(--ink)}
:root[data-theme="dark"] body[data-frame]:not([data-frame="ink"]) :is(.page,.wk-page){--ink:color-mix(in srgb,var(--frame) 55%,#E7E9EC)}
/* 설정: 고르는 칸 = 작은 종이 (바탕 + 틀 선 · 제목) */
.pp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 12px}
.pp-sw{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;color:var(--sub2)}
.pp-tile{display:flex;flex-direction:column;justify-content:center;gap:3px;width:100%;height:50px;padding:6px 8px;border-radius:8px;background:var(--pb);border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08),0 1px 2px rgba(20,30,40,.06);box-sizing:border-box}
.pp-tile b,.pp-tile em{font:700 7.5px/1 Pretendard,sans-serif;letter-spacing:.1em;color:var(--pf);font-style:normal}
.pp-tile i{display:block;height:1.5px;background:var(--pf);border-radius:1px}
.pp-sw.on .pp-tile{border-color:var(--accent)}
.pp-sw.on span{color:var(--text);font-weight:600}
/* COMMENT · TOTAL TIME 아래 줄 없앰 — 휴대폰만 빠져 있던 것을 패드·PC(두 쪽 모두)도 (사용자 "여기 줄 없애기로 했잖아") */
html body #midRow,html body #slotTotal,html body .prev-page .sheet-head .m-goal,html body .prev-page .sheet-head .m-total{border-bottom:0!important}
/* ④ 휴대폰: 아래 적기 칸을 누르면 키보드에 딱 붙게 (떠 있던 틈 없애기) */
html body.dev-phone.kb-q .quick{bottom:0!important;left:0!important;right:0!important;border-radius:18px 18px 0 0!important;box-shadow:0 -2px 12px rgba(20,30,40,.1)!important}
html body.dev-phone.kb-q .pens-bar{display:none!important}
/* 휴대폰 주간 요일 줄: 켜진 것 = 보이는(고른) 날 · 오늘은 숫자만 기본 컬러 */
html body .wk-strip-in button.today b{color:var(--accent)}
html body .wk-strip-in button.on.today b{color:var(--card)}
/* 휴대폰: 종이 위 두 손가락 = 브라우저 확대가 아니라 편집 화면 들어가기/나오기 (안드로이드 크롬은 touch-action 으로 막는다, 아이폰은 gesturestart) */
html body.dev-phone #dayView,html body.dev-phone #calView{touch-action:pan-x pan-y}
html body.dev-phone{touch-action:pan-x pan-y}   /* 휴대폰 전체: 브라우저 확대 끔 (안드로이드) */
/* ── 휴대폰 확대(편집) 상태: 같은 쪽을 자연 크기로 키우고 #dayView 안에서 두 방향으로 끌어 본다. 시간표 칸 위 한 손가락 = 칠하기 ── */
html body.dev-phone.zoom-in #dayView{overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior:contain}
html body.dev-phone.zoom-in #dayView .spread{margin:0;width:max-content}
html body.dev-phone.zoom-in #dayView .page{margin:0}
html body.dev-phone.zoom-in .board{overflow:visible}
html body.dev-phone.zoom-in #tt .c,html body.dev-phone.zoom-in .wk-tt .c{touch-action:none}   /* 바로 끌면 우리가 스크롤(panMove), 꾹 누르면 칠하기 (planner.js hold) */
html body.dev-phone :is(#tt,.wk-tt) .c:is(.hold-pending,.hold)::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:2px;background:color-mix(in srgb,var(--hold-color,var(--accent)) 24%,transparent);transform-origin:left center}
html body.dev-phone :is(#tt,.wk-tt) .c.hold-pending::after{animation:hold-cell-fill var(--hold-ms,280ms) linear both}
html body.dev-phone :is(#tt,.wk-tt) .c.hold::after{background:color-mix(in srgb,var(--hold-color,var(--accent)) 38%,transparent);transform:scaleX(1)}
@keyframes hold-cell-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hold-preview{position:fixed;z-index:65;pointer-events:none;user-select:none;display:flex;flex-direction:column;align-items:center;gap:3px;width:70px;padding:6px 8px;border-radius:10px;background:var(--card);border:1px solid var(--line);box-shadow:0 3px 12px rgba(20,25,35,.16)}
.hold-preview-time{font:600 11px/1.2 Pretendard,sans-serif;color:var(--text);font-variant-numeric:tabular-nums}
.hold-preview-cell{display:block;position:relative;width:54px;height:22px;border:1px dotted var(--hold-color);border-radius:3px;overflow:hidden}
.hold-preview-cell::after{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--hold-color) 38%,transparent);transform-origin:left center;animation:hold-cell-fill var(--hold-ms,280ms) linear both}
.hold-preview.armed .hold-preview-cell::after{animation:none;transform:scaleX(1);background:color-mix(in srgb,var(--hold-color) 65%,transparent)}
@media(prefers-reduced-motion:reduce){.hold-preview-cell::after{animation:none;transform:scaleX(1);opacity:.5}.hold-preview.armed .hold-preview-cell::after{opacity:1}}
html body.dev-phone :is(#tt,.wk-tt) .c{touch-action:none}
@media(prefers-reduced-motion:reduce){html body.dev-phone :is(#tt,.wk-tt) .c.hold-pending::after{animation:none;transform:scaleX(1);opacity:.5}}
html body.dev-phone.zoom-in.brushing #tt .c,html body.dev-phone.zoom-in.erasing #tt .c,html body.dev-phone.zoom-in.brushing .wk-tt .c,html body.dev-phone.zoom-in.erasing .wk-tt .c{touch-action:none}   /* 펜·지우개를 골랐으면 바로 끌어 칠한다 */
/* 설정 서랍(휴대폰): 화면 높이에 맞추고 안에서 스크롤 — 다른 규칙이 height 를 내용 높이로 잡아 아래가 화면 밖으로 나가던 것 (사용자 "메뉴도 드래그가 안 되고 있어") */
html body.drawer .side{align-self:stretch!important;height:auto!important;max-height:none!important;top:0;bottom:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}

/* ── 휴대폰 종이: 확대 전후 동일한 글자·선 비율. 한 장 보기에서만 안내 숨김과 가운데 배치 ── */
html body.dev-phone:not(.zoom-in) #dayView .page{margin:0 auto;border-radius:6px;box-shadow:0 1px 2px rgba(20,30,40,.08),0 10px 28px rgba(20,30,40,.12)}
html body.dev-phone .page .sh-lab{font-size:8px;letter-spacing:.1em;margin-bottom:2px}
html body.dev-phone .page .date-main{font-size:18px}
html body.dev-phone .page .dd-i{font-size:11px}
html body.dev-phone .page .stat-val{zoom:.68}
html body.dev-phone .page #goal{font-size:11.5px}
html body.dev-phone .page #big3{zoom:.75}
html body.dev-phone .page .tk-row .todo-t,html body.dev-phone .page .tk-row.blank .todo-in{font-size:11.5px}
html body.dev-phone .page .tk-lab{font-size:9.5px}
html body.dev-phone .page .hb-t .hb-time,html body.dev-phone .page .memo{font-size:11px}
html body.dev-phone .page .ln-h{font-size:9.5px;font-weight:800;color:var(--ink)}
html body.dev-phone .page .ln-row .bar em{font-size:9.5px}
html body.dev-phone .page .ln-row{border-bottom-color:var(--paper-rule)}
html body.dev-phone .page .c.ln{border-left-color:var(--paper-dot)}
html body.dev-phone .page .tk-row{border-bottom-color:var(--paper-rule)}
html body.dev-phone .page .tk-lab{border-right-color:var(--paper-dot)}
html body.dev-phone .page .memo,html body.dev-phone .page .memo-sec .memo{background-image:linear-gradient(transparent calc(100% - 1px),var(--paper-rule) 0)}
html body.dev-phone:not(.zoom-in) .page ::placeholder{color:transparent!important}
html body.dev-phone:not(.zoom-in) .page .empty,html body.dev-phone:not(.zoom-in) .page .hint{display:none!important}
/* ── 키보드가 떠 있을 때(kb-up): 적기 칸은 키보드에 딱 붙고(아래 모서리 각지게, 틈 없이), 미리 보기 줄은 칸 위에 ── */
html body.dev-phone.kb-up .quick{border-radius:16px 16px 0 0!important;box-shadow:0 -4px 16px rgba(20,30,40,.12)!important;margin:0!important;padding-bottom:8px!important}
html body.dev-phone .quick{display:flex!important;flex-direction:column}
html body.dev-phone .quick .quick-hint{order:-1;padding:4px 12px 2px;font-size:12px;line-height:1.35;color:var(--sub2)}
html body.dev-phone.kb-up #dayView{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* 확대 중 좌우는 [쓰기|시간] 단추로만 (끌어서 좌우 이동 없음 → 옆으로 튕기기 = 쪽 넘기기) */
html body.dev-phone.zoom-in #dayView{overflow-x:hidden}

/* 휴대폰 확대 중: #dayView 높이가 적기 칸 위까지로 이미 계산돼 있으니 .app 아래 여백은 빼서 창 자체가 22px 밀리지 않게 (fuzz H11) */
html body.dev-phone.zoom-in .app{padding-bottom:0}

/* 휴대폰: 끝까지 민 뒤 더 밀어도 브라우저가 뒤로 가기·당겨서 새로 고침을 하지 않게 (fuzz: 확대 중 오른쪽으로 밀기 → about:blank 로 돌아감) */
html body.dev-phone,html:has(body.dev-phone){overscroll-behavior:none}
html body.dev-phone #dayView,html body.dev-phone #calView,html body.dev-phone .side{overscroll-behavior:contain}

/* 휴대폰 확대 중: 옆으로 끌기는 우리가 처리(쓰기↔시간·두 손 끌기), 브라우저는 세로만 — 옆으로 끌 때 브라우저 뒤로 가기(overscroll) 가 끼어들지 않게 */
html body.dev-phone.zoom-in #dayView{touch-action:pan-y}

/* ── 10/12 휴대폰 정돈: 알약 = ☆ · 시간 · ⋯, 적는 중엔 알약·동그라미 숨김, 작은 알림 ── */
html body.dev-phone .pop.strip.q-tools .st-ch.ph3{justify-content:center;gap:10px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button.t-ib:not(.t-time){width:38px;min-width:38px;height:34px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button.t-ib.t-time{padding:0 12px;height:34px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button.t-ib.t-time small{font-size:12px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button svg{width:18px;height:18px}
html body.dev-phone.pin-focus #qTools,html body.dev-phone.pin-focus #rzLayer{display:none!important}
html body.dev-phone .toast{font-size:12px;padding:7px 10px 7px 12px;border-radius:11px;gap:8px;max-width:calc(100vw - 48px)}
html body.dev-phone .toast button{font-size:12px}

/* 확대 막대의 ‹ › (휴대폰): ⤢ ‹ 날짜 › …… [쓰기|시간] */
body.dev-phone .tabbar .tb-nav.zb-nav{width:30px;height:30px;border-radius:50%;justify-content:center;color:var(--sub);flex:none;padding:0}
body.dev-phone .tabbar .tb-nav.zb-nav:active{background:var(--soft)}
body.dev-phone .tabbar .zb-back+.zb-nav{margin-left:-4px}
@media (max-width:360px){body.dev-phone.zoom-in .tabbar .zb-date span{display:none}body.dev-phone .tabbar .tb-nav.zb-nav{width:26px}}

/* 축소한 한 장에서도 선이 보이게. 종이 바탕과 선택한 틀 색은 그대로 사용한다. */
html body :is(.page,.wk-page){--paper-rule:color-mix(in srgb,var(--frame) 60%,transparent);--paper-dot:color-mix(in srgb,var(--frame) 70%,transparent);--line:var(--paper-rule);--line2:var(--paper-rule)}
html body .page .ln-row,html body .wk-page .wk-tt .ln-row{border-bottom:.65px solid var(--paper-rule)!important}
html body .page .c.ln,html body .wk-page .wk-tt .c.ln{border-left:.65px dotted var(--paper-dot)!important}
html body .page .c.ln:first-of-type,html body .wk-page .wk-tt .c.ln:first-of-type{border-left-color:transparent!important}
/* 10/14 아이폰 사파리는 1px 보다 가는 점선 테두리를 칸 위 짧은 눈금으로만 그린다 → 세로 점선(시간표 10분·TASKS 과목 칸·MEMO)을 테두리 대신 그림으로.
   굵기는 화면 1픽셀(--hair, planner.js 가 기기 배율로 넣음 — 테두리는 브라우저가 늘 1픽셀 이상으로 그려 줌), 점·틈은 마스크로 1px 씩이라 줄마다 고르게 */
html body .page .c.ln,html body .wk-page .wk-tt .c.ln{border-left-color:transparent!important;position:relative}
html body .page .c.ln::before,html body .wk-page .wk-tt .c.ln::before{content:"";position:absolute;left:calc(var(--hair,.5px) * -.5);top:0;bottom:0;width:0;border-left:var(--hair,.5px) solid var(--paper-dot);-webkit-mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;pointer-events:none}
html body .page .ln-row>.c.ln:nth-child(2)::before,html body .page .c.ln:first-of-type::before,html body .wk-page .wk-tt .c.ln:first-of-type::before,html body .c.ln.on.jp::before{content:none}
html body .page .tk-row,html body .wk-page .wk-td{border-bottom:.65px solid var(--paper-rule)!important}
html body .page .tk-lab{border-right-color:var(--paper-dot)!important}
/* 빈 과목 칸도 줄 높이 전체를 차지해야 세로 점선이 이어진다.
   10/17 점선은 칸 안쪽 끝(right:0)에 — 칸 경계에 반쯤 걸치면 과목 칸의 overflow:hidden 이 잘라, 쪽·줄 위치(화면 픽셀 경계)에 따라 한 쪽에선 보이고 다른 쪽에선 사라졌다 (사용자 "TASK 세로줄이 안 나와") */
html body .page .tk-row{grid-template-rows:minmax(0,1fr)}
html body .page .tk-row .tk-lab{height:100%;min-height:0;align-self:stretch;box-sizing:border-box;border-right:.65px solid transparent!important;position:relative}
html body .page .tk-row .tk-lab:not([data-hb-ink])::before{content:"";position:absolute;right:0;top:0;bottom:0;width:0;border-left:var(--hair,.5px) solid var(--paper-dot);-webkit-mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;pointer-events:none}
/* 루틴 줄은 ::before 를 물감 칠(routine-chip.css)에 쓰므로 점선은 ::after 로 */
html body .page .hb-todos .tk-row .tk-lab[data-hb-ink]::after{content:"";position:absolute;right:0;top:0;bottom:0;width:0;border-left:var(--hair,.5px) solid var(--paper-dot);-webkit-mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;pointer-events:none}
html body .page .tk-row .chk:not(.hb-cnt){border-color:color-mix(in srgb,var(--ink) 48%,transparent)!important;border-width:1.25px}
html body .page :is(#memo,.m-memo){background-image:linear-gradient(transparent calc(var(--row) - .65px),var(--paper-rule) calc(var(--row) - .65px))!important}
html body .page .memo-sec::before{width:0;border-left:var(--hair,.5px) solid var(--paper-dot)!important;-webkit-mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y;mask:linear-gradient(#000 1px,transparent 1px) 0 0/100% 2px repeat-y}
html body.dev-phone .page .date-main{font-size:21px}
html body.dev-phone .page .tk-row :is(.todo-t,.todo-in){font-size:12px}
html body.dev-phone .page .ln-h{font-size:11px}
html body.dev-phone .page .ln-h span{font-weight:700}
html body.dev-phone .page .sh-lab{font-size:9px!important;letter-spacing:.05em}
html body.dev-pad .page .sh-lab{font-size:9px!important}
html body.dev-phone.zoom-in #calView{overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
html body.dev-phone.zoom-in #calView .wk-page{margin-bottom:0}
html body.dev-phone.zoom-in .wk-strip-wrap{position:sticky;top:0;z-index:8;background:var(--bg);padding-bottom:6px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3{gap:8px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button.t-ib{min-height:44px}
html body.dev-phone .pop.strip.q-tools .st-ch.ph3 > button.t-ib:not(.t-time){min-width:44px;width:44px}
html body.dev-phone .page .tk-row.blank .todo-in{font-size:12px}
html body .wk-page .wk-card .wk-t{border-bottom-color:var(--paper-rule)}
/* 같은 작은 알약에서 과목·내용·시간을 독립적으로 고친다. */
.modebar.item-editor{box-sizing:border-box;height:36px;padding:2px 5px;gap:3px;max-width:calc(100vw - 16px);border-radius:18px;white-space:nowrap}
.item-editor .mode-subject{display:flex;align-items:center;gap:3px;flex:0 1 52px;min-width:32px;height:28px;padding:0 5px;border:0;border-radius:14px;background:var(--sel);color:var(--text);font-size:11px;font-weight:600;overflow:hidden}
.item-editor .mode-subject i{width:6px;height:6px;border-radius:50%;background:var(--dot);flex:none}
.item-editor .mode-subject b{overflow:hidden;text-overflow:ellipsis;font-size:inherit}
.item-editor .mode-name{flex:1 1 60px;min-width:32px;height:28px;border-left:1px solid var(--line);padding-left:4px;overflow:hidden}
/* 입력은 16px를 유지하고 표시만 13px로 줄여 작은 알약에서도 직접 적을 수 있게 한다. */
html body .item-editor input{box-sizing:border-box;position:absolute;left:0;top:50%;width:123.076923%;height:32px;min-width:0;margin:0;padding:0 2px;border:0;border-radius:5px;outline:none;background:transparent;color:var(--text);font-family:inherit;font-size:16px;font-weight:500;box-shadow:none;transform:translateY(-50%) scale(.8125);transform-origin:left center}
.item-editor .mode-name,.item-editor .mode-clock{position:relative}
.item-editor .mode-name input{left:4px;width:calc((100% - 4px)*1.23076923)}
.item-editor input:focus{background:var(--sel)}
.item-editor .mode-times{display:flex;align-items:center;gap:0;flex:none;border-left:1px solid var(--line);border-right:1px solid var(--line);padding-left:3px;padding-right:3px}
.item-editor .mode-clock{display:block;width:39px;height:28px;overflow:hidden}
html body .item-editor .mode-times input{text-align:center;font-variant-numeric:tabular-nums;padding:0}
.item-editor .mode-times span{font-size:10px;color:var(--muted)}
.item-editor .mode-times.count .mode-clock{width:28px}
html body .item-editor .mode-more,html body .item-editor .mode-done{position:relative;isolation:isolate;display:grid;place-items:center;flex:none;width:26px;height:32px;padding:5px;border:0;border-radius:50%;background:transparent;color:var(--text)}
html body .item-editor .mode-done{color:var(--bg)}
.item-editor .mode-more svg,.item-editor .mode-done svg{width:15px;height:15px}
.item-editor [aria-invalid="true"]{outline:1px solid var(--accent)}
/* 과목 표시는 새 칠하기·수정·툭 미리보기에서 같은 작은 형광펜 네모를 쓴다. */
html body .subject-mark,html body .item-editor .mode-subject .subject-mark{display:inline-block;box-sizing:border-box;flex:none;width:11px;height:11px;border-radius:3px;border:1.2px solid var(--dot,var(--accent));background:var(--sel,var(--hl))}
html body .sw.subject-chip{display:inline-flex;align-items:center;gap:4px;padding:1px 5px;border-radius:7px;background:var(--sel);color:var(--text);font-size:inherit;font-weight:600;line-height:1.3;vertical-align:baseline;white-space:nowrap}
/* 10/20 다크: 형광 바탕(--sel)을 그대로 칠하면 밝은 칸에 밝은 글씨라 안 보였다 → 어둡게 섞기 (planner.css 의 .todo.sel 다크와 같은 방식)
   과목 알약(넣었어요 알림·메뉴) · 할 일 고치기 줄의 과목 단추 · 고치는 칸 · 과목 고르기 줄 */
:root[data-theme="dark"] body :is(.sw.subject-chip,.item-editor .mode-subject,.item-editor input:focus,.mode-subj-row .msr-chip.on,.item-editor .mode-time-button:active){background:color-mix(in srgb,var(--sel) 34%,transparent)}
/* 폰의 선택 알약도 수정 알약과 같은36px 높이. 긴 선택 목록은 안에서 옆으로 민다. */
html body.dev-phone .pop.strip:not(.vertical-choice){height:36px;padding:0 4px 0 7px;gap:3px;border-radius:18px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-t{gap:4px;max-width:42%;min-width:0;flex:0 1 auto;overflow:hidden;font-size:11px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-t b{max-width:100%;font-size:11px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-t small{font-size:10.5px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch{gap:3px;overflow-x:auto;scrollbar-width:none;justify-content:flex-start}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch > :is(button,a,.t-sub){height:26px;min-height:26px;min-width:26px;padding:0 7px;border-radius:13px;font-size:11.5px;gap:4px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch > button.t-ib:not(.t-time),html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch.ph3 > button.t-ib:not(.t-time){width:26px;min-width:26px;height:26px;min-height:26px;padding:0}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch.ph3 > button.t-ib.t-time{height:26px;min-height:26px;padding:0 7px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-ch > .st-box{width:26px;min-width:26px;height:26px}
html body.dev-phone .pop.strip:not(.vertical-choice) .st-x{width:26px;height:26px;margin-left:0}
html body.dev-phone .quick.typing{padding:4px}
html body.dev-phone .quick.typing .quick-hint{padding:3px 10px 1px;font-size:11.5px;line-height:1.3}
html body.dev-phone .quick.typing .quick-box input{padding:6px 0}
html body.dev-phone .quick.typing .quick-go{padding:7px 12px;font-size:13px}
/* 과목 선택: 아래 입력창 위의 작은 세로 목록, 마지막에는 새 과목 추가. */
html body .pop.strip.vertical-choice{display:grid;grid-template-columns:1fr 32px;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;height:auto;max-height:var(--choice-max,320px);padding:6px;gap:4px;border-radius:18px}
html body .pop.strip.vertical-choice .st-t{grid-column:1;grid-row:1;min-width:0;max-width:none;padding:0 8px;font-size:12px}
html body .pop.strip.vertical-choice .st-x{grid-column:2;grid-row:1;margin:0}
html body .pop.strip.vertical-choice .st-ch{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;gap:3px;scrollbar-width:thin}
html body .pop.strip.vertical-choice .st-ch > button{width:100%;min-height:40px;height:auto;border-radius:11px;justify-content:flex-start;padding:8px 12px;font-size:13px;line-height:1.3;white-space:normal;text-align:left;overflow-wrap:anywhere}
html body .pop.strip.vertical-choice .st-ch > button.on{background:var(--soft2);box-shadow:inset 0 0 0 1.5px var(--accent)}
html body .pop.strip.vertical-choice .st-add{grid-column:1/-1;grid-row:3;min-height:40px;border:0;border-top:1px solid var(--line);border-radius:0 0 12px 12px;background:var(--card);color:var(--accent);font-size:13px;font-weight:600;text-align:left;padding:0 12px}
button.tk-lab{border:0;background:transparent;color:inherit;padding:0;font-family:inherit;cursor:pointer}
.item-editor .mode-more::before,.item-editor .mode-done::before{content:"";position:absolute;inset:3px 0;border-radius:50%;background:var(--bg2);z-index:-1}
.item-editor .mode-done::before{background:var(--text)}
html body.dev-phone #sideSet .set-row .seg{display:inline-flex;align-items:center;gap:2px;flex:none;height:auto;padding:2px;border-radius:18px;background:var(--soft)}
html body.dev-phone #sideSet .set-row .seg button{min-height:36px;padding:0 10px;border-radius:16px}
html body.dev-phone #sideSet .set-row .seg button.on{background:var(--card);color:var(--text)}
html body.dev-phone #sideSet .set-row:has(.seg){flex-wrap:wrap;gap:6px}
html body.dev-phone #sideSet :is(.mini,.hb-kinds button,.hb-chip,.bk-ed){min-width:36px;min-height:36px;height:auto}
html body.dev-phone #sideSet .dot[data-sc]{width:36px;height:36px;min-width:36px;flex:none}
html body.dev-phone #sideSet input{font-size:16px}
html body[data-colors="simple"] .chk .mkg{color:var(--mono-pen,var(--accent))!important}
/* 10/15 월간 아래 목록: 형광펜은 이름 글자에만 (사용자 "밑에 형광펜이 너무 길어 · 이름에다만") — 전엔 시각까지 줄 전체 */
html body .ms-todo.m-o .ms-item-name{color:var(--text);font-weight:500}
html body .ms-todo.m-o .ms-item-name > span{background:linear-gradient(transparent 50%,color-mix(in srgb,var(--dot,var(--accent)) var(--pen-a),transparent) 50%,color-mix(in srgb,var(--dot,var(--accent)) var(--pen-a),transparent) 92%,transparent 92%);padding:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body .ms-todo.m-x .ms-item-name{text-decoration:line-through;color:var(--sub)}
html body .ms-todo.m-arrow .ms-item-name{color:var(--faint)}
html body .wk-page .wk-t .chk{border-color:color-mix(in srgb,var(--ink) 48%,transparent)}
/* The week is a continuous strip. Timetable cells keep their hold-to-paint gesture. */
html body.dev-phone #wkCols{scroll-snap-type:none;touch-action:pan-x;overscroll-behavior-x:none;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
/* A normal horizontal swipe over a weekly time cell uses the same native,
   continuous strip as its card heading. Vertical cell panning stays manual;
   brush, eraser, edit and the floating resize handles retain touch ownership. */
html body.dev-phone.view-week:not(.brushing):not(.erasing):not(.tt-editing) #wkCols .wk-tt .c{touch-action:pan-x}
/* Give Sunday's 1px right border room at the final stop without adding a
   second flex gap: both Saturday and Sunday must remain fully visible. */
html body.dev-phone #wkCols::after{content:none}
html body.dev-phone #wkCols > .wk-col:last-child{margin-right:4px}
html body.dev-phone.view-week.zoom-in #calView{touch-action:pan-x}
/* Weekly paper stays vertically in place. A swipe within the week can still
   follow the finger horizontally before settling at the requested edge. */
html body.dev-phone.view-week #calView{touch-action:pan-x;overflow-y:hidden;overscroll-behavior-y:none}
html body.dev-phone.view-week .wk-strip-in{touch-action:none}
html body.dev-phone.tt-editing #wkCols{touch-action:none}
html body.dev-phone.wk-strip-turning #calView .wk-strip-wrap{visibility:hidden}
html body.dev-phone .wk-strip-turn-clone{position:fixed;z-index:80;box-sizing:border-box;margin:0!important;visibility:visible!important;pointer-events:none;will-change:transform,opacity}
/* 일간·월간 옆밀기는 앱이 날짜 넘기기로 처리한다. 세로 스크롤은 브라우저에 맡긴다. */
html body.dev-phone.view-day #dayView,html body.dev-phone.view-month #calView{touch-action:pan-y}
html body .page .tk-row .chk.ghost,html body .wk-page .wk-t .chk.ghost{opacity:.8}
html body[data-colors="simple"] .mo-bar{background:var(--mono-pen,var(--accent))}
html body[data-colors="simple"] .mo-min{color:var(--mono-pen,var(--accent))}
.ms-item-name{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left}
.ink-splash{position:fixed;z-index:67;pointer-events:none;user-select:none;--splash-ms:580ms;--impact-w:18px;--impact-h:15px}
.ink-splash-full{--splash-ms:720ms;--impact-w:27px;--impact-h:23px}
.ink-splash::before{content:"";position:absolute;left:calc(var(--impact-w) / -2);top:calc(var(--impact-h) / -2);width:var(--impact-w);height:var(--impact-h);border-radius:35% 65% 41% 59% / 62% 38% 62% 38%;background:var(--splash-color);animation:ink-impact var(--splash-ms) ease-out both}
.ink-splash i{position:absolute;display:block;left:0;top:0;border-radius:65% 35% 55% 45% / 42% 68% 32% 58%;background:var(--splash-color);opacity:0;animation:ink-droplet var(--splash-ms) cubic-bezier(.12,.66,.22,1) var(--delay,0ms) both}
.ink-splash i:nth-child(3n){border-radius:35% 65% 42% 58% / 68% 32% 60% 40%}
.ink-splash i.ink-streak{border-radius:75% 25% 35% 65% / 55% 45% 55% 45%}
@keyframes ink-impact{0%{transform:scale(.3) rotate(-12deg);opacity:0}12%{transform:scale(1.2) rotate(5deg);opacity:.95}45%{transform:scale(1.45) rotate(9deg);opacity:.75}100%{transform:scale(1.65) rotate(12deg);opacity:0}}
@keyframes ink-droplet{0%{transform:translate(-3px,-3px) rotate(var(--angle)) scale(.3);opacity:0}10%{opacity:1}45%{opacity:.95}72%{opacity:.75}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--angle)) scale(.65);opacity:0}}
@media(prefers-reduced-motion:reduce){.ink-splash{display:none}}

/* 과목 칸을 줄이고 메뉴·휴지통·확인을 같은 알약 안에 둔다. */
html body .item-editor .mode-subject{box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;gap:0;padding:0 3px;font-size:9.5px;letter-spacing:0}
html body .item-editor .mode-subject b{display:block;flex:1;min-width:0;font-size:9.5px;line-height:1.2;font-weight:600;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .item-editor .mode-menu{display:grid;place-items:center;flex:none;width:24px;height:32px;padding:4px;border:0;border-radius:12px;background:transparent;color:var(--text)}
html body .item-editor .mode-menu svg{width:15px;height:15px}
html body .item-editor .mode-menu:active,html body .item-editor .mode-menu[aria-expanded="true"]{background:var(--soft2)}
html body .item-editor :is(.mode-menu,.mode-more,.mode-subject):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* DONE ink is replayed above the redrawn grid; only the captured color is clipped away. */
.tuk-ink-erase{position:fixed;z-index:44;overflow:hidden;pointer-events:none;user-select:none;contain:layout style paint}
.tuk-ink-erase-piece{position:absolute;display:block;overflow:hidden;pointer-events:none;will-change:clip-path}
.tuk-ink-erase-piece svg{display:block;overflow:hidden;pointer-events:none}
.hold-preview.erase .hold-preview-cell::after{animation-direction:reverse;background:color-mix(in srgb,var(--hold-color) 65%,transparent)}
.hold-preview.erase.armed .hold-preview-cell::after{animation:none;transform:scaleX(0);opacity:0}
/* The content field is optically centered at 11px; its native input stays 16px. */
html body .item-editor .mode-name{padding-left:0}
html body .item-editor .mode-name input{left:0;width:145.454545%;padding:0 3px;text-align:center;transform:translateY(-50%) scale(.6875)}
html body .item-editor .mode-subject{justify-content:center;gap:0}
/* 루틴 알약과 입력 미리보기는 시간표의 기존 아이콘을 그대로 보여준다. */
html body .item-editor .mode-subject.mode-routine b{display:flex;align-items:center;justify-content:center}
html body .item-editor .mode-routine-icon{display:block;flex:none;width:14px;height:14px;margin:0;color:inherit}
html body .routine-subject-chip{justify-content:center;min-width:18px}
html body .routine-subject-chip .mode-routine-icon{display:block;flex:none;width:1.1em;height:1.1em;margin:0;color:inherit}
@media(prefers-reduced-motion:reduce){.tuk-ink-erase{display:none}.hold-preview.erase .hold-preview-cell::after{animation:none;transform:scaleX(1);opacity:.5}.hold-preview.erase.armed .hold-preview-cell::after{transform:scaleX(0);opacity:0}}
/* 10/14 설정 › 루틴: 루틴 하나당 한 줄 [아이콘] 이름 · 반복·시각 [TASKS] › — 누른 것만 아래에 자세히 */
html body .hb-ed2.hb-closed{padding:0}
html body .hb-line{display:flex;align-items:center;gap:6px;min-height:48px}
html body .hb-line-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:8px 2px;border:0;background:none;text-align:left;cursor:pointer;color:var(--text);font:inherit}
html body .hb-line-ic{flex:none;width:28px;height:28px;display:grid;place-items:center;color:var(--sub)}
html body .hb-line-ic svg{width:20px;height:20px}
html body .hb-line-dot{display:block;width:10px;height:10px;border-radius:50%}
html body .hb-line-main b{flex:none;max-width:46%;font:600 15px/1.25 Pretendard,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .hb-line-main small{flex:1;min-width:0;font:400 12px/1.25 Pretendard,sans-serif;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .hb-line-chev{flex:none;font-style:normal;color:var(--sub);opacity:.7;font-size:15px;width:12px;text-align:center}
html body .hb-intask{flex:none;height:28px;padding:0 9px;border-radius:14px;border:1px solid var(--line);background:none;font:700 10px/1 Pretendard,sans-serif;letter-spacing:.06em;color:var(--sub);cursor:pointer;opacity:.65}
html body .hb-intask.on{opacity:1;background:color-mix(in srgb,var(--accent) 14%,transparent);border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--accent)}
html body .hb-ed2.hb-open{margin:2px -8px;padding:0 8px 10px;border-radius:12px;background:color-mix(in srgb,var(--accent) 5%,transparent)}
/* 10/14 주간 맨 위 '이번 주 학교' 줄(시험 D-day ↔ 급식, ▾ 로 요일별 일정·급식·시간표) — 머리 바꾼 뒤 빠져 있던 것 되살림 */
html body .wk-infobar{display:flex;align-items:center;gap:8px;margin:0 2px 8px;padding:8px 10px 8px 12px;border-radius:12px;background:var(--card);box-shadow:0 1px 4px rgb(24 24 22 / 6%)}
html body .wk-infobar .wk-info{flex:1;min-width:0;align-items:flex-start!important}
html body .wk-infobar .wi-tog{flex:none;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:var(--soft2,rgba(0,0,0,.04));color:var(--sub);cursor:pointer}
html body .wk-infobar+.wi-more{margin:0 2px 10px}

/* 10/15 ROUTINE 칸 (윗부분, 목록형): 이름 · 시각 · 체크/횟수 한 줄씩 */
.rt-list{display:flex;flex-direction:column;min-width:0}
.rt-row{display:flex;align-items:center;gap:6px;min-height:25px;border-bottom:var(--hair,1px) solid var(--line2);min-width:0}
.rt-row:last-child{border-bottom:0}
.rt-t{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px;padding:0;border:0;background:none;text-align:left;font-family:var(--hand);font-size:15px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.rt-t .hl{overflow:hidden;text-overflow:ellipsis}
.rt-row.m-o .rt-t .hl{background:linear-gradient(transparent 55%,color-mix(in srgb,var(--rt-ink) 38%,transparent) 55%)}
.rt-at{flex:none;font:600 10px/1 Pretendard,sans-serif;color:var(--sub)}
.rt-row .chk{flex:none}
.rt-empty{margin:4px 0;padding:4px 0;border:0;background:none;font-family:var(--hand);font-size:15px;color:var(--faint);text-align:left}

/* 10/15 루틴 순서 끌기: 설정 ≡ 손잡이 · 홈 루틴 표 이름 꾹 눌러 끌기 */
.hb-grip{display:grid;place-items:center;flex:none;width:30px;height:36px;color:var(--sub);font-size:17px;line-height:1;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.ld-drag{position:relative;z-index:6;background:var(--card);box-shadow:0 8px 22px rgb(0 0 0 / 16%);transition:none!important}
body.ld-on [data-hb-row]:not(.ld-drag),body.ld-on .htb-week tbody tr:not(.ld-drag){transition:transform .15s ease}
body.ld-on{user-select:none;-webkit-user-select:none}
.htb-week tbody th .htb-column-name{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
/* 10/15 학교 시간표: 오늘 = 날짜 색칠, 고른 날 = 월간처럼 날짜에 링 (사용자 "선택과 오늘이 헷갈려") */
.hb-school .wt-pick.today b{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--ink);font-weight:600}
.hb-school .wt-pick.on b{background:none;box-shadow:0 0 0 1.5px color-mix(in srgb,var(--accent) 75%,transparent);font-weight:600}
.hb-school .wt-pick.today.on b{background:color-mix(in srgb,var(--accent) 22%,transparent)}
.hb-school .wt-pick.on span{color:var(--sub)}
.hb-school .wt-pick.today span{color:var(--accent)}
.hb-school .wt-col.sel{background:repeating-linear-gradient(to bottom,transparent 0 calc(var(--rh) - 1px),var(--line2) calc(var(--rh) - 1px) var(--rh));background-position:0 -1px;border-radius:0}
.hb-school .wt-col.today{background-color:color-mix(in srgb,var(--accent) 5%,transparent)}

/* 10/15 COMMENT 칸 '오늘의 문장': 빈 칸에 흐리게 (설정 › 코멘트) */
#goal.q-on::placeholder,html body.dev-phone:not(.zoom-in) .page #goal.q-on::placeholder{color:var(--faint,#9aa0a6)!important;opacity:1}   /* 휴대폰 종이는 안내 글자를 숨기지만 오늘의 문장은 보인다 */
.m-goal .q-auto-m{color:var(--faint,#9aa0a6)}

/* 10/15 주간 '더 보기' 펼침: 맨 아래 [하루 쪽 열기 ›] [접기] */
html body .wk-more-row .wk-more.go{flex:1;color:var(--accent,#E2545E);font-weight:600}
html body .wk-more-row .wk-more.fold{width:auto;flex:none;margin-left:auto;padding:0 6px}

/* 10/15 루틴 편집 칸 줄이기 (사용자 "쓸데없이 길지 않아? 더 압축해서 컴팩트하게"):
   왼쪽 들여쓰기(42px) 없애고 · 갈래+종류 한 줄 · 시각과 반복을 한 줄에 · 설명 글·↑(끌어서 순서 바꾸기가 있음) 숨김 */
html body .hb-ed2.hb-open{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px}
html body .hb-ed2.hb-open > :is(.hb-line,.ed-row,.hb-opt,.hb-icgrid){flex:1 1 100%}
html body .hb-ed2.hb-open .hb-opt{margin:6px 0 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html body .hb-ed2.hb-open .hb-opt::-webkit-scrollbar{display:none}
html body .hb-ed2.hb-open .hb-time{flex:0 1 auto;margin:6px 0 0}
html body .hb-ed2.hb-open .hb-time small{display:none}
html body .hb-ed2.hb-open .hb-repeat{flex:1 1 120px;width:auto;margin:6px 0 0;padding:6px 0}
html body .hb-ed2.hb-open [data-hb-up]{display:none}
html body .hb-ed2.hb-open .ed-row.hb-ed{margin:0}
/* 홈 루틴 팝업: 칸 안의 그만하기·지우기는 아래 줄에 있으니 숨김 */
html body .hb-popup .ed-row.hb-ed [data-hb-del]{display:none}
html body .hb-popup .hb-pop-stop{margin-right:auto;padding:6px 2px;border:0;background:none;font:inherit;font-size:12.5px;color:var(--sub);text-decoration:underline;cursor:pointer}
html body .hb-ed2.hb-open > *{min-width:0;max-width:100%;box-sizing:border-box}
html body .hb-ed2.hb-open .ed-row.hb-ed .ed-in{flex:1 1 auto;min-width:0;width:auto}


/* 10/15 고치거나 새로 칠하는 동안 미리 보기 줄 숨김 (사용자 "좋아 그렇게 해줘"): 과목·시간은 알약, 내용은 적기 칸 — 같은 정보를 세 번 보이지 않게 */
html body.tt-editing #qHint{display:none!important}

/* 10/15 알약의 내용 칸은 늘 보인다 (사용자 "내용 칸이 있어야 해 · 거기서 직접 타이핑할 수도") — 아래 적기 칸과 같은 내용으로 맞춰진다 */

/* 10/15 알약 과목 고르기: 과목 단추 밑 작은 세로 목록 + 맨 아래 '+ 추가' (사용자 "수정할 땐 크면 안 됨 · 세로로 · 밑에가 +추가까지 · 드래그해서 선택") */
html body .mode-subj-row{position:fixed;z-index:47;display:flex;flex-direction:column;gap:1px;box-sizing:border-box;width:max-content;max-width:150px;padding:3px;border-radius:14px;background:var(--card);box-shadow:0 4px 18px rgba(20,30,40,.18);overflow-y:auto;scrollbar-width:none;touch-action:pan-y;-webkit-user-select:none;user-select:none}
html body .mode-subj-row::-webkit-scrollbar{display:none}
html body .mode-subj-row .msr-chip{flex:0 0 34px;display:flex;align-items:center;gap:6px;width:100%;padding:0 8px;border:0;border-radius:10px;background:none;font:inherit;font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;cursor:pointer}
html body .mode-subj-row .msr-chip i{flex:none;width:10px;height:10px;border-radius:3px;border:1.2px solid var(--dot);background:var(--sel);box-sizing:border-box}
html body .mode-subj-row .msr-chip.on{background:var(--sel);font-weight:700}
html body .mode-subj-row .msr-chip.hover{background:color-mix(in srgb,var(--sel) 70%,var(--card))}
html body .mode-subj-row .msr-chip.add{margin-top:2px;border-top:1px solid var(--line2,#eee);border-radius:0 0 10px 10px;color:var(--accent);font-weight:600}
html body .mode-subj-row{overflow:visible}
html body .mode-subj-row .msr-list{display:flex;flex-direction:column;gap:1px;flex:1 1 auto;min-height:0;max-height:104px;overflow-y:auto;scrollbar-width:none;touch-action:pan-y;overscroll-behavior:contain}
html body .mode-subj-row .msr-list::-webkit-scrollbar{display:none}
html body .mode-subj-row.fit .msr-list{touch-action:none}
html body .mode-subj-row.fit{touch-action:none}

/* 10/15 같은 루틴에 시각 더하기: [07:00] [13:00 ×] [＋] */
html body .hb-ed2.hb-open .hb-time{flex-wrap:wrap;row-gap:6px}
html body .hb-time .hb-tsib{display:inline-flex;align-items:center;gap:2px;margin:0}
html body .hb-time .hb-tdel{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:none;color:var(--sub);font-size:14px;line-height:1;cursor:pointer}
html body .hb-time .hb-tadd{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px dashed var(--line);border-radius:50%;background:none;color:var(--sub);font-size:16px;line-height:1;cursor:pointer}

/* 10/15 설정 › 프로젝트: 기간 칸이 잘리지 않게 · D-day 는 하루 쪽 D-DAY 와 같은 글꼴 (사용자 "설정창에서 그 폰트로") */
html body .pj-dates .pj-date{flex:1 1 0;min-width:0;width:auto;font-size:13px;padding:0 6px;text-align:center}
html body .hb-line .pj-dd{flex:none;margin-left:6px;font-family:var(--round);font-weight:900;font-size:14px;color:var(--accent);letter-spacing:-.02em}
html body .hb-line .pj-dd.past{color:var(--sub)}
html body #side .pj-dates .pj-date{flex:1 1 0;min-width:0;width:auto;font-size:13px;padding:0 4px;text-align:center}
html body #side .pj-dates .pj-date::-webkit-calendar-picker-indicator{margin:0;padding:0;width:14px}
html body .hb-line .pj-dd{font-style:normal}

/* 10/15 루틴 알약 (프로젝트 알약과 같은 모양): [아이콘][이름][시각 ＋][반복 ›][•••][🗑][✓] + 밑 작은 칸 */
html body .rt-pill{position:fixed;z-index:48;display:flex;align-items:center;gap:3px;height:42px;box-sizing:border-box;padding:3px 4px;border-radius:21px;background:var(--card);box-shadow:0 2px 14px rgba(20,30,40,.16);white-space:nowrap}
html body .rt-pill .rt-ic{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--sel,var(--hl));color:var(--text);padding:0}
html body .rt-pill .rt-ic svg{width:18px;height:18px}
html body .rt-pill .rt-ic.on{box-shadow:inset 0 0 0 1.5px var(--text)}
html body .rt-pill .rt-ic .hb-line-dot{width:10px;height:10px;border-radius:50%}
html body .rt-pill .rt-name{flex:0 1 auto;min-width:36px;max-width:9em;height:32px;border:0;background:none;font:inherit;font-size:13px;font-weight:600;color:var(--text);padding:0 4px;outline:none}
html body .rt-pill .rt-times{flex:0 1 auto;min-width:0;max-width:150px;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none;border-left:1px solid var(--line2,#eee);padding-left:4px}
html body .rt-pill .rt-times::-webkit-scrollbar{display:none}
html body .rt-pill .rt-t{flex:none;display:inline-flex;align-items:center;gap:1px;font-size:12px;color:var(--sub)}
html body .rt-pill .rt-t i{font-style:normal;padding:0 1px}
html body .rt-pill .rt-time{width:62px;height:28px;border:0;border-radius:8px;background:var(--soft2,#f3f3f1);font:inherit;font-size:12.5px;color:var(--text);padding:0 2px;text-align:center}
html body .rt-pill .rt-time::-webkit-calendar-picker-indicator{display:none}
html body .rt-pill .rt-goal{width:30px;height:26px;border:0;border-radius:7px;background:var(--soft2,#f3f3f1);font:inherit;font-size:12.5px;text-align:center;margin:0 2px}
html body .rt-pill .rt-tx{width:18px;height:18px;padding:0;border:0;background:none;color:var(--sub);font-size:13px;line-height:1}
html body .rt-pill .rt-tadd{flex:none;width:24px;height:24px;padding:0;border:1px dashed var(--line);border-radius:50%;background:none;color:var(--sub);font-size:14px;line-height:1}
html body .rt-pill .rt-muted{padding:0 4px}
html body .rt-pill .rt-rep{flex:none;height:30px;padding:0 6px;border:0;border-left:1px solid var(--line2,#eee);background:none;font:inherit;font-size:12.5px;color:var(--text)}
html body .rt-pill .rt-rep i{font-style:normal;color:var(--faint);margin-left:2px}
html body .rt-pill :is(.rt-more,.rt-del){flex:none;display:grid;place-items:center;width:28px;height:32px;padding:0;border:0;background:none;color:var(--text)}
html body .rt-pill .rt-more.on{color:var(--accent)}
html body .rt-pill :is(.rt-more,.rt-del,.rt-done) svg{width:16px;height:16px}
html body .rt-pill .rt-done{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--text);color:var(--card,#fff)}
html body .rt-drop{position:fixed;z-index:48;box-sizing:border-box;padding:8px;border-radius:16px;background:var(--card);box-shadow:0 4px 18px rgba(20,30,40,.18);max-height:220px;overflow-y:auto}
html body .rt-drop .rt-icgrid{margin:0}
html body .rt-drop .rt-more-box{display:flex;flex-direction:column;gap:8px}
html body .rt-drop .rt-mrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html body .rt-drop .rt-hint{flex:1;font-size:12px;color:var(--sub)}
html body .rt-drop .rt-stop{padding:4px 2px;border:0;background:none;font:inherit;font-size:12.5px;color:var(--sub);text-decoration:underline}

/* 10/15 루틴 알약 다듬기: 시각 여럿은 요약 한 칸 + 밑 목록 */
html body .rt-pill .rt-tsum{flex:0 1 auto;min-width:0;height:28px;padding:0 8px;border:0;border-left:1px solid var(--line2,#eee);border-radius:0;background:none;font:inherit;font-size:12.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .rt-pill .rt-tsum.on{color:var(--accent);font-weight:600}
html body .rt-pill .rt-time{font-size:12px}
html body .rt-drop .rt-tlist{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html body .rt-drop .rt-tlist .rt-t{display:inline-flex;align-items:center;gap:2px;font-size:12px;color:var(--sub)}
html body .rt-drop .rt-tlist .rt-t i{font-style:normal}
html body .rt-drop .rt-time{width:76px;height:30px;border:0;border-radius:8px;background:var(--soft2,#f3f3f1);font:inherit;font-size:13px;color:var(--text);text-align:center}
html body .rt-drop .rt-tx{width:20px;height:20px;padding:0;border:0;background:none;color:var(--sub);font-size:14px;line-height:1}
html body .rt-drop .rt-tadd{width:28px;height:28px;padding:0;border:1px dashed var(--line);border-radius:50%;background:none;color:var(--sub);font-size:15px;line-height:1}
html body .rt-drop .rt-time{width:100px}
html body .rt-drop .rt-time::-webkit-calendar-picker-indicator{display:none}
html body :is(.rt-drop,.rt-pill) .rt-t.hb-time{margin:0}

/* 10/15 통일: 알약 단추 밑 작은 칸 하나의 모양 (과목 목록과 같게) — 흰 카드 · 둥근 14px · 줄 34px · 3줄 보이고 넘기기 */
html body .pill-drop{position:fixed;z-index:48;box-sizing:border-box;padding:3px;border-radius:14px;background:var(--card);box-shadow:0 4px 18px rgba(20,30,40,.18)}
html body .pill-drop.pill-list{display:flex;flex-direction:column;width:max-content;max-width:220px}
html body .pill-drop .msr-list{display:flex;flex-direction:column;gap:1px;max-height:104px;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
html body .pill-drop .msr-list::-webkit-scrollbar{display:none}
html body .pill-drop .msr-chip{flex:0 0 34px;display:flex;align-items:center;gap:6px;width:100%;padding:0 12px;border:0;border-radius:10px;background:none;font:inherit;font-size:13px;color:var(--text);white-space:nowrap;text-align:left;cursor:pointer}
html body .pill-drop .msr-chip:active{background:var(--soft2,#f3f3f1)}

/* 10/15 통일 2: 루틴 알약 시각 단추 · 밑 칸은 pill-drop 모양 */
html body .rt-pill .rt-tbtn{flex:none;height:28px;padding:0 6px;border:0;border-radius:8px;background:var(--soft2,#f3f3f1);font:inherit;font-size:12.5px;color:var(--text);font-variant-numeric:tabular-nums}
html body .rt-pill .rt-t > i,html body .rt-drop .rt-t > i{font-style:normal;padding:0 2px;color:var(--sub)}
html body .rt-pill .rt-rep.on{color:var(--accent)}
html body .rt-drop.pill-drop{padding:8px;max-height:260px;overflow-y:auto}
html body .rt-drop .rt-tbtn{height:30px;padding:0 8px;border:0;border-radius:8px;background:var(--soft2,#f3f3f1);font:inherit;font-size:13px;color:var(--text)}
html body .rt-drop .rt-tlist{flex-direction:column;align-items:flex-start;gap:6px}
html body .rt-repeat{display:flex;flex-direction:column;gap:6px;min-width:240px;font-size:13px}
html body .rt-repeat .repeat-title{display:none}
html body .rt-repeat .rt-rep-act{display:flex;justify-content:flex-end}
html body .rt-repeat .rt-rep-ok{height:32px;padding:0 14px;border:0;border-radius:16px;background:var(--text);color:var(--card,#fff);font:inherit;font-size:13px;font-weight:600}
html body .time-picker.rt-wheel{position:fixed}

/* 10/15 설정 › 프로젝트 형광펜 색 줄 */
html body #side .pj-pens{flex-wrap:wrap;row-gap:6px}
html body #side .pj-pens .pen-sw{width:24px;height:24px;flex:none}
html body #side .pj-pens .pj-pen-auto{width:auto;aspect-ratio:auto;height:24px;padding:0 9px;border-radius:12px;background:var(--soft2,#f3f3f1);font:inherit;font-size:11.5px;color:var(--text)}

/* 10/15 D-day · 시즌 한 쪽 */
html body #side .dt-sec{margin:4px 0 10px}
html body #side .dt-h{margin:10px 2px 4px;font-size:12px;font-weight:700;color:var(--sub)}
html body #side .dt-fold{display:block;margin:4px auto 10px;padding:6px 10px;border:0;background:none;font:inherit;font-size:12.5px;color:var(--sub);text-decoration:underline}
html body #side .dt-add{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
html body #side .dd-ic svg{width:18px;height:18px}
html body #side .dd-mode{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 0}
html body #side .dd-mode .rt-hint{font-size:12px;color:var(--sub)}
/* 10/16 아이폰을 가로로 돌리면 사파리·앱이 글자를 저절로 키우던 것 (사용자 "폰트도 커져 있었어") — 모든 화면 같은 비율 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* 10/17 종이 배율이 큰 화면(아이패드 등): 자동 조정을 아예 끈다 — 100% 이면 iOS 웹킷이 종이 확대(zoom)를 글자에 안 먹여서 글자만 작게 남았다 (planner.js fontZoomSync) */
html.tsa-off,html.tsa-off body{-webkit-text-size-adjust:none;text-size-adjust:none}
/* 10/17 시즌 알약 — 학교 일정 알약과 같은 모양, 시즌 색으로 (일간 D-DAY 칸 아래 · 주간 날짜 밑 첫 줄) */
html body .wk-sev.wk-season{border-color:var(--mo-ink,var(--accent));color:var(--mo-ink,var(--accent))}
html body .dd-row{position:relative;min-width:0}
html body .dd-season{position:absolute;right:0;bottom:2px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px 4px 8px;margin:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body :is(#ddaySec,.m-dday){overflow:clip}
html body .sz-dot{display:block;width:4px;height:4px;border-radius:50%;border:1px solid var(--mo-ink,var(--accent));box-sizing:border-box;flex:none}
html body .dd-season small{font-size:10px;line-height:1;color:var(--sub)}
html body .sz-pop{position:fixed;z-index:1300;background:var(--card,#fff);color:var(--text);border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.16),0 0 0 .5px rgba(0,0,0,.06);padding:10px 12px 12px;max-width:min(340px,calc(100vw - 16px))}
html body .sz-pop .sz-h{font:600 11px/1.4 Pretendard,sans-serif;color:var(--sub);margin-bottom:7px}
html body .sz-pop .sz-l{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
html body .sz-pop .sz-i{display:flex;align-items:center;gap:7px;border:0;background:none;padding:0;margin:0;cursor:pointer;color:inherit;max-width:100%;min-width:0}
html body .sz-pop .sz-i .wk-sev{font-size:13px;line-height:20px;padding:0 10px;min-width:0}
html body .sz-pop .sz-i small{flex:none;font:500 11px Pretendard,sans-serif;color:var(--sub)}
html body .wk-sev-row{display:flex;align-items:center;gap:2px}
html body .wk-sev-row>.wk-tt-t{flex:1 1 auto;min-width:0}
html body .wk-sev-more{flex:none;border:0;background:none;padding:2px 3px;margin:0;font:500 10px/1 Pretendard,sans-serif;color:var(--sub);cursor:pointer}
html body .wk-sev-row .wk-sev.wk-season{font-size:10px;line-height:14px;padding:0 5px}

/* 10/17 스티커: 서랍을 열지 않아도 오늘 쪽 스티커를 누르면 골라진다 (고르기 전엔 스크롤·넘기기 그대로). 손잡이: 오른쪽 위 = 돌리기 · 오른쪽 아래 = 크기 */
html body #dayView .cur-page #stkLayer .stk{pointer-events:auto;touch-action:pan-x pan-y;cursor:pointer}
html body:is(.brushing,.erasing,.tt-editing) #dayView .cur-page #stkLayer .stk:not(.sel){pointer-events:none}
html body.stk-pick #stkLayer .stk.sel{touch-action:none;cursor:grab;outline:1.5px dashed var(--accent);outline-offset:5px;border-radius:4px}
.stk-size{right:-17px;bottom:-17px;background:var(--accent);border:2px solid #fff;cursor:nwse-resize;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5h3.5V6M6 11.5H2.5V8M11.5 2.5l-4 4M2.5 11.5l4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center}
html body .stk .stk-del.p1{left:3px;top:3px}
html body .stk .stk-del.p2{left:-17px;top:auto;bottom:-17px}
html body .stk .stk-del.p3{left:3px;top:auto;bottom:3px}
html body .stk .stk-rot.p1{right:3px;top:3px}
html body .stk .stk-rot.p2{right:auto;left:calc(50% - 11px);top:auto;bottom:-15px}
html body .stk .stk-rot.p3{right:auto;left:calc(50% - 11px);top:auto;bottom:3px}
html body .stk .stk-size.p1{right:3px;bottom:3px}
html body .stk .stk-size.p2{right:auto;left:calc(50% - 13px);bottom:auto;top:-17px}
html body .stk .stk-size.p3{right:auto;left:calc(50% - 13px);bottom:auto;top:3px}
/* 10/17 쪽 맨 밑에 닿지 않는 칸의 마감선은 줄 선처럼 옅게 (fitSectionRules 가 배치마다 고른다) */
html body.view-day #dayView .page .sheet .grid-card.rule-soft,html body.view-day #dayView .page .sheet .memo-sec :is(#memo,.m-memo).rule-soft{border-bottom-width:1px!important;border-bottom-color:var(--paper-rule,#c9ccd1)!important}
/* 10/17 D-day 가 없을 때('+ D-day' 줄이 낮다): 세로 점이 D-DAY 제목선에 닿지 않게 제목선 아래부터 */
html body .dd-row:has(> .dd-empty) .dd-season{top:2px;bottom:auto}
/* ── 10/18 비전보드: 홈 맨 위 띠 + 전체 화면 모드. 판은 어느 기기든 4:3 가로 종이 ── */
html body .vb-strip{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;margin:0 0 12px;padding:10px 16px 10px 10px;border:0;border-radius:16px;background:var(--card,#fff);color:var(--text);box-shadow:0 0 0 .5px rgba(0,0,0,.07);cursor:pointer;text-align:left;font:inherit;grid-column:1/-1;-webkit-tap-highlight-color:transparent}
html body .vb-thumb{position:relative;flex:none;height:96px;aspect-ratio:4/3;border-radius:10px;background:var(--paper,#fbfbf9);box-shadow:inset 0 0 0 .5px rgba(0,0,0,.09);overflow:hidden;container-type:inline-size}
html body .vb-thumb .stk-layer{position:absolute;inset:0;z-index:1}
html body .vb-thumb-empty{position:absolute;inset:0;display:grid;place-items:center;font:300 28px/1 Pretendard,sans-serif;font-style:normal;color:var(--sub)}
html body .vb-cap{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
html body .vb-cap b{font:700 16px/1.3 Pretendard,sans-serif;color:var(--text)}
html body .vb-cap small{font:500 12.5px/1.4 Pretendard,sans-serif;color:var(--sub)}
html body .vb-go{flex:none;font:300 26px/1 Pretendard,sans-serif;color:var(--sub)}
html body:is(.af-side,.tab-port) .vb-thumb{height:110px}
@media (max-height:500px){html body .vb-strip{padding:6px 14px 6px 6px;margin-bottom:8px;border-radius:12px}html body .vb-thumb{height:62px;border-radius:8px}html body .vb-cap b{font-size:14px}}
html body .vb-mode{position:fixed;inset:0;z-index:44;display:flex;flex-direction:column;background:var(--bg,#efeee9);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box}
html body .vb-top{display:flex;align-items:center;gap:8px;padding:12px 16px 6px}
html body .vb-top b{margin-right:auto;font:700 18px/1.2 Pretendard,sans-serif;color:var(--text)}
html body .vb-top button{border:0;border-radius:999px;padding:8px 14px;background:var(--card,#fff);color:var(--text);font:600 13.5px/1 Pretendard,sans-serif;box-shadow:0 0 0 .5px rgba(0,0,0,.09);cursor:pointer}
html body .vb-top .vb-done{background:var(--ink,#2b2f36);color:#fff;box-shadow:none}
html body .vb-stage{flex:1;min-height:0;display:grid;place-items:center;padding:8px 14px 18px;container-type:size;box-sizing:border-box}
html body .vb-board{position:relative;width:min(100cqw,calc(100cqh * 4 / 3));aspect-ratio:4/3;background:var(--paper,#fff);border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.08),0 0 0 .5px rgba(0,0,0,.06);container-type:inline-size}
html body .vb-board .stk-layer{position:absolute;inset:0;z-index:2}
html body #vbLayer .stk{pointer-events:auto;touch-action:none;cursor:grab}
html body #vbLayer .stk.sel{outline:1.5px dashed var(--accent);outline-offset:5px;border-radius:4px}
html body .vb-empty{position:absolute;inset:0;display:none;place-items:center;align-content:center;margin:0;text-align:center;font:500 14px/1.7 Pretendard,sans-serif;color:var(--sub);pointer-events:none}
html body .vb-empty small{font-size:12px;color:var(--faint,#a3a6ab)}
html body .vb-board.is-empty .vb-empty{display:grid}
html body.vb-on :is(.quick,#qTools,#modeBar,#rzLayer){visibility:hidden!important}   /* 10/18 앱 메뉴(아래 막대 · 오른쪽 막대)는 그대로 둔다 (사용자) */
html body .vb-stage{touch-action:none;overflow:hidden}
html body .vb-board{will-change:transform}
html body .vb-top .vb-fit{display:none}
html body .vb-mode.zoomed .vb-top .vb-fit{display:inline-block}
/* 10/18 로고 = 비전보드 슬쩍 보기 (오늘·공유·설정 기호 단추는 app-frame.css · app-side.css) */
html body .af-logo.on{opacity:.55}
html body .vb-peek{position:fixed;z-index:58;width:min(300px,calc(100vw - 24px));padding:10px 10px 8px;border-radius:16px;background:var(--card,#fff);box-shadow:0 10px 32px rgba(0,0,0,.16),0 0 0 .5px rgba(0,0,0,.07);animation:vbPeekIn .16s ease-out}
html body.dev-pad .vb-peek{width:min(420px,calc(100vw - 24px),calc((100vh - 96px) * 1.333))}
@keyframes vbPeekIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
html body .vb-peek-board{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;margin:0;border:0;border-radius:10px;background:var(--paper,#fbfbf9);box-shadow:inset 0 0 0 .5px rgba(0,0,0,.08);overflow:hidden;container-type:inline-size;cursor:zoom-in;font:inherit;color:inherit}
html body .vb-peek-board .stk-layer{position:absolute;inset:0}
html body .vb-peek-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font:600 13px/1.6 Pretendard,sans-serif;color:var(--sub)}
html body .vb-peek-empty small{font-weight:500;font-size:11.5px;color:var(--faint,#a3a6ab)}
html body .vb-peek-foot{display:flex;align-items:baseline;justify-content:space-between;padding:7px 4px 0}
html body .vb-peek-foot b{font:700 13px Pretendard,sans-serif;color:var(--text)}
html body .vb-peek-foot span{font:500 11.5px Pretendard,sans-serif;color:var(--sub)}
/* 10/18 꾸미기 › 스티커 › '종이에 스티커 보이기' 끔: 종이(하루 쪽 · 달력 칸)에 붙인 것만 숨긴다. 스티커 칸을 열면 다시 보인다 · 비전보드는 그대로 */
html body.stk-hide:not(.stk-on) .stk-layer:not(:is(.vb-board,.vb-peek,.vb-thumb,.vb-set-board) .stk-layer),html body.stk-hide:not(.stk-on) .mo-stk{display:none!important}
/* 10/18 주간·월간 날짜 칸 스티커: 칸 위에 얹은 투명한 판 (칸마다 자리를 재서 붙인다 · 칸 밖으로 조금 삐져나와도 된다) */
html body #wkCols{position:relative}
html body .cstk-ov{position:absolute;left:0;top:0;width:0;height:0;z-index:6;pointer-events:none}
html body .stk-layer.cstk{inset:auto;pointer-events:none}
html body.stk-cal .cstk .stk{pointer-events:auto;cursor:grab;touch-action:none}
html body:is(.stk-cal,.stk-pick) .cstk .stk.sel{pointer-events:auto;touch-action:none;cursor:grab;outline:1.5px dashed var(--accent);outline-offset:4px;border-radius:4px}
html body .cstk .stk-lab{outline-width:1px}
/* 위에서 끌어다 놓기: 끄는 그림 · 놓을 곳 표시 · 끄는 동안 스티커 칸·미리보기는 옅게 비켜 준다 */
html body .stk-ghost{position:fixed;left:0;top:0;z-index:300;width:76px;pointer-events:none;container-type:inline-size;filter:drop-shadow(0 8px 16px rgba(20,24,32,.28))}
html body .stk-ghost.k-t,html body .stk-ghost.k-w{width:128px}
html body .stk-ghost img{display:block;width:100%;height:auto}
html body .stk-ghost .stk-tape{display:block}
html body.stk-dnd :is(.stk-tray,.vb-peek){opacity:.28;pointer-events:none;transition:opacity .15s}
html body .stk-drop{box-shadow:inset 0 0 0 2px var(--accent),0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)!important}
html body :is(#stkTray,#vbPeek) img{-webkit-touch-callout:none}
html body #stkTray .st-grid{-webkit-user-select:none;user-select:none}
html body .vb-peek-board{touch-action:none;-webkit-user-select:none;user-select:none}
html body .vb-peek .stk{pointer-events:auto}   /* 미리보기 그림을 잡아 끌 수 있게 (누르면 그대로 크게 보기) */
html body.stk-dnd :is(.stk-tray,.vb-peek) *{pointer-events:none!important}
/* 날짜 숫자는 날짜 칸 스티커 위에 (스티커가 숫자를 가리지 않게) */
html body #calView .mo > .mo-d .mo-n,html body #wkCols > .wk-col .wk-ch{position:relative;z-index:7}
html body:is(.stk-cal,.stk-pick) .cstk-ov{z-index:8}   /* 스티커를 고치는 동안은 스티커가 날짜 숫자 위로 (잡을 수 있게) */
/* ── 10/18 비전보드 = 포스터처럼 (A안): 위 = 올해 · 나의 비전 · D-day / 가운데 = 판 / 아래 = 올해의 한 문장 · 도구 막대 ── */
html body .vb-top{align-items:flex-start;padding:14px 16px 6px}
html body .vb-head{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
html body .vb-kick{font:600 12px/1.2 Pretendard,sans-serif;color:var(--sub);letter-spacing:.02em}
html body .vb-head .vb-title{display:block;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;font:800 27px/1.25 Pretendard,sans-serif;color:var(--text);word-break:keep-all;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .vb-head .vb-title.ph{color:var(--faint,#a3a6ab);font-weight:700}
html body .vb-dd{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;background:#fbe3ea;color:#8a2a48;font:600 12px/1.2 Pretendard,sans-serif}
html body .vb-head .vb-dd b{margin:0;font:800 12px/1.2 Pretendard,sans-serif;color:inherit}
html body .vb-motto{display:block;width:100%;margin:0;padding:2px 22px 12px;border:0;background:none;text-align:center;font:500 17px/1.5 var(--hand,Pretendard),sans-serif;color:var(--text);word-break:keep-all;cursor:pointer}
html body .vb-motto .ph{color:var(--faint,#a3a6ab);font-family:Pretendard,sans-serif;font-size:14px}
html body .vb-tools{display:flex;gap:4px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:var(--card,#fff);box-shadow:0 -.5px 0 rgba(0,0,0,.08)}
html body .vb-tools button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0;padding:7px 0;border:0;border-radius:12px;background:none;color:var(--text);font:600 11.5px/1 Pretendard,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .vb-tools button svg{width:24px;height:24px}
html body .vb-tools button.on,html body .vb-tools button:active{background:var(--soft2,#f1f1ef)}
html body .vb-bgs{display:flex;gap:10px;overflow-x:auto;padding:10px 14px 8px;background:var(--card,#fff);box-shadow:0 -.5px 0 rgba(0,0,0,.06);scrollbar-width:none}
html body .vb-bgs[hidden]{display:none}
html body :is(.vb-bgs,.vb-set-bgs) button{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;padding:2px;border:0;background:none;color:var(--sub);font:600 11px/1 Pretendard,sans-serif;cursor:pointer}
html body :is(.vb-bgs,.vb-set-bgs) i{display:block;width:54px;height:40px;border-radius:8px;box-shadow:0 0 0 .5px rgba(0,0,0,.18)!important}
html body :is(.vb-bgs,.vb-set-bgs) button.on{color:var(--text)}
html body :is(.vb-bgs,.vb-set-bgs) button.on i{box-shadow:0 0 0 2px var(--accent)!important}
/* 판 바탕 재질 (크기는 판에 대한 비율이라 어느 기기든 같은 무늬) */
html body .vb-bg-paper{background:#fffdf9}
html body .vb-bg-kraft{background-color:#ecdcc0;background-image:repeating-linear-gradient(112deg,rgba(130,90,40,.05) 0 2px,transparent 2px 7px),repeating-linear-gradient(22deg,rgba(255,255,255,.14) 0 1px,transparent 1px 9px)}
html body .vb-bg-grid{background-color:#fdfdfb;background-image:linear-gradient(rgba(62,120,190,.17) 1px,transparent 1px),linear-gradient(90deg,rgba(62,120,190,.17) 1px,transparent 1px);background-size:5% 6.667%}
html body .vb-bg-cork{background-color:#c99560;background-image:radial-gradient(rgba(92,52,18,.38) 1px,transparent 1.7px),radial-gradient(rgba(255,226,180,.32) 1px,transparent 1.7px);background-size:2.3% 3.1%,3.1% 4.1%;background-position:0 0,1.2% 1.6%}
html body .vb-bg-board{background-color:#2f4b40;background-image:radial-gradient(ellipse at 30% 25%,rgba(255,255,255,.08),transparent 60%),radial-gradient(ellipse at 75% 80%,rgba(255,255,255,.05),transparent 55%)}
html body .vb-bg-pastel{background:linear-gradient(140deg,#fde4ec 0%,#f1e7fb 52%,#e1effb 100%)}
html body .vb-board:is(.vb-bg-cork){box-shadow:inset 0 0 0 7px #8f5f30,inset 0 0 0 8px rgba(0,0,0,.18),0 8px 28px rgba(0,0,0,.1)}
html body .vb-board:is(.vb-bg-board){box-shadow:inset 0 0 0 7px #7a5232,inset 0 0 0 8px rgba(0,0,0,.25),0 8px 28px rgba(0,0,0,.12)}
html body .vb-board.vb-bg-board .vb-empty,html body .vb-board.vb-bg-board .vb-empty small,html body .vb-bg-board .vb-peek-empty,html body .vb-bg-board .vb-peek-empty small{color:rgba(255,255,255,.72)}
/* 미리보기 아래 줄: 나의 비전 · D-day · 한 문장 */
html body .vb-peek-foot span b{font-weight:800;color:#8a2a48}
html body .vb-peek-motto{margin:4px 4px 2px;text-align:center;font:500 13px/1.45 var(--hand,Pretendard),sans-serif;color:var(--text);word-break:keep-all}
/* 높이가 낮은 가로(아이폰 가로): 위 줄은 한 줄로, 한 문장도 한 줄로, 도구는 글자 옆 기호 */
@media (max-height:560px){
  html body .vb-top{padding:8px 14px 2px;align-items:center}
  html body .vb-head{flex-direction:row;align-items:center;gap:10px}
  html body .vb-kick{display:none}
  html body .vb-head .vb-title{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
  html body .vb-motto{padding:0 16px 4px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body .vb-tools{padding:3px 10px calc(3px + env(safe-area-inset-bottom))}
  html body .vb-tools button{flex-direction:row;gap:6px;padding:7px 0;font-size:12.5px}
  html body .vb-tools button svg{width:19px;height:19px}
  html body .vb-bgs{padding:6px 14px}
  html body :is(.vb-bgs) i{width:44px;height:33px}
}
/* 제목 · 판 · 한 문장 = 한 묶음(포스터)을 가운데에 (판 너비는 fitVisionStage 가 재서 정한다) */
html body .vb-top{align-items:center;padding:12px 16px 4px}
html body .vb-top .vb-name{margin-right:auto;font:700 15px/1.2 Pretendard,sans-serif;color:var(--sub)}
html body .vb-stage{display:flex;align-items:center;justify-content:center;container-type:normal;padding:6px 14px 10px}
html body .vb-poster{display:flex;flex-direction:column;gap:12px;max-width:100%}
html body .vb-board{width:100%;flex:none}
html body .vb-poster .vb-head{flex:none}
html body .vb-poster .vb-motto{padding:0 6px;flex:none}
@media (max-height:560px){
  html body .vb-top{padding:6px 14px 0}
  html body .vb-top .vb-name{display:none}
  html body .vb-poster{gap:6px}
  html body .vb-poster .vb-head{position:absolute;left:14px;top:9px;max-width:calc(100% - 200px)}
  html body .vb-mode{position:fixed}
}
@media (max-height:560px){html body .vb-peek-motto{display:none}}
@media (max-height:560px){html body .vb-top{justify-content:flex-end}}
/* ── 10/18 비전보드 도구 = 앱 아래 막대와 같은 모양 (떠 있는 둥근 막대 + 오른쪽 동그란 ✓ 완료) · 가로는 앱 옆 막대처럼 세로 둥근 막대 + ✓ ── */
html body .vb-tools.vb-dock{display:flex;align-items:center;gap:10px;width:min(420px,calc(100% - 32px));margin:4px auto calc(14px + env(safe-area-inset-bottom));padding:0;background:none;box-shadow:none}
html body .vb-dock :is(.vb-nav,.vb-ok){background:linear-gradient(180deg,color-mix(in srgb,var(--shell-surface,#fff) 62%,transparent),color-mix(in srgb,var(--shell-surface,#fff) 32%,transparent));-webkit-backdrop-filter:blur(10px) saturate(1.8) brightness(1.04);backdrop-filter:blur(10px) saturate(1.8) brightness(1.04);box-shadow:inset 0 1px 0 rgb(255 255 255 / 85%),inset 0 0 0 1px rgb(255 255 255 / 40%),inset 0 -1px 2px rgb(0 0 0 / 5%),0 6px 20px rgb(24 24 22 / 10%)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html body .vb-dock :is(.vb-nav,.vb-ok){background:var(--shell-surface,#fff)}}
html body .vb-dock .vb-nav{display:flex;flex:1;min-width:0;padding:5px 6px;border-radius:21px}
html body .vb-dock .vb-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:46px;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;font:450 11px/1 Pretendard,sans-serif;color:var(--shell-muted,#84888d);cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .vb-dock .vb-nav button svg{width:19px;height:19px}
html body .vb-dock .vb-nav button.on{color:var(--af-pen,var(--accent));font-weight:600;background:transparent}
html body .vb-dock .vb-nav button:active{background:transparent;opacity:.6}
html body .vb-tools .vb-ok{display:grid;place-items:center;flex:none;width:50px;height:50px;min-width:50px;margin:0;padding:0;border:0;border-radius:50%;color:var(--af-pen,var(--accent));cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .vb-tools .vb-ok svg{width:23px;height:23px}
html body .vb-bgs{width:min(420px,calc(100% - 32px));box-sizing:border-box;margin:0 auto 8px;border-radius:18px;box-shadow:0 6px 20px rgb(24 24 22 / 8%)}
/* ── 10/18 비전보드 = 앱 화면 하나처럼 (사용자 "메뉴는 그냥 똑같이 · + 누르면 편집"):
   보기 = 앱 메뉴 그대로 (세로 = 아래 막대 · 가로 = 오른쪽 막대) / + = 꾸미기 도구가 아래 막대 자리에 (글귀·스티커·사진·배경 + ✓) ── */
html body.vb-on:not(.af-side) #tabbar{visibility:hidden!important}
html body.vb-on.app-frame #appFrameDock{z-index:46}   /* app-frame.css 의 z-index:40 보다 세게 (비전보드 44 위로) */
html body.vb-on:not(.vb-edit) #appFrameDock[hidden]{display:flex!important}
html body.vb-on.vb-edit #appFrameDock{visibility:hidden!important}
html body.vb-on.app-frame #appFrameDock .tb-seg button.on{color:var(--shell-muted,#84888d);font-weight:450}   /* 비전보드에선 어느 칸도 켜지지 않게 */
html body.vb-on.app-frame.af-side #tabbar{z-index:46}
html body.vb-on.af-side .vb-mode{right:var(--rail-x,90px)}
html body.vb-on:not(.af-side) .vb-stage{padding-bottom:calc(58px + 26px + env(safe-area-inset-bottom))}
html body.vb-on:not(.vb-edit) :is(.vb-title,.vb-motto){cursor:default}
html body.vb-on:not(.vb-edit) .vb-title.ph{display:none}
html body.vb-on:not(.vb-edit) .vb-motto:has(.ph){visibility:hidden}
/* 꾸미기 도구 = 앱 아래 막대 자리 · 같은 모양 */
html body .vb-tools.vb-dock{position:fixed;z-index:47;left:50%;bottom:var(--af-bottom,calc(14px + env(safe-area-inset-bottom)));transform:translateX(-50%);width:min(420px,calc(100% - 32px));height:58px;margin:0}
html body:not(.vb-edit) .vb-tools.vb-dock{display:none}
html body.af-side .vb-tools.vb-dock{left:auto;right:0;bottom:0;transform:none;width:var(--rail-x,90px);height:auto;box-sizing:border-box;flex-direction:column;gap:10px;padding:0 calc(7px + env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom)) 7px}
html body.af-side .vb-dock .vb-nav{flex:none;flex-direction:column;gap:2px;width:100%;box-sizing:border-box;padding:4px;border-radius:16px}
html body.af-side .vb-dock .vb-nav button{flex:none;width:100%;height:clamp(40px,5.8vh,48px);font-size:clamp(10.5px,calc(6px + .55vh),12.5px)}
html body.af-side .vb-dock .vb-nav button svg{width:clamp(17px,calc(8px + 1.1vh),22px);height:clamp(17px,calc(8px + 1.1vh),22px)}
html body.af-side .vb-tools .vb-ok{width:clamp(40px,5.6vh,46px);height:clamp(40px,5.6vh,46px);min-width:0}
@media (max-height:620px){
  html body.af-side .vb-dock .vb-nav button{height:38px;gap:2px;font-size:10px}
  html body.af-side .vb-tools .vb-ok{width:40px;height:40px}
}
/* 배경 고르기 = 꾸미기 막대 위(세로) · 오른쪽 막대 왼쪽(가로)에 뜨는 카드 */
html body .vb-bgs{position:fixed;z-index:47;left:50%;transform:translateX(-50%);bottom:calc(var(--af-bottom,calc(14px + env(safe-area-inset-bottom))) + 58px + 10px);width:min(420px,calc(100% - 32px));margin:0;background:var(--card,#fff);border-radius:18px;box-shadow:0 10px 30px rgb(24 24 22 / 16%)}
html body.af-side .vb-bgs{left:auto;transform:none;right:calc(var(--rail-x,90px) + 10px);bottom:calc(14px + env(safe-area-inset-bottom));width:auto;display:grid;grid-template-columns:repeat(3,auto);gap:10px;padding:12px}
html body .vb-bgs[hidden]{display:none!important}
/* 가로: 제목 · D-day 는 판 위 왼쪽 (사용자 그림) */
html body #vbMode.vb-land .vb-poster .vb-head{position:static;max-width:none}
html body #vbMode.vb-land .vb-top{padding:calc(10px + env(safe-area-inset-top)) 18px 0}
@media (max-height:560px){
  html body #vbMode.vb-land .vb-top{position:absolute;right:10px;top:calc(6px + env(safe-area-inset-top));z-index:5;padding:0}
  html body #vbMode.vb-land .vb-top .vb-name{display:none}
  html body #vbMode.vb-land .vb-stage{padding:calc(8px + env(safe-area-inset-top)) 16px calc(8px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  html body #vbMode.vb-land .vb-poster{gap:6px}
  html body #vbMode.vb-land .vb-head{flex-direction:row;align-items:center;gap:10px}
  html body #vbMode.vb-land .vb-kick{display:none}
  html body #vbMode.vb-land .vb-head .vb-title{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
  html body #vbMode.vb-land .vb-motto{padding:0 6px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body.af-side .vb-bgs{padding:8px;gap:6px}
  html body.af-side .vb-bgs i{width:44px;height:33px}
}
html body.vb-on.vb-edit.app-frame.af-side #tabbar{z-index:43}   /* 꾸미는 동안은 옆 막대를 비전보드(44) 아래로 — 막대 자리에 뜬 꾸미기 도구가 보이게 */

/* ═══ 10/18 비전보드 꾸미기 자료 (사용자 "넣을 수 있는 자료 싹 다") — 종이·틀·글자는 모두 여기서 직접 그린다 (파일 없음) ═══ */
/* 글자 틀 (x:) — 글꼴: Gaegu·Nanum Pen Script·Gamja Flower·Black Han Sans·Do Hyeon·Abril Fatface·Bebas Neue (OFL) · Special Elite (Apache) */
html body .tx{display:block;margin:0 auto;text-align:center;white-space:nowrap;line-height:1.2;width:max-content;max-width:100%;box-sizing:border-box}
html body .tx-pill{font-family:'Gaegu','Nanum Pen Script',var(--hand),sans-serif;font-size:calc(100cqw / (var(--n) * .98 + 1.7));padding:.24em .8em .3em;border-radius:999px;background:#f1e3c8;color:#6b4a2b;box-shadow:0 1px 2px rgba(60,40,20,.2)}
html body .tx-pill.tn-pink{background:#f6d3dd;color:#8a2a48} html body .tx-pill.tn-green{background:#d8ebc6;color:#2f5a14} html body .tx-pill.tn-blue{background:#d3e4f6;color:#1f4a7a}
html body .tx-ticket{font-family:'Special Elite','Gamja Flower',monospace;font-size:calc(100cqw / (var(--n) * .9 + 2.6));padding:.5em 1.1em;background:#f6d3dd;color:#6d2440;border-radius:.3em;outline:1px dashed rgba(109,36,64,.4);outline-offset:-.38em;-webkit-mask:radial-gradient(circle .5em at 0 50%,transparent 96%,#000) left/51% 100% no-repeat,radial-gradient(circle .5em at 100% 50%,transparent 96%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle .5em at 0 50%,transparent 96%,#000) left/51% 100% no-repeat,radial-gradient(circle .5em at 100% 50%,transparent 96%,#000) right/51% 100% no-repeat}
html body .tx-ticket.tn-blue{background:#d3e4f6;color:#1f4a7a;outline-color:rgba(31,74,122,.4)}
html body .tx-note{display:grid;place-items:center;width:100%;aspect-ratio:1;white-space:normal;word-break:keep-all;padding:.5em;font-family:'Gaegu','Nanum Pen Script',var(--hand),sans-serif;font-size:calc(100cqw / (3.2 + var(--n) * .3));line-height:1.15;background:#fde68a;color:#5b4210;box-shadow:0 3px 7px rgba(0,0,0,.16)}
html body .tx-note.tn-pink{background:#f9c9d6;color:#6d2440}
html body .tx-memo{font-family:'Gaegu','Nanum Pen Script',var(--hand),sans-serif;font-size:calc(100cqw / (var(--n) * .95 + .6));color:#26215c;padding:0 .2em;background:linear-gradient(transparent 60%,rgba(250,199,117,.85) 60%,rgba(250,199,117,.85) 92%,transparent 92%)}
html body .tx-ransom{display:flex;justify-content:center;align-items:center;gap:.05em;width:100%;font-size:calc(100cqw / (var(--n) * 1.12 + .2))}
html body .tx-ransom i{display:inline-grid;place-items:center;min-width:.8em;padding:.06em .14em .02em;font-style:normal;line-height:1.05;transform:rotate(var(--rr));box-shadow:0 1px 2px rgba(0,0,0,.2)}
html body .tx-ransom .rl-sp{width:.3em}
html body .tx-ransom .rl0{background:#f1e3c8;color:#5b3a1e;font-family:'Abril Fatface','Black Han Sans',serif}
html body .tx-ransom .rl1{background:#2b2b2b;color:#fff;font-family:'Bebas Neue','Black Han Sans',sans-serif}
html body .tx-ransom .rl2{background:#fff;color:#b0315a;font-family:'Special Elite','Do Hyeon',monospace}
html body .tx-ransom .rl3{background:#c99560;color:#fff;font-family:'Do Hyeon',sans-serif}
html body .tx-ransom .rl4{background:#dbe7f3;color:#1f4a7a;font-family:'Black Han Sans',sans-serif}
html body .tx-ransom .rl5{background:#f6d3dd;color:#3a2a2a;font-family:'Abril Fatface','Black Han Sans',serif}
html body .tx-news{font-family:'Bebas Neue','Black Han Sans',sans-serif;font-size:calc(100cqw / (var(--n) * .78 + 1));letter-spacing:.02em;padding:.1em .35em .02em;background:#dcd8cf;color:#1f1f1f;box-shadow:0 1px 2px rgba(0,0,0,.2)}
html body .tx-news.tn-dark{background:#9fb0c4;color:#1d2a3a}
html body .tx-mag{font-family:'Abril Fatface','Black Han Sans',serif;font-size:calc(100cqw / (var(--n) * .9 + .3));line-height:1;color:#2b2b2b;text-shadow:0 1px 0 rgba(255,255,255,.6)}
html body .tx-type{font-family:'Special Elite','Nanum Pen Script',monospace;font-size:calc(100cqw / (var(--n) * .82 + 1.3));padding:.28em .6em;background:#fff;color:#222;box-shadow:0 1px 2px rgba(0,0,0,.22)}
html body .tx-type.tn-kraft{background:#d9bf95;color:#3d2a14}
html body .tx-hand{font-family:'Nanum Pen Script','Gaegu',var(--hand),cursive;font-size:calc(100cqw / (var(--n) * .8 + .3));line-height:1.05;color:#3b3b3b}
html body .tx-hand.tn-gamja{font-family:'Gamja Flower','Gaegu',sans-serif;font-size:calc(100cqw / (var(--n) * .92 + .3))}
html body .tx-hand.tn-navy{color:#26215c} html body .tx-hand.tn-red{color:#c8323f}
html body .tx-hand.tn-big{font-family:'Black Han Sans','Do Hyeon',sans-serif;font-size:calc(100cqw / (var(--n) * .9 + .2));color:#2b2b2b}
/* 종이 조각 (q:) */
html body .stk-paper{display:block;width:100%}
html body .stk.k-q,html body .stk.k-f,html body .vp-pq .stk-paper,html body .vp-fr .stk-frame{filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.22))}
html body .pq-letter{aspect-ratio:3/4;background-color:#fbf6ea;background-image:linear-gradient(90deg,transparent 15%,rgba(214,90,100,.45) 15%,rgba(214,90,100,.45) 15.8%,transparent 15.8%),repeating-linear-gradient(to bottom,transparent 0,transparent 7.4%,rgba(110,150,205,.38) 7.4%,rgba(110,150,205,.38) 7.9%);clip-path:polygon(0 0,100% 0,100% 92%,92% 97%,84% 93%,75% 98%,66% 94%,57% 99%,48% 94.5%,39% 98%,30% 93.5%,21% 98.5%,12% 94%,4% 98%,0 95%)}
html body .pq-grid{aspect-ratio:4/3;background-color:#fdfdfb;background-image:linear-gradient(rgba(62,120,190,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(62,120,190,.22) 1px,transparent 1px);background-size:8% 10.667%;clip-path:polygon(4% 0,100% 0,100% 100%,3% 100%,0 90%,4% 80%,1% 70%,5% 60%,1.5% 50%,4.5% 40%,0 30%,3.5% 20%,.5% 10%)}
html body .pq-kraft{aspect-ratio:1;background-color:#d9bf95;background-image:repeating-linear-gradient(112deg,rgba(120,80,30,.08) 0 2px,transparent 2px 7px),repeating-linear-gradient(22deg,rgba(255,255,255,.15) 0 1px,transparent 1px 9px);clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
html body .pq-news{aspect-ratio:3/4;background-color:#ece8de;background-image:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),repeating-linear-gradient(to bottom,rgba(0,0,0,.2) 0 2.2%,transparent 2.2% 4.6%),repeating-linear-gradient(to bottom,rgba(0,0,0,.2) 0 2.2%,transparent 2.2% 4.6%);background-size:80% 6%,38% 70%,38% 70%;background-position:50% 9%,12% 86%,88% 86%;background-repeat:no-repeat;clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
html body .pq-old{aspect-ratio:4/3;background-color:#efe2c4;background-image:radial-gradient(ellipse at 25% 30%,rgba(160,110,40,.24),transparent 45%),radial-gradient(ellipse at 78% 72%,rgba(140,90,30,.2),transparent 40%),radial-gradient(circle at 60% 20%,rgba(120,80,30,.14),transparent 25%);clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
html body .pq-map{aspect-ratio:4/3;background-color:#eef0e2;background-image:radial-gradient(ellipse at 20% 70%,#b9d4ea 0 22%,transparent 23%),radial-gradient(ellipse at 85% 25%,#b9d4ea 0 18%,transparent 19%),repeating-linear-gradient(35deg,transparent 0 9%,rgba(200,120,90,.35) 9% 9.6%),repeating-linear-gradient(-55deg,transparent 0 13%,rgba(150,150,150,.3) 13% 13.5%);clip-path:polygon(4% 0,100% 0,100% 100%,3% 100%,0 90%,4% 80%,1% 70%,5% 60%,1.5% 50%,4.5% 40%,0 30%,3.5% 20%,.5% 10%)}
html body .pq-ticket{aspect-ratio:2.3/1;background-color:#f3d9a8;background-image:linear-gradient(90deg,transparent 71%,rgba(90,60,20,.35) 71%,rgba(90,60,20,.35) 71.6%,transparent 71.6%),repeating-linear-gradient(to bottom,rgba(90,60,20,.18) 0 6%,transparent 6% 14%);background-size:100% 100%,58% 46%;background-position:0 0,10% 50%;background-repeat:no-repeat;-webkit-mask:radial-gradient(circle at 0 50%,transparent 8%,#000 8.5%) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,transparent 8%,#000 8.5%) right/51% 100% no-repeat;mask:radial-gradient(circle at 0 50%,transparent 8%,#000 8.5%) left/51% 100% no-repeat,radial-gradient(circle at 100% 50%,transparent 8%,#000 8.5%) right/51% 100% no-repeat}
html body .pq-torn{aspect-ratio:3/1;background:#fffdf7;clip-path:polygon(0 12%,8% 0,16% 10%,25% 2%,34% 12%,43% 1%,52% 11%,61% 3%,70% 12%,79% 2%,88% 11%,96% 0,100% 10%,100% 88%,92% 100%,84% 90%,75% 98%,66% 88%,57% 99%,48% 89%,39% 97%,30% 88%,21% 99%,12% 89%,4% 100%,0 90%)}
html body .pq-pink{aspect-ratio:4/3;background-color:#f6d3dd;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 3px,transparent 3px 9px);clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
/* 사진 틀 (f:) — 찢은 종이 · 폴라로이드 · 하트 · 타원 · 동그라미 · 크라프트 · 우표 */
html body .stk-frame{display:block;position:relative;width:100%;box-sizing:border-box}
html body .stk-frame .fr-in{display:block;position:relative;width:100%;overflow:hidden}
html body .stk .stk-frame img,html body .stk-frame img{display:block;width:100%;height:100%;object-fit:cover;filter:none}
html body .fr-sample{display:block;width:100%;height:100%;background:linear-gradient(135deg,#9fc3e9,#f2b8a2)}
html body .fr-torn{background:#fffdf7;padding:7%;clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
html body .fr-torn .fr-in{aspect-ratio:1}
html body .fr-polaroid{background:#fff;padding:6% 6% 22%;box-shadow:0 1px 2px rgba(0,0,0,.18),0 6px 14px rgba(0,0,0,.12)}
html body .fr-polaroid .fr-in{aspect-ratio:1}
html body .fr-heart{aspect-ratio:1;background:#d8bd93;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 93C20 71 2 53 2 31 2 15 14 4 28 4c10 0 18 6 22 14C54 10 62 4 72 4c14 0 26 11 26 27 0 22-18 40-48 62z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 93C20 71 2 53 2 31 2 15 14 4 28 4c10 0 18 6 22 14C54 10 62 4 72 4c14 0 26 11 26 27 0 22-18 40-48 62z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
html body .fr-heart .fr-in{position:absolute;inset:9% 9% 11%;width:auto;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 93C20 71 2 53 2 31 2 15 14 4 28 4c10 0 18 6 22 14C54 10 62 4 72 4c14 0 26 11 26 27 0 22-18 40-48 62z'/%3E%3C/svg%3E") center/100% 100% no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 93C20 71 2 53 2 31 2 15 14 4 28 4c10 0 18 6 22 14C54 10 62 4 72 4c14 0 26 11 26 27 0 22-18 40-48 62z'/%3E%3C/svg%3E") center/100% 100% no-repeat}
html body .fr-oval{aspect-ratio:4/3;background:#fffdf7;border-radius:50%;padding:5%}
html body .fr-oval .fr-in{height:100%;border-radius:50%}
html body .fr-circle{aspect-ratio:1;background:#fff;border-radius:50%;padding:6%}
html body .fr-circle .fr-in{height:100%;border-radius:50%}
html body .fr-kraft{background-color:#c99a63;background-image:repeating-linear-gradient(112deg,rgba(90,55,20,.12) 0 2px,transparent 2px 7px);padding:9%;clip-path:polygon(1% 3%,9% 0,18% 2.5%,27% .5%,36% 3%,45% 1%,55% 3.5%,64% .5%,73% 2.5%,82% 0,91% 3%,99% 1%,100% 10%,97.5% 20%,99.5% 30%,97% 41%,100% 52%,97.5% 63%,99.5% 74%,97% 85%,99% 97%,90% 100%,81% 97.5%,72% 99.5%,62% 97%,52% 100%,42% 97.5%,32% 99.5%,22% 97%,12% 99.5%,2% 98%,0 88%,2.5% 77%,.5% 66%,3% 55%,0 44%,2.5% 33%,.5% 22%,2% 12%)}
html body .fr-kraft .fr-in{aspect-ratio:4/5}
html body .fr-stamp{background:#fffdf7;padding:10%;-webkit-mask:radial-gradient(circle at center,#000 56%,transparent 60%) 0 0/7cqw 7cqw round,linear-gradient(#000,#000) center/86% 88% no-repeat;mask:radial-gradient(circle at center,#000 56%,transparent 60%) 0 0/7cqw 7cqw round,linear-gradient(#000,#000) center/86% 88% no-repeat}
html body .fr-stamp .fr-in{aspect-ratio:4/5}
/* 테이프 더 */
html body .tp-kraft{background:#d7b98c}
html body .tp-check{background-color:#fff;background-image:linear-gradient(90deg,rgba(226,84,94,.35) 50%,transparent 50%),linear-gradient(rgba(226,84,94,.35) 50%,transparent 50%);background-size:10px 10px}
/* 바탕: 내 사진으로 채우기 */
html body .vb-bg-photo{background-color:#e4e4e1;background-size:cover;background-position:center}
/* 겹침 순서 손잡이 (비전보드) */
html body .stk-lay{position:absolute;left:-15px;bottom:-15px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:#333;font:700 13px/1 Pretendard,sans-serif;pointer-events:auto;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.22)}
html body .stk .stk-lay.p1{left:3px;bottom:3px}
/* ── 꾸미기 단추 · 칸 목록 판 ── */
html body .vb-dock .vb-nav .vb-sep{flex:none;align-self:center;width:1px;height:28px;margin:0 2px;background:rgba(0,0,0,.12)}
html body.af-side .vb-dock .vb-nav .vb-sep{width:60%;height:1px;margin:3px auto}
html body.app-frame .vb-dock .vb-nav button.on{color:var(--af-pen,var(--accent));font-weight:600}
html body .vb-pal{position:fixed;z-index:47;left:50%;transform:translateX(-50%);bottom:calc(var(--af-bottom,calc(14px + env(safe-area-inset-bottom))) + 58px + 10px);width:min(420px,calc(100% - 32px));max-height:min(42vh,360px);display:flex;flex-direction:column;background:var(--card,#fff);border-radius:18px;box-shadow:0 10px 30px rgb(24 24 22 / 16%),0 0 0 .5px rgba(0,0,0,.06);overflow:hidden}
html body .vb-pal[hidden]{display:none!important}
html body.af-side .vb-pal{left:auto;transform:none;right:calc(var(--rail-x,90px) + 8px);top:calc(12px + env(safe-area-inset-top));bottom:calc(12px + env(safe-area-inset-bottom));width:clamp(176px,19vw,236px);max-height:none}
html body.af-side .vb-pal{top:calc(62px + env(safe-area-inset-top))}   /* 10/23 맨 위 ↺ 원래대로 · ✕ · ✓ 밑에서 시작 (가로 화면에서 꾸미기 칸이 그 단추들을 덮었다) */
html body .vp-tabs{display:flex;gap:16px;flex:none;overflow-x:auto;padding:12px 14px 4px;scrollbar-width:none}
html body .vp-tabs::-webkit-scrollbar{display:none}
html body.af-side .vp-tabs{flex-wrap:wrap;gap:6px 12px;overflow:visible;padding:12px 12px 4px}
html body .vp-tabs button{flex:none;margin:0;padding:2px 0 5px;border:0;border-radius:0;background:none;box-shadow:none;font:600 13px/1.2 Pretendard,sans-serif;color:var(--sub);cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .vp-tabs button.on{color:var(--text);box-shadow:inset 0 -2px 0 var(--af-pen,var(--accent))}
html body .vp-pick{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:12px 14px 4px}
html body .vp-pick b{font:700 13px/1.35 Pretendard,sans-serif;color:var(--text);word-break:keep-all}
html body .vp-pick button{flex:none;margin:0;padding:4px 2px;border:0;background:none;box-shadow:none;color:var(--sub);font:600 13px/1 Pretendard,sans-serif}
html body .vp-body{flex:1;min-height:0;overflow-y:auto;display:grid;gap:8px;padding:8px 12px 12px;align-content:start;-webkit-user-select:none;user-select:none;scrollbar-width:none}
html body .vp-body.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
html body .vp-body.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .vp-body.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.af-side .vp-body:is(.g4,.g3){grid-template-columns:repeat(2,minmax(0,1fr))}
html body.af-side .vp-body.g2{grid-template-columns:1fr}
html body .vp-i{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;margin:0;padding:8px;border:0;border-radius:12px;background:var(--soft2,#f3f3f1);box-shadow:none;cursor:pointer;container-type:inline-size;overflow:hidden;-webkit-tap-highlight-color:transparent}
html body .vp-i img{width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;-webkit-touch-callout:none;filter:none}
html body .vp-i:active{transform:scale(.95)}
html body .vp-act{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;background:transparent;border:1.5px dashed var(--line);color:var(--sub);font:600 11px/1.2 Pretendard,sans-serif}
html body .vp-act svg{width:22px;height:22px}
html body .vp-tx{aspect-ratio:auto;height:60px;padding:6px 8px;overflow:visible}
html body .vp-tx .tx-note{width:46px;font-size:11px}
html body :is(.vp-fr,.vp-pq,.vp-bg){display:flex;flex-direction:column;justify-content:center;gap:6px;aspect-ratio:auto;padding:12px 8px 8px}
html body .vp-fr .stk-frame{width:58%} html body .vp-pq .stk-paper{width:62%}
html body :is(.vp-fr,.vp-pq,.vp-bg) > span:last-child:not(.stk-paper):not(.stk-frame){font:600 11px/1.2 Pretendard,sans-serif;color:var(--sub)}
html body .vp-tape{aspect-ratio:auto;height:46px;padding:12px 16px}
html body .vp-tape .stk-tape{width:100%}
html body .vp-bg{background:none;padding:4px 2px}
html body .vp-bg i{display:grid;place-items:center;width:100%;aspect-ratio:4/3;border-radius:8px;box-shadow:0 0 0 .5px rgba(0,0,0,.18)}
html body .vp-bg i svg{width:22px;height:22px;color:var(--sub)}
html body .vp-bg.on i{box-shadow:0 0 0 2px var(--af-pen,var(--accent))}
html body .vp-empty,html body .vp-hint{grid-column:1/-1;margin:4px 2px;font:500 12px/1.5 Pretendard,sans-serif;color:var(--faint,#a3a6ab)}
html body.stk-dnd #vbPal{opacity:.28;pointer-events:none}
html body.stk-dnd #vbPal *{pointer-events:none!important}
/* 10/18 테이프 길이 조절 (사용자): 길이 ÷ 두께 = --a (기본 4.4) · 고르면 오른쪽 가운데 ↔ 손잡이 */
html body .stk .stk-tape{aspect-ratio:var(--a,4.4)/1}
html body .stk-len{position:absolute;right:-14px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:50%;display:grid;place-items:center;background:var(--accent,#df7888);border:2px solid #fff;color:#fff;font:700 13px/1 Pretendard,sans-serif;pointer-events:auto;cursor:ew-resize;touch-action:none;box-shadow:0 1px 4px rgba(0,0,0,.22)}
html body .stk .stk-len.p1{right:3px}
html body .stk.k-w .stk-size{display:none}   /* 테이프는 ↔ 로 길이, 두 손가락으로 크기 */
/* 10/18 비전보드 나가기: 왼쪽 위 ‹ = 저장하지 않고 뒤로 · 아래 ✓ = 저장하고 닫기 */
html body .vb-top{gap:8px;justify-content:flex-start}
html body .vb-top .vb-back{display:grid;place-items:center;flex:none;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:var(--card,#fff);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.12)}
/* 10/23 맨 위 ↺ 원래대로 · ✕ · ✓ — 설정(꾸미기) 창 머리와 같은 모양 (side-menu.css .side-reset · .side-close · .side-done) */
html body .vb-top .vb-reset{display:inline-flex;align-items:center;gap:4px;height:32px;margin-right:2px;padding:0 11px 0 9px;border:0;border-radius:999px;background:var(--bg2,#f1f1ef);color:var(--text);font:600 12px/1 Pretendard,sans-serif;box-shadow:none}
html body .vb-top .vb-reset[hidden]{display:none}
html body .vb-top .vb-x,html body .vb-top .vb-done-top{display:grid;place-items:center;flex:none;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text);box-shadow:none}
html body .vb-top .vb-done-top{background:var(--text,#27292c);color:var(--card,#fff)}
html body .vb-top .vb-name{margin-right:auto}
html body #vbMode.vb-land .vb-top .vb-name{display:block}
@media (max-height:560px){
  html body #vbMode.vb-land .vb-top{position:absolute;left:10px;right:auto;top:calc(6px + env(safe-area-inset-top))}
  html body #vbMode.vb-land .vb-top .vb-name{display:none}
  html body #vbMode.vb-land .vb-head{padding-left:40px}
}
/* ═══ 10/18 잡지 찢은 글자 (x:torn) — 글자마다 다른 종이 무늬 · 찢긴 가장자리 (직접 그림) ═══ */
html body .tx-torn{display:flex;justify-content:center;align-items:center;gap:.04em;width:100%;font-size:calc(100cqw / (var(--n) * 1.22 + .2));filter:drop-shadow(0 1px 1.2px rgba(0,0,0,.28))}
html body .tx-torn .rl-sp{width:.3em}
html body .tx-torn i{display:inline-grid;place-items:center;min-width:.9em;padding:.16em .2em .1em;font-style:normal;line-height:1;font-family:'Abril Fatface','Black Han Sans',serif;transform:translateY(var(--dy,0)) rotate(var(--rr))}
html body .tx-torn .tlc0{clip-path:polygon(3% 6%,22% 0,41% 4%,63% 1%,84% 5%,98% 2%,100% 24%,96% 47%,100% 71%,97% 96%,76% 100%,55% 95%,33% 99%,12% 96%,0 100%,4% 74%,0 50%,3% 26%)}
html body .tx-torn .tlc1{clip-path:polygon(0 3%,18% 7%,36% 0,57% 6%,79% 1%,100% 5%,97% 29%,100% 53%,95% 77%,100% 100%,80% 95%,59% 100%,38% 96%,17% 100%,2% 94%,5% 70%,0 46%,4% 23%)}
html body .tx-torn .tlc2{clip-path:polygon(6% 0,30% 5%,52% 1%,73% 6%,95% 0,100% 20%,95% 42%,99% 64%,94% 86%,98% 100%,73% 96%,50% 100%,27% 95%,4% 99%,0 78%,5% 55%,1% 32%,4% 12%)}
html body .tx-torn .tlc3{clip-path:polygon(1% 1%,24% 5%,47% 0,70% 4%,99% 3%,96% 26%,100% 50%,96% 74%,99% 97%,74% 100%,50% 96%,26% 100%,3% 97%,0 72%,4% 48%,0 25%)}
html body .tx-torn .tlp0{background-color:#efe6d3;background-image:repeating-linear-gradient(-6deg,transparent 0 .32em,rgba(110,80,50,.28) .32em .35em),repeating-linear-gradient(84deg,transparent 0 .5em,rgba(110,80,50,.12) .5em .53em);color:#5a3d22}
html body .tx-torn .tlp1{background-color:#d6bf9e;background-image:radial-gradient(circle at 30% 30%,rgba(120,80,40,.45) 0 .07em,transparent .08em),radial-gradient(circle at 70% 70%,rgba(255,255,255,.55) 0 .1em,transparent .11em);background-size:.42em .42em;color:#fff;-webkit-text-stroke:.02em #5a3d22}
html body .tx-torn .tlp2{background-color:#c49a6c;background-image:repeating-linear-gradient(112deg,rgba(80,50,20,.14) 0 1px,transparent 1px 5px);color:#fff}
html body .tx-torn .tlp3{background-color:#f4f2ec;background-image:repeating-linear-gradient(to bottom,transparent 0 .16em,rgba(0,0,0,.12) .16em .2em);color:#2b2b2b}
html body .tx-torn .tlp4{background-color:#f3e6d8;background-image:repeating-linear-gradient(90deg,rgba(210,120,140,.28) 0 .12em,transparent .12em .3em);color:#7a4a2a}
/* 칸 목록 판은 늘 같은 높이 (메뉴를 바꿔도 위 판 크기가 그대로 — 사용자) · 넘치는 칸은 판 안에서 끌어 넘긴다 */
html body:not(.af-side) .vb-pal{height:min(42vh,360px)}
html body .vp-body{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
/* 10/18 칸 목록 판 위 손잡이 (누르거나 아래로 끌면 내린다) · 그림 칸은 작게 (사용자 "이모지가 너무 커 · 잘린다") */
html body .vp-grab{display:block;flex:none;width:100%;height:18px;margin:0;padding:0;border:0;background:none;box-shadow:none;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
html body .vp-grab i{display:block;width:38px;height:5px;margin:8px auto 0;border-radius:3px;background:rgba(0,0,0,.18)}
html body.af-side .vp-grab{display:none}
html body .vb-pal .vp-tabs{padding-top:4px}
html body.af-side .vb-pal .vp-tabs{padding-top:12px}
html body .vb-pal .vp-pick{padding-top:4px}
html body .vp-body.g4{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}
html body .vp-body.g4 .vp-i{padding:6px;border-radius:10px}
html body.af-side .vp-body.g4{grid-template-columns:repeat(auto-fill,minmax(50px,1fr))}
html body .vp-body.g4 .vp-act span{font-size:10px}
html body .vp-body.g4 .vp-act svg{width:18px;height:18px}
/* 10/18 아이폰 가로 비전보드 (사용자) — 오른쪽 막대의 ‹ › (이전·다음 날)은 비전보드에선 숨김 · 뒤로 단추가 판 모서리를 덮지 않게 · 가로 판 닫기 › */
html body.vb-on #tabbar .af-side-nav{display:none!important}
@media (max-height:560px){
  html body #vbMode.vb-land .vb-head{min-height:40px;box-sizing:border-box}
}
html body.af-side .vb-pal{position:fixed}
html body.af-side .vp-grab{display:grid;place-items:center;position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;z-index:2}
html body.af-side .vp-grab svg{transform:rotate(-90deg)}
html body.af-side .vb-pal .vp-tabs{padding-right:40px}
/* 10/18 아이폰 가로 비전보드는 위아래 꽉 차게 (사용자): 제목 줄은 숨기고 ‹ 뒤로는 왼쪽 끝, 판은 위아래 8px 만 남기고
   (노치 자리는 .vb-mode 가 이미 비켜 주니 판 쪽에서 또 비우지 않는다) */
@media (max-height:560px){
  html body #vbMode.vb-land .vb-head{display:none}
  html body #vbMode.vb-land .vb-top{position:absolute;left:calc(env(safe-area-inset-left,0px) + 8px);right:auto;top:calc(8px + env(safe-area-inset-top,0px));padding:0;z-index:5}
  html body #vbMode.vb-land .vb-stage{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px)) 56px}
  html body #vbMode.vb-land .vb-poster{gap:0}
}
html body .vp-body{grid-auto-rows:max-content}   /* 10/18 판 높이가 정해지면 줄이 14px 로 눌려 칸이 겹쳤다 (아이폰 가로) — 줄은 칸 높이 그대로, 넘치면 끌어 넘긴다 */

/* 11/4 처음 안내 카드 (planner.js Tutorial) — 스토어 사진 결: 큰 제목 + 우리 화면 그림, 옆으로 넘기기 */
.tut{position:fixed;inset:0;z-index:170;background:#F6F2EC;color:#27292C;display:flex;flex-direction:column;font-family:Pretendard,sans-serif;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.tut-skip{position:absolute;top:calc(env(safe-area-inset-top) + 8px);right:12px;z-index:1;border:0;background:none;font:inherit;font-size:15px;color:#9A9EA5;padding:10px}
.tut-track{flex:1;min-height:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.tut-track::-webkit-scrollbar{display:none}
.tut-pg{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;display:flex;flex-direction:column;align-items:center;padding:clamp(44px,8vh,96px) 24px 0;box-sizing:border-box;overflow:hidden}
.tut-pg h2{margin:0;font-size:clamp(30px,8.6vw,40px);line-height:1.22;font-weight:800;letter-spacing:-.045em;text-align:center}
.tut-pg p{margin:14px 0 0;font-size:15.5px;line-height:1.6;color:#7A7F87;text-align:center;word-break:keep-all}
.tut-shot{display:block;margin-top:clamp(22px,4vh,44px);width:min(360px,100%);flex:none;-webkit-user-select:none;user-select:none}
img.tut-shot{height:auto;filter:drop-shadow(0 14px 24px rgba(60,50,40,.16)) drop-shadow(0 0 1px rgba(0,0,0,.08));-webkit-touch-callout:none}
@media (min-width:700px){img.tut-shot{width:min(520px,100%)}}
.tut-quick{height:min(380px,48vh);border-radius:26px;background:linear-gradient(165deg,#4A4E57,#202328 70%);display:flex;flex-direction:column;align-items:center;color:#fff;box-shadow:0 18px 40px rgba(60,50,40,.16)}
.tq-clock{margin-top:clamp(18px,4vh,34px);font-size:64px;font-weight:300;line-height:1;letter-spacing:-.02em}
.tq-dlg{margin-top:clamp(18px,4vh,34px);width:84%;background:rgba(255,255,255,.96);border-radius:20px;color:#27292C;padding:16px 16px 14px;box-sizing:border-box;box-shadow:0 10px 30px rgba(0,0,0,.35);text-align:left}
.tq-dlg b{display:block;font-size:15px;margin-bottom:4px}.tq-dlg small{display:block;font-size:12.5px;color:#7A7F87;margin-bottom:10px}
.tq-in{background:#F1EFEC;border-radius:12px;padding:11px 12px;font-size:16px;font-weight:600}
.tq-in i{display:inline-block;width:2px;height:18px;background:#E2545E;vertical-align:-3px;margin-left:2px;animation:tq-caret 1s steps(1) infinite}
@keyframes tq-caret{50%{opacity:0}}
.tq-bt{display:flex;gap:8px;margin-top:12px}.tq-bt span{flex:1;text-align:center;padding:10px 0;border-radius:12px;font-weight:700;font-size:14.5px;background:#ECEAE6}.tq-bt span.ok{background:#E2545E;color:#fff}
.tut-foot{flex:none;display:flex;align-items:center;justify-content:space-between;padding:14px 24px 22px}
.tut-dots i{display:inline-block;width:7px;height:7px;border-radius:4px;margin-right:6px;background:#D9D3CA;transition:width .2s,background .2s}.tut-dots i.on{width:20px;background:#E2545E}
.tut-go{border:0;background:#27292C;color:#fff;font:inherit;font-weight:700;font-size:16px;padding:14px 26px;border-radius:999px}
/* 첫 화면에서 한 번 같이 적기 (덮개는 손가락을 막지 않는다 — 구멍 난 곳을 그대로 누르면 된다) */
.tut-coach{position:fixed;inset:0;z-index:165;pointer-events:none}
.tut-coach svg{position:absolute;inset:0}
.tc-bub{position:absolute;pointer-events:auto;background:#fff;color:#27292C;border-radius:20px;padding:16px 16px 10px;box-shadow:0 12px 32px rgba(0,0,0,.22);box-sizing:border-box;font-family:Pretendard,sans-serif}
.tc-bub>b{display:block;font-size:17px;letter-spacing:-.03em;margin-bottom:4px}.tc-bub>span{display:block;font-size:14px;line-height:1.55;color:#5E636B;word-break:keep-all}
.tc-bt{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}.tc-bt button{border:0;background:none;font:inherit;font-size:14px;color:#9A9EA5;padding:9px 12px}.tc-bt button.ok{background:#27292C;color:#fff;font-weight:700;border-radius:999px;padding:9px 16px}
.guide-again{padding:4px 0 10px}.guide-again .btn{width:100%}
