:root {
  color-scheme: dark;
  --canvas: #111318;
  --surface: #181b20;
  --surface-raised: #20242a;
  --surface-quiet: #15181d;
  --outline: #3f454e;
  --outline-soft: #2b3037;
  --on-surface: #e3e7ee;
  --on-surface-muted: #b1b8c4;
  --accent: #ffb0c8;
  --accent-strong: #ff7fab;
  --accent-ink: #571529;
  --focus: #ffd0df;
  --danger: #ffb4ab;
  --danger-ink: #690005;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --content-max: 1680px;
  --category-rail-width: 252px;
  --gallery-gutter: clamp(1rem, 3vw, 2.4rem);
  --content-edge: max(0px, calc(50vw - 840px));
  --shadow-1: 0 2px 6px rgb(0 0 0 / .18);
  --shadow-2: 0 10px 32px rgb(0 0 0 / .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-settle: cubic-bezier(.22, .82, .28, 1);
  --ease-pop: cubic-bezier(.16, 1.18, .3, 1);
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 420ms;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-width: 0; scrollbar-gutter: stable; background: var(--canvas); }
body {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--on-surface);
  background: radial-gradient(90rem 52rem at 85% -12%, rgb(255 127 171 / .1), transparent 55%), var(--canvas);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}
body.is-r18 { --accent: #ffb4ab; --accent-strong: #ff897d; --accent-ink: #690005; background: radial-gradient(90rem 52rem at 85% -12%, rgb(255 137 125 / .1), transparent 55%), var(--canvas); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-width: 0; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 38rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 72px;
  padding: .75rem clamp(1rem, 3vw, 2.25rem);
  background: var(--canvas);
  border-bottom: 1px solid var(--outline-soft);
}
.topbar__identity, .topbar__actions { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.topbar__actions { flex-wrap: wrap; justify-content: flex-end; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: .75rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.brand__mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--outline)); border-radius: .8rem; color: var(--accent); font-family: Georgia, serif; font-size: 1.32rem; font-weight: 700; }
.brand__copy { min-width: 0; display: grid; line-height: 1.15; }
.brand__copy strong { font-size: 1rem; letter-spacing: .04em; }
.brand__copy small { overflow: hidden; color: var(--on-surface-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.icon-button, .text-button, .compact-button, .primary-button, .secondary-button, .danger-button, .inline-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-settle), box-shadow var(--motion-base) var(--ease-out);
}
.icon-button { display: inline-grid; place-items: center; width: 42px; padding: 0; border-color: var(--outline-soft); background: transparent; font-size: 1.45rem; line-height: 1; }
.icon-button:hover, .text-button:hover, .compact-button:hover, .secondary-button:hover { background: var(--surface-raised); border-color: var(--outline); }
.text-button, .compact-button { padding: 0 .82rem; background: transparent; border-color: var(--outline-soft); color: var(--on-surface-muted); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.primary-button { padding: 0 1rem; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.primary-button:hover { box-shadow: 0 2px 14px color-mix(in srgb, var(--accent) 28%, transparent); transform: translateY(-1px); }
.secondary-button { display: inline-grid; place-items: center; min-height: 42px; padding: 0 .9rem; border-color: var(--outline); background: var(--surface); color: var(--on-surface); text-decoration: none; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.danger-button { min-height: 42px; padding: 0 .9rem; border-color: var(--danger); background: var(--danger); color: var(--danger-ink); font-size: .84rem; font-weight: 800; white-space: nowrap; }
.inline-button { min-height: auto; padding: .2rem 0; border: 0; background: none; color: var(--accent); font-size: .82rem; font-weight: 700; text-align: left; }
@media (hover: none) {
  .icon-button:active, .text-button:active, .compact-button:active, .primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.98); }
  .icon-button:active, .text-button:active, .compact-button:active, .secondary-button:active { background: var(--surface-raised); }
}

.search-field { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .82rem; border: 1px solid var(--outline); border-radius: var(--radius-s); background: var(--surface); color: var(--on-surface-muted); }
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--on-surface); background: transparent; }
.search-field input::placeholder { color: #858c97; }
kbd { display: inline-block; padding: .1rem .35rem; border: 1px solid var(--outline); border-bottom-width: 2px; border-radius: .35rem; color: var(--on-surface-muted); font-size: .68rem; }
.mobile-search { padding: .65rem 1rem; background: var(--canvas); border-bottom: 1px solid var(--outline-soft); }
.mobile-search-button { display: none; place-items: center; line-height: 1; text-align: center; }

.app-layout { display: grid; grid-template-columns: var(--category-rail-width) minmax(0, 1fr); min-width: 0; max-width: var(--content-max); margin: 0 auto; }
.category-drawer { position: sticky; top: 72px; align-self: start; max-height: calc(100dvh - 72px); min-width: 0; overflow: auto; padding: 1.5rem .9rem; border-right: 1px solid var(--outline-soft); }
.drawer__heading { display: none; }
.drawer-close, .menu-button { display: none; }
.eyebrow { margin: 0; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.category-list { display: grid; gap: .2rem; }
.category-button { width: 100%; min-width: 0; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-height: 46px; padding: .4rem .55rem; border: 1px solid transparent; border-radius: var(--radius-s); background: transparent; color: var(--on-surface-muted); text-align: left; }
.category-button:hover { background: var(--surface); color: var(--on-surface); }
.category-button[aria-current="true"] { border-color: color-mix(in srgb, var(--accent) 35%, var(--outline)); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--on-surface); }
.category-avatar { position: relative; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--accent) 17%, var(--surface-raised)); color: var(--accent); font-size: .72rem; font-weight: 800; }
.category-avatar__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center; }
.category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 650; }
.category-count { color: var(--on-surface-muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.drawer__note { margin: 1.2rem .6rem .2rem; color: #8e96a2; font-size: .72rem; line-height: 1.6; }

.gallery-main { min-width: 0; padding: var(--gallery-gutter); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; min-width: 0; margin-bottom: 1.2rem; }
.gallery-heading > div:first-child { min-width: 0; }
.gallery-heading h1 { margin: .3rem 0 .15rem; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.04em; text-wrap: pretty; }
.result-note { margin: 0; color: var(--on-surface-muted); font-size: .86rem; }
.toolbar { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.select-field { display: flex; align-items: center; min-height: 42px; gap: .45rem; padding: 0 .55rem 0 .8rem; border: 1px solid var(--outline-soft); border-radius: var(--radius-s); background: var(--surface); color: var(--on-surface-muted); font-size: .78rem; font-weight: 750; }
.select-field select, .batch-bar select { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--on-surface); font-size: .82rem; }
.select-field option, .batch-bar option { background: var(--surface-raised); }
.quick-filters { display: flex; gap: .5rem; min-width: 0; margin: 0 0 1.25rem; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: .2rem; scrollbar-width: none; }
.quick-filters::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 34px; padding: 0 .72rem; border: 1px solid var(--outline-soft); border-radius: 999px; background: transparent; color: var(--on-surface-muted); font-size: .78rem; font-weight: 700; }
.filter-chip:hover { border-color: var(--outline); color: var(--on-surface); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(.75rem, 1.4vw, 1.15rem); min-width: 0; }
.gallery-grid.is-refreshing { opacity: 1; }
.card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--outline-soft); border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow-1); }
.card.card--reveal { transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out); }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 42%, transparent); }
.card__image-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-raised); aspect-ratio: 4 / 5; overflow: hidden; }
.card__image { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.card__body { display: grid; gap: .5rem; min-width: 0; padding: .82rem .85rem .9rem; }
.card__title { overflow: hidden; margin: 0; color: var(--on-surface); font-size: .92rem; font-weight: 760; line-height: 1.38; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; color: var(--on-surface-muted); font-size: .74rem; }
.card__author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__likes { flex: 0 0 auto; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 760; }
.card__role { display: inline-flex; width: fit-content; max-width: 100%; overflow: hidden; padding: .22rem .45rem; border-radius: .42rem; background: var(--surface-raised); color: var(--on-surface-muted); font-size: .7rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.card__select { position: absolute; z-index: 2; top: .65rem; right: .65rem; display: inline-flex; gap: .32rem; align-items: center; min-height: 32px; padding: .3rem .45rem; border: 1px solid var(--outline); border-radius: .55rem; background: var(--surface-raised); color: var(--on-surface); font-size: .72rem; }
.card__select input { width: 1rem; height: 1rem; accent-color: var(--accent-strong); }
@media (hover: hover) {
  .card { transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
  .card:hover, .card.card--reveal.is-visible:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--outline)); box-shadow: var(--shadow-2); }
}
.load-more-wrap { display: grid; place-items: center; min-height: 100px; }
.load-more-wrap[hidden] { display: none; }
.empty-state { padding: 5rem 1rem; text-align: center; }
.empty-state__kicker { margin: 0; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.empty-state h2 { margin: .45rem 0 1.1rem; font-size: 1.3rem; text-wrap: pretty; }

.detail-modal { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: clamp(.5rem, 3vw, 2rem); }
.detail-modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .72); }
.detail-panel, .auth-panel { position: relative; z-index: 1; border: 1px solid var(--outline); border-radius: var(--radius-l); background: var(--surface); box-shadow: 0 30px 90px rgb(0 0 0 / .5); }
.detail-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); width: min(100%, 70rem); max-height: min(86dvh, 48rem); overflow: auto; }
.detail-image-wrap { position: relative; display: grid; place-items: center; min-height: 24rem; height: min(72dvh, 42rem); overflow: hidden; background: #0c0d10; }
.detail-image-wrap.is-revealing::after { content: ""; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 100%; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 90%, white) 0 .18rem, #0c0d10 .32rem); animation: detail-image-wipe 480ms linear both; }
@keyframes detail-image-wipe { 0% { width: 100%; } 72% { width: .8rem; } 100% { width: 0; } }
.detail-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }
.detail-image.is-loaded { opacity: 1; transform: none; }
.detail-nav-button { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; border-color: var(--outline); border-radius: 50%; background: var(--surface-raised); color: var(--on-surface); line-height: 1; transform: translateY(-50%); }
.detail-nav-icon { position: relative; z-index: 1; display: block; width: 1.15rem; height: 1.15rem; overflow: visible; }
.detail-nav-icon path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.detail-nav-button--prev { left: .7rem; }
.detail-nav-button--next { right: .7rem; }
@media (hover: none) { .detail-nav-button:active { transform: translateY(-50%) scale(.86); } }
.detail-copy { display: grid; align-content: start; gap: .8rem; min-width: 0; padding: 1.45rem; }
.detail-copy h2, .auth-panel h2 { margin: .1rem 0 0; font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.detail-author, .auth-copy { margin: -.4rem 0 .2rem; color: var(--on-surface-muted); line-height: 1.6; }
.detail-meta { display: grid; gap: .48rem; margin: 0; }
.detail-meta div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px solid var(--outline-soft); font-size: .82rem; }
.detail-meta dt { color: var(--on-surface-muted); }
.detail-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: .38rem; }
.tag-list span { padding: .26rem .46rem; border: 1px solid var(--outline-soft); border-radius: 999px; color: var(--on-surface-muted); font-size: .7rem; }
.detail-actions { display: grid; grid-template-columns: 1fr; gap: .55rem; margin-top: .2rem; }
.detail-panel__close { position: absolute; z-index: 2; top: .7rem; right: .7rem; background: var(--surface-raised); }
.auth-panel { display: grid; gap: 1rem; width: min(100%, 25rem); padding: 1.5rem; }
.invite-panel { width: min(100%, 32rem); }
.auth-form { display: grid; gap: .8rem; }
.auth-form label, .invite-result label { display: grid; gap: .35rem; color: var(--on-surface-muted); font-size: .8rem; font-weight: 700; }
.auth-form input, .invite-result input { min-width: 0; min-height: 42px; padding: 0 .7rem; border: 1px solid var(--outline); border-radius: var(--radius-s); outline: 0; background: var(--surface-quiet); color: var(--on-surface); }
.auth-form input:focus, .invite-result input:focus { border-color: var(--focus); }
.invite-result { display: grid; gap: .55rem; padding: .8rem; border: 1px solid var(--outline-soft); border-radius: var(--radius-s); background: var(--surface-quiet); }
.invite-result input { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .8rem; }
.invite-result__actions { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.invite-result__actions span { color: var(--on-surface-muted); font-size: .74rem; }
.invite-list { display: grid; gap: .55rem; min-width: 0; }
.invite-list h3 { margin: 0; font-size: .88rem; }
.invite-list-items { display: grid; gap: .45rem; max-height: 15rem; overflow: auto; }
.invite-list__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem .7rem; border: 1px solid var(--outline-soft); border-radius: var(--radius-s); background: var(--surface-quiet); }
.invite-list__copy { min-width: 0; display: grid; gap: .18rem; }
.invite-list__copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.invite-list__copy span { color: var(--on-surface-muted); font-size: .72rem; }
.invite-list__empty { margin: 0; color: var(--on-surface-muted); font-size: .78rem; }

