/* Settings are a short menu; decoration opens Planner, Highlighter and Desk. */
html body #side .sg.settings-menu {
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
html body #side .settings-menu .sr {
  min-height:60px;
  padding:12px 4px;
  gap:12px;
  border-radius:0;
}
html body #side .settings-menu .sr+.sr::before {left:48px;right:4px}
html body #side .settings-menu .sr-t {font-size:15px;font-weight:550}
html body #side .settings-menu .sr-v {font-size:12px;max-width:48%}
html body #side :is(.settings-menu-root,.settings-menu-decorate) .sr {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 10px;
  column-gap:12px;
  row-gap:5px;
  min-height:78px;
  padding:16px 4px;
}
html body #side :is(.settings-menu-root,.settings-menu-decorate) .sr>:first-child {grid-column:1;grid-row:1 / span 2;justify-self:center}
html body #side :is(.settings-menu-root,.settings-menu-decorate) .sr-t {grid-column:2;grid-row:1;font-size:16px}
html body #side :is(.settings-menu-root,.settings-menu-decorate) .sr-v {grid-column:2;grid-row:2;max-width:100%;white-space:normal;line-height:1.5}
html body #side :is(.settings-menu-root,.settings-menu-decorate) .sc {grid-column:3;grid-row:1 / span 2}
html body #side .settings-preview {display:block;position:relative;width:32px;height:38px;flex:none;overflow:hidden}
html body #side .settings-paper {padding:5px 5px;border:1px solid color-mix(in srgb,var(--preview-line) 45%,transparent);border-radius:3px;background:var(--preview-paper);color:var(--preview-line)}
html body #side .settings-paper b {display:block;font:600 11px/12px Pretendard,sans-serif}
html body #side .settings-paper i {display:block;height:1px;margin-top:5px;background:var(--preview-line);opacity:.45}
html body #side .settings-pens {display:flex;flex-direction:column;justify-content:center;gap:5px;width:34px}
html body #side .settings-pens i {height:7px;border-radius:5px 2px 4px 2px;border-left:3px solid var(--preview-line);transform:rotate(-7deg)}
html body #side .settings-desk {height:32px;border-radius:50%}
html body #side .settings-desk i {position:absolute;inset:6px 9px;border:1px solid rgb(40 40 40 / 13%);border-radius:2px;background:#fff;transform:rotate(-9deg)}
html body #side .settings-color-dot {width:22px;height:22px;flex:none;border-radius:50%;margin:0 5px}
html body #side .settings-profile {display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:4px 4px 16px;margin:0 0 8px;text-align:left;color:var(--shell-text);border-bottom:1px solid var(--shell-line)}
html body #side .settings-profile :is(img,.ph) {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--shell-soft);font-size:14px;color:var(--shell-muted);object-fit:cover}
html body #side .settings-profile>span:not(.ph) {flex:1;min-width:0}
html body #side .settings-profile b {display:block;font-size:14px;font-weight:550;line-height:1.5}
html body #side .settings-profile small {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;color:var(--shell-muted);line-height:1.6}
html body #side .settings-profile .sc {color:var(--shell-muted);opacity:.55}
html body #side .settings-foot {display:flex;flex-wrap:wrap;gap:0 14px;margin-top:22px;padding:12px 4px 0;border-top:1px solid var(--shell-line)}
html body #side .settings-foot :is(a,button) {display:inline-flex;align-items:center;min-height:36px;padding:0;background:none;color:var(--shell-muted);font-size:11px;text-decoration:none}
html body #side .settings-foot :is(a,button):hover {color:var(--shell-text)}
html body #side .biz-line {font-size:10px;padding:0 4px}
/* Keep each settings page's back button beneath the fixed tab bar. */
html body #side .sp-head {
  position:sticky;
  top:58px;
  z-index:3;
  background:var(--shell-surface);
}
html body #side .sg.sp-body {border:0;border-radius:0;padding:0 4px 12px}
html body #side .sp-intro {padding:0 4px 18px}
html body #side .sp-intro .si {display:none}
html body #side .sp-intro p {font-size:12px;line-height:1.7}
html body #side .settings-font-sample {display:flex;align-items:baseline;gap:16px;padding:18px 0;margin:0 0 12px;border-bottom:1px solid var(--shell-line);font-size:22px;color:var(--shell-text)}
html body #side .settings-font-sample b {font-weight:400}
/* Small screen-color swatches stay separate from paper and highlighter colors. */
html body #side .screen-palette {display:flex;gap:0;padding:6px 0;overflow-x:auto;scrollbar-width:none}
html body #side .screen-color {position:relative;display:grid;place-items:center;flex:1 0 30px;min-width:30px;height:42px;padding:0;background:transparent;border:0;border-radius:50%;touch-action:manipulation}
html body #side .screen-color i {display:block;width:22px;height:22px;border-radius:50%;background:var(--swatch)}
html body #side .screen-color.on::after {content:"";position:absolute;width:28px;height:28px;border:1.5px solid var(--swatch);border-radius:50%;pointer-events:none}
html body #side .screen-color:focus-visible {outline:2px solid var(--shell-text);outline-offset:-2px}
html body #side .screen-palette-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 16px;color:var(--shell-muted);font-size:12px}
html body #side .screen-palette-edit {min-height:36px;padding:0 2px;background:transparent;color:var(--shell-text);font-size:12px;font-weight:550}
html body #side .screen-color-editor {padding:18px 2px 4px;border-top:1px solid var(--shell-line)}
html body #side .screen-color-code {display:flex;align-items:center;gap:12px;margin-bottom:16px}
html body #side .screen-color-code>i {width:30px;height:30px;flex:none;border-radius:50%;background:var(--editor-color)}
html body #side .screen-color-code>label {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0}
html body #side .screen-color-code-label {font-size:12px;color:var(--shell-muted)}
html body #side .screen-color-hex {display:flex;align-items:center;gap:3px;min-width:0;color:var(--shell-muted)}
html body #side .screen-color-hex>b {font-size:12px;font-weight:400}
html body #side .screen-color-hex input {width:80px;min-width:0;min-height:36px;padding:4px 0;border:0;border-bottom:1px solid var(--shell-line);border-radius:0;background:transparent;font-size:14px;font-variant-numeric:tabular-nums;text-transform:uppercase}
html body #side .screen-color-slider {display:flex;align-items:center;gap:12px;margin:12px 0;font-size:12px;color:var(--shell-muted)}
html body #side .screen-color-slider>span {min-width:36px;flex:none}
html body #side .screen-color-slider input {flex:1;min-width:0;height:28px;padding:0;border:0;background:transparent;appearance:none;-webkit-appearance:none;touch-action:pan-y}
html body #side .screen-color-slider input::-webkit-slider-runnable-track {height:10px;border-radius:99px;background:linear-gradient(90deg,#ed5757,#caca3c,#43ba75,#468aba,#855abd,#da5ca4,#ed5757)}
html body #side .screen-color-slider input[data-screen-color="light"]::-webkit-slider-runnable-track {background:linear-gradient(90deg,#171717,var(--editor-hue),#fff)}
html body #side .screen-color-slider input::-webkit-slider-thumb {width:22px;height:22px;margin-top:-6px;border:2px solid var(--shell-surface);border-radius:50%;background:var(--editor-color);box-shadow:0 0 0 1px var(--shell-line);appearance:none;-webkit-appearance:none}
html body #side .screen-color-slider input::-moz-range-track {height:10px;border-radius:99px;background:linear-gradient(90deg,#ed5757,#caca3c,#43ba75,#468aba,#855abd,#da5ca4,#ed5757)}
html body #side .screen-color-slider input[data-screen-color="light"]::-moz-range-track {background:linear-gradient(90deg,#171717,var(--editor-hue),#fff)}
html body #side .screen-color-slider input::-moz-range-thumb {width:18px;height:18px;border:2px solid var(--shell-surface);border-radius:50%;background:var(--editor-color);box-shadow:0 0 0 1px var(--shell-line)}
html body #side .screen-color-error {margin:0;font-size:11px;color:var(--shell-accent-ink);line-height:1.6}
html body #side .screen-color-error:empty {display:none}
html body #side .screen-color-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
html body #side .screen-color-actions button {min-height:36px;padding:6px 14px;border-radius:999px;background:var(--shell-soft);color:var(--shell-text);font-size:12px}
html body #side .screen-color-actions button[data-screen-palette-edit] {background:transparent;color:var(--shell-muted)}
html body.dev-phone #side .screen-color-hex input {font-size:16px}
html body #side .cm-pick {gap:5px}
html body #side .cm {padding:10px 5px;border-radius:16px;border-color:var(--shell-line);background:transparent;box-shadow:none}
html body #side .cm.on {border-color:var(--shell-accent-ink);background:var(--shell-soft)}
html body #side .cm small {font-size:10px}
html body #side .sp-body .acc {border:0;padding:0;margin:0}
html body #side:has(.settings-menu) {height:auto!important;bottom:auto!important;max-height:min(680px,calc(100dvh - var(--shell-top) - 20px))!important}
@media (prefers-reduced-motion:no-preference) {
  html body #side .settings-menu .sr {transition:background .15s ease}
}

