/* Small WhatsApp-style sent confirmation */
.ticket-update-confirm--small.ticket-update-confirm--minimal.ticket-update-confirm--underbubble {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--white);
  margin: 2px 0 0 auto;
  padding: 0 2px 0 0;
  text-align: right;
  background: none;
  border: none;
  box-shadow: none;
  font-weight: 400;
  line-height: 1.3;
  width: fit-content;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  animation: sentConfirmIn 0.38s cubic-bezier(0.33, 1.02, 0.57, 1) forwards;
}

@keyframes sentConfirmIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ticket-update-confirm--small .sent-check {
  color: var(--white);
  font-size: 13px;
  line-height: 1;
  margin-right: 2px;
}
.ticket-update-confirm--small .sent-label {
  color: var(--white);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}
/* ═══════════════════════════════════════════════════════════════
  Backspin Support · style.css
  Theme: ARCADE BOARD — bright blue / purple / neon green
  ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
textarea,
a {
  touch-action: manipulation;
}

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg-top: #71c0ef;
  --bg-mid: #4b72e0;
  --bg-bottom: #203b92;

  --card: #28449f;
  --card-hi: #213885;
  --surface: rgba(25, 42, 107, 0.9);
  --glass: rgba(95, 179, 232, 0.84);
  --glass-bd: rgba(255, 255, 255, 0.18);

  --green: #92ec3f;
  --green-dim: rgba(146, 236, 63, 0.17);
  --green-mid: rgba(146, 236, 63, 0.24);
  --green-glow: rgba(92, 196, 30, 0.26);
  --green-text: #324d12;

  --orange: #f3b15a;
  --orange-2: #e79126;
  --orange-dim: rgba(243, 177, 90, 0.17);
  --orange-glow: rgba(231, 145, 38, 0.24);

  --red: #f26f82;
  --red-dim: rgba(242, 111, 130, 0.16);
  --blue: #86d3ef;
  --blue-dim: rgba(134, 211, 239, 0.15);
  --purple: #7252d5;
  --purple-dim: rgba(114, 82, 213, 0.16);
  --teal: #5cbddd;
  --teal-dim: rgba(92, 189, 221, 0.12);

  --white: #ffffff;
  --text: #e3ebff;
  --muted: #9eb1df;
  --cream: #f8eccc;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;

  --r: 18px;
  --r-sm: 14px;
  --r-xs: 10px;
  --r-pill: 999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --focus: rgba(173, 236, 255, 0.6);
}

/* ── Base ───────────────────────────────────────────────────── */
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 43, 110, 0.1), rgba(18, 43, 110, 0.24)),
    linear-gradient(
      180deg,
      var(--bg-top) 0%,
      #6dbfe8 13%,
      var(--bg-mid) 32%,
      #4063c6 52%,
      var(--bg-bottom) 100%
    );
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Keep app fully blocked until player auth succeeds. */
body.auth-pending #app {
  visibility: hidden;
  pointer-events: none;
}

#auth-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(110, 189, 233, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(20, 41, 112, 0.96), rgba(17, 33, 95, 0.98));
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.auth-pending #auth-loading-modal {
  display: flex;
  opacity: 1;
}

.auth-loading-card {
  width: min(100%, 380px);
  border-radius: 24px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(151, 219, 255, 0.32);
  background: linear-gradient(180deg, rgba(42, 68, 156, 0.95), rgba(29, 49, 122, 0.95));
  box-shadow: 0 18px 48px rgba(9, 20, 59, 0.42);
  text-align: center;
  transform: translateY(8px) scale(0.985);
  animation: authCardIn 0.42s cubic-bezier(0.23, 1, 0.32, 1) forwards, authCardFloat 3.8s ease-in-out 0.45s infinite;
}

.auth-loading-logo.brand-logo {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 12px;
  object-fit: cover;
  border-radius: 14px; /* override generic circular brand-logo */
  animation: authLogoPulse 2.2s ease-in-out infinite;
}

.auth-loading-title {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: #eff8ff;
  animation: authTitleGlow 2.4s ease-in-out infinite;
}

.auth-loading-sub {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(226, 239, 255, 0.86);
}

.auth-loading-help {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
  color: #ffd6dc;
  font-weight: 700;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.32s ease, opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.32s;
}

.auth-loading-help.is-visible {
  max-height: 140px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.auth-loading-help-text {
  text-align: left;
}

.auth-loading-help-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-loading-email {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(160, 206, 255, 0.35);
  background: rgba(9, 22, 70, 0.45);
  color: #eaf6ff;
  font: 800 15px/1 var(--font);
  padding: 0 12px;
  outline: none;
}

.auth-loading-copy-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(158, 233, 255, 0.45);
  background: linear-gradient(180deg, rgba(120, 223, 255, 0.25), rgba(120, 223, 255, 0.12));
  color: #f2fbff;
  font: 900 20px/1 var(--font);
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.18s ease;
}

.auth-loading-copy-btn:hover {
  filter: brightness(1.08);
}

.auth-loading-copy-btn:active {
  transform: translateY(1px) scale(0.98);
}

.auth-loading-spinner {
  width: 34px;
  height: 34px;
  margin: 16px auto 0;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #9fe7ff;
  box-shadow: 0 0 0 0 rgba(159, 231, 255, 0.28);
  animation: authSpin 0.9s linear infinite, authSpinnerGlow 1.7s ease-in-out infinite;
}

#auth-loading-modal.auth-failed .auth-loading-spinner {
  display: none;
}

#auth-loading-modal.auth-failed .auth-loading-card {
  border-color: rgba(255, 162, 176, 0.55);
  background: linear-gradient(180deg, rgba(74, 52, 110, 0.95), rgba(57, 40, 92, 0.95));
}

#auth-loading-modal.auth-failed .auth-loading-title {
  color: #ffd9e0;
  animation: none;
}

#auth-loading-modal.auth-failed .auth-loading-sub {
  color: #ffe8ec;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes authLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(159, 231, 255, 0)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 4px 10px rgba(159, 231, 255, 0.28)); }
}

@keyframes authTitleGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(184, 240, 255, 0); }
  50% { text-shadow: 0 0 14px rgba(184, 240, 255, 0.24); }
}

@keyframes authSpinnerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 231, 255, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(159, 231, 255, 0); }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 21, 70, 0.18), rgba(8, 21, 70, 0.28)),
    url("bg.webp") center/cover no-repeat,
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 64px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 82px
    );
  background-blend-mode: soft-light, normal, normal, normal;
  opacity: 0.62;
  pointer-events: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 20% 8%,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.04) 18%,
      transparent 36%
    ),
    radial-gradient(
      circle at 85% 22%,
      rgba(114, 82, 213, 0.2) 0%,
      transparent 28%
    ),
    radial-gradient(
      circle at 18% 88%,
      rgba(146, 236, 63, 0.08) 0%,
      transparent 30%
    );
}

