:root {
  --linkgo-blue: #1a50c8;
  --linkgo-blue-bright: #2c6af0;
  --linkgo-orange: #f97316;
  --ink: #0f172a;
  --muted: #526178;
  --band: #f4f7ff;
  --white: #ffffff;
  --line: #d7deeb;
  --success: #16805c;
  --danger: #b42318;
  --content-width: 1180px;
  --rail-width: 320px;
  --topbar-height: 72px;
  --touch-target: 44px;
  color-scheme: light;
  font-family: Inter, "Noto Sans", "Noto Sans Thai", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
select,
input,
textarea,
a {
  overflow-wrap: anywhere;
}

button,
select,
input {
  min-height: var(--touch-target);
}

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

button {
  border: 0;
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 2.25rem;
  line-height: 1.16;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: var(--touch-target);
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid var(--linkgo-orange);
  outline-offset: 3px;
}

.topbar {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px max(20px, calc((100% - var(--content-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: var(--touch-target);
  color: var(--linkgo-blue);
}

.brand strong {
  font-size: 1.55rem;
  font-weight: 800;
}

.brand span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: auto;
}

.story-nav a,
.text-action {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  color: #344258;
  font-size: 0.875rem;
  font-weight: 650;
}

.story-nav a:hover,
.text-action:hover {
  color: var(--linkgo-blue);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-control select {
  width: 106px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(78px, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.mode-button {
  min-width: 0;
  padding: 7px 10px;
  background: var(--white);
  color: #3d4b61;
  font-size: 0.8125rem;
  font-weight: 700;
}

.mode-button + .mode-button {
  border-left: 1px solid var(--line);
}

.mode-button.is-active {
  background: var(--linkgo-blue);
  color: var(--white);
}

.primary-action,
.light-action,
.orange-action,
.icon-action {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 750;
}

.primary-action {
  background: var(--linkgo-blue);
  color: var(--white);
}

.primary-action:hover {
  background: #123fa7;
}

.light-action {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.orange-action {
  background: var(--linkgo-orange);
  color: var(--white);
}

.icon-action {
  padding-inline: 10px;
  background: transparent;
  color: var(--muted);
}

.logout-form {
  margin: 0;
}

.mobile-actions {
  display: none;
}

.sales-only {
  display: none;
}

.sales-mode .sales-only {
  display: flex;
}

.sales-mode .narrative {
  margin-right: var(--rail-width);
}

.sales-rail {
  position: fixed;
  z-index: 30;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  width: var(--rail-width);
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
  background: var(--white);
  overflow-y: auto;
}

.rail-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.rail-heading span,
.rail-label,
.rail-progress label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.rail-heading strong {
  color: var(--linkgo-blue);
  font-size: 1.125rem;
}

.rail-block p {
  margin-bottom: 0;
  color: #344258;
  font-size: 0.875rem;
  line-height: 1.55;
}

.rail-block ul {
  margin: 8px 0 0;
  padding-left: 19px;
  color: #344258;
  font-size: 0.875rem;
}

.rail-progress {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.rail-progress progress {
  width: 100%;
  height: 7px;
  border: 0;
  background: var(--band);
}

.rail-progress progress::-webkit-progress-bar {
  background: var(--band);
}

.rail-progress progress::-webkit-progress-value {
  background: var(--linkgo-orange);
}

.rail-progress progress::-moz-progress-bar {
  background: var(--linkgo-orange);
}

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

.rail-controls button {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.rail-controls button:disabled {
  color: #8a96a8;
  cursor: not-allowed;
}

.narrative {
  padding-top: var(--topbar-height);
  transition: margin-right 180ms ease;
}

.band {
  width: 100%;
  padding: 88px 24px;
  background: var(--white);
}

.band-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.narrow-inner {
  width: min(100%, 980px);
}

.light-band {
  background: var(--band);
}

.dark-band {
  background: var(--ink);
  color: var(--white);
}

.technical-band {
  border-block: 1px solid var(--line);
  background: #eef4ff;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--linkgo-blue);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dark-band .eyebrow,
.hero-band .eyebrow,
.configure-band .eyebrow {
  color: #ffad72;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.dark-band .section-intro,
.hero-band .section-intro,
.configure-band .section-intro {
  color: #dce7ff;
}

.section-heading {
  margin-bottom: 48px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 56px;
}

.hero-band {
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  padding-block: 64px;
  background: var(--linkgo-blue);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 54px;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 18px;
  color: #edf3ff;
  font-size: 0.875rem;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--linkgo-orange);
}

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

.hero-actions .primary-action {
  background: var(--linkgo-orange);
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--white);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 750;
}

.media-fallback {
  display: none;
  max-width: 460px;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.media-frame.is-unavailable > :not([data-media-fallback]):not(figcaption) {
  display: none;
}

.media-frame.is-unavailable [data-media-fallback] {
  display: block;
}

.video-stage.is-unavailable > :not([data-media-fallback]) {
  display: none;
}

.video-stage.is-unavailable [data-media-fallback] {
  display: block;
  align-self: center;
  justify-self: center;
}

.pain-list {
  margin: 48px 0 0;
  padding: 0;
  counter-reset: pain;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pain-list li {
  display: grid;
  grid-template-columns: 50px minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: pain;
}

.pain-list li::before {
  content: "0" counter(pain);
  color: var(--linkgo-orange);
  font-size: 0.8125rem;
  font-weight: 800;
}

.pain-list strong,
.pain-list p {
  margin: 0;
}

.pain-list p {
  color: var(--muted);
}

.loop-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #344258;
  list-style: none;
}

.loop-list li {
  min-width: 0;
  min-height: 194px;
  padding: 26px 22px;
  background: var(--ink);
}

.loop-list li::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 24px;
  color: var(--linkgo-orange);
  font-size: 0.75rem;
  font-weight: 800;
}

.loop-list strong {
  display: block;
  margin-bottom: 10px;
}

.loop-list p {
  margin: 0;
  color: #bec9dc;
  font-size: 0.875rem;
}

.video-stage {
  position: relative;
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  min-height: 300px;
  border-top: 1px solid #344258;
  border-bottom: 1px solid #344258;
}

.video-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080f;
  object-fit: contain;
}

.video-caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px;
}

.video-caption span {
  color: var(--linkgo-orange);
  font-size: 0.75rem;
  font-weight: 800;
}

.video-caption strong {
  font-size: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.scene-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--band);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #b9c9e8;
  color: var(--linkgo-blue);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.product-body {
  padding: 20px;
}

.product-code {
  margin-bottom: 8px;
  color: var(--linkgo-blue);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body h3 {
  font-size: 1.125rem;
}

.product-body p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.product-fit {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #344258;
  font-size: 0.8125rem;
  font-weight: 650;
}

.saas-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.capability-list {
  border-top: 2px solid var(--linkgo-blue);
}

.capability-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list strong,
.capability-list p {
  margin: 0;
}

.capability-list p {
  color: var(--muted);
}

/* ── Scene section: viewport-fit layout ─────────────────────── */
.scene-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-media {
  width: 100%;
  max-height: 52vh;
  min-height: 200px;
  display: grid;
  place-items: center;
  background: var(--ink);
  overflow: hidden;
  border-radius: 8px;
}

.scene-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scene-media .media-fallback {
  color: #dce7ff;
}

.scene-active-info {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 36px;
  padding: 4px 0;
}
.scene-active-name {
  color: var(--linkgo-blue);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}
.scene-active-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Thumbnail strip (horizontal scroll) */
.scene-strip {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.scene-strip::-webkit-scrollbar { height: 4px; }
.scene-strip::-webkit-scrollbar-track { background: var(--band); border-radius: 2px; }
.scene-strip::-webkit-scrollbar-thumb { background: #b8c2d2; border-radius: 2px; }

.scene-strip .scene-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  border-radius: 8px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 150ms ease;
  padding: 0;
  background: var(--white);
}
.scene-strip .scene-card img,
.scene-strip .scene-thumb img {
  width: 150px;
  height: 90px;
  object-fit: cover;
  display: block;
}
.scene-strip .scene-thumb {
  width: 150px;
  height: 90px;
  aspect-ratio: unset;
  border-radius: 0;
}
.scene-strip .scene-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #344258;
  padding: 6px 8px 8px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-strip .scene-card p { display: none; }
.scene-strip .scene-card.is-active {
  border-color: var(--linkgo-blue);
}
.scene-strip .scene-card.is-active h3 {
  color: var(--linkgo-blue);
}

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

.scene-card {
  padding: 20px;
}

.scene-card h3 {
  color: var(--linkgo-blue);
}

.scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.integration-grid > div {
  border-top: 3px solid var(--linkgo-blue);
  padding-top: 18px;
}

.integration-grid ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.integration-grid li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #344258;
}

.technical-note {
  margin: 44px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--linkgo-orange);
  background: var(--white);
  color: #344258;
  font-weight: 650;
}

.deployment-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
}

.deployment-list,
.configure-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: delivery;
}

.deployment-list li,
.configure-steps li {
  position: relative;
  padding: 0 0 28px 58px;
  counter-increment: delivery;
}

.deployment-list li:not(:last-child)::after,
.configure-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 4px;
  left: 17px;
  width: 1px;
  background: #b9c9e8;
}

.deployment-list li::before,
.configure-steps li::before {
  content: counter(delivery);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linkgo-blue);
  border-radius: 50%;
  background: var(--white);
  color: var(--linkgo-blue);
  font-size: 0.8125rem;
  font-weight: 800;
}

.deployment-list strong,
.configure-steps strong {
  display: block;
  margin-bottom: 6px;
}

.deployment-list p,
.configure-steps p {
  margin: 0;
  color: var(--muted);
}

.configure-band {
  background: var(--linkgo-blue);
  color: var(--white);
}

.configure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 80px;
  align-items: center;
}

.configurator-workspace {
  margin-top: 64px;
  border: 1px solid #7ea4f7;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.configurator-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #edf3ff;
}

.configurator-progress button {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #344258;
  text-align: left;
}

.configurator-progress button:last-child {
  border-right: 0;
}

.configurator-progress button[hidden] {
  display: none;
}

.configurator-progress button span {
  color: #6a7890;
  font-size: 0.6875rem;
  font-weight: 800;
}

.configurator-progress button strong {
  font-size: 0.8125rem;
}

.configurator-progress button.is-current {
  background: var(--white);
  color: var(--linkgo-blue);
  box-shadow: inset 0 -3px var(--linkgo-orange);
}

.configurator-form {
  min-height: 610px;
  padding: 0 36px 36px;
}

.configurator-status {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.configurator-status:empty {
  visibility: hidden;
}

.configurator-status[data-kind="error"] {
  color: var(--danger);
}

.configurator-status[data-kind="success"] {
  color: var(--success);
  font-weight: 700;
}

.config-panel {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.config-panel[hidden] {
  display: none;
}

.config-panel legend {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
  padding: 0;
}

.config-panel legend > span {
  color: var(--linkgo-orange);
  font-size: 0.75rem;
  font-weight: 800;
}

.config-panel legend strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.panel-intro {
  max-width: 740px;
  margin-bottom: 30px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 20px;
}

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

.field-grid label,
.wide-field,
.catalog-add-row label,
.adjustment-reasons label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #344258;
  font-size: 0.8125rem;
  font-weight: 700;
}

.field-grid input,
.field-grid select,
.wide-field textarea,
.catalog-add-row select,
.adjustment-reasons textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #b8c2d2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

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

.wide-field textarea,
.adjustment-reasons textarea {
  min-height: 82px;
  resize: vertical;
}

.choice-block {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.field-label {
  color: #344258;
  font-size: 0.8125rem;
  font-weight: 750;
}

.segment-control {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #b8c2d2;
  border-radius: 7px;
  overflow: hidden;
}

.segment-control label {
  min-width: 0;
  position: relative;
  display: grid;
}

.segment-control label + label {
  border-left: 1px solid #b8c2d2;
}

.segment-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-control span {
  min-height: var(--touch-target);
  display: grid;
  place-items: center;
  padding: 8px 12px;
  background: var(--white);
  color: #344258;
  font-size: 0.875rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.segment-control input:checked + span {
  background: var(--linkgo-blue);
  color: var(--white);
}

.segment-control input:focus-visible + span {
  outline: 3px solid var(--linkgo-orange);
  outline-offset: -3px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}

.check-grid label {
  min-width: 0;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344258;
  font-size: 0.8125rem;
  font-weight: 650;
}

.check-grid input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--linkgo-blue);
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.config-primary,
.config-secondary,
.lock-button,
.remove-product {
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 750;
}

.config-primary {
  background: var(--linkgo-blue);
  color: var(--white);
}

.config-primary:hover {
  background: #123fa7;
}

.config-primary:disabled,
.config-secondary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.config-secondary {
  border: 1px solid #aeb9ca;
  background: var(--white);
  color: #26354c;
}

.recommendation-results {
  display: grid;
  gap: 14px;
}

.recommendation-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.recommendation-media {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--band);
  color: var(--linkgo-blue);
  font-weight: 800;
  text-align: center;
}

.recommendation-media img {
  width: 100%;
  height: 100%;
  max-height: 168px;
  object-fit: contain;
}

.recommendation-body {
  min-width: 0;
  padding: 20px;
}

.recommendation-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.recommendation-heading span {
  color: var(--linkgo-blue);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-heading h3 {
  margin: 3px 0 0;
  font-size: 1.125rem;
}

.recommendation-badge {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid #a8bee9;
  border-radius: 4px;
  color: var(--linkgo-blue);
  font-size: 0.6875rem;
}

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

.recommendation-explanation > div {
  min-width: 0;
}

.recommendation-explanation dt {
  margin-bottom: 3px;
  color: #344258;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-explanation dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.recommendation-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.recommendation-controls label {
  display: grid;
  gap: 4px;
  color: #344258;
  font-size: 0.75rem;
  font-weight: 700;
}

.recommendation-controls input {
  width: 92px;
  padding: 7px 9px;
  border: 1px solid #b8c2d2;
  border-radius: 6px;
}

.remove-product {
  border: 1px solid #e5b8b4;
  background: var(--white);
  color: var(--danger);
}

.line-price {
  margin-left: auto;
  color: var(--linkgo-blue);
  font-size: 0.875rem;
  font-weight: 800;
}

.technical-checks {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--linkgo-orange);
  background: #fff7ed;
}

.technical-checks h3 {
  margin-bottom: 8px;
}

.technical-checks ul {
  margin: 0;
  padding-left: 20px;
  color: #5d3a21;
  font-size: 0.875rem;
}

.catalog-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 22px;
}

.adjustment-reasons {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.adjustment-reasons:empty {
  display: none;
}

.price-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: var(--band);
}

.price-control-row > div {
  display: grid;
  gap: 3px;
}

.price-control-row strong {
  color: #344258;
}

.lock-button {
  border: 1px solid #aeb9ca;
  background: var(--white);
  color: var(--linkgo-blue);
}

.lock-icon {
  position: relative;
  width: 15px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -9px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.lock-button.is-unlocked .lock-icon::before {
  left: 7px;
  transform: rotate(25deg);
  transform-origin: left bottom;
}

.commercial-summary {
  margin-top: 24px;
}

.commercial-summary dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.commercial-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.commercial-summary dd {
  margin: 0;
  font-weight: 750;
}

.commercial-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  margin-top: 18px;
  padding: 18px;
  background: #edf3ff;
}

.commercial-totals strong {
  text-align: right;
}

.commercial-totals small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.config-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #b8c2d2;
  color: var(--muted);
  text-align: center;
}

.saved-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--linkgo-blue);
}

