/* ─────────────────────────────────────────────────────────
   PARTICLE FORGE — Editorial Laboratory
   Design system
   ───────────────────────────────────────────────────────── */

:root {
    /* Palette — obsidian with acid accents */
    --void:        #08080a;
    --carbon:      #0e0e11;
    --graphite:    #15151a;
    --slate:       #1d1d23;
    --steel:       #2a2a32;
    --hairline:    #2f2f37;
    --bone:        #ece8dd;
    --bone-dim:    #a8a59c;
    --bone-soft:   #6d6b65;
    --bone-faint:  #3d3c39;

    --lime:        #d4ff3a;
    --lime-soft:   rgba(212, 255, 58, 0.12);
    --coral:       #ff5a36;
    --coral-soft:  rgba(255, 90, 54, 0.14);
    --violet:      #6a5cff;

    /* Type */
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;
    --font-body:    'Geist', 'JetBrains Mono', system-ui, sans-serif;

    /* Geometry */
    --hair: 1px;
    --rad: 2px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
    height: 100%;
    background: var(--void);
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input { font-family: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* ── Canvas ── */
#canvas-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ── Atmospheric background layers ── */
.bg-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

.bg-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 30%, transparent 0%, transparent 40%, rgba(0,0,0,0.55) 95%),
        linear-gradient(180deg, rgba(8,8,10,0.4) 0%, transparent 30%, transparent 70%, rgba(8,8,10,0.6) 100%);
}

.bg-scan {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(255,255,255,0.012) 3px,
        rgba(255,255,255,0.012) 4px
    );
}

/* ── Corner crosshairs ── */
.corner {
    position: fixed;
    width: 14px;
    height: 14px;
    z-index: 5;
    pointer-events: none;
    color: var(--bone-faint);
}
.corner svg { display: block; }
.corner.tl { top: 18px; left: 18px; }
.corner.tr { top: 18px; right: 18px; transform: rotate(90deg); }
.corner.bl { bottom: 18px; left: 18px; transform: rotate(-90deg); }
.corner.br { bottom: 18px; right: 18px; transform: rotate(180deg); }

/* ── Top bar ── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 24px;
    padding: 42px 48px 18px 48px;
    pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.brand .ticker {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--bone-soft);
    text-transform: uppercase;
}
.brand .wordmark {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 0.9;
    font-style: italic;
    font-weight: 400;
    color: var(--bone);
    letter-spacing: -0.02em;
}
.brand .wordmark em {
    color: var(--lime);
    font-style: italic;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--bone-soft);
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 8px;
}
.tagline .sep { color: var(--coral); margin: 0 6px; }

.back-portal {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: var(--hair) solid var(--hairline);
    background: var(--carbon);
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--rad);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}
.back-portal:hover {
    border-color: var(--coral);
    color: var(--coral);
    box-shadow: 0 0 0 1px var(--coral-soft) inset, 0 0 24px var(--coral-soft);
}
.back-portal .arrow { font-size: 13px; }

/* ── Side panels ── */
.panel {
    position: fixed;
    z-index: 10;
    background: linear-gradient(180deg, rgba(14,14,17,0.78) 0%, rgba(8,8,10,0.85) 100%);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    border: var(--hair) solid var(--hairline);
    border-radius: var(--rad);
}

.panel-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: var(--hair) solid var(--hairline);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--bone-dim);
    text-transform: uppercase;
}
.panel-label .idx { color: var(--lime); }
.panel-label .dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--lime);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2.2s ease-in-out infinite;
    vertical-align: middle;
}
.panel-label .status { color: var(--bone-soft); }

@keyframes pulse {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 0 0 var(--lime-soft); }
    50%      { opacity: 1; box-shadow: 0 0 0 4px transparent; }
}

/* ── Left panel — Upload + Effects ── */
.panel.left {
    top: 130px;
    left: 32px;
    width: 280px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}
.panel.right {
    top: 130px;
    right: 32px;
    width: 280px;
}

.panel-body { padding: 16px 14px; }
.panel + .panel { margin-top: 12px; }

