/* 메뉴보드 메이커 3.0 — 「간판집 작업대」(2026-11-15 무료 도구 3.0 재디자인 · 정본 han/디자인/DESIGN_MenuBoardMaker_v3.md).
   지면 = 짙은 숯 작업대 #2d2723 · 강조 = 앰버 #e8a33d(조작·측정값) · radius 0 + 괘선 · 웨이트 400/600 · 행간 1.4 · 비율 1.5 · 시스템 고딕(R2).
   작업대 위에 결과물 두 장이 놓인다 — 켜진 TV 한 대(판)와 종이에 뽑힐 메뉴판 한 장(시그니처).
   판(.plate) 색·활자 배율은 생성물(engine.js BOARD_COLORS·sizesFor)과 같은 값, 종이(.sheet) 판짜기는 인쇄 파일(renderPrint)과
   같은 규칙에서 온다 — 화면과 내려받은 파일이 다르게 보이면 결과물 자기모순(§9-2-b ①)이다. selftest 가 대조한다.
   원근·입체 0 · 그라디언트 0 · 그림자 0 · 이미지 0(전부 코드 렌더).
   검사: tests/design_check.mjs · selftest.mjs ⑨ · tests/e2e_shots.mjs */

:root {
  color-scheme: dark;
  --bench: #2d2723;           /* 지면 — 간판집 작업대(짙은 숯 · R2 배정) */
  --panel: #3a332e;           /* 작업대 위 판(서랍 펼침면·입력칸 바탕) */
  /* 면 토큰: --panel */      /* ← 고정 형식 선언(산문 아님). 검사기가 「면(카드)」 키를 이 줄에서 읽는다. */
  --text: #f3eee6;            /* 작업대 위 본문 */
  --sub: #b9b1a6;             /* 작업대 위 보조 */
  --edge: #8a8178;            /* 입력칸·서랍 테두리(기능 경계 3:1 이상) */
  --saffron: #e8a33d;         /* 강조 — 조작 선택·측정값·초점(R2 배정 앰버) */
  --on-saffron: #2d2723;      /* 사프란 채움 위 글자 */
  --tv: #0f0e0d;              /* TV 베젤 */
  --tv-edge: #57514b;         /* 베젤 테두리(작업대와 경계) */
  /* 아래 7색은 생성물 팔레트와 **같은 값**(engine.js BOARD_COLORS) — 화면 판 = 내려받는 TV 파일 */
  --deep: #0e0e10;            /* 판 — 켜진 화면 바탕 */
  --lit: #f4f2ee;             /* 판 위 글자 */
  --dim: #8a8781;             /* 판 위 품절 회색 */
  --tile: #f4f2ee;            /* 가격 숫자 칩 */
  --digit: #111111;           /* 칩 안 숫자 */
  --glow: #e8a33d;            /* 생성물 강조(판 안에서만 — 그룹 제목·추천 태그) = 편집기 앰버와 같은 값(R4 · 시안 폐기) */
  --rule: #3a3a3e;            /* 판 안 괘선 */
  /* 아래 4색은 인쇄 파일 팔레트와 **같은 값**(engine.js renderPrint) — 종이 미리보기 = 내려받는 인쇄 파일 */
  --sheet: #ffffff;
  --sheet-ink: #111111;
  --sheet-rule: #999999;
  --sheet-sold: #767676;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --t1: 16px; --t2: 24px; --t3: 36px;   /* 1.5 · base 16 (R2) */
  --u: calc(min(100vh - var(--chrome), (100vw - 48px) * 0.5625) / 100);   /* 판의 1vmin — app.js setUnit() 과 **같은 식**(no-JS 에서도 같은 크기로 선다). JS 는 실측으로 덮어쓴다 */
  --reach: 41.7%;             /* 눈금 위 바늘 위치 = 가독 거리 / 6m */
  --floor-u: 5px;             /* 판의 1vmin 하한 — 짧은 변 500px 환산. 이 아래로 내려가면 TV 모양을 포기하고 글자 크기를 지킨다 */
  --chrome: 296px;            /* 판 위·아래에 들어가는 것들의 높이 — 판은 남은 높이를 가진다(넓은 화면 배치는 아래에서 다시 정한다) */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bench); }
body {
  margin: 0; background: var(--bench); color: var(--text);
  font-family: var(--sans); font-size: var(--t1); line-height: 1.4;
  font-weight: 400; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-underline-offset: 3px; }
