:root {
  color-scheme: dark;
  --canvas: #000;
  --panel: #181818;
  --raised: #252525;
  --hover: #2b2b2b;
  --edge: #353535;
  --ink: #f2f2f2;
  --muted: #a1a1a1;
  --quiet: #858585;
  --link: #4b9aef;
  --accent: #9552df;
  --nav-width: 220px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  scrollbar-width: thin;
  scrollbar-color: #444 #000;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
body, button, input, select { font-family: Roboto, Arial, sans-serif; letter-spacing: 0; }
button, input, select { font-size: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
button, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid #ab77ed; }
img { display: block; max-width: 100%; }
button, input { min-width: 0; }
button { border: 0; background: none; }
button, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.spicy-vectors { position: absolute; width: 0; height: 0; overflow: hidden; }
.spicy-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.spicy-social-icon { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-catalogue { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 12px; background: white; color: black; border-radius: 4px; }
.skip-catalogue:focus { top: 10px; }
.icon-control { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; padding: 7px; border-radius: 6px; flex: 0 0 auto; }
.icon-control:hover { background: var(--hover); }
.icon-control[aria-pressed="true"] { background: #7f45bc; color: white; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 100; padding: 6px 9px; max-width: 210px; width: max-content; background: #383838; color: white; border: 1px solid #555; border-radius: 4px; font-size: 12px; line-height: 1.4; font-weight: 400; pointer-events: none; }

.community-navigation { position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--nav-width); background: var(--panel); border-right: 1px solid #242424; display: flex; flex-direction: column; }
.navigation-brand { height: 56px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border-bottom: 1px solid #252525; flex: 0 0 auto; }
.navigation-brand .icon-control { width: 30px; padding: 5px; }
.navigation-brand img { width: 140px; height: auto; }
.navigation-links { flex: 1; padding: 9px 7px; overflow: auto; }
.navigation-links a { height: 40px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; font-size: 16px; white-space: nowrap; }
.navigation-links a:hover, .navigation-links a[aria-current="page"] { background: var(--raised); }
.navigation-divider { height: 1px; margin: 10px -7px 9px; background: #272727; }
.navigation-resources { padding: 16px 16px 12px; }
.navigation-socials { display: flex; gap: 19px; align-items: center; margin-bottom: 17px; }
.navigation-socials a { display: flex; align-items: center; }
.navigation-legal { display: flex; flex-wrap: wrap; gap: 9px 10px; font-size: 12px; line-height: 1.35; color: var(--muted); margin-bottom: 15px; }
.navigation-legal a:hover, .community-footer a:hover { color: var(--ink); text-decoration: underline; }
.android-download { display: block; width: 97px; height: 30px; margin-bottom: 15px; }
.navigation-version { font-size: 12px; color: var(--quiet); }
.navigation-account { padding: 10px 16px 13px; border-top: 1px solid #292929; }
.sign-in-control { display: inline-flex; justify-content: center; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 6px; background: #fff; color: #171717; white-space: nowrap; }
.navigation-account .sign-in-control { width: 100%; height: 45px; font-size: 16px; }
.navigation-shade, .filter-shade { position: fixed; inset: 0; background: #0009; border: 0; z-index: 55; }

.character-directory { margin-left: var(--nav-width); min-width: 0; }
.directory-topbar { height: 56px; position: sticky; z-index: 35; top: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 24px 0 16px; background: linear-gradient(180deg, #02162b 0%, #000 98%); }
.mobile-brand { display: none; align-items: center; gap: 6px; margin-right: auto; }
.mobile-brand img { width: 132px; height: auto; }
.premium-control { display: inline-flex; justify-content: center; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 22px; color: #fff; background: linear-gradient(110deg,#9a50e0,#0872f6); font-size: 14px; white-space: nowrap; }
.premium-control:hover { filter: brightness(1.14); }
.locale-button .locale-marker { position: absolute; top: 0; right: 0; padding: 0 3px; border-radius: 3px; background: #282828; color: #fff; font-size: 12px; line-height: 14px; }
.topbar-menu { position: relative; }
.locale-options { position: absolute; z-index: 45; top: 44px; right: 0; min-width: 190px; padding: 5px; background: var(--panel); border: 1px solid var(--edge); border-radius: 7px; box-shadow: 0 8px 24px #0006; }
.locale-options a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 4px; }
.locale-options a:hover { background: var(--hover); }

.directory-workspace { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 18px; padding: 10px 16px 32px; align-items: start; }
.tag-refinement { min-width: 0; position: sticky; top: 66px; height: calc(100dvh - 82px); overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; }
.tag-refinement::-webkit-scrollbar { display: none; }
.refinement-heading { display: none; align-items: center; justify-content: space-between; padding: 0 0 8px; }
.refinement-heading h2 { font-size: 18px; }
.refinement-group { background: var(--panel); border: 1px solid var(--edge); border-radius: 7px; overflow: hidden; flex: 0 0 auto; }
.refinement-group summary { min-height: 34px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: var(--raised); font-size: 13px; line-height: 17px; cursor: pointer; list-style: none; }
.refinement-group summary::-webkit-details-marker { display: none; }
.refinement-group summary .spicy-icon { width: 14px; height: 14px; }
.refinement-group[open] summary .spicy-icon { transform: rotate(90deg); }
.refinement-scroll { max-height: 219px; overflow-y: auto; padding: 8px 8px 6px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.tag-search { width: 100%; height: 36px; padding: 7px 11px; border: 1px solid #444; border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.tag-search::placeholder { color: var(--muted); }
.tag-filter-row { display: flex; align-items: center; min-height: 32px; gap: 7px; padding: 3px 1px; }
.tag-filter-row:hover { background: var(--raised); }
.tag-filter-row label { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; cursor: pointer; line-height: 20px; }
.tag-filter-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="checkbox"] { margin: 0; width: 16px; height: 16px; accent-color: #9850de; cursor: pointer; flex: 0 0 auto; }
.tag-count { font-size: 12px; font-style: italic; color: var(--quiet); }
.exclude-tag { width: 18px; height: 18px; border: 1px solid #454545; border-radius: 4px; padding: 0; color: var(--quiet); display: flex; align-items: center; justify-content: center; }
.exclude-tag .spicy-icon { width: 12px; height: 12px; }
.exclude-tag[aria-pressed="true"] { background: #9a3b4d; color: #fff; border-color: #b55368; }
.feature-options { padding: 4px 7px 6px; }
.feature-option { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; cursor: pointer; }
.feature-option input { margin-top: 3px; }
.feature-option strong { font-size: 14px; font-weight: 600; display: block; }
.feature-option small { display: block; font-size: 12px; line-height: 15px; color: var(--quiet); }
.simple-refinement { display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.simple-refinement label { padding: 6px 2px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.clear-refinements { border: 1px solid var(--edge); border-radius: 5px; padding: 9px 12px; color: var(--muted); }
.clear-refinements:hover { background: var(--raised); color: var(--ink); }

.directory-results { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#character-catalogue { scroll-margin-top: 66px; }
.welcome-promotion { position: relative; display: block; height: 190px; overflow: hidden; border-radius: 10px; background: #151128; }
.welcome-promotion img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.catalogue-toolbar { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.filter-toggle { width: 46px; height: 40px; border: 1px solid #555; border-radius: 6px; }
.catalogue-search { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid #444; border-radius: 6px; }
.catalogue-search input { background: transparent; border: none; color: var(--ink); height: 100%; flex: 1; width: 100%; font-size: 16px; }
.catalogue-search input:focus { outline: none; }
.catalogue-search input::placeholder { color: #858585; }
.catalogue-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.catalogue-search:focus-within { border-color: #a66de3; box-shadow: 0 0 0 1px #a66de3; }
.catalogue-search .search-clear { width: 24px; height: 24px; padding: 2px; }
.nsfw-control { display: flex; align-items: center; gap: 9px; margin-left: auto; cursor: pointer; padding-left: 12px; font-size: 14px; white-space: nowrap; }
.nsfw-control input { appearance: none; width: 42px; height: 24px; border-radius: 20px; background: #777; position: relative; transition: background .15s; }
.nsfw-control input::after { content: ''; display: block; position: absolute; width: 20px; height: 20px; background: #fff; top: 2px; left: 2px; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px #0005; }
.nsfw-control input:checked { background: #9850dd; }
.nsfw-control input:checked::after { transform: translateX(18px); }
.catalogue-sort { height: 38px; max-width: 142px; padding: 0 28px 0 11px; border: 1px solid #444; border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 14px; }
.catalogue-summary { display: flex; align-items: center; gap: 10px; min-height: 26px; flex-wrap: wrap; }
.catalogue-summary p { font-size: 13px; font-weight: 600; }
.applied-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.applied-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 7px; border: 1px solid #7844a9; border-radius: 4px; background: #402653; }
.applied-tag .spicy-icon { width: 12px; height: 12px; }
.character-collection { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.persona-tile { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid #2b2b2b; border-radius: 12px; overflow: hidden; transition: border-color .15s, background .15s; }
.persona-tile:hover { background: #202020; border-color: #555; }
.persona-portrait { aspect-ratio: 1; position: relative; min-width: 0; }
.portrait-open { padding: 0; width: 100%; height: 100%; position: absolute; inset: 0; display: block; }
.portrait-open img { width: 100%; height: 100%; object-fit: cover; }
.portrait-info { position: absolute; top: 6px; right: 7px; width: 28px; height: 28px; border-radius: 50%; background: #0008; color: white; padding: 5px; backdrop-filter: blur(4px); }
.portrait-info .spicy-icon { width: 18px; height: 18px; }
.recommendation-label { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: #9650dc; color: white; min-width: 80px; padding: 6px 12px; border-radius: 3px 3px 0 0; text-align: center; font-size: 13px; line-height: 16px; pointer-events: none; }
.persona-description { padding: 12px 8px 8px; min-width: 0; height: 180px; display: flex; flex-direction: column; gap: 8px; }
.persona-heading { display: flex; justify-content: space-between; gap: 2px; min-width: 0; min-height: 40px; }
.persona-heading-text { min-width: 0; flex: 1; }
.persona-title { font-size: 18px; line-height: 21px; font-weight: 600; }
.persona-title button { display: block; width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.persona-author { display: block; max-width: 100%; text-align: left; color: var(--link); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; }
.persona-save { width: 23px; height: 29px; padding: 3px; color: var(--muted); flex: 0 0 auto; }
.persona-save .spicy-icon { width: 18px; height: 18px; }
.persona-save[aria-pressed="true"] { color: #c898ff; }
.persona-excerpt { font-size: 14px; line-height: 20px; min-height: 40px; max-height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.persona-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; max-height: 36px; overflow: hidden; margin-top: auto; }
.persona-tag, .persona-feature { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; line-height: 15px; padding: 0 4px; border-radius: 3px; background: #343434; white-space: nowrap; }
.persona-tag:hover { background: #6c418b; }
.persona-feature { background: #bd921c; color: #fff; padding: 1px 4px; }
.persona-feature.rulebook { background: #0875cd; }
.persona-feature.image-generation { background: #7f45b6; }
.persona-feature.voice { background: #ad8b23; }
.persona-feature .spicy-icon { width: 12px; height: 12px; }
.persona-statistics { display: flex; align-items: center; justify-content: space-between; gap: 3px; font-size: 12px; line-height: 15px; color: var(--quiet); }
.persona-statistics span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.persona-statistics .spicy-icon { width: 12px; height: 12px; }
.creation-promotion { grid-column: 1/-1; height: 190px; overflow: hidden; border-radius: 10px; }
.creation-promotion img { height: 100%; width: 100%; object-fit: cover; }
.catalogue-empty { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--muted); }
.catalogue-empty h2 { font-size: 21px; color: var(--ink); margin: 12px 0 8px; }
.catalogue-empty button { margin-top: 20px; }
.catalogue-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0 10px; }
.catalogue-pagination button { min-width: 36px; height: 36px; padding: 6px; border-radius: 5px; border: 1px solid transparent; }
.catalogue-pagination button[aria-current="page"] { background: #8543cd; color: #fff; }
.catalogue-pagination button:hover:not(:disabled) { border-color: #674286; }
.catalogue-pagination .spicy-icon { width: 18px; height: 18px; }
.lorebook-invitation { position: relative; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; min-height: 210px; overflow: hidden; display: flex; align-items: center; padding: 26px 30px; }
.lorebook-copy { position: relative; z-index: 1; max-width: 65%; }
.lorebook-invitation h2 { font-size: 27px; line-height: 1.2; font-weight: 600; margin-bottom: 10px; }
.lorebook-invitation p { font-size: 15px; line-height: 1.5; color: #bbb; max-width: 410px; margin-bottom: 18px; }
.lorebook-invitation img { position: absolute; right: 0; bottom: 0; width: 40%; height: 100%; object-fit: cover; object-position: left; }
.solid-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 16px; background: #9650dd; color: white; border-radius: 5px; font-weight: 500; }
.solid-action:hover { background: #aa68eb; }

.community-footer { margin: 28px 16px 0; padding: 28px 0 22px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-columns { display: grid; grid-template-columns: minmax(230px,1.4fr) 1fr .8fr 1fr; gap: 30px; }
.footer-ownership img { width: 150px; height: auto; margin-bottom: 19px; }
.footer-ownership p { margin: 7px 0; font-size: 12px; }
.footer-column h2 { color: var(--ink); font-size: 15px; margin-bottom: 12px; font-weight: 500; }
.footer-column a { display: block; margin-bottom: 6px; }
.footer-social { display: flex !important; align-items: center; gap: 8px; }
.record-statement { text-align: center; font-size: 12px; padding: 28px 0 8px; }

.profile-dialog { max-width: 700px; width: calc(100% - 32px); padding: 0; border: 1px solid #555; border-radius: 10px; background: var(--panel); color: var(--ink); box-shadow: 0 20px 80px #0009; max-height: calc(100dvh - 40px); overflow: auto; }
.profile-dialog::backdrop { background: #000c; backdrop-filter: blur(4px); }
.dialog-dismiss { position: absolute; top: 10px; right: 10px; background: #000a; color: white; z-index: 2; border-radius: 50%; }
.profile-layout { display: grid; grid-template-columns: 44% minmax(0,1fr); }
.profile-image { width: 100%; aspect-ratio: .8; object-fit: cover; height: 100%; }
.profile-copy { min-width: 0; padding: 30px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.profile-copy h2 { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
.profile-copy .profile-author { color: var(--link); font-size: 13px; }
.profile-copy p { line-height: 1.6; font-size: 15px; }
.profile-copy .persona-tags { max-height: none; overflow: visible; margin: 0; }
.profile-copy .solid-action { margin-top: auto; }
.directory-toast { position: fixed; bottom: 20px; left: calc(50% + 110px); transform: translateX(-50%); padding: 11px 16px; background: #29212f; border: 1px solid #795396; color: white; border-radius: 6px; box-shadow: 0 4px 24px #0008; z-index: 100; font-size: 14px; max-width: calc(100% - 32px); text-align: center; }
.saved-view-toggle { font-size: 12px; color: #bf92f0; margin-left: auto; padding: 4px; }
.directory-workspace.filters-hidden { grid-template-columns: minmax(0,1fr); }
.filters-hidden .tag-refinement { display: none; }
body.navigation-collapsed { --nav-width: 64px; }
.navigation-collapsed .navigation-brand { justify-content: center; padding: 0; }
.navigation-collapsed .navigation-brand a, .navigation-collapsed .navigation-links span, .navigation-collapsed .navigation-resources, .navigation-collapsed .navigation-account span { display: none; }
.navigation-collapsed .navigation-links a { justify-content: center; padding: 8px; }
.navigation-collapsed .navigation-account { padding: 10px 7px; }
.navigation-collapsed .directory-toast { left: calc(50% + 32px); }

body.light-appearance { color-scheme: light; --canvas: #fff; --panel: #f4f4f4; --raised: #e8e8e8; --hover: #dedede; --edge: #ccc; --ink: #202020; --muted: #636363; --quiet: #6f6f6f; --link: #126dc9; }
.light-appearance .directory-topbar { background: #fff; }
.light-appearance .navigation-brand img, .light-appearance .mobile-brand img, .light-appearance .footer-ownership img { filter: invert(1) hue-rotate(180deg); }
.light-appearance .persona-tile { border-color: #d3d3d3; }
.light-appearance .persona-tile:hover { background: #eee; }
.light-appearance .persona-tag { background: #ddd; color: #202020; }
.light-appearance .lorebook-invitation p { color: #555; }
.light-appearance .applied-tag { background: #eee4f7; color: #52316b; }

@media (min-width: 1500px) {
  .character-collection { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 1750px) {
  .character-collection { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .welcome-promotion, .creation-promotion { height: 210px; }
}
@media (max-width: 1150px) {
  .directory-workspace { grid-template-columns: 230px minmax(0,1fr); gap: 14px; }
  .character-collection { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nsfw-control { padding-left: 0; }
  .catalogue-search input { font-size: 14px; }
  .footer-columns { grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
  .footer-ownership { grid-column: 1/-1; }
}
@media (max-width: 960px) {
  body:has(.filters-mobile-open) { overflow: hidden; }
  .filter-shade { left: calc(var(--nav-width) + 290px); }
  .directory-workspace { grid-template-columns: minmax(0,1fr); }
  .tag-refinement { position: fixed; z-index: 58; top: 0; left: var(--nav-width); width: 290px; height: 100dvh; background: var(--canvas); padding: 18px 14px; display: none; }
  .directory-workspace.filters-mobile-open .tag-refinement { display: flex; }
  .refinement-heading { display: flex; }
  .refinement-scroll { max-height: 260px; }
  .character-collection { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .welcome-promotion { height: 170px; }
  .directory-topbar { padding-right: 16px; }
  .persona-title { font-size: 16px; }
}
@media (max-width: 700px) {
  body.navigation-is-open { overflow: hidden; }
  .navigation-shade { left: 260px; }
  .filter-shade { left: min(310px,calc(100vw - 28px)); }
  :root { --nav-width: 0px; }
  .community-navigation { width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .navigation-is-open .community-navigation { transform: translateX(0); }
  .navigation-collapsed .community-navigation { width: 260px; }
  .navigation-collapsed .navigation-brand a, .navigation-collapsed .navigation-links span, .navigation-collapsed .navigation-resources, .navigation-collapsed .navigation-account span { display: initial; }
  .navigation-collapsed .navigation-brand { justify-content: flex-start; padding: 0 9px; }
  .navigation-collapsed .navigation-links a { justify-content: flex-start; }
  .navigation-collapsed .navigation-account { padding: 10px 16px; }
  body.navigation-collapsed { --nav-width: 0px; }
  .directory-topbar { height: 56px; padding: 0 10px; gap: 4px; background: var(--panel); border-bottom: 1px solid #282828; }
  .mobile-brand { display: flex; gap: 3px; }
  .mobile-brand .icon-control { width: 30px; height: 34px; padding: 5px; }
  .mobile-brand img { width: 121px; }
  .directory-topbar > .sign-in-control { display: none; }
  .directory-topbar .premium-control { height: 32px; padding: 0 10px; font-size: 12px; gap: 5px; }
  .directory-topbar .premium-control .spicy-icon { width: 17px; height: 17px; }
  .directory-topbar .theme-button { display: none; }
  .directory-topbar .locale-button { width: 30px; padding: 4px; }
  .directory-workspace { gap: 0; padding: 12px 10px 22px; }
  .tag-refinement { left: 0; width: min(310px,calc(100vw - 28px)); }
  .directory-results { gap: 14px; }
  .welcome-promotion { height: 125px; border-radius: 7px; }
  .welcome-promotion img { object-position: center; }
  .catalogue-toolbar { display: grid; grid-template-columns: 40px minmax(0,1fr) 112px; gap: 8px; }
  .filter-toggle { width: 40px; grid-row: 1; }
  .catalogue-search { grid-column: 2/-1; height: 40px; padding: 0 9px; gap: 7px; }
  .catalogue-search input { font-size: 13px; }
  .catalogue-search .spicy-icon { width: 18px; height: 18px; }
  .nsfw-control { grid-column: 1/3; margin: 0; min-height: 36px; }
  .catalogue-sort { grid-column: 3; max-width: 112px; font-size: 13px; width: 112px; padding-left: 9px; padding-right: 20px; height: 36px; }
  .catalogue-summary { min-height: 22px; gap: 7px; }
  .catalogue-summary p { font-size: 12px; }
  .character-collection { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; }
  .persona-tile { border-radius: 9px; }
  .persona-description { height: 177px; padding: 10px 7px 8px; gap: 7px; }
  .persona-title { font-size: 15px; line-height: 20px; }
  .persona-heading { min-height: 36px; }
  .persona-excerpt { font-size: 13px; line-height: 19px; max-height: 38px; min-height: 38px; }
  .persona-statistics { gap: 2px; }
  .persona-statistics .likes-stat { display: none; }
  .recommendation-label { min-width: 73px; padding: 4px 9px; font-size: 12px; }
  .persona-tags { gap: 3px; }
  .persona-tag { padding: 0 3px; }
  .creation-promotion { height: 125px; border-radius: 7px; }
  .lorebook-invitation { min-height: 220px; padding: 22px 18px; }
  .lorebook-copy { max-width: 72%; }
  .lorebook-invitation h2 { font-size: 23px; }
  .lorebook-invitation p { font-size: 13px; line-height: 1.5; }
  .lorebook-invitation img { width: 38%; opacity: .55; }
  .community-footer { margin: 20px 0 0; padding-top: 24px; }
  .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 15px; }
  .footer-ownership { grid-column: 1/-1; }
  .footer-column h2 { font-size: 14px; }
  .footer-column a { font-size: 12px; }
  .record-statement { text-align: left; }
  .directory-toast, .navigation-collapsed .directory-toast { left: 50%; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-image { aspect-ratio: 1.25; height: auto; max-height: 350px; object-position: top; }
  .profile-copy { padding: 20px; }
  .profile-copy h2 { font-size: 23px; }
}
@media (max-width: 350px) {
  .mobile-brand img { width: 102px; }
  .directory-topbar .premium-control { padding: 0 8px; }
  .directory-topbar .locale-button { width: 27px; }
  .welcome-promotion, .creation-promotion { height: 106px; }
  .persona-description { padding-right: 5px; padding-left: 5px; }
  .persona-title { font-size: 14px; }
  .persona-save { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}
