:root {
  --bg: #0b111d;
  --bg-deep: #080d16;
  --surface: #151f31;
  --surface-strong: #1b273c;
  --surface-soft: #202d43;
  --line: rgba(178, 197, 229, 0.13);
  --line-strong: rgba(178, 197, 229, 0.24);
  --ink: #f5f8ff;
  --muted: #9ba9bf;
  --green: #59d8ad;
  --green-bright: #6ff0bd;
  --coral: #ff6b61;
  --yellow: #ffd56a;
  --violet: #a995ff;
  --red: #ff776e;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(106, 144, 205, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 144, 205, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #111a2b 0, var(--bg) 420px, var(--bg-deep) 100%);
  background-size:
    36px 36px,
    36px 36px,
    auto;
  font-size: 14px;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(111, 240, 189, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(111, 240, 189, 0.22), rgba(111, 240, 189, 0.04)),
    #13283a;
  color: var(--green-bright);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.66rem;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.device-chip {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-chip #deviceLabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-dot,
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #718096;
}

.device-chip.online {
  border-color: rgba(89, 216, 173, 0.28);
  background: rgba(89, 216, 173, 0.08);
  color: var(--green);
}

.device-chip.online .device-dot,
.live-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(89, 216, 173, 0.1);
}

.header-order-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.header-order-link:hover,
.header-order-link:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.header-order-link svg {
  width: 17px;
  height: 17px;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.wizard-form {
  display: block;
}

.step-track {
  position: sticky;
  z-index: 24;
  top: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 21, 34, 0.9);
  backdrop-filter: blur(16px);
}

.step-track button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #748198;
  font-size: 0.66rem;
  font-weight: 600;
}

.step-track button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.58rem;
}

.step-track button.active {
  background: rgba(89, 216, 173, 0.08);
  color: var(--green);
}

.step-track button.active span,
.step-track button.complete span {
  border-color: rgba(89, 216, 173, 0.35);
  background: rgba(89, 216, 173, 0.1);
  color: var(--green);
}

.app-view {
  min-height: calc(100vh - 220px);
}

.view-heading {
  margin: 10px 0 16px;
}

.view-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.view-heading > p:last-child,
.view-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.view-heading.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.outline-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 0.65rem;
  white-space: nowrap;
}

.outline-action svg {
  width: 14px;
  height: 14px;
}

.promo-band {
  position: relative;
  min-height: 300px;
  padding: 20px 22px 16px;
  overflow: hidden;
  border: 1px solid rgba(173, 156, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(167, 148, 255, 0.12), transparent 50%),
    linear-gradient(150deg, #172136 0%, #111a2b 58%, #0e1726 100%);
  box-shadow: var(--shadow);
}

.promo-band::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(151, 133, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.promo-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.promo-label,
.promo-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
}

.promo-label {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.38);
  color: #eef2ff;
}

.promo-label svg {
  width: 15px;
  height: 15px;
  color: var(--violet);
}

.promo-live {
  color: var(--muted);
}

.promo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 20px;
  align-items: center;
}

.promo-copy {
  padding: 20px 0 14px;
}

