/*
 * The tenant panel's look, in the landing page's style: deep green-black surfaces, the
 * teal accent, glass bars, soft grid light, pill buttons and quiet motion.
 *
 * A plain stylesheet registered as a Filament asset (no Vite: the production image has no
 * Node step). Filament's own CSS lives in cascade layers, so these unlayered rules win
 * without !important. The palette itself (gray, primary) is set on the panel, so every
 * Filament component already uses these colours; this file adds the shape and the light.
 *
 * Motion: entrances run once and only animate opacity/transform; the only loops are in the
 * dashboard hero, and they pause off screen ([data-wasl-scene] without data-live) and stop
 * entirely for visitors who asked for reduced motion.
 */

:root {
    --wasl-accent: #0D9488; --wasl-accent-2: #14B8A6; --wasl-accent-3: #0F766E; --wasl-glow: 20, 184, 166;
    --wasl-soft: rgba(13, 148, 136, .09); --wasl-soft-2: rgba(13, 148, 136, .16);
    --wasl-line: rgba(11, 31, 29, .08); --wasl-line-2: rgba(11, 31, 29, .14);
    --wasl-surface: #FFFFFF; --wasl-glass: rgba(255, 255, 255, .74);
    --wasl-text-2: #40504E; --wasl-muted: #5B6B69; --wasl-warn: #B45309;
    --wasl-shadow: 0 1px 0 rgba(11, 31, 29, .03), 0 18px 48px -28px rgba(11, 31, 29, .28);
    --wasl-ease: cubic-bezier(.16, 1, .3, 1);
    --radius-lg: .75rem; --radius-xl: 1.25rem;
}
:root.dark {
    --wasl-accent: #2DD4BF; --wasl-accent-2: #5EEAD4; --wasl-accent-3: #99F6E4; --wasl-glow: 45, 212, 191;
    --wasl-soft: rgba(45, 212, 191, .08); --wasl-soft-2: rgba(45, 212, 191, .14);
    --wasl-line: rgba(233, 238, 237, .07); --wasl-line-2: rgba(233, 238, 237, .13);
    --wasl-surface: #0B1D1B; --wasl-glass: rgba(6, 19, 17, .72);
    --wasl-text-2: #BFCCC9; --wasl-muted: #8A9B98; --wasl-warn: #F59E0B;
    --wasl-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 24px 60px -32px rgba(0, 0, 0, .9);
}
::selection { background: #5EEAD4; color: #04302B; }

/* ── Canvas: the landing hero's grid and glow, fixed behind everything ─────────────────── */
.fi-body { position: relative; }
.fi-body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(var(--wasl-glow), .13), transparent 70%),
        radial-gradient(760px 480px at 96% 4%, rgba(13, 148, 136, .1), transparent 70%),
        linear-gradient(var(--wasl-line) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, var(--wasl-line) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35) 55%, transparent 90%);
    mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35) 55%, transparent 90%);
}

