:root {
  --bg: #f4f0e7;
  --surface: #fffdf8;
  --surface-2: #ebe6da;
  --surface-3: #e2ddd2;
  --ink: #172a26;
  --muted: #5e6c67;
  --line: rgba(23, 42, 38, .16);
  --line-strong: rgba(23, 42, 38, .32);
  --green: #1f5a4c;
  --green-soft: #dce9df;
  --coral: #c96743;
  --coral-soft: #f1d8c8;
  --gold: #c58c43;
  --danger: #8f443c;
  --shadow: 0 22px 70px rgba(35, 46, 40, .13);
  --radius: 26px;
  --header-height: 140px;
  --content: 1240px;
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

h1, h2, h3, h4, legend, .brand-copy, .button-label {
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, li, dd, blockquote, figcaption, label, summary {
  text-wrap: pretty;
  hanging-punctuation: first allow-end last;
}

:root[data-language="ko"] p,
:root[data-language="ko"] li,
:root[data-language="ko"] blockquote {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:root[data-language="zh-Hans"] p,
:root[data-language="zh-Hant"] p,
:root[data-language="ja"] p {
  line-break: strict;
  word-break: normal;
}

:root[data-language="ar"],
:root[data-language="fa"] {
  direction: rtl;
  letter-spacing: normal;
}

:root[data-language="en"],
:root[data-language="vi"],
:root[data-language="fil"],
:root[data-language="mn"],
:root[data-language="ru"],
:root[data-language="uz"],
:root[data-language="fr"],
:root[data-language="de"] { word-break: normal; overflow-wrap: anywhere; }

:root[data-language="zh-Hans"],
:root[data-language="zh-Hant"],
:root[data-language="ja"] { word-break: normal; line-break: strict; }

:root[data-language="km"],
:root[data-language="th"],
:root[data-language="lo"] { word-break: break-word; line-height: 1.75; }

:root[data-language="ne"],
:root[data-language="hi"] { font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, sans-serif; }

html[data-theme="dark"] {
  --bg: #0c1714;
  --surface: #12221d;
  --surface-2: #192e27;
  --surface-3: #203830;
  --ink: #f5f0e6;
  --muted: #b6c1bc;
  --line: rgba(233, 242, 237, .14);
  --line-strong: rgba(233, 242, 237, .3);
  --green: #8fd0b6;
  --green-soft: #1f4438;
  --coral: #efa078;
  --coral-soft: #492d25;
  --gold: #ebbd78;
  --danger: #f0a198;
  --shadow: 0 22px 80px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 18%, color-mix(in srgb, var(--coral) 10%, transparent) 0, transparent 26rem),
    linear-gradient(135deg, color-mix(in srgb, var(--ink) 2%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, auto;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
}

@supports (height: 100dvh) {
  body { min-height: 100dvh; }
  main, .view { min-height: calc(100dvh - var(--header-height)); }
}

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; }

img, svg { display: block; }

[hidden] { display: none !important; }

::selection { color: #fff; background: var(--coral); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: #172a26;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  min-height: 82px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(14, 46, 37, .16);
}

.brand-copy { display: grid; line-height: 1.15; gap: 5px; }
.brand-copy strong { font-size: 1rem; letter-spacing: -.03em; }
.brand-copy span { color: var(--muted); font-size: .72rem; letter-spacing: -.02em; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.language-picker {
  position: relative;
  flex: 0 1 auto;
}

.plan-button {
  min-width: 108px;
  min-height: 42px;
  padding: 6px 12px;
  display: grid;
  justify-items: start;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  cursor: pointer;
}
.plan-button span { color: var(--coral); font: 850 .54rem/1.15 ui-monospace, monospace; letter-spacing: .08em; }
.plan-button strong { max-width: 120px; overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.plan-button:hover { border-color: var(--line-strong); background: var(--surface); }

.language-picker::after {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  content: "⌄";
  font-size: .62rem;
  transform: translateY(-54%);
  pointer-events: none;
}

.language-picker select {
  width: 112px;
  min-height: 42px;
  padding: 0 30px 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size: .74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.language-picker select:hover { border-color: var(--line-strong); background: var(--surface); }
.language-picker select:focus-visible { outline-offset: 2px; }

.experience-badge {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size: .7rem;
  white-space: nowrap;
}
.experience-badge strong { color: var(--coral); font-size: .9rem; }
.experience-badge.is-blocked { border-color: var(--coral); color: var(--danger); }
.experience-badge.is-blocked strong { font-size: .72rem; }

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.local-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39aa7a;
  box-shadow: 0 0 0 4px rgba(57, 170, 122, .12);
}

.icon-button {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  cursor: pointer;
}

.icon-button:hover { border-color: var(--line-strong); background: var(--surface); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button svg:first-child path:first-child { fill: currentColor; stroke: none; }
.icon-button .button-label { font-size: .78rem; font-weight: 800; }
.moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; fill: currentColor; stroke: none; }

.progress-nav { border-top: 1px solid var(--line); }
.progress-nav ol {
  max-width: var(--content);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 28px;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.progress-nav button {
  position: relative;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.progress-nav button span {
  margin-right: 7px;
  color: var(--coral);
  font-family: ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
}

.progress-nav button::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.progress-nav button[aria-current="step"] { color: var(--ink); }
.progress-nav button[aria-current="step"]::after { transform: scaleX(1); }

main { min-height: calc(100svh - var(--header-height)); }

.view {
  width: min(calc(100% - 56px), var(--content));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(44px, 7vh, 86px) 0;
}

.home-view { display: grid; align-items: center; }
.plan-stage-summary {
  width: min(calc(100% - 56px), var(--content));
  margin: 18px auto 0;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--green) 32%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--green-soft));
}
.plan-stage-summary > span { display: grid; gap: 1px; white-space: nowrap; }
.plan-stage-summary small { color: var(--muted); font-size: .6rem; }
.plan-stage-summary strong { color: var(--green); font-size: .78rem; }
.plan-stage-summary p { min-width: 0; margin: 0; color: var(--muted); font-size: .7rem; overflow-wrap: anywhere; }
.plan-stage-summary .text-button { min-height: 36px; padding: 0 10px; font-size: .68rem; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(36px, 6vw, 82px); align-items: center; }
.hero-copy { max-width: 720px; }

.eyebrow, .card-kicker, .panel-kicker, .step-label, .editor-heading p {
  margin: 0 0 22px;
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 32px; height: 1px; background: var(--coral); }

.hero-copy h1, .section-heading h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", "Batang", serif;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.16;
}

.hero-copy h1 { max-width: 720px; font-size: clamp(2.55rem, 4.5vw, 4.65rem); }
.hero-copy h1 em, .section-heading h1 em { color: var(--coral); font-style: normal; }
.hero-description { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: clamp(.96rem, 1.1vw, 1.05rem); line-height: 1.85; }

.service-position {
  max-width: 680px;
  margin-top: 22px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.service-position strong { color: var(--green); font-size: .78rem; white-space: nowrap; }
.service-position p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.68; }
.service-position b { color: var(--ink); font-weight: 850; }

.hero-copy blockquote {
  margin: 30px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 14px 14px 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  font-size: .9rem;
  line-height: 1.75;
}

.trial-notice {
  margin-top: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: .72rem;
}
.trial-notice strong { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.trial-notice span { min-width: 0; flex: 1 1 0; color: var(--muted); overflow-wrap: anywhere; }
.trial-notice.is-blocked { color: var(--danger); background: var(--coral-soft); }

.hero-actions, .stage-footer-actions { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.access-entry { display: grid; width: min(100%, 720px); padding: clamp(14px, 2vw, 20px); border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 20px; gap: 8px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--green-soft)), var(--surface)); box-shadow: inset 0 1px 0 var(--sheen), 0 18px 48px color-mix(in srgb, var(--shadow) 28%, transparent); }
.access-kicker { margin: 0; color: var(--green); font-size: .62rem; font-weight: 850; letter-spacing: .18em; }
.access-entry h2 { margin: 0; font-size: clamp(1rem, 1.8vw, 1.24rem); letter-spacing: -.025em; }
.access-entry > p:not(.access-kicker) { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; text-wrap: balance; }
.access-entry .hero-actions { margin-top: 2px; }
.primary-button, .secondary-button, .text-button, .small-button, .next-button, .help-button, .speech-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.primary-button { border: 1px solid var(--coral); color: #25130d; background: #e99c72; box-shadow: 0 10px 26px rgba(201, 103, 67, .18); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 103, 67, .25); }
.secondary-button, .small-button, .text-button { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.secondary-button:hover:not(:disabled), .small-button:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); }
.text-button { min-height: 46px; border-color: transparent; padding-inline: 12px; }
.full-button { width: 100%; }
button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }

.promise-panel {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.promise-panel::before { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: linear-gradient(90deg, var(--coral), var(--gold), var(--green)); }
.panel-number { position: absolute; top: -36px; right: 12px; color: color-mix(in srgb, var(--ink) 5%, transparent); font-family: Georgia, serif; font-size: 11rem; line-height: 1; pointer-events: none; }
.panel-kicker { position: relative; color: var(--green); }
.promise-panel h2 { position: relative; margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.7rem, 2.7vw, 2.7rem); letter-spacing: -.05em; line-height: 1.28; }
.promise-list { position: relative; margin: 30px 0 0; padding: 0; list-style: none; }
.promise-list li { padding: 17px 0; display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.promise-list li > span { color: var(--coral); font-family: ui-monospace, monospace; font-size: .7rem; padding-top: 3px; }
.promise-list strong { font-size: .92rem; }
.promise-list p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.workflow-summary { margin-top: 24px; }
.operation-boundaries { position: relative; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.operation-boundaries span { min-height: 30px; padding: 5px 10px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: .67rem; font-weight: 800; }
.boundary-note { position: relative; margin-top: 10px; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 13px; color: var(--green); background: var(--green-soft); font-size: .74rem; }
.boundary-note strong { flex: 0 0 auto; }
.boundary-note span { color: var(--ink); text-align: right; }
.product-boundary { align-items: flex-start; flex-direction: column; gap: 4px; }
.product-boundary span { text-align: left; line-height: 1.55; }

.workflow-view { max-width: 1120px; }
.section-heading { max-width: 850px; margin-bottom: 38px; }
.section-heading .step-label { margin-bottom: 14px; }
.section-heading h1 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.section-heading > p:last-child { max-width: 760px; margin: 20px 0 0; color: var(--muted); line-height: 1.8; }
.compact-heading { margin-bottom: 28px; }
.compact-heading h1 { font-size: clamp(2rem, 4vw, 3.5rem); }

.prepare-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); gap: 24px; align-items: stretch; }
.purpose-selector { min-width: 0; margin: 0; padding: 0; border: 0; }
.purpose-selector legend, .boundary-checks legend { margin-bottom: 12px; font-weight: 850; }
.purpose-selector label {
  min-height: 82px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 0 38px 1fr;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.purpose-selector label:last-child { border-bottom: 1px solid var(--line); }
.purpose-selector label:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.purpose-selector input { opacity: 0; width: 0; height: 0; margin: 0; }
.purpose-selector input:focus-visible + .choice-index { outline: 3px solid var(--coral); outline-offset: 3px; }
.choice-index { color: var(--coral); font-family: ui-monospace, monospace; font-size: .72rem; }
.purpose-selector label > span:last-child { display: grid; gap: 4px; }
.purpose-selector strong { letter-spacing: -.02em; }
.purpose-selector small { color: var(--muted); }
.purpose-selector label:has(input:checked) { background: var(--green-soft); }
.purpose-selector label:has(input:checked) strong { color: var(--green); }

.prep-card, .guidance-card, .memo-editor, .review-source, .approval-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: var(--shadow);
}
.prep-card { padding: clamp(26px, 4vw, 42px); }
.prep-card .card-kicker { margin-bottom: 12px; }
.prep-card > h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.65rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.start-sentence { margin: 24px 0; padding: 20px; border-radius: 17px; color: var(--ink); background: var(--green-soft); }
.start-sentence span { color: var(--green); font-size: .72rem; font-weight: 850; }
.start-sentence p { margin: 8px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 1.15rem; font-weight: 700; line-height: 1.65; }
.question-list h3, .avoid-list h3 { margin: 0 0 9px; font-size: .82rem; }
.question-list ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: q; }
.question-list li { counter-increment: q; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.question-list li::before { margin-left: -32px; margin-right: 12px; content: counter(q, decimal-leading-zero); color: var(--coral); font-family: ui-monospace, monospace; font-size: .66rem; }
.avoid-list { margin-bottom: 26px; }
.avoid-list p { margin: 0; color: var(--danger); font-size: .82rem; }

.mode-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.mode-button { min-height: 68px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 17px; color: var(--muted); background: color-mix(in srgb, var(--surface) 62%, transparent); cursor: pointer; text-align: left; }
.mode-button > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 11px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.mode-button strong { font-size: .84rem; }
.mode-button.is-active { border-color: var(--green); color: var(--ink); background: var(--surface); box-shadow: 0 8px 24px rgba(31, 90, 76, .09); }

.guide-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.skill-rail { display: grid; gap: 6px; align-content: start; }
.skill-button { min-height: 62px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); background: transparent; text-align: left; font-size: .82rem; font-weight: 800; cursor: pointer; }
.skill-button span { color: var(--coral); font-family: ui-monospace, monospace; font-size: .64rem; }
.skill-button:hover { background: color-mix(in srgb, var(--surface) 62%, transparent); }
.skill-button.is-active { border-color: var(--line); color: var(--ink); background: var(--surface); box-shadow: 0 7px 20px rgba(0, 0, 0, .06); }
.guidance-card { min-height: 520px; padding: clamp(25px, 4vw, 44px); display: flex; flex-direction: column; }
.guidance-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guidance-topline p { margin: 0; color: var(--green); font-weight: 900; }
.guidance-topline span { color: var(--muted); font-family: ui-monospace, monospace; font-size: .75rem; }
.mode-status { margin-top: 12px; color: var(--muted); font-size: .78rem; }
.guidance-sentence { margin: clamp(28px, 5vh, 54px) 0 26px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.5; }
.phrase-tools { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 38px; margin: -8px 0 20px; }
.phrase-tools .small-button { min-height: 38px; padding-inline: 14px; }
.phrase-tools span { color: var(--muted); font-size: .74rem; font-weight: 760; letter-spacing: .02em; }
.phrase-tools [hidden] { display: none; }
.wait-cue { padding: 15px 17px; display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); font-size: .8rem; }
.wait-cue > span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.wait-cue p { margin: 0; color: var(--muted); }
.guidance-details { margin-top: 24px; }
.guidance-details dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guidance-details dl > div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guidance-details dt { margin-bottom: 6px; color: var(--coral); font-size: .7rem; font-weight: 850; }
.guidance-details dd { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.voice-controls { margin-top: 22px; padding: 15px; border-radius: 15px; background: var(--green-soft); }
.voice-controls p { margin: 0 0 12px; color: var(--green); font-size: .8rem; font-weight: 750; }
.voice-controls > div { display: flex; gap: 7px; flex-wrap: wrap; }
#guidanceSentence.is-speech-current {
  border-radius: 10px;
  outline: 2px solid var(--green);
  outline-offset: 5px;
  background: color-mix(in srgb, var(--green) 14%, transparent);
  box-shadow: inset 4px 0 0 var(--green);
  transition: background-color .18s ease, outline-color .18s ease;
}
[dir="rtl"] #guidanceSentence.is-speech-current { box-shadow: inset -4px 0 0 var(--green); }
.small-button { min-height: 40px; padding: 0 15px; font-size: .75rem; }
.guidance-actions { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; gap: 10px; }
.help-button { border: 1px dashed var(--coral); color: var(--coral); background: transparent; }
.help-button:hover { background: var(--coral-soft); }
.next-button { border: 1px solid var(--green); color: var(--green); background: var(--green-soft); }
.next-button:hover { color: var(--surface); background: var(--green); }
.rescue-card { margin: 16px 0 0 206px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--coral); border-radius: 18px; background: var(--coral-soft); }
.rescue-card > div { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.rescue-card > div span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--surface); background: var(--coral); font-weight: 900; }
.rescue-card h2 { margin: 0; font-size: .85rem; }
.rescue-card p { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 1.08rem; font-weight: 700; }
.rescue-card button { border: 0; color: var(--coral); background: transparent; font-weight: 800; cursor: pointer; }
.stage-footer-actions { justify-content: space-between; }

