/* Auditoría DC — cascarón estilo Workspace / Material (sin marca Google) */
:root {
  --gm-surface: #f6f8fc;
  --gm-rail-bg: #f6f8fc;
  --gm-pill: #d3e3fd;
  --gm-pill-hover: #e7eeff;
  --gm-accent: #4f46e5;
  --gm-accent-hover: #4338ca;
  --gm-text: #202124;
  --gm-text-2: #3c4043;
  --gm-muted: #5f6368;
  --gm-border: #dadce0;
  --gm-white: #fff;
  --gm-danger: #b3261e;
  --gm-danger-bg: #fce8e6;
  --gm-ok-bg: #e6f4ea;
  --gm-ok: #137333;
  --gm-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --gm-shadow-fab: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
  --gm-topbar-h: 64px;
  --gm-rail-w: 256px;
  --gm-radius: 16px;
  --gm-focus: 0 0 0 3px rgba(79, 70, 229, 0.35);
  --gm-safe-t: env(safe-area-inset-top, 0px);
  --gm-safe-r: env(safe-area-inset-right, 0px);
  --gm-safe-b: env(safe-area-inset-bottom, 0px);
  --gm-safe-l: env(safe-area-inset-left, 0px);
}

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

html, body { height: 100%; }

.gm-body {
  margin: 0;
  background: var(--gm-surface);
  color: var(--gm-text);
  font-family: Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--gm-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus { outline: none; }
:focus-visible { box-shadow: var(--gm-focus); outline: 2px solid transparent; }

/* —— App shell —— */
.gm-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: calc(var(--gm-topbar-h) + var(--gm-safe-t)) 1fr;
  grid-template-areas:
    "top"
    "main";
}

.gm-topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--gm-safe-t) calc(0.75rem + var(--gm-safe-r)) 0 calc(0.5rem + var(--gm-safe-l));
  height: calc(var(--gm-topbar-h) + var(--gm-safe-t));
  background: var(--gm-surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.gm-logo {
  display: none;
  color: var(--gm-text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0 0.35rem;
}
.gm-logo:hover { color: var(--gm-accent); }

.gm-search {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #eaf1fb;
  border-radius: 24px;
  padding: 0 1rem;
  min-height: 44px;
  height: 46px;
}
.gm-search:focus-within { background: var(--gm-white); box-shadow: var(--gm-shadow); }
.gm-search svg { flex-shrink: 0; color: var(--gm-muted); }
.gm-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--gm-text);
  min-width: 0;
  height: 44px;
}
.gm-search input:focus { outline: none; box-shadow: none; }
.gm-search input::placeholder { color: var(--gm-muted); }

.gm-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
}

.gm-icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--gm-text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gm-icon-btn:hover { background: rgba(60, 64, 67, 0.08); }

.gm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gm-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.35rem;
  flex-shrink: 0;
}

.gm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.4);
  z-index: 45;
  grid-area: top;
}
.gm-app.gm-drawer-open .gm-overlay { display: block; }

.gm-rail {
  grid-area: top;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: min(var(--gm-rail-w), calc(100vw - 3rem));
  height: 100dvh;
  background: var(--gm-rail-bg);
  padding: calc(0.75rem + var(--gm-safe-t)) 0.75rem calc(1rem + var(--gm-safe-b)) calc(0.5rem + var(--gm-safe-l));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  overflow-y: auto;
}
.gm-app.gm-drawer-open .gm-rail { transform: translateX(0); box-shadow: var(--gm-shadow-fab); }

.gm-rail-brand {
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem 1rem;
  color: var(--gm-text);
  text-decoration: none;
}

