/* imfeed test page — the v3 look (선영's design v3 of 2026-11-24, IMF-59). Mobile is laid out at 390 wide; from 768
   wide ("web") a one-column screen is one centred column 480 wide. Values (colours, sizes, gaps) are the design's.

   SHARED PIECES — every screen uses these; cards 2–4 (05a/05b, 06/08, 09/10/11) build on them. The JS helpers of the
   same names are in app.js, section "v3 shared pieces".
     tokens         :root  --ink #111111 · --ink-2 #4B4B4B (secondary) · --ink-3 #6B6B6B (small notes) · --line · --field
                           --soft (grey fills) · --orange #F2643C (bars, borders, big marks only) · --orange-text #C2410C
                           --error · --grad (the brand gradient, progress bars only)
     font           @font-face Pretendard (static/fonts/PretendardVariable.woff2, SIL OFL 1.1), served by the page itself
     .hdr           header: the wordmark (.hdr-logo) + 5 steps on the right (.steps > span.on); .hdr-back: a back
                    arrow (06, 08; 10's questions, where the wordmark gives way to it: .app.asking)
     .v3            a one-column screen: > .body (content) + > .foot (the bottom action area); web: 480 wide, centred
                    (.v3.wide: 560, the pick screens 05a/05b)
     .titles        h1 27px + .sub
     .btn.primary   56px black button (disabled: grey) · .btn.line 56px outlined · .btn-icon 56px black square
     .link-btn      underlined text button · .input 56px field (.is-error: red border) · .field-error under a field
     .check         24px checkbox with a check mark
     .answer        60px answer row (role radio | checkbox); chosen: black border + check (.answer-mark)
     .chip          48px chip (also .pill, the older name); chosen: black + check (.chip.plain: black, no check)
     .choice        a card to pick (02's stores): title + sub; chosen: black border + round check
     .pbar          brand-gradient progress bar: .pbar > .pbar-fill (app.js progressBar sets width and background-size)
     .state         a screen's waiting / failure view (app.js waitView, failView, jobState):
                    .wait (.wait-pct → .pbar → .wait-title → .wait-line) · .fail (.fail-mark → title → line)
                    and its .foot: "창을 닫아도 계속돼요" or the buttons
     .note          small note 14px · .msg an error line · .empty the grey "nothing found" box */

@font-face { font-family: "Pretendard"; src: url(/static/fonts/PretendardVariable.woff2) format("woff2");
             font-weight: 45 920; font-style: normal; font-display: swap; }

