:root {
  --bg: #ffffff;
  --paper: #f6f2ff;
  --paper-2: #efe9ff;
  --ink: #171329;
  --ink-2: #4d466a;
  --ink-3: #8a86a0;
  --line: #ece7f5;
  --line-2: #d9d2ee;
  --brand: #5b3df5;
  --brand-deep: #2a1f5c;
  --accent: #c8ff3e;
  --ok: #1e7a52;
  --ok-soft: #e4f4ea;
  --warn: #d97720;
  --warn-soft: #fff0da;
  --info: #2b3fe0;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(42, 31, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 31, 92, 0.04) 1px, transparent 1px),
    #f4f1ee;
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.mobile-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 22px 70px rgba(23, 19, 41, 0.16);
}

.status-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-icons i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}

.status-icons b {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.screen-root {
  min-height: calc(100vh - 44px);
}

.screen {
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  padding: 18px 20px 96px;
}

.page.scroll {
  overflow-y: auto;
}

.topbar {
  position: sticky;
  top: 44px;
  z-index: 20;
  height: 52px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 16px;
}

.topbar .right {
  justify-self: end;
  color: var(--ink-2);
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--ink);
}

.mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: var(--brand);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.mark i {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.word {
  font-size: 20px;
  line-height: 1;
}

.word span {
  margin-left: 2px;
  color: var(--ink-3);
  font-size: 0.55em;
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.eyebrow {
  margin: 26px 0 9px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
}

.hero-title span {
  color: var(--ink-3);
}

.copy {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.primary-card {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 20px;
  border-radius: 22px;
  background: var(--brand-deep);
  color: #fff;
}

.primary-card::after {
  content: "c";
  position: absolute;
  right: 14px;
  bottom: -10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 100px;
  line-height: 1;
  font-weight: 950;
  pointer-events: none;
  z-index: 0;
}

.primary-card > * {
  position: relative;
  z-index: 1;
}

.primary-card .btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.primary-card h2 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.primary-card p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 850;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn.accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-card,
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.mini-card {
  padding: 14px;
}

button.mini-card,
button.order-card {
  width: 100%;
  text-align: left;
}

.mini-card h3,
.card h3 {
  margin: 7px 0 5px;
  font-size: 15px;
}

.mini-card p,
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.neutral-card {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(91, 61, 245, 0.04) 7px 8px),
    var(--paper);
}

.neutral-card strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
}

.order-preview {
  margin-top: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
}

.section-title span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}

.order-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.device {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(91, 61, 245, 0.05) 7px 8px),
    var(--paper);
  border: 1px solid var(--line);
}

.device.large {
  width: 100%;
  height: 100%;
}

.device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 14px;
  height: 40px;
  border-radius: 4px;
  background: #22242a;
  transform: translate(-50%, -50%);
}

.device::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 64%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5a6070;
  transform: translateX(-50%);
}

.order-card h3 {
  margin: 0;
  font-size: 14px;
}

.order-card p {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.badge.active {
  background: var(--accent);
  color: var(--ink);
}

.badge.done {
  background: var(--ok-soft);
  color: var(--ok);
}

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

.badge.info {
  background: #e9ebff;
  color: var(--info);
}

.upload-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  background: #fff;
}

.upload-top {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(91, 61, 245, 0.05) 7px 8px),
    var(--paper);
  border: 1px solid var(--line);
}

.photo-tile.filled {
  background: #fff;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-tile.filled::before,
.photo-tile.filled::after {
  display: none;
}

.photo-tile span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(23, 19, 41, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

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

.media-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.media-upload-button.compact {
  min-height: 30px;
  margin-top: 0;
  padding: 0 10px;
}

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

.upload-choice {
  cursor: pointer;
}

.photo-tile::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 14px;
  height: 42px;
  border-radius: 4px;
  background: #22242a;
  transform: translate(-50%, -50%);
}

.field-list {
  margin-top: 14px;
  padding: 3px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.delivery-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.fee-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.fee-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fee-head h3 {
  margin: 5px 0 0;
  font-size: 18px;
}

.fee-head > strong {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 22px;
  white-space: nowrap;
}

.fee-head small {
  color: var(--ink-3);
  font-size: 12px;
}

.fee-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 13px;
}

.fee-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.fee-options button.active {
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.08);
}

.fee-options strong {
  color: var(--ink);
  font-size: 14px;
}

.fee-options span {
  color: var(--ink-3);
  font-size: 11px;
  text-align: right;
}

.fee-hint {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}

.fee-hint.credit {
  background: #efffd1;
  color: var(--ink);
}

.fee-card > p {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.55;
}

.delivery-switch button {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.delivery-switch button.active {
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.08);
}

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

.delivery-switch span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.field:last-child {
  border-bottom: 0;
}

.field span {
  color: var(--ink-3);
}

.field strong {
  text-align: right;
}

.ai-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--brand-deep);
  color: #fff;
}

.ai-card h2 {
  margin: 10px 0 4px;
  color: var(--accent);
  font-size: 32px;
}

.ai-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.metric-grid div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 20px;
}

.warn-box {
  margin-top: 12px;
  padding: 13px;
  border-radius: 15px;
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.material-card {
  position: relative;
  height: 340px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(91, 61, 245, 0.04) 8px 9px),
    var(--paper);
  overflow: hidden;
}

