/* 글꼴(Pretendard, Nanum Myeongjo, IBM Plex Mono)은 각 HTML <head>에서 화면을 막지 않게 불러옵니다. */

:root {
  --bg: #f2eee4;
  --surface: #fbf9f4;
  --surface-2: #e7e1d3;
  --ink: #1b1d1c;
  --ink-2: #45484a;
  --muted: #66635a;
  --line: #d9d2c2;
  --accent: #2f4a40;
  --accent-2: #3f6356;
  --accent-ink: #ffffff;
  --accent-soft: #e5ece8;
  --highlight: #ffe24a;
  --danger: #b3372e;
  --me: #fee500;
  --me-ink: #1f1f1f;
  --boss: #ffffff;
  --chat-bg: #b7c6bf;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 8px 24px -12px rgba(20, 30, 25, .18);
  --max: 1080px;
  --stamp: #c4352b;
  --paper: #fffdf8;
  --note: #ffe680;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.mark { background: linear-gradient(transparent 58%, var(--highlight) 58%); padding: 0 2px; }

/* ── 헤더 ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 3px double var(--ink);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

@media (max-width: 560px) {
  .brand span { display: none; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
}

/* ── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; padding: 15px 20px; font-size: 16.5px; }

/* ── 히어로 ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(560px, 80%); height: 10px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(#ffffff, #e4ede8);
  box-shadow: 0 0 70px 30px rgba(235, 255, 245, .9);
  animation: flicker 8s infinite;
}
@keyframes flicker { 0%, 91%, 95%, 100% { opacity: 1; } 92% { opacity: .5; } 94% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent-2); letter-spacing: .02em; }
.hero h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 48px); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; }
.hero .lead { margin: 0 0 28px; font-size: clamp(16px, 2vw, 18.5px); color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }

.preview {
  background: var(--chat-bg);
  border-radius: 24px;
  padding: 20px 16px;
  box-shadow: var(--shadow), 0 30px 60px -30px rgba(20, 40, 30, .35);
  display: grid;
  gap: 10px;
  transform: rotate(1.2deg);
}
.preview .row { animation: pop .5s both; }
.preview .row:nth-child(2) { animation-delay: .5s; }
.preview .row:nth-child(3) { animation-delay: 1.1s; }
.preview .row:nth-child(4) { animation-delay: 1.7s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .preview .row { animation: none; } }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 44px; }
  .preview { transform: none; }
}

/* ── 섹션 공통 ───────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin: 0 0 28px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.03em; line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); }
.center { text-align: center; }

/* ── 시뮬레이터 설정 카드 ───────────────────── */
.sim-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.demo-banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #fff8db;
  border: 1px solid #efdc91;
  font-size: 14px;
}

.field { display: block; margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; }
.field-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .15s, background .15s;
}
input[type="text"]:focus, textarea:focus { background: var(--surface); border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 2px var(--accent); }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .presets { grid-template-columns: 1fr; } }

