/* 사업이나 해볼까? — DESIGN.md 적용본.
   토큰은 CSS 변수 한 곳에만 둔다(빌드 단계 없음). white가 기본, 나머지 셋은 data-theme로 전환.
   기하 규칙: radius 2px만, 그림자 없음(예외: 결제 시트), 강조는 acc 색과 1px 전체 보더로. */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --mute: rgba(17, 17, 17, .6);
  --line: rgba(17, 17, 17, .14);
  --acc: #e5312b;
  --acc-fg: #ffffff;
  --card: #ffffff;
  --field: #fafafa;

  --radius: 2px;
  --wrap: 880px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

[data-theme="ink"] {
  --bg: #0d0d0f;
  --fg: #f4f2ee;
  --mute: rgba(244, 242, 238, .58);
  --line: rgba(244, 242, 238, .16);
  --acc: #e5312b;
  --acc-fg: #ffffff;
  --card: #16161a;
  --field: #111114;
}

[data-theme="paper"] {
  --bg: #f2efe8;
  --fg: #111111;
  --mute: rgba(17, 17, 17, .58);
  --line: rgba(17, 17, 17, .16);
  --acc: #c8102e;
  --acc-fg: #ffffff;
  --card: #ffffff;
  --field: #faf8f3;
}

[data-theme="amber"] {
  --bg: #0f1418;
  --fg: #eef1f0;
  --mute: rgba(238, 241, 240, .58);
  --line: rgba(238, 241, 240, .16);
  --acc: #f0b323;
  --acc-fg: #111111;
  --card: #161d23;
  --field: #0c1013;
}

/* 기기 설정이 어두우면 ink로 간다. data-theme을 직접 지정한 문서는 건드리지 않는다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0d0d0f;
    --fg: #f4f2ee;
    --mute: rgba(244, 242, 238, .58);
    --line: rgba(244, 242, 238, .16);
    --card: #16161a;
    --field: #111114;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
a { color: inherit; }

/* 라벨 — Plex Mono는 여기에만 쓴다. 항상 11~12px, 넓은 자간, mute 또는 acc. */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--mute);
  line-height: 1.4;
}
.label.acc { color: var(--acc); }
.label.lg { font-size: 12px; }

/* --- 공통 셸 --------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: var(--acc);
  flex: none;
}
.top-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
}
.top-status .paid {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* 로그인/로그아웃 (#121). 라벨과 같은 글꼴·색이고, 누를 자리만 위아래로 넓혀 44px 을 넘긴다(폰 폭 11px 글자에서도) — 상단바 높이는 그대로. */
.top-status .account {
  padding: 14px 0;
  margin: -14px 0;
  text-underline-offset: 3px;
}
.top-status .account:hover { color: var(--fg); }
/* 내 대화 (#47) — 로고 바로 옆에 선다. 이 조각이 있을 때만 오른쪽 묶음이 남은 폭을 다 차지하고, 나머지는 오른쪽 끝으로 민다. */
.top-status:has(.mine) { flex: 1; margin-left: 0; }
.top-status .mine {
  margin: -14px auto -14px 0;  /* 누를 자리만 44px — 상단바 높이는 그대로 (로그인 링크와 같은 방식) */
  padding: 14px 0;
  text-decoration: none;
}
.top-status .mine:hover, .top-status .mine.here { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.top-status > * { white-space: nowrap; }
/* 폰 폭에서는 결제 완료 배지를 내려놓는다 — 결제 뒤에는 결제 벽이 사라져 이미 드러나고, 로그아웃은 누를 수 있어야 한다 (#121).
   이 규칙은 "걸린 곳: N" 이 상단바에 있던 때(로고·걸린 곳·결제 완료·로그아웃 ≈ 380px > 335px) 나왔다. 그 수는 2026-09-12 에
   뺐고(창업자 결정) 남은 셋(로고·내 대화·로그아웃 ≈ 222px)은 320px 에도 넉넉하지만, 배지를 되살릴지는 정하지 않았다.
   오른쪽 묶음 11px 도 그때의 여유분이다. */
@media (max-width: 419px) {
  .top-status { font-size: 11px; }
  .top-status .paid { display: none; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 120px; }
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 48px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.7;
}

/* --- 버튼·입력 ------------------------------------------------------------- */
button, input, textarea, select { font: inherit; color: inherit; }

.primary,
.ghost,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.primary {
  font-weight: 600;
  color: var(--acc-fg);
  background: var(--acc);
  border: 1px solid var(--acc);
}
.primary.lg { min-height: 52px; font-size: 16px; width: 100%; }
.primary:disabled,
.primary[aria-disabled="true"] {
  background: transparent;
  color: var(--mute);
  border-color: var(--line);
  cursor: not-allowed;
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  font-size: 14px;
}
.quiet {
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--field);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.6;
}
textarea { resize: vertical; }
textarea:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
::placeholder { color: var(--mute); }

