/* dokimi.css 의 첫 화면 · /download · 이야기 소개 부분 — tools/frame_css.py 가 굽는다. 손으로 고치지 않는다. */
/* Dokimi 웹 틀 — dokimi.me 전용. 정본은 glimi-apple design/prototype/artboards/DokimiWebPages.dc.html
   색은 브라우저 설정을 따르는 라이트(순백) · 다크 두 벌(tokens.css), 워드마크도 설정을 따른다(라이트 tone · 다크 dark).
   클래스는 전부 dk- 로 시작한다(옛 링크 화면에 같이 얹힐 때 기존 스타일과 섞이지 않게).
   tokens.css 는 여기서 @import 하지 않는다 — 머리(_layout · _legacy_top)가 ?v= 판 번호를 붙여 먼저 싣는다(캐시). */
/* 글꼴(D-196 §4) — SUIT 가변 한 벌을 우리 사이트에서(jsdelivr · @import 없음, 머리 _font_head.html 이 미리 싣는다).
   SUIT 가 오기 전 · 막혔을 때는 'SUIT Fallback'(Apple SD Gothic Neo · 맑은 고딕, 폭을 SUIT 에 맞춤 — Apple SD 기준 실측 100.5%)으로
   그린다(§9-5 흔들림 막기). 라이선스 SIL OFL 1.1(fonts/SUIT-LICENSE.txt) */
/* 두 조각(Lighthouse 1) — core 290KB = 라틴 · 기호 + 사이트 · 스토리에 나오는 한글 1173자(fonts/SUIT-Variable-core.hangul.txt),
   ext 381KB = 나머지 한글 1495자. core 를 나중에 범위 없이 둬서 먼저 찾고, core 에 없는 한글이 있는 쪽만 ext 를 받는다.
   두 조각 합 = SUIT-Variable.woff2(관리 화면 · og · font_hangul.py 가 쓰는 원본, 그대로 둔다) */
@font-face { font-family: 'SUIT Variable'; font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+AC00-D7A3;
  src: url('/static/dokimi/fonts/SUIT-Variable-ext.woff2') format('woff2-variations'), url('/static/dokimi/fonts/SUIT-Variable-ext.woff2') format('woff2'); }
@font-face { font-family: 'SUIT Variable'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('/static/dokimi/fonts/SUIT-Variable-core.woff2') format('woff2-variations'), url('/static/dokimi/fonts/SUIT-Variable-core.woff2') format('woff2'); }
@font-face { font-family: 'SUIT Fallback'; src: local('Apple SD Gothic Neo'), local('AppleSDGothicNeo-Regular'), local('Malgun Gothic'), local('맑은 고딕');
  size-adjust: 100.5%; }

/* 별칭은 하단에서 한 번 더 셈한다 — :root 에서 셈한 값이 내려오면 하단의 반대 판 토큰을 못 따른다 */
:root, .dk-footer {
  --dk-ink: var(--tk-ink);
  --dk-sub: var(--tk-ink2);
  --dk-line: var(--tk-line);
  --dk-tone: var(--tk-rose-soft);     /* 알림 띠 · 도움 상자 면 */
  --dk-tone-ink: var(--tk-rose-ink);  /* 그 위 글 · 링크 */
  --dk-accent: var(--tk-rose);
  --dk-on-accent: var(--tk-on-rose);
  --dk-font: 'SUIT Variable', SUIT, 'SUIT Fallback', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Segoe UI', 'Noto Sans KR', sans-serif;
}