.local-speech-banner { margin-bottom: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 15%, transparent); }
.local-speech-banner[data-state="ready"] .status-dot { background: #37a873; box-shadow: 0 0 0 5px rgba(55, 168, 115, .15); }
.local-speech-banner[data-state="blocked"] .status-dot { background: var(--coral); box-shadow: 0 0 0 5px color-mix(in srgb, var(--coral) 15%, transparent); }
.local-speech-banner strong { font-size: .83rem; }
.local-speech-banner p { margin: 2px 0 0; color: var(--muted); font-size: .76rem; }
.memo-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 16px; }
.prompt-column { display: grid; gap: 7px; align-content: start; }
.memo-tab { min-height: 88px; padding: 15px; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 7px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: color-mix(in srgb, var(--surface) 50%, transparent); cursor: pointer; text-align: left; }
.memo-tab > span:first-child { color: var(--coral); font-family: ui-monospace, monospace; font-size: .68rem; }
.memo-tab > span:last-child { display: grid; gap: 5px; }
.memo-tab strong { color: var(--ink); font-size: .82rem; }
.memo-tab small { font-size: .72rem; line-height: 1.5; }
.memo-tab.is-active { border-color: var(--green); background: var(--green-soft); box-shadow: 0 8px 24px rgba(31, 90, 76, .1); }
.memo-editor { padding: clamp(24px, 4vw, 38px); }
.editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.editor-heading p { margin: 0 0 6px; color: var(--green); }
.editor-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.4rem, 2.5vw, 2.1rem); letter-spacing: -.04em; }
.editor-heading > span { color: var(--muted); font-family: ui-monospace, monospace; font-size: .72rem; }
.memo-editor textarea { width: 100%; min-height: 190px; margin-top: 22px; padding: 18px 20px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--ink); background: var(--bg); line-height: 1.7; }
.memo-editor textarea::placeholder { color: color-mix(in srgb, var(--muted) 74%, transparent); }
.textarea-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .7rem; }
.textarea-meta p { max-width: 620px; margin: 0; }
.textarea-meta span { flex: 0 0 auto; }
.transcription-panel { margin-top: 20px; padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.transcription-copy strong { font-size: .84rem; }
.transcription-copy p, .transcription-fallback { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.transcription-actions { display: flex; align-items: center; gap: 10px; }
.timer { color: var(--coral); font-family: ui-monospace, monospace; font-size: .74rem; }
.speech-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--green); color: var(--green); background: var(--green-soft); font-size: .76rem; }
.speech-button.is-recording { border-color: var(--coral); color: #fff; background: var(--coral); animation: pulse 1.4s infinite; }
.live-transcript-proof { grid-column: 1 / -1; min-width: 0; max-width: 100%; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: start; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface) 78%, transparent); overflow: hidden; }
.live-transcript-proof .live-language { max-width: 100%; padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .68rem; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.live-transcript-proof p { min-width: 0; max-width: 100%; margin: 0; color: var(--ink); font-size: .76rem; line-height: 1.55; overflow-wrap: anywhere; }
.live-transcript-proof strong { min-width: 0; max-width: 100%; color: var(--green); font-size: .68rem; white-space: normal; overflow-wrap: anywhere; }
.live-transcript-proof[data-state="listening"] { border-color: color-mix(in srgb, var(--coral) 56%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 10%, transparent); }
.live-transcript-proof[data-state="listening"] .live-language { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); color: var(--coral); }
.live-transcript-proof[data-state="blocked"] { opacity: .82; }
.transcription-fallback { grid-column: 1 / -1; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--coral) 0%, transparent); } }
.field-nav { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }
.boundary-checks { margin: 18px 0 0; padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--surface) 58%, transparent); }
.boundary-checks legend { float: left; width: 100%; }
.boundary-checks label { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; cursor: pointer; }
.boundary-checks input, .approval-checks input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--green); }
.boundary-checks label > span { display: grid; gap: 3px; }
.boundary-checks strong { font-size: .8rem; }
.boundary-checks small { color: var(--muted); font-size: .7rem; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.review-source { padding: clamp(22px, 4vw, 36px); }
.review-heading { padding-bottom: 15px; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.review-heading span { color: var(--coral); font-size: .72rem; font-weight: 850; }
.review-heading strong { color: var(--muted); font-size: .7rem; }
.review-fields { display: grid; }
.review-field { padding: 19px 0; display: grid; grid-template-columns: 160px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.review-field:last-child { border-bottom: 0; }
.review-field h3 { margin: 0; font-size: .76rem; }
.review-field p { margin: 0; color: var(--muted); white-space: pre-wrap; font-size: .84rem; line-height: 1.75; }
.review-field p.is-empty { opacity: .7; font-style: italic; }
.approval-panel { position: sticky; top: calc(var(--header-height) + 18px); padding: 26px; }
.approval-panel .card-kicker { margin-bottom: 10px; color: var(--green); }
.approval-panel h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 1.8rem; }
.approval-panel > p:not(.card-kicker) { color: var(--muted); font-size: .76rem; }
.approval-checks { margin: 19px 0; display: grid; gap: 8px; }
.approval-checks label { padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 9px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .76rem; }
.approval-panel .secondary-button { margin-top: 8px; }
.approval-note { margin-bottom: 0; font-size: .68rem !important; }
.completion-gate { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: .68rem !important; }
.completion-gate.is-ready { color: var(--green); background: var(--green-soft); }
.confirmed-panel, .trial-complete-panel { margin-top: 18px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--green); border-radius: 18px; background: var(--green-soft); }
.confirmed-panel .card-kicker { margin-bottom: 4px; color: var(--green); }
.confirmed-panel h2 { margin: 0; font-size: 1.2rem; }
.confirmed-panel p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.trial-complete-panel { border-color: var(--coral); background: var(--coral-soft); }
.trial-complete-panel .card-kicker { margin-bottom: 4px; }
.trial-complete-panel h2 { margin: 0; font-size: 1.2rem; }
.trial-complete-panel p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }

.report-workspace { margin-top: 22px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line-strong); border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); }
.report-workspace-heading { max-width: 760px; }
.report-workspace-heading .card-kicker { margin: 0 0 7px; color: var(--green); }
.report-workspace-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.45rem, 3vw, 2rem); }
.report-workspace-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.report-template-toolbar { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.report-template-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.report-template-toolbar select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font: inherit; font-size: .82rem; }
.report-preview { margin-top: 18px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.report-preview-heading { padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.report-preview-heading span { color: var(--green); font-size: .65rem; font-weight: 900; letter-spacing: .18em; }
.report-preview-heading h3 { margin: 5px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 1.35rem; }
.report-preview-sections { display: grid; }
.report-preview-section { padding: 16px 0; display: grid; grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--line); }
.report-preview-section:last-child { border-bottom: 0; }
.report-preview-section h4 { margin: 0; display: grid; align-content: start; gap: 5px; font-size: .74rem; }
.report-section-status { width: fit-content; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .58rem; font-weight: 800; line-height: 1.3; }
.report-preview-section p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.report-preview-section[data-status="empty"] p,
.report-preview-section[data-status="unverified"] p { color: var(--danger); font-style: italic; }
.report-preview-section[data-status="empty"] .report-section-status,
.report-preview-section[data-status="unverified"] .report-section-status { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.report-preview-notices { margin: 14px 0 0; padding: 13px 15px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); list-style: none; }
.report-preview-notices li { color: var(--muted); font-size: .67rem; line-height: 1.55; overflow-wrap: anywhere; }
.report-preview-notices li::before { content: "○"; margin-right: 7px; color: var(--muted); }
.report-preview-notices li[data-active="true"] { color: var(--ink); font-weight: 750; }
.report-preview-notices li[data-active="true"]::before { content: "●"; color: var(--green); }
.report-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.custom-pdf-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.custom-pdf-panel > summary { padding: 16px 18px; cursor: pointer; font-size: .82rem; font-weight: 850; }
.custom-pdf-body { padding: 0 18px 18px; }
.custom-pdf-body > p { color: var(--muted); font-size: .74rem; line-height: 1.65; }
.pdf-file-label { margin-top: 14px; padding: 14px; display: grid; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); }
.pdf-file-label span { font-size: .75rem; font-weight: 850; }
.pdf-file-label input { max-width: 100%; color: var(--muted); font-size: .75rem; }
.pdf-template-status { margin: 10px 0 0; }
.pdf-field-mapping { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.pdf-field-mapping h3 { margin: 0; font-size: .9rem; }
.pdf-field-mapping > p { color: var(--muted); font-size: .72rem; }
.pdf-mapping-row { padding: 9px 0; display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.pdf-mapping-row:last-child { border-bottom: 0; }
.pdf-mapping-row label { overflow-wrap: anywhere; font-size: .7rem; font-weight: 800; }
.pdf-mapping-row select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-2); }
.pdf-final-check { margin: 14px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: .73rem; }
.pdf-final-check input { width: 19px; height: 19px; accent-color: var(--green); }
.pdf-compatibility-note { margin-bottom: 0; padding-left: 12px; border-left: 3px solid var(--coral); }

