@font-face {
  font-family: "Noto Sans SC UI";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/NotoSansSC-UI-subset.woff") format("woff");
}

:root {
  color-scheme: light;
  --bg-base: #f0f7ff;
  --bg-raised: #f8fbff;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #dbeafe;
  --line-subtle: #eff6ff;
  --line-strong: #bfdbfe;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #eff6ff;
  --orange: #e2603f;
  --orange-deep: #c84e32;
  --success: #16805b;
  --success-soft: #ecfdf5;
  --danger: #c43d3d;
  --danger-soft: #fbefed;
  --shadow: 0 24px 64px rgba(30, 64, 175, 0.1);
  --shadow-soft: 0 10px 28px rgba(30, 64, 175, 0.08);
  --radius: 8px;
  --font-display-cn: "MiSans VF", "Noto Sans SC UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-body-cn: "MiSans VF", "Noto Sans SC UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      ellipse 62% 46% at 6% 0%,
      rgba(37, 99, 235, 0.08),
      transparent 68%
    ),
    radial-gradient(
      ellipse 42% 34% at 100% 18%,
      rgba(226, 96, 63, 0.035),
      transparent 70%
    ),
    linear-gradient(180deg, #f8fbff 0%, var(--bg-base) 58%, #ebf4ff 100%);
  font-family: var(--font-body-cn);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  text-spacing-trim: trim-start allow-end;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a,
label,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

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

.announcement {
  min-height: 34px;
  padding: 7px 20px;
  color: #eff6ff;
  background: var(--ink);
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(29, 78, 216, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 126px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 3px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  flex: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
}

.product-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: safe center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.product-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 124px;
  min-width: 124px;
  min-height: 44px;
  padding: 0 14px;
  color: #1d4ed8;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.product-nav-item svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.product-nav-item[data-paper-site="/paper"] {
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.product-nav-item:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}

.product-nav-item.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}

.product-nav-item.is-active:hover {
  color: #fff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.product-nav-label-short {
  display: none;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0;
  padding-left: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-support-button {
  gap: 6px;
  border-radius: 7px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-support-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-support-button svg {
  width: 16px;
  height: 16px;
}

main {
  position: relative;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(32px, 4.6vw, 62px);
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(22px, 2.8vw, 34px) 0 clamp(34px, 4vw, 48px);
}

.intro {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding-top: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.intro h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(38px, 3.8vw, 50px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: 0;
}

.intro-title-sub {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.68em;
  line-height: 1.28;
}

.intro-lede {
  max-width: 42ch;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.78;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.intro-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
}

.intro-fact svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.method-list {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
}

.method-item + .method-item {
  border-top: 1px solid var(--line-subtle);
}

.method-index {
  padding-top: 1px;
  color: var(--orange);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.method-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.5;
}

.method-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.rail-rule {
  width: 100%;
  height: 1px;
  margin: 22px 0 15px;
  background: var(--line);
}

.rail-kicker {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.rail-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  justify-items: center;
  min-height: 57px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
}

.rail-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 1px;
  background: var(--line);
}

.rail-step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 10px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.rail-step.current {
  color: var(--ink);
  font-weight: 600;
}

.rail-step.current .rail-step-node {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.rail-step.done {
  color: var(--blue);
}

.rail-step.done .rail-step-node {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.24);
}

.rail-step.done:not(:last-child)::after {
  background: rgba(37, 99, 235, 0.42);
}

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

.rail-selection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.rail-selection-label svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.rail-selection strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
}

.pulse-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto clamp(44px, 6vw, 68px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.035), transparent 34%),
    rgba(255, 255, 255, 0.44);
}

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(680px, 100%);
  margin: 0 auto;
}

.pulse-metric {
  min-width: 0;
  padding: 24px 28px 20px;
  text-align: center;
}

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

.pulse-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--blue);
  font-family: var(--font-display-cn);
  font-size: clamp(32px, 4vw, 44px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.pulse-value small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.pulse-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pulse-feed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 18px;
  border-top: 1px solid var(--line-subtle);
  color: var(--muted);
  font-size: 12px;
}

.pulse-status {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  flex: none;
}

.pulse-status::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--success);
  border-radius: inherit;
  animation: pulse-status 2.2s ease-out infinite;
}

.pulse-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pulse-clock time {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pulse-divider {
  width: 1px;
  height: 13px;
  background: var(--line-strong);
}

.pulse-activity {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-activity time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pulse-activity span {
  color: var(--text);
}

.value-updated {
  animation: pulse-value-flash 650ms ease;
}

@keyframes pulse-status {
  from {
    opacity: 0.34;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes pulse-value-flash {
  0% {
    color: var(--blue);
  }

  38% {
    color: var(--orange);
  }

  100% {
    color: var(--blue);
  }
}

.tool {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 82%, var(--orange) 82% 100%);
}

.state {
  padding: clamp(20px, 2.4vw, 28px);
}

.state-heading {
  margin-bottom: 16px;
}

.state-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.state-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: 0;
}

.state-subtitle {
  max-width: 50ch;
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
}

.platform-badge svg {
  width: 14px;
  height: 14px;
}

.platform-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.field-label svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
}

.field-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.field-rate strong {
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.field-rate b,
.field-min b {
  font-weight: 600;
}

.field-min {
  margin-left: 4px;
  color: #7c8ba1;
}

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

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.choice:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice.selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.platform-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 9px 0 12px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(37, 99, 235, 0.035);
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
  font-size: 11.5px;
  line-height: 1.5;
}

.platform-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--orange);
  flex: none;
}

.platform-note strong {
  color: var(--text);
  font-weight: 500;
}

.language-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  color: #842f2a;
  background: #fff3f1;
  border: 1px solid #efb2ac;
  border-left: 4px solid #d84a42;
  border-radius: 7px;
  text-align: left;
}

.language-warning > svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  color: #c43d35;
}

.language-warning div {
  min-width: 0;
}

.language-warning strong,
.language-warning span {
  display: block;
}

.language-warning strong {
  color: #962f29;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.language-warning span {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.55;
}

.language-warning--submit {
  margin: 14px 0 8px;
  padding: 9px 11px;
  background: #f8fafc;
  border-color: #dbe5f1;
  border-left-color: #93b4df;
}

.language-warning--submit > svg {
  width: 18px;
  height: 18px;
  color: #8fa3ba;
}

.language-warning--submit strong {
  color: #526579;
  font-size: 12.5px;
  font-weight: 600;
}

.language-warning--submit span {
  color: #718096;
  font-size: 12px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px 16px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.035), transparent 52%),
    var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragging {
  outline: none;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 58%),
    var(--surface);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.045);
}

.dropzone-content {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 4px 14px;
  text-align: left;
}

.upload-mark {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
}

.upload-mark svg {
  width: 20px;
  height: 20px;
}

.dropzone h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.dropzone p {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.upload-action {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 15px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 5px 16px rgba(226, 96, 63, 0.22);
}

.upload-action svg {
  width: 17px;
  height: 17px;
}

.upload-error {
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.selected-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.file-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
}

.file-symbol svg {
  width: 21px;
  height: 21px;
}

.file-detail {
  min-width: 0;
}

.file-detail strong,
.file-detail span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.file-detail span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  color: var(--danger);
  border-color: rgba(196, 61, 61, 0.42);
}

.icon-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.quote-block {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-subtle);
}

.quote-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.quote-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

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

.metric {
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid var(--line-subtle);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.metric strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  white-space: nowrap;
}

.metric strong b {
  font-weight: 600;
}

.metric-emphasis strong {
  color: var(--orange-deep);
}

.quote-hint {
  margin: 0;
  padding: 7px 13px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.045);
  border-top: 1px solid var(--line-subtle);
  font-size: 11.5px;
  line-height: 1.55;
}

.coupon-entry {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
}

.coupon-toggle-link {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.coupon-entry > label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.coupon-entry-row {
  display: flex;
  gap: 8px;
}

.coupon-entry-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
}

.coupon-apply {
  min-width: 76px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.coupon-apply:disabled {
  cursor: wait;
  opacity: 0.65;
}

.coupon-state {
  margin: 8px 0 0;
  color: #0f766e;
  font-size: 13px;
}

.payment-field {
  min-width: 0;
  margin-top: 13px;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.payment-summary strong {
  color: var(--text);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.payment-field .coupon-state {
  margin: 0 0 8px;
}

.payment-options[hidden] {
  display: none;
}

.payment-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
}

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

.payment-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 6px 9px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.payment-choice:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.payment-choice.selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.38);
}

