:root {
  /* Brand colors are loaded from ../images/brand-colors.css.
     Here we extend them into a dense "business software" system. */
  --ox-bg: #f2f6ff;
  --ox-surface: #ffffff;
  --ox-surface-2: #f3f6fb;
  --ox-border: rgba(15, 23, 42, 0.14);
  --ox-border-2: rgba(15, 23, 42, 0.09);
  /* Flat look: minimize 3D depth */
  --ox-shadow: none;
  --ox-shadow-2: none;

  --ox-radius-sm: 6px;
  --ox-radius-md: 12px;

  --ox-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Slightly "Windows business" feel without looking dated */
  --ox-font-tight: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ox-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --ox-grid: rgba(20, 99, 255, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--ox-font);
  color: var(--ox-neutral-900);
  background:
    repeating-linear-gradient(0deg, var(--ox-grid) 0, var(--ox-grid) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, var(--ox-grid) 0, var(--ox-grid) 1px, transparent 1px, transparent 28px),
    var(--ox-bg);
}

.app-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header"
    "main";
  gap: 12px;
  padding: 12px;
}

.app-shell[data-mode="auth"] {
  gap: 0;
  padding: 0;
  grid-template-rows: 1fr;
  grid-template-areas: "main";
}

.app-header {
  grid-area: header;
  border-radius: var(--ox-radius-md);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(20, 99, 255, 0.30);
  background: linear-gradient(180deg, #2b67f2 0%, #235de0 100%);
}

.header-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
}
.header-row--top {
  grid-template-columns: auto 1fr auto;
  border-bottom: 1px solid rgba(255,255,255,0.20);
}
.header-row--sub {
  grid-template-columns: 1fr;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(13, 45, 113, 0.24);
  border-top: 1px solid rgba(0,0,0,0.10);
}

.brand { display: flex; align-items: center; gap: 4px; }
.brand--interactive {
  position: relative;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 180ms ease, box-shadow 240ms ease, transform 180ms ease;
}
.brand--interactive::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 28px rgba(255,255,255,0.35);
  transition: opacity 220ms ease;
}
.brand--interactive:hover {
  background: rgba(255,255,255,0.10);
}
.brand--interactive:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(241,245,249,0.24);
}
.brand--interactive.is-open {
  background: rgba(255,255,255,0.13);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22), 0 0 28px rgba(255,255,255,0.20);
}
.brand--interactive.is-open::after { opacity: 1; animation: brandGlow 1.2s ease-in-out infinite alternate; }
@keyframes brandGlow {
  from { box-shadow: 0 0 20px rgba(255,255,255,0.25); }
  to { box-shadow: 0 0 36px rgba(255,255,255,0.42); }
}
.brand__mark { height: 32px; width: auto; display: block; }
.brand__word {
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  letter-spacing: -0.03em;
  font-size: 24px;
  line-height: 1;
  margin-left: 1px; /* snugs pexio to the mark */
}
.brand--light { min-width: 0; }
.brand__divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.55);
  margin-left: 12px;
  margin-right: 12px;
}
.brand__org {
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
}
.brand__caret {
  font-size: 12px;
  margin-left: 8px;
  color: rgba(255,255,255,0.78);
  transition: transform 160ms ease;
}
.brand--interactive.is-open .brand__caret { transform: rotate(180deg); }

