/* Bonyan Soft site — styles
   Changelog:
   0.3.1 — removed styles of the home-page steps and facts (sections removed)
   0.3.0 — new identity from the brand book v1.0: midnight navy, electric blue (actions), cyan (details only),
           Noto Sans Arabic + Rubik, logo mark, ribbon and pixel elements, new header/footer, mobile menu
   0.1.0 — first version (navy + gold theme, light + dark)

   Layout: 8px spacing grid; one content column of 1120px; header and footer span the width. */

@font-face {
  font-family: 'BS Sans';
  src: url('/fonts/Rubik-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2010-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'BS Sans';
  src: url('/fonts/NotoSansArabic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* brand colours (brand book p.10) */
  --midnight: #07172E;
  --electric: #0066FF;
  --cyan: #00C8E8;
  --mist: #E9F1F7;

  /* light theme tokens */
  --bg: #FFFFFF;
  --band: #E9F1F7;
  --surface: #FFFFFF;
  --surface-2: #F4F8FB;
  --ink: #07172E;
  --muted: #4B5D74;
  --line: #D5E1EB;
  --accent: #0066FF;
  --accent-hover: #0052CC;
  --accent-ink: #FFFFFF;
  --link: #0058DB;
  --rule: #00C8E8;
  --focus: #0066FF;
  --step: #07172E;
  --art-line: transparent;
  --ok: #0E7A4B; --ok-bg: #E2F5EC;
  --warn: #8A5A00; --warn-bg: #FFF2D6;
  --bad: #B42318; --bad-bg: #FDE7E5;
  --shadow: 0 1px 2px rgba(7, 23, 46, .06), 0 8px 24px rgba(7, 23, 46, .06);

  --font: 'BS Sans', 'Noto Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07172E; --band: #0A1F3B; --surface: #0C2343; --surface-2: #0F2A4F;
    --ink: #EEF4FA; --muted: #A3B4C8; --line: #1E3A60;
    --accent: #0066FF; --accent-hover: #2B7DFF; --accent-ink: #FFFFFF;
    --link: #00C8E8; --rule: #00C8E8; --focus: #00C8E8; --step: #0066FF; --art-line: #1E3A60;
    --ok: #5FD6A0; --ok-bg: #0E3A2C; --warn: #F4C463; --warn-bg: #3A2E10; --bad: #FF8C82; --bad-bg: #431A1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07172E; --band: #0A1F3B; --surface: #0C2343; --surface-2: #0F2A4F;
  --ink: #EEF4FA; --muted: #A3B4C8; --line: #1E3A60;
  --accent: #0066FF; --accent-hover: #2B7DFF; --accent-ink: #FFFFFF;
  --link: #00C8E8; --rule: #00C8E8; --focus: #00C8E8; --step: #0066FF; --art-line: #1E3A60;
  --ok: #5FD6A0; --ok-bg: #0E3A2C; --warn: #F4C463; --warn-bg: #3A2E10; --bad: #FF8C82; --bad-bg: #431A1A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.85; color: var(--ink); background: var(--bg);
  font-feature-settings: 'ss01';
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 12px; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(26px, 3.4vw, 36px); }
h2 { font-size: clamp(20px, 2.4vw, 24px); }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
.lat, .ltr { direction: ltr; unicode-bidi: isolate; }
.ltr { display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.spacer { flex: 1; min-width: 0; }
.req { color: var(--bad); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: 8px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main > .wrap { padding-block: 32px 64px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.brand .mark { width: 40px; height: 38px; color: var(--ink); }
.brand .word { display: flex; flex-direction: column; line-height: 1.2; }
.brand .word b { font-size: 19px; font-weight: 800; }
.brand .word i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; direction: ltr; text-align: right; }
nav.main { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
nav.main a, nav.main .link {
  color: var(--ink); padding: 6px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  text-decoration: none; position: relative;
}
nav.main a:hover, nav.main .link:hover { background: var(--surface-2); text-decoration: none; }
nav.main a.active { color: var(--accent); font-weight: 700; }
nav.main a.active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 2px; background: var(--rule); border-radius: 2px; }
nav.main a.cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-inline-start: 8px; }
nav.main a.cta:hover { background: var(--accent-hover); }
nav.main a.cta.active::after { display: none; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; color: var(--muted) !important; }
.theme-btn svg, .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; color: var(--ink); cursor: pointer; place-items: center; }

@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .bar { flex-wrap: wrap; min-height: 64px; }
  nav.main { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; margin: 0; gap: 2px; }
  nav.main.open { display: flex; }
  nav.main a, nav.main .link { padding: 10px 12px; text-align: start; }
  nav.main a.active::after { display: none; }
  nav.main a.active { background: var(--surface-2); }
  nav.main a.cta { margin: 6px 0 0; text-align: center; }
  .theme-btn { width: auto; justify-content: start; }
}

/* ---------- footer ---------- */
.bottom { position: relative; overflow: hidden; background: #07172E; color: #C9D6E4; margin-top: 0; border-top: 1px solid var(--art-line); }
.bottom a { color: #FFFFFF; }
.foot { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; padding-block: 40px 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.foot-brand .mark { width: 44px; height: 42px; color: #FFFFFF; }
.foot-brand b { display: block; font-size: 20px; line-height: 1.3; }
.foot-brand .lat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: right; color: #C9D6E4; }
.slogan { margin: 0; font-weight: 700; color: #FFFFFF; justify-self: end; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.copy { justify-self: end; font-size: 14px; color: #9FB2C8; }
.foot-ribbon { position: absolute; inset: auto 0 0 auto; width: min(640px, 70%); height: 100%; pointer-events: none; }
.foot-ribbon path { fill: #0066FF; opacity: .12; }
.foot-ribbon path + path { fill: #00C8E8; opacity: .08; }
@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
  .slogan, .copy { justify-self: start; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 20px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 34px; padding: 4px 14px; font-size: 14px; }
.btn.on-dark { background: #FFFFFF; color: #07172E; }
.btn.on-dark:hover { background: var(--mist); }
.btn.ghost-dark { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.35); }
.btn.ghost-dark:hover { border-color: #FFFFFF; }

/* ---------- layout bits ---------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.apps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; min-width: 0;
}
.card + .card { margin-top: 16px; }
.grid > .card + .card, .grid.two > div > .card + .card { margin-top: 0; }
.grid.two > div > .card + .card { margin-top: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.notice { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.warn { background: var(--warn-bg); border-color: transparent; color: var(--ink); }
.notice.info { background: var(--band); border-color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.px { display: inline-grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.px i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--rule); }
.px i:nth-child(2) { background: var(--accent); }
.px i:nth-child(3) { opacity: 0; }
.sec-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 56px 0 20px; }
.sec-head h2 { margin: 0; }
.sec-head .spacer { min-width: 0; }

.badge {
  display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); line-height: 1.8; white-space: nowrap; vertical-align: middle;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding-block: 24px 8px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.4; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero .row { gap: 12px; }
.hero-art {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: #07172E;
  aspect-ratio: 5 / 4; max-width: 100%; display: grid; place-items: center; isolation: isolate;
  border: 1px solid var(--art-line);
}
.hero-art .ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art .ribbon path { fill: #0066FF; opacity: .22; }
.hero-art .ribbon path + path { fill: #00C8E8; opacity: .1; }
.hero-art img { width: 46%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 102, 255, .35)); }
.hero-art .tag {
  position: absolute; inset-inline: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  color: #FFFFFF; font-weight: 700;
}
.hero-art .tag span:first-child { font-size: 15px; }
.hero-art .tag .lat { font-size: 12px; letter-spacing: .14em; color: #9FB2C8; }
.hero-art::after { content: ""; position: absolute; inset-inline: 24px; bottom: 58px; height: 2px; width: 72px; background: #00C8E8; border-radius: 2px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-art { aspect-ratio: 16 / 10; }
  .hero-art img { width: 30%; }
}

.app-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.app-card h3 { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-card p { margin: 0; }
.app-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.app-card .go { font-size: 14px; font-weight: 700; color: var(--link); }
.app-icon {
  border-radius: 28%; display: grid; place-items: center; color: #FFFFFF; font-weight: 800; flex-shrink: 0;
  font-size: 24px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
}

/* ---------- app page ---------- */
.app-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.app-head h1 { margin: 0; }
.app-head p { margin: 0; color: var(--muted); font-size: 17px; }
.crumb { font-size: 14px; margin-bottom: 16px; display: inline-block; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
@media (max-width: 860px) { .layout-side { grid-template-columns: minmax(0, 1fr); } }
.prose { white-space: pre-line; max-width: 65ch; }
.dl-list { display: flex; flex-direction: column; gap: 8px; }
.dl {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none !important; background: var(--surface);
}
a.dl:hover { border-color: var(--accent); }
.dl .ch { font-weight: 700; }
.side-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.side-note h3 { font-size: 16px; }

/* ---------- prose pages ---------- */
.page { max-width: 760px; }
.page h1 { margin-bottom: 20px; }
.page h3 { margin-top: 24px; }
.page::before { content: ""; display: block; width: 56px; height: 3px; background: var(--rule); border-radius: 2px; margin-bottom: 20px; }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 8px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.contact .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--band); color: var(--accent); flex-shrink: 0; }
.contact .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact .lbl { font-weight: 700; }
.contact .val { color: var(--muted); user-select: all; }
.contact a.val { color: var(--link); }

/* ---------- forms ---------- */
label.f { display: block; margin-bottom: 16px; }
label.f > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.f small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.7; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input:disabled { background: var(--surface-2); color: var(--muted); }
textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
input[type="color"] { padding: 4px; height: 44px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); vertical-align: middle; margin: 0; }
.ltr-in { direction: ltr; text-align: left; }
.code-in { direction: ltr; text-align: center; letter-spacing: .5em; font-size: 24px; font-weight: 700; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; }

.switch-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: var(--r); background: var(--band); margin-bottom: 24px; }
.switch-row .t { flex: 1; min-width: 0; }
.switch-row b { display: block; margin-bottom: 4px; }
.switch-row p { margin: 0; font-size: 14px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(-22px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- sign-in ---------- */
.auth-box { max-width: 440px; margin: 24px auto; padding: 32px; }
.auth-box .mark { width: 52px; height: 49px; color: var(--ink); display: block; margin-bottom: 16px; }
.auth-box h1 { font-size: 26px; }

/* ---------- account / tickets ---------- */
.device { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.device:first-of-type { margin-top: 10px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; background: var(--surface); }
.msg.staff { background: var(--band); border-color: transparent; }
.msg .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg .meta b { color: var(--ink); }
.msg .body { white-space: pre-line; }

.table-wrap { overflow-x: auto; padding: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.t th { text-align: start; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--surface-2); }
.card.table-wrap .empty { padding: 32px; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin .side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.admin .side a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; text-decoration: none; }
.admin .side a:hover { background: var(--surface-2); }
.admin .side a.active { background: var(--step); color: #FFFFFF; font-weight: 700; }
.admin .side .side-title { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 12px 4px; letter-spacing: .02em; }
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin .side { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .admin .side .side-title { display: none; }
}
.stat { padding: 20px; }
.stat .n { font-size: 30px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 14px; }

/* ---------- overlays ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(7, 23, 46, .55); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 24px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
#toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: #07172E; color: #FFFFFF; padding: 10px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: 15px; max-width: 520px; border: 1px solid rgba(255, 255, 255, .14); border-inline-start: 3px solid #00C8E8; }
.toast.ok { border-inline-start-color: #5FD6A0; }
.toast.bad { border-inline-start-color: #FF8C82; }
.spinner { width: 32px; height: 32px; margin: 64px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }
