@font-face {
    font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/auth-editorial/instrument-sans.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('fonts/auth-editorial/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/auth-editorial/instrument-sans-600.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/auth-editorial/ibm-plex-mono.woff2') format('woff2');
}
[data-tu-theme="auth-editorial"] {
    margin: 0;
    background: var(--tu-bg-canvas);
    color: var(--tu-text);
    font-family: var(--tu-font-sans);
    font-size: var(--tu-body-size);
    line-height: 1.5;
    color-scheme: light;
}
/* Geometry follows the selected Editorial Rail export; no preview toolbar. */
[data-tu-theme="auth-editorial"] .tu-auth-shell {
    max-width: var(--tu-auth-width);
    min-height: 100vh;
    margin-inline: auto;
    overflow-wrap: anywhere;
}
[data-tu-theme="auth-editorial"] .tu-auth-identity {
    display: flex;
    gap: var(--tu-space-3);
    align-items: center;
    font-weight: 600;
    letter-spacing: -0.02em;
    min-height: 40px;
    margin-bottom: var(--tu-space-6);
}
[data-tu-theme="auth-editorial"] .tu-auth-logo {
    max-width: 160px;
    max-height: 48px;
    object-fit: contain;
}
[data-tu-theme="auth-editorial"] .tu-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    min-height: inherit;
}
[data-tu-theme="auth-editorial"] .tu-auth-rail {
    border-right: 1px solid var(--tu-border-subtle);
    padding: var(--tu-space-7) var(--tu-auth-inline-space) var(--tu-space-7) var(--tu-space-7);
}
[data-tu-theme="auth-editorial"] .tu-auth-rail .tu-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--tu-space-6);
}
[data-tu-theme="auth-editorial"] .tu-auth-rail :is(.tu-page-title, .tu-section-title) {
    font-size: var(--tu-auth-rail-title-size);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0;
}
[data-tu-theme="auth-editorial"] .tu-auth-rail :is(.tu-page-title, .tu-section-title)::after {
    content: '';
    display: block;
    width: var(--tu-auth-inline-space);
    border-bottom: 1px solid var(--tu-accent);
    margin-top: var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-auth-rail .tu-support {
    max-width: 280px;
    margin-top: var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-auth-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: var(--tu-space-7) var(--tu-auth-inline-space);
}
[data-tu-theme="auth-editorial"] .tu-auth-form {
    width: 100%;
    max-width: var(--tu-auth-content-width);
    min-width: 0;
}
[data-tu-theme="auth-editorial"] .tu-auth-content { min-width: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-shell--white-label .tu-auth-layout {
    grid-template-columns: minmax(0, 1fr);
}
[data-tu-theme="auth-editorial"] .tu-auth-heading {
    display: grid;
    gap: var(--tu-space-3);
    margin-bottom: var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-page-title {
    font-size: var(--tu-title-size);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0;
}
[data-tu-theme="auth-editorial"] .tu-section-title {
    font-size: var(--tu-section-size);
    font-weight: 600;
}
[data-tu-theme="auth-editorial"] .tu-eyebrow {
    font-family: var(--tu-font-mono);
    font-size: var(--tu-label-size);
    color: var(--tu-text-muted);
    margin: 0;
}
[data-tu-theme="auth-editorial"] .tu-support {
    color: var(--tu-text-muted);
    font-size: var(--tu-support-size);
    margin: 0;
}
[data-tu-theme="auth-editorial"] a:not(.btn) {
    color: var(--tu-text);
    text-underline-offset: 0.2em;
}
[data-tu-theme="auth-editorial"] a:hover { text-decoration-thickness: 2px; }
[data-tu-theme="auth-editorial"] :focus-visible {
    outline: 2px solid var(--tu-bg-canvas);
    outline-offset: 1px;
    box-shadow: var(--tu-focus-ring);
}
[data-tu-theme="auth-editorial"] .btn {
    border-radius: var(--tu-radius-sm);
    font-weight: 500;
    min-height: var(--tu-auth-control-size);
    font-size: var(--tu-support-size);
    padding: var(--tu-auth-control-block-space) var(--tu-auth-control-inline-space);
    transition: none;
}
[data-tu-theme="auth-editorial"] .tu-button--primary {
    font-size: var(--tu-auth-primary-size);
    padding: var(--tu-space-3) var(--tu-space-5);
    --bs-btn-color: var(--tu-on-accent);
    --bs-btn-bg: var(--tu-accent);
    --bs-btn-border-color: var(--tu-accent);
    --bs-btn-hover-color: var(--tu-on-accent);
    --bs-btn-hover-bg: var(--tu-accent);
    --bs-btn-hover-border-color: var(--tu-text);
    --bs-btn-active-color: var(--tu-on-accent);
    --bs-btn-active-bg: var(--tu-accent);
    --bs-btn-active-border-color: var(--tu-text);
    --bs-btn-disabled-color: var(--tu-on-accent);
    --bs-btn-disabled-bg: var(--tu-accent);
    --bs-btn-disabled-border-color: var(--tu-accent);
}
[data-tu-theme="auth-editorial"] .tu-button--secondary {
    --bs-btn-color: var(--tu-text);
    --bs-btn-border-color: var(--tu-border-strong);
    --bs-btn-hover-color: var(--tu-text);
    --bs-btn-hover-bg: var(--tu-surface-hover);
    --bs-btn-hover-border-color: var(--tu-text);
    --bs-btn-active-color: var(--tu-text);
    --bs-btn-active-bg: var(--tu-surface-hover);
    --bs-btn-active-border-color: var(--tu-text);
    --bs-btn-disabled-color: var(--tu-text-muted);
    --bs-btn-disabled-border-color: var(--tu-border-strong);
}
[data-tu-theme="auth-editorial"] .btn:focus-visible,
[data-tu-theme="auth-editorial"] .form-control:focus,
[data-tu-theme="auth-editorial"] .form-select:focus {
    box-shadow: var(--tu-focus-ring);
}
[data-tu-theme="auth-editorial"] .form-control,
[data-tu-theme="auth-editorial"] .form-select {
    color: var(--tu-text);
    background-color: var(--tu-surface);
    border-color: var(--tu-border-strong);
    border-radius: var(--tu-radius-sm);
    font-size: var(--tu-body-size);
    min-height: var(--tu-auth-control-size);
    padding: var(--tu-auth-control-block-space) var(--tu-space-3);
}
/* Keep Bootstrap's native select arrow clear of long credential labels. */
[data-tu-theme="auth-editorial"] .form-select { padding-right: 2.25rem; }
[data-tu-theme="auth-editorial"] .form-control::placeholder { color: var(--tu-text-muted); }
[data-tu-theme="auth-editorial"] .form-control:disabled { background: var(--tu-surface-hover); }
[data-tu-theme="auth-editorial"] .tu-auth-footer {
    margin-top: var(--tu-space-6);
    border-top: 1px solid var(--tu-border-subtle);
    padding-top: var(--tu-space-4);
    font-size: var(--tu-support-size);
}
[data-tu-theme="auth-editorial"] .tu-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tu-space-2) var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-auth-links a,
[data-tu-theme="auth-editorial"] .tu-auth-provider a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    min-width: 40px;
    color: var(--tu-text-muted);
}
[data-tu-theme="auth-editorial"] .tu-auth-provider a { gap: 0.25em; }
[data-tu-theme="auth-editorial"] .tu-auth-provider {
    margin: var(--tu-space-4) 0 0;
    padding-top: var(--tu-space-4);
    border-top: 1px solid var(--tu-border-subtle);
    text-align: center;
}
[data-tu-theme="auth-editorial"] .tu-auth-progress {
    list-style-position: inside;
    padding: 0;
    margin-block: var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-auth-progress li {
    padding-block: var(--tu-space-3);
    border-bottom: 1px solid var(--tu-border-subtle);
}
[data-tu-theme="auth-editorial"] .tu-auth-progress [aria-current="step"] { font-weight: 600; }
[data-tu-theme="auth-editorial"] .tu-auth-step-state {
    display: block;
    font-size: var(--tu-support-size);
    color: var(--tu-text-muted);
}
[data-tu-theme="auth-editorial"] .tu-auth-status {
    border: 1px solid var(--tu-border-subtle);
    border-left: var(--tu-space-1) solid var(--tu-info);
    padding: var(--tu-space-4);
    margin-bottom: var(--tu-space-5);
}
[data-tu-theme="auth-editorial"] .tu-auth-status p { margin: var(--tu-space-2) 0 0; }
[data-tu-theme="auth-editorial"] .tu-auth-status[data-status="danger"] { border-left-color: var(--tu-danger); }
[data-tu-theme="auth-editorial"] .tu-auth-status[data-status="success"] { border-left-color: var(--tu-success); }
[data-tu-theme="auth-editorial"] .tu-auth-status[data-status="warning"] { border-left-color: var(--tu-warning); }
[data-tu-theme="auth-editorial"] .tu-auth-shell--embedded {
    min-height: 0;
}
[data-tu-theme="auth-editorial"] .tu-auth-shell--embedded .tu-auth-layout {
    grid-template-columns: minmax(0, 1fr);
}
[data-tu-theme="auth-editorial"] .tu-auth-shell--embedded .tu-auth-rail { display: none; }
[data-tu-theme="auth-editorial"] .tu-auth-shell--embedded .tu-auth-stage { padding: var(--tu-space-4); }
@media (max-width: 992px) {
    [data-tu-theme="auth-editorial"] .tu-auth-layout { grid-template-columns: minmax(0, 1fr); }
    [data-tu-theme="auth-editorial"] .tu-auth-rail { display: none; }
    [data-tu-theme="auth-editorial"] .tu-auth-stage { padding: var(--tu-space-5); }
}
@media (max-width: 576px) {
    [data-tu-theme="auth-editorial"] .tu-auth-stage { padding: var(--tu-space-5) var(--tu-space-4); }
}

@media (prefers-reduced-motion: reduce) {
    [data-tu-theme="auth-editorial"] *,
    [data-tu-theme="auth-editorial"] *::before,
    [data-tu-theme="auth-editorial"] *::after { transition: none !important; animation: none !important; }
}

/* Login consumes the shared theme; legacy class names remain stable JS hooks. */
[data-tu-theme="auth-editorial"] .tu-login-controls { min-width: 0; }
[data-tu-theme="auth-editorial"] .text-muted { color: var(--tu-text-muted) !important; }
[data-tu-theme="auth-editorial"] .tu-login-passkey,
[data-tu-theme="auth-editorial"] .tu-login-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tu-space-3);
}
[data-tu-theme="auth-editorial"] .tu-login-passkey { text-align: center; }
[data-tu-theme="auth-editorial"] .tu-login-social { margin-bottom: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-login-divider {
    display: flex;
    align-items: center;
    gap: var(--tu-space-3);
    margin-block: var(--tu-space-5);
    color: var(--tu-text-muted);
    font-size: var(--tu-support-size);
}
[data-tu-theme="auth-editorial"] .tu-login-divider::before,
[data-tu-theme="auth-editorial"] .tu-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--tu-border-subtle);
}
[data-tu-theme="auth-editorial"] .tu-login a,
[data-tu-theme="auth-editorial"] .tu-login .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}
[data-tu-theme="auth-editorial"] .tu-login .form-check { display: flex; align-items: center; gap: var(--tu-space-2); }
[data-tu-theme="auth-editorial"] .form-check-input:checked { background-color: var(--tu-text); border-color: var(--tu-text); }
[data-tu-theme="auth-editorial"] .form-check-input:focus { box-shadow: var(--tu-focus-ring); border-color: var(--tu-text); }
[data-tu-theme="auth-editorial"] .tu-login-device-panel,
[data-tu-theme="auth-editorial"] .tu-login-recent {
    border: 1px solid var(--tu-border-subtle);
    padding: var(--tu-space-4);
    margin-bottom: var(--tu-space-4);
}
[data-tu-theme="auth-editorial"] .tu-login-device-code {
    display: inline-block;
    font-family: var(--tu-font-mono);
    font-size: var(--tu-title-size);
    padding: var(--tu-space-2) var(--tu-space-3);
    background: var(--tu-surface);
    border: 1px solid var(--tu-border-strong);
}
[data-tu-theme="auth-editorial"] .tu-login-device-url { word-break: break-all; }
[data-tu-theme="auth-editorial"] .tu-login-recent-row { position: relative; }
[data-tu-theme="auth-editorial"] .tu-login-recent-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--tu-space-3);
    padding: var(--tu-space-3);
    padding-right: calc(40px + var(--tu-space-5));
    position: relative;
    border: 1px solid var(--tu-border-subtle);
    background: var(--tu-surface);
    text-decoration: none;
}
[data-tu-theme="auth-editorial"] .tu-login-recent-item:hover { border-color: var(--tu-border-strong); }
[data-tu-theme="auth-editorial"] .tu-login-recent-item.is-cross-tenant { border-left: var(--tu-space-1) solid var(--tu-warning); }
[data-tu-theme="auth-editorial"] .tu-login-recent-edit {
    position: absolute;
    right: var(--tu-space-2);
    top: var(--tu-space-2);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tu-border-strong);
    background: var(--tu-surface);
    color: var(--tu-text);
}
[data-tu-theme="auth-editorial"] .tu-login-recent-logo { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; }
[data-tu-theme="auth-editorial"] .tu-login-recent-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
[data-tu-theme="auth-editorial"] .tu-login-recent-meta { display: flex; gap: var(--tu-space-2); flex-wrap: wrap; }
[data-tu-theme="auth-editorial"] .tu-login-recent-method,
[data-tu-theme="auth-editorial"] .tu-login-recent-tenant-badge { font-size: var(--tu-label-size); color: var(--tu-text-muted); }
[data-tu-theme="auth-editorial"] .tu-login-recent-status { display: block; color: var(--tu-success); font-size: var(--tu-label-size); }
[data-tu-theme="auth-editorial"] .tu-login-overlay { display: none; position: fixed; inset: 0; background: color-mix(in srgb, var(--tu-text) 40%, transparent); z-index: 1040; }
[data-tu-theme="auth-editorial"] .tu-login-sheet,
[data-tu-theme="auth-editorial"] .tu-login-switch {
    display: none;
    position: fixed;
    width: calc(100% - var(--tu-space-6));
    max-width: var(--tu-auth-content-width);
    max-height: calc(100dvh - var(--tu-space-6));
    overflow-y: auto;
    padding: var(--tu-space-5);
    background: var(--tu-surface);
    border: 1px solid var(--tu-border-strong);
    z-index: 1050;
    left: 50%;
    transform: translateX(-50%);
}
[data-tu-theme="auth-editorial"] .tu-login-sheet { bottom: var(--tu-space-4); }
[data-tu-theme="auth-editorial"] .tu-login-switch { top: 50%; transform: translate(-50%, -50%); }
[data-tu-theme="auth-editorial"].account-sheet-open .tu-login-sheet,
[data-tu-theme="auth-editorial"].account-sheet-open #accountSheetOverlay,
[data-tu-theme="auth-editorial"].tenant-switch-confirm-open .tu-login-switch,
[data-tu-theme="auth-editorial"].tenant-switch-confirm-open #tenantSwitchOverlay { display: block; }
[data-tu-theme="auth-editorial"] .account-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .account-sheet-title,
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-title { font-weight: 600; }
[data-tu-theme="auth-editorial"] .account-sheet-body,
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-summary { margin-block: var(--tu-space-5); }
[data-tu-theme="auth-editorial"] .account-sheet-actions { display: grid; gap: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-row { display: flex; justify-content: space-between; gap: var(--tu-space-3); padding-block: var(--tu-space-2); }
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-value { text-align: right; min-width: 0; overflow-wrap: anywhere; }
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-badge,
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-label,
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-hint { color: var(--tu-text-muted); font-size: var(--tu-support-size); }
[data-tu-theme="auth-editorial"] .tenant-switch-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--tu-space-3); margin-top: var(--tu-space-5); }
[data-tu-theme="auth-editorial"] .btn-outline-danger { --bs-btn-color: var(--tu-danger); --bs-btn-border-color: var(--tu-danger); --bs-btn-hover-bg: var(--tu-danger); --bs-btn-active-bg: var(--tu-danger); }
html.embedded-auth [data-tu-theme="auth-editorial"] .tu-auth-shell { min-height: 0; }
html.embedded-auth [data-tu-theme="auth-editorial"] .tu-auth-layout { grid-template-columns: minmax(0, 1fr); }
html.embedded-auth [data-tu-theme="auth-editorial"] .tu-auth-rail,
html.embedded-auth [data-tu-theme="auth-editorial"] .tu-login-recent { display: none; }
html.embedded-auth [data-tu-theme="auth-editorial"] .tu-auth-stage { padding: var(--tu-space-4); }

