:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #272d31;
  background: #f5f7f8;
  font-synthesis: none;
  --ink: #272d31;
  --muted: #6d757b;
  --line: #e9edef;
  --soft: #f5f7f8;
  --accent: #252524;
  --danger: #ad3e3e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 0%, #eef2f3 0, transparent 55%),
    radial-gradient(ellipse at 85% 10%, #f6f0eb80 0, transparent 45%);
  background-attachment: fixed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #e1e5e8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: var(--soft);
  border-color: #c9d1ca;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #44443f;
  border-color: #44443f;
}
.danger {
  color: var(--danger);
}
.danger:hover {
  background: #fcf3f3;
  border-color: #e7c9c9;
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.quiet:hover {
  border-color: transparent;
  color: var(--ink);
}
.layout {
  min-height: 100vh;
}
.floating-header {
  position: sticky;
  top: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 20px auto 0;
  padding: 7px 8px 7px 10px;
  border: 1px solid #ffffffd9;
  border-radius: 18px;
  background: #ffffffb8;
  color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 8px 30px #29343c09,
    0 1px 3px #29343c08,
    inset 0 1px 0 #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #f3e5de;
  color: #945f4e;
  font-size: 30px;
  line-height: 1;
  font-weight: 550;
  padding-bottom: 4px;
}
nav {
  display: flex;
  gap: 3px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #626d71;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}
nav svg {
  display: none;
}
nav a:hover {
  background: #ffffff80;
  color: var(--ink);
}
nav a[aria-current="page"] {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 5px #25343b0d;
}
.nav-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  background: #efe3dc;
  color: #835a48;
  font-size: 10px;
  font-weight: 650;
  line-height: 16px;
  text-align: center;
}
.nav-count:empty {
  display: none;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  border-radius: 10px;
  background: #fff;
  color: #252524;
  font-size: 12px;
}
#account-label {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
  height: 27px;
  border-radius: 7px;
  background: #ecf0f1;
  color: #596a70;
  font-size: 11px;
  font-weight: 600;
}
.account-arrow {
  color: var(--muted);
}
.workspace {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto 32px;
  min-height: calc(100dvh - 64px);
  border: 0;
  background: transparent;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 54px 36px 64px;
  min-height: calc(100dvh - 160px);
  outline: none;
}
h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.15px;
}
h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.4;
}
p {
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 1.65;
}
.muted,
.subtle {
  color: var(--muted);
}
.subtle {
  font-size: 12px;
}
.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
  font-size: 13px;
}
.overview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px;
  background: #ffffff85;
  border-radius: 12px;
  flex-wrap: wrap;
}
.overview > span,
.overview > a {
  padding: 8px 12px;
  border-radius: 9px;
}
.overview .inbox-link {
  background: #f3ede680;
  color: #77634c;
}
.overview strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 4px;
}
.overview a:hover {
  color: var(--ink);
}
.inbox-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b58b42;
  display: inline-block;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
