/*
 * Space Road identity layer
 * POV: a calm host desk where Okgongi helps complete one lodging note at a time.
 */

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

:root {
  --font-ui: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --text-body: 1.125rem;
  --text-label: 1.0625rem;
  --text-small: 0.9375rem;
  --control-height: 56px;
  --road-ink: #173329;
  --road-muted: #647268;
  --road-green: #14523f;
  --road-green-deep: #0c3d30;
  --road-jade: #dff2e5;
  --road-jade-strong: #acd5b8;
  --road-paper: #fffdf8;
  --road-canvas: #f3efe6;
  --road-oat: #e4dac8;
  --road-coral: #e77455;
  --road-gold: #b28a42;
  --road-line: #d9d0c1;
  --road-focus: #dd704d;
  --road-shadow: 0 18px 50px rgba(45, 38, 28, 0.08);
  --road-radius: 22px;
}

/* A clearly visible fresh-start action for shared classroom devices. */
.topbar-actions {
  gap: 10px;
}

.global-reset-button {
  min-height: 44px;
  border: 1px solid rgba(158, 70, 49, 0.3);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  padding: 0 16px;
  color: #8c3f2d;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.global-reset-button:hover {
  border-color: #a14a35;
  background: #fff2ec;
  color: #743120;
}

#resetConfirmModal {
  z-index: 100;
}

.reset-confirm-modal {
  width: min(520px, 100%);
  border: 1px solid var(--road-line);
  border-radius: 22px;
  background: var(--road-paper);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 100px rgba(23, 33, 29, 0.24);
  text-align: center;
}

.reset-confirm-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff0e9;
  color: #9a422e;
  font-size: 30px;
  font-weight: 800;
}

.reset-confirm-modal h2 {
  margin: 6px 0 12px;
  color: var(--road-ink);
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.25;
}

.reset-confirm-modal > p:not(.eyebrow) {
  margin: 0;
  color: var(--road-muted);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.reset-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.reset-confirm-actions button {
  min-height: 56px;
  border-radius: 12px;
  font-size: 16px;
}

.danger-button {
  border: 1px solid #a74732;
  background: #99412e;
  padding: 0 18px;
  color: #fff;
}

.danger-button:hover {
  background: #793221;
}

/* The two primary work surfaces share one frame on desktop. */
@media (min-width: 1101px) {
  body[data-screen="lodging"] .workspace {
    --intake-panel-height: clamp(680px, 72vh, 780px);
    align-items: stretch;
  }

  body[data-screen="lodging"] .workspace > .chat-panel,
  body[data-screen="lodging"] .workspace > .side-panel {
    align-self: stretch;
    height: var(--intake-panel-height);
    min-height: 0;
  }

  body[data-screen="lodging"] .workspace > .side-panel .missing-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  body[data-screen="lodging"] .chat-panel.guided-mode .guided-question:not([hidden]) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-screen="lodging"] .chat-panel.guided-mode {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .global-reset-button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .reset-confirm-actions {
    grid-template-columns: 1fr;
  }
}

/* Simplified AI textbook journey ------------------------------------------------ */
.journey-screen[hidden],
.journey-navigation[hidden],
.journey-stepper[hidden],
.flow-screen[hidden] {
  display: none !important;
}

body[data-journey="start"] .topbar-actions,
body[data-journey="method"] .topbar-actions {
  display: none;
}

body[data-journey="start"],
body[data-journey="method"],
body[data-journey="question"],
body[data-journey="complete"] {
  background:
    radial-gradient(circle at 88% 8%, rgba(172, 213, 184, 0.22), transparent 30%),
    linear-gradient(180deg, #f7f3ea 0%, #f1ece1 100%);
  color: var(--road-ink);
}

body[data-journey] .app-shell {
  width: min(1180px, calc(100% - 40px));
  padding: 14px 0 40px;
}

body[data-journey] .topbar {
  min-height: 68px;
  margin-bottom: 14px;
  border: 1px solid rgba(217, 208, 193, 0.86);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.88);
  padding: 8px 16px;
  box-shadow: 0 10px 32px rgba(45, 38, 28, 0.05);
}

body[data-journey] .brand-mark {
  width: 42px;
  height: 52px;
}

body[data-journey] .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.start-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  min-height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--road-line);
  border-radius: 30px;
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.95) 57%, rgba(223, 242, 229, 0.8) 100%);
  padding: clamp(34px, 5vw, 72px);
  box-shadow: 0 28px 80px rgba(45, 38, 28, 0.1);
}

.start-copy {
  position: relative;
  z-index: 2;
  max-width: 670px;
}

.start-copy h1,
.method-heading h1,
.completion-hero h1 {
  margin: 8px 0 20px;
  color: var(--road-green-deep);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.start-lead {
  margin: 0;
  color: #314b40;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.65;
  word-break: keep-all;
}

.start-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  border-radius: 999px;
  background: #f0eadf;
  padding: 9px 16px;
  color: #5c493f;
  font-size: 17px;
  font-weight: 700;
}

.start-button {
  display: block;
  width: min(100%, 420px);
  min-height: 62px !important;
  border-radius: 16px !important;
  font-size: 20px !important;
  box-shadow: 0 12px 28px rgba(12, 61, 48, 0.18);
}

.how-it-works {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
}

.optional-more summary,
.input-review summary,
.textbook-preview summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  color: var(--road-green-deep);
  font-size: 17px;
  font-weight: 750;
}

.optional-more summary::after,
.input-review > summary::after,
.textbook-preview > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
}

.optional-more[open] summary::after,
.input-review[open] > summary::after,
.textbook-preview[open] > summary::after {
  content: "−";
}

.how-it-works h2 {
  margin: 0 0 14px;
  color: var(--road-green-deep);
  font-size: 20px;
  line-height: 1.35;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  border: 1px solid #cbdccf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  color: #294a3d;
  box-shadow: 0 8px 22px rgba(45, 38, 28, 0.05);
}

.how-it-works li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -23px;
  color: var(--road-gold);
  font-size: 20px;
  font-weight: 900;
}

.how-it-works li > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--road-green);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.how-it-works li strong {
  font-size: 16px;
  line-height: 1.4;
  word-break: keep-all;
}

.start-mascot {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: min(100%, 390px);
  margin: 0 -22px -72px 0;
}

.start-mascot img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(12, 61, 48, 0.12));
}

.mascot-halo {
  position: absolute;
  inset: 14% 0 7%;
  border-radius: 50%;
  background: rgba(172, 213, 184, 0.42);
  filter: blur(2px);
}

.method-screen {
  min-height: min(600px, calc(100vh - 110px));
  border: 1px solid var(--road-line);
  border-radius: 28px;
  background: var(--road-paper);
  padding: clamp(34px, 5vw, 64px);
  box-shadow: var(--road-shadow);
}

.method-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.method-heading h1 {
  font-size: clamp(34px, 4vw, 50px);
}

.method-heading > p:last-child {
  margin: 0;
  color: #52675d;
  font-size: 19px;
}

.method-options {
  display: grid;
  width: min(900px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.method-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  border: 2px solid #d8d0c2;
  border-radius: 20px;
  background: #fffefa;
  padding: 20px 24px;
  color: var(--road-ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.method-card:hover,
.method-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--road-green);
  box-shadow: 0 14px 34px rgba(20, 82, 63, 0.1);
}

.method-card.recommended {
  border-color: rgba(20, 82, 63, 0.48);
  background: linear-gradient(135deg, #fffefa, #eff7f0);
}

.method-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--road-green-deep);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.method-card strong,
.method-card small {
  display: block;
}

.method-card strong {
  font-size: 22px;
  line-height: 1.35;
}

.method-card small {
  margin-top: 6px;
  color: #51665c;
  font-size: 17px;
  line-height: 1.5;
}

.method-arrow {
  color: var(--road-green);
  font-size: 28px;
  font-weight: 800;
}

.back-to-start {
  display: block;
  margin: 20px auto 0;
}

.journey-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
}

.journey-category-scroll {
  min-width: 0;
}

.journey-stepper {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-stepper li {
  min-height: 58px;
  border: 1px solid #d8d0c2;
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.82);
  color: #66756d;
  font-size: 16px;
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.journey-stepper li button {
  display: flex;
  width: 100%;
  min-height: 58px;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  background: transparent;
  padding: 7px 9px;
  color: inherit;
  font-size: inherit;
  line-height: 1.15;
  text-align: center;
}

.journey-stepper li:not(.active):hover {
  border-color: #8fb9a0;
  background: #f5faf6;
  transform: translateY(-1px);
}

.journey-stepper li button:focus-visible {
  outline: 3px solid var(--road-focus);
  outline-offset: -4px;
}

.journey-stepper li span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e7e1d6;
  color: #58675f;
  font-size: 13px;
  font-weight: 800;
}

.journey-stepper li.active {
  border-color: var(--road-green);
  background: var(--road-green-deep);
  color: #fff;
}

.journey-stepper li.active span {
  background: #fff;
  color: var(--road-green-deep);
}

.journey-stepper li.done {
  border-color: #afcbb7;
  background: #edf6ef;
  color: var(--road-green-deep);
}

.journey-stepper li.done span {
  background: #b8d8c0;
  color: var(--road-green-deep);
}

