:root {
  color-scheme: light;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #1e4fd6;
  --bubble-out: #dce8ff;
  --bubble-in: #ffffff;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius: 14px;
  --radius-bubble: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --list-width: 360px;
  --header-h: 56px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #1a2030;
  --surface-2: #242c3c;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --bubble-out: #1e3a5f;
  --bubble-in: #242c3c;
  --border: #2d3748;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hidden {
  display: none !important;
}

.loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.app {
  display: flex;
  width: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  background: var(--surface);
  overflow: hidden;
}

.view--chats {
  display: flex;
  flex: 1;
  min-height: 0;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel--list {
  width: var(--list-width);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.panel--thread {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) 12px 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

.list-header__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.search {
  padding: 10px 12px;
  flex-shrink: 0;
}

.search__input {
  width: 100%;
  height: 40px;
  padding-block: 0;
  padding-inline: 36px 14px;
  border: none;
  border-radius: 20px;
  background: var(--surface-2);
  outline: none;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.search__input::-webkit-search-decoration,
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-results-button,
.search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search__input:focus {
  box-shadow: 0 0 0 2px var(--accent-soft-strong);
}

.search-hits {
  border-bottom: 1px solid var(--border);
  max-height: 200px;
  overflow: auto;
  flex-shrink: 0;
  overscroll-behavior: contain;
}

.chatlist {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background var(--motion-fast);
}

.chat-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--motion-fast);
}

.chat-row:hover {
  background: var(--surface-2);
}

.chat-row.is-active {
  background: var(--accent-soft);
}

.chat-row.is-active::before {
  opacity: 1;
}

.chat-row.is-unread .chat-row__name {
  font-weight: 700;
}

.chat-row.is-unread .chat-row__preview {
  color: var(--text);
  font-weight: 500;
}

.chat-row__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.chat-row.is-unread .chat-row__avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
}

.chat-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-row__body {
  flex: 1;
  min-width: 0;
}

.chat-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.chat-row__name {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-row__time {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-row.is-unread .chat-row__time {
  color: var(--accent);
  font-weight: 600;
}

.chat-row__preview-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.chat-row__preview-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  line-height: 0;
  color: var(--text-muted);
}

.chat-row__preview-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.chat-row__preview {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.chat-row__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Thread header */
.thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) 12px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.thread-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
}

.thread-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-header__info {
  flex: 1;
  min-width: 0;
}