#support-toast-stack {
  position: fixed;
  top: calc(var(--safe-top) + 10px);
  left: 12px;
  right: 12px;
  z-index: 12020;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.support-toast {
  width: min(100%, 430px);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(12, 24, 64, 0.94);
  border: 1px solid rgba(134, 211, 239, 0.24);
  box-shadow:
    0 16px 28px rgba(11, 25, 75, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.support-toast.info {
  border-color: rgba(134, 211, 239, 0.24);
}

.support-toast.error {
  border-color: rgba(242, 111, 130, 0.34);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.hero-logo {
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
#hdr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 10px;
  padding-top: calc(var(--safe-top) + 7px);
  height: calc(76px + var(--safe-top));
  background: linear-gradient(
    180deg,
    rgba(102, 186, 232, 0.94) 0%,
    rgba(78, 137, 230, 0.9) 100%
  );
  border-bottom: 1.5px solid rgba(20, 53, 162, 0.65);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px rgba(21, 39, 113, 0.22);
  flex-shrink: 0;
  z-index: 20;
}

#hdr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, #4fe2ff, #7650ff, #23b8ff);
  box-shadow: 0 2px 8px rgba(28, 45, 135, 0.22);
}

.support-disclaimer {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.inbox-fab-stack {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.inbox-disclaimer {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  margin: 6px auto 0;
  text-align: center;
}

.chat-disclaimer {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

#hdr-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(180deg, #6f34ff 0%, #5220d6 100%);
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.13s,
    filter 0.13s;
  box-shadow:
    0 6px 0 #381391,
    0 10px 18px rgba(40, 18, 116, 0.25);
}
#hdr-back.visible {
  display: flex;
}
#hdr-back:active {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #381391,
    0 6px 12px rgba(40, 18, 116, 0.25);
}
#hdr-back:hover {
  filter: brightness(1.06);
}

.hdr-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid rgba(255, 245, 206, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(121, 52, 255, 0.14),
    0 8px 16px rgba(80, 37, 199, 0.18);
}

.hdr-info {
  flex: 1;
  min-width: 0;
}
.hdr-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(18, 34, 95, 0.4);
  margin-bottom: 2px;
}
.hdr-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 10px rgba(158, 255, 25, 0.8);
}
.status-dot.offline {
  background: var(--orange);
  box-shadow: 0 0 9px rgba(255, 179, 56, 0.65);
  animation: blink 1.3s ease-in-out infinite;
}
.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 102, 120, 0.65);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.status-text {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-text.online {
  color: var(--cream);
}

.lang-sel {
  display: flex;
  background: rgba(30, 58, 157, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 5px;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.lang-btn {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}
.lang-btn.active {
  background: linear-gradient(180deg, #b6ff4f 0%, #72eb18 100%);
  color: #244114;
  box-shadow: 0 4px 0 #359f00;
}
.lang-btn:active,
.lang-btn.tap-pressed {
  transform: translateY(1px);
}
.lang-btn.active:active,
.lang-btn.active.tap-pressed {
  box-shadow: 0 2px 0 #359f00;
}

/* ══════════════════════════════════════════════════════════════
   INBOX SCREEN
   ══════════════════════════════════════════════════════════════ */
#inbox-screen {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--support-header-offset, calc(76px + var(--safe-top)));
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
#inbox-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    rgba(16, 30, 80, 0) 0%,
    rgba(16, 30, 80, 0.42) 34%,
    rgba(10, 19, 58, 0.82) 100%
  );
  pointer-events: none;
  z-index: 8;
}
#inbox-screen.hidden {
  display: none;
}

/* ─── Messages Screen ───────────────────────────────────────── */
#messages-screen {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--support-header-offset, calc(76px + var(--safe-top)));
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
#messages-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    rgba(16, 30, 80, 0) 0%,
    rgba(16, 30, 80, 0.42) 34%,
    rgba(10, 19, 58, 0.82) 100%
  );
  pointer-events: none;
  z-index: 8;
}
#messages-screen.hidden {
  display: none;
}
.messages-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 18px 122px;
}
.messages-search-wrap {
  position: relative;
  padding: 14px 0 8px;
  background: none;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 14;
  overflow: visible;
}
.messages-search-wrap::before {
  content: "";
  position: absolute;
  inset: -62px -18px -22px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 19, 60, 0.9) 0%,
    rgba(9, 19, 60, 0.68) 42%,
    rgba(9, 19, 60, 0.34) 76%,
    rgba(9, 19, 60, 0) 100%
  );
}
.messages-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 49, 130, 0.96) 0%, rgba(19, 37, 102, 0.96) 100%);
  border: 2px solid rgba(126, 210, 255, 0.16);
  box-shadow: 0 10px 20px rgba(8, 18, 58, 0.26), 0 2px 8px rgba(8, 18, 58, 0.18);
}
.messages-search-icon {
  font-size: 15px;
  opacity: 0.82;
}
.messages-filter-tabs {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.messages-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.messages-actions-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.messages-actions-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 210, 255, 0.18);
  border-radius: 14px;
  background: rgba(14, 28, 76, 0.72);
  color: rgba(236, 244, 255, 0.9);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.messages-actions-toggle:hover,
.messages-actions-toggle:focus-visible {
  background: rgba(25, 46, 120, 0.84);
  border-color: rgba(126, 210, 255, 0.3);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(8, 18, 58, 0.22);
  outline: none;
}

.messages-actions-toggle:active,
.messages-actions-toggle.tap-pressed {
  transform: translateY(1px) scale(0.98);
}

.messages-actions-toggle.is-open {
  background: rgba(25, 46, 120, 0.88);
  border-color: rgba(126, 210, 255, 0.34);
  color: var(--white);
}

.messages-actions-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messages-actions-menu {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  right: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(126, 210, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 33, 92, 0.98) 0%, rgba(12, 22, 66, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(4, 12, 38, 0.34);
  z-index: 40;
}

#messages-list {
  position: relative;
  z-index: 1;
}

.messages-actions-menu-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 246, 255, 0.9);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.messages-actions-menu-btn:hover,
.messages-actions-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
}

.messages-actions-menu-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.messages-actions-menu-btn:active,
.messages-actions-menu-btn.tap-pressed {
  transform: translateY(1px) scale(0.99);
}
.messages-filter-tab {
  flex: 1;
  min-height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 33, 92, 0.66);
  color: rgba(226, 236, 255, 0.78);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.messages-filter-tab.active {
  background: linear-gradient(180deg, rgba(186, 255, 95, 0.96) 0%, rgba(118, 232, 29, 0.96) 100%);
  color: #274510;
  border-color: rgba(186, 255, 95, 0.56);
  box-shadow: 0 4px 12px rgba(73, 173, 6, 0.28);
}
.messages-filter-tab:active,
.messages-filter-tab.tap-pressed {
  transform: translateY(1px) scale(0.99);
}
#messages-search-input {
  width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  padding: 13px 0;
}
#messages-search-input::-webkit-search-decoration,
#messages-search-input::-webkit-search-cancel-button,
#messages-search-input::-webkit-search-results-button,
#messages-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
#messages-search-input::placeholder {
  color: rgba(226, 236, 255, 0.54);
}
.messages-scroll::-webkit-scrollbar {
  display: none;
}

.messages-load-more {
  margin: 14px auto 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(223, 238, 255, 0.78);
}

#chat-screen.hidden {
  display: none !important;
}

.inbox-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 14px 18px 122px;
}
.inbox-scroll::-webkit-scrollbar {
  display: none;
}

.inbox-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 6px 16px;
  padding: 2px 4px;
  background: none;
  border: none;
  box-shadow: none;
}
.inbox-hero::before {
  display: none;
}
.inbox-hero::after {
  display: none;
}

.inbox-hero > * {
  position: relative;
  z-index: 1;
}

.inbox-hero-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffd467 0%, #ffab1e 100%);
  color: #4a2600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
  box-shadow: 0 4px 0 #d06e00;
}
.inbox-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: #ff4b3a;
  box-shadow: 0 0 0 3px rgba(255, 77, 58, 0.22);
}