[data-tu-theme="auth-editorial"] .tu-form-error { color: var(--tu-danger); }
[data-tu-theme="auth-editorial"] .form-control[aria-invalid="true"] { border-color: var(--tu-danger); }
[data-tu-theme="auth-editorial"] .tu-auth-consent { display: flex; flex-wrap: wrap; align-items: start; gap: var(--tu-space-2); }
[data-tu-theme="auth-editorial"] .tu-auth-consent .form-check-input { float: none; flex-shrink: 0; margin: var(--tu-space-3) 0 0; border-color: var(--tu-border-strong); }
[data-tu-theme="auth-editorial"] .tu-auth-consent-label { flex: 1; min-width: 0; padding-block: var(--tu-space-2); min-height: 40px; }
[data-tu-theme="auth-editorial"] .tu-auth-consent .tu-form-error { flex-basis: 100%; }
[data-tu-theme="auth-editorial"] .tu-auth-link-target,
[data-tu-theme="auth-editorial"] .tu-auth-consent-label a,
[data-tu-theme="auth-editorial"] .tu-auth-status a {
    display: inline-flex;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    vertical-align: middle;
}

[data-tu-theme="auth-editorial"] .tu-protection-secret {
    font-family: var(--tu-font-mono);
    color: var(--tu-text);
    background: var(--tu-surface);
    border: 1px solid var(--tu-border-strong);
    padding: var(--tu-space-4);
}

