/* InnoLab Access Hub � Users table + module modal (ported from profile-deployment demo) */

.access-hub-card {
  padding: 0;
  overflow: hidden;
}

.access-hub-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.15rem 0.5rem;
  border-bottom: 1px solid var(--line, rgba(28, 26, 23, 0.1));
}

.access-hub-admin-tag {
  background: rgba(26, 107, 74, 0.12);
  color: #1a5c40;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.access-hub-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.access-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--line, rgba(28, 26, 23, 0.08));
}

.access-hub-toolbar-l,
.access-hub-toolbar-r {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.access-hub-search {
  min-width: 200px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
}

.access-hub-filter {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.access-hub-stats {
  font-size: 0.82rem;
  color: var(--muted, #6b6560);
}

.access-hub-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  min-height: 320px;
}

.access-hub-split.is-preview-open {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
}

.access-hub-table-wrap {
  overflow: auto;
  max-height: min(62vh, 640px);
}

.access-hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.access-hub-table th,
.access-hub-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
  text-align: left;
  vertical-align: middle;
}

.access-hub-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(248, 247, 244, 0.9);
  position: sticky;
  top: 0;
  z-index: 1;
}

.access-hub-table tbody tr {
  cursor: pointer;
}

.access-hub-table tbody tr:hover {
  background: rgba(26, 107, 74, 0.04);
}

.access-hub-table tbody tr.is-selected {
  background: rgba(26, 107, 74, 0.08);
}

.access-hub-user-ident {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.access-hub-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a3d2e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.access-hub-user-open {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.access-hub-user-open em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82em;
}

.access-hub-user-ident span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.access-hub-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.access-hub-badge--active { background: rgba(26, 107, 74, 0.15); color: #1a5c40; }
.access-hub-badge--invited { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.access-hub-badge--inactive { background: rgba(107, 101, 96, 0.12); color: #6b6560; }
.access-hub-badge--expired,
.access-hub-badge--offboarding,
.access-hub-badge--revoked { background: rgba(193, 117, 35, 0.15); color: #8a4b12; }
.access-hub-badge--admin { background: rgba(26, 107, 74, 0.12); color: #1a5c40; }
.access-hub-badge--none { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }

.access-hub-acl-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.access-hub-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.access-hub-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 18, 16, 0.25);
  z-index: 2;
  cursor: pointer;
}

.access-hub-preview {
  border-left: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: min(62vh, 640px);
  overflow: hidden;
  z-index: 3;
}

.access-hub-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.access-hub-preview-sec {
  padding: 0.75rem 1rem;
  overflow: auto;
  flex: 1;
}

.access-hub-perm-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.access-hub-perm-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.access-hub-perm-tab.is-on {
  background: #1a3d2e;
  border-color: #1a3d2e;
  color: #fff;
}

.access-hub-perm-pane { display: none; }
.access-hub-perm-pane.is-on { display: block; }

.access-hub-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.06);
}

.access-hub-module-name {
  font-weight: 600;
  font-size: 0.86rem;
}

.access-hub-module-level {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.access-hub-preview-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

.access-hub-invite-drawer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem;
  background: rgba(248, 247, 244, 0.6);
}

.access-hub-invite-drawer[hidden] { display: none; }

.access-hub-invite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.access-hub-invite-grid .span-2 { grid-column: 1 / -1; }

.access-hub-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.access-hub-modal[hidden] { display: none; }

.access-hub-modal.is-open { display: flex; }

.access-hub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  border: 0;
}

.access-hub-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(20, 18, 16, 0.2);
}

.access-hub-modal-panel--wide {
  width: min(640px, 100%);
}

.access-hub-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.access-hub-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.access-hub-modal-body {
  padding: 1rem 1.15rem;
}

.access-hub-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
}

.access-hub-level-opt {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.06);
  cursor: pointer;
}