.inbox-hero-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-bottom: 4px;
  max-width: none;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(24, 19, 92, 0.52);
}
.inbox-hero-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  max-width: none;
}

/* Inbox hero — support assistant avatar (clean, horizontal layout) */
.inbox-hero-av {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.inbox-hero-av-ring {
  display: none;
}
.inbox-hero-av-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 3px 0 rgba(12, 27, 90, 0.55), 0 6px 16px rgba(12, 27, 90, 0.35);
}
.inbox-hero-text {
  flex: 1;
  min-width: 0;
}

/* Personalized title (username greeting — no uppercase, no block layout needed) */
.inbox-hero-title.personalized {
  text-transform: none;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

/* ─── Quick Answers — Article Cards ─────────────────────────────── */
.inbox-articles {
  margin-bottom: 8px;
}
.inbox-articles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inbox-article-card {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font);
  background: linear-gradient(
    160deg,
    rgba(32, 58, 155, 0.96) 0%,
    rgba(18, 38, 113, 0.96) 100%
  );
  border: none;
  border-radius: 18px;
  padding: 13px 14px 13px 13px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 5px 0 rgba(12, 27, 90, 0.7),
    0 10px 20px rgba(12, 27, 90, 0.2);
  transition: transform 0.13s ease, box-shadow 0.13s ease, filter 0.13s ease;
  opacity: 0;
  animation: iacIn 0.38s ease-out forwards;
  animation-delay: calc(var(--iac-idx, 0) * 55ms);
}
.inbox-article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1.5px solid rgba(126, 210, 255, 0.15);
  pointer-events: none;
}
@keyframes iacIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inbox-article-card:active,
.inbox-article-card.tap-pressed {
  transform: translateY(2px) scale(0.993);
  filter: brightness(1.06);
  box-shadow:
    0 2px 0 rgba(12, 27, 90, 0.7),
    0 5px 10px rgba(12, 27, 90, 0.18);
}
@media (hover: hover) {
  .inbox-article-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
      0 7px 0 rgba(12, 27, 90, 0.68),
      0 14px 28px rgba(12, 27, 90, 0.28);
  }
}
.iac-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
}
.iac-body {
  flex: 1;
  min-width: 0;
}
.iac-cat {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}
.iac-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.iac-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 244, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.iac-arrow svg {
  display: block;
}

/* ─── Inbox Tab Bar ─────────────────────────────────────────── */
.inbox-tabs {
  display: flex;
  gap: 6px;
  padding: 2px 2px 14px;
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  background: linear-gradient(
    180deg,
    var(--bg-bottom) 0%,
    var(--bg-bottom) 70%,
    rgba(32, 59, 146, 0) 100%
  );
}
.inbox-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  white-space: nowrap;
}
.inbox-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
}
.inbox-tab:active,
.inbox-tab.tap-pressed {
  transform: scale(0.95);
}
.inbox-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-tab-badge {
  background: linear-gradient(180deg, #ff7ed2 0%, #ff4fa8 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(255, 78, 168, 0.5);
}
.inbox-tab-badge:empty {
  display: none;
}

/* ─── Inbox Panels ───────────────────────────────────────────── */
.inbox-panel {
  animation: panelIn 0.22s ease-out both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inbox-panel.hidden {
  display: none;
}

/* ─── Stacked Sections (Messages / Recent / Quick Answers) ─── */
.inbox-stacked-section {
  margin-bottom: 14px;
}
.inbox-stacked-section.hidden {
  display: none;
}
.inbox-stacked-faq {
  margin-bottom: 48px; /* extra breathing room before the FAB */
}

/* Messages section header row — styled like the competitor's dark card */
.inbox-stacked-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 11px 16px;
  margin-bottom: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.14s, transform 0.12s;
  box-shadow: 0 6px 0 rgba(12, 27, 90, 0.45), 0 10px 20px rgba(12, 27, 90, 0.18);
}
@media (hover: hover) {
  .inbox-stacked-hdr:hover {
    background: rgba(255, 255, 255, 0.11);
  }
}
.inbox-stacked-hdr:active,
.inbox-stacked-hdr.tap-pressed {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 3px 0 rgba(12, 27, 90, 0.45), 0 6px 12px rgba(12, 27, 90, 0.16);
}
.inbox-stacked-hdr-label {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.inbox-stacked-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-stacked-hdr-badge {
  background: linear-gradient(180deg, #ff7ed2 0%, #ff4fa8 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 78, 168, 0.45);
}
.inbox-stacked-hdr-badge:empty {
  display: none;
}
.inbox-stacked-hdr-chevron {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  margin-right: -2px;
}

/* Recent section: give the card a slightly elevated look */
#inbox-recent .convo-card {
  border-radius: 24px;
}
#inbox-recent .convo-card-preview {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

/* Section labels */
.inbox-section-lbl {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 16px 0 10px 4px;
  text-shadow: 0 2px 0 rgba(19, 35, 102, 0.42);
}

/* Conversation cards */
.convo-card {
  background: linear-gradient(
    180deg,
    rgba(29, 54, 145, 0.98) 0%,
    rgba(18, 38, 113, 0.98) 100%
  );
  border-radius: 24px;
  padding: 16px 16px 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  border: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
  box-shadow:
    0 8px 0 rgba(12, 27, 90, 0.85),
    0 14px 22px rgba(12, 27, 90, 0.22);
}
.convo-card.has-unread {
  background: linear-gradient(
    180deg,
    rgba(93, 28, 122, 0.98) 0%,
    rgba(45, 31, 132, 0.98) 52%,
    rgba(20, 48, 132, 0.98) 100%
  );
  box-shadow:
    0 8px 0 rgba(56, 19, 87, 0.92),
    0 0 0 4px rgba(255, 102, 204, 0.2),
    0 18px 28px rgba(255, 102, 204, 0.18);
}
.convo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid rgba(126, 210, 255, 0.22);
  opacity: 1;
}
.convo-card.open::before {
  border-color: rgba(126, 210, 255, 0.22);
  box-shadow: none;
}
.convo-card.has-unread::before {
  border-color: rgba(255, 140, 221, 0.55);
}
.convo-card.open::after {
  /* subtle teal left-edge for open (awaiting reply) */
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: rgba(126, 210, 255, 0.35);
}
.convo-card.has-unread::after {
  /* bright pulsing pink bar for new-reply / unread */
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 6px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #ff88d8 0%, #ff4fa8 100%);
  animation: unreadBarPulse 1.6s ease-in-out infinite;
}
@keyframes unreadBarPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.convo-card:active {
  transform: translateY(2px);
  background: var(--card-hi);
  box-shadow:
    0 5px 0 rgba(12, 27, 90, 0.85),
    0 9px 14px rgba(12, 27, 90, 0.2);
}
.convo-card.tap-pressed {
  transform: translateY(2px) scale(0.992);
  filter: brightness(1.04);
  box-shadow:
    0 5px 0 rgba(12, 27, 90, 0.85),
    0 9px 14px rgba(12, 27, 90, 0.2);
}
.convo-card.has-unread:active,
.convo-card.has-unread.tap-pressed {
  box-shadow:
    0 5px 0 rgba(56, 19, 87, 0.92),
    0 0 0 3px rgba(255, 102, 204, 0.2),
    0 12px 18px rgba(255, 102, 204, 0.16);
}
@media (hover: hover) {
  .convo-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 0 rgba(12, 27, 90, 0.82),
      0 20px 30px rgba(12, 27, 90, 0.28);
  }
}

