:root {
  /* A maker's mark copy (docs/MARK.md). A stylesheet is the one place a grep of the JavaScript misses. */
  --o: "\000073\000074\000075\000064\000069\00006f\00002e\000074\000075\000065";
  --well: #131315;
  --card: #1c1c1f;
  --card-hover: #222226;
  --raised: #2c2c2f;
  --text: #f5f5f7;
  --dim: #8e8e93;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #b9dcf5;
  --accent-soft: rgba(185, 220, 245, 0.26);
  --on-accent: #0b1a26;
  --error: #ff8a80;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Adobe Clean", system-ui, sans-serif;
  --top-h: 136px;
  --bar-h: 60px;
  --glass: rgba(19, 19, 21, 0.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--well); color: var(--text); font: 13px/1.45 var(--font); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
/* The UA gives every button padding: 1px 6px. On the small round icon buttons that leaves a content
   box narrower than the glyph (.cmp: 13px svg in an 11px box), and Chromium cannot centre an item
   wider than its container -- it aligns to start instead, so the glyph sits right of centre.
   .ghost and .primary set their own padding, so they are unaffected. */
.icon, .play, .cmp, .star { padding: 0; }
[hidden] { display: none !important; }

/* Scrollbars. Chromium 88 ignores scrollbar-width, so only these pseudo-elements do anything:
   before this, #scroller was the one styled scroller and it never scrolls (the pager sees to that),
   while every pane you actually scroll fell through to the default chunky bar. Hairline thumb,
   no track, and it only shows while the pointer is in the thing it scrolls. */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; transition: background 160ms var(--ease); }
#scroller:hover::-webkit-scrollbar-thumb,
#help:hover::-webkit-scrollbar-thumb,
#compare:hover::-webkit-scrollbar-thumb,
#review:hover::-webkit-scrollbar-thumb,
#catMenu:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); }
#scroller::-webkit-scrollbar-thumb:hover,
#help::-webkit-scrollbar-thumb:hover,
#compare::-webkit-scrollbar-thumb:hover,
#review::-webkit-scrollbar-thumb:hover,
#catMenu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/*
 * overflow-y: scroll, not auto, and it matters. The grid is sized from scroller.clientWidth, so a
 * scrollbar that comes and goes changes the width the layout was just computed from: at ~286-290px the
 * page overflowed by a hair, the 6px gutter appeared, two columns lost ~3px each, the smaller cards fit,
 * the gutter went away, and it overflowed again -- a few pixels of flicker, forever. Reserving the gutter
 * always keeps clientWidth constant. Nothing shows: the track is transparent and the thumb only appears
 * while the pointer is in the scroller.
 */
#scroller { height: 100%; overflow-y: scroll; padding: calc(var(--top-h) + 6px) 14px calc(var(--bar-h) + 8px); }

#top, #bar {
  position: fixed; left: 0; right: 0; z-index: 5;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
#top { top: 0; padding: 12px 14px 10px; border-bottom: 0.5px solid transparent; transition: border-color 120ms var(--ease); }
#top.scrolled { border-bottom-color: var(--line-strong); }
#bar { bottom: 0; height: var(--bar-h); padding: 10px 14px; display: flex; align-items: center; gap: 12px; border-top: 0.5px solid var(--line); }
/* The bar is tight at dock width, so the gap closes up there. The minus keeps its size: it is meant to
   be easy to hit and easy to see. The status takes what is left -- the trade for keeping one row. */
@media (max-width: 380px) { #bar { gap: 8px; } }
@media (prefers-reduced-transparency: reduce) {
  #top, #bar { background: var(--well); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.row { display: flex; align-items: center; gap: 10px; }
.wordmark { flex: none; margin: 0; padding: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--text); transition: opacity 120ms var(--ease); }
.wordmark span { color: var(--accent); }
.wordmark:hover { opacity: 0.75; }

/* how it works: same pane as compare and review */
#help { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: var(--bar-h); z-index: 5; overflow-y: auto; padding: 6px 14px 16px; background: var(--well); }
#rvFileHelp { flex: 1; min-width: 0; font-weight: 500; }
.help-body h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.help-body h3:first-child { margin-top: 4px; }
.help-body p { margin: 0 0 7px; font-size: 12px; line-height: 1.5; color: var(--dim); }
.help-body b { color: var(--text); font-weight: 500; }
.help-made { margin: 22px 0 4px; padding-top: 12px; border-top: 0.5px solid var(--line); font-size: 12px; color: var(--dim); }
.help-made .mark-slot { color: var(--accent); cursor: pointer; }
.help-made .mark-slot:hover { text-decoration: underline; }
.help-made .mark-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.help-body code { padding: 1px 5px; border-radius: 5px; background: var(--card); color: var(--text); font-size: 11px; }

.icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--dim); transition: background 120ms var(--ease), color 120ms var(--ease), transform 120ms var(--ease); }
.icon:active { transform: scale(0.97); }
.icon.spin svg { animation: spin 700ms linear infinite; }
.icon:disabled { cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .icon.spin svg { animation: none; opacity: 0.5; } }
.icon[aria-expanded="true"] { background: var(--raised); color: var(--accent); }