.promo-kicker,
.section-kicker {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-lockup {
  display: flex;
  align-items: baseline;
  color: var(--violet);
  line-height: 0.9;
}

.price-symbol {
  margin-right: 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.price-lockup strong {
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(4.2rem, 8vw, 6.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-unit {
  margin-left: 8px;
  color: #d9d2ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.promo-title {
  display: grid;
  gap: 3px;
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3.3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
}

.promo-title span {
  color: #d7dcf0;
  font-size: 0.48em;
  font-weight: 600;
}

.promo-desc {
  max-width: 560px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.promo-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--green-bright), #39c7b0);
  color: #052a22;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.promo-cta:hover,
.promo-cta:focus-visible {
  filter: brightness(1.06);
}

.promo-cta svg {
  width: 17px;
  height: 17px;
}

.printer-scene {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1.12;
  justify-self: center;
}

.scene-sheet {
  position: absolute;
  width: 42%;
  height: 53%;
  border-radius: 5px;
  background: #f5f3ff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.scene-sheet-back {
  top: 3%;
  right: 8%;
  transform: rotate(8deg);
  background: #b9aaff;
}

.scene-sheet-front {
  z-index: 2;
  top: 8%;
  right: 16%;
  display: grid;
  padding: 17px 14px;
  align-content: start;
  gap: 9px;
  transform: rotate(-5deg);
}

.scene-sheet-front span {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--coral);
  color: #fff;
  font-size: 0.46rem;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.scene-sheet-front i {
  display: block;
  width: 82%;
  height: 5px;
  border-radius: 6px;
  background: #dce0ee;
}

.scene-sheet-front i:nth-child(3) {
  width: 64%;
}

.printer-shell {
  position: absolute;
  z-index: 3;
  right: 23%;
  bottom: 12%;
  width: 58%;
  height: 33%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f3f1ff 0 25%, #9987f3 26% 76%, #7564d6 77% 100%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.7);
  transform: perspective(320px) rotateY(-8deg);
}

.printer-top {
  position: absolute;
  top: -8px;
  left: 10%;
  width: 80%;
  height: 14px;
  border-radius: 5px 5px 2px 2px;
  background: #c7bfff;
}

.printer-slot {
  position: absolute;
  top: 21%;
  left: 11%;
  width: 58%;
  height: 7px;
  border-radius: 5px;
  background: #302b55;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.printer-output {
  position: absolute;
  bottom: -8px;
  left: 18%;
  width: 64%;
  height: 13px;
  border-radius: 0 0 4px 4px;
  background: #e5e1ff;
}

.printer-led {
  position: absolute;
  top: 23%;
  right: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(111, 240, 189, 0.12);
}

.printer-logo {
  position: absolute;
  right: 10%;
  bottom: 18%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.48rem;
  font-weight: 800;
}

.scene-tag {
  position: absolute;
  z-index: 4;
  right: 1%;
  bottom: 4%;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(111, 240, 189, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 28, 35, 0.88);
  color: var(--green);
  font-size: 0.66rem;
  backdrop-filter: blur(8px);
}

.scene-tag svg {
  width: 15px;
  height: 15px;
}

.promo-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.promo-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8593aa;
  font-size: 0.64rem;
}

.promo-trust svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 16px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 31, 49, 0.72);
  color: var(--muted);
}

.notice-bar svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--yellow);
}

.notice-bar p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  align-items: start;
  gap: 14px;
}

.main-column {
  display: grid;
  gap: 14px;
}

.content-card,
.process-section,
.orders-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 58%),
    var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.13);
}

.content-card {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.section-heading h2,
.section-title-row h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.section-icon,
.section-number {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(89, 216, 173, 0.1);
  color: var(--green);
}

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

.section-number {
  font-size: 0.65rem;
  font-weight: 800;
}

.file-type-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 2px 0 12px;
}

