:root {
    color-scheme: dark;
    --ink: #ffffff;
    --muted: #c8c8c8;
    --faint: #969696;
    --line: rgba(255, 255, 255, .17);
    --glass: rgba(28, 28, 28, .48);
    --glass-deep: rgba(10, 10, 10, .7);
    --glass-soft: rgba(255, 255, 255, .075);
    --focus: #ffffff;
    --danger: #e7e7e7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; min-width: 100%; min-height: 100%; background: #000000; }
body {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: fixed linear-gradient(to top right, #000000 0%, #444444 100%);
}

a { color: inherit; }
.site-header, main, footer { position: relative; z-index: 2; width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}
.brand {
    padding: .54rem .18rem;
    color: var(--ink);
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -.045em;
    text-decoration: none;
}
.brand span { margin-left: .42rem; color: #cfcfcf; font-weight: 650; }
.account, .login-link {
    margin: 0;
    padding: .58rem .94rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 8px 24px rgba(0, 0, 0, .15);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    font-size: .9rem;
    text-decoration: none;
}

.hero {
    position: relative;
    width: 100vw;
    min-width: 100vw;
    height: 64vh;
    height: 64svh;
    min-height: 560px;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    isolation: isolate;
}
.webgl-container {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(to top right, #000000 0%, #444444 100%);
}
.webgl-container canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
.webgl-container.is-webgl-unavailable canvas { display: none; }
.confa-bokeh-layer {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    contain: strict;
    pointer-events: none;
}
.confa-bokeh-depth { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confa-bokeh-item {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .68) 0%, rgba(224, 224, 224, .25) 18%, rgba(170, 170, 170, .09) 48%, transparent 74%);
    filter: blur(var(--blur));
    backface-visibility: hidden;
    will-change: transform, opacity;
    animation: confaBokehFloat var(--duration) cubic-bezier(.45, 0, .25, 1) var(--delay) infinite;
}
.confa-bokeh-item--glass {
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .22) 12%, rgba(184, 184, 184, .11) 35%, rgba(72, 72, 72, .05) 58%, transparent 76%);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, .075), 0 0 24px rgba(232, 232, 232, .05);
}
.confa-bokeh-item--haze { border-radius: 58% 42% 63% 37% / 46% 61% 39% 54%; }
.confa-bokeh-item--edge { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -8px 18px rgba(112, 112, 112, .035); }
.confa-bokeh-item--luminous { box-shadow: 0 0 20px rgba(255, 255, 255, .1), 0 0 52px rgba(210, 210, 210, .06), 0 0 90px rgba(166, 166, 166, .03); }
.confa-bokeh-item--glass.confa-bokeh-item--luminous { box-shadow: inset 0 0 14px rgba(255, 255, 255, .09), 0 0 24px rgba(255, 255, 255, .09), 0 0 58px rgba(194, 194, 194, .05); }
.confa-bokeh-item--pin { background: radial-gradient(circle, rgba(255, 255, 255, .88) 0%, rgba(230, 230, 230, .34) 16%, rgba(176, 176, 176, .11) 45%, transparent 76%); }
.confa-bokeh-spark {
    position: absolute;
    width: var(--core-size);
    height: var(--core-size);
    border-radius: 50%;
    opacity: 0;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 4px rgba(255, 255, 255, .82), 0 0 12px rgba(224, 224, 224, .38), 0 0 24px rgba(194, 194, 194, .12);
    will-change: transform, opacity;
    animation: confaBokehTwinkle var(--duration) ease-in-out var(--delay) infinite;
}
.confa-bokeh-spark::before, .confa-bokeh-spark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.confa-bokeh-spark::before { width: var(--ray-size); height: 1px; background: linear-gradient(to right, transparent, rgba(255, 255, 255, .6), transparent); }
.confa-bokeh-spark::after { width: 1px; height: var(--ray-size); background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .55), transparent); }
.confa-bokeh-layer.is-paused .confa-bokeh-item, .confa-bokeh-layer.is-paused .confa-bokeh-spark { animation-play-state: paused; }
.confa-bokeh-layer--lite .confa-bokeh-depth--near, .confa-bokeh-layer--lite .confa-bokeh-depth--spark,
.confa-bokeh-layer--lite .confa-bokeh-depth--far .confa-bokeh-item:nth-child(n + 3),
.confa-bokeh-layer--lite .confa-bokeh-depth--middle .confa-bokeh-item:nth-child(n + 5) { display: none; }
.hero-copy { max-width: 900px; padding: 64px 0 52px; }
.eyebrow { margin: 0 0 14px; color: #dddddd; font-size: .8rem; font-weight: 740; letter-spacing: .105em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(2.4rem, 6vw, 4.75rem); letter-spacing: -.069em; line-height: .98; text-wrap: balance; }
.lead { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.63; }

.workspace, .results {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(20, 20, 20, .5);
    box-shadow: inset 0 1px rgba(255, 255, 255, .18), inset 0 -1px rgba(0, 0, 0, .12), 0 26px 70px rgba(0, 0, 0, .23);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
}
.upload-form h2, .section-heading h2, .features h2 { margin-bottom: 8px; font-size: 1.22rem; letter-spacing: -.035em; }
.drop-zone {
    position: relative;
    display: grid;
    min-height: 224px;
    place-content: center;
    gap: 9px;
    padding: 24px;
    border: 1px dashed rgba(255, 255, 255, .32);
    border-radius: 22px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px rgba(255, 255, 255, .1);
    color: var(--ink);
    cursor: pointer;
    text-align: center;
    transition: border-color 220ms cubic-bezier(.4, 0, .2, 1), background 220ms cubic-bezier(.4, 0, .2, 1), transform 220ms cubic-bezier(.4, 0, .2, 1);
}
.drop-zone strong { font-size: 1.1rem; }
.drop-zone span, .section-heading p { color: var(--muted); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone.is-dragging { border-color: rgba(255, 255, 255, .84); background: rgba(255, 255, 255, .1); }
.upload-progress { display: flex; align-items: center; gap: 11px; margin-top: 14px; color: var(--muted); font-size: .86rem; }
.progress-track, .job-progress { position: relative; overflow: hidden; height: 8px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.progress-track { flex: 1; }
.progress-track span, .job-progress::before { position: absolute; inset: 1px auto 1px 1px; width: var(--progress, 0%); border-radius: inherit; content: ""; background: #eeeeee; box-shadow: 0 0 14px rgba(255, 255, 255, .3); transition: width 220ms cubic-bezier(.4, 0, .2, 1); }
.job-progress { width: min(100%, 210px); margin-top: 9px; }
.job-progress.is-queued::before, .job-progress.is-processing::before { width: 42%; animation: indeterminate-progress 1.2s ease-in-out infinite; }
.job-progress.is-completed::before { width: calc(100% - 2px); }
.job-progress.is-failed::before { width: calc(100% - 2px); background: #bcbcbc; box-shadow: none; }
.selected-files { display: grid; gap: 7px; margin-top: 14px; }
.selected-files:not(:empty) { padding: 12px; border: 1px solid rgba(255, 255, 255, .085); border-radius: 15px; background: rgba(3, 3, 3, .18); }
.selected-file { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .9rem; }
.selected-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-row { display: flex; align-items: end; gap: 14px; margin-top: 20px; }
.format-field { flex: 1; display: grid; gap: 7px; color: var(--muted); font-size: .88rem; }
.output-picker, .fixed-conversion { min-width: 0; flex: 1; }
.output-picker { margin: 0; padding: 0; border: 0; }
.output-picker legend, .fixed-conversion > span { margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.output-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; }
.output-option { position: relative; min-width: 0; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; color: var(--ink); background: rgba(9, 9, 9, .42); box-shadow: inset 0 1px rgba(255, 255, 255, .09); cursor: pointer; transition: border-color 220ms cubic-bezier(.4, 0, .2, 1), background 220ms cubic-bezier(.4, 0, .2, 1); }
.output-option[hidden] { display: none; }
.output-option input { position: absolute; opacity: 0; pointer-events: none; }
.output-option strong { font-size: .92rem; }
.output-option span { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.output-option:has(input:checked) { border-color: rgba(255, 255, 255, .7); color: #111111; background: #eeeeee; }
.output-option:has(input:checked) span { color: #444444; }
.output-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.output-placeholder { grid-column: 1 / -1; display: grid; gap: 4px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(9, 9, 9, .28); }
.output-placeholder span { color: var(--muted); font-size: .78rem; }
.conversion-hint { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.fixed-conversion > div { min-height: 54px; display: flex; align-items: center; gap: 9px; }
.fixed-conversion strong { min-width: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .06); text-align: center; }
.fixed-conversion i { color: var(--muted); font-style: normal; }
select, .primary-button, .job-action, .picker-format-search { min-height: 48px; border-radius: 14px; font: inherit; }
select {
    width: 100%;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--ink);
    background: rgba(9, 9, 9, .42);
    box-shadow: inset 0 1px rgba(255, 255, 255, .09);
}
.picker-format-search { width: 100%; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .14); color: var(--ink); background: rgba(9, 9, 9, .42); box-shadow: inset 0 1px rgba(255, 255, 255, .09); }
.primary-button {
    padding: 0 23px;
    border: 1px solid rgba(255, 255, 255, .33);
    color: #181818;
    background: #eeeeee;
    box-shadow: inset 0 1px rgba(255, 255, 255, .75), 0 12px 30px rgba(0, 0, 0, .18);
    cursor: pointer;
    font-weight: 780;
    transition: transform 220ms cubic-bezier(.4, 0, .2, 1), box-shadow 220ms cubic-bezier(.4, 0, .2, 1);
}
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.form-error { min-height: 1.25em; margin: 14px 0 0; color: var(--danger); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading p { margin-bottom: 22px; font-size: .9rem; text-align: right; }
.clear-history {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px rgba(255, 255, 255, .14);
    cursor: pointer;
    font: inherit;
    transition: background 220ms cubic-bezier(.4, 0, .2, 1), transform 220ms cubic-bezier(.4, 0, .2, 1);
}
.clear-history[hidden] { display: none; }
.clear-history:disabled { opacity: .55; cursor: wait; }
.job-list { display: grid; gap: 12px; }
.job { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 17px; background: rgba(7, 7, 7, .2); box-shadow: inset 0 1px rgba(255, 255, 255, .075); }
.job-copy { min-width: 0; flex: 1; }
.job-name { overflow: hidden; margin: 0 0 4px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.job-status { margin: 0; color: var(--muted); font-size: .85rem; }
.job-actions { display: flex; gap: 8px; }
.job-action { display: inline-grid; place-items: center; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .055); box-shadow: inset 0 1px rgba(255, 255, 255, .12); color: var(--ink); cursor: pointer; font-size: .88rem; text-decoration: none; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 4px 0 72px; }
.features article { position: relative; overflow: hidden; padding: 23px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; background: linear-gradient(145deg, rgba(231, 241, 250, .1), rgba(255, 245, 226, .045)); box-shadow: inset 0 1px rgba(255, 255, 255, .17), 0 16px 44px rgba(0, 0, 0, .13); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.features article p { margin: 0; color: var(--muted); line-height: 1.58; }
.features.is-reveal-ready article { opacity: 0; filter: blur(8px); transform: translate3d(var(--reveal-x, 0), 38px, 0) scale(.96); transition: opacity 680ms cubic-bezier(.4, 0, .2, 1), filter 680ms cubic-bezier(.4, 0, .2, 1), transform 680ms cubic-bezier(.4, 0, .2, 1); }
.features.is-reveal-ready article:nth-child(1) { --reveal-x: -30px; }
.features.is-reveal-ready article:nth-child(2) { transition-delay: 90ms; }
.features.is-reveal-ready article:nth-child(3) { --reveal-x: 30px; transition-delay: 180ms; }
.features.is-reveal-ready.is-visible article { opacity: 1; filter: none; transform: translate3d(0, 0, 0) scale(1); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.header-nav > a:not(.login-link) { min-height: 42px; display: inline-grid; place-items: center; padding: 0 10px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; color: var(--faint); font-size: .84rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.catalog-section { position: relative; margin: 30px 0; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 30px; background: rgba(20, 20, 20, .5); box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 24px 64px rgba(0, 0, 0, .18); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.catalog-heading { max-width: 760px; margin-bottom: 22px; }
.catalog-heading h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.catalog-heading > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.search-combobox { position: relative; }
.search-combobox input, .catalog-filter input { width: 100%; min-height: 58px; padding: 0 54px 0 18px; border: 1px solid rgba(255, 255, 255, .23); border-radius: 18px; color: var(--ink); background: rgba(5, 5, 5, .48); box-shadow: inset 0 1px rgba(255, 255, 255, .1); font: inherit; font-size: 1rem; }
.search-combobox kbd { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); background: rgba(255, 255, 255, .05); font: inherit; font-size: .72rem; }
.search-results { margin-top: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; background: rgba(5, 5, 5, .72); box-shadow: 0 22px 50px rgba(0, 0, 0, .22); }
.search-results[hidden] { display: none; }
.search-results-label { margin: 0 0 10px; color: var(--faint); font-size: .77rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggestions a { min-height: 40px; display: inline-grid; place-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .05); text-decoration: none; }
.search-suggestions a.is-active { color: var(--ink); background: rgba(255, 255, 255, .12); }
.search-group + .search-group { margin-top: 14px; }
.search-option { width: 100%; min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 13px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; text-decoration: none; }
.search-option small { color: var(--muted); }
.search-option.is-active, .search-option:hover { background: rgba(255, 255, 255, .08); }
.search-match { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.search-empty { padding: 8px; }
.search-empty p { color: var(--muted); }
.conversion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.conversion-grid[hidden] { display: none; }
.conversion-card { min-width: 0; min-height: 190px; display: flex; flex-direction: column; gap: 9px; padding: 17px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 19px; color: var(--ink); background: rgba(8, 8, 8, .34); box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 12px 28px rgba(0, 0, 0, .11); text-decoration: none; transition: border-color 220ms cubic-bezier(.4, 0, .2, 1), box-shadow 220ms cubic-bezier(.4, 0, .2, 1), transform 220ms cubic-bezier(.4, 0, .2, 1); }
.conversion-card[hidden] { display: none; }
.conversion-route { display: flex; align-items: center; gap: 8px; }
.conversion-route b { display: inline-grid; min-width: 42px; min-height: 34px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; color: #ededed; background: rgba(255, 255, 255, .045); font-size: .77rem; letter-spacing: .03em; }
.conversion-route i { color: #cfcfcf; font-style: normal; transition: transform 220ms cubic-bezier(.4, 0, .2, 1); }
.conversion-description { flex: 1; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.conversion-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: var(--faint); font-size: .72rem; }
.conversion-meta em { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: #d9d9d9; background: rgba(255, 255, 255, .045); font-style: normal; }
.popular-extra { display: none; }
.popular-grid.is-expanded .popular-extra { display: flex; }
.secondary-button, .swap-button { min-height: 46px; margin-top: 18px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px rgba(255, 255, 255, .12); cursor: pointer; font: inherit; font-weight: 700; }
.picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.picker-row label { display: grid; gap: 8px; color: var(--muted); font-size: .86rem; }
.swap-button { width: 48px; margin: 0; padding: 0; font-size: 1.15rem; }
.swap-button[hidden] { display: none; }
.picker-row:has(.swap-button[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picker-result { margin-top: 16px; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(0, 0, 0, .2); }
.picker-result p { margin: 0; color: var(--muted); }
.picker-result strong { display: block; margin-bottom: 6px; }
.picker-result .primary-button { min-height: 44px; display: inline-grid; place-items: center; margin-top: 14px; text-decoration: none; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.catalog-filter input { min-height: 48px; padding-right: 14px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0, 0, 0, .2); }
.view-switch button, .category-tabs a { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; text-decoration: none; }
.view-switch button { padding: 0 12px; }
.view-switch button.is-active, .category-tabs a.is-active { color: var(--ink); background: rgba(255, 255, 255, .11); }
#catalog-count { color: var(--faint); font-size: .83rem; white-space: nowrap; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.category-tabs a { display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .1); }
.category-tabs a span { color: var(--faint); font-size: .72rem; }
.format-browser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.format-browser[hidden] { display: none; }
.format-browser a, .guide-grid a { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 16px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 17px; color: var(--ink); background: rgba(8, 8, 8, .28); text-decoration: none; }
.format-browser span, .guide-grid span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.catalog-empty { margin-top: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; }
.catalog-empty[hidden] { display: none; }
.catalog-empty p { margin: 7px 0 0; color: var(--muted); }
.format-links { display: flex; flex-wrap: wrap; gap: 8px; }
.format-links a { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .045); text-decoration: none; }
.format-links span { color: var(--faint); font-size: .72rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-grid small { margin-top: auto; color: var(--faint); }
.conversion-content { line-height: 1.6; }
.conversion-content ol, .conversion-content ul { color: var(--muted); }
.warning-box { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.related-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.faq details { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .11); }
.faq summary { cursor: pointer; font-weight: 720; }
.faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.guide-page { background-attachment: fixed; }
.guide-main { padding: 120px 0 60px; }
.guide-article { max-width: 820px; margin: 28px auto 0; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 30px; background: rgba(20, 20, 20, .62); line-height: 1.7; }
.guide-article h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.guide-article h2 { margin-top: 34px; }
.guide-article p, .guide-article li { color: var(--muted); }
footer { padding: 25px 0 35px; border-top: 1px solid rgba(255, 255, 255, .11); color: var(--faint); font-size: .85rem; }

@keyframes indeterminate-progress { from { transform: translateX(-115%); } to { transform: translateX(265%); } }
@keyframes confaBokehFloat {
    0% { opacity: 0; transform: translate3d(var(--start-x), var(--start-y), 0) scale(.72) scaleX(var(--shape-x)); }
    12% { opacity: var(--peak-opacity); }
    48% { opacity: var(--mid-opacity); transform: translate3d(var(--mid-x), var(--mid-y), 0) scale(1) scaleX(var(--shape-x)); }
    78% { opacity: var(--tail-opacity); }
    100% { opacity: 0; transform: translate3d(var(--end-x), var(--end-y), 0) scale(1.12) scaleX(var(--shape-x)); }
}
@keyframes confaBokehTwinkle {
    0%, 45%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
    55% { opacity: .18; }
    60% { opacity: .78; transform: scale(1) rotate(5deg); }
    70% { opacity: .1; transform: scale(.72) rotate(10deg); }
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) {
    .drop-zone:hover { border-color: rgba(255, 255, 255, .74); background: rgba(255, 255, 255, .095); transform: translateY(-1px); }
    .output-option:hover { border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .09); }
    .login-link:hover, .job-action:hover, .clear-history:not(:disabled):hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .095); }
    .primary-button:not(:disabled):hover { box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 16px 35px rgba(0, 0, 0, .28); transform: translateY(-1px); }
    .conversion-card:hover { border-color: rgba(255, 255, 255, .38); box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 18px 38px rgba(0, 0, 0, .2), 0 0 24px rgba(255, 255, 255, .055); transform: translateY(-2px); }
    .conversion-card:hover .conversion-route i { transform: translateX(3px); }
}
@media (max-width: 1100px) {
    .confa-bokeh-depth--far .confa-bokeh-item:nth-child(n + 5),
    .confa-bokeh-depth--middle .confa-bokeh-item:nth-child(n + 7),
    .confa-bokeh-depth--near .confa-bokeh-item:nth-child(n + 4),
    .confa-bokeh-depth--spark .confa-bokeh-spark:nth-child(n + 2) { display: none; }
}
@media (max-width: 1000px) {
    .conversion-grid, .format-browser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .site-header, main, footer { width: min(100% - 28px, 1160px); }
    .site-header { min-height: 72px; }
    .hero { height: 64vh; height: 64svh; min-height: 520px; }
    .hero-copy { padding: 38px 0 34px; }
    .eyebrow { min-height: 0; padding-right: 0; }
    h1 { max-width: 100%; font-size: clamp(2.36rem, 12.5vw, 3.6rem); }
    .workspace, .results { padding: 20px; border-radius: 23px; }
    .drop-zone { min-height: 190px; }
    .form-row, .section-heading { align-items: stretch; flex-direction: column; }
    .section-heading p { margin-bottom: 16px; text-align: left; }
    .clear-history { width: 100%; }
    .primary-button { width: 100%; }
    .features { grid-template-columns: 1fr; padding: 0 0 46px; }
    .features article { --reveal-x: 0 !important; padding: 20px; }
    .header-nav { gap: 2px; }
    .header-nav > a:not(.login-link) { padding-inline: 7px; }
    .catalog-section { padding: 20px; border-radius: 23px; }
    .search-combobox kbd { display: none; }
    .search-combobox input { padding-right: 15px; }
    .picker-row, .catalog-toolbar { grid-template-columns: 1fr; }
    .picker-row:has(.swap-button[hidden]) { grid-template-columns: 1fr; }
    .swap-button { width: 100%; }
    .view-switch { width: 100%; }
    .view-switch button { flex: 1; }
    #catalog-count { white-space: normal; }
    .format-browser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-main { padding-top: 96px; }
    .guide-article { border-radius: 23px; }
    .search-option { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .search-option > small:last-child { justify-self: start; }
    .confa-bokeh-depth--far .confa-bokeh-item:nth-child(n + 3),
    .confa-bokeh-depth--middle .confa-bokeh-item:nth-child(n + 5),
    .confa-bokeh-depth--near .confa-bokeh-item:nth-child(n + 3),
    .confa-bokeh-depth--spark .confa-bokeh-spark:nth-child(n + 2) { display: none; }
}
@media (max-width: 520px) {
    .conversion-grid, .format-browser { grid-template-columns: 1fr; }
    .conversion-card { min-height: 172px; }
    .search-suggestions a { width: 100%; justify-content: start; }
}
@media (update: slow) {
    .confa-bokeh-depth--near, .confa-bokeh-depth--spark,
    .confa-bokeh-depth--far .confa-bokeh-item:nth-child(n + 3),
    .confa-bokeh-depth--middle .confa-bokeh-item:nth-child(n + 5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .features.is-reveal-ready article { opacity: 1; filter: none; transform: none; }
    .confa-bokeh-item { animation: none !important; opacity: .04; transform: none; }
    .confa-bokeh-spark, .confa-bokeh-depth--near,
    .confa-bokeh-depth--far .confa-bokeh-item:nth-child(n + 3),
    .confa-bokeh-depth--middle .confa-bokeh-item:nth-child(n + 2) { display: none; }
}
@media print { .confa-bokeh-layer { display: none; } }

/* Transparent enhancement layer: the restored WebGL background remains authoritative. */
.confa-dynamic-glow-overlay {
    position: fixed;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    contain: strict;
    pointer-events: none;
    background: transparent;
    mix-blend-mode: screen;
}
.confa-dynamic-glow-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 54% at 0% 4%, rgba(255, 255, 255, .34), rgba(205, 205, 205, .13) 35%, transparent 73%),
        radial-gradient(ellipse 54% 64% at 60% 37%, rgba(255, 255, 255, .42), rgba(190, 190, 190, .17) 32%, transparent 71%),
        radial-gradient(ellipse 64% 52% at 103% 92%, rgba(238, 238, 238, .25), rgba(150, 150, 150, .10) 39%, transparent 74%);
}
.confa-dynamic-glow-overlay.is-canvas-ready::before { opacity: 0; }
.confa-dynamic-glow-overlay__canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.site-header, main, footer { z-index: 3; }
.site-header { z-index: 4; }

@media (update: slow) {
    .confa-dynamic-glow-overlay { opacity: .82; }
}
@media print {
    .confa-dynamic-glow-overlay { display: none; }
}
