/* 암기사우루스 웹 공통 모양(2026-11-29 — amgisaurus.co.kr, public/a/의 모든 페이지가 같이 써요).
   앱과 같은 1비트 결: 바탕 #f5f7fa · 칸 흰색 · 잉크 검정(어둡게는 바탕 검정 · 칸 #161618 · 잉크 #f5f7fa), 파랑 없음,
   도트 한 칸 3px(테두리 · 모서리 깎기 · 누르면 한 칸 내려감), 둥근 모서리 · 그림자 · 그라데이션 없음.
   큰 글자 · 짧은 글은 Neo둥근모(16의 배수 — 16 · 32 · 48), 작은 글 · 긴 글은 프리텐다드.
   도트 그림은 늘 정수배 + pixelated, 어둡게에서도 크롱이는 노말(검은 테두리 · 하얀 몸) — 장면은 -dark.png를 <picture>로. */

/* 공식 배포본 그대로(Neo둥근모 v1.601 neodgm.woff2 — 고치지 않은 원본이라 예약 글꼴 이름을 써도 돼요, OFL은 fonts/neodgm-LICENSE.txt). */
@font-face { font-family: "Neo둥근모"; src: url("/fonts/neodgm.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #ffffff; --paper: #ffffff; --ink: #000000; --read: #3a3a3c; --soft: #5f646b; --line: #d3d6db; --on: #ffffff;
  --dot: 3px;
  --pixel: "Neo둥근모", "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --paper: #000000; --ink: #f5f7fa; --read: #d4d6da; --soft: #a3a8b0; --line: #3a3a3c; --on: #000000; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--pixel); font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; }
.skip:focus { top: 12px; }

/* 도트 그림 — 정수배로만 키워요. */
.dots { image-rendering: pixelated; image-rendering: crisp-edges; }
@supports (image-rendering: pixelated) { .dots { image-rendering: pixelated; } }

/* 칸 · 단추: 도트 테두리 + 모서리 한 칸 깎기(앱 PixelRect). */
.notch { clip-path: polygon(var(--dot) 0, calc(100% - var(--dot)) 0, calc(100% - var(--dot)) var(--dot), 100% var(--dot), 100% calc(100% - var(--dot)), calc(100% - var(--dot)) calc(100% - var(--dot)), calc(100% - var(--dot)) 100%, var(--dot) 100%, var(--dot) calc(100% - var(--dot)), 0 calc(100% - var(--dot)), 0 var(--dot), var(--dot) var(--dot)); }
.box { background: var(--paper); border: var(--dot) solid var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-family: var(--pixel); font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  border: var(--dot) solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn.main { background: var(--ink); color: var(--on); }
.btn.small { min-height: 40px; padding: 0 14px; }
.btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn:active { transform: translateY(var(--dot)); }
/* 모서리 깎기(clip-path)가 바깥 테두리를 자르니 초점 표시는 안쪽 점선으로. */
.btn:focus-visible { outline: 2px dashed currentColor; outline-offset: -9px; }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* 위 막대 */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: var(--dot) solid var(--ink); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; flex: none; }
.logo img { width: 56px; height: 30px; }
/* 메뉴(2026-11-30 — 옛 메뉴 막대): 단어책 · 이용 안내는 내려오는 메뉴(nav.js), 마우스를 올리면 뒤집기. 960px 아래는 '메뉴' 단추로 펼친 목록. */
.top .menu { display: flex; align-self: stretch; align-items: stretch; gap: 2px; margin-left: 2px; }
.top .menu > a, .drop { display: flex; align-items: center; }
.top .menu > a, .drop > button { padding: 3px 9px; text-decoration: none; white-space: nowrap; }
.drop > button { all: unset; box-sizing: border-box; padding: 3px 9px; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.drop > button::after { content: ""; display: inline-block; width: 9px; height: 6px; margin-left: 7px; vertical-align: 2px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.top .menu > a:hover, .drop:hover > button, .drop.open > button { background: var(--ink); color: var(--on); text-decoration: none; }
.top .menu > a[aria-current="page"], .drop.cur > button { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: var(--dot); }
.drop > button:focus-visible, .top .menu > a:focus-visible { outline: var(--dot) dashed var(--ink); outline-offset: 2px; }
.drop { position: relative; }
.drop > .panel { position: absolute; top: calc(100% + var(--dot)); left: 0; z-index: 30; min-width: 320px; padding: 6px 0; display: none; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.drop > .panel::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) * -2); height: calc(var(--dot) * 2); }  /* 버튼에서 메뉴로 내려가는 틈 */
.drop:hover > .panel, .drop.open > .panel, .drop:focus-within > .panel { display: grid; }
.drop > .panel a { display: grid; gap: 2px; padding: 9px 18px; text-decoration: none; }
.drop > .panel a b { font-weight: 400; }
.drop > .panel a small { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.drop > .panel a:hover, .drop > .panel a:focus-visible { background: var(--ink); color: var(--on); outline: 0; }
.drop > .panel a:hover small, .drop > .panel a:focus-visible small { color: var(--on); }
.drop > .panel a[aria-current="page"] b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: var(--dot); }
.top .cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top .short { display: none; }
.top .menu-btn { display: none; }
@media (max-width: 960px) {
  .top .menu { display: none; }
  .top .menu-btn { display: inline-flex; }
  /* 펼친 목록: 위 막대 아래로 모든 쪽 */
  .menu-open .top .menu { display: grid; position: absolute; left: 0; right: 0; top: 100%; margin: var(--dot) 0 0; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 22px;
    max-height: calc(100svh - 70px); overflow: auto; gap: 0; background: var(--bg); border-bottom: var(--dot) solid var(--ink); box-shadow: 0 calc(var(--dot) * 2) 0 color-mix(in srgb, var(--ink) 18%, transparent); }
  .menu-open .top .menu > a, .menu-open .drop { display: block; }
  .menu-open .drop > button { display: block; padding: 14px 0 4px; font-size: 13px; color: var(--soft); cursor: default; }
  .menu-open .drop > button::after { display: none; }
  .menu-open .drop:hover > button { background: none; color: var(--soft); }
  .menu-open .drop > .panel { display: grid; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; }
  .menu-open .drop > .panel::before { display: none; }
  .menu-open .drop > .panel a, .menu-open .top .menu > a { padding: 11px 0; border-top: var(--dot) dashed color-mix(in srgb, var(--ink) 18%, transparent); }
  .menu-open .top .menu > a { margin-top: 0; }
  .menu-open .drop > .panel a:hover, .menu-open .top .menu > a:hover { background: none; color: inherit; text-decoration: underline; }
  .menu-open .drop > .panel a:hover small { color: var(--soft); }
}
@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .top .store { display: none; }
  .top .long { display: none; }
  .top .short { display: inline; }
}
@media (max-width: 400px) { .top .cta .btn:not(.menu-btn) { display: none; } }

/* 칸(섹션) */
.band { padding-block: 72px; border-top: var(--dot) dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.band h2 { font-size: 32px; line-height: 1.35; margin-bottom: 14px; }
.lead { color: var(--read); max-width: 38em; margin-bottom: 30px; }
@media (max-width: 760px) { .band { padding-block: 52px; } }

/* 작은 글 · 아래 막대 */
.fine { font-family: var(--sans); font-size: 13px; line-height: 1.7; color: var(--soft); }
.foot { border-top: var(--dot) solid var(--ink); padding-block: 28px max(44px, env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot strong { font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.foot .fine a { color: inherit; }

/* 페이지 머리(첫 화면이 아닌 페이지) — 왼쪽 글 · 오른쪽 도트 장면 */
.phead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 64px 60px; }
.phead .kicker { color: var(--soft); margin-bottom: 12px; }
.phead h1 { font-size: 48px; line-height: 1.3; }
.phead .sub { color: var(--read); max-width: 32em; margin: 18px 0 28px; }
.phead .art { justify-self: center; }
.phead .art img { width: 384px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .phead { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 28px; }
  .phead h1 { font-size: 32px; }
  .phead .art img { width: 320px; }
}

/* 차례(1 · 2 · 3 …) — 도트 숫자 칸 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; background: var(--ink); color: var(--on); font-family: var(--pixel); }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--read); }

/* 줄 목록(요일 · 자리 · 약속) — 왼쪽 이름표, 오른쪽 한 줄 */
.rows { display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 24px; padding: 16px 20px; border-top: var(--dot) dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.rows > div:first-child { border-top: 0; }
.rows b { font-weight: 400; }
.rows p { color: var(--read); }
@media (max-width: 600px) { .rows > div { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; font-family: var(--sans); font-size: 15px; line-height: 1.75; color: var(--read); }

/* 신청서 칸 — 도트 테두리, 초점은 안쪽 굵은 테두리(모서리 깎기가 바깥을 잘라서), 틀린 칸만 빨강(앱의 오답 색) */
:root { --bad: #e5484d; }
@media (prefers-color-scheme: dark) { :root { --bad: #ee5257; } }
.form { display: grid; gap: 22px; max-width: 720px; }
.form label { display: block; margin-bottom: 8px; }
.form .req { color: var(--soft); }
.form input, .form textarea { display: block; width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--paper);
  border: var(--dot) solid var(--ink); border-radius: 0; outline: 0; -webkit-appearance: none; appearance: none; }
.form input:focus, .form textarea:focus { box-shadow: inset 0 0 0 var(--dot) var(--ink); }
.form input[readonly] { cursor: pointer; background: var(--bg); }
.form [aria-invalid="true"] { border-color: var(--bad); border-style: dashed; }
.form small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--soft); }
.form .half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .maplink { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 14px; }
.form .maplink[hidden] { display: none; }
.form .note { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--read); padding: 16px 18px; }
.fmsg { font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.fmsg:empty { display: none; }
.fmsg.err { color: var(--bad); }
.fmsg.ok { color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 600px) { .form .half { grid-template-columns: 1fr; } }

/* 주소 찾기 창 */
.layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, #000 45%, transparent); }
.layer[hidden] { display: none; }
.lbox { width: min(520px, 100%); height: min(560px, calc(100svh - 32px)); display: flex; flex-direction: column; overflow: hidden; }
.lhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; border-bottom: var(--dot) solid var(--ink); }
.lbody { flex: 1; min-height: 0; background: #fff; }

/* 방침 · 약관(tools/web/port_legal.py가 만든 쪽) — 긴 글은 프리텐다드, 제목만 도트 */
.legal { max-width: 760px; font-family: var(--sans); font-size: 15.5px; line-height: 1.8; color: var(--read); }
.legal-wrap { padding-block: 48px 72px; }
.legal-wrap .legal { display: block; }
.legal h1 { font-size: 32px; line-height: 1.35; color: var(--ink); }
.legal .when { margin: 8px 0 28px; color: var(--soft); font-family: var(--pixel); }
.legal h2 { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 88px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal b, .legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal .box { margin: 0 0 14px; padding: 14px 18px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.65; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.legal tr:first-child th, .legal tr:first-child td { border-top: 0; }
.legal th { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .legal { font-size: 15px; } .legal th { white-space: normal; } }

/* 고객 지원 — 대상 고르기 줄 */
.picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.mailcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 22px; }
.mailcard p { color: var(--read); }

/* 좌우 나눔(2026-11-29 사용자 — '가로를 넓게 쓰기보다 좌측 · 우측 나눠서 공간을 알차게'): 왼쪽 제목 · 목차(제자리), 오른쪽 내용 */
.split { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 56px; align-items: start; }
.split > .side { display: grid; gap: 16px; align-content: start; }  /* 따라 내려오지 않아요(사용자 2026-11-29 '좌측 텍스트 덩어리가 따라 내려와') */
.split > .side h2 { font-size: 32px; line-height: 1.35; margin: 0; }
.split > .side p { color: var(--read); }
.split > .body { min-width: 0; display: grid; gap: 16px; }
.split > .body > * { min-width: 0; }  /* 안의 책장(옆으로 미는 칸)이 쪽 폭을 넓히지 않게 */
.split > .body > h2 { font-size: 32px; line-height: 1.35; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 22px; }
  .split > .side { position: static; }
}
.toc { display: grid; }
.toc a { display: block; padding: 11px 16px; text-decoration: none; border-top: var(--dot) dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.toc a:first-child { border-top: 0; }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toc a[aria-current="true"] { background: var(--ink); color: var(--on); }
.side .mail { padding: 16px; display: grid; gap: 12px; justify-items: start; }
.side .mail .btn { width: 100%; }
.sect + .sect { margin-top: 48px; }
.sect > h2 { font-size: 32px; line-height: 1.35; margin-bottom: 16px; scroll-margin-top: 96px; }
.steps.col { grid-template-columns: 1fr; gap: 10px; }
.steps.col li { padding: 14px 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.steps.col li::before { margin: 0; grid-row: span 2; }
.steps.col h3 { margin: 4px 0 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair .box { padding: 20px 22px; }
.pair h3 { font-size: 16px; margin-bottom: 6px; }
.pair p { color: var(--read); }
@media (max-width: 600px) { .pair { grid-template-columns: 1fr; } }
.legal-wrap .side .toc { font-family: var(--sans); font-size: 14px; }
@media (max-width: 860px) { .legal-wrap .side { display: none; } }
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .steps.two { grid-template-columns: 1fr; } }
/* 방침 · 약관은 좌우 나눔 안에서도 긴 글 모양 그대로 — 조항 제목은 작게, 칸 사이는 글 여백으로 */
.split > .body.legal { display: block; }
.split > .body.legal > h2 { font-size: 16px; line-height: 1.6; margin: 40px 0 12px; }
.split > .body .rows > div { grid-template-columns: 180px minmax(0, 1fr); }
@media (max-width: 600px) { .split > .body .rows > div { grid-template-columns: 1fr; } }

/* 복사 막기(2026-11-29 사용자 '우클릭 금지' — guard.js와 함께): 글 고르기 · 그림 끌기 · 길게 눌러 그림 저장을 막고, 입력 칸 · 메일 주소 · 방침 · 약관 글은 고를 수 있게 */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, a[href^="mailto:"], .legal { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* 단어책 책장(첫 화면 · 단어책 쪽) — 앱 표지처럼 도트 테두리 · 책등 · 위 단계 글자 · 아래 그림 */
.shelf { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; border-bottom: var(--dot) solid var(--ink); }
.book { display: grid; gap: 8px; text-decoration: none; }
.book .cover { position: relative; aspect-ratio: 3 / 4; display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: 12px 8px 12px 18px; background: var(--paper); border: var(--dot) solid var(--ink); }
.book .cover::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: var(--dot); background: var(--ink); }
.book .lv { font-size: 16px; line-height: 1.3; }
.book picture { align-self: end; }
.book img { width: 56px; }
.book .t { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--read); }
.book:hover .cover { transform: translateY(calc(-1 * var(--dot))); }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; padding-top: 4px; scroll-snap-type: x mandatory; }
  .shelf li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .book:hover .cover { transform: none; } }

.book .n { font-family: var(--sans); font-size: 12px; color: var(--soft); margin-top: -4px; }
div.book:hover .cover { transform: none; }

/* 장마다 걸리는 스크롤(2026-11-30 사용자 '각 PPT 장마다 걸리는 느낌' — snap.js와 함께): 한 장 = 위 막대 아래 화면 하나, 글은 가운데.
   큰 화면(마우스 · 트랙패드, 가로)은 snap.js가 휠 · 키보드로 한 장씩, 손가락 기기는 가로로 놓은 태블릿만 여기 CSS가 장마다 맞춰요(화면보다 긴 장은 그 안에서 자유롭게).
   iPhone과 세로로 든 iPad는 걸리지 않고 그냥 스크롤해요(같은 날 사용자 'iPhone이나 iPad(세로 버전)에서는 없애줘'). */
.slides main > .slide { min-height: calc(100svh - var(--top, 67px)); display: grid; align-content: center; }
.slides main > .slide > * { min-width: 0; }  /* 장 안의 긴 한 줄이 쪽 폭을 넓히지 않게 */
@media (hover: none) and (orientation: landscape) and (min-width: 900px) and (min-height: 600px) {
  html.slides { scroll-snap-type: y mandatory; scroll-behavior: auto; scroll-padding-top: var(--top, 67px); }
  .slides main > .slide { min-height: calc(100lvh - var(--top, 67px)); scroll-snap-align: start; scroll-snap-stop: always; }
  .slides .foot { scroll-snap-align: end; }
}

/* ── 옛 데스크톱 결(2026-11-30 사용자가 고른 레퍼런스 — 핀터레스트의 1비트 레트로 UI, Mobbin Poolsuite FM, Figma Classic Macintosh UI Kit) ──
   창(.win): 제목 줄(가로줄 셋 · 왼쪽 닫기 상자 · 가운데 제목)과 흐림 없는 1비트 그림자. 모서리는 각지게(깎으면 그림자가 잘려서 — 단추 · 표지 · 작은 칸은 그대로 깎음).
   제목 줄은 위 테두리를 두껍게 하고 그 자리에 그려요 — 칸 안 여백은 그대로. 제목은 data-title(화면 읽기 프로그램엔 안 읽혀요 — 본문 제목은 .sr로 남김). */
:root {
  --shadow: calc(var(--dot) * 2) calc(var(--dot) * 2) 0 var(--ink);
  --dither: conic-gradient(from 90deg at var(--dot) var(--dot), var(--ink) 25%, transparent 0) 0 0 / calc(var(--dot) * 2) calc(var(--dot) * 2);
  --checker: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / calc(var(--dot) * 2) calc(var(--dot) * 2);
}
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.win { position: relative; display: block; background: var(--paper); border: var(--dot) solid var(--ink); border-top-width: calc(var(--dot) * 11); box-shadow: var(--shadow); }
.win::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) * -10); height: calc(var(--dot) * 9); pointer-events: none;
  background:
    linear-gradient(var(--paper) 0 0) 12px 9px / 9px 9px no-repeat,
    linear-gradient(var(--ink) 0 0) 9px 6px / 15px 15px no-repeat,
    linear-gradient(var(--paper) 0 0) 6px 3px / 21px 21px no-repeat,
    repeating-linear-gradient(var(--ink) 0 3px, transparent 3px 6px) 9px 6px / calc(100% - 18px) 15px no-repeat,
    var(--paper); }
.win[data-title]::after { content: attr(data-title); content: attr(data-title) / ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) * -10); width: fit-content; max-width: calc(100% - 72px);
  height: calc(var(--dot) * 9); margin: 0 auto; padding: 0 9px; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--pixel); font-size: 16px; font-weight: 400;
  line-height: calc(var(--dot) * 9); white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }

/* 창 안 목록(자주 묻는 질문 · 목차) — 칸마다 상자 대신 점선으로 나눔 */
.faq.win { display: block; }
.faq.win details { border: 0; background: none; }
.faq.win details + details { border-top: var(--dot) dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.form.win { padding: 26px 24px 28px; }
@media (max-width: 600px) { .form.win { padding: 20px 16px 22px; } }

/* 색인 카드(단어책 쪽 — 서랍 속 색인 카드처럼 위에 검은 탭, 탭 자리는 칸마다 조금씩 옆으로) */
.tabcard { position: relative; margin-top: calc(var(--dot) * 13); padding: 4px 22px 24px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.tabcard > .tab { position: absolute; bottom: 100%; left: calc(var(--dot) * -1 + var(--tab-x, 0%)); margin: 0; height: calc(var(--dot) * 12); padding: 0 30px; display: flex; align-items: center;
  background: var(--ink); color: var(--on); font-size: 16px; line-height: 1; white-space: nowrap; scroll-margin-top: 120px;
  clip-path: polygon(calc(var(--dot) * 3) 0, calc(100% - var(--dot) * 3) 0, 100% 100%, 0 100%); }
@media (max-width: 600px) { .tabcard { padding: 0 14px 20px; } .tabcard > .tab { padding: 0 22px; } }

/* 별 바탕 — 빽빽한 네모 무늬가 징그럽다고 해서(2026-11-30 사용자 '차라리 아기자기한 별') 작은 별 무늬로(tools/web/amgi_night.py — 3px 점, 2배로 그려 384px 칸).
   밝은 화면은 검은 별, 어두운 화면은 흰 별. 창을 올려 두는 책상(.desk-stage)과 404 바탕(.desk)이 같이 써요. */
:root { --stars: url("/img/stars.png") 0 0 / 384px 384px; }
@media (prefers-color-scheme: dark) { :root { --stars: url("/img/stars-dark.png") 0 0 / 384px 384px; } }
.desk { background: var(--stars), var(--bg); image-rendering: pixelated; }

/* ── 과감한 결(2026-11-30 사용자 '핀터레스트 레퍼런스처럼 트렌디하게, 더 과감해도 좋았을 것' — 첫 칸(큰 글자 · 무늬 · 겹친 창)이 기준) ──
   맥 40주년 세로 판 · 색인 카드 서랍 · 영화표 · 영수증 · 도장 찍힌 문서 · 메모장 · 사원증. 1비트(검정 · 흰색 · 망점)만. */
:root { --panel: #e6e8eb; --dots9: conic-gradient(from 90deg at var(--dot) var(--dot), var(--ink) 25%, transparent 0) 0 0 / calc(var(--dot) * 3) calc(var(--dot) * 3); }
@media (prefers-color-scheme: dark) { :root { --panel: #1f1f22; } }
.split > .side h2 { font-size: 36px; line-height: 1.3; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 30px; }
.row-head h2 { font-size: 48px; line-height: 1.25; }
.row-head p { color: var(--read); }
@media (max-width: 600px) { .split > .side h2 { font-size: 32px; } .row-head h2 { font-size: 32px; } }

/* 별 책상 — 창을 올려 두는 바탕(위 .desk와 같은 별 무늬) */
.desk-stage { position: relative; padding: 48px 40px 52px; background: var(--stars), var(--bg); image-rendering: pixelated; border: var(--dot) solid var(--ink); }
@media (max-width: 600px) { .desk-stage { padding: 36px 14px 30px; } }
.desk-stage .demo { margin-inline: auto; }
.demo-stack { inset: 0 0 auto; height: var(--card-h); }
.demo-stack i, .demo-stack i + i { left: 0; right: 0; top: 0; height: 100%; border: var(--dot) solid var(--ink);
  background: repeating-linear-gradient(var(--ink) 0 3px, transparent 3px 6px) 9px 6px / calc(100% - 18px) 15px no-repeat, var(--paper); }
.demo-stack i { transform: translate(-14px, -14px); }
.demo-stack i + i { transform: translate(-28px, -28px); }
.spacing-stage { padding-bottom: 300px; }  /* 복습 라벨이 곡선 창 아랫단(날짜)을 가리지 않게 */
.nextbox { position: absolute; right: 22px; bottom: 22px; width: 260px; padding: 14px 16px 16px; display: grid; gap: 12px; }
.nextbox p { font-family: var(--sans); font-size: 14px; line-height: 1.55; }
.nextbox p b { font-family: var(--pixel); font-weight: 400; }
.nextbox .seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 21px; padding: 3px; border: var(--dot) solid var(--ink); }
.nextbox .seg i { background: var(--ink); }
.nextbox .seg i.off { background: none; }
.nextbox .btn { justify-self: end; pointer-events: none; }
@media (max-width: 600px) { .spacing-stage { padding-bottom: 30px; } .nextbox { position: relative; right: auto; bottom: auto; width: auto; margin-top: 26px; } }

/* 맥 40주년 세로 판 — 도트 그림을 크게 확대해 잘라 보여요(--cx · --cy는 원본 64×40의 칸, --s 배율, --r 기울기) */
.tall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tall li { display: grid; align-content: start; gap: 6px; }
.tall .zoom { position: relative; overflow: hidden; aspect-ratio: 9 / 20; margin-bottom: 10px; background: var(--panel); border: var(--dot) solid var(--ink); }
.tall .zoom img { position: absolute; left: 50%; top: 44%; width: calc(64px * var(--s)); height: auto; max-width: none; image-rendering: pixelated;
  transform-origin: calc(var(--cx) * var(--s) * 1px) calc(var(--cy) * var(--s) * 1px);
  transform: translate(calc(var(--cx) * var(--s) * -1px), calc(var(--cy) * var(--s) * -1px)) rotate(var(--r)); }
.tall .pill { position: absolute; left: 0; right: 0; bottom: 14px; width: fit-content; margin: 0 auto; padding: 4px 12px; background: var(--paper); border: var(--dot) solid var(--ink); white-space: nowrap; }
.tall h3 { font-size: 16px; }
.tall p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--read); }
@media (max-width: 1000px) { .tall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tall .zoom { aspect-ratio: 3 / 4; } }
@media (max-width: 600px) { .tall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } .tall .zoom { aspect-ratio: 4 / 5; } }

/* 색인 카드 서랍 — 카드 위 탭(검은 탭은 단계 · 장 수, 흰 탭은 그 단계의 첫 단어), 아래로 갈수록 넓어져 서랍 안처럼 */
.drawer { position: relative; padding: 34px 6px 0; }
.drawer .cards { list-style: none; margin: 0; padding: 0; }
.drawer .cards li { position: relative; height: 33px; margin-inline: calc((11 - var(--i)) * 6px); background: var(--paper); border: var(--dot) solid var(--ink); border-bottom: 0; }
.drawer .tab { position: absolute; left: var(--x); bottom: 100%; display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 14px; white-space: nowrap;
  background: var(--paper); border: var(--dot) solid var(--ink); border-bottom: 0; }
.drawer .tab.ink { background: var(--ink); color: var(--on); }
.drawer .tab b { font-weight: 400; }
.drawer .tab i { font-style: normal; }
.drawer .tab i[lang] { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.drawer .front { position: relative; display: grid; place-items: center; height: 104px; margin-inline: -14px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.drawer .sticker { padding: 7px 16px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--dot) var(--dot) 0 var(--ink); }
@media (max-width: 600px) { .drawer .cards li { margin-inline: calc((11 - var(--i)) * 3px); } .drawer .tab { left: calc(var(--x) * .6); gap: 8px; padding: 0 9px; } }

/* 영화표 — 가로로 긴 표 두 장: 왼쪽 검은 절취부에 그림, 넓은 쪽에 원문을 크게(2026-11-30 ChatGPT 안 — 원문이 주인공), 절취선 위아래에 펀치 구멍 */
.movie { display: grid; gap: 20px; }
.mticket { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); margin: 0; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.mticket.t2 { margin-left: 18px; }
.m-art { display: grid; place-items: center; background: #000; border-right: var(--dot) dashed var(--ink); }
.m-art img { width: 128px; image-rendering: pixelated; }
.mticket::before, .mticket::after { content: ""; position: absolute; left: 133px; width: 18px; height: 18px; background: var(--bg); border: var(--dot) solid var(--ink); }
.mticket::before { top: -15px; }
.mticket::after { bottom: -15px; }
.m-body { min-width: 0; padding: 18px 22px 16px; }
.mticket blockquote { margin: 0; font-family: var(--sans); font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.mticket blockquote b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mticket figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--read); }
.mticket figcaption span { color: var(--soft); }
.m-fields { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 26px; margin: 12px 0 0; padding-top: 10px; border-top: 2px dashed var(--ink); }
.m-fields dt { color: var(--soft); }
.m-fields dd { margin: 2px 0 0; font-family: var(--sans); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) {
  .mticket { grid-template-columns: 1fr; }
  .mticket.t2 { margin-left: 0; }
  .m-art { height: 104px; border-right: 0; border-bottom: var(--dot) dashed var(--ink); }
  .m-art img { width: 128px; }
  .mticket::before, .mticket::after { left: auto; top: 92px; bottom: auto; }
  .mticket::before { left: -15px; }
  .mticket::after { right: -15px; }
  .mticket blockquote { font-size: 18px; }
  .m-fields { grid-template-columns: repeat(2, auto); }
}

/* 검은 칸 위 영수증 — 종이는 밝은 화면 · 어두운 화면 모두 흰 종이 */
.band.inv { background: #000; color: #f5f7fa; }
.band.inv .side p { color: #d4d6da; }
.band.inv .fine { color: #a3a8b0; }
.receipt { --zz: 12px; width: min(390px, 100%); margin-inline: auto; padding: 34px 26px 38px; background: #fff; color: #000;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 51% repeat-x; }
.receipt p { margin: 0; }
.r-shop { text-align: center; }
.r-big { margin: 14px 0 8px !important; padding: 10px 0; text-align: center; font-size: 48px; line-height: 1.15; border-block: var(--dot) solid #000; }
.r-meta { margin-bottom: 14px !important; text-align: center; font-family: var(--sans); font-size: 12px; color: #444; }
.r-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 2px dashed #000; }
.r-row span { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.r-row b { font-weight: 400; text-align: right; }
.r-cols span { font-size: 12px; font-weight: 400; line-height: 1.35; color: #444; text-align: right; }
.r-cols span:first-child { text-align: left; align-self: end; }
.r-sum { grid-template-columns: minmax(0, 1fr) auto; border-bottom: 0; padding: 6px 0 0; }
.r-sum em { font-style: normal; }
.r-code { height: 58px; margin: 20px 0 8px; background: repeating-linear-gradient(90deg, #000 0 3px, #0000 3px 6px, #000 6px 9px, #0000 9px 15px, #000 15px 21px, #0000 21px 24px, #000 24px 27px, #0000 27px 33px); }
.r-foot { text-align: center; font-family: var(--sans); font-size: 12px; color: #444; }

/* 도장 찍힌 문서 둘 — 접힌 모서리, 살짝 기울여 겹침 */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 0 26px; }
.doc-wrap { filter: drop-shadow(calc(var(--dot) * 2) calc(var(--dot) * 2) 0 var(--ink)); }
.doc-wrap.d1 { position: relative; z-index: 1; transform: rotate(-2deg); }
.doc-wrap.d2 { margin: 58px 0 0 14px; transform: rotate(1.6deg); }
.doc { position: relative; min-height: 270px; padding: 22px 22px 76px; background: var(--paper); border: var(--dot) solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 33px) 0, 100% 33px, 100% 100%, 0 100%); }
.doc::before { content: ""; position: absolute; top: -3px; right: -3px; width: 36px; height: 36px; border-left: var(--dot) solid var(--ink); border-bottom: var(--dot) solid var(--ink);
  background: linear-gradient(45deg, var(--paper) calc(50% - 2px), var(--ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); }
.d-kind { font-size: 24px; margin-bottom: 4px; }
.d-lang { font-family: var(--sans); font-size: 13px; color: var(--soft); margin-bottom: 10px; }
.doc h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.doc p:not(.d-kind):not(.d-lang) { font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--read); }
.stamp { position: absolute; right: 20px; bottom: 18px; padding: 2px 12px; border: 6px double var(--ink); font-size: 24px; line-height: 1.4; transform: rotate(-12deg); }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .doc-wrap.d2 { margin: -18px 0 0 18px; } }

/* 메모장 창 — 메뉴 줄 · 큰 제목 · 상태 줄 */
.notepad { max-width: 920px; margin-inline: auto; }
.np-menu { display: flex; gap: 24px; padding: 4px 16px; border-bottom: var(--dot) solid var(--ink); }
.np-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; padding: 30px 30px 26px; }
.np-photo { margin: 0; border: var(--dot) solid var(--ink); }
.np-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.notepad .np-title { margin: 0; font-family: var(--sans); font-weight: 800; font-size: clamp(64px, 10vw, 112px); line-height: .95; letter-spacing: -.045em; }
.np-lead { margin: 14px 0 22px; }
.np-fields { display: grid; gap: 4px; margin: 0 0 20px; }
.np-fields div { display: grid; grid-template-columns: 64px 1fr; }
.np-fields dt { text-decoration: underline; text-underline-offset: 4px; }
.np-fields dd { margin: 0; font-family: var(--sans); font-size: 15px; }
.np-gif img { width: 216px; }
.np-status { display: flex; justify-content: space-between; gap: 12px; padding: 4px 16px; border-top: var(--dot) solid var(--ink); color: var(--soft); }
@media (max-width: 760px) { .np-body { grid-template-columns: 1fr; padding: 20px 18px; gap: 22px; } .np-photo { max-width: 360px; } .np-menu { gap: 14px; } .np-status span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* 목록 창(옛 맥 Finder의 목록 보기 — 2026-11-30 사용자: 사원증은 너무 장난스러워서 이걸로) — 열 이름 줄 + 줄마다 한 항목, 마우스를 올리면 뒤집기 */
.finder { padding: 0; }
.fd-info { display: flex; justify-content: space-between; gap: 12px; padding: 5px 14px; border-bottom: var(--dot) solid var(--ink); font-family: var(--sans); font-size: 12.5px; color: var(--soft); }
.fd-list { width: 100%; border-collapse: collapse; }
.fd-list th { padding: 8px 14px; text-align: left; font-weight: 400; border-bottom: var(--dot) solid var(--ink); white-space: nowrap; }
.fd-list td { padding: 13px 14px; vertical-align: top; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--read); }
.fd-list td:first-child { font-family: var(--pixel); font-size: 16px; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.fd-list td:last-child { white-space: nowrap; }
.fd-list tbody tr:last-child td { border-bottom: 0; }
.fd-more { margin-top: 18px; font-family: var(--sans); font-size: 14px; }
@media (max-width: 600px) {
  .fd-list thead { display: none; }
  .fd-list, .fd-list tbody, .fd-list tr, .fd-list td { display: block; }
  .fd-list tr { padding: 10px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
  .fd-list tbody tr:last-child { border-bottom: 0; }
  .fd-list td { padding: 1px 14px; border: 0; white-space: normal; }
  .fd-list td:last-child { font-size: 12.5px; color: var(--soft); }
}

/* 크롱이 사진 — 그림 보기 팝업 창(2026-11-30 사용자: 메모장보다 예전 배치가 낫고, 사진 틀은 팝업 창처럼) */
.pop-wrap { position: relative; margin: 28px 0 0 28px; }
.pop-back { position: absolute; inset: 0; border: var(--dot) solid var(--ink);
  background: repeating-linear-gradient(var(--ink) 0 3px, transparent 3px 6px) 9px 6px / calc(100% - 18px) 15px no-repeat, var(--paper); transform: translate(-14px, -14px); }
.pop-back.b2 { transform: translate(-28px, -28px); }
.photo.popup { position: relative; }
.pop-status { display: flex; justify-content: space-between; gap: 12px; padding: 3px 12px; border-top: var(--dot) solid var(--ink); background: var(--paper); color: var(--soft); }
@media (max-width: 760px) { .pop-wrap { max-width: 420px; } }

/* 옷 세탁 라벨(복습 라벨 · 약속 라벨) — 위 이름과 바코드, 기호 칸, 줄마다 한 가지, 아래 made in */
.carelabel { background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: var(--dot) solid var(--ink); }
.cl-code { width: 104px; height: 24px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px, var(--ink) 14px 15px, transparent 15px 18px); }
.cl-icons { display: flex; gap: 6px; padding: 10px 12px; border-bottom: var(--dot) solid var(--ink); }
.cl-icons span { flex: 1; padding: 3px 0; text-align: center; border: var(--dot) solid var(--ink); }
.cl-icons span:first-child { background: var(--ink); color: var(--on); }
.cl-rules { list-style: none; margin: 0; padding: 9px 12px; display: grid; gap: 5px; font-family: var(--sans); font-size: 13px; }
.cl-rules li { display: flex; justify-content: space-between; gap: 10px; }
.cl-rules b { font-weight: 800; }
.cl-made { margin: 0; padding: 6px 12px 8px; border-top: var(--dot) dashed var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* 옷 가격표 택 — 구멍과 줄(가격은 적지 않음) */
.hangtag { position: relative; display: grid; justify-items: center; gap: 3px; padding: 28px 22px 13px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--dot) var(--dot) 0 var(--ink); transform: rotate(-4deg); }
.hangtag::before { content: ""; position: absolute; left: calc(50% - 7px); top: 8px; width: 9px; height: 9px; border: var(--dot) solid var(--ink); background: var(--bg); }
.hangtag::after { content: ""; position: absolute; left: calc(50% - 1px); bottom: calc(100% - 14px); width: var(--dot); height: 30px; background: var(--ink); }
.hangtag b { font-weight: 400; }
.hangtag span { font-family: var(--sans); font-size: 12px; color: var(--read); }

/* 말풍선 — 도트 꼬리(계단), 그림 위에 얹어 써요 */
.bubble { position: relative; display: inline-block; padding: 9px 14px; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--dot) var(--dot) 0 var(--ink); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; left: 16px; top: 100%; width: 15px; height: 12px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 3px, 66% 3px, 66% 6px, 33% 6px, 33% 9px, 0 9px, 0 12px, 0 0); }
.say { position: absolute; display: grid; justify-items: start; gap: 14px; pointer-events: none; }
.say img { width: 108px; image-rendering: pixelated; }

/* 맞춤 안내 상자(fit.js — /start/의 답으로 쪽 첫 장에 뜨는 팝업 창) */
.fit { width: min(440px, 100%); padding: 16px 18px 18px; display: grid; gap: 10px; }
.fit[hidden] { display: none; }
.fit .picked { display: flex; flex-wrap: wrap; gap: 6px; }
.fit .picked span { padding: 2px 10px; border: var(--dot) solid var(--ink); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.fit .picked span:first-child { background: var(--ink); color: var(--on); }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--sans); font-size: 14.5px; line-height: 1.6; }
.fit li { padding-left: 16px; position: relative; }
.fit li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--ink); }
.fit li[hidden] { display: none; }
.phead > .fit:not([hidden]) + .art { display: none; }
.fit-on { box-shadow: inset calc(var(--dot) * 2) 0 0 var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* 대장(허락 · 공문 — 2026-11-30 ChatGPT 안: 기울이지 않고 읽히게, 한 장에 줄마다 한 자료) */
.doc.ledger { min-height: 0; padding: 6px 22px 6px; }
.lg-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px 104px 20px 0; }
.lg-row + .lg-row { border-top: var(--dot) solid var(--ink); }
.lg-k { margin: 0; display: grid; gap: 4px; align-content: start; }
.lg-k b { font-weight: 400; font-size: 24px; line-height: 1.2; }
.lg-k small { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.lg-v h3 { margin-bottom: 6px; font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1.45; }
.lg-v p { font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--read); }
.lg-row .stamp { right: 4px; top: 50%; bottom: auto; margin-top: -20px; transform: rotate(-8deg); }
@media (max-width: 600px) { .lg-row { grid-template-columns: 1fr; gap: 8px; padding-right: 0; } .lg-row .stamp { top: 22px; margin-top: 0; } }

/* 앱 받는 곳 고르기(nav.js): 위 막대 '앱 받기', 그리고 Android 가게가 둘 이상일 때의 Android 단추. */
.pick { position: relative; display: inline-flex; }
.pick > .panel { position: absolute; top: calc(100% + var(--dot)); left: 0; z-index: 30; min-width: 100%; padding: 6px 0; display: none; background: var(--paper); border: var(--dot) solid var(--ink); box-shadow: var(--shadow); }
.pick > .panel::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) * -2); height: calc(var(--dot) * 2); }  /* 단추에서 메뉴로 내려가는 틈 */
.top .pick > .panel { left: auto; right: 0; min-width: 200px; }
.pick:hover > .panel, .pick.open > .panel, .pick:focus-within > .panel { display: grid; }
.pick > .panel a { display: grid; gap: 2px; padding: 9px 18px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.pick > .panel a b { font-weight: 400; }
.pick > .panel a small { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.pick > .panel a:hover, .pick > .panel a:focus-visible { background: var(--ink); color: var(--on); outline: 0; }
.pick > .panel a:hover small, .pick > .panel a:focus-visible small { color: var(--on); }
.pick > .btn::after { content: ""; display: inline-block; width: 9px; height: 6px; margin-left: -1px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.btn small { font-family: var(--sans); font-size: 12px; opacity: .8; }
