:root {
  color-scheme: light dark;
  --navy: #142d49;
  --navy-2: #213f60;
  --accent: #d8bd86;
  --accent-soft: #f1e8d6;
  --paper: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #edf1f5;
  --ink: #17283a;
  --muted: #657383;
  --line: #dce3e9;
  --success: #24583f;
  --danger: #a13d3d;
  --shadow: 0 22px 70px rgb(20 45 73 / 10%);
  --radius: 16px;
  --content: 920px;
  font-family: "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #dbe8f6;
    --navy-2: #c3d6e9;
    --accent: #d8bd86;
    --accent-soft: #342f28;
    --paper: #111820;
    --surface: #18232e;
    --surface-soft: #202e3a;
    --ink: #edf3f8;
    --muted: #aeb9c4;
    --line: #30404f;
    --success: #9fd2b6;
    --danger: #ffb0b0;
    --shadow: 0 22px 70px rgb(0 0 0 / 22%);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 92% 2%, rgb(216 189 134 / 20%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.app-shell {
  min-height: 100dvh;
  padding-bottom: 106px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid rgb(20 45 73 / 9%);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  width: min(calc(100% - 32px), 1160px);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border-radius: 10px;
  background: #142d49;
  color: #f6f8fb;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.top-summary {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.top-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.progress-track {
  height: 3px;
  background: var(--line);
}

.progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 220ms ease;
}

.main {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.screen {
  padding: 48px 0 34px;
}

.screen-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8b6934;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--accent);
  }
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-copy {
  max-width: 730px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.special-project-note {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
}

.special-project-note .section-label {
  margin-bottom: 4px;
  color: var(--ink);
}

.special-project-note p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.special-project-note-end {
  margin: 24px 0 0;
}

.platform-grid,
.choice-grid,
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.platform-card,
.choice-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 12px rgb(20 45 73 / 3%);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover,
.choice-card:hover {
  border-color: color-mix(in srgb, var(--navy) 45%, var(--line));
}

.platform-card.selected,
.choice-card.selected {
  border-color: #142d49;
  background: #142d49;
  color: #f7f9fb;
  box-shadow: 0 18px 42px rgb(20 45 73 / 16%);
}

.platform-card::after,
.choice-card::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 19px;
  width: 17px;
  height: 17px;
  border: 2px solid #9ba8b5;
  border-radius: 50%;
}

.platform-card.selected::after,
.choice-card.selected::after {
  border: 5px solid var(--accent);
}

.card-kicker {
  display: block;
  max-width: calc(100% - 34px);
  margin-bottom: 12px;
  color: #8b6934;
  font-size: 12px;
  font-weight: 800;
}

.selected .card-kicker {
  color: #efd9ad;
}

.card-title {
  display: block;
  max-width: calc(100% - 26px);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.card-copy {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.selected .card-copy {
  color: #ced9e4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: #705729;
  font-size: 11px;
  font-weight: 700;
}

.selected .tag {
  background: rgb(255 255 255 / 10%);
  color: #f4dfb7;
}

.education-panel,
.work-panel,
.locked-panel,
.quote-shell,
.letter-shell,
.success-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.education-panel {
  margin-bottom: 24px;
  padding: 26px;
}

.education-panel strong {
  display: block;
  font-size: 17px;
  line-height: 1.55;
}

.education-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.work-panel {
  margin-top: 22px;
  overflow: hidden;
}

.work-heading {
  padding: 24px 26px;
  background: #142d49;
  color: #f5f8fb;
}

.work-heading p {
  margin: 8px 0 0;
  color: #c9d4df;
  font-size: 13px;
  line-height: 1.7;
}

.eligibility-note {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
}

.eligibility-note strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.eligibility-note p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.work-columns {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0;
}

.work-group {
  padding: 24px 26px;
}

.work-group + .work-group {
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
}

.group-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list.compact {
  grid-template-columns: 1fr;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 13px;
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #94723a;
  font-weight: 900;
}

.sku-grid {
  max-width: 640px;
}

.sku-card {
  min-height: 120px;
}

.sku-number {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
}

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
  font-size: 13px;
  line-height: 1.75;
}

.journey {
  margin-top: 34px;
  padding: 30px 0 4px;
  border-top: 1px solid var(--line);
}

.journey h2 {
  font-size: clamp(21px, 3vw, 27px);
}

.journey-kicker {
  display: block;
  margin-bottom: 9px;
  color: #8b6934;
  font-size: 12px;
  font-weight: 800;
}

.journey > p {
  max-width: 760px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(var(--journey-count, 7), minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
}

.journey-node {
  position: relative;
  min-width: 0;
  padding-right: 13px;
}

.journey-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 5px;
  left: 34px;
  border-top: 1px solid var(--accent);
}

.journey-node > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #b58b47;
  border-radius: 8px;
  background: var(--paper);
  color: #8b6934;
  font-size: 10px;
  font-weight: 800;
}

