/* ieGlobal B2B — lean stylesheet reused from CRM visual language (tokens + form chrome). */

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #1c1c1e;
  --bg-elevated-2: #2c2c2e;
  --surface: rgba(28, 28, 30, 0.78);
  --surface-solid: #1c1c1e;
  --ink: #f5f5f7;
  --ink-secondary: #ebebf5;
  --muted: #aeaeb2;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.10);
  --accent: #0a84ff;
  --accent-press: #409cff;
  --ok: #30d158;
  --warn: #ffd60a;
  --danger: #ff453a;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --fw: 400;
  --fw-med: 500;
  --fw-semi: 540;
  --fw-strong: 600;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-press: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-micro: 120ms;
  --dur-state: 200ms;
  --btn-radius: var(--radius-sm);
  --btn-radius-seg: 10px;
  --btn-radius-seg-item: 8px;
  --btn-chip-radius: var(--radius-sm);
  --btn-icon-radius: 9px;
  --btn-h: 44px;
  --btn-h-sm: 34px;
  --btn-pad-y: 12px;
  --btn-pad-x: 18px;
  --btn-fs: 0.95rem;
  --btn-fs-sm: 0.8125rem;
  --btn-primary-bg: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 88%, #fff 12%),
    var(--accent) 52%,
    color-mix(in srgb, var(--accent) 90%, #000 10%)
  );
  --btn-primary-bg-hover: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-press) 86%, #fff 14%),
    var(--accent-press) 52%,
    color-mix(in srgb, var(--accent-press) 88%, #000 12%)
  );
  --btn-primary-border: color-mix(in srgb, var(--accent) 72%, #000 28%);
  --btn-primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.36),
    0 6px 16px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(10, 132, 255, 0.14);
  --btn-primary-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.32),
    0 3px 8px rgba(10, 132, 255, 0.18);
  --btn-ghost-bg: var(--bg-elevated-2);
  --btn-ghost-border: var(--line-strong);
  --btn-ghost-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --btn-focus-ring: 0 0 0 3px rgba(10, 132, 255, 0.24);
  --btn-disabled-opacity: 0.45;
  --btn-disabled-fg: rgba(235, 235, 245, 0.42);
  --btn-disabled-bg: rgba(58, 58, 60, 0.55);
  --btn-seg-track: #2c2c2e;
  --btn-seg-on: color-mix(in srgb, var(--accent) 94%, #fff 6%);
  --btn-seg-on-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.28);
  --product-qty-row-h: 40px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: var(--fw);
  letter-spacing: 0.005em;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }

/* —— Layout shells —— */
.page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.page-narrow {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-height: 100dvh;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 8px 0;
}

.logo-hero {
  width: min(200px, 56vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.home-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.home-choice-stack .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.pin-reveal {
  margin: 18px auto 8px;
  max-width: 220px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgba(10, 132, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  font-weight: var(--fw-strong);
  letter-spacing: 0.28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Invite: success (no raw PIN) + contact-us */
.invite-success-badge {
  margin: 18px auto 8px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: var(--btn-radius-seg-item, 8px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: rgba(10, 132, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
}

.invite-contact-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--btn-radius-seg-item, 8px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.invite-contact-label {
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.invite-contact-list a {
  font-size: 0.95rem;
  font-weight: var(--fw-med);
  color: var(--accent-press);
  text-decoration: none;
}

.invite-contact-list a:hover {
  color: #fff;
}

.invite-wa-qr {
  margin: 16px auto 0;
  padding: 12px;
  max-width: 240px;
  text-align: center;
  border-radius: var(--btn-radius-seg-item, 8px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.invite-wa-qr img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.invite-wa-qr figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Auth / landing card (CRM .proto-auth-card) */
.proto-auth-card {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border-radius: var(--btn-radius, var(--radius-sm));
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: var(--ink, #f5f5f7);
}

.proto-auth-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.proto-auth-hint,
.muted {
  margin: 0;
  color: #d1d1d6;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* —— Labels / fields —— */
.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e5e5ea;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--btn-radius-seg-item, 8px); /* CRM squircle — avoid oval/pill read */
  font-size: 16px;
  background: var(--bg-elevated-2);
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.field::placeholder { color: #a1a1a6; }

.field:focus {
  outline: none;
  border-color: var(--accent);
  /* background-color only — keep .is-filled-ok check image on focus */
  background-color: #3a3a3c;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.22);
}

textarea.field.area {
  min-height: 88px;
  resize: vertical;
  line-height: 1.4;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  min-height: var(--btn-h);
  color-scheme: dark;
}

.field.error,
textarea.field.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.16);
}

input[type="file"].field {
  padding: 12px;
  font-size: 0.875rem;
  cursor: pointer;
}

input[type="file"].field::file-selector-button {
  appearance: none;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 8px;
  background: var(--btn-ghost-bg);
  color: var(--ink);
  padding: 6px 12px;
  margin-right: 12px;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  width: 100%;
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: var(--btn-h);
  font-weight: var(--fw-med);
  font-size: var(--btn-fs);
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  margin-top: 10px;
  color: var(--ink);
  background: var(--btn-ghost-bg);
  box-shadow: var(--btn-ghost-shadow);
  transition:
    transform var(--dur-micro) var(--ease-press),
    opacity var(--dur-state) var(--ease),
    background var(--dur-state) var(--ease),
    border-color var(--dur-state) var(--ease),
    box-shadow var(--dur-state) var(--ease),
    filter var(--dur-state) var(--ease),
    color var(--dur-state) var(--ease);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:hover {
  background: color-mix(in srgb, var(--bg-elevated-2) 70%, #3a3a3c 30%);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring), var(--btn-ghost-shadow);
}

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

.btn.primary:hover {
  background: var(--btn-primary-bg-hover);
  border-color: var(--btn-primary-border);
  color: #fff;
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn.primary:focus-visible {
  box-shadow: var(--btn-focus-ring), var(--btn-primary-shadow);
}

.btn.ghost {
  background: var(--btn-ghost-bg);
  color: var(--ink);
  border: 1px solid var(--btn-ghost-border);
  box-shadow: var(--btn-ghost-shadow);
}

.btn:disabled,
.btn:disabled:hover {
  opacity: var(--btn-disabled-opacity);
  color: var(--btn-disabled-fg);
  background: var(--btn-disabled-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn.small {
  width: auto;
  min-height: var(--btn-h-sm);
  padding: 6px 12px;
  font-size: var(--btn-fs-sm);
  margin: 0;
}

/* —— New-customer sections (CRM .nc-*) —— */
.nc-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.nc-section:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.nc-section-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.nc-section .label { margin-top: 10px; }
.nc-section .label:first-child,
.nc-section .nc-section-title + .label { margin-top: 0; }

.nc-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .nc-row2 { grid-template-columns: 1fr; }
}

.nc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}

input[type="checkbox"]:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.45);
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.nc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}


.nc-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nc-section-title {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.label-row .label { margin-top: 0; }

.smart-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: var(--btn-radius-seg-item, 8px); /* compact squircle — not stadium pill */
  min-height: 28px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: var(--fw-med);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--dur-micro) var(--ease-press),
    border-color var(--dur-micro) var(--ease-press),
    color var(--dur-micro) var(--ease-press),
    transform var(--dur-micro) var(--ease-press),
    box-shadow var(--dur-micro) var(--ease-press);
  white-space: nowrap;
}

.smart-chip:hover {
  color: var(--ink);
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.1);
}

.smart-chip:active { transform: scale(0.97); }

.smart-chip.is-on {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 72%, #000 28%);
  background: color-mix(in srgb, var(--accent) 88%, #000 12%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.smart-chip:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.field.is-skipped,
.field:disabled {
  opacity: 0.42;
  filter: grayscale(0.35);
  cursor: not-allowed;
  background: rgba(58, 58, 60, 0.45);
  color: var(--btn-disabled-fg);
}

.is-skipped-block {
  opacity: 0.42;
  filter: grayscale(0.3);
  pointer-events: none;
}

#adminBlock.is-copied {
  opacity: 0.72;
}

.chip-hint {
  color: var(--accent-press);
  margin-top: 6px;
}

.req::after {
  content: " *";
  color: var(--danger);
}

/* Registration — phone card composition */
/* Registration — phone card composition (~460px) */
.page-reg {
  width: min(480px, 100%);
  padding: 16px 14px 48px;
  --dur-view: 0.28s;
  --ease-view: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-reg.is-page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-reg.is-page-enter.is-page-ready {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.34s var(--ease-view),
    transform 0.34s var(--ease-view);
}

.page-reg.is-page-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s var(--ease-view),
    transform 0.22s var(--ease-view);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-reg.is-page-enter,
  .page-reg.is-page-enter.is-page-ready,
  .page-reg.is-page-leaving {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.reg-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 16px 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.reg-card h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.02em;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
}

.reg-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reg-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.reg-logo-link {
  display: block;
  line-height: 0;
}

.reg-head .logo-hero {
  width: min(132px, 42vw);
}

.reg-head-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reg-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: var(--fw-med);
  color: var(--ok);
  white-space: nowrap;
  flex: 0 0 auto;
}

.reg-saved[hidden] {
  display: none !important;
}

.reg-saved-check {
  width: 14px;
  height: 14px;
  border-radius: 4px; /* CRM squircle — never oval / 50% */
  background: var(--ok);
  position: relative;
  flex: 0 0 auto;
}

.reg-saved-check::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* —— Application progress card —— */
.reg-progress-summary {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.reg-progress-heading {
  margin-bottom: 12px;
}

.reg-progress-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.reg-progress-count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: var(--fw-med);
  color: var(--muted);
  letter-spacing: -0.01em;
}

.reg-progress-em {
  color: var(--accent-press);
  font-weight: var(--fw-semi);
}

.reg-step-dots {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.reg-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 0;
}

.reg-step-dot-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--btn-radius-seg-item, 8px); /* squircle, not circle */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--muted);
}

.reg-step-dot.is-current .reg-step-dot-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.reg-step-dot.is-done .reg-step-dot-mark,
.reg-step-dot-mark.is-check {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.reg-step-dot-mark.is-check::before {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translateY(-1px);
}

.reg-step-dot-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.reg-step-dot.is-current .reg-step-dot-label {
  color: var(--accent-press);
}

.reg-step-dot.is-done .reg-step-dot-label {
  color: color-mix(in srgb, var(--ok) 80%, var(--muted));
}

.reg-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reg-progress {
  flex: 1 1 auto;
  height: 4px;
  border-radius: 2px; /* thin track — no 999px stadium token */
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.reg-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.28s var(--ease);
}

.reg-progress-pct {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.4em;
  text-align: right;
}

.reg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.reg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  min-width: 0;
}

.reg-stat-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--btn-icon-radius, 9px); /* squircle — not oval */
  position: relative;
  margin-bottom: 1px;
}

.reg-stat--done .reg-stat-icon {
  background: var(--ok);
}

.reg-stat--done .reg-stat-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.reg-stat--current .reg-stat-icon {
  background: var(--accent);
}

.reg-stat--current .reg-stat-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.35);
}

.reg-stat--remain .reg-stat-icon {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.reg-stat-n {
  font-size: 1.1rem;
  font-weight: var(--fw-strong);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.reg-stat-l {
  font-size: 0.68rem;
  font-weight: var(--fw-med);
  color: var(--muted);
  letter-spacing: 0.01em;
}

.reg-stat--done {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line) 65%);
  background: rgba(48, 209, 88, 0.08);
}

.reg-stat--done .reg-stat-n { color: var(--ok); }

.reg-stat--current {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  background: rgba(10, 132, 255, 0.1);
}

.reg-stat--current .reg-stat-n { color: var(--accent-press); }

.reg-stat--remain .reg-stat-n { color: var(--muted); }

/* —— Application assistant —— */
.reg-assistant {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.reg-assistant[hidden] {
  display: none !important;
}

.reg-assistant-head {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  cursor: pointer;
  text-align: left;
}

.reg-assistant-spark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%, #ffd60a 0 2px, transparent 2.5px),
    conic-gradient(from 0deg, transparent 0 20%, #ffd60a 0 30%, transparent 0 70%, #ffd60a 0 80%, transparent 0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(255, 214, 10, 0.35));
}

.reg-assistant-title {
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.reg-assistant-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--btn-radius-seg-item, 8px); /* CRM: never stadium / oval badge */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: var(--fw-semi);
  color: #fff;
  background: var(--accent);
}

.reg-assistant-chevron {
  width: 10px;
  height: 10px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(-135deg);
  margin-left: 2px;
  transition: transform 0.18s var(--ease);
}

.reg-assistant.is-collapsed .reg-assistant-chevron {
  transform: rotate(45deg);
  margin-top: -4px;
}

.reg-assistant-body {
  padding: 0 12px 12px;
}

.reg-assistant-body[hidden] {
  display: none !important;
}

.reg-assistant-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-assistant-tip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.reg-tip-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reg-tip-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  margin-top: 1px;
}

.reg-tip-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.reg-tip-title {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.reg-tip-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.reg-tip-action {
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent-press);
  font: inherit;
  font-size: 0.84rem;
  font-weight: var(--fw-med);
  cursor: pointer;
  text-align: center;
}

.reg-tip-action:hover {
  background: rgba(10, 132, 255, 0.16);
}

.reg-assistant-viewall {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-press);
  font: inherit;
  font-size: 0.82rem;
  font-weight: var(--fw-med);
  cursor: pointer;
}