.material-card .device {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 110px;
  height: 160px;
  transform: translate(-50%, -50%);
}

.material-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.material-copy h2 {
  margin: 4px 0;
  font-size: 24px;
}

.material-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
}

.tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.text-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.success-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
}

.success-mark .mark {
  width: 56px;
  height: 56px;
  font-size: 62px;
}

.success-mark .mark i {
  width: 13px;
  height: 13px;
}

.success-mark strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.success-mark p {
  max-width: 280px;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.link-box span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 850;
}

.link-box button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.record-hero {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--brand-deep);
  color: #fff;
}

.record-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(200, 255, 62, 0.2) 7px 8px),
    repeating-linear-gradient(-45deg, transparent 0 7px, rgba(255, 255, 255, 0.1) 7px 8px);
}

.record-hero > * {
  position: relative;
}

.record-hero .brand {
  color: #fff;
}

.record-hero .mark {
  color: #fff;
}

.record-hero h2 {
  margin: 10px 0 0;
  font-size: 24px;
}

.record-hero p {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.signature {
  position: relative;
  height: 112px;
  margin-top: 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 15px;
  background: #fff;
}

.signature::before,
.signature::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ink);
  border-top: 0;
  border-left: 0;
  border-radius: 50%;
}

.signature::before {
  left: 70px;
  top: 42px;
  width: 76px;
  height: 25px;
  transform: rotate(-16deg);
}

.signature::after {
  left: 150px;
  top: 40px;
  width: 62px;
  height: 30px;
  transform: rotate(12deg);
}

.payment-shot {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  background: var(--paper);
}

.payment-shot span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}

.payment-shot strong {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 25px;
}

.check-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.check-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand);
}

.check-item i::before {
  content: "✓";
  display: block;
  color: #fff;
  text-align: center;
  line-height: 22px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.check-item small {
  color: var(--ink-3);
}

.step-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 14px 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.step-chain span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 10px;
}

.step-chain span::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--line-2);
  color: var(--ink-3);
  font-weight: 900;
}

.step-chain .done::before,
.step-chain .active::before {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.compare-photo {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}

.compare-photo .device {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.damage {
  position: absolute;
  left: 32%;
  top: 32%;
  width: 40%;
  height: 24%;
  border: 2px solid var(--warn);
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(217, 119, 32, 0.12);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.bubble {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.bubble.me {
  align-self: flex-end;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.timeline {
  margin-top: 14px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.logistics-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.auth-card {
  margin-top: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--brand-deep);
  color: #fff;
}

.auth-card .brand {
  margin-bottom: 22px;
}

.auth-card .word,
.auth-card .word span {
  color: #fff;
}

.auth-card h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.25;
}

.auth-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.account-line span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.account-line strong {
  color: var(--accent);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 8px;
}

.code-row button {
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.logistics-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.logistics-row:last-child {
  border-bottom: 0;
}

.logistics-row i {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--line-2);
  border-radius: 999px;
}

.logistics-row.done i {
  position: relative;
  border-color: var(--brand);
  background: var(--brand);
}

.logistics-row.done i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.logistics-row strong {
  display: block;
  font-size: 13px;
}

.logistics-row span {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
}

.time-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}

.time-row:last-child {
  border-bottom: 0;
}

.time-row span {
  color: var(--ink-3);
  font-family: var(--mono);
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.status-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.status-summary p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}

.status-summary .btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

.progress-list button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.progress-list i {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-2);
  border-radius: 999px;
}

.progress-list i.done,
.progress-list i.active {
  position: relative;
  border-color: var(--brand);
  background: var(--brand);
}

.progress-list i.done::after,
.progress-list i.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.progress-list strong {
  font-size: 13px;
}

.progress-list span {
  color: var(--ink-3);
  font-size: 12px;
  text-align: right;
}

.merchant-head {
  padding: 18px;
  border-radius: 22px;
  background: var(--brand-deep);
  color: #fff;
}

.merchant-head .brand {
  color: #fff;
}

.merchant-head .mark {
  color: #fff;
}

.merchant-head h2 {
  margin: 20px 0 6px;
  font-size: 25px;
}

.merchant-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.65;
}

.quota-line {
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.quota-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.merchant-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.credit-pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.credit-pack-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.credit-pack-list article.active {
  border-color: var(--brand);
  background: var(--paper);
}

.credit-pack-list h3 {
  margin: 0;
  font-size: 15px;
}

.credit-pack-list strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 18px;
}

.credit-pack-list p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}

.merchant-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.merchant-stats span,
.merchant-stats em {
  color: var(--ink-3);
  font-style: normal;
  font-size: 11px;
}

.merchant-stats strong {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 24px;
}

.merchant-stats em {
  color: var(--brand);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rules-list article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.rules-list strong {
  display: block;
  font-size: 15px;
}

.rules-list p {
  margin: 7px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(340px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(23, 19, 41, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(23, 19, 41, 0.2);
}

.bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
}

.bottom-nav button.active {
  color: var(--brand);
}

.bottom-nav b {
  font-size: 17px;
}

.bottom-nav .plus {
  width: 44px;
  height: 44px;
  margin-top: -20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
}

@media (max-width: 430px) {
  body {
    background: #fff;
  }

  .mobile-shell {
    width: 100vw;
    min-height: 100vh;
    box-shadow: none;
  }
}
