:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --well: #212121;
  --panel: #272727;
  --raised: #393939;
  --border: #3d3d3d;
  --ink: #f1f1f1;
  --muted: #aaa;
  --accent: #a8d4ff;
  --deep: #102030;
  --focus: #a8d4ff;
  --radius: 12px;
  --rail-width: 230px;
  --bar-height: 56px;
  --body: Roboto, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
a { color: inherit; text-underline-offset: .21em; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); letter-spacing: -.041em; }
h2 { font-size: clamp(1.1rem, 2.1vw, 1.38rem); letter-spacing: -.022em; }
h3 { font-size: 1.02rem; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only, .icon-definitions {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 20; padding: 10px; background: var(--accent); color: var(--deep); }
.skip:focus { top: 10px; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
#main { min-height: calc(100vh - var(--bar-height) - 127px); }
.button, button, .chip {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 13px; background: var(--well);
  color: var(--ink); text-decoration: none; font-weight: 620; text-align: center; line-height: 1.35;
}
.button:hover, button:hover, .chip:hover { background: var(--raised); }
.button.accent, button.accent { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.button.accent:hover, button.accent:hover { background: #c5e3ff; }
button[disabled] { opacity: .52; cursor: default; }
input, select, textarea { width: 100%; min-width: 0; background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: #939393; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=file] { padding: 10px; }
textarea { resize: vertical; min-height: 75px; }
form label { display: grid; gap: 4px; font-weight: 580; }
form .checks { display: flex; align-items: center; gap: 7px; }
form .actions { margin-top: 4px; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
details summary { cursor: pointer; color: var(--accent); }
details[open] > summary { margin-bottom: 10px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--border); padding: 14px; border-radius: 9px; }

.header { min-height: var(--bar-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.header nav, .account, .brand, .header-brand { display: flex; align-items: center; gap: 12px; }
.header a, .brand { text-decoration: none; white-space: nowrap; }
.header nav a, .brand > span { color: var(--muted); }
.brand { gap: 8px; }
.brand strong { font-size: 21px; line-height: 1; letter-spacing: -.055em; }
.brand > span { padding-left: 10px; border-left: 1px solid var(--border); font-size: 13px; }
.brand img { padding: 5px; border-radius: 8px; background: #6d4aa6; }
.catalog-shell .header {
  position: sticky; inset: 0 0 auto; z-index: 6; background: var(--bg);
  grid-template-columns: minmax(145px, 1fr) minmax(220px, min(41vw, 640px)) minmax(270px, 1fr);
  gap: clamp(14px, 2.2vw, 34px); border-color: transparent;
}
.header-brand { gap: 16px; }
.icon-button, .account-link:has(.avatar) { padding: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; }
.account { justify-content: flex-end; gap: 9px; }
.account .button { padding: 7px 13px; font-size: 14px; border-radius: 22px; font-weight: 550; }
.account .account-link:has(.avatar) { padding: 0; }
.account .icon { width: 15px; height: 15px; }
.top-search { width: 100%; position: relative; min-width: 0; }
.search { display: flex; height: 40px; border: 1px solid #343434; background: #121212; border-radius: 22px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; padding: 7px 17px; font-size: 16px; background: transparent; border: 0; border-radius: 12px 0 0 12px; outline: none; }
.search button { min-width: 64px; border: 0; border-left: 1px solid #343434; border-radius: 0 22px 22px 0; background: #222; }
.search button:hover { background: var(--raised); }
.search-suggestions, .tile-menu-items, .filter-popover {
  padding: 6px; border: 1px solid #444; border-radius: 12px; background: var(--panel); box-shadow: 0 14px 24px #0c0a1090;
}
.search-suggestions { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 8; }
.suggestion { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; white-space: normal !important; overflow-wrap: anywhere; }
.suggestion:hover, .suggestion:focus-visible { background: var(--raised); }
.suggestion small { color: var(--muted); flex: none; }

.site-layout { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); }
.site-content { min-width: 0; }
.site-content .wrap { width: min(1920px, calc(100% - 48px)); }
.site-rail {
  position: sticky; top: var(--bar-height); grid-column: 1; grid-row: 1; max-height: calc(100dvh - var(--bar-height));
  align-self: start; min-width: 0; padding: 8px 12px 16px; overflow: auto; scrollbar-width: thin;
}
.site-rail nav { display: grid; gap: 0; }
.site-rail nav + nav { border-top: 1px solid #3f3f3f; margin-top: 13px; padding-top: 13px; }
.site-rail nav > p { padding: 5px 12px 8px; color: var(--ink); font-size: 16px; font-weight: 600; }
.site-rail a { position: relative; display: flex; gap: 22px; align-items: center; min-height: 40px; padding: 7px 12px; border-radius: 10px; color: var(--ink); font-size: 14px; text-decoration: none; }
.site-rail a span { white-space: nowrap; }
.site-rail a:hover { background: var(--well); color: var(--ink); }
.site-rail a[aria-current] { background: #272727; color: #fff; font-weight: 650; }
.rail-scrim { display: none; }
.header .icon, .site-rail .icon { width: 23px; height: 23px; }
.site-rail [aria-current] use[href="#icon-home"] { fill: currentColor; }
.catalog-shell .header { padding-inline: 16px 24px; }
.account .app-link { border-color: transparent; background: transparent; }
.account .app-link:hover, .account .publish-link:hover { background: var(--raised); }
.account .publish-link { background: #272727; border: 0; height: 36px; }
.account .account-link:not(:has(.avatar)) { color: #3ea6ff; background: transparent; }
.account .account-link:not(:has(.avatar)):hover { background: #18334b; }
.account .publish-link::before { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; }
.catalog-toolbar .chip { background: #272727; color: var(--ink); font-size: 14px; font-weight: 500; border: 0; border-radius: 8px; }
.catalog-toolbar .chip:hover { background: #404040; }
.catalog-toolbar .chip.active { background: var(--ink); color: var(--bg); }
.catalog-toolbar .chips { gap: 12px; }
.card .card-byline { margin-top: 4px; font-size: 14px; line-height: 1.35; gap: 1px 6px; }
.card-byline > span + span::before { content: "·"; margin-right: 6px; }
.card .tile-type { top: auto; bottom: 8px; left: 8px; }
.card .tile-type.video { display: none; }
.card .tile-type.image { left: auto; right: 8px; }
.card .tile-type.reference { background: #000a; }
.card .reference-art { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 9%; gap: 8px; background: linear-gradient(125deg,#102434,#263552 60%,#482435); color: #fff; }
.reference-art strong { font-size: clamp(16px,6.4cqw,32px); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reference-art small { font-size: 12px; color: #e1e1e1; }
@media (max-width: 1220px) { .header .app-link span { display: none; } }
@media (max-width: 900px) { .site-rail a { gap: 10px; } }
@media (max-width: 720px) { .site-content .wrap { width: calc(100% - 24px); } .account .publish-link::before { display: none; } }
.rail-compact .site-layout { --rail-width: 68px; }
.rail-compact .site-rail { padding-inline: 8px; }
.rail-compact .site-rail a { justify-content: center; }
.rail-compact .site-rail a span, .rail-compact .site-rail nav > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.browse { padding-top: 14px; }
.catalog-intro { display: grid; gap: 6px; margin: 12px 0 15px; }
.catalog-intro h1 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.catalog-intro p { max-width: 60ch; color: var(--muted); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.controls, .chips, .row, .actions, .catalog-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.catalog-toolbar > .chips { min-width: 0; flex-wrap: nowrap; overflow: auto; scrollbar-width: thin; padding: 3px 2px 4px; margin-inline: -2px; }
.catalog-toolbar > .chips a { flex: none; }
.catalog-toolbar > .chips a:focus-visible { outline-offset: -2px; }
.chip { padding: 6px 12px; border-color: transparent; font-size: 13px; overflow-wrap: anywhere; }
.chip.active, .button.active { color: var(--deep); background: var(--accent); border-color: var(--accent); }
.catalog-tools { flex: none; gap: 7px; }
.catalog-tools details { position: relative; }
.catalog-tools summary {
  list-style: none; margin: 0; display: flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted); white-space: nowrap; font-size: 13px; font-weight: 580;
}
.catalog-tools summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-1px) rotate(45deg); }
.catalog-tools summary:hover, .catalog-tools details[open] > summary { background: var(--panel); color: var(--ink); }
.catalog-tools details[open] > summary, .tile-menu[open] > summary { margin-bottom: 0; }
.filter-popover { padding: 13px; min-width: 0; }
.catalog-tools .filter-popover { position: absolute; z-index: 4; inset: calc(100% + 7px) 0 auto auto; width: 210px; }
.catalog-tools .catalog-directory .filter-popover { width: min(340px, calc(100vw - 30px)); }
.browse > .catalog-directory { margin-bottom: 16px; }
.browse > .catalog-directory .filter-popover { max-width: 650px; }
.credit-search { align-items: end; }
.credit-search label { flex: 1 0 125px; min-width: 0; }
.catalog-directory .status:empty, .catalog-directory .chips:empty, .browse > .status:empty { display: none; }
.browse > .status { margin: 0 0 10px; }
.selected-credits { margin-bottom: 14px; }
.result-scopes { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 15px; border-bottom: 1px solid var(--border); }
.result-scopes a { text-decoration: none; padding: 0 1px 7px; color: var(--muted); }
.result-scopes [aria-current] { color: var(--accent); border-bottom: 2px solid currentColor; font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 16px; align-items: start; }
.card { position: relative; min-width: 0; container-type: inline-size; }
.card:has(.tile-menu[open]) { z-index: 3; }
.card-main { display: block; text-decoration: none; }
.card-main:hover h3 { color: var(--accent); }
.tile-cover {
  position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: var(--radius);
  background: #202020; isolation: isolate;
}
.tile-cover img, .tile-cover .placeholder { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .18s ease; }
.tile-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.tile-cover video.playing { opacity: 1; }
.tile-cover > span { z-index: 1; }
.source-shelf { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }
.source-shelf .row { justify-content: space-between; }
.source-shelf .row a { color: var(--accent); font-size: 14px; text-decoration: none; }
.source-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(300px,100%),1fr)); gap: 8px 16px; margin-top: 14px; }
.source-link { display: grid; padding: 14px 16px; border-radius: 10px; background: var(--well); text-decoration: none; overflow-wrap: anywhere; }
.source-link:hover { background: var(--raised); }
.source-link span { color: var(--muted); font-size: 13px; }
.source-preview { display: grid; justify-items: start; align-content: center; gap: 14px; padding: 8%; aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg,#102434,#263552,#482435); }
.source-preview h2 { font-size: clamp(22px,4vw,58px); }
.source-preview small { letter-spacing: .11em; }
.card-main:hover .tile-cover img { transform: scale(1.025); }
.tile-type, .tile-duration { position: absolute; padding: 2px 5px; border-radius: 4px; background: #000b; color: #fff; font-size: 12px; font-weight: 650; line-height: 1.25; }
.tile-type { top: 8px; left: 8px; }
.tile-duration { bottom: 8px; right: 8px; font-variant-numeric: tabular-nums; }
.placeholder { display: grid; place-items: center; min-height: 112px; color: #e2d3fc; background: radial-gradient(ellipse at 80% 30%, #4b365c, #252039 74%); }
.card .placeholder { min-height: 0; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.card-body { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 10px; align-items: start; margin: 11px 32px 0 0; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 11px; font-weight: 750; line-height: 1; }
.tone-0 { background: #523d72; color: #eadcff; }
.tone-1 { background: #624054; color: #ffd5ea; }
.tone-2 { background: #304f51; color: #c9f3ec; }
.tone-3 { background: #484966; color: #e1e3ff; }
.tone-4 { background: #5e4936; color: #ffdfc0; }
.card-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.36; }
.card-copy .small { margin-top: 3px; }
.card-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.card-byline .source-title { color: #ccc; }
.card-license { color: #aaa; }
.tile-menu { position: absolute; z-index: 1; top: calc(56.25cqw + 10px); right: 0; }
.tile-menu summary {
  display: grid; place-items: center; list-style: none; padding: 0; margin: 0; width: 30px; height: 30px;
  border-radius: 50%; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1;
}
.tile-menu summary::-webkit-details-marker, .catalog-tools summary::-webkit-details-marker { display: none; }
.tile-menu summary:hover, .tile-menu[open] > summary { background: var(--panel); color: var(--ink); }
.tile-menu-items { position: absolute; z-index: 2; top: 36px; right: 0; display: grid; gap: 2px; width: 175px; }
.tile-menu-items > :is(a, .row), .tile-menu-items button { width: 100%; }
.tile-menu-items :is(a, button) { display: block; text-align: left; padding: 7px 8px; background: transparent; color: var(--ink); border: 0; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 560; }
.tile-menu-items :is(a, button):hover { background: var(--raised); }
.tile-menu-items .status { width: 100%; font-size: 12px; }
.tile-menu-items .row { gap: 0; }
.match { display: block; margin: 9px 0 0; padding: 8px 11px; border-radius: 8px; background: #272727; color: #e9deff; font-size: 13px; overflow-wrap: anywhere; }
.match:hover { background: #3c2d51; }
.search-grid { grid-template-columns: minmax(0, 1fr); max-width: 960px; gap: 16px; }
.search-grid .card-main { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 14px; }
.search-grid .card-body { margin-top: 5px; }
.search-grid .tile-menu { top: 0; }
.search-grid .match { margin-left: calc(38% + 14px); }

.stack { display: grid; gap: 13px; min-width: 0; }
.empty, .panel { border: 1px solid var(--border); padding: clamp(14px, 1.6vw, 21px); border-radius: var(--radius); background: var(--well); min-width: 0; }
.empty { grid-column: 1/-1; color: var(--muted); }
.tag { color: #d6c5f9; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.small, .muted { color: var(--muted); overflow-wrap: anywhere; }
.small { font-size: 13px; }
.more { margin-top: 17px; }
.breadcrumb { display: inline-block; color: var(--muted); }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 11px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.asset-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.asset-list li { padding: 10px; border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.asset-list [aria-current] { border-color: var(--accent); }
.form-grid, .clip-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status { color: #d5c5f6; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error { color: #ffc1b6; }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.note-time { justify-self: start; font-variant-numeric: tabular-nums; color: var(--accent); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 0 24px; border-top: 1px solid var(--border); margin-top: 42px; color: var(--muted); font-size: 13px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 28%); gap: 21px; align-items: start; padding-top: 20px; }
.player { display: block; width: 100%; max-height: 67vh; border: 0; border-radius: var(--radius); background: #0e0c11; object-fit: contain; }
audio.player { min-height: 65px; padding: 8px; }
.watch-main > :is(video, img, .placeholder) { aspect-ratio: 16/9; }
.watch-heading { display: grid; align-content: start; gap: 7px; min-width: 0; }
.watch-heading h1 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.watch-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.watch-creator { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; text-decoration: none; }
.watch-creator:hover { color: var(--accent); }
.watch-byline .button, .watch-byline button, .watch-byline summary { font-size: 13px; }
.watch-byline details > summary { padding: 3px 1px; }
.watch-byline details[open] { flex-basis: 100%; }
.watch-side .details:has(dt) { font-size: 13px; }
.watch-side .row { row-gap: 5px; }
.audio-stage { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0e0c11; }
.audio-stage .audio-wave { width: 100%; height: clamp(112px, 18vw, 220px); object-fit: cover; }
.audio-stage audio.player { border-radius: 0; }

.standard { padding-top: clamp(23px, 3.3vw, 42px); }
.standard > .panel, .standard > .empty, .standard > .grid, .standard > button, .standard > details, .standard > .actions { margin-top: 16px; }
.standard > .result-scopes { margin: 15px 0; }
.standard > h1 + p { margin-top: 7px; }
.narrow { max-width: 620px; }
.signin-preview { max-width: 820px; margin-top: 18px; }
.demo-accounts, .creator-grid, .collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.demo-accounts .panel { border-color: #504261; background: linear-gradient(142deg, #312842, #231d2e 72%); min-height: 155px; }
.demo-accounts .panel:nth-child(2) { border-color: #46405a; background: linear-gradient(142deg, #2c2a43, #201d30 72%); }
.demo-accounts button { justify-self: start; align-self: end; }
.creator-grid { margin-top: 15px; }
.studio-asset { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.studio-asset-title { display: grid; gap: 1px; min-width: 0; }
.studio-asset-title a, .collection-tile > a { font-weight: 650; }
.studio-asset .button, .collection-item-actions button { padding: 5px 9px; font-size: 12px; }
.visibility { display: inline-flex; justify-self: start; align-items: center; gap: 5px; width: max-content; padding: 2px 7px; border: 1px solid #5b5169; border-radius: 6px; color: #e0d7ec; font-size: 12px; font-weight: 650; }
.visibility.public { border-color: #486f60; background: #233d35; color: #cef0df; }
input[aria-label="Search your uploads"] { flex: 1; min-width: 140px; }
.collection-grid { grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr)); margin: 15px 0; }
.collection-tile { border-top: 2px solid #a88bdf; overflow-wrap: anywhere; }
.collection-item-actions { justify-content: flex-end; margin-top: 7px; }
@media (prefers-reduced-motion: reduce) { .tile-cover img { transition: none; } }
@media (min-width: 1920px) { .grid:not(.search-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1150px) {
  :root { --rail-width: 174px; }
  .header { padding-inline: 16px; }
  .catalog-shell .header { grid-template-columns: minmax(135px, 1fr) minmax(190px, 2fr) minmax(230px, 1fr); gap: 14px; }
  .grid:not(.search-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .catalog-toolbar { flex-wrap: wrap; row-gap: 6px; }
  .catalog-tools { margin-left: auto; }
  .watch, .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .watch-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .catalog-shell .header { grid-template-columns: minmax(165px, 1fr) minmax(180px, 2fr) auto; }
  .catalog-shell .header .app-link { width: 33px; }
  .catalog-shell .header .app-link span { display: none; }
}
@media (max-width: 720px) {
  :root { --bar-height: 101px; }
  body:not(.catalog-shell) .header { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding-block: 8px; }
  body:not(.catalog-shell) .header nav { grid-column: 1/-1; grid-row: 2; flex-wrap: wrap; }
  body:not(.catalog-shell) .brand > span { display: none; }
  .rail-open { overflow: hidden; }
  .catalog-shell .header { min-height: var(--bar-height); grid-template-columns: minmax(0, 1fr) auto; gap: 5px 9px; padding: 7px 13px 8px; }
  .header-brand { gap: 6px; }
  .header-brand .brand { gap: 6px; }
  .header-brand .brand strong { font-size: 19px; }
  .header-brand .brand img { width: 25px; height: 25px; }
  .top-search { grid-column: 1/-1; grid-row: 2; }
  .site-layout { display: block; }
  .site-content .wrap { width: calc(100% - 28px); }
  .site-content { padding-bottom: 58px; }
  .site-rail {
    position: fixed; inset: auto 0 0; z-index: 5; padding: 4px 13px max(4px, env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
  }
  .site-rail nav:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-rail nav:not(:first-child) { display: none; }
  .site-rail a { justify-content: center; flex-direction: column; gap: 2px; padding: 3px; font-size: 11px; }
  .site-rail a .icon { width: 18px; height: 18px; }
  .site-rail a[aria-current]::before { display: none; }
  .rail-open .site-rail {
    inset: var(--bar-height) auto 0 0; z-index: 6; width: min(260px, 84vw); max-height: none; padding: 12px;
    border-top: 0; border-right: 1px solid var(--border);
  }
  .rail-open .site-rail nav { display: grid; }
  .rail-open .site-rail nav:first-child { grid-template-columns: minmax(0, 1fr); }
  .rail-open .site-rail a { justify-content: flex-start; flex-direction: row; gap: 11px; padding: 7px 10px; font-size: 14px; }
  .rail-open .rail-scrim { display: block; position: fixed; z-index: 5; inset: var(--bar-height) 0 0; border: 0; border-radius: 0; background: #09080fb0; }
  .catalog-toolbar { margin-bottom: 12px; }
  .catalog-tools .catalog-directory .filter-popover { inset-inline: auto -74px; }
  .watch { padding-top: 12px; gap: 13px; }
}
@media (max-width: 500px) {
  .account { gap: 5px; }
  .account .button { padding-inline: 8px; }
  .grid:not(.search-grid), .watch-side, .demo-accounts, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 20px; }
  .search-grid .card-main { grid-template-columns: 38% minmax(0, 1fr); gap: 9px; }
  .search-grid .card-body { display: block; margin: 0 28px 0 0; }
  .search-grid .avatar { display: none; }
  .search-grid .match { margin-left: 0; }
  .studio-asset { grid-template-columns: minmax(0, 1fr) auto; }
  .studio-asset .button { grid-column: 2; }
}
@media (max-width: 350px) {
  .account .button { font-size: 12px; }
  .header-brand .brand img { display: none; }
}
