/*
 * upload.mantysmedia.com, on the mantysmedia.com design: ink header, hero on
 * the network image, dark and paper sections alternating, one acid orange,
 * slanted buttons, Inter for text and JetBrains Mono for labels and figures.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    --font-text: 'Inter', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --ink: #0a0a0c;
    --ink-2: #111216;
    --ink-3: #191a20;
    --paper: #f4f4f6;
    --paper-2: #ffffff;
    --orange: #ff6a00;
    --orange-hover: #ff8a2a;
    --orange-ink: #c24f00;

    --bg: var(--ink);
    --fg: #f5f5f7;
    --fg-2: #c8c8d0;
    --muted: #8f8f9b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --surface: var(--ink-2);
    --surface-2: var(--ink-3);
    --accent-text: var(--orange);
    --on-accent: #0a0a0c;
    --error: #fca5a5;
    --error-soft: #3b1212;
    --success: #86efac;
    --success-soft: #0f2a18;

    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --section: clamp(2.5rem, 5vw, 4rem);

    --radius: 4px;
    --gutter: 1rem;
    --wrap: 80rem;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --fast: 180ms;
}

@media (min-width: 48em) { :root { --gutter: 2rem; } }
@media (min-width: 80em) { :root { --gutter: 3rem; } }

.section--dark {
    color-scheme: dark;
    --bg: var(--ink);
    --fg: #f5f5f7;
    --fg-2: #c8c8d0;
    --muted: #8f8f9b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --surface: var(--ink-2);
    --surface-2: var(--ink-3);
    --accent-text: var(--orange);
    --error: #fca5a5;
    --error-soft: #3b1212;
    --success: #86efac;
    --success-soft: #0f2a18;
}

.section--light {
    color-scheme: light;
    --bg: var(--paper);
    --fg: #0f0f12;
    --fg-2: #3c3c45;
    --muted: #6a6a76;
    --line: rgba(10, 10, 12, 0.12);
    --line-strong: rgba(10, 10, 12, 0.28);
    --surface: var(--paper-2);
    --surface-2: #e9e9ee;
    --accent-text: var(--orange-ink);
    --error: #b91c1c;
    --error-soft: #fee2e2;
    --success: #15803d;
    --success-soft: #dcfce7;
}

/* ─── Base ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--fg);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.is-dragging::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    border: 3px dashed var(--orange);
    background: rgba(255, 106, 0, 0.06);
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; }
p, ul { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: #0a0a0c; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.icon { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Kicker: a mono label behind an orange slash, as on the site. */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.kicker::before { content: '/'; color: var(--orange); font-weight: 600; }

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #070c14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.5rem; }
.site-header__right { display: flex; align-items: center; gap: var(--space-3); }

.brand { display: inline-grid; gap: 0.1rem; color: inherit; text-decoration: none; }
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand__accent { color: var(--orange); }
.brand__tagline { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: #8f8f9b; }

.who {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8c8d0;
}

.who__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 12px rgba(34, 197, 94, 0.55);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; background: #070b14; color: #f5f5f7; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, 0.2) 0%, rgba(7, 11, 20, 0.6) 45%, rgba(7, 11, 20, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 11, 20, 0.7) 0%, rgba(7, 11, 20, 0.2) 75%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-5);
    padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 6vw, 3.5rem);
}

.hero__copy { display: grid; gap: var(--space-4); align-content: center; }
.hero__title-accent { display: block; color: var(--orange); }
.hero__lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.55; color: #c8c8d0; }

.hero__pillars {
    list-style: none;
    padding: var(--space-4) 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, max-content));
    gap: 0.4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8c8d0;
}

.hero__pillars li::before { content: '/'; margin-right: 0.5rem; color: var(--orange); font-weight: 600; }
.hero__index, .hero__coords { display: none; }

@media (min-width: 60em) {
    .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; column-gap: var(--space-7); }
    .hero__copy { grid-column: 1; grid-row: 1 / 3; }
    .hero__pillars { grid-column: 2; grid-row: 1; justify-self: end; grid-template-columns: 1fr; gap: 0.35rem; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.24); line-height: 1.8; }
    .hero__index { display: block; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin-top: -0.15rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: #8f8f9b; pointer-events: none; }
    .hero__pillars { padding-top: 1.8rem; }
    .hero__coords { display: block; grid-column: 2; grid-row: 2; justify-self: end; align-self: end; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: #8f8f9b; white-space: pre; }
}

/* Cover: the background fills the screen under the header, one card at the center. */
.hero--cover { min-height: calc(100vh - 4.5rem); display: grid; }
.hero--cover .hero__bg::after { background: linear-gradient(180deg, rgba(7, 11, 20, 0.35), rgba(7, 11, 20, 0.7)); }
.hero.hero--cover .hero__inner { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; place-items: center; padding-block: var(--space-6); }

/* One-time code: six boxes, no caret, an orange line under the box that takes the next digit. */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.otp__box {
    width: 100%;
    min-width: 0;
    height: 3.5rem;
    padding: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid var(--line-strong);
    border-bottom: 2px solid var(--line-strong);
    border-radius: var(--radius);
    caret-color: transparent;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.otp__box:focus { outline: none; border-bottom-color: var(--orange); background: rgba(255, 106, 0, 0.08); }
.otp__box.is-filled { border-color: rgba(255, 255, 255, 0.4); border-bottom-color: rgba(255, 255, 255, 0.4); }
.otp__box::selection { background: transparent; }

.cover-card {
    width: 100%;
    max-width: 24rem;
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    background: rgba(13, 15, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.cover-card .field { background: rgba(10, 10, 12, 0.7); }

/* ─── Sections ───────────────────────────────────────────────────────── */

.section { background: var(--bg); color: var(--fg); padding-block: var(--section); }
.section--tight { padding-block: var(--space-6); }
.stack > * + * { margin-top: var(--space-5); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-5); }
.sec-head__copy { display: grid; gap: var(--space-3); }
.sec-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.sec-head .mono { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }

.narrow { max-width: 30rem; margin-inline: auto; }

/* ─── Buttons: slanted parallelogram, label kept upright ─────────────── */

.btn {
    --btn-bg: transparent;
    --btn-line: transparent;
    --btn-skew: -12deg;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    border: 0;
    background: none;
    color: var(--fg);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--fast) var(--ease), transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--btn-bg);
    border: 1px solid var(--btn-line);
    border-radius: 4px;
    transform: skewX(var(--btn-skew));
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn .icon { width: 1rem; height: 1rem; transition: transform var(--fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn input[type="file"] { display: none; }

.btn--primary { --btn-bg: var(--orange); --btn-line: var(--orange); color: #0a0a0c; }
.btn--primary:hover { --btn-bg: var(--orange-hover); --btn-line: var(--orange-hover); }
.btn--outline { --btn-line: var(--line-strong); color: var(--fg); }
.btn--outline:hover { --btn-line: var(--fg); }
.btn--danger { --btn-line: rgba(220, 38, 38, 0.45); color: var(--error); }
.btn--danger:hover { --btn-bg: var(--error-soft); --btn-line: var(--error); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn--icon { padding-inline: 0.75rem; min-width: 2.5rem; }
.btn--block { width: 100%; }

/* ─── Fields ─────────────────────────────────────────────────────────── */

.field {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font: inherit;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.22); }
.field--code { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: 0.35em; text-align: center; }
.field--mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.lbl { display: block; margin-bottom: 0.45rem; font-size: 0.9rem; font-weight: 500; }
.check { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--orange); margin: 0; }

.form { display: grid; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row--end { justify-content: flex-end; }

.notice { padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2); font-size: 0.95rem; }
.notice--error { background: var(--error-soft); color: var(--error); border-color: transparent; }

/* ─── Drop zone ──────────────────────────────────────────────────────── */

.drop {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) var(--space-5);
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)) , var(--surface);
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.drop.is-over { border-color: var(--orange); background: rgba(255, 106, 0, 0.06); }
.drop__icon { width: 2.25rem; height: 2.25rem; margin: 0 auto var(--space-4); color: var(--orange); stroke-width: 1.5; }
.drop__title { margin-bottom: 0.35rem; }
.drop__text { margin-bottom: var(--space-5); color: var(--muted); }
.drop__actions { justify-content: center; gap: var(--space-4); }
.hint { margin-top: var(--space-4); color: var(--muted); font-size: 0.85rem; }

/* ─── Queue ──────────────────────────────────────────────────────────── */

.queue__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: var(--space-3); }
.queue__actions { margin-top: var(--space-4); }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 200ms linear; }

