/* 설정 (2026-10-31; dist/appearance-ui.js): one sheet for students and staff — 글씨체 (three font cards), 화면 색 (five
   swatches), for staff 학원 기본 글씨체, and at the bottom [화면 새로고침] [닫기]. Colours come only from the --t-* tokens
   (dist/theme.css and the theme files), so the sheet recolours with the choice; the swatch cards draw each set from inline --sw-* values
   (dist/theme-swatches.js). A switch changes colours only: transitions are off for the two frames it takes, so nothing
   cross-fades or moves (keyframe animations and reduced motion are untouched). Every target is at least 44 px.
   Review 2026-10-31: the sections scroll in .look-body and [화면 새로고침] [닫기] (.look-foot) stay at the sheet's bottom
   (a student's sheet fits a 412×915 phone without scrolling);
   a font card is drawn in its own face (data-font-sample on its copy), so a font tap never changes a card's height; the
   academy's change line and its two-line status keep their room while empty. Only 원장·매니저 see 학원 기본 글씨체
   (owner 2026-10-31: "3번 숨김"). */
html.is-look-switching *,html.is-look-switching *::before,html.is-look-switching *::after{transition:none!important}
.look-layer{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center}
.look-scrim{position:absolute;inset:0;background:color-mix(in srgb,var(--t-ink) 42%,transparent)}
:root[data-theme="dark"] .look-scrim{background:color-mix(in srgb,var(--t-bg) 72%,transparent)}
.look-sheet{position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-height:calc(100dvh - 24px);overflow:hidden;margin:0;padding:0;border-radius:20px 20px 0 0;background:var(--t-card);color:var(--t-ink);font-family:var(--font-en),'Noto Sans KR','Apple SD Gothic Neo',sans-serif}
.look-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 16px 4px}
/* The handle (dist/sheet-drag.js, 2026-11-04): pull the sheet down to close it; the body starts under it. Since 2026-11-05
   the centred card from 700 px has it too (owner: "선생님 창에서 아래서 위로 올라오는 창 모두 잡아 내려 닫을 수 있게"). */
