@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&family=Unbounded:wght@500;600;700;800&display=swap");
:root {
  --bg: #10120f;
  --panel: #191c17;
  --border: #30362a;
  --text: #eeeedd;
  --muted: #939b89;
  --lime: #c3f46c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px "Golos Text",
    Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 9px;
  padding: 11px 15px;
  transition: 0.15s;
}
button:hover {
  border-color: var(--lime);
  background: #c3f40b0c;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #17200c;
  font-weight: 700;
}
.primary:hover {
  background: #d5ff94;
}
.subtle {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.tag {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #141711;
  z-index: 5;
}
.brand {
  font-family: Unbounded, Arial;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brandmark {
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #19220e;
  width: 32px;
  height: 32px;
  clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%);
  font-size: 24px;
}
.brand em {
  color: var(--lime);
  font-style: normal;
}
.sidebar .tag {
  margin: 12px 0 32px 41px;
  font-size: 8px;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  border-color: transparent;
  color: #aeb6a4;
  padding: 14px;
}
.nav button.active {
  background: #28311e;
  color: var(--lime);
  border-color: #43532d;
}
.nav b {
  display: inline-block;
  width: 29px;
  font-size: 18px;
}
.sidebar-footer {
  margin-top: auto;
}
.wallet {
  padding: 17px;
  border: 1px solid #3a472c;
  border-radius: 10px;
  background: linear-gradient(130deg, #29341d, #1b2116);
  margin-bottom: 16px;
}
.wallet strong {
  display: block;
  font-size: 26px;
  margin: 8px 0 13px;
}
.wallet button {
  width: 100%;
  padding: 9px;
  background: #c3f46c;
  color: #1d280c;
  font-size: 12px;
  font-weight: 700;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 3px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #303829;
  color: #c3f46c;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 44px;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
}
.crumb span {
  color: var(--text);
  margin-left: 12px;
}
.demo-pill {
  font-size: 11px;
  border: 1px solid #435531;
  padding: 7px 11px;
  border-radius: 30px;
  color: var(--lime);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 6px;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 32px 44px 40px;
}
.hero {
  position: relative;
  min-height: 252px;
  border: 1px solid #3b472f;
  border-radius: 15px;
  background: #191e14;
  overflow: hidden;
  display: flex;
  margin-bottom: 32px;
}
.hero-copy {
  padding: 29px 34px;
  position: relative;
  z-index: 1;
  width: 65%;
  background: linear-gradient(90deg, #191e14 75%, transparent);
}
.eyebrow {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.hero h1 {
  font-family: Unbounded, Arial;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 17px 0 12px;
  max-width: 520px;
}
.hero h1 span {
  color: var(--lime);
}
.hero p {
  color: #a9b39d;
  line-height: 1.7;
  font-size: 13px;
  max-width: 370px;
  margin: 0 0 22px;
}
.hero img {
  position: absolute;
  right: 0;
  top: -64px;
  width: 400px;
  image-rendering: pixelated;
}
.hero .micro {
  position: absolute;
  right: 21px;
  bottom: 17px;
  color: #c5d4b3;
  font-size: 9px;
  letter-spacing: 2px;
}
.hero button {
  padding: 10px 17px;
  font-size: 12px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0 18px;
}
.section-head h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
}
.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.search {
  background: #191d17;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 15px;
  width: 250px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.tabs button {
  padding: 9px 14px;
  font-size: 12px;
  color: #aeb6a4;
  border-color: transparent;
  background: #191d17;
}
.tabs button.active {
  border-color: #899d63;
  background: #29351d;
  color: var(--lime);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.card {
  background: #191d17;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 21px;
  position: relative;
}
.card:hover {
  border-color: #5b6b47;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.model-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 28px;
  background: #243220;
  color: #bfecc2;
}
.model-icon.orange {
  color: #ddb69b;
  background: #392d24;
}
.model-icon.blue {
  color: #98bde6;
  background: #222e3b;
}
.model-icon.purple {
  color: #c2abe9;
  background: #30273b;
}
.card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.card .brand-name {
  font-size: 10px;
  color: var(--muted);
}
.star {
  position: absolute;
  right: 13px;
  top: 16px;
  padding: 5px 8px;
  border: 0;
  font-size: 21px;
  color: #77816c;
}
.star.selected {
  color: var(--lime);
}
.card-description {
  font-size: 12px;
  line-height: 1.7;
  color: #a0a995;
  min-height: 40px;
  margin: 17px 0 12px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chip {
  font-size: 9px;
  border: 1px solid #353f2d;
  border-radius: 4px;
  color: #a4b096;
  padding: 4px 6px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2a3324;
  padding-top: 15px;
}
.price-row strong {
  font-size: 13px;
}
.price-row small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.price-row button {
  font-size: 11px;
  padding: 8px 12px;
}
.page-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  margin: 23px 0;
  color: var(--muted);
  font-size: 11px;
}
.page-controls button {
  padding: 6px 12px;
}
.notice {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  border: 1px dashed #39432f;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #707b65;
  margin-top: 30px;
}
.prompt-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.prompt-mini {
  text-align: left;
  background: #191d17;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
}
.prompt-mini span {
  font-size: 24px;
  color: var(--lime);
}
.prompt-mini strong {
  font-size: 12px;
  display: block;
}
.prompt-mini small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #000a;
  backdrop-filter: blur(8px);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}
.dialog {
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #1b2017;
  border: 1px solid #53623f;
  border-radius: 17px;
  padding: 30px;
  position: relative;
  box-shadow: 0 30px 100px #0008;
}
.dialog h2 {
  font-family: Unbounded;
  font-size: 22px;
  line-height: 1.5;
  margin: 12px 0;
}
.dialog p {
  line-height: 1.8;
  color: #abb49d;
}
.dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  padding: 6px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.select-model {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}
.select-model.checked {
  border-color: var(--lime);
  background: #2c3820;
}
.select-model .check {
  margin-left: auto;
  color: var(--lime);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 23px;
  background: var(--lime);
  color: #17200e;
  border-radius: 9px;
  z-index: 40;
  display: none;
  max-width: 90%;
}
.chat-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  height: calc(100vh - 145px);
  min-height: 500px;
}
.chat-list {
  border-right: 1px solid var(--border);
  padding-right: 15px;
  overflow: auto;
}
.chat-list button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 12px;
  margin-bottom: 8px;
}
.chat-list button.active {
  border-color: var(--lime);
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
select {
  background: #252e1e;
  color: var(--text);
  border: 1px solid #4c5b3b;
  padding: 10px;
  border-radius: 7px;
  max-width: 200px;
}
.messages {
  overflow: auto;
  flex: 1;
  padding: 20px 0;
}
.message {
  padding: 15px 19px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 15px;
  max-width: 88%;
  border-radius: 10px;
  background: #20271b;
}
.message.user {
  margin-left: auto;
  background: #303e22;
  border: 1px solid #4c6134;
}
.message small {
  display: block;
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.empty {
  text-align: center;
  padding: 60px 15px;
  color: var(--muted);
}
.empty strong {
  font-family: Unbounded;
  display: block;
  color: var(--text);
  font-size: 24px;
  margin: 15px;
}
.composer {
  border: 1px solid #566546;
  border-radius: 12px;
  background: #1b2117;
  padding: 12px;
}
.composer textarea {
  width: 100%;
  resize: none;
  min-height: 65px;
  background: transparent;
  color: var(--text);
  border: 0;
  outline: 0;
  padding: 7px;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.attachment {
  font-size: 11px;
  color: var(--lime);
  padding: 8px;
}
.memory-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin: 10px 0;
  white-space: pre-wrap;
}
.field {
  width: 100%;
  padding: 14px;
  background: #141a10;
  border: 1px solid #4b5c38;
  border-radius: 8px;
  color: var(--text);
  margin: 12px 0;
}
.balance-big {
  font-family: Unbounded;
  font-size: 48px;
  margin: 25px 0;
}
.amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.amounts button.active {
  color: var(--lime);
  border-color: var(--lime);
}
.bot-message {
  background: #222c1c;
  padding: 18px;
  border-radius: 10px;
  white-space: pre-line;
  line-height: 1.8;
  font-size: 13px;
}
.bot-buttons {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.bot-label {
  font-size: 11px;
  color: var(--lime);
  margin-bottom: 13px;
}
.memory-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0;
}
.loading {
  opacity: 0.5;
  pointer-events: none;
} /* Phone layout is the baseline. Wider layouts progressively add space. */
:root {
  --nav-height: 68px;
  --header-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-gutter: 16px;
}
html {
  color-scheme: dark;
  scroll-padding-bottom: 100px;
}
body {
  font-size: 14px;
  min-width: 280px;
  -webkit-text-size-adjust: 100%;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  touch-action: manipulation;
}
button:active {
  transform: translateY(1px);
}
input,
textarea,
select {
  font-size: 16px;
}
textarea {
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
button:focus-visible {
  outline-offset: 2px;
}
.layout {
  display: block;
  min-height: 100dvh;
}
.main {
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
  min-width: 0;
}
.sidebar {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 4px 6px calc(4px + var(--safe-bottom));
  background: #151a12f5;
  border-top: 1px solid #39432e;
  border-right: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}
.sidebar > .brand,
.sidebar > .tag,
.sidebar-footer,
.nav .desktop-only {
  display: none;
}
.nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  height: 100%;
}
.nav button {
  padding: 6px 2px;
  font-size: 10px;
  text-align: center;
  border-radius: 9px;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.nav b {
  display: block;
  width: auto;
  font-size: 20px;
  line-height: 23px;
  font-weight: 500;
  margin-bottom: 3px;
}
.nav button.active {
  border-color: #3b4c28;
  background: #25331b;
}
.nav .mobile-more {
  display: block;
}
.topbar {
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  gap: 12px;
  position: sticky;
  top: 0;
  background: #10150ff5;
  backdrop-filter: blur(12px);
  z-index: 8;
}
.crumb {
  display: none;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  min-width: 0;
  font-family: Unbounded;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.mobile-brand em {
  color: var(--lime);
  font-style: normal;
}
.brandmark {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mobile-balance {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  background: #25321a;
  color: var(--lime);
  border-color: #4f6337;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  border-radius: 8px;
  white-space: nowrap;
}
.mobile-balance span {
  font-size: 18px;
}
.demo-pill {
  font-size: 9px;
  padding: 5px 7px;
  border-color: #3e492f;
}
.dot {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}
.content {
  padding: 20px var(--page-gutter) 28px;
  max-width: 1440px;
  margin: auto;
}
.hero {
  min-height: 244px;
  margin-bottom: 28px;
  border-radius: 13px;
  isolation: isolate;
  background: #191e14;
}
.hero-copy {
  width: 100%;
  padding: 23px 20px;
  z-index: 1;
  background: linear-gradient(90deg, #191e14 0%, #191e14ed 45%, #191e1466 100%);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  line-height: 1.8;
}
.hero h1 {
  font-size: clamp(20px, 5.9vw, 30px);
  line-height: 1.4;
  margin: 18px 0 12px;
  letter-spacing: -0.8px;
  max-width: 100%;
}
.hero h1 span {
  display: inline-block;
  max-width: 100%;
}
.hero p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 20px;
  max-width: 78%;
  color: #b0baa4;
}
.hero img {
  width: 300px;
  height: 300px;
  right: -111px;
  top: -15px;
  opacity: 0.65;
  z-index: -1;
  object-fit: cover;
}
.hero .micro {
  display: none;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero button {
  padding: 10px 13px;
  font-size: 12px;
  min-height: 44px;
  background: #191f15c9;
}
.hero button.primary {
  background: var(--lime);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 17px;
}
.section-head h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.45;
}
.section-head p {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 6px;
}
.count {
  font-size: 11px;
  color: var(--lime);
  background: #29351f;
  border: 1px solid #3b4a2d;
  padding: 3px 6px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 500;
}
.search-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-wrap > span {
  position: absolute;
  left: 14px;
  color: #a2af94;
  font-size: 22px;
  pointer-events: none;
}
.search {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border-color: #3a4530;
  background: #1a2116;
}
.search-wrap .search {
  padding-left: 39px;
}
.filter-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 13px;
  margin-bottom: 14px;
  min-width: 0;
}
.tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  gap: 6px;
  margin: 0 -16px 10px;
  padding: 0 16px 6px;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.tabs::-webkit-scrollbar,
.task-filter::-webkit-scrollbar {
  display: none;
}
.tabs button {
  flex: 0 0 auto;
  font-size: 12px;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  background: #1a2016;
}
.task-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
  min-height: 44px;
}
.filter-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #8f9c83;
  margin-right: 5px;
}
.task-filter > * {
  flex: 0 0 auto;
}
.task-filter button {
  padding: 7px 11px;
  font-size: 11px;
  border-color: transparent;
  white-space: nowrap;
  border-radius: 6px;
  color: #aab79c;
}
.task-filter button.active {
  background: #c3f46c;
  color: #1b290e;
  font-weight: 700;
}
.result-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  min-height: 35px;
  margin-bottom: 10px;
}
.result-label button {
  padding: 4px 0 4px 10px;
  color: var(--lime);
  border: 0;
  font-size: 10px;
  min-height: 35px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.card {
  min-width: 0;
  padding: 20px;
  border-radius: 12px;
}
.model-card {
  display: flex;
  flex-direction: column;
}
.card-top {
  gap: 12px;
  padding-right: 34px;
  min-width: 0;
}
.card-top > div {
  min-width: 0;
}
.model-icon {
  width: 43px;
  height: 43px;
  font-size: 28px;
  flex: 0 0 auto;
}
.card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 3px;
}
.card .brand-name {
  font-size: 10px;
}
.star {
  right: 9px;
  top: 13px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  font-size: 24px;
}
.star:disabled {
  opacity: 0.3;
}
.card-description {
  font-size: 13px;
  color: #aab59e;
  line-height: 1.8;
  min-height: 0;
  margin: 16px 0 10px;
}
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 -4px 9px;
}
.task-chip {
  font-size: 11px;
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  background: #29351f;
  color: #d0e7b9;
  border-radius: 5px;
}
.task-chip::before {
  content: "#";
  opacity: 0.5;
  margin-right: 3px;
}
.chips {
  gap: 6px;
  margin: 0 0 17px;
  min-height: 0;
}
.chip {
  padding: 5px 7px;
  font-size: 9px;
  line-height: 1.4;
}
.chip.free {
  color: var(--lime);
}
.price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.price-row strong {
  font-size: 17px;
  font-weight: 600;
}
.price-row small {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 5px;
}
.price-row button {
  min-width: 100px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12px;
  flex: 0 0 auto;
  border-radius: 7px;
}
.page-controls {
  margin: 20px 0;
  gap: 20px;
}
.page-controls button {
  min-width: 44px;
  min-height: 44px;
}
.notice {
  padding: 14px;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.notice > span {
  font-size: 18px;
  line-height: 1.5;
  color: #99ae81;
}
.prompt-strip {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.prompt-mini {
  padding: 16px;
  gap: 15px;
  min-height: 79px;
}
.prompt-mini > span {
  width: 30px;
  flex-shrink: 0;
}
.prompt-mini div {
  min-width: 0;
}
.prompt-mini strong {
  font-size: 13px;
  line-height: 1.5;
}
.prompt-mini small {
  font-size: 10px;
  margin-top: 4px;
}
.prompt-mini i {
  margin-left: auto;
  color: #b1c59a;
  font-style: normal;
}
.text-button {
  border: 0;
  color: var(--lime);
  padding: 4px 0;
  font-size: 12px;
}
.footer {
  gap: 18px;
  margin-top: 27px;
  line-height: 1.7;
  font-size: 10px;
}
.empty {
  padding: 45px 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.empty strong {
  font-size: 20px;
  line-height: 1.6;
  margin: 14px 0;
}
.empty-results {
  grid-column: 1/-1;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.empty-glyph {
  font-size: 42px;
  color: var(--lime);
}
.dialog {
  padding: 27px 22px;
  border-radius: 16px;
  max-height: calc(100dvh - 24px - var(--safe-bottom));
  overscroll-behavior: contain;
  width: 100%;
  scrollbar-width: thin;
}
.dialog h2 {
  font-size: 22px;
  line-height: 1.55;
  margin: 13px 0;
}
.dialog p {
  font-size: 13px;
  line-height: 1.8;
}
.overlay {
  padding: 12px 12px calc(12px + var(--safe-bottom));
  background: #060903dd;
  backdrop-filter: blur(7px);
}
.modal-open {
  overflow: hidden;
}
.dialog .close {
  width: 44px;
  height: 44px;
  right: 5px;
  top: 5px;
  z-index: 2;
  font-size: 22px;
  color: #abb99a;
}
.dialog .eyebrow {
  padding-right: 25px;
}
.dialog-actions {
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
}
.dialog-actions button {
  min-height: 48px;
}
.select-model {
  padding: 11px 12px;
  min-height: 60px;
  margin: 8px 0;
  gap: 12px;
}
.select-model .model-icon {
  width: 35px;
  height: 35px;
  font-size: 23px;
  border-radius: 9px;
}
.select-model .small {
  margin-top: 4px;
  font-size: 10px;
}
.select-model .check {
  font-size: 19px;
}
.balance-big {
  font-size: 42px;
  line-height: 1.4;
  margin: 25px 0;
}
.more-wallet {
  border: 1px solid #4e6136;
  background: #26331d;
  border-radius: 12px;
  padding: 20px;
  margin: 23px 0 10px;
  display: grid;
  gap: 14px;
}
.more-wallet strong {
  font-family: Unbounded;
  font-size: 35px;
  line-height: 1.3;
}
.menu-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 16px;
  width: 100%;
  text-align: left;
  border-color: #3b492e;
}
.menu-row > span {
  color: var(--lime);
  font-size: 22px;
}
.menu-row > span:last-child {
  margin-left: auto;
}
.menu-row div {
  font-weight: 600;
}
.menu-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
}
.memory-item {
  align-items: flex-start;
  padding: 15px;
  gap: 10px;
}
.memory-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.memory-item button {
  flex-shrink: 0;
  min-width: 44px;
  font-size: 20px;
}
.field {
  min-height: 100px;
  resize: vertical;
  font-size: 16px;
}
.memory-toggle {
  line-height: 1.7;
  font-size: 13px;
  min-height: 44px;
  cursor: pointer;
}
.memory-toggle input {
  width: 21px;
  height: 21px;
  accent-color: var(--lime);
  flex-shrink: 0;
}
.amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.amounts button {
  min-height: 48px;
}
.bot-message {
  padding: 16px;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.bot-buttons button {
  min-height: 48px;
}
.bot-label {
  padding-right: 5px;
  line-height: 1.7;
}
.small {
  line-height: 1.6;
}
#toast {
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
  width: max-content;
  max-width: calc(100% - 28px);
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 5px 25px #0006;
  padding: 13px 18px;
}
/* Chat is an app screen: only the message area scrolls. */
.is-chat .main {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.is-chat .content {
  padding: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
}
.is-chat .topbar {
  flex: 0 0 var(--header-height);
}
.chat-layout {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 0;
  gap: 0;
  width: 100%;
}
.chat-list {
  display: none;
}
.conversation {
  width: 100%;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0 12px 10px;
}
.chat-head {
  flex: 0 0 auto;
  padding: 11px 0;
  gap: 8px;
  min-height: 67px;
  display: flex;
}
.chat-head select {
  font-size: 13px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  max-width: none;
  flex: 1;
  padding: 10px 28px 10px 10px;
  text-overflow: ellipsis;
}
.chat-tools {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.chat-head button {
  padding: 8px;
  min-width: 40px;
  min-height: 44px;
  font-size: 18px;
}
.compress-label {
  display: none;
}
.compress-icon {
  font-size: 22px;
}
.chat-menu {
  display: block;
  flex-shrink: 0;
}
.messages {
  padding: 18px 2px;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.message {
  max-width: 96%;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.message small {
  font-size: 9px;
  letter-spacing: 1px;
}
.message .attachment {
  padding: 6px 0;
  color: #bbd69f;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.composer {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 13px;
}
.composer textarea {
  min-height: 64px;
  max-height: 160px;
  resize: vertical;
  padding: 6px 3px;
  font-size: 16px;
  line-height: 1.6;
  outline: 0;
  border-radius: 5px;
}
.composer textarea:focus-visible {
  outline: 0;
}
.composer:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px #c3f46c22;
}
.composer-bottom {
  gap: 6px;
}
.composer-bottom > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.composer-bottom button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
}
.composer-caption {
  font-size: 9px;
  line-height: 1.5;
}
.attachments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.attachments:empty {
  display: none;
}
.attachment-chip {
  border: 1px solid #435632;
  background: #26371d;
  color: #c6e4ab;
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 7px;
  padding-left: 8px;
  max-width: 100%;
  font-size: 10px;
  margin-bottom: 7px;
}
.attachment-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-chip button {
  min-height: 36px;
  min-width: 36px;
  border: 0;
  padding: 4px;
  font-size: 18px;
}
.drawer-backdrop {
  display: none;
}
.chat-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.chat-list-heading h2 {
  font-size: 20px;
  margin: 0;
}
.drawer-open .drawer-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: #0009;
  z-index: 11;
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(3px);
}
.drawer-open .chat-list {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 12;
  width: min(320px, 90%);
  background: #191f15;
  border-right: 1px solid #465737;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}
.chat-list button {
  min-height: 46px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.chat-list > button.active {
  background: #2d3e20;
}
.chat-list-heading button {
  width: 44px;
  margin: 0;
  font-size: 22px;
}
.chat-list .page-controls button {
  width: 44px;
  text-align: center;
  margin: 0;
}
.chat-list .page-controls {
  gap: 12px;
}
.conversation .empty {
  padding: 38px 12px;
}
.conversation .empty strong {
  font-size: 21px;
}
.conversation .notice {
  display: block;
  font-size: 11px;
}
.conversation details summary {
  cursor: pointer;
  min-height: 34px;
  color: var(--lime);
}
@media (min-width: 480px) {
  :root {
    --page-gutter: 24px;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero h1 {
    font-size: 29px;
    max-width: 420px;
  }
  .hero img {
    right: -70px;
    top: -40px;
    width: 350px;
    height: 350px;
  }
  .hero p {
    max-width: 70%;
  }
  .hero .micro {
    display: block;
    font-size: 8px;
  }
  .hero {
    min-height: 270px;
  }
  .tabs,
  .task-filter {
    margin-inline: 0;
    padding-inline: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .model-card .price-row {
    flex-wrap: wrap;
  }
  .model-card .price-row button {
    width: 100%;
  }
  .card-description {
    font-size: 12px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card-top {
    gap: 9px;
  }
  .card .model-icon {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  .card {
    padding: 18px;
  }
  .model-tags {
    gap: 4px;
  }
  .task-chip {
    font-size: 10px;
    padding-inline: 7px;
  }
  .dialog-actions {
    flex-direction: row;
  }
  .dialog-actions button {
    flex: 1;
  }
  .dialog {
    padding: 30px;
  }
  .prompt-mini {
    min-height: 82px;
  }
  .composer-caption {
    font-size: 11px;
  }
  .conversation {
    padding-inline: 20px;
  }
  .message {
    max-width: 88%;
  }
  .amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  :root {
    --page-gutter: 30px;
    --header-height: 72px;
  }
  .hero {
    min-height: 285px;
  }
  .hero h1 {
    font-size: 32px;
    max-width: 520px;
  }
  .hero-copy {
    padding: 30px;
    width: 77%;
    background: linear-gradient(90deg, #191e14 70%, transparent);
  }
  .hero img {
    right: 0;
    top: -60px;
    width: 400px;
    height: 400px;
    opacity: 1;
  }
  .hero p {
    font-size: 13px;
  }
  .hero .micro {
    right: 20px;
    bottom: 20px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .search-wrap {
    width: 260px;
  }
  .section-head > .search {
    width: 280px;
  }
  .tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
  .task-filter {
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px;
  }
  .card {
    padding: 23px;
  }
  .card-description {
    font-size: 13px;
  }
  .card h3 {
    font-size: 17px;
  }
  .card .model-icon {
    width: 43px;
    height: 43px;
    font-size: 28px;
  }
  .task-chip {
    font-size: 11px;
    min-height: 36px;
  }
  .model-card .price-row {
    flex-wrap: nowrap;
  }
  .model-card .price-row button {
    width: auto;
    min-width: 92px;
  }
  .prompt-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .prompt-mini {
    padding: 16px 13px;
    gap: 10px;
  }
  .prompt-mini i {
    display: none;
  }
  .prompt-mini strong {
    font-size: 11px;
  }
  .prompt-mini small {
    font-size: 9px;
  }
  .prompt-mini > span {
    font-size: 23px;
    width: 23px;
  }
  .chat-list {
    display: block;
    position: static;
    width: 220px;
    flex: 0 0 220px;
    padding: 20px 15px;
    border-right: 1px solid var(--border);
    background: #141a10;
    overflow: auto;
    min-height: 0;
  }
  .chat-menu,
  .drawer-close,
  .drawer-backdrop,
  .drawer-open .drawer-backdrop {
    display: none;
  }
  .drawer-open .chat-list {
    position: static;
    width: 220px;
    padding: 20px 15px;
  }
  .chat-list-heading h2 {
    font-size: 17px;
  }
  .chat-list-heading {
    margin-bottom: 15px;
  }
  .compress-label {
    display: inline;
    font-size: 11px;
  }
  .compress-icon {
    display: none;
  }
  .chat-head button {
    min-width: 44px;
    font-size: 16px;
  }
  .chat-head select {
    max-width: 220px;
  }
  .conversation {
    padding: 0 22px 16px;
  }
  .balance-big {
    font-size: 48px;
  }
  .empty strong {
    font-size: 23px;
  }
}
@media (min-width: 1100px) {
  :root {
    --page-gutter: 42px;
    --header-height: 77px;
  }
  .layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
  }
  .main {
    grid-column: 2;
    padding-bottom: 0;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    height: 100dvh;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-top: 0;
    background: #141711;
  }
  .sidebar > .brand {
    display: flex;
  }
  .sidebar > .tag,
  .sidebar-footer,
  .nav .desktop-only {
    display: block;
  }
  .sidebar > .tag {
    margin-bottom: 32px;
  }
  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    height: auto;
  }
  .nav button {
    text-align: left;
    padding: 12px;
    font-size: 13px;
    min-height: 48px;
    white-space: normal;
  }
  .nav b {
    display: inline-block;
    width: 29px;
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
  }
  .nav .mobile-more {
    display: none;
  }
  .sidebar-footer {
    margin-top: auto;
  }
  .mobile-brand,
  .mobile-balance {
    display: none;
  }
  .topbar {
    position: sticky;
    padding: 0 42px;
  }
  .crumb {
    display: block;
  }
  .demo-pill {
    font-size: 10px;
    padding: 7px 11px;
  }
  .content {
    padding-top: 32px;
  }
  .hero-copy {
    width: 72%;
    padding: 30px 34px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero img {
    right: -10px;
  }
  .hero button {
    font-size: 12px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .model-card .price-row {
    flex-wrap: wrap;
  }
  .model-card .price-row button {
    width: 100%;
  }
  .section-head {
    margin: 28px 0 19px;
  }
  .footer {
    font-size: 11px;
  }
  #toast {
    bottom: 24px;
  }
  .is-chat .main {
    padding-bottom: 0;
  }
  .is-chat .content {
    max-width: none;
  }
  .chat-list {
    width: 220px;
    flex-basis: 220px;
  }
  .drawer-open .chat-list {
    width: 220px;
  }
  .conversation {
    padding-inline: 28px;
    padding-bottom: 20px;
  }
  .message {
    max-width: 85%;
  }
  .prompt-mini strong {
    font-size: 12px;
  }
  .prompt-mini small {
    font-size: 10px;
  }
  .hero p {
    font-size: 13px;
  }
  .filter-block {
    padding-bottom: 12px;
  }
  .dialog {
    padding: 32px;
  }
  .hero {
    margin-bottom: 32px;
  }
}
@media (min-width: 1400px) {
  :root {
    --page-gutter: 52px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero img {
    right: 40px;
    top: -55px;
    width: 420px;
    height: 420px;
  }
  .hero {
    min-height: 300px;
  }
  .model-card .price-row {
    flex-wrap: nowrap;
  }
  .model-card .price-row button {
    width: auto;
  }
  .card {
    padding: 24px;
  }
  .chat-list {
    width: 255px;
    flex-basis: 255px;
    padding: 24px 20px;
  }
  .drawer-open .chat-list {
    width: 255px;
    padding: 24px 20px;
  }
  .conversation {
    padding-inline: 40px;
  }
  .message {
    max-width: 78%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  button:active {
    transform: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .sidebar,
  .topbar {
    background: #151a12;
  }
  .overlay {
    background: #060903f5;
  }
}
.hero img {
  z-index: 0;
}
.task-chip {
  min-height: 44px;
}
.mobile-balance {
  min-height: 44px;
}
.attachment-chip button {
  min-width: 44px;
  min-height: 44px;
}
.face-logo {
  clip-path: none;
  object-fit: contain;
  background: #10150d;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  image-rendering: auto;
}
.mobile-brand {
  font-size: 12px;
  gap: 8px;
}
.mobile-brand .face-logo {
  width: 38px;
  height: 38px;
}
.chat-face {
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
  image-rendering: auto;
}
.hero-actions:empty {
  display: none;
}
.pricing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -1px 0 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pricing-toolbar > span {
  font-size: 11px;
  color: #a9b59c;
}
.price-unit {
  display: flex;
  padding: 3px;
  border: 1px solid #3a472d;
  background: #171e12;
  border-radius: 9px;
  gap: 3px;
}
.price-unit button {
  min-width: 64px;
  min-height: 38px;
  font-size: 12px;
  border: 0;
  border-radius: 6px;
  padding: 7px 13px;
  color: #9cae89;
}
.price-unit button.active {
  background: var(--lime);
  color: #1e2b10;
  font-weight: 700;
}
.price-unit button {
  min-height: 44px;
}
.family-avatar {
  width: 64px;
  height: 73px;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #11160e;
  border: 1px solid #38432c;
}
.family-avatar img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}
.family-badge {
  position: absolute;
  inset: auto 0 0;
  min-height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2115f5;
  border-top: 1px solid #405031;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.35px;
  color: #e0edcf;
}
.family-avatar.compact {
  width: 44px;
  height: 44px;
  border-radius: 7px;
}
.family-avatar.compact img {
  width: 42px;
  height: 42px;
}
.model-card .card-top {
  gap: 13px;
  align-items: center;
}
.model-card .card-description {
  margin-top: 13px;
}
.select-model:has(.family-avatar) {
  min-height: 68px;
}
.model-card h3 {
  font-size: 17px;
}
@media (min-width: 480px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-card .price-row {
    flex-wrap: wrap;
  }
  .model-card .price-row button {
    width: 100%;
  }
}
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .model-card h3 {
    font-size: 16px;
  }
  .model-card .card-top {
    gap: 10px;
  }
  .model-card .family-avatar {
    width: 57px;
    height: 67px;
  }
  .model-card .family-avatar img {
    width: 55px;
    height: 55px;
  }
  .family-badge {
    font-size: 8px;
  }
}
@media (min-width: 1400px) {
  .model-card .price-row {
    flex-wrap: nowrap;
  }
  .model-card .price-row button {
    width: auto;
  }
  .model-card .family-avatar {
    width: 64px;
    height: 73px;
  }
  .model-card .family-avatar img {
    width: 62px;
    height: 62px;
  }
  .model-card h3 {
    font-size: 17px;
  }
  .family-badge {
    font-size: 9px;
  }
}
.model-card .price-row {
  flex-wrap: wrap;
}
.token-prices {
  display: flex;
  gap: 18px;
  flex: 1 0 100%;
  min-width: 0;
}
.token-prices > div {
  min-width: 0;
}
.token-prices small {
  margin: 0 0 5px;
  font-size: 10px;
  color: #9ead8f;
  line-height: 1.6;
}
.token-prices strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}
.token-prices > div + div strong {
  color: #c4d3b4;
  font-size: 14px;
  padding-top: 2px;
}
.model-card .price-row > button {
  width: 100%;
  margin-top: 2px;
}
.token-prices > div:only-child small {
  margin-top: 5px;
  margin-bottom: 0;
}
@media (min-width: 380px) {
  .model-card .price-row {
    flex-wrap: nowrap;
  }
  .token-prices {
    flex: 1 1 auto;
    gap: 14px;
  }
  .model-card .price-row > button {
    width: auto;
    min-width: 94px;
    margin: 0;
  }
  .token-prices small {
    font-size: 9px;
  }
  .token-prices strong {
    font-size: 15px;
  }
  .token-prices > div + div strong {
    font-size: 13px;
  }
}
@media (min-width: 640px) {
  .model-card .price-row {
    flex-wrap: wrap;
  }
  .token-prices {
    flex-basis: 100%;
    gap: 25px;
  }
  .model-card .price-row > button {
    width: 100%;
    margin-top: 2px;
  }
  .token-prices strong {
    font-size: 17px;
  }
  .token-prices > div + div strong {
    font-size: 15px;
  }
}
@media (min-width: 1500px) {
  .model-card .price-row {
    flex-wrap: nowrap;
  }
  .token-prices {
    flex-basis: auto;
    gap: 16px;
  }
  .model-card .price-row > button {
    width: auto;
    margin: 0;
  }
  .token-prices strong {
    font-size: 16px;
  }
  .token-prices > div + div strong {
    font-size: 14px;
  }
}
.mobile-brand {
  font-size: 10px;
  gap: 6px;
  white-space: nowrap;
}
.mobile-brand .face-logo {
  width: 34px;
  height: 34px;
}
.topbar {
  gap: 8px;
}
.topbar-actions {
  gap: 6px;
}
@media (min-width: 380px) {
  .mobile-brand {
    font-size: 12px;
    gap: 8px;
  }
  .mobile-brand .face-logo {
    width: 38px;
    height: 38px;
  }
  .topbar {
    gap: 12px;
  }
  .topbar-actions {
    gap: 9px;
  }
}
.catalog-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 13px;
}
.category-picker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  background: #1a2116;
  border: 1px solid #3c4a2f;
  border-radius: 8px;
  padding: 6px 10px;
}
.category-picker > span {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #91a17f;
}
.category-picker select {
  background: transparent;
  border: 0;
  padding: 0 20px 0 0;
  min-height: 28px;
  width: 100%;
  max-width: none;
  font-size: 13px;
  color: #e7eedf;
  outline: 0;
}
.category-picker:focus-within {
  border-color: var(--lime);
  outline: 1px solid var(--lime);
}
.filter-button {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}
.filter-button.active,
.favorite-filter.active {
  color: var(--lime);
  border-color: var(--lime);
  background: #29391e;
}
.favorite-filter {
  width: 48px;
  font-size: 24px;
  padding: 5px;
  flex-shrink: 0;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.active-filters button {
  min-height: 36px;
  padding: 5px 12px;
  background: #293d1d;
  color: var(--lime);
  border-color: #526f36;
  font-size: 11px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}
.filter-options button {
  min-height: 46px;
  padding: 10px 16px;
  font-size: 13px;
}
.filter-options button.active {
  background: var(--lime);
  color: #15230b;
  border-color: var(--lime);
}
.filter-apply {
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
}
.connection-banner {
  background: #1c2416;
  border: 1px solid #3b4b2d;
  color: #a9bc97;
  font-size: 11px;
  line-height: 1.8;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.onboard-search {
  min-height: 48px;
  max-height: 48px;
}
.menu-row + .menu-row {
  margin-top: 10px;
}
.topbar-actions:empty {
  display: none;
}
@media (min-width: 768px) {
  .catalog-controls {
    max-width: 550px;
  }
  .filter-button {
    padding-inline: 20px;
  }
}
.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;
}
.page-jump {
  display: flex;
  align-items: center;
  gap: 9px;
}
.page-jump input {
  width: 53px;
  min-height: 44px;
  padding: 6px;
  text-align: center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1a2215;
  font-size: 14px;
  appearance: textfield;
}
.page-jump input::-webkit-inner-spin-button,
.page-jump input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.page-jump span {
  white-space: nowrap;
}
.chat-list .page-controls {
  flex-wrap: wrap;
}
.price-unit {
  flex-shrink: 0;
}
.category-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  width: 100%;
  color: #e7eedf;
}
.category-value > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-value > span:last-child {
  font-size: 19px;
  line-height: 1;
}
.category-value:hover {
  background: transparent;
  border: 0;
}
.category-options {
  display: grid;
  gap: 7px;
  margin-top: 21px;
}
.category-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
}
.category-option.active {
  background: #2d3d20;
  border-color: var(--lime);
  color: var(--lime);
}
.category-count {
  font-size: 11px;
  color: #a6b794;
  margin-left: auto;
}
.category-check {
  font-size: 17px;
  width: 19px;
  text-align: center;
}
.category-picker:focus-within {
  outline: none;
  border-color: var(--lime);
}
.category-picker .category-value:focus-visible {
  outline: none;
}
.category-picker {
  justify-content: center;
}
.category-picker > .category-value {
  min-height: 32px;
}
/* A model picker with bounded text and a dedicated caret, on every screen size. */
.chat-head .chat-model-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: none;
  flex: 1;
  width: auto;
  min-height: 46px;
  padding: 10px 13px;
  background: #25311c;
  border-color: #4a5c33;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}
.chat-model-picker > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-model-picker > span:last-child {
  flex: 0 0 18px;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}
.chat-head .chat-actions-button {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 46px;
  font-size: 23px;
}
.picker-models {
  display: grid;
  gap: 7px;
  margin-top: 5px;
}
.picker-model {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
}
.picker-model.checked {
  border-color: var(--lime);
  background: #2c3b20;
}
.picker-model-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.picker-model-name small {
  font-size: 10px;
  line-height: 1.5;
  color: #a1b48d;
  display: block;
  margin-top: 3px;
  font-weight: 400;
}
.picker-check {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--lime);
  font-size: 18px;
}
.picker-model .family-avatar {
  flex-shrink: 0;
}
.filter-group-title {
  font-size: 12px;
  color: #a5b594;
  font-weight: 500;
  margin: 23px 0 12px;
}
.filter-options {
  margin: 0 0 22px;
}
.filter-options button {
  font-size: 12px;
}
.category-description {
  display: block;
  margin-top: 5px;
  color: #9caf86;
  font-size: 9px;
  line-height: 1.6;
}
.category-option:has(.category-description) {
  min-height: 63px;
}
.category-option {
  min-height: 48px;
}
.danger-action {
  border-color: #724735;
  color: #efb39d;
}
.danger-action > span {
  color: #efb39d;
}
.nav button[data-nav="chats"] b {
  color: var(--lime);
}
.nav button[data-nav="chats"].active b {
  color: var(--lime);
}
.chat-list .page-jump input {
  width: 43px;
}
.image-gen-chip {
  color: #c5b5e6;
  border-color: #5c4a73;
  background: #271e33;
}
.hero img {
  width: 185px;
  height: 240px;
  right: 0;
  top: auto;
  bottom: 0;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.9;
}
.hero-copy {
  background: linear-gradient(
    90deg,
    #191e14 12%,
    #191e14ea 45%,
    #191e1455 100%
  );
}
@media (min-width: 480px) {
  .hero img {
    width: 235px;
    height: 265px;
    right: 0;
    top: auto;
    bottom: 0;
    object-fit: contain;
  }
  .hero-copy {
    background: linear-gradient(90deg, #191e14 20%, #191e14cc 55%, transparent);
  }
}
@media (min-width: 768px) {
  .hero img {
    width: 320px;
    height: 320px;
    right: 10px;
    top: auto;
    bottom: 0;
    object-fit: contain;
  }
  .hero-copy {
    background: linear-gradient(90deg, #191e14 60%, transparent);
    width: 75%;
  }
  .chat-model-picker {
    max-width: 330px;
  }
  .hero h1 {
    font-size: 30px;
  }
}
@media (min-width: 1100px) {
  .hero img {
    width: 350px;
    height: 350px;
    right: 25px;
    top: auto;
    bottom: 0;
    object-fit: contain;
  }
  .hero-copy {
    width: 68%;
  }
}
@media (min-width: 1400px) {
  .hero img {
    width: 380px;
    height: 380px;
    right: 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
.hero img {
  mix-blend-mode: lighten;
}
.auth-gate {
  min-height: 100dvh;
  max-width: 470px;
  margin: auto;
  padding: 70px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.auth-gate > img {
  border-radius: 14px;
}
.auth-gate h1 {
  font-family: Unbounded;
  font-size: 25px;
  line-height: 1.5;
  margin: 0;
}
.auth-gate p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.auth-gate a {
  padding: 15px 22px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
}
.message-image {
  margin: 12px 0 0;
  max-width: 100%;
  display: grid;
  gap: 9px;
}
.message-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 9px;
}
.message-image a {
  color: var(--lime);
  font-size: 11px;
  text-decoration: none;
}
.billing-entry {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.billing-entry > div {
  min-width: 0;
}
.billing-entry strong {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.billing-entry small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.billing-entry > span {
  font-size: 12px;
  white-space: nowrap;
  color: var(--lime);
}
/* Telegram uses its visible viewport; keyboard and system bars reserve real space. */
:root {
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
}
.telegram-app body { padding-top: max(var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px)); }
.is-chat .main { height: var(--app-height, 100dvh); }
.chat-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
.chat-head > button { width: 100%; height: 46px; min-width: 0; padding: 0; }
.chat-head .chat-model-picker { width: 100%; padding: 0 12px; }
.chat-model-picker > span:first-child { flex: 1; }
.chat-model-picker > span.picker-caret {
  flex: 0 0 8px; width: 8px; height: 8px; margin: -4px 3px 0 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.amounts button { width: 100%; height: 50px; padding: 0 8px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.request-cost { margin-top: 12px; border-top: 1px solid #ffffff12; padding-top: 8px; color: var(--muted); font-size: 11px; }
.assistant-pending { color: var(--muted); }
.assistant-pending > span { display: block; }
.thinking-dots { color: var(--lime); letter-spacing: 4px; margin-bottom: 6px; animation: thinking 1.4s ease-in-out infinite; }
@keyframes thinking { 50% { opacity: .35; } }
@media(max-width: 1099px) {
  .keyboard-open { --nav-height: 0px; --safe-bottom: 0px; }
  .keyboard-open .sidebar { display: none; }
  .keyboard-open .is-chat .topbar { display: none; }
  .composer textarea { resize: none; }
  .telegram-app .layout { min-height: var(--app-height, 100dvh); }
}
@media(prefers-reduced-motion: reduce) { .thinking-dots { animation: none; } }
.telegram-app { --safe-top: max(var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px)); }
.telegram-app .is-chat .main { height: calc(var(--app-height, 100dvh) - var(--safe-top, 0px)); }
.markdown-body { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p { margin: 0 0 12px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 { font-family: inherit; font-size: 1.14em; font-weight: 700; line-height: 1.45; margin: 18px 0 10px; }
.markdown-body h1 { font-size: 1.35em; }
.markdown-body h2 { font-size: 1.23em; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; margin: 10px 0 14px; }
.markdown-body li { margin: 5px 0; }
.markdown-body li > p { margin: 0; }
.markdown-body blockquote { margin: 12px 0; padding: 6px 12px; border-left: 3px solid var(--lime); background: #c3f46c08; color: #c3cdb8; }
.markdown-body blockquote p:last-child { margin: 0; }
.markdown-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: #0004; border-radius: 4px; padding: 2px 5px; white-space: pre-wrap; }
.markdown-body pre { overflow-x: auto; max-width: 100%; padding: 13px; margin: 12px 0; border: 1px solid #3c4930; border-radius: 9px; background: #0e120c; overscroll-behavior-x: contain; }
.markdown-body pre code { white-space: pre; overflow-wrap: normal; padding: 0; background: none; line-height: 1.6; }
.markdown-body a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.markdown-body hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.markdown-table { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.markdown-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.markdown-table th, .markdown-table td { border: 1px solid #435237; padding: 7px 10px; text-align: left; min-width: 85px; }
.markdown-table th { background: #c3f46c0d; }