.convo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.convo-card-id {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.convo-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.convo-card-subject {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convo-card-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-chip-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.convo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.convo-badge.open {
  background: linear-gradient(180deg, #b6ff4f 0%, #72eb18 100%);
  color: #244114;
}
.convo-badge.closed {
  background: linear-gradient(180deg, #7a7fd4 0%, #5f67be 100%);
  color: var(--white);
}

.convo-reply-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(12, 20, 58, 0.94);
  border: 1px solid rgba(252, 129, 207, 0.5);
  color: #ffc4ee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 2px rgba(252, 129, 207, 0.14);
}

.convo-reply-chip b {
  color: #fff7ff;
  font-size: 11px;
}

.convo-reply-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff7ed2 0%, #ff4e9f 100%);
  box-shadow: 0 0 0 0 rgba(255, 94, 171, 0.55);
  animation: replyDotPulse 1.2s ease-out infinite;
}

@keyframes replyDotPulse {
  100% {
    box-shadow: 0 0 0 8px rgba(255, 94, 171, 0);
  }
}

/* Empty state */
.inbox-empty {
  text-align: center;
  padding: 24px 18px;
  margin-top: 10px;
  border-radius: 28px;
  background: rgba(18, 38, 113, 0.65);
  border: 2px dashed rgba(150, 195, 255, 0.22);
}
.inbox-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 1;
}
.inbox-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.inbox-empty-sub {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  font-weight: 600;
}
.inbox-empty-hint-title {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.inbox-empty-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.inbox-empty-hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: rgba(119, 222, 255, 0.12);
  border: 1px solid rgba(119, 222, 255, 0.18);
}

.inbox-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.inbox-recent-loading {
  margin-top: 0;
}

.inbox-loading-card {
  height: 110px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(29, 54, 145, 0.72) 0%,
    rgba(18, 38, 113, 0.72) 100%
  );
  border: 2px solid rgba(126, 210, 255, 0.14);
}

.inbox-loading-card.short {
  height: 92px;
}
.inbox-loading-card.recent {
  height: 110px;
}

.inbox-loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 100%
  );
  animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* FAB — rectangular, not pill */
