/* ===========================================================
   DXB PRO — dashboard (dark, search-first)
   =========================================================== */

.edge {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 30;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-300) 50%, var(--gold-500) 70%, transparent);
  opacity: .8;
}

/* ── Shell ─────────────────────────────────────────────── */

.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.main { display: flex; flex-direction: column; min-width: 0; }

/* ── Sidebar ───────────────────────────────────────────── */

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  background: var(--nav-900);
  border-right: 1px solid var(--line);
}

.side__logo { display: block; padding: 6px 10px 24px; }
.side__logo img { display: block; width: 118px; height: auto; }

.nav { display: grid; gap: 2px; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.nav__item:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__item.is-active {
  color: var(--gold-500);
  background: rgba(238,186,43,.1);
}

.nav__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--gold-500);
  border-radius: 0 2px 2px 0;
}

.side__foot { margin-top: auto; }

.side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-mute);
  text-decoration: none;
  border-radius: 9px;
  transition: .16s var(--ease);
}

.side__link:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ── Top bar ───────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 12px 24px;
  background: rgba(8,13,24,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar__logo { display: none; }
.bar__logo img { display: block; width: 100px; height: auto; }

.bar__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.bar__sub { margin: 1px 0 0; font-size: 13px; color: var(--text-mute); }

.bar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  color: var(--gold-500);
  background: rgba(238,186,43,.09);
  border: 1px solid rgba(238,186,43,.26);
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.pill:hover { background: rgba(238,186,43,.16); }

/* The icon and the number carry the meaning; the word only shows on hover,
   which keeps three pills and a profile inside a phone-width header. */
.pill__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .2s var(--ease), opacity .15s var(--ease),
              margin-left .2s var(--ease);
}

@media (hover: hover) {
  .pill:hover .pill__label,
  .pill:focus-visible .pill__label {
    max-width: 90px;
    margin-left: 4px;
    opacity: 1;
  }
}
.pill b { font-weight: 600; font-variant-numeric: tabular-nums; }

.who { display: flex; align-items: center; gap: 9px; }

.who__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(238,186,43,.12);
  border: 1px solid rgba(238,186,43,.24);
  border-radius: 50%;
}

.who__meta { display: flex; flex-direction: column; line-height: 1.25; }
.who__meta strong { font-size: 13px; font-weight: 500; }
.who__meta small { font-size: 11.5px; color: var(--text-mute); }

/* ── Shell ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 22px 24px 56px;
}

.view { display: none; }
.view.is-active { display: block; animation: rise .26s var(--ease); }

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

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.head h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }

.head--lg { align-items: flex-end; margin-bottom: 18px; }
.head--lg h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.head--lg p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-soft); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

/* ── Hero search ───────────────────────────────────────── */

