/* ============================================================================
   Affiliate Materials Hub v2 — Magazine/Editorial
   Lato, top header + hero + filter chips + gallery.
   Supports both light and dark themes via [data-theme-mode] on <html>.
   ============================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root {
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --surface-2: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.36);
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --max-w: 1280px;
    --header-h: 68px;
}

body.theme-light {
    --border: rgba(12, 20, 39, 0.09);
    --border-strong: rgba(12, 20, 39, 0.18);
    --surface-2: rgba(12, 20, 39, 0.03);
    --shadow-sm: 0 1px 2px rgba(12, 20, 39, 0.04);
    --shadow-md: 0 4px 12px rgba(12, 20, 39, 0.06);
    --shadow-lg: 0 16px 40px rgba(12, 20, 39, 0.12);
}

body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

/* Subtle atmospheric background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1100px 700px at 85% -10%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 55%),
        radial-gradient(900px 600px at 10% 110%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.page { position: relative; z-index: 1; }

/* ============================================================================
   HEADER — top bar, full width
   ============================================================================ */
.page-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.page-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.125rem;
    transition: opacity 0.15s;
}
.brand:hover { opacity: 0.8; }
.brand-img {
    max-height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { line-height: 1; }

.header-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    transition: color 0.15s, background 0.15s;
}
.header-link:hover { color: var(--text); background: var(--surface-2); }
.header-link-primary {
    background: var(--accent);
    color: var(--bg);
}
.header-link-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

.theme-switch {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
    margin-left: 0.25rem;
}
.theme-switch:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
body.theme-light .t-sun { display: none; }
body.theme-light .t-moon { display: block; }
body.theme-dark .t-moon { display: none; }
body.theme-dark .t-sun { display: block; }

/* ============================================================================
   MAIN + HERO
   ============================================================================ */
.page-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.hero {
    padding: 4.5rem 0 3rem;
    max-width: 720px;
    animation: fadeUp 0.5s cubic-bezier(.2, .8, .2, 1) backwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 52ch;
}

/* Hero search */
.hero-search-wrap { margin-top: 2rem; max-width: 560px; }
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0 0.75rem 0 1.1rem;
    height: 52px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
}
.hero-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.hero-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 0.65rem;
}
#search {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    height: 100%;
    min-width: 0;
}
#search::placeholder { color: var(--text-muted); }
.search-hint {
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}
.hero-search-clear {
    background: var(--border);
    color: var(--text);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.hero-search-clear:hover { background: var(--border-strong); }

/* ============================================================================
   CHIPS (category filter)
   ============================================================================ */
.chips-wrap {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    margin: 0 -2rem;
    padding: 1rem 2rem;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.chips-wrap::-webkit-scrollbar { display: none; }

.chips {
    display: flex;
    gap: 0.45rem;
    max-width: var(--max-w);
    margin: 0 auto;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
}
.chip-count {
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}
.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}
.chip.active .chip-count {
    background: color-mix(in srgb, var(--bg) 20%, transparent);
    color: var(--bg);
}

/* ============================================================================
   CATEGORY SECTIONS
   ============================================================================ */
.cat {
    margin-top: 3.5rem;
    animation: fadeUp 0.5s cubic-bezier(.2, .8, .2, 1) backwards;
}
.cat:nth-child(3) { animation-delay: 0.05s; }
.cat:nth-child(4) { animation-delay: 0.1s; }
.cat:nth-child(5) { animation-delay: 0.15s; }

.cat-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--text);
}
.cat-title {
    font-size: clamp(1.4rem, 2.2vw, 1.65rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.cat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 55ch;
}
.cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================================================
   GRID + CARDS
   ============================================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: var(--shadow-md);
}
.card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

.card-select {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.card:hover .card-select,
.card.selected .card-select { opacity: 1; }

.card-checkbox {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}
.card-select-box {
    display: block;
    width: 22px;
    height: 22px;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    transition: all 0.15s;
    position: relative;
}
body.theme-light .card-select-box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(12, 20, 39, 0.3);
}
.card-checkbox:checked + .card-select-box {
    background: var(--accent);
    border-color: var(--accent);
}
.card-checkbox:checked + .card-select-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--bg);
    border-width: 0 2.2px 2.2px 0;
    transform: rotate(45deg);
}