.dk-page { margin: 0; background: var(--tk-bg); color: var(--dk-ink); font-family: var(--dk-font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  word-break: keep-all; }
.dk-page main { flex: 1; }

/* 머리 — 워드마크만 */
/* 머리(D-106) — 워드마크와 테마 단추가 한 줄 가운데. 재빈 9/27 '상단에 너무 딱 붙어 있다' → 위 여백 +10:
   모바일 높이 62 = 위 14 · 아래 4 · 옆 20(워드마크 20 이 위에서 26), 데스크톱 68 = 위아래 12 · 옆 64 + 아래 1px 선
   (워드마크 22 위 · 선 사이가 23 씩 같다). 단추(누름 44)도 같은 줄 가운데. 디자인 확정 D-106(glimi-apple 1e26a83) */
.dk-header { background: var(--tk-bg); padding: 14px 20px 4px; min-height: 62px; box-sizing: border-box; display: flex;
  justify-content: space-between; align-items: center; }
.dk-header a { display: inline-flex; }

/* 워드마크 두 장 — 기본은 다크 판 한 장, 라이트를 고르면(data-theme='light') 라이트 장 */
.dk-wm-light { display: none !important; }
.dk-wm-dark { display: block !important; }
:root[data-theme='light'] .dk-wm-light { display: block !important; }
:root[data-theme='light'] .dk-wm-dark { display: none !important; }
/* 하단은 확정 판(10/9)부터 본문과 같은 판 — 워드마크도 본문과 같은 장(옛 반대 장 규칙은 지움) */

/* 그림은 길게 누르기 저장 · 끌어 가기를 막는다(재빈 9/27 — 원본 빼 가기 억지, 완전한 보호는 아님). 우클릭은 theme.js.
   글 · 링크 · 입력칸은 그대로 */
.dk-page img, .dk-legacy-top img, .dk-footer img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }

/* 라이트 · 다크 전환 단추(D-106 dokimi.siteThemeToggle) — 누름 44, 보이는 원 36(1px 선, 바탕 없음), 오른쪽 −4 로 원 끝을
   본문 끝에 맞춘다. 아이콘 20 · 선 1.8 · ink2, 바꿀 테마를 보여 준다(라이트면 달 · 다크면 해). 올림 · 누름은 칩 면 + ink */
.dk-theme-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: 0 -4px 0 0; padding: 0; border: 0; background: none; color: var(--tk-ink2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dk-theme-ring { position: relative; display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--tk-line);
  transition: background-color .15s ease, transform .12s ease; }
.dk-theme-ring svg { position: absolute; left: 8px; top: 8px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.dk-theme-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.dk-theme-btn.is-dark .dk-theme-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
.dk-theme-btn.is-dark .dk-theme-sun { opacity: 1; transform: none; }
.dk-theme-btn.is-spin svg { transition: opacity .18s ease-out, transform .18s ease-out; }
.dk-theme-btn:active .dk-theme-ring { background: var(--tk-chip); transform: scale(.94); }
.dk-theme-btn:active { color: var(--tk-ink); }
.dk-theme-btn:focus-visible { outline: none; }
.dk-theme-btn:focus-visible .dk-theme-ring { box-shadow: inset 0 0 0 1px var(--tk-line), 0 0 0 2px var(--tk-bg), 0 0 0 4px var(--tk-rose); }
@media (hover: hover) { .dk-theme-btn:hover .dk-theme-ring { background: var(--tk-chip); } .dk-theme-btn:hover { color: var(--tk-ink); }}
/* 누를 때만 페이지 색이 200ms 로 바뀐다(theme.js 가 250ms 동안 dk-theming). 처음 뜰 때 · 동작 줄이기면 바로 */
html.dk-theming, html.dk-theming * { transition: background-color .2s ease, color .2s ease, border-color .2s ease, fill .2s ease !important; }
.dk-wordmark { height: 24.5px; width: auto; display: block; }

/* 푸터 */
/* 반대 판 블록이 본문 끝에 바로 붙는다 — 색 차이가 경계라 선은 두지 않고, 위아래를 조금 더 띄운다 */
.dk-footer { background: var(--tk-bg); padding: 30px 20px 36px;
  font-size: 14px; line-height: 1.6; color: var(--dk-sub); font-family: var(--dk-font);
  display: flex; flex-direction: column; gap: 10px; }
.dk-footer .dk-wordmark { height: 19.5px; margin-bottom: 11px; }   /* 워드마크 ↔ 링크 줄 10~12(디자인 9/27) */
.dk-footer nav a { color: var(--dk-sub); text-decoration: underline; }
.dk-footer p { margin: 0; }

/* 옛 링크 화면 띠 — 머리 아래 */
.dk-legacy-top, .dk-footer { word-break: keep-all; }
.dk-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--dk-accent); color: var(--dk-on-accent); font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap; border: 0; font-family: inherit; cursor: pointer; }