b, strong { font-weight: 600; }   /* UA 기본 bold(700)·bolder 를 R2 웨이트 400/600 으로 묶는다 */
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ── 바탕 배치(태블릿·좁은 창) — 위에서 아래로 흐른다. 넓은 화면·폰 배치는 맨 아래 미디어쿼리 ── */
.app { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
h1 { margin: 0; max-width: 65ch; font-size: var(--t3); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.take { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.get {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  background: var(--saffron); color: var(--on-saffron); font-weight: 600; text-decoration: none; border: 2px solid var(--saffron);
}
.get.thin { background: transparent; color: var(--text); border-color: var(--edge); }
.get[aria-disabled="true"] { border-style: dashed; }   /* 파일이 아직 없는 상태 — href 를 두지 않으므로 no-JS 에서도 눌리는 시늉을 하지 않는다 */
.get[aria-disabled="true"]:not(.thin) { background: transparent; color: var(--text); border-color: var(--saffron); }

/* ── TV 한 대 — 베젤 안 위가 화면(판), 아래가 조작대(눈금자). DOM 은 조작 요소(.ruler)가 먼저(키보드 차례) ── */
.board { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bezel { background: var(--tv); padding: 8px; max-width: 100%; display: flex; flex-direction: column; border: 2px solid var(--tv-edge); }
.plate { order: 1; }
.ruler { order: 2; }
.plate {
  background: var(--deep); color: var(--lit);
  aspect-ratio: 16 / 9; height: min(calc(100vh - var(--chrome)), calc((100vw - 48px) * .5625));
  padding: calc(var(--u) * 4);
  display: flex; flex-direction: column; overflow: hidden;
}
.plate.tall { aspect-ratio: 9 / 16; height: min(calc(100vh - var(--chrome)), calc((100vw - 48px) * 1.777)); align-self: center; }
/* 판을 축소 복제해 활자를 본문보다 작게 만드는 것은 「읽히는 크기」를 파는 제품의 자기모순이다(게이트 지문 2 · 390 에서 9.66px).
   1vmin 이 --floor-u 미만이면 16:9 상자를 풀고 내용이 흐르게 둔다 — 모양을 잃는 대신 글자 크기를 지킨다. app.js setUnit() 이 붙인다. */
.plate.free, .plate.tall.free { aspect-ratio: auto; height: auto; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 calc(var(--u) * 4); flex: 1; min-height: 0; }
.col { display: flex; flex-direction: column; min-width: 0; justify-content: space-evenly; }
.item {
  display: grid; grid-template-columns: 1fr auto; column-gap: calc(var(--u) * 2); align-items: start;
  margin: 0 0 calc(var(--u) * 1.6); padding-bottom: calc(var(--u) * .6);
  border-bottom: calc(var(--u) * .2) solid var(--rule);
}
.group {
  font-size: calc(var(--u) * var(--sz-group, 4.6)); line-height: 1.25; font-weight: 600; color: var(--glow);
  margin: 0 0 calc(var(--u) * 1.6); padding-bottom: calc(var(--u) * .4);
  border-bottom: calc(var(--u) * .35) solid var(--glow);
}
.name { font-size: calc(var(--u) * var(--sz-name, 4.6)); line-height: 1.25; font-weight: 600; margin: 0; }
.desc { font-size: calc(var(--u) * var(--sz-desc, 3.22)); line-height: 1.3; font-weight: 400; margin: 0; opacity: .85; }
.price {
  margin: 0; font-size: calc(var(--u) * var(--sz-price, 4.6)); line-height: 1.25; font-weight: 600;
  white-space: nowrap; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline;
}
/* 가격 = 쉼표까지 한 줄 숫자(R4 — 숫자마다 흰 칩을 씌우던 것 폐기: 쉼표가 칩 사이에 끼고 품절이 「깨진 칩」으로 읽혔다) */
.price .d, .price .c { font-style: normal; }
.price .won { font-size: .7em; font-weight: 400; margin-left: .12em; }
.tag { display: inline-block; font-size: .5em; font-weight: 600; padding: 0 .5em; margin-left: .5em; vertical-align: middle; line-height: 1.6; }
.hot .tag { background: var(--glow); color: var(--digit); }
.out { color: var(--dim); }
.out .name, .out .desc, .out .price .c { color: var(--dim); }
.out .price { text-decoration: line-through; text-decoration-thickness: .08em; }   /* 품절 = 취소선 + 「품절」 글자(회색만으로 싣지 않음) */
.out .tag { border: 2px solid var(--dim); color: var(--dim); }

/* 거리 눈금자 — 베젤 아래 조작대 한 줄. 판은 손님이 보는 것만, 눈금자는 사장이 돌리는 것만. */
.ruler {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  color: var(--lit); padding: 0 8px; margin-top: 8px; border-top: 2px solid var(--rule);
}
.ruler .dial { font-size: var(--t1); color: var(--lit); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; white-space: nowrap; }
.ruler input[type="range"] { width: 16ch; min-height: 48px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
/* 글자 단계 손잡이 — 브라우저 기본 슬라이더 대신 괘선 위 앰버 사각 손잡이(radius 0 문법) */
.ruler input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--edge); }
.ruler input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -8px; background: var(--saffron); border: 0; }
.ruler input[type="range"]::-moz-range-track { height: 2px; background: var(--edge); }
.ruler input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--saffron); border: 0; }
.ruler input[type="number"] { width: 6ch; min-height: 44px; padding: 0 8px; font: inherit; color: var(--lit); background: transparent; border: 2px solid var(--edge); }
.reach { margin: 0; font-size: var(--t2); flex: 1 1 22ch; white-space: nowrap; }
.reach .m { font-weight: 600; color: var(--saffron); font-variant-numeric: tabular-nums; }
/* 눈금과 바늘은 **한 상자(.scale)** 를 좌표계로 쓴다. 트랙 전폭 = 0~6m, 눈금 i 의 선 = li 의 오른쪽 테두리 = i/6,
   바늘 = m/6 — 두 자리가 같은 식에서 나온다(2026-09-11 독립 게이트 지문 1 회귀). */
