:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    line-height: 1.5;
    --color-ink: #14213d;
    --color-heading: #0f1c34;
    --color-muted: #5d6b82;
    --color-border: #d6e0eb;
    --color-border-strong: #aebdce;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f8fb;
    --color-canvas: #f3f6f9;
    --color-primary: #1261a8;
    --color-primary-dark: #0b4e8b;
    --color-primary-soft: #eaf4fd;
    --color-focus: #2f80d0;
    --color-success: #187451;
    --color-success-soft: #eaf8f1;
    --color-warning: #805f1f;
    --color-warning-soft: #fff8e8;
    --color-danger: #a12228;
    --color-danger-soft: #fff1f1;
    --shadow-card: 0 .75rem 2.5rem rgb(20 33 61 / 8%);
    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --content-width: 90rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-canvas);
    color: var(--color-ink);
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3 {
    color: var(--color-heading);
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    letter-spacing: -.03em;
}

h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    letter-spacing: -.015em;
}

h3 {
    font-size: 1.0625rem;
}

p {
    margin: 0;
}

a {
    color: var(--color-primary);
    text-underline-offset: .18em;
}

a:hover {
    color: var(--color-primary-dark);
}

code,
pre {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
    overflow-wrap: anywhere;
}

.skip-link {
    background: var(--color-heading);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: #fff;
    font-weight: 700;
    left: 1rem;
    padding: .75rem 1rem;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform .15s ease;
    z-index: 100;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.portal-page {
    background:
        radial-gradient(circle at 0 0, rgb(62 145 218 / 8%), transparent 30rem),
        var(--color-canvas);
}

.app-header {
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-header__inner {
    align-items: center;
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--content-width);
    min-height: 4.5rem;
    padding: .625rem clamp(1rem, 3vw, 2rem);
}

.brand {
    align-items: center;
    color: #263a57;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .9375rem;
    font-weight: 750;
    gap: .625rem;
    min-height: 2.75rem;
    text-decoration: none;
}

.brand:hover {
    color: #162741;
}

.brand__mark,
.auth-brand__mark {
    align-items: center;
    background: linear-gradient(145deg, #1671bd, #0a4b83);
    border-radius: .625rem;
    box-shadow: 0 .375rem .875rem rgb(18 97 168 / 22%);
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.app-nav {
    align-items: center;
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-nav a {
    align-items: center;
    border-radius: .625rem;
    color: #41526b;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 650;
    min-height: 2.75rem;
    padding: .625rem .875rem;
    text-decoration: none;
    white-space: nowrap;
}

.app-nav a:hover {
    background: #f1f5f9;
    color: #1e3552;
}

.app-nav a[aria-current="page"] {
    background: var(--color-primary-soft);
    color: #0b528e;
}

.app-main {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: var(--content-width);
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 4rem;
    width: 100%;
}

.app-footer {
    color: var(--color-muted);
    font-size: .8125rem;
    margin: 0 auto;
    max-width: var(--content-width);
    padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
}

.page-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.page-header__copy {
    display: grid;
    gap: .5rem;
    min-width: 0;
}

.page-header__copy > p,
.page-lead,
.time-basis {
    color: var(--color-muted);
    max-width: 52rem;
}

.eyebrow {
    color: var(--color-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-actions,
.cluster,
.row-actions,
.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.page-actions {
    justify-content: flex-end;
}

.stack {
    display: grid;
    gap: 1rem;
}

.stack--sm {
    gap: .625rem;
}

.stack--lg {
    gap: 1.5rem;
}

.content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.card--flat {
    box-shadow: none;
}

.card__header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card__header > div {
    display: grid;
    gap: .3rem;
}

.card__header p,
.card__description {
    color: var(--color-muted);
    font-size: .9rem;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.button {
    align-items: center;
    appearance: none;
    border: 1px solid transparent;
    border-radius: .625rem;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.75rem;
    padding: .6875rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--color-primary);
    box-shadow: 0 .375rem .875rem rgb(18 97 168 / 18%);
    color: #fff;
}

.button--primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.button--secondary {
    background: #fff;
    border-color: var(--color-border-strong);
    color: #243653;
}

.button--secondary:hover {
    background: #f5f8fb;
    border-color: #8296ac;
    color: #17243d;
}

.button--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--color-primary);
}

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

.button--danger {
    background: #fff;
    border-color: #e1a7a9;
    color: var(--color-danger);
}

.button--danger:hover {
    background: #fff5f5;
    border-color: #c87579;
    color: #82181d;
}

.button--compact {
    font-size: .875rem;
    min-height: 2.5rem;
    padding: .5rem .75rem;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.form-grid,
.settings-form {
    display: grid;
    gap: 1.125rem;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field,
.settings-field {
    display: grid;
    gap: .4375rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label,
.settings-field > label,
.field-label {
    color: #253653;
    font-size: .9375rem;
    font-weight: 650;
}

.label-optional {
    color: #5f6f86;
    font-size: .8125rem;
    font-weight: 500;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    appearance: none;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: .625rem;
    color: #17243d;
    min-height: 2.75rem;
    outline: none;
    padding: .625rem .75rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

select {
    background-image:
        linear-gradient(45deg, transparent 50%, #63748b 50%),
        linear-gradient(135deg, #63748b 50%, transparent 50%);
    background-position:
        calc(100% - 1rem) calc(50% - .125rem),
        calc(100% - .6875rem) calc(50% - .125rem);
    background-repeat: no-repeat;
    background-size: .35rem .35rem, .35rem .35rem;
    padding-right: 2.25rem;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
    border-color: #8296ac;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--color-focus);
    box-shadow: 0 0 0 .1875rem rgb(47 128 208 / 18%);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
    flex: 0 0 auto;
    height: 1.125rem;
    margin: .125rem 0 0;
    width: 1.125rem;
}

.checkbox-field,
.radio-field {
    align-items: flex-start;
    color: #36465f;
    cursor: pointer;
    display: flex;
    font-size: .9375rem;
    gap: .625rem;
    min-height: 2.75rem;
    padding: .65rem 0;
}

.field-hint {
    color: #5f6f86;
    font-size: .8125rem;
    margin: 0;
}

.filter-form {
    align-items: end;
    display: grid;
    gap: .875rem;
    grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(9rem, 1fr)) auto;
}

fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 0;
    min-width: 0;
    padding: 1rem;
}

legend {
    color: #253653;
    font-weight: 700;
    padding: 0 .375rem;
}

.choice-list {
    display: grid;
    gap: .25rem;
}

.table-region {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    max-width: 100%;
    overflow: auto;
}

.data-table {
    border-collapse: collapse;
    min-width: 48rem;
    width: 100%;
}

.data-table--compact {
    min-width: 36rem;
}

.data-table caption {
    color: var(--color-muted);
    font-size: .875rem;
    padding: .875rem 1rem;
    text-align: left;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #e4eaf1;
    padding: .875rem 1rem;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f6f9fc;
    color: #334761;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .045em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    white-space: nowrap;
    z-index: 1;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #f9fbfd;
}

.table-primary {
    display: block;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.table-secondary {
    color: var(--color-muted);
    display: block;
    font-size: .8125rem;
    margin-top: .2rem;
    overflow-wrap: anywhere;
}

.row-actions {
    align-items: flex-start;
    min-width: 15rem;
}

.row-actions--stacked {
    align-items: stretch;
    display: grid;
    min-width: min(22rem, 75vw);
}

.reset-password-form {
    align-items: end;
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(12rem, 1fr) auto;
    width: 100%;
}

.badge,
.status-badge {
    align-items: center;
    background: #edf2f7;
    border: 1px solid #d5dee8;
    border-radius: 999px;
    color: #41536b;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 750;
    line-height: 1.2;
    padding: .3rem .6rem;
    white-space: nowrap;
}

.badge--success,
.status-badge--active {
    background: var(--color-success-soft);
    border-color: #b9dfcc;
    color: var(--color-success);
}

.badge--warning,
.status-badge--pending {
    background: var(--color-warning-soft);
    border-color: #ead09a;
    color: var(--color-warning);
}

.badge--danger {
    background: var(--color-danger-soft);
    border-color: #efb9bc;
    color: var(--color-danger);
}

.badge--info {
    background: var(--color-primary-soft);
    border-color: #bed8ef;
    color: #234d73;
}

.alert,
.auth-alert,
.auth-notice {
    border: 1px solid #bed8ef;
    border-radius: .625rem;
    color: #234d73;
    font-size: .9rem;
    padding: .75rem .875rem;
}

.alert--info,
.auth-notice {
    background: #eef6fd;
}

.alert--success {
    background: var(--color-success-soft);
    border-color: #b9dfcc;
    color: #155f43;
}

.alert--warning,
.auth-notice--important {
    background: var(--color-warning-soft);
    border-color: #ead09a;
    color: #674c16;
}

.alert--danger,
.auth-alert {
    background: var(--color-danger-soft);
    border-color: #efb9bc;
    color: #8f1d24;
}

.form-message {
    margin-top: .75rem;
}

.empty-state {
    align-items: center;
    background: var(--color-surface-muted);
    border: 1px dashed #bac8d7;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    display: grid;
    gap: .5rem;
    justify-items: start;
    min-height: 8rem;
    padding: 1.25rem;
}

.empty-state strong {
    color: var(--color-heading);
}

.definition-grid {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(9rem, .6fr) minmax(0, 1.4fr);
    margin: 0;
}

.definition-grid dt,
.definition-grid dd {
    border-bottom: 1px solid #e4eaf1;
    margin: 0;
    padding: .75rem 0;
}

.definition-grid dt {
    color: var(--color-muted);
    font-weight: 650;
    padding-right: 1rem;
}

.definition-grid dd {
    min-width: 0;
}

.code-panel {
    background: #101b2d;
    border: 1px solid #263b58;
    border-radius: var(--radius-md);
    color: #e9f2fc;
    margin: 0;
    max-height: 30rem;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.link-list,
.selection-list,
.revision-list {
    display: grid;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list a,
.selection-list > li,
.revision-list > li {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: .625rem;
    display: block;
    padding: .875rem;
}

.link-list a {
    font-weight: 700;
    min-height: 2.75rem;
    text-decoration: none;
}

.selection-list > li {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.settings-form {
    gap: 0;
}

.settings-field {
    border-bottom: 1px solid #e4eaf1;
    grid-template-columns: minmax(11rem, .65fr) minmax(0, 1.35fr);
    padding: 1rem 0;
}

.settings-field:first-child {
    padding-top: 0;
}

.settings-field__label {
    align-content: start;
    display: grid;
    gap: .25rem;
}

.settings-field__control {
    display: grid;
    gap: .5rem;
    min-width: 0;
}

.settings-secret-status {
    color: var(--color-muted);
    font-size: .8125rem;
    font-weight: 500;
}

.settings-field--invalid {
    background: var(--color-danger-soft);
    border-radius: var(--radius-sm);
    margin-inline: -.75rem;
    padding-inline: .75rem;
}

.settings-field--invalid .field-hint {
    color: var(--color-danger);
}

.settings-array {
    display: grid;
    gap: .5rem;
}

.settings-revision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.media-link-request {
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: .5rem;
    color: var(--color-primary);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    min-height: 2.5rem;
    padding: .5rem .75rem;
}

.media-preview {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: .5rem;
    display: block;
    margin-top: .5rem;
    max-height: 18rem;
    object-fit: contain;
    width: auto;
}

.media-status {
    color: var(--color-muted);
    display: block;
    font-size: .8125rem;
    margin-top: .35rem;
}

/* Authentication pages */
.auth-page {
    background:
        radial-gradient(circle at 12% 16%, rgb(62 145 218 / 12%), transparent 27rem),
        radial-gradient(circle at 88% 88%, rgb(31 181 161 / 10%), transparent 25rem),
        #f3f7fb;
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    margin: 0;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(1rem, 5vw, 3rem);
    place-items: center;
    width: 100%;
}

.auth-card {
    border-color: rgb(198 211 225 / 90%);
    max-width: 34rem;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    width: 100%;
}

.auth-card--wide {
    max-width: 42rem;
}

.auth-header {
    margin-bottom: 1.75rem;
}

.auth-brand {
    align-items: center;
    color: #31425c;
    display: flex;
    font-size: .875rem;
    font-weight: 700;
    gap: .625rem;
    letter-spacing: .025em;
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
}

.auth-card h2 {
    font-size: 1.0625rem;
    margin: 0 0 1rem;
}

.auth-lead {
    color: var(--color-muted);
    margin: .75rem 0 0;
}

.auth-form {
    display: grid;
    gap: 1.125rem;
}

.auth-card .button--primary,
.auth-card .button--secondary {
    width: 100%;
}

.auth-card .auth-alert,
.auth-card .auth-notice {
    margin: 0 0 1.25rem;
}

.auth-note {
    border-top: 1px solid #e4eaf1;
    color: #5f6f86;
    font-size: .8125rem;
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    text-align: center;
}

.auth-note--warning {
    color: #71521b;
}

.auth-divider {
    align-items: center;
    color: #5f6f86;
    display: flex;
    font-size: .75rem;
    gap: .75rem;
    letter-spacing: .06em;
    margin: 1.5rem 0;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    background: #dfe6ee;
    content: "";
    flex: 1;
    height: 1px;
}

.auth-secret-block {
    background: #f5f8fb;
    border: 1px solid #d6e0ea;
    border-radius: .625rem;
    display: grid;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.auth-secret-label {
    color: #5f7086;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.auth-secret {
    color: #17243d;
    font-size: .9375rem;
    overflow-wrap: anywhere;
    user-select: all;
}

.mfa-qr {
    align-items: center;
    background: #f5f8fb;
    border: 1px solid #d6e0ea;
    border-radius: .75rem;
    display: flex;
    justify-content: center;
    margin-bottom: .75rem;
    padding: 1rem;
}

.mfa-qr__image {
    background: #fff;
    border: .5rem solid #fff;
    display: block;
    height: auto;
    max-width: 16rem;
    width: 100%;
}

.otp-code {
    display: grid;
    gap: clamp(.25rem, 1.75vw, .625rem);
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.auth-card .otp-code__digit {
    aspect-ratio: 1;
    font-size: clamp(1.25rem, 5vw, 1.625rem);
    font-weight: 750;
    min-height: 3rem;
    padding: 0;
    text-align: center;
}

.otp-code__status {
    color: #315b80;
    font-size: .8125rem;
    margin: 0;
    min-height: 1.25rem;
}

.recovery-codes {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.recovery-codes li {
    background: #f5f8fb;
    border: 1px solid #d8e1eb;
    border-radius: .5rem;
    padding: .625rem;
    text-align: center;
}

.recovery-codes code {
    overflow-wrap: anywhere;
    user-select: all;
}

.recovery-print-hint {
    margin: -.5rem 0 1rem;
}

.auth-actions {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-section + .auth-section {
    border-top: 1px solid #e1e8f0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.mfa-methods {
    display: grid;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mfa-method {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #dce4ed;
    border-radius: .625rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .875rem;
}

.mfa-method strong {
    display: block;
    overflow-wrap: anywhere;
}

.mfa-method .status-badge {
    margin-top: .25rem;
}

.auth-footer-action {
    border-top: 1px solid #e1e8f0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: .1875rem solid var(--color-focus);
    outline-offset: .1875rem;
}

@media (max-width: 64rem) {
    .app-header__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }

    .app-nav {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: .125rem;
        width: 100%;
    }

    .filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-form .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 48rem) {
    .app-header {
        position: static;
    }

    .app-nav {
        gap: 0;
        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }

    .app-nav a {
        font-size: .825rem;
        padding-inline: .5rem;
    }

    .page-header,
    .card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .page-actions {
        justify-content: flex-start;
    }

    .form-grid--two,
    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-form .button {
        grid-column: auto;
    }

    .settings-field {
        grid-template-columns: 1fr;
    }

    .table-region:has(.data-table[data-responsive="cards"]) {
        border: 0;
        overflow: visible;
    }

    .data-table[data-responsive="cards"],
    .data-table[data-responsive="cards"] tbody,
    .data-table[data-responsive="cards"] tr,
    .data-table[data-responsive="cards"] td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .data-table[data-responsive="cards"] caption {
        display: block;
        padding: 0 0 .75rem;
        width: 100%;
    }

    .data-table[data-responsive="cards"] thead {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .data-table[data-responsive="cards"] tbody {
        display: grid;
        gap: .875rem;
    }

    .data-table[data-responsive="cards"] tr {
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: 0 .25rem 1rem rgb(20 33 61 / 6%);
        overflow: hidden;
    }

    .data-table[data-responsive="cards"] td {
        align-items: start;
        border-bottom: 1px solid #e4eaf1;
        display: grid;
        gap: .75rem;
        grid-template-columns: minmax(7rem, .65fr) minmax(0, 1.35fr);
        padding: .75rem .875rem;
    }

    .data-table[data-responsive="cards"] td:last-child {
        border-bottom: 0;
    }

    .data-table[data-responsive="cards"] td::before {
        color: #53647b;
        content: attr(data-label);
        font-size: .75rem;
        font-weight: 750;
        letter-spacing: .035em;
        text-transform: uppercase;
    }

    .data-table[data-responsive="cards"] .row-actions,
    .data-table[data-responsive="cards"] .row-actions--stacked {
        min-width: 0;
    }

    .selection-list > li {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 36rem) {
    .auth-shell {
        align-items: start;
        padding: 0;
    }

    .auth-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        min-height: 100svh;
        padding: 1.5rem 1.125rem;
    }

    .recovery-codes,
    .auth-actions {
        grid-template-columns: 1fr;
    }

    .mfa-method {
        align-items: stretch;
        flex-direction: column;
    }

    .mfa-method .button,
    .page-actions .button,
    .form-actions .button {
        width: 100%;
    }

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

    .definition-grid dt {
        border-bottom: 0;
        padding-bottom: .125rem;
    }

    .definition-grid dd {
        padding-top: .125rem;
    }

    .reset-password-form {
        grid-template-columns: 1fr;
    }

    .data-table[data-responsive="cards"] td {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .button:hover {
        transform: none;
    }
}

@media print {
    @page {
        margin: 15mm;
    }

    body,
    .portal-page,
    .auth-page {
        background: #fff;
        color: #000;
    }

    .app-header,
    .app-footer,
    .page-actions,
    .app-nav,
    .print-hidden,
    .button,
    form:not(.print-keep) {
        display: none !important;
    }

    .app-main,
    .auth-shell {
        display: block;
        margin: 0;
        max-width: none;
        min-height: 0;
        padding: 0;
    }

    .card,
    .auth-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #000;
        max-width: none;
        min-height: 0;
        padding: 0;
    }

    .table-region {
        border-color: #777;
        overflow: visible;
    }

    .data-table {
        font-size: 9pt;
        min-width: 0;
    }

    .data-table th {
        position: static;
    }

    .code-panel {
        background: #fff;
        border-color: #000;
        color: #000;
        max-height: none;
    }

    .auth-card h1,
    .auth-brand,
    .auth-lead,
    .auth-notice {
        color: #000;
    }

    .recovery-codes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recovery-codes li {
        background: #fff;
        border-color: #000;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .recovery-codes code {
        color: #000;
        font-size: 11pt;
        overflow-wrap: normal;
        white-space: nowrap;
    }
}