/* 존중하는 전달문: 원문을 보존하고 사용자가 직접 검토·확정하는 독립 도구 */
.rewrite-view { max-width: 1240px; }
.rewrite-boundary-note {
  margin: -4px 0 20px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 14px;
  background: color-mix(in srgb, var(--coral-soft) 58%, var(--surface));
}
.rewrite-boundary-note strong { font-size: .82rem; }
.rewrite-boundary-note p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.rewrite-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 18px; align-items: start; }
.rewrite-input-panel,
.rewrite-result-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}
.rewrite-panel-heading .card-kicker { margin-bottom: 8px; color: var(--green); }
.rewrite-panel-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.rewrite-panel-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.rewrite-setup-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rewrite-setup-grid label,
.rewrite-original-label,
.rewrite-output-grid label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.rewrite-situation-field { grid-column: 1 / -1; }
.rewrite-setup-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-2);
}
.rewrite-choice-group { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.rewrite-choice-group legend { margin-bottom: 9px; font-size: .77rem; font-weight: 850; }
.rewrite-choice-group legend small { margin-left: 5px; color: var(--muted); font-weight: 600; }
.rewrite-choice-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.rewrite-choice-group label { min-width: 0; cursor: pointer; }
.rewrite-choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.rewrite-choice-group span {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: .73rem;
  font-weight: 780;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rewrite-choice-group input:checked + span { border-color: var(--green); color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.rewrite-choice-group input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
.rewrite-original-label { margin-top: 21px; }
.rewrite-input-panel textarea,
.rewrite-output-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: var(--bg);
  font-size: max(16px, .88rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.rewrite-input-panel textarea { min-height: 164px; }
.rewrite-speech-panel {
  margin: 18px 0;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}
.rewrite-speech-panel strong { font-size: .79rem; }
.rewrite-speech-panel p { margin: 4px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.6; }
.rewrite-speech-status { grid-column: 1 / -1; }
.rewrite-original-preserved { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.rewrite-original-preserved summary { min-height: 46px; padding: 12px 15px; cursor: pointer; color: var(--green); font-size: .75rem; font-weight: 850; }
.rewrite-original-preserved blockquote { margin: 0; padding: 0 15px 16px; color: var(--muted); white-space: pre-wrap; font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; }
.rewrite-hold-notice,
.rewrite-urgent-note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--coral); border-radius: 10px; background: var(--coral-soft); }
.rewrite-hold-notice strong,
.rewrite-urgent-note strong { color: var(--danger); font-size: .78rem; }
.rewrite-hold-notice p,
.rewrite-urgent-note p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.rewrite-change-summary { margin-top: 16px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--green-soft); }
.rewrite-change-summary h3 { margin: 0 0 8px; font-size: .78rem; }
.rewrite-change-summary ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.rewrite-output-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rewrite-output-grid label:first-child { grid-column: 1 / -1; }
.rewrite-output-grid textarea { min-height: 112px; }
.rewrite-output-grid label:first-child textarea { min-height: 148px; }
.rewrite-conversation-path { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.rewrite-conversation-path h3 { margin: 0 0 9px; font-size: .8rem; }
.rewrite-conversation-path ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.rewrite-result-actions,
.rewrite-export-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.rewrite-confirmation { margin-top: 16px; padding: 16px; display: grid; gap: 9px; border: 1px solid var(--line-strong); border-radius: 15px; }
.rewrite-confirmation label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; font-size: .73rem; line-height: 1.55; cursor: pointer; }
.rewrite-confirmation input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green); }
.rewrite-legal { margin: 15px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.65; }

