/*
 * Sovereign Estate CI/CX v1.1
 * Production compatibility layer shared by SECINTEL, EDMS-SDIP, SHIELD, and KEYGEN.
 */

:root {
    --dv8-red: #c92736;
    --dv8-red-hover: #a31e2b;
    --dv8-red-light: #e84a59;
    --dv8-orange: #f04c23;
    --quantum-navy: #081426;
    --quantum-navy-soft: #12233d;
    --quantum-cyan: #39d0e3;
    --sa-flag-green: #007749;
    --sa-flag-gold: #ffb81c;
    --sandf-green: #006536;
    --sandf-green-deep: #004b2a;
    --sandf-gold: #c8a951;
    --page-bg: #f3f6f8;
    --surface-bg: #f8fafb;
    --surface-elevated: #ffffff;
    --surface-subtle: #edf1f4;
    --text: #142033;
    --text-secondary: #4d5c70;
    --text-tertiary: #6c7888;
    --border: #d9e0e7;
    --border-strong: #b9c4cf;
    --focus-ring: rgb(201 39 54 / 24%);
    --success: #0c7a43;
    --warning: #9a6410;
    --danger: #b4232f;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-display: "Saira", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Mono", monospace;
    --shadow-card: 0 14px 36px rgb(8 20 38 / 12%);
    --shadow-elevated: 0 22px 52px rgb(8 20 38 / 18%);
    --cicx-radius: 8px;
    --cicx-auth-hero: url("/images/ci-cx/sovereign-auth-hero.jpg");
}

[data-theme="dark"] {
    --page-bg: #07111f;
    --surface-bg: #0b1728;
    --surface-elevated: #122036;
    --surface-subtle: #18283f;
    --text: #f3f7fb;
    --text-secondary: #b7c3d2;
    --text-tertiary: #8f9caf;
    --border: #2b3c54;
    --border-strong: #42536b;
    --focus-ring: rgb(57 208 227 / 26%);
    --shadow-card: 0 14px 36px rgb(0 0 0 / 30%);
    --shadow-elevated: 0 22px 52px rgb(0 0 0 / 42%);
}

[data-theme="sandf"] {
    --dv8-red: var(--sandf-green);
    --dv8-red-hover: var(--sandf-green-deep);
    --dv8-red-light: var(--sa-flag-green);
    --page-bg: #eef3ef;
    --surface-bg: #f7faf7;
    --surface-elevated: #ffffff;
    --surface-subtle: #e6eee8;
    --text: #13231a;
    --text-secondary: #42584a;
    --text-tertiary: #65746a;
    --border: #d3ded6;
    --border-strong: #aebfb3;
    --focus-ring: rgb(0 101 54 / 24%);
}

html[data-ci-cx-version="1.1.0"],
html[data-ci-cx-version="1.1.0"] body {
    font-family: var(--font-body);
    letter-spacing: 0;
}

html[data-ci-cx-version="1.1.0"] *,
html[data-ci-cx-version="1.1.0"] *::before,
html[data-ci-cx-version="1.1.0"] *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

html[data-ci-cx-version="1.1.0"] :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Authentication surface */

html[data-ci-cx-version="1.1.0"]:has(body[data-ci-cx-surface="auth"]) {
    block-size: 100%;
    overflow: hidden !important;
}

body[data-ci-cx-surface="auth"] {
    block-size: 100dvh !important;
    min-block-size: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--text);
    background: var(--page-bg);
}

body[data-ci-cx-surface="auth"] .dv8-auth-page-tools,
body[data-ci-cx-surface="auth"] .dv8-utility-cluster,
body[data-ci-cx-surface="auth"] .cicx-auth-plane-switch,
body[data-ci-cx-surface="auth"] .cicx-auth-trust-signals,
body[data-ci-cx-surface="auth"] .dv8-auth-aside-supplement,
body[data-ci-cx-surface="auth"] .dv8-brand-subtitle,
body[data-ci-cx-surface="auth"] .qs-login-command,
body[data-ci-cx-surface="auth"] .qs-login-surface__status,
body[data-ci-cx-surface="auth"] .qs-login-failure-disclosure,
body[data-ci-cx-surface="auth"] .login-workflow-progress__intro,
body[data-ci-cx-surface="auth"] .next-step-info {
    display: none !important;
}

body[data-ci-cx-surface="auth"] .dv8-login-container {
    inline-size: 100vw !important;
    block-size: 100dvh !important;
    min-block-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 30px !important;
    gap: 0 !important;
    overflow: hidden !important;
}

