/* 설정 (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-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;-webkit-tap-highlight-color:transparent}
/* 화면 색 (2026-11-06, owner: "설정에 색상 글씨 정보 간략하지만 글씨나 색상을 확인 가능하면서 많은 정보가 보이게 수정"): five small
   tiles in one row. Each is a little page of its set (--sw-* from dist/theme-swatches.js): the set's background with a card
   on it, the set's name in its own ink on that card over a short bar of its accent, then the two-colour note under it. The note
   needs a tile of 60 px inside; on narrower phones (the row under 372 px) it is left out (the button's name still says it),
   so every tile is one height on a page. The chosen tile has the focus ring and the ✓ on its corner. */
.look-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding-top:6px;container:look-swatches/inline-size}
.look-swatch{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-height:44px;padding:4px;border-radius:12px;text-align:center}
.look-swatch-preview{display:block;height:38px;padding:3px;border-radius:8px;border:1px solid var(--sw-line);background:var(--sw-bg)}
.look-swatch-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:100%;padding:0 2px;border-radius:6px;background:var(--sw-card);box-shadow:inset 0 0 0 1px var(--sw-line)}
.look-swatch-name{max-width:100%;color:var(--sw-ink);font-size:13px;font-weight:700;line-height:15px;white-space:nowrap}
.look-swatch-pill{display:block;flex:0 0 auto;width:24px;max-width:70%;height:4px;border-radius:2px;background:var(--sw-primary)}
.look-swatch-note{display:block;padding:0 1px 1px;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:clip}
@container look-swatches (max-width:371.98px){.look-swatch-note{display:none}}
/* 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{color:var(--t-muted);word-break:keep-all;overflow-wrap:anywhere}
.look-font-note{font-size:12px;line-height:1.35}
.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:50%;right:9px;display:none;width:20px;height:20px;margin-top:-10px;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)}
/* On a colour tile the ✓ sits on its top-right corner, ringed in the sheet's colour, clear of the little card. */
.look-swatch>.look-check{top:-6px;right:-6px;margin:0;width:18px;height:18px;box-shadow:0 0 0 2px var(--t-card)}
.look-swatch>.look-check::after{left:6px;top:2.5px;width:4.5px;height:9px}
[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}
/* 글씨체 (2026-11-06): three slim rows — a small sample in that very font (a g over Apple 사과), the name and its one short
   line, the ✓ at the right end (three cards side by side on the centred card from 700 px, below). */
.look-fonts{display:grid;grid-template-columns:1fr;gap:6px}
.look-fonts[aria-busy="true"] .look-font{cursor:progress}
.look-font{display:flex;align-items:center;gap:10px;min-height:52px;padding:5px 36px 5px 5px;border-radius:12px}
.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:74px;height:40px;border-radius:8px;background:var(--t-bg);color:var(--t-ink)}
.look-font-ag{font-size:19px;font-weight:400;line-height:20px}
.look-font-word{font-size:12px;font-weight:700;line-height:15px;white-space:nowrap}
.look-font-copy{display:flex;flex-direction:column;min-width:0}
.look-font-name{font-size:14px;font-weight:700;line-height:1.3}
.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{gap:10px}
 .look-swatch{gap:4px;padding:5px}
 .look-swatch-preview{height:48px;padding:5px}
 .look-swatch-card{gap:5px}
 .look-swatch-name{font-size:15px;line-height:18px}
 .look-swatch-pill{width:32px;height:5px}
 .look-swatch-note{font-size:12px;line-height:16px}
 /* The centred card (review 2026-11-06: one column of rows made a 글씨체 section 180 px tall, a 원장's sheet 53 px longer
    than before and a landscape phone's first screen show two fonts): the three side by side, each its sample band (a g
    Apple 사과 on one line) over the name and its line, the ✓ on the card's corner like a colour tile's. */
 .look-fonts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:6px}
 .look-font{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-height:0;padding:5px}
 .look-font-sample{flex-direction:row;gap:8px;width:auto;height:40px}
 .look-font-ag{font-size:22px}
 .look-font-word{font-size:15px}
 .look-font-copy{padding:0 5px 3px}
 .look-font-name{font-size:15px}
 .look-font>.look-check{top:-6px;right:-6px;margin:0;width:18px;height:18px;box-shadow:0 0 0 2px var(--t-card)}
 .look-font>.look-check::after{left:6px;top:2.5px;width:4.5px;height:9px}
}
/* 연결 상태 (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}
/* 학원 설정 (staff): 반 관리 · 스피킹 게임 · 선생님 계정, one 48 px row a place; a tap closes the sheet and opens it on the page. */
.look-links-section{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--t-line)}
.look-links{display:grid;gap:6px;margin-top:6px}
.look-link{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 12px;border:1px solid var(--t-line);border-radius:12px;background:transparent;color:var(--t-ink);font:inherit;text-align:left;cursor:pointer}
.look-link>strong{flex:0 0 auto;font-size:15px;font-weight:700}
.look-link>span{flex:1;min-width:0;font-size:13px;color:var(--t-muted);word-break:keep-all;overflow-wrap:anywhere}
.look-link>.look-link-arrow{flex:0 0 auto;font-size:18px}
.look-link:focus-visible{outline:2px solid var(--t-ink);outline-offset:2px}