.qlist { list-style: none; margin: var(--space-4) 0 0; padding: 0; max-height: 18rem; overflow: auto; border-top: 1px solid var(--line); }
.qlist li { display: grid; grid-template-columns: 1.25rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.qlist .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlist .st { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.qlist .ok { color: var(--success); }
.qlist .ko { color: var(--error); }
.qlist .mini { width: 4rem; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.qlist .mini > span { display: block; height: 100%; background: var(--orange); }
.qlist .icon { color: var(--muted); }
.qlist .icon.ok { color: var(--success); }
.qlist .icon.ko { color: var(--error); }

/* ─── Gallery ────────────────────────────────────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-3); }
@media (min-width: 48em) { .grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--space-4); } }

.tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--fg);
    text-align: left;
    overflow: hidden;
    transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 10, 12, 0.08); }
.tile__media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media .icon { width: 2rem; height: 2rem; stroke-width: 1.25; }
.tile__ext { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.15rem 0.45rem; border-radius: 3px; background: rgba(10, 10, 12, 0.78); color: #e6e6ea; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tile__pending { position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.15rem 0.45rem; border-radius: 3px; background: var(--orange); color: #0a0a0c; font-family: var(--font-mono); font-size: 0.6875rem; }
.tile__check { position: absolute; top: 0.5rem; right: 0.5rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 3px; background: var(--orange); color: #0a0a0c; }
.tile.is-selected { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.tile__meta { padding: 0.6rem 0.75rem 0.7rem; }
.tile__name { font-size: 0.85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__sub { margin-top: 0.15rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }

.empty { padding: var(--space-7) var(--space-4); text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ─── Clients (admin) ────────────────────────────────────────────────── */

.clients { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.client { display: flex; flex-direction: column; gap: var(--space-3); }
.client__index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-text); }
.client .stats { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.client .stats b { color: var(--fg-2); font-weight: 500; }
.client .link { display: flex; gap: 0.5rem; align-items: center; }
.client .link input { flex: 1; min-width: 0; min-height: 2.5rem; }
.client__access { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.client__actions { margin-top: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.newclient { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .newclient { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* ─── Lightbox & modal ───────────────────────────────────────────────── */

.lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(7, 11, 20, 0.97);
    color: #f5f5f7;
    color-scheme: dark;
    --fg: #f5f5f7;
    --fg-2: #c8c8d0;
    --muted: #8f8f9b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.24);
    --surface: var(--ink-2);
    --surface-2: var(--ink-3);
    --bg: var(--ink);
    --error: #fca5a5;
    --error-soft: #3b1212;
}

.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--gutter); border-bottom: 1px solid var(--line); }
.lb__title { font-size: 0.95rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__title small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.lb__stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 1rem 4rem; }
.lb__stage img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.lb__placeholder { place-self: center; }
.lb__placeholder .icon { width: 4rem; height: 4rem; color: var(--muted); stroke-width: 1; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 0.5rem; }
.lb__nav--next { right: 0.5rem; }
.lb__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem var(--gutter); border-top: 1px solid var(--line); }
.lb__foot .row { gap: 0.5rem; }
.modal { place-self: center; width: 100%; max-width: 36rem; }
.modal__row { margin-bottom: var(--space-4); }
.modal__row .row { flex-wrap: nowrap; }
.modal__row .field { flex: 1; min-width: 0; }

/* ─── Toast & footer ─────────────────────────────────────────────────── */

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 300;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    background: #f5f5f7;
    color: #0a0a0c;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* The page ends on its last section: the light section fills the viewport so no ink strip shows under it. */
#app > .section--light:last-child { min-height: calc(100vh - 4.5rem - 26rem); }