.file-type {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.file-type b {
  display: grid;
  width: 34px;
  height: 40px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 0.62rem;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.file-type small {
  color: var(--muted);
  font-size: 0.67rem;
}

.file-pdf b {
  background: linear-gradient(160deg, #ff8379, #e64d4d);
}

.file-doc b {
  background: linear-gradient(160deg, #6da5ff, #4267d9);
}

.file-ppt b {
  background: linear-gradient(160deg, #ff9c6f, #ec5f3b);
}

.file-xls b {
  background: linear-gradient(160deg, #65d6a2, #269865);
}

.file-png b {
  background: linear-gradient(160deg, #65c3ff, #527ee9);
}

.file-jpg b {
  background: linear-gradient(160deg, #ffc76e, #f07b41);
}

.dropzone {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(151, 167, 201, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(9, 15, 26, 0.34);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: rgba(111, 240, 189, 0.58);
  background: rgba(89, 216, 173, 0.055);
}

.dropzone:active {
  transform: scale(0.995);
}

.dropzone-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(111, 240, 189, 0.2);
  border-radius: 50%;
  background: rgba(89, 216, 173, 0.1);
  color: var(--green);
}

.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone strong {
  margin-top: 2px;
  font-size: 0.92rem;
}

.dropzone small {
  color: var(--muted);
  font-size: 0.68rem;
}

.upload-button {
  display: inline-flex;
  min-width: 146px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--green-bright), #38c7b0);
  color: #052a22;
  font-size: 0.76rem;
  font-weight: 800;
}

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

.file-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid rgba(89, 216, 173, 0.2);
  border-radius: var(--radius);
  background: rgba(89, 216, 173, 0.06);
}

.file-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(89, 216, 173, 0.11);
  color: var(--green);
}

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

.file-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.file-copy strong {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy span {
  color: var(--muted);
  font-size: 0.65rem;
}

.file-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.preview-action,
.preview-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(89, 216, 173, 0.22);
  border-radius: 6px;
  background: rgba(89, 216, 173, 0.07);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.preview-action:hover,
.preview-action:focus-visible,
.preview-link:hover,
.preview-link:focus-visible {
  border-color: rgba(89, 216, 173, 0.4);
  background: rgba(89, 216, 173, 0.11);
}

.preview-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.preview-action svg,
.preview-link svg {
  width: 14px;
  height: 14px;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.form-message {
  min-height: 1rem;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 0.68rem;
}

.form-message.error,
.dialog-message.error {
  color: var(--red);
}

.privacy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 11px 0 0;
  color: #7f8da3;
  font-size: 0.63rem;
  line-height: 1.5;
}

.privacy-line svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--green);
}

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

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group.wide {
  grid-column: 1 / -1;
}

.field-group legend,
.field-group > span,
.contact-grid label > span,
.address-field > span {
  display: block;
  margin-bottom: 7px;
  color: #c4cddd;
  font-size: 0.68rem;
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 19, 0.34);
}

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

.segmented label {
  display: grid;
  min-height: 37px;
  place-items: center;
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(6, 11, 19, 0.34);
  color: var(--ink);
  font-size: 0.76rem;
}

input::placeholder,
textarea::placeholder {
  color: #68768d;
}

select {
  cursor: pointer;
}

select option {
  background: #182235;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(89, 216, 173, 0.58);
  box-shadow: 0 0 0 3px rgba(89, 216, 173, 0.09);
}

.number-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 19, 0.34);
}

.number-control button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

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

.number-control button svg {
  width: 15px;
  height: 15px;
}

.number-control input {
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
}

.number-control input::-webkit-inner-spin-button,
.number-control input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

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

.device-route-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(89, 216, 173, 0.17);
  border-radius: var(--radius);
  background: rgba(89, 216, 173, 0.055);
}

.device-route-note > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--green);
}

.device-route-note > div {
  display: grid;
  gap: 3px;
}

.device-route-note strong {
  font-size: 0.7rem;
}

.device-route-note span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.summary-panel {
  padding: 18px;
}

.confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 334px;
  align-items: start;
  gap: 14px;
}

.settings-card {
  width: min(780px, 100%);
  margin: 0 auto;
}

.settings-file-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 19, 0.27);
}

.settings-file-strip > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.settings-file-strip span {
  color: var(--muted);
  font-size: 0.6rem;
}

.settings-file-strip > div strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-file-strip > strong {
  flex: 0 0 auto;
  color: var(--green);
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: 1.25rem;
}

.settings-file-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.settings-file-actions > strong {
  color: var(--green);
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: 1.25rem;
}

.wizard-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.summary-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.paid,
.status-badge.queued,
.status-badge.accepted,
.status-badge.completed {
  border-color: rgba(89, 216, 173, 0.24);
  background: rgba(89, 216, 173, 0.08);
  color: var(--green);
}

.status-badge.failed {
  border-color: rgba(255, 119, 110, 0.24);
  background: rgba(255, 119, 110, 0.08);
  color: var(--red);
}