.final-review-button {
  display: grid;
  min-height: 122px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-content: center;
  align-items: center;
  border: 2px solid #c0a35a;
  border-radius: 15px;
  background: #fff8df;
  padding: 8px 12px;
  color: #694e18;
  text-align: left;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.final-review-button > span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 50%;
  background: #ead9a5;
  font-size: 20px;
  font-weight: 900;
}

.final-review-button strong {
  font-size: 18px;
  line-height: 1.2;
}

.final-review-button small {
  color: #766640;
  font-size: 12px;
  font-weight: 700;
}

.final-review-button:hover,
.final-review-button:focus-visible,
.final-review-button.ready {
  border-color: var(--road-green);
  background: #edf6ef;
  color: var(--road-green-deep);
  transform: translateY(-1px);
}

.final-review-button.active {
  border-color: var(--road-green-deep);
  background: var(--road-green-deep);
  color: #fff;
}

.final-review-button.active > span {
  background: #fff;
  color: var(--road-green-deep);
}

.final-review-button.active small {
  color: #e5f1e8;
}

.question-workspace {
  display: grid;
  gap: 10px;
}

body[data-journey="question"] .chat-panel,
.question-screen .chat-panel {
  min-height: 0;
  border: 1px solid var(--road-line);
  border-radius: 24px;
  background: var(--road-paper);
  padding: 0;
  box-shadow: var(--road-shadow);
}

.question-screen .messages {
  display: none !important;
}

.question-screen .guided-question:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(0, 1.42fr);
  grid-template-areas:
    "coach progress"
    "visual form";
  gap: 12px 30px;
  align-items: start;
  min-height: 430px;
  border: 0;
  background: transparent;
  padding: 24px 30px;
  box-shadow: none;
}