body[data-ci-cx-surface="auth"] .dv8-auth-shell {
    inline-size: 100% !important;
    block-size: 100% !important;
    min-block-size: 0 !important;
    align-self: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(420px, 1.02fr) minmax(500px, 1fr) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--surface-elevated) !important;
    box-shadow: none !important;
}

body[data-ci-cx-surface="auth"] .dv8-auth-shell--minimal {
    grid-template-columns: 1fr !important;
}

body[data-ci-cx-surface="auth"] .dv8-auth-aside {
    position: relative;
    isolation: isolate;
    min-inline-size: 0;
    min-block-size: 0;
    padding: clamp(36px, 5vw, 56px) clamp(36px, 5vw, 64px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    color: #f6f9fc;
    background-color: var(--quantum-navy);
    background-image: var(--cicx-auth-hero);
    background-position: center;
    background-size: cover;
}

body[data-ci-cx-surface="auth"] .dv8-auth-aside::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgb(5 16 31 / 80%);
}

body[data-ci-cx-surface="auth"] .cicx-auth-brand {
    display: inline-flex;
    inline-size: fit-content;
    max-inline-size: 240px;
    align-items: center;
    color: #fff;
}

body[data-ci-cx-surface="auth"] .cicx-auth-brand img,
body[data-ci-cx-surface="auth"] .dv8-auth-aside .auth-login-logo,
body[data-ci-cx-surface="auth"] .dv8-auth-aside .login-logo {
    display: block;
    inline-size: min(240px, 100%);
    block-size: 48px;
    object-fit: contain;
    object-position: left center;
    filter: none;
}