.saved-result[hidden] {
  display: none;
}

.saved-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.saved-result dl > div {
  padding: 14px;
  background: var(--band);
}

.saved-result dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.saved-result dd {
  margin: 3px 0 0;
  color: var(--linkgo-blue);
  font-size: 1.15rem;
  font-weight: 800;
}

#missing-prices {
  margin-bottom: 16px;
  color: #344258;
  font-size: 0.875rem;
  font-weight: 700;
}

.document-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.price-dialog {
  width: min(calc(100% - 32px), 480px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.price-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}

.price-dialog form {
  padding: 26px;
}

.price-dialog h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.price-dialog p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.configure-layout .orange-action {
  margin-top: 30px;
}

.configure-note {
  max-width: 660px;
  margin: 18px 0 0;
  color: #dce7ff;
  font-size: 0.875rem;
}

.configure-steps li::before {
  border-color: #91b3ff;
  background: transparent;
  color: var(--white);
}

.configure-steps li:not(:last-child)::after {
  background: #5d8df5;
}

.configure-steps p {
  color: #dce7ff;
}

.documents-band {
  background: var(--ink);
  color: var(--white);
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.documents-layout .section-intro {
  color: #bec9dc;
}

.document-actions {
  border-top: 1px solid #344258;
}

.document-actions > div {
  padding: 16px 0;
  border-bottom: 1px solid #344258;
}

.document-actions strong {
  display: block;
  margin-bottom: 4px;
}

.document-actions p {
  margin: 0;
  color: #bec9dc;
  font-size: 0.875rem;
}

@media (max-width: 1199px) {
  .story-nav,
  .account-action {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 36px;
  }

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

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

  .documents-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  }

  .documents-layout > .light-action {
    justify-self: start;
  }
}

@media (max-width: 899px) {
  html {
    scroll-padding-top: 16px;
  }

  .topbar {
    position: static;
    min-height: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 18px 14px;
  }

  .brand {
    margin-right: auto;
  }

  .brand span,
  .top-configure,
  .logout-form {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(88px, 0.55fr) minmax(190px, 1.45fr);
    margin: 0;
  }

  .mobile-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .mobile-actions > *,
  .mobile-actions form,
  .mobile-actions button {
    width: 100%;
  }

  .mobile-actions .text-action,
  .mobile-actions .icon-action {
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .mobile-actions form {
    margin: 0;
  }

  .language-control select {
    width: 100%;
  }

  .mode-switch {
    width: 100%;
  }

  .sales-layout {
    display: block;
  }

  .sales-mode .narrative {
    margin-right: 0;
  }

  .sales-rail {
    position: static;
    width: 100%;
    max-height: none;
    padding: 24px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .narrative {
    padding-top: 0;
    transition: none;
  }

  .band {
    padding: 64px 20px;
  }

  .hero-band {
    min-height: 620px;
    padding-block: 48px;
  }

  .hero-inner,
  .saas-layout,
  .scene-layout,
  .deployment-layout,
  .configure-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .split-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

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

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

  .video-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .integration-grid {
    gap: 24px;
  }

  .documents-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

  .configurator-progress button {
    border-bottom: 1px solid var(--line);
  }

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

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

  .recommendation-explanation {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 639px) {
  .topbar {
    padding-inline: 14px;
  }

  .band {
    padding: 56px 18px;
  }

  .hero-band {
    min-height: 600px;
    padding-top: 38px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .section-intro {
    font-size: 1rem;
  }

  .hero-proof,
  .product-grid,
  .scene-grid,
  .integration-grid,
  .loop-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-proof {
    gap: 8px;
  }

  .pain-list li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .pain-list li p {
    grid-column: 2;
  }

  .loop-list li {
    min-height: 0;
  }

  .capability-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .hero-actions > *,
  .documents-layout > .light-action {
    width: 100%;
  }

  .configurator-workspace {
    margin-inline: -4px;
  }

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

  .configurator-progress button {
    min-height: 62px;
  }

  .configurator-form {
    min-height: 0;
    padding: 0 16px 24px;
  }

  .field-grid.three-columns,
  .check-grid,
  .recommendation-line,
  .saved-result dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommendation-media {
    min-height: 150px;
    max-height: 190px;
  }

  .recommendation-controls,
  .price-control-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .catalog-add-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-actions .config-primary,
  .price-control-row .lock-button,
  .catalog-add-row .config-secondary,
  .document-result-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scene card thumbnails ─────────────────────────────────── */
.scene-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: var(--band);
}
.scene-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.scene-card {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.scene-card:hover .scene-thumb img,
.scene-card.is-active .scene-thumb img {
  transform: scale(1.04);
}
.scene-card.is-active {
  border-color: var(--linkgo-blue);
  box-shadow: 0 0 0 2px var(--linkgo-blue);
}
.scene-card h3 {
  margin-top: 14px;
}

/* ── Product detail dialog ─────────────────────────────────── */
.product-detail-dialog {
  width: min(calc(100% - 24px), 960px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  overflow: hidden;
}
.product-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.68);
}
.pdialog-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}
.pdialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pdialog-code {
  color: var(--linkgo-blue);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pdialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
}
.pdialog-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.pdialog-close:hover { color: var(--ink); }
.pdialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.pdialog-media-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pdialog-carousel {
  aspect-ratio: 4 / 3;
  background: var(--band);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 12px;
}
.pdialog-carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pdialog-carousel img[hidden] { display: none; }
.pdialog-no-image {
  color: var(--linkgo-blue);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  padding: 20px;
}
.pdialog-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pdialog-prev, .pdialog-next {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.pdialog-counter {
  color: var(--muted);
  font-size: 0.8125rem;
}
.pdialog-video-section { display: flex; flex-direction: column; gap: 10px; }
.pdialog-videos video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 6px;
}
.pdialog-info-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pdialog-summary { color: var(--muted); margin: 0; }
.pdialog-points {
  margin: 0;
  padding-left: 18px;
  color: #344258;
  font-size: 0.9rem;
}
.pdialog-points li { padding: 4px 0; }
.pdialog-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.pdialog-specs tr { border-bottom: 1px solid var(--line); }
.pdialog-specs td:first-child {
  width: 45%;
  padding: 8px 12px 8px 0;
  color: #344258;
  font-weight: 700;
}
.pdialog-specs td:last-child {
  padding: 8px 0;
  color: var(--muted);
}

/* "查看详情" button on product card */
.product-detail-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--linkgo-blue);
  border-radius: 6px;
  background: transparent;
  color: var(--linkgo-blue);
  font-size: 0.8125rem;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  min-height: 0;
}
.product-detail-btn:hover {
  background: var(--linkgo-blue);
  color: var(--white);
}
.product-card { cursor: pointer; }

/* Responsive dialog */
@media (max-width: 720px) {
  .pdialog-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Configurator step icons ───────────────────────────────── */
.configurator-progress button {
  padding: 8px 12px;
}
.step-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  color: #6a7890;
  flex-shrink: 0;
}
.configurator-progress button.is-current .step-icon {
  color: var(--linkgo-blue);
}

/* ── Recommendation card – larger image ───────────────────── */
.recommendation-line {
  grid-template-columns: 200px minmax(0, 1fr);
}
.recommendation-media {
  min-height: 190px;
}
.recommendation-media img {
  max-height: 188px;
}

/* ── Typography: prevent mid-word breaks in topbar ─────────── */
.mode-button,
.primary-action,
.light-action,
.orange-action,
.icon-action,
.story-nav a,
.text-action,
.config-primary,
.config-secondary {
  white-space: nowrap;
}

/* ── Product card: GalaxysPad-inspired visual upgrade ──────── */
.product-media {
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #f0f4ff;
  overflow: hidden;
  position: relative;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 240ms ease;
}
.product-card:hover .product-media img {
  transform: scale(1.05);
}
.product-media span {
  font-size: 1rem;
  padding: 16px;
  letter-spacing: -0.01em;
}
.product-code {
  letter-spacing: 0.06em;
}
.product-body h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}
.product-body p {
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.product-fit {
  font-size: 0.75rem;
  color: #526178;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
/* Active-border on hover */
.product-card {
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.product-card:hover {
  border-color: var(--linkgo-blue);
  box-shadow: 0 4px 18px rgba(26, 80, 200, 0.12);
}

/* ── Scene cards: full-bleed image, larger ─────────────────── */
.scene-card {
  padding: 0;
  overflow: hidden;
}
.scene-card .scene-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.scene-card h3 {
  margin: 12px 16px 4px;
}
.scene-card p {
  margin: 0 16px 14px;
}

/* ── Configurator scene visual picker ──────────────────────── */
.scene-select-hidden {
  display: none !important;
}
.scene-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.scene-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  text-align: left;
  min-height: 0;
}
.scene-choice-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.scene-choice-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--band);
  color: #8a96a8;
  font-size: 1.4rem;
}
.scene-choice-label {
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #344258;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.scene-choice-card:hover {
  border-color: var(--linkgo-blue);
  box-shadow: 0 0 0 1px var(--linkgo-blue);
}
.scene-choice-card.is-selected {
  border-color: var(--linkgo-blue);
  box-shadow: 0 0 0 2px var(--linkgo-blue);
}
.scene-choice-card.is-selected .scene-choice-label {
  color: var(--linkgo-blue);
}
.scene-choice-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--linkgo-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
@media (max-width: 639px) {
  .scene-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── PI print layout ───────────────────────────────────────── */
@media print {
  .pi-print-hide { display: none !important; }
}

/* ── Product detail dialog: GalaxysPad-inspired upgrades ───── */
.pdialog-carousel {
  background: #f8faff;
  padding: 0;
  border: 1px solid var(--line);
}
.pdialog-carousel img {
  padding: 16px;
  transition: opacity 180ms ease;
}
.pdialog-header {
  border-bottom: 2px solid var(--linkgo-blue);
}
.pdialog-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
.pdialog-points li::marker {
  color: var(--linkgo-orange);
}
.pdialog-points li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.pdialog-points li:last-child {
  border-bottom: 0;
}

/* ── Staff login footer strip ──────────────────────────────── */
.staff-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 14px 20px;
  background: #0f172a;
  border-top: 1px solid #1e2d4a;
}
.staff-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #526178;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 140ms;
}
.staff-login-link:hover {
  color: #8aaee0;
}
.site-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 6px;
}
.site-col-scenes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Compact 3-column scene cards in left column */
.site-col-scenes .scene-picker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-col-scenes .scene-choice-card img,
.site-col-scenes .scene-choice-placeholder {
  aspect-ratio: 4 / 3;
}
.site-col-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-option-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-option-row[hidden] { display: none; }
/* Option cards inside right column: compact, 2–5 cols */
.site-col-options .option-cards {
  gap: 6px;
}
.site-col-options .option-card {
  min-height: 58px;
  padding: 7px 5px;
}
.site-col-options .option-card-icon svg {
  width: 18px;
  height: 18px;
}
.site-col-options .option-card-label {
  font-size: 0.65rem;
}
/* Mini text fields inside right column */
.site-mini-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.site-mini-fields label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #344258;
  font-size: 0.8125rem;
  font-weight: 700;
}
.site-mini-fields input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #b8c2d2;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
}
/* Collapse to single column on narrow screens */
@media (max-width: 860px) {
  .site-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-mini-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.recommendation-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 140px;
  object-fit: contain;
  background: var(--ink);
  border-radius: 4px;
  margin-top: 8px;
  display: block;
}