.summary-empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.7;
}

.summary-list {
  display: grid;
  gap: 9px;
  margin: 0 0 15px;
}

.summary-list div,
.price-breakdown div,
.dialog-details div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-list dt,
.price-breakdown span,
.dialog-details dt {
  color: var(--muted);
  font-size: 0.66rem;
}

.summary-list dd,
.dialog-details dd {
  overflow: hidden;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-breakdown {
  display: grid;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.price-breakdown strong {
  color: #d6deec;
  font-size: 0.68rem;
  font-weight: 500;
}

.total-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.total-row > div {
  display: grid;
  gap: 4px;
}

.total-row span {
  color: #cdd5e2;
  font-size: 0.72rem;
  font-weight: 600;
}

.total-row small {
  color: #7e8ba0;
  font-size: 0.58rem;
}

.total-row strong {
  color: var(--green);
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: linear-gradient(100deg, var(--green-bright), #36c5ae);
  color: #052a22;
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.06);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.42;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.primary-button svg,
.secondary-button svg {
  width: 16px;
  height: 16px;
}

.summary-note {
  margin: 9px 0 0;
  color: #7f8da3;
  font-size: 0.62rem;
  line-height: 1.55;
  text-align: center;
}

.process-section,
.orders-panel {
  margin-top: 14px;
  padding: 18px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.section-title-row > a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 600;
  text-decoration: none;
}

.section-title-row > a svg {
  width: 14px;
  height: 14px;
}

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

.process-list li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 6px;
  text-align: center;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 32px;
  left: calc(50% + 31px);
  width: calc(100% - 62px);
  border-top: 1px dashed rgba(163, 180, 209, 0.23);
  content: "";
}

.process-list li > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--green);
}

.process-list li > span svg {
  width: 20px;
  height: 20px;
}

.process-list strong {
  margin-top: 3px;
  font-size: 0.7rem;
}

.process-list small {
  color: #7c899f;
  font-size: 0.58rem;
}

.orders-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.63rem;
}

.order-feed {
  display: grid;
  gap: 8px;
}

.order-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 11, 19, 0.26);
}

.order-item-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--green);
}

.order-item-icon svg {
  width: 18px;
  height: 18px;
}

.order-item-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.order-item-main strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-main span {
  color: #7e8ba0;
  font-size: 0.6rem;
}

.order-item-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.order-item-side strong {
  color: #dce4f2;
  font-size: 0.72rem;
}

.order-item-side time {
  color: #718097;
  font-size: 0.56rem;
  white-space: nowrap;
}

.order-status {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.58rem;
  white-space: nowrap;
}

.order-status.paid,
.order-status.queued,
.order-status.accepted,
.order-status.completed {
  background: rgba(89, 216, 173, 0.09);
  color: var(--green);
}

.order-status.failed {
  background: rgba(255, 119, 110, 0.09);
  color: var(--red);
}

.empty-order {
  padding: 30px 14px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.help-bubble {
  position: fixed;
  z-index: 30;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 20px;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #dbe3ef;
  text-decoration: none;
}

.help-bubble > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(111, 240, 189, 0.3);
  border-radius: 50%;
  background: linear-gradient(145deg, #2bcaa4, #1a9e8b);
  color: #052a22;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.help-bubble svg {
  width: 20px;
  height: 20px;
}

.help-bubble small {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(9, 15, 25, 0.82);
  font-size: 0.56rem;
  backdrop-filter: blur(8px);
}

.bottom-nav {
  display: none;
}

.payment-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.payment-dialog::backdrop {
  background: rgba(3, 7, 13, 0.74);
  backdrop-filter: blur(5px);
}

.preview-dialog {
  width: min(980px, calc(100% - 24px));
  height: min(86vh, 820px);
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0f1726;
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.preview-dialog::backdrop {
  background: rgba(3, 7, 13, 0.8);
  backdrop-filter: blur(6px);
}

.preview-dialog-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 31, 49, 0.94);
}

