:root {
  --pbc-bg: #f0f4f9;
  --pbc-fg: #1f1f1f;
  --pbc-muted: #5f6368;
  --pbc-border: #dadce0;
  --pbc-card: #ffffff;
  --pbc-accent: #1a73e8;
}

body {
  background: var(--pbc-bg);
  color: var(--pbc-fg);
  font-family: 'Google Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum";
}

pre { white-space: pre-wrap; word-break: break-word; }
code { color: #6f42c1; }

/* ---------- Top bar ---------- */
.pbc-topbar {
  background: #fff;
  border-bottom: 1px solid var(--pbc-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.pbc-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pbc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pbc-fg);
}
.pbc-brand img { height: 32px; }
.pbc-brand-sep { width: 1px; height: 24px; background: var(--pbc-border); }
.pbc-brand-title {
  font-size: 22px;
  font-weight: 400;
  color: #3c4043;
  letter-spacing: 0.01em;
}

.pbc-icon-btn, .pbc-avatar-btn {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background .15s;
  padding: 0;
}
.pbc-icon-btn:hover, .pbc-avatar-btn:hover { background: rgba(60,64,67,.08); }
.pbc-icon-btn i { font-size: 20px; }
.pbc-avatar-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pbc-border);
}

/* App picker */
.pbc-app-picker {
  width: 320px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60,64,67,.18);
}
.pbc-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pbc-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pbc-fg);
  padding: 12px 6px;
  border-radius: 8px;
  transition: background .15s;
}
.pbc-app-tile:hover { background: rgba(60,64,67,.06); }
.pbc-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f6cf7, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
}
.pbc-app-icon-admin {
  background: linear-gradient(135deg, #ea4335, #b3261e);
}
.pbc-app-icon-admin i { font-size: 22px; }
.pbc-app-name {
  font-size: 12px;
  text-align: center;
  color: var(--pbc-fg);
}

/* Account dropdown */
.pbc-account-menu {
  width: 320px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60,64,67,.18);
}
.pbc-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pbc-border);
}
.pbc-account-menu .dropdown-item { padding: 10px 12px; font-size: 14px; }

/* ---------- Page wrapper ---------- */
.pbc-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ---------- Hero (dashboard) ---------- */
.pbc-hero {
  text-align: center;
  padding: 16px 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.pbc-avatar-ring {
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #ea4335, #fbbc04, #34a853, #4285f4, #ea4335);
}
.pbc-avatar-xl {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: #fff;
}
.pbc-hero-name {
  font-size: 36px;
  font-weight: 400;
  margin: 16px 0 4px;
}
.pbc-hero-email { color: var(--pbc-muted); font-size: 14px; }
.pbc-hero-meta { color: var(--pbc-fg); font-size: 14px; margin-top: 6px; }
.pbc-hero-meta .pbc-dot { margin: 0 8px; color: var(--pbc-muted); }

.pbc-hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--pbc-border);
  border-radius: 999px;
  padding: 10px 20px;
  max-width: 560px;
  margin: 24px auto 20px;
  color: var(--pbc-muted);
}
.pbc-hero-search input {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  font-size: 15px;
}

.pbc-chip-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pbc-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--pbc-border);
  color: #1f1f1f;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.pbc-chip:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.2); color: #202124; }

/* ---------- Cards ---------- */
.pbc-cards { padding-top: 24px; }
.pbc-card {
  background: var(--pbc-card);
  border: 1px solid var(--pbc-border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  transition: box-shadow .15s, transform .15s;
}
.pbc-card:hover { box-shadow: 0 1px 6px rgba(60,64,67,.15); }
.pbc-card h2 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.pbc-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.pbc-pill {
  background: #e8f0fe;
  color: #1967d2;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}
.pbc-perm {
  background: #f1f3f4;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  color: #3c4043;
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}
