@import url("/fonts.css");
:root {
  --primary: #560c30;
  --primary-text: var(--primary);
  --primary-hover: #701b46;
  --primary-soft: #f3e7ee;
  --canvas: #faf7fb;
  --surface: #fff;
  --surface-alt: #f7f5f8;
  --ink: #29232a;
  --muted: #716674;
  --line: #e8e1e9;
  --danger: #b42335;
  --success: #25735c;
  --focus: #9665a3;
  --shadow: 0 14px 45px rgba(48, 22, 42, 0.07);
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  --primary: #e69ebb;
  --primary-text: color-mix(in srgb, var(--brand-primary, #560c30) 36%, #ffffff);
  --primary-hover: #f0b4cc;
  --primary-soft: #442334;
  --canvas: #181519;
  --surface: #211d22;
  --surface-alt: #2a242b;
  --ink: #f3edf4;
  --muted: #bcb0bf;
  --line: #3c323e;
  --danger: #ff9eaa;
  --success: #90d4b7;
  --focus: #d5b0e1;
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.15);
}
[data-brand-theme="light"] { --primary-text: var(--primary); }
[data-brand-theme="dark"] { --primary-text: color-mix(in srgb, var(--brand-primary, #560c30) 36%, #ffffff); }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--primary-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.17;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  font-weight: 640;
  margin-bottom: 10px;
}
h3 {
  font-size: 1rem;
  font-weight: 630;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
  margin-bottom: 16px;
}
small,
.small {
  font-size: 0.82rem;
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
code {
  font-size: 0.84em;
  background: var(--surface-alt);
  padding: 3px 6px;
  border-radius: 5px;
}
pre {
  white-space: pre-wrap;
  font-size: 0.83rem;
  line-height: 1.55;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-alt);
  overflow: auto;
  max-height: 380px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip-link:focus-visible {
  top: 14px;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.boot h1 {
  margin-top: 24px;
}
.boot-logo { display: flex; align-items: center; justify-content: center; width: min(100%, var(--loading-logo-max-width, 440px)); height: auto; max-width: var(--loading-logo-max-width, 440px); }
.boot-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--loading-logo-size, 88px); object-fit: contain; }
.boot-logo .boot-logo-dark { display: none; }
:root[data-theme="dark"] .boot-logo .boot-logo-light { display: none; }
:root[data-theme="dark"] .boot-logo .boot-logo-dark { display: block; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--brand-primary, #560c30);
  color: var(--brand-ink, #fff);
  border-radius: 11px;
  font-weight: 750;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-mark.large {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.15rem;
  font-weight: 720;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand-sub {
  font-size: 0.71rem;
  display: block;
  color: var(--muted);
  font-weight: 450;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 34px 18px 20px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow-y: auto;
}
.sidebar .brand {
  padding: 0 14px;
  margin-bottom: 38px;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.62rem;
  color: var(--muted);
  padding: 24px 16px 10px;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 520;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  text-decoration: none;
  background: var(--surface-alt);
  color: var(--ink);
}
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.sidebar-release {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  width: 100%;
  min-width: 0;
}
.sidebar-product {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sidebar-version {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.68rem;
}
.sidebar-copyright {
  display: block;
  width: 100%;
  min-width: 0;
}
.sidebar-bottom > .button.small {
  padding: 5px 0;
  min-height: 30px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.app-body {
  min-width: 0;
}
.topbar {
  min-height: 91px;
  padding: 20px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.breadcrumb {
  font-size: 0.81rem;
  color: var(--muted);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-actions .language {
  max-width: 128px;
}
.language {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 9px 4px;
  min-width: 80px;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 11px 5px 5px;
}
.account-menu .account-name {
  font-size: 0.79rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}
.profile-avatar-edit {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}
.profile-avatar-edit:hover { background: var(--surface-alt); color: var(--primary-text); }
.profile-avatar-edit .icon { width: 16px; height: 16px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 660;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0.84rem;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.xl {
  width: 88px;
  height: 88px;
  font-size: 1.85rem;
}
.avatar.lg {
  width: 58px;
  height: 58px;
  font-size: 1.16rem;
}
.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 0.68rem;
}
.main-content {
  --section-gap: 22px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  max-width: 1230px;
  padding: 46px 48px 65px;
  margin: 0 auto;
}
.main-content > :is(.card, .grid, .stack, .notice, .security-steps) { margin-block: 0; }
.main-content > .page-heading { margin: 0 0 10px; }
.page-heading {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.page-heading p {
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 0;
  font-size: 0.94rem;
}
.eyebrow {
  color: var(--primary-text);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  min-width: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.card-heading h2 {
  margin-bottom: 6px;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--primary-text);
  background: var(--primary-soft);
  border-radius: 12px;
}
.card-icon .icon {
  width: 22px;
  height: 22px;
}
.card-text {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}
.card-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.card-footer > p { margin: 0; min-width: 0; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--primary-text);
  padding: 0;
}
.text-link:hover {
  text-decoration: underline;
}
.hero {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 32px;
  background: linear-gradient(
    110deg,
    var(--surface) 0%,
    var(--primary-soft) 220%
  );
  margin-bottom: 26px;
}
.hero h2 {
  font-size: 1.5rem;
  font-weight: 560;
  margin-bottom: 6px;
}
.hero .hero-text {
  flex: 1;
  min-width: 0;
}
.hero p {
  margin-bottom: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 550;
  white-space: nowrap;
  background: var(--surface-alt);
  color: var(--muted);
}
.pill.success {
  background: #e7f5ef;
  color: #24654f;
}
.pill.warning {
  background: #fff1d9;
  color: #8a5c12;
}
.pill.danger {
  background: #fbe8ec;
  color: #a02642;
}
:root[data-theme="dark"] .pill.success {
  background: #244235;
  color: #b2e3c7;
}
:root[data-theme="dark"] .pill.warning {
  background: #4f3c20;
  color: #f3d19a;
}
:root[data-theme="dark"] .pill.danger {
  background: #4a2831;
  color: #ffb4c7;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 620;
  text-decoration: none;
  background: var(--primary);
  color: var(--primary-ink, #fff);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--surface-alt);
}
.button.ghost {
  background: transparent;
  color: var(--primary-text);
  border-color: transparent;
}
.button.ghost:hover {
  background: var(--primary-soft);
}
.button.danger {
  background: var(--danger);
  color: #fff;
}
.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.75rem;
}
.button.wide {
  width: 100%;
}
:root[data-theme="dark"] .button:not(.secondary):not(.ghost):not(.danger) {
  color: var(--primary-ink, #27171f);
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
[hidden] { display: none !important; }
.actions.end {
  justify-content: flex-end;
}
.account-form > .form-actions { margin-top: 4px; }
.account-form + :is(.notice, .actions, .button, .account-form, p, details) { margin-top: 20px; }
.list-item .grow > p + .actions { margin-top: 14px; }
.dialog-body > :is(p, details) + .actions { margin-top: 18px; }
.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 540px);
  min-width: 0;
}
.inline-search > .error-slot { grid-column: 1 / -1; }
.inline-search > .field, .inline-search > .form-actions { margin: 0; }
.inline-search > .form-actions .button { min-height: 44px; }
.table-pagination { justify-content: flex-end; margin-top: 20px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}
.field label,
.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select:not(.language),
textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  color: var(--ink);
  padding: 11px 13px;
  min-height: 44px;
  width: 100%;
  font-size: 0.87rem;
  transition: border-color 0.15s;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #b7a6b5;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input[readonly] {
  background: var(--surface-alt);
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.field .hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 72px !important;
}
.password-toggle {
  position: absolute;
  inset-block: 2px;
  right: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  padding: 0 11px;
  min-width: 58px;
  font-size: 0.76rem;
  font-weight: 500;
}
.password-toggle:hover {
  color: var(--ink);
  background: var(--surface-alt);
}
.field .confirmation-message {
  color: var(--danger, #a32e45);
}
.technical-details {
  margin-top: 12px;
  color: var(--muted);
}
.technical-details summary {
  cursor: pointer;
}
.security-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.security-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.security-steps .step-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-alt);
}
.security-steps li.complete {
  color: var(--ink);
}
.security-steps li.complete .step-status {
  color: var(--primary-text);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  margin: 13px 0;
  line-height: 1.5;
}
.check input {
  accent-color: var(--primary);
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.notice {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.notice.error {
  border-color: #e7bac4;
  background: #fff5f7;
  color: #8b223b;
}
.notice.success {
  border-color: #b7dfcc;
  background: #effaf5;
  color: #245d48;
}
:root[data-theme="dark"] .notice.error {
  border-color: #643444;
  background: #34222a;
  color: #f3b2c4;
}
:root[data-theme="dark"] .notice.success {
  border-color: #345b47;
  background: #21372d;
  color: #b4e4c9;
}
.notice strong {
  display: block;
  color: inherit;
  margin-bottom: 3px;
}
.notice p {
  margin: 0;
}
.error-slot:empty {
  display: none;
}
.detail-list {
  margin: 0;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:first-child {
  padding-top: 0;
}
.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.detail-row dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.detail-row dd {
  font-size: 0.85rem;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.list-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:first-child {
  padding-top: 0;
}
.list-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.list-item .grow {
  flex: 1;
  min-width: 0;
}
.list-item h3 {
  font-size: 0.86rem;
  margin: 0 0 4px;
}
.list-item p {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.list-item .actions {
  flex-shrink: 0;
}
.empty {
  text-align: center;
  padding: 40px 22px;
  color: var(--muted);
}
.empty .card-icon {
  margin: 0 auto 18px;
}
.empty h2 {
  color: var(--ink);
}
.empty p {
  font-size: 0.86rem;
  max-width: 460px;
  margin: 0 auto 20px;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
.table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.8rem;
  text-align: left;
}
.table th {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--muted);
  font-weight: 620;
  padding: 13px 12px;
  background: var(--surface-alt);
  white-space: nowrap;
}
.table th:first-child {
  border-radius: 8px 0 0 8px;
}
.table th:last-child {
  border-radius: 0 8px 8px 0;
}
.table td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  max-width: 330px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table .person small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.users-table { min-width: 720px; }
.users-table .person { min-width: 220px; }
.users-table td:nth-child(4) { min-width: 140px; }
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.search {
  max-width: 320px;
}
.stat {
  font-size: 2.1rem;
  font-weight: 580;
  letter-spacing: -0.05em;
  margin: 16px 0 6px;
}
.stat-label {
  font-size: 0.79rem;
  color: var(--muted);
}
.auth-page {
  min-height: 100vh;
  padding: 32px 52px;
  display: flex;
  flex-direction: column;
}
.auth-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
}
.auth-header > .brand { min-width: 0; max-width: 100%; justify-self: start; }
.auth-header .brand-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-toolbar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.auth-toolbar > * { flex: 0 0 auto; }
.auth-toolbar > .button.small, .auth-toolbar .select-control.compact .select-trigger { min-height: 44px; padding-block: 10px; white-space: nowrap; }
.auth-toolbar .select-control.compact { min-width: 104px; max-width: 140px; }
.button.text-action { background: transparent; border-color: transparent; min-height: 44px; }
.button.text-action.flush-start { padding-inline-start: 0; border-inline-start-width: 0; justify-content: flex-start; text-align: start; }
.button.text-action.flush-end { padding-inline-end: 0; border-inline-end-width: 0; justify-content: flex-end; text-align: end; }
.email-resend { display: grid; gap: 8px; margin-top: 12px; }
.email-resend-notice:empty { display: none; }
.email-resend .notice { margin: 0; }
.email-resend .actions, .auth-form .email-resend .actions { margin-top: 0; }
.authenticator-inventory { display: grid; gap: 14px; margin-block: 20px; min-width: 0; }
.authenticator-item { display: grid; gap: 10px; padding-block: 14px; border-block-end: 1px solid var(--line); min-width: 0; }
.authenticator-item > strong { min-width: 0; overflow-wrap: anywhere; }
.authenticator-item:first-child { padding-block-start: 0; }
.authenticator-item .actions { margin-top: 0; }
.authenticator-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .75rem; }
.authenticator-status { margin-bottom: 14px; }
.authenticator-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
@media (max-width: 640px) {
  .auth-header { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .auth-header > .brand { max-width: 100%; }
  .auth-toolbar { justify-self: end; max-width: 100%; }
}
.auth-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(50px, 12vh, 120px) 0 50px;
  gap: 90px;
}
.auth-intro {
  max-width: 355px;
  padding-top: 38px;
}
.auth-intro h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 18px 0 24px;
  font-weight: 530;
  letter-spacing: -0.06em;
}
.auth-intro p {
  color: var(--muted);
  font-size: 1rem;
}
.auth-accent {
  width: 46px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin-bottom: 24px;
}
.auth-form {
  width: 450px;
  flex-shrink: 0;
  padding: 38px 36px;
  box-shadow: var(--shadow);
}
.auth-form h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.auth-form .subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.auth-form .actions {
  margin-top: 22px;
}
.auth-form .auth-primary-form > .form-actions .button { width: 100%; }
.auth-form .auth-primary-form > .form-actions { margin-top: 20px; }
.auth-form > .button + .button { margin-inline-start: 8px; }
.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 20px;
}
.auth-tabs button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.79rem;
  padding: 0 0 12px;
  position: relative;
}
.auth-tabs button.active {
  color: var(--primary-text);
  font-weight: 600;
}
.auth-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.account-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  margin: 10px 0;
}
.account-choice:hover {
  background: var(--surface-alt);
}
.account-choice strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
.account-choice small {
  color: var(--muted);
}
.account-choice .grow {
  flex: 1;
}
.consent-scopes {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.consent-scopes li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  padding: 30px;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 45px);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.22);
  overflow: auto;
}
dialog::backdrop {
  background: rgba(28, 15, 27, 0.42);
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  font-size: 1.35rem;
  padding-top: 7px;
}
.qr {
  width: 210px;
  height: 210px;
  display: block;
  margin: 0 auto 22px;
  border-radius: 8px;
  background: white;
  padding: 10px;
}
.recovery-codes {
  font-size: 1rem;
  columns: 2;
  line-height: 2.2;
  letter-spacing: 0.025em;
}
.avatar-editor {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.avatar-editor canvas {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--surface-alt);
}
.avatar-editor input {
  width: 220px;
}
.segmented {
  display: flex;
  gap: 6px;
  background: var(--surface-alt);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 9px 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}
.segmented button.active {
  background: var(--surface);
  color: var(--primary-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 300;
  max-width: 420px;
  pointer-events: none;
}
#toast:not(:empty) {
  padding: 14px 18px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 11px;
  font-size: 0.84rem;
  box-shadow: var(--shadow);
}
.loading {
  padding: 36px;
}
.loading-feedback {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}
.boot-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.loading-spinner {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: loading-turn 0.8s linear infinite;
}
.button .loading-feedback {
  font-size: inherit;
  color: inherit;
}
.button[aria-busy="true"] { cursor: wait; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.navigation-toggle { flex-shrink: 0; }
.navigation-scrim { display: none; }
@media (min-width: 801px) {
  .app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar-collapsed .sidebar { padding-inline: 10px; }
  .sidebar-collapsed .sidebar .brand { justify-content: center; padding-inline: 0; }
  .sidebar-collapsed .brand-name,
  .sidebar-collapsed .nav-text,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-bottom { display: none; }
  .sidebar-collapsed .nav-link { justify-content: center; padding-inline: 12px; }
  .sidebar-collapsed .nav-link[aria-current="page"] { position: relative; }
}
.skeleton {
  height: 18px;
  margin: 17px 0;
  background: var(--surface-alt);
  border-radius: 6px;
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton:nth-child(2) {
  width: 72%;
}
.skeleton:nth-child(3) {
  width: 88%;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.color-sample {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.small-caps {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
:root[data-color="colorful"] .card[data-category="user"] .card-icon,
:root[data-color="colorful"] .card[data-category="devices"] .card-icon { background: #e9edf9; color: #455fa1; }
:root[data-color="colorful"] .card[data-category="shield"] .card-icon,
:root[data-color="colorful"] .card[data-category="key"] .card-icon { background: #e5f1eb; color: #306d54; }
:root[data-color="colorful"] .card[data-category="apps"] .card-icon,
:root[data-color="colorful"] .card[data-category="invite"] .card-icon { background: #fff0db; color: #946318; }
:root[data-color="colorful"] .card[data-category="mail"] .card-icon,
:root[data-color="colorful"] .card[data-category="bell"] .card-icon { background: #ede8f8; color: #705294; }
:root[data-theme="dark"][data-color="colorful"] .card[data-category="user"] .card-icon,
:root[data-theme="dark"][data-color="colorful"] .card[data-category="devices"] .card-icon { background: #29364f; color: #bed0ff; }
:root[data-theme="dark"][data-color="colorful"] .card[data-category="shield"] .card-icon,
:root[data-theme="dark"][data-color="colorful"] .card[data-category="key"] .card-icon { background: #203b32; color: #abd9bd; }
:root[data-theme="dark"][data-color="colorful"] .card[data-category="apps"] .card-icon,
:root[data-theme="dark"][data-color="colorful"] .card[data-category="invite"] .card-icon { background: #43351f; color: #f0cd91; }
:root[data-theme="dark"][data-color="colorful"] .card[data-category="mail"] .card-icon,
:root[data-theme="dark"][data-color="colorful"] .card[data-category="bell"] .card-icon { background: #382d4c; color: #dbc6f4; }
:root[data-color="colorful"] .hero { background: linear-gradient(110deg,var(--surface) 0%,#f8e6ee 62%,#edf0fb 100%); }
:root[data-theme="dark"][data-color="colorful"] .hero { background: linear-gradient(110deg,var(--surface) 0%,#422432 62%,#252d48 100%); }
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 60px;
  }
  .app-shell {
    grid-template-columns: 268px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px 18px;
  }
  .main-content {
    padding: 35px 28px 55px;
  }
  .topbar {
    padding: 18px 28px;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-body {
    gap: 45px;
  }
  .auth-intro {
    max-width: 280px;
  }
  .auth-intro h1 {
    font-size: 3rem;
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    width: 260px;
    z-index: 30;
    box-shadow: var(--shadow);
    inset: 0 auto 0 0;
    height: 100dvh;
  }
  .sidebar.open {
    display: flex;
  }
  .navigation-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    border: 0;
    border-radius: 0;
    background: rgb(20 14 20 / 22%);
    cursor: default;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    min-height: 76px;
    padding: 16px 22px;
  }
  .breadcrumb {
    display: none;
  }
  .main-content {
    padding: 28px 22px 45px;
  }
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .hero {
    padding: 24px;
    gap: 18px;
  }
  .hero .avatar.xl {
    width: 65px;
    height: 65px;
    font-size: 1.3rem;
  }
  .hero .button {
    display: none;
  }
  .auth-page {
    padding: 24px;
  }
  .auth-body {
    padding: 38px 0;
  }
  .auth-intro {
    display: none;
  }
  .auth-form {
    width: min(450px, 100%);
    padding: 30px 26px;
  }
  .auth-footer {
    justify-content: center;
  }
  .auth-footer span:last-child {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .page-heading .actions {
    margin-top: 5px;
  }
  .card {
    padding: 24px;
  }
  .table-toolbar {
    flex-wrap: wrap;
  }
  .search {
    max-width: 100%;
  }
  .account-menu .account-name {
    max-width: 110px;
  }
  .detail-row {
    gap: 14px;
  }
  .list-item {
    align-items: flex-start;
  }
  .list-item .actions {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-header .brand-sub {
    display: none;
  }
}
@media (max-width: 450px) {
  .topbar {
    padding: 13px 15px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .language {
    max-width: 95px;
  }
  .account-menu .account-name {
    display: none;
  }
  .account-menu {
    width: 50px;
    height: 50px;
    padding: 5px;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    flex: 0 0 50px;
  }
  .main-content {
    padding: 27px 16px 40px;
  }
  .card {
    padding: 22px 19px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .actions {
    margin-top: 18px;
  }
  .auth-page {
    padding: 20px 16px;
  }
  .auth-form {
    border-radius: 16px;
    padding: 28px 22px;
  }
  .auth-header .brand {
    font-size: 1rem;
  }
  .hero {
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .hero .avatar.xl {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  .auth-form h1 {
    font-size: 1.6rem;
  }
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .detail-row dd {
    text-align: left;
  }
  .stat {
    font-size: 1.85rem;
  }
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar .brand,
.sidebar-bottom {
  flex-shrink: 0;
}
.sidebar-close {
  position: absolute;
  top: 21px;
  right: 10px;
}

/* Shared alpha.3 controls: one-pixel borders and a quiet keyboard outline. */
:root {
  --control-radius: 9px;
  --control-height: 44px;
  --focus: #806675;
  --success-soft: #edf6f1;
  --success-line: #bdcebf;
  --menu-shadow: 0 5px 16px rgba(37, 25, 35, .08);
}
:root[data-theme="dark"] {
  --focus: #c5a8b6;
  --success-soft: #253a30;
  --success-line: #496151;
  --menu-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Text controls use one quiet inset line, rather than stacked outer rings.
   The transparent outline is retained for the forced-colors replacement below. */
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea):is(:focus, :focus-visible) {
  border-color: var(--line);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 -2px 0 var(--focus);
}
:is(input, textarea)[aria-invalid="true"]:is(:focus, :focus-visible) {
  border-color: var(--danger);
  box-shadow: inset 0 -2px 0 var(--danger);
}
:is(select, .select-trigger):is(:focus, :focus-visible) {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--focus);
  box-shadow: inset 0 -2px 0 var(--focus);
}
@media (forced-colors: active) {
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .select-trigger):is(:focus, :focus-visible) {
    outline: 2px solid Highlight;
    box-shadow: none;
  }
}
:where(input, textarea)[aria-invalid="true"] { border-color: var(--danger); }
button:disabled, input:disabled, textarea:disabled { cursor: default; }
input[type="file"] { font: inherit; color: var(--muted); }
input[type="file"]::file-selector-button {
  font: inherit; color: var(--ink); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; margin-right: 10px; cursor: pointer;
}
input[type="file"]:disabled::file-selector-button { cursor: default; opacity: .55; }
dialog { box-shadow: 0 12px 36px rgba(0, 0, 0, .15); }
dialog::backdrop { backdrop-filter: none; }
.select-control { position: relative; min-width: 0; width: 100%; }
.select-control.compact { width: auto; min-width: 96px; max-width: 150px; }
.select-bridge {
  position: absolute !important;
  top: 0; left: 0; width: 1px !important; min-height: 1px !important; height: 1px;
  padding: 0 !important; opacity: 0; pointer-events: none; overflow: hidden;
}
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: var(--control-height); text-align: left;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--control-radius);
  background: var(--surface); color: var(--ink); font-size: .87rem;
}
.select-trigger:hover:not(:disabled) { border-color: var(--focus); }
.select-trigger[aria-expanded="true"] { border-color: var(--focus); }
.select-trigger:disabled { cursor: default; opacity: .55; }
.select-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { display: block; width: 14px; height: 14px; flex: 0 0 14px; color: var(--muted); }
.select-control.compact .select-trigger {
  border-color: transparent; min-height: 40px; background: transparent; color: var(--muted);
  font-size: .78rem; padding: 8px 7px; gap: 8px;
}
.select-menu {
  position: fixed; margin: 0; inset: auto; z-index: 450; padding: 5px;
  border: 1px solid var(--line); border-radius: 10px; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; background: var(--surface);
  color: var(--ink); box-shadow: var(--menu-shadow); font-size: .86rem;
}
.select-menu:focus-visible { outline: none; }
.select-option {
  min-height: 40px; display: flex; align-items: center; border-radius: 6px;
  padding: 9px 12px; cursor: pointer; overflow-wrap: anywhere; gap: 8px;
}
.select-option.active { background: var(--surface-alt); }
.select-option.selected { color: var(--primary-text); background: var(--primary-soft); }
.select-option[aria-disabled="true"] { color: var(--muted); opacity: .55; cursor: default; }
.select-option[aria-selected="true"]::after { content: "✓"; margin-left: auto; font-size: .8rem; }
.select-validation:empty { display: none; }
.select-validation { display: block; margin-top: 7px; color: var(--danger); }
.success-feedback { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.success-mark { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { fill: var(--success-soft); stroke: var(--success-line); }
.success-mark path { stroke-dasharray: 1 1; stroke-dashoffset: 0; animation: success-draw .28s cubic-bezier(.25,.1,.25,1) .04s both; }
.success-feedback.completion { padding: 14px 0; align-items: flex-start; font-size: .92rem; }
.success-feedback.completion .success-mark { width: 28px; height: 28px; }
@keyframes success-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
#toast:not(:empty) { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--menu-shadow); }
.recovery-help { margin-top: -7px; margin-bottom: 18px; }
.recovery-help .button { font-size: .75rem; padding: 3px 0; min-height: 30px; color: var(--muted); background: transparent; font-weight: 450; }
.recovery-help .button:hover { color: var(--primary-text); background: transparent; text-decoration: underline; }
.brand-copyright { white-space: nowrap; font-size: .72rem; max-width: 100%; }
@media (max-width: 800px) {
  .select-option { min-height: 44px; }
  .auth-footer { flex-wrap: wrap; }
}
@media (max-width: 450px) {
  .brand-copyright { white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .select-control.compact { min-width: 88px; max-width: 115px; }
}
@media (prefers-reduced-motion: reduce) { .success-mark path { animation: none; } }
.pwa-notice {
  position: fixed; left: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 350; max-width: min(450px, calc(100vw - 40px)); padding: 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); box-shadow: var(--menu-shadow); font-size: .82rem;
}
.pwa-notice p { margin-bottom: 12px; }
.pwa-notice .button { margin-right: 5px; }
.pwa-notice:empty { display: none; }
@media (max-width: 600px) {
  #toast { right: 16px; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: none; }
}
.brand-footer { white-space: nowrap; font-size: .72rem; }
.sidebar .brand-name { font-size: 1rem; line-height: 1.35; }
.sidebar-bottom .brand-footer { display: block; white-space: normal; overflow-wrap: anywhere; text-align: left; font-size: inherit; }
@media (max-width: 450px) { .brand-footer { white-space: normal; overflow-wrap: anywhere; text-align: center; } }
.select-option.active { box-shadow: inset 0 0 0 1px var(--focus); }
.field .field-validation { color: var(--danger); }

/* Application identity integration uses the same quiet form and focus tokens. */
.integration-permissions { min-width:0; margin:0; padding:16px; border:1px solid var(--line); border-radius:12px; }
.integration-permissions legend { padding:0 6px; font-weight:600; }
.integration-claim-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:16px 0; }
.integration-claim-grid .check { margin:0; min-width:0; align-items:flex-start; }
.integration-timezone { margin-bottom:18px; }
.integration-timezone .field { margin-bottom:4px; }
.integration-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.integration-pagination { margin-top:16px; justify-content:space-between; }
.integration-delivery-item { padding:16px 0; border-bottom:1px solid var(--line); min-width:0; }
.integration-delivery-item:last-child { border-bottom:0; }
.integration-delivery-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.integration-delivery-summary strong,.integration-delivery-item code,.integration-delivery-item .mono,.integration-delivery-error,.integration-resource-scopes { overflow-wrap:anywhere; min-width:0; }
.integration-delivery-history { margin-top:20px; }
.consent-information { margin:20px 0; }
.consent-information h2 { font-size:1rem; }
.consent-information ul { padding-inline-start:22px; }
.consent-information li { margin:7px 0; overflow-wrap:anywhere; }
.account-entry-return { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:22px; }
.account-entry-return>div { flex:1 1 240px; min-width:0; overflow-wrap:anywhere; }
@media(max-width:560px) {
  .integration-claim-grid,.integration-filter-grid { grid-template-columns:minmax(0,1fr); }
  .integration-permissions { padding:12px; }
}

.integration-delivery-details { margin:10px 0; }
.integration-delivery-details[open]>summary { margin-bottom:12px; }
.integration-delivery-item>.button { margin-top:10px; }

.integration-health-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:22px 0; }
.integration-health-counts dt { color:var(--muted); font-size:.8rem; }
.integration-health-counts dd { margin:5px 0 0; font-size:1.25rem; font-weight:600; }
@media(max-width:560px) { .integration-health-counts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }

/* Shared alpha.11 management geometry: layout follows content, never locale offsets. */
.auth-toolbar > .button.small,
.auth-toolbar .select-control.compact .select-trigger { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 44px; min-height: 44px; padding-block: 0; font-family: inherit; font-size: .8rem; line-height: 1.25; }
.auth-toolbar .select-caption { line-height: inherit; }
.auth-toolbar .select-control.compact { align-self: center; }
.auth-header:has(> .brand-header[data-brand-layout="full_row"]) { grid-template-columns: minmax(0, 1fr); }
.auth-header > .brand-header[data-brand-layout="full_row"] { width: 100%; max-width: 100%; }
.auth-header:has(> .brand-header[data-brand-layout="full_row"]) .auth-toolbar { justify-self: end; }
.sidebar > .brand-header[data-brand-layout="full_row"] { width: 100%; max-width: 100%; }
.brand-lockup { max-width: 100%; min-width: 0; }
.history-explorer { display: grid; gap: 18px; min-width: 0; }
.history-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); align-items: end; gap: 12px; min-width: 0; }
.history-filters > .field { margin: 0; }
.history-filter-actions { min-height: 44px; margin: 0; }
.history-filter-actions .button { white-space: nowrap; }
.history-explorer > p:empty { display: none; }
.history-pagination { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.history-pagination > .field { margin: 0 auto 0 0; min-width: 110px; max-width: 160px; }
.history-results { min-width: 0; }
.history-results .notice { margin: 0; }
.recipient-picker { display: grid; gap: 12px; min-width: 0; }
.recipient-picker > p { margin: 0; }
.recipient-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.recipient-chosen:empty { display: none; }
.recipient-chosen .button { min-height: 36px; overflow-wrap: anywhere; text-align: start; max-width: 100%; }
.recipient-options { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.recipient-option { padding-block: 10px; border-block-end: 1px solid var(--line); }
.recipient-option > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.deployment-settings { display: grid; gap: 20px; }
.deployment-setting { padding-block-end: 18px; border-block-end: 1px solid var(--line); min-width: 0; }
.deployment-setting h3 { margin-block-end: 5px; }
.deployment-setting code,.deployment-setting-value { overflow-wrap: anywhere; }
.connection-session { display: grid; gap: 5px; margin-block: 12px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.connection-session > p { margin: 0; }
.session-ip-evidence,.authorization-ip-evidence { display: grid; gap: 4px; margin-block: 8px; min-width: 0; }
.session-item h3,.connection-item h3 { overflow-wrap: anywhere; }
.history-snapshot { justify-content: space-between; margin-block-end: 14px; }
.history-snapshot > p { margin: 0; flex: 1 1 220px; }
@media(max-width:600px) { .session-item { flex-wrap: wrap; } .session-item > .grow { flex-basis: 180px; } .session-item > .actions { margin-inline-start: 0; } }
@media(max-width:520px) {
  .history-filters { grid-template-columns: minmax(0,1fr); }
  .history-pagination { justify-content: flex-start; align-items: center; }
  .history-pagination > .field { flex-basis: 100%; max-width: 100%; }
  .history-pagination > .field .select-control { max-width: 150px; }
  .auth-toolbar { gap: 8px; }
  .auth-toolbar > .button.small { padding-inline: 8px; }
  .auth-toolbar .select-control.compact { min-width: 100px; }
}

.history-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; grid-column: 1 / -1; width: min(100%,640px); }
.history-search > .field { margin: 0; }
.history-search > .button { min-height: 44px; }
.history-filter-actions { flex-wrap: nowrap; }
.service-module { display: grid; gap: 22px; min-width: 0; }
.service-module > :is(h1,p) { margin: 0; }
.service-module > p:empty { display: none; }
.service-module .card .card { margin-block-start: 16px; }
.service-module .card > .button { margin-inline-end: 8px; margin-block-start: 12px; }
.service-module .card > .select-control { margin-block-end: 18px; }
.service-module .field:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 10px; }
.service-module .field > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.connection-actions { flex: 0 1 210px; }
.connection-item > .grow { min-width: min(100%,220px); }
@media(max-width:600px) { .connection-item { flex-wrap: wrap; } .connection-actions { flex-basis: 100%; } }

.history-advanced { grid-column: 1 / -1; }
.history-advanced > summary { cursor: pointer; color: var(--muted); font-size: .8rem; }
.history-advanced > .history-filters { margin-block-start: 14px; }
/* At enlarged accessibility text sizes, allow the toolbar to flow without clipping controls. */
.auth-toolbar { flex-wrap: wrap; }
.membership-effective,
.membership-provenance,
.membership-grant,
.membership-event,
.membership-benefit,
.membership-plan {
  min-width: 0;
}
.membership-grant p,
.membership-event p,
.membership-benefit p,
.membership-provenance p,
.membership-plan p {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Alpha.13 shared error and navigation surfaces. No geometry-changing focus. */
.field .field-validation, .field .select-validation, .field-validation, .select-validation { color:var(--danger); }
.has-error input:not([type=checkbox]):not([type=radio]), .has-error textarea, .select-trigger[aria-invalid=true], input[aria-invalid=true], textarea[aria-invalid=true] { border-color:var(--danger); }
.validation-summary { margin-block:0 20px; }
.validation-summary ul { margin:8px 0 0; padding-left:20px; }
.validation-link { border:0; padding:2px 0; color:inherit; background:transparent; font:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.field input,.field textarea,.select-trigger,.card,.branding-section { scroll-margin-top:calc(var(--page-chrome-height,64px) + 20px); }
.page-chrome { position:sticky; top:0; z-index:25; background:var(--canvas); }
.page-chrome .topbar { min-height:64px; padding-block:10px; }
.page-chrome .breadcrumb { font-size:1rem; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-chrome .top-actions { flex:none; }
.section-navigation { border-bottom:1px solid var(--line); padding:0 32px; }
.section-navigation-links { display:flex; overflow-x:auto; gap:6px; scrollbar-width:thin; }
.section-navigation-links button { background:transparent; border:0; border-bottom:2px solid transparent; padding:10px 8px; font:inherit; font-size:.8rem; color:var(--muted); white-space:nowrap; cursor:pointer; }
.section-navigation-links button[aria-current] { color:var(--primary-text); border-bottom-color:var(--primary); }
.section-navigation-mobile { display:none; }
.sidebar { overflow:hidden; height:100dvh; }
.sidebar nav { flex:1 1 auto; overscroll-behavior:contain; }
.sidebar-bottom { margin-top:0; padding-top:16px; }
.compact-action { width:40px; min-width:40px; height:40px; padding:8px!important; flex:none; }
.support-contact-address,.support-copy { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.support-contact-address > a { overflow-wrap:anywhere; user-select:all; }
.boot [data-boot-title][hidden] { display:none!important; }
@media(max-width:800px) {
 .page-chrome .topbar { min-height:56px; padding:6px 14px; gap:8px; }
 .page-chrome .breadcrumb { font-size:.9rem; }
 .page-chrome .top-actions { gap:4px; }
 .page-chrome .top-actions .select-control { width:96px; }
 .page-chrome .account-menu { flex:none; }
 .section-navigation { padding:6px 14px; }
 .section-navigation-links { display:none; }
 .section-navigation-mobile { display:flex; gap:10px; align-items:center; font-size:.78rem; }
 .section-navigation-mobile select { flex:1; min-width:0; width:100%; padding:6px; min-height:36px; }
}
@media(max-height:540px) {
 .sidebar { padding-top:14px; padding-bottom:10px; }
 .sidebar .brand { margin-bottom:12px; }
 .sidebar-bottom { padding-top:8px; font-size:.65rem; gap:2px; }
 .sidebar-bottom > .button.small { min-height:24px; }
}

.field:has(> input[type=checkbox]) { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; gap:8px; }
.field:has(> input[type=checkbox]) > input { grid-column:1; grid-row:1; width:18px; min-height:18px; height:18px; padding:0; }
.field:has(> input[type=checkbox]) > label { grid-column:2; }
.field:has(> input[type=checkbox]) > .hint { grid-column:1/-1; }

@media(max-width:800px) { .section-navigation-mobile .select-control { flex:1; min-width:0; max-width:100%; } .section-navigation-mobile .select-trigger { min-height:36px; height:auto; padding-block:6px; } }

.page-chrome .breadcrumb { display:block; flex:1; text-align:left; }
@media(max-width:800px) {
 .page-chrome .breadcrumb-prefix { display:none; }
 .page-chrome .account-menu { width:42px; height:42px; flex:0 0 42px; padding:3px; gap:0; justify-content:center; border-radius:50%; }
 .page-chrome .account-name { display:none; }
}
.compact-action .loading-feedback { justify-content:center; gap:0; }
.compact-action .loading-feedback > span:last-child { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Packaged release notes and explicitly typed, copyable audit references. */
.release-history-entry { padding:16px 18px; }
.release-history-entry > summary { cursor:pointer; line-height:1.6; overflow-wrap:anywhere; }
.release-history-version { font-weight:600; }
.release-history-entry > summary .pill { margin-inline-start:8px; }
.release-history-entry > ul { padding-inline-start:22px; display:grid; gap:8px; line-height:1.6; }
.audit-identity-code { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.audit-identity-code code, .release-history-entry code { overflow-wrap:anywhere; white-space:normal; }
.session-lifetime { margin-block:8px; }
.session-lifetime > details > .detail-list { margin-top:10px; }
@media (max-width:800px) { .release-history-entry { padding:14px; } }

/* Explicit app/preview theme also governs native controls and light-dark(). */
:root[data-theme="light"], [data-brand-theme="light"] { color-scheme: light; }
:root[data-theme="dark"], [data-brand-theme="dark"] { color-scheme: dark; }

/* Native integration help uses the shared form rhythm and restrained visual states. */
.native-client-guidance,.client-dependency-guidance { min-width:0; display:grid; gap:8px; }
.native-client-guidance .hint,.client-dependency-guidance .hint { margin:0; overflow-wrap:anywhere; }
.native-client-guidance code { font-size:12px; overflow-wrap:anywhere; }
.client-dependency-guidance { padding:12px; border:1px solid var(--line); border-radius:10px; }
.client-dependency-guidance[hidden] { display:none; }

/* Registered-client metadata and App sessions share existing restrained tokens. */
.client-status-badges { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-block-start:6px; }
.client-status-badges .client-visibility-badge { white-space:normal; overflow-wrap:anywhere; }
.app-device-client-fields { min-width:0; margin:0; display:grid; gap:12px; }
.app-device-client-fields[hidden] { display:none; }
.app-device-client-fields .field, .app-device-client-fields p { margin:0; }
.app-device-session-item { flex-wrap:wrap; }
.app-device-session-item .detail-list { margin-block:12px 0; }

@media (max-width:640px) {
  .registered-client-item { flex-wrap:wrap; align-items:flex-start; }
  .registered-client-item > .application-logo { flex:0 0 40px; }
  .registered-client-item > .grow { flex:1 1 calc(100% - 56px); min-width:0; }
  .registered-client-item > .actions { flex:1 1 100%; width:100%; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; }
  .registered-client-item > .actions .button { white-space:normal; }
}