.access-hub-level-opt.is-on strong { color: #1a5c40; }

.access-hub-level-copy strong {
  display: block;
  font-size: 0.88rem;
}

.access-hub-level-copy em {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

.access-hub-detail-group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.access-hub-detail-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.access-hub-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.access-hub-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.access-hub-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.access-hub-toggle-ui {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d5d0c5;
  position: relative;
  transition: background 0.15s;
}

.access-hub-toggle-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.access-hub-toggle input:checked + .access-hub-toggle-ui {
  background: #1a6b4a;
}

.access-hub-toggle input:checked + .access-hub-toggle-ui::after {
  transform: translateX(16px);
}

/* Filter chips + onboarding */
.access-hub-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-hub-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.access-hub-filter-chip.is-on {
  border-color: #1a6b4a;
  background: rgba(26, 107, 74, 0.08);
  color: #1a5c40;
}

.access-hub-onboarding {
  padding: 0.75rem 1.15rem 1rem;
}

.access-hub-onboarding-card {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(26, 107, 74, 0.18);
  background: rgba(26, 107, 74, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-hub-onboarding-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.access-hub-onboarding-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted, #6b6560);
}

.access-hub-onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.access-hub-onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 220px;
}

.access-hub-onboarding-step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.access-hub-onboarding-step-copy strong {
  display: block;
  font-size: 0.84rem;
  color: var(--ink, #1c1a17);
}

.access-hub-onboarding-step-copy span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #6b6560);
  line-height: 1.35;
}

.access-hub-onboarding-step-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a6b4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.access-hub-onboarding-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.access-hub-onboarding-cta {
  min-width: 200px;
}

.access-hub-onboarding-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.access-hub-toolbar--embed {
  gap: 0.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.access-hub-toolbar--embed .access-hub-toolbar-l,
.access-hub-toolbar--embed .access-hub-toolbar-r {
  gap: 8px;
}

.access-hub-split--embed {
  min-height: 0;
}

.access-hub-split--embed .access-hub-table-wrap {
  max-height: none;
}

body.access-invite-wizard-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* View tabs (users / requests / groups) */
.access-hub-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.65rem 1.15rem 0;
}

.access-hub-view-tab {
  border: 1px solid rgba(28, 26, 23, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.access-hub-view-tab.is-on {
  background: #1a3d2e;
  border-color: #1a3d2e;
  color: #fff;
}

/* Workflow contract banner */
.access-scope-workflow-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0.75rem 1.15rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 131, 0, 0.22);
  background: rgba(255, 131, 0, 0.07);
}

.access-scope-workflow-banner-main strong {
  display: block;
  font-size: 0.88rem;
}

.access-scope-workflow-banner-ents {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.access-scope-ent-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(28, 26, 23, 0.06);
  color: var(--muted);
}

.access-scope-ent-chip.is-on {
  background: rgba(26, 107, 74, 0.12);
  color: #1a5c40;
}

.access-scope-persona-field,
.access-scope-expiry-fieldset {
  display: block;
  margin-bottom: 0.75rem;
}

.access-scope-gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.access-scope-gate-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(180, 60, 40, 0.1);
  color: #8b3a2a;
}

.access-scope-item.is-gated {
  opacity: 0.72;
}

.access-hub-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 131, 0, 0.08);
  border: 1px solid rgba(255, 131, 0, 0.2);
}

.access-scope-groups-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.access-scope-group-card {
  padding: 12px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 10px;
  background: #fff;
}

.access-scope-group-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.access-scope-groups-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-scope-group-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(28, 26, 23, 0.08);
}

.access-scope-requests-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Quick invite modal */
.access-hub-quick-invite {
  position: fixed;
  inset: 0;
  z-index: 1510;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.access-hub-quick-invite[hidden] {
  display: none;
}

.access-hub-quick-invite-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 18, 16, 0.45);
  cursor: pointer;
}

.access-hub-quick-invite-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(20, 18, 16, 0.2);
}

.access-hub-quick-invite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.access-hub-quick-invite-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.access-hub-quick-invite-lead {
  margin: 0;
  padding: 0.85rem 1.15rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.access-hub-quick-invite-form {
  padding: 0.85rem 1.15rem 1rem;
}

.access-hub-quick-invite-field {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
}

.access-hub-quick-invite-field input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.access-hub-quick-invite-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.access-hub-quick-invite-item {
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.access-hub-quick-invite-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.access-hub-quick-invite-item-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(28, 26, 23, 0.06);
}

.access-hub-quick-invite-scope-list {
  max-height: 240px;
  overflow: auto;
}

/* Invite wizard */
.access-invite-wizard {
  position: fixed;
  inset: 0;
  z-index: 1510;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.access-invite-wizard[hidden] {
  display: none;
}

.access-invite-wizard-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 18, 16, 0.45);
  cursor: pointer;
}

.access-invite-wizard-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(90vh, 760px);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(20, 18, 16, 0.2);
}

.access-invite-wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.access-invite-wizard-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.access-invite-wizard-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.access-invite-wizard-steps {
  margin: 0;
  padding: 1rem;
  list-style: none;
  border-right: 1px solid var(--line);
}

.access-invite-wizard-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.access-invite-wizard-steps li.is-on {
  color: inherit;
  font-weight: 600;
}