/* ── Option card selectors (replaces <select> for tablet) ──── */
.option-cards {
  display: grid;
  grid-template-columns: repeat(var(--opt-cols, 3), minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 68px;
  padding: 10px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #344258;
  cursor: pointer;
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.option-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #526178;
  flex-shrink: 0;
}
.option-card-icon svg {
  width: 22px;
  height: 22px;
}
.option-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #344258;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.option-card:hover {
  border-color: var(--linkgo-blue);
  background: #f0f4ff;
}
.option-card:hover .option-card-icon {
  color: var(--linkgo-blue);
}
.option-card.is-selected {
  border-color: var(--linkgo-blue);
  background: #edf3ff;
  box-shadow: 0 0 0 1px var(--linkgo-blue);
}
.option-card.is-selected .option-card-icon {
  color: var(--linkgo-blue);
}
.option-card.is-selected .option-card-label {
  color: var(--linkgo-blue);
}
.option-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--linkgo-blue);
}
/* Wrap on small screens */
@media (max-width: 639px) {
  .option-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Pain & loop section icons ─────────────────────────────── */
.pain-icon svg, .loop-icon svg { width:28px; height:28px; display:block; }
.pain-icon { display:flex; align-items:center; justify-content:center; width:36px; height:36px; background:#fff3e0; border-radius:6px; flex-shrink:0; color:#f97316; }
.pain-list li { display: flex; align-items:flex-start; gap:16px; }
.pain-list li::before { display:none; }
.pain-info { flex:1; min-width:0; }
.loop-icon { display:flex; align-items:center; justify-content:center; width:44px; height:44px; background:rgba(249,115,22,.15); border-radius:8px; margin-bottom:10px; flex-shrink:0; color:#f97316; }


/* ── Payment step: two-column layout ──────────────────────── */
.payment-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 6px;
}
.payment-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.payment-col .option-cards { gap: 6px; }
.payment-col .option-card { min-height: 58px; padding: 7px 5px; }
.payment-col .option-card-icon svg { width: 18px; height: 18px; }
.payment-col .option-card-label { font-size: 0.65rem; }
.payment-col .check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
@media (max-width: 860px) {
  .payment-split { grid-template-columns: minmax(0, 1fr); }
}