/* 눈금 = 선 아래 가운데 숫자(R4 — 「1|」처럼 숫자가 선에 붙던 것). 바늘은 눈금 선과 같은 줄에 서서 위로 솟는다. */
.scale { position: relative; flex: 1 1 24ch; padding: 8px 0 24px; margin-right: 8px; }
.ticks { display: flex; list-style: none; margin: 0; padding: 0; width: 100%; height: 8px; border-bottom: 2px solid var(--rule); font-size: var(--t1); line-height: 1.4; color: var(--sub); font-variant-numeric: tabular-nums; }
.ticks li { flex: 1 1 0; min-width: 0; position: relative; border-right: 2px solid var(--rule); }
.ticks li span { position: absolute; right: -1px; top: 8px; transform: translateX(50%); white-space: nowrap; }
.pin { position: absolute; left: var(--reach); margin-left: -4px; top: 0; width: 4px; height: 24px; background: var(--saffron); }   /* 바늘 오른쪽 변 = 표기 거리(e2e 3자 일치 계약) */

/* ── 종이에 뽑힐 메뉴판(시그니처) — 인쇄 파일(renderPrint)의 mm 판짜기를 종이 폭에 맞춰 줄인다.
   1mm = 종이 폭/210(A4) · /297(A3). 글자 크기·여백·괘선 굵기가 전부 이 단위에서 나온다. ── */
