:root {
  --bg: #0b0b0c;
  --bg-elev: #121213;
  --sidebar: #0e0e10;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ececec;
  --muted: #8b8b90;
  --faint: #5c5c62;
  --hover: rgba(255, 255, 255, 0.06);
  --hover-strong: rgba(255, 255, 255, 0.1);
  --composer: #1a1a1d;
  --chip: #222226;
  --accent: #7dd3fc;
  --blue: #2f80ed;
  --radius: 22px;
  --sidebar-w: 260px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.app {
  display: flex;
  height: 100%;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100%;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  transition: width 0.22s ease, transform 0.22s ease;
}

.sidebar.collapsed {
  width: 68px;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .block-label,
.sidebar.collapsed .session-list,
.sidebar.collapsed .user-meta {
  display: none;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .brand {
  justify-content: center;
  padding-inline: 0;
}

.sidebar.collapsed .user-chip {
  justify-content: center;
  padding: 6px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
}

.brand:hover {
  background: var(--hover);
}

.spark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.spark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c8c8cc;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #b8b8bc;
}

.nav-item:hover {
  background: var(--hover);
  color: #fff;
}

.sidebar-block {
  margin-top: 18px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.block-label {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  padding: 0 10px 8px;
  display: flex;
  justify-content: space-between;
}

.session-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
}

.session-list::-webkit-scrollbar {
  width: 8px;
}

.session-list::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 8px;
}

.empty-sessions {
  color: var(--faint);
  font-size: 13px;
  padding: 6px 10px;
}

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #b7b7bc;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.session span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.session:hover,
.session.active {
  background: var(--hover);
  color: #fff;
}

.session .del {
  opacity: 0;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.session:hover .del {
  opacity: 1;
}

.session .del:hover {
  background: var(--hover-strong);
  color: #fff;
}

.sidebar-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  position: relative;
}

.user-wrap {
  position: relative;
}

.user-menu {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 52px;
  background: #1c1c1e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  z-index: 8;
}

.user-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.user-menu button:hover {
  background: var(--hover);
}

.user-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}

.user-chip:hover {
  background: var(--hover);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111 url("/avatar.jpg") center / cover no-repeat;
  color: #0b0b0c;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-plan {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-plan .crystal {
  width: 11px;
  height: 11px;
  color: #67e8f9;
}

.scrim {
  display: none;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(900px 420px at 50% 18%, rgba(125, 211, 252, 0.06), transparent 60%),
    var(--bg);
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.crystal-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #161618;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.crystal-balance:hover {
  background: var(--hover-strong);
}

.crystal-balance .crystal {
  width: 14px;
  height: 14px;
  color: #67e8f9;
}

.profile-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.profile-btn:hover,
.main.is-profile .profile-btn,
.main.is-info .profile-btn {
  background: var(--hover);
}

.profile-btn .avatar {
  width: 32px;
  height: 32px;
}

.model-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.02em;
  max-width: min(52vw, 280px);
}

#modelLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-trigger:hover {
  background: var(--hover);
}

.model-trigger-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1e;
}

.model-trigger-icon svg,
.model-trigger-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.model-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main.is-home .stage {
  justify-content: center;
  padding-bottom: 6vh;
}

.main.is-home .thread {
  display: none;
}

.main:not(.is-home) .home {
  display: none;
}

.main:not(.is-home) .thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main:not(.is-home) .thread::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.jump-bottom {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #1c1c20;
  color: #ececec;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.jump-bottom.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.jump-bottom svg {
  width: 18px;
  height: 18px;
}

.jump-bottom:hover {
  background: #25252a;
}

.home {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thread.hidden {
  display: none;
}

.hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hello-grad {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #a5f3fc 0%, #e0e7ff 40%, #c4b5fd 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hello-rest {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: #d4d4d8;
  letter-spacing: -0.04em;
}

.hello-rest[hidden] {
  display: none;
}

.computer-card {
  width: min(420px, 100%);
}

.computer-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #d4d4d8;
}

