/* ============================================================
   ONBOARDING WIZARD
   ============================================================ */
.ob {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: #fff;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}
.ob-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 700px at 20% 25%, rgba(50,137,231,0.35), transparent 60%),
    radial-gradient(700px 500px at 85% 75%, rgba(50,137,231,0.18), transparent 60%),
    linear-gradient(180deg, #0A1B2E 0%, #050B17 100%);
}
.ob-glow {
  position: absolute; inset: 0;
  background-image: url('../assets/bg-blur-blue.png');
  background-size: cover; background-position: center;
  opacity: 0.14; mix-blend-mode: screen;
}

.ob-nav {
  padding: 24px 56px;
  display: flex; justify-content: space-between; align-items: center;
}
.ob-skip {
  color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-m);
}
.ob-skip:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Progress dots */
.ob-progress {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; padding: 8px 56px 24px;
  max-width: 760px; margin: 0 auto;
}
.ob-step {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.ob-step:not(:last-child)::after {
  content: ""; flex: 1; height: 1px;
  background: rgba(255,255,255,0.18);
  margin-left: 6px;
}
.ob-step.done:not(:last-child)::after { background: var(--yellow); }
.ob-step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.ob-step.done .ob-step-dot {
  background: var(--yellow); border-color: var(--yellow);
  color: #0A1B2E;
}
.ob-step.current .ob-step-dot {
  background: #fff; border-color: #fff;
  color: var(--blue);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.ob-step-label {
  font-size: 12px; color: rgba(255,255,255,0.55);
  white-space: nowrap;
  font-weight: 500;
}
.ob-step.current .ob-step-label { color: #fff; font-weight: 600; }

.ob-stage {
  display: grid; grid-template-rows: 1fr auto;
  padding: 8px 56px 40px;
}

.ob-card {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: 44px 56px;
  backdrop-filter: blur(20px);
  animation: obSlide 360ms var(--ease-out);
}
@keyframes obSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ob-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--yellow);
  margin-bottom: 16px;
}
.ob-title {
  font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px; color: #fff;
  text-wrap: balance;
}
.ob-title .hl { color: var(--yellow); }
.ob-lede {
  font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0 0 28px;
  max-width: 56ch;
}
.ob-footnote {
  margin-top: 22px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.ob-footnote a { color: var(--yellow); font-weight: 600; }

.ob-foot {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 24px auto 0;
  width: 100%;
}
.ob-foot-meta { flex: 1; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); }
.btn-primary-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0A1B2E;
  font-weight: 600; font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-m);
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-primary-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.32); }
.btn-ghost-light {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 500; font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--radius-m);
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-ghost-light:disabled { opacity: 0.3; cursor: not-allowed; }

