:root {
  color-scheme: light;
  --color-brand-blue: #004ea2;
  --color-action: #0e59f2;
  --color-action-hover: #0847c9;
  --color-heading: #004ea2;
  --color-link: #0e59f2;
  --color-link-hover: #0847c9;
  --color-alert: #c11920;
  --color-success: #16734a;
  --color-text: #231815;
  --color-muted: #5c6470;
  --color-border: #c8d2e0;
  --color-panel: #f3f6ff;
  --color-white: #fff;
  --color-on-brand: #fff;
  --color-soft: #f8faff;
  --color-warning-soft: #fff7f5;
  --color-success-soft: #e4f5ed;
  --color-pill-bg: #e9eef6;
  --color-pill-text: #5c6470;
  --radius: 14px;
  --content-width: 69rem;
  --narrow-width: 50rem;
  --shadow: 0 8px 24px rgb(17 45 84 / 8%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --color-text: #fff;
    --color-muted: #bdc5d0;
    --color-border: #555d69;
    --color-panel: #000;
    --color-white: #211f1f;
    --color-soft: #2b2929;
    --color-warning-soft: #321f20;
    --color-success-soft: #173a2d;
    --color-success: #73d5a7;
    --color-heading: #63a6ff;
    --color-link: #75adff;
    --color-link-hover: #a8cbff;
    --color-pill-bg: #343b45;
    --color-pill-text: #edf2f8;
    --shadow: 0 8px 24px rgb(0 0 0 / 35%);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-text: #fff;
  --color-muted: #bdc5d0;
  --color-border: #555d69;
  --color-panel: #000;
  --color-white: #211f1f;
  --color-soft: #2b2929;
  --color-warning-soft: #321f20;
  --color-success-soft: #173a2d;
  --color-success: #73d5a7;
  --color-heading: #63a6ff;
  --color-link: #75adff;
  --color-link-hover: #a8cbff;
  --color-pill-bg: #343b45;
  --color-pill-text: #edf2f8;
  --shadow: 0 8px 24px rgb(0 0 0 / 35%);
}

html[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--color-panel);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-link-hover);
}

.skip-link {
  left: 1rem;
  padding: 0.65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  background: var(--color-white);
  color: var(--color-brand-blue);
  top: 1rem;
}

.site-header {
  background: var(--color-brand-blue);
  border-bottom: 4px solid var(--color-alert);
  color: var(--color-on-brand);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--content-width);
  min-height: 4.5rem;
  padding: 0.65rem 1.5rem;
}

.brand {
  align-items: center;
  color: var(--color-on-brand);
  display: flex;
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  gap: 0.9rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--color-on-brand);
}

.brand img {
  height: auto;
  max-width: 10.5rem;
}

.brand span {
  border-left: 1px solid rgb(255 255 255 / 45%);
  padding-left: 0.9rem;
}