.computer-list {
  margin: 0 0 4px;
  padding-left: 18px;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.55;
}

.computer-list li + li {
  margin-top: 6px;
}

.studio-launch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
}

.studio-launch.is-hide {
  display: none;
}

.studio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #161618;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.studio-card:hover {
  background: #1b1b1e;
  border-color: rgba(125, 211, 252, 0.22);
}

.studio-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #222428;
  color: #9ad8f5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.studio-ico svg {
  width: 20px;
  height: 20px;
}

.studio-copy {
  min-width: 0;
}

.studio-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.studio-copy em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.setup-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  background: #222226;
  color: #ececec;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.setup-btn svg {
  width: 15px;
  height: 15px;
}

.setup-btn:hover {
  background: #2a2a2e;
}

.studio-tools {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.studio-cost {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: #1c1c1f;
  border: 1px solid var(--line);
  color: #d4d4d8;
  font-size: 12.5px;
  font-weight: 650;
  flex-shrink: 0;
}

.studio-cost.is-free {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.25);
}

.studio-cost .crystal {
  width: 12px;
  height: 12px;
}

.composer-bar {
  flex-wrap: nowrap;
}

.composer.is-studio .chat-tools,
.composer.is-studio .chat-extra {
  display: none;
}

.composer.is-studio .studio-tools {
  display: flex;
  flex: 1;
}

.preview-stage {
  height: 280px;
  display: grid;
  place-items: center;
  background: #101012;
  border-radius: 16px;
  overflow: hidden;
}