.access-invite-wizard-step-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(28, 26, 23, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.access-invite-wizard-steps li.is-on .access-invite-wizard-step-ic,
.access-invite-wizard-steps li.is-done .access-invite-wizard-step-ic {
  background: #1a6b4a;
  color: #fff;
}

.access-invite-wizard-main {
  padding: 1rem 1.15rem 0.85rem;
  min-width: 0;
}

.access-invite-wizard-main h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.access-invite-wizard-lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.access-invite-wizard-pane[hidden] {
  display: none;
}

.access-invite-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.access-invite-wizard-foot-r {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.access-invite-wizard-foot [hidden],
.access-invite-wizard-head [hidden] {
  display: none !important;
}

.access-invite-wizard-foot .ghost,
.access-invite-wizard-foot button.ghost,
.access-invite-wizard-foot .primary,
.access-invite-wizard-foot button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.access-invite-wizard-foot .ghost,
.access-invite-wizard-foot button.ghost {
  border: 1px solid rgba(14, 23, 42, 0.14);
  background: #fff;
  color: var(--blg-ink, #0f1728) !important;
}

.access-invite-wizard-foot .ghost:hover:not(:disabled),
.access-invite-wizard-foot button.ghost:hover:not(:disabled) {
  background: rgba(14, 23, 42, 0.04);
}

.access-invite-wizard-foot .primary,
.access-invite-wizard-foot button.primary {
  border: 0;
  background: var(--blg-blue, #ff8300);
  color: #fff !important;
}

.access-invite-wizard-foot .primary:hover:not(:disabled),
.access-invite-wizard-foot button.primary:hover:not(:disabled) {
  background: var(--blg-blue-dark, #c56200);
}

/* Lite invite: role cards */
.access-invite-role-cards-fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.access-invite-role-cards-fieldset legend {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  padding: 0;
}

.access-invite-role-cards-fieldset.is-compact {
  margin-bottom: 0.75rem;
}

.access-invite-role-cards-legend-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-invite-role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.access-invite-role-card {
  display: block;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.access-invite-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.access-invite-role-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 26, 23, 0.12);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.access-invite-role-card-body strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.access-invite-role-card-body small {
  font-size: 0.74rem;
  color: var(--muted, #6b6560);
  line-height: 1.35;
}

.access-invite-role-card:hover .access-invite-role-card-body {
  border-color: rgba(26, 107, 74, 0.35);
}

.access-invite-role-card.is-on .access-invite-role-card-body,
.access-invite-role-card input:checked + .access-invite-role-card-body {
  border-color: #1a6b4a;
  background: rgba(26, 107, 74, 0.06);
  box-shadow: 0 0 0 1px rgba(26, 107, 74, 0.2);
}

.access-invite-role-card-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.access-invite-temp-card {
  margin-top: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 12px;
  background: rgba(14, 23, 42, 0.02);
}

.access-invite-temp-title {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 40, 0.45);
}

.access-invite-temp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.access-invite-temp-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.access-invite-temp-copy b {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--blg-ink, #0f1728);
}

.access-invite-temp-copy small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #6b6560);
  line-height: 1.4;
}

.access-invite-temp-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.access-invite-temp-expiry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 26, 23, 0.08);
}

.access-invite-temp-expiry[hidden] {
  display: none !important;
}

.access-invite-temp-expiry-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blg-ink, #0f1728);
}

.access-invite-temp-expiry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.access-invite-temp-expiry-input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(28, 26, 23, 0.14);
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
}

.access-invite-temp-expiry-preview {
  font-size: 0.8rem;
  color: var(--muted, #6b6560);
}

.access-invite-notify-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 12px;
  background: rgba(14, 23, 42, 0.02);
}

.access-invite-notify-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.access-invite-notify-copy b {
  font-size: 0.88rem;
  font-weight: 650;
}

.access-invite-notify-copy small {
  font-size: 0.76rem;
  color: var(--muted, #6b6560);
  line-height: 1.4;
}

.access-hub-preview-meta {
  margin-top: 0.75rem;
}

.access-hub-quick-invite--lite .access-hub-quick-invite-panel {
  max-width: 520px;
}

.access-hub-link-btn {
  display: inline;
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  color: #1a6b4a;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.access-hub-link-btn:hover {
  color: #145a3d;
}

.access-invite-wizard--lite .access-invite-wizard-panel {
  width: min(560px, 100%);
  max-height: min(88vh, 680px);
}

.access-invite-wizard-layout--lite {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.access-invite-wizard-steps--lite {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0.85rem 1.15rem 0;
  list-style: none;
  border-right: 0;
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
  flex-shrink: 0;
}

.access-invite-wizard--lite .access-invite-wizard-main {
  flex: 0 0 auto;
}

.access-invite-wizard-email-field {
  margin-top: 0.15rem;
}

.access-invite-wizard-extra-card {
  margin-top: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 10px;
  background: rgba(14, 23, 42, 0.02);
}

.access-invite-wizard-extra-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 650;
}

.access-invite-wizard-extra-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.access-invite-wizard-extra-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.access-invite-wizard-extra-copy b {
  font-size: 0.88rem;
}

.access-invite-wizard-extra-copy small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #6b6560);
  line-height: 1.4;
}

.access-invite-wizard-extra-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted, #6b6560);
}

.access-invite-wizard-review--lite {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(28, 26, 23, 0.08);
}

.blg-settings-panel--access-policy .access-hub-root {
  border: 0;
  box-shadow: none;
}

.access-hub-policy-root .access-hub-toolbar-r [data-access-hub-invite-open] {
  display: none;
}

.access-hub-preview-role-cards .access-invite-role-cards {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

@media (max-width: 960px) {
  .access-hub-split.is-preview-open {
    grid-template-columns: 1fr;
  }
  .access-hub-preview {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
  }
  .access-hub-invite-grid {
    grid-template-columns: 1fr;
  }
  .access-hub-table-wrap {
    max-height: none;
  }
  .access-hub-table {
    min-width: 520px;
  }
}
