
.prototype-portrait[data-v-2a2b04ce] { width: 100%; height: 100%; background: #e3e3e3;
}
.prototype-portrait .portrait-fallback[data-v-2a2b04ce] {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #e3e3e3;
  color: #8ba3af;
}
.prototype-portrait .portrait-fallback svg[data-v-2a2b04ce] { width: 13px; height: 13px;
}
.prototype-portrait img[data-v-2a2b04ce] { width: 100%; height: 100%; object-fit: cover;
}


.prototype-card[data-v-7d419e4e] {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--prototype-card-width, 228px);
  height: 404px;
  border-radius: 8px;
  background: #fdfdfd;
}
.prototype-card-primary[data-v-7d419e4e] {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}
.prototype-card-primary[data-v-7d419e4e]:focus-visible { outline: 2px solid #bf46f8;
}
.prototype-card-cover[data-v-7d419e4e] {
  position: relative;
  height: 297px;
  overflow: clip;
  border-radius: 8px 8px 0 0;
  background: #e3e3e3;
}
.prototype-card-cover[data-v-7d419e4e]::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 81px;
  background: linear-gradient(transparent, #00000048);
  content: '';
  pointer-events: none;
}
.prototype-card-cover[data-v-7d419e4e]:has(img)::after { background: linear-gradient(transparent, #000c);
}
.prototype-card-desktop-meta[data-v-7d419e4e] {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  padding: 0 9px 7px;
  min-width: 0;
  pointer-events: none;
}
.prototype-card-desktop-meta h3[data-v-7d419e4e] {
  margin: 0 4px 4px;
  overflow: hidden;
  color: #0d0d0d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.prototype-card-cover:has(img) h3[data-v-7d419e4e] { color: #fff;
}
.prototype-card-author[data-v-7d419e4e] {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 4px 5px;
  overflow: hidden;
  color: #a62ddd;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 13px;
  pointer-events: auto;
}
.prototype-card-cover:has(img) .prototype-card-author[data-v-7d419e4e] { color: #e39dff;
}
.prototype-card-author[data-v-7d419e4e]:hover { text-decoration: underline;
}
.prototype-card-tags[data-v-7d419e4e] { display: flex; gap: 7px; overflow: hidden;
}
.prototype-card-tags span[data-v-7d419e4e] {
  display: block;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 4px;
  background: #00000014;
  color: #363636;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 16px;
}
.prototype-card-cover:has(img) .prototype-card-tags span[data-v-7d419e4e] { color: white; background: #ffffff38;
}
.prototype-card-summary[data-v-7d419e4e] {
  position: relative;
  height: 107px;
  padding: 11px 13px 7px;
  border: 1px solid #b9b9b9;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.prototype-card-description[data-v-7d419e4e] {
  display: -webkit-box;
  max-height: 60px;
  overflow: hidden;
  color: #777;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.prototype-card-stats[data-v-7d419e4e] {
  position: absolute;
  inset: auto 13px 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #666;
  font-size: 12px;
}
.prototype-card-chat-count[data-v-7d419e4e], .prototype-card-favorite[data-v-7d419e4e] { display: inline-flex; align-items: center; gap: 4px;
}
.prototype-card-favorite[data-v-7d419e4e] {
  position: relative;
  z-index: 3;
  padding: 2px 4px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #666;
  line-height: 15px;
}
.prototype-card-favorite svg[data-v-7d419e4e] { color: #808080;
}
.prototype-card-favorite:hover svg[data-v-7d419e4e], .prototype-card-favorite.is-favorite svg[data-v-7d419e4e] { color: #e6ae00;
}
.prototype-card-mobile-title[data-v-7d419e4e], .prototype-card-mobile-tags[data-v-7d419e4e] { display: none;
}
.prototype-card-chat[data-v-7d419e4e] {
  position: absolute;
  z-index: 3;
  inset: auto 10px 30px;
  display: grid;
  place-items: center;
  min-height: 41px;
  border-radius: 4px;
  background: #be47f8;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (min-width: 1080px) {
.prototype-card:is(:hover, :focus-within):not(:has(.prototype-card-favorite:is(:hover, :focus-visible), .prototype-card-author:is(:hover, :focus-visible))) .prototype-card-chat[data-v-7d419e4e] {
    opacity: 1;
    pointer-events: auto;
}
.prototype-card:is(:hover, :focus-within):not(:has(.prototype-card-favorite:is(:hover, :focus-visible), .prototype-card-author:is(:hover, :focus-visible))) .prototype-card-summary[data-v-7d419e4e] {
    background: linear-gradient(#eee, #aaa);
}
.prototype-card[data-v-7d419e4e]:is(:hover, :focus-within):not(:has(.prototype-card-favorite:is(:hover, :focus-visible), .prototype-card-author:is(:hover, :focus-visible))) :is(.prototype-card-desktop-meta, .prototype-card-description, .prototype-card-stats) { opacity: 0;
}
}
@media (max-width: 1079px) {
.prototype-card[data-v-7d419e4e] {
    max-width: none;
    height: auto;
    border-radius: 5px;
    background: transparent;
}
.prototype-variant-home[data-v-7d419e4e] { background: #fff; box-shadow: inset 0 0 0 1px #ff2323;
}
.prototype-card-cover[data-v-7d419e4e] { height: auto; aspect-ratio: 126 / 118; border-radius: 5px 5px 0 0;
}
.prototype-card-cover[data-v-7d419e4e]::after, .prototype-card-desktop-meta[data-v-7d419e4e], .prototype-card-stats[data-v-7d419e4e] { display: none;
}
.prototype-card-summary[data-v-7d419e4e] { height: 34px; padding: 4px 4px 0; border: 0;
}
.prototype-variant-home .prototype-card-summary[data-v-7d419e4e] { height: 62px;
}
.prototype-card-mobile-title[data-v-7d419e4e] {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 14px;
}
.prototype-card-description[data-v-7d419e4e] {
    display: block;
    max-width: 100%;
    padding-inline: 2px;
    overflow: hidden;
    color: #303030;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
    font-weight: 400;
    line-height: 9px;
}
.prototype-variant-home .prototype-card-mobile-tags[data-v-7d419e4e] { display: flex; margin: 5px 3px 0; gap: 5px;
}
.prototype-card-mobile-tags span[data-v-7d419e4e] {
    padding: 0 5px;
    border: 1px solid #adadad;
    border-radius: 3px;
    background: #fff;
    color: #141414;
    font-size: 11px;
    line-height: 13px;
}
}


.prototype-catalog[data-v-3f94828e] {
  --prototype-purple: #bf46f8;
  --prototype-blue: #0086ff;
  --prototype-card-width: 228px;
  --prototype-grid-inset: clamp(15px, 2.24vw, 43px);
  min-width: 0;
  color: #141414;
  font-family: Arial, Helvetica, sans-serif;
}
.prototype-mobile[data-v-3f94828e],
.prototype-home-search[data-v-3f94828e],
.prototype-search-cancel[data-v-3f94828e],
.prototype-author-back[data-v-3f94828e] { display: none;
}
.prototype-home-tabs[data-v-3f94828e] {
  display: flex;
  align-items: center;
  gap: clamp(25px, 2.85vw, 55px);
  min-height: 35px;
}
.prototype-home-tabs button[data-v-3f94828e] {
  position: relative;
  min-width: 0;
  padding: 6px 0 9px;
  border: 0;
  background: transparent;
  color: #304450;
  white-space: nowrap;
  font-size: 14px;
  line-height: 18px;
}
.prototype-home-tabs button[aria-pressed="true"][data-v-3f94828e] { color: var(--prototype-purple);
}
.prototype-home-tabs button[aria-pressed="true"][data-v-3f94828e]::after {
  content: '';
  position: absolute;
  inset: auto 0 3px;
  height: 2px;
  background: currentColor;
}
.prototype-catalog-shelf[data-v-3f94828e] { margin-top: 17px; padding: 0 clamp(0px, .7vw, 14px) 32px var(--prototype-grid-inset);
}
.prototype-card-grid[data-v-3f94828e] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 202px), 1fr));
  column-gap: clamp(16px, 1.42vw, 27px);
  row-gap: 30px;
}
.prototype-skeleton[data-v-3f94828e] {
  width: 100%;
  max-width: var(--prototype-card-width);
  height: 404px;
  border-radius: 8px;
  background: #e3e3e3;
  animation: prototype-pulse-3f94828e 1.5s ease-in-out infinite alternate;
}
@keyframes prototype-pulse-3f94828e {
from { opacity: .67;
}
to { opacity: 1;
}
}
.prototype-search[data-v-3f94828e] { display: flex; justify-content: center; padding-top: 3px;
}
.prototype-search-form[data-v-3f94828e] {
  display: flex;
  align-items: center;
  width: 80%;
  min-height: 67px;
  padding: 0 14px 0 clamp(20px, 4vw, 56px);
  border: 1px solid #b7b7b7;
  border-radius: 8px;
  background: #fff;
}
@media (min-width: 1080px) {
.nav-collapsed .prototype-catalog[data-v-3f94828e] { --prototype-grid-inset: clamp(13px, 1.93vw, 37px);
}
.prototype-search-form[data-v-3f94828e] { width: min(80%, 1058px); transform: translateX(min(.6vw, 11px));
}
.prototype-catalog-search .prototype-catalog-shelf[data-v-3f94828e] { padding-inline-start: calc(var(--prototype-grid-inset) + 9px);
}
.prototype-catalog-search .prototype-catalog-shelf[data-v-3f94828e]:has(.prototype-no-result) { padding-inline-start: calc(var(--prototype-grid-inset) + 2px);
}
}
.prototype-search-form[data-v-3f94828e]:focus-within { border-color: #858585;
}
.prototype-search-form input[data-v-3f94828e] {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  border: 0;
  padding: 0;
  outline: none;
  background: transparent;
  color: #252525;
  font-size: 18px;
}
.prototype-search-form input[data-v-3f94828e]::-webkit-search-cancel-button { display: none;
}
.prototype-search-submit[data-v-3f94828e],
.prototype-search-clear[data-v-3f94828e] {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #808080;
}
.prototype-search-clear[data-v-3f94828e] { display: none; width: 31px; height: 35px;
}
.prototype-catalog-search .prototype-catalog-shelf[data-v-3f94828e] { margin-top: 25px;
}
.prototype-no-result[data-v-3f94828e] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.7vw, 71px);
  width: min(100%, 820px);
  margin: 50px auto 0;
  color: #575757;
  text-align: center;
  font-size: 18px;
}
.prototype-no-result[data-v-3f94828e]::before, .prototype-no-result[data-v-3f94828e]::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #b9b9b9;
}
.prototype-hot[data-v-3f94828e] {
  margin: 155px 0 22px 7px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.prototype-state[data-v-3f94828e] {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 25px 12px;
  color: #777;
  text-align: center;
  font-size: 14px;
}
.prototype-author[data-v-3f94828e] { padding: 0 0 0 var(--prototype-grid-inset);
}
.prototype-author-profile[data-v-3f94828e] { display: flex; align-items: center; min-height: 100px; gap: 48px;
}
.prototype-author-profile h1[data-v-3f94828e] { min-width: 0; margin-right: auto; font-size: 20px; letter-spacing: 0; overflow-wrap: anywhere;
}
.prototype-author-avatar[data-v-3f94828e] {
  display: grid;
  flex: 0 0 100px;
  place-items: center;
  height: 100px;
  border-radius: 50%;
  background: #e3e3e3;
  color: #8ba3af;
}
.prototype-author-chats[data-v-3f94828e] {
  padding-inline-end: clamp(25px, 25vw, 460px);
  color: #777;
  white-space: nowrap;
}
.prototype-author-chats strong[data-v-3f94828e] { color: #141414; font-size: 20px;
}
.prototype-author h2[data-v-3f94828e] {
  width: max-content;
  margin: 38px 0 0 34px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  color: var(--prototype-blue);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.prototype-catalog-author .prototype-catalog-shelf[data-v-3f94828e] { margin-top: 31px;
}
@media (max-width: 1079px) {
.prototype-catalog[data-v-3f94828e] {
    --prototype-grid-inset: clamp(13px, 6.5625vw, 36px);
    --prototype-mobile-gap: clamp(14px, 8.4375vw, 40px);
}
.prototype-desktop[data-v-3f94828e] { display: none;
}
.prototype-mobile[data-v-3f94828e] { display: inline;
}
.prototype-catalog-home[data-v-3f94828e] { min-height: calc(100dvh - 50px); background: #ccc;
}
.prototype-catalog-search[data-v-3f94828e], .prototype-catalog-author[data-v-3f94828e] { min-height: 100dvh; background: #fdfdfd;
}
.prototype-home-tabs[data-v-3f94828e] {
    position: sticky;
    z-index: 2;
    top: 0;
    justify-content: flex-end;
    gap: clamp(13px, 8.125vw, 30px);
    height: 32px;
    min-height: 32px;
    padding: 0 13px;
    background: #c1b4b4;
}
.prototype-home-tabs button[data-v-3f94828e] { padding: 4px 0 3px; font-size: 12px;
}
.prototype-home-tabs button[aria-pressed="true"][data-v-3f94828e] { color: var(--prototype-blue); font-size: 14px;
}
.prototype-home-tabs button[aria-pressed="true"][data-v-3f94828e]::after { inset-block-end: 0;
}
.prototype-popular[data-v-3f94828e] { order: 2;
}
.prototype-home-search[data-v-3f94828e] { display: grid; width: 30px; height: 30px; place-items: center; margin-left: 6px; order: 3;
}
.prototype-catalog-shelf[data-v-3f94828e] { margin-top: 14px; padding: 0 var(--prototype-grid-inset) 10px;
}
.prototype-card-grid[data-v-3f94828e] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px var(--prototype-mobile-gap);
}
.prototype-skeleton[data-v-3f94828e] { max-width: none; height: auto; aspect-ratio: 126 / 160; border-radius: 5px; background: #f0dfdf;
}
.prototype-skeleton[data-v-3f94828e]:nth-child(3n + 2) { background: #e7c6c6;
}
.prototype-skeleton[data-v-3f94828e]:nth-child(3n) { background: #b8b8b8;
}
.prototype-search[data-v-3f94828e] {
    position: sticky;
    z-index: 2;
    top: 0;
    justify-content: stretch;
    align-items: center;
    gap: 13px;
    min-height: 53px;
    padding: 8px 11px 10px 8px;
    background: #bd9595;
}
.prototype-search-form[data-v-3f94828e] { flex: 1; width: auto; min-height: 35px; padding: 0 7px 0 21px; border-radius: 28px;
}
.prototype-search-form input[data-v-3f94828e] { min-height: 33px; font-size: 14px;
}
.prototype-search-form input[data-v-3f94828e]::placeholder { color: #391515; text-transform: lowercase;
}
.prototype-search-form input[data-v-3f94828e]:focus::placeholder { color: transparent;
}
.prototype-search-clear[data-v-3f94828e] { display: grid; width: 27px; height: 29px;
}
.prototype-search-submit[data-v-3f94828e] { display: none;
}
.prototype-search-cancel[data-v-3f94828e] { display: block; color: #391515; font-size: 14px; text-transform: lowercase;
}
.prototype-catalog-search .prototype-catalog-shelf[data-v-3f94828e] { margin-top: 16px;
}
.prototype-catalog-search:has(input:focus:placeholder-shown) .prototype-catalog-shelf[data-v-3f94828e] { visibility: hidden;
}
.prototype-catalog-search .prototype-card-grid[data-v-3f94828e], .prototype-catalog-author .prototype-card-grid[data-v-3f94828e] { row-gap: 18px;
}
.prototype-no-result[data-v-3f94828e] { display: block; margin-top: 0; color: #391515; font-size: 14px; text-transform: lowercase;
}
.prototype-no-result[data-v-3f94828e]::before, .prototype-no-result[data-v-3f94828e]::after { display: none;
}
.prototype-hot[data-v-3f94828e] { margin: 23px 0 16px; color: #391515; font-size: 14px; font-weight: 400; text-transform: lowercase;
}
.prototype-author[data-v-3f94828e] { padding: 8px var(--prototype-grid-inset) 0;
}
.prototype-author-back[data-v-3f94828e] { display: grid; width: 33px; height: 31px; margin-left: -12px; place-items: center;
}
.prototype-author-profile[data-v-3f94828e] { flex-wrap: wrap; gap: 10px 17px; min-height: 0; margin-top: 6px;
}
.prototype-author-avatar[data-v-3f94828e] { flex-basis: 57px; height: 57px;
}
.prototype-author-profile h1[data-v-3f94828e] { font-size: 14px; font-weight: 400; color: #391515;
}
.prototype-author-chats[data-v-3f94828e] { flex: 0 0 100%; padding: 2px 0 0; font-size: 16px;
}
.prototype-author h2[data-v-3f94828e] { margin: 12px 0 0; text-transform: lowercase;
}
.prototype-catalog-author .prototype-catalog-shelf[data-v-3f94828e] { margin-top: 29px;
}
}
@media (prefers-reduced-motion: reduce) {
.prototype-skeleton[data-v-3f94828e] { animation: none;
}
}

:root {
  color-scheme: dark;
  --background: #101016;
  --surface: #171720;
  --surface-raised: #20202b;
  --line: #2b2a37;
  --text: #f7f5fb;
  --muted: #adabba;
  --violet: #a98cfa;
  --violet-strong: #9976f4;
  --accent-text: #140828;
  --error: #feb2be;
  --sidebar: 223px;
  --topbar: 65px;
  --bottom-nav: 66px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.037em; }
svg { flex-shrink: 0; }
::selection { color: #fff; background: #6338ab; }
:focus-visible { outline: 2px solid #c5aaff; outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; font-weight: 650; transition: background-color .16s ease, border-color .16s ease; }
.button { min-height: 43px; padding: 8px 15px; text-align: center; }
.button-primary { background: var(--violet); color: var(--accent-text); }
.button-primary:not(:disabled):hover { background: #c4aaff; }
.button-secondary { background: var(--surface-raised); border-color: var(--line); color: var(--text); }
.button-secondary:not(:disabled):hover, .icon-button:not(:disabled):hover { background: #30303b; }
.button-danger { background: #a32e47; color: #fff; }
.button-danger:not(:disabled):hover { background: #bd3955; }
.icon-button { width: 40px; min-width: 40px; height: 40px; padding: 0; background: transparent; color: var(--muted); }
.text-button { display: inline; border: 0; padding: 0; background: transparent; color: #c3aaff; text-underline-offset: 3px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-weight: 630; }
.back-link:hover { color: var(--text); }

.application { min-height: 100vh; }
.application.nav-collapsed { --sidebar: 80px; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 0 14px 17px; background: #12121a; border-right: 1px solid #242431; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 15px; letter-spacing: -.023em; }
.brand strong { font-weight: 770; }
.brand-logo { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #c1a7fd; border-radius: 11px; background: linear-gradient(145deg, #c09cff, #8862e5); color: #1a0f32; box-shadow: 0 3px 16px #9e6df738; }
.collapse-button { width: 34px; min-width: 34px; height: 34px; }
.nav-list { display: grid; gap: 6px; margin-top: 21px; }
.nav-list a { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--muted); border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 620; }
.nav-list a:hover { color: var(--text); background: #1c1b26; }
.nav-list a[aria-current="page"] { color: #d2bfff; background: #271f38; border-color: #392d50; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #252430; padding-top: 13px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; background: #35254c; border: 1px solid #4a385f; border-radius: 50%; color: #e3d5ff; font-size: 13px; font-weight: 720; }
.nav-collapsed .sidebar { padding-inline: 12px; }
.nav-collapsed .nav-list a span { display: none; }
.nav-collapsed .nav-list a { justify-content: center; padding-inline: 0; }
.main-frame { margin-left: var(--sidebar); min-width: 0; }
.topbar { z-index: 4; position: sticky; top: 0; height: var(--topbar); padding: 0 clamp(22px, 3.2vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #252430; background: #101016f5; backdrop-filter: blur(16px); }
.top-actions, .language-control { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.top-actions { gap: 12px; }
.top-auth { min-height: 36px; font-size: 13px; padding: 5px 13px; }
.language-control { position: relative; gap: 4px; min-height: 38px; color: var(--muted); font-size: 13px; }
.language-control select, .age-language select { border: 0; padding: 5px 0; background: transparent; color: inherit; }
.language-control option, .age-language option { color: var(--text); background: var(--surface); }
.bottom-nav { display: none; }

.content-width { width: min(100%, 1390px); margin-inline: auto; padding: 30px clamp(22px, 3.2vw, 44px) 46px; }

.catalog-shelf { scroll-margin-top: calc(var(--topbar) + 16px); margin-top: 31px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { font-size: clamp(22px, 2.35vw, 32px); }
.section-heading p, .page-intro { margin-top: 5px; color: var(--muted); font-size: 14px; }
.heading-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; border: 1px solid #47365c; background: #251e34; color: #c4a9fa; }
.filters { display: flex; align-items: center; gap: 8px; margin: 18px 0; overflow-x: auto; scrollbar-width: thin; padding: 3px; margin-inline: -3px; }
.filter { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 5px 13px; background: #181821; border: 1px solid #2d2b38; border-radius: 99px; color: var(--muted); font-size: 12px; font-weight: 650; }
.filter:hover { color: var(--text); border-color: #5b477a; }
.filter.active { color: #e0d2ff; background: #2d2141; border-color: #584276; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.section-heading + .card-grid, .section-heading + .empty-state { margin-top: 23px; }
.character-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s ease; }
.character-card:hover, .character-card:focus-within { border-color: #70548e; transform: translateY(-2px); }
.card-detail { display: block; height: 100%; }
.card-detail:focus-visible { outline-offset: -3px; }
.character-portrait { width: 100%; height: 100%; overflow: hidden; background: #302441; }
.character-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #d0bff1; background: radial-gradient(circle at 55% 25%, #60447f, #241a31 75%); }
.portrait-fallback svg { width: 31%; height: 31%; }
[data-color="amber"] .portrait-fallback { background: radial-gradient(circle at 55% 25%, #7b5636, #2f1f1d 75%); }
[data-color="rose"] .portrait-fallback { background: radial-gradient(circle at 55% 25%, #774659, #291b28 75%); }
[data-color="teal"] .portrait-fallback { background: radial-gradient(circle at 55% 25%, #366b71, #182431 75%); }
.card-image { position: relative; overflow: hidden; aspect-ratio: 1.27; }
.card-image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, #0d091740, transparent 32%); pointer-events: none; }
.card-image img { transition: transform .28s ease; }
.character-card:hover .card-image img { transform: scale(1.045); }
.tag { display: inline-flex; align-items: center; width: max-content; max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; min-height: 22px; padding: 3px 8px; border: 1px solid #6a5377; border-radius: 6px; background: #251a33; color: #e2d2fd; font-size: 10px; font-weight: 720; }
.card-tag { position: absolute; z-index: 1; top: 9px; left: 9px; background: #17111cde; border-color: #ffffff43; backdrop-filter: blur(8px); }
.card-open { position: absolute; z-index: 1; top: 9px; right: 9px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #ffffff43; background: #17111cde; border-radius: 8px; }
.card-copy { min-height: 99px; padding: 12px 40px 13px 12px; }
.card-copy h3 { margin-bottom: 5px; font-size: clamp(14px, 1.45vw, 18px); overflow-wrap: anywhere; }
.card-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.card-chat { position: absolute; right: 9px; bottom: 11px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #493660; background: #2b203c; color: #d7c0ff; border-radius: 8px; }
.card-chat:hover { background: #564078; }
.card-skeleton { min-height: 225px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg, #1b1a24 20%, #262533 50%, #1b1a24 80%); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { display: grid; justify-items: center; gap: 12px; padding: 36px 18px; text-align: center; border: 1px solid var(--line); background: #171720; color: var(--muted); border-radius: 15px; }
.empty-state > svg { color: #c0a2f5; }
.empty-state p { max-width: 420px; }
.search-heading h1, .simple-view h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 8px; }
.search-form { display: flex; align-items: center; gap: 9px; width: min(100%, 668px); margin-top: 20px; padding: 3px 10px; border: 1px solid #514266; border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-form:focus-within { border-color: var(--violet); }
.search-form input { width: 100%; min-width: 0; min-height: 42px; background: transparent; border: 0; outline: none; color: var(--text); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form .icon-button { width: 33px; min-width: 33px; height: 33px; }

.character-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; max-width: 1000px; margin: 0 auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.character-detail > .character-portrait { min-height: 365px; }
.detail-content { display: grid; gap: 14px; justify-items: start; align-content: center; padding: clamp(22px, 4.4vw, 54px); min-width: 0; }
.detail-content h1 { font-size: clamp(30px, 5vw, 58px); overflow-wrap: anywhere; }
.byline { color: var(--muted); font-size: 13px; }
.character-description { color: #e1dde9; white-space: pre-wrap; overflow-wrap: anywhere; }
.greeting { width: 100%; padding: 13px 15px; border-left: 2px solid #9b79e6; background: #211b2d; border-radius: 6px; }
.greeting h2 { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 13px; color: #cbb7f1; letter-spacing: 0; }
.greeting p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.simple-view { max-width: 910px; }
.simple-view .empty-state, .account-panel, .conversation-list { margin-top: 27px; }
.conversation-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.conversation-list a { display: flex; align-items: center; gap: 13px; padding: 10px 15px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.conversation-list a:hover { border-color: #6e5390; }
.conversation-list .character-portrait { width: 48px; height: 48px; flex-shrink: 0; border-radius: 9px; }
.conversation-list a > span { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.conversation-list small, .conversation-list svg { color: var(--muted); }
.account-panel { display: grid; justify-items: start; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.account-email { overflow-wrap: anywhere; }
.account-panel label, .auth-form label { display: grid; gap: 6px; color: #e7e2ee; font-size: 13px; font-weight: 620; }
.account-panel select, .auth-form input { width: 100%; min-width: 0; min-height: 41px; padding: 7px 10px; border-radius: 8px; border: 1px solid #363543; background: #16151e; color: var(--text); }

.chat-route .topbar { position: relative; }
.chat-layout { display: grid; height: calc(100dvh - var(--topbar)); grid-template-columns: minmax(0, 1fr); }
.chat-layout.show-profile:has(.profile-panel) { grid-template-columns: minmax(0, 1fr) minmax(245px, 30%); }
.chat-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 11px clamp(13px, 2.7vw, 30px); border-bottom: 1px solid var(--line); background: #13131c; }
.chat-identity { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; background: transparent; border: 0; color: var(--text); text-align: left; padding: 0; }
.chat-identity .character-portrait { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; }
.chat-identity > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.chat-identity small { font-size: 11px; color: var(--muted); }
.chat-actions { position: relative; }
.chat-action-menu { position: absolute; z-index: 2; top: calc(100% + 6px); right: 0; width: max-content; max-width: min(290px, calc(100vw - 29px)); padding: 5px; background: #211f2c; border: 1px solid #3e394d; border-radius: 10px; box-shadow: 0 9px 23px #0007; }
.chat-action-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; text-align: start; font-size: 13px; }
.chat-action-menu button:hover { background: #333042; }
.message-scroll { min-height: 0; overflow-y: auto; padding: 22px clamp(12px, 2.7vw, 32px); }
.messages { display: flex; flex-direction: column; gap: 17px; margin: 0 auto; max-width: 760px; padding: 0; list-style: none; }
.message { display: grid; min-width: 0; max-width: min(87%, 570px); align-self: flex-start; }
.message.from-user { align-self: flex-end; }
.message .speaker { padding-inline: 2px; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.from-user .speaker { text-align: end; }
.message > div { padding: 10px 13px; border-radius: 7px 13px 13px 13px; border: 1px solid #302f3e; background: #1b1a26; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.from-user > div { border-radius: 13px 7px 13px 13px; background: #2c2140; border-color: #433257; }
.message > .typing { display: flex; align-items: center; gap: 4px; width: max-content; min-height: 37px; }
.typing i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #c5a8ef; animation: typing 1.15s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .12s; }
.typing i:nth-child(3) { animation-delay: .24s; }
@keyframes typing { 50% { opacity: .36; transform: translateY(-2px); } }
.empty-messages { display: grid; place-items: center; gap: 9px; margin-top: 18px; text-align: center; color: var(--muted); }
.composer-area { max-width: 850px; width: 100%; margin: 0 auto; padding: 7px clamp(12px, 2.7vw, 32px) 9px; background: var(--background); }
.composer { display: flex; align-items: end; gap: 8px; border: 1px solid #454052; border-radius: 13px; padding: 6px; background: #1b1a26; }
.composer:focus-within { border-color: var(--violet); }
.composer textarea { flex: 1; min-width: 0; min-height: 39px; max-height: 119px; padding: 8px; color: var(--text); background: none; border: 0; resize: vertical; outline: 0; line-height: 1.4; }
.send-button { width: 36px; min-height: 36px; padding: 0; }
.ai-notice { margin-top: 5px; text-align: center; font-size: 11px; color: var(--muted); }
.chat-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.profile-panel { overflow: auto; border-left: 1px solid var(--line); background: #15151d; }
.profile-panel > .character-portrait { height: auto; aspect-ratio: 1 / 1.06; }
.profile-copy { display: grid; justify-items: start; gap: 9px; padding: 17px 20px; }
.profile-copy h2 { font-size: 25px; }
.profile-copy p { color: var(--muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-dialog-portrait { height: 145px; overflow: hidden; border-radius: 10px; }

.dialog { width: min(calc(100vw - 29px), 440px); max-height: 92dvh; padding: 26px; border: 1px solid #493b5c; border-radius: 17px; background: #1b1824; color: var(--text); box-shadow: 0 22px 95px #050309b5; }
.dialog::backdrop { background: #07060bc2; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 11px; right: 11px; }
.dialog-symbol { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 16px; color: #d5b9ff; border: 1px solid #654983; border-radius: 12px; background: #35244c; }
.dialog h1 { font-size: clamp(23px, 5vw, 32px); margin-bottom: 8px; padding-right: 17px; }
.dialog > p { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.dialog > .button { margin-top: 12px; }
.age-screen { min-height: 100dvh; background: radial-gradient(ellipse at 60% 48%, #322046, #100f17 69%), #100f17; }
.age-actions, .auth-form { display: grid; gap: 9px; margin-top: 18px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.age-language { color: var(--muted); display: flex; align-items: center; gap: 5px; justify-content: center; margin-top: 12px; font-size: 12px; }
.auth-form small { color: var(--muted); font-size: 12px; }
.auth-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.auth-code .button { min-height: 41px; font-size: 13px; }
.auth-switch { margin: 15px 0 0 !important; text-align: center; }
.notice { padding: 8px 10px; border: 1px solid #5f487a; border-radius: 8px; color: #e0d2ff; background: #2c223b; font-size: 13px; }
.notice.error { border-color: #6d3949; color: var(--error); background: #321f2a; }

@media (max-width: 1079px) {
  :root { --topbar: 58px; }
  .sidebar { display: none; }
  .main-frame { margin-left: 0; padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .topbar { padding-inline: clamp(13px, 3.4vw, 30px); }
  .bottom-nav { display: grid; position: fixed; z-index: 5; inset: auto 0 0; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: #15151eec; border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .bottom-nav a { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 3px; color: var(--muted); font-size: 11px; border-radius: 8px; text-align: center; }
  .bottom-nav a[aria-current="page"] { color: #d5bcff; background: #282039; }
  .bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-route .topbar, .chat-route .bottom-nav, .profile-toggle, .profile-panel { display: none; }
  .chat-route .main-frame { padding-bottom: 0; }
  .chat-layout, .chat-layout.show-profile:has(.profile-panel) { height: 100dvh; grid-template-columns: minmax(0, 1fr); }
  .composer-area { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
}

@media (max-width: 630px) {
  .top-actions { gap: 5px; }
  .top-search { display: none; }
  .brand { gap: 6px; font-size: 13px; }
  .brand-logo { width: 31px; height: 31px; border-radius: 9px; }
  .language-control { gap: 3px; font-size: 12px; }
  .language-control svg { display: none; }
  .top-auth { padding-inline: 8px; font-size: 12px; }
  .content-width { padding: 15px 12px 25px; }
  .catalog-shelf { margin-top: 23px; }
  .section-heading { gap: 9px; }
  .section-heading p { font-size: 12px; }
  .heading-mark { width: 35px; height: 35px; border-radius: 8px; }
  .heading-mark svg { width: 19px; }
  .filters { margin-block: 11px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .character-card { border-radius: 11px; }
  .card-image { aspect-ratio: 1.14; }
  .card-tag { top: 7px; left: 7px; }
  .card-open { top: 7px; right: 7px; width: 24px; height: 24px; }
  .card-copy { min-height: 88px; padding: 9px 31px 10px 9px; }
  .card-copy p { font-size: 11px; }
  .card-chat { width: 26px; height: 26px; right: 6px; bottom: 8px; }
  .card-chat svg { width: 15px; }
  .card-skeleton { min-height: 155px; }
  .character-detail { grid-template-columns: minmax(0, 1fr); }
  .character-detail > .character-portrait { min-height: 0; height: min(70vw, 310px); }
  .detail-content { gap: 11px; padding: 18px; }
  .dialog { padding: 21px; }
  .chat-header { gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 9px 8px; }
  .chat-header .icon-button { width: 35px; min-width: 35px; }
  .chat-identity .character-portrait { width: 38px; height: 38px; }
}

@media (max-width: 350px) {
  .top-actions { gap: 3px; }
  .brand-logo { width: 27px; height: 27px; }
  .brand-logo svg { width: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.card-desktop-meta,
.card-chat-label,
.catalog-search-submit {
  display: none;
}

@media (min-width: 1080px) {
  :root {
    color-scheme: light;
    --background: #fff;
    --surface: #fff;
    --surface-raised: #f6f4f7;
    --line: #e2dde5;
    --text: #1c1720;
    --muted: #625968;
    --violet: #9d33dd;
    --accent-text: #fff;
    --error: #9c2445;
    --topbar: clamp(96px, 7.8vw, 150px);
    --sidebar: clamp(165px, 13vw, 250px);
    --desktop-gutter: max(6.9vw, calc((100vw - 1654px) / 2));
    --sidebar-gap: clamp(27px, 4.1vw, 78px);
  }

  h1, h2, h3 { letter-spacing: -.02em; }
  :focus-visible { outline-color: var(--violet); }
  .application.nav-collapsed { --sidebar: 54px; --sidebar-gap: 20px; }
  .application { background: var(--background); }
  .main-frame {
    margin-left: calc(var(--desktop-gutter) + var(--sidebar) + var(--sidebar-gap));
    margin-right: var(--desktop-gutter);
  }
  .topbar {
    width: calc(100% + var(--sidebar) + var(--sidebar-gap));
    margin-left: calc(-1 * (var(--sidebar) + var(--sidebar-gap)));
    padding: 0 16px 0 8px;
    background: var(--background);
    border: 0;
    backdrop-filter: none;
  }
  .header-brand { gap: clamp(13px, 2vw, 34px); font-size: clamp(21px, 1.57vw, 30px); }
  .header-brand .brand-logo {
    width: clamp(49px, 4vw, 77px);
    height: clamp(49px, 4vw, 77px);
    color: var(--violet);
    border-color: #e9ccf7;
    background: #f9eefc;
    box-shadow: none;
  }
  .header-brand .brand-logo svg { width: 45%; height: 45%; }
  .header-brand strong { font-weight: 630; }
  .top-actions { gap: clamp(18px, 4.2vw, 78px); }
  .top-actions .top-search { display: none; }
  .top-auth { min-width: clamp(119px, 10.3vw, 198px); min-height: 42px; border-radius: 100px; font-size: 15px; }
  .language-control { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--violet); }
  .avatar { background: #f1e2f8; color: #70268e; }

  .sidebar {
    inset: var(--topbar) auto 0 var(--desktop-gutter);
    background: var(--background);
    padding: 0 0 26px;
    border: 0;
  }
  .sidebar .nav-list { margin: 0; gap: 0; }
  .sidebar .nav-list a {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-right: 3px solid transparent;
    border-radius: 0;
    color: #374652;
    font-weight: 520;
  }
  .sidebar .nav-list a:hover { background: #f7f3f9; }
  .sidebar .nav-list a[aria-current="page"] { background: #f4e8f9; border-right-color: var(--violet); color: var(--violet); }
  .nav-collapsed .sidebar .nav-list a { padding: 0; }
  .sidebar-bottom { display: flex; justify-content: flex-end; border: 0; padding: 0 8px; }
  .nav-collapsed .sidebar-bottom { justify-content: center; padding: 0; }
  .sidebar-bottom .collapse-button { color: #625968; }

  .content-width { width: 100%; padding: 0 0 36px; }
  .catalog-view .section-heading,
  .search-page-heading h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .catalog-shelf { margin-top: 0; }
  .catalog-view .filters { gap: clamp(14px, 2vw, 38px); min-height: 40px; margin: 0 0 13px; padding: 2px 0; }
  .catalog-view .filter {
    padding: 0 2px;
    min-height: 30px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #374652;
    font-size: 14px;
    font-weight: 510;
  }
  .catalog-view .filter svg { display: none; }
  .catalog-view .filter:is(.active, :hover) { border-bottom-color: var(--violet); color: var(--violet); }
  .catalog-view .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 27px); padding-inline: clamp(14px, 2.2vw, 42px); }
  .character-card { border-color: #ded8e1; border-radius: 8px; }
  .character-card:hover, .character-card:focus-within { transform: none; border-color: #b492cb; }
  .card-image { aspect-ratio: .77; background: #eeeaef; }
  .card-image::after { background: linear-gradient(0deg, #180b1acb 0%, #180b1a75 16%, transparent 41%); }
  .character-card:hover .card-image img { transform: none; }
  .card-open, .card-image > .card-tag, .card-copy h3 { display: none; }
  .card-desktop-meta { display: grid; position: absolute; z-index: 1; inset: auto 0 0; gap: 4px; padding: 12px; min-width: 0; color: #fff; }
  .card-desktop-meta h3 { overflow-wrap: anywhere; font-size: clamp(14px, 1.04vw, 19px); }
  .card-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0ccff; font-size: 12px; }
  .card-desktop-meta .tag { border: 0; border-radius: 4px; background: #ffffff30; color: #fff; }
  .card-copy { min-height: 98px; padding: 11px 12px 19px; }
  .card-copy p { -webkit-line-clamp: 3; font-size: 13px; }
  .card-chat {
    inset: auto 9px 9px;
    width: auto;
    height: 38px;
    border: 0;
    border-radius: 5px;
    background: var(--violet);
    color: #fff;
    opacity: 0;
    box-shadow: 0 0 16px 16px #fffffff0;
    transition: opacity .14s ease;
  }
  .character-card:is(:hover, :focus-within) .card-chat { opacity: 1; }
  .card-chat:hover { background: #8422bd; }
  .card-chat > svg { display: none; }
  .card-chat-label { display: inline; font-size: 13px; font-weight: 630; }
  .card-skeleton { min-height: 270px; background: #f4f1f5; }

  .search-page-heading { margin-bottom: 24px; }
  .search-page-heading .search-form { margin: 0 auto; width: min(86%, 1060px); min-height: 53px; border-color: #c9c3cc; border-radius: 8px; padding-inline: 17px; }
  .search-page-heading .search-form:focus-within { border-color: var(--violet); }
  .catalog-search-mobile-icon { display: none; }
  .catalog-search-submit { display: inline-flex; }

  .button-primary:not(:disabled):hover { background: #8422bd; }
  .button-secondary:not(:disabled):hover, .icon-button:not(:disabled):hover { background: #eee9f2; }
  .text-button { color: #8526b3; }
  .empty-state { background: #faf8fb; }
  .character-description, .greeting h2, .account-panel label, .auth-form label { color: var(--text); }
  .greeting { background: #f8f1fa; }
  .account-panel select, .auth-form input { background: #fff; border-color: var(--line); }
  .tag { background: #f3eaf8; border-color: #ead7f4; color: #682089; }
  .dialog { background: #fff; border-color: var(--line); box-shadow: 0 18px 70px #2d1b364f; }
  .dialog::backdrop { background: #27202b59; backdrop-filter: none; }
  .dialog-symbol { color: #8526b3; background: #f6e8fb; border-color: #efdcf7; }
  .age-screen { background: #eae7eb; }
  .notice { background: #f6ecfa; color: #682089; border-color: #e9d0f5; }
  .notice.error { background: #fff0f4; color: var(--error); border-color: #f1bfcf; }

  .chat-layout { height: calc(100dvh - var(--topbar) - 23px); min-height: 430px; }
  .chat-layout.show-profile:has(.profile-panel) { grid-template-columns: minmax(0, 1fr) minmax(178px, 23%); }
  .chat-layout.has-history { grid-template-columns: minmax(190px, 23%) minmax(0, 1fr); }
  .chat-layout.has-history.show-profile:has(.profile-panel) { grid-template-columns: minmax(190px, 23%) minmax(0, 1fr) minmax(178px, 18%); }
  .chat-history-panel { min-width: 0; margin-right: clamp(10px, 1.1vw, 22px); overflow: auto; border: 1px solid var(--line); }
  .chat-history-list { padding: 14px; }
  .chat-history-list h1 { font-size: 17px; }
  .chat-history-list .conversation-list { margin: 14px 0 0; gap: 7px; }
  .chat-history-list .conversation-list a { padding: 8px; border-color: transparent; border-radius: 8px; }
  .chat-history-list .conversation-list a:hover { background: #f4f0f7; }
  .chat-history-list .conversation-list a[aria-current="page"] { background: #f1e3fa; }
  .chat-history-list .conversation-list .character-portrait { height: 38px; width: 38px; border-radius: 50%; }
  .chat-history-list .conversation-list a > svg { width: 13px; }
  .chat-main { border: 1px solid var(--line); background: #fff; }
  .chat-header { min-height: 78px; background: #f3eff5; }
  .chat-identity .character-portrait { border-radius: 50%; }
  .chat-action-menu { background: #fff; border-color: var(--line); box-shadow: 0 7px 21px #24142f22; }
  .chat-action-menu button:hover { background: #f4f0f7; }
  .message > div { background: #f2eff4; border-color: #eae4ee; }
  .from-user > div { background: #f5eafb; border-color: #eddbf8; }
  .composer { min-height: 70px; background: #fff; border-color: #d3c8d8; border-radius: 8px; }
  .profile-panel { border: 1px solid var(--line); border-left: 0; background: #f7f4f9; }
  .profile-panel > .character-portrait { aspect-ratio: .68; }
}

@media (min-width: 1080px) and (max-width: 1280px) {
  .catalog-view .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.prototype-age {
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 100dvh;
  background: #bcbcbc;
  color: #202020;
  font-family: Arial, "PingFang SC", sans-serif;
}
.age-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 668px);
  min-height: 446px;
  padding: 26px 20px 34px;
  border-radius: 8px;
  background: #fff;
}
.age-card header { display: flex; justify-content: space-between; width: 100%; gap: 10px; color: #727272; font-size: 13px; }
.age-card h1 { font-size: 28px; margin-top: 31px; }
.age-card h2 { margin-top: 10px; font-size: 14px; letter-spacing: 0; }
.age-card p { margin: 15px 0 0; color: #6b6b6b; text-align: center; font-size: 14px; }
.age-card .age-legal { font-size: 12px; }
.age-card button {
  width: min(100%, 407px);
  min-height: 40px;
  margin-top: 73px;
  padding: 7px 13px;
  background: #2669ff;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
}
.top-gems, .header-account { display: flex; gap: 12px; align-items: center; color: #26212a; font-size: 14px; white-space: nowrap; }
.top-gems { background: #edeaec; padding: 8px 12px; border-radius: 8px; color: #7924b5; }
.top-gems svg:last-child { box-sizing: content-box; color: #8725ca; background: #f4e0fc; border-radius: 50%; padding: 3px; }
.header-account .avatar { width: 43px; height: 43px; overflow: hidden; border: 0; border-radius: 50%; }
.header-account img { width: 100%; height: 100%; object-fit: cover; }
.route-not-found { display: grid; justify-items: center; align-content: center; min-height: 60dvh; gap: 12px; }
.dialog.dialog--settings { width: min(872px, calc(100vw - 28px)); padding: 13px 23px 24px; border: 1px solid #b7b7b7; box-shadow: none; }
.dialog--settings::backdrop { background: #0002; }
.dialog.dialog--creator-exit { width: min(246px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; background: #efaaaa; box-shadow: none; }
@media (min-width: 1080px) {
  :root { --topbar: clamp(98px, 8.02vw, 154px); }
  .application.nav-collapsed { --sidebar: 39px; --sidebar-gap: clamp(24px, 2.55vw, 49px); }
  .history-route.nav-collapsed { --sidebar-gap: clamp(17px, 2vw, 38px); }
}
@media (max-width: 1079px) {
  :root {
    color-scheme: light;
    --background: #fff;
    --surface: #fff;
    --surface-raised: #f5f2f3;
    --line: #e5dcde;
    --text: #171717;
    --muted: #665d60;
    --violet: #236af4;
    --accent-text: #fff;
    --error: #a82746;
    --bottom-nav: 50px;
  }
  .main-frame .topbar { display: none; }
  .bottom-nav { inset: auto 0 0; padding-inline: 0; padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #efefef; backdrop-filter: none; }
  .bottom-nav a { background: none; color: #171717; border-radius: 0; font-size: 0; gap: 0; }
  .bottom-nav a[aria-current="page"] { background: none; color: #ec1b24; }
  .bottom-nav a[href="#/create"] svg { border: 1.6px solid currentColor; border-radius: 50%; padding: 2px; }
  .application:is([data-view="search"], [data-view="author"], [data-view="character"], [data-view="create"], [data-view="settings"], [data-view="chat"], [data-view="gems"], [data-view="not-found"]) .bottom-nav { display: none; }
  .application:is([data-view="search"], [data-view="author"], [data-view="character"], [data-view="create"], [data-view="settings"], [data-view="chat"], [data-view="gems"], [data-view="not-found"]) .main-frame { padding-bottom: 0; }
  .application[data-view="gems"]:has(.wallet--mobile-topup) .bottom-nav { display: grid; }
  .application[data-view="gems"]:has(.wallet--mobile-topup) .main-frame { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .prototype-age { padding: 11px; background: #fff; }
  .age-card { min-height: 336px; padding: 14px 13px 25px; border: 1px solid #bbb; }
  .age-card header { font-size: 12px; }
  .age-card h1 { margin-top: 28px; }
  .age-card h2 { margin-top: 6px; }
  .age-card p { width: 100%; margin-top: 40px; text-align: start; }
  .age-card .age-legal { margin-top: 16px; }
  .age-card button { width: min(152px, 100%); min-height: 44px; margin-top: 22px; }
  .dialog { background: #fff; color: #171717; border-color: #ccc; box-shadow: 0 14px 45px #21181d38; }
  .dialog::backdrop { background: #1e161b5c; backdrop-filter: none; }
  .dialog > .dialog-close { color: #555; }
  .button-secondary:not(:disabled):hover, .icon-button:not(:disabled):hover { background: #ece5e7; }
  .button-primary:not(:disabled):hover { background: #1c57cc; }
  .empty-state { background: #faf8f8; }
}

