:root { color-scheme: light; font-family: Inter, "Segoe UI", sans-serif; color: #18212b; background: #f5f7f9; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #146c5a; text-decoration: none; }
.topbar { height: 58px; display: flex; align-items: center; gap: 32px; padding: 0 28px; background: #15252c; color: white; }
.topbar a { color: white; }
.brand { font-weight: 700; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
nav a, .nav-button { white-space: nowrap; }
nav form { margin: 0; }
.nav-button { min-height: 0; padding: 0; background: transparent; font: inherit; }
.admin-identity { margin-left: auto; white-space: nowrap; color: #c8d8d5; font-size: 13px; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 32px auto; }
.panel { background: white; border: 1px solid #dce2e5; border-radius: 6px; padding: 24px; }
.login { width: min(440px, calc(100% - 24px)); margin: 9vh auto; }
h1 { margin: 0 0 8px; font-size: 25px; letter-spacing: 0; }
h2 { font-size: 18px; letter-spacing: 0; }
.muted { color: #60717a; margin: 0 0 24px; }
.stack { display: grid; gap: 14px; }
.external-login { margin-bottom: 14px; }
.provider-login { width: 100%; }
.bootstrap-note { margin: 12px 0 18px; color: #52626a; font-size: 13px; }
.separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #6b7c84; font-size: 12px; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: #dce2e5; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #b8c4c9; border-radius: 4px; font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 4px; background: #146c5a; color: white; font-weight: 600; cursor: pointer; }
.button.secondary { background: #e8eeec; color: #173c34; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
.table-wrap { overflow-x: auto; }
.section-title { margin-top: 32px; }
.page-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-heading-row .muted { margin-bottom: 0; }
.secondary-id { margin-top: 4px; color: #6b7c84; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 12px; }
.current-user { margin-left: 8px; }
.empty-state { padding: 24px 12px; text-align: center; color: #6b7c84; }
.role-membership { margin-top: 20px; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.account-summary > div { display: grid; gap: 6px; min-width: 0; }
.account-summary code { overflow-wrap: anywhere; }
.account-provider-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-provider-actions form { margin: 0; }
.account-empty-state { background: white; border: 1px solid #e2e7e9; }
.field-label { color: #60717a; font-size: 13px; }
.role-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.role-heading h3 { margin: 0; font-size: 16px; letter-spacing: 0; }
dialog.modal { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 18px 48px rgba(21, 37, 44, 0.24); }
dialog.modal::backdrop { background: rgba(21, 37, 44, 0.48); }
.modal-content { padding: 24px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-heading h2 { margin: 0 0 6px; }
.modal-heading .muted { margin-bottom: 0; }
.icon-button { width: 40px; min-width: 40px; padding: 0; background: #e8eeec; color: #173c34; font-size: 24px; line-height: 1; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
body.modal-open { overflow: hidden; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e2e7e9; font-size: 14px; }
th { color: #52626a; background: #f8fafb; }
.status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #e6f3ec; color: #165b43; font-size: 12px; }
.status-pending { background: #fff4d6; color: #755000; }
.status-failed, .status-unconfigured { background: #f2e9e8; color: #7a332d; }
.notice { padding: 10px 12px; background: #e7f3ee; color: #165b43; border-radius: 4px; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { margin: 0; }
.link-button { min-height: 0; padding: 0; border: 0; background: transparent; color: #146c5a; font: inherit; font-weight: 400; }
.button.danger { margin-right: auto; background: #a43d34; }
.error { padding: 10px; background: #fff0ef; color: #9e2e25; border-radius: 4px; }
.validation-summary-valid { display: none; }
.error ul { margin: 0; padding-left: 20px; }
@media (max-width: 720px) { nav { overflow-x: auto; scrollbar-width: thin; } .topbar { padding: 0 16px; gap: 18px; } .providers, .account-summary { grid-template-columns: 1fr; } .page-heading-row { align-items: stretch; flex-direction: column; gap: 16px; } .page-heading-row .button { align-self: flex-start; } .modal-content { padding: 20px; } }
