@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Logo Animator — design system
   Slate neutral ramp, chartreuse accent, 4px spacing grid.
   ========================================================================== */

:root {
    /* Surfaces, lightest-on-top */
    --bg: #080b12;
    --surface: #0d121c;
    --surface-2: #131a27;
    --surface-3: #1a2330;
    --line: #212c3d;
    --line-soft: #18202d;

    /* Text */
    --text: #e8edf5;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    /* Brand */
    --accent: #c8f52e;
    --accent-hover: #d6ff4b;
    --accent-ink: #0c1400;
    --accent-soft: rgba(200, 245, 46, 0.12);
    --accent-line: rgba(200, 245, 46, 0.35);

    /* Semantic */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --info: #38bdf8;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-full: 999px;

    /* Elevation */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .65);
    --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .8);

    /* Motion */
    --fast: 150ms;
    --base: 220ms;
    --ease: cubic-bezier(.4, 0, .2, 1);

    /* Layering */
    --z-sticky: 10;
    --z-dropdown: 20;
    --z-overlay: 30;
    --z-toast: 50;
}

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

/* Components below set display on a class, which would otherwise beat the UA
   stylesheet's [hidden] rule and leave "hidden" elements visible. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.011em;
}

a { color: var(--accent); }

/* Consistent, visible keyboard affordance everywhere. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── App shell ──────────────────────────────────────────────────────────── */

.appbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
    padding: 0 20px;
    background: rgba(8, 11, 18, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand svg { color: var(--accent); flex: none; }

.appnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.appnav a {
    padding: 7px 12px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.appnav a:hover { background: var(--surface-2); color: var(--text); }
.appnav a[aria-current="page"] { background: var(--surface-3); color: var(--text); }

.appbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.who {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 72px;
}

/* The bar's contents would otherwise set a min width wider than a phone
   viewport, which pushes the whole page into a horizontal scroll. */
@media (max-width: 760px) {
    .appbar { gap: 10px; padding: 0 12px; }
    .appnav { overflow-x: auto; scrollbar-width: none; }
    .appnav::-webkit-scrollbar { display: none; }
    .who > *:not(.avatar) { display: none; }
    .page { padding: 16px 12px 56px; }
}

@media (max-width: 480px) {
    .brand-text { display: none; }
    .card-head { padding: 12px 14px; }
    .card-body { padding: 14px; }
    .section-head { padding: 12px 14px; }
    .section-body { padding: 4px 14px 16px; }
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-title { font-size: 22px; }

.page-sub {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                color var(--fast) var(--ease);
}

.btn:disabled { cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--surface-3); color: var(--text-subtle); }

.btn-secondary {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: var(--accent-line); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-danger {
    background: transparent;
    border-color: rgba(244, 63, 94, .35);
    color: var(--danger);
}

.btn-danger:hover:not(:disabled) { background: rgba(244, 63, 94, .12); }

.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.card-title { font-size: 14px; font-weight: 600; }
.card-body { padding: 18px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.field { display: grid; gap: 6px; margin-bottom: 16px; }

.label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.input,
.select {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder { color: var(--text-subtle); }
.input.has-error { border-color: var(--danger); }

.select {
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

.help { font-size: 12px; color: var(--text-subtle); margin: 0; }
.error { font-size: 12.5px; color: var(--danger); }

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

.check input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
    flex: none;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    font-size: 13px;
    margin-bottom: 16px;
}

.alert svg { flex: none; margin-top: 2px; }
.alert-success { border-color: rgba(34, 197, 94, .3); background: rgba(34, 197, 94, .08); color: #86efac; }
.alert-danger { border-color: rgba(244, 63, 94, .3); background: rgba(244, 63, 94, .08); color: #fda4af; }
.alert-warning { border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .08); color: #fcd34d; }

/* ── Badges ─────────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.badge-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.badge-danger { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .3); color: #fda4af; }
.badge-warning { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;           /* keeps wide tables off the page's own scrollbar */
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    white-space: nowrap;
}

.table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-subtle);
    border-bottom: 1px solid var(--line);
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.table tbody tr { transition: background-color var(--fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

.cell-primary { font-weight: 600; color: var(--text); white-space: normal; }
.cell-sub { font-size: 12px; color: var(--text-subtle); }
.cell-actions { text-align: right; }

/* ── Meter ──────────────────────────────────────────────────────────────── */

.meter {
    width: 110px;
    height: 5px;
    border-radius: var(--r-full);
    background: var(--surface-3);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width var(--base) var(--ease);
}

.meter-fill.is-warning { background: var(--warning); }
.meter-fill.is-full { background: var(--danger); }

/* ── Auth ───────────────────────────────────────────────────────────────── */

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    padding: 32px;
}

.auth-brand { justify-content: center; margin-bottom: 24px; display: flex; }
.auth-title { font-size: 21px; text-align: center; }

.auth-sub {
    margin: 6px 0 26px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}

.auth-alt {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Workspace ──────────────────────────────────────────────────────────── */

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1000px) {
    .workspace { grid-template-columns: minmax(0, 1fr); }
}

.dropzone {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 24px;
    border: 1.5px dashed var(--line);
    border-radius: var(--r-md);
    background: var(--surface-2);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.dropzone:hover { border-color: var(--accent-line); background: var(--surface-3); }
.dropzone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }

.dropzone-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--surface-3);
    color: var(--accent);
}

.dropzone-title { font-size: 14px; font-weight: 600; }

.dropzone-hint {
    margin: 0;
    max-width: 52ch;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-subtle);
}

.stage {
    position: relative;
    /* Square, but capped so a wide window does not stretch it to full height. */
    width: min(100%, 460px);
    margin: 16px auto 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    background-color: #0a0e15;
    background-image:
        linear-gradient(45deg, #121a26 25%, transparent 25%, transparent 75%, #121a26 75%),
        linear-gradient(45deg, #121a26 25%, transparent 25%, transparent 75%, #121a26 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.stage.has-logo { background-image: none; }

#preview {
    display: block;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.stage.has-logo #preview { visibility: visible; }
.stage.is-picking { cursor: crosshair; }

.stage-empty {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--text-subtle);
    font-size: 12.5px;
    pointer-events: none;
}

.stage.has-logo .stage-empty { display: none; }

.stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.stage-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.stage-status.is-error { color: var(--danger); }
.dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); flex: none; }
.stage-status.is-error .dot { background: var(--danger); }

/* ── Control panel ──────────────────────────────────────────────────────── */

.panel { position: sticky; top: 76px; }

@media (max-width: 1000px) {
    .panel { position: static; }
}

/* Tabs keep the panel to one short screen instead of six stacked accordions. */
.tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-bottom: 1px solid var(--line-soft);
}

.tab {
    position: relative;
    min-height: 44px;
    padding: 0 6px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--fast) var(--ease);
}

.tab::after {
    content: "";
    position: absolute;
    inset: auto 8px -1px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background-color var(--fast) var(--ease);
}

.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); font-weight: 600; }
.tab.is-active::after { background: var(--accent); }

