.vgs-admin-topbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 16px;
  min-height: 34px;
}

.vgs-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.vgs-user-menu-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
}

.vgs-user-menu-name {
  font-size: 12px;
  font-weight: 800;
  color: #202124;
}

.vgs-role-pill,
.vgs-readonly-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.vgs-role-pill {
  background: #e8f0fe;
  color: #1a73e8;
}

.vgs-readonly-pill {
  background: #fff7ed;
  color: #c2410c;
}

.vgs-impersonation-banner {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(154,52,18,0.10);
}

.vgs-impersonation-banner button {
  border: 1px solid #fdba74;
  border-radius: 7px;
  background: #fff;
  color: #9a3412;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
}

.vgs-impersonation-banner button:hover {
  background: #ffedd5;
}

body.vgs-has-impersonation .main-content {
  padding-top: 76px;
}

.vgs-users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vgs-secret-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

body.vgs-readonly button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.vgs-link-button {
  border: 0;
  background: transparent;
  color: #1a73e8;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.vgs-link-button:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.vgs-session-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.vgs-session-summary > div {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px 12px;
}

.vgs-session-summary span,
.vgs-field-label {
  display: block;
  color: #5f6368;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.vgs-turn-list {
  display: grid;
  gap: 14px;
}

.vgs-turn-card {
  border: 1px solid #e8eaed;
  border-left: 4px solid #1a73e8;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.vgs-turn-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vgs-turn-compare,
.vgs-turn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.vgs-turn-compare pre,
.vgs-pre {
  overflow: auto;
  max-height: 240px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  background: #f8f9fa;
  color: #202124;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.vgs-request-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .vgs-admin-topbar {
    justify-content: flex-start;
  }

  .vgs-user-menu {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .vgs-impersonation-banner {
    left: 0;
    flex-wrap: wrap;
  }
}