.preset { position: relative; display: block; cursor: pointer; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  height: 100%;
  padding: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.preset-body .emoji { grid-row: span 2; font-size: 26px; line-height: 1; }
.preset-body b { font-size: 15.5px; }
.preset-body small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.preset:hover .preset-body { border-color: #c9cbc3; }
.preset input:checked + .preset-body { border-color: var(--accent); background: var(--accent-soft); }
.preset input:focus-visible + .preset-body { outline: 2px solid var(--accent); outline-offset: 2px; }

.error { color: var(--danger); font-size: 14px; margin: -8px 0 16px; }
.fineprint { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ── 상사 꾸미기 ─────────────────────────────── */
.look { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 420px) { .look { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; } }
.look-preview {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #dcd7cb;
  border: 1px solid var(--line);
}
.look-preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.look-controls { display: grid; gap: 12px; min-width: 0; }
.look-row { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
select {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
}
.look-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.look-pair .look-row[hidden] { display: none; }
.look-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.look-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.look-checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.look-describe { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.look-describe-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.look-describe input {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
}
.look-note { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }

/* 좁은 화면: 꾸미기 칸을 접어 두고, '세부 꾸미기 열기'를 누르면 아래에서 올라오는 시트로 엶 */
.look-sheet-head, .look-open-box, .look-backdrop { display: none; }
@media (max-width: 640px) {
  .look { grid-template-columns: 112px minmax(0, 1fr); }
  .look:not(.is-open) .look-controls { display: none; }
  .look:not(.is-open) .look-open-box { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
  .look-open-box p { margin: 0; }
  .look.is-open {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 41;
    max-height: 84dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 14px 12px;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--paper);
    color: var(--ink);
    border-top: 1.5px solid var(--ink);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -6px 0 var(--surface-2);
    animation: sheet-up .26s cubic-bezier(.2, .9, .3, 1);
  }
  .look.is-open .look-sheet-head {
    grid-column: 1 / -1;
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0 10px;
    background: var(--paper);
    border-bottom: 3px double var(--ink);
    font-family: var(--serif); font-size: 17px;
  }
  /* 손잡이 */
  .look.is-open .look-sheet-head::before {
    content: ""; position: absolute; top: 7px; left: 50%;
    width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--line);
  }
  .look.is-open .look-preview { position: sticky; top: 66px; }
  .look-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(15, 18, 17, .45); animation: fade-in .2s; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .look.is-open, .look-backdrop { animation: none !important; } }
body.no-scroll { overflow: hidden; }
/* 성향·말투 칩: 여러 개 골라 붙이는 서류 꼬리표 */
.trait-group { display: grid; gap: 8px; margin-bottom: 14px; }
.trait-head { font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, background .15s, transform .12s;
}
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { border-color: var(--ink); background: var(--accent-soft); font-weight: 600; box-shadow: 2px 2px 0 var(--line); }
.chip input:checked + span::before { content: "✓ "; color: var(--accent); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .chip span { transition: none; } }
.trait-extra { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.trait-extra em { font-style: normal; font-weight: 400; color: var(--muted); }
.trait-extra textarea { font-weight: 400; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.swatch input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface), 0 0 0 2px var(--accent); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── 제목 왼쪽, 내용 오른쪽 ─────────────────── */
.split { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px 56px; align-items: start; }
.split > .section-head { margin: 0; position: sticky; top: 88px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .section-head { position: static; } }

/* ── 사용 방법: 상자 없이 번호 + 구분선 ─────────── */
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── 가이드 카드 ─────────────────────────────── */
/* ── 가이드: 대표 글 하나 + 목록 ─────────────── */
.tag { justify-self: start; font-size: 12.5px; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.guides { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }
.guide-feature {
  display: grid; align-content: end; gap: 8px;
  min-height: 300px; padding: 28px;
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
}
.guide-feature .guide-emoji { font-size: 40px; margin-bottom: auto; }
.guide-feature .tag { justify-self: start; background: rgba(255,255,255,.14); color: var(--accent-ink); }
.guide-feature h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.03em; }
.guide-feature p { margin: 0; opacity: .85; }
.guide-feature .meta { font-size: 14px; font-weight: 700; color: var(--highlight); }
.guide-feature:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.guide-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.guide-list .guide-emoji { font-size: 22px; width: 32px; text-align: center; flex-shrink: 0; }
.guide-text { display: grid; gap: 2px; min-width: 0; }
.guide-text b { font-size: 16px; line-height: 1.45; }
.guide-text small { font-size: 13px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* ── 광고 영역 ───────────────────────────────── */
.ad-slot { width: 100%; max-width: 970px; margin: 0 auto; }
/* 광고가 늦게 들어와도 글이 밀리지 않게 자리를 미리 잡아 둠 */
.ad-slot:not([hidden]) { min-height: 116px; }
@media (min-width: 768px) { .ad-slot:not([hidden]) { min-height: 106px; } }
.ad-slot[data-slot="article"]:not([hidden]), .ad-slot[data-slot="result"]:not([hidden]) { min-height: 266px; }
.sidebar .ad-slot:not([hidden]) { min-height: 616px; }
.ad-slot::before {
  content: "광고";
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
}
.ad-band { padding: 28px 16px; }
.article .ad-slot { margin: 32px 0; }

/* ── 푸터 ─────────────────────────────────────── */
.site-footer { background: #1f2422; color: #b9c0bc; padding: 48px 0 40px; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand span { display: inline; }
.site-footer .foot-h { margin: 0 0 10px; color: #fff; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #b9c0bc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; line-height: 1.7; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #343b38; padding-top: 20px; font-size: 13px; color: #87908b; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .about-col { grid-column: 1 / -1; } }

/* ── 글 페이지 ───────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}
.page-layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 960px) { .page-layout { grid-template-columns: minmax(0, 1fr); } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px;
  min-width: 0;
}
@media (max-width: 600px) { .article { padding: 28px 20px; border-radius: 16px; } }
.article h1 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 34px); line-height: 1.3; letter-spacing: -.03em; }
.article .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -.02em; line-height: 1.4; }
.article h3 { margin: 26px 0 6px; font-size: 17px; }
.article p, .article li { font-size: 16.5px; line-height: 1.85; color: #2a2f2c; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 4px 0; }
.article blockquote {
  margin: 14px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-weight: 500;
}
.article a:not(.btn) { color: var(--accent-2); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.article th { background: var(--bg); font-weight: 700; white-space: nowrap; }
.note { padding: 14px 16px; border-radius: 12px; background: #fff8db; border: 1px solid #efdc91; font-size: 15px !important; }

.cta-box {
  margin: 40px 0 0;
  padding: 28px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.cta-box h2 { margin: 0 !important; font-size: 20px !important; color: #fff; }
.cta-box p { margin: 0; color: #d9e5df !important; font-size: 15.5px !important; }
.cta-box .btn { background: var(--highlight); color: #1d211f; }

.related { margin-top: 40px; }
.related h2 { font-size: 18px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { display: block; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.related a:hover { border-color: var(--accent-2); }

.sidebar { position: sticky; top: 84px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.side-card h3 { margin: 0 0 6px; font-size: 16px; }
.side-card p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.side-card ul a { text-decoration: none; }
.side-card ul a:hover { text-decoration: underline; }
@media (max-width: 960px) { .sidebar { position: static; } .sidebar .ad-slot { display: none; } }

/* ── 면담 화면: 상사 자리 장면 + 대화창 ──────────── */
.chat-screen { min-height: 100dvh; display: flex; justify-content: center; background: #1b1f1e; }
.vn {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #1b1f1e;
}
.chat-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.icon-btn { border: 0; background: none; font-size: 30px; line-height: 1; min-width: 44px; min-height: 44px; padding: 0 6px 4px; color: var(--ink); white-space: nowrap; }
.icon-btn[data-armed="true"], .text-btn[data-armed="true"] { font-size: 13.5px; font-weight: 700; color: var(--danger); }
.text-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; flex-shrink: 0; }
.header-actions { margin-left: auto; display: flex; gap: 6px; }
@media (max-width: 420px) { .header-actions .text-btn { padding: 6px 9px; font-size: 13px; } }

.who { display: grid; min-width: 0; line-height: 1.35; }
.who strong { font-size: 16px; }
.persona-tag { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 장면: 남는 높이를 모두 차지하고, 그림은 비율을 지키며 꽉 채움 */
.stage { position: relative; flex: 1 1 auto; min-height: 220px; overflow: hidden; background: #dcd7cb; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

#scene .mood { display: none; }
#scene[data-boss-mood="neutral"] .boss-neutral,
#scene[data-boss-mood="smug"] .boss-smug,
#scene[data-boss-mood="angry"] .boss-angry,
#scene[data-boss-mood="sigh"] .boss-sigh,
#scene[data-boss-mood="think"] .boss-think,
#scene[data-boss-mood="shock"] .boss-shock,
#scene[data-boss-mood="glare"] .boss-glare,
#scene[data-boss-mood="hurt"] .boss-hurt,
#scene[data-boss-mood="soft"] .boss-soft,
#scene[data-emp-mood="neutral"] .emp-neutral,
#scene[data-emp-mood="talk"] .emp-talk,
#scene[data-emp-mood="nervous"] .emp-nervous,
#scene[data-emp-mood="down"] .emp-down { display: inline; }
#scene[data-emp="male"] .emp-female,
#scene[data-emp="female"] .emp-male { display: none; }
#scene .bh { display: none; }
#scene[data-boss-hair="m-default"] .bh-m-default,
#scene[data-boss-hair="m-part"] .bh-m-part,
#scene[data-boss-hair="m-sport"] .bh-m-sport,
#scene[data-boss-hair="m-bald"] .bh-m-bald,
#scene[data-boss-hair="f-perm"] .bh-f-perm,
#scene[data-boss-hair="f-bob"] .bh-f-bob,
#scene[data-boss-hair="f-bun"] .bh-f-bun { display: inline; }
#scene[data-boss-gender="male"] .bg-female,
#scene[data-boss-gender="female"] .bg-male { display: none; }
/* 안경·수염·주름·점: 꾸미기에서 고른 것만 보임 (수염은 남자 상사만) */
#scene .gl, #scene .fh, #scene .wr, #scene .mole { display: none; }
#scene[data-boss-glasses="horn"] .gl-horn,
#scene[data-boss-glasses="thin"] .gl-thin,
#scene[data-boss-gender="male"][data-boss-facial="mustache"] .fh-mustache,
#scene[data-boss-gender="male"][data-boss-facial="beard"] .fh-beard,
#scene[data-boss-gender="male"][data-boss-facial="both"] .fh,
#scene[data-boss-wrinkles="on"] .wr,
#scene[data-boss-mole="on"] .mole,
#scene[data-boss-flush="on"] .flush,
#scene[data-boss-bags="on"] .bags { display: inline; }
#scene .flush, #scene .bags { display: none; }
/* 체형: 얼굴은 도트 그림이 셋, 몸통·팔은 폭을 늘이거나 줄임 */
#scene .bf, #scene .belly, #scene .of { display: none; }
#scene[data-boss-body="slim"] .bf-slim,
#scene[data-boss-body="normal"] .bf-normal,
#scene[data-boss-body="wide"] .bf-wide,
#scene[data-boss-body="wide"] .belly,
#scene[data-boss-outfit="vest"] .of-vest,
#scene[data-boss-outfit="jacket"] .of-jacket,
#scene[data-boss-outfit="knit"] .of-knit { display: inline; }
#scene .boss-torso, #scene .boss-hands { transform-box: view-box; transform-origin: 450px 384px; }
#scene[data-boss-body="slim"] .boss-torso { transform: scaleX(.88); }
#scene[data-boss-body="wide"] .boss-torso { transform: scaleX(1.2); }
#scene[data-boss-body="slim"] .boss-hands { transform: scaleX(.92); }
#scene[data-boss-body="wide"] .boss-hands { transform: scaleX(1.1); }

#scene .mouth { transform-box: fill-box; transform-origin: center; }
#scene[data-boss-talking="true"] #boss .mood .mouth { animation: talk .16s infinite alternate; }
@keyframes talk { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
#scene[data-boss-mood="angry"] #boss { animation: shake .35s 2; transform-box: fill-box; transform-origin: bottom center; }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
#scene .think-dot { animation: think 1.2s infinite; }
#scene .think-dot:nth-of-type(2) { animation-delay: .2s; }
#scene .think-dot:nth-of-type(3) { animation-delay: .4s; }
@keyframes think { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #scene .mouth, #scene #boss, #scene .think-dot { animation: none !important; }
}

/* 대화창: 게임 대사창처럼 어두운 판 + 이름표 */
.dialogue { position: relative; padding: 10px 12px 0; background: #1b1f1e; display: grid; gap: 8px; max-height: 58%; overflow-y: auto; flex-shrink: 0; }
.dlg-mine {
  justify-self: end;
  max-width: 85%;
  margin: 0;
  padding: 7px 12px;
  border-radius: 12px 12px 4px 12px;
  background: #fee500;
  color: #1f1f1f;
  font-size: 14.5px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.dlg-mine b { flex-shrink: 0; font-size: 12.5px; color: #6b5d00; padding-top: 1px; }
.dlg-mine span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dlg-box {
  position: relative;
  margin-top: 10px;
  padding: 20px 18px 14px;
  border-radius: 16px;
  background: #fbfaf6;
  color: #1d211f;
  border: 3px solid #2f4a40;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.dlg-name {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 3px 12px;
  border-radius: 8px;
  background: #2f4a40;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.dlg-text { margin: 0; min-height: 3.1em; font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.dlg-box.is-thinking .dlg-text { color: #7a817d; letter-spacing: .2em; animation: think 1.2s infinite; }
.dlg-box.is-error { border-color: #b3372e; }
.dlg-box.is-error .dlg-name { background: #b3372e; }
.dlg-extra { display: grid; gap: 8px; cursor: auto; }
.dlg-extra:not(:empty) { margin-top: 10px; }
.dlg-box .feedback-btn { background: #eeeee9; border-color: #e1e2dc; color: #4a514d; }
.dlg-box .feedback-btn[aria-pressed="true"] { background: #fff; border-color: #2f4a40; color: #1d211f; }
.dlg-box .feedback-thanks { color: #4a514d; }
.dlg-box .feedback-panel { background: #f1f0ea; box-shadow: none; color: #1d211f; }
.dlg-box .feedback-panel textarea { background: #fff; color: #1d211f; border-color: #e1e2dc; }
.dlg-box .feedback-notice { color: #6a706c; }
.dlg-box .text-btn { background: #fff; color: #1d211f; border-color: #e1e2dc; }
.dlg-box .btn-primary { background: #2f4a40; color: #fff; }

.chat-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 14px 0; background: #1b1f1e; font-size: 12.5px; color: #9aa39e; }
.turns-left { font-weight: 700; color: #cfd6d2; font-variant-numeric: tabular-nums; }
.turns-left.is-low { color: #ffe24a; }
.turnstile-box { display: flex; justify-content: center; padding: 8px 12px 0; background: #1b1f1e; }
.ai-chip { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); font-size: 11.5px; font-weight: 700; }
.dlg-box.is-notice { border-color: #c79a1e; }
.dlg-box.is-notice .dlg-name { background: #c79a1e; }
.composer textarea:disabled { opacity: .6; }
.composer { display: flex; gap: 8px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: #1b1f1e; }
.composer textarea { resize: none; max-height: 120px; background: #2a302e; color: #f1f2ee; border-color: #3a413e; }
.composer textarea::placeholder { color: #8c948f; }
.composer textarea:focus { background: #303735; border-color: #8fc1ad; box-shadow: none; }
.composer .btn { flex-shrink: 0; padding: 0 18px; background: #ffe24a; color: #1d211f; }
.composer .btn:hover { background: #ffea75; }

/* 면담 결과 */
.result-sheet {
  position: absolute;
  inset: var(--chat-head, 60px) 0 0;
  z-index: 6;
  overflow-y: auto;
  background: var(--bg);
}
.result-inner { max-width: 520px; margin: 0 auto; padding: 28px 18px 40px; display: grid; gap: 14px; }
.result-eyebrow { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--accent-2); }
.result-title { margin: 0; font-size: 32px; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.result-score { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.result-score b { font-size: 56px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.result-score span { color: var(--muted); font-weight: 600; }
.result-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.result-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--highlight)); transition: width .8s ease-out; }
@media (prefers-reduced-motion: reduce) { .result-bar span { transition: none; } }
.result-desc { margin: 0; font-size: 16px; color: var(--ink-2); }
.result-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-stats li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.result-stats span { font-size: 12.5px; color: var(--muted); }
.result-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.result-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#share-btn { grid-column: 1 / -1; }
.share-msg { margin: 0; font-size: 14px; color: var(--accent-2); }
.share-fallback { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.result-guide { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-weight: 700; text-decoration: none; }
.result-open { width: 100%; }

/* 쿠팡 파트너스 추천 */
.partners { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.article .partners { margin: 32px 0 0; }
.partners h3 { margin: 0; font-size: 15.5px; }
.partners-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 400px) { .partners-list { grid-template-columns: 1fr; } }
.partner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; min-width: 0; }
.partner:hover { border-color: var(--accent-2); }
.partner-emoji { font-size: 24px; }
.partner-text { display: grid; min-width: 0; }
.partner-text b { font-size: 14px; }
.partner-text small { font-size: 12.5px; color: var(--muted); }
.partners-note { margin: 0; font-size: 11.5px !important; color: var(--muted) !important; line-height: 1.5 !important; }

/* 대화 기록 */
.log-sheet {
  position: absolute;
  inset: var(--chat-head, 60px) 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.log-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.log-head h2 { margin: 0; font-size: 17px; }
.log-list { list-style: none; margin: 0; padding: 16px; overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.log-list li { display: grid; gap: 4px; max-width: 88%; }
.log-list b { font-size: 12.5px; color: var(--muted); }
.log-list p { margin: 0; padding: 9px 13px; border-radius: 14px; line-height: 1.55; white-space: pre-wrap; }
.log-boss p { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.log-me { justify-self: end; }
.log-me b { text-align: right; }
.log-me p { background: #fee500; color: #1f1f1f; border-top-right-radius: 4px; }
.log-empty { color: var(--muted); }

/* 메인 히어로의 채팅 미리보기 말풍선 */
.avatar {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.system-note { align-self: center; margin: 4px 0 8px; font-size: 12.5px; color: #34403b; background: rgba(255,255,255,.5); padding: 4px 12px; border-radius: 999px; }
.row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.row.me { justify-content: flex-end; }
.row.boss .avatar { width: 36px; height: 36px; border-radius: 13px; font-size: 13px; align-self: flex-start; }
.bubble-wrap { display: grid; gap: 4px; max-width: min(78%, 440px); }
.row.boss .name { font-size: 12.5px; color: #2f3a36; }
.bubble { padding: 9px 13px; border-radius: 16px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; }
.row.me .bubble { background: var(--me); color: var(--me-ink); border-top-right-radius: 4px; }
.row.boss .bubble { background: var(--boss); color: var(--ink); border-top-left-radius: 4px; }

/* ── 답변 평가 ───────────────────────────────── */
.feedback-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-btn {
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .55);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
}
.feedback-btn:hover { background: var(--surface); }
.feedback-btn[aria-pressed="true"] { background: var(--surface); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.feedback-thanks { font-size: 12.5px; color: var(--ink-2); }
.feedback-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.feedback-panel label { font-size: 13.5px; font-weight: 700; }
.feedback-panel label span { font-weight: 400; color: var(--muted); }
.feedback-panel textarea { font-size: 14.5px; resize: vertical; }
.feedback-notice { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-actions .text-btn { margin-left: 0; }
.feedback-actions .btn { padding: 7px 14px; font-size: 14px; }
.feedback-error { margin: 0; font-size: 13px; color: var(--danger); }

/* ── 관리자 페이지 ───────────────────────────── */
.admin, #dashboard { display: grid; gap: 24px; }
.admin { padding-top: 32px; padding-bottom: 64px; }
.admin h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.admin h2 { margin: 0 0 12px; font-size: 18px; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.admin-login { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-login input { flex: 1 1 240px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.note-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.note-item + .note-item { margin-top: 12px; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.note-body { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 14.5px; line-height: 1.7; background: var(--bg); border-radius: 10px; padding: 12px 14px; max-height: 420px; overflow: auto; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill-active { background: var(--accent); color: var(--accent-ink); }
.pill-pending { background: var(--highlight); color: #1d211f; }
.pill-rejected { text-decoration: line-through; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions .btn { padding: 8px 14px; font-size: 14px; }
.fb-list { display: grid; gap: 10px; }
.fb { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; }
.fb .meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb .reply { margin: 0; }
.fb .suggestion { margin: 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; }
.fb details { font-size: 13px; color: var(--ink-2); }
.fb details p { margin: 4px 0; }
.admin-msg { margin: 0; font-size: 14px; color: var(--ink-2); }
.admin-msg.error { color: var(--danger); }

/* ═══ 결재 서류철 스타일 ═══════════════════════════════════
   마닐라 종이 배경, 명조 제목, 타자기 숫자, 인주색 도장.
   유리 효과·그라데이션 대신 실선과 종이 겹침으로 깊이를 냄. */
h1, h2, h3, .brand span, .memo-title, .steps li::before, .result-title { font-family: var(--serif); }
h1, h2 { font-weight: 800; }
.section-head h2, .article h1 { letter-spacing: -.02em; }
.eyebrow, .form-no, .memo-no, .tag, .meta, .trust, .guide-text small, .card-body .meta {
  font-family: var(--mono), var(--sans, inherit);
  letter-spacing: 0;
}
.eyebrow { color: var(--stamp); font-size: 13px; text-transform: uppercase; }

.btn { border-radius: var(--radius); }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }

.hero::before { display: none; }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.18; letter-spacing: -.04em; }
.hero-aside { margin: -6px 0 18px; font-family: var(--mono), var(--sans, inherit); font-size: 13.5px; color: var(--stamp); }
:root[data-theme="night"] .hero-aside { color: #f07a6f; }
.trust li::before { content: "■ "; color: var(--stamp); font-size: .8em; }

/* 히어로 오른쪽: 반려 도장이 찍힌 사직서 */
.memo {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px 18px;
  transform: rotate(-1.2deg);
  box-shadow: 4px 4px 0 var(--surface), 5px 5px 0 var(--line), 9px 9px 0 var(--surface-2), 10px 10px 0 var(--line);
}
.memo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.memo-no { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.approval { border-collapse: collapse; font-size: 11px; text-align: center; }
.approval th, .approval td { border: 1px solid var(--ink); }
.approval th { padding: 2px 8px; font-weight: 600; white-space: nowrap; background: var(--surface-2); }
.approval td { width: 48px; height: 46px; }
.sign { font-family: var(--serif); font-size: 15px; }
.stamp {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 2.5px solid var(--stamp); border-radius: 50%;
  color: var(--stamp);
  font-family: var(--serif); font-weight: 800; font-size: 13px;
  transform: rotate(-16deg);
  animation: stamp .35s 1.6s both cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes stamp { from { opacity: 0; transform: rotate(-16deg) scale(2.2); } to { opacity: .92; transform: rotate(-16deg) scale(1); } }
.memo-title { margin: 18px 0 10px; font-size: 26px; font-weight: 800; letter-spacing: .45em; }
.memo-log {
  list-style: none; margin: 0; padding: 0;
  border-top: 1.5px solid var(--ink);
}
.memo-log li {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px; line-height: 1.55;
  animation: pop .5s both;
}
.memo-log li:nth-child(2) { animation-delay: .5s; }
.memo-log li:nth-child(3) { animation-delay: 1.1s; }
.memo-log b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent-2); padding-top: 3px; }
.memo-log .boss b { color: var(--stamp); }
.memo-foot { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .stamp, .memo-log li { animation: none; } }
@media (max-width: 860px) { .memo { transform: none; } }

/* 시뮬레이터: 신청 서식 */
.sim-card {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--surface-2);
  background: var(--paper);
}
.form-no {
  margin: -32px -32px 24px;
  padding: 10px 32px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface-2);
  font-size: 12px; color: var(--ink-2);
}
@media (max-width: 520px) { .sim-card { padding: 22px 18px; } .form-no { margin: -22px -18px 20px; padding: 10px 18px; } }
input[type="text"], textarea, select { border-radius: var(--radius-sm); background: var(--surface); }
.preset-body, .seg span { border-radius: var(--radius-sm); background: var(--surface); }
.preset input:checked + .preset-body, .seg input:checked + span { border-color: var(--ink); background: var(--accent-soft); box-shadow: 3px 3px 0 var(--line); }
.look-preview { border-radius: var(--radius-sm); }

/* 사용법 숫자, 가이드, FAQ */
.steps li::before { color: var(--stamp); font-size: 38px; }
.guide-feature {
  background: var(--note); color: var(--ink);
  box-shadow: 6px 6px 0 var(--surface-2);
  border: 1px solid rgba(0,0,0,.06);
}
.guide-feature .tag { background: rgba(0,0,0,.08); color: var(--ink); }
.guide-feature p { opacity: 1; color: var(--ink-2); }
.guide-feature .meta { color: var(--ink); }
.faq details { border-radius: var(--radius-sm); background: var(--paper); }

/* 글 페이지 끝 안내: 어두운 상자 대신 테두리 메모 */
.cta-box { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--surface-2); }
.cta-box h2 { color: var(--ink); }
.cta-box p { color: var(--ink-2) !important; }
.cta-box .btn { background: var(--accent); color: var(--accent-ink); }
.note, .demo-banner { border-radius: var(--radius-sm); }
.related a { border-radius: var(--radius-sm); }

/* 푸터: 어두운 띠 대신 종이색 */
.site-footer { background: var(--surface-2); color: var(--ink-2); border-top: 3px double var(--ink); }
.site-footer .brand, .site-footer .foot-h { color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* ═══ 야근 모드 ═════════════════════════════════════════════
   기기 설정을 따르지 않고 헤더의 '야근' 버튼으로만 켬 (theme.js).
   책상(페이지 배경)만 불을 끄고, 서류(종이)는 크림색 그대로 둔다.
   그래서 종이 요소에는 낮 모드 값을 다시 넣어 준다. */
.theme-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.theme-btn:hover { background: var(--surface-2); }
.theme-btn[aria-pressed="true"] { background: var(--highlight); border-color: var(--highlight); color: #1d211f; }

:root[data-theme="night"] {
  --bg: #1c211f;
  --surface: #232927;
  --surface-2: #2d3431;
  --ink: #ecebe4;
  --ink-2: #c3c5bd;
  --muted: #9a9d94;
  --line: #3b433f;
  --accent-2: #8fc1ad;
  --accent-soft: #2a3832;
  color-scheme: dark;
}
/* 종이 위: 낮 모드 값으로 되돌림 */
:root[data-theme="night"] :is(.memo, .sim-card, .faq details, .article, .side-card, .related a,
  .cta-box, .stage, .dlg-box, .chat-header, .composer textarea, .result-inner, .log-sheet, .look.is-open) {
  --bg: #f2eee4;
  --surface: #fbf9f4;
  --surface-2: #e7e1d3;
  --ink: #1b1d1c;
  --ink-2: #45484a;
  --muted: #66635a;
  --line: #d9d2c2;
  --accent-2: #3f6356;
  --accent-soft: #e5ece8;
  color: var(--ink);
  color-scheme: light;
}
/* 종이 그림자가 어두운 책상에 묻히지 않게 */
:root[data-theme="night"] :is(.memo, .sim-card, .dlg-box, .result-inner, .stage) { box-shadow: 6px 6px 0 #000a; }
:root[data-theme="night"] .mark { background: linear-gradient(transparent 62%, rgba(255, 226, 74, .38) 62%); }
:root[data-theme="night"] .guide-feature { box-shadow: 6px 6px 0 #000a; }
:root[data-theme="night"] .site-footer { background: #151918; }
:root[data-theme="night"] .btn-primary { background: #3f6356; }
:root[data-theme="night"] .btn-primary:hover { background: #4c7566; }
:root[data-theme="night"] .eyebrow { color: #f07a6f; }
:root[data-theme="night"] .hero .eyebrow::after { content: " · 야근 중"; }
@media (max-width: 560px) { .theme-btn { padding: 5px 8px; } }
/* ── 접근성 보완 ── */
.copyright { color: var(--muted); border-top-color: var(--line); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 30; background: var(--paper); color: var(--ink); padding: 8px 12px; border: 1.5px solid var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vn :focus-visible { outline-color: #ffe24a; }
.dlg-box :focus-visible, .result-sheet :focus-visible, .log-sheet :focus-visible { outline-color: #2f4a40; }
.vn > .chat-header { position: relative; z-index: 7; }

/* ═══ 면담실: 서류철 컨셉의 면담 화면 ═══════════════════════
   어두운 판 대신 책상 위 종이. 장면은 클립으로 끼운 현장 사진,
   대사는 타자기로 친 면담 기록지, 내 말은 연필 메모처럼 보임. */
.chat-screen, .vn { background: var(--bg); }
.vn { gap: 0; }
.chat-header { background: var(--paper); border-bottom: 3px double var(--ink); padding: 8px 14px; }
.who strong { font-family: var(--serif); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.persona-tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ai-chip {
  background: transparent; color: var(--stamp);
  border: 1.5px solid var(--stamp); border-radius: 3px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 0 5px;
  transform: rotate(-3deg);
}
.text-btn { background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); }
.text-btn:hover { background: var(--surface-2); }

/* 장면: 클립으로 끼운 사진 */
.stage {
  margin: 14px 14px 0;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--surface-2), 5px 5px 0 1.5px var(--line);
  overflow: visible;
}
.stage svg { border-radius: 1px; }
.stage::before {
  content: "현장 사진 · 회의실 B";
  position: absolute; z-index: 2; left: 10px; top: -11px;
  padding: 1px 8px; background: var(--paper); border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
}
.stage::after {
  content: ""; position: absolute; z-index: 2; right: 26px; top: -14px;
  width: 14px; height: 34px; border: 2.5px solid #8b8a84; border-radius: 8px; border-bottom-color: transparent;
}

/* 대사: 면담 기록지 */
.dialogue { background: transparent; padding: 16px 14px 0; gap: 10px; }
.dlg-mine {
  justify-self: stretch; max-width: none;
  padding: 0 4px; border-radius: 0; background: none; color: var(--ink-2);
  font-size: 14.5px; align-items: baseline;
}
.dlg-mine b {
  font-family: var(--mono); font-weight: 600; font-size: 11.5px; color: var(--stamp);
  border: 1.5px solid var(--stamp); border-radius: 50%; width: 24px; height: 24px;
  display: grid; place-items: center; padding: 0; transform: rotate(-6deg);
}
.dlg-mine span { border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.dlg-box {
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  padding: 22px 18px 14px;
}
.dlg-name {
  top: -12px; left: 12px; border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: 14px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 10px;
}
.dlg-text { font-size: 16.5px; line-height: 1.7; }
.dlg-box.is-thinking .dlg-text { color: var(--muted); font-family: var(--mono); }
.dlg-box.is-error, .dlg-box.is-notice { border-color: var(--stamp); box-shadow: 4px 4px 0 #f0d3cf; }
.dlg-box.is-error .dlg-name, .dlg-box.is-notice .dlg-name {
  background: var(--paper); color: var(--stamp); border: 2px solid var(--stamp); transform: rotate(-3deg);
}
.dlg-box .btn-primary { background: var(--accent); }
.dlg-box .feedback-btn { background: transparent; border-color: var(--line); }
.dlg-box .feedback-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }

/* 남은 횟수와 입력칸 */
.chat-meta, .turnstile-box, .composer { background: transparent; }
.chat-meta { padding: 10px 16px 0; color: var(--muted); font-size: 12px; }
.turns-left { font-weight: 700; color: var(--ink); }
.turns-left.is-low { color: var(--stamp); }
.composer { padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); }
.composer textarea {
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
}
.composer textarea::placeholder { color: var(--muted); }
.composer textarea:focus { background: var(--paper); border-color: var(--accent); box-shadow: 3px 3px 0 var(--line); }
.composer .btn { background: var(--stamp); color: #fff; border-radius: var(--radius-sm); font-weight: 800; }
.composer .btn:hover { background: #a92c23; }
.vn :focus-visible { outline-color: var(--accent); }

/* 대화 기록: 결재 서류에 붙인 녹취록 */
.log-head { background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.log-list li { max-width: none; grid-template-columns: 56px 1fr; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.log-list b { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); }
.log-list .log-me b { color: var(--stamp); text-align: left; }
.log-list p { padding: 0; border: 0; border-radius: 0; background: none !important; color: var(--ink) !important; }
.log-me { justify-self: stretch; }

/* 면담 결과: 도장 찍힌 평가서 */
.result-inner { background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--line); margin: 20px auto 40px; padding: 26px 22px 30px; }
.result-eyebrow { font-family: var(--mono); color: var(--stamp); font-size: 12px; }
.result-score b { font-family: var(--mono); font-weight: 600; }
.result-bar { border-radius: 0; height: 8px; border: 1.5px solid var(--ink); background: transparent; }
.result-bar span { background: var(--ink); border-radius: 0; }
.result-stats li { border-radius: 0; background: transparent; border: 0; border-top: 1.5px solid var(--ink); padding: 10px 2px 4px; }
.result-stats b { font-family: var(--mono); font-weight: 600; }
.result-guide { border-radius: 0; background: var(--note); border-left: 4px solid var(--ink); }

/* 결과 칸: 점수는 큰 칸, 세부 기록은 작은 칸 (서식의 칸 나눔) */
.result-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; }
.bento-score {
  display: grid; align-content: space-between; gap: 10px;
  padding: 14px 14px 16px;
  border: 1.5px solid var(--ink);
  background: var(--surface-2);
}
.bento-label { font-family: var(--mono); font-size: 12px; color: var(--stamp); }
.bento-score .result-score b { font-size: 60px; }
.bento-score .result-bar { background: var(--paper); }
.result-bento .result-stats { gap: 8px; }
.result-bento .result-stats li {
  align-content: space-between; gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.result-bento .result-stats b { font-size: 22px; }
/* 칸이 하나씩 찍혀 나옴 */
.result-bento > *, .result-bento .result-stats li { animation: pop .4s both; }
.result-bento .result-stats li:nth-child(1) { animation-delay: .12s; }
.result-bento .result-stats li:nth-child(2) { animation-delay: .2s; }
.result-bento .result-stats li:nth-child(3) { animation-delay: .28s; }
.result-bento .result-stats li:nth-child(4) { animation-delay: .36s; }
.result-bento .result-stats li:nth-child(5) { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) { .result-bento > *, .result-bento .result-stats li { animation: none; } }
@media (max-width: 440px) {
  .result-bento { grid-template-columns: 1fr; }
  .bento-score { grid-template-columns: auto 1fr; align-items: end; }
  .bento-score .bento-label { grid-column: 1 / -1; }
  .bento-score .result-bar { grid-column: 1 / -1; }
}

/* 넓은 화면: 사진은 왼쪽, 기록지와 입력칸은 오른쪽 */
@media (min-width: 1000px) {
  .vn {
    max-width: 1280px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas: "head head" "stage dlg" "stage ts" "stage meta" "stage comp";
  }
  .chat-header { grid-area: head; }
  .stage { grid-area: stage; margin: 26px 10px 26px 26px; }
  .dialogue { grid-area: dlg; max-height: none; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 0 22px; }
  .dialogue::before {
    content: "면담 기록지";
    padding-bottom: 10px;
    border-bottom: 3px double var(--ink);
    font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: .3em;
  }
  .turnstile-box { grid-area: ts; }
  .chat-meta { grid-area: meta; padding: 10px 26px 0 24px; }
  .composer { grid-area: comp; padding: 8px 26px 26px 22px; }
  .dlg-text { font-size: 18px; }
  .dlg-history {
    display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow-y: auto;
    list-style: none; margin: 0; padding: 0 4px 0 0;
  }
  .dlg-history > :first-child { margin-top: auto; }
  .dlg-history li {
    display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px dashed var(--line);
  }
  .dlg-history b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent-2); overflow-wrap: anywhere; }
  .dlg-history .hist-me b { color: var(--stamp); }
  .dlg-history p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
  .dlg-history .hist-me p { color: var(--ink); }
}
@media (max-width: 999px) { .dlg-history { display: none; } }