/* Canvas (media) */
.card-canvas {
    aspect-ratio: 4 / 3;
    position: relative;
    background-color: rgba(255, 255, 255, 0.02);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.025) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.025) 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.theme-light .card-canvas {
    background-color: #f7f7f3;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.025) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.025) 75%);
}
.card-canvas img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.9rem;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card-canvas img { transform: scale(1.04); }

.card-file {
    color: var(--text-muted);
}

.card-format {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.64rem;
    font-weight: 900;
    color: var(--text);
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(8px);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    pointer-events: none;
}
body.theme-light .card-format {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Body */
.card-body {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: space-between;
}
.card-info {
    min-width: 0;
    flex: 1;
}
.card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.18rem;
}
.card-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.card-dl {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s;
}
.card-dl:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* ============================================================================
   SELECTION BAR (floating pill)
   ============================================================================ */
.selection-bar {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 3rem));
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 0.5rem 0.5rem 0.5rem 1.35rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
    z-index: 50;
}
.selection-bar.visible { transform: translateX(-50%) translateY(0); }
body.theme-light .selection-bar {
    background: rgba(255, 255, 255, 0.96);
}
.sel-count {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}
.sel-count #selCount { color: var(--accent); font-weight: 900; }
.sel-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.sel-btn-ghost,
.sel-btn-primary {
    padding: 0.55rem 1rem;
    border-radius: 100px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.sel-btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.sel-btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.sel-btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.sel-btn-primary:hover {
    background: var(--accent-hover);
}

/* ============================================================================
   PAGE FOOTER (download all CTA)
   ============================================================================ */
.page-footer {
    margin-top: 5rem;
    padding: 2rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-label {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.45rem;
}
.footer-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.015em;
}
.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.footer-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.empty svg { margin-bottom: 1.5rem; }
.empty h2 {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.empty p { font-size: 0.92rem; }

.no-results {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ============================================================================
   LIGHTBOX
   ============================================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
}
body.theme-light .lightbox-bg { background: rgba(12, 20, 39, 0.55); }

.lightbox-card {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.lightbox-head h3 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.015em;
}
.lightbox-head p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 700;
}
.lightbox-actions { display: flex; gap: 0.5rem; }
.lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s;
}
.lightbox-btn:hover { background: var(--accent-hover); }
.lightbox-close {
    width: 36px;
    height: 36px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.lightbox-close:hover { color: var(--text); border-color: var(--border-strong); }

.lightbox-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0px;
    padding: 1.5rem;
    min-height: 300px;
}
body.theme-light .lightbox-body { background-color: #f7f7f3; }
.lightbox-body img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
}

/* ============================================================================
   TOAST
   ============================================================================ */
.toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    pointer-events: none;
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1.35rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 200;
    transition: all 0.25s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-md);
}
.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   FILTERED STATE
   ============================================================================ */
.cat.hidden, .card.hidden { display: none !important; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 760px) {
    .page-header-inner { padding: 0 1rem; }
    .page-main { padding: 0 1rem 6rem; }
    .hero { padding: 2.5rem 0 1.5rem; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero-sub { font-size: 0.92rem; }
    .hero-search { height: 46px; }
    .search-hint { display: none; }

    .chips-wrap { margin: 0 -1rem; padding: 0.75rem 1rem; }

    .cat { margin-top: 2.5rem; }
    .cat-head { align-items: flex-start; flex-direction: column; gap: 0.5rem; }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 0.85rem;
    }

    .header-link:not(.header-link-primary) { display: none; }
    .brand-name { display: none; }

    .page-footer {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-btn { width: 100%; justify-content: center; }

    .selection-bar {
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
        transform: translateY(calc(100% + 2rem));
        justify-content: space-between;
    }
    .selection-bar.visible { transform: translateY(0); }
    .toast { bottom: 4.5rem; }
}
