/* 10/15 설정 메뉴: 오른쪽에서 덮으며 나온다 — 종이는 그대로 (사용자 "메뉴가 밀고 나오고 밑에 종이는 그대로", 스레드 피드 메뉴 느낌 B안)
   큰 제목 · 큰 단추 둘(가이드·문의) · 둥근 카드 묶음 · 계정 카드 · 작은 링크 */
html body.drawer #side{
  top:0!important;right:0!important;bottom:0!important;left:auto!important;
  width:min(340px,84vw)!important;height:auto!important;max-height:none!important;
  padding:calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)) 14px!important;
  border:0!important;border-radius:28px 0 0 28px!important;
  background:var(--shell-chrome,#F4F4F2)!important;box-shadow:-14px 0 44px rgb(20 22 26 / 14%)!important;
  transform:translateX(106%);transition:transform .34s cubic-bezier(.2,.8,.2,1);overflow-y:auto;
}
html body.drawer #side.open{transform:none}
html body.drawer #scrim:not([hidden]){background:rgb(20 22 26 / 14%)}
@media (prefers-reduced-motion:reduce){html body.drawer #side{transition:none}}
/* 머리: 탭 대신 큰 제목, 닫기는 오른쪽 위 동그라미 */
html body #side .side-top{position:absolute;top:calc(16px + env(safe-area-inset-top));right:12px;min-height:0;margin:0;padding:0;background:none;border:0;z-index:5}
html body #side .side-tabs{display:none}
html body #side .side-close{width:40px;height:40px;border-radius:50%;color:var(--shell-text)}
html body #side .side-close svg{width:14px;height:14px}
/* 10/15 X 옆에 늘 ✓ (사용자 "설정은 X 만 있어 저장이 안 된 것 같아 찝찝해"): X = 저장 안 하고 닫기 · ✓ = 저장하고 닫기 */
html body #side .side-top{display:flex;align-items:center;gap:6px}
html body #side .side-done{background:var(--shell-text,#27292c);color:var(--shell-surface,#fff)}
html body #side .sm-head{margin-right:96px}
html body #side .sm-head{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 48px 16px 4px}
html body #side .sm-head h1{margin:0;font:800 27px/1.1 Pretendard,sans-serif;letter-spacing:-.03em;color:var(--shell-text)}
html body #side .sm-sub .sp-back{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;border:0;background:var(--shell-surface);color:var(--shell-text)}
html body #side .sm-sub h1{font-size:22px}
/* 큰 단추 둘 */
html body #side .sm-two{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;margin:0 0 12px}
html body #side .sm-two>*{display:flex;align-items:center;justify-content:center;gap:7px;height:56px;border-radius:20px;border:1px solid var(--shell-line);background:var(--shell-surface);color:var(--shell-text);font:600 13.5px Pretendard,sans-serif;text-decoration:none}
html body #side .sm-two svg{width:21px;height:21px;flex:none}
/* 세 묶음: 둥근 카드, 이름·설명은 왼쪽, 그림은 오른쪽 */
html body #side .sg.settings-menu-root{margin:0 0 12px;border:1px solid var(--shell-line);border-radius:20px;background:var(--shell-surface);overflow:hidden}
html body #side .settings-menu-root .sr{grid-template-columns:minmax(0,1fr) 34px;min-height:66px;padding:12px 16px;column-gap:10px;row-gap:3px}
html body #side .settings-menu-root .sr>:first-child{grid-column:2;grid-row:1 / span 2;justify-self:center;align-self:center}
html body #side .settings-menu-root .sr-t{grid-column:1;grid-row:1;font-size:15.5px;font-weight:650}
html body #side .settings-menu-root .sr-v{grid-column:1;grid-row:2;font-size:11.5px}
html body #side .settings-menu-root .sc{display:none}
html body #side .settings-menu-root .sr+.sr::before{left:16px;right:16px}
/* 계정 카드 */
html body #side .settings-profile{min-height:64px;margin:0 0 12px;padding:12px 16px;border:1px solid var(--shell-line);border-radius:20px;background:var(--shell-surface)}
/* 작은 링크 */
html body #side .settings-foot{border:0;margin:0;padding:2px 6px 0}
html body #side .biz-line{padding:0 6px}
/* 한 칸 들어간 화면도 같은 머리: 둥근 뒤로 + 큰 제목 (닫기와 한 줄), 목록·내용은 둥근 카드 */
html body #side .sp-head{position:static;display:flex;align-items:center;gap:8px;min-height:44px;margin:0 48px 14px 0;padding:0;background:none}
html body #side .sp-head b{font:800 22px/1.15 Pretendard,sans-serif;letter-spacing:-.03em;text-align:left;color:var(--shell-text)}
html body #side .sp-head>span:empty{display:none}
html body #side .sp-back{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;border:0;background:var(--shell-surface)}
html body #side .sg.settings-menu{margin:0 0 12px;border:1px solid var(--shell-line);border-radius:20px;background:var(--shell-surface);overflow:hidden}
html body #side .settings-menu .sr{padding-left:14px;padding-right:14px}
html body #side .sg.sp-body{border:1px solid var(--shell-line);border-radius:20px;background:var(--shell-surface);padding:6px 14px 14px}
/* 10/15 글씨 한 단계 작게 (사용자 "설정 폰트크기 줄여줘") */
html body #side .sm-head h1{font-size:22px}
html body #side .sm-sub h1,html body #side .sp-head b{font-size:18px}
html body #side .sm-two>*{height:48px;font-size:12.5px;border-radius:18px}
html body #side .sm-two svg{width:19px;height:19px}
html body #side .settings-menu .sr-t,html body #side .settings-menu-root .sr-t{font-size:14px}
html body #side .settings-menu .sr-v,html body #side .settings-menu-root .sr-v{font-size:11px}
html body #side .settings-menu-root .sr{min-height:58px}
html body #side .settings-profile b{font-size:14px}
html body #side .settings-profile small{font-size:11px}
html body #side .set-row{font-size:13px;min-height:46px}
html body #side :is(.hint,.biz-line){font-size:11.5px}
html body #side .sg-h{font-size:10.5px}
html body #side #sideGuide :is(p,li,td,th,dd,dt,span,b){font-size:12.5px}
html body #side #sideGuide :is(h2,h3,h4){font-size:14px}
html body #side #sideGuide .sm-head h1{font-size:18px}

/* 10/15 꾸미기 › 색: 팔레트 (맨 위 60-30-10 · 메인 색 · 형광펜 1도/2도/4도 · 바탕·선) */
html body :is(#side,#onb) .cp-hero{display:grid;grid-template-columns:60% 40%;grid-template-rows:75% 25%;height:168px;margin:0 0 16px;border-radius:18px;overflow:hidden}
html body :is(#side,#onb) .cp-hero i{position:relative;display:block;min-width:0;font-style:normal}
html body :is(#side,#onb) .cp-hero i b{position:absolute;left:9px;bottom:7px;font:600 10.5px/1 Pretendard,sans-serif;letter-spacing:.02em}
html body :is(#side,#onb) .cp-hero i em{position:absolute;left:9px;top:8px;font:600 9.5px/1 Pretendard,sans-serif;font-style:normal;letter-spacing:.04em;opacity:.85}
html body :is(#side,#onb) .cp-hero .h-main{grid-row:1 / span 2;grid-column:1}
html body :is(#side,#onb) .cp-hero .h-two{grid-row:1;grid-column:2}
html body :is(#side,#onb) .cp-hero .h-ten{grid-row:2;grid-column:2;display:flex}
html body :is(#side,#onb) .cp-hero span.h-ten>i,html body :is(#side,#onb) .cp-hero span.h-many>i{flex:1}
html body :is(#side,#onb) .cp-hero span.h-many{display:flex;flex-direction:column}
html body :is(#side,#onb) .cp-hero .h-ten b,html body :is(#side,#onb) .cp-hero .h-many b{font-size:9px;bottom:5px;left:6px}
html body :is(#side,#onb) .cp-step{display:flex;align-items:center;gap:7px;margin:4px 2px 8px;font:700 13px Pretendard,sans-serif;color:var(--shell-text)}
html body :is(#side,#onb) .cp-step i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--shell-text);color:var(--shell-surface);font:700 10px/1 Pretendard,sans-serif;font-style:normal}
html body :is(#side,#onb) .cp-step small{margin-left:auto;font-size:10.5px;font-weight:500;color:var(--shell-muted)}
html body :is(#side,#onb) .cp .screen-palette{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;padding:0 0 4px}
html body :is(#side,#onb) .cp .screen-color{min-width:0;height:auto;aspect-ratio:1;border-radius:9px;flex:none}
html body :is(#side,#onb) .cp .screen-color i{width:100%;height:100%;border-radius:9px}
html body :is(#side,#onb) .cp .screen-color.on::after{width:auto;height:auto;inset:-3px;border:2px solid var(--shell-text);border-radius:11px}
html body :is(#side,#onb) .cp-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin:12px 0 10px;padding:3px;border-radius:11px;background:var(--shell-soft)}
html body :is(#side,#onb) .cp-seg button{height:32px;border:0;border-radius:8px;background:none;color:var(--shell-muted);font:600 12.5px Pretendard,sans-serif}
html body :is(#side,#onb) .cp-seg button.on{background:var(--shell-surface);color:var(--shell-text);box-shadow:0 1px 3px rgb(0 0 0 / 10%)}
html body :is(#side,#onb) .cp-pro{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 10px;border-radius:11px;background:#f5f3fb;color:#5a4a9c;font-size:12px}
html body :is(#side,#onb) .cp-pro button{margin-left:auto;padding:4px 9px;border:0;border-radius:999px;background:#5a4a9c;color:#fff;font:600 11px Pretendard,sans-serif}
html body :is(#side,#onb) .cp-strips{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
html body :is(#side,#onb) .cp-strip{display:block;padding:0;border:0;background:none;text-align:left}
html body :is(#side,#onb) .cp-bar{position:relative;display:flex;height:32px;border-radius:10px;overflow:hidden;outline:2px solid transparent;outline-offset:2px}
html body :is(#side,#onb) .cp-strip.on .cp-bar{outline-color:var(--shell-text)}
html body :is(#side,#onb) .cp-bar i{flex:1}
html body :is(#side,#onb) .cp-strip.lock .cp-bar::after{content:"🔒";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:10px}
html body :is(#side,#onb) .cp-nm{display:flex;justify-content:space-between;margin-top:4px;font-size:10.5px;color:var(--shell-muted)}
html body :is(#side,#onb) .cp-row{display:flex;align-items:center;gap:10px;margin:0 0 8px}
html body :is(#side,#onb) .cp-row>span{flex:none;width:28px;font-size:11.5px;color:var(--shell-muted)}
html body :is(#side,#onb) .cp-chips{display:flex;flex-wrap:wrap;gap:6px}
html body :is(#side,#onb) .cp-chip{position:relative;width:26px;height:26px;padding:0;border:1px solid var(--shell-line);border-radius:8px;background:var(--c)}
html body :is(#side,#onb) .cp-chip.line{background:var(--shell-surface);border-color:var(--shell-line)}
html body :is(#side,#onb) .cp-chip.line::before{content:"";position:absolute;left:5px;right:5px;top:50%;height:2px;margin-top:-1px;border-radius:1px;background:var(--c)}
html body :is(#side,#onb) .cp-chip.on{outline:2px solid var(--shell-text);outline-offset:1px}
html body :is(#side,#onb) .cp-chip.lock::after{content:"🔒";position:absolute;right:-4px;top:-5px;font-size:8px}
html body :is(#side,#onb) .cp-sub{margin:18px 2px 8px;padding-top:14px;border-top:1px solid var(--shell-line);font:700 13px Pretendard,sans-serif;color:var(--shell-text)}
html body :is(#side,#onb) .cp-note{margin:0 0 8px}

/* 색 이름: 굵게 + 색 코드 작게 (사용자 그림처럼) */
html body :is(#side,#onb) .cp-hero i strong{position:absolute;left:9px;bottom:20px;right:6px;font:800 14px/1.1 Pretendard,sans-serif;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body :is(#side,#onb) .cp-hero .h-main strong{font-size:17px;bottom:22px}
html body :is(#side,#onb) .cp-hero .h-ten strong,html body :is(#side,#onb) .cp-hero .h-many strong{display:none}
html body :is(#side,#onb) .cp-nm>span:first-child{font-weight:700;color:var(--shell-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body :is(#side,#onb) .cp-nm>span:last-child{flex:none;margin-left:6px}

html body :is(#side,#onb) .cp-chips{flex-wrap:nowrap;gap:5px}
html body :is(#side,#onb) .cp-chip{width:24px;height:24px;flex:none}
html body :is(#side,#onb) .cp-chips{gap:4px}
html body :is(#side,#onb) .cp-chip{width:22px;height:22px;border-radius:7px}

/* 10/15 형광펜 팔레트를 세로 캡슐로 (사용자 그림), 옆으로 밀어 보기 · 직접 넣기 · 처음 색으로 */
html body :is(#side,#onb) .cp-caps{display:flex;gap:8px;overflow-x:auto;margin:0 -4px 14px;padding:4px 4px 6px;scroll-snap-type:x proximity;scrollbar-width:none}
html body :is(#side,#onb) .cp-caps::-webkit-scrollbar{display:none}
html body :is(#side,#onb) .cp-cap{flex:0 0 54px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;border:0;background:none;scroll-snap-align:start;cursor:pointer}
html body :is(#side,#onb) .cp-pill{position:relative;display:flex;flex-direction:column;width:44px;height:124px;border-radius:22px;overflow:hidden;outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 1px rgb(0 0 0 / 7%)}
html body :is(#side,#onb) .cp-pill i{flex:1}
html body :is(#side,#onb) .cp-cap.on .cp-pill{outline-color:var(--shell-text,#24272c)}
html body :is(#side,#onb) .cp-cap.lock .cp-pill::after{content:"🔒";position:absolute;left:50%;bottom:8px;transform:translateX(-50%);font-size:10px}
html body :is(#side,#onb) .cp-cap small{max-width:56px;font-size:9.5px;line-height:1.2;color:var(--shell-muted,#8a8f96);text-align:center;word-break:keep-all}
html body :is(#side,#onb) .cp-cap.on small{color:var(--shell-text,#24272c);font-weight:700}
html body :is(#side,#onb) .cp-add .cp-pill{display:grid;place-items:center;border:1.5px dashed var(--shell-line,#d9dbde);background:var(--shell-surface,#fff);box-shadow:none;font-size:20px;color:var(--shell-muted,#8a8f96)}
html body :is(#side,#onb) .cp-add input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}
html body :is(#side,#onb) .cp-reset{display:block;margin:14px auto 2px;padding:8px 14px;border:1px solid var(--shell-line,#d9dbde);border-radius:999px;background:var(--shell-surface,#fff);color:var(--shell-muted,#8a8f96);font:600 12px Pretendard,sans-serif}
/* 처음 켤 때 화면: 메인 색 칩 기본 모양 · 팔레트 편집 칸은 숨김 */
html body #onb .screen-palette{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;padding:0 0 10px}
html body #onb .screen-color{position:relative;display:grid;place-items:center;aspect-ratio:1;padding:0;border:0;border-radius:9px;background:transparent}
html body #onb .screen-color i{display:block;width:100%;height:100%;border-radius:9px;background:var(--swatch)}
html body #onb .screen-color.on::after{content:"";position:absolute;inset:-3px;border:2px solid #24272c;border-radius:11px}
html body #onb .screen-palette-footer,html body #onb .screen-color-editor{display:none}
html body #onb .onb-palette{max-height:min(62dvh,560px);overflow-y:auto;margin:0 -4px;padding:0 4px}
html body #onb .cp-add[data-screen-palette-edit]{display:none}
/* 알약 작게 (사용자 "알약 크기 줄여줘 · 더") */
html body :is(#side,#onb) .cp-caps{gap:4px}
html body :is(#side,#onb) .cp-cap{flex-basis:42px;gap:4px}
html body :is(#side,#onb) .cp-pill{width:28px;height:76px;border-radius:14px}
html body :is(#side,#onb) .cp-cap small{max-width:44px;font-size:8.5px}
html body :is(#side,#onb) .cp-cap.lock .cp-pill::after{bottom:5px;font-size:8px}
html body :is(#side,#onb) .cp-add .cp-pill{font-size:15px}
html body :is(#side,#onb) .cp-shuffle{display:block;margin:-4px 0 10px auto;padding:5px 10px;border:1px solid var(--shell-line,#d9dbde);border-radius:999px;background:var(--shell-surface,#fff);color:var(--shell-text,#24272c);font:600 11.5px Pretendard,sans-serif}
html body :is(#side,#onb) .cp-cap small em{display:block;font-style:normal;font-size:8px;opacity:.7}
html body :is(#side,#onb) .cp-sub{display:flex;align-items:center;gap:8px}
html body :is(#side,#onb) .cp-sub .cp-shuffle{margin:0 0 0 auto}
html body #side .sm-logo{display:flex;flex-direction:column;align-items:center;gap:6px;margin:26px 0 6px;color:var(--shell-text);opacity:.85}
html body #side .sm-logo svg{width:30px;height:30px}
html body #side .sm-logo span{font:700 11px/1 Pretendard,sans-serif;letter-spacing:.04em;color:var(--shell-muted)}
html body :is(#side,#onb) .cp .screen-palette,html body #onb .screen-palette{grid-template-columns:repeat(var(--n,9),minmax(0,1fr))}

/* 10/15 코멘트 › 오늘의 문장 미리 보기 */
html body #side .q-preview{margin:10px 0 4px;padding:12px 14px;border-radius:14px;background:var(--shell-chrome,#f4f4f2);display:flex;gap:10px;align-items:center}
html body #side .q-preview p{margin:0;flex:1;font-size:13px;line-height:1.5;color:var(--shell-text,#27292c)}
html body #side .q-preview .mini{flex:none}

/* 10/15 메인 색 '＋ 내 색 더하기' 칸 · 멀티 펜마다 색 고르기 (사용자 "기본 팔레트는 그대로 +로 추가 · 과목마다 색 조정") */
html body :is(#side,#onb) .screen-color.add i{display:grid;place-items:center;background:none!important;border:1.5px dashed var(--shell-line,#d9dbdf);color:var(--shell-muted,#8a9099);font:600 15px/1 Pretendard,sans-serif;box-sizing:border-box}
html body :is(#side,#onb) .screen-color.add.on i{border-style:solid;border-color:var(--shell-text,#27292c);color:var(--shell-text,#27292c)}
html body :is(#side,#onb) .cp .screen-palette{grid-template-columns:repeat(var(--n,11),minmax(0,1fr))}
html body #side .pen-pick{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:2px 0 12px 4px;padding:10px;border-radius:14px;background:var(--shell-chrome,#f4f4f2)}
html body #side .pen-sw{position:relative;aspect-ratio:1;border-radius:50%;border:0;padding:0;background:var(--c);cursor:pointer}
html body #side .pen-sw.on{box-shadow:0 0 0 2px var(--shell-surface,#fff),0 0 0 4px var(--shell-text,#27292c)}
html body #side .pen-own{display:grid;place-items:center;background:none;border:1.5px dashed var(--shell-line,#d9dbdf);color:var(--shell-muted,#8a9099);font-weight:600;overflow:hidden}
html body #side .pen-own input{position:absolute;inset:0;opacity:0;cursor:pointer}
html body #side .dot.big.pinned{box-shadow:0 0 0 2px var(--shell-surface,#fff),0 0 0 3.5px var(--shell-text,#27292c)}

/* 10/15 내 필통 (사용자 시안 OK): 단색·투톤·멀티 탭 바로 밑, 지금 칠해지는 펜을 과목마다 — 보이는 색 = 칠해지는 색 */
html body #side .pc-case{margin:4px 0 14px}
html body #side .pc-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:2px 2px 8px}
html body #side .pc-head b{font:800 15px Pretendard,sans-serif;color:var(--shell-text,#27292c)}
html body #side .pc-head span{font-size:12px;color:var(--shell-muted,#8a9099)}
html body #side .pc-tray{position:relative;display:flex;gap:2px;padding:12px 8px 10px;border-radius:18px;background:var(--shell-chrome,#f1eee8);box-shadow:inset 0 2px 6px rgba(0,0,0,.08);overflow-x:auto;scrollbar-width:none}
html body #side .pc-tray::-webkit-scrollbar{display:none}
html body #side .pc-tray::before{content:'';position:absolute;left:14px;right:14px;top:6px;border-top:2px dashed rgba(0,0,0,.12);pointer-events:none}
html body #side .pc-pen{flex:1 0 34px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:34px;padding:8px 0 0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body #side .pc-m{position:relative;display:block;width:24px;height:70px;border-radius:7px 7px 5px 5px;background:var(--bg);border:1.5px solid var(--dot);overflow:hidden;box-sizing:border-box;transition:transform .15s,box-shadow .15s}
html body #side .pc-m::before{content:'';position:absolute;left:0;right:0;top:0;height:24px;background:var(--hi)}
html body #side .pc-m::after{content:'';position:absolute;left:5px;right:5px;top:30px;bottom:8px;border-radius:3px;background:var(--hi);opacity:.35}
html body #side .pc-pen.faint .pc-m{opacity:.55}
html body #side .pc-pen small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;color:var(--shell-text,#27292c);opacity:.8}
html body #side .pc-pen.pinned small::after{content:'';display:inline-block;width:5px;height:5px;margin-left:3px;border-radius:50%;background:var(--dot);vertical-align:2px}
html body #side .pc-pen.open .pc-m{transform:translateY(-6px);box-shadow:0 6px 10px rgba(0,0,0,.15)}
html body #side .pc-pen.open small{font-weight:800;opacity:1}
html body #side .pc-pen:active .pc-m{transform:translateY(-3px)}
html body #side .pc-pick{margin-top:8px;padding:10px 12px;border-radius:14px;background:var(--shell-surface,#fff);border:1px solid var(--shell-line,#e6e3dd)}
html body #side .pc-pick p{margin:0 0 8px;font-size:12.5px;color:var(--shell-text,#27292c);opacity:.85}
html body #side .pc-pick .pen-pick{margin:0;padding:0;background:none;grid-template-columns:repeat(7,minmax(0,1fr))}
html body #side .pc-note{margin:8px 2px 0;font-size:12px;line-height:1.5;color:var(--shell-muted,#8a9099)}
html body #side .pc-link{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
html body #side .admin-go{display:flex;justify-content:center;margin:10px 0 2px;text-decoration:none}
html body #side .pen-pick.tones{grid-template-columns:repeat(6,minmax(0,1fr))}
html body #side .pen-sw.tone{aspect-ratio:auto;height:46px;border-radius:999px;background:linear-gradient(var(--c) 50%,var(--f) 50%)}
html body #side .ed-row .mini.off{color:var(--shell-muted,#8a9099)}

/* 10/15 칸 맞춤 전수조사 (사용자 "'다르면 고치기'같이 칸이 안 맞는 곳 전수조사"):
   설정 줄의 단추는 한 줄로(글씨는 줄어들지 않고 왼쪽 설명이 대신 꺾인다) · 작은 폰에서 바탕·선 색 칸이 창 밖으로 넘치던 것 */
html body #side .set-row > .btn,html body #side .set-row > button,html body #side .set-row > a.btn{flex:none;white-space:nowrap}
html body #side .set-row > span{min-width:0}
html body :is(#side,#onb) .cp-row > .cp-chips{flex:1;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(22px,1fr));gap:4px;justify-items:start}
html body :is(#side,#onb) .cp-row > .cp-chips .cp-chip{width:100%;max-width:26px;aspect-ratio:1;height:auto}

/* 10/15 홈 루틴 팝업: 설정 › 루틴과 같은 편집 칸을 가운데 팝업으로 · 아래 [🗑 그만하기] [✓ 완료] (고치는 창 = 휴지통 + ✓) */
html body .pop.hb-popup{top:50%;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow-y:auto;padding:14px 14px 12px;box-sizing:border-box}
html body .hb-popup .hb-pop-head{display:flex;align-items:center;gap:8px;margin:0 0 10px}
html body .hb-popup .hb-pop-head b{font-size:15px;font-weight:800;color:var(--text)}
html body .hb-popup .hb-line-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--soft2,#f3f3f1)}
html body .hb-popup .hb-line-ic svg{width:18px;height:18px}
html body .hb-popup .hb-ed2{border:0;padding:0;margin:0;background:none}
html body .hb-popup .ed-row.hb-ed [data-hb-stop],html body .hb-popup [data-hb-up]{display:none}
html body .hb-popup .hb-pop-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px}
html body .hb-popup .hb-pop-del{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--text)}
html body .hb-popup .hb-pop-done{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--text);color:var(--card,#fff)}
html body .hb-popup :is(.hb-pop-del,.hb-pop-done) svg{width:18px;height:18px}

/* 10/15 ＋ 내 팔레트 (사용자 "메인 → 추천 알약 → 어 필요한데? → ＋ · ＋는 줄 오른쪽 끝 붙박이 · 원래 팔레트가 그대로 편집 모양 · 나머지는 흐리게")
   알약 줄: ＋는 오른쪽 끝에 붙어 있고(알약은 그 밑으로 지나감), 왼쪽은 바탕색으로 살짝 흐림 · 내 것 알약은 ＋ 바로 왼쪽 */
html body #side .cp-caps .cp-plus{position:sticky;right:0;z-index:2;margin-left:auto;background:var(--shell-surface,#fff)}
html body #side .cp-caps .cp-plus::before{content:"";position:absolute;top:0;bottom:0;left:-18px;width:18px;background:linear-gradient(90deg,transparent,var(--shell-surface,#fff));pointer-events:none}
html body #side .cp-plus .cp-pill{display:grid;place-items:center;border:1.5px dashed var(--shell-line,#d9dbde);background:var(--shell-surface,#fff);box-shadow:none;font-size:16px;color:var(--shell-muted,#8a8f96)}
html body #side .cp-plus.lock .cp-pill::after{content:"🔒";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);font-size:8px}
html body #side .cp-mine small{font-weight:700;color:var(--shell-text,#24272c)}
/* 편집 중 맨 위 팔레트: 칸마다 눌러서 고르기 (단색 = 메인·칠한 색 / 투톤 = 메인·짝 색 / 멀티 = 메인 + 색 6칸) */
html body #side .cp-hero.pe{display:grid;gap:4px;height:auto;margin:0 0 10px;grid-template-rows:none;overflow:visible;border-radius:0;background:none}
html body #side .cp-hero.pe-t1{grid-template-columns:2fr 1fr}
html body #side .cp-hero.pe-t2{grid-template-columns:1fr 1fr}
html body #side .cp-hero.pe-t4{grid-template-columns:repeat(6,minmax(0,1fr))}
html body #side .cp-hero.pe-t4 .pe-main{grid-column:1 / -1}
html body #side .pe-slot{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;min-width:0;min-height:120px;padding:10px;border:0;border-radius:14px;text-align:left;cursor:pointer;transition:box-shadow .15s}
html body #side .pe-slot em{position:absolute;left:10px;top:9px;font:600 10.5px/1 Pretendard,sans-serif;font-style:normal;opacity:.85}
html body #side .pe-slot strong{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:800 15px/1.15 Pretendard,sans-serif;letter-spacing:-.02em}
html body #side .pe-slot b{font:600 10px/1.4 Pretendard,sans-serif;opacity:.85}
html body #side .pe-t4 .pe-main{min-height:72px}
html body #side .pe-t4 .pe-pen{min-height:58px;padding:6px;border-radius:10px}
html body #side .pe-t4 .pe-pen em{left:6px;top:6px;font-size:9.5px}
html body #side .pe-t4 .pe-pen :is(strong,b){display:none}
html body #side .pe-slot.on{box-shadow:inset 0 0 0 3px var(--shell-surface,#fff),0 0 0 2.5px var(--shell-text,#24272c)}
html body #side .cp-hero.pe-glow{animation:peGlow 1s ease}
@keyframes peGlow{0%{filter:none}30%{filter:drop-shadow(0 0 10px rgb(0 0 0 / 22%))}100%{filter:none}}
/* 팔레트 밑: 고르는 줄 · 직접(앱 안 색판) · 미리 보기 · ✕ ✓ */
html body #side .pe-panel{margin:0 0 16px;padding:12px;border:1px solid var(--shell-line,#e6e3dd);border-radius:16px;background:var(--shell-surface,#fff)}
html body #side .pe-l{margin:0 0 9px;font:600 12px/1.3 Pretendard,sans-serif;color:var(--shell-muted,#8a9099)}
html body #side .pe-sw{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
html body #side .pe-s{width:22px;height:22px;padding:0;border:0;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgb(0 0 0 / 8%);cursor:pointer}
html body #side .pe-s.on{box-shadow:0 0 0 2px var(--shell-surface,#fff),0 0 0 4px var(--shell-text,#24272c)}
html body #side .pe-more{height:24px;padding:0 10px;border:1px solid var(--shell-line,#d9dbde);border-radius:999px;background:var(--shell-surface,#fff);color:var(--shell-text,#24272c);font:600 12px/1 Pretendard,sans-serif}
html body #side .pe-more.on{border-color:var(--shell-text,#24272c);background:var(--shell-text,#24272c);color:var(--shell-surface,#fff)}
html body #side .pe-board{margin-top:12px;padding-top:4px;border-top:1px solid var(--shell-line,#e6e3dd)}
html body #side .pe-code{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--shell-muted,#8a9099)}
html body #side .pe-code span{flex:1}
html body #side .pe-code input{width:96px;height:32px;padding:0 8px;border:1px solid var(--shell-line,#d9dbde);border-radius:8px;background:var(--shell-surface,#fff);font:400 14px/1 Pretendard,sans-serif;font-variant-numeric:tabular-nums;text-transform:uppercase;color:var(--shell-text,#24272c)}
html body #side .pe-pv{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding:9px 10px;border-radius:10px;background:var(--shell-chrome,#f4f4f2);font:400 13px/1.3 Pretendard,sans-serif;color:var(--shell-text,#24272c)}
html body #side .pe-pv b{font-weight:700;margin-right:2px}
html body #side .pe-pv u{text-decoration:none;padding:1px 6px;border-radius:3px}
html body #side .pe-ft{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
html body #side .pe-ft button{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%}
html body #side .pe-x{border:1px solid var(--shell-line,#d9dbde);background:var(--shell-surface,#fff);color:var(--shell-muted,#8a9099)}
html body #side .pe-ok{border:0;background:var(--shell-text,#24272c);color:var(--shell-surface,#fff)}
html body #side .pe-ft svg{width:18px;height:18px}
/* 편집하는 동안 나머지는 흐리게 · 못 누름 */
html body #side .cp.pe-on .cp-rest{opacity:.3;pointer-events:none;transition:opacity .2s}
/* 색 막대(메인 ＋ · 직접)를 끌 때 화면 넘기기로 바뀌어 끊기지 않게 (사용자 "컬러휠이 끊기던데") */
html body #side .screen-color-slider input{touch-action:none}
html body #onb .cp-plus{display:none}   /* 처음 켤 때 화면엔 ＋ 편집 없음 (설정 › 색에서) */
/* 10/15 고르는 줄: 위 = 색 계열 10개 + ＋ 무조건 한 줄 · 아래 = 이름 붙은 비슷한 색 6칸 (작은 사각형) */
html body #side .pe-fam{display:grid;grid-template-columns:repeat(var(--n,10),minmax(0,1fr));gap:5px;align-items:center;justify-items:center}
html body #side .pe-f{width:100%;max-width:22px;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgb(0 0 0 / 8%);cursor:pointer}
html body #side .pe-f.on{box-shadow:0 0 0 2px var(--shell-surface,#fff),0 0 0 3.5px var(--shell-text,#24272c)}
html body #side .pe-f.pe-add{display:grid;place-items:center;background:none;border:1.5px dashed var(--shell-line,#d9dbde);box-shadow:none;color:var(--shell-muted,#8a9099);font:600 12px/1 Pretendard,sans-serif}
html body #side .pe-f.pe-add.on{border-style:solid;border-color:var(--shell-text,#24272c);color:var(--shell-text,#24272c)}
html body #side .pe-sh{margin:12px 0 6px}
html body #side .pe-sim{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
html body #side .pe-c{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;height:38px;padding:5px 7px;border:0;border-radius:8px;text-align:left;cursor:pointer}
html body #side .pe-c b{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:700 11px/1.15 Pretendard,sans-serif}
html body #side .pe-c small{font:500 9px/1 Pretendard,sans-serif;opacity:.8}
html body #side .pe-c.on{box-shadow:0 0 0 2px var(--shell-surface,#fff),0 0 0 3.5px var(--shell-text,#24272c)}
html body #side .pe-c.pe-add{display:grid;place-items:center;background:none;border:1.5px dashed var(--shell-line,#d9dbde);color:var(--shell-muted,#8a9099);font:600 15px/1 Pretendard,sans-serif}
html body #side .pe-c.pe-add.on{border-style:solid;border-color:var(--shell-text,#24272c);color:var(--shell-text,#24272c)}
html body #side .pe-c{height:36px;padding:4px 6px}
html body #side .pe-c b{font-size:10.5px}
/* 10/15 추천 칸은 4칸 그대로 · 이름만 (사용자 "4칸 그대로 가자", 글자는 줄여서 다 보이게) — 색 코드는 위 큰 팔레트 칸에 */
html body #side .pe-c{justify-content:center;height:34px;padding:3px 5px}
html body #side .pe-c small{display:none}
html body #side .pe-c b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;text-overflow:clip;font:700 9.5px/1.12 Pretendard,sans-serif;letter-spacing:-.02em;word-break:keep-all}
/* 펜 고르기 칸 안 '비슷한 색' 제목 띄우기 · ＋ 색판 밝기 막대는 검정 → 그 색 → 흰색 (메인 ＋ 색판과 같게) */
html body #side .pc-pick .pe-sh{margin:12px 0 6px}
html body #side .screen-color-slider input:is([data-pe-c="light"],[data-pp-c="light"])::-webkit-slider-runnable-track{background:linear-gradient(90deg,#171717,var(--editor-hue),#fff)}
html body #side .screen-color-slider input:is([data-pe-c="light"],[data-pp-c="light"])::-moz-range-track{background:linear-gradient(90deg,#171717,var(--editor-hue),#fff)}
/* 10/15 추천 칸 살짝 키워 색 코드도 (사용자 "코드 없으니 밋밋 · 살짝 위로 키워서 넣어 봐") — 4칸 그대로, 이름 두 줄까지 + 코드 한 줄 */
html body #side .pe-c{justify-content:space-between;height:48px;padding:5px 5px 4px}
html body #side .pe-c small{display:block;font:600 8.5px/1 Pretendard,sans-serif;letter-spacing:-.01em;opacity:.78;white-space:nowrap}
html body #side .pe-c.pe-add{height:48px}
html body #side .pe-c.pe-add{justify-content:center;align-content:center;align-items:center;place-items:center}
/* ＋ 오른쪽 틈 메우기 (사용자 "＋에 틈이 있어"): 알약 줄 안쪽 여백만큼 바탕색으로 덮는다 */
html body #side .cp-caps .cp-plus{box-shadow:6px 0 0 0 var(--shell-surface,#fff)}
/* 10/15 ＋ 는 알약 줄 밖 (아이폰 붙박이 문제): [넘기는 알약 줄 | ＋] · 알약 줄 오른쪽 끝은 살짝 흐리게(더 있다는 표시) */
html body #side .cp-capsrow{display:flex;align-items:flex-start;gap:4px;margin:0 -4px 14px}
html body #side .cp-capsrow > .cp-caps{flex:1 1 auto;min-width:0;margin:0;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 18px),transparent)}
html body #side .cp-capsrow > .cp-plus{position:static;flex:0 0 42px;margin:0;padding-top:4px;background:none;box-shadow:none}
html body #side .cp-capsrow > .cp-plus::before{content:none}

/* 10/15 맨 위 ✕ 옆 '원래대로' (바꾼 게 있을 때만) — 제목이 단추 밑으로 들어가지 않게 제목 줄 오른쪽을 비운다 */
html body #side .side-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(--shell-soft,#f1f1ef);color:var(--shell-text,#27292c);font:600 12px/1 Pretendard,sans-serif;white-space:nowrap}
html body #side .side-reset[hidden]{display:none}
html body #side .sp-head b{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body.side-can-reset #side .sp-head,html body.side-can-reset #side .sm-head{margin-right:186px}