/* Profile review */
.ob-profile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-l);
  padding: 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: start;
}
.ob-profile .avatar.lg {
  width: 64px; height: 64px; font-size: 20px;
  background: linear-gradient(135deg, var(--yellow), #f48f1c);
  color: #0A1B2E;
}
.ob-profile-fields {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px;
}
.opf { display: flex; flex-direction: column; gap: 4px; }
.opf-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.opf-value { font-size: 15px; font-weight: 500; color: #fff; }
.ob-profile-meta {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.ob-profile-meta svg { color: var(--yellow); }

/* Apps list in onboarding */
.ob-apps {
  display: grid; gap: 10px;
  margin-bottom: 24px;
}
.ob-app-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  animation: obAppIn 320ms var(--ease-out) backwards;
}
.ob-app-card:nth-child(1) { animation-delay: 60ms; }
.ob-app-card:nth-child(2) { animation-delay: 140ms; }
.ob-app-card:nth-child(3) { animation-delay: 220ms; }
.ob-app-card:nth-child(4) { animation-delay: 300ms; }
@keyframes obAppIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.ob-app-info { flex: 1; min-width: 0; }
.ob-app-name { font-size: 15px; font-weight: 600; color: #fff; }
.ob-app-desc { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.ob-app-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--yellow);
  padding: 6px 12px;
  background: rgba(251,199,86,0.12);
  border: 1px solid rgba(251,199,86,0.25);
  border-radius: var(--radius-pill);
}

.ob-call-out {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(50,137,231,0.12);
  border: 1px solid rgba(50,137,231,0.25);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.75);
}
.ob-call-out svg { color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.ob-call-out strong { color: #fff; font-weight: 600; }
.ob-call-out em { font-style: italic; color: rgba(255,255,255,0.85); }

/* SSO diagram */
.sso-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
}
.sso-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.sso-node .avatar.lg {
  background: linear-gradient(135deg, var(--yellow), #f48f1c);
  color: #0A1B2E;
}
.sso-node-label { font-size: 13px; font-weight: 600; color: #fff; margin-top: 4px; }
.sso-node-sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.sso-hub-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-m);
  background: var(--blue);
  display: grid; place-items: center;
}
.sso-hub-logo img {
  height: 22px;
  filter: brightness(0) invert(1);
}
.sso-line {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 20px;
}
.sso-line-track {
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  position: relative; overflow: hidden;
  min-width: 80px;
}
.sso-line-pulse {
  position: absolute; top: 0; left: -40%; height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  animation: ssoPulse 1.6s linear infinite;
}
@keyframes ssoPulse { to { left: 100%; } }
.sso-line-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; }

.sso-fan {
  grid-column: 1 / -1; margin-top: 28px;
  display: flex; justify-content: center; gap: 16px;
  position: relative;
}
.sso-fan::before {
  content: "";
  position: absolute; top: -28px; left: 50%; height: 22px; width: 2px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}
.sso-app {
  animation: ssoFan 600ms var(--ease-out) backwards;
}
@keyframes ssoFan {
  from { opacity: 0; transform: translateY(-12px) scale(0.8); }
  to { opacity: 1; transform: none; }
}

.ob-checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.ob-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.ob-checklist li svg { color: var(--yellow); flex-shrink: 0; }

/* Pin step */
.pin-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 28px;
}
.pin-tile {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out);
}
.pin-tile:hover { background: rgba(255,255,255,0.07); }
.pin-tile.on {
  background: rgba(251,199,86,0.12);
  border-color: rgba(251,199,86,0.35);
}
.pin-tile > span { flex: 1; font-size: 14px; font-weight: 600; color: #fff; }
.pin-toggle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  display: grid; place-items: center;
}
.pin-toggle.on { background: var(--yellow); color: #0A1B2E; }

.ob-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.notif-list { display: grid; gap: 8px; }
.notif-row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  width: 100%;
  text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}