.gm-compose-rail {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.35rem 0.85rem;
  padding: 0.85rem 1.35rem;
  border-radius: 16px;
  background: var(--gm-white);
  color: var(--gm-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--gm-shadow);
  width: fit-content;
  min-height: 48px;
}
.gm-compose-rail:hover { background: #f8fafc; box-shadow: var(--gm-shadow-fab); }

.gm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 40px;
  padding: 0 0.75rem 0 1.5rem;
  margin-right: 0.75rem;
  border-radius: 0 24px 24px 0;
  color: var(--gm-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.gm-nav-item svg { flex-shrink: 0; color: var(--gm-text-2); }
.gm-nav-item:hover { background: var(--gm-pill-hover); }
.gm-nav-item.is-active {
  background: var(--gm-pill);
  font-weight: 700;
}
.gm-nav-item.is-active svg { color: var(--gm-accent); }

.gm-nav-group {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gm-muted);
  padding: 0.85rem 1.5rem 0.25rem;
}

.gm-rail-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--gm-border);
}
.gm-rail-meta {
  font-size: 0.75rem;
  color: var(--gm-text-2);
  padding: 0.5rem 1.5rem 0.25rem;
}
.gm-rail-foot form { margin: 0; }
.gm-rail-foot button.gm-nav-item {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gm-main {
  grid-area: main;
  min-width: 0;
  padding: 0.5rem 0.75rem calc(5.5rem + var(--gm-safe-b));
}
.gm-main-flush { padding-left: 0; padding-right: 0; padding-top: 0; }

.gm-fab {
  grid-area: top;
  position: fixed;
  right: max(1rem, var(--gm-safe-r));
  bottom: max(1rem, var(--gm-safe-b));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 16px;
  background: var(--gm-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--gm-shadow-fab);
}
.gm-fab:hover { background: var(--gm-accent-hover); color: #fff; }
.gm-fab svg { flex-shrink: 0; }

@media (min-width: 768px) {
  .gm-app {
    grid-template-columns: var(--gm-rail-w) 1fr;
    grid-template-areas:
      "top top"
      "rail main";
  }
  .gm-app.gm-rail-collapsed {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "main";
  }
  .gm-logo { display: inline; }
  .gm-rail {
    grid-area: rail;
    position: sticky;
    top: calc(var(--gm-topbar-h) + var(--gm-safe-t));
    height: calc(100dvh - var(--gm-topbar-h) - var(--gm-safe-t));
    transform: none;
    z-index: 30;
    box-shadow: none;
  }
  .gm-app.gm-rail-collapsed .gm-rail {
    display: none;
  }
  .gm-overlay { display: none !important; }
  .gm-main { padding: 0.75rem 1.25rem 2rem; }
  .gm-fab { display: none; }
}

@media (min-width: 1024px) {
  .gm-main { padding: 0.75rem 1.5rem 2rem; }
  .gm-search { margin: 0 auto 0 1.5rem; }
}

/* —— Components —— */
.gm-pane {
  background: var(--gm-white);
  border-radius: var(--gm-radius);
  min-height: calc(100dvh - var(--gm-topbar-h) - 2rem);
  overflow: hidden;
}
.gm-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
}
.gm-page-title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.gm-page-sub {
  margin: 0.25rem 0 0;
  color: var(--gm-text-2);
  font-size: 0.875rem;
}

.gm-list { display: flex; flex-direction: column; }
.gm-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #f1f3f4;
  text-decoration: none;
  color: inherit;
  background: transparent;
  position: relative;
}
.gm-row:hover { background: #f2f6fc; }
.gm-row-unread .gm-row-from,
.gm-row-unread .gm-row-snippet { font-weight: 700; }
.gm-row-from {
  font-size: 0.9rem;
  color: var(--gm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-row-snippet {
  font-size: 0.8125rem;
  color: var(--gm-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-row-meta {
  font-size: 0.75rem;
  color: var(--gm-muted);
  white-space: nowrap;
}
.gm-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .gm-row {
    grid-template-columns: minmax(8rem, 16rem) 1fr auto;
    grid-template-areas: "from snippet meta";
    align-items: center;
    min-height: 48px;
    padding: 0.4rem 1.25rem;
    column-gap: 1rem;
  }
  .gm-row-from { grid-area: from; }
  .gm-row-snippet { grid-area: snippet; }
  .gm-row-meta { grid-area: meta; }
  .gm-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 0;
    opacity: 1;
  }
  .gm-row:hover .gm-row-actions,
  .gm-row:focus-within .gm-row-actions { opacity: 1; }
}
@media (min-width: 1024px) {
  .gm-row { grid-template-columns: minmax(10rem, 18rem) 1fr auto auto; grid-template-areas: "from snippet meta actions"; }
  .gm-row-actions { grid-area: actions; margin-top: 0; opacity: 0; }
  .gm-row:hover .gm-row-actions,
  .gm-row:focus-within .gm-row-actions { opacity: 1; }
}

.gm-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--gm-text-2);
  font-size: 0.95rem;
}

.gm-card {
  background: var(--gm-white);
  border-radius: var(--gm-radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}
@media (min-width: 640px) {
  .gm-card { padding: 1.75rem 2rem; }
}

.gm-form-wrap {
  max-width: 44rem;
  margin: 0 auto;
}
.gm-form-wrap-wide { max-width: 72rem; }

.gm-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}
@media (min-width: 640px) {
  .gm-stats { grid-template-columns: repeat(3, 1fr); }
}
.gm-stat {
  background: #eaf1fb;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}
.gm-stat-n {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.gm-stat-l { font-size: 0.8125rem; color: var(--gm-text-2); margin-top: 0.15rem; }

.gm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.gm-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 1.25rem 1.5rem;
}
@media (min-width: 768px) {
  .gm-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .gm-product-grid { grid-template-columns: repeat(3, 1fr); }
}
.gm-product-card {
  background: var(--gm-white);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gm-product-card h2 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.gm-price { font-size: 1.35rem; color: var(--gm-accent); font-weight: 500; }
.gm-product-buy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.gm-pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gm-pay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gm-pay-grid { grid-template-columns: repeat(3, 1fr); }
}

.gm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.25rem 0.75rem;
}
.gm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gm-border);
  color: var(--gm-text-2);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--gm-white);
}
.gm-chip:hover { background: #f1f3f4; }
.gm-chip.is-on { background: var(--gm-pill); border-color: transparent; color: var(--gm-text); font-weight: 700; }

label.gm-label,
.gm-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gm-text-2);
  margin-bottom: 0.35rem;
}