.module-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 360px;
  max-width: 440px;
  border-radius: 12px;
  border: 1px solid rgba(20,99,255,0.25);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 50px rgba(11, 44, 110, 0.26);
  padding: 10px;
  z-index: 80;
  transform-origin: top left;
  animation: menuIn 180ms ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.module-menu__head {
  color: var(--ox-neutral-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 4px;
}
.module-menu__items {
  display: grid;
  gap: 8px;
}
.module-item {
  text-decoration: none;
  color: var(--ox-neutral-900);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.module-item:hover {
  border-color: rgba(20,99,255,0.33);
  background: rgba(20,99,255,0.05);
  transform: translateY(-1px);
}
.module-item.is-active {
  border-color: rgba(20,99,255,0.45);
  background: rgba(20,99,255,0.09);
}
.module-item__title {
  font-weight: 900;
  letter-spacing: -0.01em;
}
.module-item__meta {
  color: var(--ox-neutral-500);
  font-size: 12px;
}
.header-fill { min-width: 10px; }
.brand__org--select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 26px 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.brand__org--select:focus { outline: none; box-shadow: 0 0 0 3px rgba(241,245,249,0.22); border-color: rgba(255,255,255,0.30); }
.brand__org--select:hover { background: rgba(255,255,255,0.14); }

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

.header-actions { display: flex; align-items: center; gap: 10px; }

.kbd {
  font-family: var(--ox-mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid var(--ox-border);
  background: var(--ox-surface);
  color: var(--ox-neutral-700);
}
.kbd--light {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

.user { display: flex; align-items: center; gap: 10px; padding-left: 2px; }
.user__avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(20,99,255,0.14);
  border: 1px solid rgba(20,99,255,0.25);
  color: var(--ox-primary-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.user--light { padding: 0; }
.user__avatar--light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
}

.org-chip {
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.subnav { display: flex; gap: 8px; align-items: center; overflow: auto; padding: 0 6px; }
.subnav__item {
  text-decoration: none;
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.subnav__item:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.14); }
.subnav__item.is-active { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.24); }

.main {
  grid-area: main;
  background: var(--ox-surface);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--ox-radius-md);
  box-shadow: none;
  overflow: hidden;
}

.app-shell[data-mode="auth"] .main {
  border: none;
  border-radius: 0;
  background: transparent;
}

.btn--header {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.btn--header:hover { background: rgba(255,255,255,0.14); }
.btn--header-primary {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.96);
}
.btn--header-primary:hover { background: rgba(255,255,255,0.24); }
.btn--header-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  border-radius: 8px;
}

.search {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ox-border);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255,255,255,0.92);
}
.search__icon { color: var(--ox-neutral-500); font-weight: 900; }
.search__input {
  border: none;
  background: transparent;
  height: 38px;
  padding: 0;
  color: var(--ox-neutral-900);
}
.search__input:focus { outline: none; }
.search:focus-within { box-shadow: var(--ox-focus-ring); border-color: rgba(20,99,255,0.35); }
.search--header {
  width: min(420px, 30vw);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
}
.search--header .search__icon { color: rgba(255,255,255,0.75); }
.search--header .search__input { color: rgba(255,255,255,0.92); }
.search--header .search__input::placeholder { color: rgba(255,255,255,0.70); }
.search--header:focus-within { box-shadow: 0 0 0 3px rgba(241,245,249,0.22); border-color: rgba(255,255,255,0.30); }

.page { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.page__header {
  padding: 14px 14px 12px 14px;
  border-bottom: 1px solid var(--ox-border-2);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.page__title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.page__subtitle { margin-top: 4px; font-size: 12px; color: var(--ox-neutral-500); max-width: 76ch; }
.page__actions { display: flex; gap: 8px; align-items: center; }

.btn {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: var(--ox-surface);
  color: var(--ox-neutral-900);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.985); }
.btn:focus { outline: none; box-shadow: var(--ox-focus-ring); }
.btn--sm { padding: 7px 10px; border-radius: 10px; font-size: 12px; }
.btn--ghost { background: transparent; }
.btn--primary {
  background: var(--ox-primary);
  border-color: rgba(20,99,255,0.35);
  color: #fff;
}
.btn--success {
  background: var(--ox-success);
  border-color: rgba(18,184,134,0.35);
  color: #fff;
}
.btn--error {
  background: var(--ox-error);
  border-color: rgba(224,49,49,0.35);
  color: #fff;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ox-neutral-700);
}
.field__label { font-weight: 750; }
.field__input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--ox-border);
  background: rgba(255,255,255,0.9);
  padding: 0 12px;
  color: var(--ox-neutral-900);
}
.field__input:focus { outline: none; box-shadow: var(--ox-focus-ring); border-color: rgba(20,99,255,0.35); }
.field--sm .field__input { height: 34px; border-radius: 8px; }
.field--search {
  width: min(720px, 66vw);
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ox-border);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255,255,255,0.92);
}
.field--search .field__label { display: none; }
.field--search .field__icon { color: var(--ox-neutral-500); font-weight: 900; }
.field--search .field__input { border: none; background: transparent; height: 44px; padding: 0; }
.field--search .field__input:focus { box-shadow: none; }
.field--search:focus-within { box-shadow: var(--ox-focus-ring); border-color: rgba(20,99,255,0.35); }

