/* iBEZA home screen: soft green paper, tactile greeting, round shortcuts. */
body.in-app {
  background: #dcebd4;
}
body.in-app .main-panel {
  background-color: #dcebd4;
  background-image: linear-gradient(120deg, #edf5e6a8 0%, #d7e9d1b0 55%, #d5e7ceb8 100%), url('/assets/paper.09f83727d578.svg');
  background-blend-mode: normal, multiply;
}
body.in-app .chat-main {
  background-image: url('/assets/chat-doodles.5345f82c6961.svg');
  background-repeat: repeat;
  background-size: 156px 156px;
  background-position: center top;
}
.app-shell.mobile-viewport-layout { height: var(--ibeza-visible-height, 100dvh); min-height: 0; overflow: hidden; }
.app-shell.mobile-viewport-layout .main-panel,
.app-shell.mobile-viewport-layout .chat-main { min-height: 0; }
.chat-topbar {
  height: calc(72px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border: 0;
  background: linear-gradient(90deg, #f8fbf4d9, #eaf3e9d9);
  box-shadow: 0 2px 18px #41553b0b;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.chat-topbar .menu-button {
  display: grid;
  width: 43px;
  height: 43px;
  flex: none;
  color: #6c6d63;
}
.chat-topbar .menu-button svg { width: 30px; height: 30px; }
.chat-topbar .chat-top-title { margin-right: auto; font-size: 17px; letter-spacing: -.06em; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-actions > button {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  flex: none;
  margin: 0;
  padding: 4px;
  border: 2px solid #8bb282;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fff5, #dcebd6);
  color: #245b31;
  box-shadow: 0 2px 7px #617b5730, 0 2px 3px #fff inset;
  transition: transform .18s, box-shadow .18s;
}
.top-actions > button:hover, .top-actions > button[aria-expanded=true] {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #617b5740, 0 2px 3px #fff inset;
}
.top-actions > button svg { width: 31px; height: 31px; }
.top-actions .profile-avatar { overflow: hidden; border-color: #a0c590; }
.top-actions .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-actions .profile-avatar span { width: 100%; height: 100%; display: grid; place-items: center; }
.top-actions .profile-avatar span svg { width: 29px; height: 29px; }
.top-actions .my-ads-button { font-size: 0; }
.top-actions .wallet-shortcut { border-color: #75a778; background: linear-gradient(145deg, #f7fdf4, #d9edda); }
.top-actions .taxi-shortcut, .top-actions .taxi-toggle {
  border-color: #ccaa42;
  background: linear-gradient(145deg, #ffe995, #f9c847);
  color: #24251d;
}
.top-actions .taxi-toggle.is-online {
  border-color: #4b9c48;
  background: linear-gradient(145deg, #e4ffa6, #9bdf6c);
  color: #1d4f20;
  box-shadow: 0 0 0 3px #a3d98ab3, 0 2px 12px #6caf63;
}
.top-actions .admin-tariffs-button { width: auto; min-width: 49px; padding: 0 9px; font-size: 10px; }
.conversation {
  max-width: 900px;
  padding-top: clamp(52px, 9vh, 100px);
}
.intro-mark {
  font-size: clamp(90px, 13vw, 150px);
  color: #343735;
  letter-spacing: -.13em;
  text-shadow: 1px 2px 0 #f7fff2, -2px -2px 2px #7d8a78, 4px 7px 7px #434b4075, 9px 13px 13px #3d493451;
}
.conversation-kicker { margin: 30px 0 15px; color: #907969; font-size: 11px; letter-spacing: .28em; }
.conversation-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; color: #111511; }
.conversation-subtitle { max-width: 550px; margin: 18px auto 55px; font-size: 17px; line-height: 1.5; color: #6b6c64; }
.welcome-message {
  display: block;
  width: min(100%, 720px);
  max-width: none;
  margin: 0 auto 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #181b17;
  text-align: left;
}
.welcome-message .message-label { display: block; margin: 0 0 9px 23px; font-size: 14px; letter-spacing: .02em; }
.welcome-message .message-body {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 165px;
  padding: 28px 38px;
  border: 2px solid #fffefa;
  border-radius: 48px;
  background: linear-gradient(155deg, #ffffffec 0%, #f9fbf6e5 55%, #e6e9e0e5 100%);
  box-shadow: 0 18px 34px #57674e48, 0 5px 4px #fff inset, 0 -6px 9px #7d89786b inset;
  font-size: clamp(23px, 3.1vw, 32px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.22;
  white-space: normal;
}
.welcome-message .message-body::before,
.welcome-message .message-body::after {
  left: 21%; right: 22%; height: 25px;
  border: 1px solid #ffffffc7;
  border-radius: 0;
  background: linear-gradient(90deg, #ffffff71, #f6f6e5af 45%, #ffffff85);
  box-shadow: 0 2px 5px #67746040;
}
.welcome-message .message-body::before { top: -12px; transform: rotate(-2deg); }
.welcome-message .message-body::after { bottom: -12px; left: 18%; right: 17%; transform: rotate(1deg); }
body.in-app .conversation .message-body::before,
body.in-app .conversation .message-body::after { content: none; }
body.in-app .conversation .message:not(.welcome-message):not(.taxi-pair-prompt) .message-body,
body.in-app .conversation .search-response .message-body {
  width: fit-content;
  max-width: 100%;
}
body.in-app .conversation .message.assistant-message:not(.welcome-message):not(.taxi-pair-prompt) .message-body,
body.in-app .conversation .search-response .message-body {
  padding: 5px 15px;
  line-height: 1.42;
}
body.in-app .conversation .message:not(.user-message):not(.welcome-message):not(.taxi-pair-prompt) .message-body,
body.in-app .conversation .search-response .message-body {
  border-color: #fff9e9;
  background: linear-gradient(145deg, #fffdf6, #f0ecdf);
  box-shadow: 0 7px 18px #53604c29, 0 2px 3px #fff9 inset;
  color: #263026;
}
body.in-app .conversation .user-message .message-body {
  margin-left: auto;
  padding: 5px 15px;
  line-height: 1.42;
  border-color: #cfc3b1;
  background: linear-gradient(145deg, #f1ebdf, #d9cebd);
  box-shadow: 0 7px 18px #655b4c26, 0 2px 3px #ffffffa6 inset;
  color: #302f2a;
}
body.in-app .conversation .user-message .message-label { color: #685f51; }
body.in-app .conversation .search-response .message-label,
body.in-app .conversation .assistant-message .message-label { color: #72634f; }
body.in-app .conversation .message:not(.welcome-message) .message-body::after,
body.in-app .conversation .search-response .message-body::after {
  content: '';
  position: absolute;
  top: auto;
  bottom: -10px;
  left: 17px;
  right: auto;
  width: 17px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: #f0ecdf;
  box-shadow: 2px 3px 4px #53604c24;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: none;
}
body.in-app .conversation .message.user-message:not(.welcome-message) .message-body::after {
  left: auto;
  right: 17px;
  background: #d9cebd;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
body.in-app .conversation .message.taxi-pair-prompt:not(.welcome-message) .message-body::after { background: #f3edce; }
.welcome-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  flex: none;
  border: 2px solid #83ab77;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f6fff1, #d7ebd3);
  color: #245b31;
}
.welcome-icon svg { width: 62px; height: 62px; }
.registration-open { display: none; }
.composer-area {
  padding: 12px 22px max(15px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #eaf2e6f5, #eaf2e6b2 76%, transparent);
}
.composer {
  position: relative;
  z-index: 6;
  border: 1px solid #fffffff0;
  border-radius: 31px;
  background: #ffffffed;
  box-shadow: 0 16px 28px #60705a37, 0 3px 5px #fff inset;
}
.composer-row { align-items: center; min-height: 50px; padding: 4px 12px 4px 18px; }
.attach-button { width: 36px; height: 36px; font-size: 30px; color: #5e5f57; }
.attach-button { border: 0; padding: 0; background: transparent; }
.attachment-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid #d9e4d1;
  border-radius: 19px;
  background: #fffefa;
  box-shadow: 0 15px 35px #4657423d;
}
#attachment-menu-list { display: grid; gap: 3px; }
#attachment-menu-list button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #2d4930;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
}
#attachment-menu-list button:hover { background: #edf5e8; }
#attachment-menu-list svg { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#attachment-clear-chat { color: #7f473d !important; }
#attachment-clear-confirm { padding: 8px 9px 6px; }
#attachment-clear-confirm p { margin: 0 0 14px; color: #354133; font-size: 13px; line-height: 1.5; }
.attachment-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
.attachment-confirm-actions button { min-height: 39px; padding: 8px 13px; border: 1px solid #cbd9c5; border-radius: 10px; background: #eef5e9; color: #315334; font: inherit; font-size: 13px; font-weight: 750; }
.attachment-confirm-actions #attachment-clear-accept { background: #8c483d; border-color: #8c483d; color: white; }
.composer textarea { padding-top: 4px; padding-bottom: 4px; font-size: 17px; line-height: 1.4; }
.send-button { width: 40px; height: 40px; font-size: 25px; background: #333632; }
.composer-note { margin: 10px 0 0; font-size: 12px; }

@media (max-width: 760px) {
  .chat-topbar { height: calc(62px + env(safe-area-inset-top)); padding-left: 16px; padding-right: 16px; }
  .chat-topbar .chat-top-title { display: none; }
  .top-actions { gap: clamp(6px, 2.1vw, 11px); }
  .top-actions > button { width: clamp(41px, 11vw, 48px); height: clamp(41px, 11vw, 48px); }
  .top-actions > button svg { width: 29px; height: 29px; }
  .conversation { padding: 55px 10px 35px; }
  .intro-mark { font-size: clamp(86px, 23vw, 120px); }
  .conversation-kicker { margin: 25px 0 14px; font-size: 9px; letter-spacing: .25em; }
  .conversation-title { font-size: clamp(28px, 7.1vw, 38px); white-space: nowrap; }
  .conversation-subtitle { max-width: 350px; margin: 14px auto 48px; font-size: 15px; }
  .welcome-message .message-body { min-height: 134px; gap: 15px; padding: 20px 19px; border-radius: 37px!important; font-size: clamp(19px, 5.1vw, 27px); }
  .welcome-icon { width: 68px; height: 68px; }
  .welcome-icon svg { width: 48px; height: 48px; }
  .composer-area { padding: 11px 12px max(13px, env(safe-area-inset-bottom)); }
  .composer-row { min-height: 50px; }
  .composer textarea { font-size: 16px; }
  .composer-note { font-size: 10px; }
}
@media (max-width: 370px) {
  .chat-topbar { padding-left: 8px; padding-right: 8px; }
  .top-actions { gap: 4px; }
  .top-actions > button { width: 40px; height: 40px; }
  .top-actions .admin-tariffs-button { font-size: 8px; padding: 0 4px; }
  .conversation-title { font-size: 25px; }
  .welcome-message .message-body { font-size: 18px; }
}
@media (min-width: 761px) {
  .chat-topbar .menu-button { display: none; }
}

/* Temporarily hide the settings shortcut; its markup and behavior stay available. */
#menu-button { display: none !important; }
.public-image-link { display: block; width: fit-content; max-width: 100%; margin: 9px 0 4px; color: #276044; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.public-chat-browser { width: min(560px,100%); margin: 10px 0 14px; overflow: hidden; border: 1px solid #9eae9b; border-radius: 16px; background: #fffdf8; box-shadow: 0 7px 20px #3b4a3233; }
.public-chat-browser-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px 7px 14px; border-bottom: 1px solid #d8e0d5; background: #eff4ec; color: #435947; font-size: 13px; }
.public-chat-browser-bar button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #dfe9dc; color: #284531; font-size: 25px; line-height: 1; cursor: pointer; }
.public-chat-image { margin: 0; padding: 10px; }
.public-chat-image img { display: block; width: 100%; max-height: 58vh; object-fit: contain; border-radius: 9px; }
.public-chat-image figcaption { padding: 8px 3px 2px; font-size: 12px; line-height: 1.4; }
.public-chat-image figcaption a { color: #34603d; overflow-wrap: anywhere; }
.public-chat-source-frame { display: block; width: 100%; height: min(68vh, 620px); border: 0; background: #fff; }
.public-chat-browser-bar a { min-width: 0; overflow-wrap: anywhere; color: #276044; font-weight: 700; }
.last-chat-button { position: sticky; top: 8px; z-index: 3; display: block; width: fit-content; margin: -30px 0 8px auto; padding: 7px 11px; border: 1px solid #93ae90; border-radius: 999px; background: #f3f8edee; color: #315c39; box-shadow: 0 2px 8px #273c2622; font-size: 12px; font-weight: 800; }
.last-chat-button:disabled { opacity: .6; }