.dk-tests { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dk-tests-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-tests .dk-pill { height: 44px; padding: 0 20px; font-size: 14px; }
.dk-tests-note { font-size: 14px; color: var(--tk-ink2); }
.dk-tests-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 알림 받기 폼 */
.dk-notify { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.dk-notify label.dk-field { font-size: 14px; font-weight: 600; color: var(--dk-tone-ink); }
.dk-notify .dk-row { display: flex; gap: 8px; }
.dk-notify input[type=email] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--tk-faint); font-size: 15px; font-family: inherit; color: var(--dk-ink); background: var(--tk-card); }
.dk-notify .dk-pill { height: 44px; padding: 0 18px; font-size: 14px; }
/* 동의(D-113, 재빈 승인 9/27 — 시트 없이 칸 안에): 모두 동의(체크 20 · 14/800) → 선 1 → [필수] · [선택] 줄(체크 18,
   표지 높이 18 · 반경 5 · 10.5/800, 글 12.5, 만 14세 12 보조색, 줄 끝 자세히 12 밑줄). 체크는 기본 상자에 로즈 accent */
.dk-agree { display: flex; flex-direction: column; gap: 9px; }
.dk-agree input[type=checkbox] { accent-color: var(--tk-rose); margin: 0; flex: none; cursor: pointer; }
.dk-agree-all { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--dk-ink); cursor: pointer; }
.dk-agree-all input[type=checkbox] { width: 20px; height: 20px; }
.dk-agree-line { height: 1px; background: var(--tk-line); }
.dk-agree-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--dk-tone-ink); }
.dk-agree-item > .dk-agree-label, label.dk-agree-item { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.dk-agree-item input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; }
.dk-agree-tag { flex: none; height: 22px; padding: 0 6px; border-radius: 6px; font-size: 14px; font-weight: 800; line-height: 22px; }
.dk-agree-tag.is-required { background: var(--tk-rose-soft); color: var(--tk-rose); }
.dk-agree-tag.is-optional { background: var(--tk-chip); color: var(--dk-sub); }
.dk-agree-text { flex: 1; min-width: 0; }
.dk-agree-sub { display: block; font-size: 14px; color: var(--dk-sub); }
.dk-agree-more { flex: none; font-size: 14px; color: var(--dk-sub); text-decoration: underline; text-underline-offset: 2px; line-height: 1.6; }
.dk-notify .dk-help, .dk-notify .dk-notice { margin: 0; font-size: 14px; color: var(--dk-sub); line-height: 1.5; }
.dk-notify .dk-notice a { color: var(--dk-tone-ink); }
.dk-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--dk-tone-ink); text-decoration: underline;
  text-underline-offset: 2px; list-style: none; }
.dk-more summary::-webkit-details-marker { display: none; }
.dk-more summary::after { content: " ▾"; }
.dk-more[open] summary::after { content: " ▴"; }
.dk-more > p, .dk-notify .dk-more > p { margin: 8px 0 0; }  /* details 안에는 flex gap 이 먹지 않는다 */
.dk-receipt { box-sizing: border-box; width: 100%; max-width: 420px; background: var(--tk-card); border: 1px solid var(--dk-line); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.dk-receipt[hidden], .dk-notify[hidden] { display: none; }
.dk-receipt-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--dk-tone-ink); }
.dk-receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; line-height: 1.5; }
.dk-receipt dt { color: var(--dk-sub); font-weight: 600; white-space: nowrap; }
.dk-receipt dd { margin: 0; color: var(--dk-ink); }
.dk-receipt .dk-notice { margin: 0; font-size: 14px; color: var(--dk-sub); line-height: 1.5; }
.dk-notify .dk-status { margin: 0; font-size: 14px; font-weight: 700; color: var(--dk-tone-ink); min-height: 1.2em; }

@media (min-width: 900px) {
  .dk-header { padding: 12px 64px; min-height: 68px; border-bottom: 1px solid var(--dk-line); }
  .dk-wordmark { height: 27px; }
  .dk-footer { padding: 28px 64px; flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .dk-footer .dk-right { text-align: right; }}
.dk-dialog { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .6); }
.dk-dialog[hidden] { display: none; }
.dk-dialog-box { width: 100%; max-width: 320px; padding: 20px; border-radius: 18px; background: var(--tk-card);
  box-shadow: inset 0 0 0 1px var(--tk-line); }
.dk-dialog-t { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--dk-ink); }
.dk-dialog-b { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--dk-sub); }
.dk-dialog-cancel { background: var(--tk-chip); color: var(--dk-ink); }