.error {
  color: var(--acc);
  font-size: 14px;
  border: 1px solid var(--acc);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.hint { color: var(--mute); font-size: 13px; }

/* --- 오프닝 세 장 ------------------------------------------------------------ */
/* 충동(타이핑) → 경고(인용) → 약속. 상단바까지 덮는 전체 화면이라 이 장들 위에서만 상단바가 감춰진다.
   지나가면 문서에서 지워지므로 뒤의 진입 화면은 아무것도 모른다. */
body:has(.opening) { overflow: hidden; }
.opening .screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: auto;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.opening .screen[hidden] { display: none; }
.opening .inner { width: 100%; max-width: 760px; text-align: center; }
.opening .cue .label { display: block; animation: rise .5s ease-out both; }
.opening .cue .label[hidden] { display: none; }

.opening .open { padding: 0 24px; }
.opening .open .inner { max-width: 900px; }
.opening .open h1 {
  font-weight: 800;
  font-size: clamp(34px, 8.5vw, 88px);
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: pretty;
  white-space: pre-wrap;
  min-height: 1.1em;
}
/* 블록 커서 — radius 없음. 빈 화면에서 깜빡이다가, 칠 때는 멈추고, 다 치면 다시 깜빡인다. */
.opening .cursor {
  display: inline-block;
  width: .46em;
  height: .86em;
  margin-left: .06em;
  vertical-align: -.06em;
  background: var(--acc);
}
.opening .cursor.blink { animation: blink 1s step-end infinite; }
/* 안내 줄 자리는 처음부터 비워 둔다 — 떴을 때 문장이 위로 밀리지 않게. */
.opening .open .cue { height: 44px; margin-top: 28px; }

.opening .quote .inner { display: flex; flex-direction: column; align-items: center; }
.opening .mark {
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .7;
  height: .5em;
  color: var(--acc);
  user-select: none;
  animation: rise .5s ease-out both;
}
.opening blockquote {
  margin: 22px 0 0;
  font-weight: 700;
  font-size: clamp(24px, 3.9vw, 42px);
  line-height: 1.38;
  letter-spacing: -.03em;
  text-wrap: pretty;
  animation: rise .5s .12s ease-out both;
}
.opening .source { display: flex; flex-direction: column; align-items: center; margin-top: 36px; animation: rise .5s .3s ease-out both; }
.opening .source .name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.opening .source .label { margin-top: 4px; font-weight: 400; }
.opening .source .avatar { width: 96px; height: 96px; margin-top: 20px; }
.opening .quote .cue { margin-top: 52px; animation: rise .5s 1.1s ease-out both; }

.opening .promise h2 {
  font-weight: 800;
  font-size: clamp(26px, 4.8vw, 48px);
  line-height: 1.32;
  letter-spacing: -.035em;
  text-wrap: pretty;
  animation: rise .5s ease-out both;
}
.opening .promise h2 .acc { color: var(--acc); }
.opening .promise p {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
  color: var(--mute);
  animation: rise .5s .18s ease-out both;
}
.opening .promise .cue { margin-top: 52px; animation: rise .5s .9s ease-out both; }

/* --- 진입 화면 ------------------------------------------------------------- */
/* 상단은 광고가 아니라 대화의 첫 마디 — 화자 줄이 먼저, 말이 그 아래. 폭은 심문 스레드의 투자자
   말풍선과 같다(640px). 굵게 쓰지 않는다 — 말이 아니라 헤드라인이 된다. */
.hero { max-width: 640px; margin-bottom: 28px; }
.hero .head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero h1 {
  font-weight: 400;
  font-size: clamp(21px, 3.2vw, 30px);
  line-height: 1.42;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.hero .sub { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--mute); }

.intake { display: grid; gap: 14px; }
.intake .field-wrap { position: relative; }
/* 두 번째 걸음 — 단계를 고르면 선다 (saupina#145). 숨김 장치는 `hidden` 속성 하나뿐이므로
   (warmblood-kr/saupina#1) 저자 display 가 UA 기본을 이기는 자리에서는 직접 되살린다. */
.intake .step2 { display: grid; gap: 14px; }
.intake .step2[hidden] { display: none; }
/* 단계 선택지와 그 아래 질문 사이 — 새 질문이 시작된다는 것이 간격으로 보여야 한다. */
.intake .ask { margin: 10px 0 0; }
.intake .sub { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
/* 한 줄이면 되는 답이다 — 8줄짜리 빈 칸은 그 자체로 "길게 써야 하나"를 묻는다 (saupina#145). */
.intake textarea { min-height: 120px; padding: 18px; font-size: 16px; }
.intake .example {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  min-height: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
}
.notes { display: grid; gap: 4px; color: var(--mute); font-size: 12px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.facts .n { display: block; font-weight: 700; font-size: 28px; color: var(--acc); line-height: 1.2; }
.facts p { margin: 6px 0 0; font-size: 13px; color: var(--mute); }

/* --- 대화 스레드 ----------------------------------------------------------- */
.exchange { display: grid; gap: 28px; }
/* 결제 전 1열에서는 컬럼을 투자자 말풍선 폭에 맞춘다. 컨테이너가 더 넓으면 답이 쌓이기 전까지
   오른쪽이 통째로 비어 구멍처럼 보인다. 창업자 답은 그 안에서 오른쪽에 붙어 좌우 대비를 지킨다. */
.exchange.solo { max-width: 720px; }
.exchange.paid {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .exchange.paid { grid-template-columns: 1fr; }
}

.definition {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 22px;
}
/* 결제 후 데스크톱에서는 왼쪽 사이드바로 스크롤을 따라온다. 한 열로 접힌 모바일에서는 따라오기를
   푼다 — 카드가 화면 위에 붙은 채 대부분을 덮고 대화가 그 뒤로 지나가 답을 이어갈 수 없다(#60). */
.exchange.paid .definition { position: sticky; top: 76px; }
@media (max-width: 720px) {
  .exchange.paid .definition { position: static; }
}
.definition .head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.definition .head .v { margin-left: auto; color: var(--acc); }
.definition .body { font-weight: 500; font-size: 17px; line-height: 1.55; margin: 0; }
.definition .later {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--mute);
}

.elements { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.element { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg); font-weight: 600; }
.element .lamp { width: 7px; height: 7px; border-radius: 1px; background: var(--acc); flex: none; }
.element.confirmed { animation: rise .35s ease-out; }
.element.count { margin-left: auto; color: var(--mute); font-weight: 400; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }

.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.thread .turn { display: grid; gap: 8px; }
.turn.investigator { max-width: 640px; }
.turn.investigator .head { display: flex; align-items: center; gap: 10px; }
/* 화자 표시. radius 2px 규칙의 유일한 예외로 원형을 쓴다 — 사람 얼굴 자리라는 것이
   한눈에 읽혀야 한다. 그림은 색이 박힌 일러스트라 배색을 따라가지 않는다(프로필 사진의
   보통 성격이다). 바탕색은 그림과 같은 빨강이라 그림이 아직 안 왔을 때도 자리가 비지 않는다.
   얼굴이 원 가운데 오도록 살짝 키워 위쪽을 보여 준다. */
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acc) url("../img/investor.960aa053874f.png") 50% 22% / 128% no-repeat;
  flex: none;
}
.turn.investigator .text {
  /* 지시서는 500이지만 Pretendard의 500은 화면에서 굵게 읽힌다. 크기는 그대로 두고 무게만 낮춘다. */
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -.015em;
}
.turn.founder {
  justify-self: end;
  max-width: min(560px, 88%);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  gap: 6px;
}
.turn.founder.weak { border-color: var(--acc); }
.turn.founder .head { display: flex; align-items: baseline; gap: 12px; }
.turn.founder .head .flag { margin-left: auto; color: var(--acc); }
.turn.founder .text { font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.thread .turn.latest { animation: rise .35s ease-out; }
/* 말이 끝난 뒤 답 자리(질문·선택지·입력칸)가 올라온다 — 말풍선은 이미 있었으므로 그대로 (saupina#138). */
.answer.arrive, .result.arrive { animation: rise .35s ease-out; }
/* 흘러들어오는 동안에는 줄바꿈이 아직 <br>이 아니라 글자다 (saupina#19). */
.turn.investigator .text.streaming { white-space: pre-wrap; }
.hero[hidden], .facts[hidden], .error[hidden] { display: none; }

/* 대기 표시는 `hidden` 속성 하나로만 숨긴다 (warmblood-kr/saupina#1).
   저자 스타일이 UA 기본 display:none을 이기므로, 숨김 규칙을 여기서 직접 되살린다. */
.thinking { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.thinking[hidden] { display: none; }
/* 말이 끝난 뒤 판정을 기다리는 동안 말풍선 아래에 앉는다 (saupina#138). 본문과 살짝 띄운다. */
.turn.investigator > .thinking { margin-top: 12px; }
.thinking .elapsed { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.spinner { width: 7px; height: 7px; border-radius: 1px; background: var(--acc); flex: none; animation: blink 1s infinite; }

/* 입력창은 스레드 끝에 이어 붙는다 — 화면 아래에 고정하지 않는다 (saupina#44).
   고정하면 답을 보낸 직후 모바일 화면을 입력창이 차지하고, 투자자가 지금 무슨 말을 쓰는
   중인지는 그 아래로 밀려 화면 밖으로 나간다. 말하는 쪽이 늘 화면 안에 있어야 한다. */
.answer {
  display: grid;
  gap: 10px;
  padding: 20px 0 8px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.answer textarea { min-height: 96px; }
/* 답 자리 위에 다시 세운 "지금 답할 질문" (saupina#138). 투자자 본문과 같은 크기, 굵게 —
   긴 말에서 지금 묻는 것을 찾을 필요가 없어야 한다. */
.ask { font-weight: 600; font-size: 17px; line-height: 1.5; letter-spacing: -.015em; margin: 0 0 4px; }
/* 선택지 — DESIGN.md 3-5 의 버튼 규칙(1px 보더, 선택 시 acc 보더 + field 배경, radius 2px).
   진입 화면의 단계 선택지와 심문 화면의 답 선택지가 같은 규칙을 쓴다 (saupina#145) — 두 자리는
   같은 일(질문 한 줄, 그 아래 고를 답)을 하므로 모양이 갈리면 같은 대화로 읽히지 않는다. */
.choices { display: grid; gap: 8px; }
.choice {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--acc); background: var(--field); }
.choice:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.choice .label-text { font-weight: 600; font-size: 15px; }
.choice .note { font-size: 13px; color: var(--mute); line-height: 1.5; }
/* "직접 적기"는 선택지와 같은 급이되 다른 종류다 — 점선 보더로 구분한다. 고르면 다른 선택지와 같은 강조. */
.choice.free { border-style: dashed; }
.answer .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.answer .row .hint { font-size: 12px; }
.answer .row .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 투자자가 말을 쓰는 동안 입력창은 화면에서 내려간다 (saupina#61). 잠그기만 하면 "아직 내
   차례인가"로 읽히고, 모바일에서는 그 상태로 화면 아래 절반을 차지한다.
   저자 스타일(display:grid)이 UA 기본 [hidden]{display:none}을 이기므로 여기서 직접 되살린다 —
   숨김 장치는 `hidden` 속성 하나뿐이다 (warmblood-kr/saupina#1). */
.intake[hidden], .answer[hidden] { display: none; }

.test-payment-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--acc);
  margin: 0 0 20px;
}

/* --- 결제 시트 ------------------------------------------------------------- */
body:has(.paywall) { overflow: hidden; }
.paywall {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .28);
}
.paywall .sheet {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-top: 3px solid var(--acc);
  padding: 28px 24px 96px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  animation: sheet .35s cubic-bezier(.2, .8, .2, 1);
  display: grid;
  gap: 16px;
}
.paywall h2 {
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35;
}
.paywall p { margin: 0; font-size: 15px; color: var(--mute); }
.paywall .foot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.paywall .foot-row .later { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

/* --- 결제 페이지 ----------------------------------------------------------- */
.pay { display: grid; gap: 16px; max-width: 560px; }
.pay h1 { font-weight: 800; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; }
.pay p { margin: 0; font-size: 15px; color: var(--mute); }
.pay #payment-method, .pay #payment-agreement { margin: 0 -12px; }
.pay .strong { color: var(--fg); }
/* `.pay p`가 문단을 흐리게 만들므로, 오류는 여기서 다시 강조색으로 되돌린다. */
.pay .error { color: var(--acc); }

/* --- 세션 결과 ------------------------------------------------------------- */
.result { display: grid; gap: 24px; }
.result .head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.result h2 { font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -.02em; }
.result .head .meta { margin-left: auto; }
.result .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 720px) { .result .cols { grid-template-columns: 1fr; } }
.assignment {
  background: var(--card);
  border: 2px solid var(--acc);
  padding: 26px 28px;
  display: grid;
  gap: 10px;
}
.assignment .what { font-weight: 700; font-size: clamp(20px, 3vw, 26px); line-height: 1.4; margin: 0; }
.assignment .why { margin: 0; font-size: 13px; color: var(--mute); }
.result .box { border: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 10px; }
.result .box + .box { margin-top: 20px; }
.result .box ol, .result .box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result .box li { display: flex; gap: 10px; font-size: 14px; }
.result .box li .no { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--acc); flex: none; }

.feedback { border: 1px solid var(--line); padding: 20px 22px; display: grid; gap: 18px; }
.feedback fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.feedback legend { font-weight: 600; font-size: 15px; padding: 0 0 8px; }
.feedback label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; }
.feedback-done { color: var(--mute); font-size: 14px; }