/* ── Top bar and sidebar: glass over the canvas ────────────────────────────────────────── */
.fi-topbar {
    background: var(--wasl-glass); box-shadow: none; border-bottom: 1px solid var(--wasl-line);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.dark .fi-topbar { background: var(--wasl-glass); }
@media (min-width: 1024px) {
    .fi-sidebar.fi-sidebar-open, .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar { background: transparent; border-inline-end: 1px solid var(--wasl-line); }
    .dark .fi-sidebar.fi-sidebar-open, .dark .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar { background: transparent; }
}
.fi-sidebar-item-btn { border-radius: 12px; transition: background-color .2s ease, color .2s ease, translate .35s var(--wasl-ease); }
.fi-sidebar-item-btn:hover { background: var(--wasl-soft); }
.dark .fi-sidebar-item-btn:hover { background: var(--wasl-soft); }
.fi-sidebar-item-btn > .fi-icon { transition: color .2s ease, transform .35s var(--wasl-ease); }
.fi-sidebar-item-btn:hover > .fi-icon { transform: scale(1.08); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(90deg, var(--wasl-soft-2), var(--wasl-soft) 70%, transparent);
    box-shadow: inset 0 0 0 1px rgba(var(--wasl-glow), .16);
}
[dir="rtl"] .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: linear-gradient(270deg, var(--wasl-soft-2), var(--wasl-soft) 70%, transparent); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: ''; position: absolute; inset-block: 9px; inset-inline-start: -1px; width: 3px; border-radius: 3px;
    background: var(--wasl-accent); box-shadow: 0 0 12px rgba(var(--wasl-glow), .8);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon,
.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--wasl-accent); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--wasl-accent-3); }
:root:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-label { color: var(--wasl-accent-3); }
.fi-tenant-menu-trigger { border-radius: 14px; border: 1px solid var(--wasl-line); background: var(--wasl-surface); box-shadow: var(--wasl-shadow); }
.fi-tenant-menu-trigger:hover { border-color: rgba(var(--wasl-glow), .4); }
.fi-tenant-avatar { border-radius: 10px; background: linear-gradient(135deg, #0D9488, #5EEAD4); color: #04302B; font-weight: 600; }

/* ── Sending-channel switch: the first thing in the sidebar navigation ─────────────────── */
/* Off is the tenant's own number, on is Wasl's. The live side is the teal one; the whole
   card gives way to a pill when the sidebar collapses. */
.wasl-channel { margin-bottom: 8px; }
.wasl-channel-card {
    padding: 12px 12px 11px; border-radius: 16px; border: 1px solid var(--wasl-line);
    background: var(--wasl-soft); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.wasl-channel-eyebrow {
    margin: 0 0 9px; font-family: var(--mono-font-family), ui-monospace, monospace;
    font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--wasl-muted);
}
.wasl-channel-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wasl-channel-side { font-size: 11.5px; line-height: 1.2; color: var(--wasl-muted); transition: color .2s ease; }
.wasl-channel[data-wasl-channel="own"] .wasl-channel-side[data-side="own"],
.wasl-channel[data-wasl-channel="wasl"] .wasl-channel-side[data-side="wasl"] { color: var(--wasl-accent); font-weight: 500; }
.wasl-channel[data-wasl-locked] .wasl-channel-side[data-side="wasl"] { opacity: .55; }

/* The checkbox itself, drawn rather than hidden: focus, keyboard and :disabled stay native. */
.wasl-channel-input {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0;
    width: 38px; height: 21px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--wasl-line-2); background: rgba(11, 31, 29, .07);
    transition: background-color .22s ease, border-color .22s ease;
}
.dark .wasl-channel-input { background: rgba(255, 255, 255, .07); }
.wasl-channel-input::after {
    content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 15px; height: 15px;
    border-radius: 50%; background: var(--wasl-surface); box-shadow: 0 1px 3px rgba(11, 31, 29, .35);
    transition: translate .25s var(--wasl-ease);
}
.wasl-channel-input:checked { background: var(--wasl-accent); border-color: transparent; box-shadow: 0 0 0 3px rgba(var(--wasl-glow), .14); }
.wasl-channel-input:checked::after { translate: 17px 0; background: #FFFFFF; }
[dir="rtl"] .wasl-channel-input:checked::after { translate: -17px 0; }
.wasl-channel-input:not(:disabled):hover { border-color: rgba(var(--wasl-glow), .5); }
.wasl-channel-input:focus-visible { outline: 2px solid var(--wasl-accent-2); outline-offset: 2px; }
.wasl-channel-input:disabled { cursor: not-allowed; opacity: .5; }

.wasl-channel-note { margin: 9px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--wasl-muted); }
.wasl-channel-hint {
    display: flex; gap: 6px; margin: 7px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--wasl-warn);
}
.wasl-channel-hint::before { content: ''; flex: none; width: 4px; height: 4px; margin-top: 6px; border-radius: 50%; background: currentColor; }

/* Collapsed sidebar: just which number is live, and a way back to the card. */
.wasl-channel-pill {
    display: block; width: 100%; padding: 7px 0; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--wasl-line); background: var(--wasl-soft);
    font-family: var(--mono-font-family), ui-monospace, monospace;
    font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-align: center; color: var(--wasl-muted);
    transition: border-color .2s ease, color .2s ease;
}
.wasl-channel[data-wasl-channel="wasl"] .wasl-channel-pill { color: var(--wasl-accent); border-color: rgba(var(--wasl-glow), .35); }
.wasl-channel-pill:hover { border-color: rgba(var(--wasl-glow), .5); }

@media (prefers-reduced-motion: reduce) {
    .wasl-channel-input, .wasl-channel-input::after, .wasl-channel-side { transition: none; }
}