/* 가운뎃점 빼기(디자인 D-121, 재빈 '눈에 거슬리는 건 가운데 불릿') — 정보를 '·'로 잇지 않는다. 값 속 줄바꿈(\n)은 두 줄로 보이고,
   링크 사이는 간격만 둔다 */
.dk-meta, .dk-notice, .dk-footer p, .dk-receipt dd { white-space: pre-line; }
.dk-footer nav, .dk-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ── 양식 부품(디자인 D-194 → D-196 §3 공통 부품) — 옛 site_forms.css 를 여기로 옮겼다. 페이지 틀(머리 · 열 · 바닥)은 _site_form.html 이 메인과 같은 _site_header · _footer 를 쓴다.
   (옛 머리 글:) 사이트 내부 페이지(디자인 D-194) — /writers · /w/<토큰> · /feedback · /contact · /q/<토큰>. 색은 토큰 파일(D-104) 그대로,
   경고 면 둘(warn · warnSoft)만 여기서. 한 열: 모바일 좌우 22, 데스크톱 폭 640. */
:root, :root[data-theme='dark'] { --sf-warn: #F5B14C; --sf-warn-soft: #3A2A12; --sf-up: #4CC38A; }
:root[data-theme='light'] { --sf-warn: #9A5B00; --sf-warn-soft: #FFF4E0; --sf-up: #1F8A55; }
.sf-btn { margin-top: 24px; height: 54px; border-radius: 16px; border: 0; background: var(--tk-rose); color: var(--tk-on-rose); display: flex;
  align-items: center; justify-content: center; font: inherit; font-size: 16.5px; font-weight: 800; text-decoration: none; cursor: pointer; width: 100%; }
.sf-btn:disabled { opacity: .4; cursor: default; }
@keyframes sf-in-next { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes sf-in-prev { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }   /* 동의 줄 끝 '필수' · '선택'(디자인 #1031 검수 2) */

/* ── 읽기 · 움직임 디테일(디자인 D-196 §5 · §6 · §9) — 곡선 out(.2,.8,.2,1) · in-out(.4,0,.2,1) · in(.4,0,1,1). 동작 줄이기면 0ms ── */
html { scroll-behavior: smooth; }
:target, main h1, main h2, [id] { scroll-margin-top: 12px; }
/* 진행률 바 — 마스코트 로즈 그라데이션, 남은 부분은 그리지 않는다 */
.dk-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000; pointer-events: none; transform-origin: 0 50%;
  transform: scaleX(0); background: linear-gradient(90deg, var(--tk-dot2), var(--tk-rose)); border-radius: 0 2px 2px 0; }
@media (min-width: 1024px) { .dk-progress { height: 4px; }}
/* 맨 위로 */
.dk-totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900; width: 44px; height: 44px; border-radius: 22px;
  border: 0; background: var(--tk-card); box-shadow: inset 0 0 0 1px var(--tk-line), 0 6px 18px rgba(0,0,0,.35); color: var(--tk-ink); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .14s cubic-bezier(.4,0,1,1), transform .14s cubic-bezier(.4,0,1,1), visibility 0s linear .14s; }
:root[data-theme='light'] .dk-totop { box-shadow: inset 0 0 0 1px var(--tk-line), 0 6px 18px rgba(20,22,26,.12); }
.dk-totop.on { opacity: 1; visibility: visible; transform: none; transition: opacity .18s cubic-bezier(.2,.8,.2,1), transform .18s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.dk-totop.above-sticky { bottom: calc(104px + env(safe-area-inset-bottom)); }
.dk-totop:active { background: var(--tk-chip); }
.dk-totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) { .dk-totop { right: 32px; bottom: 32px; } .dk-totop.above-sticky { bottom: 104px; }}
.dk-kb .dk-totop, .dk-kb .sf-sticky { display: none; }   /* 모바일 키보드가 떠 있으면 */
/* 누르는 것들의 상태(§9-2) — 포커스 링은 키보드일 때만, 호버는 포인터가 있을 때만 */
.sf-btn, .sf-btn-line, .sf-chip, .sf-pcard, .sf-prev, .sf-linkadd, .sf-linkx, .dk-totop, .dk-theme-btn, .sf-send, .sf-copy {
  transition: transform .08s cubic-bezier(.2,.8,.2,1), filter .08s, background-color .12s cubic-bezier(.2,.8,.2,1), color .12s, box-shadow .12s; }
.sf-btn:active:not(:disabled), .sf-btn-line:active, .sf-chip:active, .sf-pcard:active, .sf-send:active { transform: scale(.98); }
.sf-btn:active:not(:disabled) { filter: brightness(.94); }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--tk-rose); outline-offset: 2px; box-shadow: 0 0 0 2px var(--tk-bg); }
:where(a, button, input, textarea, select, summary, [tabindex]):focus:not(:focus-visible) { outline: none; }
.sf-btn[aria-disabled="true"], .sf-btn:disabled { opacity: .4; cursor: default; }
@media (hover: hover) {
  .sf-btn:hover:not(:disabled) { filter: brightness(1.06); }
  .sf-btn-line:hover, .sf-chip:hover:not(.on), .sf-pcard:hover:not(.on), .sf-linkx:hover, .dk-totop:hover { background-color: var(--tk-chip); }
  .sf-article a:hover, .dk-doc a:hover, .dk-footer a:hover { text-decoration-thickness: 2px; }}
/* 보내는 중(§9-3) — 단추 안 작은 원 + '보내는 중' */
.sf-btn[aria-busy="true"] { opacity: 1; cursor: progress; gap: 8px; }
.sf-btn[aria-busy="true"]::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
@keyframes dk-open { from { max-height: 0; } to { max-height: 600px; } }
@keyframes dk-fade { from { opacity: 0; } to { opacity: 1; } }
.sf-more summary::after, .dk-more summary::after { display: inline-block; transition: transform .2s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; animation-delay: 0ms !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .sf-btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: .6; }}

/* 머리 로그인 자리 · 내 페이지(디자인 D-198) */
.dk-header-r { display: flex; align-items: center; gap: 8px; }
.dk-acct { position: relative; min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: flex-end; }
.dk-acct-pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tk-line);
  font-size: 14px; font-weight: 700; color: var(--tk-ink); text-decoration: none; white-space: nowrap; }
.dk-acct-circle { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tk-rose-soft); color: var(--tk-rose-ink); font: inherit;
  font-size: 15px; font-weight: 800; cursor: pointer; }
:root:not([data-theme='light']) .dk-acct-circle { color: var(--tk-rose); }
.dk-acct-menu { position: absolute; top: 44px; right: 0; z-index: 950; width: 200px; padding: 6px; border-radius: 14px; background: var(--tk-card);
  box-shadow: inset 0 0 0 1px var(--tk-line), 0 10px 28px rgba(0,0,0,.35); display: flex; flex-direction: column; }
:root[data-theme='light'] .dk-acct-menu { box-shadow: inset 0 0 0 1px var(--tk-line), 0 10px 28px rgba(20,22,26,.14); }
.dk-acct-menu.on { animation: dk-menu .15s cubic-bezier(.2,.8,.2,1); }
@keyframes dk-menu { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dk-acct-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--tk-line); margin-bottom: 4px; display: flex; flex-direction: column; min-width: 0; }
.dk-acct-who b { font-size: 14px; } .dk-acct-who span { font-size: 14px; color: var(--tk-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-acct-menu a { min-height: 40px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--tk-ink); text-decoration: none; }
@media (hover: hover) { .dk-acct-menu a:hover { background: var(--tk-chip); }}
.dk-acct-menu[hidden] { display: none; }
/* 운영자 미리보기(재빈 10/5, 디자인 2) — 머리 알약 둘(≥600) · 폰은 계정 메뉴 맨 위 두 줄 + 선 · /writers · /writers/me 배너 */
.dk-acct-op { display: none; }
@media (max-width: 599px) {
  .dk-header .dk-op-pill { display: none; }   /* .dk-header a(inline-flex) 보다 세게 */
  .dk-acct-op { display: flex; flex-direction: column; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--tk-line); }
  .dk-acct-menu a { min-height: 44px; }}
@keyframes sf-sub-open { from { max-height: 0; opacity: 0; } to { max-height: 1400px; opacity: 1; } }

/* D-200 폭 · 제목(디자인 #1086 답) — 머리 · 바닥 · 첫 화면은 한 컨테이너 1120(여백 600 밑 20, 이상 40 — 1440 에서 로고 x 160).
   글 칸: 공고 · 법 문서 680, 양식(/contact · /survey · /writers/apply) 560. 제목 28/1.3/800(600 이상 32), 표지 34/1.25/800(600 이상 40) */