.mono { font-family: var(--ox-mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-family: var(--ox-mono); }
.muted { color: var(--ox-neutral-500); font-size: 12px; }
.strong { font-weight: 850; letter-spacing: -0.01em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(241,245,249,0.9);
  color: var(--ox-neutral-700);
}
.chip--success { border-color: rgba(18,184,134,0.35); background: rgba(18,184,134,0.10); color: #0b5f48; }
.chip--warning { border-color: rgba(255,176,0,0.45); background: rgba(255,176,0,0.12); color: #7a5200; }
.chip--error { border-color: rgba(224,49,49,0.40); background: rgba(224,49,49,0.10); color: #7a1212; }
.chip--neutral { opacity: 0.9; }

.split {
  height: 100%;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 0;
  min-height: 0;
}
.pane {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--ox-border-2);
}
.pane--detail { border-right: none; }
.pane__toolbar { padding: 10px 12px; border-bottom: 1px solid var(--ox-border-2); background: rgba(241,245,249,0.6); }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.toolbar__spacer { flex: 1; }

.table-wrap { min-height: 0; overflow: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--ox-border-2);
  text-align: left;
  padding: 10px 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.table tbody td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px 10px;
  vertical-align: middle;
}
.table tbody tr:hover { background: rgba(20,99,255,0.05); }
.table tbody tr.is-selected {
  background: linear-gradient(90deg, rgba(20,99,255,0.12), rgba(20,99,255,0.02));
  box-shadow: inset 3px 0 0 rgba(20,99,255,0.85);
}
.table .num { text-align: right; }

.detail-header {
  padding: 12px 12px;
  border-bottom: 1px solid var(--ox-border-2);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.detail-header__title { display: flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: -0.02em; }
.detail-header__subtitle { margin-top: 4px; color: var(--ox-neutral-500); font-size: 12px; }
.detail-header__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.kv-grid {
  padding: 12px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--ox-border-2);
}
.kv {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241,245,249,0.55);
}
.kv__k { font-size: 11px; color: var(--ox-neutral-500); font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.kv__v { margin-top: 6px; font-weight: 850; letter-spacing: -0.01em; }

.tabs {
  padding: 8px 12px 0 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--ox-border-2);
}
.tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 10px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  color: var(--ox-neutral-700);
}
.tab:hover { background: rgba(20,99,255,0.06); }
.tab.is-active {
  background: rgba(255,255,255,0.92);
  border-color: var(--ox-border-2);
  border-bottom-color: transparent;
  color: var(--ox-neutral-900);
}

.tabpane { display: none; padding: 12px; overflow: auto; min-height: 0; }
.tabpane.is-active { display: block; }

.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  box-shadow: none;
  padding: 12px;
}
.card__title {
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card__footer { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.rows { display: grid; gap: 8px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(241,245,249,0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline { display: grid; gap: 10px; padding: 6px 2px; }
.event { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.event__dot {
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.20);
  background: rgba(255,255,255,0.95);
  margin-top: 2px;
}
.event.is-done .event__dot { border-color: rgba(18,184,134,0.75); background: rgba(18,184,134,0.15); }
.event.is-active .event__dot { border-color: rgba(255,176,0,0.9); background: rgba(255,176,0,0.16); }
.event__title { font-weight: 950; letter-spacing: -0.02em; }
.event__meta { margin-top: 3px; color: var(--ox-neutral-500); font-size: 12px; }

.empty {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 16px;
  padding: 18px;
  background: rgba(241,245,249,0.42);
}
.empty__title { font-weight: 950; letter-spacing: -0.02em; }
.empty__text { margin-top: 6px; color: var(--ox-neutral-500); font-size: 12px; }
.empty .btn { margin-top: 12px; }

.audit { font-family: var(--ox-mono); font-size: 12px; color: var(--ox-neutral-700); }
.audit__row { padding: 10px; border-radius: 14px; border: 1px solid rgba(15, 23, 42, 0.08); background: rgba(241,245,249,0.55); margin-bottom: 8px; }

.grid-2 {
  padding: 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  min-height: 0;
  align-content: start;
}
.grid-3 {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  align-content: start;
}

.workflow { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-step {
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(241,245,249,0.55);
  font-weight: 900;
}
.wf-badge {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 8px;
  margin-right: 8px;
  border: 1px solid rgba(20,99,255,0.25);
  background: rgba(20,99,255,0.10);
  color: var(--ox-primary-dark);
  font-family: var(--ox-mono);
  font-size: 11px;
}
.wf-arrow { color: var(--ox-neutral-500); font-weight: 900; }

.onb {
  padding: 12px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.span-2 { grid-column: 1 / -1; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(241,245,249,0.55);
  padding: 12px;
  cursor: pointer;
}
.plan:hover { background: rgba(20,99,255,0.06); border-color: rgba(20,99,255,0.22); }
.plan.is-selected { border-color: rgba(20,99,255,0.35); background: rgba(20,99,255,0.08); }
.plan__title { font-weight: 950; letter-spacing: -0.02em; }
.plan__price { margin-top: 6px; font-family: var(--ox-mono); }
.plan__meta { margin-top: 6px; color: var(--ox-neutral-500); font-size: 12px; }

/* Density (compact vs comfortable) */
.app-shell[data-density="compact"] {
  --d-pad: 10px;
}
.app-shell[data-density="comfortable"] .table thead th,
.app-shell[data-density="comfortable"] .table tbody td { padding-top: 12px; padding-bottom: 12px; }
.app-shell[data-density="comfortable"] .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-shell[data-density="comfortable"] .split { grid-template-columns: 1fr 1fr; }

/* Responsive */
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
  .split { grid-template-columns: 1fr; }
  .pane { border-right: none; border-bottom: 1px solid var(--ox-border-2); }
  .grid-2, .grid-3, .onb { grid-template-columns: 1fr; }
  .header-row--top { grid-template-columns: 1fr; justify-items: start; }
  .brand--light { min-width: 0; }
  .search--header { width: 100%; }
  .header-actions { width: 100%; flex-wrap: wrap; }
  .header-row--sub { grid-template-columns: 1fr; }
  .module-menu { min-width: min(360px, 92vw); max-width: 92vw; }
}

/* Register / auth */
.auth {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 28px),
    var(--ox-primary);
  color: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.auth__panel {
  width: min(1100px, 100%);
}
.auth__panel--narrow {
  width: min(520px, 100%);
}
.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth__mark { width: 34px; height: 34px; }
.auth__word { font-weight: 950; font-size: 26px; letter-spacing: -0.02em; }
.auth__title { margin-top: 14px; font-weight: 950; font-size: 26px; letter-spacing: -0.02em; }
.auth__sub { margin-top: 6px; color: rgba(255,255,255,0.78); font-size: 13px; max-width: 70ch; }

.auth-card {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11, 44, 110, 0.18);
  border-radius: 12px;
  padding: 12px;
}

.auth-form {
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  padding: 14px;
  color: var(--ox-neutral-900);
  display: grid;
  gap: 10px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 12px;
}
.auth-row--center { justify-content: center; }

.link {
  color: var(--ox-primary);
  text-decoration: none;
  font-weight: 850;
}
.link:hover { text-decoration: underline; }
.link--muted { color: var(--ox-neutral-700); }

.auth-divider {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ox-neutral-500);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}
.auth-divider span { padding: 0 2px; }

.btn--ms {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--ox-neutral-900);
}
.btn--ms:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  border: 1px solid rgba(224,49,49,0.28);
  background: rgba(224,49,49,0.08);
  color: #7a1212;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 750;
}
.alert--ok {
  border-color: rgba(18,184,134,0.30);
  background: rgba(18,184,134,0.10);
  color: #0b5f48;
}

.stepper {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-weight: 850;
  font-size: 12px;
}
.step__n {
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  font-family: var(--ox-mono);
  font-size: 11px;
}
.step.is-active { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.92); }
.step.is-done { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.88); }