/* ── Template form: the account line, and the preview that follows you down ───────────── */
.wasl-account-note {
    display: flex; gap: 11px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid var(--wasl-line); background: var(--wasl-soft);
}
.wasl-account-note-mark {
    flex: none; width: 3px; margin: 1px 0; border-radius: 3px; background: var(--wasl-accent);
}
.wasl-account-note[data-wasl-blocked] { border-color: rgba(180, 83, 9, .32); background: rgba(180, 83, 9, .07); }
.dark .wasl-account-note[data-wasl-blocked] { border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .07); }
.wasl-account-note[data-wasl-blocked] .wasl-account-note-mark { background: var(--wasl-warn); }
.wasl-account-note-text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--wasl-text-2); }
.wasl-account-note-text b { font-weight: 600; color: var(--gray-950); }
.wasl-account-note-aside { display: block; margin-top: 2px; font-size: 12px; color: var(--wasl-muted); }
.wasl-account-note-aside b { font-weight: 500; color: var(--wasl-text-2); }

/* Boxes whose own component builds the inputs, so they take no dir attribute of their own.
   unicode-bidi: plaintext is what dir="auto" means: the first strong letter sets the line. */
.wasl-dir-auto input,
.wasl-dir-auto textarea { unicode-bidi: plaintext; text-align: start; }

@media (min-width: 1024px) {
    /* .fi-grid is overflow-x: hidden, which makes it a scroll container and pins any sticky
       child to it. These two pages hold sections and a preview card — nothing to clip. */
    .fi-resource-templates .fi-grid { overflow: visible; }
    /* The grid cell stretches to the form's height, so the preview can ride along inside it. */
    .wasl-form-aside { position: sticky; top: 1.25rem; }
}

/* ── Page header ───────────────────────────────────────────────────────────────────────── */
.fi-header-heading { font-weight: 600; letter-spacing: -.035em; }
.fi-header-heading::after {
    content: ''; display: block; width: 44px; height: 3px; margin-top: 12px; border-radius: 3px;
    background: linear-gradient(90deg, var(--wasl-accent), transparent);
}
[dir="rtl"] .fi-header-heading::after { background: linear-gradient(270deg, var(--wasl-accent), transparent); }
.fi-header-subheading { color: var(--wasl-muted); }

/* ── Cards: sections, stats, tables, charts ────────────────────────────────────────────── */
.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-wi-stats-overview-stat,
.fi-ta-ctn {
    background: var(--wasl-surface); box-shadow: var(--wasl-shadow), 0 0 0 1px var(--wasl-line);
}
.dark .fi-section:not(.fi-section-not-contained):not(.fi-aside),
.dark .fi-wi-stats-overview-stat,
.dark .fi-ta-ctn { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--wasl-surface); }
.fi-section-header-heading, .fi-ta-header-heading { letter-spacing: -.015em; }

/* Stats: an accent hairline on top, a calm label, a large tight number. */
.fi-wi-stats-overview-stat { position: relative; isolation: isolate; overflow: hidden; transition: box-shadow .35s ease, translate .45s var(--wasl-ease); }
.fi-wi-stats-overview-stat::after {
    content: ''; position: absolute; inset-inline: 22px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--wasl-glow), .7), transparent);
}
.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--wasl-muted); }
.dark .fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label { color: var(--wasl-muted); }
.fi-wi-stats-overview-stat-value { font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* Five stats in three columns leave a hole; the first one takes two cells instead and is
   featured (on the dashboard that is the balance). Each stat sits in its own .fi-grid-col.
   44rem is safely past the 36rem where Filament's grid turns to three columns, so a
   one-column grid never gets a span (which would add a column). */
@container (min-width: 44rem) {
    .fi-grid:has(> .fi-grid-col:nth-child(5):last-child > .fi-sc-component > .fi-wi-stats-overview-stat) > .fi-grid-col:first-child { grid-column: span 2; }
    .fi-grid:has(> .fi-grid-col:nth-child(5):last-child > .fi-sc-component > .fi-wi-stats-overview-stat) > .fi-grid-col:first-child .fi-wi-stats-overview-stat {
        background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(var(--wasl-glow), .16), transparent 60%), var(--wasl-surface);
    }
    .fi-grid:has(> .fi-grid-col:nth-child(5):last-child > .fi-sc-component > .fi-wi-stats-overview-stat) > .fi-grid-col:first-child .fi-wi-stats-overview-stat-value { font-size: 2.6rem; line-height: 1.1; }
}

