/* ==========================================================================
   Fasl design system: "future glass"
   Dark aurora backdrop, translucent frosted surfaces, neon accents.
   ========================================================================== */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/dist/fonts/cairo-arabic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/dist/fonts/cairo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;

  /* palette: change these RGB triplets to re-theme the whole app */
  --p: 16 185 129;        /* primary (emerald) */
  --p-deep: 5 150 105;    /* primary, darker (glows, gradient start) */
  --p-light: 52 211 153;  /* primary, lighter (borders, text accents) */
  --p-pale: #d1fae5;      /* primary-tinted text on dark */
  --a: 34 211 238;        /* accent (sky / cyan, gradient end) */
  --a-light: 103 232 249;
  --aurora-1: #047857;
  --aurora-2: #0e7490;
  --aurora-3: #0f766e;

  --violet: rgb(var(--p));
  --violet-2: rgb(var(--p-light));
  --cyan: rgb(var(--a));
  --cyan-2: rgb(var(--a-light));
  --pink: #f472b6;
  --grad: linear-gradient(135deg, rgb(var(--p-deep)) 0%, rgb(var(--p)) 45%, rgb(var(--a)) 100%);
  --grad-text: linear-gradient(90deg, rgb(var(--p-light)), rgb(var(--a-light)) 60%, rgb(var(--a-light)));

  --brand-50: rgb(var(--p) / 0.14);
  --brand-100: rgb(var(--p) / 0.22);
  --brand-200: var(--p-pale);
  --brand-400: rgb(var(--p-light));
  --brand-500: rgb(var(--p));
  --brand-600: rgb(var(--p-deep));
  --brand-700: var(--p-pale);
  --accent: var(--cyan);

  --success: #34d399;
  --success-bg: rgb(52 211 153 / 0.14);
  --warning: #fbbf24;
  --warning-bg: rgb(251 191 36 / 0.14);
  --danger: #f43f5e;
  --danger-600: #e11d48;
  --danger-bg: rgb(244 63 94 / 0.14);

  /* glass surfaces on a deep-space backdrop */
  --bg: #05060f;
  --ov-1: rgb(255 255 255 / 0.045); /* translucent overlays, lightest .. strongest */
  --ov-2: rgb(255 255 255 / 0.08);
  --ov-3: rgb(255 255 255 / 0.13);
  --ov-4: rgb(255 255 255 / 0.2);
  --inset: rgb(0 0 0 / 0.25); /* recessed areas: inputs, tool groups */
  --glass-strong: rgb(14 16 34 / 0.62); /* floating panels, menus, dialogs */
  --surface: var(--ov-1);
  --surface-2: var(--ov-2);
  --surface-3: var(--ov-3);
  --surface-solid: #0e1122;
  --border: var(--ov-2);
  --border-strong: var(--ov-3);
  --text: #eef0ff;
  --text-2: #a9b0cf;
  --text-3: #6f789b;

  --blur: blur(22px) saturate(160%);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-sm: 0 4px 16px -4px rgb(0 0 0 / 0.45);
  --shadow: 0 18px 40px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 40px 90px -20px rgb(0 0 0 / 0.75);
  --glow: 0 0 0 1px rgb(var(--p-light) / 0.35), 0 8px 30px -6px rgb(var(--p-deep) / 0.55);
  --ring: 0 0 0 3px rgb(var(--p) / 0.45);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* Light theme: same glass language on a pale mint backdrop. */
