:root {
  --bg: #f5f3ef;
  --panel: #fdfcf9;
  --ink: #262522;
  --muted: #6d6a65;
  --soft: #eae7e1;
  --hairline: #d8d5ce;
  --line: #aaa59b;
  --accent: #8e4a30;
  --accent-bg: #eaded5;
  --shadow: #28221a18;
  color-scheme: light;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
}
:root[data-theme="dark"] {
  --bg: #141618;
  --panel: #1d2023;
  --ink: #f1efea;
  --muted: #a5a8a9;
  --soft: #292d30;
  --hairline: #363a3d;
  --line: #656a6d;
  --accent: #e8c2a1;
  --accent-bg: #3d332c;
  --shadow: #0006;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--panel);
  padding: 9px 14px;
  min-height: 44px;
  min-width: 44px;
  transition:
    background 0.16s,
    color 0.16s;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 10px;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
a:hover {
  color: var(--accent);
}
:where(button, a, input, select, summary, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.4;
}
pre,
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.9;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 200;
  background: var(--panel);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.ui-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
}
.quiet-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.text-button:hover {
  color: var(--ink);
}
.text-button .ui-icon {
  width: 14px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 650;
  min-height: 48px;
}
.primary-button:hover {
  background: var(--accent);
  color: var(--bg);
  filter: brightness(1.1);
}
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px max(32px, calc((100vw - 1536px) / 2));
  height: 82px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.9px;
  text-decoration: none;
  line-height: 1;
}
.brand span {
  font-weight: 350;
}
.brand i {
  font-style: normal;
  font-size: 28px;
  color: var(--accent);
  margin-left: 5px;
}
.top-nav {
  display: flex;
  gap: 10px;
  padding: 0;
}
.top-nav button {
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  padding: 12px;
}
.top-nav button[aria-current="page"] {
  color: var(--ink);
}
.top-nav button[aria-current="page"]:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 12px;
  right: 12px;
  background: var(--accent);
}
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(340px, 30vw);
  background: var(--soft);
  border: 1px solid transparent;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  font-size: 12px;
  outline: 0;
}
.search input::placeholder {
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--accent);
}
.search input:focus-visible {
  outline: 0;
}
.search kbd {
  font: 11px inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}
.header-actions {
  display: flex;
  gap: 0;
}
.workspace {
  max-width: 1600px;
  padding: 0 32px;
  margin: auto;
}
.editorial-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 50px 0 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.editorial-heading h1 {
  font-size: clamp(27px, 3.1vw, 46px);
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.3;
  margin: 0;
}
.editorial-heading h1 em {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--accent);
}
.editorial-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.9;
}
.featured {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 16px;
}
.feature-card {
  position: relative;
  min-width: 0;
}
.feature-open {
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
  border: 0;
  border-radius: 3px;
  display: block;
  overflow: hidden;
  position: relative;
  height: clamp(300px, 32vw, 450px);
}
.feature-open:hover {
  background: transparent;
}
.feature-open > .image-host {
  background: #1b1d1e;
}
.feature-open img {
  object-fit: contain;
  transition:
    transform 0.55s ease,
    opacity 0.2s;
}
.feature-open:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #0b0d10b3);
  pointer-events: none;
}
.feature-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  display: grid;
  gap: 6px;
}
.feature-caption .eyebrow {
  color: #eee9;
  margin: 0;
  font-size: 9px;
}
.feature-caption strong {
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.6px;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feature-caption small {
  color: #fffc;
  font-size: 11px;
}
.feature-caption .feature-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 23px;
}
.feature-number {
  position: absolute;
  left: 18px;
  top: 16px;
  font:
    11px/1 ui-monospace,
    monospace;
  color: #fff;
  background: #13171bd9;
  border: 1px solid #ffffff33;
  border-radius: 30px;
  padding: 8px 12px;
  z-index: 1;
}
.discover-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0 22px;
  margin-bottom: 44px;
}
.discover-bottom > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.discover-bottom > span > span {
  margin: 0 12px;
  opacity: 0.5;
}
.discover-bottom button {
  padding-right: 0;
}
.discover-bottom button > span {
  font-size: 20px;
  margin-left: 12px;
}
.collection-heading {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
  margin: 44px 0 20px;
}
.collection-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}
.collection-heading h2 {
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 0;
}
#result-count {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
  white-space: nowrap;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}
.category-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-shortcuts button {
  min-height: 38px;
  min-width: 48px;
  border-radius: 30px;
  padding: 7px 18px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 12px;
}
.category-shortcuts button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.category-shortcuts button:hover:not([aria-pressed="true"]) {
  background: var(--soft);
  color: var(--ink);
}
#menu {
  white-space: nowrap;
}
.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
}
.collection-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}
.collection-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.collection-tabs button[aria-pressed="true"] {
  color: var(--ink);
}
.collection-tabs button[aria-pressed="true"]:after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
}
.collection-tabs .ui-icon {
  width: 14px;
  height: 14px;
}
.browse-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.browse-actions .ui-icon {
  width: 16px;
}
.filter-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: transparent;
  min-height: 38px;
  font-size: 12px;
  border-color: var(--hairline);
}
.filter-trigger.has-filters {
  background: var(--accent-bg);
  color: var(--accent);
}
#filter-count {
  font-size: 10px;
  font-weight: 600;
}
.role-shortcuts {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 0 18px;
  color: var(--muted);
}
.role-shortcuts > span {
  font-size: 10px;
  margin-right: 4px;
}
.role-shortcuts button {
  font-size: 10px;
  min-height: 32px;
  min-width: 44px;
  border-radius: 4px;
  background: transparent;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.role-shortcuts button[aria-pressed="true"] {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}
.chips:empty {
  display: none;
}
.chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 7px 10px;
  min-height: 38px;
  background: var(--soft);
  border: 0;
}
.chips .ui-icon {
  width: 12px;
  height: 12px;
}
.chips #reset {
  background: transparent;
  text-decoration: underline;
}
.recommendation-section {
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.recommendation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.recommendation-heading h2 {
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 450;
  letter-spacing: -0.7px;
  margin: 6px 0 10px;
}
.recommendation-note,
.recommendation-explainer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.recommendation-note {
  margin: 0;
}
.recommendation-heading > button {
  flex-shrink: 0;
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.recommendation-grid .card {
  position: relative;
  min-width: 0;
}
.recommendation-grid .card-open {
  height: auto;
}
.recommendation-grid .art {
  height: auto;
  aspect-ratio: 1 / 1.04;
}
.recommendation-grid .art > .image-host {
  position: absolute;
  inset: 0;
}
.recommendation-footer {
  display: flex;
  justify-content: center;
  padding: 36px 0 12px;
}
.recommendation-explainer {
  max-width: 640px;
  margin: 12px auto 24px;
}
.recommendation-explainer summary {
  text-align: center;
}
.recommendation-explainer p {
  margin-top: 12px;
}
@media (max-width: 919px) {
  .recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .recommendation-heading {
    gap: 8px;
    align-items: flex-start;
  }
  .recommendation-heading .eyebrow {
    font-size: 8px;
  }
  .recommendation-heading h2 {
    font-size: 22px;
  }
  .recommendation-heading > button {
    padding-inline: 8px;
  }
}
[popover]:popover-open {
  animation: appear 0.18s ease-out;
}
.image-host.loaded img {
  animation: image-reveal 0.22s ease-out;
}
@keyframes image-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.grid {
  position: relative;
  width: 100%;
  min-height: 1px;
}
.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.card-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.card-open:hover {
  background: transparent;
}
.art {
  height: calc(100% - 84px);
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-radius: 4px;
}
.art .image-host {
  background: var(--soft);
}
.card-open .art img {
  object-fit: contain;
  transition:
    opacity 0.2s,
    transform 0.4s ease;
}
.card-body {
  padding: 12px 2px 0;
  height: 84px;
  min-width: 0;
}
.card-kicker {
  font-size: 9px;
  color: var(--muted);
  margin: 0 30px 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
.card h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 26px 4px 0;
}
.card-bottom {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.card-favorite {
  position: absolute;
  right: 0;
  bottom: 36px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 36px;
  min-width: 34px;
  min-height: 36px;
  padding: 9px;
  color: var(--muted);
  z-index: 1;
}
.card-favorite .ui-icon {
  width: 16px;
  height: 16px;
}
.card-favorite[aria-pressed="true"] {
  color: var(--accent);
}
.card-favorite[aria-pressed="true"] svg {
  fill: currentColor;
}
.card-favorite:hover {
  background: var(--soft);
}
.card > .image-retry {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  z-index: 1;
  white-space: nowrap;
}
.match {
  color: var(--accent);
}
.list .card-open {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--hairline);
}
.list .art {
  width: 128px;
  height: 100%;
  flex: none;
}
.list .card-body {
  height: 100%;
  padding-top: 18px;
  flex: 1;
}
.list .card h3 {
  font-size: 17px;
  white-space: normal;
  max-height: 50px;
}
.list .card-kicker {
  font-size: 11px;
  margin-bottom: 8px;
}
.list .card-bottom {
  font-size: 12px;
  margin-top: 10px;
}
.list .card-favorite {
  right: 8px;
  bottom: 12px;
}
.image-host {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.image-host img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.image-host.loaded img {
  opacity: 1;
}
.image-host.loading:after,
.skeleton:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, var(--panel), transparent);
  opacity: 0.3;
  animation: shimmer 1.5s infinite;
}
.image-host.failed {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
  padding: 12px;
}
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
}
.skeleton {
  height: 340px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-radius: 4px;
}
.grid:has(.skeleton) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
#grid[aria-busy="true"] {
  min-height: 100vh;
}
.notice {
  background: var(--accent-bg);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.notice button {
  margin-left: 10px;
}
.no-files {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
#empty {
  text-align: center;
  padding: 60px 16px;
}
#empty > span {
  font-size: 40px;
  color: var(--accent);
}
#empty h3 {
  font-size: 19px;
  margin: 12px 0;
}
#empty p {
  color: var(--muted);
}
#end {
  padding: 30px 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
}
mark {
  background: var(--accent-bg);
  color: var(--ink);
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 11px;
}
.site-footer .brand {
  font-size: 16px;
  color: var(--ink);
}
.site-footer > a:last-child {
  margin-left: auto;
  text-decoration: none;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, 100%);
  background: var(--panel);
  color: var(--ink);
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.2s;
  border-right: 1px solid var(--hairline);
}
.nav-open #sidebar {
  transform: translateX(0);
  visibility: visible;
}
.drawer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 19px;
}
.sidebar-foot {
  padding: 24px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.nav-open {
  overflow: hidden;
}
#nav-shade {
  position: fixed;
  inset: 0;
  background: #0009;
  backdrop-filter: blur(4px);
  z-index: 49;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
#categories {
  padding: 0 16px;
  flex: 1;
}
#categories button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 13px;
  margin: 3px 0;
  color: var(--muted);
}
#categories button:hover {
  background: var(--soft);
  color: var(--ink);
}
#categories button.active {
  background: var(--accent-bg);
  color: var(--accent);
}
#categories svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ncount {
  margin-left: auto;
  font-size: 10px;
}
.nav-group {
  margin-top: 20px !important;
  font-weight: 650;
  color: var(--ink) !important;
}
.nav-group small {
  display: block;
  font-size: 10px;
}
.nav-group .chevron {
  width: 12px !important;
  transform: rotate(-90deg);
}
.nav-group[aria-expanded="true"] .chevron {
  transform: rotate(0);
}
#categories .nav-child {
  padding-left: 28px;
}
.chosen {
  box-shadow: inset 2px 0 var(--accent);
}
#avatar-page {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
}
.avatar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.avatar-models {
  max-width: 100%;
}
.avatar-models button {
  max-width: 100%;
  text-align: left;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-models .ui-icon {
  width: 14px;
}
.avatar-categories {
  margin: 12px 0 0;
}
.avatar-categories button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--accent);
}
#toast {
  position: fixed;
  z-index: 200;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(540px, 90vw);
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 24px var(--shadow);
  font-size: 13px;
}
@keyframes shimmer {
  50% {
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.control-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 12px 40px var(--shadow);
  background: var(--panel);
  color: var(--ink);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  font-size: 13px;
}
.control-menu::backdrop {
  background: transparent;
}
.control-menu button,
.control-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
}
.control-menu button:hover,
.control-menu a:hover {
  background: var(--soft);
}
.control-menu [aria-checked="true"] {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 550;
}
.control-menu [aria-checked="true"]:after {
  content: "✓";
  margin-left: auto;
}
.menu-caption {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 12px 5px;
  margin: 0;
}
.menu-hint {
  margin: 7px 5px 0;
  border-top: 1px solid var(--hairline);
  padding: 12px 7px 5px;
  font-size: 11px;
  color: var(--muted);
}
#filters {
  position: fixed;
  inset: 0 0 0 auto;
  width: 440px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--hairline);
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  box-shadow: -12px 0 60px var(--shadow);
}
#filters[open] {
  display: flex;
  flex-direction: column;
}
#filters::backdrop {
  background: #0006;
  backdrop-filter: blur(3px);
}
body:has(#filters[open]) {
  overflow: hidden;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--hairline);
  gap: 8px;
}
.filter-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.filter-head h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}
.filter-body {
  padding: 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.filter-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.filter-section:last-child {
  border: 0;
}
.filter-section h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 14px;
}
.filter-section h3 > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  margin-left: 8px;
}
.role-search {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 0 12px;
}
.role-search .ui-icon {
  width: 17px;
  color: var(--muted);
}
.role-search input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  outline: none;
}
.role-search:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.role-search input:focus-visible {
  outline: none;
}
.role-choices {
  max-height: 225px;
  overflow-y: auto;
  margin: 10px -5px 0;
  padding: 0 5px;
  overscroll-behavior: contain;
}
.role-choices button,
.filter-rows button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  text-align: left;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
}
.role-choices button > span:first-child,
.filter-rows button > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}
.choice-count {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.choice-check {
  visibility: visible;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
  color: transparent;
  font-size: 0;
  margin-left: auto;
  position: relative;
}
.choice-check:after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}
[aria-pressed="true"] > .choice-check:after {
  opacity: 1;
}
[aria-pressed="true"] > .choice-check {
  visibility: visible;
}
.role-choices button[aria-pressed="true"],
.filter-rows button[aria-pressed="true"] {
  background: var(--accent-bg);
  color: var(--ink);
  border-color: var(--line);
}
.role-choices button:hover,
.filter-rows button:hover {
  background: var(--soft);
}
.filter-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.filter-pills button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12px;
  background: var(--panel);
  border-color: var(--hairline);
  border-radius: 8px;
  text-align: left;
}
.filter-pills .choice-check {
  display: block;
}
.filter-pills button[aria-pressed="true"] {
  background: var(--accent-bg);
  color: var(--ink);
  border-color: var(--accent);
}
.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: var(--panel);
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--panel);
  font-size: 13px;
  font-weight: 550;
  padding: 12px 18px;
  border-radius: 11px;
  min-height: 48px;
}
.primary-button:hover {
  background: var(--accent);
  color: var(--panel);
  filter: brightness(1.1);
}
.choice-empty {
  font-size: 12px;
  padding: 12px;
  color: var(--muted);
}
/* Dialog controls share the gallery palette and touch target sizes. */
.control-menu {
  max-width: calc(100vw - 24px);
}
.filter-head,
.filter-footer {
  background: var(--panel);
}
.filter-footer .primary-button {
  background: var(--accent);
  color: var(--bg);
}
.role-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.role-choices[data-searching="false"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: none;
  overflow: visible;
}
.role-choices[data-searching="false"] > button:first-child {
  grid-column: 1/-1;
}
.role-choices[data-searching="false"] > button {
  min-width: 0;
  gap: 6px;
}
.filter-pills button > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}
.filter-pills .choice-count {
  margin-left: auto;
}
.filter-pills .choice-check {
  margin-left: 0;
}
.filter-rows {
  display: grid;
  gap: 4px;
}
.menu-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline);
}
.menu-section .menu-hint {
  border: 0;
  margin-top: 0;
  padding-top: 2px;
}
select {
  padding-right: 24px;
}
.filter-body {
  min-height: 0;
}
@media (hover: hover) and (pointer: fine) {
  .feature-open:hover img {
    transform: scale(1.035);
  }
  .card-open:hover .art img {
    transform: scale(1.025);
  }
}
@media (max-width: 1100px) {
  .site-header {
    gap: 16px;
    padding-inline: 24px;
  }
  .workspace {
    padding-inline: 24px;
  }
  .top-nav {
    gap: 0;
  }
  .search {
    width: min(280px, 29vw);
  }
  .editorial-heading {
    margin-top: 36px;
  }
  .editorial-note {
    max-width: 220px;
  }
  .featured {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
  .feature-caption {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }
  .category-shortcuts {
    gap: 3px;
  }
  .category-shortcuts button {
    padding: 7px 12px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 124px;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .brand {
    font-size: 19px;
  }
  .brand i {
    font-size: 24px;
  }
  .top-nav {
    margin-left: auto;
  }
  .top-nav button {
    padding: 8px;
    font-size: 12px;
  }
  .header-actions {
    gap: 0;
  }
  .header-actions .icon-button {
    width: 36px;
    min-width: 36px;
    padding: 9px;
  }
  .search {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    margin-top: 6px;
    border-radius: 5px;
  }
  .search input {
    min-height: 40px;
  }
  .search kbd {
    display: none;
  }
  .workspace {
    padding-inline: 16px;
  }
  .editorial-heading {
    display: block;
    margin: 30px 0 20px;
  }
  .editorial-heading h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .editorial-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .editorial-note {
    display: none;
  }
  .featured {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .feature-card:first-child {
    grid-column: 1/-1;
  }
  .feature-open {
    height: 240px;
  }
  .feature-card:first-child .feature-open {
    height: 350px;
  }
  .feature-card:not(:first-child) .feature-caption strong {
    font-size: 18px;
  }
  .feature-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .feature-caption small {
    font-size: 9px;
  }
  .feature-number {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    font-size: 9px;
  }
  .feature-caption .feature-arrow {
    font-size: 18px;
  }
  .feature-caption .eyebrow {
    font-size: 8px;
  }
  .discover-bottom {
    margin-bottom: 28px;
    padding-bottom: 16px;
  }
  .discover-bottom > span {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .discover-bottom > span > span {
    margin: 0 4px;
  }
  .discover-bottom button {
    font-size: 10px;
  }
  .discover-bottom button > span {
    margin-left: 0;
  }
  .collection-heading {
    margin: 28px 0 18px;
  }
  .collection-heading h2 {
    font-size: 23px;
  }
  .category-row {
    gap: 6px;
    padding-bottom: 10px;
  }
  .category-shortcuts {
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
  }
  .category-shortcuts button {
    font-size: 11px;
    min-width: 48px;
    white-space: nowrap;
    padding: 6px 10px;
  }
  .category-row #menu {
    font-size: 10px;
    padding: 6px;
  }
  .category-row #menu .ui-icon {
    width: 11px;
  }
  .browse-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }
  .collection-tabs {
    gap: 14px;
  }
  .collection-tabs button {
    font-size: 11px;
  }
  .collection-tabs .ui-icon {
    width: 13px;
  }
  .browse-actions {
    margin-left: auto;
    gap: 0;
  }
  .browse-actions .quiet-button {
    padding: 8px;
    font-size: 10px;
  }
  .filter-trigger {
    font-size: 11px;
    min-height: 38px;
    padding: 7px 9px;
  }
  .browse-actions .icon-button {
    width: 38px;
    min-width: 38px;
    padding: 10px;
  }
  .role-shortcuts {
    padding: 4px 0 18px;
    gap: 5px;
  }
  .role-shortcuts button {
    font-size: 10px;
    min-height: 36px;
  }
  .card h3 {
    font-size: 12px;
  }
  .card-kicker {
    font-size: 9px;
  }
  .card-bottom {
    font-size: 9px;
  }
  .card-body {
    padding-top: 10px;
  }
  .card-favorite {
    width: 36px;
    min-width: 36px;
    bottom: 35px;
  }
  .list .art {
    width: 110px;
  }
  .list .card h3 {
    font-size: 14px;
  }
  .list .card-kicker,
  .list .card-bottom {
    font-size: 10px;
  }
  .grid:has(.skeleton) {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 10px;
  }
  .site-footer > span {
    display: none;
  }
  #filters {
    width: 100%;
    border: 0;
    border-radius: 0;
  }
  .filter-head {
    padding: 20px;
  }
  .filter-body {
    padding: 0 20px;
  }
  .filter-footer {
    padding: 14px 20px;
  }
  .avatar-models {
    width: 100%;
  }
  .avatar-models button {
    width: 100%;
  }
  .chips button {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 17px;
  }
  .brand i {
    display: none;
  }
  .site-header {
    gap: 6px;
  }
  .top-nav button {
    font-size: 11px;
    padding: 7px;
  }
  .header-actions .icon-button {
    width: 32px;
    min-width: 32px;
  }
  .editorial-heading h1 {
    font-size: 27px;
  }
  .feature-card:first-child .feature-open {
    height: 290px;
  }
  .feature-open {
    height: 195px;
  }
  .feature-caption strong {
    font-size: 21px;
  }
  .feature-card:not(:first-child) .feature-caption strong {
    font-size: 15px;
  }
  .feature-caption small {
    display: none;
  }
  .feature-caption .feature-arrow {
    display: none;
  }
  .browse-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .collection-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .category-shortcuts button {
    padding-inline: 8px;
  }
  .category-row #menu {
    padding: 4px;
  }
  .role-shortcuts > span {
    display: none;
  }
  .site-footer .brand {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body:has(dialog[open]) {
  overflow: hidden;
}

.preferences-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
}
.preferences-body {
  padding: 24px;
}
.preferences-body h3 {
  font-size: 13px;
  margin: 0 0 16px;
}
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 14px;
  min-height: 48px;
}
.preference-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.preference-row input {
  appearance: none;
  flex: 0 0 40px;
  width: 40px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--soft);
  cursor: pointer;
  transition: background .18s ease;
}
.preference-row input::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease;
}
.preference-row input:checked {
  background: var(--ink);
}
.preference-row input:checked::before {
  transform: translateX(16px);
  background: var(--panel);
}
.preference-note,
.data-action p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.preference-note {
  margin: 24px 0 0;
}
.preference-note:empty {
  display: none;
}
.data-action + .data-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.data-action h3 {
  margin-bottom: 8px;
}
.data-action p {
  margin: 0 0 16px;
}
@media (prefers-reduced-motion: reduce) {
  .preference-row input,
  .preference-row input::before {
    transition: none;
  }
}
:root {
  --scroll-thumb: #8e8e8e;
}
:root[data-theme="dark"] {
  --scroll-thumb: #686d70;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  min-height: 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--scroll-thumb);
  background-clip: padding-box;
}
::-webkit-scrollbar-button {
  display: none;
}

.feature-card > .image-retry {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  white-space: nowrap;
}

#collection[data-mode="library"] .collection-heading {
  margin: 24px 0 12px;
}
#collection[data-mode="library"] .collection-heading .eyebrow {
  display: none;
}
#collection[data-mode="library"] .category-row {
  padding-bottom: 10px;
}
#collection[data-mode="library"] .role-shortcuts {
  padding-bottom: 12px;
}