/* --- 로그인·회원가입 ------------------------------------------------------- */
.entrance { max-width: 420px; display: grid; gap: 20px; }
.entrance h1 { font-weight: 800; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; }
.entrance .why { margin: 0; font-size: 15px; color: var(--mute); }
.entrance form { display: grid; gap: 12px; }
.entrance .rows { display: grid; gap: 12px; }
.entrance .row { display: grid; gap: 6px; }
.entrance .row.check { grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; cursor: pointer; }
.entrance .row.check input { width: auto; }
.entrance .errors { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.entrance .social { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.entrance .alt { font-size: 13px; color: var(--mute); }
.entrance .alt a { text-decoration: underline; text-underline-offset: 3px; }
/* 로그인 — 구글이 먼저, 이메일은 접는다 (#122). 맨 위에 선 소셜 묶음은 위 선을 떼고 버튼을 주 버튼 크기로 키운다. */
.entrance .social.first { padding-top: 0; border-top: 0; }
.entrance .social.first .ghost { width: 100%; min-height: 52px; font-size: 15px; gap: 10px; }
.entrance .social .logo { flex: none; }
.entrance .email-login { padding-top: 8px; border-top: 1px solid var(--line); }
.entrance .email-login > summary { cursor: pointer; list-style: none; }
.entrance .email-login > summary::-webkit-details-marker { display: none; }
.entrance .email-login > form { margin-top: 12px; }
.entrance .email-login > .alt { margin: 16px 0 0; }

/* --- 운영 화면 ------------------------------------------------------------- */
.dashboard { display: grid; gap: 12px; }
.dashboard h1 { font-weight: 800; font-size: clamp(22px, 3.4vw, 32px); }
.dashboard h2 { margin-top: 16px; font-size: 17px; font-weight: 700; }
.dashboard .note { margin: 0; font-size: 14px; color: var(--mute); }
.dashboard .funnel-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.dashboard .funnel-filter input { width: 6em; }
.dashboard .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; }
.dashboard .funnel { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dashboard .funnel th, .dashboard .funnel td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.dashboard .funnel th[scope="row"], .dashboard .funnel thead th:first-child { text-align: left; font-weight: 500; }
.dashboard .funnel .left { font-size: 12px; color: var(--acc); }
.dashboard .funnel .aside { color: var(--mute); }

/* --- 애니메이션 ------------------------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .element.confirmed, .thread .turn.latest, .paywall .sheet { animation: none; }
  .spinner { animation: none; }
  /* 오프닝은 타이핑을 건너뛰고 완성된 문장을 띄운다. 커서 깜빡임만 남긴다. */
  .opening .cue .label, .opening .mark, .opening blockquote, .opening .source,
  .opening .promise h2, .opening .promise p { animation: none; }
}

/* --- 이용약관·개인정보 처리방침 ---------------------------------------------- */
/* 읽는 화면이다. 장식 없이 폭만 좁히고 제목 간격으로 조를 가른다. 표 대신 dl — 폰에서 옆으로 넘치지 않는다. */
.legal { max-width: 680px; display: grid; gap: 14px; }
.legal h1 { font-weight: 800; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; }
.legal h2 { margin-top: 28px; font-size: 17px; font-weight: 700; }
.legal h3 { margin-top: 10px; font-size: 15px; font-weight: 700; }
.legal p, .legal li { margin: 0; font-size: 15px; }
.legal ul, .legal ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(6em, max-content) 1fr;
  gap: 6px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
}
.legal dt { color: var(--mute); }
.legal dd { margin: 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.foot .legal-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.foot .legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.foot .company { margin: 4px 0 0; }


/* --- 내 대화 (#47, DESIGN.md 3-7) --------------------------------------------- */
/* 줄 하나가 정의 한 문장이라 880px 은 읽기 어렵다. */
.mine-list { max-width: 720px; display: grid; gap: 40px; }
.mine-list .group { display: grid; gap: 16px; }
.mine-list .head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* 고스트 버튼이 아니다 — 44px 상자가 11px 라벨과 나란히 서면 줄이 기울어 보인다. 누를 자리만 넓힌다. */
.mine-list .head .start {
  margin-left: auto;
  padding: 14px 0;
  margin-top: -14px;
  margin-bottom: -14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mine-list .head .start:hover { color: var(--fg); }
/* acc 보더 상자는 "지금 할 일"의 표시다 — 끝난 것에는 주지 않는다. */
.mine-list .item {
  background: var(--card);
  border: 1px solid var(--acc);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}
.mine-list .item .body { margin: 0; font-weight: 500; font-size: 19px; line-height: 1.55; letter-spacing: -.015em; }
.mine-list .item .body .mute { color: var(--mute); font-weight: 400; }
.mine-list .item .act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mine-list .item .act .primary { margin-left: auto; }
.mine-list .done { gap: 0; }
.mine-list .done > .label { margin-bottom: 12px; }
.mine-list .done a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 18px 2px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.mine-list .done a:last-child { border-bottom: 1px solid var(--line); }
.mine-list .done .body { font-size: 15px; line-height: 1.6; color: var(--mute); }  /* 끝난 대화는 물러난다 */
.mine-list .done a:hover .body { color: var(--fg); }
.mine-list .empty { display: grid; gap: 16px; justify-items: start; }
.mine-list .empty h1 { font-weight: 400; font-size: 21px; line-height: 1.4; }
.mine-list .empty p { margin: 0; font-size: 15px; color: var(--mute); }
@media (max-width: 419px) {
  .mine-list .item { padding: 18px; }
  .mine-list .item .act .primary { width: 100%; margin-left: 0; }  /* 라벨이 위, 버튼이 전체 폭으로 내려선다 */
  .mine-list .done a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mine-list .done .state { order: -1; }  /* 오른쪽에 두면 정의가 너무 좁아진다 — 상태가 정의 위로 */
}

/* --- 대화 공유 (#142) ------------------------------------------------------- */
/* 상단바의 "공유" — 로그인 링크와 같은 글꼴·색·누를 자리(44px). 버튼이지만 링크처럼 선다. */
.top-status .share-open {
  background: transparent;
  border: 0;
  padding: 14px 0;
  margin: -14px 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  text-underline-offset: 3px;
}
.top-status .share-open:hover { color: var(--fg); text-decoration: underline; }
/* 대화상자. 그림자 없음(DESIGN.md STEP 1) — 배경을 어둡게 눌러 떠 있음을 말한다(결제 시트와 같은 값). */
dialog.share {
  width: min(100% - 32px, 460px);
  margin: auto;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  display: none;
  gap: 16px;
}
dialog.share[open] { display: grid; }
dialog.share::backdrop { background: rgba(0, 0, 0, .28); }
.share h2 { font-weight: 800; font-size: 20px; line-height: 1.35; margin: 0 40px 4px 0; }
.share .close { position: absolute; top: 8px; right: 8px; margin: 0; }
.share .close .quiet { min-height: 44px; padding: 10px 12px; }
.share input[readonly] {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--fg);
}
.share .hint { margin: 0; font-size: 13px; color: var(--mute); }
.share .link-row { display: flex; gap: 8px; align-items: center; }
.share .link-row input { font-family: var(--mono); font-size: 12px; letter-spacing: 0; flex: 1; min-width: 0; }
.share .link-row .ghost { flex: none; white-space: nowrap; }
/* 받은 사람의 화면 — 위에 띠 하나, 아래에 자기 사업을 물으러 가는 길 하나. */
.shared-banner {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mute);
  margin: 0 0 20px;
}
.shared-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.shared-cta p { margin: 0; font-weight: 600; font-size: 16px; flex: 1; min-width: 200px; }