/* 10/18 꾸미기 › 스티커 · 비전보드 */
html body #sideSet .set-stk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px;margin:8px 0 6px}
html body #sideSet .set-stk{display:grid;place-items:center;width:100%;aspect-ratio:1;padding:6px;margin:0;border:0;border-radius:12px;background:var(--shell-soft);cursor:pointer}
html body #sideSet .set-stk img{width:100%;height:100%;object-fit:contain;pointer-events:none}
html body #sideSet .set-stk-grid .st-x{display:grid;place-items:center}
html body #sideSet .vb-set-board{position:relative;display:block;width:100%;max-width:440px;aspect-ratio:4/3;margin:4px auto 2px;padding:0;border:0;border-radius:12px;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.1),0 1px 4px rgba(0,0,0,.05);overflow:hidden;container-type:inline-size;cursor:zoom-in}
html body #sideSet .vb-set-board .stk-layer{position:absolute;inset:0}
html body #side .settings-stk{display:grid;place-items:center;height:32px;border-radius:9px;background:#fdeef2}
html body #side .settings-stk img{width:24px;height:24px;object-fit:contain}
html body #side .settings-vb{display:grid;place-items:center}
html body #side .settings-vb .vb-mini{position:relative;display:block;width:32px;height:24px;border-radius:4px;box-shadow:inset 0 0 0 1px rgb(40 40 40 / 14%);overflow:hidden;container-type:inline-size}
html body #side .settings-vb .stk-layer{position:absolute;inset:0}
html body #sideSet .sp-body .set-row.set-stk-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body #sideSet .sp-body .set-row.set-stk-head small{margin-left:6px;font-weight:500}
html body #sideSet .vb-set-bgs{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 8px}
