/* Layout concept: RTL marketplace. Dark Nile-ink hero with a search strip that sits across the fold,
   then two listing rails (apartments / cars), booking sheet, owner + admin views. */
:root {
  --bg: #EEF2F1;
  --surface: #FFFFFF;
  --ink: #0B2530;
  --muted: #5B6F76;
  --line: #D3DDDB;
  --accent: #E8A400;      /* gum-arabic amber */
  --accent-ink: #2A1E00;
  --nile: #0F5C63;
  --ok: #1E8A5A;
  --busy: #C23B3B;        /* booked days in the owner calendar */
  --hero: #0B2530;
  --hero-fg: #F2F6F5;
  --f-display: "Reem Kufi", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081A21; --surface: #0F2830; --ink: #E8F0EF; --muted: #93A9AF; --line: #1E3C45;
    --accent: #F0B72A; --accent-ink: #2A1E00; --nile: #4FB3BA; --ok: #3FBF86; --busy: #E26A6A;
    --hero: #06141A; --hero-fg: #F2F6F5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081A21; --surface: #0F2830; --ink: #E8F0EF; --muted: #93A9AF; --line: #1E3C45;
  --accent: #F0B72A; --accent-ink: #2A1E00; --nile: #4FB3BA; --ok: #3FBF86; --busy: #E26A6A;
  --hero: #06141A; --hero-fg: #F2F6F5; color-scheme: dark;
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.7;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.25; text-wrap: balance; margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- STAGE 1: header, hero, search sheet, state marquee ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 26px; text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 14px; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--accent); }
.theme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.theme:hover { border-color: var(--ink); }
.theme[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hero { position: relative; background: var(--hero); color: var(--hero-fg); overflow: hidden;
  padding: clamp(28px, 6vw, 64px) clamp(18px, 5vw, 56px) clamp(96px, 15vw, 160px); }
.hero-copy { position: relative; z-index: 2; }
.kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 6.2vw, 62px); max-width: 20ch; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; }
.wi { display: inline-block; }
.lead { max-width: 54ch; margin: 18px 0 0; color: color-mix(in srgb, var(--hero-fg) 78%, transparent); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; min-width: 0; }
.facts b { font-family: var(--f-display); font-size: 34px; line-height: 1.1; color: var(--accent); }
.facts span { font-size: 14px; color: color-mix(in srgb, var(--hero-fg) 70%, transparent); }
.pyr { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: clamp(70px, 14vw, 150px); z-index: 1; pointer-events: none; }

.sheet { position: relative; z-index: 3; margin: -60px clamp(10px, 3vw, 32px) 0; background: var(--surface); border: 1px solid var(--line);
  padding: 18px; display: grid; gap: 14px; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .5); }
.seg { display: inline-flex; width: fit-content; border: 1px solid var(--line); }
.seg button { padding: 8px 24px; background: transparent; border: 0; cursor: pointer; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.f select, .f input { padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 46px; width: 100%; }
.go { background: var(--accent); color: var(--accent-ink); border: 0; font-family: var(--f-display); font-weight: 700; font-size: 19px;
  padding: 0 26px; min-height: 46px; cursor: pointer; align-self: end; }
.go:hover { filter: brightness(1.06); }

.mq { overflow: hidden; border-block: 1px solid var(--line); margin-top: 30px; padding-block: 10px; white-space: nowrap; }
.mq-track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span { font-family: var(--f-display); font-size: 20px; color: var(--muted); display: flex; align-items: center; }
.mq-track span::after { content: "◆"; color: var(--accent); font-size: 9px; margin-inline: 22px; }
@keyframes mq { to { transform: translateX(50%); } }

/* ---- STAGE 2: listing rails and cards ---- */
.block { padding-top: clamp(36px, 6vw, 72px); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.block-head h2 { font-size: clamp(24px, 4vw, 38px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--nile); border-color: var(--nile); color: var(--bg); }
.note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }
.art { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .92);
  background: linear-gradient(135deg, hsl(var(--h) 42% 26%), hsl(calc(var(--h) + 28) 48% 40%)); }
