@font-face {
  font-family: "Golos Text";
  src: url("/golos-text.ttf?v=555a74793ac1f74e") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --app-visible-height: min(100dvh, var(--tg-viewport-stable-height, 100dvh), var(--app-viewport-height, 100dvh));
  --paper: #fff;
  --app-background: #fafaf9;
  --ink: #1c1a17;
  --muted: #6e6864;
  --line: #eae7e5;
  --soft: #fbfaf9;
  --orange: #ff7a21;
  --action: var(--orange);
  --on-action: #301909;
  --accent-ink: #91420d;
  --tint: #fff1e9;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}
:root.telegram-fullscreen { --app-visible-height: var(--app-viewport-height, 100dvh); }
.telegram-fullscreen-mobile { --fullscreen-top-floor: 72px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 270px; }
body.mini-app { isolation: isolate; height: var(--app-visible-height); min-height: 0; overflow: hidden; background: var(--app-background); }
body.office-home {
  --office-wall: #f6ddc6;
  --office-base: #efe6d9;
  --office-art: url("/syusya-office.webp?v=555a74793ac1f74e");
  --office-height: clamp(120px, min(42vw, 29dvh), 236px);
  --office-min-height: clamp(100px, 29vw, 145px);
  --desk-overlap: calc(var(--office-min-height) * .048);
  background: linear-gradient(var(--office-wall) 16%, var(--office-base) 70%);
}
[data-theme="dark"] body.office-home {
  --office-wall: #301d20;
  --office-base: #231e23;
  --office-art: url("/syusya-office-night.webp?v=555a74793ac1f74e");
}
.app-background {
  position: fixed;
  z-index: -1;
  inset: 0 max(0px, calc((100% - 620px) / 2));
  overflow: hidden;
  pointer-events: none;
  color: #906b50;
}
[data-theme="dark"] .app-background { color: #e8b38b; }
.track { position: absolute; width: 31%; height: 32%; }
.track-cat { left: 4%; top: 7%; --print: 24px; --angle: 28deg; --phase: -4s; }
.track-dog { right: 4%; top: 39%; --print: 33px; --angle: -29deg; --phase: -16s; transform: scaleX(-1); }
.track-bird { left: 13%; bottom: 1%; --print: 18px; --angle: 17deg; --phase: -23s; }
.track i {
  --step: 0;
  position: absolute;
  left: calc(var(--step) * 15%);
  bottom: calc(var(--step) * 16%);
  width: var(--print); height: var(--print);
  transform: rotate(var(--angle));
  background:
    radial-gradient(ellipse 28% 23% at 51% 68%, currentColor 97%, transparent),
    radial-gradient(ellipse 10% 15% at 17% 46%, currentColor 96%, transparent),
    radial-gradient(ellipse 10% 16% at 38% 28%, currentColor 96%, transparent),
    radial-gradient(ellipse 10% 16% at 63% 28%, currentColor 96%, transparent),
    radial-gradient(ellipse 10% 15% at 84% 46%, currentColor 96%, transparent);
  opacity: .10;
}
.track-dog i { height: calc(var(--print) * 1.2); }
.track-bird i { background: currentColor; clip-path: polygon(47% 64%, 10% 21%, 8% 14%, 48% 50%, 50% 0, 55% 6%, 56% 51%, 87% 16%, 95% 15%, 59% 66%, 55% 91%, 46% 100%); }
.track i:nth-child(2) { --step: 1; }
.track i:nth-child(3) { --step: 2; }
.track i:nth-child(4) { --step: 3; }
.track i:nth-child(5) { --step: 4; }
.track i:nth-child(6) { --step: 5; }
.track i:nth-child(even) { margin-left: 8%; transform: rotate(calc(var(--angle) + 11deg)); }
@media (prefers-reduced-motion: no-preference) {
  .track i { animation: footprint 29s ease-in-out infinite; animation-delay: calc(var(--phase) + var(--step) * 1.35s); }
}
@keyframes footprint {
  0%, 54%, 100% { opacity: 0; }
  6%, 29% { opacity: .14; }
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: var(--accent-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); font-size: .85rem; }
.shell {
  max-width: 620px;
  min-height: min(100svh, 740px);
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 5.3vw, 32px) max(24px, env(safe-area-inset-bottom));
}
.mini-app {
  --mini-safe-top: max(var(--fullscreen-top-floor, 0px), calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)));
  --mini-safe-bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  --mini-safe-left: calc(max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px)) + var(--tg-content-safe-area-inset-left, 0px));
  --mini-safe-right: calc(max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px)) + var(--tg-content-safe-area-inset-right, 0px));
  --shell-left: max(clamp(16px, 5.3vw, 32px), var(--mini-safe-left));
  --shell-right: max(clamp(16px, 5.3vw, 32px), var(--mini-safe-right));
  font-family: "Golos Text", system-ui, sans-serif;
}
.mini-app .shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-block: calc(12px + var(--mini-safe-top)) max(12px, var(--mini-safe-bottom));
  padding-inline: var(--shell-left) var(--shell-right);
}
.office-home .shell {
  max-width: none;
  --shell-left: max(var(--mini-safe-left), clamp(16px, 5.3vw, 32px), calc((100vw - 556px) / 2));
  --shell-right: max(var(--mini-safe-right), clamp(16px, 5.3vw, 32px), calc((100vw - 556px) / 2));
}
.top, .tools, .tools-start, .tools-end {
  display: flex;
  align-items: center;
}
.top { position: relative; z-index: 5; flex: none; }
.tools { width: 100%; justify-content: space-between; gap: 9px; }
.tools-start { flex: 1; min-width: 0; gap: 7px; }
.tools-end { flex: none; gap: 7px; }
.new-chat { display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px; font: inherit; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.new-chat .plus-glyph { flex: none; scale: .82; }
.location-toggle { display: flex; align-items: center; min-width: 0; gap: 8px; color: #59453d; font-size: .85rem; font-weight: 680; }
.country-location { color: #4f4368; }
#location-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-glyph {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-radius: 60% 60% 60% 3px;
  transform: translateY(-1px) rotate(-45deg);
}
.pin-glyph::after { content: ""; position: absolute; inset: 2.3px; border-radius: 50%; background: currentColor; }
.history-glyph { position: relative; width: 17px; height: 17px; border: 1.6px solid currentColor; border-radius: 50%; }
.history-glyph::after { content: ""; position: absolute; top: 3px; left: 6px; width: 4px; height: 5px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; }
.back-glyph { width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: translateX(2px) rotate(45deg); }
#chats-toggle { position: relative; }
.active-search-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 17px;
  padding-inline: 3px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: var(--action);
  color: var(--on-action);
  font-size: .65rem;
  font-weight: 730;
  line-height: 15px;
  text-align: center;
}
.plus-glyph { position: relative; display: block; width: 17px; height: 17px; }
.plus-glyph::before, .plus-glyph::after { content: ""; position: absolute; inset: 7.5px 0; border-radius: 2px; background: currentColor; }
.plus-glyph::after { transform: rotate(90deg); }
.icon, .quiet {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 12px;
}
.icon { display: grid; width: 42px; padding: 0; place-items: center; color: #59453d; }
.balance-toggle { display: flex; flex: none; align-items: center; gap: 6px; border-color: #f5d6c4; background: #fff1e7; color: #913713; font-weight: 740; font-size: .88rem; }
.icon[aria-expanded="true"] { border-color: var(--orange); }
.profile-glyph { position: relative; display: block; width: 19px; height: 18px; }
.profile-glyph::before, .profile-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1.5px solid currentColor;
  transform: translateX(-50%);
}
.profile-glyph::before { top: 0; width: 7px; height: 7px; border-radius: 50%; }
.profile-glyph::after { bottom: 0; width: 15px; height: 6px; border-radius: 9px 9px 4px 4px; }
#search-view { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.office-home #search-view {
  margin-inline: calc(0px - var(--shell-left)) calc(0px - var(--shell-right));
  padding-inline: var(--shell-left) var(--shell-right);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.search-form { position: relative; z-index: 1; flex: none; }
h1 { font-size: clamp(1.86rem, 8vw, 2.95rem); line-height: 1.05; font-weight: 820; letter-spacing: -.06em; }
.hero {
  display: grid;
  grid-template-rows: 1fr;
  flex: none;
  text-align: center;
  margin-inline: calc(0px - var(--shell-left)) calc(0px - var(--shell-right));
  transition: grid-template-rows .2s ease, margin-block .2s ease, opacity .16s ease;
}
.hero-content { min-height: 0; overflow: hidden; }
#search-view.query-focused .hero { grid-template-rows: 0fr; margin-block: 12px 0; opacity: 0; }
.hero h1 {
  display: grid;
  position: relative;
  z-index: 1;
  max-width: min(24ch, calc(100% - var(--shell-left) - var(--shell-right)));
  margin: clamp(32px, 5dvh, 48px) auto 0;
  overflow: hidden;
  font-size: clamp(1.25rem, 5.5vw, 2.1rem);
  font-weight: 640;
  letter-spacing: -.038em;
  line-height: 1.13;
  text-wrap: balance;
  animation: appear .35s ease-out both;
}
.hero h1 span { display: block; }
.hero h1:lang(ka) { line-height: 1.24; padding-bottom: .08em; }
.hero h1 .hero-accent { color: var(--orange); }
.hero-phrase { grid-area: 1 / 1; align-self: center; }
.hero-phrase[aria-hidden] { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-phrase { animation: hero-switch 13s cubic-bezier(.35,0,.2,1) infinite; }
  .hero-phrase:nth-child(2) { animation-delay: -10.4s; }
  .hero-phrase:nth-child(3) { animation-delay: -7.8s; }
  .hero-phrase:nth-child(4) { animation-delay: -5.2s; }
  .hero-phrase:nth-child(5) { animation-delay: -2.6s; }
  .query-focused .hero-phrase { animation-play-state: paused; }
}
@keyframes hero-switch {
  0%, 17%, 100% { opacity: 1; transform: translateY(0); }
  20% { opacity: 0; transform: translateY(-110%); }
  20.01%, 97% { opacity: 0; transform: translateY(110%); }
}
.compose {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / .76);
  box-shadow: 0 10px 25px #3321140a;
}
.compose:focus-within { border-color: #ffab75; box-shadow: 0 0 0 3px var(--tint); }
.field {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-inline: 11px 2px;
  border-radius: 12px;
  background: var(--soft);
}
.search-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  border: 1.8px solid #59453d;
  border-radius: 50%;
}
.search-glyph::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #59453d;
  content: "";
  transform: rotate(47deg);
}
.query-box { display: grid; flex: 1; min-width: 0; }
.query-box > * { grid-area: 1 / 1; }
.query-preview {
  --hint-line-height: 21px;
  display: grid;
  align-content: center;
  min-height: 50px;
  padding: 4px 12px;
  color: #766e68;
  line-height: var(--hint-line-height);
  overflow-wrap: anywhere;
  pointer-events: none;
}
.query-preview > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#search-form .compose textarea { min-height: 40px; padding-block: 8px; }
#search-view:not(.in-chat) .compose { padding: 7px; gap: 6px; }
#search-view:not(.in-chat) #submit-search { min-height: 44px; padding: 8px 18px; border-radius: 19px; }
#submit-search { color: #fff; }
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  max-height: 190px;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  line-height: 24px;
  resize: none;
  background: transparent;
  color: var(--ink);
}
textarea:focus { outline: none; }
textarea::placeholder { color: #766e68; opacity: 1; }
textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 46px;
  padding: 9px 14px;
  color: var(--on-action);
  background: var(--action);
  border: 0;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
}
.primary:active { filter: brightness(.94); }
.search-form .muted { margin: 10px 3px 0; }
.search-scope {
  max-inline-size: 44ch;
  margin: 7px auto 0;
  padding-inline: 4px;
  text-align: center;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.deep-option {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 8px;
  padding: 7px 11px 7px 8px;
  border: 1px solid #efdacf;
  border-radius: 16px;
  background: linear-gradient(105deg, #fff3eb, #fffdfb 76%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease;
}
.search-scope p { margin: 0; }
#scope-open { padding: 4px 10px; background: transparent; border: 0; color: var(--accent-ink, #a83d18); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-weight: 600; cursor: pointer; }
#search-view.query-focused #scope-open { display: none; }
.scope-dialog ol { display: grid; gap: .8em; margin: 0; padding-inline-start: 1.55em; line-height: 1.45; }
.scope-dialog li::marker { color: var(--accent-ink); font-weight: 700; }
.deep-option:has(.deep-input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.deep-option:has(.deep-input:checked) {
  border-color: #df9474;
  background: linear-gradient(105deg, #ffe7d8, #fff5ed 76%);
}
.deep-option:has(.deep-input:disabled) { opacity: .65; cursor: default; }
.deep-mark {
  position: relative;
  display: block;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 11px;
  background: #ffe5d5;
  color: var(--orange);
}
.deep-mark::before, .deep-mark::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}
.deep-mark::before { width: 50%; top: 30%; left: 22%; }
.deep-mark::after { width: 22%; top: 20%; right: 15%; }
.deep-copy { display: grid; gap: 2px; line-height: 1.22; }
#deep-label { font-size: .88rem; font-weight: 720; }
#deep-price { color: var(--accent-ink); font-size: .74rem; }
.deep-input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.deep-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #c89b86;
  border-radius: 7px;
  background: #fffdfb;
}
.deep-input:checked + .deep-check { border-color: var(--action); background: var(--action); }
.deep-input:checked + .deep-check::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--on-action);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
@media (hover: hover) {
  .deep-option:hover:not(:has(.deep-input:disabled)) { border-color: #e09271; }
}
@media (forced-colors: active) {
  .deep-option, .deep-check { border-color: ButtonText; }
  .deep-mark { color: ButtonText; }
  .deep-input:checked + .deep-check::after { border-color: ButtonText; }
}
.query-suggestions {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: calc(100% + 7px);
  padding: 7px;
  display: grid;
  gap: 3px;
  max-height: min(var(--hint-room, 185px), 185px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 9px 27px rgb(54 26 8 / .13);
}
.suggestions-title { padding: 3px 8px 1px; color: var(--muted); font-size: .74rem; font-weight: 680; }
.query-hint { min-height: 30px; text-align: start; border: 0; padding: 5px 8px; border-radius: 9px; background: var(--soft); font-size: .83rem; }
.query-hint:hover, .query-hint:focus-visible { background: var(--tint); }
.recent-query { display: flex; align-items: center; gap: 6px; }
.recent-query .history-glyph { flex: none; color: var(--muted); transform: scale(.76); }
.office-panorama {
  position: relative;
  flex: 0 1 auto;
  height: var(--office-height);
  min-height: var(--office-min-height);
  margin: 2px calc(0px - var(--shell-right)) calc(0px - var(--desk-overlap)) calc(0px - var(--shell-left));
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 8% 94%, transparent);
  mask-image: linear-gradient(transparent, #000 8% 94%, transparent);
  transition: height .2s ease, min-height .2s ease, margin-block .2s ease, opacity .16s ease;
}
.office-paint {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
/* Only the empty wall and desktop at the very edges extend beyond the original panorama. */
.office-paint::before, .office-paint::after, .office-scene { background-image: var(--office-art); background-repeat: no-repeat; }
.office-paint::before, .office-paint::after { content: ""; flex: 1 0 0px; background-size: 20000% 100%; }
.office-paint::before { background-position: left; margin-inline-end: -1px; }
.office-paint::after { background-position: right; margin-inline-start: -1px; }
.office-scene { position: relative; flex: none; height: 100%; aspect-ratio: 3; background-size: 100% 100%; }
#search-view.in-chat .office-panorama { display: none; }
#search-view.query-focused .office-panorama { height: 0; min-height: 0; margin-block: 0; opacity: 0; }
.office-screen {
  position: absolute;
  inset: 37% 51.6% 24.5% 26.8%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.office-screen i {
  grid-area: 1 / 1;
  height: 86%; aspect-ratio: 1;
  background: url("/office-search-items.webp?v=555a74793ac1f74e") left center / 500% 100% no-repeat;
  opacity: 0;
  animation: office-fade 15s ease-in-out infinite;
}
.office-screen i:first-child { opacity: 1; }
.office-screen i:nth-child(2) { background-position-x: 25%; animation-delay: -12s; }
.office-screen i:nth-child(3) { background-position-x: 50%; animation-delay: -9s; }
.office-screen i:nth-child(4) { background-position-x: 75%; animation-delay: -6s; }
.office-screen i:nth-child(5) { background-position-x: 100%; animation-delay: -3s; }
@keyframes office-fade {
  0%, 15%, 100% { opacity: 1; }
  20%, 95% { opacity: 0; }
}
.office-book-box {
  position: absolute;
  left: 73.1%; bottom: 6.2%;
  width: 12.6%; aspect-ratio: 288 / 199;
  background: url("/office-book-box.webp?v=555a74793ac1f74e") center bottom / contain no-repeat;
}
[data-theme="dark"] .office-book-box { filter: brightness(.65) saturate(.8); }
.office-clock {
  position: absolute;
  top: 40.4%; left: 11.35%;
  width: .99%; height: 1px;
  background: #aa5636;
  transform-origin: left center;
  animation: office-tick 60s steps(60, end) infinite;
}
@keyframes office-tick { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
#search-view.query-focused :is(.office-clock, .office-screen i) { animation-play-state: paused; }
.office-home .search-form { margin-bottom: 10px; }
.promo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(62px, 25vw, 141px);
  align-items: center;
  gap: 12px;
  min-height: 145px;
  margin-top: auto;
  padding: 16px;
  overflow: hidden;
  flex: none;
  border: 1px solid #e4ddf7;
  border-radius: 22px;
  background: rgb(250 247 255 / .74);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.telegram-fullscreen .promo { min-height: 0; padding-block: 12px; }
#search-view.query-focused .promo {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, .16s;
}
.promo-copy { position: relative; z-index: 1; }
#promo { cursor: pointer; }
.promo-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  inset-inline-end: 8px;
  width: 31px;
  min-height: 31px;
  border-color: transparent;
  background: rgb(255 255 255 / .68);
  font-size: 1.2rem;
}
.ad-banner { display: block; min-height: 0; }
.ad-banner .primary { width: 100%; }
.ad-form, .ad-form label { display: grid; gap: 6px; }
.ad-form { gap: 12px; }
.ad-form label { font-size: .87rem; font-weight: 630; }
.ad-form :is(input, textarea) { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.ad-form textarea { resize: vertical; }
.promo-copy h2 { font-size: clamp(1rem, 5vw, 1.53rem); font-weight: 730; line-height: 1.08; letter-spacing: -.027em; }
.promo-country { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 2px 6px; background: #eae2ff; color: #40318e; border-radius: 6px; font-size: .73rem; font-weight: 730; }
.promo-country .pin-glyph { transform: translateY(-1px) rotate(-45deg) scale(.77); }
.promo-copy p { margin-top: 7px; color: #534864; font-size: .84rem; line-height: 1.38; }
.promo .primary { min-height: 37px; margin-top: 11px; padding: 6px 10px; color: #fff; background: #3d32cf; font-size: .78rem; }
.promo .primary:active { background: #3025a7; }
.promo-art { position: relative; }
.promo-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 135%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ebe3fc;
}
.promo-art img { display: block; width: 100%; height: auto; }
.in-chat { gap: 9px; }
#search-view.in-chat { margin-top: 12px; }
#chats-toggle[aria-expanded="true"] { border-color: var(--orange); background: var(--tint); }
.history-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #f6f2ee; }
.history-tabs button { min-height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .85rem; }
.history-tabs button[aria-pressed="true"] { background: white; box-shadow: 0 1px 5px #4e2d1318; color: var(--accent-ink); font-weight: 710; }
.chats-list { display: grid; gap: 4px; }
.history-empty { padding: 9px 4px; }
.panel-pages { display: flex; justify-content: space-between; align-items: center; }
.panel-pages .icon { min-height: 32px; width: 35px; font-size: 1.1rem; }
.chat-entry { display: grid; gap: 3px; min-height: 43px; padding: 6px 9px; text-align: start; border: 1px solid transparent; border-radius: 9px; background: rgb(255 255 255 / .6); }
.chat-entry:hover, .chat-entry[aria-current="true"] { background: var(--tint); border-color: #f4d8c8; }
.chat-entry-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.chat-entry-meta { color: var(--muted); font-size: .73rem; }
.chat-entry.thinking .chat-entry-meta { color: var(--accent-ink); }
.chat-entry.thinking .chat-entry-meta::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px; border-radius: 50%; background: currentColor; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 9px; }
.messages, .chat-answer { display: grid; gap: 9px; min-width: 0; }
.message-user {
  justify-self: end;
  max-width: 88%;
  padding: 9px 12px;
  border: 1px solid #f0d3c1;
  border-radius: 15px 15px 4px 15px;
  background: rgb(255 236 224 / .7);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-bot { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; align-items: start; }
.message-bot img { border-radius: 50%; }
.chat-answer { font-size: .94rem; }
.chat-answer .result-card { border-top-left-radius: 6px; }
.reply-options { display: flex; flex-wrap: wrap; gap: 6px; }
.reply-options .quiet { min-height: 37px; padding: 5px 10px; border-color: #edcbb7; color: var(--accent-ink); font-size: .83rem; }
.answer-usage { font-size: .78rem; color: var(--muted); }
.result-feedback {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid #ecd8cd;
  border-radius: 13px;
  background: rgb(255 247 241 / .86);
  font-size: .84rem;
}
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.feedback-meta { display: flex; flex: none; align-items: center; gap: 5px; }
.feedback-cost { padding: 2px 7px; border-radius: 6px; background: #ffe8d9; color: var(--accent-ink); white-space: nowrap; }
.feedback-time {
  min-inline-size: 3.2em;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.feedback-time[data-urgent] { color: var(--accent-ink); }
.feedback-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-actions .quiet { min-height: 36px; padding: 4px 10px; }
.feedback-actions .feedback-accept { color: var(--accent-ink); border-color: #eab99f; background: #fff3e9; font-weight: 680; }
.feedback-note { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.in-chat .compose { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 5px; border-radius: 15px; }
.in-chat .field { padding: 0; }
.in-chat .search-glyph { display: none; }
.in-chat textarea { min-height: 48px; max-height: 92px; padding: 12px 11px; }
.in-chat #submit-search { min-width: 44px; min-height: 43px; border-radius: 11px; font-size: 1.15rem; }
.in-chat #submit-label { display: none; }
.message-user:last-child, .message-bot:last-child { animation: appear .24s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.progress { display: grid; gap: 9px; margin: 12px 0 1px 32px; color: var(--muted); font-size: .85rem; }
.progress-status { display: flex; align-items: flex-start; gap: 9px; }
.progress-status .spinner { margin-top: 3px; }
.progress-note { margin-top: 2px; font-size: .78rem; line-height: 1.4; }
.enable-alerts { justify-self: start; padding: 2px 0; border: 0; background: transparent; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; }
.game-playing .enable-alerts { display: none; }
.spinner { flex: none; width: 16px; height: 16px; border: 2px solid #ffe0cb; border-top-color: var(--orange); border-radius: 100%; animation: turn .9s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.game-open {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  text-align: start;
  font-size: .8rem;
  font-weight: 690;
}
.game-open:hover { border-color: var(--orange); }
.game-open > :last-child { margin-inline-start: 3px; color: var(--accent-ink); }
.game-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tint);
  font: 16px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.catch-game {
  --game-case-hi: #f8f2df;
  --game-case: #e4dfc9;
  --game-case-low: #b9b9a1;
  --game-rim: #52694b;
  --game-inset-left: max(12px, var(--mini-safe-left));
  --game-inset-right: max(12px, var(--mini-safe-right));
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-inline: calc(-1 * var(--shell-left)) calc(-1 * var(--shell-right));
  padding: 4px var(--game-inset-right) 0 var(--game-inset-left);
  background: var(--app-background);
  border-top: 1px solid var(--line);
}
[data-theme="dark"] .catch-game {
  --game-case-hi: #586052;
  --game-case: #434a40;
  --game-case-low: #2a312b;
  --game-rim: #425d41;
}
.mini-app:has(.game-playing) .shell { padding-block-end: max(7px, var(--mini-safe-bottom)); }
#search-view.game-playing { gap: 0; }
.game-playing .chat-log { flex: none; }
.game-playing #messages > :not(:last-child), .game-playing #search-form { display: none; }
.game-playing .message-user:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.game-toolbar { display: flex; align-items: center; gap: 9px; padding: 2px 1px 7px; }
.game-toolbar h2 { font-size: .94rem; font-weight: 730; line-height: 1.12; }
.game-readout { position: absolute; inset: 5% 6% auto; pointer-events: none; display: flex; justify-content: space-between; align-items: center; color: #34452e; }
.game-lives { display: flex; flex: none; align-items: center; gap: 4px; }
.game-lives i { width: 8px; height: 11px; border: 1.4px solid currentColor; border-radius: 55% 55% 47% 47% / 68% 68% 38% 38%; background: currentColor; }
.game-lives i.spent { opacity: .55; background: transparent; }
.game-score { flex: none; display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; font-size: .7rem; }
.game-score b { font: 700 1.24rem/1 "Courier New", monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.game-toolbar .close { flex: none; margin-inline-start: auto; width: 38px; min-height: 38px; }
.game-console {
  position: relative; isolation: isolate; display: grid; flex: 1; min-height: 0;
  grid-template: "lu screen ru" 1fr "ld screen rd" 1fr / clamp(44px, 7vw, 63px) minmax(0, 1fr) clamp(44px, 7vw, 63px);
  align-items: center; gap: clamp(5px, 1.35vw, 12px);
  padding: clamp(7px, 2vw, 16px);
  border: 2px solid var(--game-rim); border-radius: 16px;
  background: linear-gradient(150deg, var(--game-case-hi), var(--game-case) 56%, var(--game-case-low));
  box-shadow: inset 0 0 0 2px var(--game-case-hi), inset 0 -4px 0 var(--game-case-low);
}
.game-stage {
  position: relative; grid-area: screen; align-self: stretch; overflow: hidden; min-height: 0;
  border: 4px solid #566849; border-radius: 9px;
  background: linear-gradient(150deg, #a6b397 0%, #c8cfb4 52%, #b9c4a8 100%);
  box-shadow: 0 0 0 2px var(--game-case-low), inset 2px 3px 7px #35402e45;
}
#game-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
#game-canvas:focus-visible { outline: 1px dashed #647755; outline-offset: -4px; }
.game-key {
  min-width: 0; min-height: 44px; min-block-size: 44px; padding: 0;
  border: 2px solid var(--game-rim); border-radius: 50%; width: 100%; max-width: 63px; aspect-ratio: 1;
  display: grid; place-items: center; justify-self: center;
  background: linear-gradient(145deg, #faf4db, #d8dbbb); color: #475941;
  box-shadow: 0 3px 0 var(--game-rim), inset 0 2px 0 #fff8;
  touch-action: manipulation; font: 700 clamp(1.12rem, 3.4vw, 1.6rem)/1 system-ui, sans-serif;
}
.game-key[data-lane="0"] { grid-area: lu; align-self: end; }
.game-key[data-lane="1"] { grid-area: ru; align-self: end; }
.game-key[data-lane="2"] { grid-area: ld; align-self: start; }
.game-key[data-lane="3"] { grid-area: rd; align-self: start; }
.game-key[aria-pressed="true"] { background: var(--game-rim); color: #fffce9; box-shadow: inset 0 2px 3px #26372677, 0 1px 0 #fff6; }
.game-help { padding: 5px 2px 0; color: var(--muted); text-align: center; font-size: .72rem; line-height: 1.35; }
@media (max-width: 520px) and (min-height: 480px) {
  .game-console {
    grid-template: "screen screen screen" minmax(0,1fr) "lu . ru" 44px "ld . rd" 44px / minmax(50px, 22%) 1fr minmax(50px, 22%);
    gap: 6px 12px; padding: 9px 12px 12px;
  }
  .game-console::after {
    content: ""; grid-column: 2; grid-row: 2 / 4; place-self: center; width: 36%; max-width: 44px; height: 12px;
    background: repeating-linear-gradient(0deg, var(--game-rim) 0 2px, transparent 2px 5px); opacity: .32;
  }
  .game-key { max-width: 65px; height: 44px; aspect-ratio: auto; border-radius: 19px; }
}
.game-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--app-background) 73%, transparent);
}
.game-over-card { display: grid; justify-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: center; }
.game-over-card strong { font-size: .88rem; }
.game-over-card .primary { min-height: 36px; padding: 4px 11px; font-size: .8rem; }

.link-viewer[open] {
  position: fixed;
  inset: var(--mini-safe-top) 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 620px);
  max-width: none;
  height: calc(var(--app-visible-height) - var(--mini-safe-top) - var(--mini-safe-bottom));
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.link-tools { display: flex; align-items: center; gap: 8px; padding: 5px max(9px, var(--mini-safe-right)) 5px max(12px, var(--mini-safe-left)); border-bottom: 1px solid var(--line); }
.link-tools b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .86rem; }
.link-tools .quiet { padding-inline: 12px; font-size: .83rem; font-weight: 650; }
.link-share-panel:not(:empty) { position: absolute; z-index: 2; inset: 0 0 auto; padding: 8px; background: var(--paper); box-shadow: 0 4px 15px #0002; }
.link-tools .icon { display: grid; place-items: center; text-decoration: none; }
.link-content { position: relative; }
.link-viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.link-loading { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); font-size: .85rem; white-space: nowrap; pointer-events: none; }
.link-viewer::backdrop { background: var(--app-background); }
.saved-answer { display: grid; gap: 8px; }
.result-heading { font-size: 1.08rem; font-weight: 790; letter-spacing: -.025em; }
.result-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mini-app .result-card { background: rgb(255 255 255 / .72); }
.result-card:has(.result-photo) { display: flow-root; }
.result-photo { float: right; margin: 0 0 7px 9px; }
.result-photo img, .product-detail img { display: block; object-fit: contain; background: #fff; border-radius: 11px; }
.result-photo img { width: clamp(58px, 17vw, 90px); aspect-ratio: 1; padding: 3px; }
.product-detail { position: absolute; inset: 0; overflow: auto; padding: clamp(16px, 5vw, 32px); background: var(--paper); }
.product-detail h2 { font-size: 1.25rem; line-height: 1.3; }
.product-detail img { width: min(100%, 340px); height: clamp(150px, 30dvh, 270px); margin: 16px auto; }
.product-detail p { white-space: pre-line; margin-top: 13px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.result-actions .quiet { font-size: .86rem; min-height: 39px; }
.share-strip { display: grid; gap: 8px; padding: 14px; background: var(--tint); border-radius: 12px; }
.share-strip input { width: 100%; min-width: 0; background: white; padding: 7px 9px; border: 1px solid #edc6ae; border-radius: 7px; }
.share-strip .result-actions { margin: 0; }
.notice { display: grid; gap: 16px; margin-top: 28px; }
.top-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  width: min(100%, 365px);
  max-height: calc(var(--app-visible-height) - 75px);
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgb(255 253 251 / .94);
  box-shadow: 0 10px 32px rgb(44 24 11 / .13);
}
.settings-panel { background: var(--paper); }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-top h2 { font-size: 1.02rem; font-weight: 780; }
#history-back + h2 { flex: 1; }
.panel-top .close { width: 34px; min-height: 34px; border: 0; background: var(--soft); font-size: 1.25rem; }
.locale, .payment { display: grid; gap: 7px; font-size: .85rem; }
.locale h3, .payment h3 { font-size: .85rem; }
.profile-balance { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #efdcd0; border-radius: 13px; background: #fff6ef; }
.profile-balance > div { display: grid; gap: 1px; }
.profile-balance .muted { font-size: .73rem; }
.profile-balance strong { font-size: 1.23rem; line-height: 1.1; font-weight: 730; color: #8c3a19; }
.balance-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #c14b25; background: #ffe8d8; }
.flame-glyph { display: inline-block; flex: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: normal; line-height: 1; }
.payment { padding-top: 4px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pack {
  display: grid;
  justify-items: start;
  gap: 1px;
  min-width: 0;
  border: 1px solid var(--pack-line);
  border-radius: 13px;
  background: var(--pack-wash);
  padding: 7px 6px;
  color: var(--pack-ink);
  font-size: .69rem;
}
.pack:nth-child(1) { --pack-wash: #edf7f1; --pack-line: #d1e7da; --pack-ink: #275d44; }
.pack:nth-child(2) { --pack-wash: #f2edfc; --pack-line: #e6dcf8; --pack-ink: #51408a; }
.pack:nth-child(3) { --pack-wash: #fff0e8; --pack-line: #f5d9ca; --pack-ink: #8a391b; }
.pack:hover, .pack:focus-visible { border-color: currentColor; }
.pack strong { display: flex; align-items: center; gap: 5px; font-size: 1.05rem; }
.pack .pack-price { margin-top: 3px; font-weight: 730; white-space: nowrap; }
.quota-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .74rem; }
.quota-note .flame-glyph { font-size: .78rem; }
.payment .muted { font-size: .75rem; }
.payment p:empty { display: none; }
.payment-terms summary { width: fit-content; cursor: pointer; color: var(--accent-ink); list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.payment-terms summary::-webkit-details-marker { display: none; }
.payment-terms p { margin-top: 5px; padding: 6px; background: var(--soft); border-radius: 7px; font-size: .75rem; }
.payment-terms[open] { flex-basis: 100%; }
.settings-links { display: flex; flex-wrap: wrap; gap: 4px 13px; font-size: .76rem; }
.languages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 10px; background: #f4f1ee; }
#themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.language-choice {
  min-width: 0;
  min-height: 27px;
  padding: 2px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #655c57;
  font-size: .77rem;
}
.language-choice[aria-pressed="true"] { background: white; box-shadow: 0 1px 4px #3825121b; color: #833a15; font-weight: 690; }
.city-dialog {
  margin: auto;
  width: min(92vw, 390px);
  max-height: calc(var(--app-visible-height) - 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fffdfa;
  box-shadow: 0 16px 44px #2a170b29;
}
.city-dialog[open] { display: grid; gap: 9px; }
.city-dialog::backdrop { background: #30201d52; }
.city-dialog h2 { font-size: 1.18rem; }
#city-query { width: 100%; min-height: 44px; border: 1px solid #e8ccbb; border-radius: 12px; padding-inline: 11px; background: white; }
.city-results { display: grid; gap: 4px; }
.city-results:empty { display: none; }
.city-entry { display: grid; gap: 2px; min-height: 42px; padding: 5px 9px; text-align: start; border: 1px solid transparent; border-radius: 10px; background: #f8f4f0; }
.city-entry[aria-current="true"], .city-entry:hover { background: var(--tint); border-color: #f4d8c8; }
.city-entry-title { font-weight: 700; font-size: .89rem; }
.city-entry-meta { color: var(--muted); font-size: .76rem; }
.add-city { border-color: #efd3bf; background: #fff2e7; color: var(--accent-ink); font-size: .85rem; font-weight: 710; }
.skip-city { min-height: 38px; border: 0; border-radius: 9px; background: #f8f4f0; color: var(--accent-ink); font-size: .86rem; font-weight: 680; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 13px; font-size: .81rem; }
footer a { color: var(--muted); }
.share-page { min-height: 0; }
.share-page h1 { margin-top: 26px; font-size: clamp(1.55rem, 6vw, 2.25rem); letter-spacing: -.045em; }
.share-page .result-card { margin-top: 9px; }
.share-page .primary { margin-top: 14px; }
.petme-product { gap: 10px; }
.petme-product h1 { margin-top: 4px; }
.petme-product img { width: min(256px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 16px; }
.petme-product .primary { align-self: start; }
@media (min-width: 500px) {
  .promo { min-height: 163px; }
}
@media (max-width: 410px) {
  .chat-tools, .chat-tools :is(.tools-start, .tools-end) { gap: 4px; }
  .chat-tools .icon { width: 36px; }
  .chat-tools :is(.location-toggle, .balance-toggle) { padding-inline: 7px; gap: 4px; }
}
@media (max-width: 300px) {
  .chat-tools { flex-wrap: wrap; }
  .chat-tools .tools-start { min-width: 76px; }
  .chat-tools .tools-end { margin-inline-start: auto; }
}
@media (max-width: 325px) {
  .tools, .tools-start, .tools-end { gap: 4px; }
  .tools .icon { width: 36px; }
  .location-toggle { padding-inline: 7px; }
  .balance-toggle { padding-inline: 7px; }
  .promo { gap: 9px; padding: 12px; }
}
@media (max-height: 540px) {
  .game-playing .progress { margin-block-start: 5px; }
  .game-toolbar { padding-block: 0 3px; }
  .game-toolbar .close { min-height: 36px; }
  .game-over-card { gap: 3px; padding-block: 5px; }
  .hero h1 { margin-top: 23px; font-size: clamp(1.17rem, 5.2vw, 1.55rem); }
  .compose { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 5px; padding: 5px; }
  .compose textarea { min-height: 46px; padding-inline: 10px; }
  .query-preview { padding-inline: 10px; }
  .compose .primary { padding-inline: 9px; font-size: .8rem; }
  .deep-option { grid-template-columns: 32px minmax(0, 1fr) 22px; gap: 8px; min-height: 44px; margin-top: 6px; padding-block: 5px; }
  .deep-mark { width: 32px; border-radius: 9px; }
  .search-form #consent { margin-top: 4px; font-size: .74rem; }
  .search-scope { margin-top: 2px; }
  .promo { min-height: 0; padding: 10px; grid-template-columns: minmax(0, 1fr) clamp(45px, 16vw, 78px); }
  .promo-copy h2 { font-size: 1rem; }
  .promo-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-size: .76rem; }
  .promo .primary { min-height: 31px; margin-top: 7px; padding-block: 4px; }
}
@media (max-height: 455px) {
  .game-playing .message-user:last-child { padding-block: 5px; }
  .game-help { display: none; }
  .hero h1 { margin-top: 16px; }
  .promo { padding: 8px; }
  .promo-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (max-height: 500px) {
  #promo .promo-copy p { display: none; }
}
@supports not (height: 100dvh) {
  :root { --app-visible-height: var(--app-viewport-height, 100vh); }
}
@media (max-height: 365px) {
  .hero h1 { font-size: 1.2rem; }
  .promo-copy p { display: none; }
  .promo-country { margin-top: 4px; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #26222a;
  --app-background: #181619;
  --ink: #f5eeeb;
  --muted: #c0b4ba;
  --line: #403640;
  --soft: #2f2931;
  --accent-ink: var(--orange);
  --tint: #453027;
}
[data-theme="dark"] :is(.icon, .location-toggle, .search-glyph, .query-preview) { color: var(--muted); }
[data-theme="dark"] .search-glyph { border-color: currentColor; }
[data-theme="dark"] .search-glyph::after { background: currentColor; }
[data-theme="dark"] textarea::placeholder { color: var(--muted); }
[data-theme="dark"] :is(.compose, .mini-app .result-card, .top-panel) { background: rgb(38 34 42 / .88); }
[data-theme="dark"] :is(.languages, .history-tabs, .city-entry, .skip-city, #city-query, .share-strip input) { background: var(--soft); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] :is(.language-choice, .history-tabs button) { color: var(--muted); }
[data-theme="dark"] :is(.language-choice, .history-tabs button)[aria-pressed="true"] { background: var(--paper); color: var(--accent-ink); }
[data-theme="dark"] :is(.balance-toggle, .profile-balance, .result-feedback, .feedback-cost, .deep-option, .add-city, .feedback-actions .feedback-accept) { border-color: #654539; color: var(--accent-ink); background: var(--tint); }
[data-theme="dark"] :is(.deep-option:has(.deep-input:checked), .balance-symbol, .deep-mark) { background: #553429; color: var(--orange); }
[data-theme="dark"] .deep-option:has(.deep-input:checked) { border-color: #c47752; background: linear-gradient(105deg, #553429, #3a2a2b); }
[data-theme="dark"] .deep-copy { color: var(--ink); }
[data-theme="dark"] .deep-price, [data-theme="dark"] #deep-price { color: var(--accent-ink); }
[data-theme="dark"] :is(.city-dialog, .settings-panel) { background: var(--paper); }
[data-theme="dark"] :is(.message-user, .chat-entry) { border-color: var(--line); background: rgb(67 43 37 / .8); }
[data-theme="dark"] .promo { background: rgb(45 36 59 / .85); border-color: #4b3c65; }
[data-theme="dark"] .promo-country { background: #46395e; color: #dfd0ff; }
[data-theme="dark"] .promo-close { background: var(--paper); }
[data-theme="dark"] .promo-copy p { color: #d1c2e2; }
[data-theme="dark"] .promo-art::before { background: #403456; }
[data-theme="dark"] .profile-balance strong { color: var(--accent-ink); }
[data-theme="dark"] .pack:nth-child(1) { --pack-wash: #233d33; --pack-line: #38594a; --pack-ink: #b7dfc6; }
[data-theme="dark"] .pack:nth-child(2) { --pack-wash: #3a304c; --pack-line: #534266; --pack-ink: #d8c6f8; }
[data-theme="dark"] .pack:nth-child(3) { --pack-wash: #462e27; --pack-line: #654539; --pack-ink: #ffc6a6; }
@media (prefers-reduced-motion: reduce) {
  .app-background i, .hero h1, .spinner, .message-user, .message-bot, .office-screen i, .office-clock { animation: none; }
  .hero, .office-panorama, .deep-option, .promo, #search-view.query-focused .promo, .query-preview > span { transition: none; }
}