.gm-input,
.gm-select,
.gm-textarea,
input.gm-input,
select.gm-select,
textarea.gm-textarea {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  color: var(--gm-text);
  background: var(--gm-white);
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.gm-textarea { min-height: 120px; resize: vertical; }
.gm-input:disabled,
.gm-select:disabled { background: #f1f3f4; color: var(--gm-text-2); }
.gm-field { margin-bottom: 0.9rem; }
.gm-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 768px) {
  .gm-fields-2 { grid-template-columns: 1fr 1fr; }
  .gm-span-2 { grid-column: 1 / -1; }
}

.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 24px;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: var(--gm-text-2);
  background: transparent;
}
.gm-btn:hover { background: rgba(60, 64, 67, 0.08); }
.gm-btn-primary {
  background: var(--gm-accent);
  color: #fff;
}
.gm-btn-primary:hover { background: var(--gm-accent-hover); color: #fff; }
.gm-btn-ghost {
  border: 1px solid var(--gm-border);
  background: var(--gm-white);
}
.gm-btn-danger { color: var(--gm-danger); background: var(--gm-danger-bg); }
.gm-btn-danger:hover { background: #f9dcd9; }
.gm-btn-block { width: 100%; }
@media (max-width: 767px) {
  .gm-btn-mobile-block { width: 100%; }
}

.gm-alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.gm-alert-error { background: var(--gm-danger-bg); color: #8c1d18; }
.gm-alert-ok { background: var(--gm-ok-bg); color: var(--gm-ok); }

.gm-muted { color: var(--gm-text-2); font-size: 0.875rem; }
.gm-code { font-family: ui-monospace, monospace; font-size: 0.8rem; word-break: break-all; }

.gm-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.5rem, var(--gm-safe-t)) 1rem max(1.5rem, var(--gm-safe-b));
  background: var(--gm-surface);
}
.gm-auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--gm-white);
  border-radius: 28px;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--gm-shadow);
}
@media (min-width: 640px) {
  .gm-auth-card { padding: 2.25rem 2.25rem 2rem; }
}
.gm-auth-brand {
  color: var(--gm-accent);
  font-weight: 500;
  font-size: 0.875rem;
}
.gm-auth-card h1 {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 400;
}
.gm-segment {
  display: flex;
  background: #eaf1fb;
  border-radius: 24px;
  padding: 0.2rem;
  margin: 1.25rem 0 1rem;
}
.gm-segment label {
  flex: 1;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--gm-text-2);
}
.gm-segment input { position: absolute; opacity: 0; pointer-events: none; }
.gm-segment label:has(input:checked),
.gm-segment label.is-on {
  background: var(--gm-white);
  color: var(--gm-text);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}