.wizard {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11, 44, 110, 0.18);
  border-radius: 12px;
  overflow: hidden;
}
.wizard__body {
  background: rgba(255,255,255,0.96);
  color: var(--ox-neutral-900);
  padding: 16px;
}
.wizard__side {
  padding: 16px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.wizard__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.wizard__actions .btn { flex: 1; }

.step-panel { display: none; }
.step-panel.is-active { display: block; }
.panel-title { font-weight: 950; font-size: 16px; letter-spacing: -0.02em; }
.hintline { margin-top: 10px; font-size: 12px; color: var(--ox-neutral-500); }
.kbdline { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.78); }

.plan-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan input { margin-right: 8px; }
.promo { margin-top: 10px; display: flex; gap: 10px; align-items: end; }
.promo .field { flex: 1; }

.pay-stub { margin-top: 12px; display: grid; gap: 10px; }
.done { margin-top: 12px; }
.done__box { border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 10px; background: rgba(241,245,249,0.65); padding: 12px; }
.done__title { font-weight: 950; letter-spacing: -0.02em; }
.done__text { margin-top: 6px; font-size: 12px; color: var(--ox-neutral-700); }

.summary {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  padding: 12px;
}
.summary__title { font-weight: 950; letter-spacing: -0.02em; }
.summary__kv { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.summary__k { color: rgba(255,255,255,0.78); }
.summary__v { color: rgba(255,255,255,0.92); text-align: right; }
.summary__sep { height: 1px; background: rgba(255,255,255,0.16); margin-top: 10px; }

.auth .wizard__side .btn--ghost,
.auth .wizard__actions .btn--ghost {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.auth .wizard__side .btn--ghost:hover,
.auth .wizard__actions .btn--ghost:hover { background: rgba(255,255,255,0.12); }
.auth .wizard__side .btn--primary,
.auth .wizard__actions .btn--primary { border-color: rgba(255,255,255,0.22); }
.auth .field__label { color: var(--ox-neutral-700); }
.auth .field__input { background: #fff; }

@media (max-width: 980px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard__side { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
  .plan-grid { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: stretch; }
}