.preview-dialog-header h2 {
  max-width: 640px;
  margin: 0;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.preview-frame-wrap {
  height: calc(100% - 104px);
  background: #1d2431;
}

.preview-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.preview-note {
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6rem;
  text-align: center;
}

.dialog-view {
  padding: 22px;
}

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

.dialog-header h2,
.dialog-view > h2 {
  margin: 0;
  font-size: 1.22rem;
}

.payment-amount {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(89, 216, 173, 0.2);
  border-radius: var(--radius);
  background: rgba(89, 216, 173, 0.08);
  color: var(--green);
  font-family: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  text-align: center;
}

.dialog-details {
  display: grid;
  gap: 10px;
  margin: 0 0 17px;
}

.dialog-details dd {
  max-width: 270px;
}

.dialog-message {
  min-height: 1rem;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 2px auto 16px;
  place-items: center;
  border: 1px solid rgba(111, 240, 189, 0.3);
  border-radius: 50%;
  background: rgba(89, 216, 173, 0.11);
  color: var(--green);
}

.success-mark svg {
  width: 27px;
  height: 27px;
}

.dialog-view > .section-kicker,
.dialog-view > h2,
.success-copy,
.success-mark {
  text-align: center;
}

.success-copy {
  max-width: 340px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.65;
}

.status-timeline {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.69rem;
}

.status-timeline li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #536078;
  content: "";
}

.status-timeline li.complete {
  color: var(--green);
}

.status-timeline li.complete::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(89, 216, 173, 0.08);
}