[data-tu-theme="auth-editorial"] .tu-auth-progress--compact {
    list-style: decimal-leading-zero inside;
}
[data-tu-theme="auth-editorial"] .tu-auth-progress--compact li { padding-block: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-auth-progress--compact li::marker {
    font-family: var(--tu-font-mono);
    font-size: var(--tu-label-size);
    color: var(--tu-text-muted);
}
[data-tu-theme="auth-editorial"] .tu-auth-progress--compact li[aria-current="step"]::marker { color: var(--tu-link-accent); }
[data-tu-theme="auth-editorial"] .tu-auth-progress--compact li:last-child { border-bottom: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-progress--compact[hidden] { display: none; }

/* Reference entry composition. Other protocol screens keep their shared layout. */
[data-tu-theme="auth-editorial"]:is(.tu-auth-entry, .tu-auth-flow) { -webkit-font-smoothing: antialiased; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-layout { display: flex; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail { width: 33.333%; flex-shrink: 0; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { width: 66.666%; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-form { position: relative; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-identity {
    min-height: var(--tu-space-6);
    margin-bottom: var(--tu-space-5);
    font-size: var(--tu-wordmark-size);
    line-height: 28px;
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-logo { max-height: var(--tu-space-6); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-heading { gap: var(--tu-space-2); margin-bottom: var(--tu-space-6); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-heading .tu-page-title {
    font-size: var(--tu-display-size);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-heading .tu-support { font-size: var(--tu-body-size); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-login-passkey { gap: var(--tu-space-2); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-login-passkey.tu-button--primary { border: 0; }
:is(.tu-auth-entry, .tu-auth-flow) #passkeyHelp {
    font-size: var(--tu-label-size);
    margin-top: var(--tu-auth-control-block-space);
}
:is(.tu-auth-entry, .tu-auth-flow) #passkeyFallback { margin-top: var(--tu-space-5); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-entry-register {
    margin-top: var(--tu-auth-control-inline-space);
    border-top: 1px solid var(--tu-border-subtle);
    padding-top: var(--tu-space-4);
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-entry-register a {
    display: inline-block;
    position: relative;
    min-height: 0;
    color: var(--tu-link-accent);
    font-size: var(--tu-support-size);
    text-underline-offset: 3px;
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-footer {
    margin-top: var(--tu-space-6);
    padding-top: var(--tu-auth-control-inline-space);
    border-top: 1px solid var(--tu-border-subtle);
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-provider { margin: 0; padding: 0; border: 0; font-size: var(--tu-label-size); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-provider a {
    display: inline;
    position: relative;
    min-height: 0;
    min-width: 0;
    color: var(--tu-text-muted);
    text-decoration: none;
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-provider-name { color: var(--tu-provider-accent); text-decoration: underline; }
/* Extend compact text-link hit areas without inflating the reference line boxes. */
:is(.tu-auth-entry, .tu-auth-flow) :is(.tu-auth-entry-register a, .tu-auth-provider a, .tu-auth-rail-footer a)::after {
    content: '';
    position: absolute;
    inset: -11px 0;
    min-height: 40px;
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-utilities {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin-top: var(--tu-space-5);
    padding-bottom: var(--tu-space-5);
    font-size: var(--tu-caption-size);
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-utilities .tu-auth-links { justify-content: center; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-shell--white-label .tu-auth-footer { margin: 0; padding: 0; border: 0; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail-body { display: flex; flex-direction: column; height: 100%; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail .tu-eyebrow { font-size: var(--tu-caption-size); letter-spacing: 1px; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail .tu-support { font-size: var(--tu-auth-primary-size); margin-top: var(--tu-auth-control-inline-space); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail-footer {
    margin-top: auto;
    border-top: 1px solid var(--tu-border-subtle);
    padding-top: var(--tu-auth-control-inline-space);
    font-size: var(--tu-label-size);
    color: var(--tu-text-muted);
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail-footer p { margin: 0; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-provider-privacy {
    margin-top: var(--tu-space-5);
    text-align: center;
    font-size: var(--tu-body-size);
}
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail-footer a {
    position: relative;
    color: var(--tu-text-muted);
    font-size: var(--tu-caption-size);
    text-align: center;
    text-underline-offset: 2px;
}
/* The entry follows the selected reference breakpoints. Embedded stays compact. */
@media (min-width: 768px) and (max-width: 1023px) {
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail { width: 30%; }
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { width: 70%; }
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail { display: block; padding: var(--tu-space-6) var(--tu-space-5); }
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { padding: var(--tu-space-6) var(--tu-space-5); }
}
@media (max-width: 767px) {
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-layout { flex-direction: column; }
    :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { width: 100%; padding: var(--tu-space-5) var(--tu-auth-control-inline-space); }
}
:is(.tu-auth-entry, .tu-auth-flow) :is(.tu-auth-shell--embedded, .tu-auth-shell--white-label) .tu-auth-layout,
html.embedded-auth :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-layout { grid-template-columns: minmax(0, 1fr); }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-shell--embedded .tu-auth-rail,
html.embedded-auth :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-rail { display: none; }
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-shell--embedded .tu-auth-stage,
html.embedded-auth :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { padding: var(--tu-space-4); }
/* Embedded containers must measure their complete legal/language content. */
:is(.tu-auth-entry, .tu-auth-flow) .tu-auth-shell--embedded .tu-auth-utilities,
html.embedded-auth :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-utilities { position: static; padding-bottom: 0; }

:is(.tu-auth-entry, .tu-auth-flow) :is(.tu-auth-shell--embedded, .tu-auth-shell--white-label) .tu-auth-stage,
html.embedded-auth :is(.tu-auth-entry, .tu-auth-flow) .tu-auth-stage { width: 100%; }

/* Keep AA foreground/background pairs opaque in every interactive state. */
:is(.tu-auth-entry, .tu-auth-flow) .tu-login-passkey.tu-button--primary:hover:not(:disabled) {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
:is(.tu-auth-entry, .tu-auth-flow) .btn:disabled { opacity: 0.45; }

/* Protocol pages share the reference shell; headings retain their reference role. */
.tu-auth-flow .tu-auth-heading { margin-bottom: var(--tu-auth-form-gap); }
.tu-auth-flow .tu-auth-heading .tu-page-title { font-size: var(--tu-flow-title-size); }
.tu-auth-flow--register .tu-auth-heading .tu-page-title { font-size: var(--tu-display-size); }
.tu-auth-flow--protocol .tu-auth-heading .tu-page-title { font-size: var(--tu-protocol-title-size); }
.tu-auth-flow .tu-button--primary { width: 100%; border: 0; }
.tu-auth-flow .tu-button--primary:hover:not(:disabled) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tu-auth-flow .tu-button--ghost { border: 0; color: var(--tu-text-muted); font-weight: 400; padding: var(--tu-space-2) var(--tu-space-3); }
.tu-auth-flow .form-label { font-size: var(--tu-support-size); margin-bottom: var(--tu-space-1); }
.tu-auth-flow .tu-auth-code { max-width: 100%; width: var(--tu-code-width); height: var(--tu-code-height); margin-inline: auto; text-align: center; font-family: var(--tu-font-mono); font-size: var(--tu-section-size); letter-spacing: 0.4em; }
.tu-auth-flow .tu-auth-code-label { display: block; text-align: center; }
.tu-auth-flow .tu-auth-progress--compact { counter-reset: auth-step; margin-block: var(--tu-auth-control-inline-space); list-style: none; }
.tu-auth-flow .tu-auth-progress--compact li { counter-increment: auth-step; display: grid; grid-template-columns: var(--tu-auth-step-number-width) minmax(0, 1fr); column-gap: var(--tu-auth-step-gap); padding-block: var(--tu-auth-control-block-space); font-size: var(--tu-support-size); color: var(--tu-text-muted); }
.tu-auth-flow .tu-auth-progress--compact li::before { content: counter(auth-step, decimal-leading-zero); font-family: var(--tu-font-mono); font-size: var(--tu-caption-size); padding-top: 2px; }
.tu-auth-flow .tu-auth-progress--compact li[aria-current=step] { color: var(--tu-text); font-weight: 500; }
.tu-auth-flow .tu-auth-progress--compact li[aria-current=step]::before { color: var(--tu-link-accent); }
.tu-auth-flow .tu-auth-step-state { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tu-auth-flow #setup-origin { font-size: var(--tu-body-size); margin-top: var(--tu-space-2); }
.tu-auth-flow--protocol .tu-auth-heading { margin-bottom: var(--tu-space-2); }
.tu-auth-flow #setup-task { margin-block: var(--tu-auth-control-inline-space); }
.tu-auth-flow .tu-auth-navigation { margin-top: var(--tu-space-4); }

.tu-auth-flow .tu-auth-progress--compact :is(li[data-state=done], li:has(~ li[aria-current=step])) > span:first-child { text-decoration: line-through; text-decoration-color: var(--tu-border-subtle); }

.tu-auth-flow .tu-auth-consent { font-size: var(--tu-support-size); }
.tu-auth-flow #requiredFields { font-size: var(--tu-label-size); }
.tu-auth-flow--setup .tu-auth-heading { margin-bottom: 0; }
.tu-auth-flow--setup .tu-auth-heading .tu-page-title { font-weight: 400; line-height: 1.5; letter-spacing: normal; }

.tu-auth-flow .tu-auth-status { border-top: 0; border-right: 0; border-bottom: 0; border-left-width: var(--tu-auth-status-rule); background: var(--tu-auth-status-surface); }

/* Protocol support copy and code fields retain the selected compound reference roles. */
.tu-auth-flow--compound .tu-auth-heading .tu-support { font-size: var(--tu-auth-primary-size); }
[data-tu-theme="auth-editorial"] .tu-auth-mono-field { font-family: var(--tu-font-mono); }

.tu-auth-flow--compound .tu-auth-status[data-status=info] { border: 0; background: transparent; padding: 0; color: var(--tu-text-muted); font-size: var(--tu-support-size); }
[data-tu-theme="auth-editorial"] .tu-auth-protocol-note { border: 1px solid var(--tu-border-subtle); padding: var(--tu-auth-control-block-space) var(--tu-space-3); color: var(--tu-text-muted); font-size: var(--tu-label-size); }
/* Reach the rail's existing 1px border, retaining emergency wrapping for tenant fonts and enlarged text. */
@media (min-width: 1024px) {
    .tu-auth-flow--compound .tu-auth-rail .tu-section-title { width: calc(100% + var(--tu-auth-inline-space) + 1px); }
}

/* Consent, tenant transfer and Auth outcomes use the same reference roles. */
.tu-auth-flow--transition .tu-auth-heading .tu-page-title { font-size: var(--tu-transition-title-size); }
.tu-auth-flow--transition .tu-auth-heading { margin-bottom: var(--tu-space-5); }
.tu-auth-flow--transition .tu-auth-heading .tu-support { font-size: var(--tu-auth-primary-size); margin-top: var(--tu-space-2); }
[data-tu-theme="auth-editorial"] .tu-auth-protocol-card { border: 1px solid var(--tu-border-subtle); padding: var(--tu-space-4); margin-block: var(--tu-space-5); }
[data-tu-theme="auth-editorial"] .tu-auth-protocol-section { margin-top: var(--tu-space-5); }
[data-tu-theme="auth-editorial"] .tu-auth-policy-form > .tu-button--primary { margin-top: var(--tu-space-5); }
[data-tu-theme="auth-editorial"] .tu-auth-tenant-transfer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-auth-transfer-tenant { display: flex; flex-direction: column; gap: var(--tu-space-2); align-items: start; min-width: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-transfer-tenant .tu-auth-logo { max-width: min(160px, 100%); height: auto; }
[data-tu-theme="auth-editorial"] .tu-auth-session-row { display: flex; gap: var(--tu-space-3); margin-block: var(--tu-space-3); align-items: center; }
[data-tu-theme="auth-editorial"] .tu-auth-session-row > div { min-width: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-protocol-actions { display: flex; flex-direction: column; gap: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-auth-client-name { font-weight: 500; }
[data-tu-theme="auth-editorial"] .tu-auth-scope-row { border-bottom: 1px solid var(--tu-border-subtle); }
[data-tu-theme="auth-editorial"] .tu-auth-scope-row:last-child { border-bottom: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-scope-row code { display: block; color: var(--tu-text-muted); font-size: var(--tu-caption-size); }
[data-tu-theme="auth-editorial"] .tu-auth-granted { display: block; color: var(--tu-text-muted); font-size: var(--tu-label-size); }
[data-tu-theme="auth-editorial"] .tu-auth-consent-note { color: var(--tu-text-muted); font-size: var(--tu-label-size); margin-top: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-auth-consent-actions { display: flex; gap: var(--tu-space-3); margin-top: var(--tu-space-5); align-items: stretch; }
[data-tu-theme="auth-editorial"] .tu-auth-consent-actions > * { flex: 1; min-width: 0; }
[data-tu-theme="auth-editorial"] .tu-auth-error-code { color: var(--tu-text-muted); font-size: var(--tu-label-size); margin-top: var(--tu-space-3); }
[data-tu-theme="auth-editorial"] .tu-auth-error-code code { color: var(--tu-text); }

/* Isolated Editorial section inside the existing dark tenant-settings panel. */
[data-tu-theme="auth-editorial"].tu-admin-readiness {
    padding: var(--tu-space-5);
    margin-bottom: var(--tu-space-5);
    margin-inline: auto;
    max-width: calc(var(--tu-auth-content-width) + 2 * var(--tu-space-5));
    min-width: 0;
    overflow-wrap: anywhere;
}
.tu-admin-readiness .tu-auth-identity {
    min-height: var(--tu-space-6);
    margin-bottom: var(--tu-space-5);
    font-size: var(--tu-wordmark-size);
}
.tu-admin-readiness .tu-auth-logo { max-height: var(--tu-space-6); }
.tu-admin-readiness h2 {
    margin: 0;
    font-size: var(--tu-transition-title-size);
    line-height: 1.15;
    font-weight: 600;
}
.tu-admin-readiness .tu-admin-readiness-description {
    font-size: var(--tu-auth-primary-size);
    color: var(--tu-text-muted);
    margin: var(--tu-space-2) 0 var(--tu-auth-control-inline-space);
}
[data-tu-theme="auth-editorial"].tu-admin-readiness .tu-auth-status {
    border-left-width: var(--tu-auth-status-rule);
    font-size: var(--tu-support-size);
    margin-bottom: var(--tu-auth-control-inline-space);
}
.tu-admin-readiness .tu-eyebrow { font-family: var(--tu-font-mono); }
.tu-admin-readiness-requirements { list-style: none; padding: 0; margin: var(--tu-space-2) 0 var(--tu-space-4); }
.tu-admin-readiness-requirements li {
    padding: var(--tu-space-3);
    border: 1px solid var(--tu-border-subtle);
    font-size: var(--tu-support-size);
    margin-bottom: var(--tu-space-1);
}
.tu-admin-readiness-requirements p { color: var(--tu-text-muted); margin: var(--tu-space-1) 0 0; }
.tu-admin-readiness .tu-auth-protocol-note p { margin: var(--tu-space-1) 0 0; }
.tu-admin-readiness-control { margin-top: var(--tu-space-4); }
.tu-admin-readiness-control label { padding-block: var(--tu-space-3); cursor: pointer; }
.tu-admin-readiness-control .form-check-input { appearance: auto; accent-color: var(--tu-accent); background-image: none; margin-top: var(--tu-space-4); border-color: var(--tu-border-strong); }
.tu-admin-readiness-control .form-check-input:checked { background-color: var(--tu-accent); border-color: var(--tu-text); }
.tu-admin-readiness-control .form-check-input:focus-visible { box-shadow: var(--tu-focus-ring); border-color: var(--tu-text); }
.tu-admin-readiness-help { font-size: var(--tu-label-size); color: var(--tu-text-muted); margin: var(--tu-space-2) 0 0; }
@media (max-width: 576px) {
    [data-tu-theme="auth-editorial"].tu-admin-readiness { padding: var(--tu-space-4); }
}