.paper { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.paper-head { margin: 0; color: var(--sub); font-variant-numeric: tabular-nums; }
.paper-head span { color: var(--text); font-weight: 600; }
.sheet {
  container-type: inline-size; width: min(100%, 420px); aspect-ratio: 210 / 297; overflow: hidden;
  background: var(--sheet); color: var(--sheet-ink);
  --mm: .47619cqw;
  --k: 1;   /* 종이 글자 배율 = engine.printScale(품목·종이) — 품목이 적으면 종이를 채우게 키운다(인쇄 파일과 같은 값, app.js 가 넣는다) */
}
.sheet.a3 { --mm: .3367cqw; }
.s-title { margin: calc(var(--mm) * 12) calc(var(--mm) * 12) calc(var(--mm) * 8 * var(--k)); font-size: calc(var(--mm) * 8.47 * var(--k)); font-weight: 600; line-height: 1.2; }
.a3 .s-title { font-size: calc(var(--mm) * 12 * var(--k)); }
.s-cols { margin: 0 calc(var(--mm) * 12); column-count: 1; column-gap: calc(var(--mm) * 12); }
.a3 .s-cols { column-count: 2; }
.s-group { margin: 0 0 calc(var(--mm) * 4 * var(--k)); font-size: calc(var(--mm) * 5.29 * var(--k)); font-weight: 600; border-bottom: max(1px, calc(var(--mm) * .42)) solid var(--sheet-ink); break-after: avoid; }
.a3 .s-group { font-size: calc(var(--mm) * 7.06 * var(--k)); }
.s-row {
  display: grid; grid-template-columns: 1fr auto; column-gap: calc(var(--mm) * 6); align-items: start;
  margin: 0 0 calc(var(--mm) * 4 * var(--k)); padding-bottom: calc(var(--mm) * 2 * var(--k));
  border-bottom: max(1px, calc(var(--mm) * .21)) solid var(--sheet-rule); break-inside: avoid;
}
.s-name, .s-price { margin: 0; font-size: calc(var(--mm) * 5.29 * var(--k)); font-weight: 600; line-height: 1.25; }
.a3 .s-name, .a3 .s-price { font-size: calc(var(--mm) * 7.06 * var(--k)); }
.s-desc { margin: 0; font-size: calc(var(--mm) * 3.88 * var(--k)); line-height: 1.3; }
.a3 .s-desc { font-size: calc(var(--mm) * 4.59 * var(--k)); }
.s-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-price small { font-size: .7em; font-weight: 400; margin-left: .12em; }   /* 숫자는 인쇄 파일과 같이 한 줄(칸 0 · 자간 0) */
.is-sold .s-price { text-decoration: line-through; }
.s-tag { display: inline-block; font-size: .6em; padding: 0 .5em; margin-left: .5em; border: 1px solid var(--sheet-ink); vertical-align: middle; line-height: 1.6; }
.is-sold { color: var(--sheet-sold); }
.is-sold .s-tag { border-color: var(--sheet-sold); }

/* ── 붙여넣기·설정·서랍 ── */
.tray { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tmore { display: none; }
.wrap { display: contents; }
.compose { order: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.paper { order: 2; }
.opts { order: 3; }
.drawers { order: 4; }
footer { order: 5; }
.feed { display: block; color: var(--sub); }
.feed b { color: var(--text); font-weight: 600; }
textarea {
  display: block; width: 100%; min-height: 96px; padding: 8px; font: inherit;
  color: var(--text); background: var(--panel); border: 2px solid var(--edge); resize: vertical;
}
.alerts { margin: 0; padding: 8px 16px; background: var(--saffron); color: var(--on-saffron); font-weight: 600; }
.alerts:empty { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.opts .dial { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--sub); max-width: 100%; white-space: nowrap; }
select, input[type="text"] {
  min-height: 48px; padding: 0 8px; font: inherit;
  color: var(--text); background: var(--panel); border: 2px solid var(--edge);
}
/* 모양·종이 고르기 — 기본 화살표 대신 밑줄 칸 + 앰버 꺾쇠 */
.opts select { -webkit-appearance: none; appearance: none; padding-right: 32px; border: 0; border-bottom: 2px solid var(--text); background: transparent; cursor: pointer; }
.opts .pick { position: relative; display: inline-flex; flex: 1 1 auto; }
.opts .pick::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.opts select option { background: var(--panel); color: var(--text); }
input[type="text"] { width: min(20ch, 100%); }

.drawers { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.more summary {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px 0 0; cursor: pointer; list-style: none;
  color: var(--sub); text-decoration: underline; text-underline-offset: 4px;   /* 서랍 = 글자 링크(R4 — 같은 외곽 상자 셋 폐기) */
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { color: var(--saffron); text-decoration-thickness: 2px; }
.drawer { margin-top: 8px; padding: 16px; background: var(--panel); border: 2px solid var(--edge); max-width: 72ch; }
.say { margin: 0 0 16px; font-size: var(--t2); font-weight: 600; line-height: 1.3; }
.note { max-width: 65ch; margin: 0 0 16px; color: var(--sub); }
.guide article { margin: 0 0 16px; }
.guide h3 { font-size: var(--t1); font-weight: 600; margin: 0 0 4px; }
.guide ol { margin: 0 0 4px; padding-left: 24px; }
.legal { margin: 0; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; }
.screen { background: var(--tv); padding: 8px; margin-bottom: 16px; }
.screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--deep); }

/* 꼬리 = 작업대 바닥 인쇄 정보 줄(R2) — 판 조판 정보(품 수·화면 기준)와 자사 한 줄이 한 줄에 선다 */
.slug { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.slug .cut { margin: 0; color: var(--sub); font-variant-numeric: tabular-nums; }
.slug .promo { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); }   /* 주 조작 요소 탭 타깃(U9-b) — 미게시 <span> 과 승격 뒤 <a> 가 같은 상자를 쓴다 */

@media print {
  .ruler, .take, .drawers, .compose, .opts, footer, .paper { display: none; }
  html, body { background: transparent; }
  .bezel { background: transparent; padding: 0; border: 0; }
}

/* ── 넓은 화면(1240 이상 · 세로 820 이상) — 한 화면 작업대: 위 머리 / 가운데 TV·종이 / 아래 붙여넣기·설정 / 바닥 서랍 줄 ── */
@media (min-width: 1240px) and (min-height: 820px) {
  :root { --chrome: 396px; }
  .app {
    display: grid; height: 100vh; padding: 16px 16px 8px; gap: 16px 24px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "top top" "board paper" "compose opts" "bar bar";
  }
  .tray { display: contents; }
  .top { grid-area: top; flex-wrap: nowrap; }
  .board { grid-area: board; }
  .paper { grid-area: paper; contain: size; height: 100%; }
  .sheet { width: auto; max-width: 100%; flex: 1 1 0; min-height: 0; }
  .compose { display: contents; }
  .feed { grid-area: compose; align-self: start; width: 26ch; }
  textarea { grid-area: compose; margin-left: calc(26ch + 16px); width: auto; min-height: 0; height: 100%; resize: none; }
  /* 경고는 종이 자리 위에 띠로 얹힌다 — 막힌 동안은 파일도 종이도 만들지 않으므로 그 자리를 경고가 쓴다(높이 불변) */
  .alerts { grid-area: paper; align-self: start; margin-top: 32px; position: relative; z-index: 4; }
  .opts { grid-area: opts; align-content: flex-start; }
  .drawers { grid-area: bar; justify-self: start; position: relative; flex-wrap: nowrap; }
  footer { grid-area: bar; justify-self: end; }
  .plate { height: min(calc(100vh - var(--chrome)), calc((100vw - 340px) * .5625)); }
  .plate.tall { height: min(calc(100vh - var(--chrome)), calc((100vw - 340px) * 1.777)); }
  /* 펼친 서랍은 바닥 줄 위로 떠오르는 판 — 문서 높이를 늘리지 않고 안에서 스크롤한다(한 번에 하나: details name) */
  .more[open] .drawer {
    position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 6; margin: 0;
    width: min(72ch, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow-y: auto;
  }
}

@media (max-width: 720px) {
  /* 폰 — 머리와 TV 한 대가 늘 보이고, 그 아래 작업 판(붙여넣기·종이·설정·서랍)이 판 안에서 스크롤한다(문서 높이 = 화면 높이). */
  .app { height: 100vh; height: 100dvh; gap: 8px; padding: 8px 16px 0; }
  .top { gap: 8px; }
  h1 { font-size: var(--t2); flex: 1 1 100%; }
  .take { margin-left: 0; width: 100%; }
  .take .get { flex: 1 1 0; justify-content: center; padding: 0 8px; }
  .board { flex: none; }
  .bezel { width: 100%; }
  .plate, .plate.tall { aspect-ratio: auto; height: auto; --u: var(--floor-u); }   /* no-JS 폰에서도 활자 하한을 지킨다 */
  /* 품목이 많으면 판이 화면을 다 먹는다 — 폰에서는 판 높이를 화면의 44% 로 막고 판 안에서 넘겨 본다(실제 TV 는 8초마다 판을 돌린다) */
  .plate.free { max-height: 44vh; overflow-y: auto; }
  .plate.free .cols { grid-auto-flow: row; }   /* 판이 두 열로 나뉘어도 폰에서는 한 열로 잇는다 — 열 폭이 좁아 이름이 한 글자씩 끊기던 자리 */
  .reach, .scale { flex-basis: 100%; }
  .reach { white-space: normal; text-wrap: balance; }   /* 두 줄이면 고르게 — 「읽힙니다」 한 낱말만 떨어지지 않게 */
  .ruler input[type="range"] { width: 14ch; }
  .tray { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 8px 0 16px; border-top: 2px solid var(--edge); }
  .tmore { display: block; order: 99; position: sticky; bottom: -16px; margin: 0; padding: 8px 0; background: var(--bench); border-top: 1px solid var(--edge); color: var(--sub); text-align: center; }   /* 폰 작업 판 바닥 띠(A-146) — 띠 높이는 app.js fitTray 가 요소 경계에 맞춘다 */
  .sheet { width: 100%; }
  .opts .dial { flex: 1 1 100%; }
  .opts select, .opts input[type="text"] { flex: 1 1 0; }
}
@media (max-width: 720px) and (max-height: 700px) {
  /* 아주 낮은 폰(320×640 등) — 머리와 TV 만으로 화면이 찬다. 작업 판을 판 안 스크롤로 두면 24px 틈만 남으므로 문서 스크롤로 돌린다. */
  .app { height: auto; }
  .tray { flex: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .pin { transition: none; }
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* 없는 주소(404.html) — 같은 서체·색, 격자 배치 없이 한 줄 안내와 홈 링크 하나 */
.app.nf { display: block; height: auto; padding: 48px 16px; }
.app.nf h1 { margin-bottom: 24px; }