.hero {
  position: relative;
  padding: 22px;
  margin-bottom: 20px;
  background:
    radial-gradient(120% 160% at 88% -40%, rgba(238,186,43,.13), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ── Mode switch ───────────────────────────────────────── */

.modes {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.mode:hover { color: var(--text); background: rgba(255,255,255,.05); }

.mode.is-active {
  color: var(--gold-500);
  background: rgba(238,186,43,.1);
  border-color: rgba(238,186,43,.28);
}

.pane { display: none; }
.pane.is-active { display: block; animation: rise .24s var(--ease); }

/* ── Date of birth, sitting beside the ID number ───────── */

.hero__date {
  flex: 0 0 172px;
  height: 52px;                /* matches .combo input */
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: 12px;
  color-scheme: dark;          /* a dark native date picker */
  transition: .16s var(--ease);
}

.hero__date:focus {
  outline: none;
  border-color: rgba(238,186,43,.45);
  box-shadow: 0 0 0 3px rgba(238,186,43,.12);
}

/* Safari leaves the empty value dimmer than the rest — even it out. */
.hero__date::-webkit-datetime-edit { color: var(--text-mute); }
.hero__date:focus::-webkit-datetime-edit,
.hero__date:valid::-webkit-datetime-edit { color: var(--text); }

.hero__row { display: flex; gap: 10px; }

.combo { position: relative; flex: 1; min-width: 0; }

.combo__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}

.combo input {
  height: 52px;
  padding-left: 44px;
  font-size: 15.5px;
}

/* ── Account menu, hung off the profile circle ──────────── */

.who { position: relative; }

.who__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: .16s var(--ease);
}

.who__btn:hover .who__avatar { border-color: rgba(238,186,43,.55); }
.who__btn:focus-visible { outline: 2px solid rgba(238,186,43,.5); outline-offset: 3px; }

.who__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: 244px;
  padding: 6px;
  background: var(--surface-1, #121C2E);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  animation: rise .16s var(--ease);
}

.who__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.who__avatar--lg { width: 38px; height: 38px; font-size: 14px; }

.who__card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who__card-text strong { font-size: 13.5px; font-weight: 600; }
.who__card-text small {
  font-size: 11.5px;
  color: var(--text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who__group { padding: 6px 0 2px; }

.who__label {
  margin: 4px 10px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.who__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: .14s var(--ease);
}

.who__opt span { flex: 1; min-width: 0; }
.who__opt svg { flex: none; color: var(--text-mute); }
.who__opt:hover { background: rgba(255,255,255,.06); }

.who__opt.is-active { color: var(--gold-500); }
.who__opt.is-active svg { color: var(--gold-500); }

.who__tick { opacity: 0; }
.who__opt.is-active .who__tick { opacity: 1; }

.who__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.who__opt--plain:hover { color: var(--danger, #ff6b6b); }
.who__opt--plain:hover svg { color: var(--danger, #ff6b6b); }

/* ── Property plan strip ───────────────────────────────── */

.plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan-strip__left { display: flex; align-items: center; gap: 12px; }

.plan-strip__count {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
}

.plan-strip__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: var(--text);
}

.plan-strip__label small { font-size: 12px; color: var(--text-mute); }

/* ── Country picker: opens on click, searches, shows flags ─────── */

.picker { position: relative; margin-top: 10px; }

.picker__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  text-align: left;
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.picker__btn:hover { border-color: rgba(255,255,255,.18); }

.picker__btn[aria-expanded="true"],
.picker__btn:focus-visible {
  outline: none;
  border-color: rgba(238,186,43,.45);
  box-shadow: 0 0 0 3px rgba(238,186,43,.12);
}

.picker__flag {
  flex: none;
  font-size: 19px;
  line-height: 1;
  /* Windows has no flag glyphs and falls back to the two letters — keep
     that legible rather than letting it blow the row height out. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.picker__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__value.is-empty { color: var(--text-mute); }
.picker__caret { flex: none; color: var(--text-mute); transition: transform .16s var(--ease); }
.picker__btn[aria-expanded="true"] .picker__caret { transform: rotate(180deg); }

.picker__panel {
  position: absolute;
  z-index: 14;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--surface-1, #121C2E);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  animation: rise .16s var(--ease);
}

.picker__search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.picker__search svg { flex: none; color: var(--text-mute); }

.picker__search input {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}

.picker__list {
  max-height: 288px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
}

.picker__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.picker__opt:hover, .picker__opt.is-on { background: rgba(238,186,43,.12); }
.picker__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__ar { flex: none; font-size: 12.5px; color: var(--text-mute); }
.picker__none { padding: 14px 11px; font-size: 13.5px; color: var(--text-mute); }

.combo__list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 292px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

.combo__list[hidden] { display: none; }

.combo__opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.combo__opt small { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.combo__opt:hover, .combo__opt.is-on { background: rgba(238,186,43,.12); }
.combo__opt mark { color: var(--gold-500); background: none; }

.combo__none { padding: 11px; font-size: 13.5px; color: var(--text-mute); }

.combo__spin {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -8px;
  border: 2px solid var(--text-mute);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.combo__spin[hidden] { display: none; }

.combo input:disabled { opacity: .5; cursor: not-allowed; }

/* ── Guided steps ──────────────────────────────────────── */

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.step::after {           /* connector between step numbers */
  content: '';
  position: absolute;
  left: 13px;
  top: 40px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}

.step:last-child::after { display: none; }

.step.is-locked { opacity: .45; }
.step.is-locked .choices { pointer-events: none; }

.step__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mute);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step.is-done .step__n {
  color: #10192A;
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.step.is-done .step__n::before {
  content: '';
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310192A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.step.is-done .step__n { font-size: 0; }

.step__body { flex: 1; min-width: 0; }

.step__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-soft);
}

/* ── Custom select ─────────────────────────────────────── */

.select { position: relative; }

.select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: .16s var(--ease);
}

.select__btn:hover { background: rgba(255,255,255,.07); border-color: var(--nav-700); }

.select__btn[aria-expanded="true"] {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(238,186,43,.2);
}

.select__value.is-empty { color: #8390A8; }

.select__caret { color: var(--text-mute); transition: transform .18s var(--ease); }
.select__btn[aria-expanded="true"] .select__caret { transform: rotate(180deg); }

.select__list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}

.select__list[hidden] { display: none; }

.select__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .14s var(--ease);
}

.select__opt strong { display: block; font-size: 14px; font-weight: 500; }
.select__opt small { display: block; font-size: 12px; color: var(--text-mute); }

.select__opt:hover, .select__opt.is-on { background: rgba(238,186,43,.12); }
.select__opt[aria-selected="true"] strong { color: var(--gold-500); }

.select__opt[aria-selected="true"]::after {
  content: '';
  flex: none;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23EEBA2B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/15px no-repeat;
}

.step.is-locked .select { pointer-events: none; }

.step__hint { margin: 7px 0 0; font-size: 12px; color: var(--text-mute); }
.step__hint.is-warn { color: var(--warning); }

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero__note { margin: 0; font-size: 12.5px; color: var(--text-mute); }
.hero__note svg { vertical-align: -3px; margin-right: 7px; color: var(--gold-500); }

.hero__go {
  flex-direction: column;
  gap: 0;
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
}

.hero__go .cost { font-size: 11px; font-weight: 500; opacity: .68; }

.hero__err {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.hero__err[hidden] { display: none; }

/* ── Split ─────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.col { min-width: 0; }

/* ── Feed ──────────────────────────────────────────────── */

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.feed li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .14s var(--ease);
}

.feed li:last-child { border-bottom: 0; }
.feed li:hover { background: rgba(255,255,255,.03); }

.feed__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9px;
}

.feed__mark--ok   { color: var(--gold-500); background: rgba(238,186,43,.12); }
.feed__mark--none { color: var(--text-mute); background: rgba(255,255,255,.05); }

.feed__body { flex: 1; min-width: 0; }
.feed__body strong { display: block; font-size: 14px; font-weight: 500; }

.feed__body span {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed__when { flex: none; font-size: 12px; color: var(--text-mute); }

/* ── Metrics ───────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.metric { padding: 14px 16px; background: var(--surface); }
.metric > span { display: block; font-size: 12px; color: var(--text-mute); }

.metric strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.metric .cur { font-size: 13px; font-weight: 500; color: var(--text-mute); }

.promo {
  padding: 18px;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(238,186,43,.13), transparent 62%),
    var(--surface);
  border: 1px solid rgba(238,186,43,.22);
  border-radius: 14px;
}

.promo__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #10192A;
  background: var(--gold-500);
  border-radius: 999px;
}

.promo__lead { margin: 0 0 4px; font-size: 14px; }
.promo__lead strong { font-weight: 600; }
.promo__sub { margin: 0 0 14px; font-size: 12.5px; color: var(--text-soft); }
.promo__sub strong { color: var(--gold-500); font-weight: 600; }

/* ── Results ───────────────────────────────────────────── */

.results { margin-bottom: 20px; }
.results[hidden] { display: none; }

.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.results__head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.results__head span { font-size: 12.5px; color: var(--text-mute); }

.owner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.owner__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(238,186,43,.12);
  border-radius: 11px;
}

.owner__head { min-width: 0; }

.owner__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.owner__where { margin: 1px 0 0; font-size: 13px; color: var(--text-mute); }

.owner__actions { display: flex; gap: 8px; align-items: flex-start; }

.owner__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.owner__grid span { display: block; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--text-mute); }
.owner__grid strong { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }

.tag {
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--ok   { color: var(--success); background: rgba(53,201,154,.12); }
.tag--soft { color: var(--text-mute); background: rgba(255,255,255,.06); }

/* ── Current owner highlight ───────────────────────────── */

.owner--current {
  border-color: var(--gold-500);
  border-left: 3px solid var(--gold-500);
  background: linear-gradient(135deg, rgba(238,186,43,.06), var(--surface));
}

/* ── Data provenance ───────────────────────────────────── */

.source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--text-soft);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.source-note svg { color: var(--gold-500); }

/* Name-only results carry less than a full record — flag them warmer */
.source-note--warn {
  color: var(--warning);
  background: rgba(240,179,84,.08);
  border-color: rgba(240,179,84,.28);
}

.source-note--warn svg { color: var(--warning); }

/* ── Ownership timeline ────────────────────────────────── */

.tl {
  position: relative;
  padding: 4px 0 4px 20px;
  margin-bottom: 12px;
}

.tl::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  border-radius: 1px;
}

.tl__entry {
  position: relative;
  padding: 10px 0 10px 16px;
}

.tl__dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-mute);
  border: 2px solid var(--bg);
  z-index: 1;
}