#cmpBtn { position: relative; flex: none; }
#cmpBtn[aria-pressed="true"] { background: var(--raised); color: var(--accent); }
.badge { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.toggle { flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 30px; height: 18px; border-radius: 99px; background: var(--raised); position: relative; transition: background 160ms var(--ease); }
.track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform 160ms var(--ease); }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(12px); background: var(--on-accent); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 2px var(--accent-soft); }

.top1 { gap: 8px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-radius: 12px; background: var(--card); border: 0.5px solid var(--line); color: var(--dim); transition: border-color 120ms var(--ease); }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }

#favBtn[aria-pressed="true"] { background: var(--raised); color: var(--accent); }
#favBtn[aria-pressed="true"] path { fill: currentColor; }

.catrow { margin-top: 8px; gap: 12px; }
.catbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 12px; border-radius: 12px; background: var(--card); border: 0.5px solid var(--line); color: var(--text); text-align: left; transition: border-color 120ms var(--ease), background 120ms var(--ease), transform 120ms var(--ease); }
.catbtn:active { transform: scale(0.99); }
.catbtn[aria-expanded="true"] { border-color: var(--accent); }
.catbtn .lbl { color: var(--dim); font-size: 11px; letter-spacing: 0.02em; }
.catbtn #catName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.catbtn b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--dim); }
.catbtn svg { flex: none; color: var(--dim); transition: transform 160ms var(--ease); }
.catbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

#catMenu { position: absolute; left: 14px; right: 14px; top: calc(100% + 6px); z-index: 7; margin: 0; padding: 6px; list-style: none; max-height: 60vh; overflow-y: auto; border-radius: 16px; background: var(--card); border: 0.5px solid var(--line-strong); transform-origin: top center; animation: pop 160ms var(--ease); }
#catMenu li { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; color: var(--text); cursor: pointer; }
#catMenu li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#catMenu li .c { color: var(--dim); font-variant-numeric: tabular-nums; font-size: 12px; }
#catMenu li[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
#catMenu li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { #catMenu li:not([aria-selected="true"]):hover { background: var(--raised); } .catbtn:hover { background: var(--card-hover); } }

#pager { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--dim); }
#pager .icon { width: 28px; height: 28px; }
/* Coral, because it takes something off. The generic .icon:hover would grey it, so it is overridden. */
#unapply { flex: none; width: 30px; height: 30px; color: var(--error); }
@media (hover: hover) and (pointer: fine) {
  #unapply:hover:not(:disabled) { background: rgba(255, 138, 128, 0.16); color: var(--error); }
}
#unapply:disabled { opacity: 0.4; cursor: default; }
#pager .icon:disabled { opacity: 0.3; cursor: default; }
#pageLabel { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }

@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }

.ghost { height: 28px; padding: 0 12px; border-radius: 10px; background: var(--raised); color: var(--text); transition: transform 120ms var(--ease), background 120ms var(--ease); }
.ghost:active { transform: scale(0.97); }
.primary { height: 36px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; transition: transform 120ms var(--ease), opacity 120ms var(--ease); }
.primary:active:not(:disabled) { transform: scale(0.97); }
.primary:disabled { opacity: 0.4; cursor: default; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .icon:hover:not([aria-expanded="true"]), .ghost:hover { background: var(--raised); color: var(--text); }
  .primary:hover:not(:disabled) { background: #cbe6f8; }
  .card:hover { background: var(--card-hover); }
}

#empty { max-width: 300px; margin: 64px auto 0; text-align: center; }
#empty h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
#empty p { margin: 0 0 16px; color: var(--dim); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Shown while files are dragged over the panel. pointer-events: none so the drop still reaches the page. */
#drop { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 9; display: grid; place-items: center; padding: 14px; background: rgba(19, 19, 21, 0.82); pointer-events: none; }
#drop span { padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1px dashed var(--accent-soft); color: var(--text); font-size: 13px; text-align: center; }

#gridwrap { position: relative; }
#grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; outline: none; }
.card { position: relative; border-radius: 18px; background: var(--card); border: 0.5px solid var(--line); overflow: hidden; cursor: pointer; user-select: none; transition: background 120ms var(--ease), transform 120ms var(--ease); }
.card:active { transform: scale(0.98); }
.stage { position: relative; height: var(--stage-h, 80px); display: grid; place-items: center; background: var(--well); overflow: hidden; }
/* The previews have transparency, so the still must not sit underneath a playing preview. */
.stage.playing img, .stage.playing .ph { opacity: 0; }
.stage video, .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ph { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--raised); }
.play { position: absolute; left: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(28, 28, 31, 0.82); color: var(--text); border: 0.5px solid var(--line-strong); transition: transform 120ms var(--ease), background 120ms var(--ease), color 120ms var(--ease); }
.play:active:not(:disabled) { transform: scale(0.94); }
.play.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.play:disabled { opacity: 0.35; cursor: default; }
.play svg { width: 12px; height: 12px; }
.meta { display: flex; align-items: center; gap: 6px; padding: 8px 6px 9px 12px; }
.meta { align-items: flex-start; }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 3px; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: -0.005em; }
.ds { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--dim); }
.nm .no { display: inline-block; min-width: 20px; margin-right: 6px; font-style: normal; font-variant-numeric: tabular-nums; color: var(--dim); }
.star { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); transition: color 120ms var(--ease), transform 120ms var(--ease); }
.star:active { transform: scale(0.9); }
.star.on { color: var(--accent); }
.star svg { width: 15px; height: 15px; }
.star.on path { fill: currentColor; }

#ring { position: absolute; left: 0; top: 0; border-radius: 18px; border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); pointer-events: none; opacity: 0; transition: transform 200ms var(--ease), width 200ms var(--ease), height 200ms var(--ease), opacity 120ms var(--ease); }
#ring.on { opacity: 1; }
#ring.instant { transition: none; }

#status { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; color: var(--dim); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: break-word; }
#status.err { color: var(--error); }
#status #selName { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  #ring, .card, .toggle .track, .track::after { transition: none; }
}

#grid[data-density="compact"] .ph { font-size: 18px; }
#grid[data-density="compact"] .play { left: 6px; bottom: 6px; width: 24px; height: 24px; }
#grid[data-density="compact"] .play svg { width: 10px; height: 10px; }
#grid[data-density="compact"] .meta { padding: 6px 4px 8px 9px; }
#grid[data-density="compact"] .nm { font-size: 12px; }
#grid[data-density="compact"] .nm .no { min-width: 16px; margin-right: 4px; }
#grid[data-density="compact"] .star { width: 22px; height: 22px; }