/* ── Upload zone ── */
.upload-zone {
    border: var(--hair) dashed var(--bone-faint);
    border-radius: var(--rad);
    padding: 26px 16px;
    text-align: center;
    background: rgba(212, 255, 58, 0.015);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
}
.upload-zone::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: var(--hair) solid transparent;
    border-radius: var(--rad);
    pointer-events: none;
    transition: border-color 0.3s var(--ease);
}
.upload-zone:hover {
    border-color: var(--lime);
    background: var(--lime-soft);
}
.upload-zone:hover::before { border-color: rgba(212, 255, 58, 0.18); }
.upload-zone.dragging {
    border-color: var(--lime);
    background: rgba(212, 255, 58, 0.08);
    transform: scale(1.01);
}

.upload-icon {
    display: block;
    margin: 0 auto 12px;
    width: 36px;
    height: 36px;
    color: var(--bone-dim);
    transition: color 0.3s var(--ease);
}
.upload-zone:hover .upload-icon { color: var(--lime); }

.upload-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    color: var(--bone);
    line-height: 1.1;
    margin-bottom: 8px;
}
.upload-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--bone-soft);
    text-transform: uppercase;
}
.upload-hint b { color: var(--lime); font-weight: 400; }

#file-input { display: none; }

/* ── Effect buttons ── */
.effects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.effect-btn {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: var(--hair) solid var(--hairline);
    border-radius: var(--rad);
    color: var(--bone-dim);
    text-align: left;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}
.effect-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--lime);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}
.effect-btn:hover {
    border-color: var(--bone-soft);
    color: var(--bone);
    background: rgba(255,255,255,0.02);
}
.effect-btn.active {
    border-color: var(--lime);
    color: var(--bone);
    background: var(--lime-soft);
}
.effect-btn.active::before { transform: scaleY(1); }
.effect-btn .num {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--bone-soft);
}
.effect-btn.active .num { color: var(--lime); }
.effect-btn .name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1;
}
.effect-btn .kbd {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--bone-soft);
    padding: 2px 5px;
    border: var(--hair) solid var(--hairline);
    border-radius: 2px;
}

/* ── Sliders ── */
.slider-row {
    margin: 18px 0;
}
.slider-row:first-child { margin-top: 4px; }
.slider-row:last-child { margin-bottom: 4px; }

.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.slider-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--bone-dim);
    text-transform: uppercase;
}
.slider-value {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--lime);
    letter-spacing: 0.05em;
    min-width: 50px;
    text-align: right;
}

.slider {
    width: 100%;
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}
.slider::-webkit-slider-runnable-track {
    height: 2px;
    background: var(--hairline);
    border-radius: 0;
}
.slider::-moz-range-track {
    height: 2px;
    background: var(--hairline);
    border-radius: 0;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 14px;
    background: var(--lime);
    border-radius: 1px;
    margin-top: -6px;
    cursor: grab;
    box-shadow: 0 0 0 0 var(--lime-soft);
    transition: box-shadow 0.2s var(--ease);
}
.slider::-moz-range-thumb {
    width: 10px;
    height: 14px;
    background: var(--lime);
    border-radius: 1px;
    border: none;
    cursor: grab;
}
.slider:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--lime-soft); }
.slider:active::-webkit-slider-thumb { cursor: grabbing; }

.tick-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--bone-soft);
    letter-spacing: 0.08em;
}

/* ── Action buttons ── */
.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 14px;
}
.action-btn {
    padding: 10px 12px;
    background: transparent;
    border: var(--hair) solid var(--hairline);
    border-radius: var(--rad);
    color: var(--bone-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.action-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
    background: var(--coral-soft);
}
.action-btn.primary {
    border-color: var(--bone-faint);
    color: var(--bone);
}
.action-btn.primary:hover {
    border-color: var(--lime);
    color: var(--lime);
    background: var(--lime-soft);
}

/* ── HUD / status bar ── */
.hud {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    padding: 18px 48px 26px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--bone-soft);
    text-transform: uppercase;
}
.hud .group {
    display: flex;
    gap: 22px;
}
.hud .stat .lbl { color: var(--bone-soft); margin-right: 6px; }
.hud .stat .val { color: var(--bone); }
.hud .stat .val.accent { color: var(--lime); }
.hud .stat .val.warn   { color: var(--coral); }
.hud .signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--bone-dim);
    letter-spacing: 0;
    text-transform: none;
}