.look-sheet>.sheet-grab+.look-body{padding-top:4px}
@media (prefers-reduced-motion:no-preference){.look-sheet{animation:look-sheet-in .22s ease-out both}}
@keyframes look-sheet-in{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.look-sheet-title{margin:0 0 4px;font-size:18px;font-weight:700;line-height:1.4;color:var(--t-ink)}
.look-section{margin:0 0 6px}.look-section+.look-section{padding-top:12px;border-top:1px solid var(--t-line)}
.look-section-title{margin:4px 0 2px;font-size:15px;font-weight:700;line-height:1.4;color:var(--t-ink)}
.look-lead,.look-note,.look-change{margin:0 0 8px;font-size:13px;line-height:1.5;color:var(--t-muted)}
.look-note{margin:8px 0 0}
.look-change{min-height:20px;margin:6px 0 0;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.look-change[data-empty]{visibility:hidden}
.look-status{min-height:20px;margin:4px 0 0;font-size:13px;line-height:20px;color:var(--t-ink)}
.look-status.is-two-lines{min-height:40px}
.look-swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.look-swatches>.look-swatch:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
.look-swatch,.look-font{position:relative;box-sizing:border-box;margin:0;border:1px solid var(--t-line);border-radius:14px;background:var(--t-surface);color:var(--t-ink);font:inherit;text-align:left;cursor:pointer;transition:none}
.look-swatch{display:grid;grid-template-rows:auto auto auto;gap:2px;min-height:112px;padding:8px}
.look-swatch-preview{display:block;height:52px;padding:8px;border-radius:9px;border:1px solid var(--sw-line);background:var(--sw-bg)}
.look-swatch-card{display:flex;align-items:center;justify-content:space-between;gap:6px;height:100%;padding:0 8px;border-radius:7px;background:var(--sw-card);box-shadow:inset 0 0 0 1px var(--sw-line)}
.look-swatch-ink{display:block;width:44%;height:6px;border-radius:3px;background:var(--sw-ink)}
.look-swatch-pill{display:block;width:30%;height:14px;border-radius:7px;background:var(--sw-primary)}
.look-swatch-name{margin-top:4px;font-size:15px;font-weight:700;line-height:1.3}
/* Korean lines break between words (never one syllable alone on a line, e.g. '모/양'); a long Latin run still wraps. */
.look-swatch-note,.look-font-note{font-size:12px;line-height:1.4;color:var(--t-muted);word-break:keep-all;overflow-wrap:anywhere}
.look-lead,.look-note,.look-change,.look-status,.look-font-name,.look-sheet-title,.look-section-title{word-break:keep-all;overflow-wrap:anywhere}
.look-swatch[aria-checked="true"],.look-font[aria-checked="true"]{border-color:var(--t-focus);box-shadow:0 0 0 2px var(--t-focus)}
.look-swatch:focus-visible,.look-font:focus-visible,.look-close:focus-visible,.look-refresh:focus-visible{outline:3px solid var(--t-focus);outline-offset:2px}
.look-check{position:absolute;top:6px;right:6px;display:none;width:20px;height:20px;border-radius:50%;background:var(--t-primary)}
.look-check::after{content:'';position:absolute;left:7px;top:3px;width:5px;height:10px;border:solid var(--t-on-primary);border-width:0 2px 2px 0;transform:rotate(45deg)}
[aria-checked="true"]>.look-check{display:block}
.look-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.look-swatch[aria-busy="true"]{cursor:progress}
.look-fonts{display:grid;grid-template-columns:1fr;gap:8px}
.look-fonts[aria-busy="true"] .look-font{cursor:progress}
.look-font{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 34px 8px 10px}
.look-font[aria-disabled="true"]{cursor:default}
.look-font-sample{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;width:96px;min-height:48px;border-radius:9px;background:var(--t-bg);color:var(--t-ink)}
.look-font-ag{font-size:28px;font-weight:400;line-height:1.1}
.look-font-word{font-size:18px;font-weight:700;line-height:1.2;white-space:nowrap}
.look-font-copy{display:flex;flex-direction:column;min-width:0}
.look-font-name{font-size:15px;font-weight:700;line-height:1.35}
.look-academy-name{font-size:15px;font-weight:700;line-height:1.35}
/* The bottom row: 화면 새로고침 (the header's old 새로고침, a small secondary button sized to its label) and 닫기 (the rest). */
.look-foot{display:flex;gap:10px;flex:0 0 auto;margin:0;padding:8px 16px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--t-line);background:var(--t-card)}
.look-refresh{display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:48px;margin:0;padding:0 14px;border:1px solid var(--t-line);border-radius:12px;background:var(--t-surface);color:var(--t-ink);font:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer}
.look-refresh svg{display:block;flex-shrink:0;width:16px;height:16px}
.look-close{display:block;flex:1 1 auto;min-width:0;width:100%;min-height:48px;margin:0;border:0;border-radius:12px;background:var(--t-primary);color:var(--t-on-primary);font:inherit;font-size:15px;font-weight:700;cursor:pointer}
@media (min-width:700px){
 .look-layer{align-items:center}
 .look-sheet{width:640px;max-height:calc(100dvh - 48px);border-radius:20px}
 .look-sheet>.sheet-grab+.look-body{padding-top:8px}
 .look-body{padding:22px 22px 4px}
 .look-foot{padding:12px 22px 18px}
 .look-swatches{grid-template-columns:repeat(5,minmax(0,1fr))}
 .look-swatches>.look-swatch:last-child:nth-child(odd){grid-column:auto;width:auto;justify-self:stretch}
 .look-fonts{grid-template-columns:repeat(3,minmax(0,1fr))}
 .look-font{flex-direction:column;align-items:stretch;padding:10px}
 .look-font-sample{width:auto}
}
/* 연결 상태 (2026-11-05, dist/connection-status.js): one quiet line under the sections; its room is kept while it is asked. */
.look-connection{min-height:20px;margin:14px 0 4px;font-size:12px;line-height:20px;color:var(--t-muted);word-break:keep-all;overflow-wrap:anywhere}