.tl__dot--ok {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(53,201,154,.2);
}

.tl__entry--transfer {
  padding: 12px 0 12px 16px;
  margin: 4px 0;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.tl__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tl__detail {
  margin: 3px 0 0;
  font-size: 13.5px;
  color: var(--text);
}

.tl__meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}

/* ── Transfer bar (between owner cards) ────────────────── */

.transfer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  padding: 0 4px;
}

.transfer-bar__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.transfer-bar__info {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-mute);
  white-space: nowrap;
}

.transfer-bar__info strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Toolbar + filters ─────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter {
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s var(--ease);
}

.filter:hover { color: var(--text); }
.filter.is-active { color: #10192A; background: var(--gold-500); }

.toolbar__right { display: flex; gap: 10px; }
.toolbar input { width: 280px; height: 38px; font-size: 13.5px; }

/* ── Table ─────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
  padding: 10px 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-mute);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

.table td {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .prop { font-weight: 500; white-space: normal; }
.table .muted { color: var(--text-mute); }

.table-empty {
  margin: 0;
  padding: 32px 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-mute);
}

.text-link {
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold-500);
  background: none;
  border: 0;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }

/* ── Plans ─────────────────────────────────────────────── */

.balance-inline { text-align: right; }
.balance-inline span { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }
.balance-inline strong { font-size: 17px; font-weight: 600; color: var(--gold-500); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.plan--featured {
  border-color: rgba(238,186,43,.5);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(238,186,43,.1), transparent 55%),
    var(--surface);
}

.plan__tag {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}

.plan__tag--hot { color: #10192A; background: var(--gold-500); border-color: var(--gold-500); }

.plan h3 { margin: 0; font-size: 15px; font-weight: 600; }
.plan__for { margin: 0 0 14px; font-size: 12.5px; color: var(--text-mute); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.plan__price span { font-size: 13px; font-weight: 500; color: var(--text-mute); }

.plan__unit { margin: 3px 0 16px; font-size: 12.5px; color: var(--text-soft); }
.plan__unit s { margin-right: 6px; color: var(--text-mute); }

.plan__list {
  flex: 1;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.plan__list li {
  position: relative;
  padding-left: 21px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2335C99A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.4l3.2 3.2L13 5'/%3E%3C/svg%3E") center/14px no-repeat;
}

.plans__note { margin: 16px 0 0; font-size: 12.5px; color: var(--text-mute); }

/* ── Modal ─────────────────────────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(4,8,15,.72); backdrop-filter: blur(3px); }

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: var(--nav-850);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  animation: pop .22s var(--ease);
}

.modal__panel h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.modal__body { margin: 0 0 16px; font-size: 13.5px; color: var(--text-soft); }

.modal__lines {
  margin: 0 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.modal__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.modal__lines dt { color: var(--text-mute); }
.modal__lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.modal__lines .total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }
.modal__lines .total dd { color: var(--gold-500); }

.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* ── Toast ─────────────────────────────────────────────── */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 13px 17px;
  font-size: 13.5px;
  background: var(--nav-800);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  animation: pop .25s var(--ease);
}

.toast::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.toast[hidden] { display: none; }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile tab bar ────────────────────────────────────── */

.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(8,13,24,.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.tabbar__item.is-active { color: var(--gold-500); }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1240px) {
  .split { grid-template-columns: 1fr 300px; }
}

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .bar__sub { display: none; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); }

  /* Everything in this row is tightened so the logo, three pills and the
     avatar fit inside 375px — anything wider pushed the whole page sideways. */
  .bar { min-height: 56px; padding: 10px 14px; gap: 8px; }
  .bar__logo { display: block; flex: 0 1 auto; min-width: 0; }
  .bar__logo img { width: 84px; }
  .bar__head { display: none; }
  .who__meta { display: none; }

  .bar__right { gap: 8px; min-width: 0; }
  .pill { padding: 0 10px; gap: 5px; }

  .wrap { padding: 16px 16px calc(86px + env(safe-area-inset-bottom)); }

  .hero { padding: 16px; border-radius: 14px; }
  .hero__row { flex-wrap: wrap; }
  .combo { flex: 1 1 100%; }
  .combo input, .hero__go { height: 48px; }
  .hero__row .hero__go { flex: 1 1 100%; }

  /* Four tabs will not fit on a phone — let them scroll instead of shrink. */
  .modes {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .modes::-webkit-scrollbar { display: none; }
  .mode { flex: 0 0 auto; padding: 9px 12px; font-size: 12.5px; white-space: nowrap; }
  .mode svg { display: none; }

  .hero__date { flex: 1 1 100%; height: 48px; }

  .hero__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__foot .hero__go { width: 100%; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__right { flex-direction: row; }
  .toolbar input { width: 100%; }
  .filters { justify-content: space-between; }
  .filter { flex: 1; }

  .owner { grid-template-columns: auto 1fr; }
  .owner__actions { grid-column: 1 / -1; }
  .owner__actions .btn { flex: 1; }

  .toast { left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: none; }
}

@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; gap: 20px; }
  .plan--featured { order: -1; }   /* stacked cards are tall — lead with the popular one */

  /* Table collapses into stacked rows — no sideways scrolling on a phone */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }

  .table tr { padding: 12px 16px; border-top: 1px solid var(--line); }

  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }

  .table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 11.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-mute);
    text-align: left;
  }

  .table td.prop { font-size: 14.5px; }
}

