:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #1d5fd8;
  --accent-strong: #174ea6;
  --accent-soft: #edf4ff;
  --warning: #9a5b00;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
  --shadow-soft: 0 4px 12px rgba(16, 24, 40, 0.04);
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.ambient {
  display: none;
}

.topbar,
.main-layout {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(0px, env(safe-area-inset-top));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.brand-name,
.brand-tag,
.eyebrow,
.mini-label,
.mini-value,
.summary-kicker,
.summary-label,
.summary-note,
.section-eyebrow,
.status-text,
.price-label,
.lookup-order-label,
.detail-row span,
.result-item span,
.progress-label {
  margin: 0;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-tag {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-button,
.primary-button,
.action-card,
.payment-option {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.primary-button:hover,
.action-card:hover,
.payment-option:hover {
  transform: translateY(-1px);
}

@media (hover: none) {
  .ghost-button:hover,
  .primary-button:hover,
  .action-card:hover,
  .payment-option:hover {
    transform: none;
  }
}

.ghost-button {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-button {
  padding: 13px 22px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 95, 216, 0.16);
}

.main-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.view {
  display: none;
  animation: fade-in 300ms ease;
}

.view.active {
  display: block;
}

.hero-card,
.wizard-shell,
.status-card,
.lookup-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: stretch;
  gap: 34px;
  padding: 40px;
  border-radius: var(--radius-xl);
}

.eyebrow,
.section-eyebrow,
.summary-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 16px;
  max-width: 16ch;
  font-size: 3.05rem;
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.slogan-chip,
.story-label,
.status-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: #f2f4f7;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 34rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notice-bar {
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.6;
}

.footer-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: #101828;
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.footer-ad strong {
  font-size: 1rem;
}

.footer-ad span {
  color: rgba(247, 251, 250, 0.78);
  line-height: 1.6;
}

.hero-note {
  margin: 16px 0 0;
  color: #8a94a6;
  font-size: 0.9rem;
  line-height: 1.75;
}

.hero-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.promise-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  background: #f9fafb;
  box-shadow: inset 0 0 0 1px var(--line);
}

.promise-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.promise-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-panel {
  display: grid;
  align-content: stretch;
  gap: 14px;
}

.action-card {
  display: flex;
  min-height: 152px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: left;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.action-card.muted {
  background: #f9fafb;
}

.action-icon {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.action-title {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0;
}

.action-text {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.home-meta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.compact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 15px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-soft);
}

.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.mini-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.04);
}

.mini-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  min-width: 0;
}

.mini-inline + .mini-inline {
  position: relative;
}

.mini-inline + .mini-inline::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(20, 33, 58, 0.08);
  transform: translateY(-50%);
}

.mini-inline-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-inline-value {
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0;
}

.story-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-soft);
}

.story-card-accent {
  background: #fff;
  color: var(--text);
}

.story-card-accent .story-label {
  background: #f2f4f7;
  color: var(--accent-strong);
}

.story-card-light {
  background: #fff;
}

.story-card h3 {
  margin: 12px 0 8px;
  font-size: 1.02rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.story-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
}

.scene-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.scene-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.scene-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.scene-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.mini-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-value {
  margin-top: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.progress-wrap {
  flex: 1;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
}

.progress-bar {
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.wizard-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  align-items: start;
}

.summary-panel,
.form-panel,
.status-card,
.lookup-shell {
  border-radius: var(--radius-lg);
}

.summary-panel {
  padding: 24px;
  background: #f8fafc;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.summary-panel h2 {
  margin: 12px 0 18px;
  font-size: 1.42rem;
  line-height: 1.32;
}

.summary-block {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-label,
.summary-note {
  color: var(--muted);
}

.fee-value {
  margin: 10px 0 0;
  font-size: 1.95rem;
  font-weight: 800;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pill.subtle {
  background: #eef2f6;
  color: #344054;
}

.summary-note {
  margin-top: 18px;
  line-height: 1.8;
}

.form-panel {
  padding: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.section-heading h3 {
  margin: 10px 0 8px;
  font-size: 1.36rem;
  letter-spacing: -0.02em;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.section-heading.compact h3 {
  font-size: 1.5rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.form-message,
.inline-note {
  margin: 0;
  color: var(--warning);
  line-height: 1.6;
}

.form-message {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(179, 107, 0, 0.08);
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  font-size: 0.94rem;
  font-weight: 700;
  color: #334155;
}

.field input,
.field select,
.field textarea,
.lookup-inputs input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.lookup-inputs input:focus {
  border-color: rgba(36, 87, 245, 0.34);
  box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.08);
}

.field textarea {
  resize: vertical;
  line-height: 1.65;
}

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

.field-label-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.field-label-row > span,
.field > span {
  font-size: 0.94rem;
  font-weight: 700;
  color: #334155;
}

.text-button,
.icon-button,
.chip-list button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.stacked-fields {
  display: grid;
  gap: 10px;
}

.package-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
}

.icon-button {
  min-height: 48px;
  border-radius: var(--radius-md);
  background: #f2f4f7;
  color: #344054;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.2rem;
  font-weight: 800;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: #344054;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
}

.chip-list button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.field-full {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.7;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.disclaimer-field {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(36, 87, 245, 0.06);
  box-shadow: inset 0 0 0 1px rgba(36, 87, 245, 0.1);
}

.notice-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.07);
  color: #7f1d1d;
  font-size: 0.92rem;
  line-height: 1.65;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.13);
}

.price-board,
.result-grid,
.lookup-details {
  display: grid;
  gap: 14px;
}

.price-board {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.price-board > div,
.result-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 253, 0.98);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.05), 0 3px 10px rgba(15, 23, 42, 0.025);
}