/* Pointer light on cards (theme.js sets --sx/--sy; fine pointers only). */
:is(.fi-wi-stats-overview-stat, .fi-wi-chart .fi-section, .wasl-hero)::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(var(--wasl-glow), .11), transparent 45%);
    transition: opacity .4s ease;
}
.fi-wi-chart .fi-section { position: relative; isolation: isolate; }
:is(.fi-wi-stats-overview-stat, .fi-wi-chart .fi-section):hover { box-shadow: var(--wasl-shadow), 0 0 0 1px rgba(var(--wasl-glow), .28); }
:is(.fi-wi-stats-overview-stat, .fi-wi-chart .fi-section, .wasl-hero):hover::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .fi-wi-stats-overview-stat:hover { translate: 0 -3px; }
}

/* Tables */
.fi-ta-header-cell { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--wasl-muted); }
.dark .fi-ta-header-cell { color: var(--wasl-muted); }
.fi-ta-row { transition: background-color .2s ease; }
.fi-ta-row:hover, .dark .fi-ta-row:hover { background: var(--wasl-soft); }
.fi-ta-empty-state-icon-bg { background: var(--wasl-soft-2); border-radius: 999px; }
.fi-ta-empty-state-icon-bg .fi-icon { color: var(--wasl-accent); }

/* Badges: pills */
.fi-badge { border-radius: 999px; padding-inline: 9px; }

/* ── Controls ──────────────────────────────────────────────────────────────────────────── */
.fi-btn { transition: background-color .2s ease, box-shadow .3s ease, color .2s ease, translate .35s var(--wasl-ease); }
.fi-btn:not(.fi-btn-group .fi-btn):not(.fi-input-wrp .fi-btn):not(.fi-pagination .fi-btn) { border-radius: 999px; padding-inline: 16px; }
.fi-btn.fi-size-xs:not(.fi-btn-group .fi-btn) { padding-inline: 10px; }
.fi-btn.fi-color-primary:not(.fi-outlined) { box-shadow: 0 0 0 1px rgba(var(--wasl-glow), .35), 0 10px 28px -12px rgba(var(--wasl-glow), .75); }
.fi-btn.fi-color-primary:not(.fi-outlined):not([disabled]):not(.fi-disabled):hover { box-shadow: 0 0 0 1px rgba(var(--wasl-glow), .55), 0 14px 34px -12px rgba(var(--wasl-glow), .9); }
@media (prefers-reduced-motion: no-preference) {
    .fi-btn.fi-color-primary:not(.fi-outlined):not([disabled]):not(.fi-disabled):hover { translate: 0 -1px; }
}
.fi-input-wrp { border-radius: 12px; transition: box-shadow .25s ease; }
.fi-input-wrp:not(.fi-disabled):not(:has(.fi-ac-action:focus)):focus-within { box-shadow: 0 0 0 1px var(--wasl-accent), 0 0 0 4px rgba(var(--wasl-glow), .16); }
.fi-dropdown-panel { border-radius: 16px; box-shadow: var(--wasl-shadow), 0 0 0 1px var(--wasl-line-2); }
.dark .fi-dropdown-panel { background: #0B1D1B; }
.fi-dropdown-list-item { border-radius: 10px; }
.fi-modal-window { border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55), 0 0 0 1px var(--wasl-line-2); }
.dark .fi-modal-window { background: linear-gradient(180deg, rgba(var(--wasl-glow), .05), transparent 30%), #0B1D1B; }
.fi-modal-slide-over .fi-modal-window { border-radius: 0; }
.fi-tabs { border-radius: 14px; }
.fi-user-avatar, .fi-avatar.fi-circular { box-shadow: 0 0 0 2px var(--wasl-surface), 0 0 0 3px rgba(var(--wasl-glow), .45); }
.fi-link { text-underline-offset: 3px; }
:focus-visible { outline-color: var(--wasl-accent); }

/* ── Sign-in, register and verify: the landing hero around a glass card ───────────────── */
.fi-simple-layout { position: relative; isolation: isolate; overflow: hidden; }
.fi-simple-layout::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(var(--wasl-glow), .2), transparent) 50% -420px / 1000px 900px no-repeat,
        radial-gradient(closest-side, rgba(13, 148, 136, .16), transparent) calc(50% + 380px) 70% / 700px 700px no-repeat,
        linear-gradient(var(--wasl-line) 1px, transparent 1px) center top / 64px 64px,
        linear-gradient(90deg, var(--wasl-line) 1px, transparent 1px) center top / 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
}
.fi-body:has(.fi-simple-layout)::before { display: none; }
.fi-simple-main {
    position: relative; border-radius: 28px; border: 1px solid var(--wasl-line-2);
    background: var(--wasl-glass); box-shadow: var(--wasl-shadow);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.dark .fi-simple-main { background: var(--wasl-glass); }
.fi-simple-main::before {
    content: ''; position: absolute; inset-inline: 48px; top: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(var(--wasl-glow), .9), transparent);
}
.fi-simple-header-heading { font-weight: 600; letter-spacing: -.035em; }
.fi-simple-main .fi-btn.fi-color-primary { height: 46px; }