.payment-choice:disabled,
.payment-choice.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.payment-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.payment-mark.wechat {
  color: #176b48;
  background: #e3f3e8;
}

.payment-mark.alipay {
  color: #1768b0;
  background: #e5f0fa;
}

.payment-mark svg {
  width: 18px;
  height: 18px;
}

.payment-choice strong,
.payment-choice small {
  display: block;
  min-width: 0;
}

.payment-choice strong {
  color: inherit;
  font-size: 12px;
  font-weight: 500;
}

.payment-choice small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.payment-choice.selected .radio-dot {
  background: var(--blue);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--blue);
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease,
    transform 150ms ease, opacity 150ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 10px;
  color: #ffffff;
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 5px 16px rgba(226, 96, 63, 0.2);
}

.primary-button:hover:not(:disabled) {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  transform: translateY(-1px);
}

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

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

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

.secondary-button:hover:not(:disabled) {
  background: var(--bg-raised);
  border-color: var(--line-strong);
}

.compact-button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.text-button {
  display: flex;
  margin: 10px auto 0;
  padding: 4px 8px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 500;
}

.text-button:hover {
  color: var(--ink);
}

.service-alert {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(196, 61, 61, 0.2);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.payment-footnote {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line-subtle);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.feature-item svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
  flex: none;
}

.lookup-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto clamp(54px, 7vw, 84px);
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 96px;
}

.lookup-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.lookup-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 650;
  line-height: 1.3;
}

.lookup-heading p {
  max-width: 68ch;
  margin: 7px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.lookup-retention {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 13px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 7px;
  white-space: nowrap;
}

.lookup-retention svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.lookup-retention span {
  font-size: 11px;
  line-height: 1.35;
}

.lookup-retention strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.lookup-form {
  margin-top: 22px;
}

.lookup-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.lookup-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lookup-input-wrap {
  position: relative;
  min-width: 0;
}

.lookup-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--blue);
  transform: translateY(-50%);
  pointer-events: none;
}

.lookup-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 9px 14px 9px 43px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lookup-input-wrap input::placeholder {
  color: #8b9ab0;
  font-family: var(--font-body-cn);
  text-transform: none;
}

.lookup-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lookup-submit {
  width: auto;
  min-width: 132px;
  margin-top: 0;
}

.lookup-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.lookup-notice svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--blue);
  flex: none;
}

.lookup-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(196, 61, 61, 0.2);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.lookup-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lookup-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lookup-order-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.lookup-order-no {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.lookup-message {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.lookup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
}

.lookup-meta strong {
  color: var(--text);
  font-weight: 600;
}

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

.lookup-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lookup-file-card.offline {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.lookup-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
}

.lookup-file-card.offline .lookup-file-icon {
  color: #8794a7;
  background: #eef2f7;
}

.lookup-file-icon svg {
  width: 20px;
  height: 20px;
}

.lookup-file-copy {
  min-width: 0;
}

.lookup-file-type {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
}

.lookup-file-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-file-state,
.lookup-file-expiry {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.5;
}

.lookup-file-state {
  color: var(--success);
  font-weight: 600;
}

.lookup-file-card.offline .lookup-file-state {
  color: var(--muted);
}

.lookup-file-expiry {
  color: var(--muted);
}

.lookup-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.lookup-download-button,
.lookup-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--danger);
  background: var(--surface);
  border: 1px solid rgba(196, 61, 61, 0.38);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.lookup-download-button {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(41, 98, 255, 0.34);
}