.price-number {
  margin: 8px 0 0;
  font-size: 1.14rem;
  font-weight: 800;
}

.price-number.total {
  color: var(--accent);
}

.wizard-actions,
.payment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hidden {
  display: none !important;
}

.status-card,
.lookup-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  min-width: 0;
}

.status-card.success {
  background: rgba(255, 255, 255, 0.96);
}

.status-chip {
  background: rgba(36, 87, 245, 0.1);
  color: var(--accent);
}

.success-chip {
  background: rgba(36, 87, 245, 0.1);
}

.warn-chip {
  background: rgba(179, 107, 0, 0.12);
  color: var(--warning);
}

.status-card h2 {
  margin: 14px 0 8px;
  font-size: 1.64rem;
  letter-spacing: -0.02em;
}

.status-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
}

.payment-options {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

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

.payment-summary > div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.payment-summary span,
.confirm-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.payment-summary strong,
.confirm-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.05rem;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}

.payment-option.selected {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(29, 95, 216, 0.28);
}

.result-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.result-item strong,
.detail-row strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.lookup-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  margin-top: 26px;
}

.lookup-inputs > * {
  min-width: 0;
}

.lookup-card {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 253, 0.98);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.07), var(--shadow-soft);
}

.invoice-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 58, 0.06);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
}

.modal-panel {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h3 {
  margin: 10px 0 8px;
  font-size: 1.28rem;
}

.modal-panel p:not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.modal-agreement {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
}

.modal-panel .primary-button {
  margin-top: 20px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions .primary-button,
.modal-actions .ghost-button {
  margin-top: 0;
}

.confirm-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.confirm-summary > div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.compact-fields {
  margin-top: 16px;
}

.compact-actions {
  margin-top: 14px;
}

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

.lookup-header h4 {
  margin: 8px 0 0;
  font-size: 1.3rem;
}

.lookup-details {
  margin-top: 18px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 33, 58, 0.08);
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-card,
  .wizard-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    gap: 26px;
    padding: 34px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 2.7rem;
  }

  .hero-text {
    max-width: 44rem;
  }

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

  .action-card {
    min-height: 150px;
  }

  .brand-story {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    order: 2;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .flow-header,
  .wizard-actions,
  .payment-actions,
  .lookup-header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    margin-bottom: 18px;
    align-items: center;
    flex-direction: row;
  }

  .brand-lockup {
    min-width: 0;
    gap: 12px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    display: none;
  }

  .ghost-button {
    min-height: 42px;
    padding: 10px 14px;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .topbar-actions .ghost-button {
    width: auto;
    min-width: 54px;
  }

  .hero-panel,
  .info-strip,
  .brand-story,
  .field-grid,
  .price-board,
  .result-grid,
  .lookup-inputs,
  .payment-summary {
    grid-template-columns: 1fr;
  }

  .hero-card {
    gap: 22px;
    padding: 22px;
  }

  .hero-copy h1 {
    margin: 14px 0;
    font-size: 2.08rem;
    line-height: 1.18;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.82;
  }

  .notice-bar {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
  }

  .slogan-chip {
    max-width: 100%;
  }

  .hero-promise {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .promise-item {
    width: 100%;
  }

  .action-card {
    min-height: 132px;
    padding: 20px;
  }

  .action-icon {
    margin-bottom: 16px;
  }

  .home-meta {
    margin-top: 12px;
  }

  .compact-strip {
    display: grid;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .mini-inline {
    align-items: flex-start;
  }

  .mini-inline + .mini-inline::before {
    display: none;
  }

  .footer-ad {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .wizard-shell,
  .form-panel,
  .status-card,
  .lookup-shell {
    padding: 18px;
    border-radius: var(--radius-xl);
  }

  .payment-option,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-label-row,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .field-label-actions {
    justify-content: flex-start;
  }

  .package-code-row {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    font-size: 1.86rem;
  }

  .section-heading h3,
  .status-card h2,
  .lookup-header h4 {
    overflow-wrap: anywhere;
  }

  .hero-card,
  .wizard-shell,
  .form-panel,
  .status-card,
  .lookup-shell {
    padding: 16px;
  }

  .action-card {
    min-height: 122px;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 28px;
    padding: 34px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }
}