.notif-row:hover { background: rgba(255,255,255,0.07); }
.notif-text { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: #fff; }
.notif-desc { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* Switch (shared style — used in onboarding + admin) */
.switch {
  width: 38px; height: 22px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.switch.on { background: var(--yellow); }
.switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur-fast) var(--ease-out);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.switch.on .switch-thumb { transform: translateX(16px); }
/* Admin variant (on light background) */
.admin .switch { background: var(--gray-200); }
.admin .switch.on { background: var(--blue); }

/* Done step */
.ob-done {
  text-align: center;
  display: grid; gap: 14px; justify-items: center;
}
.success-circle.xl {
  width: 84px; height: 84px;
}
.ob-tips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 20px;
}
.ob-tip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.ob-tip kbd { background: rgba(255,255,255,0.14); color: #fff; border-color: transparent; }
.ob-tip svg { color: var(--yellow); }


/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin {
  min-height: 100vh;
  background: var(--gray-50);
  animation: hubFadeIn 400ms var(--ease-out);
}

.admin-header { background: rgba(255,255,255,0.96); }
.admin-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  padding: 3px 8px;
  background: var(--blue-ultra-dark); color: #fff;
  border-radius: var(--radius-pill);
}
.admin-badge svg { color: var(--yellow); }
.exit-admin {
  font-size: 13px; font-weight: 600; color: var(--blue);
  padding: 8px 14px;
  border-radius: var(--radius-m);
}
.exit-admin:hover { background: var(--blue-ultra-light); }

.admin-body {
  display: grid; grid-template-columns: 260px 1fr;
  max-width: 1600px; margin: 0 auto;
}

.admin-side {
  padding: 28px 16px 28px 32px;
  position: sticky; top: 68px;
  height: calc(100vh - 68px);
  overflow: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.aside-section { display: grid; gap: 2px; }
.aside-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted);
  padding: 0 10px 8px;
}
.aside-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-m);
  font-size: 13px; font-weight: 500; color: var(--fg-secondary);
  width: 100%; text-align: left;
  transition: background var(--dur-fast) var(--ease-out);
}
.aside-item:hover { background: var(--gray-100); color: var(--fg-primary); }
.aside-item.active {
  background: var(--blue-ultra-light); color: var(--blue-semi-dark);
  font-weight: 600;
}
.aside-item > svg { color: inherit; opacity: 0.9; flex-shrink: 0; }
.aside-item > span:nth-child(2) { flex: 1; }
.aside-count {
  background: var(--gray-100); color: var(--fg-secondary);
  font-size: 10px; font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.aside-item.active .aside-count { background: var(--blue); color: #fff; }
.aside-count.alert { background: var(--yellow); color: #5a3a00; }

.aside-stat {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--fg-secondary);
}
.aside-stat strong { font-weight: 600; color: var(--fg-primary); }

.aside-foot { margin-top: auto; }
.aside-help {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--blue-ultra-light);
  border: 1px solid rgba(50,137,231,0.18);
  border-radius: var(--radius-m);
  padding: 12px;
  font-size: 12px; line-height: 1.45;
  color: var(--blue-semi-dark);
}
.aside-help svg { color: var(--blue); margin-top: 1px; flex-shrink: 0; }
.aside-help strong { color: var(--blue-dark); font-weight: 600; }

.admin-main {
  padding: 28px 32px 64px;
  min-width: 0;
}

.admin-pagehead {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
}
.admin-h1 {
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 6px;
}
.admin-sub {
  font-size: 14px; color: var(--fg-secondary);
  max-width: 64ch; margin: 0;
}
.admin-pagehead-actions { display: flex; gap: 8px; flex-shrink: 0; }

.admin-toolbar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px;
}
.admin-search {
  flex: 1; max-width: 380px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  padding: 9px 12px;
}
.admin-search:focus-within {
  border-color: var(--blue); box-shadow: var(--shadow-glow-blue);
}
.admin-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13px;
}
.admin-select {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-m);
  padding: 10px 32px 10px 12px;
  font-size: 13px; color: var(--fg-primary);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.admin-toolbar-meta {
  margin-left: auto;
  font-size: 12px; color: var(--fg-muted);
}