.inbox-fab-wrap {
  position: absolute;
  bottom: max(14px, calc(var(--safe-bottom) + 10px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
  z-index: 10;
}
.inbox-fab {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #b8ff49 0%, #48dd00 100%);
  color: #294507;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 22px;
  padding: 0 22px;
  cursor: pointer;
  box-shadow:
    0 7px 0 #1d9600,
    0 16px 24px rgba(17, 44, 10, 0.24);
  -webkit-tap-highlight-color: transparent;
  pointer-events: all;
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    filter 0.14s;
}
.inbox-fab:active {
  transform: translateY(2px);
  box-shadow:
    0 5px 0 #1d9600,
    0 10px 16px rgba(17, 44, 10, 0.24);
}
.inbox-fab.tap-pressed {
  transform: translateY(2px) scale(0.992);
  filter: brightness(1.04);
  box-shadow:
    0 5px 0 #1d9600,
    0 10px 16px rgba(17, 44, 10, 0.24);
}
@media (hover: hover) {
  .inbox-fab:hover {
    filter: brightness(1.06);
  }
}

/* ══════════════════════════════════════════════════════════════
   CHAT SCREEN
   ══════════════════════════════════════════════════════════════ */
#chat-screen {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--support-header-offset, calc(76px + var(--safe-top)));
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.screen-transitioning {
  pointer-events: none;
}

.screen-enter-forward,
.screen-enter-back {
  z-index: 3;
}

.screen-exit-forward,
.screen-exit-back {
  z-index: 2;
}

.screen-enter-forward {
  animation: screenEnterForward 0.4s cubic-bezier(.2,.3,.3,.9) both;
}

.screen-exit-forward {
  animation: screenExitForward 0.4s cubic-bezier(.2,.3,.3,.9) both;
}

.screen-enter-back {
  animation: screenEnterBack 0.4s cubic-bezier(.2,.3,.3,.9) both;
}

.screen-exit-back {
  animation: screenExitBack 0.4s cubic-bezier(.2,.3,.3,.9) both;
}

@keyframes screenEnterForward {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes screenExitForward {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes screenEnterBack {
  from {
    transform: translate3d(-100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes screenExitBack {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-enter-forward,
  .screen-exit-forward,
  .screen-enter-back,
  .screen-exit-back {
    animation: none;
  }
}

#feed {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#feed::-webkit-scrollbar {
  display: none;
}

.chat-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0 8px;
  min-height: calc(100dvh - 250px);
}

.chat-loading-date {
  width: 96px;
  height: 14px;
  margin: 2px auto 2px;
  border-radius: 999px;
  background: rgba(182, 204, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.chat-loading-date.short {
  width: 74px;
  margin-top: 10px;
}

.chat-loading-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-loading-row.bot {
  justify-content: flex-start;
}

.chat-loading-row.user {
  justify-content: flex-end;
}

.chat-loading-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(197, 220, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-loading-avatar.hidden {
  visibility: hidden;
}

.chat-loading-bubble {
  height: 54px;
  border-radius: 20px 20px 20px 12px;
  border: 2px solid rgba(126, 210, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(70, 55, 196, 0.72) 0%,
    rgba(52, 47, 164, 0.72) 100%
  );
  position: relative;
  overflow: hidden;
}

.chat-loading-row.user .chat-loading-bubble {
  border-radius: 20px 20px 12px 20px;
  border-color: rgba(178, 245, 124, 0.2);
  background: linear-gradient(
    180deg,
    rgba(123, 216, 56, 0.72) 0%,
    rgba(84, 170, 32, 0.72) 100%
  );
}

.chat-loading-bubble.w-sm {
  width: min(42%, 250px);
}
.chat-loading-bubble.w-md {
  width: min(58%, 340px);
}
.chat-loading-bubble.w-lg {
  width: min(70%, 430px);
}
.chat-loading-bubble.w-xl {
  width: min(82%, 520px);
}

.chat-loading-avatar::after,
.chat-loading-date::after,
.chat-loading-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 100%
  );
  animation: shimmer 1.05s linear infinite;
}

@media (max-width: 420px) {
  .chat-loading {
    min-height: calc(100dvh - 235px);
    gap: 9px;
  }
  .chat-loading-bubble {
    height: 50px;
  }
}

.date-div {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2px 0 10px;
}

/* ── Message rows ───────────────────────────────────────────── */
.row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 2px;
  opacity: 1;
  transform: translateY(0);
}
.row.is-entering {
  opacity: 0;
  transform: translateY(16px);
  animation: msgInSmooth 0.38s cubic-bezier(0.33, 1.02, 0.57, 1) forwards;
}
.row.bot {
  justify-content: flex-start;
}
.row.user {
  justify-content: flex-end;
}

@keyframes msgInSmooth {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-end;
  box-shadow: 0 4px 0 rgba(52, 79, 158, 0.8);
}
.row-av.hidden {
  display: none;
}

/* ── Bubbles ────────────────────────────────────────────────── */
.bubble {
  max-width: min(86%, 520px);
  padding: 14px 16px;
  line-height: 1.58;
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
  box-shadow:
    0 12px 22px rgba(12, 27, 90, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.row.bot .bubble {
  background: linear-gradient(
    180deg,
    rgba(70, 55, 196, 0.98) 0%,
    rgba(52, 47, 164, 0.98) 100%
  );
  color: var(--white);
  border-radius: 22px 22px 22px 12px;
  border: 2px solid rgba(160, 143, 255, 0.3);
}
.row.bot .bubble b,
.row.bot .bubble strong {
  color: var(--cream);
  font-weight: 900;
}

.staff-bubble {
  background: linear-gradient(
    180deg,
    rgba(28, 94, 177, 0.98) 0%,
    rgba(20, 66, 140, 0.98) 100%
  ) !important;
  border-color: rgba(130, 214, 255, 0.34) !important;
}

.staff-label {
  display: block;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fe4ff;
}

.bubble-meta {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.ticket-state-note {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 16px;
  margin: 8px 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: min(84%, 520px);
}

.ticket-state-note.open {
  background: rgba(119, 222, 255, 0.14);
  color: #9fe4ff;
  border: 1px solid rgba(119, 222, 255, 0.18);
}

.ticket-state-note.waiting_on_player {
  background: rgba(255, 194, 92, 0.16);
  color: #ffd280;
  border: 1px solid rgba(255, 194, 92, 0.2);
}

.ticket-state-note.closed {
  background: rgba(165, 177, 214, 0.14);
  color: #d8e2ff;
  border: 1px solid rgba(165, 177, 214, 0.2);
}

.row.user .bubble {
  background: linear-gradient(180deg, #aef243 0%, #4dc900 100%);
  color: #223e08;
  border-radius: 22px 22px 12px 22px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

/* ── Answer content ─────────────────────────────────────────── */
.ans-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card {
  display: block;
  border-radius: 20px;
  padding: 14px;
  background: linear-gradient(
    180deg,
    rgba(31, 49, 142, 0.56) 0%,
    rgba(19, 33, 94, 0.42) 100%
  );
  border: 1px solid rgba(148, 221, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(8, 20, 64, 0.18);
}

.article-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.article-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
}

.article-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.article-link {
  margin-top: 2px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-xs);
}

.ans-q {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Steps */
.ans-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs); /* square step numbers */
  background: var(--green);
  color: var(--green-text);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.step-text b {
  color: var(--white);
  font-weight: 700;
}

/* Bullets */
.ans-bullets {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bul-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bul-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px; /* square bullet */
  background: var(--green);
  flex-shrink: 0;
  margin-top: 9px;
  opacity: 0.65;
}
.bul-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.bul-text b {
  color: var(--white);
  font-weight: 700;
}

/* Info/warn — left border accent */
.info-box {
  border: 2px solid rgba(124, 255, 154, 0.22);
  background: linear-gradient(
    180deg,
    rgba(79, 184, 111, 0.22) 0%,
    rgba(42, 130, 74, 0.18) 100%
  );
  border-radius: 18px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #dfffe9;
  line-height: 1.55;
}
.warn-box {
  border: 2px solid rgba(255, 201, 94, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 179, 56, 0.2) 0%,
    rgba(255, 138, 0, 0.14) 100%
  );
  border-radius: 18px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff1d2;
  line-height: 1.55;
}

.ans-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 50px;
  background: linear-gradient(180deg, #b8ff49 0%, #48dd00 100%);
  color: #294507;
  font-size: 15px;
  font-weight: 900;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 6px 0 #1d9600;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.14s,
    filter 0.14s;
}
.ans-link:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #1d9600;
}
@media (hover: hover) {
  .ans-link:hover {
    filter: brightness(1.05);
  }
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep typing dots visible — the tdot bounce becomes instant-stop at opacity 0.35
     without this override, making the indicator look broken. */
  .typing-bubble span {
    animation: none !important;
    opacity: 0.7 !important;
  }
  .typing-bubble span:nth-child(1) { opacity: 0.85 !important; }
  .typing-bubble span:nth-child(2) { opacity: 0.65 !important; }
  .typing-bubble span:nth-child(3) { opacity: 0.45 !important; }
  /* Keep unread bar visible without loop */
  .convo-card.has-unread::after {
    animation: none !important;
    opacity: 1 !important;
  }
}

.ai-lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  border: 1px solid rgba(119, 222, 255, 0.16);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  background: rgba(119, 222, 255, 0.14);
}

/* ─── msgIn: entry animation used by chips, typing row, etc. ── */
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Typing indicator ───────────────────────────────────────── */
.typing-row {
  animation: msgIn 0.18s ease both;
}
.typing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(82vw, 290px);
}

.typing-card-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}

.typing-card-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.typing-ping {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(146, 236, 63, 0.45);
  animation: ping 1.4s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(146, 236, 63, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(146, 236, 63, 0);
  }
}

.typing-bubble {
  background: linear-gradient(
    180deg,
    rgba(70, 55, 196, 0.98) 0%,
    rgba(52, 47, 164, 0.98) 100%
  );
  border-radius: 20px 20px 20px 12px;
  border: 2px solid rgba(160, 143, 255, 0.3);
  padding: 14px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-bubble span {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--cream);
  animation: tdot 1.2s ease-in-out infinite;
}
.typing-bubble span:nth-child(2) {
  animation-delay: 0.18s;
}
.typing-bubble span:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes tdot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════════════
   GREETING — centred splash card, square avatar
   ══════════════════════════════════════════════════════════════ */
.greeting-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 6px 6px 12px;
  width: 100%;
  margin: 8px 6px 6px;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.gh-av-wrap {
  display: none;
}

.gh-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(132, 228, 255, 0.4);
  animation: rpulse 2.8s ease-in-out infinite;
}
.gh-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(158, 255, 25, 0.28);
  animation: rpulse 2.8s ease-in-out infinite 0.55s;
}
@keyframes rpulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.gh-av {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 6px 0 rgba(71, 92, 179, 0.88),
    0 14px 20px rgba(20, 30, 81, 0.18);
  animation: floatAv 4s ease-in-out infinite;
}
@keyframes floatAv {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.gh-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}
.gh-text .bot-name {
  display: none;
}
.gh-bubble {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 0.98;
  max-width: none;
  width: 100%;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-shadow: 0 3px 0 rgba(24, 19, 92, 0.52);
}
.gh-bubble b,
.gh-bubble strong {
  color: var(--cream);
  font-weight: 900;
}
.gh-bubble .greet-sub {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-top: 10px;
  line-height: 1.55;
  text-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   CHIPS — square corners throughout
   ══════════════════════════════════════════════════════════════ */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 12px 50px;
  animation: msgIn 0.22s ease both;
  justify-content: flex-start;
}
/* Stagger individual chips inside a chips-wrap */
.chips-wrap .chip:nth-child(1) { animation: chipIn 0.22s 0.04s ease-out both; }
.chips-wrap .chip:nth-child(2) { animation: chipIn 0.22s 0.09s ease-out both; }
.chips-wrap .chip:nth-child(3) { animation: chipIn 0.22s 0.14s ease-out both; }
.chips-wrap .chip:nth-child(4) { animation: chipIn 0.22s 0.19s ease-out both; }
.chips-wrap .chip:nth-child(5) { animation: chipIn 0.22s 0.24s ease-out both; }
.chips-wrap .chip:nth-child(6) { animation: chipIn 0.22s 0.29s ease-out both; }
.chips-wrap .chip:nth-child(n+7) { animation: chipIn 0.22s 0.32s ease-out both; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* cat-grid chips: stagger each row */
.chips-wrap.cat-grid .chip:nth-child(1) { animation: chipIn 0.24s 0.05s ease-out both; }
.chips-wrap.cat-grid .chip:nth-child(2) { animation: chipIn 0.24s 0.11s ease-out both; }
.chips-wrap.cat-grid .chip:nth-child(3) { animation: chipIn 0.24s 0.17s ease-out both; }
.chips-wrap.cat-grid .chip:nth-child(4) { animation: chipIn 0.24s 0.23s ease-out both; }
.chips-wrap.cat-grid .chip:nth-child(5) { animation: chipIn 0.24s 0.29s ease-out both; }
.chips-wrap.cat-grid .chip:nth-child(n+6) { animation: chipIn 0.24s 0.33s ease-out both; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #6058d8 0%, #4946b8 100%);
  border: none;
  border-radius: 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  user-select: none;
  min-height: 48px;
  letter-spacing: 0.01em;
  text-align: left;
}
.chip:hover {
  filter: brightness(1.03);
}
.chip:active {
  transform: translateY(2px) scale(0.99);
}
.chip.tap-pressed {
  transform: translateY(2px) scale(0.99);
  filter: brightness(1.05);
}
.chip .chip-icon {
  font-size: 18px;
}

.chip.green {
  color: #284507;
  background: linear-gradient(180deg, #b8ff49 0%, #48dd00 100%);
  box-shadow:
    0 6px 0 #1d9600,
    0 12px 18px rgba(17, 44, 10, 0.18);
}
.chip.gold {
  color: #5a2c00;
  background: linear-gradient(180deg, #ffd05a 0%, #ff9c15 100%);
  box-shadow:
    0 6px 0 #c76900,
    0 12px 18px rgba(94, 52, 8, 0.16);
}
.chip.white {
  color: var(--white);
  background: linear-gradient(180deg, #6058d8 0%, #4946b8 100%);
  box-shadow:
    0 6px 0 #2e2b87,
    0 12px 18px rgba(27, 30, 105, 0.18);
}
.chip.red {
  color: var(--white);
  background: linear-gradient(180deg, #ff7a8e 0%, #ef4a66 100%);
  box-shadow:
    0 6px 0 #b32042,
    0 12px 18px rgba(105, 24, 45, 0.16);
}
.chip.green:active,
.chip.green.tap-pressed {
  box-shadow:
    0 4px 0 #1d9600,
    0 8px 12px rgba(17, 44, 10, 0.16);
}
.chip.gold:active,
.chip.gold.tap-pressed {
  box-shadow:
    0 4px 0 #c76900,
    0 8px 12px rgba(94, 52, 8, 0.14);
}
.chip.white:active,
.chip.white.tap-pressed {
  box-shadow:
    0 4px 0 #2e2b87,
    0 8px 12px rgba(27, 30, 105, 0.16);
}
.chip.red:active,
.chip.red.tap-pressed {
  box-shadow:
    0 4px 0 #b32042,
    0 8px 12px rgba(105, 24, 45, 0.14);
}
.chip.disabled {
  animation: none !important; /* cancel chipIn fill-mode which would lock opacity: 1 */
  opacity: 0.22 !important;
  pointer-events: none;
}

.chips-wrap.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 6px 0 14px;
}

.chip.cat {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 18px;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  min-height: 74px;
  gap: 10px;
  border: none;
  background: linear-gradient(
    180deg,
    rgba(31, 56, 154, 0.98) 0%,
    rgba(18, 39, 119, 0.98) 100%
  );
  position: relative;
  overflow: hidden;
  text-align: left !important;
  box-shadow:
    0 8px 0 rgba(21, 36, 95, 0.86),
    0 14px 22px rgba(12, 27, 90, 0.18);
}
.chip.cat::after {
  content: "›";
  display: block;
  margin-left: auto;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}
.chip.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background: none;
  border-radius: 24px;
  border: 2px solid rgba(119, 222, 255, 0.18);
}
.chip.cat .chip-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffde7a 0%, #ffb131 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  box-shadow: 0 5px 0 #cf7700;
  color: #542b00;
}
.chip.cat .chip-label {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
  text-align: left !important;
  line-height: 1.15;
}
.chip.cat:hover {
  transform: translateY(-1px);
}
.chip.cat:active,
.chip.cat.tap-pressed {
  background: var(--card-hi);
  transform: translateY(2px) scale(0.995);
  box-shadow:
    0 5px 0 rgba(21, 36, 95, 0.86),
    0 10px 14px rgba(12, 27, 90, 0.16);
}

.chip.cat[data-action="go-ai"] {
  background: linear-gradient(180deg, #7c32ff 0%, #5723d4 100%);
  box-shadow:
    0 8px 0 #34128e,
    0 14px 22px rgba(31, 13, 91, 0.22);
}
.chip.cat[data-action="go-ai"] .chip-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #83ebff 0%, #37c4ff 100%);
  font-size: 21px;
  box-shadow: 0 5px 0 #1689c5;
  color: #0f3d64;
}

.sec-lbl {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 2px 0;
  margin-left: 50px;
  text-shadow: 0 2px 0 rgba(19, 35, 102, 0.42);
}

/* ══════════════════════════════════════════════════════════════
   ESCALATION CARD — orange accent
   ══════════════════════════════════════════════════════════════ */
.esc-card {
  margin: 8px 0 8px 50px;
  width: calc(100% - 50px);
  align-self: flex-start;
  background: linear-gradient(
    180deg,
    rgba(255, 176, 58, 0.18) 0%,
    rgba(255, 140, 0, 0.13) 100%
  );
  border: 3px solid rgba(255, 196, 94, 0.28);
  border-radius: 24px;
  padding: 18px;
  animation: msgIn 0.2s ease both;
  position: relative;
  overflow: visible;
  box-shadow: 0 12px 20px rgba(12, 27, 90, 0.18);
}
.esc-card::before {
  content: "";
  display: none;
}

.esc-head {
  font-size: 17px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 6px;
}
.esc-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 13px;
}
.esc-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.ebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 50px;
  border-radius: 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease,
    opacity 0.14s ease;
  letter-spacing: 0.01em;
}
.ebtn:active {
  transform: translateY(2px);
}
.ebtn.tap-pressed {
  transform: translateY(2px) scale(0.992);
  filter: brightness(1.04);
}
.ebtn-p {
  background: linear-gradient(180deg, #b8ff49 0%, #48dd00 100%);
  color: #284507;
  box-shadow: 0 6px 0 #1d9600;
}
.ebtn-back {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(24, 47, 128, 0.35);
  box-shadow: 0 4px 0 rgba(15, 30, 85, 0.44);
  flex: 0 1 auto;
}
.ebtn-back:active,
.ebtn-back.tap-pressed {
  box-shadow: 0 2px 0 rgba(15, 30, 85, 0.44);
}
.ebtn-back:disabled,
.ebtn-back.is-locked {
  box-shadow: 0 1px 0 rgba(15, 30, 85, 0.44);
}
.esc-btns .ebtn-p {
  width: 100%;
}
.ebtn-s {
  background: linear-gradient(180deg, #ffd05a 0%, #ff9c15 100%);
  color: #542b00;
  box-shadow: 0 6px 0 #c76900;
}
.ebtn-p:active,
.ebtn-p.tap-pressed {
  box-shadow: 0 4px 0 #1d9600;
}
.ebtn-s:active,
.ebtn-s.tap-pressed {
  box-shadow: 0 4px 0 #c76900;
}
.ebtn:disabled,
.ebtn.is-locked {
  cursor: default;
  opacity: 0.88;
  transform: translateY(3px);
  filter: saturate(0.88);
}
.ebtn-p:disabled,
.ebtn-p.is-locked {
  box-shadow: 0 2px 0 #1d9600;
}
.ebtn-s:disabled,
.ebtn-s.is-locked {
  box-shadow: 0 2px 0 #c76900;
}

.ebtn-back {
  white-space: normal; /* allow text to wrap if needed in column layout */
}

.esc-hrs {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   TRANSFER / TICKET CARD
   ══════════════════════════════════════════════════════════════ */
.transfer-card {
  margin: 8px 0 8px 50px;
  width: calc(100% - 50px);
  align-self: flex-start;
  background: linear-gradient(
    180deg,
    rgba(37, 110, 255, 0.3) 0%,
    rgba(28, 53, 153, 0.3) 100%
  );
  border: 3px solid rgba(120, 223, 255, 0.26);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 12px 20px rgba(12, 27, 90, 0.18);
}
.transfer-card.is-entering {
  animation: msgIn 0.2s ease both;
}
.transfer-card::before {
  display: none;
}

.transfer-icon {
  font-size: 34px;
  margin-bottom: 10px;
}
.transfer-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.1;
}
.transfer-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.transfer-ticket {
  margin-top: 13px;
  background: linear-gradient(
    180deg,
    rgba(255, 242, 201, 0.14) 0%,
    rgba(255, 228, 161, 0.08) 100%
  );
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  color: var(--white);
  border: 2px solid rgba(255, 242, 201, 0.14);
}
.transfer-ticket b {
  color: var(--green);
  letter-spacing: 0.08em;
  font-size: 13px;
}

/* ── Error bubble ───────────────────────────────────────────── */
.err-row {
  margin: 4px 0 4px 50px;
  animation: msgIn 0.2s ease both;
  cursor: pointer;
}
.err-bubble {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(
    180deg,
    rgba(255, 102, 120, 0.22) 0%,
    rgba(216, 58, 88, 0.18) 100%
  );
  border: 2px solid rgba(255, 162, 177, 0.24);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe5e8;
  line-height: 1.45;
}

/* ── Ticket update confirm ──────────────────────────────────── */
.ticket-update-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(119, 222, 255, 0.14);
  border-radius: 16px;
  border: 1px solid rgba(119, 222, 255, 0.18);
  padding: 8px 12px;
  margin: 4px 0 4px auto;
  width: fit-content;
  letter-spacing: 0.02em;
}

.msg-sep {
  height: 8px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   INPUT BAR
   ══════════════════════════════════════════════════════════════ */
#input-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 0;
  background: linear-gradient(
    180deg,
    rgba(19, 42, 134, 0) 0%,
    rgba(17, 33, 95, 0.5) 20%,
    rgba(17, 33, 95, 0.9) 100%
  );
}
#input-bar {
  display: none;
  align-items: flex-end;
  gap: 10px;
  padding: 12px;
  padding-bottom: max(12px, calc(var(--safe-bottom) + 12px));
  border-radius: 26px 26px 0 0;
  background: linear-gradient(
    180deg,
    rgba(43, 70, 178, 0.96) 0%,
    rgba(23, 45, 135, 0.98) 100%
  );
  border: 3px solid rgba(120, 223, 255, 0.24);
  border-bottom: none;
  box-shadow: 0 -12px 24px rgba(12, 27, 90, 0.22);
}
#input-bar.visible {
  display: flex;
}
#input-bar.ticket-closed {
  background: linear-gradient(
    180deg,
    rgba(51, 63, 108, 0.96) 0%,
    rgba(29, 39, 76, 0.98) 100%
  );
  border-color: rgba(177, 190, 227, 0.16);
}
#input-bar.match-id-mode #msg-input {
  letter-spacing: 0.02em;
}
#input-bar.match-id-invalid #msg-input {
  box-shadow:
    inset 0 0 0 3px rgba(255, 179, 56, 0.28),
    0 0 0 3px rgba(255, 179, 56, 0.06);
}
#input-bar.match-id-valid #msg-input {
  box-shadow:
    inset 0 0 0 3px rgba(158, 255, 25, 0.28),
    0 0 0 3px rgba(158, 255, 25, 0.08);
}