.lookup-download-button:hover:not(:disabled) {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.lookup-delete-button:hover:not(:disabled) {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.lookup-download-button:disabled,
.lookup-delete-button:disabled {
  opacity: 0.52;
  cursor: wait;
}

.lookup-download-button svg,
.lookup-delete-button svg {
  width: 14px;
  height: 14px;
}

.lookup-access-note {
  margin: 9px 0 0;
  color: var(--danger);
  font-size: 10.5px;
  line-height: 1.6;
}

.order-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto clamp(54px, 7vw, 84px);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-number-row h2 {
  margin: 0;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 20px;
  line-height: 1.4;
}

.order-number-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.status-badge {
  flex: none;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.warning {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(196, 61, 61, 0.18);
}

.status-badge.success {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(22, 128, 91, 0.18);
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}

.order-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8494aa;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.order-progress-step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.order-progress-step:first-child::before {
  display: none;
}

.order-progress-step svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #8798ad;
  background: var(--bg-raised);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.order-progress-step.done {
  color: var(--success);
}

.order-progress-step.done svg {
  color: #ffffff;
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.order-progress-step.done::before,
.order-progress-step.active::before {
  background: var(--blue);
}

.order-progress-step.active {
  color: var(--blue);
  font-weight: 600;
}

.order-progress-step.active svg {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
}

.order-main {
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.order-message {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.payment-stage {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-wrap {
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.qr-canvas img,
.qr-canvas canvas {
  display: block;
  width: 154px !important;
  height: 154px !important;
}

#payQrImage {
  width: 154px;
  height: 154px;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8a9bb2;
}

.qr-placeholder svg {
  width: 50px;
  height: 50px;
}

.payment-copy > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.payment-copy > strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 19px;
}

.payment-copy > strong b {
  color: var(--orange-deep);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.payment-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.action-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
}

.stage-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 7px;
}

.stage-icon svg {
  width: 22px;
  height: 22px;
}

.action-stage h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.action-stage p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
}

.action-warning {
  background: var(--danger-soft);
  border-color: rgba(196, 61, 61, 0.18);
}

.action-warning .stage-icon {
  color: var(--danger);
  border-color: rgba(196, 61, 61, 0.18);
}

.action-success {
  background: var(--success-soft);
  border-color: rgba(22, 128, 91, 0.18);
}

.action-success .stage-icon {
  color: var(--success);
  border-color: rgba(22, 128, 91, 0.18);
}

.evidence-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
}

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

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

.evidence-block #evidenceStatus {
  grid-column: 1 / -1;
  color: var(--success);
  font-size: 11px;
}

.order-summary {
  min-width: 0;
  align-self: start;
}

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

.order-summary span {
  color: var(--muted);
  font-size: 11px;
}

.order-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.order-summary .secondary-button {
  width: 100%;
  margin-top: 18px;
}

body.support-dialog-open {
  overflow: hidden;
}

.support-dialog {
  width: min(430px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
}

.support-dialog[open] {
  animation: support-dialog-in 180ms ease-out;
}

.support-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.support-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.support-dialog-head h2 {
  margin: 3px 0 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.support-dialog-body {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 20px;
  text-align: center;
}

.support-qr-frame {
  width: min(270px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.support-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-dialog-body > p {
  max-width: 34ch;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.support-order-reference {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.support-order-reference > span {
  color: var(--muted);
  font-size: 11px;
}

.support-order-reference > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-order-reference strong {
  min-width: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

@keyframes support-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notes-section,
.questions-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 64px) 0;
}

.notes-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.notes-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(400px, 1.2fr);
  gap: 8px 50px;
  align-items: end;
  margin-bottom: 28px;
}

.notes-heading .section-kicker {
  grid-column: 1 / -1;
}

.notes-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display-cn);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.3;
}

.notes-heading p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.notes-heading.compact {
  display: block;
  margin-bottom: 18px;
}

.notes-heading.compact h2 {
  margin-top: 4px;
}

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

.notes-grid article {
  position: relative;
  min-height: 210px;
  padding: 24px 20px 18px 0;
  border-right: 1px solid var(--line);
}

.notes-grid article:not(:first-child) {
  padding-left: 20px;
}

.notes-grid article:last-child {
  border-right: 0;
}

.notes-grid article > span {
  position: absolute;
  top: 21px;
  right: 16px;
  color: #c2cee0;
  font-family: Georgia, serif;
  font-size: 24px;
}

.notes-grid svg {
  width: 27px;
  height: 27px;
  margin-bottom: 28px;
  color: var(--blue);
}

.notes-grid h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.notes-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-promise {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px 48px;
  margin-top: 32px;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(226, 96, 63, 0.055), transparent 44%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}

.service-promise-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.service-promise-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--orange-deep);
  background: rgba(226, 96, 63, 0.09);
  border: 1px solid rgba(226, 96, 63, 0.18);
  border-radius: 50%;
  flex: none;
}

.service-promise-icon svg {
  width: 19px;
  height: 19px;
}

.service-promise-heading .section-kicker {
  margin-bottom: 4px;
}

.service-promise-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.45;
}

.service-promise-copy > p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.78;
}