.art svg { width: 44%; max-width: 150px; }
.tag, .star { position: absolute; inset-block-start: 12px; font-size: 12px; font-weight: 600; padding: 3px 10px; }
.tag { inset-inline-start: 12px; background: var(--surface); color: var(--ink); }
.star { inset-inline-end: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cbody { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; z-index: 2; }
.meta { margin: 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card h3 { font-size: 19px; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.feats li { font-size: 12.5px; border: 1px solid var(--line); padding: 1px 9px; color: var(--muted); }
.price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.price b { font-size: 22px; }
.price span, .price small { font-size: 13px; color: var(--muted); }
.price small { flex-basis: 100%; }
.actions { display: flex; gap: 8px; }
.btn { flex: 1; background: var(--ink); color: var(--bg); border: 0; padding: 11px 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--nile); }
.wa { display: grid; place-items: center; padding: 0 16px; min-height: 44px; border: 1px solid var(--ok); color: var(--ok); font-weight: 600; text-decoration: none; }
.wa:hover { background: var(--ok); color: #fff; }
.empty { grid-column: 1 / -1; padding: 32px 16px; border: 1px dashed var(--line); text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty button { background: var(--ink); color: var(--bg); border: 0; padding: 9px 20px; cursor: pointer; font-weight: 600; }

/* ---- STAGE 3: details sheet and booking panel ---- */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(5, 15, 20, .66); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.sh { background: var(--surface); width: min(980px, 100%); border: 1px solid var(--line); margin-block: auto; min-width: 0; }
.sh:focus { outline: none; }
.sh-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 20px 0; }
.sh-head h2 { font-size: clamp(22px, 4vw, 32px); }
.x { flex: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.x:hover { background: var(--ink); color: var(--bg); }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding: 18px 20px 22px; }
@media (max-width: 760px) { .sh-grid { grid-template-columns: minmax(0, 1fr); } }
.sh-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sh-main h3, .book h3 { font-size: 19px; }
.sh-main p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.gal { display: grid; gap: 8px; }
.art.big { aspect-ratio: 16 / 9; }
.art.big svg { max-width: 190px; }
.cap { position: absolute; inset-block-end: 10px; inset-inline-start: 12px; font-size: 12px; background: rgba(0, 0, 0, .45); color: #fff; padding: 2px 8px; }
.thumbs { display: flex; gap: 8px; }
.th { flex: 1; aspect-ratio: 16 / 7; border: 2px solid transparent; cursor: pointer; background: linear-gradient(135deg, hsl(var(--h) 42% 26%), hsl(calc(var(--h) + 28) 48% 40%)); }
.th[aria-pressed="true"] { border-color: var(--accent); }
.bk-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bk-list li { font-size: 13px; padding: 2px 10px; border: 1px solid var(--busy); color: var(--busy); }
.maplink { color: var(--nile); font-weight: 600; }
.rev { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.rev b { font-weight: 600; }
.book { align-self: start; position: sticky; top: 12px; border: 1px solid var(--line); background: var(--bg); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.book h3:focus { outline: none; }
.fields1 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.rows { display: grid; gap: 6px; margin: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.row.total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.err { color: var(--busy); font-size: 14px; margin: 0; }
.good { color: var(--ok); font-weight: 600; margin: 0; }
.wide { width: 100%; }
.go.wide { align-self: stretch; }
.go:disabled { opacity: .45; cursor: not-allowed; }
.pay { border: 1px dashed var(--line); padding: 12px; display: grid; gap: 8px; font-size: 14px; background: var(--surface); }
.pay p { margin: 0; }
.prev { max-width: 100%; max-height: 160px; border: 1px solid var(--line); }
.btns { display: flex; gap: 8px; }
.ghost { background: transparent; border: 1px solid var(--line); padding: 0 18px; min-height: 46px; cursor: pointer; font-weight: 600; }
.ref { font-family: var(--f-mono); font-size: 22px; letter-spacing: .08em; }

/* ---- STAGE 4: owner dashboard ---- */
.pill { display: inline-block; padding: 1px 10px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.wait { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dash { display: grid; gap: 18px; }
.bal { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--hero); color: var(--hero-fg); }
.bal-main { padding: 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.lab { font-size: 14px; color: color-mix(in srgb, var(--hero-fg) 72%, transparent); }
.big { font-family: var(--f-display); font-size: clamp(34px, 6vw, 54px); line-height: 1.1; color: var(--accent); }
.bal-main .go { justify-self: start; margin-top: 8px; }
.bal-side { margin: 0; padding: 20px; display: grid; gap: 12px; align-content: center; min-width: 0;
  border-inline-start: 1px solid color-mix(in srgb, var(--hero-fg) 18%, transparent); }
.bal-side div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bal-side dt { font-size: 14px; color: color-mix(in srgb, var(--hero-fg) 72%, transparent); }
.bal-side dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) {
  .bal { grid-template-columns: minmax(0, 1fr); }
  .bal-side { border-inline-start: 0; border-top: 1px solid color-mix(in srgb, var(--hero-fg) 18%, transparent); }
}
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.panel h3 { font-size: 21px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.panel-head .f { min-width: 160px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cal-nav b { font-family: var(--f-display); font-size: 19px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dw { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.day { aspect-ratio: 1; min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--f-mono); font-size: 14px; cursor: pointer; padding: 0; }
.day:hover { border-color: var(--ink); }
.day.blank { border: 0; background: transparent; cursor: default; }
.day.past { opacity: .4; cursor: default; }
.day.busy { background: var(--busy); border-color: var(--busy); color: #fff; cursor: default; }
.day.man { background: repeating-linear-gradient(45deg, var(--busy) 0 5px, color-mix(in srgb, var(--busy) 55%, #000) 5px 10px); border-color: var(--busy); color: #fff; }
.day.pend { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); cursor: default; }
.day.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.day.past.busy, .day.past.man, .day.past.pend { opacity: .6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-inline-end: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.sw-busy { background: var(--busy); border-color: var(--busy) !important; }
.sw-man { background: repeating-linear-gradient(45deg, var(--busy) 0 3px, color-mix(in srgb, var(--busy) 55%, #000) 3px 6px); }
.sw-pend { background: var(--accent); border-color: var(--accent) !important; }
.bk { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.bk-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.bk-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px 12px; font-size: 13px; color: var(--muted); }
.bk-nums b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.lst { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.fields2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.fields2 .full { grid-column: 1 / -1; }
.fs { border: 1px solid var(--line); padding: 10px 12px; margin: 0; min-width: 0; }
.fs legend { font-size: 13px; color: var(--muted); padding-inline: 6px; }
.f textarea { padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; resize: vertical; }
#addForm { display: grid; gap: 12px; }
.prevs { display: flex; flex-wrap: wrap; gap: 8px; }
.prevs img { width: 72px; height: 54px; object-fit: cover; border: 1px solid var(--line); }

/* ---- STAGE 5: reviews, plans, admin, footer ---- */
.pill.bad { color: var(--busy); border-color: var(--busy); }
.danger { background: var(--busy); color: #fff; border: 0; padding: 0 18px; min-height: 36px; cursor: pointer; font-weight: 700; }
.rv-avg { margin: 0; font-size: 15px; color: var(--muted); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.rv { background: var(--surface); border: 1px solid var(--line); padding: 20px 18px 16px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.rv::before { content: "\201C"; font-family: var(--f-display); font-size: 64px; line-height: .6; color: var(--accent); height: 28px; }
.rv blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.rv footer { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; align-items: stretch; }
.plan { border: 1px solid var(--line); background: var(--surface); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.plan.pick { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.plan.dark { background: var(--hero); color: var(--hero-fg); border-color: var(--hero); }
.plan h3 { font-size: 24px; }
.plan .amount { font-family: var(--f-display); font-size: 40px; line-height: 1.1; }
.plan .unit { font-size: 14px; color: var(--muted); }
.plan.dark .unit { color: color-mix(in srgb, var(--hero-fg) 70%, transparent); }
.plan ul { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-inline-start: 24px; position: relative; }
.plan li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 700; }
.plan.dark li::before { color: var(--accent); }
.plan .btn { display: grid; place-items: center; text-decoration: none; margin-top: auto; }
.plan.dark .btn { background: var(--accent); color: var(--accent-ink); }
.adm-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.adm-top div { padding: 14px 16px; display: grid; gap: 2px; border-inline-end: 1px solid var(--line); }
.adm-top b { font-family: var(--f-display); font-size: 28px; line-height: 1.1; }
.adm-top span { font-size: 13px; color: var(--muted); }
.rc { max-height: 120px; max-width: 100%; border: 1px solid var(--line); cursor: zoom-in; }
.rc.zoom { max-height: none; width: 100%; cursor: zoom-out; }
.idbox { aspect-ratio: 1.6; max-width: 190px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 6px; }
.tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 500; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.foot { background: var(--hero); color: var(--hero-fg); margin-top: clamp(44px, 7vw, 96px); margin-bottom: 16px;
  padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.foot h4 { font-family: var(--f-display); font-size: 19px; margin: 0 0 8px; color: var(--accent); }
.foot p, .foot ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: color-mix(in srgb, var(--hero-fg) 80%, transparent); }
.foot li { padding-block: 2px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* ---- hosted version additions ---- */
html { scroll-padding-top: 12px; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.toast { position: fixed; inset-inline: 0; bottom: max(16px, env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: fit-content; max-width: calc(100% - 32px);
  z-index: 80; background: var(--ink); color: var(--bg); padding: 12px 20px; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.hdr-r { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.who { font-size: 13px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.authbox { padding: 18px 20px 24px; display: grid; gap: 14px; max-width: 460px; margin-inline: auto; width: 100%; }
.authbox h2 { font-size: 26px; }
.cta { background: var(--surface); border: 1px solid var(--line); padding: 28px 20px; display: grid; gap: 12px; justify-items: start; }
.cta p { margin: 0; max-width: 60ch; }
.rcwrap { display: grid; gap: 6px; }
.stat { display: grid; gap: 4px; }
.sbtn { justify-self: start; }
.loading { padding: 24px; color: var(--muted); text-align: center; grid-column: 1 / -1; }
.inl { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.bal .chip { background: transparent; color: var(--hero-fg); border-color: color-mix(in srgb, var(--hero-fg) 40%, transparent); }
.bal .chip:hover { border-color: var(--accent); color: var(--accent); }
#setForm, #addForm, #onbForm { display: grid; gap: 14px; }
#setForm .go { justify-self: start; }