.reg-assistant-viewall:hover {
  color: #7ab8ff;
}

/* —— Step cards —— */
#regForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-acc {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin: 0;
  overflow: hidden;
  transition:
    border-color var(--dur-state) var(--ease),
    opacity var(--dur-state) var(--ease),
    background var(--dur-state) var(--ease);
}

.reg-acc.is-current {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(10, 132, 255, 0.05);
}

.reg-acc.is-done {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.reg-acc.is-locked {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.06);
}

.reg-acc-head {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  cursor: pointer;
  text-align: left;
}

.reg-acc-head:disabled {
  cursor: not-allowed;
}

.reg-acc-head:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(10, 132, 255, 0.35);
}

.reg-acc-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--btn-radius-seg-item, 8px); /* squircle step mark — not oval */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: var(--fw-semi);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.reg-acc.is-current .reg-acc-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.reg-acc.is-locked .reg-acc-mark {
  color: #8e8e93;
  border-color: rgba(255, 255, 255, 0.12);
}

.reg-acc-mark.is-check {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.reg-acc-mark.is-check::before {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.reg-acc-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-acc-title {
  font-size: 0.98rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.reg-acc-status {
  font-size: 0.78rem;
  font-weight: var(--fw-med);
  color: var(--muted);
}

.reg-acc.is-current .reg-acc-status {
  color: var(--accent-press);
}

.reg-acc.is-done .reg-acc-status {
  color: var(--ok);
}

.reg-acc-status.is-missing {
  color: var(--danger) !important;
}

.reg-acc-status.is-missing::before {
  content: "! ";
  font-weight: var(--fw-strong);
}

.reg-acc-chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.18s var(--ease);
}

.reg-acc.is-current .reg-acc-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--accent-press);
}

.reg-acc-body {
  padding: 4px 14px 14px;
  border-top: 1px solid var(--line);
}

.reg-acc-body[hidden] {
  display: none;
}

.reg-acc-body .nc-section-title {
  margin: 4px 0 0;
}

.reg-acc-body .label-row {
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 0;
  min-height: 28px;
}

.reg-acc-body .label-row .label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.reg-acc-body .label-row .smart-chip {
  flex: 0 0 auto;
}

.reg-acc-body .label {
  margin: 0 0 7px;
}

/* Green check / red error — shared B2B fill logic (reg, login/home, invite, forms) */
.field.is-filled-ok:not([type="file"]):not([type="checkbox"]):not(select) {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='0.5' y='0.5' width='15' height='15' rx='4' fill='%2330d158'/><path d='M4.6 8.2l2.1 2.1 4.7-4.7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

textarea.field.is-filled-ok {
  background-position: right 12px top 14px;
}

select.field.is-filled-ok {
  border-color: rgba(48, 209, 88, 0.55);
}

.reg-step-actions {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: stretch;
}

.reg-step-actions .btn {
  margin-top: 0;
  width: 100%;
}

.reg-step-actions .reg-btn-back {
  grid-column: 1;
}

.reg-step-actions .reg-btn-continue,
.reg-step-actions #submitBtn {
  grid-column: 2;
}

.reg-step-actions .reg-step-msg {
  grid-column: 1 / -1;
  order: -1;
  text-align: left;
  margin: 0 0 4px;
}

.reg-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 18px;
}

.reg-review-block {
  padding: 12px 12px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.reg-review-block h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.reg-review-block dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-review-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.reg-review-row dt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.reg-review-row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}

input[type="checkbox"]:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.45);
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
}

.nc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}

.msg {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }

.success-panel {
  text-align: center;
  padding: 24px 8px 12px;
}

.success-panel h2 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  font-weight: var(--fw-semi);
  color: var(--ok);
}

.success-panel p {
  margin: 0;
  color: var(--muted);
}

.req::after {
  content: " *";
  color: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 720px) {
  .page { padding: 28px 24px 64px; }
  .reg-card { padding: 24px 28px 28px; }
}

/* —— Home landing (B2B) —— */
/* Phone-width content column centered on full-bleed atmosphere */
.page-home {
  --home-pad-x: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --home-pad-top: max(8px, env(safe-area-inset-top, 0px));
  --home-pad-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding:
    var(--home-pad-top)
    max(16px, env(safe-area-inset-right, 0px))
    var(--home-pad-bottom)
    max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  overflow-x: visible;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  min-height: 36px;
}

.home-top-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.home-brand-logo {
  width: auto;
  height: 28px;
  display: block;
}

.home-brand-b2b {
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  color: var(--accent-press);
  letter-spacing: 0.04em;
}

.home-lang {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  min-height: 32px;
  min-width: 0;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.74rem;
  font-weight: var(--fw-med);
  cursor: default;
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  max-width: none;
  position: relative;
  z-index: 5;
}

.home-lang:disabled {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}

