:root {
  --paper: #f4efe4;
  --paper-deep: #e8decd;
  --ink: #18292d;
  --ink-soft: #3d4f53;
  --copper: #b65f3d;
  --gold: #c49a4a;
  --sage: #667c68;
  --line: rgba(24, 41, 45, 0.16);
  --white: #fffdf8;
  --shadow: 0 24px 80px rgba(42, 47, 42, 0.14);
  --radius-lg: 32px;
  --radius-md: 20px;
  /* 字級地板：全站不再低於 13px */
  --text-xs: 13px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --serif: "Noto Serif TC", "Songti TC", "Iowan Old Style", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Avenir Next", sans-serif;
  --display: "Noto Serif TC", "Songti TC", "Iowan Old Style", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(196, 154, 74, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(76, 111, 106, 0.14), transparent 36rem),
    var(--paper);
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--white);
  background: var(--copper);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sky-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1440px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.brand-orbit {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-orbit::before {
  content: "";
  width: 52px;
  height: 14px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  position: absolute;
  transform: rotate(-24deg);
}

.brand-orbit i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(182, 95, 61, 0.14);
}

/* 星語嚮導 logo mark（漂浮姿勢） */
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(24, 41, 45, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 253, 248, 0.96), rgba(244, 239, 228, 0.92));
  box-shadow:
    0 0 0 3px rgba(196, 154, 74, 0.16),
    0 8px 18px rgba(24, 41, 45, 0.12);
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  width: 58px;
  height: 16px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  position: absolute;
  transform: rotate(-24deg);
  opacity: 0.55;
  pointer-events: none;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  box-shadow:
    0 0 0 2px rgba(196, 154, 74, 0.14),
    0 4px 12px rgba(24, 41, 45, 0.1);
}

.brand-mark-sm::before {
  width: 42px;
  height: 12px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  border-radius: 50%;
  transform: scale(1.08);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.desktop-nav a,
.nav-profile {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 0;
}

.desktop-nav a::after,
.nav-profile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.nav-profile:hover::after {
  transform: scaleX(1);
}

.quota-chip {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.46);
}

.quota-chip span {
  font-size: 14px;
  color: var(--ink-soft);
}

.quota-chip strong {
  padding: 6px 11px;
  color: var(--white);
  background: var(--ink);
  border-radius: 99px;
  font-size: 15px;
}

.quota-chip b {
  font-size: 15px;
}

.hero {
  width: min(1440px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  padding: 76px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  grid-template-areas:
    "heading heading"
    "copy visual";
  column-gap: clamp(48px, 8vw, 128px);
  row-gap: 36px;
  align-items: center;
}

.hero-heading {
  grid-area: heading;
  position: relative;
  z-index: 1;
  max-width: 100%;
  /* 暗底柔光：避免星空/影片中亮部把字洗掉 */
  padding: 10px 12px 14px 0;
  border-radius: 12px;
  text-shadow:
    0 1px 2px rgba(4, 14, 18, 0.55),
    0 6px 28px rgba(4, 14, 18, 0.45);
}

.hero-copy {
  grid-area: copy;
  animation: rise-in 700ms cubic-bezier(.16, 1, .3, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f3ddb0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(4, 14, 18, 0.7),
    0 0 18px rgba(4, 14, 18, 0.35);
}

.eyebrow span {
  width: 28px;
  height: 1px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  color: #fffdf8;
  font-family: var(--serif);
  font-size: clamp(44px, 4.45vw, 68px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(4, 14, 18, 0.75),
    0 4px 18px rgba(4, 14, 18, 0.55),
    0 10px 36px rgba(4, 14, 18, 0.35);
}

.hero h1 em {
  margin-left: 0.2em;
  color: #ffc9a0;
  font-weight: 400;
  text-shadow:
    0 1px 2px rgba(4, 14, 18, 0.75),
    0 4px 16px rgba(4, 14, 18, 0.5);
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--copper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--copper);
}

.primary-button:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--copper);
}

.text-button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.trust-row {
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.trust-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 14px;
}

.hero-visual {
  grid-area: visual;
  min-height: 550px;
  position: relative;
  border: 1px solid rgba(24, 41, 45, 0.28);
  border-radius: 240px 240px 16px 16px;
  background:
    radial-gradient(circle at 50% 25%, rgba(196, 154, 74, 0.2), transparent 34%),
    linear-gradient(155deg, #294247 0%, #182a2e 70%);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 850ms 100ms cubic-bezier(.16, 1, .3, 1) both;
}

.hero-visual::before {
  content: "";
  width: 330px;
  height: 330px;
  position: absolute;
  top: -55px;
  left: 50%;
  border: 1px solid rgba(255, 253, 248, 0.17);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 32px rgba(255, 253, 248, 0.025), 0 0 0 88px rgba(255, 253, 248, 0.02);
}

.constellation-lines {
  position: absolute;
  inset: 0;
}

.constellation-lines svg {
  width: 100%;
  height: 100%;
  opacity: 0.32;
}

.constellation-lines path {
  fill: none;
  stroke: #e5c887;
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.star {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fae7ae;
  box-shadow: 0 0 14px 3px rgba(250, 231, 174, 0.65);
  position: absolute;
  animation: star-pulse 2.8s ease-in-out infinite;
}

.star-a { top: 15%; left: 13%; }
.star-b { top: 28%; left: 44%; animation-delay: 600ms; }
.star-c { top: 17%; right: 20%; animation-delay: 1s; }
.star-d { right: 16%; bottom: 34%; animation-delay: 1.4s; }

.preview-note {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 50px rgba(7, 17, 19, 0.25);
  backdrop-filter: blur(16px);
}

.preview-note-main {
  top: 26%;
  right: 9%;
  left: 9%;
  padding: 26px;
  border-radius: 6px 26px 26px 26px;
  transform: rotate(-1deg);
}

.note-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--sage);
  font-size: 20px;
}

.note-topline b,
.note-topline small {
  display: block;
}

.note-topline b {
  font-family: var(--serif);
  font-size: 15px;
}

.note-topline small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.note-topline i {
  padding: 5px 8px;
  color: var(--sage);
  background: rgba(102, 124, 104, 0.12);
  border-radius: 99px;
  font-size: 13px;
  font-style: normal;
}