.thread-header__name {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-header__status {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-header__status:empty {
  display: none;
}

/* Messages — vertical only; long-press menu is position:fixed on body */
.messages {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
}

.msg {
  display: flex;
  max-width: min(78%, 520px);
  min-width: 0;
  width: fit-content;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg--out {
  align-self: flex-end;
}

.msg--in {
  align-self: flex-start;
}

.thread-empty {
  align-self: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px max(28px, env(safe-area-inset-bottom, 0px));
}

.thread-empty__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 20em;
  padding: 22px 22px 20px;
  border-radius: 18px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thread-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  background: var(--accent-soft, rgba(30, 79, 214, 0.1));
  color: var(--accent);
  line-height: 0;
}

.thread-empty__icon svg {
  display: block;
}

.thread-empty strong {
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}

.thread-empty span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.messages--chatbg.has-custom-bg .thread-empty__card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .messages--chatbg.has-custom-bg .thread-empty__card {
  background: rgba(26, 32, 48, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .thread-empty__card {
    transition: none;
  }
}

.bubble {
  padding: 8px 12px 6px;
  border-radius: var(--radius-bubble);
  box-shadow: var(--shadow);
  word-break: break-word;
  overflow-wrap: anywhere;
  position: relative;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bubble::after {
  content: "";
  display: table;
  clear: both;
}

.msg--out .bubble {
  background: var(--bubble-out);
  border-bottom-right-radius: 6px;
}

.msg--in .bubble {
  background: var(--bubble-in);
  border-bottom-left-radius: 6px;
}

/* Readable bubbles on custom photo background */
.messages--chatbg.has-custom-bg .msg--in .bubble {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.messages--chatbg.has-custom-bg .msg--out .bubble {
  background: rgba(220, 232, 255, 0.96);
  box-shadow: 0 1px 4px rgba(30, 79, 214, 0.25);
}

html[data-theme="dark"] .messages--chatbg.has-custom-bg .msg--out .bubble {
  background: rgba(30, 58, 95, 0.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .messages--chatbg.has-custom-bg .msg--in .bubble {
  background: rgba(30, 36, 48, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.messages--chatbg.has-custom-bg .bubble:has(.file-chip) {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .messages--chatbg.has-custom-bg .bubble:has(.file-chip) {
  background: rgba(30, 36, 48, 0.94);
}

.bubble:has(.bubble-mosaic),
.bubble:has(.bubble__img),
.bubble:has(.bubble__video) {
  padding: 4px;
}

.bubble:has(.bubble-mosaic) .bubble__text,
.bubble:has(.bubble__img) .bubble__text {
  padding: 4px 8px 0;
}

.bubble__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-bottom: 2px;
  min-width: 0;
}

.bubble__text:empty {
  display: none;
}

.bubble__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  margin-bottom: 0;
}

.bubble__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  float: right;
  margin-left: 12px;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  position: relative;
  top: 4px;
}

.bubble__meta .ticks {
  flex-shrink: 0;
}

.bubble:has(.voice-player) .bubble__meta {
  float: none;
  display: flex;
  margin-top: 6px;
  margin-left: 0;
}

.bubble--sending .bubble__img,
.msg--pending .bubble__img {
  opacity: 0.78;
}

.bubble__send {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.bubble__send.is-fail {
  color: var(--danger);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bubble__send-track {
  margin-top: 6px;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text-muted) 22%, transparent);
  overflow: hidden;
}

.bubble__send-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.bubble__retry {
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

@media (prefers-reduced-motion: reduce) {
  .bubble__img,
  .bubble--sending .bubble__img {
    opacity: 1;
  }
}

/* Composer */
.composer-wrap {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: var(--composer-safe, var(--safe-bottom));
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 10px;
  max-width: 100%;
}

.composer__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  min-height: var(--composer-h);
  padding: 4px 4px 4px 6px;
  border-radius: var(--composer-pill-radius);
  background: var(--surface-2);
}

.composer__input {
  flex: 1;
  min-height: 36px;
  max-height: 120px;
  padding: 8px 10px;
  border: none;
  border-radius: 18px;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 16px;
  line-height: 1.35;
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.btn-icon,
.btn-send {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.btn-icon svg,
.btn-send svg {
  display: block;
  width: var(--nav-icon);
  height: var(--nav-icon);
}

.btn-icon:active,
.btn-send:active {
  transform: scale(0.94);
}

.btn-icon--attach {
  color: var(--text-muted);
}

.btn-send {
  background: var(--accent);
  color: #fff;
}

.btn-send:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.btn-mic {
  color: var(--text-muted);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-mic.is-recording {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.08);
}

.btn-back {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 16px + var(--safe-bottom));
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 14px;
  z-index: 100;
  max-width: min(90vw, 360px);
  text-align: center;
}

.app.is-thread-open .toast {
  bottom: calc(16px + var(--safe-bottom));
}

@media (max-width: 860px) {
  .view--chats {
    position: relative;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .panel--list {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    border-right: none;
  }
  .chatlist {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .panel--thread {
    position: absolute;
    inset: 0;
    z-index: 5;
    transform: translateX(100%);
    transition: transform var(--motion-base);
    background: var(--bg);
  }
  .app.is-thread-open .panel--thread {
    transform: translateX(0);
  }
  .btn-back {
    display: grid;
  }
  .thread-header {
    padding-inline-start: 4px;
  }
}

@media (min-width: 861px) {
  .panel--thread {
    transform: none !important;
  }
  .msg {
    max-width: min(65%, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel--thread {
    transition: none;
  }
  .btn-icon:active,
  .btn-send:active {
    transform: none;
  }
}

.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.reply-bar__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.reply-bar__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.reply-bar__text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble__reply {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble__edited {
  font-size: 10px;
  opacity: 0.75;
}

.msg-menu {
  position: fixed;
  z-index: 220;
  min-width: 160px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.msg-act {
  position: fixed;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(calc(100vw - 16px), 232px);
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg-act .react-picker,
.msg-act__picker {
  position: relative;
  left: auto;
  top: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(4, 44px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.msg-act__menu {
  min-width: 160px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.msg-menu button,
.msg-act__menu button {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.msg-menu button:hover,
.msg-act__menu button:hover {
  background: var(--surface-2);
}

.msg-menu button[data-act="del"],
.msg-act__menu button[data-act="del"] {
  color: var(--danger);
}

.bubble__reacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  clear: both;
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
}

.bubble:has(.bubble__reacts) .bubble__meta {
  float: none;
  display: flex;
  margin-top: 6px;
  margin-left: 0;
}

.bubble:has(.file-chip):has(.bubble__reacts) {
  padding-bottom: 8px;
}

.bubble:has(.file-chip):has(.bubble__reacts) .bubble__meta {
  position: static;
  margin-top: 6px;
}

.bubble-react {
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.bubble-react__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.bubble-react__em {
  font-size: 14px;
  line-height: 1;
}

.bubble-react__n {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.bubble__react-add {
  display: none !important;
  pointer-events: none;
  opacity: 0;
}

.bubble:hover .bubble__react-add,
.bubble:focus-within .bubble__react-add,
.bubble.is-react-open .bubble__react-add {
  display: none;
  opacity: 0;
}

@media (hover: none) {
  .bubble__react-add {
    display: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble__react-add {
    transition: none;
  }
}

.bubble {
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.bubble__text {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg--selecting,
.msg--selecting .bubble,
.msg--selecting .bubble__text {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

.bubble__img {
  cursor: zoom-in;
}

html.vy-compact .msg {
  margin-bottom: 4px;
}

html.vy-compact .bubble {
  padding: 8px 10px;
}

.vy-ask {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: end center;
}

.vy-ask[hidden] {
  display: none !important;
}

.vy-ask__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: default;
}

.vy-ask__card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 18px 16px calc(16px + var(--composer-safe, var(--safe-bottom)));
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
}

.vy-ask__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vy-ask__hint {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

.vy-ask__hint[hidden] {
  display: none !important;
}

.vy-ask__input {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 88px;
  max-height: 40vh;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: var(--surface-2);
  resize: vertical;
  outline: none;
  font-size: 16px;
  line-height: 1.4;
}

.vy-ask__input:focus {
  box-shadow: 0 0 0 2px var(--accent-soft-strong);
}

.vy-ask__row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.vy-ask__btn {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.vy-ask__btn--ok {
  background: var(--accent);
  color: #fff;
}

.vy-ask__btn--danger {
  background: var(--danger);
  color: #fff;
}

@media (min-width: 861px) {
  .vy-ask {
    place-items: center;
  }
  .vy-ask__card {
    border-radius: 16px;
    padding: 20px 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vy-ask,
  .vy-ask__card {
    transition: none;
  }
}