.home-lang-label {
  display: inline;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.01em;
}

.home-lang-globe {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
}

.home-lang-globe::before,
.home-lang-globe::after {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border: solid currentColor;
  border-width: 0 1px;
  opacity: 0.7;
}

.home-lang-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

/* Full-viewport sky — faint dotted world map (limb in-flow under trust; b2b-crmui50 density) */
body:has(.page-home) {
  background: #050b16;
}

.home-sky {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0a1628 0%, #07101c 28%, #050b14 55%, #02060c 78%, #000000 100%);
}

/* Subtle dotted world map — keep quiet vs logo (do not re-loud) */
.home-sky .proto-auth-map {
  position: absolute;
  inset: max(0px, env(safe-area-inset-top, 0px)) -28% auto;
  width: 156%;
  max-width: none;
  height: min(42vh, 360px);
  opacity: 0.24;
  object-fit: cover;
  object-position: 48% 36%;
  filter: brightness(0.86) contrast(1.0) saturate(0.7);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.12) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.12) 85%,
    transparent 100%
  );
}

.home-sky .proto-auth-glow,
.home-sky .proto-auth-horizon {
  display: none !important;
}

/* Kill broken CSS map art only — keep in-flow limb slot */
.home-hero-map,
.home-hero-atmosphere,
.b2b-auth-sky-map {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

/* Soft wide limb bloom BETWEEN trust and ask/cards — contained so it cannot widen scrollWidth */
.home-horizon-slot {
  position: relative;
  z-index: 0;
  width: calc(100% + 32px);
  max-width: none;
  margin: -2px -16px -4px;
  height: 34px;
  pointer-events: none;
  overflow: hidden;
}

.home-hero-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: 48px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 78% 70% at 50% 42%,
    rgba(10, 132, 255, 0.16) 0%,
    rgba(10, 132, 255, 0.05) 42%,
    transparent 74%
  );
  pointer-events: none;
}

.home-hero-horizon,
.home-hero-horizon-band {
  display: none !important;
}

.home-hero-horizon-svg {
  position: absolute;
  left: 50%;
  top: -8px;
  width: min(122%, 580px);
  height: 52px;
  transform: translateX(-50%);
  display: block;
  overflow: visible;
  pointer-events: none;
  opacity: 0.92;
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 0;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.home-hero--signin {
  gap: 10px;
}

.home-hero-brand,
.home-welcome,
.home-lead,
.home-trust,
.home-ask,
.home-card,
.home-secure,
.home-help {
  position: relative;
  z-index: 1;
}

.home-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
  width: fit-content;
}

.home-hero-logo {
  width: auto;
  height: clamp(36px, 9.5vw, 46px);
  display: block;
  filter: drop-shadow(0 5px 14px rgba(10, 132, 255, 0.32));
}

.home-hero-b2b {
  font-size: 0.7rem;
  font-weight: var(--fw-strong);
  color: var(--accent-press);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.28em;
  text-shadow: 0 0 18px rgba(10, 132, 255, 0.35);
}

.home-welcome {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: clamp(1.14rem, 4.1vw, 1.36rem);
  font-weight: var(--fw-strong);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.home-welcome-pre {
  color: rgba(255, 255, 255, 0.92);
  font-weight: var(--fw-med);
  font-size: 0.76em;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-welcome-brand {
  color: #5ac8ff;
  font-weight: var(--fw-strong);
  letter-spacing: -0.035em;
  text-shadow: 0 0 32px rgba(64, 156, 255, 0.4);
}

.home-lead {
  margin: 0;
  text-align: center;
  color: #d1d1d6;
  font-size: 0.76rem;
  line-height: 1.3;
  max-width: 36ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.home-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

.home-trust--row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4px 8px;
  width: fit-content;
  max-width: 72%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.home-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: var(--fw-med);
}

.home-trust--row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-height: 0;
  width: auto;
  max-width: 5.1rem;
  flex: 0 1 auto;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #d1d1d6;
  font-size: 0.56rem;
  font-weight: var(--fw-med);
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
}

.home-trust-ico {
  width: 14px;
  height: 14px;
  border-radius: 0;
  flex: 0 0 auto;
  position: relative;
  background: transparent;
  border: none;
}

.home-trust--row .home-trust-ico {
  width: 14px;
  height: 14px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5ac8ff;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-trust--row .home-trust-ico--ok {
  color: #30d158;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-trust--row .home-trust-ico--accent {
  color: #64d2ff;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-trust--row .home-trust-ico--mobile {
  color: #bf5af2;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-trust--row .home-trust-ico svg {
  display: block;
}

.home-trust--row .home-trust-ico::before,
.home-trust--row .home-trust-ico::after {
  content: none !important;
  display: none !important;
}

.home-signin-card {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(22, 22, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-home--signin {
  --home-pad-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  gap: 6px;
}

.page-home--signin .home-hero-brand {
  margin: 2px auto 0;
  gap: 6px;
}

.page-home--signin .home-hero-logo {
  height: clamp(42px, 11vw, 56px);
}

.home-trust-ico--secure {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: rgba(10, 132, 255, 0.18);
}

.home-trust-ico--secure::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 6px;
  height: 8px;
  border: 1.5px solid var(--accent-press);
  border-radius: 3px 3px 4px 4px;
  box-sizing: border-box;
}

.home-trust-ico--save {
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  background: rgba(48, 209, 88, 0.14);
}

.home-trust-ico--save::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 8px;
  height: 5px;
  border: 1.5px solid var(--ok);
  border-radius: 3px;
}

.home-trust-ico--mobile {
  border-color: color-mix(in srgb, #bf5af2 50%, transparent);
  background: rgba(191, 90, 242, 0.14);
}

.home-trust-ico--mobile::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: 1.5px solid #bf5af2;
  border-radius: 2px;
}

.home-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: var(--fw-med);
  position: relative;
  z-index: 1;
}

.home-ask::before,
.home-ask::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-strong);
}

.home-ask span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.home-card {
  padding: 9px 10px 8px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: #141416;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-card--existing {
  border-color: rgba(64, 156, 255, 0.32);
  box-shadow:
    0 0 12px rgba(10, 132, 255, 0.1),
    0 6px 16px rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.08), transparent 40%),
    #141416;
}