.preview-frame {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-cap {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.setup-layer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.setup-layer[hidden] {
  display: none;
}

.setup-card {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.setup-card .setup-done {
  width: 100%;
  margin-top: 14px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  display: block;
}

.setup-card .setup-done:hover {
  filter: brightness(0.95);
}

.setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.setup-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.setup-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.setup-x:hover {
  background: var(--hover);
  color: var(--text);
}

.setup-label {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setup-label:first-child {
  margin-top: 0;
}

.ratio-grid,
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ratio-tile,
.res-tile,
.dur-tile {
  border: 1px solid var(--line);
  background: #121214;
  color: inherit;
  border-radius: 14px;
  cursor: pointer;
  padding: 10px 8px 8px;
}

.ratio-tile:hover,
.res-tile:hover,
.dur-tile:hover,
.ratio-tile.on,
.res-tile.on,
.dur-tile.on {
  border-color: rgba(125, 211, 252, 0.45);
  background: #1c2228;
}

.ratio-stage,
.res-stage {
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.ratio-shape,
.res-shape {
  display: block;
  background: #314650;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 3px;
}

.ratio-tile b,
.res-tile b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.ratio-tile em,
.res-tile em {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}

.dur-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dur-tile {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
}

.setup-price {
  margin: 16px 0 12px;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
}

.setup-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.gen-wait {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 38%, #1d1d22 0%, #121214 68%);
  display: grid;
  place-items: center;
  color: #ececec;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.gen-wait.is-video {
  width: min(100%, 440px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.gen-wait span {
  position: relative;
  z-index: 1;
  padding: 0 22px;
  text-align: center;
  line-height: 1.4;
}

.gen-wait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: gen-shimmer 1.4s linear infinite;
}

@keyframes gen-shimmer {
  to { transform: translateX(100%); }
}

.gen-media {
  margin-top: 4px;
  width: min(100%, 360px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #121214;
}

.gen-media.is-video {
  width: min(100%, 440px);
  border-radius: 18px;
}

.gen-shot {
  overflow: hidden;
  background: #0c0c0d;
  aspect-ratio: 1 / 1;
}

.gen-media img,
.gen-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c0c0d;
}

.gen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 12px;
}

.gen-foot a {
  color: #9ad8f5;
  text-decoration: none;
}

.studio-tag {
  margin-top: 6px;
  color: #8b8b92;
  font-size: 11px;
}

@media (max-width: 640px) {
  .studio-launch {
    grid-template-columns: 1fr;
  }
  .ratio-grid,
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.thread {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.msg {
  display: flex;
  gap: 12px;
  animation: rise 0.28s ease;
}

.msg.user {
  justify-content: flex-end;
}

.msg.user .bubble {
  background: #232328;
  border: 1px solid var(--line);
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  font-size: 15px;
  line-height: 1.55;
}

.msg.assistant {
  align-items: flex-start;
}

.prose {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #e7e7ea;
}

.prose p + p {
  margin-top: 12px;
}

.prose strong {
  font-weight: 600;
  color: #fff;
}

.prose em {
  font-style: italic;
  color: #f3f3f5;
}

.prose del {
  color: var(--muted);
  text-decoration: line-through;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.3;
  margin: 18px 0 8px;
}

.prose h1 { font-size: 22px; }
.prose h2 { font-size: 18px; }
.prose h3,
.prose h4 { font-size: 16px; }

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 10px 0 0 18px;
}

.prose ol {
  padding-left: 4px;
}

.prose li + li {
  margin-top: 4px;
}

.prose li.task {
  list-style: none;
  margin-left: -14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.prose .check {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #6b6b70;
  flex-shrink: 0;
}

.prose .check.on {
  background: #7dd3fc;
  border-color: #7dd3fc;
}

.prose a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.prose a:hover {
  border-bottom-color: #7dd3fc;
}

.prose-img {
  display: block;
  max-width: min(100%, 420px);
  border-radius: 12px;
  margin: 10px 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.prose blockquote {
  margin: 12px 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid rgba(125, 211, 252, 0.5);
  color: #c8c8ce;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #1c1c1f;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.prose .code-block {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #121214;
  overflow: hidden;
}

.prose .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose .code-copy {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.prose .code-copy:hover {
  background: var(--hover);
  color: var(--text);
}

.prose pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #d7d7dc;
}

.table-wrap {
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  color: #fff;
  font-weight: 600;
  background: #161618;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose .katex {
  color: #ececec;
  font-size: 1.05em;
}

.prose .katex-display {
  margin: 14px 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
}

.prose .math {
  font-family: "Times New Roman", Times, serif;
  color: #f0f0f3;
}

.actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.actions button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.actions button:hover {
  background: var(--hover);
  color: var(--text);
}

.actions button.is-on {
  background: var(--hover-strong);
  color: var(--text);
}

.actions button.is-done {
  color: #4ade80;
}

.actions svg {
  width: 15px;
  height: 15px;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.1em;
  border-radius: 1px;
  animation: blink 0.9s step-end infinite;
}

.dock {
  padding: 0 16px 14px;
  width: min(792px, 100%);
  margin: 0 auto;
  flex-shrink: 0;
}

.composer {
  background: var(--composer);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.composer:focus-within {
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.composer.drop {
  border-color: rgba(125, 211, 252, 0.45);
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  max-height: 180px;
  overflow-y: auto;
}

.composer textarea::placeholder {
  color: #6f6f76;
}

.quota-hint {
  margin-top: 6px;
  color: #93c5fd;
}

.char-limit {
  margin-top: 6px;
  color: #f87171;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.model-cost.is-free {
  color: #4ade80;
}

.bar-left,
.bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.composer:not(.is-studio) .studio-tools,
.studio-tools[hidden] {
  display: none !important;
}

.tool-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #c5c5ca;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tool-btn:hover {
  background: var(--hover-strong);
}

.tool-btn.is-text-only {
  opacity: 0.45;
}

.tool-btn svg {
  width: 18px;
  height: 18px;
}

.tool-chip {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 8px;
  border: 0;
  background: #2a2a2e;
  color: #ececec;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
}

.tool-chip svg {
  width: 15px;
  height: 15px;
}

.tool-chip .chev {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.tool-chip.active {
  background: #2f2f34;
}

.tool-btn.active {
  background: #2f2f34;
  color: #fff;
}

.mode-switch {
  position: relative;
}

.mode-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 140px;
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mode-menu[hidden] {
  display: none;
}

.mode-menu button {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mode-menu button:hover,
.mode-menu button.on {
  background: var(--hover);
}

.agent-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.agent-log:empty {
  display: none;
}

.think {
  margin: 0 0 12px;
}

.think > summary {
  list-style: none;
  cursor: pointer;
  color: #9a9aa3;
  font-size: 13.5px;
  font-weight: 550;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.think > summary::-webkit-details-marker {
  display: none;
}

.think > summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.72;
  transition: transform 0.15s ease;
}

.think[open] > summary::before {
  transform: rotate(90deg);
}

.think.is-on > summary {
  color: #c8c8d0;
  animation: thinkPulse 1.2s ease-in-out infinite;
}

.think-body {
  margin-top: 8px;
  color: #8b8b93;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
}

.think-body:empty {
  display: none;
}

@keyframes thinkPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.agent-step {
  background: #161618;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.agent-step-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.agent-q {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.agent-count {
  margin-left: auto;
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
}

.agent-hosts {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agent-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.agent-files:empty {
  display: none;
}

.agent-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #1c1c1f;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.agent-file:hover {
  background: var(--hover-strong);
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.file-ico {
  position: relative;
  width: 28px;
  height: 32px;
  flex-shrink: 0;
  color: #c4c4ca;
}

.file-ico svg {
  width: 28px;
  height: 32px;
  display: block;
}

.file-ico b {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 5px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1;
  color: #111;
  background: #c8c8cc;
  border-radius: 2px;
  padding: 2px 0 1px;
}

.file-ico-pdf {
  color: #e7b6b6;
}

.file-ico-pdf b {
  background: #e07070;
  color: #1a1010;
}

.file-ico-txt b,
.file-ico-csv b,
.file-ico-json b,
.file-ico-file b {
  background: #b0b0b6;
}

.file-ico-md {
  color: #b7d7ea;
}

.file-ico-md b {
  background: #7dd3fc;
  color: #0b1a22;
}

.file-ico-doc {
  color: #b7c9ea;
}

.file-ico-doc b {
  background: #7aa2e8;
  color: #0c1522;
}

.send-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f5;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.16s ease, color 0.16s ease;
}

.send-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.send-btn:not(:disabled):hover {
  transform: scale(1.04);
}

.send-btn svg {
  width: 18px;
  height: 18px;
  transform-origin: center;
}

.send-btn .icon-arrow,
.send-btn .icon-stop {
  display: none;
}

.send-btn.ready .icon-wave {
  display: none;
}

.send-btn.ready .icon-arrow {
  display: block;
}

.send-btn.is-live-idle:not(.ready) {
  opacity: 1;
  background: #ececef;
}

.send-btn.is-live-idle:not(.ready) .icon-wave {
  animation: liveWave 1.15s ease-in-out infinite;
}

.send-btn.is-live-on {
  background: #ef4444;
  color: #fff;
  opacity: 1;
}

.send-btn.is-live-on:not(.ready) .icon-wave,
.send-btn.is-live-on:not(.ready) .icon-arrow {
  display: none;
}

.send-btn.is-live-on:not(.ready) .icon-stop {
  display: block;
}

.send-btn.is-live-on.ready .icon-stop {
  display: none;
}

.send-btn.is-stop {
  background: #ececef;
  color: #111;
  opacity: 1;
}

.send-btn.is-stop .icon-wave,
.send-btn.is-stop .icon-arrow {
  display: none;
}

.send-btn.is-stop .icon-stop {
  display: block;
}

.composer.is-live {
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 560;
}

.live-chip[hidden] {
  display: none;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.7;
  }
}

@keyframes liveWave {
  0%,
  100% {
    transform: scaleY(0.78);
  }
  50% {
    transform: scaleY(1);
  }
}

.hint {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #f4f4f5;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 95;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.live-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(36px, env(safe-area-inset-top)) 28px max(36px, env(safe-area-inset-bottom));
  color: #fff;
  overflow: hidden;
}

.live-stage[hidden] {
  display: none;
}

.live-stage-bg {
  position: absolute;
  inset: 0;
  background: #050505;
}

.live-stage-brand,
.live-stage-status,
.live-stage-line {
  position: relative;
  z-index: 1;
}

.live-stage-brand {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
}

.live-bars {
  position: relative;
  z-index: 1;
  width: min(220px, 56vw);
  height: min(168px, 38vw);
  margin: auto 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  --live-level: 0;
  --h1: 0.32;
  --h2: 0.48;
  --h3: 0.28;
}

.live-bar {
  width: 10px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: scaleY(var(--h, 0.32));
  transform-origin: center;
  opacity: calc(0.55 + var(--live-level) * 0.45);
  will-change: transform;
}

.live-bar:nth-child(1) {
  --h: var(--h1);
}

.live-bar:nth-child(2) {
  --h: var(--h2);
}

.live-bar:nth-child(3) {
  --h: var(--h3);
}

.live-stage.is-listen .live-bar,
.live-stage.is-think .live-bar,
.live-stage.is-speak .live-bar,
.live-stage.is-voice .live-bar {
  background: #fff;
  box-shadow: none;
}

.live-stage-status {
  min-height: 24px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.live-stage-line {
  min-height: 40px;
  max-width: 360px;
  margin: 10px 0 96px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
}

.live-hang {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-top: auto;
  border: 0;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.live-hang svg {
  width: 22px;
  height: 22px;
}

.live-hang:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

@media (max-width: 640px) {
  .live-stage-status {
    font-size: 13px;
  }

  .live-hang {
    width: 52px;
    height: 52px;
  }

  .live-bars {
    height: 140px;
    gap: 16px;
  }

  .live-bar {
    width: 9px;
    height: 96px;
  }
}

.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-layer[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
}

.auth-close:hover {
  background: var(--hover);
  color: #fff;
}

.auth-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
}

.auth-mark img,
.auth-mark svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card h2 {
  text-align: center;
  font-size: 24px;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.auth-lead {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 20px;
}

.auth-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-step[hidden],
.auth-card form[hidden] {
  display: none;
}

.auth-yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.auth-yandex:hover {
  filter: brightness(0.94);
}

.ya-logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ya-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}

.auth-email-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #1c1c1f;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.auth-email-btn:hover {
  background: var(--hover-strong);
}

.auth-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 2px;
}

.auth-back:hover {
  color: #fff;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-card input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0f0f11;
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(125, 211, 252, 0.35);
}

.otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 6px;
}

.otp.is-shake {
  animation: otp-shake 0.42s ease;
}

.auth-card .otp-cell {
  flex: 1;
  min-width: 0;
  max-width: 48px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0f0f11;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  caret-color: #2ea6ff;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-card .otp-cell:focus {
  border-color: #2ea6ff;
  box-shadow: 0 0 0 3px rgba(46, 166, 255, 0.22);
}

.auth-card .otp-cell.is-pop {
  animation: otp-pop 0.2s ease-out;
}

.otp.is-wait .otp-cell {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.otp.is-error .otp-cell,
.otp.is-error .otp-cell:focus {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  caret-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.otp.is-ok .otp-cell,
.otp.is-ok .otp-cell:focus {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  caret-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

@keyframes otp-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes otp-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(4px);
  }
}

.auth-resend {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0 0;
}

.auth-resend:hover {
  color: #fff;
}

.auth-submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #111;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(0.95);
}

.auth-note {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: #93c5fd;
  text-align: center;
  transition: color 0.18s ease;
}

.auth-note.is-error {
  color: #f87171;
}

.auth-note.is-ok {
  color: #4ade80;
}

.auth-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #2f80ed;
}

.auth-check a {
  color: #7dd3fc;
}

.topup-note a {
  color: #7dd3fc;
}

.legal-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #131315;
}

.legal-org {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.legal-box p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.legal-box a {
  color: #7dd3fc;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 4px;
}

.legal-links a {
  font-size: 13px;
  font-weight: 600;
}

.cookie-prefs-btn {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #1a1a1d;
  color: #ececef;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-prefs-btn:hover {
  background: #222226;
}

.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 72;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #161618;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-bar a {
  color: #7dd3fc;
}

.cookie-bar-actions {
  display: flex;
  gap: 8px;
}

.cookie-bar-actions .cookie-btn {
  flex: 1;
}

.cookie-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #1a1a1d;
  color: #ececef;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn:hover {
  background: #222226;
}

.cookie-btn.is-primary {
  border: 0;
  background: #f4f4f5;
  color: #111;
}

.cookie-btn.is-primary:hover {
  filter: brightness(0.95);
}

.cookie-bar-prefs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cookie-bar-prefs[hidden] {
  display: none;
}

.cookie-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.cookie-check input {
  width: 16px;
  height: 16px;
  accent-color: #2f80ed;
}

.profile-delete {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid #3f1d1d;
  border-radius: 12px;
  background: #1c1212;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.profile-delete:hover {
  background: #261616;
}

.profile-delete[hidden] {
  display: none;
}

.main.is-profile .stage,
.main.is-info .stage,
.main.is-personal .stage {
  justify-content: flex-start;
  padding: 8px 16px 32px;
  overflow: auto;
}

.main.is-profile .home,
.main.is-profile .thread,
.main.is-profile .dock,
.main.is-info .home,
.main.is-info .thread,
.main.is-info .dock,
.main.is-personal .home,
.main.is-personal .thread,
.main.is-personal .dock {
  display: none;
}

.main.is-profile .model-switch,
.main.is-info .model-switch,
.main.is-personal .model-switch {
  visibility: hidden;
  pointer-events: none;
}

.profile-page,
.info-page {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 8px 0 40px;
}

.main:not(.is-profile) .profile-page,
.profile-page[hidden] {
  display: none !important;
}

.main:not(.is-info) .info-page,
.info-page[hidden] {
  display: none !important;
}

.personal-page {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 8px 0 40px;
}

.main:not(.is-personal) .personal-page,
.personal-page[hidden] {
  display: none !important;
}

/* Структурная страховка: страницы профиля, информации и
   персонализации никогда не видны одновременно, что бы ни сделал JS. */
.main.is-profile .info-page,
.main.is-profile .personal-page,
.main.is-info .profile-page,
.main.is-info .personal-page,
.main.is-personal .profile-page,
.main.is-personal .info-page {
  display: none !important;
}

.personal-value {
  color: var(--text);
  font-weight: 700;
}

.personal-range {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--accent);
}

.personal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.personal-presets button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.personal-presets button.active {
  border-color: var(--accent);
}

.personal-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.personal-page .auth-submit {
  margin-top: 14px;
  align-self: flex-start;
}

.profile-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.profile-back:hover {
  color: var(--text);
}

.info-hero h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
}

.info-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #131315;
}

.info-card .section-label {
  margin-bottom: 10px;
}

.info-card p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card > p a {
  color: #7dd3fc;
}

.info-docs {
  display: flex;
  flex-direction: column;
}

.info-docs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #ececef;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
}

.info-docs a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-docs a:first-child {
  padding-top: 0;
}

.info-docs a::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.6px solid #8b8b93;
  border-top: 1.6px solid #8b8b93;
  transform: rotate(45deg);
  opacity: 0.7;
}

