:root {
  --ink: #142018;
  --muted: #4a5a50;
  --paper: #f3f1ea;
  --panel: rgba(255, 252, 246, 0.88);
  --line: rgba(20, 32, 24, 0.14);
  --accent: #c45c26;
  --accent-deep: #8f3d12;
  --teal: #1f6f65;
  --code-bg: #101814;
  --code-fg: #d7e6db;
  --shadow: 0 18px 50px rgba(20, 32, 24, 0.12);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(196, 92, 38, 0.22), transparent 60%),
    radial-gradient(700px 480px at 90% 8%, rgba(31, 111, 101, 0.18), transparent 55%),
    linear-gradient(160deg, #efebe1 0%, #f7f4ee 45%, #e7eee9 100%);
  background-attachment: fixed;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 32, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 24, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar nav a:hover {
  color: var(--accent-deep);
}

.hero,
.review-hero,
.inbox-hero,
.auth-panel {
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.2rem, 4vw, 3rem) 1.5rem;
  max-width: 920px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.6rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.hero h1 {
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff8f2;
}

.btn.primary:hover {
  background: var(--accent-deep);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.wide {
  width: 100%;
  margin-top: 0.5rem;
}

.order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.order-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.order-tab:hover {
  color: var(--ink);
  border-color: rgba(196, 92, 38, 0.35);
}

.order-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f4ee;
}

.order-panel[hidden] {
  display: none !important;
}

.line-editor {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.cart {
  margin: 1rem 0 1.2rem;
}

.cart h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
}

.cart-item strong {
  display: block;
  font-size: 0.95rem;
}

.cart-key {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.cart-remove {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.cart-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.cart-hint {
  margin: 0.35rem 0 0;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
}

.line-review {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.line-review:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.line-review h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.panel-head code,
.lede code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(20, 32, 24, 0.06);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.order-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  padding: 0.5rem clamp(1.2rem, 4vw, 3rem) 3rem;
  align-items: start;
}

.form-column {
  display: grid;
  gap: 1.25rem;
}

.order-panel,
.preview-shell,
.auth-form,
.review-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.order-panel,
.preview-shell {
  padding: 1.35rem 1.35rem 1.5rem;
}

.panel-head h2,
.preview-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.panel-head p:last-child,
.preview-head p:last-child,
.hint {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.form-disclaimer {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 101, 0.28);
  background: rgba(31, 111, 101, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-disclaimer strong {
  color: var(--teal);
}

.order-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span,
.contact-block legend {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(196, 92, 38, 0.35);
  border-color: var(--accent);
}

.contact-block {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
  margin: 0.2rem 0 0;
}

.resource-desc {
  margin: -0.3rem 0 0;
  color: var(--teal);
  font-size: 0.9rem;
}

.preview-column {
  position: sticky;
  top: 1rem;
}

.preview-scroll,
.syntax-scroll,
.review-scroll,
.inbox-scroll {
  overflow: auto;
  max-height: min(70vh, 720px);
}

.preview-scroll {
  margin-top: 1rem;
  border-radius: 14px;
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-scroll pre,
.syntax-scroll {
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.syntax-scroll {
  background: var(--code-bg);
  border-radius: 14px;
  max-height: min(55vh, 560px);
}

.review-scroll-wrap,
.inbox-scroll-wrap {
  padding: 0 clamp(1.2rem, 4vw, 3rem) 2rem;
}

.review-scroll,
.inbox-scroll {
  max-width: 920px;
  max-height: min(72vh, 800px);
  padding-right: 0.4rem;
  display: grid;
  gap: 1rem;
}

.review-block {
  padding: 1.2rem 1.3rem;
}

.review-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.meta-grid.dense {
  grid-template-columns: 1fr;
}

.meta-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.meta-grid dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  word-break: break-word;
}

.notes {
  white-space: pre-wrap;
  color: var(--muted);
}

.order-id code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(20, 32, 24, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.review-foot {
  padding: 0 clamp(1.2rem, 4vw, 3rem) 3rem;
  color: var(--muted);
}

.review-foot a {
  color: var(--accent-deep);
  font-weight: 700;
}

.auth-panel {
  max-width: 420px;
}

.auth-form {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.form-error {
  color: #9b1c1c;
  font-weight: 600;
}

.customer-chip {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.order-stage.is-register .preview-column {
  display: none;
}

.register-panel {
  max-width: 40rem;
}

.register-head p:last-child {
  max-width: 36rem;
}

.register-steps {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.register-steps strong {
  font-weight: 650;
}

.register-wheel-wrap {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.register-wheel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.register-soon {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.register-done {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 0.35rem 0 0.15rem;
}

.register-done-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.register-done-copy {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

#register .hayabusa-wheel-shell {
  min-height: 0;
  padding: 0.35rem 0 0.5rem;
}

#register .hayabusa-wheel-shell.no-intro {
  gap: 0;
}

.inbox-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.inbox-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.transfer-flash {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 101, 0.28);
  background: rgba(31, 111, 101, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
}

.inbox-transfer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin-top: 0.85rem;
}

.inbox-transfer-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 12rem;
  flex: 1 1 14rem;
}

.inbox-transfer-copy strong {
  font-family: var(--font-display, var(--font-sans));
  font-size: 0.95rem;
}

.inbox-transfer-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.inbox-transfer-file {
  flex: 1 1 12rem;
  min-width: 11rem;
}

.inbox-transfer-file input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
}

.inbox-transfer-overwrite {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.inbox-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.stat-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 5.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.stat-chip.is-active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 101, 0.25);
}

.staff-apps {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.staff-apps-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.staff-apps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.staff-app-link {
  display: grid;
  gap: 0.15rem;
  min-width: 9.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.staff-app-link:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.staff-app-link strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.staff-app-link span {
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.order-row-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.order-row.is-new .order-row-body {
  border-color: rgba(196, 92, 38, 0.45);
}

.order-row.is-urgent .order-row-body {
  border-color: rgba(155, 28, 28, 0.45);
}

.order-row.is-expedited .order-row-body {
  border-color: rgba(196, 92, 38, 0.35);
}

.order-row-link {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.order-row-main,
.order-row-meta,
.order-row-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.order-row-main strong {
  font-family: var(--font-display);
}

.order-row-meta,
.order-kind {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-row-foot {
  font-size: 0.82rem;
  color: var(--muted);
}

.order-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.assigned-you {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.assigned-other {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: rgba(20, 32, 24, 0.08);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.badge-new,
.badge.badge-new {
  background: var(--accent);
  color: white;
}

.badge-paid,
.badge.badge-paid {
  background: rgba(31, 111, 101, 0.18);
  color: var(--teal);
}

.badge-waived,
.badge.badge-waived {
  background: rgba(120, 120, 120, 0.15);
  color: #555;
}

.badge-unpaid,
.badge.badge-unpaid {
  background: rgba(180, 80, 40, 0.15);
  color: #8a3b12;
}

.badge-claimed,
.badge.badge-claimed {
  background: rgba(31, 111, 101, 0.15);
  color: var(--teal);
}

.badge.status-in_progress {
  background: rgba(31, 111, 101, 0.18);
  color: var(--teal);
}

.badge.status-fulfilled {
  background: rgba(31, 111, 101, 0.25);
  color: #0d4f48;
}

.badge.status-cancelled {
  background: rgba(155, 28, 28, 0.12);
  color: #9b1c1c;
}

.badge.priority-urgent {
  background: rgba(155, 28, 28, 0.15);
  color: #9b1c1c;
}

.badge.priority-expedited {
  background: rgba(196, 92, 38, 0.15);
  color: var(--accent-deep);
}

.btn.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.staff-actions {
  max-width: 920px;
  margin: 0 clamp(1.2rem, 4vw, 3rem) 1rem;
  padding: 1.2rem 1.3rem;
}

.staff-actions h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.staff-actions h2 + .hint + form,
.staff-actions h2:not(:first-child) {
  margin-top: 1.2rem;
}

.action-row,
.status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.status-form .field {
  margin: 0;
  min-width: 12rem;
}

.stat-chip.has-alert {
  border-color: rgba(155, 28, 28, 0.45);
}

.inbox-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.inbox-toolbar .field.grow {
  min-width: 0;
}

.sla-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-row.is-sla-warning .order-row-body {
  border-color: rgba(196, 92, 38, 0.55);
  box-shadow: inset 4px 0 0 rgba(196, 92, 38, 0.75);
}

.order-row.is-sla-critical .order-row-body {
  border-color: rgba(155, 28, 28, 0.55);
  box-shadow: inset 4px 0 0 rgba(155, 28, 28, 0.85);
}

.badge.sla-warning {
  background: rgba(196, 92, 38, 0.18);
  color: var(--accent-deep);
}

.badge.sla-critical {
  background: rgba(155, 28, 28, 0.18);
  color: #9b1c1c;
}

.badge.badge-age {
  background: rgba(20, 32, 24, 0.06);
  color: var(--muted);
}

.badge.badge-notes {
  background: rgba(31, 111, 101, 0.12);
  color: var(--teal);
}

.sla-banner {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}

.sla-banner.sla-warning {
  background: rgba(196, 92, 38, 0.12);
  color: var(--accent-deep);
}

.sla-banner.sla-critical {
  background: rgba(155, 28, 28, 0.12);
  color: #9b1c1c;
}

.staff-notes-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.staff-note {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.staff-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.note-form textarea {
  width: 100%;
}

.empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

@media (max-width: 720px) {
  .inbox-toolbar {
    grid-template-columns: 1fr;
  }
}

.empty {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .order-stage {
    grid-template-columns: 1fr;
  }

  .preview-column {
    position: static;
  }

  .preview-scroll {
    max-height: 40vh;
  }
}

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

  .btn:hover {
    transform: none;
  }
}

/* Tab 5 · Billing / Tab 6 · Checkout */
.order-stage.is-billing {
  grid-template-columns: 1fr;
}

.order-stage.is-billing .preview-column {
  display: none;
}

.billing-summary,
.checkout-card {
  margin-top: 0.35rem;
  max-width: 44rem;
}

.billing-empty {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 252, 246, 0.96), rgba(247, 244, 238, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.billing-empty-mark {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(31, 111, 101, 0.28);
  border-radius: 999px;
  background: rgba(31, 111, 101, 0.08);
}

.billing-empty-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.billing-empty > p:not(.billing-empty-title) {
  margin: 0 auto 1.15rem;
  max-width: 28rem;
  color: var(--muted);
}

.billing-body {
  display: grid;
  gap: 1rem;
}

.billing-receipt {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 241, 234, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.billing-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(196, 92, 38, 0.1), transparent 55%),
    rgba(255, 252, 246, 0.65);
}

.billing-receipt-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.billing-receipt-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.billing-group {
  margin: 0;
  padding: 1rem 1.25rem 0.35rem;
}

.billing-group + .billing-group {
  border-top: 1px dashed rgba(20, 32, 24, 0.12);
}

.billing-group h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.billing-kind-num {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
}

.billing-lines {
  list-style: none;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
}

.billing-line {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(20, 32, 24, 0.08);
}

.billing-group .billing-line:last-child {
  border-bottom: none;
}

.billing-line-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.billing-line-main strong {
  font-weight: 700;
  color: var(--ink);
}

.billing-line-main .cart-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.billing-line-meta {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

.billing-line-meta strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.billing-totals {
  margin: 0.35rem 0 0;
  padding: 1rem 1.25rem 1.2rem;
  border-top: 2px solid rgba(20, 32, 24, 0.12);
  display: grid;
  gap: 0.55rem;
  background: rgba(31, 111, 101, 0.04);
}

.billing-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.billing-total-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.billing-total-row.muted {
  font-size: 0.88rem;
}

.billing-total-row.grand {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(20, 32, 24, 0.16);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.billing-total-row.grand strong {
  color: var(--accent-deep);
  font-size: 1.2rem;
}

.billing-aside {
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(31, 111, 101, 0.07);
}

.billing-aside strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--ink);
}

.billing-aside p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.billing-body > .btn.wide {
  justify-self: stretch;
}

.checkout-card {
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 252, 246, 0.98), rgba(247, 244, 238, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.checkout-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checkout-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(20, 32, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.7);
}

.checkout-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 6px 14px rgba(196, 92, 38, 0.28);
}

.checkout-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
}

.checkout-steps p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}


.checkout-order-number {
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(31, 111, 101, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(31, 111, 101, 0.1), rgba(196, 92, 38, 0.08)),
    rgba(255, 252, 246, 0.85);
  text-align: center;
}

.checkout-order-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.checkout-order-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.checkout-order-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.checkout-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(196, 92, 38, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
}

.checkout-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

a.btn.is-disabled,
a.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .billing-line {
    flex-direction: column;
    gap: 0.45rem;
  }

  .billing-line-meta {
    justify-items: start;
  }

  .billing-receipt-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
