:root {
  color-scheme: light;
  --brand: #003366;
  --brand-2: #1578c1;
  --brand-soft: #eaf3fa;
  --gold: #f4bb33;
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #d8e3eb;
  --surface: #ffffff;
  --danger: #9b3137;
  --success: #186c50;
  --shadow: 0 18px 44px rgba(0, 43, 82, 0.1);
  font-family: Gantari, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; color: var(--ink); background: linear-gradient(180deg, #f9fcfe 0%, #edf5fa 45%, #f8fbfd 100%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--brand); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.access-shell { width: min(100%, 1280px); margin: 0 auto; padding: 28px 18px 54px; }
.eyebrow { margin: 0 0 7px; color: var(--brand-2); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.access-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 34px 38px; border: 1px solid rgba(21,120,193,.16); border-radius: 18px; background: linear-gradient(112deg, #fff 0%, #f5faff 72%, #edf6fc 100%); box-shadow: var(--shadow); }
.access-hero__copy { max-width: 760px; }
.access-hero h1 { margin: 0; color: var(--brand); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.access-hero__copy > p:last-child { max-width: 700px; margin: 15px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.trust-card { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; min-width: 245px; padding: 18px; border: 1px solid #c9dcea; border-radius: 12px; background: rgba(255,255,255,.88); }
.trust-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: white; background: linear-gradient(145deg, var(--brand), var(--brand-2)); font-size: 1.2rem; }
.trust-card div { display: grid; gap: 3px; }.trust-card strong { color: var(--brand); }.trust-card span:last-child { color: var(--muted); font-size: .83rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.summary-card { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(0,43,82,.06); }
.summary-card > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; color: var(--brand-2); background: var(--brand-soft); }
.summary-card div { display: grid; }.summary-card b { color: var(--brand); font-size: 1.42rem; }.summary-card small { color: var(--muted); font-weight: 650; }
.page-feedback, .dialog-feedback { padding: 12px 15px; border: 1px solid #e4c4c7; border-radius: 8px; color: var(--danger); background: #fff6f6; font-weight: 700; }
.page-feedback[data-tone="success"] { border-color: #bedbcf; color: var(--success); background: #f1faf6; }
.workspace { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(540px, 1.6fr); align-items: start; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .person-heading h2 { margin: 0; color: var(--brand); font-size: 1.35rem; }.panel-heading .eyebrow { margin-bottom: 4px; }
.count-pill { min-width: 34px; padding: 6px 10px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-weight: 800; text-align: center; }
.search-field { display: block; padding: 16px 18px 10px; }
.search-field input { width: 100%; padding: 12px 14px; border: 1px solid #cbd9e4; border-radius: 8px; outline: none; background: #fbfdff; }.search-field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(21,120,193,.12); }
.people-list { max-height: 655px; padding: 6px 10px 14px; overflow: auto; }
.person-row { display: flex; width: 100%; align-items: flex-start; gap: 11px; padding: 13px 12px; border: 1px solid transparent; border-radius: 9px; color: inherit; background: transparent; text-align: left; }
.person-row:hover { background: #f3f8fc; }.person-row.is-selected { border-color: #a9cbe4; background: #eaf4fb; }
.person-row__avatar, .avatar { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--brand), var(--brand-2)); font-size: .82rem; font-weight: 850; }
.person-row__copy { display: grid; min-width: 0; gap: 2px; }.person-row__copy strong { overflow: hidden; color: var(--brand); text-overflow: ellipsis; white-space: nowrap; }.person-row__copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.person-row__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }.person-row__meta em { padding: 3px 7px; border-radius: 999px; font-size: .68rem; font-style: normal; font-weight: 750; }
.role-chip { color: #31566f; background: #eaf2f7; }.role-chip--admin { color: #694e06; background: #fff3c9; }.role-chip--reviewer, .app-role-chip { color: #15577d; background: #dcf1fd; }.status-chip { color: #842f35; background: #f9e7e9; }
.loading-state, .empty-list { padding: 28px 16px; color: var(--muted); text-align: center; }
.editor-panel { min-height: 520px; overflow: hidden; }.empty-state { display: grid; min-height: 520px; place-items: center; align-content: center; padding: 40px; text-align: center; }.empty-state > span { color: var(--brand-2); font-size: 2.2rem; }.empty-state h2 { margin: 12px 0 4px; color: var(--brand); }.empty-state p { margin: 0; color: var(--muted); }
.person-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 23px 25px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff, #f7fbfe); }.avatar { width: 50px; height: 50px; font-size: .95rem; }.person-heading__identity p:last-child { margin: 5px 0 0; color: var(--muted); }.status-field { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 750; }.status-field select { min-width: 120px; padding: 9px 10px; border: 1px solid #cbd9e4; border-radius: 8px; color: var(--ink); background: white; }
.role-section { padding: 23px 25px; border-bottom: 1px solid var(--line); }.section-heading h3 { margin: 0; color: var(--brand); font-size: 1.05rem; }.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.suite-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }.member-access-note, .superadmin-option { display: grid; grid-template-columns: auto 1fr; gap: 11px; min-height: 96px; padding: 15px; border: 1px solid #d3dfe8; border-radius: 10px; }.member-access-note { background: #f7fafc; }.member-access-note__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--success); font-size: .78rem; font-weight: 900; }.member-access-note > span:last-child, .superadmin-option > span:last-child { display: grid; align-content: start; gap: 5px; }.member-access-note strong, .superadmin-option strong { color: var(--brand); }.member-access-note small, .superadmin-option small { color: var(--muted); font-size: .8rem; line-height: 1.4; }.superadmin-option { position: relative; cursor: pointer; }.superadmin-option:hover { border-color: #d0aa38; }.superadmin-option:has(input:checked) { border-color: #d7ad31; background: #fffaf0; box-shadow: 0 0 0 2px rgba(244,187,51,.12); }.superadmin-option input { position: absolute; opacity: 0; pointer-events: none; }.superadmin-option input:checked + .checkbox-control { border-color: var(--brand-2); background: var(--brand-2); box-shadow: inset 0 0 0 3px white; }
.portal-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }.role-option { position: relative; display: flex; gap: 10px; min-height: 126px; padding: 14px; border: 1px solid #d3dfe8; border-radius: 10px; cursor: pointer; }.role-option:hover { border-color: #9fc4df; }.role-option:has(input:checked) { border-color: var(--brand-2); background: #eef7fd; box-shadow: 0 0 0 2px rgba(21,120,193,.09); }.role-option--critical:has(input:checked) { border-color: #d7ad31; background: #fffaf0; }.role-option input, .app-role-option input { position: absolute; opacity: 0; pointer-events: none; }.role-option__control { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; border: 2px solid #a9bac7; border-radius: 50%; }.role-option input:checked + .role-option__control { border: 5px solid var(--brand-2); }.role-option__copy { display: grid; align-content: start; gap: 6px; }.role-option__copy strong, .app-role-option strong { color: var(--brand); }.role-option__copy small, .app-role-option small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.app-role-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 15px; }.app-role-group { min-width: 0; margin: 0; padding: 13px; border: 1px solid #d7e2ea; border-radius: 10px; }.app-role-group legend { padding: 0 6px; color: var(--brand); font-weight: 850; }.app-role-option { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 5px; cursor: pointer; }.app-role-option > span:last-child { display: grid; gap: 2px; }.checkbox-control { display: grid; width: 18px; height: 18px; margin-top: 2px; border: 2px solid #9eafbc; border-radius: 4px; }.app-role-option input:checked + .checkbox-control { border-color: var(--brand-2); background: var(--brand-2); box-shadow: inset 0 0 0 3px white; }
.change-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 25px; border-top: 1px solid #b8d0e1; background: rgba(239,247,252,.97); backdrop-filter: blur(12px); }.change-bar > div:first-child { display: grid; gap: 2px; }.change-bar strong { color: var(--brand); }.change-bar span { color: var(--muted); font-size: .82rem; }.change-actions { display: flex; gap: 8px; }
.button, .icon-button { border: 0; border-radius: 8px; font-weight: 800; }.button { min-height: 42px; padding: 10px 16px; }.button--primary { color: white; background: linear-gradient(100deg, #0a447e, var(--brand-2)); box-shadow: 0 7px 16px rgba(0,72,128,.17); }.button--secondary { color: var(--brand); border: 1px solid #bcd0de; background: white; }.button:disabled { cursor: wait; opacity: .65; }.icon-button { display: grid; place-items: center; width: 39px; height: 39px; color: var(--brand-2); background: var(--brand-soft); }
.audit-panel { margin-top: 18px; overflow: hidden; }.audit-list { display: grid; }.audit-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #e4ebf0; }.audit-row:last-child { border-bottom: 0; }.audit-row__mark { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #fff7dc; }.audit-row strong { color: var(--brand); }.audit-row p { margin: 3px 0; color: var(--ink); }.audit-row small { color: var(--muted); }
.review-dialog { width: min(92vw, 610px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 28px 80px rgba(0,35,70,.28); }.review-dialog::backdrop { background: rgba(8,29,48,.54); backdrop-filter: blur(4px); }.review-card { padding: 27px; }.review-card__heading h2 { margin: 0; color: var(--brand); }.review-card__heading > p:last-child { margin: 7px 0 0; color: var(--muted); }.review-summary { display: grid; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.review-summary > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }.review-summary > div:last-of-type { border-bottom: 0; }.review-summary span { color: var(--muted); }.review-summary strong { color: var(--brand); text-align: right; }.review-summary > p { margin: 0; padding: 10px 14px; color: #755f1c; background: #fff9e8; font-size: .85rem; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

@media (max-width: 900px) {
  .access-hero { align-items: start; flex-direction: column; padding: 28px; }.trust-card { width: 100%; }.workspace { grid-template-columns: 1fr; }.people-list { max-height: 360px; }.suite-access-grid, .portal-role-grid { grid-template-columns: 1fr; }.role-option { min-height: auto; }.app-role-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .access-shell { padding-inline: 10px; }.summary-grid { grid-template-columns: 1fr; }.person-heading { grid-template-columns: auto 1fr; }.status-field { grid-column: 1 / -1; }.role-section { padding-inline: 18px; }.change-bar { align-items: stretch; flex-direction: column; padding-inline: 18px; }.change-actions { display: grid; grid-template-columns: 1fr 1fr; }.review-summary > div { grid-template-columns: 1fr; }.review-summary strong { text-align: left; }
}