.info-docs a:hover {
  color: #fff;
}

.info-card .profile-link {
  margin: 8px -12px 0;
}

.info-page .cookie-prefs-btn {
  margin-top: 0;
}

.profile-hero {
  text-align: center;
  padding-top: 8px;
}

.profile-hero h1 {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-top: 4px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: #111 url("/avatar.jpg") center / cover no-repeat;
  border: 1px solid var(--line-strong);
}

.profile-mail,
.profile-plan {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
}

.profile-plan[hidden] {
  display: none;
}

.balance-card {
  background: #161618;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px 22px 18px;
  text-align: center;
}

.balance-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.balance-value {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.balance-value .crystal {
  width: 28px;
  height: 28px;
  color: #67e8f9;
}

.balance-rate {
  margin-top: 10px;
  color: #7dd3fc;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.balance-rate .crystal {
  width: 16px;
  height: 16px;
  color: #67e8f9;
}

.balance-rub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.balance-topup {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #101014;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.balance-topup:hover {
  opacity: 0.88;
}

.balance-topup[hidden] {
  display: none;
}

.section-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topup,
.usage {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #131315;
}

.topup[hidden],
.usage[hidden] {
  display: none;
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.topup-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #1a1a1d;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.topup-pack:hover {
  background: var(--hover-strong);
}

.topup-pack.is-on {
  border-color: #7dd3fc;
  background: #10222c;
}

.topup-rub {
  font-size: 15px;
  font-weight: 600;
}

.topup-cry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #67e8f9;
}

