:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #132238;
  --muted: #667085;
  --line: #d9e1ea;
  --line-strong: #b8c4d2;
  --blue: #2457d6;
  --blue-soft: #eaf1ff;
  --green: #14785f;
  --green-soft: #e8f5ef;
  --amber: #9a6200;
  --amber-soft: #fff5dc;
  --red: #b42318;
  --shadow: 0 14px 32px rgba(23, 36, 55, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--blue);
  background: var(--blue-soft);
}

.app {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  width: 172px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.nav-link {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
  border-color: #c7d6ff;
  background: var(--blue-soft);
}

.site-main {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

html.is-link-bound-session .site-nav,
body.is-link-bound-session .site-nav,
body:has(.code-gate.is-link-bound) .site-nav,
html.is-link-bound-session .demo-codes,
body.is-link-bound-session .demo-codes,
body:has(.code-gate.is-link-bound) .demo-codes,
html.is-link-bound-session [data-view-panel="submit"] .section-head,
body.is-link-bound-session [data-view-panel="submit"] .section-head,
body:has(.code-gate.is-link-bound) [data-view-panel="submit"] .section-head,
html.is-service-bound [data-view-panel="submit"] .section-head,
body.is-service-bound [data-view-panel="submit"] .section-head,
body:has(.intake-workspace.is-service-bound) [data-view-panel="submit"] .section-head {
  display: none;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  min-height: 440px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(36, 87, 214, 0.12), rgba(20, 120, 95, 0.07)),
    #ffffff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.hero-copy h1,
.section-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.hero-copy p,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.flow-preview {
  display: grid;
  gap: 12px;
  align-content: center;
}

.flow-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.flow-step span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.flow-step strong {
  align-self: end;
  font-size: 18px;
}

.flow-step p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-step.is-done span {
  color: var(--green);
  background: var(--green-soft);
}

.flow-step.is-current {
  border-color: #9bb5ff;
}

.content-band,
.workflow-band,
.page-shell {
  margin-top: 24px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 18px;
}

.marketing-products,
.workflow-band,
.purchase-layout {
  display: grid;
  gap: 16px;
}

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

.marketing-product,
.workflow-band article,
.purchase-card,
.code-gate,
.report-preview,
.sticky-card,
.review-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.marketing-product {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-kicker {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.marketing-product h3,
.workflow-band h3,
.purchase-card h2,
.report-preview h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
}

.marketing-product p,
.workflow-band p,
.report-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.marketing-product dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.marketing-product div {
  display: grid;
  gap: 4px;
}

.marketing-product dt {
  color: var(--muted);
  font-size: 12px;
}

.marketing-product dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

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

.workflow-band article {
  padding: 18px;
}

.purchase-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  align-items: start;
}

.workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workbench-metrics div,
.workbench-panel,
.ops-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.workbench-metrics div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.workbench-metrics span,
.case-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workbench-metrics strong {
  font-size: 30px;
  line-height: 1;
}

.workbench-panel {
  padding: 18px;
}

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

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.panel-heading a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.operator-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.operator-token-field {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.operator-token-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operator-token-field input {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.case-queue {
  display: grid;
  gap: 10px;
}

.case-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, 0.8fr) minmax(90px, 0.55fr) minmax(220px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-row div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.case-row strong {
  overflow-wrap: anywhere;
}

.case-row mark {
  justify-self: end;
  min-width: 82px;
  padding: 7px 9px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.case-row mark.wait {
  color: var(--muted);
  background: var(--panel-soft);
}

.case-row mark.current {
  color: var(--blue);
  background: var(--blue-soft);
}

.case-row mark.risk {
  color: var(--amber);
  background: var(--amber-soft);
}

.case-row mark.done {
  color: var(--green);
  background: var(--green-soft);
}

.workbench-item {
  grid-template-columns: minmax(160px, 1.1fr) minmax(130px, 0.75fr) minmax(110px, 0.65fr) minmax(220px, 1.4fr) minmax(210px, 0.95fr);
}

.workbench-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workbench-actions .secondary-action {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.queue-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.empty-queue {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
}

.empty-queue strong {
  color: var(--ink);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ops-grid article {
  padding: 18px;
}

.ops-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ops-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.purchase-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

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

.purchase-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.purchase-option span {
  color: var(--muted);
}

.purchase-option.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus,
select:focus,
.upload-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.1);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.primary-action:hover {
  background: #1d49b6;
}

.secondary-action:hover {
  border-color: #aebbd0;
  background: var(--panel-soft);
}

.secondary-action.danger {
  border-color: #f0b6b6;
  color: var(--red);
}

.secondary-action.danger:hover {
  background: #fff1f1;
}

.order-output {
  min-height: 20px;
}

.order-result {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #b7dccd;
  border-radius: 8px;
  background: var(--green-soft);
}

.order-result span,
.order-result p {
  color: var(--green);
}

.order-result strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.code-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  padding: 18px;
}

.code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.form-error {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.55;
}

.demo-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.demo-codes span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.demo-codes button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d7c187;
  border-radius: 8px;
  color: var(--amber);
  background: var(--amber-soft);
  font-weight: 800;
}

.code-gate.is-verified {
  grid-template-columns: 1fr;
}

.code-gate.is-verified .code-form,
.code-gate.is-verified .demo-codes {
  display: none;
}

.verified-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #b7dccd;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.verified-card span {
  color: var(--green);
}

.intake-workspace {
  margin-top: 18px;
}

.intake-layout {
  min-height: 720px;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr) 264px;
  gap: 16px;
  align-items: start;
}

.intake-workspace.is-service-bound .intake-layout {
  grid-template-columns: minmax(0, 1fr) 264px;
}

.intake-workspace.is-service-bound .version-panel {
  display: none;
}

.version-panel,
.main-panel {
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.version-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 14px;
}

.panel-title strong {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.product-card:hover,
.product-card.is-active {
  border-color: #89a7ff;
  background: var(--blue-soft);
}

.product-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.product-subtitle {
  display: block;
  margin-top: 6px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.product-tags span,
.question-title span,
.optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.notice {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.main-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.product-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.25fr);
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.summary-main h1 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.12;
}

.summary-main p {
  margin: 0;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.6fr 1.3fr;
  gap: 10px;
}

.summary-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.step-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.step-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.step-tab strong {
  color: var(--blue);
}

.step-tab.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.step-tab.is-active strong {
  color: #fff;
}

.mobile-step-status {
  display: none;
}

.step-content {
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 24px;
}

.step-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.step-actions > span {
  min-height: 1px;
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.step-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.step-head p {
  margin: 0;
  color: var(--muted);
}

.step-head > span {
  min-width: 54px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 800;
}

.step-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.guide-copy h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.guide-copy p,
.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.guide-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-card strong {
  font-size: 14px;
  align-self: end;
}

.guide-card p {
  grid-column: 2;
}

.guide-figure {
  grid-row: 1 / span 2;
  position: relative;
  width: 42px;
  min-height: 58px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #eef6f1 100%);
}

.guide-figure span {
  position: absolute;
  left: 17px;
  top: 10px;
  width: 8px;
  height: 26px;
  border-radius: 8px;
  background: var(--green);
}

.guide-figure span::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
}

.guide-figure i {
  position: absolute;
  right: 5px;
  bottom: 8px;
  width: 10px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: #fff;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list.is-basic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-list.is-basic-grid .question-card.is-wide {
  grid-column: 1 / -1;
}

.question-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.question-card.is-compact {
  gap: 8px;
  padding: 12px 14px;
}

.question-card.is-complete {
  border-color: #83d3ad;
  background: #fbfffd;
}

.question-card.is-upload {
  gap: 12px;
}

.question-headline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.question-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.question-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.question-title h3 {
  margin: 0;
  font-size: 18px;
}

.optional-badge {
  color: var(--green);
  background: var(--green-soft);
}

.example-trigger {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #b7dccd;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.example-trigger.is-action {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-color: #a4c8ff;
  color: var(--blue);
  background: #edf5ff;
  font-size: 14px;
}

.example-trigger:hover {
  border-color: #7ac6a8;
  background: #dff2e9;
}

.upload-tools {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d6e5f6;
  border-radius: 8px;
  background: #f7fbff;
}

.upload-tools span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.question-card > p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.question-card.is-compact > p {
  margin-bottom: 0;
}

.field-control.is-compact-textarea {
  min-height: 78px;
}

.consent-control {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.consent-control input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
}

.consent-control span {
  color: var(--muted);
  font-weight: 700;
}

.shooting-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.shooting-block {
  display: grid;
  align-content: start;
  gap: 6px;
}

.shooting-block strong {
  color: var(--ink);
  font-size: 13px;
}

.shooting-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.shooting-block li + li {
  margin-top: 2px;
}

.shooting-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.upload-box {
  display: grid;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 14px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dialog-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.example-dialog {
  width: min(920px, calc(100vw - 32px));
}

.example-body {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
}

.example-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid #dedbd5;
  border-radius: 8px;
  background: #f2f1ee;
}

.example-svg {
  width: min(100%, 520px);
  height: auto;
}

.example-image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  align-items: center;
}

.example-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.svg-frame {
  fill: #ffffff;
  stroke: #bdd0e3;
  stroke-width: 2;
  stroke-dasharray: 9 7;
}

.svg-crop {
  fill: none;
  stroke: #2457d6;
  stroke-width: 4;
  stroke-linecap: round;
}

.svg-phone {
  fill: #f8fbff;
  stroke: #2457d6;
  stroke-width: 3;
}

.svg-tripod,
.svg-ground,
.svg-measure {
  fill: none;
  stroke: #8fa2b7;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-shadow {
  fill: rgba(88, 111, 140, 0.18);
}

.svg-skin,
.svg-ankle,
.svg-foot {
  fill: #f2c7aa;
}

.svg-hair {
  fill: #132238;
}

.svg-shirt {
  fill: #14785f;
  stroke: #0f5e4b;
  stroke-width: 2;
}

.svg-shirt.is-back {
  fill: #126c58;
}

.svg-shorts {
  fill: #2457d6;
  stroke: #143b98;
  stroke-width: 2;
}

.svg-arm,
.svg-leg {
  fill: none;
  stroke: #f2c7aa;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-leg {
  stroke-width: 16;
}

.svg-back-line,
.svg-focus,
.svg-line,
.svg-small,
.svg-toe-crease,
.svg-sole-line {
  fill: none;
  stroke: #132238;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-back-line,
.svg-toe-crease,
.svg-sole-line {
  stroke-width: 4;
  opacity: 0.55;
}

.svg-small {
  stroke-width: 5;
}

.svg-focus {
  stroke: #2457d6;
  stroke-width: 6;
}

.svg-foot-real,
.svg-foot-shape,
.svg-shoe,
.svg-shoe-real {
  fill: #f2c7aa;
  stroke: #c78967;
  stroke-width: 3;
}

.svg-shoe,
.svg-shoe-real {
  fill: #edf2f7;
  stroke: #8090a6;
}

.svg-focus-fill {
  fill: rgba(36, 87, 214, 0.18);
  stroke: #2457d6;
  stroke-width: 2;
}

.svg-text {
  fill: #667085;
  font-size: 14px;
  font-weight: 800;
}

.example-body-svg,
.example-foot-svg {
  width: min(100%, 360px);
  max-height: 560px;
}

.guide-paper {
  fill: #f2f1ee;
}

.guide-dash {
  fill: none;
  stroke: #c9764d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.86;
}

.guide-ground {
  fill: none;
  stroke: #b4b6b5;
  stroke-width: 2;
  stroke-linecap: round;
}

.guide-head,
.guide-foot-fill {
  fill: #f6f5f1;
  stroke: #9ba0a4;
  stroke-width: 2.4;
}

.guide-hair {
  fill: #eeece7;
  stroke: #8e9499;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.guide-face,
.guide-outline,
.guide-back-line,
.guide-foot-line,
.guide-foot-detail,
.guide-shoe-detail {
  fill: none;
  stroke: #969ca1;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-limb {
  fill: none;
  stroke: #a4a9ad;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-leg {
  fill: none;
  stroke: #9ba0a4;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-swimsuit {
  fill: #e4773e;
  stroke: #c96337;
  stroke-width: 2;
  stroke-linejoin: round;
}

.guide-swimsuit-detail {
  fill: none;
  stroke: #bf5d34;
  stroke-width: 2;
  stroke-linecap: round;
}

.guide-shoe-fill {
  fill: #e7e3dc;
  stroke: #969ca1;
  stroke-width: 2.6;
}

.guide-focus-fill {
  fill: rgba(228, 119, 62, 0.22);
  stroke: #d16d3d;
  stroke-width: 2;
}

.guide-focus-stroke {
  fill: none;
  stroke: #d16d3d;
  stroke-width: 3;
  stroke-linecap: round;
}

.guide-accent-dot {
  fill: #e4773e;
  stroke: #c96337;
  stroke-width: 1.5;
}

.example-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.example-copy h3 {
  margin: 0;
  font-size: 18px;
}

.example-copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.check-panel {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.progress-head span {
  color: var(--muted);
  font-size: 13px;
}

.progress-head strong {
  font-size: 20px;
}

.progress-track {
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-soft);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.2s ease;
}

.progress-groups {
  display: grid;
  gap: 8px;
  margin: 6px 0;
}

.progress-groups div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.progress-groups strong {
  color: var(--ink);
}

.status-mini {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 13px;
  line-height: 1.45;
}

.fulfillment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.fulfillment-summary div,
.timeline-item,
.report-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.fulfillment-summary div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.fulfillment-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fulfillment-summary strong {
  overflow-wrap: anywhere;
}

.fulfillment-timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.timeline-item > span {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: #c5ceda;
}

.timeline-item.done > span {
  background: var(--green);
}

.timeline-item.current > span {
  background: var(--blue);
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-preview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
}

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

.report-actions a {
  text-decoration: none;
}

.report-preview-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-preview-meta div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.report-preview-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-preview-meta strong {
  overflow-wrap: anywhere;
}

.review-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 18px;
}

.review-dialog::backdrop {
  background: rgba(16, 35, 63, 0.32);
}

body:has(.review-dialog[open]) .sticky-card {
  display: none;
}

.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.review-content {
  max-height: 560px;
  overflow: auto;
  margin: 18px 0;
}

.review-version {
  margin: 0 0 14px;
  color: var(--muted);
}

.review-content section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.review-content h3 {
  margin: 0 0 8px;
}

.review-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.operator-dialog {
  width: min(860px, calc(100vw - 32px));
}

.operator-dialog form {
  display: grid;
  gap: 16px;
}

.operator-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.operator-fields .field-full {
  grid-column: 1 / -1;
}

.operator-fields textarea {
  min-height: 112px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #b7dccd;
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fatal-error {
  margin: 24px;
  white-space: pre-wrap;
  color: var(--red);
}

@media (max-width: 1080px) {
  .home-hero,
  .purchase-layout,
  .code-gate,
  .intake-layout,
  .case-row {
    grid-template-columns: 1fr;
  }

  .intake-workspace.is-service-bound .intake-layout {
    grid-template-columns: 1fr;
  }

  .marketing-products,
  .workflow-band,
  .fulfillment-summary,
  .workbench-metrics,
  .report-preview-meta,
  .ops-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-card {
    position: static;
  }

  .version-panel {
    order: 1;
  }

  .main-panel {
    order: 2;
  }

  .check-panel {
    order: 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }

  body.is-link-bound-session .site-header {
    align-items: center;
    flex-direction: row;
    min-height: 58px;
  }

  .brand {
    width: 150px;
    height: 40px;
  }

  body.is-link-bound-session .brand {
    width: 136px;
    height: 34px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .site-main {
    width: 100%;
    padding: 10px 10px 36px;
  }

  body.is-link-bound-session .site-main {
    padding-top: 8px;
  }

  .code-gate.is-verified {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-hero {
    min-height: unset;
    padding: 22px;
  }

  .hero-copy h1,
  .section-head h1 {
    font-size: 28px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .hero-copy p,
  .section-head p {
    font-size: 15px;
  }

  .hero-actions,
  .report-actions {
    display: grid;
  }

  .marketing-products,
  .workflow-band,
  .fulfillment-summary,
  .workbench-metrics,
  .ops-grid,
  .report-preview-meta,
  .operator-fields,
  .example-body,
  .code-form,
  .product-summary,
  .summary-grid,
  .step-guide,
  .guide-cards {
    grid-template-columns: 1fr;
  }

  .flow-step,
  .question-card,
  .question-list.is-basic-grid,
  .shooting-guide,
  .upload-tools {
    grid-template-columns: 1fr;
  }

  .question-number {
    width: 38px;
    height: 38px;
  }

  .step-tabs {
    display: grid;
    position: static;
    z-index: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .step-tab {
    display: none;
    justify-content: space-between;
    width: 100%;
  }

  .step-tab.is-active {
    display: inline-flex;
  }

  .mobile-step-status {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #c9d7ea;
    border-radius: 8px;
    color: var(--muted);
    background: #f7faff;
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-step-status strong {
    color: var(--ink);
    font-size: 14px;
  }

  .step-tab {
    min-height: 42px;
    padding: 8px 12px;
  }

  .product-summary {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .summary-main h1 {
    font-size: 24px;
  }

  .summary-grid {
    display: none;
  }

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

  .step-actions > span {
    display: none;
  }

  .product-summary,
  .step-tabs,
  .step-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .step-head {
    flex-direction: column;
  }

  .question-card {
    gap: 12px;
    padding: 14px;
  }

  .question-headline {
    align-items: flex-start;
    gap: 10px;
  }

  .question-title {
    flex: 1 1 auto;
  }

  .question-title h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .upload-tools {
    gap: 7px;
    padding: 9px;
  }

  .upload-tools span {
    font-size: 12px;
  }

  .upload-box {
    min-height: 86px;
  }

  .verified-card,
  .purchase-option,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-row mark {
    justify-self: start;
  }

  .intake-workspace.is-service-bound {
    padding-bottom: 92px;
  }

  .check-panel {
    order: 3;
  }

  .sticky-card {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 32;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.42fr);
    align-items: center;
    gap: 6px 10px;
    padding: 9px 10px;
    border-color: #c8d6e4;
  }

  .sticky-card .progress-head {
    grid-column: 1;
    margin: 0;
  }

  .sticky-card .progress-head strong {
    font-size: 17px;
  }

  .sticky-card .progress-track {
    grid-column: 1 / -1;
    display: none;
  }

  .sticky-card .status-mini {
    display: flex;
    grid-column: 1;
    gap: 6px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .sticky-card .status-mini .status-code,
  .sticky-card .status-mini .status-state {
    display: none;
  }

  .sticky-card .status-mini .status-step {
    color: var(--ink);
    flex: 0 0 auto;
    font-weight: 800;
  }

  .sticky-card .status-mini .status-next {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sticky-card #submit-button {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
  }

  .sticky-card .progress-groups,
  .sticky-card .secondary-action {
    display: none;
  }

  .toast {
    right: 10px;
    bottom: 112px;
    max-width: calc(100vw - 20px);
  }

  .example-visual {
    min-height: 220px;
  }

  .example-image-grid {
    gap: 6px;
    padding: 6px;
  }

  .example-image {
    max-height: 420px;
  }

  .review-dialog,
  .example-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }

  .dialog-head {
    align-items: flex-start;
  }

  .example-body {
    gap: 10px;
    margin-top: 12px;
  }

  .example-copy {
    padding: 12px;
  }

  .example-copy h3 {
    font-size: 16px;
  }

  .example-copy ul {
    line-height: 1.55;
  }
}