/* ── Preview state ─────────────────────────────────────── */

.pill--preview {
  color: var(--text-soft);
  background: rgba(255,255,255,.05);
  border-color: var(--line-strong);
  cursor: default;
}

.pill--preview[hidden] { display: none; }

.unlock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 12px;
  padding: 16px 18px;
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(238,186,43,.12), transparent 60%),
    var(--surface);
  border: 1px solid rgba(238,186,43,.32);
  border-radius: 14px;
}

.unlock__body strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.unlock__body p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-soft); }

.unlock .btn { flex: none; flex-direction: column; gap: 0; height: 46px; padding: 0 20px; }
.unlock .cost { font-size: 11px; font-weight: 500; opacity: .68; }

/* masked values read as redacted, not as data */
.owner__grid strong.is-masked,
.owner--masked .owner__name { letter-spacing: .02em; }

@media (max-width: 780px) {
  .unlock { flex-direction: column; align-items: stretch; gap: 12px; }
  .unlock .btn { width: 100%; }
}

/* ── Team ──────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.team-grid .col { display: grid; gap: 18px; align-content: start; }

/* the three balances, as one quiet strip rather than three big tiles */
.balance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.balance-strip > div { padding: 12px 16px; background: var(--surface); }
.balance-strip span { display: block; font-size: 12px; color: var(--text-mute); }

