.gsuite-panel-v312 {
  margin: 1rem 0 1.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.dark .gsuite-panel-v312 {
  background: linear-gradient(145deg, rgba(67, 32, 12, 0.34), rgba(15, 23, 42, 0.96));
  border-color: rgba(251, 146, 60, 0.28);
  color: #f8fafc;
}

.gsuite-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gsuite-panel-head h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.gsuite-panel-head p {
  margin: 0;
  max-width: 62rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.dark .gsuite-panel-head p { color: #94a3b8; }

.gsuite-eyebrow {
  color: #ea580c;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gsuite-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.gsuite-toolbar input {
  min-width: 14rem;
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.62rem 0.75rem;
  color: #0f172a;
  font-size: 0.78rem;
  outline: none;
}

.dark .gsuite-toolbar input {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

.gsuite-toolbar input:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12); }
.gsuite-toolbar > span { margin-left: auto; color: #64748b; font-size: 0.72rem; font-weight: 800; }
.dark .gsuite-toolbar > span { color: #94a3b8; }

.gsuite-link-button {
  border: 0;
  background: transparent;
  color: #ea580c;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.45rem;
}

.gsuite-zone-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.5rem;
  max-height: 15rem;
  overflow: auto;
  margin-top: 0.75rem;
  padding: 0.2rem;
}

.gsuite-domain-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.dark .gsuite-domain-option { border-color: #334155; background: rgba(15, 23, 42, 0.62); }
.gsuite-domain-option:has(input:checked) { border-color: #fb923c; background: rgba(255, 237, 213, 0.62); }
.dark .gsuite-domain-option:has(input:checked) { background: rgba(124, 45, 18, 0.28); }
.gsuite-domain-option input { accent-color: #ea580c; }
.gsuite-domain-copy { display: flex; min-width: 0; flex-direction: column; }
.gsuite-domain-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.gsuite-domain-copy small { color: #94a3b8; font-size: 0.63rem; }
.gsuite-empty { grid-column: 1 / -1; padding: 1.4rem; text-align: center; color: #94a3b8; font-size: 0.78rem; }

.gsuite-replace-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.7rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 0.75rem;
  background: rgba(254, 243, 199, 0.46);
  font-size: 0.75rem;
}

.dark .gsuite-replace-option { background: rgba(120, 53, 15, 0.2); }
.gsuite-replace-option input { margin-top: 0.15rem; accent-color: #ea580c; }
.gsuite-replace-option span { display: flex; flex-direction: column; gap: 0.15rem; }
.gsuite-replace-option small { color: #78716c; line-height: 1.35; }
.dark .gsuite-replace-option small { color: #a8a29e; }

.gsuite-mx-warning,
.gsuite-blocked {
  margin-top: 0.55rem;
  border-radius: 0.6rem;
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  padding: 0.55rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.dark .gsuite-mx-warning,
.dark .gsuite-blocked { background: rgba(127, 29, 29, 0.34); color: #fecaca; }

.gsuite-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.gsuite-button { border: 0; border-radius: 0.7rem; cursor: pointer; padding: 0.65rem 0.9rem; font-size: 0.72rem; font-weight: 900; }
.gsuite-button:disabled { cursor: not-allowed; opacity: 0.45; }
.gsuite-button.primary { background: #ea580c; color: white; }
.gsuite-button.secondary { border: 1px solid #fed7aa; background: white; color: #c2410c; }
.dark .gsuite-button.secondary { border-color: #7c2d12; background: #1e293b; color: #fdba74; }
.gsuite-button.verify { background: #0f766e; color: white; }

.gsuite-status {
  margin-top: 0.8rem;
  border-radius: 0.6rem;
  background: rgba(241, 245, 249, 0.85);
  padding: 0.6rem 0.7rem;
  color: #475569;
  font-size: 0.72rem;
}

.dark .gsuite-status { background: rgba(30, 41, 59, 0.8); color: #cbd5e1; }
.gsuite-status[data-kind="success"] { background: rgba(220, 252, 231, 0.84); color: #166534; }
.gsuite-status[data-kind="warning"] { background: rgba(254, 243, 199, 0.84); color: #92400e; }
.gsuite-status[data-kind="error"] { background: rgba(254, 226, 226, 0.84); color: #b91c1c; }

.gsuite-results { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.gsuite-results-table { display: grid; gap: 0.6rem; }
.gsuite-result-row { display: grid; gap: 0.55rem; border: 1px solid #e2e8f0; border-radius: 0.8rem; background: rgba(255, 255, 255, 0.75); padding: 0.75rem; }
.dark .gsuite-result-row { border-color: #334155; background: rgba(15, 23, 42, 0.56); }
.gsuite-result-row.success { border-color: rgba(34, 197, 94, 0.36); }
.gsuite-result-row.failed { border-color: rgba(239, 68, 68, 0.36); }
.gsuite-result-title { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.gsuite-result-title > div { display: flex; flex-direction: column; }
.gsuite-result-title strong { font-size: 0.8rem; }
.gsuite-result-title small { color: #94a3b8; font-size: 0.63rem; }
.gsuite-result-cell { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.45rem; }
.gsuite-result-cell > small { grid-column: 1 / -1; color: #64748b; overflow-wrap: anywhere; }
.dark .gsuite-result-cell > small { color: #94a3b8; }
.gsuite-label { color: #64748b; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; }
.gsuite-badge { width: fit-content; border-radius: 999px; background: #e2e8f0; color: #475569; padding: 0.2rem 0.45rem; font-size: 0.6rem; font-weight: 900; }
.gsuite-badge.ready { background: #dcfce7; color: #166534; }
.gsuite-badge.change { background: #ffedd5; color: #c2410c; }
.gsuite-badge.danger { background: #fee2e2; color: #b91c1c; }
.gsuite-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gsuite-actions-list { margin: 0; padding-left: 1.1rem; color: #64748b; font-size: 0.7rem; }
.dark .gsuite-actions-list { color: #94a3b8; }
.gsuite-verify-line { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.gsuite-resolver-line { display: grid; grid-template-columns: minmax(8rem, auto) auto auto 1fr; align-items: center; gap: 0.4rem; }
.gsuite-resolver-line strong { font-size: 0.7rem; }
.gsuite-resolver-line small { min-width: 0; color: #64748b; overflow-wrap: anywhere; }
.dark .gsuite-resolver-line small { color: #94a3b8; }

@media (max-width: 720px) {
  .gsuite-panel-head { flex-direction: column; }
  .gsuite-panel-head .gsuite-button { width: 100%; }
  .gsuite-toolbar > span { width: 100%; margin-left: 0; }
  .gsuite-actions .gsuite-button { width: 100%; }
  .gsuite-resolver-line { grid-template-columns: 1fr auto; }
  .gsuite-resolver-line small { grid-column: 1 / -1; }
}