/* User table */
.user-table {
  background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.ut-head, .ut-row {
  display: grid;
  grid-template-columns: 2.4fr 1.1fr 1.4fr 1fr 1fr 32px;
  gap: 16px; padding: 14px 20px;
  align-items: center;
}
.ut-head {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted);
}
.ut-row {
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 13px;
  transition: background var(--dur-fast) var(--ease-out);
}
.ut-row:last-child { border-bottom: none; }
.ut-row:hover { background: var(--blue-ultra-light); }
.ut-emp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ut-name { font-weight: 600; }
.ut-meta { font-size: 11px; color: var(--fg-secondary); margin-top: 1px; }
.team-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  background: transparent;
}
.app-strip {
  display: flex; gap: 4px; align-items: center;
}
.app-more {
  height: 22px; min-width: 22px; padding: 0 6px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--fg-secondary);
  font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.ut-last { color: var(--fg-secondary); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gray-100); color: var(--fg-secondary);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-active { background: rgba(24,178,107,0.12); color: #0d6e44; }
.status-onboarding { background: var(--yellow-ultra-light); color: #8a5a00; }
.status-inactive { background: rgba(216,0,39,0.08); color: var(--danger); }
.ut-action { color: var(--fg-muted); }
.ut-row:hover .ut-action { color: var(--blue); }

/* DRAWER */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(7,14,28,0.3);
  backdrop-filter: blur(4px);
  display: flex; justify-content: flex-end;
  animation: fadeIn 200ms var(--ease-out);
}
.drawer {
  width: 560px; max-width: 100%; height: 100vh;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: drawerSlide 280ms var(--ease-out);
}
@keyframes drawerSlide {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.drawer-head {
  padding: 24px 28px 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-user { display: flex; gap: 16px; align-items: flex-start; }
.drawer-user h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.drawer-meta { font-size: 13px; color: var(--fg-secondary); }
.drawer-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

.drawer-tabs {
  display: flex; gap: 4px;
  padding: 8px 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.dt {
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.dt.active { color: var(--fg-primary); font-weight: 600; border-bottom-color: var(--blue); }

.drawer-body {
  flex: 1; overflow: auto;
  padding: 24px 28px;
  display: grid; gap: 32px;
}

.ds-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.ds-head h3 {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.ds-meta { font-size: 12px; color: var(--fg-muted); }

.group-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.group-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-m);
  border: 1px solid;
  background: #fff;
}
.gc-dot { width: 8px; height: 8px; border-radius: 50%; }
.gc-name { font-size: 13px; font-weight: 600; }
.gc-meta { font-size: 11px; color: var(--fg-muted); margin-top: 1px; }
.group-chip.add {
  border-style: dashed; border-color: var(--border-default);
  color: var(--fg-secondary); cursor: pointer;
  font-size: 12px; font-weight: 600;
}
.group-chip.add:hover { color: var(--blue); border-color: var(--blue); }

.group-app-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.g-app {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: 13px;
}
.g-app > span:nth-child(2) { font-weight: 600; }
.g-app-from {
  margin-left: auto; font-size: 11px; color: var(--fg-muted);
}

.access-list {
  display: grid; gap: 4px;
}
.acc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-m);
  transition: background var(--dur-fast) var(--ease-out);
}
.acc-row:hover { background: var(--gray-50); }
.acc-main { flex: 1; min-width: 0; }
.acc-name { font-size: 14px; font-weight: 600; }
.acc-desc { font-size: 12px; color: var(--fg-secondary); margin-top: 2px; }
.acc-via { color: var(--blue-semi-dark); font-weight: 500; }
.acc-locked {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--fg-muted);
  background: var(--gray-100);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.activity {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.activity li {
  display: flex; gap: 12px;
  font-size: 13px;
  align-items: flex-start;
}
.activity li > svg {
  margin-top: 2px;
  color: var(--blue);
  flex-shrink: 0;
}
.activity strong { font-weight: 600; }
.act-meta { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

.drawer-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: 10px; align-items: center;
}
.btn-ghost.danger { color: var(--danger); }
.btn-ghost.danger:hover { background: rgba(216,0,39,0.06); }

/* ============================================================
   GROUPS TAB
   ============================================================ */
.group-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.group-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.group-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}
.gcd-top { display: flex; gap: 14px; margin-bottom: 16px; }
.group-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-m);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.group-icon.lg { width: 56px; height: 56px; font-size: 18px; }
.gcd-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gcd-desc { font-size: 12px; color: var(--fg-secondary); margin-top: 2px; line-height: 1.4; }
.gcd-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.gcd-stats > div {
  background: var(--gray-50);
  border-radius: var(--radius-s);
  padding: 8px 12px;
}
.gcd-stat-val { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.gcd-stat-lbl { font-size: 11px; color: var(--fg-secondary); margin-top: -2px; }
.gcd-apps { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.gcd-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600;
  color: var(--blue);
}

.member-list { display: grid; gap: 6px; }
.member-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
}
.member-row:hover { background: var(--gray-50); }
.mr-name { font-size: 13px; font-weight: 600; }
.mr-meta { font-size: 11px; color: var(--fg-secondary); }
.mr-last { margin-left: auto; font-size: 11px; color: var(--fg-muted); }

/* ============================================================
   REQUESTS TAB
   ============================================================ */
.req-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.req-sum-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 16px 18px;
}
.rsc-val {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1;
}
.rsc-val.tone-warn { color: #8a5a00; }
.rsc-val.tone-info { color: var(--blue-semi-dark); }
.rsc-val.tone-ok { color: var(--success); }
.rsc-lbl { font-size: 12px; color: var(--fg-secondary); margin-top: 6px; }

.req-list { display: grid; gap: 10px; }
.req-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  padding: 18px 20px;
  display: grid; grid-template-columns: 1fr 1.4fr auto;
  gap: 24px; align-items: center;
}
.rq-left { display: flex; align-items: center; gap: 14px; }
.rq-actor { display: flex; align-items: center; gap: 10px; }
.rq-name { font-size: 14px; font-weight: 600; }
.rq-role { color: var(--fg-secondary); font-weight: 400; }
.rq-team { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.rq-arrow { color: var(--fg-muted); flex-shrink: 0; }
.rq-app { display: flex; align-items: center; gap: 10px; }
.rq-app-name { font-size: 14px; font-weight: 600; }
.rq-app-meta { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }

.rq-body { min-width: 0; }
.rq-reason {
  font-size: 13px; line-height: 1.45;
  color: var(--fg-secondary);
  font-style: italic;
  margin-bottom: 10px;
}
.rq-meta-row { display: flex; align-items: center; gap: 16px; }
.urg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.urg-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.urg-blocking { background: rgba(216,0,39,0.10); color: var(--danger); }
.urg-priority { background: var(--yellow-ultra-light); color: #8a5a00; }
.urg-standard { background: var(--gray-100); color: var(--fg-secondary); }
.rq-time {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--fg-muted);
}

.rq-actions { display: flex; gap: 8px; }

/* ============================================================
   APPS TAB
   ============================================================ */
.apps-table {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.at-head, .at-row {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1.6fr 0.9fr 0.9fr 32px;
  gap: 16px; padding: 14px 20px;
  align-items: center;
}
.at-head {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted);
}
.at-row {
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.at-row:last-child { border-bottom: none; }
.at-row:hover { background: var(--blue-ultra-light); }
.at-app { display: flex; align-items: center; gap: 12px; }
.at-name { font-weight: 600; font-size: 14px; }
.at-cat { font-size: 11px; color: var(--fg-muted); margin-top: 1px; }
.at-owner { color: var(--fg-secondary); }
.seats-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.seats-fill {
  height: 100%; border-radius: inherit;
  transition: width var(--dur-slow) var(--ease-out);
}
.seats-meta { font-size: 11px; color: var(--fg-muted); margin-top: 4px; }
.sso-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.sso-pill.ok { background: rgba(24,178,107,0.12); color: #0d6e44; }
.at-prov { font-size: 12px; color: var(--fg-secondary); }
.at-action { color: var(--fg-muted); }

/* ============================================================
   AUDIT TAB
   ============================================================ */
.audit-list {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.audit-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 16px; padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.audit-row:last-child { border-bottom: none; }
.aud-when {
  font-size: 12px; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.aud-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-secondary);
  flex-wrap: wrap;
}
.aud-line strong { color: var(--fg-primary); font-weight: 600; }
.aud-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px 3px 5px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  color: var(--fg-primary);
}
.aud-prep { color: var(--fg-muted); }
.aud-note { color: var(--fg-muted); font-style: italic; }

/* ============================================================
   USER MENU additions
   ============================================================ */
.um-section-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-muted);
  padding: 8px 12px 4px;
}
.admin-entry { color: var(--blue) !important; font-weight: 600 !important; }
.admin-entry:hover { background: var(--blue-ultra-light) !important; }
.um-chev { margin-left: auto; font-size: 14px; opacity: 0.7; }

/* Admin toast (slightly different position) */
.toast-admin { bottom: 24px; }

/* ============================================================
   Responsive admin (best-effort)
   ============================================================ */
@media (max-width: 1100px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 16px 20px; flex-direction: row; gap: 16px; overflow: auto; }
  .aside-section { flex-direction: row; gap: 4px; flex-shrink: 0; }
  .aside-section:nth-child(2), .aside-foot { display: none; }
  .req-card { grid-template-columns: 1fr; gap: 12px; }
  .req-summary { grid-template-columns: repeat(2, 1fr); }
  .ut-head, .ut-row { grid-template-columns: 1fr; gap: 4px; }
  .at-head, .at-row { grid-template-columns: 1fr; gap: 4px; }
}