.balance-strip strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

.panel__tools { display: flex; gap: 10px; }
.panel__tools input { width: 260px; height: 38px; font-size: 13.5px; }

.panel__body { padding: 16px 18px; }
.panel--pad { padding: 16px 18px; }
.panel--pad .field:last-of-type { margin-bottom: 14px; }

.mini-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.team-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-mute); }
.team-note[hidden] { display: none; }

.or-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 12px;
  color: var(--text-mute);
}

.or-line::before, .or-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.balance-box {
  padding: 18px;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(238,186,43,.13), transparent 62%),
    var(--surface);
  border: 1px solid rgba(238,186,43,.24);
  border-radius: 14px;
}

.balance-box__label { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mute); }

.balance-box__value {
  display: block;
  margin: 2px 0 4px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}

.balance-box__note { margin: 0 0 14px; font-size: 12.5px; color: var(--text-soft); }

.code-row { display: flex; align-items: center; gap: 8px; }

.code-row code {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--gold-500);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-card { border-style: dashed; }

/* dispatch controls sit on one line and stay narrow */
.dispatch { display: flex; align-items: center; gap: 5px; }

.dispatch input {
  width: 52px;
  height: 30px;
  padding: 0 6px;
  font-size: 13px;
  text-align: center;
}

.dispatch .btn { height: 30px; padding: 0 9px; font-size: 12.5px; }

