/* ============================================================
   Global Chat — native chat shell that follows the app theme
   ============================================================ */

body.gcx-active {
  background: var(--bg);
  overscroll-behavior: none;
}
body.gcx-active #app { background: var(--bg); }
body.gcx-active .page { padding: 0; }

.gcx-page {
  position: fixed;
  top: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
.gcx-page.gcx-expanded { bottom: 0; }
.gcx-page *,
.gcx-page *::before,
.gcx-page *::after { box-sizing: border-box; }
/* Zero-specificity reset so every component class can set its own colour,
   padding and background without fighting the base button rule. */
:where(.gcx-page button) {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gcx-page button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Navigation bar ===== */
.gcx-nav {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 0 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 4;
}
.gcx-icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 50%;
}
.gcx-icon-btn:active { background: var(--surface-2); }
.gcx-icon-btn svg { width: 24px; height: 24px; }
.gcx-nav-spacer { width: 44px; height: 44px; }
.gcx-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
}
.gcx-title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gcx-online-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 400;
  min-height: 14px;
}
.gcx-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: none;
  flex: 0 0 7px;
}
.gcx-online-line.is-online .gcx-online-dot { display: inline-block; }

/* ===== Message list ===== */
.gcx-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.gcx-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gcx-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  flex: 1 0 auto;
}
.gcx-top-loading {
  position: absolute;
  top: calc(52px + env(safe-area-inset-top, 0px) + 8px);
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.gcx-top-loading[hidden] { display: none; }
.gcx-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: gcxSpin .8s linear infinite;
}
@keyframes gcxSpin { to { transform: rotate(360deg); } }

.gcx-date {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0 8px;
  font-weight: 400;
}
.gcx-date b { font-weight: 600; color: var(--text-muted); }