#msg-input {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(17, 33, 95, 0.95) 0%,
    rgba(12, 25, 72, 0.98) 100%
  );
  border: none;
  border-radius: 18px;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px 15px;
  outline: none;
  resize: none;
  min-height: 48px;
  max-height: 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: box-shadow 0.18s;
  box-shadow: inset 0 0 0 2px rgba(120, 223, 255, 0.18);
}
#msg-input:focus {
  box-shadow:
    inset 0 0 0 3px rgba(158, 255, 25, 0.28),
    0 0 0 3px rgba(158, 255, 25, 0.08);
}
#msg-input::placeholder {
  color: rgba(193, 212, 255, 0.64);
}
#input-bar.ticket-closed #msg-input {
  box-shadow: inset 0 0 0 2px rgba(177, 190, 227, 0.12);
  color: rgba(227, 235, 255, 0.72);
}

#send-btn {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(180deg, #b8ff49 0%, #48dd00 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #294507;
  box-shadow: 0 6px 0 #1d9600;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}
#send-btn:hover {
  filter: brightness(1.03);
}
#send-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #1d9600;
}
#send-btn.tap-pressed {
  transform: translateY(2px) scale(0.985);
  filter: brightness(1.05);
  box-shadow: 0 4px 0 #1d9600;
}
#send-btn:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