.tabpanel {
    padding: 16px 18px 20px;
    display: grid;
    gap: 14px;
}

.subhead {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-subtle);
}

.rule {
    height: 1px;
    margin: 2px 0;
    border: 0;
    background: var(--line-soft);
}

.head-actions { display: flex; gap: 6px; }

/* ── Disclosure ─────────────────────────────────────────────────────────── */

.disclosure {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.disclosure-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.disclosure-head::-webkit-details-marker { display: none; }

.disclosure-note {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-subtle);
}

.disclosure-head .chev {
    color: var(--text-subtle);
    transition: transform var(--base) var(--ease);
    flex: none;
}

.disclosure[open] > .disclosure-head .chev { transform: rotate(180deg); }

.disclosure-body {
    padding: 4px 12px 14px;
    display: grid;
    gap: 12px;
}

/* ── Segmented control ──────────────────────────────────────────────────── */

.segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.seg {
    min-height: 32px;
    padding: 0 8px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--text-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.seg:hover { color: var(--text); }
.seg.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* A grid of style choices — reads as a palette of tools rather than a toolbar. */
.tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.tile {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
}

.tile:hover { border-color: var(--accent-line); }
.tile.is-active { border-color: var(--accent); }

/* ── Slider rows ────────────────────────────────────────────────────────── */

.row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
}

.row-label {
    font-size: 12.5px;
    color: var(--text-muted);
    cursor: pointer;
}

.row-value {
    font-size: 12px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.row-control { grid-column: 1 / -1; }

.row-inline {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.row-inline .row-control { grid-column: auto; }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 20px;             /* generous hit area around a thin visual track */
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: var(--r-full);
    background:
        linear-gradient(var(--accent), var(--accent)) 0 / var(--pct, 50%) 100% no-repeat,
        var(--surface-3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: var(--r-full);
    background: var(--accent);
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-1);
}

input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: var(--r-full);
    background: var(--surface-3);
}

input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: var(--r-full);
    background: var(--accent);
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: var(--r-full);
    background: var(--accent);
    border: 2px solid var(--surface);
}

.swatch {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: none;
    cursor: pointer;
}

.swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 3px; }
.swatch::-moz-color-swatch { border: 0; border-radius: 3px; }

.swatch-sm { width: 30px; height: 24px; }

/* ── Colour + paste fields ──────────────────────────────────────────────── */

.colour-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.input-hex {
    width: 92px;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
}

.select-sm {
    width: auto;
    min-height: 30px;
    padding: 3px 28px 3px 9px;
    font-size: 12.5px;
}

.linkbox { display: flex; gap: 8px; align-items: center; }

.linkbox .input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}

.paste-field { display: grid; gap: 6px; }

.paste-field .input {
    min-height: 34px;
    font-size: 12.5px;
}

.paste-note { color: var(--accent); }
.paste-note.is-error { color: var(--danger); }

/* ── Gradient editor ────────────────────────────────────────────────────── */

.grad-bar {
    height: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-3);
}

.grad-stops { display: grid; gap: 6px; }

.grad-stop {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.grad-stop .stop-pos {
    width: 100%;
    min-width: 0;
}

.grad-stop .stop-value {
    font-size: 11px;
    color: var(--text-subtle);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
}

.stop-remove {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.stop-remove:hover:not(:disabled) { color: var(--danger); border-color: rgba(244, 63, 94, .4); }
.stop-remove:disabled { opacity: .35; cursor: not-allowed; }

.grad-actions { display: flex; gap: 6px; }

.pane { display: grid; gap: 14px; }
.pane[hidden] { display: none; }

/* ── Thumbnail ──────────────────────────────────────────────────────────── */

.thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    object-fit: cover;
    background: var(--surface-3);
    flex: none;
}

.thumb-meta { min-width: 0; flex: 1; }

.thumb-name {
    font-size: 12.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Export ─────────────────────────────────────────────────────────────── */

.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.quota {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.quota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.quota-row strong { color: var(--text); font-variant-numeric: tabular-nums; }

.progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--accent);
}

.spinner {
    width: 13px;
    height: 13px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: var(--r-full);
    animation: spin .7s linear infinite;
    flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-subtle);
}

.empty-title { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 14px;
    list-style: none;
    margin: 0;
    font-size: 13px;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    text-decoration: none;
}

.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination .active span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ── Toolbar ────────────────────────────────────────────────────────────── */

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.search { position: relative; flex: 1; min-width: 200px; }
.search .input { padding-left: 34px; }

.search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
}