.question-coach {
  grid-area: coach;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.question-coach img {
  width: 44px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.question-coach p {
  margin: 0;
  color: #466055;
  font-size: 15px;
  line-height: 1.45;
}

.question-screen .guided-progress {
  grid-area: progress;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin: 0;
  border-radius: 13px;
  background: #edf5ee;
  padding: 9px 14px;
  color: var(--road-green-deep);
}

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

.guided-progress-meter {
  width: clamp(100px, 16vw, 180px);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e5da;
  box-shadow: inset 0 1px 2px rgba(18, 63, 49, 0.1);
}

.guided-progress-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8b62 0%, #62b77e 100%);
  transition: width 220ms ease;
}

.question-screen .guided-progress .global-reset-button {
  min-height: 38px;
  padding: 0 13px;
  background: #fff8f5;
  font-size: 14px;
}

.question-screen .guided-progress span,
.question-screen .guided-progress strong {
  font-size: 16px;
  line-height: 1.4;
}

.question-screen .guided-visual {
  grid-area: visual;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  margin: 4px auto 0;
  border: 0;
  border-radius: 22px;
  background: #eef5ec;
}

.question-screen .guided-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.question-screen .guided-form {
  grid-area: form;
  min-width: 0;
  padding: 2px 0 0;
}

.question-screen .guided-kicker,
.composer-kicker {
  margin: 0 0 5px;
  color: var(--road-green);
  font-size: 15px;
  font-weight: 800;
}

.question-screen .guided-form h3 {
  margin: 0;
  color: var(--road-ink);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.question-screen .guided-help {
  margin: 7px 0 14px;
  color: #52675d;
  font-size: 18px;
}

.question-screen .guided-control input[type="text"],
.question-screen .guided-control input[type="tel"],
.question-screen .guided-control input[type="time"],
.question-screen .guided-control textarea,
.question-screen .guided-custom {
  min-height: 56px;
  border: 2px solid #b9c5bc;
  border-radius: 13px;
  background: #fff;
  font-size: 18px;
}

.question-screen .guided-control textarea {
  min-height: 84px;
  max-height: 104px;
}

.question-screen .guided-choices,
.question-screen .guided-choices:not(.yesno) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.question-screen .guided-choice,
.question-screen .guided-quicks button {
  min-height: 52px;
  font-size: 17px;
}

.question-screen .bed-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.question-screen .bed-row {
  min-height: 54px;
  padding: 7px 9px;
}

.question-screen .guided-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.question-screen .guided-save,
.question-screen .composer-footer button {
  min-height: 58px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 800;
}

.input-safety {
  margin: 10px 0 0;
  border-left: 4px solid #b26a24;
  border-radius: 8px;
  background: #fff4df;
  padding: 9px 11px;
  color: #654317;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.45;
}

.batch-composer {
  display: grid;
  width: min(780px, calc(100% - 48px));
  min-height: 430px;
  align-content: center;
  margin: 0 auto;
  border: 0;
  padding: 28px 0;
}

.batch-composer > label {
  color: var(--road-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.composer-help {
  margin: 6px 0 14px;
  color: #52675d;
  font-size: 17px;
}

.batch-composer textarea {
  min-height: 138px;
  border: 2px solid #b9c5bc;
  border-radius: 14px;
  background: #fff;
  padding: 15px 16px;
  font-size: 18px;
}

.batch-composer .composer-footer {
  display: block;
  margin-top: 12px;
}

.batch-composer .composer-footer button {
  width: 100%;
}

.batch-composer .return-guided {
  margin: 8px auto 0;
}

.input-review {
  border: 1px solid var(--road-line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  padding: 0 18px;
}

.input-review > summary {
  min-height: 54px;
}

.input-review-body {
  border-top: 1px solid var(--road-line);
  padding: 16px 0 20px;
}

.question-screen .missing-list {
  max-height: none;
  overflow: visible;
  padding: 0;
  scrollbar-gutter: auto;
}

.completion-screen {
  display: grid;
  gap: 18px;
}

.completion-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--road-line);
  border-radius: 26px;
  background: linear-gradient(135deg, #fffdf8, #eaf5ec);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--road-shadow);
}

.completion-hero h1 {
  font-size: clamp(34px, 4vw, 50px);
}

.completion-hero p:last-child {
  margin: 0;
  color: #40594d;
  font-size: 19px;
  line-height: 1.65;
}

.completion-hero figure {
  align-self: end;
  width: 220px;
  margin: -14px 0 -62px;
}

.completion-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.completion-screen .document-panel,
.next-work {
  border: 1px solid var(--road-line);
  border-radius: 22px;
  background: var(--road-paper);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 14px 38px rgba(24, 45, 34, 0.06);
}

.completion-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.completion-actions button,
.next-work-grid button {
  min-height: 58px;
  font-size: 18px;
}

.completion-screen .privacy-note {
  margin: 16px 0;
  border: 1px solid #e0bb79;
  border-radius: 12px;
  background: #fff5e3;
  padding: 12px 14px;
  color: #674315;
  font-size: 16px;
  font-weight: 680;
}

.textbook-preview {
  border-top: 1px solid var(--road-line);
}

.textbook-preview pre {
  max-height: 360px;
  overflow: auto;
  margin: 4px 0 0;
  border: 1px solid #d7ded8;
  border-radius: 14px;
  background: #f8f6f0;
  padding: 20px;
  color: var(--road-ink);
  font-size: 17px;
  line-height: 1.8;
}

.next-work h2 {
  margin: 4px 0 18px;
  color: var(--road-ink);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
}

.next-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.optional-more {
  margin-top: 14px;
  border-top: 1px solid var(--road-line);
}

.optional-more button {
  width: 100%;
  margin: 2px 0 10px;
}

@media (min-width: 901px) and (min-height: 650px) {
  body[data-journey="question"] {
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  body[data-journey] .app-shell {
    width: calc(100% - 24px);
    padding-top: 8px;
  }

  body[data-journey] .topbar {
    min-height: 62px;
    margin-bottom: 8px;
    padding: 6px 10px;
  }

  body[data-journey] .brand-mark {
    width: 36px;
    height: 44px;
  }

  body[data-journey] .brand-copy strong {
    font-size: 18px;
  }

  body[data-journey] .brand-copy small {
    font-size: 13px;
  }

  .global-reset-button,
  .status-pill {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .start-screen {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 82px);
    align-content: start;
    border-radius: 22px;
    padding: 30px 22px 0;
  }

  .start-copy h1 {
    font-size: clamp(37px, 11vw, 46px);
    line-height: 1.16;
  }

  .start-lead {
    font-size: 19px;
  }

  .start-meta {
    display: flex;
    width: fit-content;
    margin: 17px 0;
    font-size: 15px;
  }

  .start-button {
    width: 100%;
  }

  .how-it-works {
    grid-row: 2;
    width: 100%;
    margin-top: 22px;
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .how-it-works li {
    min-height: 58px;
  }

  .how-it-works li:not(:last-child)::after {
    content: "↓";
    right: auto;
    bottom: -17px;
    left: 22px;
    font-size: 16px;
  }

  .start-mascot {
    grid-row: 3;
    width: 190px;
    margin: 10px auto -34px;
  }

  .method-screen {
    min-height: calc(100svh - 82px);
    border-radius: 22px;
    padding: 30px 18px;
  }

  .method-heading {
    margin-bottom: 22px;
  }

  .method-heading h1 {
    font-size: 34px;
  }

  .method-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 126px;
    gap: 14px;
    padding: 17px 15px;
  }

  .method-number {
    width: 42px;
    height: 42px;
  }

  .method-card strong {
    font-size: 19px;
  }

  .method-card small {
    font-size: 15px;
  }

  .method-arrow {
    display: none;
  }

  .journey-navigation {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 8px;
  }

  .journey-category-scroll {
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .journey-stepper {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 5px;
  }

  .journey-stepper li {
    width: 136px;
    min-height: 52px;
    flex: 0 0 136px;
    border-radius: 12px;
    font-size: 15px;
  }

  .journey-stepper li button {
    min-height: 52px;
    flex-direction: row;
    gap: 5px;
    padding: 6px 7px;
  }

  .journey-stepper li span {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .final-review-button {
    min-height: 52px;
    grid-template-columns: 34px auto 1fr;
    grid-template-rows: 1fr;
    column-gap: 8px;
    padding: 6px 12px;
  }

  .final-review-button > span {
    width: 31px;
    height: 31px;
    grid-row: auto;
    font-size: 18px;
  }

  .final-review-button strong {
    font-size: 17px;
  }

  .final-review-button small {
    justify-self: end;
  }

  .question-screen .guided-question:not([hidden]) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "coach"
      "form";
    gap: 8px;
    min-height: 0;
    border-radius: 18px;
    padding: 14px 15px 15px;
  }

  .question-screen .guided-visual {
    display: none;
  }

  .question-coach {
    min-height: 42px;
  }

  .question-coach img {
    width: 34px;
    height: 42px;
  }

  .question-coach p {
    font-size: 14px;
  }

  .question-screen .guided-progress {
    min-height: 43px;
    padding: 7px 11px;
  }

  .guided-progress-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .guided-progress-meter {
    flex: 1 1 auto;
    width: auto;
  }

  .question-screen .guided-progress span,
  .question-screen .guided-progress strong {
    font-size: 14px;
  }

  .question-screen .guided-kicker {
    display: none;
  }

  .question-screen .guided-form h3 {
    font-size: 26px;
  }

  .question-screen .guided-help {
    margin: 5px 0 10px;
    font-size: 16px;
  }

  .question-screen .guided-control input[type="text"],
  .question-screen .guided-control input[type="tel"],
  .question-screen .guided-control input[type="time"],
  .question-screen .guided-control textarea,
  .question-screen .guided-custom {
    font-size: 17px;
  }

  .question-screen .guided-control textarea {
    min-height: 76px;
  }

  .question-screen .guided-actions {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
  }

  .question-screen .guided-actions .text-button {
    min-height: 44px;
    padding-block: 7px;
    font-size: 15px;
  }

  .input-safety {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .question-screen .guided-choices,
  .question-screen .guided-choices:not(.yesno) {
    grid-template-columns: 1fr 1fr;
  }

  .question-screen .bed-matrix {
    grid-template-columns: 1fr 1fr;
  }

  .batch-composer {
    width: calc(100% - 30px);
    min-height: calc(100svh - 158px);
    padding: 18px 0;
  }

  .batch-composer > label {
    font-size: 26px;
  }

  .batch-composer textarea {
    min-height: 150px;
  }

  .input-review {
    border-radius: 13px;
    padding: 0 14px;
  }

  .completion-hero {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 25px 20px;
  }

  .completion-hero h1 {
    font-size: 34px;
  }

  .completion-hero p:last-child {
    font-size: 17px;
  }

  .completion-hero figure {
    display: none;
  }

  .completion-actions,
  .next-work-grid {
    grid-template-columns: 1fr;
  }

  .completion-screen .document-panel,
  .next-work {
    border-radius: 18px;
    padding: 19px 16px;
  }

  .textbook-preview pre {
    max-height: none;
    overflow: visible;
    padding: 15px;
    font-size: 16px;
  }
}

/* Home hub: two equally prominent tools, with a header that follows context. */
body[data-journey] .brand-copy-home,
body[data-journey] .brand-copy-textbook,
body[data-journey] .brand-copy-tone {
  display: none;
}

body[data-screen="lodging"][data-journey="start"] .brand-copy-home,
body[data-screen="lodging"]:not([data-journey="start"]) .brand-copy-textbook,
body[data-screen="host"] .brand-copy-tone {
  display: grid;
}

body[data-screen="lodging"][data-journey="start"] .topbar {
  border-color: rgba(181, 197, 185, 0.86);
  background: rgba(250, 253, 249, 0.92);
}

body[data-screen="host"] .topbar {
  border-color: rgba(189, 151, 91, 0.46);
  background: rgba(255, 251, 241, 0.94);
}

body[data-screen="host"] .brand:hover {
  background: #fff5dc;
}

.start-screen {
  display: block;
  min-height: min(590px, calc(100vh - 126px));
  overflow: visible;
  background:
    radial-gradient(circle at 90% 5%, rgba(172, 213, 184, 0.3), transparent 30%),
    radial-gradient(circle at 8% 94%, rgba(220, 181, 112, 0.2), transparent 28%),
    rgba(255, 253, 248, 0.97);
  padding: clamp(30px, 4vw, 50px);
}

.home-menu-heading {
  max-width: 760px;
  margin: 0 auto clamp(24px, 3vw, 34px);
  text-align: center;
}

.home-menu-heading .eyebrow {
  margin: 0 0 6px;
  color: #456b59;
  font-size: 16px;
  font-weight: 800;
}

.home-menu-heading h1 {
  margin: 0;
  color: var(--road-green-deep);
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.home-menu-heading > p:last-child {
  margin: 12px 0 0;
  color: #485f54;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  width: min(1020px, 100%);
  margin: 0 auto;
}

.home-tool-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 344px;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid transparent;
  border-radius: 26px;
  padding: clamp(24px, 3vw, 34px);
  color: var(--road-ink);
  text-align: left;
  box-shadow: 0 16px 36px rgba(45, 38, 28, 0.09);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(35, 48, 40, 0.16);
}

.home-tool-card:focus-visible {
  outline: 4px solid rgba(221, 112, 77, 0.35);
  outline-offset: 3px;
}

.textbook-tool-card {
  border-color: #8eb6a0;
  background: linear-gradient(145deg, #fbfffb 0%, #e1f1e5 100%);
}

.textbook-tool-card:hover,
.textbook-tool-card:focus-visible {
  border-color: var(--road-green);
}

.tone-tool-card {
  border-color: #d0ad6c;
  background: linear-gradient(145deg, #fffefa 0%, #f8e8be 100%);
}

.tone-tool-card:hover,
.tone-tool-card:focus-visible {
  border-color: #956b27;
}

.home-tool-number {
  display: grid;
  width: 66px;
  height: 54px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 17px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.textbook-tool-card .home-tool-number,
.textbook-tool-card .home-tool-action {
  background: var(--road-green-deep);
}

.tone-tool-card .home-tool-number,
.tone-tool-card .home-tool-action {
  background: #8a6125;
}

.home-tool-type {
  margin-bottom: 5px;
  color: #4d6559;
  font-size: 16px;
  font-weight: 750;
}

.tone-tool-card .home-tool-type {
  color: #70551f;
}

.home-tool-card > strong {
  display: block;
  color: var(--road-green-deep);
  font-size: clamp(27px, 2.6vw, 35px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.tone-tool-card > strong {
  color: #644514;
}

.home-tool-description {
  display: block;
  margin: 12px 0 18px;
  color: #385044;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
}

.home-tool-flow,
.home-tool-benefit {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #315342;
  font-size: 15px;
  font-weight: 750;
}

.home-tool-flow span,
.home-tool-benefit > * {
  border: 1px solid rgba(67, 107, 84, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 5px 10px;
  white-space: nowrap;
}

.home-tool-flow b {
  color: #65826f;
}

.home-tool-benefit {
  flex-wrap: wrap;
  color: #644b1b;
}

.home-tool-benefit > * {
  border-color: rgba(138, 97, 37, 0.25);
}

.home-tool-action {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-radius: 15px;
  padding: 13px 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.home-tool-action b {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 780px) {
  body[data-screen="lodging"][data-journey="start"] .app-shell {
    width: min(100% - 24px, 620px);
  }

  .start-screen {
    min-height: 0;
    border-radius: 24px;
    padding: 28px 18px 24px;
  }

  .home-menu-heading {
    margin-bottom: 22px;
  }

  .home-menu-heading .eyebrow {
    font-size: 14px;
  }

  .home-menu-heading h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .home-menu-heading > p:last-child {
    font-size: 17px;
  }

  .home-tool-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-tool-card {
    min-height: 0;
    border-radius: 21px;
    padding: 22px 20px;
  }

  .home-tool-number {
    width: 58px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 20px;
  }

  .home-tool-card > strong {
    font-size: 27px;
  }

  .home-tool-description {
    margin-block: 9px 14px;
    font-size: 16px;
  }

  .home-tool-description br {
    display: none;
  }

  .home-tool-flow,
  .home-tool-benefit {
    margin-bottom: 16px;
    gap: 5px;
    font-size: 13px;
  }

  .home-tool-flow span,
  .home-tool-benefit > * {
    padding: 4px 7px;
  }

  .home-tool-action {
    min-height: 56px;
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  body[data-journey] .brand-copy strong {
    max-width: 230px;
    font-size: 19px;
  }

  body[data-journey] .brand-copy small {
    max-width: 220px;
    font-size: 13px;
  }

  body[data-journey] .brand-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .home-tool-flow {
    justify-content: space-between;
    gap: 3px;
  }
}

html {
  background: var(--road-canvas);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(202, 228, 207, 0.54), transparent 31rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--road-canvas) 100%);
  color: var(--road-ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(68, 55, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 55, 36, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

button,
textarea,
select,
input {
  color: var(--road-ink);
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(221, 112, 77, 0.46);
  outline-offset: 3px;
}

.app-shell {
  width: min(1380px, calc(100% - 48px));
  padding: 16px 0 68px;
}

.topbar {
  min-height: 66px;
  margin: 0 0 14px;
  padding: 0 4px 12px;
  border-bottom-color: rgba(97, 83, 60, 0.16);
}

.brand {
  gap: 11px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(20, 82, 63, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, #f8fff9 5%, #dcefe1 72%);
  box-shadow: 0 6px 18px rgba(20, 82, 63, 0.13);
}

.brand-mark img {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.brand-copy strong {
  color: var(--road-green-deep);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--road-muted);
  font-size: 12px;
}

.status-pill {
  min-width: 108px;
  border-color: rgba(20, 82, 63, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--road-green);
  box-shadow: none;
}

.status-pill::before {
  background: #3f986a;
  box-shadow: 0 0 0 4px rgba(63, 152, 106, 0.12);
}

.onboarding-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 24px;
  min-height: 0;
  align-items: center;
  margin: 0 0 14px;
  padding: 20px 26px;
  overflow: hidden;
  border: 1px solid rgba(127, 105, 69, 0.18);
  border-radius: var(--road-radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(199, 226, 204, 0.7), transparent 24rem),
    linear-gradient(135deg, #fffdf7, #f0eadc);
  color: var(--road-ink);
  box-shadow: var(--road-shadow);
}

.onboarding-hero::after {
  display: none;
}

.hero-mascot {
  display: grid;
  width: 96px;
  height: 112px;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 48px 48px 34px 34px;
  background: rgba(223, 242, 229, 0.82);
}

.hero-mascot img {
  width: 88px;
  height: auto;
  margin-top: 28px;
  filter: drop-shadow(0 12px 14px rgba(20, 82, 63, 0.14));
}

.onboarding-hero .eyebrow {
  color: var(--road-green);
  letter-spacing: 0.04em;
}

.onboarding-hero h1 {
  max-width: 650px;
  margin: 6px 0 8px;
  color: var(--road-green-deep);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.onboarding-hero .hero-copy > p:last-child {
  max-width: 650px;
  margin: 0;
  color: #59685f;
  font-size: 15px;
  line-height: 1.65;
}

.hero-promise {
  gap: 0;
  padding: 6px 14px;
  border: 1px solid rgba(20, 82, 63, 0.13);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-promise span {
  min-height: 40px;
  padding: 8px 4px;
  color: #3e554b;
  font-size: 14px;
}

.hero-promise span + span {
  border-top: 1px dashed rgba(20, 82, 63, 0.16);
}

.hero-promise b {
  color: var(--road-coral);
}

body:not([data-screen="lodging"]) .onboarding-hero,
.core-wizard-started .onboarding-hero {
  display: none;
}

.stepper {
  position: static;
  z-index: 20;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 22px;
  padding: 7px;
  border: 1px solid rgba(127, 105, 69, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 32px rgba(50, 43, 32, 0.08);
  backdrop-filter: blur(14px);
}

.step-pill {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #6d756f;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
}

.step-pill span {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  background: #e9ede7;
  color: #637068;
}

.step-pill:hover {
  background: #f0f6f1;
  color: var(--road-green);
}

.step-pill.active,
.step-pill[aria-current="step"] {
  border-color: transparent;
  background: var(--road-green);
  color: #fff;
  box-shadow: 0 7px 17px rgba(20, 82, 63, 0.17);
}

.step-pill.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.screen-intro {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 16px;
  padding: 4px 2px;
}

.screen-intro .eyebrow,
.panel-kicker,
.optional-step-head .eyebrow,
.guest-card .eyebrow {
  color: var(--road-green);
  letter-spacing: 0.08em;
}

.screen-intro h2,
.optional-step-head h2 {
  color: var(--road-ink);
  font-size: clamp(28px, 3vw, 40px);
}

.screen-intro > div:first-child > p:last-child {
  color: var(--road-muted);
}

.progress-grid {
  gap: 10px;
}

.progress-card {
  position: relative;
  overflow: hidden;
  padding: 13px 15px;
  border: 1px solid var(--road-line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
}

.progress-card.core {
  border-color: rgba(20, 82, 63, 0.32);
  background: linear-gradient(135deg, #f7fff9, #eaf4ec);
}

.progress-card strong {
  color: var(--road-green-deep);
}

.progress-card .progress-track {
  height: 6px;
  background: rgba(20, 82, 63, 0.1);
}

.progress-card .progress-track span {
  background: var(--road-green);
}

.progress-card.total .progress-track span {
  background: var(--road-gold);
}

.workspace {
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.68fr);
  gap: 18px;
}

.chat-panel,
.side-panel,
.document-panel,
.guest-card,
.guest-answer-panel,
.optional-step-head,
.host-card,
.meta-result {
  border: 1px solid var(--road-line);
  border-radius: var(--road-radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--road-shadow);
}

.chat-panel:not(.guided-mode) {
  height: 430px;
  grid-template-rows: auto minmax(120px, 1fr) auto;
}

.chat-panel > .panel-kicker {
  padding-top: 13px;
}

.intake-kicker img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--road-jade);
  object-fit: cover;
  object-position: center 14%;
  transform: none;
}

.message.bot {
  border-color: var(--road-line);
  background: #f4efe6;
  color: #415047;
}

.message.user {
  background: var(--road-green);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top-color: var(--road-line);
  background: #f4efe6;
}

.composer > label,
.composer > textarea,
.composer > .composer-footer,
.composer > .return-guided {
  grid-column: 1;
}

.composer textarea,
.guided-control input,
.guided-control textarea,
.guided-custom {
  border-color: #bfc7c0;
  background: #fffefa;
}

.composer-footer button,
.primary-button,
.guided-save {
  background: var(--road-green);
}

.composer-footer button:hover,
.primary-button:hover,
.guided-save:hover {
  background: var(--road-green-deep);
}

.chat-panel.guided-mode {
  min-height: 0;
  border-color: rgba(20, 82, 63, 0.22);
}

.guided-question:not([hidden]) {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 2.5vw, 30px);
}

.okgongi-guide,
.guided-progress {
  grid-column: 1 / -1;
}

.okgongi-guide {
  gap: 11px;
  margin-bottom: 12px;
}

.okgongi-guide img {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(20, 82, 63, 0.16);
  border-radius: 50%;
  background: var(--road-jade);
  object-fit: cover;
  object-position: center 14%;
  filter: none;
  transform: none;
}

.okgongi-guide > div {
  border-color: rgba(20, 82, 63, 0.18);
  border-radius: 16px 16px 16px 5px;
  background: #edf7ef;
  padding: 11px 15px;
}

.okgongi-guide strong {
  color: var(--road-green);
}

.guided-progress {
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(20, 82, 63, 0.2);
}

.guided-progress span {
  color: var(--road-green);
}

.guided-progress strong {
  border-radius: 999px;
  background: var(--road-jade);
  padding: 6px 11px;
  color: var(--road-green-deep);
  font-size: 14px;
}

.guided-visual {
  grid-column: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border: 0;
  border-radius: 20px;
  background: var(--road-canvas);
  box-shadow: 0 13px 32px rgba(54, 42, 25, 0.12);
}

.guided-form {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 8px 0;
}

.guided-kicker {
  color: var(--road-coral);
  letter-spacing: 0.02em;
}

.guided-form h3 {
  color: var(--road-ink);
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.2;
}

.guided-help {
  color: var(--road-muted);
}

.guided-choice,
.guided-control input[type="text"],
.guided-control input[type="tel"],
.guided-control input[type="time"],
.guided-control textarea,
.guided-custom,
.number-stepper label,
.bed-row {
  border-color: #bfc9c1;
  background: #fffefa;
}

.guided-choice:hover,
button.field-main:hover,
button.field-main:focus-visible {
  border-color: var(--road-green);
  background: #eef6ef;
}

.guided-choice.selected {
  border-color: var(--road-green);
  background: var(--road-green);
}

.number-stepper > button,
.mini-stepper button,
.guided-quicks button {
  border-color: #9db9a5;
  background: #edf6ef;
  color: var(--road-green-deep);
}

.side-panel {
  position: static;
  align-self: start;
  gap: 12px;
  max-height: none;
  border-color: rgba(20, 82, 63, 0.24);
}

.side-panel .panel-header {
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(20, 82, 63, 0.2);
}

.side-panel .panel-header h2 {
  color: var(--road-green-deep);
  font-size: 24px;
}

.status-legend {
  padding: 5px 0 2px;
}

.missing-list {
  max-height: min(55vh, 520px);
  gap: 8px;
}

.missing-section {
  overflow: hidden;
  border-color: var(--road-line);
  border-radius: 13px;
  background: #fffefa;
}

.missing-section.has-done {
  border-color: rgba(20, 82, 63, 0.26);
}

.missing-section.done {
  background: #eef7ef;
}

.missing-section summary {
  min-height: 58px;
  background: transparent;
  touch-action: manipulation;
  user-select: none;
}

.missing-section summary:focus-visible {
  outline: 3px solid var(--road-coral);
  outline-offset: -3px;
}

.missing-section.done summary::after {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--road-green);
  color: #fff;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.missing-field-list > li {
  position: relative;
  border-color: #e4ded2;
  background: #fffdfa;
}

.missing-field-list > li.done {
  border-color: rgba(20, 82, 63, 0.24);
  background: linear-gradient(90deg, #eaf6ed, #f8fcf8);
}

.missing-field-list > li.done::before {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--road-green);
  color: #fff;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.missing-field-list > li.done .field-main > span,
.missing-field-list > li.done .field-value {
  color: var(--road-green-deep);
}

.tag.status-complete,
.done .tag {
  background: var(--road-green);
  color: #fff;
}

.side-actions {
  padding-top: 2px;
  border-top-color: var(--road-line);
  background: var(--road-paper);
}

.document-panel {
  margin-top: 4px;
}

.privacy-note,
.guest-answer {
  border-left-color: var(--road-jade-strong);
  background: #edf5ef;
}

#documentPreview {
  background: #f3eee5;
}

.optional-step-head {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fffdf8, #f2ede2);
}

.host-card:has(.host-question) {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 14px 20px;
  overflow: hidden;
  padding: 16px;
}

.host-card:has(.host-question) .host-quiz-head {
  grid-column: 1 / -1;
}

.host-card:has(.host-question) .host-progress {
  grid-column: 1 / -1;
}

.host-card:has(.host-question) .host-question {
  grid-column: 1;
}

.host-card:has(.host-question) .host-options {
  grid-column: 2;
  align-self: center;
}

.host-question-image-wrap,
.host-question-image {
  border-radius: 18px;
}

.host-option {
  min-height: 66px;
  border-color: var(--road-line);
  border-radius: 14px;
  background: #fffefa;
  font-size: 16px;
}

.host-option:hover {
  border-color: var(--road-green);
  background: #eef6ef;
}

.guest-page {
  gap: 18px;
}

.guest-card,
.guest-answer-panel {
  padding: clamp(22px, 3vw, 34px);
}

.sample-questions button {
  border-color: rgba(20, 82, 63, 0.22);
  background: #eef6ef;
  color: var(--road-green-deep);
}

@media (max-width: 1100px) {
  .onboarding-hero {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .hero-mascot {
    width: 82px;
    height: 98px;
  }

  .hero-promise {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-promise span + span {
    border-top: 0;
    border-left: 1px dashed rgba(20, 82, 63, 0.16);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .screen-intro {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    order: 0;
    max-height: none;
  }

  .document-panel {
    order: 1;
  }

  .missing-list {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .guided-question:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .guided-visual,
  .guided-form {
    grid-column: 1;
  }

  .guided-form {
    padding-top: 22px;
  }

  .host-card:has(.host-question) {
    grid-template-columns: 1fr;
  }

  .host-card:has(.host-question) .host-quiz-head,
  .host-card:has(.host-question) .host-question,
  .host-card:has(.host-question) .host-options {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  body[data-screen="lodging"][data-intake-mode="operations"] .onboarding-hero {
    display: none;
  }

  .app-shell {
    width: min(100% - 20px, 620px);
    padding-top: 8px;
  }

  .topbar {
    min-height: 58px;
    margin-bottom: 10px;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .brand-mark img {
    top: -8px;
    width: 64px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .status-pill {
    min-width: 98px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .onboarding-hero {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    border-radius: 18px;
  }

  .hero-mascot {
    width: 62px;
    height: 76px;
    border-radius: 31px 31px 24px 24px;
  }

  .hero-mascot img {
    width: 60px;
    margin-top: 20px;
  }

  .onboarding-hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(26px, 8.2vw, 34px);
  }

  .onboarding-hero .hero-copy > p:last-child {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-promise {
    display: none;
  }

  .stepper {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 18px;
    padding: 6px;
  }

  .step-pill {
    min-height: 48px;
    justify-content: flex-start;
    padding: 7px 9px;
    font-size: 12px;
    text-align: left;
  }

  .screen-intro {
    gap: 12px;
    margin-bottom: 13px;
  }

  .screen-intro h2,
  .optional-step-head h2 {
    font-size: 26px;
  }

  .progress-card {
    padding: 11px;
  }

  .chat-panel:not(.guided-mode) {
    height: auto;
  }

  .messages {
    min-height: 150px;
    max-height: 280px;
  }

  .guided-question:not([hidden]) {
    padding: 14px;
  }

  .okgongi-guide img {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .guided-visual {
    max-width: none;
    border-radius: 16px;
  }

  .guided-form h3 {
    font-size: 28px;
  }

  .side-panel,
  .document-panel,
  .chat-panel,
  .optional-step-head,
  .host-card,
  .guest-card,
  .guest-answer-panel {
    border-radius: 18px;
  }

  .host-card:has(.host-question) {
    padding: 8px;
  }
}

@media (max-width: 350px) {
  .app-shell {
    width: calc(100% - 14px);
  }

  .brand-copy small {
    display: none;
  }

  .status-pill {
    min-width: 86px;
    font-size: 10px;
  }

  .onboarding-hero {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 13px;
  }

  .hero-mascot {
    width: 50px;
    height: 66px;
  }

  .onboarding-hero h1 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.host-question-image-wrap,
.host-character-wrap {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #edf6ef, #f4eee3);
}

.host-question-image,
.host-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-screen="lodging"][data-intake-mode="operations"] .side-panel {
  position: static;
}

/* Step 4: one practical handoff package for non-technical lodging hosts. */
.guest-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: start stretch;
  width: 100%;
}

.guest-page > .guest-card,
.guest-page > .guest-answer-panel {
  width: 100%;
}

.result-package-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 20px 28px;
  overflow: hidden;
  border: 1px solid var(--road-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fffdf7 0%, #eef6ef 100%);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.result-package-copy h2 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.result-package-copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.result-package-mascot {
  align-self: center;
  width: 112px;
  margin: 0;
}

.result-package-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.result-readiness {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-readiness span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(20, 82, 63, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
}

.result-readiness b {
  color: var(--road-green-deep);
  font-size: 15px;
  line-height: 1.4;
}

.result-readiness small {
  color: var(--muted);
  font-size: 13px;
}

.package-loading,
.package-error {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  border: 1px solid var(--road-line);
  border-radius: 18px;
  background: #fffefa;
  padding: 20px 24px;
}

.package-loading[hidden],
.package-error[hidden],
.deliverables[hidden] {
  display: none;
}

.package-loading .host-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.package-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.package-error strong,
.package-error p {
  margin: 0;
}

.package-error p {
  color: var(--muted);
}

.package-error .primary-button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.deliverables {
  display: grid;
  gap: 14px;
}

.deliverable-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(160px, auto);
  gap: 16px 18px;
  align-items: center;
  border: 1px solid var(--road-line);
  border-radius: 20px;
  background: #fffefa;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 14px 38px rgba(24, 45, 34, 0.06);
}

.deliverable-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--road-green-deep);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.deliverable-heading h3 {
  margin: 3px 0 6px;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.25;
}

.deliverable-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.deliverable-copy {
  min-width: 160px;
}

.deliverable-details {
  grid-column: 2 / -1;
  width: 100%;
  border-top: 1px dashed rgba(20, 82, 63, 0.18);
  padding-top: 8px;
}

.deliverable-details summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  color: var(--road-green-deep);
  font-size: 15px;
  font-weight: 750;
}

.deliverable-details summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(20, 82, 63, 0.25);
  outline-offset: 2px;
}

.deliverable-details pre {
  max-height: 390px;
  overflow: auto;
  margin: 4px 0 8px;
  border: 1px solid rgba(20, 82, 63, 0.14);
  border-radius: 12px;
  background: #f7f5ee;
  padding: 18px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.deliverable-host-image {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf6ef, #f4eee3);
  object-fit: contain;
}

.host-style-deliverable .deliverable-copy {
  grid-column: 3;
  grid-row: 2;
}

.host-style-deliverable .deliverable-details {
  grid-row: 3;
}

.prompt-deliverable {
  border-color: rgba(20, 82, 63, 0.34);
  background: linear-gradient(135deg, #fffefa, #f0f7f1);
}

.package-privacy {
  grid-column: 2 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guest-page > .guest-card {
  margin-top: 8px;
}

.guest-card textarea {
  min-height: 132px;
}

.guest-actions {
  grid-template-columns: 1fr;
}

@media (max-width: 700px) {
  .status-pill {
    font-size: 13px;
  }

  .step-pill {
    min-height: 56px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .onboarding-hero .hero-copy > p:last-child {
    font-size: 14px;
  }

  body[data-screen="guest"] .onboarding-hero {
    display: none;
  }

  .result-package-head {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 14px;
    border-radius: 18px;
    padding: 22px 18px;
  }

  .result-package-mascot {
    width: 70px;
  }

  .result-package-copy h2 {
    font-size: 25px;
  }

  .result-package-copy > p:last-child {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .result-readiness {
    grid-template-columns: 1fr;
  }

  .deliverable-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    border-radius: 16px;
    padding: 18px 16px;
  }

  .deliverable-number {
    width: 44px;
    height: 44px;
  }

  .deliverable-heading h3 {
    font-size: 21px;
  }

  .deliverable-copy,
  .host-style-deliverable .deliverable-copy {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .deliverable-details,
  .host-style-deliverable .deliverable-details,
  .package-privacy {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .deliverable-host-image {
    display: none;
  }

  .package-error {
    grid-template-columns: 1fr;
  }

  .package-error .primary-button {
    grid-column: 1;
    grid-row: auto;
  }

  #documentPreview {
    max-height: none;
    overflow: visible;
  }
}

/* Shared reading and control scale. Keep these rules after screen variants so
   labels, summaries and export previews remain readable on every step. */
body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.65;
  letter-spacing: -0.015em;
  overflow-x: visible;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, button, input, textarea, select, pre, .brand-mark {
  font-family: var(--font-ui);
}

button, input, textarea, select {
  font-size: var(--text-body);
  line-height: 1.5;
}

.primary-button, .secondary-button, .ghost-button, .text-button,
.composer-footer button, .doc-actions button, .side-actions button,
.host-copy-button, .host-option, .guided-choice, .guided-quicks button,
.sample-questions button, .missing-header-actions .ghost-button {
  min-height: var(--control-height);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: var(--text-label);
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}

.brand-copy strong { font-size: 20px; }
.brand-copy small, .global-reset-button, .status-pill, .eyebrow, .panel-kicker,
.progress-card > span, .progress-card small, .composer-footer small,
.guided-kicker, .status-legend, .missing-section-title small,
.field-tags .tag, .field-edit-label, .field-main small, .tag,
.doc-actions label, .privacy-note, .result-readiness small, .package-privacy,
.host-note, .step-pill > span {
  font-size: var(--text-small);
  line-height: 1.55;
}

.guided-progress strong, .host-quiz-head, .answer-evidence-grid h3 {
  font-size: var(--text-small);
  line-height: 1.55;
}
.answer-evidence-grid p, .answer-evidence-grid li {
  font-size: 16px;
  line-height: 1.65;
}

.eyebrow, .panel-kicker { letter-spacing: 0.025em; }
.step-pill { min-height: 60px; font-size: var(--text-label); }
.step-pill > span { flex: 0 0 28px; width: 28px; height: 28px; }
.status-pill, .global-reset-button { min-height: 48px; }
.onboarding-hero .hero-copy > p:last-child, .hero-promise span,
.screen-intro > div:first-child > p:last-child, .optional-step-head p,
.result-package-copy > p:last-child, .deliverable-heading > p:last-child,
.result-readiness b, .guided-help, .okgongi-guide p, .okgongi-guide strong,
.composer label, .message, .core-complete-banner p,
.guest-card > label, .guest-card > p, .guest-answer,
.host-landing > p, .host-option, .host-result-hero > p,
.host-result-detail > p {
  font-size: var(--text-body);
  line-height: 1.65;
}

.screen-intro h2, .optional-step-head h2 {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.guided-form h3 { font-size: 28px; line-height: 1.4; }
.panel-header h2, .side-panel .panel-header h2 { font-size: 24px; line-height: 1.4; }

.composer textarea, .guided-control input, .guided-control textarea,
.guided-custom, .guest-card textarea {
  font-size: var(--text-body);
  line-height: 1.65;
  min-width: 0;
}
textarea::placeholder, input::placeholder { color: #657267; opacity: 1; }
#documentPreview, .deliverable-details pre, .meta-result pre {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.deliverable-details summary { font-size: var(--text-label); }

/* Consistent surfaces: title, actions, body, then footer. */
.workspace { gap: 24px; grid-template-columns: minmax(0, 1.65fr) minmax(380px, 1fr); }
.side-panel, .document-panel { padding: 24px; }
.side-panel .panel-header { display: grid; grid-template-columns: 1fr; gap: 16px; }
.missing-header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.missing-header-actions .ghost-button { width: 100%; padding: 10px; min-height: 48px; }
.status-legend { margin: 0; padding: 0; gap: 12px; }
.side-actions { flex-shrink: 0; gap: 10px; margin-top: 0; padding-top: 12px; }
.missing-list { margin: 0; padding-right: 4px; scrollbar-gutter: stable; }
.missing-section summary { gap: 10px; padding: 14px 12px; min-height: 64px; }
.missing-section-title { min-width: 0; }
.missing-section-title strong { font-size: var(--text-label); line-height: 1.5; }
.missing-field-list > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 6px; padding: 10px; }
.missing-field-list > li.done::before { grid-column: 1; grid-row: 1; align-self: start; margin-top: 10px; }
.missing-field-list .field-main { grid-column: 2; grid-row: 1; padding: 4px; min-height: 56px; width: 100%; }
.field-main > span { font-size: var(--text-label); line-height: 1.5; }
.field-main .field-value { font-size: 16px; line-height: 1.6; -webkit-line-clamp: 3; }
.field-tags { grid-column: 2; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; padding: 4px; }
.applicability-controls { flex-wrap: wrap; }
.applicability-controls button { min-height: 44px; font-size: var(--text-small); }

.document-panel > .panel-header { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.doc-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) 112px 128px; align-items: center; gap: 12px; width: 100%; }
.doc-actions select { width: 100%; min-width: 0; min-height: var(--control-height); border-radius: 12px; font-size: var(--text-label); }
.doc-actions button { width: 100%; }
.document-next-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--road-line); }
.document-next-actions button { width: 100%; }
.document-next-actions [hidden] { display: none; }
.composer-footer { align-items: start; }
.composer-footer button { flex: 0 0 auto; }
.guided-progress { flex-wrap: wrap; gap: 8px; }
.guided-choices:not(.yesno) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.number-stepper { grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; }
.number-stepper > button { min-width: 0; }
.number-stepper label { min-width: 0; }
.guided-form, .guided-control, .host-options { min-width: 0; }

.host-card:has(.host-question) { padding: 24px; gap: 20px 32px; }
.host-question-image-wrap { max-width: 400px; margin-inline: auto; }
.host-options { gap: 12px; }
.host-option { text-align: left; }
.host-question > p { font-size: var(--text-label); line-height: 1.65; }
.guest-card .guest-lead { max-width: 900px; margin: 12px 0 24px; text-align: left; }
.deliverable-host-image { display: none; }
.host-style-deliverable .deliverable-copy { grid-row: 1; }
.host-style-deliverable .deliverable-details { grid-row: auto; }

@media (min-width: 1101px) and (max-width: 1280px) {
  .guided-question:not([hidden]) { grid-template-columns: 1fr; }
  .guided-visual, .guided-form { grid-column: 1; }
  .guided-visual { max-width: 160px; }
  .guided-form { padding-top: 20px; }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side-panel { align-self: stretch; }
  .composer-footer { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .app-shell { width: calc(100% - 32px); }
  .side-panel, .document-panel, .guest-card, .guest-answer-panel { padding: 20px 16px; }
  .step-pill { font-size: 16px; padding: 12px 8px; gap: 8px; }
  .step-pill > span { flex-basis: 24px; width: 24px; height: 24px; }
  .doc-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doc-actions label, .doc-actions select { grid-column: 1 / -1; }
  .document-next-actions { grid-template-columns: 1fr; }
  .result-package-head { grid-template-columns: minmax(0, 1fr); }
  .result-package-mascot { display: none; }
  .host-card:has(.host-question) { padding: 20px 16px; }
  .host-style-deliverable .deliverable-copy { grid-row: auto; }
  .host-card:has(.host-question) .host-progress { grid-column: 1; }
  .guided-form h3 { font-size: 26px; }
  .composer-footer button { width: 100%; }
}

/* Host result: the same full-width frame as the step introduction. */
.host-card.has-host-result,
.green-view .host-card.has-host-result {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.host-card.has-host-result .host-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.5vw, 36px);
  border: 1px solid var(--road-line);
  border-radius: var(--road-radius);
  background: var(--road-paper);
  box-shadow: var(--road-shadow);
  text-align: left;
}
.host-card.has-host-result .host-character-wrap {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
}
.host-card.has-host-result .host-character {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: contain;
  border-radius: inherit;
  box-shadow: none;
}
.host-result-copy { min-width: 0; padding-block: 16px; }
.host-card.has-host-result .host-result-hero .eyebrow {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--road-green);
}
.host-card.has-host-result .host-result-hero h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: var(--road-green-deep);
  text-wrap: balance;
}
.host-card.has-host-result .host-result-hero h2 + p {
  max-width: none;
  margin: 24px 0;
  font-size: 21px;
  line-height: 1.75;
  color: var(--road-ink);
}
.host-result-hero .host-result-next-note {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--road-muted);
}
.host-card.has-host-result .host-result-detail {
  margin: 24px 0 0;
  padding: clamp(20px, 2.5vw, 36px);
  border-color: var(--road-line);
  border-radius: var(--road-radius);
  background: var(--road-paper);
}
.host-result-detail .host-detail-header {
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--road-line);
}
.host-detail-header .eyebrow { font-size: 15px; margin: 0 0 8px; }
.host-detail-header h3 { font-size: 28px; line-height: 1.4; color: var(--road-ink); }
.host-detail-header button { flex-shrink: 0; }
.host-analysis-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.host-analysis-grid h4 { font-size: 22px; line-height: 1.5; margin: 0 0 8px; color: var(--road-ink); }
.host-radar-panel { min-width: 0; padding: 24px; border: 1px solid #cdded1; border-radius: 18px; background: #f0f7ef; }
.host-radar-panel .host-radar-intro { font-size: 17px; }
.host-radar { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; overflow: visible; }
.radar-grid { fill: none; stroke: #bed0c3; stroke-width: 1.5; }
.radar-axis { stroke: #d1ddd4; stroke-width: 1; }
.radar-area { fill: #14523f; fill-opacity: 0.2; stroke: var(--road-green); stroke-width: 3; stroke-linejoin: round; }
.radar-point { fill: var(--road-green); stroke: #fff; stroke-width: 2; }
.host-radar text { fill: var(--road-ink); font-family: var(--font-ui); font-size: 24px; font-weight: 700; }
.host-radar .radar-percent { font-size: 20px; font-weight: 550; }
.host-radar-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 20px; }
.host-radar-values > div { border-bottom: 1px solid #cfddd0; padding-bottom: 10px; }
.host-radar-values dt { font-size: 16px; color: #435e4d; }
.host-radar-values dd { margin: 2px 0 0; font-size: 20px; font-weight: 750; }
.host-radar-values dd span { font-size: 15px; font-weight: 450; color: #536556; white-space: nowrap; }
.host-radar-panel .host-radar-note { font-size: 15px; line-height: 1.65; color: #536556; }
.host-radar-method { margin-top: 12px; border-top: 1px solid #cfddd0; }
.host-radar-method summary { min-height: 48px; padding-block: 12px; font-size: 16px; font-weight: 650; color: var(--road-green-deep); cursor: pointer; }
.host-radar-method .host-radar-values { margin-top: 12px; }
.host-analysis-points { display: grid; gap: 0; padding: 0 0 0 24px; margin: 12px 0 0; }
.host-analysis-points li { padding: 18px 0 18px 8px; font-size: 19px; line-height: 1.85; color: var(--road-ink); }
.host-analysis-points li + li { border-top: 1px solid #e5ded2; }
.host-analysis-points li::marker { color: var(--road-green); font-size: 22px; }
.host-card.has-host-result .host-actions { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 12px; padding: 24px 0 0; }

.host-tone-bars {
  min-width: 0;
  border: 1px solid #cdded1;
  border-radius: 18px;
  background: #f0f7ef;
  padding: 24px;
}

.host-tone-bars-intro {
  margin: 0 0 24px;
  color: #465c4d;
  font-size: 16px;
  line-height: 1.65;
}

.tone-axis-list { display: grid; gap: 24px; }
.tone-axis-heading, .tone-axis-ends { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tone-axis-heading strong { color: var(--road-ink); font-size: 19px; }
.tone-axis-heading b { color: var(--road-green-deep); font-size: 22px; }
.tone-axis-track { height: 18px; margin: 9px 0 7px; overflow: hidden; border-radius: 999px; background: #dce5dd; }
.tone-axis-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #76a887, #155740); }
.tone-axis-item:nth-child(2) .tone-axis-track span { background: linear-gradient(90deg, #79a8bb, #2f6b84); }
.tone-axis-item:nth-child(3) .tone-axis-track span { background: linear-gradient(90deg, #d6a76d, #9b5a26); }
.tone-axis-item:nth-child(4) .tone-axis-track span { background: linear-gradient(90deg, #c28c74, #884a34); }
.tone-axis-ends { color: #4d5f52; font-size: 14px; font-weight: 650; }

.host-tone-prompt {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid var(--road-line);
  border-radius: var(--road-radius);
  background: #fffdf8;
  padding: clamp(20px, 2.5vw, 36px);
}
.host-tone-prompt h3 { margin: 0; color: var(--road-ink); font-size: 26px; line-height: 1.4; }
.host-tone-prompt pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border-radius: 16px;
  background: #f2f6f1;
  padding: 22px;
  color: #173c30;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
}
.host-tone-prompt .primary-button { width: min(100%, 360px); }
.host-card.has-host-result .host-actions { grid-template-columns: minmax(0, 320px); }

@media (max-width: 900px) {
  .host-card.has-host-result .host-result-hero { gap: 24px; }
  .host-card.has-host-result .host-result-hero h2 { font-size: 30px; }
  .host-card.has-host-result .host-result-hero h2 + p { font-size: 18px; margin-block: 16px; }
  .host-analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .host-card.has-host-result .host-result-hero { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .host-result-copy { padding: 0 4px 8px; }
  .host-card.has-host-result .host-result-hero h2 { font-size: 30px; }
  .host-result-copy button { width: 100%; }
  .host-result-detail .host-detail-header { flex-direction: column; align-items: stretch; }
  .host-detail-header h3 { font-size: 25px; }
  .host-radar-panel { padding: 18px 12px; }
  .host-radar-values { gap: 10px; }
  .host-radar text, .host-radar .radar-percent { font-size: 32px; }
  .host-analysis-points li { font-size: 18px; padding-left: 2px; }
  .host-card.has-host-result .host-actions { grid-template-columns: 1fr; }
  .host-tone-bars { padding: 20px 16px; }
  .host-tone-prompt pre { max-height: 360px; padding: 18px; font-size: 16px; }
  .host-tone-prompt .primary-button { width: 100%; }
}

/* Keep the simplified completion flow ahead of legacy responsive ordering. */
.completion-screen > .document-panel {
  order: 0 !important;
  margin-top: 0;
}

.completion-screen > .next-work {
  order: 1;
}

/* A roomier, clearly clickable brand header inspired by the shared dashboard. */
body[data-journey] .topbar {
  min-height: 98px;
  padding: 8px 20px;
}

body[data-journey] .brand {
  gap: 16px;
  border-radius: 14px;
  padding: 4px 8px 4px 2px;
  transition: background-color 160ms ease, transform 160ms ease;
}

body[data-journey] .brand:hover {
  background: #edf5ee;
  transform: translateY(-1px);
}

body[data-journey] .brand:active {
  transform: translateY(0);
}

body[data-journey] .brand-mark {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border: 0;
  border-radius: 18px;
  background: #e4f2e7;
  box-shadow: none;
}

body[data-journey] .brand-mark img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

body[data-journey] .brand-copy {
  gap: 2px;
}

body[data-journey] .brand-copy strong {
  color: var(--road-green-deep);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

body[data-journey] .brand-copy small {
  color: #405c4d;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 700px) {
  body[data-journey] .topbar {
    min-height: 76px;
    padding: 6px 10px;
  }

  body[data-journey] .brand {
    gap: 10px;
    padding: 2px 4px 2px 0;
  }

  body[data-journey] .brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
  }

  body[data-journey] .brand-copy strong {
    max-width: 210px;
    font-size: 20px;
    white-space: normal;
  }

  body[data-journey] .brand-copy small {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  body[data-journey] .brand-copy small {
    max-width: 150px;
  }
}

/* Focused home and guided-question layout ------------------------------------ */
.start-copy {
  max-width: 600px;
}

.start-actions {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
  margin-top: 22px;
}

.start-actions .start-button,
.start-actions .tone-start-button {
  width: 100%;
  margin: 0;
}

.start-actions .tone-start-button {
  min-height: 56px;
  border-color: #8eb39d;
  background: #f4faf5;
  color: var(--road-green-deep);
  font-size: 18px;
  font-weight: 750;
}

.start-copy .how-it-works {
  width: min(100%, 500px);
  margin-top: 26px;
}

.start-copy .how-it-works h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.start-copy .how-it-works ol {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.start-copy .how-it-works li {
  min-height: 38px;
  border-radius: 12px;
  padding: 5px 12px;
  box-shadow: 0 5px 14px rgba(45, 38, 28, 0.04);
}

.start-copy .how-it-works li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: auto;
  bottom: -9px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #6f6456;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.start-copy .how-it-works li:nth-child(1) {
  border-color: #9fc4d8;
  background: linear-gradient(135deg, #f1f8fc 0%, #d8ebf5 100%);
  color: #244b61;
}

.start-copy .how-it-works li:nth-child(2) {
  border-color: #d8b96f;
  background: linear-gradient(135deg, #fff9ea 0%, #f2dfac 100%);
  color: #5c451c;
}

.start-copy .how-it-works li:nth-child(3) {
  border-color: #d49474;
  background: linear-gradient(135deg, #fff2ea 0%, #edc4ad 100%);
  color: #65361f;
}

.start-copy .how-it-works li:nth-child(4) {
  border-color: #9bbfa9;
  background: linear-gradient(135deg, #f2f9f4 0%, #d7eadc 100%);
  color: #305843;
}

.start-copy .how-it-works li > span {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.start-copy .how-it-works li:nth-child(1) > span { background: #4d88a6; }
.start-copy .how-it-works li:nth-child(2) > span { background: #a97920; }
.start-copy .how-it-works li:nth-child(3) > span { background: #b65f3c; }
.start-copy .how-it-works li:nth-child(4) > span {
  background: #56886f;
  color: #fff;
}

body[data-journey] .topbar-actions {
  display: none;
}

body[data-journey] .topbar {
  justify-content: flex-end;
}

body[data-journey] .brand {
  flex-direction: row-reverse;
  margin-left: auto;
}

body[data-journey] .brand-copy {
  justify-items: end;
  text-align: right;
}

.start-screen .start-mascot {
  width: min(100%, 320px);
  margin: 0;
}

@media (min-width: 701px) {
  .start-screen {
    grid-template-columns: minmax(280px, 0.82fr) minmax(500px, 1.18fr);
    column-gap: clamp(42px, 5vw, 84px);
    padding: 38px clamp(44px, 5vw, 70px);
  }

  .start-screen .start-copy {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    max-width: 610px;
  }

  .start-screen .start-copy h1 {
    margin-top: 0;
    font-size: clamp(46px, 4.35vw, 56px);
  }

  .start-screen .start-mascot {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 350px);
  }
}

.question-screen .chat-panel:not(.guided-mode) {
  display: block;
  height: auto;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffdf8 0%, #edf5ef 100%);
}

.question-screen .batch-composer {
  width: 100%;
  min-height: 430px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 38px clamp(28px, 6vw, 76px);
}

.question-screen .batch-composer textarea {
  min-height: 170px;
}

.question-screen .guided-question:not([hidden]) {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "progress progress"
    "visual form";
  gap: 8px 30px;
  padding: 14px 30px 18px;
}

.question-screen .guided-visual {
  width: min(100%, 360px);
  max-width: 360px;
}

.question-screen .guided-form {
  align-self: center;
}

.question-screen .guided-help[hidden] {
  display: none;
}

.question-screen .guided-choices,
.question-screen .guided-choices:not(.yesno) {
  grid-template-columns: 1fr;
  gap: 7px;
}

.question-screen .guided-choice {
  justify-content: flex-start;
  min-height: 42px;
  border-radius: 12px;
  padding: 7px 16px;
  text-align: left;
}

.question-screen .guided-control[data-type="choice"] .guided-custom {
  min-height: 50px;
}

.question-screen .guided-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-screen #guidedSkipButton {
  min-height: 58px;
  border: 2px solid var(--road-green);
  border-radius: 14px;
  background: #fff;
  color: var(--road-green-deep);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.question-screen #guidedSkipButton:hover {
  background: #edf6ef;
}

.question-screen #guidedPreviousButton {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 54px;
  border: 2px solid #b7c8bd;
  border-radius: 14px;
  background: #f7faf7;
  color: var(--road-green-deep);
  font-size: 18px;
  font-weight: 800;
}

.question-screen #guidedPreviousButton:hover {
  border-color: var(--road-green);
  background: #edf6ef;
}

.question-screen #moreFreeformButton {
  grid-column: 1 / -1;
  justify-self: center;
}

.question-screen .guided-actions:has(#guidedSkipButton[hidden]) .guided-save {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .start-copy .how-it-works {
    width: 100%;
    margin-top: 24px;
  }

  .start-copy .how-it-works ol {
    gap: 9px;
  }

  .start-mascot {
    grid-row: auto;
  }

  .start-screen .start-mascot {
    width: 190px;
    margin: 10px auto -24px;
  }

  .question-screen .chat-panel:not(.guided-mode),
  .question-screen .batch-composer {
    min-height: 0;
  }

  .question-screen .batch-composer {
    padding: 24px 18px;
  }

  .question-screen .guided-question:not([hidden]) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "visual"
      "form";
  }

  .question-screen .guided-visual {
    display: block;
    width: min(70vw, 260px);
    max-width: 260px;
    margin: 2px auto 6px;
  }

  .question-screen .guided-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .question-screen #guidedSkipButton {
    min-height: 58px;
    padding-block: 10px;
    font-size: 18px;
  }

  .question-screen #moreFreeformButton,
  .question-screen #guidedPreviousButton,
  .question-screen .guided-actions:has(#guidedSkipButton[hidden]) .guided-save {
    grid-column: 1;
  }
}

/* Menu headers keep the product identity left and a clear home exit right. */
.header-home-button {
  display: none;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid #8eb39d;
  border-radius: 999px;
  background: #f4faf5;
  padding: 0 22px;
  color: var(--road-green-deep);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-home-button:hover,
.header-home-button:focus-visible {
  border-color: var(--road-green);
  background: #e5f2e8;
  transform: translateY(-1px);
}

body[data-journey] .brand,
body[data-journey] .brand:hover,
body[data-journey] .brand:active {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: default;
  transform: none;
  transition: none;
}

body[data-screen="lodging"]:not([data-journey="start"]) .topbar,
body[data-screen="host"] .topbar {
  justify-content: space-between;
}

body[data-screen="lodging"]:not([data-journey="start"]) .brand,
body[data-screen="host"] .brand {
  flex-direction: row;
  margin-right: auto;
  margin-left: 0;
}

body[data-screen="lodging"]:not([data-journey="start"]) .brand-copy,
body[data-screen="host"] .brand-copy {
  justify-items: start;
  text-align: left;
}

body[data-screen="lodging"]:not([data-journey="start"]) .header-home-button,
body[data-screen="host"] .header-home-button {
  display: inline-flex;
}

.host-result-main-actions {
  display: grid;
  width: 100%;
  justify-items: start;
  gap: 10px;
}

.host-result-main-actions .secondary-button,
.host-result-main-actions .host-restart-link {
  width: 100%;
  min-height: 60px;
  border-radius: 12px;
}

.host-restart-link {
  border: 1px solid #d9d0c1;
  background: #fffefa;
  padding: 12px 18px;
  color: #b23d2b;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.host-restart-link:hover,
.host-restart-link:focus-visible {
  border-color: #bd7568;
  color: #7f2519;
  background: #fff0eb;
}

.host-result-visual {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 14px;
}

.host-card.has-host-result .host-result-summary {
  white-space: pre-line;
}

.host-card.has-host-result .host-result-visual .host-character-wrap {
  width: min(100%, 250px);
  margin: 0 auto;
}

.compact-tone-bars {
  width: 100%;
  border-radius: 16px;
  padding: 16px 18px;
}

.compact-tone-bars h3 {
  margin: 0 0 10px;
  color: var(--road-green-deep);
  font-size: 18px;
  line-height: 1.35;
}

.compact-tone-bars .tone-axis-list {
  gap: 11px;
}

.compact-tone-bars .tone-axis-heading {
  gap: 10px;
}

.compact-tone-bars .tone-axis-heading strong {
  font-size: 15px;
}

.compact-tone-bars .tone-axis-heading b {
  font-size: 17px;
}

.compact-tone-bars .tone-axis-track {
  height: 9px;
  margin: 4px 0 3px;
}

.compact-tone-bars .tone-axis-ends {
  gap: 8px;
  color: #526358;
  font-size: 12px;
  line-height: 1.3;
}

.compact-tone-bars .tone-axis-ends span:last-child {
  text-align: right;
}

.journey-navigation {
  align-items: start;
}

.journey-end-actions {
  display: grid;
  width: 100%;
  gap: 9px;
}

.journey-end-actions .final-review-button {
  width: 100%;
}

.journey-reset-button {
  display: grid;
  width: 100%;
  min-height: 70px;
  place-content: center;
  gap: 1px;
  border: 2px solid #a74732;
  border-radius: 15px;
  background: #a74732;
  padding: 9px 12px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(139, 53, 35, 0.16);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.journey-reset-button span,
.journey-reset-button strong {
  display: block;
  line-height: 1.2;
}

.journey-reset-button span {
  font-size: 15px;
  font-weight: 700;
}

.journey-reset-button strong {
  font-size: 19px;
  font-weight: 900;
}

.journey-reset-button:hover,
.journey-reset-button:focus-visible {
  border-color: #793221;
  background: #793221;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  body[data-screen="lodging"]:not([data-journey="start"]) .topbar,
  body[data-screen="host"] .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  body[data-screen="lodging"]:not([data-journey="start"]) .brand,
  body[data-screen="host"] .brand {
    min-width: 0;
    gap: 8px;
  }

  body[data-screen="lodging"]:not([data-journey="start"]) .brand-mark,
  body[data-screen="host"] .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body[data-screen="lodging"]:not([data-journey="start"]) .brand-copy strong,
  body[data-screen="host"] .brand-copy strong {
    max-width: 150px;
    font-size: 17px;
    white-space: normal;
  }

  body[data-screen="lodging"]:not([data-journey="start"]) .brand-copy small,
  body[data-screen="host"] .brand-copy small {
    display: none;
  }

  .header-home-button {
    min-height: 48px;
    max-width: 136px;
    padding: 0 12px;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
  }

  .host-result-main-actions,
  .host-result-main-actions .secondary-button {
    width: 100%;
  }

  .host-card.has-host-result .host-result-visual .host-character-wrap {
    width: min(58vw, 220px);
  }

  .compact-tone-bars {
    padding: 14px 15px;
  }

  .journey-end-actions {
    gap: 7px;
  }

  .journey-reset-button {
    min-height: 64px;
    border-radius: 13px;
  }
}