#char-count {
  position: absolute;
  right: 82px;
  bottom: max(16px, calc(var(--safe-bottom) + 14px));
  font-size: 11px;
  font-weight: 900;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: rgba(16, 35, 95, 0.55);
  transition: opacity 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#input-wrap.match-id-mode #char-count {
  position: static;
  align-self: flex-start;
  margin: 0 0 8px 4px;
  min-height: 24px;
  right: auto;
  bottom: auto;
}
#char-count.visible {
  opacity: 1;
}
#char-count.warn {
  color: var(--orange);
}
#char-count.over {
  color: var(--red);
}
#char-count.valid {
  color: var(--green);
}

button:hover,
.ans-link:hover,
.ebtn:hover,
.inbox-fab:hover,
#hdr-back:hover,
.lang-btn:hover,
.settings-trigger:hover,
.settings-menu-action:hover,
.settings-close-btn:hover,
.lang-option:hover {
  filter: brightness(1.03);
}

.inbox-fab,
.ans-link,
.ebtn,
#hdr-back,
.lang-btn,
.settings-trigger,
.settings-menu-action,
.settings-close-btn,
.lang-option,
.convo-card,
.chip,
#send-btn,
.inbox-stacked-hdr {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    opacity 0.16s ease;
}

.inbox-fab:hover,
.ans-link:hover,
.ebtn:hover,
#hdr-back:hover {
  transform: none;
}

.ans-link.tap-pressed,
#hdr-back.tap-pressed,
.lang-btn.tap-pressed,
.settings-trigger.tap-pressed,
.settings-menu-action.tap-pressed,
.settings-close-btn.tap-pressed,
.lang-option.tap-pressed {
  transform: translateY(1px) scale(0.988);
  filter: brightness(1.04);
}

.ans-link.tap-pressed {
  box-shadow: 0 4px 0 #1d9600;
}
#hdr-back.tap-pressed {
  box-shadow: none;
}