:root {
  --ink: #111111; --ink-2: #4B4B4B; --ink-3: #6B6B6B; --line: #E3E3E3; --field: #B8B8B8; --edge: #D0D0D0;
  --soft: #F5F5F6; --soft-2: #E8E8EA; --track: #ECECEC; --white: #FFFFFF; --placeholder: #767676; --check-off: #8A8A8A;
  --orange: #F2643C; --orange-text: #C2410C; --error: #B42318; --error-bg: #FDECEA;
  --grad: linear-gradient(90deg, #F2643C, #F7934C, #E58AD6, #4F7FDB);
  /* the older screens' names, mapped onto the v3 palette */
  --sub: var(--ink-2); --grey: var(--soft); --dot: var(--orange); --off: var(--ink-3);
  --warn: var(--orange-text); --warn-bg: #FFF1EB; --ok: #1E7F57; --ok-bg: #E6F3EC;
}
* { box-sizing: border-box; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif; }
html, body { margin: 0; color: var(--ink); background: var(--white); word-break: keep-all; -webkit-text-size-adjust: 100%; }
h1 { margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-only { display: none; }

/* ------------------------------------------------------------------ the page and its header */
.app { width: 100%; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--white); display: flex; flex-direction: column; }
.screen { display: none; }
.app[data-screen="start"] .screen[data-for="start"],
.app[data-screen="store"] .screen[data-for="store"],
.app[data-screen="research"] .screen[data-for="research"],
.app[data-screen="understood"] .screen[data-for="understood"],
.app[data-screen="pillar"] .screen[data-for="pillar"],
.app[data-screen="idea"] .screen[data-for="idea"],
.app[data-screen="plan"] .screen[data-for="plan"],
.app[data-screen="voice"] .screen[data-for="voice"],
.app[data-screen="making"] .screen[data-for="making"],
.app[data-screen="result"] .screen[data-for="result"],
.app[data-screen="saved"] .screen[data-for="saved"] { display: flex; }
.app[data-screen="loading"] .hdr, .app[data-screen="start"] .hdr { display: none; }

.hdr { height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-logo { height: 18px; width: auto; display: block; }
.hdr-back { width: 48px; height: 48px; margin-left: -12px; border: 0; background: none; color: var(--ink); display: flex;
            align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hdr-label { font-size: 14px; color: var(--ink-3); margin-left: 8px; }
.hdr-label:empty { display: none; }
.steps { margin-left: auto; display: flex; gap: 4px; width: 112px; }
.steps span { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--ink); }

/* ------------------------------------------------------------------ shared pieces */
.v3 { flex: 1 1 auto; flex-direction: column; }
.v3 > .body, .state > .body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; padding: 8px 20px 0; min-height: 0; }
.v3 > .body.tight { gap: 20px; }
.v3 > .foot, .state > .foot { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.titles { display: flex; flex-direction: column; gap: 8px; }
.v3 .titles h1 { font-size: 27px; line-height: 1.35; font-weight: 700; letter-spacing: -0.6px; }
.sub { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.msg { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--error); }
.q-title { font-size: 18px; font-weight: 700; }

.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
       height: 56px; border-radius: 12px; border: 0; font-size: 18px; font-weight: 700; cursor: pointer; padding: 0 16px; }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:disabled { background: var(--soft-2); color: var(--ink-3); cursor: default; }
.btn.line, .btn.secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--edge); }
.btn.line:disabled, .btn.secondary:disabled { color: var(--ink-3); border-color: var(--soft-2); cursor: default; }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.soft:disabled { color: var(--ink-3); cursor: default; }
a.btn { text-decoration: none; }
.btn-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; border: 0; background: var(--ink); color: var(--white);
            display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.btn-icon:disabled { background: var(--soft-2); color: var(--ink-3); cursor: default; }
.link-btn { align-self: center; padding: 12px; border: 0; background: none; font-size: 16px; color: var(--ink-2); text-decoration: underline;
            text-underline-offset: 4px; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-width: 0; border: 1.5px solid var(--field); border-radius: 12px; background: var(--white); color: var(--ink);
         font-size: 18px; font-family: inherit; }
input.input { height: 56px; padding: 0 16px; }
textarea.input { padding: 14px 16px; line-height: 1.5; resize: none; font-size: 17px; }
.input::placeholder { color: var(--placeholder); }
.input:focus { outline: none; border-color: var(--ink); }
.input.is-error, .input.is-error:focus { border: 2px solid var(--error); padding: 0 15.5px; }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--error); line-height: 1.25; }
.field-error svg { flex: 0 0 18px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 17px; color: var(--ink); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: 0 0 24px; height: 24px; border-radius: 6px; border: 2px solid var(--check-off); background: var(--white);
             display: flex; align-items: center; justify-content: center; }
.check input:checked + .check-box { background: var(--ink) center / 16px 16px no-repeat; border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.check input:focus-visible + .check-box { outline: 2px solid var(--orange); outline-offset: 2px; }

.answers { display: flex; flex-direction: column; gap: 10px; }
.answer { width: 100%; min-height: 60px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--white);
          color: var(--ink); font-size: 18px; font-weight: 600; text-align: left; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.answer > span:last-child { flex: 1 1 auto; }
.answer[aria-checked="true"] { border: 2px solid var(--ink); background: var(--soft); padding: 0 17.5px; }
.answer-mark { flex: 0 0 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--white); display: flex;
               align-items: center; justify-content: center; }
.answer.multi .answer-mark.off { background: var(--white); border: 2px solid var(--check-off); }
.answer:disabled { cursor: default; }

.chips, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .pill { min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--white); color: var(--ink); border: 1.5px solid var(--edge);
               font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip[aria-checked="true"], .chip[aria-pressed="true"], .pill[aria-checked="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 600; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choices:empty { display: none; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 16px; border-radius: 14px;
          border: 1.5px solid var(--edge); background: var(--white); color: var(--ink); text-align: left; cursor: pointer; }