#team .table th, #team .table td { padding-left: 14px; padding-right: 14px; }
#team .table .prop { white-space: normal; min-width: 160px; }

.req {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.req:first-child { padding-top: 0; }
.req:last-child { border-bottom: 0; padding-bottom: 0; }
.req__who { min-width: 0; }
.req__who strong { display: block; font-size: 13.5px; font-weight: 500; }
.req__who span { font-size: 12px; color: var(--text-mute); }
.req__act { display: flex; gap: 6px; flex: none; }
.req__act .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }

.empty-note { margin: 0; font-size: 13px; color: var(--text-mute); }

@media (max-width: 1080px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .balance-strip { grid-template-columns: 1fr; }
}

/* ── Buy page ──────────────────────────────────────────── */

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.buy-grid .plans { grid-template-columns: repeat(2, 1fr); }

.plan.is-chosen {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500);
}

.checkout__pack {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout__pack strong { display: block; font-size: 15px; font-weight: 600; }
.checkout__pack span { font-size: 13px; color: var(--text-mute); }
.checkout__pack .empty-note { margin: 0; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }
.promo-row .btn { flex: none; height: 46px; }

.checkout .modal__lines { margin: 14px 0 16px; }

@media (max-width: 1080px) {
  .buy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .buy-grid .plans { grid-template-columns: 1fr; }
}

/* ── Admin ─────────────────────────────────────────────── */

.metrics--4 { grid-template-columns: repeat(4, 1fr); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-items: end;
}

.form-grid .check,
.form-grid > div:last-of-type,
.form-grid .team-note { grid-column: 1 / -1; }

.form-grid .btn { margin-right: 8px; }

.text-link {
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--gold-500);
  background: none;
  border: 0;
  cursor: pointer;
}

.text-link:hover { text-decoration: underline; }

@media (max-width: 1080px) { .metrics--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .form-grid { grid-template-columns: 1fr; } }

/* ── Credit pills and transfer ─────────────────────────── */

.pill--company {
  color: var(--text-soft);
  background: rgba(255,255,255,.05);
  border-color: var(--line-strong);
}

.pill--company:hover { background: rgba(255,255,255,.09); }

.transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.transfer-row strong { font-size: 13.5px; font-weight: 500; }
.transfer-row__act { display: flex; gap: 8px; flex: none; }

.transfer-row__act input {
  width: 62px;
  height: 38px;
  padding: 0 8px;
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 620px) {
  .transfer-row { flex-direction: column; align-items: stretch; }
  .transfer-row__act .btn { flex: 1; }
}

/* ── Admin: settings and pricing ───────────────────────── */

.admin-lead {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute);
}

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.setting-list { display: grid; gap: 4px; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

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

.setting-row > label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setting-row b { font-size: 13.5px; font-weight: 500; }
.setting-row small { font-size: 12px; line-height: 1.45; color: var(--text-mute); }

.setting-row__input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.setting-row__unit { font-size: 12.5px; color: var(--text-mute); }

.setting-row__input input {
  width: 96px;
  height: 38px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  text-align: right;
  color: var(--text);
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: 9px;
}

.setting-row__input input:focus {
  outline: none;
  border-color: rgba(238,186,43,.45);
  box-shadow: 0 0 0 3px rgba(238,186,43,.12);
}

/* A checkbox setting keeps the same rhythm as the rest of the list. */
.check.setting-row { justify-content: flex-start; }
.check.setting-row span b { display: block; }

.nav__badge {
  margin-left: auto;
  min-width: 19px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--navy-900, #080D18);
  background: var(--gold-500);
  border-radius: 999px;
}

.field__note { margin: 6px 0 0; font-size: 12px; color: var(--text-mute); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .setting-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .setting-row__input input { width: 100%; text-align: left; }
}