:root { --dk-gut: 20px; }
@media (min-width: 600px) { :root { --dk-gut: 40px; }}
.dk-header, .dk-footer, .dk-banner, .dk-op-banner { padding-left: max(var(--dk-gut), calc((100% - 1120px) / 2)); padding-right: max(var(--dk-gut), calc((100% - 1120px) / 2)); }

/* 보상 카드 최종(디자인 10/4, SPEC §12 · reward-final) — 한 줄에 한 장, 모두 같은 폭. 쿠폰 = 그림 88 카드, 도키 = 앰버 홀로(다크 · 라이트 같은 카드) */
@font-face { font-family: 'Outfit DK'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('/static/dokimi/fonts/Outfit-subset.woff2') format('woff2'); unicode-range: U+2B-2E, U+30-39, U+42, U+44, U+49, U+4B, U+4E-4F, U+53, U+55; }
[data-next]:disabled { background: var(--tk-chip); color: var(--tk-ink2); opacity: .6; cursor: not-allowed; }
[data-done-writer] { margin-top: 16px; }   /* 그림체 넷(E16 · E17 · E19, 디자인 — E12 꼴을 2열로) */

/* 폰 설문 급한 고침(재빈 10/4 '상하좌우로 화면 전체가 움직이고 · 척도 반응이 느리네') */
html, body { overflow-x: clip; }                                        /* 가로 넘침이 있어도 화면이 좌우로 밀리지 않게 */
body { overscroll-behavior-y: none; }                                   /* 끝에서 출렁임 없음 */
.sf-field, .sf-area, .sf-row-area, .sf-lines input, .sf-other, input, textarea, select { font-size: max(16px, 1em); }   /* iOS 입력 확대 막기 */
button, a, .sf-row, .sf-circle, .sf-ladp, .sf-chip, .sf-img-pic, label { touch-action: manipulation; }
@keyframes sf-bump { 30% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }

/* 홀로 줄임 + 떠 있기(재빈 10/4 '너무 과해 · 둥둥 무중력') — 기울기 · 빛 띠 · 반짝임 폭을 절반쯤(±4° · ±3°), 모든 카드가 아주 느리게
   위아래 4px 떠 있음(약 5초, 카드마다 시작이 다름 — JS 가 animation-delay), 그림자도 같이. 올린 카드는 떠 있기 위에 작은 기울기만. 동작 줄이기면 끔 */