:root[data-theme='light'] {
  --bg: #eef5f3;
  --ov-1: rgb(15 23 42 / 0.035);
  --ov-2: rgb(15 23 42 / 0.06);
  --ov-3: rgb(15 23 42 / 0.1);
  --ov-4: rgb(15 23 42 / 0.16);
  --inset: rgb(255 255 255 / 0.75);
  --glass-strong: rgb(255 255 255 / 0.74);
  --surface: rgb(255 255 255 / 0.55);
  --surface-2: rgb(255 255 255 / 0.78);
  --surface-3: rgb(255 255 255 / 0.95);
  --surface-solid: #ffffff;
  --border: rgb(15 23 42 / 0.08);
  --border-strong: rgb(15 23 42 / 0.15);
  --text: #0b1220;
  --text-2: #475569;
  --text-3: #8a94a6;
  --p-pale: #047857;
  --grad-text: linear-gradient(90deg, rgb(var(--p-deep)), #0891b2);
  --aurora-1: #6ee7b7;
  --aurora-2: #67e8f9;
  --aurora-3: #a7f3d0;
  --shadow-xs: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-sm: 0 4px 16px -6px rgb(15 23 42 / 0.12);
  --shadow: 0 18px 40px -14px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 40px 90px -24px rgb(15 23 42 / 0.28);
  color-scheme: light;
}
:root[data-theme='light'] .aurora::before,
:root[data-theme='light'] .aurora::after { opacity: 0.45; }
:root[data-theme='light'] .badge-live { color: #be123c; }
:root[data-theme='light'] .form-error { color: #be123c; }
:root[data-theme='light'] .btn-danger { color: #fff; }
:root[data-theme='light'] .code-pill { color: var(--p-pale); }
:root[data-theme='light'] .switch input:not(:checked) { background: rgb(15 23 42 / 0.16); }

.theme-toggle .icon { transition: transform 0.3s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(20deg); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}

/* ---------------------------------------------------------------- aurora backdrop */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::before,
.aurora::after,
.aurora i {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.aurora::before { width: 55vw; height: 55vw; top: -18vw; inset-inline-start: -12vw; background: radial-gradient(circle, var(--aurora-1), transparent 65%); animation: drift-a 24s ease-in-out infinite alternate; }
.aurora::after { width: 50vw; height: 50vw; bottom: -20vw; inset-inline-end: -10vw; background: radial-gradient(circle, var(--aurora-2), transparent 65%); animation: drift-b 28s ease-in-out infinite alternate; }
.aurora i { width: 34vw; height: 34vw; top: 30%; left: 38%; background: radial-gradient(circle, var(--aurora-3), transparent 65%); opacity: 0.28; animation: drift-c 32s ease-in-out infinite alternate; }
/* fine grid for a "holographic" feel */
.aurora b {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--ov-1) 1px, transparent 1px), linear-gradient(90deg, var(--ov-1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, -8vh) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-16vw, 12vh) scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after, .aurora i { animation: none; }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: var(--cyan-2); }
img, svg, video, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: rgb(var(--p) / 0.45); }
* { scrollbar-width: thin; scrollbar-color: var(--ov-3) transparent; }

.icon { flex-shrink: 0; stroke-width: 2; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-variant-numeric: tabular-nums; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- glass */

.glass {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--ov-2);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: background 0.2s, border-color 0.2s, transform 0.12s, box-shadow 0.25s, filter 0.2s;
}
.btn:hover { color: var(--btn-fg); --btn-bg: var(--surface-3); border-color: var(--ov-4); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { --btn-bg: var(--grad); --btn-fg: #fff; --btn-border: transparent; background: var(--grad); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.12); box-shadow: 0 0 0 1px rgb(var(--p-light) / 0.5), 0 12px 40px -6px rgb(var(--p-deep) / 0.75); }
.btn-secondary { --btn-bg: var(--surface-2); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; backdrop-filter: none; }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn-danger { --btn-bg: linear-gradient(135deg, #f43f5e, #be123c); --btn-fg: #fff; --btn-border: transparent; background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 8px 26px -8px rgb(244 63 94 / 0.7); }
.btn-danger:hover { background: linear-gradient(135deg, #f43f5e, #be123c); filter: brightness(1.1); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; }

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.field small { color: var(--text-3); font-size: 12.5px; }
.field small.field-warn { color: var(--warning); font-weight: 700; }
.input, .select, .textarea {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--inset);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.select option { background: var(--surface-solid); }
.textarea { height: auto; min-height: 90px; padding: 11px 15px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: var(--ring); background: var(--inset); }
.input[type='datetime-local']::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-inline-start: 44px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background 0.25s; cursor: pointer; margin: 0; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: inset-inline-start 0.25s var(--ease); }
.switch input:checked { background: var(--grad); border-color: transparent; }
.switch input:checked::after { inset-inline-start: 19px; }

.settings-list { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; background: var(--inset); border: 1px solid var(--border); }
.setting-row { padding: 8px 10px; border-radius: 10px; align-items: flex-start; }
.setting-row:hover { background: var(--surface-2); }
.setting-row input { margin-top: 3px; }
.setting-row b { display: block; font-size: 14px; font-weight: 700; }
.setting-row small { display: block; color: var(--text-3); font-size: 12.5px; }
.form-notice { color: var(--p-pale); background: rgb(var(--p) / 0.12); border: 1px solid rgb(var(--p-light) / 0.3); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.form-error { color: #fecdd3; background: var(--danger-bg); border: 1px solid rgb(244 63 94 / 0.3); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* ---------------------------------------------------------------- surfaces */

.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--ov-2);
}
.card-pad { padding: 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.badge-brand { background: rgb(var(--p) / 0.16); border-color: rgb(var(--p-light) / 0.3); color: var(--p-pale); }
.badge-success { background: var(--success-bg); border-color: rgb(52 211 153 / 0.3); color: var(--success); }
.badge-warning { background: var(--warning-bg); border-color: rgb(251 191 36 / 0.3); color: var(--warning); }
.badge-danger { background: var(--danger-bg); border-color: rgb(244 63 94 / 0.3); color: #fda4af; }
.badge-live { background: rgb(244 63 94 / 0.18); border-color: rgb(244 63 94 / 0.45); color: #fecdd3; box-shadow: 0 0 18px -4px rgb(244 63 94 / 0.6); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 8px #fb7185; animation: pulse 1.4s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spin { animation: spin 0.9s linear infinite; }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--brand-600);
  box-shadow: inset 0 0 0 1px var(--ov-4), 0 4px 14px -4px rgb(0 0 0 / 0.5);
}

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 24px; color: var(--text-2); }
.empty .empty-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgb(var(--p) / 0.14); border: 1px solid rgb(var(--p-light) / 0.3); color: var(--violet-2); margin-bottom: 6px; box-shadow: 0 0 30px -6px rgb(var(--p) / 0.6); }
.empty h3 { color: var(--text); font-size: 18px; }

.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-3), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 700; color: var(--text-3); font-size: 12.5px; padding: 12px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover td { background: var(--ov-1); }

/* ---------------------------------------------------------------- modal */

.modal {
  border: 1px solid var(--border-strong);
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--glass-strong);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  color: var(--text);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--ov-2);
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  animation: rise 0.25s var(--ease);
}
.modal-sm { width: min(430px, calc(100% - 32px)); }
.modal-lg { width: min(760px, calc(100% - 32px)); }
.modal::backdrop { background: rgb(3 4 12 / 0.55); backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.modal-head h2 { font-size: 20px; }
.modal-head p { font-size: 14px; margin-top: 4px; }
.modal-body { padding: 20px 26px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 70vh; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 24px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- menus */

.menu {
  position: absolute;
  z-index: 70;
  min-width: 220px;
  padding: 6px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 0.16s var(--ease);
}
.menu button, .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 14px;
  color: var(--text);
  text-align: start;
}
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu .danger { color: #fda4af; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------------------------------------------------------------- toasts */

.toasts { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  border-inline-start: 3px solid var(--violet);
}
.toast.show { opacity: 1; transform: none; }
.toast-error { border-inline-start-color: var(--danger); }
.toast-success { border-inline-start-color: var(--success); }

/* New service-worker version: tap to reload (never automatic). */
.update-banner {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: rise 0.2s var(--ease);
}

/* ---------------------------------------------------------------- brand */

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--text); letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
/* The Fasl logo (/logo.svg): it carries its own colours, no tile behind it. */
.logo-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* Segmented control (tabs / mutually exclusive choices) */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 12px; background: var(--inset); border: 1px solid var(--border); }
.segmented button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.segmented button:hover { color: var(--text); background: var(--ov-2); }
.segmented button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px -4px rgb(var(--p-deep) / 0.8); }

/* the toast host is a popover (top layer, above dialogs): undo the popover defaults */
.toasts[popover] { inset: auto; bottom: 24px; inset-inline-start: 24px; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; width: auto; height: auto; }
/* toast with a button ("فيه تحديث جديد — حدّث الصفحة") */
.toast-reload { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* browser offline */
.offline-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 9px 16px; background: var(--warning-bg); border-bottom: 1px solid rgb(251 191 36 / 0.35); color: var(--text); font-size: 14px; font-weight: 700; text-align: center; backdrop-filter: blur(12px); }
.offline-banner p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.offline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); flex: none; box-shadow: 0 0 10px var(--warning); }