#hdr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-top) + 6px) 12px 8px;
  min-height: calc(50px + var(--safe-top));
  background: linear-gradient(180deg, rgba(38, 79, 178, 0.88), rgba(20, 48, 131, 0.76));
  border-bottom: 1px solid rgba(185, 223, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(18, 39, 109, 0.14);
  z-index: 30;
}

.hdr-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.hdr-logo.is-visible {
  display: flex;
}

.hdr-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(104, 183, 243, 0.16),
    0 10px 22px rgba(13, 27, 80, 0.24);
}

#hdr-back {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

#hdr-back.visible {
  display: inline-flex;
}

#hdr-back::before {
  content: none;
}

#hdr-back svg,
#hdr-back .back-icon {
  position: relative;
  z-index: 1;
}

#hdr-back .back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#hdr-back:hover {
  filter: none;
  opacity: 0.88;
}

#hdr-back:active {
  transform: none;
  box-shadow: none;
  opacity: 0.82;
}

#hdr-back.tap-pressed {
  transform: none;
  opacity: 0.94;
  box-shadow: none;
}

#hdr-back.tap-pressed .back-icon {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

#hdr-back:hover .back-icon svg {
  transform: none;
}

#hdr-back .back-icon svg {
  transition: transform 0.18s ease;
}

.hdr-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.hdr-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: none;
}

.hdr-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  min-width: 0;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.status-text {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hdr-lang-select {
  flex-shrink: 0;
}

.lang-select-shell {
  position: relative;
  flex-shrink: 0;
}

.inbox-hero {
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
}

.inbox-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  min-width: 0;
}

.settings-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(182, 228, 255, 0.22);
  background: linear-gradient(180deg, rgba(19, 39, 112, 0.88), rgba(13, 29, 86, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(8, 19, 66, 0.18);
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  font-family: var(--font);
  border-collapse: separate;
  cursor: pointer;
}

.settings-trigger:hover {
  filter: brightness(1.04);
  border-color: rgba(202, 238, 255, 0.34);
}

.settings-trigger:focus-visible {
  outline: none;
  border-color: rgba(142, 231, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(91, 199, 255, 0.14),
    0 10px 20px rgba(8, 19, 66, 0.18);
}

.settings-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: rgba(190, 232, 255, 0.94);
  transition: transform 0.18s ease;
}

.settings-trigger.is-open .settings-trigger-icon {
  transform: rotate(24deg);
}

body.settings-open {
  overflow: hidden;
}

.settings-modal[hidden] {
  display: none !important;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(5, 12, 38, 0.6);
  backdrop-filter: blur(8px);
}

.settings-panel {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  max-height: min(540px, calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom)));
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(182, 228, 255, 0.18);
  background: linear-gradient(180deg, rgba(17, 35, 102, 0.98), rgba(10, 23, 75, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 44px rgba(8, 19, 66, 0.34);
  z-index: 1;
  animation: langMenuIn 0.18s ease-out;
}

@keyframes langMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-menu-head-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-menu-title {
  color: #f5fbff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.settings-menu-sub {
  color: rgba(214, 233, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-close-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(182, 228, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(240, 248, 255, 0.92);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
}

.settings-close-btn:hover,
.settings-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(182, 228, 255, 0.3);
  outline: none;
}

.settings-close-btn:active {
  transform: scale(0.94);
}

.settings-section-label {
  margin-bottom: 8px;
  color: rgba(214, 233, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lang-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 244, 255, 0.86);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  outline: none;
}

.lang-option.active {
  background: linear-gradient(180deg, rgba(145, 239, 255, 0.2), rgba(108, 209, 255, 0.12));
  color: #f5fbff;
  box-shadow: inset 0 0 0 1px rgba(155, 232, 255, 0.16);
}

.settings-build-card {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(182, 228, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.settings-build-card + .settings-section-label {
  margin-top: 16px;
}

.settings-build-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(224, 239, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.settings-build-row + .settings-build-row {
  margin-top: 8px;
}

.settings-build-row b {
  color: #f5fbff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.settings-report-note {
  margin: 0 0 10px;
  color: rgba(214, 233, 255, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.settings-report-input {
  width: 100%;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(182, 228, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f5fbff;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 104px;
  outline: none;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.settings-report-input::placeholder {
  color: rgba(214, 233, 255, 0.5);
}

.settings-report-input:focus {
  border-color: rgba(155, 232, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(120, 223, 255, 0.12);
}

.settings-report-checkbox {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(232, 242, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.settings-report-checkbox input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #7ce0ff;
}

.settings-report-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-report-count {
  color: rgba(214, 233, 255, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.settings-menu-action {
  width: auto;
  min-width: 132px;
  min-height: 42px;
  border: 1px solid rgba(182, 228, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 54, 138, 0.86), rgba(17, 34, 92, 0.86));
  color: #f4fbff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
}

.settings-menu-action:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.bubble {
  padding: 12px 14px;
  line-height: 1.48;
}

.bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.bubble-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.76);
}
.row.user .bubble-label {
  color: rgba(34, 62, 8, 0.88);
}

.bubble-copy {
  display: block;
}

.bubble-meta {
  display: inline-block;
  margin-top: 0;
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 800;
  opacity: 0.66;
  white-space: nowrap;
  vertical-align: baseline;
}

.row.bot .bubble {
  border-radius: 20px 20px 20px 7px;
}

.staff-label {
  margin-bottom: 0;
}

.row.user .bubble {
  border-radius: 20px 20px 7px 20px;
}

.transcript-day-separator {
  align-self: center;
  margin: 4px 0 10px;
}

.transcript-day-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(182, 228, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(224, 237, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-update-confirm {
  gap: 7px;
  font-size: 11px;
  color: #b2f27f;
  background: rgba(138, 236, 65, 0.12);
  border-color: rgba(138, 236, 65, 0.22);
  margin: 6px 0 2px auto;
}

.ticket-update-confirm .sent-check {
  font-weight: 900;
}

@media (max-width: 420px) {
  #hdr {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .support-disclaimer {
    font-size: 10.5px;
    line-height: 1.45;
  }
  .inbox-disclaimer {
    max-width: 100%;
    padding: 0 12px;
    margin-top: 8px;
  }
  .chat-disclaimer {
    max-width: 100%;
    padding: 0 2px;
    font-size: 12.5px;
    line-height: 1.55;
  }
  .lang-sel {
    gap: 2px;
    padding: 4px;
  }
  .inbox-hero-topline {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
  .hdr-name {
    font-size: 16px;
  }
  .status-text {
    font-size: 9px;
  }
  #hdr-back {
    width: 42px;
    height: 42px;
  }
  .settings-trigger {
    width: 38px;
    height: 38px;
  }
  .lang-btn {
    min-width: 38px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .inbox-hero,
  .greeting-hero {
    margin-left: 4px;
    margin-right: 4px;
  }
  .iac-title {
    font-size: 13px;
  }
  .gh-bubble {
    font-size: 25px;
  }
  .gh-bubble .greet-sub {
    font-size: 14px;
  }
  .article-title {
    font-size: 17px;
  }
  .typing-card-sub {
    font-size: 12px;
  }
  .chips-wrap {
    padding-left: 46px;
  }
  .sec-lbl,
  .esc-card,
  .transfer-card,
  .err-row {
    margin-left: 46px;
  }
  .esc-card,
  .transfer-card {
    width: calc(100% - 46px);
  }
}
