@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
    --ground: #F2F3F5;
    --surface: #FFFFFF;
    --ink: #16171B;
    --ink-2: #3A3D45;
    --muted: #5A5E68;
    --line: #DCDEE3;
    --line-strong: #C4C7CF;
    --shadow-ink: 22 23 27;

    --ultramarine: #2B3BCF;
    --vermilion: #C2381F;
    --marigold: #F2A81B;
    --viridian: #0B6B58;
    --magenta: #AE2268;
    --plum: #56307E;
    --on-dark: #FFFFFF;
    --on-marigold: #1B1404;

    --ok: #0B6B58;
    --ok-soft: #E4F2EE;
    --error: #B42318;
    --error-soft: #FCEAE8;
    --warn: #B7791F;

    --pigment: var(--ultramarine);
    --on-pigment: var(--on-dark);

    --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 14px;
    --radius-sm: 9px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-cat="text-tools"]      { --pigment: var(--ultramarine); --on-pigment: var(--on-dark); }
[data-cat="image-tools"]     { --pigment: var(--vermilion);   --on-pigment: var(--on-dark); }
[data-cat="generator-tools"] { --pigment: var(--marigold);    --on-pigment: var(--on-marigold); }
[data-cat="developer-tools"] { --pigment: var(--viridian);    --on-pigment: var(--on-dark); }
[data-cat="pdf-tools"]       { --pigment: var(--magenta);     --on-pigment: var(--on-dark); }
[data-cat="video-tools"]     { --pigment: var(--plum);        --on-pigment: var(--on-dark); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--line-strong) var(--ground); }
body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ground);
    font-feature-settings: "ss01" 1;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--pigment);
}
::selection { background: color-mix(in oklab, var(--pigment) 24%, var(--surface)); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, label:focus-visible {
    outline: 2px solid var(--pigment);
    outline-offset: 2px;
    transition: none;
}
img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.022em; font-weight: 800; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; flex: none; }
.brand-mark rect { fill: var(--pigment); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
    text-decoration: none; white-space: nowrap;
    transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav a::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--pigment); }
.nav a:hover { background: var(--ground); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ground); color: var(--ink); font-weight: 700; }

/* Home hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy .lead { margin-top: 18px; max-width: 46ch; font-size: 1.15rem; color: var(--ink-2); }
.search { margin-top: 28px; max-width: 520px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; height: 54px; padding: 0 18px 0 46px;
    font: inherit; font-size: 1.05rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.06);
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(var(--shadow-ink) / 0.08); }

/* Fanned deck: the signature on the home page */
.deck { position: relative; height: 340px; display: flex; justify-content: center; align-items: flex-end; }
.deck-card {
    position: absolute; bottom: 0; width: 190px; height: 290px;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden; text-decoration: none;
    box-shadow: 0 2px 4px rgb(var(--shadow-ink) / 0.06), 0 18px 36px -18px rgb(var(--shadow-ink) / 0.35);
    transform-origin: 50% 120%;
    transform: translateX(var(--shift)) rotate(var(--fan));
    transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
    animation: fan-open 900ms var(--ease) backwards;
    animation-delay: var(--delay, 0ms);
}
.deck-card:nth-child(1) { --fan: -20deg; --shift: -80px; --delay: 60ms; }
.deck-card:nth-child(2) { --fan: -7deg;  --shift: -27px; --delay: 120ms; }
.deck-card:nth-child(3) { --fan: 7deg;   --shift: 27px;  --delay: 180ms; }
.deck-card:nth-child(4) { --fan: 20deg;  --shift: 80px;  --delay: 240ms; }
.deck-card:hover, .deck-card:focus-visible { transform: translateX(var(--shift)) rotate(var(--fan)) translateY(-14px); z-index: 2; box-shadow: 0 4px 8px rgb(var(--shadow-ink) / 0.08), 0 28px 48px -20px rgb(var(--shadow-ink) / 0.45); }
.deck-field { flex: 1; background: var(--pigment); display: flex; align-items: flex-start; padding: 16px 16px 16px 18px; color: var(--on-pigment); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.deck-label { padding: 12px 16px 14px; font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; }
.deck-label strong { color: var(--ink); font-weight: 700; }
@keyframes fan-open { from { transform: translateX(0) rotate(0deg) translateY(8px); } to { transform: translateX(var(--shift)) rotate(var(--fan)); } }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }

/* Tool listing */
.listing { padding-bottom: clamp(48px, 8vw, 96px); }
.listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.filter {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.filter[data-cat]::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--pigment); }
.filter:hover { border-color: var(--ink-2); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1px 0 0 1px; }

.chip {
    position: relative; display: flex; flex-direction: column;
    min-height: 212px; margin: -1px 0 0 -1px;
    background: var(--surface); border: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
    transition: border-color 200ms var(--ease);
}
.chip-field {
    height: 112px; padding: 18px; color: var(--on-pigment);
    background: color-mix(in oklab, var(--pigment) var(--tint, 100%), var(--surface));
    clip-path: inset(0 0 16px 0);
    transition: clip-path 260ms var(--ease);
}
.chip[data-step="2"] { --tint: 80%; }
.chip[data-step="3"] { --tint: 62%; }
.chip[data-step="4"] { --tint: 46%; }
.chip-icon { width: 34px; height: 34px; transition: transform 260ms var(--ease); }
.chip:hover .chip-icon { transform: scale(1.08); }
.chip-label { padding: 6px 18px 20px; display: grid; gap: 6px; }
.chip-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.chip-text { font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
.chip:hover { z-index: 1; border-color: var(--ink); }
.chip:hover .chip-field, .chip:focus-visible .chip-field { clip-path: inset(0 0 0 0); }
.chip:focus-visible { z-index: 1; outline-offset: -2px; }

.empty { padding: 40px 0; color: var(--muted); }

/* Bands: category and tool pages */
.band { background: var(--pigment); color: var(--on-pigment); padding: 28px 0 88px; }
.band a { color: inherit; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; font-weight: 500; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.band h1 { max-width: 18ch; }
.band .lead { margin-top: 14px; max-width: 60ch; font-size: 1.1rem; }
.ondevice { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.92rem; font-weight: 500; }
.ondevice svg { width: 16px; height: 16px; }

.page-body { padding-bottom: clamp(56px, 8vw, 96px); }
.strip-raised { margin-top: 40px; }

/* Tool surface */
.tool {
    position: relative; z-index: 1;
    margin-top: -56px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 1px 2px rgb(var(--shadow-ink) / 0.06), 0 24px 48px -28px rgb(var(--shadow-ink) / 0.4);
}

.input-area {
    display: block; width: 100%; min-height: 260px; padding: 16px;
    font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    resize: vertical;
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.input-area::placeholder { color: var(--muted); }
.input-area:focus { outline: none; border-color: var(--pigment); box-shadow: 0 0 0 3px color-mix(in oklab, var(--pigment) 18%, transparent); }
.input-area.mono { font-family: var(--mono); font-size: 0.9rem; line-height: 1.55; tab-size: 4; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.actions .spacer { flex: 1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 16px;
    font: inherit; font-size: 0.95rem; font-weight: 700;
    color: var(--on-pigment); background: var(--pigment);
    border: 1px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: color-mix(in oklab, var(--pigment) 86%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ground); border-color: var(--ink-2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 0.85rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.stat { padding: 12px 14px; border-right: 1px solid var(--line); margin-right: -1px; }
.stat-value { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.82rem; color: var(--muted); }

.options { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 16px 0; }
.option { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.option input[type="range"] { width: 180px; accent-color: var(--pigment); }
.option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pigment); }
.option strong { font-variant-numeric: tabular-nums; min-width: 2ch; }
.field {
    height: 40px; padding: 0 12px;
    font: inherit; font-size: 0.95rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
}
.field:focus { outline: none; border-color: var(--pigment); box-shadow: 0 0 0 3px color-mix(in oklab, var(--pigment) 18%, transparent); }

.status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.95rem; }
.status:empty { display: none; }
.status.ok { color: var(--ok); background: var(--ok-soft); }
.status.error { color: var(--error); background: var(--error-soft); }

.dropzone {
    display: grid; place-items: center; gap: 6px; text-align: center;
    padding: 44px 20px;
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
    background: color-mix(in oklab, var(--pigment) 4%, var(--surface));
    cursor: pointer;
    transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.dropzone:hover, .dropzone.drag { border-color: var(--pigment); background: color-mix(in oklab, var(--pigment) 9%, var(--surface)); }
.dropzone strong { font-size: 1.1rem; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--ground); }
.file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.saved { color: var(--ok); font-weight: 700; }

.password-box { display: flex; gap: 8px; }
.password-box input {
    flex: 1; min-width: 0; height: 56px; padding: 0 16px;
    font-family: var(--mono); font-size: 1.2rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.password-box .btn { height: 56px; }
.meter { height: 6px; border-radius: 999px; background: var(--ground); overflow: hidden; margin-top: 14px; }
.meter span { display: block; height: 100%; width: 100%; background: var(--error); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 240ms var(--ease), background-color 240ms var(--ease); }
.meter-note { margin-top: 8px; font-size: 0.9rem; }
.field-narrow { width: 112px; }
.meter[data-level="fair"] span { background: var(--warn); }
.meter[data-level="strong"] span, .meter[data-level="very"] span { background: var(--ok); }

.label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 700; }
.input-short { min-height: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.preview { display: grid; gap: 4px; }
.preview-box {
    display: grid; place-items: center; min-height: 240px; padding: 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background-color: var(--surface);
    background-image: conic-gradient(var(--ground) 25%, transparent 0 50%, var(--ground) 0 75%, transparent 0);
    background-size: 20px 20px;
}
.preview-box canvas, .preview-box img { max-width: 100%; max-height: 420px; width: auto; height: auto; image-rendering: auto; }
.preview-box canvas { image-rendering: pixelated; max-width: min(100%, 320px); }
.preview .actions { margin-top: 10px; }
.field-color { width: 44px; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.field-color:disabled { opacity: 0.4; cursor: default; }
.file-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; background: var(--pigment); color: var(--on-pigment); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; }
.file-controls { display: flex; gap: 6px; }
.file-controls .btn { width: 34px; padding: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.file-pick { cursor: pointer; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ground); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 7px; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg input:checked + span { background: var(--pigment); color: var(--on-pigment); }
.seg input:focus-visible + span { outline: 2px solid var(--pigment); outline-offset: 2px; }

/* Content */
.content { max-width: 760px; margin-top: clamp(40px, 6vw, 64px); }
.content h2 { margin: 40px 0 14px; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--ink-2); }
.content p + p { margin-top: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--pigment); color: var(--on-pigment); font-weight: 800; font-size: 0.85rem; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; }

.section { margin-top: clamp(48px, 7vw, 80px); }
.section > h2 { margin-bottom: 16px; }

.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.prose { max-width: 720px; padding: clamp(40px, 7vw, 72px) 0; }
.prose h2 { margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ink); font-weight: 600; }

.ad { margin: 32px 0; min-height: 90px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-swatch { display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; }
.footer-swatch span { background: var(--pigment); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px var(--gutter) 24px; }
.footer-inner p { margin-top: 10px; max-width: 36ch; color: var(--muted); font-size: 0.95rem; }
.footer-links { display: grid; gap: 8px; align-content: start; font-size: 0.95rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.copyright { padding: 18px var(--gutter) 28px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
    .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .filters { margin-left: 0; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .deck { display: none; }
    .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .topbar-inner { flex-wrap: wrap; height: auto; gap: 0; padding-top: 12px; }
    .nav { margin: 6px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px; width: calc(100% + var(--gutter) * 2); }
    .nav a { padding: 8px 10px; }
    .strip { grid-template-columns: minmax(0, 1fr); }
    .chip { min-height: 0; flex-direction: row; align-items: stretch; }
    .chip-field { width: 64px; height: auto; flex: none; clip-path: inset(0 10px 0 0); padding: 0 10px 0 0; display: grid; place-items: center; }
    .chip-icon { width: 24px; height: 24px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; width: calc(100% + var(--gutter) * 2); }
    .filter { flex: none; }
    .chip:hover .chip-field { clip-path: inset(0 0 0 0); }
    .chip-label { padding: 14px 16px; }
    .band { padding: 22px 0 76px; }
    .tool { margin-top: -48px; }
    .password-box { flex-wrap: wrap; }
    .password-box input { flex-basis: 100%; }
    .file-item { grid-template-columns: 48px minmax(0, 1fr); }
    .file-item > .btn, .file-item > .file-controls { grid-column: 1 / -1; }
    .split-even { grid-template-columns: minmax(0, 1fr); }
    .file-pick { margin-left: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
    .option input[type="range"] { width: 140px; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
    .stat-value { font-size: 1.2rem; }
    .stat-label { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