/* ── Welcome state — centered hero before image is loaded ── */
.hero {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}
.hero.hidden,
.hero.hidden .hero-card { opacity: 0; pointer-events: none; }
.hero.hidden { visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s; }

.hero-card {
    pointer-events: auto;
    max-width: 460px;
    text-align: center;
    padding: 36px 32px;
    background: linear-gradient(180deg, rgba(14,14,17,0.6) 0%, rgba(8,8,10,0.78) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--hair) solid var(--hairline);
    border-radius: var(--rad);
    position: relative;
}
.hero-card::before, .hero-card::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--lime);
    border-style: solid;
}
.hero-card::before {
    top: -1px; left: -1px;
    border-width: 1px 0 0 1px;
}
.hero-card::after {
    bottom: -1px; right: -1px;
    border-width: 0 1px 1px 0;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--lime);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 44px;
    line-height: 1.05;
    color: var(--bone);
    margin-bottom: 14px;
}
.hero-title em {
    color: var(--coral);
}
.hero-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bone-dim);
    line-height: 1.7;
    margin-bottom: 26px;
    letter-spacing: 0.04em;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--lime);
    color: var(--void);
    border-radius: var(--rad);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.25s var(--ease);
}
.hero-cta:hover {
    background: var(--bone);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px var(--lime-soft);
}

.hero-spec {
    margin-top: 26px;
    padding-top: 18px;
    border-top: var(--hair) solid var(--hairline);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--bone-soft);
    text-transform: uppercase;
}
.hero-spec span b { color: var(--lime); font-weight: 400; }

/* ── Loading state ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,8,10,0.78);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
}
.loading-overlay.active { display: flex; }
.loading-bars {
    display: flex;
    gap: 4px;
}
.loading-bars span {
    width: 3px;
    height: 22px;
    background: var(--lime);
    animation: bars 1s ease-in-out infinite;
}
.loading-bars span:nth-child(2) { animation-delay: 0.1s; }
.loading-bars span:nth-child(3) { animation-delay: 0.2s; }
.loading-bars span:nth-child(4) { animation-delay: 0.3s; }
.loading-bars span:nth-child(5) { animation-delay: 0.4s; }
@keyframes bars {
    0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
    50%      { transform: scaleY(1); opacity: 1; }
}
.loading-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--bone-dim);
    text-transform: uppercase;
}

/* ── Reveal animation on first paint ── */
.fade-up {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.7s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.42s; }
.delay-5 { animation-delay: 0.55s; }
.delay-6 { animation-delay: 0.7s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Toast / hint ── */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 50;
    background: var(--carbon);
    border: var(--hair) solid var(--coral);
    color: var(--bone);
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: var(--rad);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .panel.left, .panel.right {
        position: fixed;
        width: calc(50% - 22px);
        top: 110px;
        max-height: calc(100vh - 200px);
    }
    .panel.left  { left: 14px; }
    .panel.right { right: 14px; }
    .topbar { padding: 28px 24px 14px; }
    .brand .wordmark { font-size: 36px; }
    .hud { padding: 14px 24px 18px; font-size: 9px; }
    .hud .group { gap: 14px; }
}