.topup-cry .crystal {
  width: 13px;
  height: 13px;
}

.topup-custom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

.topup-custom-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topup-mail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

.topup-mail input {
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #1a1a1d;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.topup-mail input:focus {
  outline: 0;
  border-color: #7dd3fc;
  background: #10222c;
}

.topup-mail-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.topup-custom-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #1a1a1d;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.topup-custom-field:focus-within {
  border-color: #7dd3fc;
  background: #10222c;
}

.topup-custom input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: left;
  appearance: textfield;
  -moz-appearance: textfield;
}

.topup-custom input::-webkit-outer-spin-button,
.topup-custom input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.topup-custom input:focus {
  outline: none;
  border-color: transparent;
}

.topup-custom input::placeholder {
  color: #5c5c64;
  font-weight: 500;
}

.topup-custom-rub {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.topup-custom-cry {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.1);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.topup-custom-cry:not(:empty) {
  display: inline-flex;
}

.topup-custom-cry .crystal {
  width: 13px;
  height: 13px;
}

.topup-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
}

.topup-out .crystal {
  width: 15px;
  height: 15px;
  color: #67e8f9;
}

.topup-pay {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  background: #2f80ed;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.topup-pay:hover {
  opacity: 0.9;
}

.topup-pay:disabled {
  opacity: 0.45;
  cursor: default;
}

.topup-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.usage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usage-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px 10px;
}

.usage-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usage-count {
  font-size: 13px;
  color: var(--muted);
}

.usage-spent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #67e8f9;
}

.usage-spent .crystal {
  width: 12px;
  height: 12px;
}

.usage-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: #232327;
  overflow: hidden;
}

.usage-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #7dd3fc;
}

.usage-empty,
.usage-total {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.usage-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 640px) {
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #131315;
}

.profile-links > .section-label {
  margin: 6px 0 2px;
}

.links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.links-head .section-label {
  margin: 0;
}

.channel-icons {
  display: flex;
  gap: 8px;
}

.channel-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #1a1a1d;
  color: #7dd3fc;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.channel-ico:hover {
  background: var(--hover-strong);
  transform: translateY(-1px);
}

.channel-ico svg {
  width: 17px;
  height: 17px;
}

.channel-ico.is-max {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2f80ed;
  border-color: transparent;
}

.channel-ico.is-max:hover {
  background: #4a91f2;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.16s ease;
}

.profile-link:hover {
  background: var(--hover-strong);
}

.profile-link-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1f1f23;
  color: #7dd3fc;
}

.profile-link-ico svg {
  width: 18px;
  height: 18px;
}

.profile-link-ico.is-max {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #2f80ed;
}