.journey-node strong {
  display: block;
  margin-top: 10px;
  color: color-mix(in srgb, var(--ink) 85%, var(--muted));
  font-size: 11px;
  line-height: 1.45;
}

.journey-short .journey-track {
  --journey-count: 4;
}

.journey-inline {
  margin-top: 24px;
  padding-top: 23px;
}

.journey-inline h2 {
  font-size: 19px;
}

.journey-inline .journey-track {
  --journey-count: 3;
  max-width: 680px;
  margin-top: 18px;
}

.live-explainer {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.live-explainer > header {
  padding: 24px 25px 20px;
  background: #142d49;
  color: #f7f9fb;
}

.live-explainer > header > span {
  color: #e7cf9e;
  font-size: 11px;
  font-weight: 800;
}

.live-explainer > header h2 {
  margin-top: 7px;
  font-size: 24px;
}

.live-explainer > header p {
  max-width: 700px;
  margin: 8px 0 0;
  color: #cbd6e0;
  font-size: 13px;
  line-height: 1.7;
}

.live-explainer details {
  padding: 0 24px;
}

.live-explainer summary {
  padding: 17px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.live-explainer summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.live-explainer ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-explainer li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 13px;
  line-height: 1.7;
}

.live-explainer details > p {
  margin: 0;
  padding: 15px 0 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.live-explainer.compact {
  margin: 16px 0 0 44px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.live-explainer.compact details {
  padding-inline: 17px;
}

.stage-goals {
  margin-top: 28px;
  padding: 27px 0 3px;
  border-top: 1px solid var(--line);
}

.stage-goal-list {
  display: grid;
  gap: 18px;
  margin-top: 17px;
}

.stage-goal-row {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 12px;
  align-items: start;
}

.stage-goal-index {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #b58b47;
  border-radius: 6px;
  color: #8b6934;
  font-size: 10px;
  font-weight: 800;
}

.stage-goal-row strong {
  display: block;
  font-size: 15px;
}

.stage-goal-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.config-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.config-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.config-section:first-child {
  padding-top: 0;
}

.config-section:last-child {
  border-bottom: 0;
}

.config-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.config-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.locked-panel {
  padding: 22px;
  box-shadow: none;
}

.locked-line {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
}

.locked-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #7a5c2c;
  font-weight: 900;
}

.locked-status {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.commission-hint {
  margin: 14px 0 0 44px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

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

.compact-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-card {
  min-height: 82px;
  padding: 15px;
}

.mini-card .card-title {
  font-size: 14px;
}

.mini-card .card-copy {
  margin-top: 6px;
  font-size: 12px;
}

.quote-shell,
.letter-shell {
  overflow: hidden;
}

.quote-head,
.letter-head {
  padding: 30px;
  background: #142d49;
  color: #f6f8fb;
}

.quote-head h1,
.letter-head h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.quote-head p,
.letter-head p {
  margin: 12px 0 0;
  color: #cad5df;
  line-height: 1.7;
}

.quote-body,
.letter-body {
  padding: 10px 30px 30px;
}

.quote-group {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.quote-group:last-child {
  border-bottom: 0;
}

.quote-group-heading {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 14px;
}

.quote-group-heading span {
  color: #94723a;
  font-size: 12px;
  font-weight: 800;
}

.quote-group-heading h2 {
  font-size: 19px;
}

.price-list {
  display: grid;
  gap: 12px;
  margin-left: 44px;
}

.price-item + .price-item {
  margin-top: 2px;
}

.price-row,
.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.price-row span,
.summary-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.price-row strong,
.summary-row strong {
  white-space: nowrap;
  color: var(--ink);
}

.price-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.service-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
  margin: 10px 0 0;
  padding: 13px 15px 13px 31px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

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

.total-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.total-card.primary {
  background: var(--accent);
  color: #142d49;
}

.total-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.total-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -0.025em;
}

.total-card small {
  display: block;
  margin-top: 7px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 11px;
  line-height: 1.5;
}

.third-party-reminders {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.third-party-heading,
.third-party-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.third-party-heading {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.third-party-heading span,
.third-party-heading strong {
  font-weight: 800;
}

.third-party-item {
  padding: 18px;
}

.third-party-item strong {
  color: var(--ink);
  font-size: 14px;
}

.third-party-item p,
.fulfilment-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.third-party-item em {
  white-space: nowrap;
  color: var(--ink);
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
}

.fulfilment-note {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}

.boundary-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.long-term {
  margin-top: 34px;
  padding: 32px 0 6px;
  border-top: 1px solid var(--accent);
}

.section-label {
  display: block;
  margin-bottom: 9px;
  color: #8b6934;
  font-size: 11px;
  font-weight: 800;
}

.long-term > p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.8;
}

.path-steps {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 18px;
  margin-top: 22px;
}

.path-step {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.path-step.current {
  border-color: var(--accent);
}

.path-step strong,
.path-step span {
  display: block;
}

.path-step em {
  display: block;
  margin-bottom: 9px;
  color: #9a712f;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
}

.path-step span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.partnership-note {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.partnership-note p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.letter-body {
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: 14px;
  line-height: 1.8;
}

.letter-summary {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.letter-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}

.form-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.phone-field {
  grid-column: span 1;
}

.phone-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
}

.region-picker,
.phone-number-wrap {
  min-width: 0;
}

.region-picker {
  position: relative;
}

.region-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.region-trigger span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.region-trigger i {
  flex: none;
  color: var(--muted);
  font-style: normal;
}

.region-trigger:focus-visible,
.region-picker[data-open] .region-trigger {
  border-color: var(--navy);
  outline: 0;
}

.region-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.region-search {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 13px;
}

.region-search:focus {
  border-color: var(--navy);
  outline: 0;
}

.region-list {
  max-height: 232px;
  margin-top: 6px;
  overflow-y: auto;
}

.region-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
}

.region-option em {
  flex: none;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.region-option:hover,
.region-option.is-active {
  background: color-mix(in srgb, var(--navy) 8%, transparent);
}

.region-empty {
  margin: 10px 4px;
  color: var(--muted);
  font-size: 13px;
}


.phone-number-wrap {
  display: flex;
  align-items: center;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.phone-number-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 12%, transparent);
}

.phone-number-wrap > span {
  flex: none;
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-field .phone-number-wrap input {
  min-width: 0;
  height: 50px;
  padding-left: 7px;
  border: 0;
  outline: 0;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
}

.signature-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.signature-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.signature-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.signature-box canvas {
  display: block;
  width: 100%;
  height: 190px;
  border: 1px dashed #97a5b2;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 92%, var(--paper));
  touch-action: none;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 17px 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #142d49;
}

.success-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--accent);
  color: #142d49;
  font-size: 30px;
  font-weight: 900;
}

.device-note {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.submission-summary {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

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

.action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.action-inner {
  width: min(calc(100% - 24px), var(--content));
  min-height: 82px;
  margin: 0 auto;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.quote-actions > button {
  min-width: 220px;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button {
  min-width: 160px;
  border: 1px solid #142d49;
  background: #142d49;
  color: #f7f9fb;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.inline-error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

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

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 64px;
  }

  .topbar {
    min-height: 64px;
  }

  .brand-word {
    display: none;
  }

  .screen {
    padding-top: 34px;
  }

  .platform-grid,
  .choice-grid,
  .work-columns,
  .form-grid,
  .totals,
  .path-steps,
  .inline-actions {
    grid-template-columns: 1fr;
  }

  .journey-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .journey-node {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    align-items: center;
    padding-right: 0;
  }

  .journey-node:not(:last-child)::after {
    top: 29px;
    bottom: -12px;
    left: 14px;
    width: 1px;
    border-top: 0;
    border-left: 1px solid var(--accent);
  }

  .journey-node strong {
    margin-top: 0;
    font-size: 12px;
  }

  .live-explainer ul {
    grid-template-columns: 1fr;
  }

  .service-scope-list {
    grid-template-columns: 1fr;
  }

  .live-explainer.compact {
    margin-left: 0;
  }

  .work-group + .work-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .compact-grid.four,
  .compact-grid.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-head,
  .letter-head {
    padding: 25px 21px;
  }

  .quote-body,
  .letter-body {
    padding: 7px 21px 24px;
  }

  .price-list {
    margin-left: 0;
  }

  .commission-hint {
    margin-left: 0;
  }

  .action-inner button {
    flex: 1;
  }

  .success-panel {
    padding: 26px 20px;
  }
}

@media (max-width: 440px) {
  .main,
  .topbar-inner {
    width: min(calc(100% - 24px), var(--content));
  }

  .compact-grid,
  .compact-grid.two,
  .compact-grid.four,
  .compact-grid.five {
    grid-template-columns: 1fr;
  }

  .config-heading,
  .locked-line,
  .price-row,
  .summary-row,
  .third-party-heading,
  .third-party-item {
    grid-template-columns: 1fr;
  }

  .locked-check {
    display: none;
  }

  .locked-status {
    margin-top: -5px;
  }

  .action-inner {
    flex-direction: column-reverse;
  }

  .action-inner.quote-actions {
    flex-direction: column;
  }
}

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

@media print {
  :root {
    color-scheme: light;
    --paper: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f3f5f7;
    --ink: #17283a;
    --muted: #657383;
    --line: #dce3e9;
  }

  body {
    background: #ffffff;
  }

  .topbar,
  .progress-track,
  .action-bar,
  .inline-actions,
  .long-term,
  .special-project-note,
  .signature-box,
  .consent,
  .form-grid {
    display: none !important;
  }

  .app-shell {
    padding-bottom: 0;
  }

  .screen {
    padding-top: 0;
  }

  .quote-shell,
  .letter-shell,
  .success-panel {
    border: 0;
    box-shadow: none;
  }
}

/* ---------- 合作意向書 ---------- */
.contract-panel {
  margin: 20px 0;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.contract-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contract-panel-head small {
  display: block;
  margin-top: 4px;
  opacity: 0.7;
  line-height: 1.5;
}

.contract-scroll {
  margin-top: 14px;
  max-height: 52vh;
  overflow-y: auto;
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  padding-top: 14px;
  -webkit-overflow-scrolling: touch;
}

.contract-doc h2 {
  max-width: 680px;
  margin: 20px auto 7px;
  font-size: 1.28rem;
  line-height: 1.45;
  text-align: center;
}

.contract-doc {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
}

.contract-doc-head {
  position: relative;
  padding: 4px 0 20px;
  border-bottom: 2px solid var(--navy);
}

.contract-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--navy);
}

.contract-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.contract-brand span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.contract-doc-head p {
  margin: 0;
  opacity: 0.72;
  font-size: 0.78rem;
  text-align: center;
}

.contract-doc-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.72rem;
}

.contract-doc-meta span {
  color: var(--muted);
}

.contract-section-title {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.contract-doc h3 {
  font-size: 0.92rem;
  margin: 22px 0 9px;
}

.contract-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contract-facts .summary-row {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 9px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contract-facts .summary-row span,
.contract-facts .summary-row strong {
  display: block;
}

.contract-facts .summary-row span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

.contract-facts .summary-row strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.45;
}

.contract-fees .summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}

.contract-fees .summary-row span,
.contract-fees .summary-row strong {
  white-space: normal;
}

.contract-fees .summary-row strong {
  text-align: right;
}

.contract-clause {
  break-inside: avoid-page;
}

.contract-doc ul {
  margin: 0;
  padding-left: 18px;
}

.contract-doc li {
  margin-bottom: 6px;
  line-height: 1.65;
  font-size: 0.9rem;
}

.contract-fees .summary-row.total strong,
.contract-fees .summary-row.total span {
  font-weight: 700;
}

.contract-fees .summary-row.extra {
  opacity: 0.85;
}

.contract-sign {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  break-inside: avoid-page;
}

.contract-sign-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.contract-sign-block > span {
  font-weight: 600;
}

.contract-signature {
  width: 220px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.contract-sign-placeholder {
  height: 56px;
  display: flex;
  align-items: center;
  opacity: 0.5;
}

.contract-sign-stamp {
  height: 56px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

@media print {
  @page {
    size: A4;
    margin: 15mm 16mm 17mm;
  }

  body {
    padding: 0 !important;
    color: #111827;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  }

  .contract-doc {
    max-width: none;
    font-size: 9.5pt;
  }

  .contract-doc-head {
    padding-top: 0;
  }

  .contract-doc h2 {
    font-size: 16pt;
  }

  .contract-doc h3 {
    margin-top: 13pt;
    font-size: 10.5pt;
  }

  .contract-doc li {
    margin-bottom: 3pt;
    font-size: 9pt;
    line-height: 1.55;
  }

  .contract-facts .summary-row,
  .contract-fees .summary-row {
    break-inside: avoid;
  }

  .contract-scroll {
    max-height: none;
    overflow: visible;
  }

  .contract-panel {
    border: 0;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .phone-input-group {
    grid-template-columns: 1fr;
  }

  .contract-facts {
    grid-template-columns: 1fr;
  }
}