@media (max-width: 720px) {
    /* ─── Compact topbar ─── */
    .topbar {
        grid-template-columns: 1fr auto;
        padding: 16px 12px 8px;
        gap: 10px;
    }
    .tagline { display: none; }
    .brand .ticker { font-size: 8px; letter-spacing: 0.18em; }
    .brand .wordmark { font-size: 26px; }
    .back-portal { padding: 7px 10px; font-size: 9px; letter-spacing: 0.14em; gap: 6px; }
    .back-portal .arrow { font-size: 11px; }
    .corner { width: 10px; height: 10px; }
    .corner.tl, .corner.tr { top: 10px; }
    .corner.tl, .corner.bl { left: 10px; }
    .corner.tr, .corner.br { right: 10px; }
    .corner.bl, .corner.br { bottom: 10px; }

    /* ─── Top panel: upload + effect chips ─── */
    .panel.left {
        position: fixed;
        top: 76px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: none;
        overflow: visible;
    }
    .panel.left .panel-body { padding: 10px 10px 12px; }
    .panel.left > div + div .panel-label { padding-top: 8px; padding-bottom: 8px; }
    .panel-label { padding: 8px 12px; font-size: 9px; }

    .upload-zone { padding: 14px 10px; }
    .upload-icon { width: 22px; height: 22px; margin-bottom: 6px; }
    .upload-title { font-size: 15px; margin-bottom: 3px; }
    .upload-hint { font-size: 9px; letter-spacing: 0.1em; }

    /* Effects → wrap to multiple rows so every chip is reachable */
    .effects-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    .effect-btn {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        padding: 9px 10px;
        min-height: 38px;
    }
    .effect-btn .num { font-size: 8px; }
    .effect-btn .name { font-size: 13px; line-height: 1; white-space: nowrap; }
    .effect-btn .kbd { display: none; }

    /* ─── Bottom panel: parameters ─── */
    .panel.right {
        position: fixed;
        top: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 38vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .panel.right .panel-body { padding: 10px 10px 12px; }
    .slider-row { margin: 10px 0; }
    .slider-row:first-child { margin-top: 2px; }
    .slider-label { font-size: 9px; }
    .slider-value { font-size: 10px; }
    .slider { height: 28px; }     /* bigger tap target */
    .slider::-webkit-slider-thumb { width: 14px; height: 18px; margin-top: -8px; }
    .slider::-moz-range-thumb     { width: 14px; height: 18px; }
    .tick-row { font-size: 7px; }
    .action-row { margin-top: 10px; gap: 6px; }
    .action-btn { padding: 9px 10px; font-size: 9px; min-height: 38px; }

    /* ─── Hero card: fits between the two panels ─── */
    .hero-card {
        max-width: calc(100% - 28px);
        padding: 22px 18px;
        margin: 0 14px;
    }
    .hero-eyebrow { font-size: 9px; margin-bottom: 12px; }
    .hero-title { font-size: 26px; line-height: 1.05; margin-bottom: 10px; }
    .hero-sub {
        font-size: 10px;
        margin-bottom: 18px;
        line-height: 1.55;
    }
    .hero-sub br { display: none; }
    .hero-cta { padding: 10px 18px; font-size: 10px; }
    .hero-spec {
        margin-top: 18px;
        padding-top: 14px;
        font-size: 8px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hud { display: none; }
}

@media (max-width: 720px) and (max-height: 480px) {
    /* Landscape phones — side-by-side panels, ultra-compact topbar */
    .topbar { padding: 8px 10px 4px; gap: 8px; }
    .brand .wordmark { font-size: 18px; }
    .brand .ticker { display: none; }
    .back-portal { padding: 5px 8px; font-size: 8px; }

    .panel.left {
        top: 44px;
        left: 8px;
        right: auto;
        width: calc(50% - 12px);
        bottom: 8px;
        max-height: none;
        overflow-y: auto;
    }
    .panel.right {
        top: 44px;
        bottom: 8px;
        right: 8px;
        left: auto;
        width: calc(50% - 12px);
        max-height: none;
        overflow-y: auto;
    }
    .effects-grid { flex-wrap: wrap; }
    .effect-btn { flex: 1 1 calc(50% - 3px); padding: 7px 9px; min-height: 34px; }
    .effect-btn .name { font-size: 12px; }
    .upload-zone { padding: 10px 8px; }
    .upload-icon { width: 18px; height: 18px; margin-bottom: 4px; }
    .upload-title { font-size: 12px; margin-bottom: 2px; }
    .upload-hint { font-size: 8px; }
    .slider-row { margin: 8px 0; }
    .panel-label { padding: 6px 10px; font-size: 8px; }

    .hero-card {
        max-width: 50vw;
        padding: 14px 16px;
        margin: 0 auto;
    }
    .hero-title { font-size: 20px; margin-bottom: 6px; }
    .hero-sub { display: none; }
    .hero-spec { display: none; }
    .hero-eyebrow { margin-bottom: 8px; }
    .hero-cta { padding: 8px 14px; font-size: 9px; }
}

/* ── Scrollbar ── */
.panel ::-webkit-scrollbar { width: 4px; }
.panel ::-webkit-scrollbar-track { background: transparent; }
.panel ::-webkit-scrollbar-thumb { background: var(--hairline); }
.panel ::-webkit-scrollbar-thumb:hover { background: var(--bone-faint); }