/* compare button on a card, and the remove button on a compare tile */
.cmp { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(28, 28, 31, 0.82); color: var(--text); border: 0.5px solid var(--line-strong); transition: transform 120ms var(--ease), background 120ms var(--ease), color 120ms var(--ease); }
.cmp:active { transform: scale(0.94); }
.cmp svg { width: 13px; height: 13px; }
.cmp[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
#grid[data-density="compact"] .cmp { top: 5px; right: 5px; width: 22px; height: 22px; }

/* the compare pane: sits between the header and the bar and covers the grid */
#compare { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: var(--bar-h); z-index: 3; overflow-y: auto; padding: 6px 14px 10px; background: var(--well); }
/* Either card button can sit on the preview or in the name row; these decide which look it takes,
   so swapping the two is a markup change rather than a rewrite of both style blocks. */
.card .on-stage { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(28, 28, 31, 0.82); border: 0.5px solid var(--line-strong); color: var(--text); }
.card .on-stage svg { width: 13px; height: 13px; }
.card .on-stage:active { transform: scale(0.94); }
.card .in-meta { position: static; width: 26px; height: 26px; border-radius: 8px; background: none; border: 0; color: var(--dim); }
.card .in-meta svg { width: 15px; height: 15px; }
.card .in-meta:active { transform: scale(0.9); }
#grid[data-density="compact"] .card .on-stage { top: 5px; right: 5px; width: 22px; height: 22px; }
#grid[data-density="compact"] .card .in-meta { width: 22px; height: 22px; }

/* Right-click menu on a card. */
#cardMenu { position: fixed; z-index: 9; min-width: 172px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--card); border: 0.5px solid var(--line-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); animation: pop 120ms var(--ease); }
#cardMenu li { padding: 7px 10px; border-radius: 9px; font-size: 12px; color: var(--text); cursor: pointer; white-space: nowrap; }
#cardMenu li:hover { background: var(--raised); }
#cardMenu li.danger { color: var(--error); }
#cardMenu hr { margin: 5px 6px; border: 0; border-top: 0.5px solid var(--line); }
@media (prefers-reduced-motion: reduce) { #cardMenu { animation: none; } }

.cmp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#cmpTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
#cmpGrid { display: grid; gap: 10px; }
#cmpEmpty { max-width: 260px; margin: 40px auto 0; text-align: center; color: var(--dim); }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* In a narrow dock the row holds four controls, so the words go and the switch speaks for itself (it keeps its label and tooltip). */
@media (max-width: 340px) {
  .catbtn .lbl { display: none; }
  .catrow { gap: 10px; }
  #playAllToggle span { display: none; }
}

.ph.msg { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--dim); }

/* review: one preset at a time, big preview, name it, sort it, next */
#review { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: var(--bar-h); z-index: 4; overflow-y: auto; padding: 6px 14px 12px; background: var(--well); }
#rvBtn[aria-pressed="true"] { background: var(--raised); color: var(--accent); }
.rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#rvFile { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--dim); }
#rvCount { flex: none; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
#rvRemove { flex: none; height: 26px; padding: 0 10px; border-radius: 9px; color: var(--dim); font-size: 12px; transition: background 120ms var(--ease), color 120ms var(--ease); }
#rvRemove[data-armed="1"] { background: var(--error); color: #2a0d0a; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { #rvRemove:hover:not([data-armed="1"]) { background: var(--raised); color: var(--error); } }

#toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 10px; }
#toast .undo { flex: none; padding: 3px 9px; border-radius: 8px; background: var(--raised); color: var(--text); font-size: 12px; }
#toast .undo:hover { background: var(--accent); color: var(--on-accent); }
.rv-stage { position: relative; height: clamp(96px, 26vh, 200px); display: grid; place-items: center; border-radius: 18px; background: var(--well); border: 0.5px solid var(--line); overflow: hidden; }
.rv-stage video, .rv-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rv-stage.playing img { opacity: 0; } /* the previews are transparent, so the still can't stay underneath */

.rv-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fld { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 0.5px solid var(--line); transition: border-color 120ms var(--ease); }
.fld:focus-within { border-color: var(--accent); }
.fld > span { flex: none; width: 34px; font-size: 11px; color: var(--dim); }
.fld input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.fld input::placeholder { color: var(--dim); opacity: 0.75; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { height: 28px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 0.5px solid var(--line); color: var(--dim); font-size: 12px; transition: background 120ms var(--ease), color 120ms var(--ease), transform 120ms var(--ease); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 500; }
.chip.add { width: 28px; padding: 0; display: grid; place-items: center; }
#rvNewCat { height: 28px; width: 132px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 0.5px solid var(--accent); color: var(--text); outline: 0; font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--raised); color: var(--text); } }

/* Next has to stay reachable in a short dock, where the chips alone can fill the pane. */
.rv-nav { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 0 2px; background: var(--well); }
.rv-nav .ghost, .rv-nav .star { flex: none; }
.rv-nav .star { width: 32px; height: 32px; }
.rv-nav .star svg { width: 17px; height: 17px; }
#rvNext { flex: 1; }
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }

#toast { position: fixed; left: 14px; right: 14px; bottom: calc(var(--bar-h) + 10px); z-index: 8; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 0.5px solid var(--line-strong); color: var(--text); font-size: 12px; line-height: 1.35; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
#toast.show { opacity: 1; transform: none; }
#toast.err { border-color: var(--error); color: var(--error); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; transform: none; } }