.site-footer { max-width: var(--content); margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .69rem; }
.site-footer p { margin: 4px 0; }
.footer-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-feedback { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--green); background: transparent; font-weight: 800; cursor: pointer; }

dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .28);
}
dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#planDialog { width: min(calc(100% - 32px), 980px); max-height: 92vh; }
.access-dialog-body, .plan-dialog-body, .plan-confirm-body { display: grid; gap: 16px; }
.access-product { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.access-product img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 7px 20px rgba(14, 46, 37, .14); }
.access-product > span { min-width: 0; display: grid; gap: 2px; }
.access-product strong { min-width: 0; font-size: .94rem; overflow-wrap: anywhere; word-break: break-word; }
.access-product small { color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.access-product > b { padding: 4px 8px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font: 850 .6rem/1.2 ui-monospace, monospace; letter-spacing: .08em; }
#accessLead { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.access-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; list-style: none; overflow: hidden; }
.access-steps li { min-width: 0; min-height: 80px; padding: 12px; display: grid; align-content: start; gap: 3px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.access-steps li:last-child { border-right: 0; }
.access-steps li.is-current { background: var(--green-soft); }
.access-steps span { color: var(--coral); font: 800 .6rem/1.2 ui-monospace, monospace; }
.access-steps strong { font-size: .74rem; overflow-wrap: anywhere; }
.access-steps small { color: var(--muted); font-size: .61rem; line-height: 1.4; overflow-wrap: anywhere; }
.zero-cost-notice { padding: 14px; display: grid; gap: 5px; border: 1px solid var(--green); border-radius: 14px; background: var(--green-soft); }
.zero-cost-notice strong, .zero-cost-inline { color: var(--green); font-size: .76rem; font-weight: 900; }
.zero-cost-notice span { color: var(--muted); font-size: .7rem; line-height: 1.6; }
.zero-cost-inline { margin: 0; }
.plan-selector { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; }
.plan-selector label { min-width: 0; cursor: pointer; overflow-wrap: anywhere; }
.plan-selector input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-selector label > span { height: 100%; min-height: 180px; padding: 16px; display: grid; align-content: start; gap: 6px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.plan-selector b { color: var(--coral); font: 800 .65rem/1.2 ui-monospace, monospace; }
.plan-selector strong { font-size: 1rem; }
.plan-selector small { color: var(--muted); font-size: .69rem; line-height: 1.45; }
.plan-selector ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink); font-size: .68rem; line-height: 1.45; }
.plan-selector mark { margin-top: auto; padding: 7px 8px; border-radius: 8px; color: var(--green); background: var(--surface); font-size: .67rem; font-weight: 900; }
.plan-selector input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: 0 7px 22px rgba(31, 90, 76, .12); }
.plan-selector input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
.plan-comparison-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.plan-comparison-line > span { min-height: 70px; padding: 12px; display: grid; place-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); text-align: center; }
.plan-comparison-line small { color: var(--muted); font-size: .64rem; }
.plan-comparison-line b { color: var(--coral); }
.unlocked-preview { padding: 15px; border: 1px solid var(--green); border-radius: 14px; background: var(--green-soft); }
.unlocked-preview h3 { margin: 0 0 8px; font-size: .82rem; }
.unlocked-preview ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .74rem; }
.plan-confirm-body > p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.6; }
dialog::backdrop { background: rgba(4, 12, 10, .64); backdrop-filter: blur(5px); }
.dialog-header { padding: 22px 24px; display: flex; justify-content: space-between; align-items: start; gap: 18px; border-bottom: 1px solid var(--line); }
.dialog-header .card-kicker { margin-bottom: 4px; color: var(--green); }
.dialog-header h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 1.7rem; }
.dialog-close { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 24px; line-height: 1; overflow: hidden; cursor: pointer; }
.dialog-body { padding: 24px; overflow: auto; }
.principle-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; }
.principle-grid li { min-height: 130px; padding: 16px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.principle-grid strong { font-size: .85rem; }
.principle-grid span { color: var(--muted); font-size: .74rem; }
.dialog-warning { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid var(--coral); color: var(--muted); background: var(--coral-soft); font-size: .75rem; }
.practice-scenario { margin: 0 0 20px; padding: 18px; border-radius: 15px; background: var(--green-soft); }
.practice-scenario span { display: block; margin-bottom: 7px; color: var(--green); font-size: .7rem; font-weight: 850; }
.practice-body fieldset { margin: 0; padding: 0; border: 0; }
.practice-body legend { margin-bottom: 10px; font-size: .83rem; font-weight: 850; }
.practice-body label { margin-bottom: 7px; padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .78rem; }
.practice-body input { margin-top: 4px; accent-color: var(--green); }
.practice-feedback { min-height: 70px; margin: 16px 0; padding: 14px; border-radius: 12px; color: var(--muted); background: var(--surface-2); font-size: .75rem; }
.feedback-body > p:first-child { margin-top: 0; color: var(--muted); font-size: .8rem; }
.feedback-body fieldset { margin: 20px 0 0; padding: 0; border: 0; }
.feedback-body legend { margin-bottom: 10px; font-size: .8rem; font-weight: 850; }
.feedback-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.feedback-categories label { cursor: pointer; }
.feedback-categories input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-categories span { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: .74rem; font-weight: 800; }
.feedback-categories input:checked + span { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.feedback-categories input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 3px; }
.privacy-caution { margin-top: 20px; padding: 14px 16px; display: grid; gap: 4px; border-left: 3px solid var(--coral); background: var(--coral-soft); font-size: .75rem; }
.privacy-caution strong { color: var(--danger); }
.privacy-caution span { color: var(--muted); }
.feedback-actions { margin-top: 18px; display: flex; gap: 8px; }
.email-note { margin-bottom: 0; color: var(--muted); font-size: .7rem; }

.beta-dialog { width: min(calc(100% - 32px), 650px); }
.beta-dialog-shell { position: relative; padding: 32px; display: grid; min-width: 0; gap: 14px; overflow-wrap: anywhere; }
.beta-dialog-shell > .dialog-close { position: absolute; top: 18px; right: 18px; }
.beta-dialog-shell > .card-kicker { margin: 0; padding-right: 52px; color: var(--green); }
.beta-dialog-shell h2 { max-width: calc(100% - 42px); margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.35; text-wrap: balance; }
.beta-dialog-shell > p:not(.card-kicker, .beta-privacy) { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.75; text-wrap: pretty; }
.beta-privacy { margin: 2px 0 0; padding: 15px 16px; display: grid; gap: 4px; border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 14px; background: var(--green-soft); }
.beta-privacy strong { color: var(--green); font-size: .74rem; }
.beta-privacy span { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.beta-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.beta-dialog-actions > button { width: 100%; min-width: 0; min-height: 48px; white-space: normal; }
.beta-session-button { width: fit-content; max-width: 100%; min-height: 42px; margin: -4px auto 0; padding: 7px 10px; border: 0; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.beta-dialog :focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: min(380px, calc(100% - 40px)); padding: 13px 17px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-size: .78rem; font-weight: 750; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.error-page { min-height: 100svh; display: grid; place-items: center; padding: 30px; }
.error-page main { width: min(100%, 680px); min-height: auto; text-align: center; }
.error-page img { margin: 0 auto 24px; }
.error-page .eyebrow { justify-content: center; }
.error-page h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.05em; }
.error-page p:not(.eyebrow) { color: var(--muted); }
.error-page .primary-button { margin-top: 20px; }

@media (max-width: 920px) {
  :root { --header-height: 132px; }
  .local-badge { display: none; }
  .plan-button { min-width: 76px; }
  .icon-button { width: 42px; padding: 0; justify-content: center; }
  .icon-button .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .progress-nav ol { padding-inline: 14px; justify-content: stretch; }
  .progress-nav li { flex: 1 1 0; min-width: 0; }
  .progress-nav button { width: 100%; min-width: 0; padding-inline: 6px; overflow-wrap: anywhere; }
  .progress-nav button::after { right: 8px; left: 8px; }
  .service-position { grid-template-columns: 1fr; gap: 6px; }
  .service-position strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .home-layout, .prepare-grid, .review-layout { grid-template-columns: 1fr; }
  .home-view { align-items: start; }
  .promise-panel { max-width: 720px; }
  .prepare-grid { gap: 18px; }
  .prep-card { order: -1; }
  .guide-layout { grid-template-columns: 1fr; }
  .skill-rail { grid-template-columns: repeat(6, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .skill-button { scroll-snap-align: start; }
  .rescue-card { margin-left: 0; }
  .memo-layout { grid-template-columns: 1fr; }
  .prompt-column { grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .memo-tab { scroll-snap-align: start; }
  .approval-panel { position: static; }
  .rewrite-layout { grid-template-columns: 1fr; }
}

@media (min-width: 921px) and (max-height: 860px) {
  :root { --header-height: 116px; }
  .header-inner { min-height: 68px; padding-block: 9px; }
  .progress-nav ol, .progress-nav button { min-height: 48px; }
  .view { padding: clamp(20px, 3vh, 32px) 0; }
  .home-layout { gap: clamp(26px, 4vw, 54px); }
  .eyebrow, .card-kicker, .panel-kicker, .step-label, .editor-heading p { margin-bottom: 13px; }
  .hero-copy h1 { font-size: clamp(2.25rem, 3.8vw, 3.65rem); }
  .hero-description { margin-top: 16px; line-height: 1.68; }
  .service-position { margin-top: 14px; padding-block: 10px; }
  .trial-notice { margin-top: 9px; padding-block: 9px; }
  .hero-actions { margin-top: 18px; }
  .promise-panel { padding: clamp(20px, 2.6vw, 31px); }
  .promise-list { margin-top: 16px; }
  .promise-list li { padding: 10px 0; }
  .section-heading { margin-bottom: 22px; }
  .section-heading > p:last-child { margin-top: 11px; line-height: 1.6; }
  .compact-heading { margin-bottom: 18px; }
  .guidance-card { min-height: 0; }
  .guidance-sentence { margin-block: clamp(18px, 3vh, 28px); }
}

@media (max-width: 680px) {
  :root { --header-height: 124px; --radius: 20px; }
  body { background-size: auto, 24px 24px, auto; }
  .header-inner { min-height: 72px; padding: 10px 14px; gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy strong { font-size: .88rem; }
  .brand-copy span { font-size: .62rem; }
  .local-badge { display: none; }
  .plan-button { display: none; }
  .language-picker select { width: 76px; min-height: 40px; padding-inline: 10px 22px; font-size: .67rem; }
  .language-picker::after { right: 8px; }
  .experience-badge { min-height: 40px; padding-inline: 9px; }
  .experience-badge span { display: none; }
  .icon-button { width: 42px; padding: 0; justify-content: center; }
  .icon-button .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .progress-nav ol { min-height: 52px; padding: 0 8px; justify-content: stretch; }
  .progress-nav li { flex: 1; }
  .progress-nav button { width: 100%; min-height: 52px; padding: 0 3px; font-size: .69rem; }
  .progress-nav button span { display: block; margin: 0 0 -5px; font-size: .56rem; }
  .progress-nav button::after { right: 10px; left: 10px; }
  .view { width: min(calc(100% - 28px), var(--content)); padding: 32px 0 46px; }
  .plan-stage-summary { width: min(calc(100% - 28px), var(--content)); margin-top: 12px; grid-template-columns: auto 1fr; gap: 7px 12px; }
  .plan-stage-summary p { font-size: .66rem; }
  .plan-stage-summary .text-button { grid-column: 1 / -1; width: 100%; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12.2vw, 3.6rem); }
  .hero-description { margin-top: 22px; font-size: .92rem; }
  .service-position { grid-template-columns: 1fr; gap: 5px; margin-top: 18px; padding: 13px 15px; }
  .service-position strong { white-space: normal; }
  .hero-actions { align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .trial-notice { align-items: start; flex-direction: column; gap: 4px; }
  .promise-panel { padding: 26px 22px; }
  .promise-panel h2 { font-size: 1.9rem; }
  .operation-boundaries { display: grid; grid-template-columns: 1fr; }
  .operation-boundaries span { border-radius: 10px; }
  .boundary-note { align-items: start; flex-direction: column; }
  .boundary-note span { text-align: left; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h1, .compact-heading h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .section-heading > p:last-child { margin-top: 14px; font-size: .82rem; }
  .mode-bar { grid-template-columns: 1fr; }
  .mode-button { min-height: 54px; }
  .skill-rail { margin-inline: -14px; padding-inline: 14px; }
  .skill-button { min-height: 50px; }
  .guidance-card { min-height: 0; padding: 24px 20px; }
  .guidance-sentence { margin: 30px 0 22px; font-size: 1.55rem; }
  .wait-cue { grid-template-columns: 10px 1fr; }
  .wait-cue p { grid-column: 2; }
  .guidance-details dl { grid-template-columns: 1fr; }
  .guidance-actions { flex-direction: column; }
  .guidance-actions > * { width: 100%; }
  .phrase-tools { justify-content: space-between; }
  .rescue-card { grid-template-columns: 1fr; }
  .rescue-card button { justify-self: start; padding: 0; }
  .stage-footer-actions { align-items: stretch; flex-direction: column-reverse; }
  .stage-footer-actions > * { width: 100%; }
  .prompt-column { margin-inline: -14px; padding-inline: 14px; }
  .memo-editor { padding: 22px 18px; }
  .memo-editor textarea { min-height: 154px; padding: 15px; font-size: 16px; }
  .textarea-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
  .transcription-panel { grid-template-columns: 1fr; }
  .live-transcript-proof { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .transcription-actions { justify-content: space-between; }
  .boundary-checks { grid-template-columns: 1fr; padding: 16px; }
  .review-heading { align-items: start; flex-direction: column; gap: 4px; }
  .review-field { grid-template-columns: 1fr; gap: 6px; }
  .confirmed-panel, .trial-complete-panel { align-items: stretch; flex-direction: column; }
  .report-workspace { padding: 20px 16px; }
  .report-template-toolbar { grid-template-columns: 1fr; }
  .report-template-toolbar > button { width: 100%; }
  .report-preview-section, .pdf-mapping-row { grid-template-columns: 1fr; gap: 6px; }
  .report-actions { display: grid; grid-template-columns: 1fr; }
  .report-actions > * { width: 100%; }
  .principle-grid { grid-template-columns: 1fr; }
  .feedback-actions { flex-direction: column; }
  .rewrite-boundary-note { grid-template-columns: 1fr; gap: 6px; }
  .rewrite-input-panel, .rewrite-result-panel { padding: 22px 18px; }
  .rewrite-setup-grid,
  .rewrite-choice-group > div,
  .rewrite-output-grid { grid-template-columns: 1fr; }
  .rewrite-situation-field,
  .rewrite-output-grid label:first-child { grid-column: auto; }
  .rewrite-speech-panel { grid-template-columns: 1fr; }
  .rewrite-speech-panel .transcription-actions { width: 100%; }
  .rewrite-result-actions,
  .rewrite-export-actions { display: grid; grid-template-columns: 1fr; }
  .rewrite-result-actions > *,
  .rewrite-export-actions > * { width: 100%; }
  .beta-dialog-shell { padding: 54px 18px 20px; gap: 11px; }
  .beta-dialog-shell h2 { max-width: 100%; font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .beta-dialog-shell > p:not(.card-kicker, .beta-privacy) { font-size: .78rem; line-height: 1.65; }
  .beta-dialog-actions { grid-template-columns: 1fr; }
  .plan-selector { grid-template-columns: 1fr; }
  .plan-selector label > span { min-height: 0; }
  .access-steps { grid-template-columns: 1fr; }
  .access-steps li { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .access-steps li:last-child { border-bottom: 0; }
  dialog { border-radius: 19px; }
  .site-footer { padding: 22px 14px calc(22px + env(safe-area-inset-bottom)); }

  /* Mobile Korean typesetting: justify only sustained prose, never controls or short labels. */
  main :where(p, li, blockquote, figcaption, dd) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  :root[data-language="ko"] main :where(
    .hero-description,
    .service-position p,
    .hero-copy blockquote,
    .promise-list p,
    .section-heading > p:last-child,
    .boundary-note span,
    .rewrite-boundary-note p,
    .rewrite-original-preserved blockquote,
    .privacy-caution span,
    .principle-grid p,
    .report-preview p,
    .report-preview dd
  ) {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-character;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-spacing: normal;
    hyphens: none;
  }
}

@media (max-width: 390px) {
  .brand-copy span { display: none; }
  .header-actions { gap: 5px; }
  .experience-badge { display: none; }
  .language-picker select { width: 58px; }
  .icon-button { width: 40px; min-height: 40px; }
  .hero-copy h1 { font-size: 2.35rem; }
}

@media (max-width: 340px) {
  .header-inner { padding-inline: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: .78rem; }
  .header-actions { gap: 3px; }
  .language-picker select { width: 50px; padding-left: 7px; }
  .icon-button { width: 36px; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --line: currentColor; --line-strong: currentColor; }
  .primary-button { color: #000; }
  #guidanceSentence.is-speech-current { outline-width: 4px; background: Canvas; color: CanvasText; }
}

@media (forced-colors: active) {
  #guidanceSentence.is-speech-current { outline: 4px solid Highlight; background: Canvas; color: CanvasText; box-shadow: inset 5px 0 0 Highlight; forced-color-adjust: auto; }
  [dir="rtl"] #guidanceSentence.is-speech-current { box-shadow: inset -5px 0 0 Highlight; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .stage-footer-actions, dialog, .toast { display: none !important; }
  body { color: #000; background: #fff; }
  .view { width: 100%; min-height: 0; padding: 0; }
  .view[hidden] { display: none !important; }
  .rewrite-input-panel, .rewrite-result-actions, .rewrite-confirmation, .rewrite-urgent-note, .rewrite-legal,
  .review-layout, .confirmed-panel, .trial-complete-panel, .report-workspace-heading, .report-template-toolbar,
  .report-actions, .custom-pdf-panel { display: none !important; }
  .rewrite-layout { display: block; }
  .rewrite-result-panel { border: 0; box-shadow: none; }
  .report-workspace { display: block !important; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .report-preview { margin: 0; padding: 0; border: 0; }
  .report-preview-section { break-inside: avoid; }
}

/* Search and answer-engine discovery surfaces. These are ordinary visible
   documents: no hidden keyword blocks, tracking scripts, or remote assets. */
.knowledge-entry {
  width: min(100%, var(--content));
  margin: 24px auto 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.knowledge-entry p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.knowledge-entry > a { color: var(--green); font-weight: 850; text-underline-offset: 4px; }
.knowledge-entry nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.knowledge-entry nav a { color: var(--muted); font-size: .76rem; font-weight: 750; text-underline-offset: 3px; }

.answer-document { min-height: 100%; color: var(--ink); background: var(--bg); }
.answer-document .answer-header,
.answer-document .answer-main,
.answer-document .answer-footer { width: min(calc(100% - 32px), 960px); margin-inline: auto; }
.answer-document .answer-header { padding: 28px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.answer-document .answer-header a { color: inherit; font-weight: 850; text-decoration: none; }
.answer-document .answer-header nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .82rem; }
.answer-document .answer-main { padding: clamp(42px, 8vw, 88px) 0; }
.answer-document .answer-intro { max-width: 760px; }
.answer-document .answer-intro .eyebrow { color: var(--coral); }
.answer-document .answer-intro h1 { margin: 12px 0 18px; font-size: clamp(2.15rem, 7vw, 4.75rem); line-height: 1.08; letter-spacing: -.045em; }
.answer-document .answer-intro > p:last-child { color: var(--muted); line-height: 1.8; }
.answer-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.answer-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.answer-card h2 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.4; }
.answer-card p, .answer-card li { color: var(--muted); line-height: 1.75; }
.answer-card p { margin: 0; }
.answer-card ol, .answer-card ul { margin: 0; padding-inline-start: 1.3rem; }
.answer-card-wide { grid-column: 1 / -1; }
.related-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 !important; list-style: none; }
.related-service-list a { height: 100%; padding: 14px; display: block; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 800; text-decoration: none; }
.related-service-list small { display: block; margin-top: 5px; color: var(--muted); font-weight: 550; line-height: 1.55; }
.answer-boundary { border-inline-start: 4px solid var(--coral); }
.status-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-columns > section { padding: 16px; border-radius: 12px; background: var(--surface-2); }
.answer-card h3 { margin: 0 0 8px; font-size: .88rem; }
.answer-document .answer-footer { padding: 20px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.65; }
.answer-document :focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

@media (prefers-color-scheme: dark) {
  .answer-document:not([data-theme="light"]) {
    --bg: #0c1714;
    --surface: #12221e;
    --surface-2: #192d27;
    --ink: #f3f0e8;
    --muted: #b8c4be;
    --line: rgba(236, 242, 238, .16);
    --green: #78c7ad;
    --coral: #ef9b77;
    color-scheme: dark;
  }
}

@media (max-width: 680px) {
  .knowledge-entry { grid-template-columns: 1fr; }
  .knowledge-entry nav { grid-column: auto; }
  .answer-document .answer-header { align-items: flex-start; flex-direction: column; }
  .answer-grid, .related-service-list, .status-columns { grid-template-columns: 1fr; }
  .answer-card-wide { grid-column: auto; }
}