.home-card--apply {
  border-color: rgba(255, 255, 255, 0.04);
  border-width: 1px;
  background: #1c1c1e;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.home-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-card-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
}

.home-card-mark--user {
  background: color-mix(in srgb, var(--accent) 88%, #000 12%);
  border-color: var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}

.home-card-mark--user::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
  margin-top: -8px;
}

.home-card-mark--user::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 18px;
  height: 9px;
  border: 2px solid #fff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.home-card-mark--apply::before {
  content: "";
  width: 14px;
  height: 16px;
  border: 1.8px solid var(--muted);
  border-radius: 3px;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) center 5px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 8px / 8px 1.5px no-repeat;
  color: var(--muted);
}

.home-card-mark--apply::after {
  content: "+";
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 0.65rem;
  font-weight: var(--fw-strong);
  color: var(--accent-press);
  line-height: 1;
}

.home-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.home-card-copy h2 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-card-copy p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}

.home-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 1px;
  align-items: start;
}

.home-bullets li {
  position: relative;
  padding-left: 0;
  padding-top: 13px;
  font-size: 0.58rem;
  color: var(--ink-secondary);
  line-height: 1.15;
  text-align: center;
}

.home-bullets li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.28);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-sizing: border-box;
}

.home-bullets li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  margin-left: -1.5px;
  width: 3px;
  height: 5.5px;
  border: solid var(--accent-press);
  border-width: 0 1.4px 1.4px 0;
  transform: rotate(45deg);
}

.home-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 1px;
  align-items: start;
}

.home-meta li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1.15;
  text-align: center;
}

.home-meta-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 0;
  border-radius: 0;
  border: none;
  box-sizing: border-box;
  position: relative;
  color: #c7c7cc;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-meta-ico svg {
  display: block;
}

.home-meta-ico--time::before,
.home-meta-ico--cloud::before,
.home-meta-ico--phone::before,
.home-meta-ico--time::after,
.home-meta-ico--cloud::after,
.home-meta-ico--phone::after {
  content: none !important;
  display: none !important;
}

.home-meta-ico--time,
.home-meta-ico--cloud,
.home-meta-ico--phone {
  width: 14px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

.home-card-cta {
  margin-top: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  min-height: 30px;
  height: auto;
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.1;
}

.home-card-cta span {
  font-size: 0.9rem;
  line-height: 1;
}

.home-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  background: rgba(10, 132, 255, 0.035);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.66rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.home-secure:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.home-secure-ico {
  width: 12px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 0;
  border: none;
  box-sizing: border-box;
  position: relative;
  background: transparent;
  box-shadow: none;
}

.home-secure-ico::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 12px;
  border: 1.3px solid var(--accent-press);
  border-radius: 3px 3px 5px 5px;
  box-sizing: border-box;
}

.home-secure span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}

.home-secure-chevron {
  color: var(--accent-press);
  font-size: 1.1rem;
  line-height: 1;
}

.home-help {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}

.home-help a {
  font-weight: var(--fw-med);
}

.home-panel {
  margin-top: 8px;
}

.page-home .home-choice-stack {
  margin-top: 4px;
}

/* Premium sequential view transitions — never overlap old + new */
.page-home {
  --dur-view: 0.28s;
  --ease-view: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home.is-view-busy {
  pointer-events: none;
}

.page-home.is-page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-home.is-page-enter.is-page-ready {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.34s var(--ease-view),
    transform 0.34s var(--ease-view);
}

.page-home.is-page-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s var(--ease-view),
    transform 0.22s var(--ease-view);
}

.page-home #homeChoice,
.page-home .home-panel {
  transform-origin: 50% 12%;
  will-change: opacity, transform;
}

.page-home #homeChoice.is-view-prep,
.page-home .home-panel.is-view-prep {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.page-home #homeChoice.is-view-in,
.page-home .home-panel.is-view-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-view) var(--ease-view),
    transform var(--dur-view) var(--ease-view);
}

.page-home #homeChoice.is-view-out,
.page-home .home-panel.is-view-out {
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  transition:
    opacity 0.2s var(--ease-view),
    transform 0.2s var(--ease-view);
}