/* ── Brand ─────────────────────────────────────────────────────────────────────────────── */
.wasl-brand { display: inline-flex; align-items: center; gap: 10px; }
.wasl-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #0B1F1D; color: #FFFFFF; box-shadow: 0 6px 18px -8px rgba(var(--wasl-glow), .8); }
.dark .wasl-brand-mark { background: #FFFFFF; color: #0B1F1D; }
.wasl-brand-mark svg { width: 62%; height: 62%; }
.wasl-brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--gray-950); }
.dark .wasl-brand-name { color: #FFFFFF; }
.wasl-brand-name span { color: var(--wasl-muted); }

/* ── Dashboard hero ────────────────────────────────────────────────────────────────────── */
.wasl-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center;
    padding: 28px; border-radius: 28px; color: #EEF3F2;
    background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(45, 212, 191, .24), transparent 60%), linear-gradient(160deg, #0B1F1D, #061311 70%);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, .2), 0 30px 70px -36px rgba(4, 48, 43, .9);
}
@media (min-width: 640px) { .wasl-hero { padding: 36px 40px; } }
.wasl-hero-ctn { container-type: inline-size; }
@container (min-width: 860px) { .wasl-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px; } }
.wasl-hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.wasl-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(233, 238, 237, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 238, 237, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000 20%, transparent 75%);
}
.wasl-hero-orb { position: absolute; width: 520px; height: 520px; inset-inline-end: -120px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, .2), transparent); }
.wasl-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono-font-family), ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5EEAD4; }
.wasl-eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.wasl-hero-title { margin: 14px 0 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; color: #FFFFFF; }
.wasl-hl { background: linear-gradient(100deg, #99F6E4, #5EEAD4 45%, #2DD4BF 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wasl-hero-lead { max-width: 520px; margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: #BFCCC9; }
.wasl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.wasl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(233, 238, 237, .12); background: rgba(255, 255, 255, .04); font-size: 13px; color: #DDE6E4; }
.wasl-chip b { font-weight: 500; color: #FFFFFF; }
.wasl-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 0 3px rgba(45, 212, 191, .18); }
.wasl-chip[data-tone="warn"] { border-color: rgba(245, 158, 11, .35); }
.wasl-chip[data-tone="warn"] .wasl-dot { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.wasl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wasl-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 18px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, box-shadow .3s ease, translate .35s var(--wasl-ease); }
.wasl-btn svg { width: 16px; height: 16px; }
.wasl-btn-primary { background: #2DD4BF; color: #04302B; box-shadow: 0 0 0 1px rgba(45, 212, 191, .4), 0 12px 32px -12px rgba(45, 212, 191, .8); }
.wasl-btn-primary:hover { background: #5EEAD4; }
.wasl-btn-ghost { border: 1px solid rgba(233, 238, 237, .18); color: #EEF3F2; background: rgba(255, 255, 255, .03); }
.wasl-btn-ghost:hover { border-color: rgba(94, 234, 212, .55); background: rgba(94, 234, 212, .07); }
.wasl-btn:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 3px; }
[dir="rtl"] .wasl-btn .wasl-arrow { transform: scaleX(-1); }

/* The route: your app → Wasl → the phone, with packets travelling the beams. */
.wasl-route { display: none; grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto; align-items: center; gap: 0; }
@container (min-width: 860px) { .wasl-route { display: grid; } }
.wasl-node { display: grid; justify-items: center; gap: 10px; font-size: 12px; color: #8A9B98; }
.wasl-node-box { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; border: 1px solid rgba(233, 238, 237, .12); background: rgba(255, 255, 255, .04); color: #DDE6E4; }
.wasl-node-box svg { width: 26px; height: 26px; }
.wasl-node-core .wasl-node-box { position: relative; width: 78px; height: 78px; border-radius: 22px; background: #FFFFFF; color: #0B1F1D; border: 0; box-shadow: 0 0 0 6px rgba(45, 212, 191, .1), 0 18px 40px -14px rgba(45, 212, 191, .7); }
.wasl-node-core .wasl-node-box svg { width: 40px; height: 40px; }
.wasl-node-core { color: #5EEAD4; }
.wasl-ring { position: absolute; inset: -6px; border-radius: 26px; border: 1px solid rgba(45, 212, 191, .5); opacity: 0; }
.wasl-phone .wasl-node-box { width: 84px; height: 112px; border-radius: 20px; align-content: center; gap: 6px; padding: 8px; }
.wasl-bubble { width: 100%; padding: 6px 7px; border-radius: 10px 10px 10px 4px; background: rgba(45, 212, 191, .14); font-family: var(--mono-font-family), ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-align: center; white-space: nowrap; color: #99F6E4; }
.wasl-bubble-line { height: 5px; width: 70%; border-radius: 3px; background: rgba(233, 238, 237, .1); }
.wasl-beam { position: relative; height: 2px; margin-inline: 8px; margin-bottom: 26px; overflow: hidden; border-radius: 2px; background: linear-gradient(90deg, rgba(45, 212, 191, .08), rgba(45, 212, 191, .35), rgba(45, 212, 191, .08)); }
[dir="rtl"] .wasl-beam { transform: scaleX(-1); }
.wasl-pk { position: absolute; inset-block: -1px; left: 0; width: 34%; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, transparent, #5EEAD4); box-shadow: 0 0 10px rgba(94, 234, 212, .8); }

/* ── Motion: once on arrival, compositor-only, and nothing for reduced motion ──────────── */
@media (prefers-reduced-motion: no-preference) {
    /* Pages: a short fade only. A work tool should not wait on motion, and a transform would
       make these sections the containing block of Filament's fixed-position action modals. */
    .fi-header, .fi-page-content > * { animation: wasl-fade .4s ease-out backwards; }
    .fi-simple-main { animation: wasl-enter .8s var(--wasl-ease) backwards; }
    .fi-wi-stats-overview-stat { animation: wasl-enter .8s var(--wasl-ease) backwards; }
    .fi-grid-col:nth-child(2) > .fi-sc-component > .fi-wi-stats-overview-stat { animation-delay: 70ms; }
    .fi-grid-col:nth-child(3) > .fi-sc-component > .fi-wi-stats-overview-stat { animation-delay: 140ms; }
    .fi-grid-col:nth-child(4) > .fi-sc-component > .fi-wi-stats-overview-stat { animation-delay: 210ms; }
    .fi-grid-col:nth-child(n + 5) > .fi-sc-component > .fi-wi-stats-overview-stat { animation-delay: 280ms; }
    .wasl-hero-title, .wasl-hero-lead, .wasl-chips, .wasl-actions { animation: wasl-enter .9s var(--wasl-ease) backwards; }
    .wasl-hero-lead { animation-delay: 80ms; }
    .wasl-chips { animation-delay: 160ms; }
    .wasl-actions { animation-delay: 240ms; }
    .wasl-node { animation: wasl-pop .8s var(--wasl-ease) backwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }

    .wasl-pk { animation: wasl-beam 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
    .wasl-beam-b .wasl-pk { animation-delay: 1.1s; }
    .wasl-ring { animation: wasl-ring 3.2s var(--wasl-ease) infinite; animation-delay: .9s; }
    .wasl-orbit { animation: wasl-drift 18s ease-in-out infinite alternate; }
    [data-wasl-scene]:not([data-live]) :is(.wasl-pk, .wasl-ring, .wasl-orbit) { animation-play-state: paused; }
}
@keyframes wasl-fade { from { opacity: 0; } }
@keyframes wasl-enter { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes wasl-pop { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.92); } }
@keyframes wasl-beam { 0% { opacity: 0; transform: translate3d(-100%, 0, 0); } 15% { opacity: 1; } 55% { opacity: 1; transform: translate3d(300%, 0, 0); } 56%, 100% { opacity: 0; transform: translate3d(300%, 0, 0); } }
@keyframes wasl-ring { 0% { opacity: .9; transform: scale(.94); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes wasl-drift { to { transform: translate3d(-60px, 40px, 0); } }

@media print {
    .fi-body::before, .fi-simple-layout::before, .wasl-hero-bg, .wasl-route { display: none !important; }
    .wasl-hero { background: none; color: #000; box-shadow: none; border: 1px solid #ccc; }
    .wasl-hero-title, .wasl-hero-lead, .wasl-chip, .wasl-chip b, .wasl-eyebrow { color: #000; }
    .wasl-hl { -webkit-text-fill-color: currentColor; background: none; }
}