.section-head h2 {
  margin: 0;
}
.section-card,
.card {
  padding: 20px;
  border: 1px solid #ffffffd9;
  border-radius: 20px;
  background: #ffffffed;
  box-shadow:
    0 4px 20px #27353b04,
    0 1px 3px #27353b05;
}
.section-card {
  margin-bottom: 20px;
}
.list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.section-card > p:last-child {
  margin-bottom: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #edf0f2;
  border-radius: 13px;
  background: #f7f9fa;
}
.row-body {
  flex: 1;
  min-width: 0;
}
.row-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.list-caption {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 11px;
}
.section-description {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.list-footer .list-caption {
  margin: 0;
}
.list-footer .list-tools {
  margin-left: auto;
}
.list-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.icon-button {
  flex: 0 0 36px;
  width: 36px;
  min-height: 36px;
  padding: 8px;
}
.icon-button:hover {
  background: #f1f4f5;
}
.icon-button svg {
  flex-shrink: 0;
}
.row .actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}
.row code {
  display: block;
  margin-top: 6px;
}
.connection-row {
  padding: 20px;
  gap: 16px;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #f5f7f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4d6052;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a099;
  flex-shrink: 0;
}
.badge.active,
.badge.approved,
.badge.ok {
  color: #4f7057;
}
.badge.active::before,
.badge.approved::before,
.badge.ok::before {
  background: #609369;
}
.badge.pending {
  color: #8a723e;
}
.badge.pending::before {
  background: #bc9a51;
}
.badge.revoked,
.badge.denied,
.badge.needs_reauth,
.badge.denied_policy {
  color: #a04b4b;
}
.badge.revoked::before,
.badge.denied::before,
.badge.needs_reauth::before,
.badge.denied_policy::before {
  background: #bf7575;
}
.page-note {
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.card {
  margin-bottom: 20px;
}
.card p {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.card-top .badge {
  margin-left: auto;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.card-actions .subtle {
  margin-right: auto;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  background: #f6f8f9;
  border: 0;
  border-radius: 15px;
}
.empty h3 {
  font-weight: 550;
}
.empty p {
  max-width: 420px;
  margin: 8px auto 18px;
  color: var(--muted);
}
.empty p:last-child {
  margin-bottom: 0;
}
.tabs {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #e9edef;
}
.tabs button {
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.tabs button:hover {
  color: var(--ink);
  background: #ffffff80;
}
.tabs button.selected {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px #28373c0d;
}
.info {
  margin: 24px 0;
  padding: 16px 18px;
  background: var(--soft);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.info p {
  font-size: 12px;
}
.notice {
  padding: 14px 16px;
  background: #f0f6f1;
  border: 1px solid #dce8df;
  border-radius: 7px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}
.notice.error {
  background: #fcf4f4;
  border-color: #efdddd;
  color: #9d4343;
}
.notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-grid {
  display: grid;
  gap: 18px;
}
label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #59635c;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 9px 11px;
  min-height: 40px;
  border: 1px solid #dce2dc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
}
input[readonly] {
  background: #f9faf9;
  color: var(--muted);
}
input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0 8px 0 0;
  accent-color: var(--accent);
}
textarea {
  min-height: 72px;
  resize: vertical;
}
fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
legend {
  color: var(--muted);
  font-size: 12px;
}
fieldset label {
  padding: 5px 0;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #829a87;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #829a87;
}
code,
.codebox {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.codebox {
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 6px;
  line-height: 1.6;
  margin: 12px 0;
}
.steps {
  color: var(--muted);
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}
.steps li {
  padding: 3px 0;
}
.details {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.6;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.loading {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
dialog {
  width: min(580px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #e2e7e2;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 16px 64px #17231b24;
  overflow: hidden;
}
dialog::backdrop {
  background: #1d2b233b;
  backdrop-filter: blur(2px);
}
#dialog-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 50px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 21px 24px 18px;
  background: #f8fafa;
  gap: 16px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 580;
  letter-spacing: -0.4px;
}
.close-button {
  min-height: 30px;
  height: 30px;
  width: 30px;
  padding: 0;
  font-size: 24px;
  font-weight: 350;
}
.dialog-body {
  padding: 22px 24px;
  overflow-y: auto;
  min-height: 0;
}
.dialog-body > p:first-child {
  margin-top: 0;
}
.dialog-body > :last-child {
  margin-bottom: 0;
}
.dialog-footer {
  flex-shrink: 0;
  background: #f8fafa;
  padding: 16px 24px;
}
.dialog-footer:not(:has(.dialog-actions)):not(:has(.dialog-error:not(:empty))) {
  display: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.dialog-actions > .danger:first-child {
  margin-right: auto;
  border-color: transparent;
}
.dialog-error {
  color: var(--danger);
  margin: 0 0 12px;
  font-size: 12px;
}
.dialog-error:empty {
  display: none;
}
.request-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.request-heading h3 {
  font-size: 15px;
  margin: 0;
}
.request-heading + p {
  margin: 5px 0 0;
}
.request-details {
  padding: 18px;
  background: #f5f7f8;
  border-radius: 14px;
  margin-bottom: 22px;
}
.identity-handle {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.approval-form {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 20px;
}
.wide {
  grid-column: 1/-1;
}
.field-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field-options legend {
  padding: 0 0 9px;
}
.field-options label {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.field-options label:has(input:checked) {
  background: #f4f7f4;
  border-color: #d9e2da;
  color: #3e5544;
}
.optional-note summary {
  color: #5b675e;
  font-size: 12px;
  cursor: pointer;
}
.optional-note summary .subtle {
  font-size: 11px;
  padding-left: 6px;
  color: #737e76;
}
.optional-note textarea {
  margin-top: 12px;
}
.login {
  max-width: 680px;
  text-align: center;
  margin: 42px auto 0;
  padding: 0;
}
.login .brandmark {
  margin-bottom: 28px;
}
.login h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -2.6px;
}
.login h1 span {
  color: #cf654e;
}
.login > p.muted {
  max-width: 440px;
  margin: 22px auto;
  font-size: 16px;
}
.login .button {
  margin: 16px 0 10px;
  min-width: 130px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline .codebox {
  flex: 1;
  min-width: 0;
}
.break {
  overflow-wrap: anywhere;
}
.account-card {
  max-width: 560px;
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 30;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  max-width: 420px;
}
.toast {
  background: #29392e;
  color: #fff;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 4px 18px #17231b16;
}
@media (max-width: 880px) {
  .floating-header {
    gap: 12px;
  }
  nav a {
    padding-inline: 9px;
  }
  #account-label,
  .account-arrow {
    display: none;
  }
  .account-link {
    padding: 5px;
  }
}
@media (max-width: 680px) {
  .floating-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    top: 10px;
    width: calc(100% - 28px);
    max-width: none;
    margin-top: 10px;
    padding: 8px;
    border-radius: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .header-account {
    grid-column: 2;
    grid-row: 1;
  }
  nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0;
  }
  nav a {
    padding: 8px 7px;
    font-size: 11px;
  }
  .workspace {
    width: calc(100% - 16px);
    border-radius: 22px;
    margin-bottom: 8px;
  }
  main {
    padding: 32px 12px 48px;
    min-height: calc(100dvh - 140px);
  }
  h1 {
    font-size: 22px;
  }
  .page-head {
    margin-bottom: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .overview {
    gap: 4px;
    margin-bottom: 20px;
  }
  .overview > span,
  .overview > a {
    padding: 8px 10px;
  }
  .section-head {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
  }
  .section-card,
  .card {
    padding: 14px;
    border-radius: 18px;
  }
  .row {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 14px;
  }
  .list-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .list-tools {
    margin-left: auto;
  }
  .list-tools .refresh-status {
    display: none;
  }
  .list-tools .refresh-status[data-paused] {
    display: inline;
    flex: 1;
  }
  .list-tools:has([data-paused]) {
    flex-basis: 100%;
  }
  .row-body {
    flex-basis: 70%;
  }
  .row > button,
  .row .actions {
    margin-left: auto;
  }
  .connection-row .row-body {
    flex-basis: calc(100% - 60px);
  }
  .connection-row > .badge {
    margin-left: 54px;
  }
  .inline {
    flex-wrap: wrap;
  }
  .inline .codebox {
    flex-basis: 100%;
  }
  .login {
    margin-top: 28px;
  }
  .login h1 {
    font-size: 40px;
    letter-spacing: -1.8px;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  #dialog-form {
    max-height: calc(100dvh - 26px);
  }
  .dialog-head {
    padding: 16px 18px;
  }
  .dialog-body {
    padding: 20px 18px;
  }
  .dialog-footer {
    padding: 14px 18px;
  }
  .request-heading {
    align-items: start;
  }
  .details {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 11px;
  }
  .approval-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #notifications {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.12s,
      border-color 0.12s,
      color 0.12s;
  }
  dialog[open] {
    animation: appear 0.12s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.access-detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.access-detail summary {
  cursor: pointer;
  width: fit-content;
}
.access-detail code {
  padding-top: 3px;
}

.row-body h3,
.row-body p {
  overflow-wrap: anywhere;
}
.refresh-status {
  font-size: 11px;
  line-height: 1.5;
}
.setup-hint {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f8;
}
.quiet.danger {
  color: var(--danger);
}
@media (max-width: 360px) {
  nav a {
    font-size: 10px;
    padding-inline: 4px;
    gap: 3px;
  }
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .floating-header {
    background: #f9fbfc;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .floating-header {
    background: #f9fbfc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 360px) {
  .nav-count {
    min-width: 5px;
    width: 5px;
    height: 5px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    background: #b48671;
  }
  .row .actions button {
    padding-inline: 10px;
  }
}