.site-session-nav {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.site-session-nav a,
.site-subnav a,
.nav-button {
  background: transparent;
  border: 0;
  color: var(--color-on-brand);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 0;
  text-decoration: none;
}

.site-session-nav a:hover,
.site-subnav a:hover,
.nav-button:hover {
  color: var(--color-on-brand);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.account-menu {
  position: relative;
}

.account-chip {
  align-items: center;
  background: rgb(0 0 0 / 14%);
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 999px;
  color: var(--color-on-brand);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.55rem;
  max-width: 16rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
  background: rgb(255 255 255 / 12%);
}

.site-session-nav .account-chip--sign-in {
  font-size: 0.86rem;
  padding-block: 0.35rem;
  padding-inline: 0.4rem 0.9rem;
  text-decoration: none;
}

.site-session-nav .account-chip--sign-in:hover {
  text-decoration: none;
}

.account-chip__avatar {
  align-items: center;
  background: var(--color-on-brand);
  border-radius: 999px;
  color: var(--color-brand-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  height: 1.85rem;
  justify-content: center;
  width: 1.85rem;
}

.account-chip__avatar--anonymous svg {
  fill: currentcolor;
  height: 1rem;
  width: 1rem;
}

.account-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 28%);
  color: var(--color-text);
  display: grid;
  gap: 0.3rem;
  inset-block-start: calc(100% + 0.65rem);
  inset-inline-end: 0;
  padding: 0.75rem;
  position: absolute;
  width: min(20rem, calc(100vw - 2rem));
  z-index: 25;
}

.account-popover__identity {
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
  padding: 0.55rem 0.55rem 0.8rem;
}

.account-popover__identity span {
  color: var(--color-muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.account-popover__label {
  color: var(--color-muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  text-transform: uppercase;
}

.account-popover select {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font: inherit;
  font-size: 0.86rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.55rem;
  text-transform: none;
  width: 100%;
}

.account-popover__link {
  border-radius: 6px;
  color: var(--color-text) !important;
  display: block;
  padding: 0.7rem 0.55rem !important;
  text-decoration: none !important;
}

.account-popover__link:first-of-type {
  border-top: 1px solid var(--color-border);
  margin-top: 0.35rem;
  padding-top: 0.9rem !important;
}

.account-popover__link:hover {
  background: var(--color-soft);
  color: var(--color-heading) !important;
}

.profile-form,
.profile-verification {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.profile-form__field {
  display: grid;
  gap: 0.45rem;
}

.profile-form__field label {
  font-weight: 700;
}

.profile-form__field input {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  padding: 0.75rem;
  width: 100%;
}

.profile-verification {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.credential-list {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

.credential-card {
  align-items: center;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.credential-card > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.credential-card span {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.site-subnav {
  background: #111;
}

.site-subnav__inner {
  align-items: stretch;
  display: flex;
  gap: 2rem;
  margin: 0 auto;
  max-width: var(--content-width);
  min-height: 3.75rem;
  overflow-x: auto;
  padding: 0 1.5rem;
}

.site-subnav a {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.95rem 0 0.75rem;
  position: relative;
  text-transform: uppercase;
}

.site-subnav a[aria-current="page"]::after {
  background: var(--color-on-brand);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.environment-badge,
.status-pill {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  text-transform: uppercase;
}

.environment-badge {
  background: var(--color-on-brand);
  color: var(--color-brand-blue);
}

.site-header__actions,
.preference-controls {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.preference-controls select {
  background: #003c7d;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 8px;
  color: var(--color-on-brand);
  font: inherit;
  font-size: 0.82rem;
  min-height: 2.3rem;
  padding: 0.35rem 1.8rem 0.35rem 0.6rem;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.shell {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 3rem 1.5rem 5rem;
}

.shell--narrow {
  max-width: var(--narrow-width);
}

body[data-page="support-dashboard"] .shell {
  max-width: 78rem;
}

.breadcrumb {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  font-size: 0.88rem;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.panel,
.auth-card,
.error-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.panel {
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.eyebrow {
  color: var(--color-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.lede {
  color: var(--color-muted);
  font-size: 1.08rem;
  margin: 0.85rem 0 0;
  max-width: 44rem;
}

.page-heading-row {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.page-heading-row .button {
  flex: 0 0 auto;
}

.case-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.case-form > label,
.checkbox-row {
  font-weight: 700;
}

textarea {
  border: 1px solid #7d8999;
  border-radius: 8px;
  font: inherit;
  min-height: 11rem;
  padding: 0.85rem;
  resize: vertical;
  width: 100%;
}

.localized-file-picker {
  position: relative; display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border: 1px solid var(--color-border);
  border-radius: .5rem; background: var(--color-panel);
}
.localized-file-picker__button {
  flex: 0 0 auto; padding: .5rem 1rem; border-radius: .4rem;
  background: #0054a6; color: white; font-weight: 700;
}
.localized-file-picker [data-file-picker-name] { min-width: 0; overflow-wrap: anywhere; }
.localized-file-picker input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.localized-file-picker:focus-within { outline: 3px solid #ffc247; outline-offset: 3px; }
.selected-file {
  align-items: center;
  background: var(--color-success-soft);
  border: 1px solid var(--color-success);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
}

.selected-file strong {
  overflow-wrap: anywhere;
}

.selected-file span {
  color: var(--color-muted);
  flex: 0 0 auto;
}

.case-form > input,
.case-form > select,
.profile-form select,
[data-request-access-form] select,
[data-request-access-form] > input,
[data-request-revoke-form] > input {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  min-height: 3.25rem;
  padding: 0.85rem;
  width: 100%;
}

.conditional-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

fieldset.conditional-field {
  border: 0;
  padding: 0;
}

.conditional-field legend {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.conditional-field label,
.discovery-results > label {
  font-weight: 700;
}

.conditional-field input,
.conditional-field select,
.discovery-results select {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  padding: 0.75rem;
  width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.field-help,
.status-message {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0;
}

.recovery-code {
  display: block;
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.notice {
  background: var(--color-panel);
  border-left: 5px solid var(--color-brand-blue);
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
}

.notice--warning {
  background: var(--color-warning-soft);
  border-left-color: var(--color-alert);
}

.notice h2 {
  font-size: 1rem;
}

.notice p,
.notice ul {
  margin-bottom: 0;
}

.notice ul {
  padding-left: 1.25rem;
}

.notice li + li {
  margin-top: 0.35rem;
}

.checkbox-row {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.checkbox-row input {
  height: 1.15rem;
  margin-top: 0.28rem;
  width: 1.15rem;
}

.button,
button {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
}

.button--primary {
  background: var(--color-action);
  color: var(--color-on-brand);
}

.button--primary:hover {
  background: var(--color-action-hover);
}

.button--outline {
  background: var(--color-white);
  border-color: var(--color-action);
  color: var(--color-action);
}

.button--outline:hover {
  background: var(--color-panel);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.auth-card,
.error-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.table-region {
  margin-top: 2rem;
  overflow-x: auto;
}

.activity-summary {
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.activity-table { min-width: 78rem; }
.activity-table td { vertical-align: top; }
.activity-table code {
  color: var(--color-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.queue-toolbar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.queue-toolbar select,
.queue-action-select {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  padding: 0.55rem 0.75rem;
}

.queue-ticket-link { font-weight: 700; }
.queue-ticket-subject { color: var(--color-muted); display: block; font-size: 0.9rem; margin-top: 0.25rem; }

.admin-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.admin-card {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  padding: 1.5rem;
  text-decoration: none;
}

.admin-card:hover { border-color: var(--color-action); }
.admin-card h2 { color: var(--color-heading); margin-top: 0; }
.admin-card p { margin-bottom: 0; }

.compact-form {
  border-bottom: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.request-lookup-form .button {
  margin-top: 1rem;
}

.request-lookup-form .conditional-field.is-dimmed input {
  cursor: pointer;
  opacity: 0.55;
}

.recent-ticket-picker input[type="radio"] {
  accent-color: var(--color-action);
  cursor: pointer;
  height: 1.25rem;
  width: 1.25rem;
}

.recent-ticket-picker input[type="radio"]:disabled {
  cursor: not-allowed;
}

.recent-ticket-picker {
  margin-top: 2rem;
}

.recent-ticket-picker .table-region {
  margin-top: 1rem;
}

.recent-ticket-description {
  color: var(--color-muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  max-width: 28rem;
}

.recent-ticket-meta {
  color: var(--color-muted);
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.request-review-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-review-options select,
.review-list select {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  padding: 0.75rem;
  width: 100%;
}

dialog {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  max-width: 36rem;
  padding: 1.5rem;
  width: calc(100% - 2rem);
}

dialog::backdrop { background: rgb(0 0 0 / 65%); }
body[data-customer-shell] {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-block-end: var(--customer-footer-height, 10rem);
}
html:has(body[data-customer-shell]) { scroll-padding-block-end: calc(var(--customer-footer-height, 10rem) + 1rem); }
body[data-customer-shell] > main { flex: 1; }
.customer-footer {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem; padding: 1rem 1.5rem;
  padding-block-end: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: #0054a6; color: white; border-radius: 0 0 1rem 1rem; font-size: .875rem;
}
.customer-footer a, .customer-footer button { color: white; }
.customer-footer button { background: transparent; border: 0; border-radius: .25rem; padding: .25rem; font: inherit; text-decoration: underline; cursor: pointer; }
[data-cookie-dialog] { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.cookie-dialog { width: min(54rem, calc(100vw - 2rem)); max-width: 54rem; padding: clamp(1.25rem, 3vw, 2rem); }
.cookie-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-dialog h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cookie-dialog h2, .cookie-dialog h3 { color: var(--color-heading); }
.cookie-dialog p { margin: .35rem 0; }
.cookie-dialog #cookie-intro { margin: 1rem 0 1.5rem; max-width: 44rem; }
.cookie-dialog__close { flex: 0 0 auto; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--color-panel); color: var(--color-text); font: inherit; font-size: 2rem; cursor: pointer; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; border-block-start: 1px solid var(--color-border); }
.cookie-category > div { max-width: 38rem; }
.cookie-category h3 { margin: 0; font-size: 1.15rem; }
.cookie-category__badge { flex: 0 0 auto; padding: .5rem 1rem; border-radius: 2rem; background: var(--color-panel); font-weight: 700; }
.cookie-switch { appearance: none; position: relative; flex: 0 0 auto; width: 4.5rem; height: 2.5rem; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: 2rem; background: var(--color-panel); opacity: 1; }
.cookie-switch::before { content: ""; position: absolute; inset-block-start: .2rem; inset-inline-start: .2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-text); opacity: .45; }
.cookie-switch:disabled { cursor: not-allowed; }
.cookie-storage-detail { margin-block: .75rem 1rem; }
.cookie-storage-detail summary { cursor: pointer; }
.cookie-storage-detail p { margin-block: .75rem; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-block-start: 1.5rem; }
@media (max-width: 36rem) {
  .cookie-category { gap: .75rem; }
  .cookie-category__badge { max-width: 7rem; text-align: center; white-space: normal; }
  .cookie-dialog__actions > button { width: 100%; }
}
@media print {
  .customer-footer, [data-cookie-dialog] { display: none !important; }
  body[data-customer-shell] { padding-block-end: 0; }
}
.file-action-drawer {
  position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0;
  margin: 0; width: min(32rem, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh; overflow-y: auto;
}
.file-action-drawer h2 { overflow-wrap: anywhere; }
.file-drawer-actions { display: grid; gap: 1rem; margin-block: 1.5rem; }
.file-drawer-actions button { white-space: normal; overflow-wrap: anywhere; }
.customer-bundle-actions[open] { display: flex; flex-direction: column; gap: 1rem; }
.customer-bundle-actions p { margin-block: 0; }
.customer-bundle-actions button { white-space: normal; overflow-wrap: anywhere; }
.customer-bundle-actions .bundle-removal-ack { display: flex; align-items: flex-start; gap: .75rem; }
.bundle-removal-ack input[type="checkbox"] { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
.customer-bundle-actions [hidden] { display: none; }

.upload-progress-dialog { width: min(36rem, calc(100vw - 2rem)); }
.upload-progress-dialog progress { width: 100%; height: 1.25rem; }
.upload-progress-dialog p { overflow-wrap: anywhere; }

.table-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.table-pagination select { width: auto; margin-inline-start: .5rem; }
.pagination-pages { display: flex; align-items: center; gap: .25rem; }
.pagination-page, .pagination-arrow { min-width: 2.5rem; min-height: 2.5rem; border: 0; border-radius: .35rem; background: transparent; color: inherit; cursor: pointer; }
.pagination-page[aria-current="page"] { background: #004ea2; color: #fff; }
.pagination-arrow:disabled { opacity: .35; cursor: default; }
.table-pagination > [role="status"] { color: var(--color-muted); font-size: .875rem; }

.request-stepper { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1rem; color: var(--color-muted); }
.request-stepper li[aria-current="step"] { color: var(--color-link); font-weight: 700; }
[data-request-access-form], [data-request-revoke-form] { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; width: 100%; max-width: 42rem; margin-block: 1.5rem; }
[data-request-access-form] select, [data-request-access-form] input,
[data-request-revoke-form] input { width: 100%; }
[data-request-access-form] select[multiple] { min-height: 8rem; padding: .5rem; }
[data-request-access-form] select[multiple] option { padding: .35rem .5rem; }
[data-request-access-form] button, [data-request-revoke-form] button { justify-self: start; }
[data-request-revoke-form] { border-block-start: 1px solid var(--color-border); padding-block-start: 1.5rem; }
.request-outcome details { margin-block-start: 1rem; overflow-wrap: anywhere; }
.pagination-pages[hidden], .pagination-arrow[hidden] { display: none; }
tbody > tr[hidden], .table-pagination[hidden] { display: none; }

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.empty-state {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-top: 2rem;
  padding: 1.5rem;
}

.empty-state p {
  color: var(--color-muted);
  margin: 0.35rem 0 1rem;
}

.workspace-tabs {
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.workspace-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 0;
}

.workspace-tabs button[aria-selected="true"] {
  border-bottom-color: var(--color-action);
  color: var(--color-heading);
}

.section-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.section-heading p {
  color: var(--color-muted);
  margin: 0.35rem 0 0;
}

.outbound-dialog {
  max-height: calc(100vh - 2rem);
  max-width: 46rem;
  overflow-y: auto;
}

.dialog-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--color-muted);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem;
}

.choice-cards {
  border: 0;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.choice-cards legend {
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.choice-cards label {
  align-items: flex-start;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem;
}

.choice-cards label:has(input:checked) {
  border-color: var(--color-action);
  box-shadow: inset 0 0 0 1px var(--color-action);
}

.choice-cards input {
  margin-top: 0.2rem;
}

.choice-cards span {
  display: grid;
  gap: 0.25rem;
}

.choice-cards small {
  color: var(--color-muted);
}

.choice-cards--compact {
  margin-top: 1rem;
}

.outbound-dialog .case-form > div:not(.dialog-heading) {
  display: grid;
  gap: 0.8rem;
}

.outbound-dialog input:not([type="radio"]),
.outbound-dialog textarea {
  background: var(--color-panel);
  border: 1px solid #7d8999;
  border-radius: 8px;
  color: var(--color-text);
  font: inherit;
  padding: 0.85rem;
  width: 100%;
}

.status-pill[data-tone="success"] {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-pill[data-tone="danger"] {
  background: var(--color-warning-soft);
  color: var(--color-alert);
}

.status-pill[data-tone="pending"] {
  background: var(--color-pill-bg);
  color: var(--color-heading);
}

table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0.75rem;
  text-align: start;
}

th {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discovery-results {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 2rem;
}

.result-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.result-list > h3 {
  grid-column: 1 / -1;
}

.result-card {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
}

.result-card p {
  color: var(--color-muted);
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.choice-card {
  align-items: flex-start;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.choice-card:has(input:checked) {
  border-color: var(--color-action);
  box-shadow: 0 0 0 2px var(--color-action);
}

.choice-card input {
  flex: 0 0 auto;
  height: 1.1rem;
  margin-top: 0.25rem;
  width: 1.1rem;
}

.choice-card span {
  display: grid;
}

.choice-card span span {
  color: var(--color-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  margin: 1.5rem 0;
}

.review-list dt,
.review-list dd {
  border-bottom: 1px solid var(--color-border);
  margin: 0;
  padding: 0.75rem;
}

.review-list dt {
  color: var(--color-muted);
  font-weight: 700;
}

.workflow-steps {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}

.workflow-steps li {
  background: var(--color-soft);
  border-left: 4px solid var(--color-success);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
}

.workflow-steps li[data-status="pending"] {
  border-left-color: var(--color-muted);
}

.workflow-steps li[data-status="deferred"] {
  border-left-color: var(--color-alert);
}

[dir="rtl"] .workflow-steps li {
  border-left: 0;
  border-right: 4px solid var(--color-success);
}

[dir="rtl"] .workflow-steps li[data-status="pending"] {
  border-right-color: var(--color-muted);
}

[dir="rtl"] .workflow-steps li[data-status="deferred"] {
  border-right-color: var(--color-alert);
}

.auth-card p,
.error-card p {
  margin-top: 0.4rem;
}

.status-card {
  align-items: center;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.25rem;
}

.status-card__label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.status-card__value {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.15rem 0;
}

.status-pill {
  background: var(--color-pill-bg);
  color: var(--color-pill-text);
  flex: 0 0 auto;
}

.status-pill[data-configured="true"] {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.loading-state {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.loading-state::before,
.spinner {
  animation: spin 0.8s linear infinite;
  border: 3px solid var(--color-border);
  border-radius: 50%;
  border-top-color: var(--color-action);
  content: "";
  display: inline-block;
  height: 1.4rem;
  width: 1.4rem;
}

.callback-panel {
  margin-top: 2rem;
  text-align: center;
}

.callback-panel .spinner {
  height: 2rem;
  margin-bottom: 1rem;
  width: 2rem;
}

.generated-codes {
  margin-top: 2rem;
}

.activation-actions,
[data-activation-success],
[data-activation-error] {
  margin-top: 2rem;
}

.success-heading {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
}

.success-heading p {
  margin: 0;
}

.success-icon {
  align-items: center;
  background: var(--color-success);
  border-radius: 50%;
  color: var(--color-on-brand);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.code-grid {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 0.55rem 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
}

.code-grid li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  padding-left: 0.25rem;
  white-space: nowrap;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.text-link {
  background: none;
  border: 0;
  color: var(--color-link);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0;
  text-decoration: underline;
}

.text-link:hover {
  color: var(--color-link-hover);
}

.error-card {
  border-left: 5px solid var(--color-alert);
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 50rem) {
  .request-review-options { grid-template-columns: 1fr; }
  .admin-card-grid { grid-template-columns: 1fr; }
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-header__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .account-menu {
    margin-inline-start: auto;
  }

  .site-subnav__inner {
    gap: 1.5rem;
  }

  .code-grid {
    grid-template-columns: 1fr;
  }

  .page-heading-row {
    flex-direction: column;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .review-list dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

[dir="rtl"] .notice {
  border-left: 0;
  border-right: 5px solid var(--color-brand-blue);
}

[dir="rtl"] .notice--warning,
[dir="rtl"] .error-card {
  border-right-color: var(--color-alert);
}

[dir="rtl"] .error-card {
  border-left: 1px solid var(--color-border);
  border-right: 5px solid var(--color-alert);
}

[dir="rtl"] .code-grid {
  direction: ltr;
}

.case-form progress {
  accent-color: var(--color-brand-blue);
  block-size: 0.75rem;
  inline-size: 100%;
}

@media (max-width: 36rem) {
  .brand span {
    display: none;
  }

  .shell {
    padding: 1.5rem 1rem 3rem;
  }

  .panel {
    padding: 1.35rem;
  }

  .site-session-nav,
  .account-menu,
  .account-chip {
    width: 100%;
  }

  .account-chip {
    justify-content: flex-start;
    max-width: none;
  }

  .account-popover {
    inset-inline-end: auto;
    inset-inline-start: 0;
    width: 100%;
  }

  .status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row .button,
  .case-form > .button {
    width: 100%;
  }
}

@media print {
  body[data-page="recovery-codes"] {
    background: #fff;
    color: #000;
  }

  body[data-page="recovery-codes"] .site-header,
  body[data-page="recovery-codes"] .breadcrumb,
  body[data-page="recovery-codes"] .panel > :not([data-recovery-generated]),
  body[data-page="recovery-codes"] .button-row,
  body[data-page="recovery-codes"] .status-message,
  body[data-page="recovery-codes"] .text-link {
    display: none !important;
  }

  body[data-page="recovery-codes"] .panel {
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .code-grid {
    background: #fff;
    border-color: #777;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