.service-promise-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.service-promise-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 10px;
  padding: 0;
  list-style: none;
}

.service-promise-terms li {
  padding: 4px 9px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.055);
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
}

.service-promise-copy .service-promise-note {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.question-list details {
  border-top: 1px solid var(--line);
}

.question-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.question-list summary {
  position: relative;
  padding: 15px 34px 15px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.question-list summary::-webkit-details-marker {
  display: none;
}

.question-list summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 5px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
}

.question-list details[open] summary::after {
  content: "−";
}

.question-list p {
  margin: -4px 34px 17px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: #9fb4ce;
  background: var(--ink);
  font-size: 12px;
}

footer > div {
  min-width: 0;
}

footer img {
  width: 154px;
  opacity: 0.9;
}

footer p {
  margin: 7px 0 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.spinning {
  animation: spin 900ms linear infinite;
}

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

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
    padding-inline: 24px;
  }

  .brand {
    width: auto;
  }

  .product-nav-item {
    width: 112px;
    min-width: 112px;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13.5px;
  }

  .nav-secondary {
    display: none;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: min(760px, calc(100% - 40px));
    padding-top: 38px;
  }

  .pulse-panel {
    width: min(760px, calc(100% - 40px));
  }

  .intro {
    position: static;
    order: 2;
    padding-inline: 4px;
  }

  .tool {
    order: 1;
    width: 100%;
    min-height: 0;
  }

  .intro h1 {
    font-size: clamp(38px, 5.8vw, 48px);
  }

  .intro-lede {
    max-width: 58ch;
  }

  .lookup-panel,
  .order-panel,
  .notes-section,
  .questions-section {
    width: min(760px, calc(100% - 40px));
  }

  .lookup-files {
    grid-template-columns: 1fr;
  }

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

  .notes-grid article:nth-child(2) {
    border-right: 0;
  }

  .notes-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-promise {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .notes-heading {
    grid-template-columns: 1fr;
  }

  .notes-heading .section-kicker {
    grid-column: auto;
  }

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

  .order-main {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .order-summary .secondary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    gap: 8px;
  }

  .brand {
    width: auto;
  }

  .site-nav {
    gap: 4px;
    font-size: 12px;
  }

  .product-nav {
    gap: 4px;
  }

  .product-nav-item {
    width: auto;
    min-width: 78px;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12.5px;
  }

  .product-nav-item svg {
    width: 17px;
    height: 17px;
  }

  .product-nav-label {
    display: none;
  }

  .product-nav-label-short {
    display: inline;
  }

  .nav-utilities {
    display: none;
    gap: 0;
    padding-left: 0;
  }

  .nav-link {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0 4px;
    font-size: 12px;
  }

  .workspace {
    width: calc(100% - 24px);
    gap: 24px;
    padding: 24px 0 44px;
  }

  .pulse-panel {
    width: calc(100% - 24px);
    margin-bottom: 38px;
  }

  .pulse-metric {
    padding: 20px 10px 17px;
  }

  .pulse-value {
    font-size: clamp(30px, 10vw, 38px);
  }

  .pulse-feed {
    flex-wrap: wrap;
    gap: 6px 9px;
    padding-inline: 10px;
  }

  .pulse-activity {
    flex-basis: 100%;
    text-align: center;
  }

  .pulse-divider {
    display: none;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .intro h1 {
    margin-bottom: 13px;
    font-size: 34px;
    line-height: 1.24;
  }

  .intro-title-sub {
    margin-top: 5px;
    font-size: 0.68em;
  }

  .intro-lede {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .intro-progress {
    margin-top: 22px;
  }

  .rail-step {
    min-width: 0;
    font-size: 10px;
  }

  .rail-selection {
    margin-top: 15px;
    padding-top: 13px;
  }

  .state {
    padding: 18px 14px;
  }

  .state-heading {
    margin-bottom: 16px;
  }

  .state-heading-row {
    display: block;
  }

  .state-title {
    font-size: 27px;
  }

  .state-subtitle {
    font-size: 13px;
  }

  .platform-badge {
    margin-top: 10px;
  }

  .field-label-row {
    display: block;
  }

  .field-rate {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
  }

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

  .choice {
    min-height: 44px;
    padding-inline: 10px;
  }

  .dropzone {
    min-height: 132px;
    padding: 14px;
  }

  .dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .upload-mark {
    margin-bottom: 8px;
  }

  .dropzone h3 {
    font-size: 16px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .selected-file {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    gap: 10px;
    padding-inline: 12px;
  }

  .file-symbol {
    width: 42px;
    height: 42px;
  }

  .quote-head {
    align-items: flex-start;
    padding-inline: 13px;
  }

  .quote-head span {
    max-width: 16ch;
  }

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

  .metric {
    border-bottom: 1px solid var(--line-subtle);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .payment-choice {
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    min-height: 58px;
    padding-inline: 8px;
  }

  .primary-button,
  .secondary-button {
    min-height: 48px;
  }

  .lookup-panel,
  .order-panel,
  .notes-section,
  .questions-section {
    width: calc(100% - 24px);
  }

  .lookup-panel {
    padding: 22px 16px;
  }

  .lookup-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lookup-retention {
    justify-self: start;
  }

  .lookup-input-row {
    grid-template-columns: 1fr;
  }

  .lookup-submit {
    width: 100%;
    min-height: 48px;
  }

  .lookup-result-head {
    display: grid;
    gap: 9px;
  }

  .lookup-result-head .status-badge {
    justify-self: start;
  }

  .lookup-file-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .lookup-file-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .lookup-download-button,
  .lookup-delete-button {
    width: 100%;
    min-height: 44px;
  }

  .order-panel {
    padding: 20px 16px;
  }

  .order-heading {
    display: grid;
  }

  .status-badge {
    justify-self: start;
  }

  .order-progress-step {
    font-size: 10px;
  }

  .payment-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-copy p {
    max-width: 34ch;
    margin-inline: auto;
  }

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

  .action-stage .primary-button,
  .action-stage .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .evidence-block {
    grid-template-columns: 1fr;
  }

  .evidence-block .secondary-button {
    width: 100%;
  }

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

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

  .notes-grid article,
  .notes-grid article:not(:first-child) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-grid article:last-child {
    border-bottom: 0;
  }

  .notes-grid svg {
    margin-bottom: 14px;
  }

  .notes-grid article > span {
    top: 18px;
  }

  .service-promise {
    margin-top: 24px;
    padding: 20px 18px;
  }

  .service-promise-heading h3 {
    font-size: 17px;
  }

  .service-promise-terms {
    display: grid;
  }

  .service-promise-terms li {
    border-radius: 6px;
  }

  footer {
    display: grid;
    padding: 22px 18px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0 12px;
    gap: 6px;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    gap: 2px;
  }

  .product-nav {
    gap: 3px;
  }

  .product-nav-item {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    gap: 4px;
    padding-inline: 4px;
    font-size: 11px;
  }

  .product-nav-item svg {
    display: none;
  }

  .nav-support-button {
    min-width: 34px;
    padding-inline: 4px;
  }

  .nav-support-button span {
    display: none;
  }
}

@media (max-width: 440px) {
  .site-header {
    padding: 0 8px;
    gap: 6px;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    display: none;
  }

  .site-nav {
    gap: 2px;
  }

  .product-nav {
    gap: 4px;
  }

  .product-nav-item {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    min-height: 42px;
    gap: 5px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .product-nav-item svg {
    width: 15px;
    height: 15px;
  }

  .nav-support-button {
    min-width: 36px;
    padding: 0 5px;
  }

  .nav-support-button span {
    display: none;
  }

  .intro h1 {
    font-size: 31px;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .quote-head {
    display: grid;
    gap: 3px;
  }

  .quote-head span {
    max-width: none;
    text-align: left;
  }

  .rail-selection {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 360px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .product-nav-item {
    min-height: 40px;
    gap: 3px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .product-nav-item svg {
    display: none;
  }

  .nav-support-button {
    min-width: 32px;
    padding-inline: 3px;
  }
}

@media (max-width: 520px) {
  .product-nav .product-nav-item {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
  }
}

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

@media (min-width: 1200px) {
  .workspace {
    width: min(1500px, calc(100% - 48px));
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    gap: 32px;
    padding-top: 28px;
  }

  .dropzone {
    min-height: 92px;
  }
}

.submission-note {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7e6;
  color: #70491d;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