@property --fl { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes sf-float { 0%, 100% { --fl: 0; } 50% { --fl: 1; } }
@keyframes sf-tease { 50% { transform: translateX(-28%); } }
@media (max-width: 599px) { html { scrollbar-width: none; } html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }}
@keyframes sf-dm-rise { 0% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sf-dm-spring { 0% { transform: translateY(70px) scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sf-dm-sheen { to { transform: translateX(120%); } }
@keyframes sf-dm-pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* 사이트 모바일(≤480) 글자 단계 — 디자인 2 site-mobile-type(glimi-apple 99897033), 재빈 10/4 '글자가 너무 작아서 안 보이는 느낌'.
   치환 14→15 · 14.5→15.5 · 15/15.5→16 · 16/16.5→17 · 17→18(max(바닥, …) 꼴은 바닥만) · 쪽 제목 28→30 · 400→450. 600 이상 그대로.
   빼는 것: 첫 화면 제목 · 단추(sf-btn · 베타 · 배지 · 알약) · 도키/패스 카드 안 · 별. 크기 줄은 이 파일의 규칙에서 기계로 뽑음(그 폭에서 실제 걸리는 값 기준) — 위 규칙을 고치면 여기도 */
@media (max-width: 599px) {   /* 폰(경계 599 — 사파리 페이지 확대 85% 등, 디자인 2 060deaf0 · 재빈 10/5) */
  .dk-page { font-weight: 450; }
  .dk-meta,
  .dk-legal-banner span,
  .dk-legal-banner-list a,
  .dk-footer,
  .dk-banner span,
  .dk-tests-note,
  .dk-notify label.dk-field,
  .dk-agree-all,
  .dk-agree-item,
  .dk-agree-tag,
  .dk-agree-sub,
  .dk-agree-more,
  .dk-notify .dk-help,
  .dk-notify .dk-notice,
  .dk-more summary,
  .dk-receipt dl,
  .dk-receipt .dk-notice,
  .dk-notify .dk-status,
  .dk-delete-status,
  .dk-dialog-b,
  .dk-legal-date,
  .sf-opt,
  .sf-counter,
  .sf-meta,
  .sf-check small,
  .sf-error,
  .sf-copy,
  .sf-eyebrow,
  .sf-step,
  .sf-dot,
  .sf-secret,
  .sf-secret b,
  .sf-lines span,
  .sf-who,
  .sf-fee,
  .sf-pill,
  .sf-code-ok,
  .sf-logout,
  .sf-step-reward,
  .sf-tag-warn,
  .sf-fig-band,
  .sf-group-title,
  .sf-more summary,
  .sf-more p,
  .sf-v2-kicker,
  .sf-v2-who small,
  .sf-v2-closed span,
  .sf-rc-sub,
  .sf-rc-state,
  .sf-count-tag,
  .sf-v2-count,
  .sf-pcard b,
  .sf-pcard span,
  .sf-v2-nav .sf-prev,
  .sf-v2-phone-note,
  .sf-done-pane h2,
  .sf-v2-where .sf-meta,
  .sf-ctag,
  .sf-qerr,
  .sf-foot-mini,
  .dk-acct-pill,
  .dk-acct-who b,
  .dk-acct-who span,
  .dk-acct-menu a,
  .dk-me-copy,
  .dk-me-todo,
  .dk-me-link,
  .dk-me-delete,
  .sf-filerow-t .sf-meta,
  .sf-filemsg,
  .sf-circle-l,
  .sf-cmore summary,
  .sf-cmore small,
  .sf-img.on .sf-img-pick::after,
  .sf-ladp-l,
  .sf-lad-ends,
  .sf-lad-ticks span,
  .sf-v2-chip,
  .sf-rc-lsub,
  .dk-me-rw em,
  .sf-cp-lab,
  .sf-done .sf-rc-state,
  .sf-rgroup,
  .sf-style-prog,
  .sf-done .sf-done-dates p,
  .sf-todo > b,
  .sf-fg-pill,
  .sf-fg-exp,
  .sf-dv-head small { font-size: 15px; }
  .dk-pending,
  .dk-text,
  .dk-mailbox,
  .dk-legal table,
  .dk-notify input[type=email],
  .dk-delete-steps,
  .dk-delete-list,
  .dk-delete-go,
  .dk-dialog-row button,
  .sf-closed-text,
  .sf-check b,
  .sf-sub,
  .sf-card,
  .sf-bubble,
  .sf-send,
  .sf-intro,
  .sf-steps-list,
  .sf-ymd span,
  .sf-v2-lead p,
  .sf-rc-cond,
  .sf-rb .sf-rc-name,
  .sf-v2-secname,
  .dk-acct-circle,
  .sf-filerow-t b,
  .sf-circle.on .sf-dot::after,
  .sf-miss-band,
  .sf-v2-pct,
  .sf-zoom-n,
  .sf-fcard-t span,
  .sf-back,
  .dk-toc b,
  .dk-toc a,
  .sf-howto li,
  .sf-done-edit,
  .sf-cp-cond,
  .sf-done-anon,
  .sf-done .sf-done-pane h2,
  .sf-done .sf-done-pane p,
  .sf-cp.sm .sf-cp-prod,
  .sf-done .sf-done-next,
  .sf-capline,
  .sf-block,
  .sf-done .sf-wc-tx p,
  .sf-wc-btn,
  .sf-doki-note,
  .sf-done .sf-todo p,
  .sf-fg-row b,
  .sf-dv-line { font-size: 16px; }
  .dk-receipt-title,
  .dk-delete-help .dk-delete-help-t,
  .sf-article p,
  .sf-article li,
  .sf-done p,
  .sf-big,
  .sf-v2-closed b,
  .dk-me-card h2,
  .sf-below-chip,
  .sf-wc-tx b { font-size: 17px; }
  .dk-legal,
  .dk-legal h3,
  .dk-dialog-t,
  .sf-person b,
  .sf-row,
  .sf-rows + .sf-other,
  .sf-fcard-t b,
  .sf-lad-pick,
  .sf-howto h2,
  .sf-howto h3,
  .sf-cp-prod,
  .sf-done-rt { font-size: 18px; }
  .sf-field,
  .sf-lines input,
  .sf-row-area,
  .sf-area,
  .sf-other,
  input,
  textarea,
  select { font-size: max(17px, 1em); }   /* 설문 끝 화면 '앱 받기'(§41, 15 → 16) */
  /* 3단계(디자인 2 730fcd13, 재빈 '지금도 작다 · 설문 제목 · 로그인 · 뒤로도 작다') — 토큰 --tk-fs-*(토큰 파일), 누르는 칸 44 이상. 위 치환 줄보다 뒤라 이김 */
  .dk-header { min-height: 64px; padding: 12px 16px 4px 20px; }
  .dk-wordmark { height: 29.5px; }
  .dk-acct-pill { height: 44px; padding: 0 18px; font-size: 16px; font-weight: 700; border-radius: 22px; }
  .dk-theme-btn { width: 48px; height: 48px; }
  .dk-theme-ring { width: 44px; height: 44px; }
  .dk-theme-ring svg { left: 11px; top: 11px; width: 22px; height: 22px; }
  .sf-btn, .sf-btn.sf-btn-line, .sf-btn-line.sf-btn { height: 56px; font-size: 17px; }   /* 설문 표지 제목 36 — 쪽 제목(.sf-me h1 도 걸림) 뒤에 둬야 이김 */
  main h2, .sf-dks-head, .sf-cp-prod { font-size: var(--tk-fs-h); }
  .sf-v2-lead p, .sf-cp-cond, .sf-doki-note, .sf-dks-foot, .sf-fb small, .sf-try .sf-meta,
  .dk-notice, .dk-agree-text, .dk-help { font-size: var(--tk-fs-read); line-height: 1.6; }
  .sf-meta, .sf-capline span, .sf-clines span, .sf-cp-lab, .sf-rgroup span, .sf-v2-kicker, .dk-agree-sub, .sf-done .sf-done-app { font-size: var(--tk-fs-sec); }}   /* 2차 한 줄 다섯 자 미만 — 로즈(디자인 2 #1243) */

/* Android 두 단계 창(_stores.html play_steps, 10/6) — 확인 창(.dk-dialog) 틀 그대로, 번호 줄 둘. ①을 끝내기 전 ②는 테두리 보조 단추,
   끝나면 ①이 테두리 · ②가 로즈 채움(디자인 130c10 — 흐린 로즈는 꺼진 단추로 읽힘) */
.dk-steps-dlg .dk-dialog-box { max-width: 360px; outline: none; }
.dk-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dk-step { display: flex; gap: 12px; align-items: flex-start; }
.dk-step-n { flex: none; width: 28px; height: 28px; margin-top: 13px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--tk-rose); color: var(--tk-on-rose); font-size: 14px; font-weight: 800; }
.dk-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dk-step .sf-btn { margin: 0; width: 100%; height: 54px; justify-content: center; text-decoration: none; font-size: 16px; font-weight: 800; }
.dk-step-note { font-size: 14px; line-height: 1.5; color: var(--dk-sub); }
.dk-step-first { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--tk-rose-ink); }
:root:not([data-theme='light']) .dk-step-first { color: var(--tk-rose); }
.dk-step-first[hidden] { display: none; }
.dk-step[data-step="2"] .dk-step-n { background: var(--tk-chip); color: var(--dk-sub); }
.dk-steps-dlg:not(.dk-steps-2) .dk-step[data-step="2"] .sf-btn,
.dk-steps-1 .dk-step[data-step="1"] .sf-btn { background: var(--tk-card); color: var(--tk-ink); box-shadow: inset 0 0 0 1.5px var(--tk-line); }
:root:not([data-theme='light']) .dk-steps-dlg:not(.dk-steps-2) .dk-step[data-step="2"] .sf-btn,
:root:not([data-theme='light']) .dk-steps-1 .dk-step[data-step="1"] .sf-btn { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.dk-steps-2 .dk-step[data-step="2"] .dk-step-n { background: var(--tk-rose); color: var(--tk-on-rose); }
.dk-step-ok, .dk-steps-1 .dk-step[data-step="1"] .dk-step-num { display: none; }
.dk-steps-1 .dk-step[data-step="1"] .dk-step-ok { display: inline-flex; }
.dk-step-skip { align-self: flex-start; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--dk-sub);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dk-steps-2 .dk-step-skip { display: none; }
.dk-steps-close { width: 100%; height: 44px; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