.batch-bar { position: fixed; z-index: 55; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); left: max(.75rem, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 70rem; margin: 0 auto; padding: .75rem .85rem; border: 1px solid var(--outline); border-radius: var(--radius-m); background: var(--surface-raised); box-shadow: var(--shadow-2); }
.batch-bar strong, .batch-bar span { display: block; }
.batch-bar span { margin-top: .18rem; color: var(--on-surface-muted); font-size: .74rem; }
.batch-bar__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.batch-bar select { min-height: 42px; max-width: 12rem; padding: 0 .4rem; border: 1px solid var(--outline); border-radius: var(--radius-s); background: var(--surface); }

/* Desktop batch controls belong to the gallery pane, never over the persistent role rail. */
@media (min-width: 901px) {
  .batch-bar {
    left: max(calc(env(safe-area-inset-left) + .75rem), calc(var(--content-edge) + var(--category-rail-width) + var(--gallery-gutter)));
    right: max(calc(env(safe-area-inset-right) + .75rem), calc(var(--content-edge) + var(--gallery-gutter)));
    max-width: none;
    margin: 0;
  }
}
.toast { position: fixed; z-index: 80; left: 50%; bottom: 1.4rem; max-width: min(90vw, 34rem); padding: .7rem .9rem; border: 1px solid var(--outline); border-radius: .65rem; background: var(--surface-raised); color: var(--on-surface); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity .2s ease, transform .2s var(--ease-out); font-size: .82rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


@media (max-width: 900px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .desktop-search { display: none; }
  .mobile-search-button { display: inline-grid; }
  .app-layout { grid-template-columns: 1fr; }
  .menu-button, .drawer-close { display: inline-grid; }
  .category-drawer { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; display: block; width: min(86vw, 22rem); height: 100dvh; max-width: 100%; max-height: 100dvh; min-height: 0; align-self: stretch; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: max(1rem, env(safe-area-inset-top)) .9rem max(1.5rem, env(safe-area-inset-bottom)); transform: translateX(-105%); transition: transform 360ms var(--ease-settle); background: var(--surface); box-shadow: var(--shadow-2); }
  .category-drawer .drawer__heading { display: flex; align-items: center; justify-content: flex-end; margin: 0 0 .35rem; padding: 0; background: transparent; }
  .category-drawer .category-list { min-height: auto; overflow: visible; }
  .category-drawer.is-open { transform: translateX(0); }
  .drawer-backdrop { position: fixed; z-index: 45; inset: 0; background: rgb(0 0 0 / .48); opacity: 0; transition: opacity var(--motion-base) var(--ease-out); }
  .drawer-backdrop.is-visible { opacity: 1; }
}
@media (max-width: 620px) {
  .topbar { min-height: 64px; gap: .45rem; padding: .55rem .65rem; }
  .brand { gap: .5rem; }
  .brand__mark { width: 2rem; height: 2rem; border-radius: .65rem; font-size: 1.12rem; }
  .brand__copy strong { font-size: .88rem; }
  .brand__copy small { display: none; }
  .topbar__actions { gap: .3rem; }
  .topbar__actions .text-button, .topbar__actions .compact-button, .topbar__actions .primary-button { min-height: 38px; padding: 0 .55rem; font-size: .72rem; }
  .mobile-search { padding: .55rem .75rem; }
  .gallery-main { padding: 1.05rem .75rem 7rem; }
  .gallery-heading { align-items: flex-start; flex-direction: column; margin-bottom: .85rem; }
  .toolbar { width: 100%; justify-content: space-between; }
  .select-field { flex: 1 1 auto; justify-content: space-between; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; }
  .card { border-radius: .9rem; contain-intrinsic-size: 280px; }
  .card__body { gap: .4rem; padding: .65rem; }
  .card__title { font-size: .8rem; }
  .card__meta { display: block; font-size: .69rem; }
  .card__likes { display: block; margin-top: .18rem; }
  .card__role { font-size: .64rem; }
  .detail-modal { align-items: center; padding: .75rem; }
  .detail-panel { grid-template-columns: 1fr; width: min(calc(100% - 1.5rem), 34rem); max-height: 90dvh; border-radius: var(--radius-l); }
  .detail-image-wrap { width: min(76vw, 24rem); min-height: 0; height: min(35dvh, 19rem); margin: .75rem auto 0; border-radius: var(--radius-m); }
  .detail-image { max-height: none; }
  .detail-nav-button { width: 2.5rem; height: 2.5rem; min-height: 2.5rem; }
  .detail-nav-button--prev { left: .45rem; }
  .detail-nav-button--next { right: .45rem; }
  .detail-copy { padding: 1.1rem; }
  .auth-panel { width: 100%; border-radius: var(--radius-l) var(--radius-l) 0 0; }
  .batch-bar { align-items: stretch; flex-direction: column; padding: .7rem; }
  .batch-bar__actions { justify-content: stretch; }
  .batch-bar__actions > * { flex: 1 1 auto; }
  .batch-bar select { max-width: 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; }
}