.profile-link-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-link-copy span:first-child {
  font-size: 14px;
  font-weight: 560;
}

.profile-link-copy span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.profile-admin {
  display: block;
  margin: 16px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.profile-admin[hidden] {
  display: none !important;
}

.profile-admin:hover {
  color: var(--text);
}

.profile-logout {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #1c1c1f;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.profile-logout:hover {
  background: var(--hover-strong);
}

.profile-page .auth-submit {
  width: 100%;
  margin-top: 4px;
}

.profile-page .auth-submit[hidden],
.profile-logout[hidden] {
  display: none;
}

.attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.attach-list[hidden] {
  display: none;
}

.attach-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  background: #121214;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px 8px;
}

.attach-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.attach-chip img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  display: block;
}

.attach-ring {
  position: absolute;
  inset: -3px;
  width: 42px;
  height: 42px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.attach-ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.attach-ring .fg {
  stroke: #7dd3fc;
  stroke-linecap: round;
  transition: stroke-dasharray 0.12s linear;
}

.attach-chip.is-error {
  border-color: rgba(248, 113, 113, 0.45);
}

.attach-chip.is-uploading img {
  opacity: 0.55;
}

.attach-chip span {
  font-size: 12px;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.msg.user .bubble-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.msg.user .bubble-files img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.msg.user .file-pill {
  font-size: 12px;
  color: var(--muted);
  background: #111;
  border-radius: 8px;
  padding: 4px 8px;
}

.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;
}

.picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.picker.open {
  pointer-events: auto;
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.picker.open .picker-backdrop {
  opacity: 1;
}

.picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 72vh;
  background: #1c1c1e;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom);
  will-change: transform;
}

.picker.open .picker-sheet {
  transform: translate3d(0, 0, 0);
}

.picker-grab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 0 10px;
  border: 0;
  background: transparent;
  flex-shrink: 0;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.picker-grab:active {
  cursor: grabbing;
}

.picker-handle {
  width: 48px;
  height: 5px;
  border-radius: 99px;
  background: #8e8e93;
  pointer-events: none;
}

.picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 16px 12px;
  padding: 11px 14px;
  background: #2a2a2e;
  border-radius: 14px;
  color: #8e8e93;
}