.preview-note-main > p {
  margin: 22px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.note-evidence {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.note-evidence span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 13px;
}

.preview-note-small {
  right: 5%;
  bottom: 14%;
  width: min(290px, 70%);
  padding: 18px 20px;
  border-left: 4px solid var(--copper);
  border-radius: 4px 14px 14px 4px;
  transform: rotate(2deg);
}

.preview-note-small small {
  color: var(--copper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.preview-note-small p {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.visual-caption {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: rgba(255, 253, 248, 0.74);
}

.visual-caption span,
.visual-caption b {
  display: block;
}

.visual-caption span {
  margin-bottom: 3px;
  color: #d7ba76;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.visual-caption b {
  font-size: 14px;
  font-weight: 500;
}

.zodiac-section,
.benefit-section,
.accuracy-section,
.how-section,
.result-section {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.benefit-section {
  padding: 102px 0 120px;
  border-top: 1px solid var(--line);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefit-grid article {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.42);
}

.benefit-number {
  color: var(--copper);
  font-family: var(--serif);
  font-size: 14px;
}

.benefit-grid h3 {
  margin: 62px 0 14px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
}

.benefit-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.benefit-grid small {
  margin-top: auto;
  padding-top: 28px;
  color: var(--copper);
  font-size: 13px;
  line-height: 1.6;
}

.result-promise {
  margin-top: 14px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) 2.25fr;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
}

.result-promise small,
.result-promise strong {
  display: block;
}

.result-promise small {
  color: rgba(255, 253, 248, 0.82);
  font-size: var(--text-sm);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.result-promise strong {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.result-promise-lead {
  position: relative;
  min-width: 0;
}

.result-promise-lead strong {
  position: relative;
  display: block;
  margin-top: 6px;
}

.result-promise .title-art-img {
  display: block;
  width: min(100%, 260px);
  max-height: 72px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
}

.result-promise .title-art-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.result-promise ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.result-promise li {
  min-height: 64px;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 253, 248, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-promise li b {
  flex: 0 0 auto;
  color: #e8c878;
  font-family: var(--display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.result-promise li span {
  color: rgba(255, 253, 248, 0.92);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.zodiac-section {
  padding: 102px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 46px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2,
.panel-heading h2,
.reply-section h2,
.how-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.zodiac-card {
  min-height: 230px;
  padding: 25px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.18);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 240ms ease, background 240ms ease, transform 240ms ease;
}

.zodiac-card::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  right: -90px;
  bottom: -100px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
  transition: transform 400ms cubic-bezier(.16, 1, .3, 1);
}

.zodiac-card:hover,
.zodiac-card:focus-visible {
  color: var(--white);
  background: var(--card-accent, var(--ink));
  outline: 0;
  transform: translateY(-4px);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(24, 41, 45, 0.18);
}

.zodiac-card:hover::after {
  transform: scale(1.5);
}

.zodiac-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.zodiac-card-symbol {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.zodiac-card-date {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.zodiac-card:hover .zodiac-card-date {
  color: rgba(255, 253, 248, 0.67);
}

.zodiac-card h3 {
  margin: auto 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.zodiac-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.zodiac-card:hover p {
  color: rgba(255, 253, 248, 0.78);
}

.studio-section {
  padding: 96px 32px;
  color: var(--white);
  background: var(--ink);
  position: relative;
}

.studio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    radial-gradient(circle at 10% 20%, rgba(196, 154, 74, 0.28), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(182, 95, 61, 0.2), transparent 30rem);
  pointer-events: none;
}

.studio-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 253, 248, 0.2);
  background: rgba(12, 28, 31, 0.48);
  box-shadow: 0 30px 90px rgba(5, 12, 14, 0.3);
}

.persona-panel {
  padding: 38px 34px;
  border-right: 1px solid rgba(255, 253, 248, 0.16);
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.03);
}

.back-link {
  align-self: start;
  padding: 0;
  border: 0;
  color: rgba(255, 253, 248, 0.62);
  background: none;
  font-size: 15px;
  cursor: pointer;
}

.persona-symbol {
  width: 112px;
  height: 112px;
  margin: 56px 0 24px;
  border: 1px solid var(--persona-accent, #d7ba76);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--persona-accent, #d7ba76);
  font-family: var(--serif);
  font-size: 54px;
  position: relative;
}

.persona-symbol::after {
  content: "";
  width: 132px;
  height: 32px;
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.persona-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
}

.persona-panel > p:not(.eyebrow) {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.54);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.persona-traits {
  margin: 24px 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.persona-traits span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 99px;
  font-size: 13px;
}

.persona-insight {
  margin: 8px 0 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.persona-insight small {
  color: var(--persona-accent, #d7ba76);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.persona-insight p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 15px;
  line-height: 1.75;
}

.secondary-button {
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  border: 1px solid rgba(255, 253, 248, 0.4);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.secondary-button:hover {
  color: var(--ink);
  background: var(--white);
}

.persona-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.persona-actions button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 253, 248, 0.4);
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.persona-direct-button {
  border-color: var(--persona-accent, var(--gold));
  background: color-mix(in srgb, var(--persona-accent, var(--gold)) 24%, transparent);
}

.persona-direct-button:hover {
  color: var(--ink);
  background: var(--persona-accent, var(--gold));
}

.rehearsal-panel {
  padding: 48px 56px 56px;
}

.panel-heading {
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.panel-heading h2 {
  font-size: 42px;
}

.local-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 99px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 13px;
}

.mode-fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mode-fieldset legend {
  margin-bottom: 10px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 15px;
}

.mode-fieldset label {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.mode-fieldset label:has(input:checked) {
  border-color: var(--persona-accent, #d7ba76);
  background: rgba(255, 253, 248, 0.07);
}

.mode-fieldset input {
  accent-color: var(--persona-accent, #d7ba76);
}

.mode-fieldset b,
.mode-fieldset small {
  display: block;
}

.mode-fieldset b {
  margin-bottom: 4px;
  font-size: 15px;
}

.mode-fieldset small {
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px;
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.single-field-grid {
  grid-template-columns: 1fr;
}

.field {
  display: block;
  position: relative;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 15px;
}

.field > span small {
  margin-left: 4px;
  color: rgba(255, 253, 248, 0.38);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 0;
  color: var(--white);
  background: rgba(255, 253, 248, 0.055);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  padding: 14px;
  line-height: 1.7;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--persona-accent, #d7ba76);
  background: rgba(255, 253, 248, 0.09);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 253, 248, 0.28);
}

.field-large {
  margin-top: 20px;
}

.field-helper {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 253, 248, 0.34);
  font-size: 13px;
}

.privacy-hint {
  display: block;
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.42);
  font-size: 13px;
}

.form-action-dock {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--persona-accent, #d7ba76) 64%, transparent);
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) minmax(240px, 0.9fr);
  align-items: center;
  gap: 16px;
  position: sticky;
  bottom: 12px;
  z-index: 8;
  background: rgba(24, 41, 45, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.form-action-dock > p {
  margin: 0;
}

.form-action-dock > p b,
.form-action-dock > p span {
  display: block;
}

.form-action-dock > p b {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 15px;
}

.form-action-dock > p span {
  color: rgba(255, 253, 248, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.form-action-dock .age-check {
  margin: 0;
}

.form-action-dock .generate-button {
  min-height: 50px;
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.optional-quote {
  margin-top: 18px;
  padding: 14px 16px 18px;
  border: 1px solid rgba(255, 253, 248, 0.14);
}

.optional-quote summary {
  color: rgba(255, 253, 248, 0.76);
  font-size: 15px;
  cursor: pointer;
}

.optional-quote summary small {
  margin-left: 6px;
  color: rgba(255, 253, 248, 0.4);
}

.optional-quote .field-large {
  margin-top: 16px;
}

.age-check {
  margin: 24px 0;
  display: flex;
  align-items: start;
  gap: 10px;
  color: rgba(255, 253, 248, 0.56);
  font-size: 14px;
  line-height: 1.6;
}

.age-check input {
  margin-top: 2px;
  accent-color: var(--persona-accent, #d7ba76);
}

.generate-button {
  width: 100%;
  color: var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--persona-accent, #d7ba76);
}

.generate-button i {
  font-style: normal;
}

.result-section {
  padding: 100px 0 120px;
}

.pinned-issue {
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 248, 0.55);
  position: sticky;
  top: 12px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(24, 41, 45, 0.08);
  backdrop-filter: blur(14px);
}

.pinned-issue > span {
  padding: 5px 8px;
  color: var(--white);
  background: var(--copper);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pinned-issue p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
}

.pinned-issue button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 5px 0;
  color: var(--ink-soft);
  background: none;
  font-size: 13px;
  cursor: pointer;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
}

.conversation-card,
.analysis-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
}

.conversation-card {
  min-height: 390px;
  position: relative;
  box-shadow: var(--shadow);
}

.conversation-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.conversation-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.result-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--result-accent, var(--sage));
  font-size: 26px;
}

.conversation-card header small,
.conversation-card header h2 {
  display: block;
}

.conversation-card header small {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.conversation-card header h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.strength-badge {
  padding: 7px 9px;
  color: var(--sage);
  background: rgba(102, 124, 104, 0.1);
  font-size: 13px;
}

.conversation-card blockquote {
  margin: 44px 0 36px;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.evidence-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.evidence-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 13px;
}

.inference-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.analysis-card {
  color: var(--white);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--result-accent, var(--sage));
}

.analysis-card h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.analysis-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: meanings;
}

.analysis-card li {
  padding: 16px 0 16px 36px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.72);
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  counter-increment: meanings;
}

.analysis-card li::before {
  content: "0" counter(meanings);
  position: absolute;
  top: 17px;
  left: 0;
  color: var(--result-accent, #d7ba76);
  font-family: var(--serif);
  font-size: 15px;
}

.verify-box {
  margin-top: 28px;
  padding: 18px;
  border-left: 3px solid var(--result-accent, #d7ba76);
  background: rgba(255, 253, 248, 0.06);
}

.verify-box small {
  color: var(--result-accent, #d7ba76);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.verify-box p {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.reply-section {
  padding: 82px 0 0;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading.compact h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}

.reply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.reply-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.5);
  transition: transform 180ms ease, background 180ms ease;
}

.reply-card:hover {
  transform: translateY(-4px);
  background: var(--white);
}

.reply-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reply-card header span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.reply-card header i {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  font-style: normal;
}

.reply-card p {
  margin: 28px 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}

.reply-card button {
  margin-top: auto;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: none;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.calibration-strip {
  margin-top: 28px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  color: var(--white);
  background: var(--copper);
}

.calibration-strip small {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.calibration-strip h3 {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.calibration-strip p {
  margin: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 13px;
}

.calibration-actions {
  display: flex;
  gap: 8px;
}

.calibration-actions button {
  min-width: 116px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 248, 0.36);
  display: flex;
  justify-content: space-between;
  color: var(--white);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.calibration-actions button:hover,
.calibration-actions button.is-selected {
  color: var(--copper);
  background: var(--white);
}

.how-section {
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
}

.interaction-shell {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.interaction-rail {
  padding: 30px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 8%, color-mix(in srgb, var(--result-accent, #667c68) 32%, transparent), transparent 18rem),
    var(--ink);
}

.interaction-persona {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  display: flex;
  align-items: center;
  gap: 14px;
}

.interaction-persona small,
.interaction-persona h2 {
  display: block;
}

.interaction-persona small,
.round-meter small,
.partner-state small,
.memory-count small {
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.interaction-persona h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.round-meter,
.partner-state,
.memory-count {
  margin-top: 26px;
}

.round-meter strong,
.partner-state strong,
.memory-count strong {
  margin-top: 7px;
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.round-meter > div {
  height: 3px;
  margin-top: 15px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.14);
}

.round-meter i {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--result-accent, var(--sage));
  transform: scaleX(0.33);
  transform-origin: left;
  transition: transform 260ms ease;
}

.partner-state {
  padding: 18px;
  border-left: 3px solid var(--result-accent, var(--sage));
  background: rgba(255, 253, 248, 0.06);
}

.partner-state span {
  margin-top: 8px;
  display: block;
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.partner-state[data-state="defensive"] {
  border-left-color: var(--copper);
}

.partner-state[data-state="paused"] {
  border-left-color: #a89d87;
}

.partner-state[data-state="open"] {
  border-left-color: #82a987;
}

.memory-count {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
}

.interaction-workspace {
  min-width: 0;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(410px, 1.22fr);
}

.conversation-timeline {
  min-width: 0;
  max-height: 820px;
  margin: 0;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  list-style: none;
  background:
    linear-gradient(rgba(39, 62, 65, 0.035) 1px, transparent 1px),
    rgba(248, 244, 235, 0.72);
  background-size: 100% 30px;
}

.empty-turn {
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  background: rgba(255, 253, 248, 0.64);
}

.timeline-turn {
  width: 88%;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  position: relative;
  background: var(--white);
  animation: reveal-up 260ms ease both;
}

.timeline-turn.user {
  margin-left: auto;
  border-color: color-mix(in srgb, var(--result-accent, #667c68) 54%, var(--line));
}

.timeline-turn.partner {
  margin-right: auto;
  color: var(--white);
  background: var(--ink);
}

.timeline-turn header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.timeline-turn header b,
.timeline-turn header span,
.timeline-turn small {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.timeline-turn header span,
.timeline-turn small {
  color: var(--ink-soft);
}

.timeline-turn.partner header span,
.timeline-turn.partner small {
  color: rgba(255, 253, 248, 0.48);
}

.timeline-turn p {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
}

.interaction-step {
  min-width: 0;
  padding: 38px;
  position: relative;
  background: var(--white);
}

.step-heading {
  margin-bottom: 26px;
  scroll-margin-top: 20px;
}

.step-heading h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.2;
}

.step-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.interaction-options {
  display: grid;
  gap: 10px;
}

.interaction-option {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 13px;
  position: relative;
  cursor: pointer;
  background: rgba(248, 244, 235, 0.45);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.interaction-option:hover {
  border-color: var(--result-accent, var(--sage));
  transform: translateX(3px);
  background: var(--white);
}

.interaction-option:has(input:checked) {
  border-color: var(--result-accent, var(--sage));
  background: color-mix(in srgb, var(--result-accent, #667c68) 9%, var(--white));
  box-shadow: inset 4px 0 0 var(--result-accent, var(--sage));
}

.interaction-option input {
  position: absolute;
  opacity: 0;
}

.option-index {
  color: var(--copper);
  font-family: var(--serif);
  font-size: 15px;
}

.option-copy small,
.option-copy strong,
.option-copy q,
.option-copy em {
  display: block;
}

.option-copy {
  min-width: 0;
}

.option-copy strong,
.option-copy q,
.option-copy em {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

.option-copy small {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.07em;
}

.option-copy strong {
  margin-top: 4px;
  font-size: 15px;
}

.option-copy q {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.option-copy q::before,
.option-copy q::after {
  content: none;
}

.option-copy em {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
}

.interaction-option > i {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 13px;
  font-style: normal;
}

.interaction-option:has(input:checked) > i {
  border-color: var(--result-accent, var(--sage));
  color: var(--white);
  background: var(--result-accent, var(--sage));
}

.custom-option {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--line);
  display: block;
  background: rgba(248, 244, 235, 0.42);
}

.custom-option > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.custom-option input {
  accent-color: var(--result-accent, var(--sage));
}

.custom-option textarea,
.actual-reply-field textarea {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  resize: vertical;
}

.custom-option:has(input:checked) {
  border-style: solid;
  border-color: var(--result-accent, var(--sage));
}

.step-action {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.step-action > span {
  color: var(--ink-soft);
  font-size: 13px;
}

.step-action .primary-button {
  min-width: 250px;
  border: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
}

.step-back-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.step-back-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--white);
}

.step-back-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.step-action .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.step-action i {
  margin-left: 8px;
  font-style: normal;
}

.step-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.step-loading span {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-top-color: var(--result-accent, var(--sage));
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.step-loading p {
  color: var(--ink-soft);
  font-size: 14px;
}

.simulation-summary h2 {
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
}

.simulation-summary > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.summary-praise {
  margin: 24px 0 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--result-accent, var(--sage)) 38%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--result-accent, var(--sage)) 13%, transparent), transparent 62%),
    rgba(255, 253, 248, 0.82);
}

.summary-praise p {
  margin: 0;
  color: var(--result-accent, var(--sage));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-praise h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.48;
}

.summary-points {
  margin: 26px 0;
  display: grid;
  gap: 8px;
}

.summary-points article {
  padding: 15px;
  border-left: 3px solid var(--result-accent, var(--sage));
  background: rgba(248, 244, 235, 0.66);
}

.summary-points b,
.summary-points span {
  display: block;
}

.summary-points b {
  font-size: 15px;
}

.summary-points span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.summary-growth-note {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft);
  background: rgba(183, 91, 56, 0.06);
  font-size: 15px;
  line-height: 1.82;
}

.actual-reply-field {
  display: block;
}

.actual-reply-field > span {
  font-size: 15px;
}

.actual-reply-field small {
  color: var(--ink-soft);
}

.summary-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-actions button {
  min-height: 48px;
}

.secondary-ink-button {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.accuracy-section {
  margin-bottom: 120px;
  padding: 68px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 12%, rgba(196, 154, 74, 0.22), transparent 24rem),
    var(--ink);
  box-shadow: var(--shadow);
}

.accuracy-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.3vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff8ec;
}

.accuracy-copy > p:not(.eyebrow) {
  margin: 24px 0 32px;
  max-width: 36em;
  color: rgba(255, 253, 248, 0.88);
  font-size: var(--text-md);
  line-height: 1.85;
  /* 可讀性：避免整段包色塊 */
  background: none;
  padding: 0;
}

.accuracy-copy .primary-button {
  color: var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--gold);
  font-size: 15px;
  font-weight: 600;
}

.accuracy-levels {
  border-top: 1px solid rgba(255, 253, 248, 0.18);
}

.accuracy-levels article {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
}

.accuracy-levels b {
  grid-row: 1 / 3;
  margin-top: 4px;
  padding: 6px 10px;
  width: fit-content;
  color: #1a2a2e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(232, 200, 120, 0.92);
  border-radius: 4px;
}

.accuracy-levels strong {
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  color: #fffdf8;
  line-height: 1.4;
}

.accuracy-levels p {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 15px;
  line-height: 1.7;
  background: none;
  padding: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.how-grid article {
  min-height: 260px;
  padding: 32px;
  background: var(--paper);
}

.how-grid span {
  display: block;
  margin-bottom: 72px;
  color: var(--copper);
  font-family: var(--serif);
}

.how-grid h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.how-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

body > footer:not(.dialog-actions) {
  width: min(1440px, calc(100% - 64px));
  min-height: 140px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 30px;
}

.footer-brand .brand-orbit {
  width: 30px;
  height: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body > footer > p {
  margin: 0;
  color: #2f4044;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  text-align: center;
  max-width: 36em;
  justify-self: center;
}

body > footer > span {
  justify-self: end;
  color: #3d4f53;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

dialog::backdrop {
  background: rgba(11, 25, 28, 0.74);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  max-height: calc(100vh - 32px);
  padding: 34px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(5, 12, 14, 0.42);
  overflow: auto;
}

.dialog-shell > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-shell h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.dialog-shell header p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.profile-progress {
  height: 3px;
  margin: 28px 0 7px;
  background: var(--paper-deep);
}

.profile-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--copper);
  transition: width 240ms ease;
}

.progress-label {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
}

.question-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.question-item p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 16px;
}

.question-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.question-options label {
  cursor: pointer;
}

.question-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.question-options span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 150ms ease, background 150ms ease;
}

.question-options input:checked + span {
  color: var(--white);
  background: var(--ink);
}

.dialog-actions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.dialog-actions .danger-button {
  margin-right: auto;
  color: #9b4336;
  border-bottom-color: rgba(155, 67, 54, 0.4);
}

.dialog-actions .danger-button.is-armed {
  padding: 8px 10px;
  color: var(--white);
  background: #9b4336;
  border-bottom-color: #9b4336;
}

.dialog-actions .primary-button {
  min-height: 46px;
}

.small-dialog {
  padding: 34px;
}

.small-dialog .field > span {
  color: var(--ink);
}

.small-dialog .field textarea {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
}

.small-dialog .field textarea::placeholder {
  color: rgba(24, 41, 45, 0.36);
}

.small-dialog .privacy-hint {
  color: var(--ink-soft);
}

.safety-shell {
  border-top: 6px solid var(--copper);
}

.safety-shell > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.safety-steps {
  margin: 20px 0 0;
  padding: 0;
  counter-reset: safety-step;
  list-style: none;
}

.safety-steps li {
  padding: 11px 0 11px 40px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.safety-steps li::before {
  content: counter(safety-step, decimal-leading-zero);
  counter-increment: safety-step;
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--copper);
  font-size: 14px;
}

.safety-links {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.safety-links a {
  padding: 15px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.safety-links b {
  color: var(--copper);
  font-family: var(--serif);
  font-size: 22px;
}

.safety-links span {
  font-size: 14px;
}

.safety-shell .primary-button {
  width: 100%;
}

.safety-stop-note,
.safety-blocked-step {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--copper);
  background: rgba(183, 91, 56, 0.08);
}

.safety-stop-note strong,
.safety-blocked-step strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.safety-stop-note p,
.safety-blocked-step p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--copper);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes star-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.35); }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 44px;
  }

  .zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .studio-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .rehearsal-panel {
    padding: 42px 36px 48px;
  }

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

  .interaction-workspace {
    grid-template-columns: minmax(220px, 0.7fr) minmax(380px, 1.3fr);
  }

  .analysis-card {
    box-shadow: 7px 7px 0 var(--result-accent, var(--sage));
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding: 58px 0 76px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy"
      "visual";
    row-gap: 34px;
  }

  .hero-heading {
    padding-right: 4px;
  }

  .hero h1 {
    font-size: clamp(34px, 6.4vw, 52px);
    line-height: 1.22;
    white-space: normal;
    max-width: 100%;
  }

  /* 手機／平板：允許換行，避免產生橫向捲軸 */
  .hero h1 span,
  .hero h1 em {
    display: block;
    white-space: normal;
    max-width: 100%;
  }

  .hero h1 em {
    margin-left: 0;
    margin-top: 0.1em;
  }

  .hero-copy,
  .hero-visual {
    order: initial;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 36px, 720px);
    height: 78px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero,
  .zodiac-section,
  .benefit-section,
  .accuracy-section,
  .how-section,
  .result-section,
  footer:not(.dialog-actions) {
    width: min(100% - 36px, 720px);
  }

  .hero {
    row-gap: 30px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    min-height: 500px;
    order: 2;
  }

  .trust-row {
    margin-top: 36px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .studio-section {
    padding: 70px 18px;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .persona-panel {
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.16);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 24px;
    align-items: center;
  }

  .persona-panel .back-link,
  .persona-insight,
  .persona-actions {
    grid-column: 1 / -1;
  }

  .persona-actions {
    margin-top: 10px;
  }

  .persona-symbol {
    width: 86px;
    height: 86px;
    margin: 20px 0 0;
    grid-row: 2 / 6;
    font-size: 42px;
  }

  .persona-symbol::after {
    width: 104px;
  }

  .persona-panel .eyebrow {
    align-self: end;
    margin: 20px 0 0;
  }

  .persona-panel h2 {
    align-self: start;
  }

  .persona-traits {
    margin: 4px 0 8px;
  }

  .mode-fieldset {
    grid-template-columns: 1fr;
  }

  .mode-fieldset label {
    min-height: 66px;
  }

  .interaction-shell {
    grid-template-columns: 1fr;
  }

  .interaction-rail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0 24px;
  }

  .interaction-persona,
  .memory-count {
    grid-column: 1 / -1;
  }

  .round-meter,
  .partner-state {
    align-self: start;
  }

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

  .conversation-timeline {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reply-grid,
  .benefit-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

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

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

  .accuracy-section {
    padding: 46px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .calibration-strip {
    align-items: stretch;
    flex-direction: column;
  }

  footer:not(.dialog-actions) {
    padding: 34px 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .footer-brand,
  footer > span {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .zodiac-section,
  .benefit-section,
  .accuracy-section,
  .how-section,
  .result-section,
  footer:not(.dialog-actions) {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 70px;
  }

  .brand-orbit {
    width: 32px;
    height: 32px;
  }

  .brand-orbit::before {
    width: 43px;
  }

  .brand strong {
    font-size: 16px;
  }

  .quota-chip {
    gap: 5px;
    padding-left: 8px;
  }

  .quota-chip > span {
    display: none;
  }

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

  .eyebrow {
    font-size: clamp(14px, 3.5vw, 14px);
    letter-spacing: 0.04em;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .text-button {
    align-self: start;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-row li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
  }

  .trust-row span {
    margin: 0;
  }

  .hero-visual {
    min-height: 440px;
    border-radius: 180px 180px 12px 12px;
  }

  .preview-note-main {
    top: 24%;
    right: 5%;
    left: 5%;
    padding: 20px;
  }

  .preview-note-main > p {
    font-size: 18px;
  }

  .note-topline i {
    display: none;
  }

  .preview-note-small {
    right: 3%;
    bottom: 15%;
  }

  .zodiac-section {
    padding: 76px 0 90px;
  }

  .benefit-section {
    padding: 76px 0 90px;
  }

  .benefit-grid article {
    min-height: 260px;
  }

  .result-promise {
    padding: 22px 18px;
    gap: 18px;
  }

  .result-promise .title-art-img {
    width: min(100%, 260px);
  }

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

  .result-promise li {
    min-height: 52px;
    border-top: 1px solid rgba(255, 253, 248, 0.14);
    border-left: 0;
    padding: 12px 4px;
  }

  .result-promise li span {
    font-size: 15px;
  }

  .accuracy-section {
    margin-bottom: 90px;
    padding: 38px 24px;
  }

  .accuracy-levels article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .accuracy-levels b {
    grid-row: auto;
  }

  .accuracy-levels strong {
    font-size: 18px;
  }

  .accuracy-levels p {
    font-size: 15px;
  }

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

  .zodiac-card {
    min-height: 184px;
    padding: 18px;
  }

  .zodiac-card-symbol {
    font-size: 36px;
  }

  .zodiac-card h3 {
    font-size: 20px;
  }

  .rehearsal-panel {
    padding: 32px 20px 38px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .panel-heading h2 {
    font-size: 36px;
  }

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

  .form-action-dock {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pinned-issue {
    top: 6px;
    grid-template-columns: auto 1fr;
  }

  .pinned-issue button {
    grid-column: 2;
    justify-self: start;
  }

  .conversation-card,
  .analysis-card {
    padding: 24px;
  }

  .conversation-card header {
    grid-template-columns: auto 1fr;
  }

  .strength-badge {
    grid-column: 2;
    justify-self: start;
  }

  .conversation-card blockquote {
    margin: 32px 0 28px;
    font-size: 25px;
  }

  .calibration-actions {
    flex-direction: column;
  }

  .calibration-actions button {
    width: 100%;
  }

  .dialog-shell {
    padding: 24px 20px;
  }

  .dialog-shell h2 {
    font-size: 29px;
  }

  .safety-links {
    grid-template-columns: 1fr;
  }
}

/* ===== 我的演練紀錄與延後回報 ===== */

.history-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.history-nav-button > span {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: #f0cd78;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.history-nav-button > span[hidden],
.mobile-history-button > span[hidden] {
  display: none;
}

.mobile-history-button {
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 99px;
  display: none;
  align-items: center;
  gap: 6px;
  color: rgba(255, 253, 248, 0.94);
  background: rgba(10, 30, 36, 0.22);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.mobile-history-button > span {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: #f0cd78;
  font-size: 11px;
  font-weight: 700;
}

.summary-history-note {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 4px solid var(--result-accent, var(--sage));
  color: var(--ink);
  background: color-mix(in srgb, var(--result-accent, var(--sage)) 10%, var(--white));
}

.summary-history-note b {
  display: block;
  font-size: 18px;
}

.summary-history-note p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.history-dialog {
  width: min(900px, calc(100% - 32px));
}

.history-shell {
  max-height: min(880px, calc(100vh - 32px));
  overflow-y: auto;
}

.history-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.history-empty {
  padding: 42px 24px;
  border: 1px dashed var(--line);
  text-align: center;
  background: rgba(255, 253, 248, 0.66);
}

.history-empty b {
  font-family: var(--display);
  font-size: 25px;
}

.history-empty p {
  max-width: 34em;
  margin: 10px auto 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.history-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.history-card.is-pending {
  border-left: 4px solid var(--copper);
}

.history-card.is-reported {
  border-left: 4px solid var(--sage);
}

.history-card > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.history-symbol {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 25px;
}

.history-card time,
.history-card header b {
  display: block;
}

.history-card time {
  color: var(--ink-soft);
  font-size: 13px;
}

.history-card header b {
  margin-top: 2px;
  font-size: 17px;
}

.history-status {
  padding: 7px 10px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(20, 44, 49, 0.07);
  font-size: 13px;
}

.history-card.is-pending .history-status {
  color: #8e402a;
  background: rgba(173, 86, 56, 0.1);
}

.history-card > p {
  margin: 17px 0;
  padding: 15px 17px;
  color: var(--ink);
  background: rgba(20, 44, 49, 0.045);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.7;
}

.history-card > footer {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.history-card > footer > span {
  color: var(--ink-soft);
  font-size: 13px;
}

.history-report-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.history-reported-note {
  color: var(--sage) !important;
  font-weight: 700;
}

.history-report-form {
  display: grid;
  gap: 22px;
}

.history-list-back {
  justify-self: start;
}

.history-report-context {
  padding: 18px 20px;
  border-left: 4px solid var(--copper);
  background: rgba(20, 44, 49, 0.05);
}

.history-report-context small,
.history-report-context b {
  display: block;
}

.history-report-context small {
  color: var(--ink-soft);
  font-size: 13px;
}

.history-report-context b {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.65;
}

.history-report-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.history-report-form legend,
.history-reply-field > span {
  margin-bottom: 10px;
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.history-report-form legend small,
.history-reply-field small {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}

.history-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.history-help-grid {
  grid-template-columns: repeat(3, 1fr);
}

.history-choice-grid label {
  min-height: 48px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  background: var(--white);
}

.history-choice-grid input {
  position: absolute;
  opacity: 0;
}

.history-choice-grid label:has(input:checked) {
  border-color: var(--copper);
  color: var(--white);
  background: var(--ink);
  box-shadow: inset 0 -3px 0 var(--copper);
}

.history-choice-grid span {
  padding: 9px 10px;
  font-size: 15px;
  text-align: center;
}

.history-reply-field textarea {
  width: 100%;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
}

.history-privacy-note {
  margin: -14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.history-save-button {
  justify-self: end;
  min-width: 250px;
}

body > footer:not(.dialog-actions) {
  grid-template-columns: 1fr minmax(280px, 2fr) auto auto auto;
}

footer #footerHistoryButton,
footer #footerConsentButton {
  font-size: 13px;
  opacity: 0.86;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .mobile-history-button {
    display: inline-flex;
  }

  .history-card > header {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .history-status {
    grid-column: 2;
    justify-self: start;
  }

  .history-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .history-report-button {
    width: 100%;
  }

  .history-choice-grid,
  .history-help-grid {
    grid-template-columns: 1fr 1fr;
  }

  .history-save-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .history-shell {
    padding: 24px 16px;
  }

  .history-card {
    padding: 16px;
  }

  .history-card > p {
    font-size: 16px;
  }

  .history-choice-grid,
  .history-help-grid {
    grid-template-columns: 1fr;
  }

  .summary-history-note {
    padding: 17px;
  }
}

/* ===== 2026-07-15 星圖藝術版：背景、排版與自適應字級 ===== */

:root {
  --paper: #f5efe2;
  --paper-deep: #e7dbc5;
  --ink: #142c31;
  --ink-soft: #3d4f53;
  --copper: #ad5638;
  --gold: #bd9140;
  --line: rgba(20, 44, 49, 0.18);
  --shadow: 0 28px 90px rgba(22, 38, 43, 0.16);
  --serif: "Noto Serif TC", "Songti TC", "Iowan Old Style", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Avenir Next", sans-serif;
  --display: "Noto Serif TC", "Songti TC", "Iowan Old Style", serif;
}

html {
  font-size: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

.celestial-backdrop {
  position: absolute;
  top: -3vh;
  right: 0;
  left: 0;
  width: 100%;
  height: min(1180px, 118vh);
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  /* 底圖只作 poster 備援；有影片時影片蓋在上面 */
  background: #0b1c22 url("images/celestial-atlas-bg-v1.webp") top center / cover no-repeat;
  transform: translate3d(0, var(--celestial-shift, 0px), 0);
  transform-origin: 50% 20%;
  will-change: transform;
}

.celestial-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: saturate(1.12) contrast(1.06) brightness(1.02);
  animation: video-kenburns 18s ease-in-out infinite alternate;
}

.celestial-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 18, 24, 0.22) 0%, rgba(6, 18, 24, 0.05) 30%, rgba(245, 239, 226, 0.12) 58%, rgba(245, 239, 226, 0.78) 84%, var(--paper) 100%),
    radial-gradient(circle at 18% 16%, rgba(217, 174, 92, 0.22), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(103, 139, 145, 0.24), transparent 30%);
  animation: celestial-breathe 11s ease-in-out infinite alternate;
}

.celestial-stars,
.celestial-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  display: block !important;
}

.celestial-stars i {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0%, #ffe29a 40%, rgba(255, 210, 120, 0.15) 70%, transparent 78%);
  box-shadow:
    0 0 6px 2px rgba(255, 230, 160, 0.85),
    0 0 18px 4px rgba(255, 200, 100, 0.45);
  opacity: 0.9;
  animation: star-twinkle var(--dur, 3.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.celestial-stars-fixed i {
  --size: 3.5px;
  --dur: 2.8s;
}

.celestial-stars-fixed i:nth-child(2n) { --delay: 0.4s; --dur: 3.4s; }
.celestial-stars-fixed i:nth-child(3n) { --delay: 1.1s; --dur: 2.6s; }
.celestial-stars-fixed i:nth-child(4n) { --delay: 1.8s; --dur: 4s; }

.celestial-stars .star-lg {
  --size: 7px;
  box-shadow:
    0 0 10px 3px rgba(255, 236, 180, 0.95),
    0 0 28px 8px rgba(255, 190, 90, 0.55);
}

.celestial-dust i {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: rgba(255, 220, 140, 0.75);
  filter: blur(0.2px);
  opacity: 0;
  animation: dust-float var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.celestial-shooting {
  position: absolute;
  top: var(--y, 20%);
  left: -12%;
  z-index: 2;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 210, 0.95), transparent);
  box-shadow: 0 0 12px rgba(255, 220, 140, 0.8);
  opacity: 0;
  transform: rotate(-18deg);
  animation: shooting-star 7.5s linear infinite;
  animation-delay: var(--delay, 0s);
}

.celestial-glow {
  position: absolute;
  z-index: 1;
  width: clamp(220px, 30vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.28;
  mix-blend-mode: screen;
}

.celestial-glow-a {
  top: -12%;
  left: 4%;
  background: #d4a64f;
  animation: glow-float-a 18s ease-in-out infinite alternate;
}

.celestial-glow-b {
  top: 8%;
  right: 2%;
  background: #4d8b91;
  animation: glow-float-b 22s ease-in-out infinite alternate;
}

.celestial-glow-c {
  top: 28%;
  left: 38%;
  width: clamp(160px, 18vw, 320px);
  background: #f0d9a0;
  opacity: 0.18;
  animation: glow-float-c 20s ease-in-out infinite alternate;
}

.celestial-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(219, 180, 98, 0.42);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(219, 180, 98, 0.12),
    0 0 30px rgba(219, 180, 98, 0.12);
}

.celestial-orbit-a {
  top: 6vh;
  right: 7vw;
  width: clamp(180px, 24vw, 380px);
  aspect-ratio: 1.75;
  transform: rotate(-17deg);
  animation: orbit-breathe 13s ease-in-out infinite alternate;
}

.celestial-orbit-b {
  top: 14vh;
  left: 6vw;
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 1;
  border-color: rgba(150, 190, 196, 0.35);
  transform: rotate(12deg);
  animation: orbit-breathe-b 17s ease-in-out infinite alternate;
}

.sky-grain {
  z-index: -1;
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

.site-header {
  min-height: 96px;
  height: auto;
  color: rgba(255, 253, 248, 0.94);
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.24), rgba(10, 30, 36, 0));
}

.site-header .brand small,
.site-header .quota-chip span {
  color: rgba(255, 253, 248, 0.78);
}

.site-header .brand-orbit {
  border-color: rgba(255, 253, 248, 0.82);
}

.site-header .brand-mark {
  border-color: rgba(255, 253, 248, 0.55);
  box-shadow:
    0 0 0 3px rgba(232, 200, 120, 0.22),
    0 10px 24px rgba(4, 14, 18, 0.28);
}

.site-header .quota-chip {
  color: var(--ink);
  border-color: rgba(255, 253, 248, 0.36);
  background: rgba(255, 253, 248, 0.22);
  backdrop-filter: blur(12px);
}

.brand strong {
  font-family: var(--display);
  font-size: 21px;
}

.brand small {
  font-size: 14px;
}

.desktop-nav {
  font-size: 15px;
}

.quota-chip span,
.quota-chip strong {
  font-size: 13px;
}

.hero {
  min-height: 760px;
  padding-top: clamp(58px, 7vw, 96px);
}

.hero-copy {
  position: relative;
  padding: clamp(22px, 2.4vw, 34px);
  border-left: 2px solid rgba(173, 86, 56, 0.7);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(245, 239, 226, 0.72));
  box-shadow:
    0 20px 70px rgba(16, 38, 43, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 0 18px 18px 0;
}

.eyebrow {
  color: #f6e4bc;
  font-size: clamp(14px, 1.15vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: none;
}

.hero h1,
.section-heading h2,
.panel-heading h2,
.step-heading h2,
.interaction-persona h2,
.dialog-shell h2 {
  font-family: var(--display);
}

.hero h1 {
  color: #fffdf8;
  font-family: var(--display);
  font-size: clamp(40px, 4.65vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(4, 14, 18, 0.8),
    0 4px 20px rgba(4, 14, 18, 0.58),
    0 12px 40px rgba(4, 14, 18, 0.38);
}

/* 僅「4個互動步驟」使用生圖標題 */
.result-promise .title-art-img {
  user-select: none;
  pointer-events: none;
}

.hero h1 em {
  position: relative;
  color: #ffd0aa;
  -webkit-text-fill-color: #ffd0aa;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 0.04em;
  bottom: -0.12em;
  left: 0.06em;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0d18a 14%, #ffb48a 82%, transparent);
  transform: rotate(-1deg);
  transform-origin: left;
  opacity: 0.95;
}

.hero-lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.85;
}

.trust-row {
  font-size: 14px;
}

.preview-note,
.benefit-grid article,
.zodiac-card,
.rehearsal-panel,
.interaction-shell,
.accuracy-section,
.dialog-shell {
  box-shadow: 0 20px 70px rgba(20, 44, 49, 0.11);
}

.benefit-grid article,
.zodiac-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.benefit-grid article::after,
.zodiac-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 28%,
    rgba(255, 248, 230, 0.28) 46%,
    transparent 62%
  );
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.benefit-grid article:hover,
.zodiac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(20, 44, 49, 0.16);
}

.benefit-grid article:hover::after,
.zodiac-card:hover::after {
  opacity: 1;
  animation: card-shimmer 1.4s ease;
}

.section-heading > div > p:last-child,
.benefit-grid article p,
.result-promise li,
.accuracy-levels p {
  font-size: 16px;
  line-height: 1.8;
}

.benefit-grid article small,
.zodiac-card .date,
.zodiac-card p {
  font-size: 13px;
  line-height: 1.7;
}

.zodiac-card h3 {
  font-size: 26px;
}

.form-field > label,
.mode-fieldset legend,
.age-check {
  font-size: 15px;
}

.form-field input,
.form-field select,
.form-field textarea,
.custom-option textarea,
.actual-reply-field textarea {
  font-size: 16px;
  line-height: 1.7;
}

.form-field small,
.privacy-hint,
.form-action-dock > p,
.optional-summary,
.panel-heading > div > p:last-child {
  font-size: 13px;
  line-height: 1.7;
}

.mode-option b,
.mode-option small {
  font-size: 14px;
}

.back-link,
.local-badge {
  font-size: 13px;
}

.persona-panel > p:not(.eyebrow) {
  font-size: 15px;
}

.persona-traits span {
  padding: 7px 11px;
  font-size: 15px;
}

.persona-insight small {
  font-size: 15px;
}

.persona-insight p {
  font-size: 15px;
  line-height: 1.8;
}

.secondary-button {
  min-height: 50px;
  font-size: 15px;
}

.mode-fieldset legend,
.field > span {
  font-size: 15px;
}

.mode-fieldset b {
  font-size: 14px;
}

.mode-fieldset small {
  font-size: 15px;
  line-height: 1.55;
}

.field input,
.field select,
.field textarea {
  font-size: 16px;
}

.field-helper {
  font-size: 15px;
}

.privacy-hint,
.optional-quote summary {
  font-size: 13px;
  line-height: 1.7;
}

.form-action-dock > p b {
  font-size: 14px;
}

.form-action-dock > p span,
.form-action-dock .age-check {
  font-size: 15px;
  line-height: 1.55;
}

.interaction-persona small,
.round-meter small,
.partner-state small,
.memory-count small,
.timeline-turn header b,
.timeline-turn header span,
.timeline-turn small,
.option-copy small,
.option-copy em,
.step-action > span {
  font-size: 15px;
  line-height: 1.55;
}

.interaction-persona h2,
.round-meter strong,
.partner-state strong,
.memory-count strong {
  font-size: 20px;
}

.partner-state span,
.empty-turn,
.step-heading > p:last-child,
.custom-option > span {
  font-size: 14px;
  line-height: 1.7;
}

.timeline-turn p {
  font-size: 17px;
  line-height: 1.75;
}

.option-index {
  font-size: 15px;
}

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

.option-copy q {
  font-size: 17px;
  line-height: 1.75;
}

.interaction-option {
  min-height: 164px;
  padding: 21px;
}

.calibration-strip p,
.calibration-actions button {
  font-size: 13px;
}

.primary-button,
.text-button,
.step-back-button {
  min-height: 48px;
  font-size: 15px;
}

@keyframes celestial-breathe {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

@keyframes video-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1.2%, 0); }
}

@keyframes glow-float-a {
  from { transform: translate3d(0, 0, 0) scale(0.92); }
  to { transform: translate3d(8vw, 5vh, 0) scale(1.12); }
}

@keyframes glow-float-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-7vw, 6vh, 0) scale(1.16); }
}

@keyframes glow-float-c {
  from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.12; }
  to { transform: translate3d(4vw, -3vh, 0) scale(1.18); opacity: 0.26; }
}

@keyframes orbit-breathe {
  from { opacity: 0.45; transform: rotate(-17deg) scale(0.96); }
  to { opacity: 0.9; transform: rotate(-14deg) scale(1.05); }
}

@keyframes orbit-breathe-b {
  from { opacity: 0.3; transform: rotate(12deg) scale(0.94); }
  to { opacity: 0.72; transform: rotate(18deg) scale(1.08); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  45% { opacity: 1; transform: scale(1.55); }
  70% { opacity: 0.65; transform: scale(1); }
}

@keyframes dust-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.6);
  }
  12% { opacity: 0.75; }
  70% { opacity: 0.45; }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x, 24px), -42vh, 0) scale(1.1);
  }
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: rotate(-18deg) translate3d(0, 0, 0) scaleX(0.4);
  }
  8% { opacity: 1; }
  28% {
    opacity: 0;
    transform: rotate(-18deg) translate3d(110vw, 18vh, 0) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-18deg) translate3d(110vw, 18vh, 0) scaleX(1);
  }
}

@keyframes card-shimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}

@media (max-width: 920px) {
  .site-header {
    width: min(100% - 36px, 720px);
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero h1 {
    white-space: normal;
    text-wrap: balance;
  }

  .hero h1 span,
  .hero h1 em {
    display: block;
    width: 100%;
  }

  .hero h1 em {
    width: auto;
    max-width: 100%;
    margin: 0.12em 0 0 0;
  }

  .interaction-step {
    padding: 34px 26px;
  }

  .step-heading {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .celestial-backdrop {
    top: -2vh;
    right: 0;
    left: 0;
    height: 1060px;
    background-position: 48% top;
  }

  .celestial-video {
    object-position: 48% top;
  }

  .celestial-orbit-b,
  .celestial-glow-c {
    display: none;
  }

  .site-header,
  .hero,
  .section-heading,
  .benefit-grid,
  .zodiac-grid,
  .rehearsal-panel,
  .interaction-shell,
  .accuracy-section,
  .footer-inner {
    width: min(100% - 28px, 100%);
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 13px;
  }

  .quota-chip span {
    display: none;
  }

  .quota-chip strong {
    font-size: 15px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 64px;
    row-gap: 22px;
  }

  .hero-heading {
    padding: 8px 2px 10px 0;
  }

  .hero-copy {
    padding: 22px 18px;
    border-left-width: 3px;
    background: linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(245, 239, 226, 0.78));
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: clamp(14px, 3.6vw, 15px);
    letter-spacing: 0.04em;
    line-height: 1.55;
    color: #f8e8c4;
  }

  .eyebrow span {
    width: 18px;
    margin-right: 6px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.22;
    letter-spacing: -0.03em;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .hero h1 em {
    margin-left: 0;
    margin-top: 0.08em;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .trust-row {
    font-size: 14px;
    line-height: 1.65;
  }

  .section-heading > div > p:last-child,
  .benefit-grid article p,
  .result-promise li,
  .accuracy-levels p {
    font-size: 15px;
  }

  .zodiac-card p,
  .zodiac-card .date,
  .benefit-grid article small {
    font-size: 13px;
  }

  .rehearsal-panel {
    padding-inline: 18px;
  }

  .panel-heading h2 {
    font-size: 34px;
  }

  .form-action-dock .age-check,
  .form-action-dock > p,
  .privacy-hint,
  .form-field small {
    font-size: 13px;
  }

  .interaction-rail {
    padding: 27px 20px;
  }

  .interaction-step {
    padding: 28px 18px;
  }

  .step-heading h2 {
    font-size: 32px;
  }

  .interaction-option {
    min-height: 0;
    padding: 17px 14px;
    grid-template-columns: 26px minmax(0, 1fr) 23px;
  }

  .option-copy q,
  .timeline-turn p {
    font-size: 16px;
  }

  .option-copy small,
  .option-copy em,
  .timeline-turn header b,
  .timeline-turn header span,
  .timeline-turn small {
    font-size: 15px;
  }

  .form-action-dock .primary-button,
  .step-action .primary-button,
  .step-back-button {
    min-height: 52px;
    font-size: 16px;
  }
}

/* 超窄手機（iPhone SE / 小安卓） */
@media (max-width: 380px) {
  .hero {
    width: min(100% - 20px, 100%);
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .eyebrow {
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.26;
    letter-spacing: -0.02em;
  }

  .hero-copy {
    padding: 18px 14px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .trust-row {
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 520px) {
  .form-action-dock {
    margin-right: -8px;
    margin-left: -8px;
    padding: 14px;
    bottom: 8px;
  }

  .form-action-dock > p span {
    display: none;
  }

  .form-action-dock .age-check {
    font-size: 13px;
  }

  .interaction-rail {
    padding: 24px 18px;
    display: block;
  }

  .interaction-step {
    padding: 26px 18px;
  }

  .conversation-timeline {
    max-height: 310px;
    padding: 20px 14px;
  }

  .timeline-turn {
    width: 94%;
  }

  .interaction-option {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 26px minmax(0, 1fr) 22px;
    gap: 9px;
  }

  .option-copy strong,
  .option-copy q,
  .option-copy em {
    text-wrap: pretty;
  }

  .option-copy q {
    font-size: 14px;
  }

  .step-action {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .step-action .primary-button {
    width: 100%;
    min-width: 0;
  }

  .step-back-button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  /* 只收斂介面互動，不關掉你要求的星空背景影片與星點特效 */
  html {
    scroll-behavior: auto !important;
  }

  .toast,
  .dialog-shell,
  .primary-button,
  .text-button,
  .zodiac-card,
  .benefit-grid article {
    transition-duration: 1ms !important;
  }

  .benefit-grid article:hover,
  .zodiac-card:hover {
    transform: none;
  }

  .benefit-grid article::after,
  .zodiac-card::after {
    display: none;
  }

  .celestial-backdrop {
    /* 背景影片與星點仍顯示；僅關閉滾動視差 */
    transform: none !important;
  }
}

/* 開始演練前的情境設定與 100 題問題庫 */
.setup-progress {
  margin: -4px 0 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.setup-progress span {
  min-width: 0;
  padding: 9px 8px;
  border-top: 1px solid rgba(255, 253, 248, 0.2);
  color: rgba(255, 253, 248, 0.52);
  font-size: 13px;
  text-align: center;
}

.setup-progress span.is-complete {
  border-color: var(--persona-accent, #d7ba76);
  color: rgba(255, 253, 248, 0.88);
}

.setup-progress b,
.form-step-number {
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.mode-fieldset .form-step-number {
  display: inline-grid;
  margin-bottom: 0;
  font-size: 12px;
}

.topic-picker {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.035);
  scroll-margin-top: 18px;
}

.topic-picker-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.topic-picker-heading > div,
.topic-picker-title,
.topic-picker-heading small {
  display: block;
}

.topic-picker-title {
  color: rgba(255, 253, 248, 0.9);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.topic-picker-heading small {
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.52);
  font-size: 14px;
  line-height: 1.6;
}

.topic-count-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--persona-accent, #d7ba76);
  border-radius: 99px;
  color: var(--persona-accent, #d7ba76);
  font-size: 13px;
}

.popular-topic-section > p {
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.popular-topic-section > p b {
  color: rgba(255, 253, 248, 0.85);
  font-size: 15px;
}

.popular-topic-section > p small {
  color: rgba(255, 253, 248, 0.42);
  font-size: 13px;
}

.popular-topic-grid,
.topic-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.popular-topic-grid button,
.topic-option-grid button,
.custom-topic-button {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  color: rgba(255, 253, 248, 0.82);
  background: rgba(255, 253, 248, 0.035);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.popular-topic-grid button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.popular-topic-grid button span {
  color: var(--persona-accent, #d7ba76);
  font-family: var(--serif);
  font-size: 13px;
}

.popular-topic-grid button b,
.topic-option-grid button b {
  font-weight: 500;
}

.popular-topic-grid button:hover,
.popular-topic-grid button:focus-visible,
.topic-option-grid button:hover,
.topic-option-grid button:focus-visible,
.custom-topic-button:hover,
.custom-topic-button:focus-visible,
.popular-topic-grid button.is-selected,
.topic-option-grid button.is-selected,
.custom-topic-button.is-selected {
  border-color: var(--persona-accent, #d7ba76);
  color: var(--white);
  background: color-mix(in srgb, var(--persona-accent, #d7ba76) 20%, transparent);
  outline: none;
}

.all-topic-library {
  margin-top: 12px;
  border: 1px solid rgba(255, 253, 248, 0.16);
}

.all-topic-library > summary,
.topic-category > summary {
  list-style: none;
  cursor: pointer;
}

.all-topic-library > summary::-webkit-details-marker,
.topic-category > summary::-webkit-details-marker {
  display: none;
}

.all-topic-library > summary {
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 253, 248, 0.84);
}

.all-topic-library > summary::after {
  content: "+";
  color: var(--persona-accent, #d7ba76);
  font-size: 24px;
}

.all-topic-library[open] > summary::after {
  content: "−";
}

.all-topic-library > summary span,
.all-topic-library > summary small {
  display: block;
}

.all-topic-library > summary span {
  font-size: 15px;
  font-weight: 700;
}

.all-topic-library > summary small {
  margin-left: auto;
  color: rgba(255, 253, 248, 0.44);
  font-size: 13px;
}

.topic-accordion {
  padding: 0 12px 12px;
}

.topic-category {
  border-top: 1px solid rgba(255, 253, 248, 0.12);
}

.topic-category > summary {
  min-height: 66px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topic-category > summary span,
.topic-category > summary b,
.topic-category > summary small {
  display: block;
}

.topic-category > summary b {
  color: rgba(255, 253, 248, 0.86);
  font-size: 15px;
}

.topic-category > summary small,
.topic-category > summary em {
  color: rgba(255, 253, 248, 0.45);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.topic-option-grid {
  padding: 0 0 12px;
}

.custom-topic-button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.selected-topic-notice {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--persona-accent, #d7ba76);
  color: rgba(255, 253, 248, 0.9);
  background: rgba(255, 253, 248, 0.06);
  font-size: 14px;
  line-height: 1.55;
}

.selected-topic-notice span {
  margin-right: 8px;
  color: rgba(255, 253, 248, 0.48);
}

.detail-hint {
  display: block;
  margin-top: 8px;
  color: var(--persona-accent, #d7ba76);
  font-size: 14px;
  line-height: 1.6;
}

#issue + .field-helper {
  top: 49px;
  bottom: auto;
}

@media (max-width: 720px) {
  .setup-progress {
    gap: 4px;
  }

  .setup-progress span {
    padding-inline: 2px;
    font-size: 12px;
  }

  .setup-progress b {
    width: 21px;
    height: 21px;
    margin-right: 3px;
  }

  .topic-picker {
    padding: 18px 14px;
  }

  .popular-topic-grid,
  .topic-option-grid {
    grid-template-columns: 1fr;
  }

  .popular-topic-grid button,
  .topic-option-grid button,
  .custom-topic-button {
    min-height: 54px;
    font-size: 16px;
  }

  .popular-topic-section > p,
  .all-topic-library > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .all-topic-library > summary {
    position: relative;
    padding-right: 48px;
  }

  .all-topic-library > summary::after {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }

  .all-topic-library > summary small {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .setup-progress span {
    font-size: 0;
  }

  .setup-progress b {
    margin-right: 0;
    font-size: 12px;
  }

  .topic-picker-heading {
    flex-direction: column;
  }
}

/* ===== 資料同意、回饋與後續結果（2026-07-15 資料層） ===== */

.consent-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.consent-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(31, 34, 48, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.consent-item input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #1f2230;
}

.consent-item b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.consent-item small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(31, 34, 48, 0.72);
}

.consent-note {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(31, 34, 48, 0.66);
}

.consent-note code {
  font-size: 15px;
  word-break: break-all;
  background: rgba(31, 34, 48, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.consent-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.option-edit-button {
  justify-self: start;
  font-size: 15px;
  padding: 4px 0;
  opacity: 0.8;
}

.turn-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(31, 34, 48, 0.18);
}

.turn-feedback small {
  font-size: 15px;
  color: rgba(31, 34, 48, 0.66);
}

.response-reflection-shell {
  display: grid;
  gap: 22px;
}

.reflection-reply-card,
.reflection-next-message {
  padding: 20px 22px;
  border-left: 4px solid var(--copper);
  background: rgba(179, 88, 55, 0.08);
}

.reflection-reply-card small,
.reflection-result-grid small,
.reflection-next-message small {
  color: var(--copper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.reflection-reply-card p,
.reflection-result-grid p,
.reflection-next-message p {
  margin: 8px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.reflection-reason-field {
  display: grid;
  gap: 10px;
}

.reflection-reason-field > span {
  font-size: 18px;
  font-weight: 700;
}

.reflection-reason-field textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 17px;
  line-height: 1.7;
  resize: vertical;
}

.reflection-reason-field small {
  color: var(--ink-soft);
  font-size: 14px;
}

.reflection-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reflection-result-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
}

@media (max-width: 720px) {
  .reflection-result-grid {
    grid-template-columns: 1fr;
  }

  .reflection-reply-card,
  .reflection-next-message,
  .reflection-result-grid article {
    padding: 16px;
  }

  .reflection-reason-field textarea {
    min-height: 132px;
    font-size: 16px;
  }
}

.turn-feedback span {
  display: inline-flex;
  gap: 6px;
}

.turn-feedback button,
.feedback-row button,
.outcome-bar button {
  font: inherit;
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 34, 48, 0.22);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.turn-feedback button:hover,
.feedback-row button:hover,
.outcome-bar button:hover {
  background: #1f2230;
  color: #f4efe4;
}

.summary-feedback {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(31, 34, 48, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.feedback-row {
  display: grid;
  gap: 8px;
}

.feedback-row small {
  font-size: 15px;
  color: rgba(31, 34, 48, 0.7);
}

.feedback-row small b {
  font-weight: 500;
  opacity: 0.7;
}

.feedback-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.outcome-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(560px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 34, 48, 0.2);
  background: #f4efe4;
  box-shadow: 0 18px 40px rgba(31, 34, 48, 0.22);
}

.outcome-bar p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.outcome-bar span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.outcome-bar .outcome-dismiss {
  border-style: dashed;
  opacity: 0.75;
}

footer #footerConsentButton {
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 520px) {
  .consent-item {
    padding: 12px;
  }

  .consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-actions .text-button,
  .consent-actions .primary-button {
    width: 100%;
    text-align: center;
  }

  .outcome-bar {
    bottom: 10px;
  }

  .turn-feedback span,
  .feedback-row span {
    width: 100%;
  }

  .turn-feedback button,
  .feedback-row button {
    flex: 1 1 auto;
  }
}

/* ========== 星語嚮導 mascot 全站擺位 ========== */
.mascot {
  display: block;
  user-select: none;
  pointer-events: none;
}

.mascot-hero {
  position: absolute;
  z-index: 3;
  top: 4%;
  left: 50%;
  width: min(168px, 38%);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 28px rgba(4, 14, 18, 0.35));
  animation: mascot-float 4.6s ease-in-out infinite;
}

.mini-avatar-mascot {
  padding: 0;
  overflow: hidden;
  background: #f4efe4 !important;
}

.mini-avatar-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.section-heading-with-mascot {
  align-items: center;
}

.section-heading-side {
  max-width: 390px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.section-heading-side p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
  text-align: right;
}

.mascot-section {
  width: 140px;
  height: auto;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.55);
  box-shadow: 0 16px 40px rgba(24, 41, 45, 0.1);
}

.mascot-prone {
  width: 132px;
}

.accuracy-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.mascot-lie {
  width: min(180px, 52%);
  justify-self: end;
  margin-bottom: 4px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.08);
  box-shadow: 0 16px 40px rgba(4, 14, 18, 0.22);
}

.mascot-strip {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto 88px;
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 154, 74, 0.1), transparent 18rem),
    rgba(255, 253, 248, 0.42);
  text-align: center;
}

.mascot-strip-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  flex-wrap: wrap;
}

.mascot-strip-item {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 10px 24px rgba(24, 41, 45, 0.08);
}

.mascot-strip-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(182, 95, 61, 0.35);
  box-shadow:
    0 0 0 4px rgba(196, 154, 74, 0.14),
    0 14px 30px rgba(24, 41, 45, 0.12);
  transform: translateY(-6px);
}

.mascot-strip p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-hero {
    animation: none;
  }
}

/* ===== 五步驟引導式前置流程 ===== */

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

.setup-resume-notice {
  width: min(900px, calc(100% - 64px));
  margin: 34px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(196, 154, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(222, 188, 111, 0.32), transparent 13rem),
    rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 36px rgba(24, 41, 45, 0.1);
}

.setup-resume-notice[hidden] {
  display: none;
}

.setup-resume-notice span,
.setup-resume-notice b,
.setup-resume-notice p {
  display: block;
}

.setup-resume-notice span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.setup-resume-notice b {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 21px;
}

.setup-resume-notice p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.setup-resume-notice > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.setup-progress {
  margin: -4px 0 30px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.setup-progress button {
  min-width: 0;
  padding: 9px 8px;
  border: 0;
  border-top: 1px solid rgba(255, 253, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 253, 248, 0.52);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.setup-progress button:disabled {
  cursor: default;
}

.setup-progress button.is-complete,
.setup-progress button.is-active {
  border-color: var(--persona-accent, #d7ba76);
  color: rgba(255, 253, 248, 0.9);
}

.setup-progress button.is-active b {
  color: var(--ink);
  background: var(--persona-accent, #d7ba76);
}

.setup-progress button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--persona-accent, #d7ba76) 62%, transparent);
  outline-offset: 3px;
}

.setup-step-shell {
  min-height: 470px;
}

.setup-step {
  animation: setup-step-in 260ms ease both;
}

.setup-step[hidden] {
  display: none;
}

@keyframes setup-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.setup-step-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.setup-step-heading .eyebrow {
  margin-bottom: 12px;
}

.setup-step-heading h3,
.topic-picker-heading h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.2;
}

.setup-step-heading > p:last-child,
.topic-picker-heading > div > p:last-child {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.62);
  font-size: 16px;
  line-height: 1.7;
}

.setup-alias-field {
  max-width: 620px;
}

.mode-fieldset {
  margin: 0;
}

.mode-fieldset label {
  min-height: 118px;
  padding: 18px;
  align-items: flex-start;
}

.mode-fieldset label span {
  padding-top: 1px;
}

.mode-fieldset b {
  font-size: 17px;
}

.mode-fieldset small {
  font-size: 14px;
  line-height: 1.55;
}

.topic-picker {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.topic-picker-heading {
  margin-bottom: 22px;
}

.topic-picker-heading .eyebrow {
  margin: 0 0 12px;
}

.topic-picker-title {
  font-family: var(--serif);
  font-weight: 500;
}

.topic-search-wrap {
  padding: 16px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  background: rgba(255, 253, 248, 0.045);
}

.topic-search-wrap label {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 15px;
  font-weight: 700;
}

.topic-search-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  color: var(--white);
  background: rgba(6, 17, 20, 0.36);
  font: inherit;
  font-size: 16px;
}

.topic-search-wrap input:focus {
  border-color: var(--persona-accent, #d7ba76);
  outline: none;
}

.topic-search-wrap input::placeholder {
  color: rgba(255, 253, 248, 0.36);
}

.topic-category-filters {
  margin: 14px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-category-filters button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.75);
  background: rgba(255, 253, 248, 0.035);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.topic-category-filters button[aria-pressed="true"],
.topic-category-filters button:hover,
.topic-category-filters button:focus-visible {
  border-color: var(--persona-accent, #d7ba76);
  color: var(--white);
  background: color-mix(in srgb, var(--persona-accent, #d7ba76) 22%, transparent);
  outline: none;
}

.topic-search-status {
  margin: 0;
  padding: 12px 16px 0;
  color: rgba(255, 253, 248, 0.56);
  font-size: 14px;
}

.topic-empty-state {
  margin: 0;
  padding: 24px 4px 10px;
  color: rgba(255, 253, 248, 0.64);
  font-size: 15px;
}

.detail-writing-guides {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
}

.detail-writing-guides span {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  color: rgba(255, 253, 248, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.detail-writing-guides span + span {
  border-left: 1px solid rgba(255, 253, 248, 0.16);
}

.detail-writing-guides b {
  margin-bottom: 3px;
  color: var(--persona-accent, #d7ba76);
  font-size: 15px;
}

.setup-review {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--persona-accent, #d7ba76) 50%, rgba(255, 253, 248, 0.14));
  background: rgba(255, 253, 248, 0.055);
}

.setup-review header small,
.setup-review header b {
  display: block;
}

.setup-review header small {
  color: var(--persona-accent, #d7ba76);
  font-size: 13px;
  letter-spacing: 0.07em;
}

.setup-review header b {
  margin-top: 5px;
  color: var(--white);
  font-size: 18px;
}

.setup-review dl {
  margin: 18px 0 0;
  display: grid;
  gap: 0;
}

.setup-review dl > div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.setup-review dt {
  color: rgba(255, 253, 248, 0.52);
  font-size: 14px;
}

.setup-review dd {
  margin: 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.setup-review button {
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  color: var(--persona-accent, #d7ba76);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.setup-age-check {
  margin: 20px 0 0;
}

.setup-action-dock {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--persona-accent, #d7ba76) 64%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  bottom: 12px;
  z-index: 8;
  background: rgba(24, 41, 45, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.setup-action-dock > p {
  margin: 0;
}

.setup-action-dock > p b,
.setup-action-dock > p span {
  display: block;
}

.setup-action-dock > p b {
  color: var(--white);
  font-size: 16px;
}

.setup-action-dock > p span {
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 14px;
  line-height: 1.5;
}

.setup-action-buttons {
  min-width: min(100%, 390px);
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(190px, 1.4fr);
  gap: 10px;
}

.setup-action-buttons button {
  min-height: 52px;
  white-space: normal;
}

.setup-action-buttons .secondary-ink-button:disabled {
  cursor: default;
  opacity: 0.42;
}

@media (max-width: 920px) {
  .setup-step-shell {
    min-height: 0;
  }

  .setup-action-dock {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-action-buttons {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .setup-resume-notice {
    width: calc(100% - 40px);
    align-items: stretch;
    flex-direction: column;
  }

  .setup-resume-notice > div:last-child {
    width: 100%;
  }

  .setup-resume-notice button {
    flex: 1 1 0;
    min-height: 48px;
  }

  .setup-progress {
    margin-bottom: 24px;
  }

  .setup-progress button {
    min-height: 42px;
    padding-inline: 2px;
    font-size: 12px;
  }

  .setup-progress b {
    width: 21px;
    height: 21px;
    margin-right: 3px;
  }

  .setup-step-heading h3,
  .topic-picker-heading h3 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .setup-step-heading > p:last-child,
  .topic-picker-heading > div > p:last-child {
    font-size: 15px;
  }

  .mode-fieldset {
    grid-template-columns: 1fr;
  }

  .mode-fieldset label {
    min-height: 76px;
    padding: 15px;
  }

  .topic-search-wrap {
    padding: 14px;
  }

  .topic-category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .topic-category-filters button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .detail-writing-guides {
    grid-template-columns: 1fr;
  }

  .detail-writing-guides span {
    min-height: 0;
    padding: 13px 2px;
  }

  .detail-writing-guides span + span {
    border-top: 1px solid rgba(255, 253, 248, 0.16);
    border-left: 0;
  }

  .setup-review {
    padding: 16px;
  }

  .setup-review dl > div {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .setup-review dt {
    grid-column: 1;
  }

  .setup-review dd {
    grid-column: 1 / -1;
  }

  .setup-review button {
    grid-column: 2;
    grid-row: 1;
  }

  .setup-action-dock {
    bottom: 0;
    margin-inline: -4px;
    padding: 14px 12px max(14px, env(safe-area-inset-bottom));
  }

  .setup-action-buttons {
    grid-template-columns: 1fr;
  }

  .setup-action-buttons .secondary-ink-button:disabled {
    display: none;
  }
}

@media (max-width: 380px) {
  .setup-progress button span {
    display: none;
  }

  .setup-progress button {
    min-height: 34px;
  }

  .setup-progress b {
    margin-right: 0;
  }
}

@media (max-width: 980px) {
  .section-heading-with-mascot {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading-side {
    justify-items: start;
    max-width: none;
  }

  .section-heading-side p {
    text-align: left;
  }

  .mascot-section {
    width: 112px;
  }

  .mascot-lie {
    justify-self: start;
    width: 140px;
  }
}

@media (max-width: 720px) {
  .mascot-hero {
    width: 112px;
    top: 2%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .mascot-strip {
    width: calc(100% - 28px);
    margin-bottom: 56px;
    padding: 20px 14px 24px;
  }

  .mascot-strip-item {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .mascot-strip-logo {
    width: 72px;
    height: 72px;
  }
}

/* 送出前溝通檢查 */
.emotion-coach-dialog {
  width: min(980px, calc(100% - 32px));
  max-width: 980px;
  max-height: min(92dvh, 920px);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--copper) 48%, var(--line));
  color: var(--ink);
  background: #fbf7ef;
  box-shadow: 0 28px 90px rgba(9, 29, 31, 0.32);
  overflow: auto;
}

.emotion-coach-dialog::backdrop {
  background: rgba(8, 27, 29, 0.74);
  backdrop-filter: blur(8px);
}

.emotion-coach-shell {
  padding: clamp(24px, 4vw, 46px);
}

.emotion-coach-heading {
  max-width: 760px;
}

.emotion-coach-heading h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
}

.emotion-coach-heading > p:last-child,
.emotion-risk-summary li,
.partner-lens-card p,
.rewrite-options p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
}

.emotion-risk-summary {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--copper);
  background: rgba(179, 88, 55, 0.08);
}

.emotion-risk-summary b {
  font-size: 17px;
}

.emotion-risk-summary ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.emotion-choice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.emotion-choice-columns fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
}

.emotion-choice-columns legend {
  padding: 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.emotion-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.emotion-chip-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.emotion-chip-grid span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  background: var(--white);
}

.emotion-chip-grid input:checked + span {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.emotion-chip-grid input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--copper) 46%, transparent);
  outline-offset: 2px;
}

.partner-lens-card {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--white);
  background: var(--ink);
}

.partner-lens-card small,
.partner-lens-card strong {
  color: #ead5a6;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.partner-lens-card h3 {
  margin: 6px 0 14px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
}

.partner-lens-card p {
  margin: 8px 0 18px;
  color: rgba(255, 253, 248, 0.88);
}

.partner-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.partner-evidence span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.rewrite-section {
  margin-top: 30px;
}

.rewrite-section header h3 {
  margin: 6px 0 18px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
}

.rewrite-options {
  display: grid;
  gap: 12px;
}

.rewrite-options button {
  width: 100%;
  min-height: 120px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
}

.rewrite-options button:hover,
.rewrite-options button:focus-visible {
  border-color: var(--copper);
  background: var(--white);
  transform: translateY(-1px);
}

.rewrite-options button > span {
  grid-row: 1 / span 3;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 18px;
}

.rewrite-options b {
  font-size: 18px;
}

.rewrite-options p,
.rewrite-options small {
  margin: 4px 0 0;
}

.rewrite-options small {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.emotion-coach-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.emotion-coach-actions button {
  min-height: 50px;
  padding: 12px 18px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .emotion-coach-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .emotion-coach-shell {
    padding: 22px 16px 28px;
  }

  .emotion-choice-columns {
    grid-template-columns: 1fr;
  }

  .emotion-choice-columns fieldset {
    padding: 16px;
  }

  .emotion-chip-grid span {
    min-height: 48px;
    font-size: 16px;
  }

  .rewrite-options button {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 17px 14px;
  }

  .emotion-coach-actions {
    flex-direction: column-reverse;
    position: sticky;
    bottom: -1px;
    z-index: 2;
    padding: 14px 0 calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(251, 247, 239, 0.9), #fbf7ef 22%);
  }

  .emotion-coach-actions button {
    width: 100%;
    min-height: 52px;
    white-space: normal;
  }
}