.gcx-group {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gcx-group + .gcx-group { margin-top: 10px; }
.gcx-group.own { align-items: flex-end; }
.gcx-group-content {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.gcx-avatar-rail {
  flex: 0 0 30px;
  width: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.gcx-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.gcx-avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
}
.gcx-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.gcx-avatar-initial { display: grid; place-items: center; }
.gcx-bubbles {
  min-width: 0;
  max-width: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.gcx-group.own .gcx-bubbles {
  max-width: 100%;
  align-items: flex-end;
}
.gcx-name {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0 0 1px 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}
.gcx-name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcx-star {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: currentColor;
}
.gcx-star svg { width: 12px; height: 12px; }

.gcx-msg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.gcx-group.own .gcx-msg { align-items: flex-end; }
.gcx-msg + .gcx-msg { margin-top: 3px; }
.gcx-msg > .gcx-msg-line {
  transform: translateX(var(--swipe-x, 0px));
  transition: transform .16s ease;
}
.gcx-msg.is-swiping > .gcx-msg-line {
  transition: none;
  will-change: transform;
}
.gcx-swipe-hint {
  position: absolute;
  top: var(--swipe-hint-y, 50%);
  right: 8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, color .12s ease;
}
.gcx-swipe-hint svg { width: 20px; height: 20px; }
.gcx-msg.is-swiping .gcx-swipe-hint { opacity: .8; }
.gcx-msg.is-swipe-ready .gcx-swipe-hint { opacity: 1; color: var(--accent); }
.gcx-msg-line {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.gcx-group.own .gcx-msg-line { justify-content: flex-end; }
.gcx-msg.is-sending .gcx-bubble,
.gcx-msg.is-sending .gcx-sticker { opacity: .6; }

.gcx-bubble {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: 260px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.gcx-group.own .gcx-bubble {
  background: var(--accent);
  color: var(--on-accent);
}
.gcx-bubble.is-deleted {
  background: var(--surface);
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
}
.gcx-sticker {
  position: relative;
  z-index: 2;
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
}

/* A reply is a small reference card inside the message bubble: a reply
   glyph, the sender, and one clipped line of the quoted text. No side bar,
   so it reads as part of this chat rather than a copied messenger layout. */
.gcx-quote {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 7px;
  align-items: start;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--text-muted);
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
}
.gcx-bubble > .gcx-quote { margin: 0 0 6px; }
.gcx-quote-icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.gcx-quote-icon svg { width: 15px; height: 15px; }
.gcx-quote-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-width: 0;
}
.gcx-quote-name {
  display: block;
  width: 100%;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcx-quote-text {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcx-msg.own .gcx-bubble > .gcx-quote {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .16);
}
.gcx-msg.own .gcx-bubble > .gcx-quote .gcx-quote-icon,
.gcx-msg.own .gcx-bubble > .gcx-quote .gcx-quote-name {
  color: var(--on-accent);
}
.gcx-msg.own .gcx-bubble > .gcx-quote .gcx-quote-text {
  color: var(--on-accent);
  opacity: .82;
}
.gcx-text {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Stickers have no bubble, so their quote attaches as a caption above. */
.gcx-sticker-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
}
.gcx-sticker-stack.own { align-items: flex-end; }
.gcx-sticker-stack .gcx-quote {
  max-width: 230px;
  margin: 0;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  background: var(--surface-2);
}
.gcx-sticker-stack.own .gcx-quote { background: var(--accent-soft); }

.gcx-fail {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* A short press-and-release on the message being jumped to. The outline is
   gone; the bubble simply dips under the finger and settles back. */
@keyframes gcxTap {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(1px) scale(.97); }
  100% { transform: translateY(0) scale(1); }
}
.gcx-msg.gcx-tapped .gcx-bubble,
.gcx-msg.gcx-tapped .gcx-sticker {
  animation: gcxTap .32s cubic-bezier(.2, .7, .3, 1);
  transform-origin: 50% 55%;
}

/* ===== Empty / loading / error ===== */
.gcx-empty {
  margin: auto;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}
.gcx-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.gcx-skel-row { display: flex; }
.gcx-skel-row.own { justify-content: flex-end; }
.gcx-skel-bubble {
  height: 34px;
  background: var(--surface-2);
  border-radius: 18px;
}
.gcx-error {
  margin: auto;
  padding: 24px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.gcx-retry {
  min-height: 44px;
  padding: 0 14px;
  margin-top: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

/* ===== Jump to latest ===== */
.gcx-jump {
  position: absolute;
  right: 16px;
  bottom: 64px;
  z-index: 7;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: opacity .15s ease, transform .15s ease;
}
.gcx-jump[hidden] { display: none; }
.gcx-jump svg { width: 20px; height: 20px; }
.gcx-jump:active { transform: scale(.94); }
.gcx-jump-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.gcx-jump-badge[hidden] { display: none; }

/* ===== Bottom stack ===== */
.gcx-bottom {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  z-index: 5;
}

/* ===== Reply bar ===== */
.gcx-reply {
  height: 44px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  position: relative;
}
.gcx-reply[hidden] { display: none; }
.gcx-reply-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.gcx-reply-icon svg { width: 17px; height: 17px; }
.gcx-reply-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.gcx-reply-name {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcx-reply-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gcx-reply-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: -12px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.gcx-reply-close svg { width: 20px; height: 20px; }

/* ===== Composer ===== */
.gcx-composer {
  flex: 0 0 auto;
  padding: 6px 12px 8px;
  background: var(--bg);
}
.gcx-page.gcx-expanded .gcx-composer {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.gcx-counter-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 6px 2px;
}
.gcx-counter {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.gcx-counter[hidden] { display: none; }
.gcx-counter.at-limit { color: var(--danger); }
.gcx-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.gcx-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 19px;
  background: transparent;
}
/* Focus ring follows the oval field, never the square textarea inside it. */
.gcx-field:focus-within { border-color: var(--accent); }
.gcx-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 36px;
  max-height: 126px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  line-height: 1.3;
  resize: none;
  outline: none;
  box-shadow: none;
  overflow-y: hidden;
  scrollbar-width: none;
}
.gcx-input::-webkit-scrollbar { display: none; }
.gcx-input::placeholder { color: var(--text-muted); }
.gcx-input:focus,
.gcx-input:focus-visible { outline: none; box-shadow: none; border: 0; }
.gcx-smiley {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 2px 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
}
.gcx-smiley.is-active { color: var(--accent); }
.gcx-smiley svg { width: 24px; height: 24px; }
.gcx-send {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}
.gcx-send[hidden] { display: none; }
.gcx-send svg { width: 20px; height: 20px; }
.gcx-send:active { opacity: .85; }

/* ===== Sticker / emoji panel ===== */
.gcx-panel {
  flex: 0 0 318px;
  height: 318px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.gcx-panel[hidden] { display: none; }
.gcx-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 16px 0;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.gcx-panel-scroll::-webkit-scrollbar { display: none; }
.gcx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 4px 6px;
}
.gcx-section-label {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
}
.gcx-unlock {
  min-height: 44px;
  margin: -12px 0;
  padding: 0 0 0 8px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.gcx-panel-empty {
  padding: 20px 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.gcx-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.gcx-sticker-cell,
.gcx-emoji-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}
.gcx-sticker-cell img,
.gcx-sticker-cell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}
.gcx-sticker-cell.is-locked,
.gcx-emoji-cell.is-locked { opacity: .55; }
.gcx-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  pointer-events: none;
}
.gcx-lock svg { width: 20px; height: 20px; }
.gcx-emoji-char {
  font-size: 26px;
  line-height: 1;
}
.gcx-panel-tabs {
  flex: 0 0 46px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.gcx-panel-tab {
  width: 44px;
  height: 36px;
  flex: 0 0 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.gcx-panel-tab.is-active {
  background: var(--surface-2);
  color: var(--text);
}
.gcx-panel-tab svg { width: 22px; height: 22px; }

/* ===== Premium sheet ===== */
.sheet.gcx-premium-sheet {
  background: var(--surface);
  border: 0;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  color: var(--text);
  box-shadow: none;
}
.gcx-premium-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}
.gcx-premium-star { width: 14px; height: 14px; display: inline-flex; }
.gcx-premium-star svg { width: 14px; height: 14px; }
.gcx-premium-title {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
.gcx-premium-sub {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.gcx-premium-list {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.gcx-premium-label {
  margin: 16px 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.gcx-premium-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gcx-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  background: var(--surface-2);
}
.gcx-swatch.is-active { border-color: var(--accent); }
.gcx-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}
.gcx-swatch-bubble { border-radius: 12px; }
.gcx-swatch-border {
  width: 28px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  display: block;
}
.gcx-premium-until {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}
.gcx-premium-close {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.gcx-premium-buy {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--gold-fill);
  color: var(--on-gold);
  font-size: 16px;
  font-weight: 700;
}
.gcx-premium-buy:active { opacity: .8; }
.gcx-premium-buy:disabled { opacity: .55; }
.sheet.gcx-premium-sheet .grabber { background: var(--border-strong); }

/* ===== Long-press context menu ===== */
.sheet.gcx-menu-sheet {
  background: var(--surface);
  border: 0;
  border-radius: 20px 20px 0 0;
  padding: 4px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  box-shadow: none;
}
.sheet.gcx-menu-sheet .grabber { background: var(--border-strong); }
.gcx-menu-time {
  padding: 10px 4px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
.gcx-menu-action {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}
.gcx-menu-action:last-child { border-bottom: 0; }
.gcx-menu-action svg { width: 20px; height: 20px; flex: 0 0 20px; }
.gcx-menu-action.is-danger { color: var(--danger); }
.gcx-menu-action:active { background: var(--surface-2); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .gcx-jump { transition: none; }
  .gcx-msg > .gcx-msg-line { transition: none; }
  .gcx-msg.gcx-tapped .gcx-bubble,
  .gcx-msg.gcx-tapped .gcx-sticker { animation: none; }
}

/* ===== Small phones ===== */
@media (max-width: 350px) {
  .gcx-panel { flex-basis: 300px; height: 300px; }
  .gcx-composer { padding-left: 10px; padding-right: 10px; }
  .gcx-scroll { padding-left: 10px; padding-right: 10px; }
}