.picker-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.picker-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.picker-search input::placeholder {
  color: #8e8e93;
}

.picker-scroll {
  overflow: auto;
  padding: 0 8px 8px;
  flex: 1;
  min-height: 0;
}

.picker-scroll::-webkit-scrollbar {
  width: 8px;
}

.picker-scroll::-webkit-scrollbar-thumb {
  background: #3a3a40;
  border-radius: 8px;
}

.picker-label {
  font-size: 13px;
  color: #8e8e93;
  font-weight: 500;
  padding: 10px 12px 6px;
  scroll-margin-top: 8px;
}

.model-row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto 22px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.model-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.model-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1e;
}

.model-ico svg,
.model-ico img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.model-copy {
  min-width: 0;
}

.model-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.model-desc {
  margin-top: 2px;
  font-size: 12.5px;
  color: #8e8e93;
  line-height: 1.35;
}

.model-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5eb0ff;
  font-size: 13px;
  font-weight: 600;
  align-self: start;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.model-cost svg,
.crystal {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #636366;
  display: grid;
  place-items: center;
}

.radio span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.model-row.selected .radio {
  border-color: var(--blue);
}

.model-row.selected .radio span {
  background: var(--blue);
}

.picker-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 16px 18px;
  cursor: pointer;
}

.picker-all:hover {
  color: #dbeafe;
}

.picker-empty {
  color: #8e8e93;
  font-size: 14px;
  padding: 24px 16px;
  text-align: center;
}

.mobile-only {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (min-width: 861px) {
  .picker {
    position: relative;
    inset: auto;
    z-index: 4;
    width: 0;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: none;
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .picker.open {
    width: min(380px, 36vw);
    pointer-events: auto;
  }

  .picker-backdrop {
    display: none;
  }

  .picker-grab {
    display: none;
  }

  .picker-sheet {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 36vw);
    max-height: none;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    border-right: 1px solid var(--line);
    background: var(--sidebar);
    transition: none;
    will-change: auto;
  }

  .picker.open .picker-sheet {
    transform: none;
  }

  .picker-search {
    margin-top: 16px;
  }
}

.picker-sheet.no-anim {
  transition: none;
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    transform: translateX(-105%);
    width: min(280px, 86vw);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.4);
  }

  .sidebar.open {
    transform: none;
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .scrim.show {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: grid;
  }

  .hello-grad {
    font-size: 34px;
  }
}

