:root {
  color-scheme: dark;
  --background: #0c0c11;
  --surface: #14141c;
  --border: #292933;
  --text: #f6f4fb;
  --muted: #a7a5b7;
  --purple: #aa74ff;
  --purple-strong: #9146ff;
  --green: #77dfb1;
  --red: #ffa4ad;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; line-height: 1.7; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 60% -25%, #9146ff17, transparent 65%); z-index: -1; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #d8baff; outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
.site-shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 108px; border-bottom: 1px solid #ffffff0d; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 37px; height: 37px; background: var(--purple-strong); color: #fff; border-radius: 9px 9px 4px 9px; font-size: 21px; font-weight: 750; letter-spacing: -2px; direction: ltr; line-height: 1; padding-right: 2px; }
.brand-mark span { position: absolute; width: 8px; height: 8px; background: var(--purple-strong); bottom: -3px; right: 7px; transform: skewY(-35deg); }
.brand-name { font-size: 22px; letter-spacing: -.8px; font-weight: 400; }
.brand-name strong { font-weight: 750; }
.environment-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 30px; padding: 3px 11px; }
.environment-label span { width: 6px; height: 6px; border-radius: 50%; background: #c0a0ef; }
main { padding-block: 60px 54px; outline: none; }
.eyebrow { color: var(--purple); font-weight: 600; font-size: 13px; margin-bottom: 9px; }
h1 { font-size: clamp(30px, 3.9vw, 44px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.45; }
h1 span { font-weight: 750; }
.page-description { max-width: 670px; color: var(--muted); margin-top: 12px; font-size: 16px; }
.page-heading { margin-bottom: 32px; }
.workspace { display: grid; grid-template-columns: minmax(305px, .88fr) minmax(0, 1.6fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 25px; border-bottom: 1px solid var(--border); }
h2 { font-size: 17px; font-weight: 650; line-height: 1.5; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 30px; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-neutral { color: #bcb6c9; background: #ffffff08; }
.status-active { color: var(--green); background: #77dfb10d; border: 1px solid #77dfb121; }
.status-warning { color: #edc790; background: #edc7900d; }
.status-error { color: var(--red); background: #ffa4ad0d; }
.panel-caption { color: var(--muted); font-size: 12px; }
#signed-out-state, #signed-in-state, .unavailable-state { padding: 28px 25px 24px; }
.connect-symbol { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 14px; color: #b78aff; border: 1px solid #aa74ff25; background: #9146ff0c; }
.connect-symbol svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-panel h3 { font-size: 21px; line-height: 1.6; font-weight: 650; }
.supporting-copy { color: var(--muted); font-size: 14px; margin-top: 9px; margin-bottom: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 8px; border: 1px solid transparent; padding: 9px 16px; font-size: 13px; font-weight: 600; line-height: 1.65; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.button-primary { color: #fff; background: #7b31e1; border-color: #9b58f9; box-shadow: 0 3px 0 #0003; }
.button-primary:hover:not(:disabled) { background: #8c3cf6; }
.button-primary:disabled { opacity: .48; }
.button-primary svg { width: 21px; height: 21px; flex-shrink: 0; }
.button-wide { width: 100%; }
.button-arrow { margin-inline-start: auto; font-size: 18px; font-weight: 400; }
.button-secondary { background: #1c1c26; border-color: #363541; color: var(--text); }
.button-secondary:hover:not(:disabled) { background: #262632; border-color: #5a5366; }
.button-danger { background: transparent; border-color: #663640; color: #ffb4bc; }
.button-danger:hover:not(:disabled) { background: #ffa4ad0b; border-color: #a25264; }
.button-secondary:disabled, .button-danger:disabled { opacity: .45; }
.account-footnote { margin-top: 16px; color: #9995aa; font-size: 11px; line-height: 1.9; }
.account-footnote a { color: #c19af8; text-underline-offset: 3px; }
.permissions-intro { color: var(--muted); font-size: 13px; padding: 20px 25px 2px; }
.permission-list { list-style: none; margin: 0; padding: 0 25px; }
.permission-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding-block: 22px; }
.permission-row + .permission-row { border-top: 1px solid #ffffff09; }
.permission-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #33313f; border-radius: 9px; background: #ffffff03; color: #b3aac6; margin-top: 2px; }
.permission-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.permission-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.permission-title h3 { font-size: 15px; font-weight: 650; line-height: 1.65; }
.permission-tag { font-size: 10px; border-radius: 4px; color: #c5a2ff; background: #9146ff12; padding: 1px 6px; line-height: 1.8; }
.permission-content p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.permission-content code { display: inline-block; color: #9e94b1; font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; border-radius: 4px; margin-top: 8px; padding: 1px 5px; background: #0c0c1150; border: 1px solid #ffffff08; overflow-wrap: anywhere; }
.permission-status { display: inline-flex; color: #9590a5; font-size: 11px; margin-top: 7px; white-space: nowrap; }
.permission-status.is-granted { color: var(--green); }
.permission-row.is-granted .permission-icon { color: #bca0e7; border-color: #aa74ff28; }
.permissions-note { display: flex; align-items: start; gap: 10px; margin: 0 25px 23px; padding: 13px 14px; border-radius: 8px; background: #0e0e15; border: 1px solid #ffffff07; color: #9e96ad; font-size: 11px; }
.permissions-note svg { width: 16px; height: 16px; margin-top: 3px; stroke: #b397df; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.scope-boundary { color: #888299; font-size: 12px; margin-top: 21px; text-align: center; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px 28px; border-top: 1px solid #ffffff0a; color: #7f798f; font-size: 11px; }
.site-footer span:first-child { font-weight: 600; color: #96909f; }
.notice { padding: 12px 16px; border: 1px solid #ae86e540; background: #241633; border-radius: 9px; margin-bottom: 22px; font-size: 13px; color: #dfcdfa; }
.notice-success { border-color: #77dfb130; background: #14231e; color: #adedd0; }
.notice-error { border-color: #ffa4ad30; background: #281a22; color: #ffc1c9; }
.notice-warning { border-color: #edc79030; background: #272219; color: #edce9f; }
.loading-state { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: var(--muted); font-size: 13px; }
.loading-ring { width: 25px; height: 25px; border-radius: 50%; border: 2px solid #aa74ff20; border-top-color: var(--purple); }
@media (prefers-reduced-motion: no-preference) { .loading-ring { animation: spin 950ms linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.profile { display: flex; align-items: center; gap: 14px; margin-block: 2px 26px; }
.profile-avatar { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-radius: 13px; background: #9146ff15; border: 1px solid #aa74ff35; color: #c9a3ff; font-size: 24px; font-weight: 650; flex-shrink: 0; }
.profile-name { min-width: 0; }
.profile-name h3 { overflow-wrap: anywhere; font-size: 19px; }
.profile-name p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; text-align: right; }
.account-details { margin: 0 0 26px; }
.account-details > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-block: 9px; }
.account-details > div + div { border-top: 1px solid #ffffff06; }
.account-details dt { font-size: 12px; color: var(--muted); }
.account-details dd { margin: 0; color: #d5cddd; font-size: 12px; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.account-actions .button { padding-inline: 8px; }
.other-scopes { margin: 0 25px 23px; font-size: 12px; color: var(--muted); }
.other-scopes h3 { font-size: 12px; font-weight: 500; }
.other-scopes ul { padding-inline-start: 20px; margin-block: 8px 0; }
.other-scopes li { direction: ltr; text-align: right; overflow-wrap: anywhere; font-family: Consolas, monospace; font-size: 11px; }
.skip-link { position: fixed; top: 12px; right: 20px; transform: translateY(-200%); background: #8b43e8; color: white; z-index: 10; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 980px) {
  .site-shell { width: min(820px, calc(100% - 48px)); }
  .workspace { grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr); gap: 16px; }
  .panel-heading { padding-inline: 20px; }
  #signed-out-state, #signed-in-state, .unavailable-state { padding-inline: 20px; }
  .permissions-intro { padding-inline: 20px; }
  .permission-list { padding-inline: 20px; }
  .permissions-note { margin-inline: 20px; }
  .permission-row { grid-template-columns: 30px minmax(0, 1fr); gap: 11px; }
  .permission-icon { width: 30px; height: 30px; }
  .permission-row > .permission-status { grid-column: 2; justify-self: start; margin-top: 0; }
}
@media (max-width: 700px) {
  .site-shell { width: calc(100% - 36px); max-width: 520px; }
  .site-header { height: 84px; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 33px; height: 33px; font-size: 19px; }
  .brand { gap: 10px; }
  .environment-label { font-size: 10px; padding-inline: 8px; }
  main { padding-block: 36px; }
  h1 { font-size: 31px; letter-spacing: -.7px; }
  .page-description { font-size: 14px; }
  .page-heading { margin-bottom: 25px; }
  .workspace { grid-template-columns: 1fr; gap: 18px; }
  .panel-heading { padding-block: 19px; }
  .permission-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; }
  .permission-row > .permission-status { grid-column: auto; margin-top: 7px; }
  .permission-content p { font-size: 12px; }
  .scope-boundary { padding-inline: 12px; line-height: 1.9; }
  .site-footer { flex-direction: column; gap: 6px; padding-block: 19px 24px; }
}
@media (max-width: 430px) {
  .permission-row { grid-template-columns: 32px minmax(0, 1fr); }
  .permission-row > .permission-status { grid-column: 2; margin-top: 0; }
  .permission-title { gap: 7px; }
  .environment-label span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
