.gm-meta-status {
  margin: 0 auto 16px;
  width: min(80rem, calc(100% - 1.5rem));
}
.gm-meta-panel {
  background: #fff;
  border: 1px solid rgba(11, 37, 89, 0.12);
  border-radius: 1.25rem;
  padding: 18px 18px 16px;
  font-family: "IBM Plex Sans Arabic", Alexandria, sans-serif;
  color: #0b2559;
  box-shadow: 0 8px 20px rgba(11, 37, 89, 0.08);
}
html.dark .gm-meta-panel {
  background: #15233d;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.12);
}
.gm-meta-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gm-meta-panel-head strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}
.gm-meta-panel-head p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  max-width: 46rem;
}
html.dark .gm-meta-panel-head p { color: #94a3b8; }
.gm-meta-banner {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.gm-meta-empty {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}
.gm-meta-pages {
  display: grid;
  gap: 12px;
}
.gm-meta-page {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 1.1rem;
  padding: 14px;
}
.gm-meta-page.is-hot {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
html.dark .gm-meta-page {
  background: #0f1b33;
  border-color: rgba(226, 232, 240, 0.12);
}
html.dark .gm-meta-page.is-hot {
  background: #10261a;
  border-color: #166534;
}
.gm-meta-page-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.gm-meta-page-head img,
.gm-meta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  background: #e8eef8;
}
.gm-meta-avatar {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #0b2559;
}
.gm-meta-page-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.gm-meta-page-copy small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.gm-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.gm-meta-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #e8eef8;
  color: #0b2559;
}
.gm-meta-pill[data-kind="connected"] { background: #dcfce7; color: #166534; }
.gm-meta-pill[data-kind="not_connected"] { background: #e2e8f0; color: #334155; }
.gm-meta-pill[data-kind="connecting"] { background: #dbeafe; color: #1d4ed8; }
.gm-meta-pill[data-kind="token_expired"] { background: #ffedd5; color: #9a3412; }
.gm-meta-pill[data-kind="webhook_error"] { background: #fee2e2; color: #991b1b; }
.gm-meta-pill[data-kind="security_review"] { background: #fef3c7; color: #92400e; }
.gm-meta-pill[data-kind="incomplete_connection"] { background: #ffedd5; color: #9a3412; }
.gm-meta-pill[data-kind="permission_required"] { background: #ede9fe; color: #5b21b6; }
.gm-meta-pill[data-kind="disconnected"] { background: #e2e8f0; color: #334155; }
.gm-meta-settings {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 37, 89, 0.14);
}
.gm-meta-settings p {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.gm-meta-settings ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
@media (min-width: 768px) {
  .gm-meta-settings ul {
    grid-template-columns: 1fr 1fr;
  }
}
.gm-meta-settings li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 700;
}
.gm-meta-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 99px;
  background: #cbd5e1;
  flex: none;
}
.gm-meta-settings li.on .gm-meta-dot { background: #16a34a; }
.gm-meta-settings li.off { color: #64748b; }
.gm-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.gm-meta-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.gm-meta-btn-primary {
  background: #1877f2;
  color: #fff;
}
.gm-meta-btn-ghost {
  background: #eef2ff;
  color: #0b2559;
}
html.dark .gm-meta-btn-ghost {
  background: #1e335c;
  color: #e2e8f0;
}
.gm-meta-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  margin-inline-start: auto;
}
.gm-meta-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.gm-meta-toast {
  position: fixed;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  background: #0b2559;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-family: "IBM Plex Sans Arabic", Alexandria, sans-serif;
  box-shadow: 0 12px 30px rgba(11, 37, 89, 0.28);
}
.gm-meta-toast-error {
  background: #991b1b;
}
@media (max-width: 767.98px) {
  .gm-meta-status {
    width: calc(100% - 1rem);
  }
  .gm-meta-panel {
    padding: 14px;
    border-radius: 1rem;
  }
  .gm-meta-btn-danger {
    margin-inline-start: 0;
    width: 100%;
  }
}