.page-home #homeChoice[hidden],
.page-home .home-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-home.is-page-enter,
  .page-home.is-page-enter.is-page-ready,
  .page-home.is-page-leaving,
  .page-home #homeChoice.is-view-prep,
  .page-home .home-panel.is-view-prep,
  .page-home #homeChoice.is-view-in,
  .page-home .home-panel.is-view-in,
  .page-home #homeChoice.is-view-out,
  .page-home .home-panel.is-view-out {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.home-exist-help {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.home-exist-help-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-exist-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-exist-options li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--btn-radius-seg-item, 8px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.home-exist-options a {
  font-size: 0.9rem;
  font-weight: var(--fw-med);
  color: var(--accent-press);
  text-decoration: none;
}

.home-exist-options a:hover {
  color: #fff;
}

.home-exist-options span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Mobile-first composition (~390px primary) */
@media (max-width: 440px) {
  .page-home {
    gap: 3px;
  }

  .home-hero {
    gap: 2px;
  }

  .home-welcome {
    margin-top: 0;
    font-size: clamp(1.1rem, 4.6vw, 1.28rem);
  }

  .home-lead {
    font-size: 0.72rem;
    max-width: 36ch;
  }

  .home-trust {
    gap: 2px 6px;
  }

  .home-trust--row {
    gap: 2px 6px;
    max-width: 78%;
  }

  .home-trust li {
    font-size: 0.55rem;
  }

  .home-horizon-slot {
    height: 28px;
    margin-top: -6px;
    margin-bottom: -8px;
  }

  .home-hero-horizon-svg {
    height: 44px;
  }

  .home-card {
    padding: 8px 9px 8px;
    gap: 5px;
  }

  .home-card-cta {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .home-secure {
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .home-help {
    font-size: 0.76rem;
  }

  .home-lang {
    font-size: 0.7rem;
    padding: 4px 9px;
  }
}

/* Wide: atmosphere already full-bleed; keep phone column centered */
@media (min-width: 720px) {
  .page-home {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
  }
}

/* Invite path choice cards — dark theme (never light-theme #111 text) */
.invite-path-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.invite-path-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg, 14px);
  background: var(--bg-elevated-2, #2c2c2e);
  color: var(--ink, #f5f5f7);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.invite-path-card:hover,
.invite-path-card:focus-visible {
  border-color: var(--accent, #0a84ff);
  background: #3a3a3c;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #0a84ff) 35%, transparent);
  outline: none;
}

.invite-path-card--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.invite-path-title {
  font-weight: var(--fw-sem, 600);
  font-size: 1rem;
  color: #ffffff;
}

.invite-path-desc {
  font-size: 0.88rem;
  color: #d1d1d6;
  line-height: 1.45;
}

.page-reg .reg-blocked {
  max-width: 520px;
  margin: 24px auto;
  padding: 24px 20px 28px;
}

/* Staff invite desk */
.page-staff-invites {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  color: var(--ink);
}

.staff-invites-header {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

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

.staff-invites-logo {
  display: block;
  height: auto;
}

.staff-invites-badge {
  font-size: 0.72rem;
  font-weight: var(--fw-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 132, 255, 0.22);
  border: 1px solid rgba(10, 132, 255, 0.45);
  border-radius: var(--btn-radius-seg-item);
  padding: 4px 8px;
}

.staff-panel {
  margin-top: 8px;
}

.staff-btn-full {
  width: 100%;
  margin-top: 14px;
}

.staff-create-btn {
  margin-top: 10px;
}

.staff-desk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.staff-desk-head .proto-auth-title {
  margin-bottom: 4px;
}

.staff-created {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.staff-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.staff-url-field {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}

.staff-list-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.staff-list-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
}

.staff-table-wrap {
  overflow-x: auto;
  border-radius: var(--btn-radius-seg-item);
  border: 1px solid var(--line-strong);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.staff-table th,
.staff-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.staff-table th {
  font-weight: var(--fw-med);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.staff-table tr:last-child td {
  border-bottom: none;
}

.staff-note-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-when-cell {
  white-space: nowrap;
  color: #d1d1d6;
  font-size: 0.82rem;
}

.staff-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  white-space: nowrap;
}

.staff-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--btn-radius-seg-item);
  font-size: 0.75rem;
  font-weight: var(--fw-med);
  letter-spacing: 0.02em;
}

.staff-badge-unused {
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.28);
}

.staff-badge-used {
  color: #aeaeb2;
  background: rgba(174, 174, 178, 0.1);
  border: 1px solid rgba(174, 174, 178, 0.22);
}

.staff-badge-revoked {
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.14);
  border: 1px solid rgba(255, 159, 10, 0.32);
}

.staff-badge-other {
  color: var(--warn);
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
}

.staff-empty {
  text-align: center;
  margin-top: 8px;
}

.staff-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  padding: 11px 18px;
  border-radius: var(--btn-radius);
  background: rgba(44, 44, 46, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.staff-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px) {
  .staff-url-row {
    flex-direction: column;
  }

  .staff-desk-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* —— B2B shop shell —— */
.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.app-brand {
  margin-right: auto;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.app-nav-link {
  position: relative;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated-2);
  color: var(--ink-secondary);
  border-radius: var(--btn-chip-radius);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: var(--fw-med);
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.app-nav-link:hover,
.app-nav-link.is-active {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated-2));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
  color: var(--ink);
}

.app-signout {
  font-size: 0.82rem;
  padding: 8px 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: var(--fw-strong);
  line-height: 1;
}

.app-view {
  animation: appFadeIn 0.22s var(--ease);
}

.app-view[hidden] {
  display: none !important;
}

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

.app-panel-wide {
  width: 100%;
  max-width: none;
}

.app-toolbar {
  margin-bottom: 12px;
}

.app-toolbar-center {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.app-search {
  width: 100%;
}

.cat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cat-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(44, 44, 46, 0.72);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}

.cat-chip:hover,
.cat-chip.is-active {
  background: color-mix(in srgb, var(--accent) 22%, rgba(44, 44, 46, 0.9));
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(28, 28, 30, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: var(--fw-med);
  line-height: 1.35;
}

.product-sku {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.product-price {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: var(--fw-strong);
  color: var(--ok);
}

.product-add {
  width: 100%;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: var(--fw-med);
}

.cart-line-total {
  font-weight: var(--fw-strong);
  text-align: right;
  align-self: start;
}

.cart-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-subtotal {
  margin: 0;
  font-size: 1rem;
}

.app-empty {
  text-align: center;
  margin: 12px 0;
}

.app-order-msg {
  margin-top: 14px;
  text-align: center;
  color: var(--ok);
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-brand {
    margin-right: 0;
  }

  .app-nav {
    justify-content: center;
  }

  .app-signout {
    align-self: flex-end;
  }

  .cart-line {
    grid-template-columns: 1fr;
  }

  .cart-line-total {
    text-align: left;
  }
}

/* —— B2B signed-in shop (CRM chrome, scoped) —— */
body.b2b-shop {
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
  min-height: 100dvh;
}

body.b2b-shop .b2b-shop-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  /* Pin shell to viewport so bottom nav stays in-flow (CRM phone shell). */
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  --bottom-nav-h: 56px;
}

body.b2b-shop .app-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.b2b-shop .app-view[hidden] {
  display: none !important;
}

body.b2b-shop .b2b-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

body.b2b-shop .b2b-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
  color: inherit;
}

body.b2b-shop .b2b-brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

body.b2b-shop .b2b-brand-tag {
  font-size: 0.72rem;
  font-weight: var(--fw-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

body.b2b-shop .b2b-signout {
  font-size: 0.82rem;
  padding: 8px 12px;
}

body.b2b-shop .b2b-home-card {
  width: min(440px, calc(100% - 32px));
  margin: 32px auto;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  text-align: center;
}

body.b2b-shop .b2b-home-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.03em;
}

body.b2b-shop .b2b-home-account {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

body.b2b-shop .b2b-home-pl {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

body.b2b-shop .b2b-home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

body.b2b-shop .b2b-view-shop {
  overflow: hidden;
}

body.b2b-shop .shop-chrome {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 16px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

body.b2b-shop .shop-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.b2b-shop .shop-topbar .shop-back {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  padding: 6px 9px !important;
  font-size: 0.78rem !important;
}

body.b2b-shop .shop-deliver {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Account name lives on Home; Products chrome keeps only locked PL badge. */
body.b2b-shop .shop-deliver strong {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.b2b-shop .shop-pl-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--btn-chip-radius);
  font-size: 0.68rem;
  font-weight: var(--fw-med);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  user-select: none;
  cursor: default;
}

body.b2b-shop .quote-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  max-width: min(42vw, 220px);
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: var(--fw-med);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--btn-ghost-shadow);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease);
}

body.b2b-shop .quote-pill:disabled {
  opacity: 0.55;
  cursor: default;
}

body.b2b-shop .quote-pill:not(:disabled):active {
  transform: scale(0.97);
}

body.b2b-shop .quote-pill.has-items {
  border-color: var(--btn-primary-border);
  background: var(--btn-primary-bg);
  color: #fff;
  box-shadow: var(--btn-primary-shadow);
}

body.b2b-shop .b2b-chrome-signout {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px !important;
  font-size: 0.76rem !important;
}

body.b2b-shop .shop-cart-total {
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

body.b2b-shop .search-wrap {
  position: relative;
  z-index: 40;
}

body.b2b-shop .search-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background-color: var(--muted);
  opacity: 0.65;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='M20 20l-4.35-4.35'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='M20 20l-4.35-4.35'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  z-index: 1;
}

body.b2b-shop .shop-search-field {
  width: 100%;
  padding: 9px 12px 9px 38px !important;
  font-size: 16px;
  min-height: 40px;
  border-radius: var(--btn-radius);
}

body.b2b-shop .shop-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 10px 12px;
  align-items: start;
  -webkit-overflow-scrolling: touch;
}

body.b2b-shop .b2b-cat-rail {
  min-width: 0;
}

body.b2b-shop .cat-list-full {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.b2b-shop .cat-list-full::-webkit-scrollbar {
  display: none;
}

body.b2b-shop .cat-pick {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--ink-secondary);
  border-radius: var(--btn-chip-radius);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--btn-ghost-shadow);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
}

body.b2b-shop .cat-pick:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

body.b2b-shop .cat-pick.active {
  background: var(--btn-chip-on-bg);
  border-color: var(--btn-chip-on-border);
  color: #fff;
  font-weight: var(--fw-med);
  box-shadow: var(--btn-chip-on-shadow);
}

body.b2b-shop .shop-main-solo {
  min-width: 0;
}

body.b2b-shop .shop-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

body.b2b-shop .cat-heading {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--fw-med);
  color: var(--ink-secondary);
}

/* Desktop/non-phone grid only — do NOT fight CRM clone for .products-phone */
body.b2b-shop .products:not(.products-phone) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.b2b-shop .products:not(.products-phone) .product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

body.b2b-shop .products:not(.products-phone) .product:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

body.b2b-shop .products:not(.products-phone) .product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 132px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.b2b-shop .products:not(.products-phone) img.thumb {
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.b2b-shop .products:not(.products-phone) img.thumb.is-loaded {
  opacity: 1;
}

body.b2b-shop .thumb.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  background: transparent;
}

body.b2b-shop .thumb-empty-ico {
  opacity: 0.55;
}

body.b2b-shop .products:not(.products-phone) .product .meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.b2b-shop .products:not(.products-phone) .product .meta h3 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.b2b-shop .product-meta-extra {
  display: block;
  margin: 4px 0 0;
}

body.b2b-shop .meta-extra-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.b2b-shop .product-sku-tag {
  display: inline-flex;
  align-items: center;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}

body.b2b-shop .meta-cat {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.b2b-shop .products:not(.products-phone) .product .price,
body.b2b-shop .products:not(.products-phone) .price {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

body.b2b-shop .price-exvat {
  font-size: 0.62em;
  font-weight: var(--fw-med);
  color: var(--muted);
  margin-left: 0.2em;
  white-space: nowrap;
  opacity: 0.72;
}

body.b2b-shop .price-missing {
  font-size: 0.76rem;
  font-weight: var(--fw-med);
  color: var(--warn);
}

body.b2b-shop .products:not(.products-phone) .add-row,
body.b2b-shop .products:not(.products-phone) .add-row.product-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: nowrap;
  --product-qty-row-h: 40px;
  height: var(--product-qty-row-h);
  min-height: var(--product-qty-row-h);
}

body.b2b-shop .qty-stepper {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--btn-ghost-border);
  border-radius: var(--btn-chip-radius);
  overflow: hidden;
  background: var(--btn-ghost-bg);
  box-shadow: var(--btn-ghost-shadow);
  flex: 0 0 auto;
  height: 100%;
}

body.b2b-shop .qty-stepper .qty {
  width: 34px;
  border: 0;
  background: transparent;
  padding: 0 2px;
  font-size: 0.86rem;
  font-weight: var(--fw-semi);
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

body.b2b-shop .qty-stepper .qty::-webkit-outer-spin-button,
body.b2b-shop .qty-stepper .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.b2b-shop .qty-btn {
  width: 40px;
  min-width: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.b2b-shop .hdr-icon-btn.crm-plus-ico.add-sku {
  flex: 0 0 var(--product-qty-row-h, 40px);
  width: var(--product-qty-row-h, 40px);
  min-width: var(--product-qty-row-h, 40px);
  height: 100%;
  border-radius: var(--btn-radius) !important;
  background: var(--btn-primary-bg) !important;
  border: 1px solid var(--btn-primary-border) !important;
  box-shadow: var(--btn-primary-shadow) !important;
  color: #fff !important;
  font-size: 1.35rem !important;
  font-weight: 300 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer;
  position: relative;
}

body.b2b-shop .add-sku.is-in-cart {
  background: var(--btn-primary-bg-hover) !important;
}

body.b2b-shop .add-sku-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--btn-chip-radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: var(--fw-strong);
  display: grid;
  place-items: center;
  line-height: 1;
}

body.b2b-shop .add-sku-badge[hidden] {
  display: none !important;
}

body.b2b-shop .b2b-empty {
  text-align: center;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

body.b2b-shop .b2b-load-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

body.b2b-shop .b2b-cart-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
}

body.b2b-shop .b2b-cart-panel {
  flex: 1;
  overflow: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

body.b2b-shop .b2b-cart-line {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

body.b2b-shop .b2b-cart-line-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body.b2b-shop .b2b-cart-line-desc {
  font-size: 0.88rem;
  font-weight: var(--fw-med);
  line-height: 1.3;
}

body.b2b-shop .b2b-cart-line-unit {
  font-size: 0.76rem;
  color: var(--muted);
}

body.b2b-shop .b2b-cart-line-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.b2b-shop .b2b-cart-line-actions .qty-stepper {
  height: 34px;
}

body.b2b-shop .b2b-cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: var(--fw-semi);
  font-size: 0.86rem;
}

body.b2b-shop .b2b-cart-line-total {
  margin-left: auto;
  font-weight: var(--fw-semi);
  font-variant-numeric: tabular-nums;
}

body.b2b-shop .b2b-cart-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.b2b-shop .b2b-cart-subtotal {
  margin: 0;
  font-size: 1rem;
}

body.b2b-shop .b2b-order-msg {
  margin-top: 14px;
  text-align: center;
  color: var(--ok);
  font-size: 0.88rem;
}

@media (min-width: 560px) {
  body.b2b-shop .products:not(.products-phone) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  body.b2b-shop .products:not(.products-phone) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  body.b2b-shop .shop-body {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    gap: 16px;
    padding: 0 20px 28px;
  }

  body.b2b-shop .cat-list-full {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    overflow-y: auto;
    max-height: calc(100dvh - 160px);
    position: sticky;
    top: 120px;
    padding: 8px 0;
    gap: 2px;
  }

  body.b2b-shop .cat-pick {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
    border-radius: var(--btn-chip-radius);
    background: transparent;
    box-shadow: none;
    border-color: transparent;
  }

  body.b2b-shop .cat-pick:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }

  body.b2b-shop .shop-chrome {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 980px) {
  body.b2b-shop .products:not(.products-phone) {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  body.b2b-shop .products:not(.products-phone) {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 899px) {
  body.b2b-shop .b2b-cat-rail {
    order: -1;
    margin: 0 -16px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* —— B2B shop5: CRM-like header, account home, category sheet —— */
body.b2b-shop .b2b-app-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-bottom: 0;
  padding: 6px 10px;
  padding-top: calc(6px + var(--safe-top, 0px));
  min-height: var(--hdr-h, 52px);
  flex: 0 0 auto;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 40;
  box-sizing: border-box;
}

body.b2b-shop .b2b-app-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: var(--fw-semi);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

body.b2b-shop .b2b-app-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
}

body.b2b-shop .b2b-app-actions .hdr-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  color: var(--ink-secondary);
}

body.b2b-shop .b2b-app-actions .cart-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: var(--fw-strong);
  line-height: 15px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

body.b2b-shop .b2b-app-actions .cart-badge[hidden] {
  display: none !important;
}

body.b2b-shop .b2b-account-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 24px;
  max-width: 420px;
  margin: 0 auto;
}

body.b2b-shop .b2b-account-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: var(--fw-med);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

body.b2b-shop .b2b-account-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
  line-height: 1.25;
}

body.b2b-shop .b2b-home-account,
body.b2b-shop .b2b-home-pl {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

body.b2b-shop .b2b-account-panel .btn {
  width: 100%;
}

body.b2b-shop .b2b-cat-sheet[hidden] {
  display: none !important;
}

body.b2b-shop .b2b-cat-sheet:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.b2b-shop .b2b-cat-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

body.b2b-shop .b2b-cat-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  box-shadow: var(--shadow);
  padding-bottom: var(--safe-bottom);
}

body.b2b-shop .b2b-cat-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

body.b2b-shop .b2b-cat-sheet-head strong {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  color: var(--ink);
}

body.b2b-shop .b2b-cat-sheet-panel .cat-list-full {
  overflow: auto;
  padding: 8px 12px 16px;
  -webkit-overflow-scrolling: touch;
}


/* —— Passkey sign-in card (CRM proto-auth-passkey parity, b2b-crmui61) —— */
.proto-auth-passkey-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proto-auth-sign-prompt {
  margin: 0 0 2px;
  font-size: 0.9rem;
  color: rgba(190, 205, 230, 0.85);
}
.proto-auth-passkey-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--btn-radius, 12px);
  border: 1.5px solid rgba(10, 132, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(18, 40, 78, 0.78) 0%, rgba(8, 16, 34, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(10, 132, 255, 0.18),
    0 14px 40px rgba(0, 40, 120, 0.4),
    0 0 48px rgba(10, 132, 255, 0.22);
}
.proto-auth-passkey-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proto-auth-passkey-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius, 12px);
  background:
    radial-gradient(circle at 35% 30%, rgba(10, 132, 255, 0.35), rgba(10, 132, 255, 0.1) 55%, transparent 70%),
    rgba(10, 132, 255, 0.14);
  border: 1.5px solid rgba(64, 156, 255, 0.7);
  color: #7ec2ff;
  box-shadow:
    0 0 0 1px rgba(10, 132, 255, 0.18),
    0 0 22px rgba(10, 132, 255, 0.35);
}
.proto-auth-passkey-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.proto-auth-passkey-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proto-auth-passkey-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.proto-auth-passkey-verified {
  display: inline-flex;
  color: #409cff;
}
.proto-auth-passkey-chev {
  flex: 0 0 auto;
  color: rgba(200, 214, 240, 0.72);
  font-size: 1.25rem;
  line-height: 1;
}
.proto-auth-passkey-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(190, 205, 230, 0.78);
}
.proto-auth-passkey-cta.btn.primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--btn-radius, 12px);
}
.proto-auth-other-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  color: rgba(170, 190, 220, 0.55);
  font-size: 0.78rem;
}
.proto-auth-other-sep::before,
.proto-auth-other-sep::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(170, 190, 220, 0.18);
}
.home-passkey-way.btn {
  width: 100%;
}