body[data-ci-cx-surface="auth"] .cicx-auth-brand-context {
    margin: 10px 0 0;
    color: #91a2b6;
    font: 600 0.64rem/1.3 var(--font-mono);
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .dv8-auth-eyebrow {
    margin: auto 0 10px;
    color: var(--quantum-cyan);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .dv8-auth-aside-title {
    max-inline-size: 15ch;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.3rem);
    font-weight: 700;
    line-height: 1.04;
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .cicx-auth-promise {
    max-inline-size: 46ch;
    margin: 16px 0 0;
    color: #c5d0dd;
    font-size: 0.96rem;
    line-height: 1.55;
}

body[data-ci-cx-surface="auth"] .login-workflow-progress {
    inline-size: 100% !important;
    margin: 0 0 26px !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-ci-cx-surface="auth"] .dv8-login-card .login-workflow-progress {
    display: block !important;
}

body[data-ci-cx-surface="auth"] .progress-container {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body[data-ci-cx-surface="auth"] .progress-step {
    position: relative;
    min-inline-size: 0;
    min-block-size: 0 !important;
    inline-size: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 32px auto !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 7px !important;
    transform: none !important;
    color: var(--text-tertiary);
}

body[data-ci-cx-surface="auth"] .step-indicator {
    position: relative;
    z-index: 2;
    inline-size: 32px;
    block-size: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-tertiary);
    background: var(--surface-elevated);
    font-size: 0.78rem;
}

body[data-ci-cx-surface="auth"] .progress-step.current .step-indicator {
    border-color: var(--dv8-red);
    color: #fff;
    background: var(--dv8-red);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

body[data-ci-cx-surface="auth"] .progress-step.completed .step-indicator {
    border-color: var(--success);
    color: #fff;
    background: var(--success);
}

body[data-ci-cx-surface="auth"] .step-label {
    max-inline-size: 12ch;
    color: inherit !important;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .progress-step.current .step-label,
body[data-ci-cx-surface="auth"] .progress-step.completed .step-label {
    color: var(--text) !important;
}

body[data-ci-cx-surface="auth"] .step-connector {
    position: absolute;
    z-index: 1;
    inset-block-start: 15px;
    inset-inline-start: 50%;
    inline-size: 100%;
    block-size: 2px;
    background: var(--border);
}

body[data-ci-cx-surface="auth"] .step-connector.completed {
    background: var(--success);
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-button {
    width: fit-content;
    min-height: 36px;
    margin: 22px 0 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    color: #d3dce7;
    background: transparent;
    font: 600 0.78rem/1 var(--font-body);
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-button:hover {
    color: #fff;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog {
    inline-size: min(440px, calc(100vw - 32px));
    max-inline-size: 440px;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--cicx-radius);
    color: var(--text);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-elevated);
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog::backdrop {
    background: rgb(5 14 28 / 68%);
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__header {
    min-block-size: 58px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-block-end: 1px solid var(--border);
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__header h2 {
    margin: 0;
    font: 700 1rem/1.2 var(--font-display);
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__close {
    inline-size: 34px;
    block-size: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    background: var(--surface-bg);
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__body {
    padding: 18px;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__body ul {
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__body li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 0.82rem;
}

body[data-ci-cx-surface="auth"] .cicx-auth-help-dialog__body li i {
    inline-size: 18px;
    color: var(--dv8-red);
    text-align: center;
}

body[data-ci-cx-surface="auth"] .dv8-login-card {
    min-inline-size: 0;
    min-block-size: 0;
    display: block !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--page-bg) !important;
}

body[data-ci-cx-surface="auth"] .dv8-login-card__body {
    inline-size: 100% !important;
    block-size: 100% !important;
    min-block-size: 0 !important;
    margin: 0 !important;
    padding: 26px 34px 24px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

body[data-ci-cx-surface="auth"] .cicx-auth-toolbar {
    min-inline-size: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body[data-ci-cx-surface="auth"] .cicx-auth-toolbar__label {
    color: var(--text-tertiary);
    font: 600 0.68rem/1.2 var(--font-mono);
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .cicx-theme-segmented {
    align-self: center;
    min-block-size: 34px;
    margin: 0;
    padding: 3px;
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-subtle);
}

body[data-ci-cx-surface="auth"] .cicx-theme-segmented button {
    min-block-size: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: var(--text-secondary);
    background: transparent;
    font: 600 0.7rem/1 var(--font-body);
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .cicx-theme-segmented button[aria-pressed="true"] {
    color: #fff;
    background: var(--dv8-red);
}

body[data-ci-cx-surface="auth"] .cicx-auth-flow {
    inline-size: min(100%, 452px);
    min-inline-size: 0;
    min-block-size: 0;
    margin: auto;
    align-self: center;
}

body[data-ci-cx-surface="auth"] .dv8-login-card--minimal .cicx-auth-flow {
    inline-size: min(100%, 720px);
}

body[data-ci-cx-surface="auth"] .cicx-auth-stage {
    min-inline-size: 0;
    min-block-size: 0;
}

body[data-ci-cx-surface="auth"] .dv8-login-card__body--top .cicx-auth-flow {
    align-self: start;
    margin-block-start: clamp(18px, 5vh, 48px);
}

body[data-ci-cx-surface="auth"] .qs-auth-page,
body[data-ci-cx-surface="auth"] .qs-auth-page--login,
body[data-ci-cx-surface="auth"] .qs-login-workspace,
body[data-ci-cx-surface="auth"] .qs-login-panel,
body[data-ci-cx-surface="auth"] .qs-login-surface {
    min-inline-size: 0;
    min-block-size: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-ci-cx-surface="auth"] .qs-login-surface__head {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-kicker {
    margin: 0 0 5px;
    color: var(--dv8-red);
    font: 700 0.68rem/1.2 var(--font-mono);
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .qs-login-surface__title,
body[data-ci-cx-surface="auth"] .qs-auth-heading {
    margin: 0;
    color: var(--text);
    font: 700 clamp(1.45rem, 3vh, 2rem)/1.1 var(--font-display);
}

body[data-ci-cx-surface="auth"] .qs-login-surface__text {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

body[data-ci-cx-surface="auth"] .qs-auth-form,
body[data-ci-cx-surface="auth"] .login-form {
    display: grid;
    gap: 10px;
    margin: 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-field,
body[data-ci-cx-surface="auth"] .field {
    display: grid;
    gap: 5px;
    margin: 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-field > label,
body[data-ci-cx-surface="auth"] .field > span:first-child,
body[data-ci-cx-surface="auth"] .field-label {
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
}

body[data-ci-cx-surface="auth"] .qs-auth-input-shell,
body[data-ci-cx-surface="auth"] .password-field {
    position: relative;
    min-block-size: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--page-bg);
}

body[data-ci-cx-surface="auth"] .qs-auth-input-shell:focus-within,
body[data-ci-cx-surface="auth"] .password-field:focus-within {
    border-color: var(--dv8-red);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

body[data-ci-cx-surface="auth"] .qs-auth-input-shell__icon {
    inline-size: 38px;
    color: var(--text-tertiary);
    text-align: center;
}

body[data-ci-cx-surface="auth"] .qs-auth-input-shell input,
body[data-ci-cx-surface="auth"] .qs-auth-input-shell select {
    min-inline-size: 0;
    min-block-size: 40px;
    padding: 0 38px 0 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: 500 0.82rem/1 var(--font-body);
}

body[data-ci-cx-surface="auth"] .login-form input,
body[data-ci-cx-surface="auth"] .login-form select,
body[data-ci-cx-surface="auth"] .field > input,
body[data-ci-cx-surface="auth"] .field > select {
    inline-size: 100%;
    min-block-size: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    outline: 0;
    color: var(--text);
    background: var(--page-bg);
    font: 500 0.82rem/1 var(--font-body);
}

body[data-ci-cx-surface="auth"] .login-form input:focus,
body[data-ci-cx-surface="auth"] .login-form select:focus,
body[data-ci-cx-surface="auth"] .field > input:focus,
body[data-ci-cx-surface="auth"] .field > select:focus {
    border-color: var(--dv8-red);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

body[data-ci-cx-surface="auth"] .qs-auth-password-toggle {
    position: absolute;
    inset-inline-end: 4px;
    inline-size: 34px;
    block-size: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: var(--text-tertiary);
    background: transparent;
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .field-error,
body[data-ci-cx-surface="auth"] .validation-message {
    min-block-size: 0;
    color: var(--danger);
    font-size: 0.68rem;
    line-height: 1.2;
}

body[data-ci-cx-surface="auth"] .field-error:empty,
body[data-ci-cx-surface="auth"] .validation-message:empty {
    display: none;
}

body[data-ci-cx-surface="auth"] .qs-login-inline-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 1px 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-check,
body[data-ci-cx-surface="auth"] .remember-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.3;
}

body[data-ci-cx-surface="auth"] .qs-auth-check input,
body[data-ci-cx-surface="auth"] .remember-field input {
    inline-size: 15px;
    block-size: 15px;
    margin: 0;
    accent-color: var(--dv8-red);
}

body[data-ci-cx-surface="auth"] .qs-auth-link,
body[data-ci-cx-surface="auth"] .login-link {
    color: var(--dv8-red);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

body[data-ci-cx-surface="auth"] .qs-login-submit-zone {
    display: grid;
    gap: 6px;
    margin: 1px 0 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-primary-button,
body[data-ci-cx-surface="auth"] .submit-button {
    inline-size: 100%;
    min-block-size: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--dv8-red);
    font: 700 0.82rem/1 var(--font-body);
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .qs-auth-primary-button:hover,
body[data-ci-cx-surface="auth"] .submit-button:hover {
    background: var(--dv8-red-hover);
}

body[data-ci-cx-surface="auth"] .qs-auth-caption,
body[data-ci-cx-surface="auth"] .qs-login-submit-caption {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.65rem;
    line-height: 1.35;
    text-align: center;
}

body[data-ci-cx-surface="auth"] .qs-login-alt-access {
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-block-start: 1px solid var(--border);
}

body[data-ci-cx-surface="auth"] .qs-login-alt-access__header {
    margin: 0 0 7px;
}

body[data-ci-cx-surface="auth"] .qs-login-alt-access__header .qs-login-surface__title {
    font-size: 0.72rem;
    line-height: 1.2;
    text-transform: uppercase;
}

body[data-ci-cx-surface="auth"] .qs-auth-secondary-grid,
body[data-ci-cx-surface="auth"] .qs-login-alt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card,
body[data-ci-cx-surface="auth"] .dv8-btn-secondary.qs-auth-alt-card {
    min-inline-size: 0;
    min-block-size: 40px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    background: var(--surface-bg);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card:hover {
    border-color: var(--dv8-red);
    color: var(--dv8-red);
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card__icon {
    inline-size: 24px;
    block-size: 24px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--dv8-red);
    background: color-mix(in srgb, var(--dv8-red) 10%, transparent);
    font-size: 0.72rem;
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card__body {
    min-inline-size: 0;
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card__title {
    display: block;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-ci-cx-surface="auth"] .qs-auth-alt-card__arrow {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

body[data-ci-cx-surface="auth"] .qs-auth-alert,
body[data-ci-cx-surface="auth"] .status-message:not(:empty) {
    margin: 0 0 8px;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--dv8-red);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface-bg);
    font-size: 0.72rem;
    line-height: 1.35;
}

body[data-ci-cx-surface="auth"] .qs-auth-alert__title {
    display: block;
    font-weight: 700;
}

body[data-ci-cx-surface="auth"] .qs-auth-alert__copy,
body[data-ci-cx-surface="auth"] .qs-auth-alert__meta {
    margin: 2px 0 0;
}

body[data-ci-cx-surface="auth"] .dv8-auth-bottom-notice {
    block-size: 30px;
    min-block-size: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-block-start: 1px solid var(--border);
    background: var(--page-bg);
}

body[data-ci-cx-surface="auth"] .dv8-legal-notice {
    display: none;
}

body[data-ci-cx-surface="auth"] .dv8-auth-standard-footer,
body[data-ci-cx-surface="auth"] .frame-footer {
    min-block-size: 24px;
    margin: 0;
    padding: 0 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    border: 0;
    color: var(--text-tertiary);
    background: transparent;
    font-size: 0.64rem;
    line-height: 1.2;
}

body[data-ci-cx-surface="auth"] .dv8-auth-standard-footer p,
body[data-ci-cx-surface="auth"] .frame-footer p {
    margin: 0;
}

/* React portal compatibility uses the same auth shell without changing its form state. */

body[data-ci-cx-surface="auth"] .signin-shell.dv8-login-container .signin-stage,
body[data-ci-cx-surface="auth"] .signin-shell.dv8-login-container .signin-panel,
body[data-ci-cx-surface="auth"] .signin-shell.dv8-login-container .signin-layout {
    display: contents;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-content-column,
body[data-ci-cx-surface="auth"] .signin-shell .signin-guidance-stack,
body[data-ci-cx-surface="auth"] .signin-shell .signin-footer-note,
body[data-ci-cx-surface="auth"] .signin-shell .development-quick-access {
    display: none !important;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form-column,
body[data-ci-cx-surface="auth"] .signin-shell .signin-form-frame {
    min-inline-size: 0;
    display: contents;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form-intro {
    margin: 0 0 12px;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form-intro h2 {
    margin: 0;
    color: var(--text);
    font: 700 clamp(1.45rem, 3vh, 2rem)/1.1 var(--font-display);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form-intro p {
    margin: 7px 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form {
    display: grid;
    gap: 10px;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-form-core,
body[data-ci-cx-surface="auth"] .signin-shell .signin-secondary-stack {
    display: grid;
    gap: 10px;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-field {
    display: grid;
    gap: 5px;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-field-label {
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-shell {
    position: relative;
    min-block-size: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--page-bg);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-shell:focus-within {
    border-color: var(--dv8-red);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-icon {
    inline-size: 38px;
    display: grid;
    place-items: center;
    color: var(--text-tertiary);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-icon svg,
body[data-ci-cx-surface="auth"] .signin-shell .signin-input-toggle svg,
body[data-ci-cx-surface="auth"] .signin-shell .signin-submit svg {
    inline-size: 17px;
    block-size: 17px;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-shell input {
    min-inline-size: 0;
    min-block-size: 40px;
    padding: 0 40px 0 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: 500 0.82rem/1 var(--font-body);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-input-toggle {
    position: absolute;
    inset-inline-end: 4px;
    inline-size: 34px;
    block-size: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--text-tertiary);
    background: transparent;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-inline-tools {
    display: flex;
    justify-content: space-between;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-check input {
    inline-size: 15px;
    block-size: 15px;
    accent-color: var(--dv8-red);
}

body[data-ci-cx-surface="auth"] .signin-shell .primary-button {
    inline-size: 100%;
    min-block-size: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--dv8-red);
    font: 700 0.82rem/1 var(--font-body);
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-link-button {
    min-block-size: 30px;
    border: 0;
    color: var(--dv8-red);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
}

body[data-ci-cx-surface="auth"] .signin-shell .signin-field-error,
body[data-ci-cx-surface="auth"] .signin-shell .signin-auth-error,
body[data-ci-cx-surface="auth"] .signin-shell .signin-status-note {
    margin: 0;
    color: var(--danger);
    font-size: 0.68rem;
}

/* Dashboard surface */

body[data-ci-cx-surface="dashboard"],
[data-ci-cx-surface="dashboard"] {
    color: var(--text);
    background: var(--page-bg);
}

body[data-ci-cx-surface="dashboard"] .app-shell,
body[data-ci-cx-surface="dashboard"] .app-shell-frame,
body[data-ci-cx-surface="dashboard"] .portal-shell,
body[data-ci-cx-surface="dashboard"] .qs-app {
    min-block-size: 100dvh;
    background: var(--page-bg);
}

body[data-ci-cx-surface="dashboard"] .side-nav,
body[data-ci-cx-surface="dashboard"] .app-shell-side-nav,
body[data-ci-cx-surface="dashboard"] .portal-sidebar,
body[data-ci-cx-surface="dashboard"] .qs-sidebar {
    color: #f4f7fa;
    background: var(--quantum-navy);
    border-inline-end: 1px solid rgb(255 255 255 / 10%);
}

body[data-ci-cx-surface="dashboard"] .top-bar,
body[data-ci-cx-surface="dashboard"] .app-shell-top-bar,
body[data-ci-cx-surface="dashboard"] .portal-topbar,
body[data-ci-cx-surface="dashboard"] .qs-topbar {
    border-block-end: 1px solid var(--border);
    background: var(--surface-elevated);
    box-shadow: none;
}

body[data-ci-cx-surface="dashboard"] .dashboard-container,
body[data-ci-cx-surface="dashboard"] .dashboard-command,
body[data-ci-cx-surface="dashboard"] .ops-page,
body[data-ci-cx-surface="dashboard"] .portal-main {
    color: var(--text);
    background: var(--page-bg);
}

body[data-ci-cx-surface="dashboard"] .metric-card,
body[data-ci-cx-surface="dashboard"] .dashboard-card,
body[data-ci-cx-surface="dashboard"] .dashboard-panel,
body[data-ci-cx-surface="dashboard"] .ops-card,
body[data-ci-cx-surface="dashboard"] .portal-card {
    border: 1px solid var(--border);
    border-radius: var(--cicx-radius);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-card);
}

body[data-ci-cx-surface="dashboard"] .metric-card,
body[data-ci-cx-surface="dashboard"] .ops-stat,
body[data-ci-cx-surface="dashboard"] .dashboard-stat-card {
    border-block-start: 3px solid var(--dv8-red);
}

body[data-ci-cx-surface="dashboard"] button,
body[data-ci-cx-surface="dashboard"] .btn,
body[data-ci-cx-surface="dashboard"] a[role="button"] {
    border-radius: 7px;
}

body[data-ci-cx-surface="dashboard"] .cicx-theme-segmented {
    min-block-size: 34px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-subtle);
}

body[data-ci-cx-surface="dashboard"] .cicx-theme-segmented button {
    min-block-size: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    color: var(--text-secondary);
    background: transparent;
    font: 600 0.68rem/1 var(--font-body);
    cursor: pointer;
}

body[data-ci-cx-surface="dashboard"] .cicx-theme-segmented button[aria-pressed="true"] {
    color: #fff;
    background: var(--dv8-red);
}

@media (max-height: 760px) and (min-width: 761px) {
    body[data-ci-cx-surface="auth"] .dv8-login-container {
        padding-block-start: 10px;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside {
        padding: 26px 30px;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-eyebrow {
        margin-block-start: 20px;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-promise {
        margin-block-start: 10px;
        font-size: 0.78rem;
    }

    body[data-ci-cx-surface="auth"] .dv8-login-card__body {
        padding: 18px 34px;
    }

    body[data-ci-cx-surface="auth"] .cicx-theme-segmented {
        margin-block-end: 10px;
    }

    body[data-ci-cx-surface="auth"] .qs-login-surface__text,
    body[data-ci-cx-surface="auth"] .qs-login-submit-caption {
        display: none;
    }

    body[data-ci-cx-surface="auth"] .qs-auth-form {
        gap: 7px;
    }
}

@media (max-height: 650px) and (min-width: 761px) {
    body[data-ci-cx-surface="auth"] .cicx-auth-promise,
    body[data-ci-cx-surface="auth"] .cicx-auth-help-button,
    body[data-ci-cx-surface="auth"] .qs-login-alt-access {
        display: none;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-eyebrow {
        margin-block-start: 12px;
    }
}

@media (max-width: 760px) {
    body[data-ci-cx-surface="auth"] .dv8-login-container {
        inline-size: 100vw !important;
        grid-template-rows: minmax(0, 1fr) 44px !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-shell {
        block-size: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 110px minmax(0, 1fr) !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside {
        padding: 12px 18px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 44px auto !important;
        align-items: center !important;
        gap: 4px !important;
        background-position: center 34%;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: start !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-brand img {
        inline-size: 142px !important;
        block-size: 40px !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-brand-context,
    body[data-ci-cx-surface="auth"] .dv8-auth-eyebrow {
        display: none !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside-title {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: end !important;
        margin: 0 !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-promise,
    body[data-ci-cx-surface="auth"] .cicx-auth-help-button {
        display: none;
    }

    body[data-ci-cx-surface="auth"] .login-workflow-progress {
        inline-size: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 2px !important;
    }

    body[data-ci-cx-surface="auth"] .progress-container {
        inline-size: 100% !important;
        block-size: 42px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    body[data-ci-cx-surface="auth"] .step-label {
        display: block;
        max-inline-size: 10ch;
        font-size: 0.58rem;
    }

    body[data-ci-cx-surface="auth"] .progress-step {
        min-block-size: 0 !important;
        block-size: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 28px auto !important;
        gap: 5px !important;
    }

    body[data-ci-cx-surface="auth"] .step-indicator {
        inline-size: 28px;
        block-size: 28px;
    }

    body[data-ci-cx-surface="auth"] .step-connector {
        inset-block-start: 13px;
        inset-inline-start: 50%;
        inline-size: 100%;
    }

    body[data-ci-cx-surface="auth"] .dv8-login-card__body {
        inline-size: 100% !important;
        padding: 12px 18px !important;
        overflow: hidden !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-toolbar {
        min-block-size: 32px;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-toolbar__label {
        font-size: 0.58rem;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-flow {
        inline-size: min(100%, 452px);
    }

    body[data-ci-cx-surface="auth"] .cicx-theme-segmented {
        margin: 0;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-bottom-notice {
        block-size: 44px !important;
        min-block-size: 44px !important;
        display: flex !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-standard-footer,
    body[data-ci-cx-surface="auth"] .frame-footer {
        min-block-size: 42px !important;
        padding: 2px 10px !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
        font-size: 0.58rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }
}

@media (max-width: 460px) {
    body[data-ci-cx-surface="auth"] .dv8-auth-shell {
        grid-template-rows: 104px minmax(0, 1fr) !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside {
        padding: 10px 14px !important;
        grid-template-columns: 1fr !important;
    }

    body[data-ci-cx-surface="auth"] .progress-container {
        inline-size: 100% !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-auth-brand img {
        inline-size: 126px !important;
        block-size: 36px !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-eyebrow {
        display: none;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside-title {
        align-self: end !important;
        font-size: 0.92rem !important;
    }

    body[data-ci-cx-surface="auth"] .dv8-login-card__body {
        padding: 10px 16px 12px !important;
    }

    body[data-ci-cx-surface="auth"] .cicx-theme-segmented {
        min-block-size: 30px;
        margin: 0;
    }

    body[data-ci-cx-surface="auth"] .cicx-theme-segmented button {
        min-block-size: 24px;
        padding-inline: 7px;
        font-size: 0.64rem;
    }

    body[data-ci-cx-surface="auth"] .qs-login-surface__text,
    body[data-ci-cx-surface="auth"] .qs-login-submit-caption {
        display: none;
    }

    body[data-ci-cx-surface="auth"] .qs-login-surface__head {
        margin-block-end: 7px;
    }

    body[data-ci-cx-surface="auth"] .qs-auth-form {
        gap: 6px;
    }
}

@media (max-height: 620px) {
    body[data-ci-cx-surface="auth"] .qs-login-surface__text,
    body[data-ci-cx-surface="auth"] .qs-login-submit-caption,
    body[data-ci-cx-surface="auth"] .qs-login-alt-access,
    body[data-ci-cx-surface="auth"] .cicx-auth-help-button {
        display: none !important;
    }
}

/* Final authority over legacy CI/CX rules that use highly specific !important declarations. */

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container {
    inline-size: 100vw !important;
    block-size: 100dvh !important;
    max-inline-size: none !important;
    max-block-size: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 30px !important;
    align-items: stretch !important;
    align-content: stretch !important;
    justify-content: normal !important;
    gap: 0 !important;
    overflow: hidden !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell:not(.dv8-auth-shell--minimal) {
    inline-size: 100% !important;
    max-inline-size: none !important;
    min-inline-size: 0 !important;
    block-size: 100% !important;
    min-block-size: 0 !important;
    max-block-size: 100% !important;
    margin: 0 !important;
    align-self: stretch !important;
    display: grid !important;
    grid-template-columns: minmax(420px, 1.02fr) minmax(500px, 1fr) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--surface-elevated) !important;
    box-shadow: none !important;
    scrollbar-gutter: auto !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .progress-step .step-label {
    color: var(--text-tertiary) !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .progress-step.current .step-label,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .progress-step.completed .step-label {
    color: var(--text) !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"]::before,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"]::after {
    content: none !important;
    display: none !important;
}

html[data-ci-cx-version="1.1.0"]::before,
html[data-ci-cx-version="1.1.0"]::after {
    content: none !important;
    display: none !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-utility-cluster {
    display: none !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-auth-aside {
    color: #f6f9fc !important;
    background-color: #081426 !important;
    background-image: url("/images/ci-cx/sovereign-auth-hero.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-auth-aside::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(5, 16, 31, 0.8) !important;
    pointer-events: none !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-auth-aside > * {
    position: relative !important;
    z-index: 1 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-shell .dv8-auth-aside .dv8-auth-aside-title {
    color: #fff !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-shell .dv8-auth-aside .cicx-auth-promise,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-shell .dv8-auth-aside .cicx-auth-help-button {
    color: #a6b6ce !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--page-bg) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    scrollbar-gutter: auto !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card__body {
    inline-size: 100% !important;
    block-size: 100% !important;
    min-block-size: 0 !important;
    margin: 0 !important;
    padding: 26px 34px 24px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-content: normal !important;
    overflow: hidden !important;
    scrollbar-gutter: auto !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card__body > .qs-auth-page--login {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    gap: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-workspace,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-panel,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-surface {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-surface__head {
    margin: 0 0 7px !important;
    padding: 0 !important;
    display: block !important;
    gap: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-surface__copy {
    display: block !important;
    gap: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-form {
    display: grid !important;
    gap: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-field + .qs-auth-field {
    margin-block-start: 10px !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-input-shell {
    block-size: 46px !important;
    min-block-size: 46px !important;
    max-block-size: 46px !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-input-shell input,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-input-shell select {
    block-size: 44px !important;
    min-block-size: 44px !important;
    max-block-size: 44px !important;
    font-family: var(--font-body) !important;
    font-size: 0.82rem !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-field > label {
    font-family: Inter, "Segoe UI", sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-inline-tools {
    block-size: 18px !important;
    min-block-size: 18px !important;
    max-block-size: 18px !important;
    margin: 10px 0 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-check {
    white-space: nowrap !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-login-submit-zone {
    block-size: auto !important;
    min-block-size: 0 !important;
    max-block-size: none !important;
    margin: 10px 0 0 !important;
    gap: 6px !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-auth-page--login .qs-auth-primary-button {
    block-size: 46px !important;
    min-block-size: 46px !important;
    max-block-size: 46px !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .cicx-theme-segmented {
    width: 186px !important;
    inline-size: 186px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .cicx-theme-segmented button {
    width: 100% !important;
    inline-size: 100% !important;
    padding-inline: 0 !important;
    font-family: Inter, "Segoe UI", sans-serif !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .qs-login-alt-access {
    margin: 10px 0 0 !important;
    display: grid !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    block-size: 30px !important;
    min-block-size: 30px !important;
    max-block-size: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    overflow: hidden !important;
}

html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice .dv8-auth-standard-footer,
html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice .frame-footer {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

@media (max-width: 760px) {
    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container {
        inline-size: 100vw !important;
        grid-template-rows: minmax(0, 1fr) 44px !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell:not(.dv8-auth-shell--minimal) {
        block-size: 100% !important;
        max-block-size: 100% !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 110px minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card {
        padding: 0 !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card__body {
        inline-size: 100% !important;
        padding: 12px 18px !important;
        justify-content: stretch !important;
        overflow: hidden !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .cicx-theme-segmented {
        width: 158px !important;
        inline-size: 158px !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice {
        block-size: 44px !important;
        min-block-size: 44px !important;
        max-block-size: 44px !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice .dv8-auth-standard-footer,
    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-login-container .dv8-auth-bottom-notice .frame-footer {
        block-size: 44px !important;
        min-block-size: 44px !important;
        max-block-size: 44px !important;
        margin: 0 !important;
        padding: 2px 10px !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
    }
}

@media (max-width: 460px) {
    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell:not(.dv8-auth-shell--minimal) {
        grid-template-rows: 104px minmax(0, 1fr) !important;
    }

    html[data-ci-cx-version="1.1.0"] body[data-ci-cx-surface="auth"] .dv8-auth-shell .dv8-login-card__body {
        padding: 10px 16px 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ci-cx-version="1.1.0"] *,
    html[data-ci-cx-version="1.1.0"] *::before,
    html[data-ci-cx-version="1.1.0"] *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    body[data-ci-cx-surface="auth"] .dv8-auth-aside::before {
        background: Canvas;
    }

    body[data-ci-cx-surface="auth"] .dv8-auth-aside {
        color: CanvasText;
    }
}