.gm-segment label:has(input:focus-visible) { box-shadow: var(--gm-focus); }

.gm-lang {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0.15rem;
  gap: 0;
}
.gm-lang button {
  min-width: 36px;
  min-height: 32px;
  border: 0;
  background: transparent;
  border-radius: 16px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gm-muted);
  cursor: pointer;
}
.gm-lang button.is-on {
  background: var(--gm-pill);
  color: var(--gm-text);
}

.gm-hidden { display: none !important; }

details.gm-details {
  border-bottom: 1px solid #f1f3f4;
  padding: 0.75rem 1.1rem;
}
details.gm-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Semáforos */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
}
.pill-verde-oscuro { background: #059669; color: #fff; }
.pill-verde-claro { background: #d1fae5; color: #065f46; }
.pill-amarillo { background: #fef3c7; color: #92400e; }
.pill-naranja { background: #ffedd5; color: #9a3412; }
.pill-rojo { background: #fee2e2; color: #991b1b; }
.pill-auto { background: #e5e7eb; color: #374151; }
.pill-pendiente { background: #e8eaed; color: #3c4043; }

details summary { cursor: pointer; }

/* Help — panel anclado bajo la topbar, no pelea con el FAB */
.help-root {
  position: fixed;
  right: max(0.75rem, var(--gm-safe-r));
  top: calc(var(--gm-topbar-h) + var(--gm-safe-t) + 0.35rem);
  z-index: 60;
  width: min(22rem, calc(100vw - 1.5rem));
}
.help-panel {
  display: flex;
  flex-direction: column;
  background: var(--gm-white);
  border-radius: 1rem;
  box-shadow: var(--gm-shadow-fab);
  overflow: hidden;
  max-height: min(28rem, calc(100dvh - var(--gm-topbar-h) - 2rem));
}
.help-panel.hidden { display: none; }
.help-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f3f4;
}
.help-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--gm-text); }
.help-sub { margin: 0.2rem 0 0; font-size: 0.75rem; color: var(--gm-text-2); line-height: 1.35; }
.help-close {
  border: 0;
  background: transparent;
  color: var(--gm-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  min-width: 44px;
  min-height: 44px;
}
.help-close:hover { color: var(--gm-text); }
.help-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--gm-surface);
  min-height: 12rem;
}
.help-bubble {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.help-bot { align-self: flex-start; background: var(--gm-white); border: 1px solid var(--gm-border); color: var(--gm-text); }
.help-user { align-self: flex-end; background: var(--gm-accent); color: #fff; }
.help-meta { align-self: flex-start; background: transparent; color: var(--gm-muted); font-size: 0.7rem; padding: 0; }
.help-thinking { opacity: 0.7; font-style: italic; }
.help-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid #f1f3f4;
  background: var(--gm-white);
}
.help-input {
  flex: 1;
  border: 1px solid var(--gm-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 16px;
  min-height: 44px;
}
.help-send {
  border: 0;
  border-radius: 0.5rem;
  background: var(--gm-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  min-height: 44px;
}
.help-send:hover { background: var(--gm-accent-hover); }

@media (max-width: 479px) {
  .help-root {
    left: max(0.5rem, var(--gm-safe-l));
    right: max(0.5rem, var(--gm-safe-r));
    width: auto;
    top: calc(var(--gm-topbar-h) + var(--gm-safe-t) + 0.25rem);
  }
  .help-panel { max-height: calc(100dvh - var(--gm-topbar-h) - 1.5rem); }
}