.status-timeline li.current {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 24px, 720px);
  }

  .promo-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  }

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

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

  .summary-panel {
    position: static;
  }

  .help-bubble {
    right: 18px;
    bottom: 82px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 35;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(15, 23, 37, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .bottom-nav a,
  .bottom-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #77869d;
    font-size: 0.58rem;
    text-decoration: none;
  }

  .bottom-nav a.active,
  .bottom-nav button.active {
    background: rgba(89, 216, 173, 0.08);
    color: var(--green);
  }

  .bottom-nav svg {
    width: 19px;
    height: 19px;
  }

  .app-shell {
    padding-bottom: 94px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 58px;
  }

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

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    display: none;
  }

  .device-chip {
    max-width: 158px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .device-chip #deviceLabel {
    max-width: 108px;
  }

  .header-order-link {
    width: 31px;
    height: 31px;
  }

  .app-shell {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .step-track {
    top: 58px;
    margin-bottom: 10px;
  }

  .step-track button {
    min-height: 36px;
    gap: 5px;
    font-size: 0.6rem;
  }

  .app-view {
    min-height: calc(100vh - 205px);
  }

  .view-heading {
    margin: 7px 0 11px;
  }

  .view-heading h1 {
    font-size: 1.45rem;
  }

  .view-heading > p:last-child,
  .view-heading > div > p:last-child {
    font-size: 0.66rem;
  }

  .view-heading.with-action {
    align-items: center;
  }

  .promo-band {
    min-height: 0;
    padding: 16px 14px 12px;
  }

  .promo-label {
    padding: 6px 9px;
    font-size: 0.62rem;
  }

  .promo-live {
    font-size: 0.6rem;
  }

  .promo-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(126px, 0.85fr);
    gap: 4px;
  }

  .promo-copy {
    padding: 15px 0 8px;
  }

  .promo-kicker {
    font-size: 0.6rem;
  }

  .price-lockup strong {
    font-size: clamp(3.6rem, 17vw, 4.7rem);
  }

  .price-symbol {
    font-size: 1rem;
  }

  .price-unit {
    margin-left: 4px;
    font-size: 0.68rem;
  }

  .promo-title {
    margin-top: 5px;
    font-size: 1.38rem;
  }

  .promo-title span {
    font-size: 0.46em;
    line-height: 1.5;
  }

  .promo-desc {
    margin-bottom: 12px;
    font-size: 0.65rem;
    line-height: 1.55;
  }

  .promo-cta {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.68rem;
  }

  .printer-scene {
    width: 100%;
    min-width: 126px;
    transform: translateX(4px);
  }

  .scene-tag {
    right: -2%;
    padding: 0 7px;
    font-size: 0.54rem;
  }

  .promo-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
  }

  .promo-trust span {
    font-size: 0.56rem;
  }

  .promo-trust span:last-child {
    display: none;
  }

  .notice-bar {
    margin: 9px 0 11px;
    padding: 9px 11px;
  }

  .notice-bar p {
    font-size: 0.64rem;
  }

  .content-layout,
  .main-column {
    gap: 10px;
  }

  .content-card,
  .process-section,
  .orders-panel {
    padding: 14px;
  }

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

  .section-heading h2 {
    font-size: 0.94rem;
  }

  .section-heading p {
    font-size: 0.64rem;
  }

  .file-type-row {
    gap: 6px;
  }

  .file-type {
    min-height: 53px;
    gap: 6px;
  }

  .file-type b {
    width: 30px;
    height: 35px;
    font-size: 0.56rem;
  }

  .file-type small {
    font-size: 0.6rem;
  }

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

  .dropzone strong {
    font-size: 0.84rem;
  }

  .dropzone small {
    font-size: 0.62rem;
  }

  .upload-button {
    min-width: 136px;
    min-height: 38px;
    font-size: 0.7rem;
  }

  .privacy-line {
    font-size: 0.58rem;
  }

  .settings-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .field-group.wide {
    grid-column: auto;
  }

  .contact-grid {
    margin-bottom: 12px;
  }

  .summary-panel {
    padding: 14px;
  }

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

  .summary-list div {
    display: grid;
    align-items: start;
    gap: 3px;
  }

  .summary-list dd {
    max-width: 100%;
    text-align: left;
  }

  .wizard-actions {
    grid-template-columns: 0.7fr 1.3fr;
    margin-top: 14px;
    padding-top: 13px;
  }

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

  .settings-file-strip {
    margin-bottom: 13px;
  }

  .settings-file-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .file-actions {
    gap: 5px;
  }

  .preview-action {
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .preview-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .preview-dialog-header {
    min-height: 72px;
    padding: 10px 12px;
  }

  .preview-dialog-header h2 {
    max-width: 172px;
    font-size: 0.8rem;
  }

  .preview-header-actions {
    gap: 6px;
  }

  .preview-link {
    padding: 0 7px;
    font-size: 0.56rem;
  }

  .preview-frame-wrap {
    height: calc(100dvh - 110px);
  }

  .preview-note {
    padding: 7px 10px;
    font-size: 0.56rem;
  }

  .total-row strong {
    font-size: 1.75rem;
  }

  .process-section,
  .orders-panel {
    margin-top: 10px;
  }

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

  .process-list li {
    gap: 4px;
    padding: 8px 2px;
  }

  .process-list li:not(:last-child)::after {
    top: 28px;
    left: calc(50% + 25px);
    width: calc(100% - 50px);
  }

  .process-list li > span {
    width: 40px;
    height: 40px;
  }

  .process-list li > span svg {
    width: 17px;
    height: 17px;
  }

  .process-list strong {
    font-size: 0.62rem;
  }

  .process-list small {
    font-size: 0.52rem;
  }

  .order-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .order-item-icon {
    width: 34px;
    height: 34px;
  }

  .order-item-side {
    grid-column: 2;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    justify-items: start;
  }

  .order-item-main strong {
    font-size: 0.68rem;
  }

  .dialog-view {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .promo-copy,
  .printer-scene,
  .content-card,
  .process-section,
  .orders-panel {
    animation: reveal 420ms ease both;
  }

  .printer-scene {
    animation-delay: 80ms;
  }

  .content-card:nth-child(2) {
    animation-delay: 70ms;
  }

  .content-card:nth-child(3) {
    animation-delay: 120ms;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