.choice[aria-checked="true"] { border: 2px solid var(--ink); padding: 9.5px 15.5px; }
.choice-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.choice-words strong { font-size: 18px; line-height: 1.25; }
.choice-words span { font-size: 15px; line-height: 1.25; color: var(--ink-2); }
.choice-mark { flex: 0 0 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex;
               align-items: center; justify-content: center; }
[role="radio"]:focus-visible, [role="checkbox"]:focus-visible, .btn:focus-visible, .link-btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.empty { padding: 28px 20px; border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.empty strong { font-size: 18px; }
.empty span { font-size: 16px; color: var(--ink-2); }

.pbar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.pbar-fill { width: 0; height: 100%; border-radius: inherit; background: var(--grad); background-size: 100% 100%; transition: width .6s ease; }

.state { flex: 1 1 auto; display: flex; flex-direction: column; }
.screen.has-state > :not(.state) { display: none !important; }
.wait { display: flex; flex-direction: column; gap: 16px; margin-top: 96px; }
.wait-pct { font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.wait-words, .fail-words { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wait-title, .fail-title { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.5px; }
.wait-title { line-height: 1.2; }
.wait-line { font-size: 17px; line-height: 1.3; color: var(--ink-2); }
.fail { display: flex; flex-direction: column; gap: 14px; margin-top: 96px; }
.fail-words { margin-top: 0; gap: 14px; }
.fail-line { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.fail-mark { width: 56px; height: 56px; border-radius: 999px; background: var(--error-bg); display: flex; align-items: center; justify-content: center; }
.fail-note { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--orange-text); }

/* ------------------------------------------------------------------ 01 들어오기 */
.start { position: relative; flex: 1 1 auto; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #262626; overflow: hidden; }
.start-media { position: absolute; inset: 0; }
.start-video { position: absolute; inset: 0; background: #262626; }
.start-video video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.start-video.playing video { opacity: 1; }
/* the top shade: dark through the headline and the description (they end about 240px down), clear 60px below them,
   so the words read over any example video, its own captions included */
.start-shade { position: absolute; left: 0; right: 0; top: 0; height: 300px; pointer-events: none;
               background: linear-gradient(rgba(0,0,0,0.78) 0, rgba(0,0,0,0.6) 240px, rgba(0,0,0,0) 300px); }
.start-hdr { position: relative; height: 56px; padding: 0 20px; display: flex; align-items: center; }
.start-hdr img { height: 18px; width: auto; display: block; }
.start-hdr .logo-black { display: none; }
.start-left { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.start-copy { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 10px; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.start-copy h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.8px; }
.start-copy p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.94); }
.start-sheet { background: var(--white); border-radius: 24px 24px 0 0; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 12px;
               box-shadow: 0 -8px 24px rgba(0,0,0,0.12); }
.start-sheet .note.w-only { display: none; }

/* ------------------------------------------------------------------ 02 가게 찾기 */
.search { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ 04 이해 확인 */
.thumbs { display: flex; gap: 8px; }
.thumbs > * { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; background: var(--soft-2); object-fit: cover; display: block; }
.thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lines { display: flex; flex-direction: column; }
.uline { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
         color: var(--ink); text-align: left; cursor: pointer; }
.uline-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.uline-label { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.uline-value { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.uline-pen { flex: 0 0 20px; color: var(--ink-2); display: flex; }
.badge { padding: 2px 8px; border-radius: 999px; background: var(--soft-2); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.uedit { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.uedit-row { display: flex; gap: 8px; }
.uedit-save { flex-shrink: 0; height: 56px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ink); color: var(--white);
              font-size: 16px; font-weight: 700; cursor: pointer; }
.uedit .note { text-align: left; }

/* ------------------------------------------------------------------ small helpers kept from the older screens */
.lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.opt { font-weight: 500; color: var(--ink-2); }
.hint { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.hint.center { text-align: center; }
.hint .link { height: auto; padding: 0 0 0 6px; font-size: 14px; text-decoration: underline; }
.error { font-size: 15px; color: var(--error); line-height: 1.5; }
.notice { font-size: 16px; line-height: 1.5; color: var(--orange-text); background: var(--warn-bg); border-radius: 12px; padding: 14px 16px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.btn.narrow { width: auto; flex: 0 0 88px; }
.link { border: 0; background: transparent; font-size: 15px; color: var(--ink-2); height: 44px; padding: 0 4px; cursor: pointer; }
.link:disabled { color: var(--ink-3); cursor: default; }
.link.strong { color: var(--ink); font-weight: 700; text-decoration: underline; }
.chip.tag { min-height: 0; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--soft); border: 0;
            border-radius: 8px; padding: 3px 8px; white-space: nowrap; cursor: default; }
.chip.tag:empty { display: none; }
.chip.tag.warm { color: var(--orange-text); background: var(--warn-bg); }
.mark { flex: 0 0 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.q { display: flex; flex-direction: column; gap: 10px; }
.qt { font-size: 18px; font-weight: 700; line-height: 1.4; }
.panel { padding: 16px; border-radius: 16px; background: var(--soft); gap: 14px; }
.stars { display: flex; gap: 6px; }
.star { width: 48px; height: 48px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pcard:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* 05a 연재 고르기, 05b 아이디어 고르기 (v3, IMF-63; shown only with the pick screens on): one-column .v3 screens of
   cards to pick (.pcard: title + .rec-tag 추천 + the round check when chosen); web: 560 wide (.v3.wide) */
.cards { display: flex; flex-direction: column; gap: 12px; }
.cards:empty { display: none; }
.pcard { border: 1.5px solid var(--edge); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; background: var(--white); }
.pcard[aria-checked="true"] { border: 2px solid var(--ink); padding: 17.5px; }
.phead { display: flex; align-items: center; gap: 8px; }
.phead strong { min-width: 0; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.phead .choice-mark { margin-left: auto; }
.rec-tag { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange-text); font-size: 13px; font-weight: 700; }
.type-chip { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; }
.ppitch { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pex { display: flex; flex-direction: column; gap: 10px; background: var(--soft); border-radius: 12px; padding: 14px; }
.plabel { font-size: 14px; color: var(--ink-3); }
.pex ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pex li { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.pex li .exsub { font-size: 14px; color: var(--ink-2); }
.powner { font-size: 15px; color: var(--ink-2); }
.beats { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.beats > div { display: flex; gap: 12px; }
.beats dt { flex: 0 0 56px; font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.beats dd { margin: 0; min-width: 0; font-size: 16px; line-height: 1.45; }

/* 06 기획 확인 (v3, IMF-64): a .v3 screen. .pcheck the light-grey plan card (.pcheck-head: the chips and 자막 수정, or
   자막 고치는 중 and 저장; .pscene: time · screen · 문구 · .pflag, orange when on); .pcheck-side the stars, the reasons
   and the buttons. Mobile: .pcheck-side is no box of its own, the buttons sit at the bottom; web: two columns, 1000 wide */
.pcheck-cols { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; }
.pcheck-main { display: flex; flex-direction: column; gap: 20px; }
.pcheck-side { display: contents; }
.pcheck { background: var(--soft); border-radius: 18px; padding: 20px 20px 4px; display: flex; flex-direction: column; gap: 12px; }
.pcheck-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcheck-head > strong { font-size: 17px; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--edge); font-size: 13px; font-weight: 600; }
.ptag.story { border-color: var(--orange); color: var(--orange-text); font-weight: 700; }
.pcheck-edit { flex-shrink: 0; min-height: 40px; padding: 0 10px; margin-right: -8px; border: 0; background: none; color: var(--ink);
               font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.pcheck-save { flex-shrink: 0; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--white);
               font-size: 16px; font-weight: 700; cursor: pointer; }
.pcheck-save:disabled { background: var(--soft-2); color: var(--ink-3); cursor: default; }
.pcheck-titles { display: flex; flex-direction: column; gap: 6px; }
.pcheck-titles strong { font-size: 21px; line-height: 1.35; }
.pcheck-titles span { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pcheck-hint { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.pscene { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pscene-time { flex: 0 0 48px; font-size: 14px; color: var(--ink-3); padding-top: 3px; }
.pscene-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
label.pscene-words { gap: 8px; }
.pscene-screen { font-size: 17px; line-height: 1.45; }
.pscene-cap { font-size: 16px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.pscene-kind { font-size: 14px; color: var(--ink-3); }
.pflag { flex: 0 0 48px; height: 48px; margin: -10px -12px 0 0; border: 0; padding: 0; background: none; color: var(--check-off);
         display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pflag.on { color: var(--orange); }
.pflag:focus-visible, .pcheck-edit:focus-visible, .pcheck-save:focus-visible, .vplay:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.note.left { text-align: left; }
.prate { display: flex; flex-direction: column; gap: 12px; }
.prate .q-title { text-align: center; }
.stars.big { justify-content: center; gap: 2px; }
.stars.big .star { width: 52px; height: 52px; }
.preasons { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.preasons .note { font-size: 15px; }
.chip.plain[aria-checked="true"] { font-weight: 500; }
.pcheck-foot { margin-top: auto; padding: 12px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.link-btn:disabled { color: var(--ink-3); cursor: default; }

/* 08 목소리 (v3, IMF-65): a .v3 screen of three cards (.vcard: .vpick the radio, .vplay the round preview button);
   chosen: black border on light grey */
.vcards { display: flex; flex-direction: column; gap: 10px; }
.vcard { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--edge);
         background: var(--white); cursor: pointer; }
.vcard.on { border: 2px solid var(--ink); background: var(--soft); }
.vpick { flex: 1 1 auto; min-width: 0; min-height: 52px; border: 0; padding: 0; background: none; color: var(--ink); text-align: left;
         display: flex; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.vpick strong { font-size: 18px; }
.vpick span { font-size: 15px; color: var(--ink-2); }
.vplay { flex: 0 0 48px; height: 48px; border-radius: 999px; border: 0; padding: 0; background: var(--ink); color: var(--white);
         display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vplay-gap { flex: 0 0 48px; }

/* 09 만드는 중 (v3, IMF-65): a .v3 screen. .mk-wait the big percent → bar → words; .mk-stop (the run stopped) the red
   mark → words; .kbox the grey kakao box (made by app.js only when the settings allow it: .phone-row field + black
   button, the retention line; .kbox-done after 알림 받기) */
.making > .body { gap: 28px; }
.mk-wait { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.mk-pct { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.mk-words { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mk-words h1, .mk-stop h1 { font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.5px; }
.mk-words h1 { line-height: normal; }
.mk-words p { font-size: 17px; color: var(--ink-2); }
.mk-stop { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.mk-stop p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.kbox { background: var(--soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.kbox-title { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.kbox-title img { flex: 0 0 26px; display: block; }
.phone-row { display: flex; gap: 8px; }
.phone-row .input { flex: 1 1 auto; }
.phone-btn { flex-shrink: 0; height: 56px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ink); color: var(--white);
             font-size: 16px; font-weight: 700; cursor: pointer; }
.phone-btn:disabled { background: var(--soft-2); color: var(--ink-3); cursor: default; }
.kbox-done { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 17px; font-weight: 600; min-height: 56px; }
.kbox-done > svg { flex: 0 0 16px; }
.kbox-again { padding: 8px; margin-left: auto; font-size: 15px; }
.kbox .msg, .newsbox .msg { font-size: 15px; }
.phone-btn:focus-visible, .sheet-x:focus-visible, .rv-back-w:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* 10 영상 보기 + 평가 (v3, IMF-66): a .v3 screen of two parts. .rv-watch: the title, the 9:16 .player (the 'imfeed 테스트'
   mark top right, the round play button, the .scrub bar inside at the bottom with the orange mark dots), 여기 어색해요
   (.mark-btn, orange border), a .mrow per mark (time + chips), its .foot (평가하고 저장하기 + 기획 다시 보기). .rv-ask: one
   question (n/9 + bar, the title, the answers or the stars or the note) and its .foot. Mobile: one part at a time
   (.review.asking: the questions); web: the video left and the questions' box right, 1000 wide. .sheet: 기획 다시 보기 */
.rv-cols { flex: 1 1 auto; display: flex; flex-direction: column; }
.rv-watch, .rv-ask { flex: 1 1 auto; display: flex; flex-direction: column; }
.review:not(.asking) .rv-ask, .review.asking .rv-watch { display: none; }
.rv-watch > .body, .rv-ask > .body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; padding: 8px 20px 0; }
.rv-watch-foot, .rv-foot { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.review .titles h1 { font-size: 26px; }
.rv-replan-w, .rv-back-w, .rv-count { display: none; }
.player { position: relative; flex-shrink: 0; align-self: center; width: 300px; height: 533px; border-radius: 18px; overflow: hidden; background: #262626; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; background: #262626; }
.player .wm { position: absolute; top: 14px; right: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,0.5); font-size: 12px;
              font-weight: 700; color: rgba(255,255,255,0.9); pointer-events: none; }
.bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 999px; border: 0;
           background: var(--white); color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.scrub { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.scrub .track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3); overflow: hidden; }
.scrub .fill { height: 100%; width: 0; border-radius: 2px; background: var(--white); }
.scrub .dots span { position: absolute; top: 6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 999px; background: var(--orange); pointer-events: none; }
.btn.mark-btn { background: var(--white); color: var(--ink); border: 2px solid var(--orange); }
.marks { display: flex; flex-direction: column; gap: 12px; }
.marks:empty { display: none; }
.mrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mrow > strong { font-size: 16px; color: var(--orange-text); font-variant-numeric: tabular-nums; }
.rv-ask > .body { gap: 14px; }
.rv-ask[data-kind="stars"] > .body { gap: 20px; }
.rv-prog { display: flex; flex-direction: column; gap: 10px; }
.rv-prog-row { display: flex; align-items: center; gap: 4px; }
.rv-prog-row span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.pbar.rv-bar { height: 6px; border-radius: 3px; }
.rv-titles { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.rv-titles h1 { font-size: 26px; line-height: 1.38; font-weight: 700; letter-spacing: -0.5px; white-space: pre-line; }
.rv-titles .sub { white-space: pre-line; }
.rv-answers.stars { margin-top: 20px; justify-content: center; gap: 2px; }
.rv-stars .star { width: 60px; height: 60px; }
textarea.rv-text { height: 180px; border-radius: 14px; padding: 16px; font-size: 18px; line-height: 1.5; }
.rv-back-w { width: 32px; height: 32px; margin-left: -8px; border: 0; padding: 0; background: none; color: var(--ink); align-items: center;
             justify-content: center; cursor: pointer; }
.app.asking .hdr-logo { display: none; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
body:has(.sheet-wrap:not([hidden])) { overflow: hidden; height: 100vh; }      /* the page under the sheet stays put */
.sheet-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: var(--white); border-radius: 24px 24px 0 0;
         padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head strong { font-size: 20px; }
.sheet-x { width: 48px; height: 48px; margin-right: -12px; border: 0; padding: 0; background: none; color: var(--ink); display: flex;
           align-items: center; justify-content: center; cursor: pointer; }
.sheet-titles { display: flex; flex-direction: column; gap: 4px; }
.sheet-titles strong { font-size: 18px; line-height: 1.35; }
.sheet-titles span { font-size: 15px; color: var(--ink-2); }
.rrow { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rrow-time { flex: 0 0 48px; font-size: 14px; color: var(--ink-3); padding-top: 3px; }
.rrow-words { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rrow-screen { font-size: 17px; line-height: 1.45; }
.rrow-cap { font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }

/* 11 저장 (v3, IMF-67): a .v3 screen. .sv-top the black round check and the words, centred; .foot 영상 저장, the
   launch-news .newsbox (made by app.js only when the settings allow it) and the last note */
.saved > .body { gap: 24px; }
.sv-top { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 88px; text-align: center; }
.sv-mark { width: 72px; height: 72px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; }
.sv-top h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.6px; }
.sv-top p { font-size: 17px; color: var(--ink-2); }
.newsbox { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.newsbox .check { min-height: 44px; }

/* ------------------------------------------------------------------ web: from 768 wide */
@media (min-width: 768px) {
  .m-only { display: none; }
  .w-only { display: initial; }
  .hdr { height: 72px; padding: 0 64px; }
  .hdr-logo { height: 22px; }
  .steps { width: 200px; }

  /* one-column screens (v3): the content and the bottom area in one column 480 wide */
  .v3 { flex: 0 0 auto; width: 480px; max-width: calc(100% - 64px); margin: 0 auto; padding: 56px 0; gap: 24px; }
  .v3.wide:not(.has-state) { width: 560px; }                            /* 05a, 05b; their waits stay 480 */
  .v3 > .body, .state > .body { flex: none; padding: 0; }
  .v3 > .body.tight { gap: 24px; }
  .v3 > .foot, .state > .foot { padding: 0; margin-top: 8px; }
  .state { flex: none; gap: 24px; }
  .wait, .fail { margin-top: 40px; }
  .state .foot .note { text-align: left; }
  .v3 > .foot.store-foot { flex-direction: column-reverse; }          /* web: the button first, the example link under it */

  /* 06: the plan card left, the stars, the reasons and the buttons right in one box; 1000 wide (its waits stay 480) */
  .v3.plan-check:not(.has-state) { width: 1000px; padding: 40px 0; }
  .v3.plan-check .titles h1 { font-size: 32px; }
  .pcheck-cols { flex-direction: row; align-items: flex-start; gap: 32px; }
  .pcheck-main { flex: 1 1 560px; min-width: 0; }
  .pcheck-side { display: flex; flex: 0 0 430px;                       /* the design's 380 inside, + padding and border */ flex-direction: column; gap: 24px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
  .pcheck-foot { margin-top: 0; padding: 0; gap: 4px; }

  /* 01: words and the code box on the left, the 9:16 example video on the right (a grid: header row, then the two) */
  .app[data-screen="start"] .screen[data-for="start"] { display: grid; grid-template-columns: minmax(0, 500px) auto;
       column-gap: clamp(32px, 7.5vw, 96px); justify-content: center; align-items: center; padding: 72px 64px 40px;
       background: var(--white); overflow: visible; }
  .start-hdr { position: absolute; left: 64px; top: 0; height: 72px; padding: 0; }
  .start-hdr img { height: 22px; }
  .start-hdr .logo-white { display: none; }
  .start-hdr .logo-black { display: block; }
  .start-shade { display: none; }
  .start-left { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 32px; min-width: 0; }
  .start-media { grid-column: 2; grid-row: 1; position: static; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .start-video { position: relative; inset: auto; width: clamp(240px, 31.7vw, 405px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; }
  .start-copy { padding: 0; gap: 16px; color: var(--ink); text-shadow: none; }
  .start-copy h1 { font-size: clamp(36px, 4.06vw, 52px); line-height: 1.25; letter-spacing: -1.4px; }
  .start-copy p { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
  .start-sheet { border: 1px solid var(--line); border-radius: 20px; padding: 28px; gap: 14px; box-shadow: none; }
  .start-sheet .note.w-only { display: block; }

  /* 09 (s09-web): the .v3 column as the design */
  .making > .body { gap: 24px; }
  .mk-wait { margin-top: 16px; }
  .mk-stop { margin-top: 16px; }

  /* 10 (s10-web): the video left (380), the questions' box right; the box shows the questions in turn, "n개 질문에
     답하면 …" under them, and its own back arrow from question 2 on (the header has none here) */
  .v3.review:not(.has-state) { width: 1000px; padding: 32px 0; }
  .rv-cols { flex-direction: row; align-items: flex-start; gap: 48px; }
  .review:not(.asking) .rv-ask, .review.asking .rv-watch { display: flex; }
  .rv-watch { flex: 0 0 380px; }
  .rv-watch > .body { padding: 0; gap: 14px; }
  .review .titles h1 { font-size: 28px; }
  .rv-watch-foot { display: none; }
  .rv-replan-w { display: block; }
  .player { width: 380px; height: 676px; }
  .rv-ask { flex: 1 1 auto; margin-top: 60px; border: 1px solid var(--line); border-radius: 18px; padding: 32px; gap: 16px; }
  .rv-ask > .body, .rv-ask[data-kind="stars"] > .body { padding: 0; gap: 16px; }
  .rv-foot { padding: 0; }
  .rv-ask:is([data-kind="stars"], [data-kind="one"], [data-kind="skip"]) .rv-foot { display: none; }   /* nothing in it on web */
  #rv-tap { display: none; }
  .rv-back-w { display: flex; }
  .rv-count { display: block; }
  .app.asking .hdr-logo { display: block; }
  .app[data-screen="result"] .hdr-back { display: none !important; }
  .sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }

  /* 11 (s11-web) */
  .sv-top { margin-top: 24px; }
}
