/*
 * Union Energie design system
 * Loaded after the legacy stylesheet so shared tokens and components remain
 * the single visual source of truth for current and future back-office pages.
 */

:root {
    --ue-navy-950: #052f5c;
    --ue-navy-900: #073e78;
    --ue-blue-800: #0754a6;
    --ue-blue-700: #0b63b8;
    --ue-blue-600: #167bc5;
    --ue-blue-500: #238fd2;
    --ue-blue-100: #dceefa;
    --ue-blue-50: #f2f8fc;
    --ue-orange-600: #ea481b;
    --ue-orange-500: #f15a24;
    --ue-orange-100: #ffdfd2;
    --ue-action-orange: #c43e13;
    --ue-action-orange-hover: #ac320e;
    --ue-ink-900: #0b315c;
    --ue-ink-700: #365b7b;
    --ue-ink-500: #6c859a;
    --ue-line: #d7e4ee;
    --ue-surface: #ffffff;
    --ue-canvas: #f3f8fc;
    --ue-success: #238543;
    --ue-warning: #bf6c00;
    --ue-danger: #b83737;
    --ue-radius-sm: 8px;
    --ue-radius-md: 12px;
    --ue-radius-lg: 16px;
    --ue-shadow-sm: 0 4px 14px rgba(5, 47, 92, 0.07);
    --ue-shadow-md: 0 12px 30px rgba(5, 47, 92, 0.1);
    --ue-focus: 0 0 0 3px rgba(22, 123, 197, 0.2);
    --ue-sidebar-width: 284px;
    --app-topbar-height: 76px;
    --ue-font-caption: 12px;
    --ue-font-supporting: 13px;
    --ue-font-control: 14px;
    --ue-font-body-compact: 15px;
    --ue-font-body: 16px;
}

body {
    color: var(--ue-ink-900);
    background: var(--ue-canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--ue-font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Public authentication and onboarding */

body.auth-body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--ue-canvas);
}

.auth-layout,
.auth-shell {
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(370px, 41%) minmax(0, 1fr);
}

.auth-brand-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    background:
        radial-gradient(circle at 10% 92%, rgba(39, 151, 218, 0.45), transparent 34%),
        linear-gradient(145deg, var(--ue-navy-950) 0%, var(--ue-blue-800) 62%, var(--ue-blue-600) 100%);
    color: #ffffff;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-brand-panel::before {
    right: -180px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    box-shadow:
        0 0 0 54px rgba(255, 255, 255, 0.025),
        0 0 0 108px rgba(255, 255, 255, 0.018);
}

.auth-brand-panel::after {
    top: 24%;
    right: -90px;
    width: 230px;
    height: 230px;
}

.auth-brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.auth-brand-glow-one {
    top: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(72, 180, 232, 0.15);
}

.auth-brand-glow-two {
    right: 12%;
    bottom: 18%;
    width: 150px;
    height: 150px;
    background: rgba(241, 90, 36, 0.18);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 520px);
    height: 100%;
    flex-direction: column;
}

.auth-brand-logo {
    display: grid;
    width: 142px;
    min-height: 112px;
    place-items: center;
}

.auth-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-product-mark {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
    color: #ffffff;
}

.auth-product-mark span {
    color: #b9e4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-product-mark strong {
    font-size: 25px;
    letter-spacing: -0.04em;
}

.auth-product-mark::after {
    width: 46px;
    height: 4px;
    margin-left: 3px;
    border-radius: 999px;
    background: var(--ue-orange-500);
    content: "";
}

.auth-brand-copy {
    margin: auto 0 0;
}

.auth-brand-eyebrow {
    margin: 0 0 14px;
    color: #b9e4ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-brand-panel h2 {
    max-width: 520px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 3.4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.auth-brand-copy > p:last-child {
    max-width: 480px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.65;
}

.auth-benefit-list {
    display: grid;
    gap: 13px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 650;
}

.auth-benefit-list li > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.auth-benefit-list svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.auth-workspace {
    display: grid;
    min-width: 0;
    min-height: 100vh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 143, 210, 0.08), transparent 31%),
        var(--ue-canvas);
}

.auth-toolbar {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: flex-end;
    padding: 22px clamp(24px, 4vw, 56px);
}

.auth-toolbar .language-control {
    min-width: 158px;
    min-height: 42px;
    border: 1px solid #c8ddea;
    box-shadow: var(--ue-shadow-sm);
}

.auth-toolbar .language-control::after {
    border-color: var(--ue-blue-700);
}

.auth-toolbar .language-select select {
    min-width: 158px;
    min-height: 40px;
    color: var(--ue-navy-900);
    font-size: 14px;
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--ue-navy-900);
    text-decoration: none;
}

.auth-mobile-brand img {
    width: 70px;
    height: 54px;
    object-fit: contain;
}

.auth-mobile-brand span {
    display: grid;
}

.auth-mobile-brand small {
    color: var(--ue-blue-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.auth-mobile-brand strong {
    font-size: 16px;
}

.auth-main {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 24px clamp(24px, 5vw, 72px) 42px;
}

.auth-card {
    width: min(100%, 560px);
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(178, 204, 222, 0.72);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 65px rgba(5, 47, 92, 0.12);
}

.auth-card-wide {
    width: min(100%, 880px);
}

.auth-card-section {
    display: grid;
    gap: 25px;
}

.auth-card-header {
    display: grid;
    gap: 10px;
}

.auth-card-header-centered {
    justify-items: center;
    text-align: center;
}

.auth-card-eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    color: var(--ue-orange-600);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-card-header h1,
.public-state-card h1 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-card-header p,
.public-state-card > p {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 16px;
    line-height: 1.62;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.auth-field {
    margin: 0;
}

.auth-field label {
    margin: 0 0 8px;
    color: var(--ue-ink-900);
    font-size: 14px;
    font-weight: 750;
}

.auth-field input,
.auth-field select,
.auth-phone-grid input,
.auth-phone-grid select {
    min-height: 52px;
    border: 1px solid #b9cfde;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ue-ink-900);
    font-size: 16px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-field input:hover,
.auth-field select:hover,
.auth-phone-grid input:hover,
.auth-phone-grid select:hover {
    border-color: #88b4d2;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-phone-grid input:focus,
.auth-phone-grid select:focus {
    border-color: var(--ue-blue-600);
    outline: 0;
    box-shadow: var(--ue-focus);
}

.auth-field .password-input-wrapper input {
    padding-right: 52px;
}

.auth-field .password-toggle {
    top: 2px;
    right: 2px;
    width: 48px;
    min-height: 48px;
    border-radius: 0 10px 10px 0;
}

.auth-primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ue-blue-800), var(--ue-blue-600));
    box-shadow: 0 12px 24px rgba(7, 84, 166, 0.2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible {
    background: linear-gradient(135deg, var(--ue-blue-700), var(--ue-blue-500));
    box-shadow: 0 16px 28px rgba(7, 84, 166, 0.24);
    color: #ffffff;
    filter: saturate(1.06);
    transform: translateY(-1px);
}

.auth-primary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}

.auth-secondary-actions {
    display: flex;
    justify-content: center;
    font-size: 14px;
    font-weight: 750;
}

.auth-secondary-actions a,
.auth-text-button {
    color: var(--ue-blue-700);
    text-underline-offset: 4px;
}

.auth-text-button {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.auth-text-button:hover,
.auth-text-button:focus {
    background: transparent;
    color: var(--ue-orange-600);
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #d7e7f1;
    border-radius: 12px;
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.auth-security-note svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: var(--ue-blue-700);
}

.auth-field-help {
    margin: -7px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.auth-card .alert {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-card .alert-success {
    border-color: #b8dec5;
    background: #eff9f2;
    color: #176b34;
}

.auth-card .alert-error {
    border-color: #efc5c5;
    background: #fff3f3;
    color: #9d2f2f;
}

.auth-state-icon,
.public-state-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto -7px;
    place-items: center;
    border: 1px solid #c9e2f2;
    border-radius: 20px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.auth-state-icon.is-success {
    border-color: #b9dfc6;
    background: #eff9f2;
    color: var(--ue-success);
}

.auth-state-icon svg,
.public-state-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
}

.auth-verification-section .otp-boxes {
    gap: 10px;
    margin: 3px 0 5px;
}

.auth-verification-section .otp-box {
    width: 60px;
    height: 66px;
    min-height: 66px;
    border: 1px solid #aac6d9;
    border-radius: 12px;
    color: var(--ue-navy-900);
    font-size: 30px;
    font-weight: 800;
}

.auth-verification-section .otp-box:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.auth-otp-actions {
    display: grid;
    gap: 18px;
}

.auth-otp-actions form,
.auth-resend-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.auth-otp-single-field {
    display: grid;
    justify-items: center;
}

.auth-otp-single {
    max-width: 270px;
    height: 66px;
    text-align: center;
    font-size: 30px !important;
    font-weight: 850;
    letter-spacing: 0.3em;
    padding-left: calc(0.3em + 18px) !important;
    padding-right: 18px !important;
}

.auth-result-section {
    justify-items: center;
}

.auth-sponsor-pill {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #c9e1f0;
    border-radius: 14px;
    background: var(--ue-blue-50);
}

.auth-sponsor-pill > span {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ue-blue-700);
    box-shadow: var(--ue-shadow-sm);
}

.auth-sponsor-pill svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
}

.auth-sponsor-pill div {
    display: grid;
    gap: 2px;
}

.auth-sponsor-pill small {
    color: var(--ue-ink-500);
    font-weight: 700;
}

.auth-sponsor-pill strong {
    color: var(--ue-ink-900);
}

.auth-register-form {
    gap: 24px;
}

.auth-form-section {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-form-section legend {
    width: 100%;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--ue-line);
    color: var(--ue-ink-900);
    font-size: 16px;
    font-weight: 800;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-phone-grid {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 9px;
}

.auth-phone-grid select {
    min-width: 0;
    padding-right: 8px;
}

.auth-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--ue-line);
    border-radius: 12px;
    background: #f9fbfd;
    color: var(--ue-ink-700);
    font-size: 14px;
    font-weight: 550;
}

.auth-privacy-check input {
    margin-top: 1px;
}

.auth-privacy-check a {
    font-weight: 750;
}

/* Consent and privacy onboarding */

.auth-card-onboarding {
    width: min(100%, 980px);
}

.consent-onboarding {
    gap: 28px;
}

.consent-onboarding-header {
    gap: 11px;
}

.consent-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.consent-final-step,
.consent-requirement,
.consent-choice-note {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.consent-final-step {
    padding: 8px 11px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.consent-progress {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.consent-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--ue-ink-500);
    font-size: 12px;
    text-align: center;
}

.consent-progress li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 17px;
    left: calc(50% + 23px);
    width: calc(100% - 46px);
    height: 2px;
    border-radius: 999px;
    background: var(--ue-line);
    content: "";
}

.consent-progress li.is-complete:not(:last-child)::after {
    background: var(--ue-blue-600);
}

.consent-progress li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid var(--ue-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ue-ink-500);
    font-weight: 850;
}

.consent-progress li svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
}

.consent-progress li.is-complete > span {
    border-color: var(--ue-blue-700);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.consent-progress li.is-complete strong {
    color: var(--ue-blue-700);
}

.consent-progress li.is-current > span {
    border-color: var(--ue-orange-500);
    background: var(--ue-action-orange);
    box-shadow: 0 0 0 5px rgba(241, 90, 36, 0.12);
    color: #ffffff;
}

.consent-progress li.is-current strong {
    color: var(--ue-orange-600);
}

.consent-modern-form {
    gap: 20px;
}

.consent-card.consent-modern-card,
.consent-preferences {
    gap: 20px;
    padding: 25px;
    border: 1px solid #d1e1ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(5, 47, 92, 0.055);
}

.consent-section-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.consent-section-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--ue-blue-800), var(--ue-blue-600));
    box-shadow: 0 9px 18px rgba(7, 84, 166, 0.18);
    color: #ffffff;
}

.consent-section-icon svg,
.consent-document-link svg,
.consent-privacy-reference svg,
.consent-submit-panel svg,
.privacy-information-card svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
}

.consent-section-header > div {
    display: grid;
    gap: 7px;
}

.consent-section-header h2,
.consent-preferences-header h2,
.privacy-information-card h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 20px;
    line-height: 1.25;
    text-align: left;
}

.consent-requirement {
    padding: 6px 8px;
}

.consent-requirement.is-required {
    background: #fff1eb;
    color: #c63d14;
}

.consent-requirement.is-optional {
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.consent-document-panel {
    display: grid;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #d6e6f0;
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    background: var(--ue-blue-50);
}

.consent-document-panel > div {
    display: grid;
    gap: 4px;
}

.consent-document-panel strong {
    color: var(--ue-ink-900);
    font-size: 14px;
}

.consent-document-panel p,
.consent-privacy-reference p,
.consent-preferences-header p,
.consent-modern-choice p,
.consent-submit-panel p,
.privacy-information-card p {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.55;
}

.consent-document-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid #bdd8e9;
    border-radius: 11px;
    background: #ffffff;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.consent-document-link:hover,
.consent-document-link:focus-visible {
    border-color: var(--ue-blue-600);
    color: var(--ue-blue-800);
    box-shadow: var(--ue-focus);
}

.consent-privacy-reference {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid #d8e7f1;
    border-radius: 13px;
    background: #f8fbfd;
}

.consent-privacy-reference > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    color: var(--ue-blue-700);
}

.consent-privacy-reference svg {
    width: 18px;
    height: 18px;
}

.consent-inline-link {
    font-weight: 800;
}

.consent-acceptance {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0;
    padding: 17px;
    border: 1px solid #c8dce9;
    border-radius: 14px;
    background: #fbfdfe;
    color: var(--ue-ink-900);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.consent-acceptance:hover {
    border-color: #8eb9d4;
    background: #f7fbfe;
}

.consent-acceptance input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.consent-custom-check {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 2px solid #9dbacf;
    border-radius: 7px;
    background: #ffffff;
    color: transparent;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.consent-custom-check svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
}

.consent-acceptance input:checked + .consent-custom-check {
    border-color: var(--ue-blue-700);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.consent-acceptance input:focus-visible + .consent-custom-check {
    box-shadow: var(--ue-focus);
}

.consent-acceptance-copy {
    color: var(--ue-ink-900);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.consent-preferences {
    display: grid;
    background: #f8fbfd;
}

.consent-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.consent-preferences-header > div {
    display: grid;
    gap: 7px;
}

.consent-choice-note {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid #ccdeea;
    background: #ffffff;
    color: var(--ue-ink-700);
    letter-spacing: 0;
    text-transform: none;
}

.consent-choice-list {
    display: grid;
    gap: 12px;
}

.consent-choice-group.consent-modern-choice {
    display: grid;
    min-inline-size: 0;
    align-items: center;
    gap: 5px 20px;
    margin: 0;
    padding: 18px;
    border: 1px solid #d4e3ed;
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #ffffff;
}

.consent-modern-choice legend {
    grid-column: 1;
    margin: 0;
    padding: 0;
    color: var(--ue-ink-900);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.consent-modern-choice > p {
    grid-column: 1;
}

.consent-segmented-control {
    display: grid;
    min-width: 166px;
    overflow: hidden;
    border: 1px solid #bad1e0;
    border-radius: 11px;
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #f5f9fc;
}

.consent-segmented-control label {
    display: grid;
    align-items: stretch;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.consent-segmented-control label + label {
    border-left: 1px solid #bad1e0;
}

.consent-segmented-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.consent-segmented-control span {
    display: grid;
    min-height: 43px;
    place-items: center;
    padding: 9px 13px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.consent-segmented-control label:hover span {
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.consent-segmented-control input:checked + span {
    background: var(--ue-blue-700);
    color: #ffffff;
}

.consent-segmented-control input[value="0"]:checked + span {
    background: var(--ue-ink-700);
}

.consent-segmented-control input:focus-visible + span {
    position: relative;
    z-index: 1;
    box-shadow: inset var(--ue-focus);
}

.consent-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    border: 1px solid #cbdfea;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7fbfe, #eef7fc);
}

.consent-submit-panel > p {
    display: flex;
    max-width: 470px;
    align-items: flex-start;
    gap: 10px;
}

.consent-submit-panel > p svg {
    flex: 0 0 20px;
    color: var(--ue-blue-700);
}

.consent-submit-panel .auth-primary-button {
    width: auto;
    min-width: 255px;
    flex: 0 0 auto;
}

.privacy-placeholder-section {
    gap: 24px;
}

.privacy-state-icon {
    margin-top: 7px;
}

.privacy-information-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 19px;
    border: 1px solid #d3e3ed;
    border-radius: 15px;
    background: var(--ue-blue-50);
}

.privacy-information-card > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: #ffffff;
    color: var(--ue-blue-700);
    box-shadow: var(--ue-shadow-sm);
}

.privacy-information-card > div {
    display: grid;
    gap: 6px;
}

.privacy-information-card h2 {
    font-size: 17px;
}

.auth-error-list {
    display: grid;
    gap: 5px;
}

.public-state-card {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

.public-state-card .auth-primary-button {
    margin-top: 7px;
}

.auth-workspace > .legal-footer {
    gap: 5px;
    margin: 0;
    padding: 18px clamp(24px, 4vw, 56px) 24px;
    border: 0;
    border-top: 1px solid rgba(184, 207, 222, 0.62);
    border-radius: 0;
    background: transparent;
    color: var(--ue-ink-500);
    font-size: 12px;
    line-height: 1.45;
}

.auth-workspace > .legal-footer span {
    color: var(--ue-ink-500);
}

.auth-workspace > .legal-footer strong {
    color: var(--ue-ink-700);
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: minmax(330px, 36%) minmax(0, 1fr);
    }

    .auth-brand-panel {
        padding: 38px;
    }

    .auth-brand-panel h2 {
        font-size: 38px;
    }

    .auth-brand-copy > p:last-child {
        font-size: 15px;
    }
}

@media (max-width: 840px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-brand {
        display: flex;
    }

    .auth-toolbar {
        min-height: 78px;
        justify-content: space-between;
        padding: 12px 22px;
        border-bottom: 1px solid rgba(184, 207, 222, 0.66);
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(14px);
    }

    .auth-main {
        padding: 32px 20px;
    }

    .auth-card-onboarding {
        width: min(100%, 820px);
    }
}

@media (max-width: 620px) {
    .auth-toolbar {
        gap: 10px;
        padding: 10px 14px;
    }

    .auth-mobile-brand img {
        width: 58px;
        height: 46px;
    }

    .auth-mobile-brand span {
        display: none;
    }

    .auth-toolbar .language-control,
    .auth-toolbar .language-select select {
        min-width: 144px;
    }

    .auth-main {
        align-items: start;
        padding: 20px 12px 28px;
    }

    .auth-card {
        padding: 27px 20px;
        border-radius: 18px;
        box-shadow: 0 16px 42px rgba(5, 47, 92, 0.1);
    }

    .auth-card-header h1,
    .public-state-card h1 {
        font-size: 30px;
    }

    .auth-card-header p,
    .public-state-card > p {
        font-size: 15px;
    }

    .auth-verification-section .otp-boxes {
        width: 100%;
        gap: 6px;
    }

    .auth-verification-section .otp-box {
        width: clamp(38px, 12vw, 48px);
        height: 56px;
        min-height: 56px;
        font-size: 25px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .consent-header-meta,
    .consent-preferences-header,
    .consent-submit-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .consent-progress li {
        font-size: 12px;
    }

    .consent-progress li > span {
        width: 32px;
        height: 32px;
    }

    .consent-progress li:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .consent-card.consent-modern-card,
    .consent-preferences {
        padding: 19px;
    }

    .consent-document-panel {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .consent-document-link {
        width: 100%;
        white-space: normal;
    }

    .consent-choice-group.consent-modern-choice {
        grid-template-columns: 1fr;
    }

    .consent-modern-choice legend,
    .consent-modern-choice > p,
    .consent-segmented-control {
        grid-column: 1;
    }

    .consent-segmented-control {
        width: 100%;
        margin-top: 9px;
        grid-row: auto;
    }

    .consent-submit-panel .auth-primary-button {
        width: 100%;
        min-width: 0;
    }

    .auth-phone-grid {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .auth-workspace > .legal-footer {
        display: none;
    }
}

/* Public contract links and terminal states */

.calculator-brand {
    display: grid;
    width: 112px;
    height: 60px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--ue-navy-950), var(--ue-blue-700));
    box-shadow: 0 8px 18px rgba(5, 47, 92, 0.16);
}

.calculator-brand img {
    width: 78px;
    height: 56px;
    object-fit: contain;
}

.public-contract-page {
    color: var(--ue-ink-900);
}

.public-contract-heading {
    display: grid;
    max-width: 850px;
    gap: 8px;
}

.public-contract-state {
    display: grid;
    width: min(100%, 780px);
    min-height: 360px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px);
    place-items: center;
    align-content: center;
    gap: 13px;
    border: 1px solid #cfdfeb;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 143, 210, 0.09), transparent 34%),
        #ffffff;
    box-shadow: 0 24px 58px rgba(5, 47, 92, 0.12);
    text-align: center;
}

.calculator-confirmation-card.public-contract-state {
    width: min(100%, 780px);
}

.public-contract-state-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 3px;
    place-items: center;
    border: 1px solid #c8dfed;
    border-radius: 22px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
    box-shadow: 0 10px 22px rgba(7, 84, 166, 0.09);
}

.public-contract-state-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
}

.public-contract-state.is-success .public-contract-state-icon {
    border-color: #b9dfc6;
    background: #eff9f2;
    color: var(--ue-success);
}

.public-contract-state.is-error .public-contract-state-icon {
    border-color: #f0c9c3;
    background: #fff3f1;
    color: var(--ue-danger);
}

.public-contract-state.is-warning .public-contract-state-icon {
    border-color: #efd6a9;
    background: #fff8e9;
    color: var(--ue-warning);
}

.public-contract-state .calculator-eyebrow {
    margin: 4px 0 0;
    color: var(--ue-orange-600);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.public-contract-state h1,
.public-contract-state h2,
.calculator-confirmation-card.public-contract-state h1 {
    max-width: 650px;
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(31px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: center;
}

.public-contract-state-text {
    max-width: 620px;
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 16px;
    line-height: 1.65;
}

.public-contract-primary-action,
.public-contract-primary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ue-blue-800), var(--ue-blue-600));
    box-shadow: 0 12px 24px rgba(7, 84, 166, 0.2);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.public-contract-primary-action {
    margin-top: 13px;
}

.public-contract-primary-action:hover,
.public-contract-primary-action:focus-visible,
.public-contract-primary-button:hover,
.public-contract-primary-button:focus-visible {
    background: linear-gradient(135deg, var(--ue-blue-700), var(--ue-blue-500));
    box-shadow: 0 16px 28px rgba(7, 84, 166, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.public-contract-primary-action svg,
.public-contract-primary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}

.calculator-confirmation-card.public-contract-state .calculator-confirmation-details {
    width: 100%;
    margin: 22px 0 4px;
    overflow: hidden;
    border: 1px solid #d4e3ed;
    border-radius: 14px;
    background: #fbfdfe;
    text-align: left;
}

.calculator-confirmation-card.public-contract-state .calculator-confirmation-details > div {
    gap: 18px;
    padding: 14px 17px;
    border: 0;
}

.calculator-confirmation-card.public-contract-state .calculator-confirmation-details > div + div {
    border-top: 1px solid #e0eaf1;
}

.calculator-confirmation-card.public-contract-state .calculator-final-notice {
    width: 100%;
    margin: 14px 0 0;
    padding: 17px 18px;
    border: 1px solid #d3e4ee;
    border-left: 4px solid var(--ue-orange-500);
    border-radius: 12px;
    background: #fff8f4;
    text-align: left;
}

.calculator-confirmation-card.public-contract-state > .calculator-primary-link {
    margin-top: 13px;
}

.contract-customer-acceptance .calculator-acceptance-complete {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 14px;
    margin: 0;
    padding: 19px;
    border: 1px solid #b9dfc6;
    border-radius: 14px;
    background: #eff9f2;
    color: #176b34;
}

.calculator-acceptance-complete-icon {
    display: grid !important;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.calculator-acceptance-complete-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
}

.contract-customer-acceptance .calculator-acceptance-complete > div {
    display: grid;
    gap: 4px;
}

.contract-customer-acceptance .calculator-acceptance-complete strong {
    font-size: 16px;
}

.contract-customer-acceptance .calculator-acceptance-complete span:not(.calculator-acceptance-complete-icon) {
    font-size: 14px;
    line-height: 1.55;
}

.contract-change-page.public-contract-page {
    width: min(960px, calc(100% - 40px));
    margin: 46px auto 64px;
}

.public-contract-review.contract-change-card {
    display: grid;
    gap: 23px;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid #cfdfeb;
    border-radius: 22px;
    box-shadow: 0 22px 54px rgba(5, 47, 92, 0.11);
}

.public-contract-review-header {
    display: grid;
    align-items: center;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.public-contract-review-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--ue-blue-800), var(--ue-blue-600));
    box-shadow: 0 11px 22px rgba(7, 84, 166, 0.18);
    color: #ffffff;
}

.public-contract-review-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
}

.public-contract-review-header > div {
    display: grid;
    gap: 5px;
}

.public-contract-review-header .calculator-eyebrow {
    margin: 0;
}

.public-contract-review-header h1,
.contract-change-card.public-contract-review h1 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-align: left;
}

.public-contract-review-header p:last-child {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
}

.public-contract-code {
    display: inline-flex;
    max-width: 210px;
    padding: 9px 12px;
    overflow: hidden;
    border: 1px solid #c9dfed;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-contract-review .contract-change-reason {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 17px 19px;
    border: 1px solid #d5e5ef;
    border-left: 4px solid var(--ue-blue-600);
    border-radius: 12px;
    background: var(--ue-blue-50);
}

.public-contract-review .contract-change-reason span {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-contract-review .contract-change-reason strong {
    color: var(--ue-ink-900);
    font-size: 15px;
}

.public-contract-review .contract-change-comparison {
    display: grid;
    gap: 13px;
}

.public-contract-review .contract-change-comparison article {
    overflow: hidden;
    padding: 0;
    border: 1px solid #d3e2ec;
    border-radius: 14px;
    background: #ffffff;
}

.public-contract-review .contract-change-comparison h2 {
    margin: 0;
    padding: 14px 17px;
    border-bottom: 1px solid #dce8f0;
    background: #f8fbfd;
    color: var(--ue-ink-900);
    font-size: 15px;
}

.public-contract-review .contract-change-comparison article > div {
    min-width: 0;
    padding: 13px 17px;
    border: 0;
    grid-template-columns: minmax(140px, 0.34fr) minmax(0, 1fr);
}

.public-contract-review .contract-change-comparison article > div + div {
    border-top: 1px solid #e2ebf1;
}

.public-contract-review .contract-change-comparison .is-new {
    background: #f1f8fd;
}

.public-contract-review .contract-change-comparison strong {
    overflow-wrap: anywhere;
}

.public-contract-review .contract-change-comparison .is-new strong {
    color: var(--ue-blue-800);
}

.public-contract-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #cedfea;
    border-radius: 12px;
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 14px;
    font-weight: 650;
}

.public-contract-feedback svg,
.public-contract-review .contract-change-warning svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
}

.public-contract-feedback.is-success {
    border-color: #b9dfc6;
    background: #eff9f2;
    color: #176b34;
}

.public-contract-feedback.is-error {
    border-color: #efc5c5;
    background: #fff3f3;
    color: #9d2f2f;
}

.public-contract-feedback.is-neutral {
    color: var(--ue-ink-700);
}

.public-contract-review .contract-change-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 15px 17px;
    border: 1px solid #ecd8ae;
    border-left: 4px solid #e59a17;
    border-radius: 12px;
    background: #fff9eb;
    color: #77500b;
    font-size: 14px;
    line-height: 1.55;
}

.public-contract-review .contract-change-decision-form {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.public-contract-secondary-action {
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #b8cddd;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ue-ink-700);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
}

.public-contract-secondary-action:hover,
.public-contract-secondary-action:focus-visible {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
}

@media (max-width: 700px) {
    .calculator-header {
        min-height: 70px;
        padding: 8px 14px;
    }

    .calculator-brand img {
        width: 68px;
        height: 48px;
    }

    .calculator-brand {
        width: 88px;
        height: 54px;
        border-radius: 14px;
    }

    .public-contract-state {
        min-height: 330px;
        padding: 30px 21px;
        border-radius: 18px;
    }

    .public-contract-state h1,
    .public-contract-state h2,
    .calculator-confirmation-card.public-contract-state h1 {
        font-size: 30px;
    }

    .contract-change-page.public-contract-page {
        width: min(100% - 24px, 960px);
        margin: 24px auto 42px;
    }

    .public-contract-review.contract-change-card {
        padding: 23px 18px;
    }

    .public-contract-review-header {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .public-contract-code {
        max-width: 100%;
        grid-column: 1 / -1;
    }

    .public-contract-review .contract-change-comparison article > div {
        gap: 4px;
        grid-template-columns: 1fr;
    }

    .public-contract-review .contract-change-decision-form {
        flex-direction: column-reverse;
    }

    .public-contract-review .contract-change-decision-form button {
        width: 100%;
    }
}

button,
input,
select,
textarea {
    font-family: inherit;
}

p,
li,
dd,
td {
    line-height: 1.5;
}

small {
    font-size: var(--ue-font-supporting);
    line-height: 1.45;
}

body::selection {
    background: var(--ue-blue-100);
    color: var(--ue-navy-950);
}

a {
    color: var(--ue-blue-700);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ue-orange-600);
}

h1,
h2,
h3,
h4 {
    color: var(--ue-ink-900);
    letter-spacing: -0.018em;
}

/* App frame */

.app-shell {
    grid-template-columns: var(--ue-sidebar-width) minmax(0, 1fr);
    background: var(--ue-canvas);
}

.app-sidebar {
    z-index: 85;
    width: var(--ue-sidebar-width);
    border: 0;
    background:
        radial-gradient(circle at 110% 64%, rgba(55, 157, 221, 0.3), transparent 31%),
        linear-gradient(165deg, var(--ue-navy-950) 0%, var(--ue-blue-800) 56%, var(--ue-blue-600) 100%);
    box-shadow: 10px 0 30px rgba(5, 47, 92, 0.18);
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    scrollbar-width: thin;
}

.app-sidebar::after {
    position: fixed;
    z-index: -1;
    bottom: -120px;
    left: -95px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, 0.025),
        0 0 0 84px rgba(255, 255, 255, 0.02);
    content: "";
    pointer-events: none;
}

.sidebar-brand {
    position: relative;
    min-height: 100px;
    justify-content: flex-start;
    gap: 15px;
    overflow: hidden;
    padding: 13px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.sidebar-brand-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 104px;
    height: 82px;
    flex: 0 0 104px;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    text-decoration: none;
}

.sidebar-brand-logo {
    width: 102px;
    max-width: 102px;
    max-height: 82px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    filter: none;
}

.sidebar-backoffice-wordmark {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    margin-left: 7px;
    color: #ffffff;
    line-height: 0.86;
    text-transform: uppercase;
}

.sidebar-backoffice-wordmark::after {
    width: 34px;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ue-orange-500), #ff9c62);
    content: "";
}

.sidebar-backoffice-wordmark span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.25em;
}

.sidebar-backoffice-wordmark strong {
    color: #ffffff;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: 0.055em;
}

.sidebar-user {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 12px;
    margin: 16px 16px 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: var(--ue-radius-md);
    background: rgba(4, 43, 83, 0.38);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.sidebar-user .user-avatar {
    grid-row: 1 / span 3;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    background: linear-gradient(145deg, var(--ue-blue-500), var(--ue-navy-950));
    box-shadow: 0 8px 18px rgba(3, 27, 52, 0.28);
    font-size: 22px;
}

.sidebar-user-name {
    align-items: flex-start;
    justify-content: flex-start;
    display: grid;
    gap: 2px;
    margin: 1px 0 0;
    text-align: left;
}

.sidebar-user-name strong {
    overflow: hidden;
    max-width: 166px;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-name form {
    display: none;
}

.sidebar-status {
    grid-column: 2;
    margin: 1px 0 3px;
    color: #b9e4ff;
    font-size: 13px;
}

.sidebar-status::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ue-orange-500);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.18);
    content: "";
}

.sidebar-profile-button {
    grid-column: 2;
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
}

.sidebar-profile-button:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sidebar-wallets {
    margin: 0 16px 14px;
    padding: 13px;
    border: 1px solid rgba(185, 228, 255, 0.18);
    border-radius: var(--ue-radius-md);
    background: rgba(5, 47, 92, 0.28);
}

.sidebar-wallets-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 11px;
}

.sidebar-wallets-heading strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.sidebar-wallets-heading span {
    color: #b9e4ff;
    font-size: var(--ue-font-caption);
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-wallet-list {
    display: grid;
    gap: 7px;
}

.sidebar-wallet-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 55px;
    padding: 8px 10px;
    border: 1px solid rgba(185, 228, 255, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-wallet-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(185, 228, 255, 0.13);
    color: #b9e4ff;
}

.sidebar-wallet-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sidebar-wallet-row strong {
    min-width: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
}

.sidebar-wallet-row em {
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.sidebar-wallet-row-cashback {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
}

.sidebar-wallet-row-cashback .sidebar-wallet-icon {
    grid-row: 1;
}

.sidebar-wallet-copy,
.sidebar-wallet-values {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sidebar-wallet-copy small,
.sidebar-wallet-values small {
    color: #b9e4ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.sidebar-wallet-values {
    grid-column: 1 / -1;
    justify-items: start;
    padding-top: 3px;
    border-top: 1px solid rgba(185, 228, 255, 0.12);
    text-align: left;
}

.sidebar-wallet-values em {
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
}

.sidebar-wallets > .wallet-recharge-link {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--ue-action-orange);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(234, 72, 27, 0.22);
    transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.sidebar-wallets > .wallet-recharge-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.sidebar-wallets > .wallet-recharge-link:hover,
.sidebar-wallets > .wallet-recharge-link:focus-visible {
    background: var(--ue-action-orange-hover);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(234, 72, 27, 0.3);
    transform: translateY(-1px);
}

.sidebar-wallets > .wallet-recharge-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sidebar-menu-search {
    padding: 0 16px 14px;
    border: 0;
    background: transparent;
}

.sidebar-menu-search input {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.sidebar-menu-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-menu-search input:focus {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sidebar-menu-results {
    top: calc(100% - 12px);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(2, 28, 54, 0.28);
}

.sidebar-nav {
    padding: 0 10px 24px;
}

.sidebar-nav-title {
    min-height: 31px;
    padding: 0 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-nav-title::after {
    flex: 1;
    height: 1px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.15);
    content: "";
}

.sidebar-nav a {
    position: relative;
    min-height: 42px;
    gap: 11px;
    margin: 3px 4px;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 650;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar-nav a::before {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 4px;
    height: 20px;
    border-radius: 999px;
    background: transparent;
    content: "";
    transform: translateY(-50%);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: 0;
    transform: translateX(2px);
}

.sidebar-nav a.active {
    padding-left: 17px;
    background: #ffffff;
    color: var(--ue-blue-800);
    box-shadow: 0 8px 18px rgba(2, 28, 54, 0.2);
}

.sidebar-nav a.active::before {
    background: var(--ue-orange-500);
}

.sidebar-nav-separator {
    height: 1px;
    margin: 10px 12px;
    background: rgba(255, 255, 255, 0.13);
}

.sidebar-nav-badge {
    min-width: 23px;
    height: 20px;
    padding: 0 6px;
    background: var(--ue-action-orange);
    font-size: 13px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: none;
}

.nav-icon::before,
.nav-icon::after {
    display: none !important;
    content: none !important;
}

.sidebar-nav a.active .nav-icon {
    stroke-width: 2;
}

.sidebar-toggle {
    z-index: 110;
    top: 88px;
    left: calc(var(--ue-sidebar-width) - 17px);
    width: 34px;
    height: 34px;
    min-height: 34px;
    border: 3px solid var(--ue-canvas);
    border-radius: 50%;
    background: var(--ue-blue-700);
    box-shadow: 0 7px 18px rgba(5, 47, 92, 0.24);
    transform: none;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background: var(--ue-orange-500);
    box-shadow: 0 8px 20px rgba(5, 47, 92, 0.28);
}

.sidebar-toggle span {
    width: 9px;
    height: 9px;
    border-color: #ffffff;
    border-width: 0 2px 2px 0;
    transform: translateX(2px) rotate(135deg);
}

.sidebar-toggle span::before,
.sidebar-toggle span::after {
    display: none;
    content: none;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-mobile-close {
    display: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
    top: 88px;
    left: 0;
    border-radius: 0 17px 17px 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle span {
    transform: translateX(-2px) rotate(-45deg);
}

/* Header */

.app-topbar {
    height: var(--app-topbar-height);
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 26px;
    border-bottom: 1px solid var(--ue-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 22px rgba(5, 47, 92, 0.07);
    backdrop-filter: blur(14px);
}

.topbar-context {
    display: grid;
    flex: 0 1 190px;
    min-width: 120px;
    line-height: 1.12;
}

.topbar-context span {
    overflow: hidden;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-context strong {
    overflow: hidden;
    color: var(--ue-ink-900);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-section {
    flex-shrink: 0;
    align-self: stretch;
    gap: 4px;
}

.topbar-tab {
    height: 38px;
    gap: 6px;
    padding: 0 11px;
    border-radius: 9px;
    color: var(--ue-ink-700);
    font-size: 13px;
    transition: background 150ms ease, color 150ms ease;
}

.topbar-tab:hover,
.topbar-tab:focus-visible {
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    outline: 0;
}

.topbar-tab.active {
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
}

.topbar-actions {
    flex: 1 1 auto;
    gap: 3px;
    overflow-x: auto;
    justify-content: safe flex-end;
}

.topbar-actions form {
    height: auto;
}

.topbar-actions > * {
    flex-shrink: 0;
}

.topbar-utility {
    padding-inline: 10px;
}

.topbar-utility.highlight,
.topbar-utility.highlight.active {
    margin-inline: 0;
    background: transparent;
    color: var(--ue-ink-700);
    box-shadow: none;
}

.topbar-actions .language-select {
    height: auto;
    padding: 0 4px;
}

.topbar-actions .language-control {
    min-width: 112px;
    min-height: 38px;
    border-color: var(--ue-line);
    border-radius: 9px;
    background: var(--ue-surface);
}

.topbar-actions .language-select select {
    min-width: 112px;
    min-height: 36px;
    padding-right: 25px;
    color: var(--ue-ink-700);
}

.topbar-new-contract {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    margin-left: 5px;
    padding: 0 15px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ue-action-orange), var(--ue-action-orange-hover));
    box-shadow: 0 8px 18px rgba(234, 72, 27, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-new-contract:hover,
.topbar-new-contract:focus-visible {
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(234, 72, 27, 0.3);
    outline: 3px solid rgba(241, 90, 36, 0.16);
    transform: translateY(-1px);
}

.topbar-new-contract > span {
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
}

.topbar-icon,
.topbar-action-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: none;
}

.topbar-icon::before,
.topbar-icon::after {
    display: none !important;
    content: none !important;
}

.topbar-tab.active .topbar-icon {
    background: transparent;
    stroke-width: 2;
}

.topbar-action-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    stroke-width: 2;
}

.topbar-user-identity {
    display: flex;
    max-width: 200px;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding: 4px 7px;
    border-radius: 10px;
    color: var(--ue-ink-900);
    text-decoration: none;
}

.topbar-user-identity:hover,
.topbar-user-identity:focus-visible {
    background: var(--ue-blue-50);
    color: var(--ue-ink-900);
    outline: 0;
}

.topbar-user-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ue-blue-600), var(--ue-navy-900));
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-identity > span:last-child {
    display: grid;
    min-width: 0;
}

.topbar-user-identity strong,
.topbar-user-identity small {
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-identity strong {
    font-size: 13px;
}

.topbar-user-identity small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.logout-button {
    color: var(--ue-ink-700);
}

/* Shared content language */

.app-content {
    min-width: 0;
    padding: 30px;
}

.dashboard-hero {
    top: var(--app-topbar-height);
    margin: -30px -30px 26px;
    padding: 26px 34px;
    border-color: var(--ue-line);
    background: rgba(255, 255, 255, 0.97);
    transition:
        padding 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 180ms ease,
        background-color 180ms ease;
    will-change: auto;
}

.dashboard-hero h1 {
    margin-bottom: 8px;
    color: var(--ue-ink-900);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 750;
    letter-spacing: -0.025em;
    transition:
        font-size 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
        margin 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
        color 180ms ease;
}

.dashboard-hero p {
    color: var(--ue-ink-700);
    font-size: 15px;
    font-weight: 500;
}

.journey-page-hero > .button {
    margin-top: 16px;
}

.dashboard-hero > div > p,
.dashboard-hero .eyebrow,
.dashboard-hero .dashboard-hero-eyebrow {
    transform: translateY(0);
    transition:
        max-height 160ms cubic-bezier(0.2, 0.7, 0.2, 1),
        margin 160ms cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 110ms ease,
        transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dashboard-hero .dashboard-hero-eyebrow {
    display: block;
    max-height: 24px;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--ue-orange-600);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.35;
    opacity: 1;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--ue-orange-600) !important;
    font-size: 13px !important;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.page-title-condensed .dashboard-hero {
    padding: 12px 34px;
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.page-title-condensed .dashboard-hero h1 {
    color: var(--ue-blue-800);
    font-size: 25px;
}

.page-title-condensed .dashboard-hero > div > p,
.page-title-condensed .dashboard-hero .eyebrow,
.page-title-condensed .dashboard-hero .dashboard-hero-eyebrow {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0 !important;
    opacity: 0;
    transform: translateY(-4px);
}

.feature-panel,
.table-panel,
.contracts-table-section,
.invoices-table-section,
.community-table-section,
.contract-card,
.ticket-dashboard-card,
.consent-card,
.contract-change-card {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: var(--ue-surface);
    box-shadow: var(--ue-shadow-sm);
}

.feature-panel {
    padding: 24px;
}

.feature-panel h2,
.table-heading h2,
.panel-heading-row h2 {
    color: var(--ue-ink-900);
}

.panel-soft {
    border-color: var(--ue-blue-100);
    background: var(--ue-blue-50);
}

input,
select,
textarea {
    border-color: #b9cddd;
    border-radius: var(--ue-radius-sm);
    color: var(--ue-ink-900);
    background-color: #ffffff;
    font-size: var(--ue-font-body);
    line-height: 1.35;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

select:not(#lang):not([multiple]) {
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 7 9 11.5 13.5 7' stroke='%230754a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #8eacc2;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
    outline: 0;
}

input:disabled,
select:disabled,
textarea:disabled,
input[readonly] {
    background: #edf3f7;
    color: var(--ue-ink-500);
}

label,
legend {
    color: var(--ue-ink-900);
    font-size: var(--ue-font-control);
    line-height: 1.4;
}

.hint {
    color: var(--ue-ink-500);
}

button,
.button {
    border-radius: var(--ue-radius-sm);
    background: linear-gradient(135deg, var(--ue-action-orange), var(--ue-action-orange-hover));
    font-size: var(--ue-font-control);
    line-height: 1.25;
    box-shadow: 0 5px 14px rgba(234, 72, 27, 0.15);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover,
.button:hover,
button:focus-visible,
.button:focus-visible {
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(234, 72, 27, 0.24);
    outline: 3px solid rgba(241, 90, 36, 0.15);
    transform: translateY(-1px);
}

button:disabled,
.button:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.secondary-button,
.button.secondary-button {
    border: 1px solid var(--ue-blue-100);
    background: var(--ue-blue-50);
    box-shadow: none;
    color: var(--ue-blue-800);
}

.secondary-button:hover,
.button.secondary-button:hover {
    border-color: var(--ue-blue-600);
    background: #e5f2fa;
    color: var(--ue-blue-800);
}

.alert {
    border-radius: var(--ue-radius-sm);
    box-shadow: var(--ue-shadow-sm);
}

.alert-success {
    border-color: #b8dfc8;
    background: #edf8f2;
    color: #145c35;
}

.alert-error {
    border-color: #efc0c0;
    background: #fff3f3;
    color: #8a1f1f;
}

.panel-status {
    border-radius: 999px;
    background: var(--ue-action-orange);
}

.table-scroll,
.responsive-table {
    border-radius: var(--ue-radius-sm);
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

table td {
    color: var(--ue-ink-900);
}

table tbody tr {
    transition: background 130ms ease;
}

table tbody tr:hover {
    background: #f7fbfe;
}

.legal-footer {
    color: var(--ue-ink-500);
}

.legal-footer span {
    color: var(--ue-blue-600);
}

/* Dashboard */

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.dashboard-metric {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 104px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.dashboard-metric::after {
    position: absolute;
    top: 17px;
    right: 0;
    width: 3px;
    height: 44px;
    border-radius: 3px 0 0 3px;
    background: var(--ue-orange-500);
    content: "";
}

.dashboard-metric-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ue-navy-900), var(--ue-blue-600));
    box-shadow: 0 14px 30px rgba(5, 68, 126, 0.2);
}

.dashboard-metric-primary::after {
    display: none;
}

.dashboard-metric > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-metric > div > span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-metric strong {
    overflow: hidden;
    color: var(--ue-ink-900);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.dashboard-metric a {
    width: max-content;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.dashboard-metric-primary > div > span,
.dashboard-metric-primary a {
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-metric-primary strong {
    color: #ffffff;
    font-size: 18px;
}

.dashboard-metric-icon {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.dashboard-metric-primary .dashboard-metric-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dashboard-metric-icon::before {
    display: none;
}

.dashboard-metric-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 18px;
}

.dashboard-section-heading > div {
    max-width: 760px;
}

.dashboard-section-heading .eyebrow {
    margin-bottom: 7px !important;
}

.dashboard-section-heading h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
}

.dashboard-section-heading > div > p:last-child {
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-section-heading-operations {
    margin-top: 42px;
}

.tiers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tier-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 403px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
    color: var(--ue-ink-900);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tier-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ue-blue-600), var(--ue-blue-500));
    content: "";
}

.tier-client,
.tier-family {
    border-color: var(--ue-line);
    background: #ffffff;
}

.tier-card:hover {
    border-color: #b8d1e3;
    box-shadow: var(--ue-shadow-md);
    transform: translateY(-2px);
}

.tier-card.tier-current {
    border: 2px solid var(--ue-orange-500);
    background: linear-gradient(180deg, #fff7f2 0, #ffffff 25%);
    box-shadow: 0 16px 34px rgba(241, 90, 36, 0.16);
}

.tier-card.tier-current::before {
    height: 5px;
    background: linear-gradient(90deg, var(--ue-orange-600), #ff7847);
}

.tier-card-header {
    align-items: flex-start;
    margin-bottom: 12px;
}

.tier-card-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.tier-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--ue-blue-100);
    border-radius: 12px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.tier-card-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tier-card.tier-current .tier-card-icon {
    border-color: var(--ue-orange-100);
    background: #fff0e9;
    color: var(--ue-orange-600);
}

.tier-card h2 {
    color: var(--ue-ink-900);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.018em;
}

.tier-card .panel-status {
    min-height: 24px;
    margin: 9px 0 0;
    padding: 0 9px;
    background: var(--ue-action-orange);
    font-size: 13px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.tier-description {
    min-height: 126px;
    margin-bottom: 16px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.tier-features {
    margin-top: 12px;
    border-color: var(--ue-line);
}

.tier-benefits {
    margin-top: auto;
    border: 1px solid var(--ue-line-soft);
    border-radius: 11px;
    background: var(--ue-blue-50);
}

.tier-benefits > summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    color: var(--ue-ink-700);
    list-style: none;
    cursor: pointer;
}

.tier-benefits > summary::-webkit-details-marker {
    display: none;
}

.tier-benefits > summary:hover,
.tier-benefits > summary:focus-visible {
    color: var(--ue-blue-800);
    outline: 0;
}

.tier-benefits-count {
    display: grid;
    gap: 2px;
}

.tier-benefits-count > span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.tier-benefits-count strong {
    color: var(--ue-ink-900);
    font-size: 18px;
    line-height: 1;
}

.tier-benefits-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.tier-benefits-hide {
    display: none;
}

.tier-benefits-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 150ms ease;
}

.tier-benefits[open] {
    background: #ffffff;
}

.tier-benefits[open] > summary {
    border-bottom: 1px solid var(--ue-line-soft);
}

.tier-benefits[open] .tier-benefits-show {
    display: none;
}

.tier-benefits[open] .tier-benefits-hide {
    display: inline;
}

.tier-benefits[open] .tier-benefits-chevron {
    transform: translateY(2px) rotate(225deg);
}

.tier-benefits[open] .tier-features {
    padding: 0 13px 10px;
}

.tier-feature {
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    gap: 9px;
    min-height: 38px;
    padding: 7px 0;
    border-color: #e5edf3;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.tier-feature.not-included {
    color: #9aafc0;
}

.tier-feature .checkmark {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: var(--ue-blue-600);
}

.tier-feature .checkmark::after {
    top: 1px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-color: var(--ue-blue-600);
    border-width: 0 2px 2px 0;
}

.tier-feature.not-included .checkmark {
    border-color: #c8d5df;
    background: #f5f8fa;
    opacity: 1;
}

.tier-feature.not-included .checkmark::after {
    top: 7px;
    left: 4px;
    width: 8px;
    height: 0;
    border: 0;
    border-top: 2px solid #9db0bf;
    transform: none;
}

.tier-card .tooltip-button {
    background: var(--ue-blue-700);
    box-shadow: none;
}

.tier-card .tooltip-button:hover,
.tier-card .tooltip-button:focus-visible {
    box-shadow: none;
    transform: none;
}

.tooltip-button[data-tooltip]::before,
.tooltip-button[data-tooltip]::after {
    display: none !important;
    content: none !important;
}

.app-tooltip {
    position: fixed;
    z-index: 1000;
    width: max-content;
    max-width: min(360px, calc(100vw - 24px));
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ue-radius-sm);
    background: var(--ue-navy-950);
    box-shadow: 0 12px 28px rgba(5, 47, 92, 0.28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    pointer-events: none;
}

.app-tooltip[hidden] {
    display: none;
}

.app-tooltip::after {
    position: absolute;
    top: 100%;
    left: var(--tooltip-anchor-x, 50%);
    border: 6px solid transparent;
    border-top-color: var(--ue-navy-950);
    content: "";
    transform: translateX(-50%);
}

.app-tooltip[data-placement="below"]::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--ue-navy-950);
}

.tier-action,
.tier-family .tier-action {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    gap: 10px;
    margin: 16px auto 0;
    padding: 0 15px;
    border: 1px solid var(--ue-orange-600);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ue-action-orange), var(--ue-action-orange-hover));
    box-shadow: 0 5px 12px rgba(234, 72, 27, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.tier-action:hover,
.tier-action:focus-visible,
.tier-family .tier-action:hover,
.tier-family .tier-action:focus-visible {
    border-color: #d93b0d;
    background: #e83e10;
    box-shadow: 0 7px 15px rgba(234, 72, 27, 0.22);
    color: #ffffff;
    filter: none;
}

.tier-action-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 150ms ease;
}

.tier-upgrade[open] .tier-action-chevron {
    transform: translateY(2px) rotate(225deg);
}

.tier-upgrade .upgrade-options {
    gap: 12px;
    margin-top: 12px;
}

.tier-upgrade-family .upgrade-options {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tier-benefits + .tier-upgrade {
    margin-top: 18px;
}

.tier-upgrade .upgrade-option {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-color: var(--ue-line);
    border-radius: 12px;
    background: var(--ue-blue-50);
}

.tier-upgrade .upgrade-option p {
    margin: 0 0 14px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.tier-upgrade .upgrade-option-button {
    width: auto;
    min-height: 40px;
    margin-top: auto;
    padding: 0 16px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.tier-upgrade .upgrade-option-button-primary {
    border: 1px solid var(--ue-blue-700);
    background: var(--ue-blue-700);
    box-shadow: 0 5px 14px rgba(11, 99, 184, 0.16);
    color: #ffffff;
}

.tier-upgrade .upgrade-option-button-primary:hover {
    border-color: var(--ue-blue-800);
    background: var(--ue-blue-800);
    box-shadow: 0 7px 16px rgba(11, 99, 184, 0.22);
    color: #ffffff;
    outline: 0;
}

.tier-upgrade .upgrade-option-button-primary:focus-visible {
    border-color: var(--ue-blue-800);
    background: var(--ue-blue-800);
    box-shadow: 0 7px 16px rgba(11, 99, 184, 0.22);
    color: #ffffff;
    outline: 3px solid rgba(22, 123, 197, 0.18);
}

.tier-upgrade .upgrade-option-button-secondary {
    border: 1px solid #b9d2e5;
    background: #ffffff;
    box-shadow: none;
    color: var(--ue-blue-800);
}

.tier-upgrade .upgrade-option-button-secondary:hover {
    border-color: var(--ue-blue-600);
    background: #e8f4fb;
    box-shadow: none;
    color: var(--ue-blue-800);
    outline: 0;
}

.tier-upgrade .upgrade-option-button-secondary:focus-visible {
    border-color: var(--ue-blue-600);
    background: #e8f4fb;
    box-shadow: none;
    color: var(--ue-blue-800);
    outline: 3px solid rgba(22, 123, 197, 0.18);
}

.dashboard-followup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 0;
}

.dashboard-followup > .feature-panel {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 22px;
}

.dashboard-followup > .feature-panel:last-child {
    grid-column: 1 / -1;
    min-height: 0;
}

.dashboard-followup > .feature-panel:last-child .status-list {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.dashboard-followup > .feature-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.dashboard-followup > .feature-panel > p {
    margin: 0 0 15px;
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-followup .status-list {
    gap: 8px;
}

.dashboard-followup .status-list li {
    gap: 3px;
    padding: 10px 11px;
    border-color: #e2ebf1;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
}

.dashboard-followup .status-list strong {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.dashboard-followup .status-list span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 600;
}

.dashboard-followup .ticket-dashboard-actions {
    margin-top: auto;
    padding-top: 18px;
}

@media (max-width: 1240px) {
    .dashboard-overview {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

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

@media (max-width: 1220px) {
    .tiers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tier-description {
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .tiers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tier-description {
        min-height: 0;
    }

    .tier-card {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .dashboard-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-metric-primary,
    .dashboard-metric:last-child {
        grid-column: 1 / -1;
    }

    .dashboard-metric {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        min-height: 90px;
        padding: 14px;
    }

    .dashboard-metric-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .dashboard-metric-icon svg {
        width: 20px;
        height: 20px;
    }

    .dashboard-followup {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-followup > .feature-panel:last-child {
        grid-column: auto;
    }

    .dashboard-followup > .feature-panel:last-child .status-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-section-heading {
        margin-bottom: 15px;
    }

    .dashboard-section-heading-operations {
        margin-top: 34px;
    }

    .tier-card {
        padding: 21px 18px;
    }

    .dashboard-followup > .feature-panel {
        min-height: 0;
    }
}

/* Profile workspace */

.profile-section-nav {
    position: sticky;
    z-index: 45;
    top: calc(var(--app-topbar-height) + 158px);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 24px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ue-shadow-sm);
    scrollbar-width: thin;
    backdrop-filter: blur(14px);
    transition: top 180ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 180ms ease;
}

.page-title-condensed .profile-section-nav {
    top: calc(var(--app-topbar-height) + 54px);
    box-shadow: 0 10px 24px rgba(18, 45, 73, 0.12);
}

.profile-section-nav a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.profile-section-nav a:hover,
.profile-section-nav a:focus-visible,
.profile-section-nav a.is-active,
.profile-section-nav a[aria-current="location"] {
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    outline: 0;
}

.profile-section-nav a.is-active,
.profile-section-nav a[aria-current="location"] {
    box-shadow: inset 0 -2px 0 var(--ue-orange-500);
}

.profile-grid,
.profile-data-grid,
.profile-status-sections,
#profile-account-data,
#profile-store-data,
#profile-documents,
#profile-mandate {
    scroll-margin-top: calc(var(--app-topbar-height) + 132px);
}

.profile-grid {
    grid-template-columns: minmax(340px, 0.9fr) minmax(430px, 1.1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.profile-summary-column {
    gap: 20px;
}

.feature-panel.member-progress-panel,
.feature-panel.profile-banner-panel,
.feature-panel.profile-section,
.profile-documents-panel,
.mandate-panel {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.feature-panel.member-progress-panel,
.feature-panel.profile-banner-panel {
    padding: 22px;
}

.feature-panel.member-progress-panel > h2,
.feature-panel.profile-banner-panel > h2,
.feature-panel.profile-section > h2:first-child,
.profile-documents-panel > h2,
.mandate-panel > h2 {
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 0 13px;
    border-radius: 0;
    background: transparent;
    color: var(--ue-ink-900);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.016em;
    line-height: 1.35;
}

.feature-panel.member-progress-panel > h2::before,
.feature-panel.profile-banner-panel > h2::before,
.feature-panel.profile-section > h2:first-child::before,
.profile-documents-panel > h2::before,
.mandate-panel > h2::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--ue-orange-500);
    content: "";
}

.feature-panel.profile-section,
.profile-documents-panel,
.mandate-panel {
    padding: 24px;
}

.member-progress-content {
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 22px;
    padding: 4px 2px 12px;
}

.member-progress-content p {
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.55;
}

.member-progress-donut {
    width: 136px;
    background:
        radial-gradient(circle closest-side, #ffffff 64%, transparent 65%),
        conic-gradient(var(--ue-orange-500) var(--progress), var(--ue-blue-100) 0);
}

.member-progress-donut::after {
    inset: 5px;
    border-width: 6px;
}

.member-progress-donut span {
    color: var(--ue-ink-900);
    font-size: 24px;
}

.member-progress-steps {
    margin: 13px 2px 2px;
}

.member-progress-steps li {
    gap: 7px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.member-progress-steps span {
    width: 28px;
    height: 28px;
    background: var(--ue-blue-100);
    color: var(--ue-blue-800);
}

.member-progress-steps .current span,
.member-progress-steps .complete span {
    background: var(--ue-orange-500);
}

.member-progress-steps .current strong,
.member-progress-steps .complete strong {
    color: var(--ue-orange-600);
}

.profile-referral-panel {
    padding: 22px;
}

.profile-referral-panel .readonly-grid {
    gap: 10px;
}

.profile-referral-panel .readonly-grid > div {
    border-color: #e1eaf0;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
}

.profile-referral-link {
    gap: 10px;
}

.profile-referral-link strong {
    color: var(--ue-blue-800);
    font-size: 13px;
}

.referral-copy-button {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
}

.profile-banner-upload {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0 0 16px;
}

.profile-banner-upload button {
    min-height: 44px;
    padding: 0 17px;
    border-radius: var(--ue-radius-sm);
}

.profile-banner-preview {
    width: 100%;
    max-width: none;
    max-height: 420px;
    margin: 0;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
}

.profile-banner-panel .actions {
    justify-content: flex-end;
    margin: 16px 0 0;
}

.profile-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-banner-actions .button,
.profile-banner-actions button {
    width: auto;
    min-height: 44px;
    padding-inline: 18px;
    font-size: 14px;
}

.profile-banner-dialog {
    width: min(920px, calc(100vw - 36px));
    max-width: none;
    max-height: calc(100vh - 36px);
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: var(--ue-ink-900);
    box-shadow: 0 30px 80px rgba(3, 45, 104, 0.3);
}

.profile-banner-dialog::backdrop {
    background: rgba(3, 29, 58, 0.72);
    backdrop-filter: blur(5px);
}

.profile-banner-dialog-shell {
    display: grid;
    max-height: calc(100vh - 36px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.profile-banner-dialog header,
.profile-banner-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.profile-banner-dialog header {
    border-bottom: 1px solid var(--ue-line);
}

.profile-banner-dialog header h2 {
    margin: 2px 0 3px;
    font-size: 21px;
}

.profile-banner-dialog header p {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.profile-banner-dialog header .profile-banner-dialog-close {
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ue-line);
    border-radius: 50%;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.profile-banner-dialog header .profile-banner-dialog-close:hover,
.profile-banner-dialog header .profile-banner-dialog-close:focus-visible {
    border-color: var(--ue-blue-700);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.profile-banner-dialog-media {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    padding: 18px;
    background: var(--ue-blue-50);
}

.profile-banner-dialog-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(68vh, 760px);
    border: 1px solid var(--ue-line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--ue-shadow-md);
}

.profile-banner-dialog footer {
    justify-content: flex-end;
    border-top: 1px solid var(--ue-line);
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
}

.profile-data-grid .profile-block-form {
    min-width: 0;
    height: 100%;
    margin: 0;
}

.profile-data-grid .profile-section {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.profile-data-grid .profile-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.profile-data-grid .profile-form-grid .wide,
.profile-data-grid .profile-form-grid .store-row-start {
    grid-column: auto;
}

.profile-data-grid .field {
    margin-bottom: 0;
}

.profile-data-grid .field label,
.mandate-panel .field label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
}

.profile-data-grid input,
.profile-data-grid select,
.mandate-panel input,
.mandate-panel select {
    min-height: 44px;
}

.profile-data-grid .hint {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.profile-section-actions {
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}

.profile-section-actions button {
    min-width: 130px;
}

.profile-status-sections {
    gap: 20px;
    margin-bottom: 24px;
}

.first-contract-state,
.first-contract-details div {
    border-color: #e1eaf0;
    border-radius: var(--ue-radius-sm);
}

.first-contract-state {
    background: var(--ue-blue-50);
}

.first-contract-state strong {
    color: var(--ue-ink-900);
}

.first-contract-details dt {
    color: var(--ue-ink-500);
    font-size: 13px;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.first-contract-details dd {
    color: var(--ue-ink-900);
}

.first-contract-action {
    border-radius: var(--ue-radius-sm);
    border-left-color: var(--ue-orange-500);
}

.profile-documents-panel > p {
    margin: -8px 0 18px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.profile-documents-list {
    gap: 12px;
}

.profile-document-row {
    grid-template-columns: minmax(220px, 0.75fr) minmax(260px, 1fr) auto;
    gap: 12px 16px;
    padding: 18px;
    border: 1px solid #e0eaf0;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.profile-document-row:last-child {
    border-bottom: 1px solid #e0eaf0;
}

.profile-document-copy {
    grid-column: 1 / -1;
}

.profile-document-copy h3 {
    margin-bottom: 4px;
    color: var(--ue-ink-900);
    font-size: 16px;
    font-weight: 800;
}

.profile-document-copy p {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.profile-document-upload-button,
.profile-document-row button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--ue-radius-sm);
}

.profile-document-upload-button {
    background: var(--ue-blue-700);
    font-size: 13px;
}

.profile-document-name {
    min-height: 44px;
}

.profile-document-link {
    grid-column: 2 / -1;
    width: max-content;
    font-size: 13px;
}

.mandate-form {
    gap: 20px;
    margin-top: 24px;
}

.mandate-form-fields {
    display: grid;
    gap: 20px;
}

.mandate-tax-information {
    min-width: 0;
    margin-bottom: 20px;
    border: 1px solid #dbe5ec;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
    overflow-wrap: anywhere;
}

.mandate-tax-information > summary {
    padding: 16px;
    color: var(--ue-blue-700);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mandate-tax-information > summary:focus-visible {
    outline: 2px solid var(--ue-blue-700);
    outline-offset: 3px;
    border-radius: var(--ue-radius-sm);
}

.mandate-tax-information-body {
    padding: 8px 16px 16px;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.65;
}

.mandate-tax-information-body h3,
.mandate-tax-information-body h4 {
    font-size: 14px;
    line-height: 1.5;
}

.mandate-tax-information-body h3 {
    margin: 0 0 16px;
}

.mandate-tax-information-body h4 {
    margin: 24px 0 8px;
}

.mandate-tax-information-body p {
    max-width: 80ch;
    margin: 0 0 12px;
    color: var(--ue-ink-700);
    font-weight: 400;
}

.mandate-tax-information-body p:last-child {
    margin-bottom: 0;
}

.mandate-panel > p {
    margin: -8px 0 20px;
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.55;
}

.mandate-status,
.identity-reuse-notice,
.mandate-condition-notice {
    border-radius: var(--ue-radius-sm);
}

.mandate-status {
    border: 1px solid #dbe5ec;
    border-left: 4px solid #8da9c4;
    background: var(--ue-blue-50);
    font-size: 13px;
}

.identity-reuse-notice {
    border-color: #dbe5ec;
}

.mandate-panel .profile-form-grid {
    gap: 15px;
}

.mandate-criminal-declaration {
    margin-top: 18px;
}

.mandate-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mandate-document-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 17px;
    border-color: #dce7ee;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.mandate-document-card.is-read {
    border-color: #b8dfc8;
    background: #f3faf6;
}

.mandate-document-card h3 {
    color: var(--ue-ink-900);
    font-size: 15px;
}

.mandate-document-card .button {
    width: 100%;
}

.mandate-document-card .check-card,
.mandate-document-card .hint {
    grid-column: auto;
}

.mandate-document-language {
    background: var(--ue-blue-800);
}

.check-card {
    border-color: #dce7ee;
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
}

.check-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    align-self: center;
    box-sizing: border-box;
}

.check-card:hover {
    border-color: #b9d2e3;
    background: #f8fbfd;
}

.check-card:has(input:focus-visible) {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.check-card:has(input:checked) {
    border-color: #ffb69f;
    background: #fff8f4;
}

.bdd-check-card {
    border-left-color: var(--ue-orange-500);
}

@media (max-width: 1260px) {
    .profile-data-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-data-grid .profile-form-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .profile-data-grid .profile-form-grid .wide {
        grid-column: 1 / -1;
    }

    .mandate-document-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-document-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .profile-document-upload-button {
        grid-column: 1;
    }

    .profile-document-name {
        grid-column: 1;
    }

    .profile-document-row button {
        grid-column: 2;
        grid-row: 3;
    }

    .profile-document-link {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .profile-section-nav {
        top: calc(var(--app-topbar-height) + 128px);
        margin-inline: -2px;
    }

    .page-title-condensed .profile-section-nav {
        top: calc(var(--app-topbar-height) + 54px);
    }

    .profile-grid,
    .profile-data-grid,
    .profile-status-sections,
    #profile-account-data,
    #profile-store-data,
    #profile-documents,
    #profile-mandate {
        scroll-margin-top: calc(var(--app-topbar-height) + 122px);
    }

    .feature-panel.member-progress-panel,
    .feature-panel.profile-banner-panel,
    .feature-panel.profile-section,
    .profile-documents-panel,
    .mandate-panel {
        padding: 18px 15px;
    }

    .profile-banner-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }

    .profile-banner-dialog-shell {
        max-height: calc(100vh - 20px);
    }

    .profile-banner-dialog header,
    .profile-banner-dialog footer {
        padding: 14px;
    }

    .profile-banner-dialog header p {
        display: none;
    }

    .profile-banner-dialog-media {
        padding: 12px;
    }

    .profile-banner-dialog footer .button,
    .profile-banner-dialog footer button {
        flex: 1 1 0;
    }

    .member-progress-content {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .profile-data-grid .profile-form-grid,
    .mandate-check-grid,
    .profile-verification-requirements,
    .first-contract-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-document-row {
        grid-template-columns: minmax(0, 1fr);
        padding: 15px;
    }

    .profile-document-upload-button,
    .profile-document-name,
    .profile-document-row button,
    .profile-document-link {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }

    .first-contract-action {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Contract workspaces */

.contracts-toolbar {
    margin-bottom: 18px;
    padding: 20px 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: linear-gradient(135deg, #ffffff 0%, var(--ue-blue-50) 100%);
    box-shadow: var(--ue-shadow-sm);
}

.contracts-toolbar strong {
    color: var(--ue-ink-900);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.contracts-toolbar span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.contracts-toolbar .compact-actions {
    gap: 9px;
}

.contracts-toolbar .button {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 13px;
}

.contracts-summary-grid {
    gap: 12px;
    margin-bottom: 18px;
}

.contracts-summary-grid article {
    position: relative;
    overflow: hidden;
    padding: 17px 19px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.contracts-summary-grid article::after {
    position: absolute;
    top: 16px;
    right: 0;
    width: 3px;
    height: 38px;
    border-radius: 3px 0 0 3px;
    background: var(--ue-blue-500);
    content: "";
}

.contracts-summary-grid article:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ue-navy-900), var(--ue-blue-600));
}

.contracts-summary-grid article:first-child::after {
    background: var(--ue-orange-500);
}

.contracts-summary-grid span {
    color: var(--ue-ink-500);
    font-size: 13px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.contracts-summary-grid strong {
    margin-top: 7px;
    color: var(--ue-ink-900);
    font-size: 27px;
    font-weight: 800;
}

.contracts-summary-grid article:first-child span {
    color: rgba(255, 255, 255, 0.7);
}

.contracts-summary-grid article:first-child strong {
    color: #ffffff;
}

.contracts-filter-panel {
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.contracts-filter-panel label {
    margin-bottom: 9px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
}

.contracts-filter-panel input,
.contracts-filter-panel select {
    min-height: 42px;
}

.contract-card-grid-personal {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.contract-card-grid-downline {
    display: none;
}

.contracts-table-section-personal,
.contract-card-grid-personal + .empty-filter-message + .contracts-table-section-personal {
    display: none;
}

.contract-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.contract-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ue-blue-600), var(--ue-orange-500));
    content: "";
}

.contract-card:hover {
    border-color: #b8d1e3;
    box-shadow: var(--ue-shadow-md);
    transform: translateY(-2px);
}

.contract-card-header {
    margin: 3px 0 16px;
    padding-bottom: 14px;
    border-color: #e2ebf1;
}

.contract-card span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.contract-card-header strong {
    margin-top: 5px;
    color: var(--ue-ink-900);
    font-size: 17px;
    font-weight: 800;
}

.contract-card .workflow-badge {
    display: inline-flex;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.contract-card-main {
    gap: 13px 17px;
}

.contract-card-main > div {
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf2f5;
}

.contract-card-main strong {
    margin-top: 4px;
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 750;
}

.contract-card-main small {
    display: block;
    margin-top: 3px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.contract-card-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-color: #e2ebf1;
}

.contract-card-actions .button,
.contract-card-actions button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
}

.contracts-table-section {
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.contracts-table th,
.contracts-table td {
    padding: 13px 12px;
    border-color: #e4edf3;
}

.contracts-table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
}

.contracts-table td {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 650;
}

.contracts-table td span:not(.ticket-status) {
    color: var(--ue-ink-500);
}

.contract-table-footer {
    padding: 12px 14px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.contract-pagination button {
    border-color: var(--ue-line);
    background: var(--ue-blue-50);
    box-shadow: none;
    color: var(--ue-blue-800);
}

.contract-pagination button:hover,
.contract-pagination button:focus-visible {
    box-shadow: none;
}

@media (max-width: 1100px) {
    .contract-card-grid-personal {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .contract-card-grid-downline {
        display: grid;
    }

    .contracts-table-section-downline {
        display: none;
    }
}

@media (max-width: 720px) {
    .contracts-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .contracts-toolbar .compact-actions,
    .contracts-toolbar .button {
        width: 100%;
    }

    .contracts-summary-grid,
    .contracts-filter-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .contract-card-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Community workspace */

.community-titlebar {
    margin-bottom: 24px;
}

.community-titlebar p {
    max-width: 760px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--ue-orange-600);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.community-search-band,
.community-table-section,
.community-tree-section {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: var(--ue-surface);
    box-shadow: var(--ue-shadow-sm);
}

.community-workspace-heading,
.community-section-heading,
.tree-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.community-workspace-heading h2,
.community-section-heading h2,
.tree-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.18;
}

.community-workspace-heading p,
.community-section-heading p,
.tree-heading p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.55;
}

.community-toolbar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
}

.community-toolbar .button,
.community-search-form button,
.tree-heading .button,
.tree-controls button {
    min-height: 40px;
    padding: 0 15px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.community-search-form {
    gap: 14px;
    padding: 18px;
    border: 1px solid #e0eaf2;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.community-search-form .search-row {
    gap: 12px;
}

.community-search-form .search-row-top {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.community-search-form .search-row:not(.search-row-top) {
    grid-template-columns: repeat(3, minmax(145px, 1fr)) repeat(2, minmax(125px, 0.72fr));
}

.community-search-form .field,
.tree-controls .field {
    gap: 9px;
}

.community-search-form label,
.tree-controls label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.community-search-form input,
.tree-controls input,
.tree-controls select {
    min-height: 42px;
    border-color: #c8d9e6;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.community-search-form input:focus,
.tree-controls input:focus,
.tree-controls select:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.community-member-results {
    top: calc(100% + 4px);
    overflow: hidden auto;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-md);
}

.community-member-result {
    min-height: 52px;
    padding: 10px 12px;
    border-color: #e5edf3;
    color: var(--ue-ink-900);
}

.community-member-result:hover,
.community-member-result:focus-visible {
    background: var(--ue-blue-50);
}

.search-actions {
    margin-top: 2px;
}

.community-result-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid var(--ue-line);
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
}

.community-legends {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #e1eaf1;
    border-radius: var(--ue-radius-sm);
    background: #f8fbfd;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.community-legends > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.community-legends .badge,
.community-legends .rank-pill,
.rank-legend .rank-pill {
    min-height: 23px;
    padding-inline: 8px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.025em;
}

.community-table-section .responsive-table {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
}

.community-table th,
.community-table td {
    padding: 12px 11px;
    border-color: #e4edf3;
}

.community-table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.055em;
}

.community-table td {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 650;
}

.community-table tbody tr:hover td {
    background: #f8fbfd;
}

.community-tree-section {
    padding: 24px;
}

.tree-heading .root-button {
    flex: 0 0 auto;
}

.tree-controls {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 300px) auto;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e0eaf2;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.rank-legend {
    gap: 6px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #e5edf3;
    border-radius: var(--ue-radius-sm);
    background: #fafcfe;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.community-tree-toolbar {
    margin: 0 0 10px;
}

.community-tree-zoom-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    flex-basis: 34px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    box-shadow: none;
    color: var(--ue-blue-800);
    font-size: 19px;
}

.community-tree-zoom-button:hover,
.community-tree-zoom-button:focus-visible {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-50);
    box-shadow: var(--ue-focus);
    color: var(--ue-blue-800);
}

.community-tree-viewport {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background:
        linear-gradient(rgba(7, 84, 166, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 84, 166, 0.035) 1px, transparent 1px),
        #fafdff;
    background-size: 24px 24px;
}

.community-tree-map {
    position: relative;
}

.community-tree-connectors {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}

.community-tree-connectors path {
    fill: none;
    stroke: #c8dae7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.community-tree-map.is-svg-connected .tree-children::before,
.community-tree-map.is-svg-connected .tree-children > .tree-node::before {
    display: none;
}

.community-tree-map.is-svg-connected .tree-node {
    position: relative;
    z-index: 1;
}

.community-tree-map .tree-root-summary,
.community-tree-map .tree-root-summary:hover,
.community-tree-map .tree-root-summary:focus-visible {
    cursor: default;
}

.tree-node summary {
    border: 1px solid #b9d8ea;
    border-radius: var(--ue-radius-md);
    background: linear-gradient(145deg, #eaf7fd, #d5edf8);
    box-shadow: 0 6px 15px rgba(5, 47, 92, 0.08);
    color: var(--ue-ink-900);
}

.tree-node summary:hover,
.tree-node summary:focus-visible {
    border-color: var(--ue-blue-500);
    box-shadow: var(--ue-focus), 0 8px 20px rgba(5, 47, 92, 0.11);
}

.tree-children .tree-node summary {
    border-color: #d2e2ed;
    background: #ffffff;
}

.tree-person small,
.tree-meta {
    color: var(--ue-ink-500);
}

@media (max-width: 900px) {
    .community-workspace-heading,
    .community-section-heading,
    .tree-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .community-toolbar {
        justify-content: flex-start;
    }

    .tree-heading .root-button {
        align-self: flex-start;
    }

    .tree-controls {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr);
    }

    .community-search-form .search-row:not(.search-row-top) {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .tree-submit {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .community-search-band,
    .community-table-section,
    .community-tree-section {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .community-search-form {
        padding: 14px;
    }

    .community-search-form .search-row,
    .community-search-form .search-row-top,
    .community-search-form .search-row:not(.search-row-top),
    .tree-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-toolbar,
    .community-toolbar .button,
    .search-actions button,
    .tree-heading .root-button,
    .tree-submit button {
        width: 100%;
    }

    .community-result-count {
        align-self: flex-start;
    }

    .community-legends {
        display: grid;
    }

    .community-table-section .responsive-table {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .community-table {
        min-width: 0;
        display: block;
        background: transparent;
    }

    .community-table thead {
        display: none;
    }

    .community-table tbody,
    .community-table tr,
    .community-table td {
        display: block;
        width: 100%;
    }

    .community-table tbody {
        display: grid;
        gap: 12px;
    }

    .community-table tr {
        overflow: hidden;
        border: 1px solid var(--ue-line);
        border-radius: var(--ue-radius-md);
        background: #ffffff;
        box-shadow: var(--ue-shadow-sm);
    }

    .community-table td {
        display: grid;
        grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        padding: 10px 12px;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .community-table td::before {
        color: var(--ue-ink-500);
        content: attr(data-label);
        font-size: 13px;
        font-weight: 850;
        letter-spacing: 0.045em;
        text-align: left;
        text-transform: uppercase;
    }

    .community-table .empty-table {
        display: block;
        padding: 24px 16px;
        text-align: center !important;
    }

    .community-table .empty-table::before {
        display: none;
    }

    .tree-submit {
        grid-column: auto;
    }
}

/* Invoice workspace */

.invoice-page-header {
    margin: -30px -30px 24px;
    padding: 28px 36px;
    background: #ffffff;
}

.invoice-page-header h1 {
    color: var(--ue-ink-900);
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 820;
}

.invoice-page-header p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    line-height: 1.5;
}

.invoice-list-workspace {
    display: grid;
    gap: 20px;
}

.creditreform-notice {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin: 0 0 20px;
    padding: 22px 26px;
    border: 1px solid #bfe9f8;
    border-left: 4px solid #009ee2;
    border-radius: var(--ue-radius-lg);
    background: linear-gradient(110deg, #ffffff 0%, #f3fbfe 100%);
    box-shadow: var(--ue-shadow-sm);
}

.invoice-list-workspace > .creditreform-notice {
    margin-bottom: 0;
}

.creditreform-notice__logo {
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.creditreform-notice__logo:focus-visible {
    outline: 0;
    box-shadow: var(--ue-focus);
}

.creditreform-notice__logo img {
    display: block;
    width: 112px;
    height: 112px;
}

.creditreform-notice__content {
    min-width: 0;
}

.creditreform-notice__content h2 {
    margin: 3px 0 6px;
    color: var(--ue-ink-900);
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.25;
}

.creditreform-notice__content p {
    max-width: 850px;
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.55;
}

.creditreform-notice__content > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #007fb5;
    font-size: 13px;
    font-weight: 850;
}

.creditreform-notice__content > a:hover,
.creditreform-notice__content > a:focus-visible {
    color: var(--ue-navy-900);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.invoice-summary-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin: 0;
}

.invoice-summary-grid article {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 18px 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.invoice-summary-grid article::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--ue-blue-600);
    content: "";
}

.invoice-summary-grid .invoice-summary-due::before {
    background: var(--ue-orange-500);
}

.invoice-summary-grid span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.invoice-summary-grid strong {
    margin-top: 12px;
    color: var(--ue-ink-900);
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 820;
}

.invoice-summary-due strong {
    color: var(--ue-orange-600);
}

.invoice-workspace-heading {
    margin-top: 4px;
    padding: 20px 22px 0;
    border: 1px solid var(--ue-line);
    border-bottom: 0;
    border-radius: var(--ue-radius-lg) var(--ue-radius-lg) 0 0;
    background: #ffffff;
}

.invoice-workspace-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(19px, 1.7vw, 24px);
}

.invoice-workspace-heading p {
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.invoice-legends {
    align-items: flex-start;
    gap: 9px;
    margin: -20px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--ue-line);
    border-top: 0;
    background: #ffffff;
}

.invoice-legends > div {
    justify-content: flex-start;
    gap: 6px;
}

.invoice-legends > div > strong {
    min-width: 155px;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.invoice-status {
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.015em;
}

.invoice-table-toolbar {
    margin: -20px 0 0;
    padding: 16px 22px;
    border: 1px solid var(--ue-line);
    border-top-color: #e8eef3;
    background: #f9fbfd;
}

.invoice-table-tools {
    flex-wrap: wrap;
}

.invoice-tool-button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.invoice-tool-button:hover,
.invoice-tool-button:focus-visible {
    border-color: var(--ue-blue-500);
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
}

.invoice-page-size,
.invoice-global-search {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 700;
}

.invoice-page-size select,
.invoice-global-search input {
    min-height: 38px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.invoices-table-section {
    margin-top: -20px;
    border: 1px solid var(--ue-line);
    border-top: 0;
    border-radius: 0 0 var(--ue-radius-lg) var(--ue-radius-lg);
    box-shadow: var(--ue-shadow-sm);
}

.invoices-table th,
.invoices-table td {
    padding: 12px 10px;
    border-color: #e4edf3;
}

.invoices-table th {
    background: var(--ue-blue-50);
}

.invoice-sort-button {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
}

.invoices-table tbody tr:nth-child(odd) {
    background: #fbfdfe;
}

.invoices-table tbody tr:hover {
    background: #f1f7fb;
}

.invoices-table td {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 600;
}

.invoice-number-link {
    color: var(--ue-blue-800);
    font-weight: 800;
}

.invoice-download-button {
    min-height: 32px;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-action-orange);
    font-size: 13px;
}

.invoice-table-footer {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
    color: var(--ue-ink-500);
    font-size: 13px;
}

.invoice-pagination button {
    min-height: 34px;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
}

.invoice-empty-state {
    margin: 0;
}

@media (max-width: 900px) {
    .invoice-summary-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 700px) {
    .invoice-page-header {
        margin: -20px -14px 20px;
        padding: 22px 16px;
    }

    .invoice-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .invoice-summary-grid article {
        min-height: 96px;
    }

    .creditreform-notice {
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        padding: 18px;
    }

    .creditreform-notice__logo img {
        width: 78px;
        height: 78px;
    }

    .invoice-workspace-heading {
        padding: 17px 16px 0;
    }

    .invoice-legends {
        padding: 16px;
    }

    .invoice-legends > div > strong {
        width: 100%;
        min-width: 0;
    }

    .invoice-table-toolbar {
        padding: 16px;
    }

    .invoices-table-section {
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .invoices-table tbody {
        display: grid;
        gap: 12px;
    }

    .invoices-table tbody tr {
        margin: 0;
        border-radius: var(--ue-radius-md);
        box-shadow: var(--ue-shadow-sm);
    }

    .invoices-table td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        font-weight: 850;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .creditreform-notice {
        grid-template-columns: minmax(0, 1fr);
    }

    .creditreform-notice__logo {
        width: 78px;
    }
}

/* Ticket workspace */

.ticket-page-hero {
    margin-bottom: 22px;
}

.ticket-page-hero > .button {
    display: flex;
    width: max-content;
    min-height: 42px;
    align-self: center;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.tickets-summary,
.ticket-detail-summary {
    min-height: 0;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.tickets-summary {
    position: relative;
    grid-template-columns: minmax(170px, 0.28fr) 1fr;
    overflow: hidden;
}

.tickets-summary::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--ue-orange-500);
    content: "";
}

.tickets-summary span,
.ticket-detail-summary span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.tickets-summary strong {
    color: var(--ue-ink-900);
    font-size: 31px;
    font-weight: 820;
}

.ticket-status-legend {
    gap: 6px;
}

.ticket-status {
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.015em;
}

.ticket-list-panel,
.ticket-request-panel,
.ticket-attachments-panel,
.ticket-thread,
.ticket-reply-panel {
    min-height: 0;
    padding: 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.ticket-list-panel .table-heading {
    align-items: flex-end;
    margin-bottom: 18px;
}

.ticket-list-panel .table-heading h2,
.ticket-panel-heading h2,
.ticket-thread-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(19px, 1.7vw, 24px);
}

.ticket-list-panel .table-heading p,
.ticket-panel-heading p,
.ticket-thread-heading p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.5;
}

.ticket-list-panel .table-search {
    min-height: 40px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
    font-size: 13px;
}

.ticket-list-panel .responsive-table {
    overflow: auto;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
}

.ticket-list-panel table {
    background: #ffffff;
}

.ticket-list-panel th,
.ticket-list-panel td {
    padding: 12px 10px;
    border-color: #e4edf3;
}

.ticket-list-panel th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.ticket-list-panel td {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 600;
}

.ticket-list-panel tbody tr:hover td {
    background: #f8fbfd;
}

.ticket-list-panel .table-action {
    min-height: 32px;
    padding: 0 11px;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-800);
    color: #ffffff;
    font-size: 13px;
}

.ticket-list-panel .table-action:hover,
.ticket-list-panel .table-action:focus-visible {
    background: var(--ue-navy-900);
    color: #ffffff;
}

.ticket-form {
    display: grid;
    gap: 20px;
}

.ticket-panel-heading,
.ticket-thread-heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6edf3;
}

.ticket-form .profile-form-grid {
    gap: 16px;
}

.ticket-form .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.ticket-form .field > label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
    min-height: 42px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.ticket-form textarea {
    padding: 12px;
    line-height: 1.55;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.ticket-form .hint {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.45;
}

.ticket-attachments-panel .profile-documents-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ticket-attachments-panel .profile-document-row {
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.ticket-attachments-panel .profile-document-copy h3 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 13px;
}

.ticket-attachments-panel .profile-document-upload-button {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.ticket-attachments-panel .profile-document-name {
    width: 100%;
    min-height: 38px;
    background: #ffffff;
    font-size: 13px;
}

.ticket-form > .actions {
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.ticket-form > .actions button {
    min-width: 170px;
    min-height: 42px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.ticket-detail-summary {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.ticket-detail-summary > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid #e6edf3;
}

.ticket-detail-summary > div:last-child {
    border-right: 0;
}

.ticket-detail-summary strong {
    max-width: 100%;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.ticket-detail-summary strong:not(.ticket-status) {
    color: var(--ue-ink-900);
}

.ticket-detail-summary strong.ticket-status {
    font-size: 13px;
}

.ticket-thread {
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fbfd;
}

.ticket-message {
    position: relative;
    max-width: min(78%, 820px);
    gap: 10px;
    padding: 15px 17px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: 0 3px 10px rgba(5, 47, 92, 0.05);
}

.ticket-message.customer {
    border-top-left-radius: 3px;
    background: #ffffff;
}

.ticket-message.staff {
    border-color: #c4ddeb;
    border-top-right-radius: 3px;
    background: #eaf5fb;
}

.ticket-message header {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.ticket-message header span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 650;
}

.ticket-message p {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.55;
}

.ticket-attachment-links a {
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-800);
    color: #ffffff;
    font-size: 13px;
}

.ticket-attachment-links a:hover,
.ticket-attachment-links a:focus-visible {
    background: var(--ue-navy-900);
    color: #ffffff;
}

.ticket-reply-panel {
    padding: 22px;
}

@media (max-width: 900px) {
    .ticket-attachments-panel .profile-documents-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-detail-summary > div:nth-child(2) {
        border-right: 0;
    }

    .ticket-detail-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid #e6edf3;
    }
}

@media (max-width: 700px) {
    .ticket-page-hero {
        align-items: stretch;
    }

    .ticket-page-hero > .button {
        width: 100%;
    }

    .tickets-summary,
    .ticket-detail-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-status-legend {
        justify-content: flex-start;
    }

    .ticket-list-panel,
    .ticket-request-panel,
    .ticket-attachments-panel,
    .ticket-thread,
    .ticket-reply-panel {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .ticket-list-panel .table-heading {
        align-items: stretch;
    }

    .ticket-list-panel .responsive-table {
        overflow: visible;
        border: 0;
    }

    .ticket-list-panel tbody {
        display: grid;
        gap: 12px;
    }

    .ticket-list-panel tr {
        overflow: hidden;
        padding: 8px 12px;
        border: 1px solid var(--ue-line);
        border-radius: var(--ue-radius-md);
        box-shadow: var(--ue-shadow-sm);
    }

    .ticket-list-panel td {
        grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
        gap: 10px;
        padding: 9px 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .ticket-list-panel td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        letter-spacing: 0.035em;
        text-align: left;
        text-transform: uppercase;
    }

    .ticket-list-panel .ticket-row-action {
        justify-content: stretch;
    }

    .ticket-list-panel .table-action {
        width: 100%;
    }

    .ticket-detail-summary > div,
    .ticket-detail-summary > div:nth-child(2),
    .ticket-detail-summary > div:last-child {
        padding: 15px 16px;
        border-right: 0;
        border-bottom: 1px solid #e6edf3;
    }

    .ticket-detail-summary > div:last-child {
        border-bottom: 0;
    }

    .ticket-message,
    .ticket-message.staff {
        max-width: none;
        margin-left: 0;
    }

    .ticket-form > .actions button {
        width: 100%;
    }
}

/* Reusable operational forms */

.contract-form {
    gap: 20px;
}

.contract-form > .feature-panel,
.contract-form > .form-section {
    min-height: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

/* Contract sections use a lighter hierarchy for long, task-oriented forms. */
.contract-form > .contract-section {
    padding: 28px 30px 30px;
    overflow: visible;
}

.contract-form > section > h2 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5edf3;
    color: var(--ue-ink-900);
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.2;
}

.contract-form > .contract-section > h2:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    padding: 0 0 17px;
    border: 0;
    border-bottom: 1px solid #dce8f0;
    border-radius: 0;
    background: transparent;
    color: var(--ue-ink-900);
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 800;
    line-height: 1.3;
}

.contract-form > .contract-section > h2:first-child::before {
    display: block;
    width: 5px;
    height: 28px;
    flex: 0 0 5px;
    margin: 0;
    border-radius: 999px;
    background: var(--ue-orange-500);
    content: "";
}

.contract-form .profile-form-grid {
    gap: 22px 24px;
}

.contract-form .profile-form-grid > div,
.contract-form .profile-form-grid > .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.contract-form .profile-form-grid > div > label:first-child,
.contract-form .profile-form-grid > .field > label:first-child {
    margin: 0 0 2px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.contract-form .profile-form-grid input:where(:not([type="checkbox"]):not([type="radio"])),
.contract-form .profile-form-grid select,
.contract-form .profile-form-grid textarea {
    min-height: 48px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    color: var(--ue-ink-900);
    font-size: 13px;
}

.contract-form .profile-form-grid textarea {
    padding: 12px;
    line-height: 1.55;
}

.contract-form .profile-form-grid input:where(:not([type="checkbox"]):not([type="radio"])):focus,
.contract-form .profile-form-grid select:focus,
.contract-form .profile-form-grid textarea:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.contract-form .profile-form-grid input[readonly],
.contract-form .profile-form-grid input:disabled {
    border-color: #dfe8ef;
    background: #f6f9fb;
    color: var(--ue-ink-500);
}

.contract-form > .actions {
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.contract-form > .actions .button,
.contract-form > .actions button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

/* Prospect onboarding */

.new-prospect-form {
    max-width: 1180px;
    margin-inline: auto;
}

.new-prospect-form .form-section {
    margin-bottom: 0;
}

.new-prospect-phone {
    grid-template-columns: minmax(125px, 0.38fr) minmax(0, 1fr);
    gap: 8px;
}

.new-prospect-consent {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #d5e4ee;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
}

.new-prospect-consent label {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.new-prospect-next-steps {
    counter-reset: prospect-step;
    gap: 12px;
    margin: 0;
}

.new-prospect-next-steps .feature-panel {
    position: relative;
    min-height: 132px;
    padding: 18px 18px 18px 58px;
    border: 1px dashed #bcd1df;
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
    box-shadow: none;
    counter-increment: prospect-step;
}

.new-prospect-next-steps .feature-panel::before {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--ue-blue-100);
    color: var(--ue-blue-800);
    content: counter(prospect-step);
    font-size: 13px;
    font-weight: 850;
}

.new-prospect-next-steps .feature-panel h2 {
    margin: 0 0 8px;
    color: var(--ue-ink-900);
    font-size: 16px;
}

.new-prospect-next-steps .feature-panel p {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
}

/* Bank practices */

.bank-practices-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: var(--ue-surface);
    box-shadow: var(--ue-shadow-sm);
}

.bank-practices-summary dt {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 700;
}

.bank-practices-summary dd {
    margin: 8px 0 0;
    text-align: center;
    color: var(--ue-ink-900);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.bank-practice-status,
.contracts-table td .bank-practice-status,
.contract-card .bank-practice-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: max-content;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bank-status-bg, #e8f0f6);
    color: var(--bank-status-ink, #174f73);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.bank-practice-status--inserted { --bank-status-bg: #e8f0f6; --bank-status-ink: #174f73; }
.bank-practice-status--to_verify { --bank-status-bg: #fff1d6; --bank-status-ink: #7b5213; }
.bank-practice-status--in_progress { --bank-status-bg: #dceefa; --bank-status-ink: #0754a6; }
.bank-practice-status--completed { --bank-status-bg: #e3f4e7; --bank-status-ink: #246d37; }
.bank-practice-status--rejected { --bank-status-bg: #ffe7e3; --bank-status-ink: #a72f20; }

.bank-practices-table-section { min-width: 0; }
.bank-practices-table { min-width: 1080px; }
.bank-practices-table td { vertical-align: middle; font-weight: 500; }
.bank-practices-table td:first-child { min-width: 175px; }
.bank-practices-table td:first-child strong,
.bank-practice-date { white-space: nowrap; }
.bank-practice-secondary { display: block; margin-top: 4px; font-weight: 500; }
.bank-practice-subject { min-width: 220px; overflow-wrap: anywhere; }
.bank-practice-meter { min-width: 150px; max-width: 190px; overflow-wrap: anywhere; }
.bank-practices-table tbody tr:hover { background: var(--ue-blue-50); }
.bank-practices-table-section .table-scroll:focus-visible { outline: 3px solid var(--ue-blue-500); outline-offset: -3px; }
.bank-practices-cards .contract-card-header { flex-wrap: wrap; gap: 12px; }
.bank-practices-cards .contract-card-main strong { overflow-wrap: anywhere; font-weight: 600; }
.bank-practices-cards .contract-card::before { display: none; }

@media (min-width: 360px) and (max-width: 900px) {
    .bank-practices-cards .contract-card-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bank-practices-cards .bank-practice-wide { grid-column: 1 / -1; }
}

@media (max-width: 1250px) {
    .bank-practices-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .bank-practices-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 20px 12px; }
    .bank-practices-cards .contract-card-header { display: flex; align-items: flex-start; }
}

.bank-practice-form {
    max-width: 1180px;
    margin-inline: auto;
}

.bank-practices-hero + .alert + .contracts-toolbar,
.bank-practices-hero + .contracts-toolbar {
    margin-top: 0;
}

/* Family reconciliation */

.reconciliation-setting-panel,
.reconciliation-request-panel,
.reconciliation-columns > .feature-panel {
    min-height: 0;
    margin-bottom: 20px;
    padding: 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.reconciliation-panel-heading {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6edf3;
}

.reconciliation-panel-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(18px, 1.6vw, 23px);
}

.reconciliation-panel-heading p {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.5;
}

.reconciliation-state {
    min-height: 25px;
    padding: 3px 9px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.reconciliation-setting-form,
.reconciliation-request-form {
    padding: 16px;
    border: 1px solid #e0eaf1;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.reconciliation-consent-option {
    border-color: #d4e3ed;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
}

.reconciliation-consent-option strong {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.reconciliation-consent-option small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.reconciliation-setting-form > button,
.reconciliation-request-form > button {
    min-height: 40px;
    padding: 0 15px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.reconciliation-request-form .field label {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.reconciliation-request-form .field input {
    min-height: 42px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
}

.reconciliation-columns {
    gap: 20px;
}

.reconciliation-columns > .feature-panel {
    margin-bottom: 0;
}

.reconciliation-card {
    padding: 15px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f9fbfd;
}

.reconciliation-card > header strong {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.reconciliation-card > header div > span,
.reconciliation-card > p {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.reconciliation-empty-state {
    border-color: #bcd2e1;
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
    color: var(--ue-ink-700);
}

/* Store */

.store-grid {
    max-width: 1180px;
    margin-inline: auto;
}

.store-product {
    grid-template-columns: minmax(320px, 1.08fr) minmax(300px, 0.82fr);
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    box-shadow: var(--ue-shadow-md);
}

.store-product-media {
    min-height: 400px;
    padding: 34px;
    background:
        radial-gradient(circle at 18% 18%, rgba(35, 143, 210, 0.16), transparent 32%),
        linear-gradient(145deg, #edf7fc, #dceefa);
}

.store-product-media img {
    border-radius: var(--ue-radius-md);
    box-shadow: 0 20px 44px rgba(5, 47, 92, 0.18);
}

.store-product-copy {
    gap: 16px;
    padding: 38px;
}

.store-product-copy > span {
    color: var(--ue-orange-600);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.store-product-copy h2 {
    color: var(--ue-ink-900);
    font-size: clamp(27px, 3vw, 38px);
}

.store-product-copy p {
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.6;
}

.store-product-meta strong,
.store-product-meta em {
    min-height: 30px;
    border-radius: 999px;
    font-size: 13px;
}

.store-product-copy > .button {
    align-self: flex-start;
    min-height: 42px;
    padding: 0 17px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

@media (max-width: 900px) {
    .store-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .store-product-media {
        min-height: 300px;
    }
}

@media (max-width: 700px) {
    .contract-form > .feature-panel,
    .contract-form > .form-section,
    .reconciliation-setting-panel,
    .reconciliation-request-panel,
    .reconciliation-columns > .feature-panel {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .contract-form > .contract-section {
        padding: 20px 18px 22px;
        overflow: visible;
    }

    .contract-form > .contract-section > h2:first-child {
        gap: 11px;
        margin: 0 0 10px;
        padding: 0 0 14px;
        font-size: 18px;
    }

    .contract-form > .contract-section > h2:first-child::before {
        height: 24px;
    }

    .contract-form .profile-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contract-form .profile-form-grid .wide {
        grid-column: auto;
    }

    .new-prospect-phone {
        grid-template-columns: minmax(0, 1fr);
    }

    .new-prospect-next-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .contract-form > .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-form > .actions .button,
    .contract-form > .actions button,
    .store-product-copy > .button {
        width: 100%;
    }

    .reconciliation-setting-form,
    .reconciliation-request-form {
        padding: 13px;
    }

    .store-product-media {
        min-height: 230px;
        padding: 20px;
    }

    .store-product-copy {
        padding: 24px 20px;
    }
}

/* Coming soon */

.coming-soon-workspace {
    max-width: 1180px !important;
    margin: 0 auto;
}

.coming-soon-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    min-height: 540px;
    overflow: hidden;
    border: 1px solid #cfe1ef;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(8, 58, 102, 0.11);
}

.coming-soon-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 68px);
}

.coming-soon-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: 0 0 30px;
    padding: 8px 13px;
    border: 1px solid #f9c9b9;
    border-radius: 999px;
    color: #a93718;
    background: #fff5f1;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.coming-soon-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ue-orange-600);
    box-shadow: 0 0 0 4px rgba(245, 81, 37, 0.12);
}

.coming-soon-kicker {
    margin: 0 0 9px;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.coming-soon-copy h2 {
    max-width: 680px;
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 780;
    letter-spacing: -0.038em;
    line-height: 1.04;
}

.coming-soon-lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--ue-ink-700);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

.coming-soon-details {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
}

.coming-soon-details article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 15px 17px;
    border: 1px solid #dbe8f1;
    border-radius: 15px;
    background: #f8fbfd;
}

.coming-soon-detail-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--ue-blue-700), #1789c8);
    box-shadow: 0 9px 18px rgba(7, 84, 166, 0.18);
}

.coming-soon-detail-icon.is-calendar {
    color: var(--ue-orange-600);
    background: #fff0ea;
    box-shadow: none;
}

.coming-soon-detail-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.coming-soon-details h3 {
    margin: 1px 0 4px;
    color: var(--ue-ink-900);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.coming-soon-details p {
    margin: 0;
    color: var(--ue-ink-600);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.coming-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.coming-soon-actions .button {
    min-height: 44px;
    padding-inline: 19px;
    border-radius: 12px;
}

.coming-soon-visual {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    place-items: center;
    padding: 46px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.84), transparent 23%),
        radial-gradient(circle at 84% 78%, rgba(246, 82, 40, 0.24), transparent 25%),
        linear-gradient(145deg, #e8f5fc 0%, #cde9f7 52%, #afdaef 100%);
}

.coming-soon-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    mask-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), transparent 82%);
}

.coming-soon-orbit {
    position: absolute;
    border: 1px solid rgba(7, 84, 166, 0.16);
    border-radius: 50%;
}

.coming-soon-orbit.orbit-one {
    width: 360px;
    height: 360px;
}

.coming-soon-orbit.orbit-two {
    width: 470px;
    height: 470px;
    border-color: rgba(255, 255, 255, 0.52);
}

.coming-soon-spark {
    position: absolute;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: var(--ue-orange-600);
    box-shadow: 0 8px 18px rgba(245, 81, 37, 0.24);
    transform: rotate(45deg);
}

.coming-soon-spark.spark-one {
    top: 23%;
    right: 17%;
}

.coming-soon-spark.spark-two {
    bottom: 18%;
    left: 17%;
    width: 11px;
    height: 11px;
    background: #ffffff;
    box-shadow: none;
}

.coming-soon-visual-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 300px);
    min-height: 330px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 28px 52px rgba(7, 62, 108, 0.16);
    text-align: center;
    backdrop-filter: blur(12px);
}

.coming-soon-visual-icon {
    display: grid;
    width: 104px;
    height: 104px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--ue-blue-800), #168cc9);
    box-shadow: 0 18px 34px rgba(7, 84, 166, 0.25);
}

.coming-soon-visual.is-gift-card .coming-soon-visual-icon {
    background: linear-gradient(145deg, var(--ue-orange-600), #ff7a48);
    box-shadow: 0 18px 34px rgba(245, 81, 37, 0.24);
}

.coming-soon-visual-icon svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.coming-soon-visual-card strong {
    color: var(--ue-ink-900);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.coming-soon-visual-card small {
    max-width: 200px;
    margin-top: 7px;
    color: var(--ue-ink-600);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .coming-soon-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .coming-soon-visual {
        min-height: 390px;
    }
}

@media (max-width: 700px) {
    .coming-soon-card {
        border-radius: 20px;
    }

    .coming-soon-copy {
        padding: 30px 20px 34px;
    }

    .coming-soon-status {
        margin-bottom: 24px;
    }

    .coming-soon-copy h2 {
        font-size: clamp(29px, 9vw, 38px);
    }

    .coming-soon-lead {
        margin-top: 16px;
        font-size: 15px;
    }

    .coming-soon-details {
        margin-top: 26px;
    }

    .coming-soon-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .coming-soon-actions .button {
        width: 100%;
    }

    .coming-soon-visual {
        min-height: 330px;
        padding: 32px 24px;
    }

    .coming-soon-orbit.orbit-one {
        width: 280px;
        height: 280px;
    }

    .coming-soon-orbit.orbit-two {
        width: 360px;
        height: 360px;
    }

    .coming-soon-visual-card {
        min-height: 260px;
    }

    .coming-soon-visual-icon {
        width: 88px;
        height: 88px;
        margin-bottom: 20px;
        border-radius: 25px;
    }

    .coming-soon-visual-icon svg {
        width: 52px;
        height: 52px;
    }
}

/* Administration workspaces */

.admin-page-hero {
    margin-bottom: 22px;
}

.admin-filter-toolbar,
.admin-tool-panel {
    max-width: none;
    min-height: 0;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.admin-filter-toolbar .inline-form {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-toolbar .field,
.admin-tool-panel .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.admin-filter-toolbar label,
.admin-tool-panel label,
.admin-wallet-grid label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.admin-filter-toolbar select,
.admin-filter-toolbar input,
.admin-tool-panel select,
.admin-tool-panel input,
.admin-wallet-grid input {
    min-height: 40px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.admin-filter-toolbar button,
.admin-tool-panel button,
.admin-wallet-grid button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.admin-tool-panel > h2,
.admin-tool-panel .admin-permissions-header h2,
.admin-wallet-grid h2 {
    margin: 0 0 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e6edf3;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.admin-search-form {
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e0eaf1;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.admin-impersonate-form {
    grid-template-columns: minmax(280px, 1fr) auto auto;
}

.admin-data-table,
.admin-results {
    max-width: none;
    overflow: hidden;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.admin-data-table .contracts-table th,
.admin-data-table .contracts-table td {
    padding: 12px 11px;
    border-color: #e4edf3;
}

.admin-data-table .contracts-table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.admin-data-table .contracts-table td {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 600;
}

.admin-data-table .contracts-table tbody tr:hover td {
    background: #f8fbfd;
}

.admin-data-table a:not(.button):not(.table-action) {
    color: var(--ue-blue-800);
    font-weight: 750;
}

.admin-data-table .table-action {
    color: #ffffff;
}

.admin-data-table .table-action:hover,
.admin-data-table .table-action:focus-visible {
    background: var(--ue-navy-900);
    color: #ffffff;
}

.negative-wallet-summary > .feature-panel {
    min-height: 0;
    padding: 20px;
}

.admin-search-form.negative-wallet-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

@media (max-width: 900px) {
    .admin-search-form.negative-wallet-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.negative-wallet-summary h2 {
    overflow-wrap: anywhere;
}

.negative-wallet-summary p {
    margin-bottom: 0;
}

.negative-wallet-results > p,
.negative-wallet-results > nav {
    padding: 12px 20px;
    margin: 0;
}

.admin-results-heading,
.wallet-recharge-admin-list-heading,
.wallet-recharge-admin-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-results-heading,
.wallet-recharge-admin-list-heading {
    padding: 17px 20px;
    border-bottom: 1px solid var(--ue-line);
    background: #ffffff;
}

.admin-results-heading h2,
.wallet-recharge-admin-list-heading h2,
.wallet-recharge-admin-filter-heading h2 {
    margin: 3px 0 0;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.admin-results-heading > span,
.wallet-recharge-admin-list-heading > span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-selection-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    padding: 26px;
    border: 1px dashed #bfd5e4;
    border-radius: var(--ue-radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, var(--ue-blue-50) 100%);
}

.admin-selection-empty-icon,
.admin-selected-account-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eaf4fb;
    color: var(--ue-blue-700);
}

.admin-selection-empty-icon svg,
.admin-selected-account-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.admin-selection-empty h2 {
    margin: 4px 0 6px;
    color: var(--ue-ink-900);
    font-size: 21px;
}

.admin-selection-empty p {
    max-width: 720px;
    margin: 0;
    color: var(--ue-ink-500);
    line-height: 1.55;
}

.admin-selected-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #cde0ec;
    border-radius: var(--ue-radius-lg);
    background: linear-gradient(120deg, #ffffff 0%, #f2f8fc 100%);
    box-shadow: var(--ue-shadow-sm);
}

.admin-selected-account-copy h2 {
    margin: 3px 0 2px;
    color: var(--ue-ink-900);
    font-size: 21px;
}

.admin-selected-account-copy p {
    margin: 0;
    color: var(--ue-ink-500);
    overflow-wrap: anywhere;
}

.admin-selected-account-balance {
    display: grid;
    gap: 3px;
    min-width: 150px;
    padding: 10px 14px;
    border-left: 1px solid #d4e3ed;
}

.admin-selected-account-balance span {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.admin-selected-account-balance strong {
    color: var(--ue-blue-800);
    font-size: 22px;
}

.admin-sensitive-notice {
    margin: 0;
    padding: 11px 12px;
    border-left: 3px solid var(--ue-blue-600);
    border-radius: 0 var(--ue-radius-sm) var(--ue-radius-sm) 0;
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.admin-sensitive-notice.is-danger {
    border-left-color: var(--ue-danger);
    background: #fff4f1;
}

.admin-table-empty {
    padding: 28px 18px !important;
    color: var(--ue-ink-500) !important;
    text-align: center;
}

.stacked-action-form {
    gap: 7px;
    padding: 11px;
    border: 1px solid #e0e9f0;
    border-radius: var(--ue-radius-sm);
    background: #f8fbfd;
}

.stacked-action-form input,
.stacked-action-form select,
.stacked-action-form textarea {
    min-height: 36px;
    min-width: 0;
    border-color: #cbdbe7;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
}

.stacked-action-form textarea {
    padding: 9px;
}

.stacked-action-form button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
}

.identity-ocr-detected {
    gap: 5px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #dce7ef;
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
    color: var(--ue-ink-500);
    font-size: 13px;
}

.identity-ocr-detected strong {
    color: var(--ue-ink-700);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.identity-ocr-fields label {
    color: var(--ue-ink-700);
    font-size: 13px;
}

.identity-duplicate-list {
    gap: 14px;
}

.identity-duplicate-card {
    min-height: 0;
    padding: 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    box-shadow: var(--ue-shadow-sm);
}

.identity-duplicate-people {
    gap: 12px;
}

.identity-duplicate-people > div {
    gap: 5px;
    padding: 15px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.identity-duplicate-people > div:first-child {
    border-left: 4px solid var(--ue-blue-600);
}

.identity-duplicate-people > div:last-child {
    border-left: 4px solid var(--ue-orange-500);
}

.identity-duplicate-people span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.identity-duplicate-people strong {
    color: var(--ue-ink-900);
    font-size: 15px;
}

.identity-duplicate-people small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.identity-duplicate-actions {
    margin-top: 14px;
}

.identity-duplicate-actions .actions {
    gap: 7px;
}

.mandate-audit-details {
    min-width: 260px;
    padding: 10px;
    border: 1px solid #dce7ef;
    border-radius: var(--ue-radius-sm);
    background: #f8fbfd;
}

.mandate-audit-details summary {
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.mandate-audit-details p,
.mandate-audit-details li,
.mandate-audit-details small {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.admin-wallet-grid {
    gap: 14px;
    margin-top: 20px;
}

.admin-wallet-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-wallet-debit-panel {
    border-top: 3px solid #f3b7aa !important;
}

.admin-wallet-history {
    margin-top: 18px;
}

.admin-wallet-grid > .feature-panel {
    min-height: 0;
    padding: 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.admin-wallet-grid form {
    display: grid;
    gap: 12px;
}

.admin-wallet-grid .readonly-grid {
    gap: 10px;
}

.permissions-grid {
    gap: 12px;
}

.admin-permissions-panel {
    min-height: 0;
    padding: 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    box-shadow: var(--ue-shadow-sm);
}

.admin-permissions-header {
    align-items: center;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--ue-line);
}

.admin-permissions-header .section-eyebrow {
    display: block;
}

.admin-permissions-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-permissions-header-actions a {
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
}

.permissions-account-summary,
.wallet-recharge-admin-overview {
    display: grid;
    gap: 11px;
}

.permissions-account-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 20px;
}

.permissions-account-summary > div,
.wallet-recharge-admin-stat {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.permissions-account-summary span,
.wallet-recharge-admin-stat span {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.permissions-account-summary strong,
.wallet-recharge-admin-stat strong {
    color: var(--ue-ink-900);
    font-size: 23px;
}

.permission-group {
    gap: 8px;
    padding: 14px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.permission-group legend {
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 800;
}

.permission-row {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border: 1px solid #e6edf3;
    border-radius: var(--ue-radius-sm);
}

.permission-row strong {
    color: var(--ue-ink-700);
    font-size: 13px;
}

.permission-row em {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.wallet-recharge-actions {
    min-width: 260px;
}

.wallet-recharge-actions .stacked-action-form {
    padding: 7px;
}

.wallet-recharge-admin-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 16px;
}

.wallet-recharge-admin-stat.is-pending {
    border-color: #ead8b0;
    background: #fffaf0;
}

.wallet-recharge-admin-stat.is-credited {
    border-color: #c8e4d3;
    background: #f2fbf6;
}

.wallet-recharge-admin-stat.is-failed {
    border-color: #efd0ca;
    background: #fff5f2;
}

.wallet-recharge-admin-filter-heading {
    align-items: center;
    margin-bottom: 16px;
}

.wallet-recharge-admin-filter-heading p {
    margin: 5px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.wallet-recharge-admin-filter-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.wallet-recharge-admin-filter-state span,
.wallet-recharge-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.wallet-recharge-admin-filter-state span {
    min-height: 30px;
    padding: 0 11px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
}

.wallet-recharge-admin-filter-state a {
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
}

.wallet-recharge-status-pill {
    min-height: 28px;
    padding: 0 10px;
    background: #eef3f6;
    color: var(--ue-ink-700);
    white-space: nowrap;
}

.wallet-recharge-status-pill.status-pending_payment,
.wallet-recharge-status-pill.status-pending_bank_transfer {
    background: #fff4d9;
    color: #7c5800;
}

.wallet-recharge-status-pill.status-credited {
    background: #e8f7ed;
    color: #19743d;
}

.wallet-recharge-status-pill.status-failed,
.wallet-recharge-status-pill.status-cancelled {
    background: #ffebe7;
    color: #a13220;
}

@media (max-width: 900px) {
    .admin-impersonate-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-impersonate-form .actions:last-child {
        grid-column: 1 / -1;
    }

    .wallet-recharge-admin-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-filter-toolbar,
    .admin-tool-panel,
    .identity-duplicate-card,
    .admin-wallet-grid > .feature-panel {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .admin-filter-toolbar .inline-form,
    .admin-search-form,
    .admin-impersonate-form,
    .permissions-grid,
    .admin-wallet-actions-grid,
    .permissions-account-summary,
    .wallet-recharge-admin-overview {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-results-heading,
    .wallet-recharge-admin-list-heading,
    .wallet-recharge-admin-filter-heading,
    .admin-selection-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-selected-account {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-selected-account-balance,
    .admin-selected-account > .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-selected-account-balance {
        padding: 12px 0 0;
        border-top: 1px solid #d4e3ed;
        border-left: 0;
    }

    .admin-permissions-header-actions,
    .wallet-recharge-admin-filter-state {
        justify-content: flex-start;
    }

    .admin-filter-toolbar .compact-actions,
    .admin-filter-toolbar button,
    .admin-search-form .actions,
    .admin-search-form button,
    .admin-impersonate-form .actions:last-child,
    .admin-impersonate-form .actions:last-child button {
        width: 100%;
    }

    .admin-data-table {
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .admin-data-table .contracts-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-data-table .contracts-table tr {
        overflow: hidden;
        padding: 8px 0;
        border: 1px solid var(--ue-line);
        border-radius: var(--ue-radius-md);
        background: #ffffff;
        box-shadow: var(--ue-shadow-sm);
    }

    .admin-data-table .contracts-table td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }

    .mandate-audit-details,
    .wallet-recharge-actions {
        min-width: 0;
    }

    .wallet-recharge-actions .stacked-action-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Specialist administration workflows */

.admin-special-filter {
    min-height: 0;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.admin-special-filter form {
    width: 100%;
}

.admin-special-filter .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.admin-special-filter label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.admin-special-filter input,
.admin-special-filter select {
    min-height: 40px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.admin-special-filter button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.calculator-orders-filters {
    grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(155px, 0.75fr)) auto;
    gap: 11px;
}

.calculator-orders-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin: 0 0 16px;
}

.calculator-orders-overview article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.calculator-orders-overview article.is-review {
    border-color: #ead8b0;
    background: #fffaf0;
}

.calculator-orders-overview span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calculator-orders-overview strong {
    color: var(--ue-ink-900);
    font-size: 27px;
    line-height: 1;
}

.calculator-orders-navigation {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
    scrollbar-width: thin;
}

.calculator-orders-navigation a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.calculator-orders-navigation a:hover,
.calculator-orders-navigation a:focus-visible {
    border-color: var(--ue-blue-200);
    background: #ffffff;
    outline: 0;
    box-shadow: var(--ue-shadow-sm);
}

.calculator-orders-navigation a span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: var(--ue-blue-700);
    color: #ffffff;
    font-size: 12px;
}

.calculator-orders-toolbar {
    display: block;
    padding: 0;
}

.calculator-orders-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--ue-line-soft);
}

.calculator-orders-filter-heading h2,
.calculator-orders-filter-heading p {
    margin: 0;
}

.calculator-orders-filter-heading h2 {
    color: var(--ue-ink-900);
    font-size: 18px;
}

.calculator-orders-filter-heading p {
    margin-top: 5px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.45;
}

.calculator-orders-filter-state {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff0e9;
    color: var(--ue-orange-700);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.calculator-orders-toolbar .calculator-orders-filters {
    padding: 18px 20px 20px;
}

.calculator-orders-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.calculator-orders-filter-actions:has(.secondary-button) {
    grid-column: 1 / -1;
}

.calculator-orders-filter-actions .button,
.calculator-orders-filter-actions button {
    min-height: 40px;
    white-space: nowrap;
}

.calculator-orders-list-section {
    overflow: hidden;
}

.calculator-orders-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--ue-line);
    background: #ffffff;
}

.calculator-orders-list-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 18px;
}

.calculator-orders-list-heading > span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 850;
}

.admin-review-overview,
.admin-ticket-overview {
    display: grid;
    gap: 11px;
    margin: 0 0 16px;
}

.admin-review-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-ticket-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-review-stat,
.admin-ticket-stat {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.admin-review-stat.is-pending,
.admin-review-stat.is-open,
.admin-ticket-stat.is-unassigned {
    border-color: #ead8b0;
    background: #fffaf0;
}

.admin-review-stat.is-completed,
.admin-review-stat.is-resolved {
    border-color: #c8e4d3;
    background: #f2fbf6;
}

.admin-ticket-stat.is-escalated {
    border-color: #efd0ca;
    background: #fff5f2;
}

.admin-review-stat span,
.admin-ticket-stat span {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.admin-review-stat strong,
.admin-ticket-stat strong {
    color: var(--ue-ink-900);
    font-size: 23px;
}

.admin-review-filter-heading,
.admin-review-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-review-filter-heading {
    align-items: center;
    margin-bottom: 16px;
}

.admin-review-filter-heading h2,
.admin-review-list-heading h2 {
    margin: 3px 0 0;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.admin-review-filter-heading p {
    margin: 5px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.45;
}

.admin-review-filter-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.admin-review-filter-state span,
.admin-review-list-heading > span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-review-filter-state a {
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
}

.admin-review-list-heading {
    padding: 17px 20px;
    border-bottom: 1px solid var(--ue-line);
    background: #ffffff;
}

.admin-review-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3f6;
    color: var(--ue-ink-700);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-review-status.status-pending,
.admin-review-status.status-pending_legal,
.admin-review-status.status-open {
    background: #fff4d9;
    color: #7c5800;
}

.admin-review-status.status-approved,
.admin-review-status.status-resolved,
.admin-review-status.status-closed {
    background: #e8f7ed;
    color: #19743d;
}

.admin-review-status.status-rejected {
    background: #ffebe7;
    color: #a13220;
}

.admin-review-empty {
    border-radius: 0 0 var(--ue-radius-lg) var(--ue-radius-lg);
}

.identity-duplicate-list-heading {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.identity-duplicate-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--ue-line);
}

.identity-duplicate-card-heading > span:first-child {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.identity-duplicate-signals {
    display: grid;
    gap: 8px;
}

.identity-duplicate-signals > strong {
    color: var(--ue-ink-700);
    font-size: 13px;
}

.identity-duplicate-signals > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.identity-duplicate-signals span {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 12px;
    font-weight: 750;
}

.identity-duplicate-resolution {
    padding: 13px 14px;
    border-left: 3px solid var(--ue-success);
    border-radius: 0 var(--ue-radius-sm) var(--ue-radius-sm) 0;
    background: #f2fbf6;
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.admin-ticket-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.contract-registry-heading {
    align-items: center;
}

.contract-registry-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contract-registry-summary span {
    min-width: 118px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--ue-radius-sm);
    background: rgba(242, 248, 252, 0.86);
    color: var(--ue-ink-500);
    font-size: 13px;
}

.contract-registry-summary strong {
    color: var(--ue-ink-900);
    font-size: 20px;
}

.contract-registry-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.contract-registry-navigation a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 3px 11px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 15px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: linear-gradient(135deg, #ffffff, var(--ue-blue-50));
    color: var(--ue-ink-700);
    text-decoration: none;
    box-shadow: var(--ue-shadow-sm);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.contract-registry-navigation a:hover,
.contract-registry-navigation a:focus-visible {
    border-color: var(--ue-blue-400);
    outline: 0;
    box-shadow: 0 10px 22px rgba(6, 74, 137, 0.1);
    transform: translateY(-1px);
}

.contract-registry-navigation a > span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 10px;
    background: var(--ue-blue-700);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.contract-registry-navigation strong,
.contract-registry-navigation small {
    min-width: 0;
}

.contract-registry-navigation strong {
    color: var(--ue-ink-900);
    font-size: 14px;
}

.contract-registry-navigation small {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.3;
}

.contract-registry-panel,
.calculator-order-detail,
.workflow-detail-panel,
.credit-check-import-panel {
    overflow: hidden;
    margin-bottom: 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

#contract-document-upload,
#contract-document-archive,
#contract-document-replacement,
#calculator-orders-list,
#calculator-order-detail {
    scroll-margin-top: calc(var(--app-topbar-height) + 96px);
}

.contract-registry-panel > header {
    padding: 20px 22px;
    border-color: #e4edf3;
    background: #ffffff;
}

.contract-registry-panel > header h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 20px;
}

.contract-registry-panel > header p {
    max-width: 680px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.contract-registry-form {
    gap: 14px;
    padding: 20px 22px;
    background: #f8fbfd;
}

.contract-registry-form .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.contract-registry-form label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contract-registry-form input,
.contract-registry-form select,
.contract-registry-form textarea {
    min-height: 40px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.contract-registry-table-wrap {
    border-color: var(--ue-line);
}

.contract-registry-table th,
.contract-registry-table td {
    padding: 12px 11px;
    border-color: #e4edf3;
}

.contract-registry-table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
}

.contract-registry-table td {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.contract-registry-table td span,
.contract-registry-table td small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.registry-status,
.workflow-badge {
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.015em;
}

.registry-row-actions {
    gap: 6px;
}

.registry-row-actions .button,
.registry-row-actions button,
.calculator-orders-table .button,
.workflow-contracts-table .button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
}

.calculator-order-detail,
.workflow-detail-panel {
    padding: 22px;
}

.workflow-detail-navigation {
    display: flex;
    gap: 9px;
    margin: 0 0 24px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid #d7e6f1;
    border-radius: 15px;
    background: #f5f9fc;
    scrollbar-width: thin;
}

.workflow-detail-navigation a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ue-blue-800);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.workflow-detail-navigation a:hover,
.workflow-detail-navigation a:focus-visible {
    border-color: #c8ddeb;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(8, 68, 116, 0.08);
    outline: none;
}

#workflow-status-overview,
#workflow-actions,
#contract-change-requests,
#workflow-history {
    scroll-margin-top: calc(var(--app-topbar-height) + 96px);
}

.workflow-detail-heading {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5edf3;
}

.workflow-detail-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 22px;
}

.workflow-detail-heading p {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.workflow-detail-links {
    gap: 7px;
}

.workflow-detail-links .button {
    min-height: 36px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.calculator-order-detail-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.calculator-order-detail-section-title {
    margin: 0 0 10px;
    color: var(--ue-ink-900);
    font-size: 16px;
}

.calculator-order-summary-grid,
.workflow-state-grid {
    overflow: hidden;
    gap: 0;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
}

.calculator-order-summary-grid > div,
.workflow-state-grid > div {
    min-width: 0;
    padding: 16px;
    border-color: #e5edf3;
}

.calculator-order-summary-grid span,
.workflow-state-grid span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
}

.calculator-order-summary-grid strong,
.workflow-state-grid strong {
    margin-top: 6px;
    color: var(--ue-ink-900);
    font-size: 13px;
}

.calculator-order-summary-grid small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.calculator-order-acceptances,
.workflow-document-review-summary,
.workflow-bundle-panel {
    margin-top: 16px;
    padding: 16px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.calculator-order-acceptances h3 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 16px;
}

.calculator-order-acceptances p {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.calculator-order-acceptances li {
    min-height: 34px;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    color: var(--ue-ink-700);
    font-size: 13px;
}

.workflow-actions-grid {
    gap: 12px;
}

.workflow-action-form {
    padding: 16px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.workflow-action-form h3 {
    color: var(--ue-ink-900);
    font-size: 14px;
}

.workflow-action-form p,
.workflow-blocked-hint {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.workflow-action-form input,
.workflow-action-form select,
.workflow-action-form textarea {
    min-height: 38px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.admin-ticket-workflow {
    gap: 14px;
    margin: 20px 0;
}

.admin-ticket-navigation {
    display: flex;
    gap: 9px;
    margin: 0 0 20px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid #d7e6f1;
    border-radius: 15px;
    background: #f5f9fc;
    scrollbar-width: thin;
}

.admin-ticket-navigation a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.admin-ticket-navigation a:hover,
.admin-ticket-navigation a:focus-visible {
    border-color: #c8ddeb;
    background: #ffffff;
    outline: 0;
    box-shadow: 0 6px 14px rgba(8, 68, 116, 0.08);
}

#ticket-overview,
#ticket-management,
#ticket-conversation,
#ticket-response {
    scroll-margin-top: calc(var(--app-topbar-height) + 96px);
}

.admin-ticket-thread-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ue-line);
}

.admin-ticket-thread-heading h2 {
    margin: 3px 0 0;
    color: var(--ue-ink-900);
    font-size: 18px;
}

.admin-ticket-thread-heading > span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 850;
}

.admin-ticket-response-grid {
    gap: 14px;
}

.admin-ticket-form-hint {
    margin: -5px 0 14px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.admin-ticket-workflow > .feature-panel,
.admin-ticket-page-hero ~ .dashboard-grid > .feature-panel,
.admin-ticket-page-hero ~ .dashboard-grid > form {
    min-height: 0;
    padding: 20px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.admin-ticket-workflow h2,
.admin-ticket-page-hero ~ .dashboard-grid h2 {
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5edf3;
    color: var(--ue-ink-900);
    font-size: 17px;
}

.admin-ticket-workflow .profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-ticket-workflow .profile-form-grid .actions {
    min-width: 0;
    justify-content: flex-end;
}

.admin-ticket-workflow label,
.admin-ticket-page-hero ~ .dashboard-grid label {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-ticket-workflow input,
.admin-ticket-workflow select,
.admin-ticket-page-hero ~ .dashboard-grid input,
.admin-ticket-page-hero ~ .dashboard-grid select,
.admin-ticket-page-hero ~ .dashboard-grid textarea {
    min-height: 40px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .calculator-orders-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-orders-filters {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }

    .calculator-orders-filter-actions {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .admin-ticket-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-special-filter,
    .contract-registry-panel > header,
    .contract-registry-form,
    .calculator-order-detail,
    .workflow-detail-panel {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .calculator-orders-filters,
    .admin-ticket-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .calculator-orders-filter-actions {
        grid-column: auto;
        justify-self: stretch;
    }

    .calculator-orders-filter-actions .button,
    .calculator-orders-filter-actions button {
        width: 100%;
    }

    .calculator-orders-filter-heading,
    .calculator-orders-list-heading,
    .admin-review-filter-heading,
    .admin-review-list-heading,
    .admin-ticket-thread-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-review-overview,
    .admin-ticket-overview {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-review-filter-state {
        justify-content: flex-start;
    }

    .admin-review-list-heading > span,
    .admin-ticket-thread-heading > span {
        width: max-content;
        max-width: 100%;
    }

    .calculator-orders-filter-state,
    .calculator-orders-list-heading > span {
        width: max-content;
        max-width: 100%;
    }

    .contract-registry-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-ticket-filters .compact-actions,
    .admin-ticket-filters button {
        width: 100%;
    }

    .contract-registry-summary {
        width: 100%;
    }

    .contract-registry-summary span {
        min-width: 0;
        flex: 1;
    }

    .contract-registry-table-wrap {
        overflow: visible;
    }

    .contract-registry-table tbody {
        display: grid;
        gap: 12px;
    }

    .contract-registry-table tr {
        overflow: hidden;
        padding: 8px 12px;
        border: 1px solid var(--ue-line);
        border-radius: var(--ue-radius-md);
        box-shadow: var(--ue-shadow-sm);
    }

    .contract-registry-table td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }

    .calculator-order-detail-actions {
        justify-items: stretch;
    }

    .calculator-order-detail-actions .workflow-badge {
        width: max-content;
        max-width: 100%;
    }

    .calculator-order-summary-grid,
    .workflow-state-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .workflow-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-detail-links,
    .workflow-detail-links .button {
        width: 100%;
    }

    .admin-ticket-workflow .profile-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Wallet and contract document workspaces */

.wallet-overview-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.wallet-overview-hero > div {
    max-width: 760px;
}

.wallet-hero-action {
    flex: 0 0 auto;
    white-space: nowrap;
}

.wallet-mandate-status {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid #f4c7b7;
    border-radius: var(--ue-radius-lg);
    background: linear-gradient(105deg, #fff8f5, #ffffff 68%);
    box-shadow: var(--ue-shadow-sm);
}

.wallet-mandate-status.is-ready {
    border-color: #b8dec4;
    background: linear-gradient(105deg, #f2fbf5, #ffffff 68%);
}

.wallet-mandate-icon,
.wallet-card-icon,
.wallet-empty-state > span {
    display: grid;
    place-items: center;
}

.wallet-mandate-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--ue-orange-100);
    color: var(--ue-orange-600);
}

.wallet-mandate-status.is-ready .wallet-mandate-icon {
    background: #dff4e5;
    color: var(--ue-success);
}

.wallet-mandate-icon svg,
.wallet-card-icon svg,
.wallet-empty-state svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wallet-mandate-status > div > span,
.wallet-overview-label {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wallet-mandate-status h2 {
    margin: 3px 0 5px;
    font-size: 19px;
}

.wallet-mandate-status p {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.55;
}

.wallet-status-chip,
.wallet-movement-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 999px;
    background: #e3f5e8;
    color: var(--ue-success);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-movement-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wallet-movement-detail-link {
    text-align: right;
    white-space: nowrap;
}

.wallet-movement-detail-link a {
    font-weight: 800;
    color: var(--color-primary, #0b4778);
}

.wallet-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.wallet-detail-summary article,
.wallet-detail-card,
.wallet-detail-provenance {
    padding: 22px;
    border: 1px solid rgba(20, 61, 92, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(27, 55, 80, .06);
}

.wallet-detail-summary span,
.wallet-detail-facts span,
.wallet-detail-timeline span {
    display: block;
    color: var(--color-muted, #637586);
    font-size: .82rem;
}

.wallet-detail-summary strong {
    display: block;
    margin-top: 8px;
    font-size: 1.18rem;
}

.wallet-detail-provenance {
    border-left: 4px solid #e69a27;
}

.wallet-detail-card {
    margin-top: 24px;
}

.wallet-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wallet-detail-facts strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.wallet-detail-timeline {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.wallet-detail-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(125px, .7fr) minmax(180px, 2fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 0 15px 24px;
    border-left: 2px solid rgba(20, 61, 92, .16);
}

.wallet-detail-timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary, #0b4778);
}

@media (max-width: 760px) {
    .wallet-detail-summary,
    .wallet-detail-facts {
        grid-template-columns: 1fr;
    }

    .wallet-detail-timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.wallet-compensation-plan {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: linear-gradient(105deg, var(--ue-blue-50), #ffffff 70%);
    box-shadow: var(--ue-shadow-sm);
}

.wallet-compensation-plan-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ue-blue-700);
    box-shadow: var(--ue-shadow-sm);
}

.wallet-compensation-plan-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wallet-compensation-plan > div > span {
    color: var(--ue-orange-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-compensation-plan h2 {
    margin: 3px 0 5px;
    font-size: 19px;
}

.wallet-compensation-plan p {
    max-width: 720px;
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.55;
}

.wallet-compensation-plan-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.wallet-compensation-plan-consultation {
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
}

.wallet-balances-section,
.wallet-movements-section {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.wallet-movements-section {
    scroll-margin-top: calc(var(--app-topbar-height) + 18px);
}

.wallet-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.wallet-section-heading h2 {
    margin: 3px 0 5px;
    font-size: 22px;
}

.wallet-section-heading p {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    line-height: 1.5;
}

.wallet-balances-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wallet-up-unavailable {
    margin-top: 8px;
    color: var(--ue-ink-700);
}

.wallet-up-unavailable strong {
    display: block;
    margin-bottom: 6px;
}

.wallet-up-unavailable p {
    margin: 0;
    color: var(--ue-ink-500);
    line-height: 1.5;
}

.wallet-overview-card {
    min-width: 0;
    border: 1px solid #dbe8f1;
    border-radius: var(--ue-radius-md);
    background: #ffffff;
}

.wallet-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: var(--ue-blue-100);
    color: var(--ue-blue-700);
}

.wallet-overview-card-cashback {
    border-color: #b8d9f0;
    background: linear-gradient(145deg, #eef8ff, #ffffff);
}

.wallet-overview-card-cashback .wallet-card-icon {
    background: var(--ue-orange-100);
    color: var(--ue-orange-600);
}

.wallet-overview-card-body > strong {
    display: block;
    margin-top: 5px;
    color: var(--ue-ink-900);
    font-size: clamp(23px, 2vw, 30px);
    letter-spacing: -0.03em;
}

.wallet-overview-card-body > p {
    margin: 10px 0 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.wallet-overview-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
}

.wallet-overview-card .wallet-card-icon {
    width: 44px;
    height: 44px;
    margin: 0;
}

.wallet-overview-card-details {
    display: grid;
    gap: 0;
    margin-top: 13px;
    border-top: 1px solid #dbe8f1;
    border-bottom: 1px solid #dbe8f1;
}

.wallet-overview-card-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: var(--ue-ink-700);
    font-size: 13px;
}

.wallet-overview-card-details > div + div {
    border-top: 1px solid #e5edf3;
}

.wallet-overview-card-details b {
    color: var(--ue-ink-900);
    white-space: nowrap;
}

.wallet-overview-policy-hint {
    font-size: 12px !important;
}

.wallet-overview-card-body > a {
    display: inline-flex;
    margin-top: 13px;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.wallet-overview-card-body > a:hover {
    color: var(--ue-orange-600);
}

.wallet-movement-count {
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.wallet-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 17px;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
}

.wallet-filter-tabs a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--ue-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.wallet-filter-tabs a:hover,
.wallet-filter-tabs a.active {
    border-color: var(--ue-blue-700);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.wallet-empty-state {
    display: grid;
    min-height: 210px;
    place-items: center;
    align-content: center;
    padding: 28px;
    border: 1px dashed #bfd3e2;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
    text-align: center;
}

.wallet-empty-state > span {
    width: 46px;
    height: 46px;
    margin-bottom: 11px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ue-blue-700);
    box-shadow: var(--ue-shadow-sm);
}

.wallet-empty-state h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.wallet-empty-state p {
    max-width: 460px;
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.wallet-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
}

.wallet-movements-table {
    width: 100%;
    border-collapse: collapse;
}

.wallet-movements-table th,
.wallet-movements-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e5edf3;
    text-align: left;
    vertical-align: middle;
}

.wallet-movements-table th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-500);
    font-size: 13px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.wallet-movements-table td {
    color: var(--ue-ink-700);
    font-size: 13px;
}

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

.wallet-type-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-movement-amount {
    font-weight: 850;
    white-space: nowrap;
}

.wallet-movement-amount.is-positive {
    color: var(--ue-success);
}

.wallet-movement-amount.is-negative {
    color: var(--ue-danger);
}

.wallet-pagination {
    margin-top: 16px;
}

.wallet-page-hero,
.contract-documents-hero,
.invoice-detail-hero {
    margin-bottom: 22px;
}

.wallet-recharge-panel,
.account-verification-panel,
.account-verification-status-panel {
    min-height: 0;
    margin-bottom: 20px;
    padding: 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.wallet-recharge-panel h2,
.account-verification-panel h2,
.account-verification-status-panel h2 {
    margin: 0 0 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5edf3;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.wallet-recharge-form {
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e0eaf1;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.wallet-recharge-form .field {
    display: grid;
    align-content: start;
    gap: 9px;
}

.wallet-recharge-form label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.wallet-recharge-form input,
.wallet-recharge-form select {
    min-height: 42px;
    border-color: #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    font-size: 13px;
}

.wallet-recharge-form .button,
.wallet-recharge-form button {
    min-height: 40px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.payment-info-grid {
    gap: 12px;
    margin-top: 16px;
}

.payment-info-grid article {
    padding: 16px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.payment-info-grid h3 {
    color: var(--ue-ink-900);
    font-size: 14px;
}

.payment-info-grid p,
.payment-info-grid dt,
.payment-info-grid dd {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.payment-info-grid dd {
    color: var(--ue-ink-900);
}

.wallet-recharge-history {
    overflow: hidden;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    box-shadow: var(--ue-shadow-sm);
}

.wallet-recharge-history .table-heading {
    margin: 0;
    padding: 17px 20px;
    border-bottom: 1px solid var(--ue-line);
}

.wallet-recharge-history .table-heading h2 {
    color: var(--ue-ink-900);
    font-size: 18px;
}

.wallet-recharge-history th,
.wallet-recharge-history td {
    padding: 12px 11px;
    border-color: #e4edf3;
}

.wallet-recharge-history th {
    background: var(--ue-blue-50);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
}

.wallet-recharge-history td {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.wallet-recharge-history td:nth-child(5) {
    max-width: 260px;
    overflow-wrap: anywhere;
}

.wallet-recharge-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.wallet-recharge-panel-heading .section-kicker,
.wallet-bank-instructions-header .section-kicker,
.wallet-recharge-history .section-kicker {
    color: var(--ue-orange-600);
    font-size: var(--ue-font-caption);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wallet-recharge-panel .wallet-recharge-panel-heading h2 {
    margin: 3px 0 6px;
    padding: 0;
    border: 0;
    font-size: clamp(20px, 2vw, 25px);
}

.wallet-recharge-panel-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    line-height: 1.55;
}

.wallet-verification-badge,
.wallet-bank-status-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.wallet-verification-badge.is-verified {
    background: #e8f7ee;
    color: #16753a;
}

.wallet-verification-badge.is-limited {
    background: #fff3d7;
    color: #7a5200;
}

.wallet-recharge-account-note {
    margin-bottom: 16px;
}

.wallet-bank-test-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #f3c6b6;
    border-radius: var(--ue-radius-sm);
    background: #fff5f1;
    color: #8d331f;
    font-size: 13px;
    line-height: 1.45;
}

.wallet-bank-test-notice strong {
    flex: 0 0 auto;
}

.wallet-recharge-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 0;
    padding: 20px;
}

.wallet-payment-methods {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wallet-payment-methods legend,
.wallet-amount-field > label {
    margin: 0 0 9px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wallet-payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wallet-payment-choice {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid #cbdce8;
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    color: var(--ue-ink-900);
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.wallet-payment-choice:hover {
    border-color: #78add2;
    background: #fbfdff;
}

.wallet-payment-choice:has(input:checked) {
    border-color: var(--ue-blue-600);
    background: #f4f9fd;
    box-shadow: 0 0 0 3px rgba(17, 115, 187, 0.12);
}

.wallet-payment-choice:focus-within {
    outline: 3px solid rgba(7, 84, 166, 0.22);
    outline-offset: 2px;
}

.wallet-payment-choice.is-disabled {
    border-color: #dde6ec;
    background: #f5f8fa;
    color: #7b8e9e;
    cursor: not-allowed;
    opacity: 0.76;
}

.wallet-payment-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wallet-payment-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
    font-size: 22px;
    font-weight: 850;
}

.wallet-payment-choice-icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wallet-payment-choice strong,
.wallet-payment-choice small {
    display: block;
}

.wallet-payment-choice strong {
    font-size: 14px;
}

.wallet-payment-choice small {
    margin-top: 4px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.4;
}

.wallet-payment-choice-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd9e3;
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
    font-weight: 900;
}

.wallet-payment-choice:has(input:checked) .wallet-payment-choice-check {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-600);
    color: #ffffff;
}

.wallet-recharge-amount-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(320px, 1fr);
    align-items: stretch;
    gap: 12px;
}

.wallet-amount-field {
    gap: 0;
}

.wallet-amount-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbdbe7;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
}

.wallet-amount-control:focus-within {
    border-color: var(--ue-blue-600);
    box-shadow: 0 0 0 3px rgba(7, 84, 166, 0.13);
}

.wallet-amount-control > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border-right: 1px solid #dbe6ed;
    background: #f3f8fb;
    color: var(--ue-ink-700);
    font-size: 16px;
    font-weight: 850;
}

.wallet-recharge-form .wallet-amount-control input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 750;
}

.wallet-recharge-form .wallet-amount-control input::placeholder {
    color: #aebcc7;
    font-weight: 500;
    opacity: 1;
}

.wallet-amount-field > small {
    margin-top: 7px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.4;
}

.wallet-payment-detail {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 78px;
    padding: 13px 16px;
    border: 1px solid #dbe7ef;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
}

.wallet-payment-detail[hidden] {
    display: none;
}

.wallet-payment-detail strong {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.wallet-payment-detail span {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.45;
}

.wallet-recharge-form .wallet-recharge-form-actions {
    grid-column: auto;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    padding-top: 2px;
}

.wallet-recharge-form-actions .button,
.wallet-recharge-form-actions button {
    min-height: 44px;
    padding-inline: 20px;
    font-size: 14px;
}

.wallet-bank-instructions {
    scroll-margin-top: calc(var(--app-topbar-height) + 88px);
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #c9deeb;
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.wallet-bank-instructions-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ue-line);
}

.wallet-bank-instructions-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f7ee;
    color: #178143;
    font-size: 22px;
    font-weight: 900;
}

.wallet-bank-instructions-header h2 {
    margin: 3px 0 5px;
    color: var(--ue-ink-900);
    font-size: clamp(21px, 2vw, 27px);
}

.wallet-bank-instructions-header p {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 14px;
    line-height: 1.5;
}

.wallet-bank-status-pill {
    background: #fff3d7;
    color: #775100;
}

.wallet-bank-header-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.wallet-bank-test-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff0ea;
    color: #b53b1e;
    font-size: var(--ue-font-caption);
    font-weight: 900;
    letter-spacing: 0.055em;
}

.wallet-instruction-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
    font-weight: 750;
}

.wallet-instruction-feedback > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
}

.wallet-instruction-feedback.is-success {
    background: #eaf8ef;
    color: #176b39;
}

.wallet-instruction-feedback.is-success > span:first-child {
    background: #23944d;
}

.wallet-instruction-feedback.is-error {
    background: #fff0ed;
    color: #a63822;
}

.wallet-instruction-feedback.is-error > span:first-child {
    background: #d74b2d;
}

.wallet-bank-instructions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 18px;
    margin-top: 18px;
}

.wallet-bank-transfer-card,
.wallet-bank-next-steps {
    padding: 19px;
    border: 1px solid #dbe7ef;
    border-radius: var(--ue-radius-md);
    background: #f8fbfd;
}

.wallet-bank-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dbe7ef;
}

.wallet-bank-amount span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wallet-bank-amount strong {
    color: var(--ue-blue-800);
    font-size: 23px;
    white-space: nowrap;
}

.wallet-bank-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.wallet-bank-details > div {
    min-width: 0;
    padding: 11px 0;
    border-bottom: 1px solid #e1eaf0;
}

.wallet-bank-details > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wallet-bank-details dt {
    margin-bottom: 4px;
    color: var(--ue-ink-500);
    font-size: var(--ue-font-caption);
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wallet-bank-details dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 14px;
    font-weight: 800;
}

.wallet-bank-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wallet-copy-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b9d3e4;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 850;
}

.wallet-copy-button:hover,
.wallet-copy-button:focus-visible {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-50);
    color: var(--ue-blue-800);
}

.wallet-bank-copy-row.is-reference {
    margin: 3px -8px -1px;
    padding: 12px 8px 8px;
    border: 1px solid #f5c9b8;
    border-radius: var(--ue-radius-sm);
    background: #fff7f3;
}

.wallet-bank-next-steps h3 {
    margin: 0 0 15px;
    color: var(--ue-ink-900);
    font-size: 17px;
}

.wallet-bank-next-steps ol {
    display: grid;
    gap: 13px;
    margin: 0;
    padding-left: 26px;
    color: var(--ue-ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.wallet-bank-next-steps li::marker {
    color: var(--ue-orange-600);
    font-weight: 900;
}

.wallet-bank-timing-note {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #f1d48b;
    border-radius: var(--ue-radius-sm);
    background: #fff8e8;
    color: #684a0a;
    font-size: 13px;
    line-height: 1.45;
}

.wallet-instruction-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.wallet-instruction-actions form {
    margin: 0;
}

.wallet-instruction-actions .button {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 13px;
}

.wallet-instruction-back {
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
}

.wallet-instruction-actions p {
    flex-basis: 100%;
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.wallet-recharge-history .table-heading > div {
    display: grid;
    gap: 3px;
}

.wallet-recharge-history .table-heading h2 {
    margin: 0;
}

.wallet-history-action {
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .wallet-recharge-panel-heading,
    .wallet-bank-amount {
        align-items: flex-start;
        flex-direction: column;
    }

    .wallet-payment-choice-grid,
    .wallet-recharge-amount-row,
    .wallet-bank-instructions-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-bank-instructions-header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .wallet-bank-instructions-status {
        width: 42px;
        height: 42px;
    }

    .wallet-bank-status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .wallet-bank-header-badges {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .wallet-recharge-form,
    .wallet-bank-instructions {
        padding: 15px;
    }

    .wallet-payment-choice {
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        gap: 10px;
        padding: 13px;
    }

    .wallet-payment-choice-icon {
        width: 38px;
        height: 38px;
    }

    .wallet-recharge-form .wallet-recharge-form-actions,
    .wallet-instruction-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-recharge-form-actions .button,
    .wallet-recharge-form-actions button,
    .wallet-instruction-actions .button,
    .wallet-instruction-actions form,
    .wallet-instruction-actions form button {
        width: 100%;
    }

    .wallet-bank-copy-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.contract-completion-summary {
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.completion-meter {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
}

.completion-meter-value {
    background: conic-gradient(var(--ue-orange-500) var(--completion), #e5edf3 0);
}

.completion-meter strong {
    color: var(--ue-ink-900);
    font-size: 15px;
}

.contract-completion-summary h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 20px;
}

.contract-completion-summary p {
    margin: 6px 0 10px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.contract-offer-change,
.contract-missing-data,
.contract-online-acceptance-proof,
.contract-paper-signature,
.contract-document-panel {
    min-height: 0;
    margin-bottom: 20px;
    padding: 22px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.contract-offer-change h2,
.contract-missing-data h2,
.contract-online-acceptance-proof h2,
.contract-paper-signature h2,
.contract-document-panel h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.contract-offer-change p,
.contract-missing-data p,
.contract-online-acceptance-proof p,
.contract-paper-signature p,
.contract-document-panel p {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.contract-online-acceptance-proof {
    display: grid;
    gap: 16px;
}

.contract-online-acceptance-pending {
    border-left: 4px solid #f2b705;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.contract-online-acceptance-pending .section-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #8a6500;
}

.contract-online-acceptance-pending p {
    max-width: 760px;
    margin-bottom: 0;
}

.paper-signature-steps {
    gap: 10px 12px;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #e0eaf1;
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.paper-signature-steps span {
    width: 28px;
    height: 28px;
    background: var(--ue-blue-800);
    font-size: 13px;
}

.contract-template-downloads {
    gap: 9px;
}

.contract-template-downloads .button {
    min-height: 42px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.contract-template-downloads .button.secondary-button {
    min-height: 64px;
    padding: 12px 14px 12px 18px;
    border: 1px solid #f3b19e;
    border-left: 4px solid var(--ue-orange-500);
    background: #fff9f6;
    color: var(--ue-ink-900);
}

.contract-template-downloads .button.secondary-button span {
    color: var(--ue-ink-900);
    font-size: 14px;
    line-height: 1.3;
}

.contract-template-downloads .button.secondary-button small {
    color: var(--ue-ink-500);
}

.contract-template-downloads .button.secondary-button:hover,
.contract-template-downloads .button.secondary-button:focus-visible {
    border-color: var(--ue-orange-500);
    background: #fff0e9;
    color: var(--ue-ink-900);
}

.contract-template-downloads .button.secondary-button:hover span,
.contract-template-downloads .button.secondary-button:focus-visible span,
.contract-template-downloads .button.secondary-button:hover small,
.contract-template-downloads .button.secondary-button:focus-visible small {
    color: var(--ue-ink-900);
}

.contract-document-panel-empty {
    border-left: 4px solid var(--ue-blue-600);
    background: linear-gradient(135deg, #ffffff 0%, var(--ue-blue-50) 100%);
}

.contract-document-panel-empty .section-eyebrow {
    display: block;
    margin-bottom: 7px;
}

.contract-document-panel-empty p {
    max-width: 760px;
    margin: 7px 0 0;
}

.panel-heading-row {
    margin-bottom: 17px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5edf3;
}

.panel-heading-row > span {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-ink-500);
    font-size: 13px;
}

.contract-document-list {
    gap: 12px;
}

.contract-document-item {
    gap: 16px;
    padding: 16px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #f9fbfd;
}

.contract-document-item.has-document {
    border-left: 4px solid var(--ue-blue-600);
    background: #ffffff;
}

.contract-document-item.document-rejected {
    border-left-color: var(--ue-danger);
}

.contract-document-copy h3 {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.document-requirement,
.document-review-status {
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 13px;
}

.contract-document-copy p,
.contract-document-copy a {
    font-size: 13px;
}

.contract-document-item form {
    gap: 7px;
}

.contract-document-picker {
    min-height: 38px;
    border: 1px solid #bfd4e3;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
    color: var(--ue-blue-800);
    font-size: 13px;
}

.contract-document-item button {
    min-height: 36px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.contract-document-review {
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid #e5edf3;
}

.invoice-detail-actions {
    margin-bottom: 18px;
}

.invoice-detail-actions .button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--ue-radius-sm);
    font-size: 13px;
}

.invoice-document {
    padding: 26px;
    border-color: var(--ue-line);
    border-radius: var(--ue-radius-lg);
    box-shadow: var(--ue-shadow-sm);
}

.invoice-document > header {
    border-color: #e5edf3;
}

.invoice-document > header img {
    width: 130px;
}

.invoice-document > header strong {
    color: var(--ue-ink-900);
    font-size: 20px;
}

.invoice-detail-grid,
.invoice-amounts {
    gap: 0;
    padding: 20px 0;
}

.invoice-detail-grid > div,
.invoice-amounts > div {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid #e5edf3;
}

.invoice-detail-grid > div:nth-child(4n),
.invoice-amounts > div:nth-child(4n) {
    border-right: 0;
}

.invoice-document span {
    color: var(--ue-ink-500);
    font-size: 13px;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.invoice-detail-grid strong,
.invoice-amounts strong {
    color: var(--ue-ink-900);
    font-size: 13px;
}

.invoice-amounts strong {
    font-size: 18px;
}

.invoice-amount-due {
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
}

@media (max-width: 700px) {
    .wallet-overview-hero,
    .wallet-mandate-status,
    .wallet-compensation-plan,
    .wallet-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-overview-hero {
        display: flex;
    }

    .wallet-hero-action,
    .wallet-mandate-status .button {
        width: 100%;
    }

    .wallet-mandate-status {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .wallet-compensation-plan {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .wallet-compensation-plan-icon {
        width: 44px;
        height: 44px;
    }

    .wallet-compensation-plan-actions {
        grid-column: 1 / -1;
        justify-items: stretch;
    }

    .wallet-compensation-plan-actions .button {
        width: 100%;
    }

    .wallet-compensation-plan-consultation {
        padding: 7px 4px 0;
        text-align: center;
    }

    .wallet-mandate-icon {
        width: 46px;
        height: 46px;
    }

    .wallet-mandate-status .button,
    .wallet-mandate-status .wallet-status-chip {
        grid-column: 1 / -1;
    }

    .wallet-balances-section,
    .wallet-movements-section {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .wallet-section-heading {
        display: flex;
    }

    .wallet-balances-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-movement-count {
        align-self: flex-start;
    }

    .wallet-movements-table thead {
        display: none;
    }

    .wallet-movements-table,
    .wallet-movements-table tbody,
    .wallet-movements-table tr,
    .wallet-movements-table td {
        display: block;
        width: 100%;
    }

    .wallet-movements-table tr {
        padding: 11px 14px;
        border-bottom: 1px solid var(--ue-line);
    }

    .wallet-movements-table tr:last-child {
        border-bottom: 0;
    }

    .wallet-movements-table td {
        display: grid;
        grid-template-columns: minmax(105px, 0.45fr) minmax(0, 1fr);
        gap: 10px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .wallet-movements-table td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.035em;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .wallet-recharge-panel,
    .account-verification-panel,
    .account-verification-status-panel,
    .contract-completion-summary,
    .contract-offer-change,
    .contract-missing-data,
    .contract-online-acceptance-proof,
    .contract-paper-signature,
    .contract-document-panel,
    .invoice-document {
        padding: 16px;
        border-radius: var(--ue-radius-md);
    }

    .wallet-recharge-form,
    .payment-info-grid,
    .invoice-detail-grid,
    .invoice-amounts {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-recharge-form .actions,
    .wallet-recharge-form .button,
    .wallet-recharge-form button {
        width: 100%;
    }

    .wallet-recharge-history {
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .wallet-recharge-history tbody {
        display: grid;
        gap: 12px;
    }

    .wallet-recharge-history tr {
        overflow: hidden;
        border: 1px solid var(--ue-line);
        border-radius: var(--ue-radius-md);
        box-shadow: var(--ue-shadow-sm);
    }

    .wallet-recharge-history td::before {
        color: var(--ue-ink-500);
        font-size: 13px;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }

    .wallet-recharge-history td:nth-child(5) {
        max-width: none;
        min-width: 0;
    }

    .contract-completion-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-document-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .invoice-detail-grid > div,
    .invoice-amounts > div,
    .invoice-detail-grid > div:nth-child(4n),
    .invoice-amounts > div:nth-child(4n) {
        border-right: 0;
        border-bottom: 1px solid #e5edf3;
    }
}

/* Responsive application frame */

@media (max-width: 1600px) {
    :root {
        --app-topbar-height: 112px;
    }

    .app-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 48px 56px;
        align-content: center;
        gap: 0;
    }

    .topbar-section {
        align-self: center;
        min-width: 0;
    }

    .topbar-actions {
        min-width: 0;
        overflow-x: auto;
        justify-content: safe flex-end;
    }

    .topbar-context {
        display: none;
    }

    .topbar-user-identity > span:last-child {
        display: none;
    }

    .topbar-user-identity {
        padding-inline: 4px;
    }
}

@media (max-width: 1120px) {
    :root {
        --ue-sidebar-width: 264px;
    }

    .topbar-section .topbar-tab {
        font-size: 0;
    }

    .topbar-section .topbar-icon {
        margin: 0;
    }

    .topbar-utility {
        font-size: 0;
    }

    .topbar-actions .language-control,
    .topbar-actions .language-select select {
        min-width: 102px;
    }
}

@media (max-width: 800px) {
    .topbar-new-contract {
        width: 40px;
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .topbar-action-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .topbar-user-identity {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --app-topbar-height: 112px;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .app-sidebar,
    .app-shell.sidebar-collapsed .app-sidebar {
        z-index: 118;
        inset: 0;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
        border-radius: 0;
        box-shadow: none;
        transform: translateX(0);
        transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
    }

    .app-shell.sidebar-collapsed .app-sidebar,
    .app-shell:not(.sidebar-ready) .app-sidebar {
        opacity: 0;
        transform: translateX(-100%);
    }

    .sidebar-toggle,
    .app-shell.sidebar-collapsed .sidebar-toggle {
        z-index: 122;
        top: 12px;
        right: auto;
        left: 12px;
        width: 40px;
        height: 40px;
        min-height: 40px;
        border: 0;
        border-radius: 10px;
        background: var(--ue-blue-800);
        box-shadow: 0 7px 18px rgba(5, 47, 92, 0.2);
    }

    .app-shell.sidebar-collapsed .sidebar-toggle {
        left: 12px;
        border-radius: 10px;
    }

    body.sidebar-mobile-open .sidebar-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-toggle:hover,
    .sidebar-toggle:focus-visible {
        background: var(--ue-blue-700);
    }

    .sidebar-toggle span,
    .app-shell.sidebar-collapsed .sidebar-toggle span {
        position: relative;
        width: 19px;
        height: 2px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        transform: none;
    }

    .sidebar-toggle span::before,
    .sidebar-toggle span::after {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        content: "";
        transition: transform 160ms ease, top 160ms ease;
    }

    .sidebar-toggle span::before {
        transform: rotate(45deg);
    }

    .sidebar-toggle span::after {
        transform: rotate(-45deg);
    }

    .app-shell.sidebar-collapsed .sidebar-toggle span {
        background: #ffffff;
    }

    .app-shell.sidebar-collapsed .sidebar-toggle span::before {
        top: -6px;
        transform: none;
    }

    .app-shell.sidebar-collapsed .sidebar-toggle span::after {
        top: 6px;
        transform: none;
    }

    .sidebar-backdrop {
        display: none;
    }

    .app-shell.sidebar-collapsed .sidebar-backdrop,
    .app-shell:not(.sidebar-ready) .sidebar-backdrop {
        opacity: 0;
        pointer-events: none;
    }

    .app-topbar {
        min-height: var(--app-topbar-height);
        padding: 0 8px;
        overflow: visible;
    }

    .topbar-section {
        padding-left: 52px;
    }

    .topbar-actions {
        overflow-x: auto;
        gap: 0;
    }

    .topbar-tab,
    .topbar-utility {
        min-width: 44px;
        height: 44px;
        justify-content: center;
        padding-inline: 8px;
    }

    .topbar-actions .language-select {
        padding-inline: 0;
    }

    .topbar-actions .language-control,
    .topbar-actions .language-select select {
        width: 72px;
        min-width: 72px;
    }

    .topbar-new-contract {
        width: 44px;
        min-height: 44px;
        margin-left: 0;
    }

    .topbar-actions .language-flag {
        display: none;
    }

    .topbar-actions .language-select select {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
    }

    .app-content {
        padding: 20px 14px;
    }

    .dashboard-hero {
        top: var(--app-topbar-height);
        margin: -20px -14px 22px;
        padding: 22px 16px;
    }

    .page-title-condensed .dashboard-hero {
        padding: 11px 16px;
    }

    .feature-panel {
        padding: 18px 15px;
    }

    .sidebar-brand {
        position: sticky;
        z-index: 5;
        top: 0;
        min-height: calc(94px + env(safe-area-inset-top));
        padding: max(10px, env(safe-area-inset-top)) 72px 10px 18px;
        background: rgba(4, 39, 78, 0.97);
        box-shadow: 0 10px 24px rgba(2, 28, 54, 0.18);
        backdrop-filter: blur(14px);
    }

    .sidebar-user {
        max-width: 560px;
        margin: 18px auto 14px;
        padding: 15px;
    }

    .sidebar-wallets,
    .sidebar-menu-search,
    .sidebar-nav {
        width: calc(100% - 28px);
        max-width: 560px;
        margin-inline: auto;
    }

    .sidebar-menu-search {
        padding: 0;
    }

    .sidebar-menu-search input {
        min-height: 48px;
        padding-inline: 16px;
        border-radius: 14px;
        font-size: 14px;
    }

    .sidebar-nav {
        padding: 4px 0 30px;
    }

    .sidebar-nav-title {
        min-height: 36px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .sidebar-nav a {
        min-height: 50px;
        margin: 3px 0;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 14px;
    }

    .sidebar-nav a.active {
        padding-left: 19px;
    }

    .sidebar-nav-separator {
        margin: 12px;
    }

    .sidebar-mobile-close {
        position: absolute;
        z-index: 3;
        top: max(18px, env(safe-area-inset-top));
        right: 18px;
        display: inline-grid;
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 20px rgba(2, 28, 54, 0.2);
        color: #ffffff;
    }

    .sidebar-mobile-close:hover,
    .sidebar-mobile-close:focus-visible {
        border-color: rgba(255, 255, 255, 0.42);
        outline: 3px solid rgba(185, 228, 255, 0.38);
        outline-offset: 2px;
        background: rgba(255, 255, 255, 0.2);
    }

    .sidebar-mobile-close span,
    .sidebar-mobile-close span::before {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        content: "";
    }

    .sidebar-mobile-close span {
        transform: rotate(45deg);
    }

    .sidebar-mobile-close span::before {
        transform: rotate(90deg);
    }
}

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

@media print {
    .topbar-new-contract,
    .topbar-user-identity {
        display: none !important;
    }
}

/* Notification center */

.topbar-utility {
    position: relative;
}

.topbar-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #d93636;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(160, 25, 25, 0.24);
}

.notification-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.notification-overview article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    box-shadow: var(--ue-shadow-xs);
}

.notification-overview svg {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    fill: none;
    stroke: var(--ue-blue-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.notification-overview article:first-child svg {
    stroke: var(--ue-orange-600);
}

.notification-overview article div {
    display: grid;
    gap: 2px;
}

.notification-overview span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notification-overview strong {
    color: var(--ue-ink-900);
    font-size: 25px;
    line-height: 1;
}

.notification-workspace,
.admin-notification-composer,
.admin-notification-history {
    overflow: hidden;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.notification-toolbar {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ue-line);
    background: var(--ue-blue-50);
}

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.notification-filters a,
.notification-read-all {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ue-ink-600);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.notification-filters a:hover,
.notification-filters a:focus-visible,
.notification-filters a.active {
    border-color: var(--ue-blue-200);
    background: #ffffff;
    color: var(--ue-blue-800);
    outline: 0;
    box-shadow: 0 4px 12px rgba(6, 74, 137, 0.08);
}

.notification-read-all {
    border-color: var(--ue-blue-200);
    background: #ffffff;
    color: var(--ue-blue-700);
    cursor: pointer;
}

.notification-list {
    display: grid;
}

.notification-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px 22px;
    border-bottom: 1px solid var(--ue-line-soft);
    background: #ffffff;
    transition: background 140ms ease, transform 140ms ease;
}

.notification-card:last-child {
    border-bottom: 0;
}

.notification-card:hover {
    background: #fbfdff;
}

.notification-card.is-unread {
    background: linear-gradient(90deg, rgba(226, 242, 255, 0.72), #ffffff 38%);
}

.notification-card.is-unread::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--ue-blue-600);
    content: "";
}

.notification-card.priority-urgent::before {
    background: #d93636;
}

.notification-card-icon,
.notification-detail-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.notification-communication .notification-card-icon {
    background: #fff3ea;
    color: var(--ue-orange-600);
}

.notification-card-icon svg,
.notification-detail-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-card-copy {
    min-width: 0;
}

.notification-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-card-meta time {
    margin-left: auto;
    letter-spacing: 0;
    text-transform: none;
}

.notification-kind,
.notification-priority,
.notification-unread-dot {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.notification-unread-dot {
    background: var(--ue-blue-700);
    color: #ffffff;
}

.notification-priority {
    background: #fff0e9;
    color: var(--ue-orange-700);
}

.priority-urgent .notification-priority {
    background: #fff0f0;
    color: #b52121;
}

.notification-card h2 {
    margin: 0 0 5px;
    color: var(--ue-ink-900);
    font-size: 17px;
    line-height: 1.3;
}

.notification-card-copy > p {
    margin: 0;
    color: var(--ue-ink-600);
    font-size: 13px;
    line-height: 1.55;
}

.notification-open {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--ue-blue-200);
    border-radius: 9px;
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.notification-open:hover,
.notification-open:focus-visible {
    border-color: var(--ue-blue-500);
    background: var(--ue-blue-50);
    outline: 0;
}

.notification-empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--ue-ink-500);
    text-align: center;
}

.notification-empty svg {
    width: 38px;
    height: 38px;
    margin-bottom: 5px;
    fill: none;
    stroke: var(--ue-blue-400);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.notification-empty h2,
.notification-empty h3,
.notification-empty p {
    margin: 0;
}

.notification-empty h2,
.notification-empty h3 {
    color: var(--ue-ink-800);
}

.notification-detail-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.notification-detail {
    max-width: 940px;
    padding: 32px;
    border: 1px solid var(--ue-line);
    border-top: 4px solid var(--ue-blue-600);
    border-radius: var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: var(--ue-shadow-sm);
}

.notification-detail.priority-important {
    border-top-color: var(--ue-orange-500);
}

.notification-detail.priority-urgent {
    border-top-color: #d93636;
}

.notification-detail header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ue-line-soft);
}

.notification-detail header > div:last-child {
    display: grid;
    gap: 3px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.notification-detail header span {
    color: var(--ue-blue-700);
    font-weight: 850;
    text-transform: uppercase;
}

.notification-detail h2 {
    margin: 0 0 18px;
    color: var(--ue-ink-900);
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.25;
}

.notification-detail-body {
    color: var(--ue-ink-700);
    font-size: 15px;
    line-height: 1.8;
}

.notification-admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.notification-admin-nav > a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: linear-gradient(135deg, #ffffff, var(--ue-blue-50));
    color: var(--ue-ink-700);
    text-decoration: none;
    box-shadow: var(--ue-shadow-sm);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.notification-admin-nav > a:hover,
.notification-admin-nav > a:focus-visible {
    border-color: var(--ue-blue-400);
    outline: 0;
    box-shadow: 0 10px 22px rgba(6, 74, 137, 0.1);
    transform: translateY(-1px);
}

.notification-admin-nav-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ue-blue-700);
    box-shadow: inset 0 0 0 1px var(--ue-blue-200);
}

.notification-admin-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-admin-nav > a > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-admin-nav strong {
    color: var(--ue-ink-900);
    font-size: 15px;
}

.notification-admin-nav small {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.35;
}

.notification-admin-nav-arrow {
    color: var(--ue-orange-600);
    font-size: 20px;
    font-weight: 900;
}

.admin-notification-composer,
.admin-notification-history {
    margin-bottom: 22px;
    padding: 25px;
    scroll-margin-top: 92px;
}

.notification-composer-form {
    display: grid;
    gap: 24px;
}

.notification-composer-heading,
.notification-history-heading {
    align-items: flex-start;
}

.notification-permission-note {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #b8d9ee;
    border-radius: 999px;
    background: #edf8ff;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-step-overview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding: 15px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
    list-style: none;
}

.notification-step-overview li {
    min-width: 0;
}

.notification-step-overview a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ue-ink-700);
    text-decoration: none;
}

.notification-step-overview a:hover,
.notification-step-overview a:focus-visible {
    border-color: var(--ue-blue-200);
    background: #ffffff;
    outline: 0;
    box-shadow: var(--ue-shadow-sm);
}

.notification-step-overview span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--ue-blue-700);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.notification-step-overview strong {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
}

.notification-composer-step {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
    scroll-margin-top: 92px;
}

.notification-composer-step > legend {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 8px;
    color: var(--ue-ink-900);
    font-size: 15px;
    font-weight: 850;
}

.notification-composer-step > legend > span {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: var(--ue-action-orange);
    color: #ffffff;
    font-size: 13px;
}

.notification-composer-step > p {
    margin: 0 0 16px;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.55;
}

.notification-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.notification-channel-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ue-line);
    border-radius: 12px;
    background: var(--ue-blue-50);
    cursor: pointer;
}

.notification-channel-card:has(input:checked) {
    border-color: var(--ue-blue-500);
    box-shadow: 0 0 0 2px rgba(37, 145, 211, 0.12);
    background: #edf8ff;
}

.notification-channel-card.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.notification-channel-card input {
    width: 17px;
    height: 17px;
    accent-color: var(--ue-blue-700);
}

.notification-channel-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ue-blue-700);
}

.notification-channel-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-channel-card > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-channel-card strong {
    color: var(--ue-ink-800);
    font-size: 13px;
}

.notification-channel-card small {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.4;
}

.notification-audience-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.notification-filter-workspace,
.notification-exclusions,
.notification-user-picker {
    margin-top: 14px;
}

.notification-filter-workspace[hidden],
.notification-user-picker[hidden],
.notification-user-results[hidden],
.notification-selected-user[hidden],
.notification-preview-sample[hidden] {
    display: none !important;
}

.notification-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.notification-filter-group {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--ue-line-soft);
    border-radius: 11px;
    background: var(--ue-blue-50);
}

.notification-filter-group > legend {
    padding: 0 5px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
}

.notification-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.notification-filter-options label {
    position: relative;
    cursor: pointer;
}

.notification-filter-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.notification-filter-options span {
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #c9dbe7;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ue-ink-600);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

.notification-filter-options input:checked + span {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.notification-filter-options input:focus-visible + span {
    outline: 3px solid rgba(37, 145, 211, 0.2);
    outline-offset: 2px;
}

.notification-exclusions {
    padding: 13px 15px;
    border: 1px solid #ead8b0;
    border-radius: 11px;
    background: #fffaf0;
}

.notification-exclusions > summary {
    color: #805d16;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.notification-exclusions > p {
    margin: 10px 0 14px;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.notification-excluded-users {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
}

.notification-excluded-users textarea {
    min-height: 88px;
    resize: vertical;
}

.notification-excluded-users small {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 500;
}

.notification-user-picker {
    position: relative;
    max-width: 720px;
    padding: 16px;
    border: 1px solid var(--ue-line-soft);
    border-radius: 12px;
    background: var(--ue-blue-50);
}

.notification-user-picker > label {
    display: grid;
    gap: 7px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
}

.notification-user-results {
    position: absolute;
    z-index: 20;
    top: calc(100% - 12px);
    right: 16px;
    left: 16px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--ue-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--ue-shadow-lg);
}

.notification-user-results button {
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--ue-line-soft);
    background: #ffffff;
    color: var(--ue-ink-800);
    text-align: left;
    cursor: pointer;
}

.notification-user-results button:hover,
.notification-user-results button:focus-visible {
    background: var(--ue-blue-50);
}

.notification-user-results small {
    color: var(--ue-ink-500);
}

.notification-selected-user {
    margin-top: 10px;
    padding: 9px 11px;
    border-left: 3px solid var(--ue-blue-600);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ue-blue-900);
    font-size: 13px;
    font-weight: 800;
}

.notification-audience-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #b8d9ee;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f9fe, #ffffff);
}

.notification-audience-preview strong {
    display: block;
    margin: 2px 0;
    color: var(--ue-blue-900);
    font-size: 30px;
    line-height: 1;
}

.notification-audience-preview p {
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
}

.notification-preview-sample {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--ue-line-soft);
}

.notification-preview-sample span {
    padding: 5px 8px;
    border-radius: 7px;
    background: #ffffff;
    color: var(--ue-ink-600);
    font-size: 13px;
}

.notification-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ue-line-soft);
    border-radius: var(--ue-radius-md);
    background: var(--ue-blue-50);
}

.notification-settings-grid label,
.notification-language-panel label {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.notification-settings-grid [hidden] {
    display: none !important;
}

.notification-settings-grid label > span,
.notification-language-panel label > span {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.notification-settings-grid input,
.notification-settings-grid select,
.notification-language-panel input,
.notification-language-panel textarea {
    width: 100%;
    min-width: 0;
    border-color: var(--ue-line);
    border-radius: 9px;
    background: #ffffff;
}

.notification-action-field {
    grid-column: span 2;
}

.notification-settings-grid small {
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.4;
}

.notification-language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.notification-language-panel {
    display: grid;
    min-width: 0;
    gap: 15px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
}

.notification-language-panel legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 7px;
    color: var(--ue-ink-800);
    font-size: 13px;
    font-weight: 850;
}

.notification-language-panel legend span {
    display: inline-grid;
    min-width: 29px;
    height: 22px;
    place-items: center;
    border-radius: 6px;
    background: var(--ue-blue-700);
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.notification-language-panel textarea {
    min-height: 156px;
    resize: vertical;
}

.notification-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ue-line-soft);
}

.notification-composer-actions p {
    max-width: 680px;
    margin: 0;
    color: var(--ue-ink-500);
    font-size: 13px;
    line-height: 1.55;
}

.notification-history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.notification-history-summary article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--ue-line-soft);
    border-radius: 11px;
    background: var(--ue-blue-50);
}

.notification-history-summary article.is-published {
    border-color: #bfe1cc;
    background: #f1faf4;
}

.notification-history-summary article.is-draft {
    border-color: #ead8b0;
    background: #fffaf0;
}

.notification-history-summary article.has-attention {
    border-color: #efb8b8;
    background: #fff4f4;
}

.notification-history-summary span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-history-summary strong {
    color: var(--ue-ink-900);
    font-size: 27px;
    line-height: 1;
}

.admin-notification-list {
    display: grid;
    gap: 12px;
}

.admin-notification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--ue-line-soft);
    border-left: 4px solid var(--ue-blue-500);
    border-radius: var(--ue-radius-md);
    background: #ffffff;
}

.admin-notification-card.status-draft {
    border-left-color: #c28b1d;
}

.admin-notification-card.status-archived {
    border-left-color: var(--ue-ink-300);
    opacity: 0.74;
}

.admin-notification-card-main {
    min-width: 0;
}

.admin-notification-card h3 {
    margin: 0 0 12px;
    color: var(--ue-ink-900);
    font-size: 16px;
}

.notification-history-status,
.notification-history-priority {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 850;
}

.notification-history-status.status-published {
    background: #eaf8ef;
    color: #237b47;
}

.notification-history-status.status-draft,
.notification-history-status.status-scheduled {
    background: #fff5df;
    color: #8a641c;
}

.notification-history-status.status-archived,
.notification-history-status.status-expired {
    background: #edf1f4;
    color: var(--ue-ink-500);
}

.notification-history-priority.priority-normal {
    background: #f1f5f8;
    color: var(--ue-ink-600);
}

.notification-history-priority.priority-important {
    background: #fff0e9;
    color: var(--ue-orange-700);
}

.notification-history-priority.priority-urgent {
    background: #fff0f0;
    color: #b52121;
}

.admin-notification-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px 18px;
    margin: 0;
}

.admin-notification-card dl div {
    display: grid;
    gap: 2px;
    color: var(--ue-ink-600);
    font-size: 13px;
}

.admin-notification-card dt {
    color: var(--ue-ink-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-notification-card dd {
    margin: 0;
}

.notification-channel-pill {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid #b8d9ee;
    border-radius: 999px;
    background: #edf8ff;
    color: var(--ue-blue-800);
    font-weight: 850;
}

.admin-notification-actions {
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
}

@media (max-width: 980px) {
    .notification-step-overview,
    .notification-history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .notification-language-grid {
        grid-template-columns: 1fr;
    }

    .notification-channel-grid {
        grid-template-columns: 1fr;
    }

    .admin-notification-card dl {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 700px) {
    .notification-admin-nav,
    .notification-step-overview,
    .notification-history-summary {
        grid-template-columns: 1fr;
    }

    .notification-overview {
        grid-template-columns: 1fr;
    }

    .notification-toolbar,
    .notification-composer-actions,
    .admin-notification-card {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 16px;
    }

    .notification-card-icon {
        width: 38px;
        height: 38px;
    }

    .notification-open {
        grid-column: 2;
        width: max-content;
    }

    .notification-card-meta time {
        width: 100%;
        margin-left: 0;
    }

    .notification-detail-actions {
        flex-direction: column;
    }

    .notification-detail-actions .button {
        width: 100%;
    }

    .notification-detail,
    .admin-notification-composer,
    .admin-notification-history {
        padding: 20px 16px;
    }

    .notification-settings-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .notification-composer-heading,
    .notification-history-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-permission-note {
        width: max-content;
        max-width: 100%;
    }

    .notification-composer-step {
        padding: 16px 13px;
    }

    .notification-step-overview {
        padding: 10px;
    }

    .notification-filter-grid,
    .notification-audience-preview {
        grid-template-columns: 1fr;
    }

    .notification-audience-preview .button {
        width: 100%;
    }

    .notification-action-field {
        grid-column: auto;
    }

    .admin-notification-card form,
    .admin-notification-card .button {
        width: 100%;
    }

    .admin-notification-card dl {
        grid-template-columns: 1fr;
    }
}

/* Informational legends -------------------------------------------------- */
.status-legend {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--ue-shadow-sm);
}

.status-legend__group {
    min-width: 0;
}

.status-legend__title {
    display: block;
    margin: 0 0 10px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.015em;
    line-height: 1.35;
}

.status-legend__items {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
}

.status-legend__item {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid #dfe8ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgb(23 50 77 / 0.05);
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    white-space: normal;
}

.status-legend .status-legend__item {
    display: inline-flex;
    align-items: center;
}

.status-legend__item > span:last-child {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    white-space: nowrap;
}

.status-legend__dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #dce8f3;
}

.tickets-summary .ticket-status-legend.status-legend {
    padding: 2px 0 2px 22px;
    border: 0;
    border-left: 1px solid #dfe8ef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tickets-summary .ticket-status-legend .status-legend__title {
    margin-bottom: 10px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.tickets-summary .ticket-status-legend .status-legend__item > span:last-child {
    white-space: nowrap;
}

.community-legends.status-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin: 0 0 20px;
    padding: 16px;
    color: var(--ue-ink-700);
    font-size: inherit;
}

.community-legends.status-legend > div,
.invoice-legends.status-legend > div {
    display: block;
}

.rank-legend.status-legend {
    display: grid;
    gap: 0;
    margin: 0 0 18px;
    padding: 16px;
    color: var(--ue-ink-700);
    font-size: inherit;
}

.invoice-legends.status-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin: 0;
    padding: 18px 22px 22px;
    border-top: 0;
    border-radius: 0 0 var(--ue-radius-lg) var(--ue-radius-lg);
    background: #ffffff;
    box-shadow: none;
}

.invoice-legends.status-legend .status-legend__title {
    min-width: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-transform: none;
}

.invoice-legends.status-legend + .invoice-table-toolbar {
    margin-top: 18px;
}

@media (max-width: 820px) {
    .community-legends.status-legend,
    .invoice-legends.status-legend {
        grid-template-columns: minmax(0, 1fr);
    }

    .status-legend__item {
        flex: 1 1 150px;
    }
}

@media (max-width: 700px) {
    .status-legend {
        padding: 14px;
    }

    .tickets-summary .ticket-status-legend.status-legend {
        padding: 16px 0 0;
        border-top: 1px solid #dfe8ef;
        border-left: 0;
    }

    .status-legend__items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-legend__item {
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .status-legend__items {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Community search and tree workspace ----------------------------------- */
.community-search-band .section-eyebrow,
.community-table-section .section-eyebrow,
.community-tree-section .section-eyebrow {
    font-size: 13px;
}

.community-search-form .field,
.tree-depth-form .field {
    display: grid;
    gap: 9px;
    margin: 0;
}

.community-search-form label,
.tree-depth-form label {
    line-height: 1.35;
}

.community-search-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.community-search-primary .community-member-search {
    min-width: 0;
}

.community-search-primary input {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 13px;
}

.community-search-actions {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
}

.community-search-actions button {
    min-width: 112px;
    min-height: 46px;
}

.community-reset-link {
    color: var(--ue-blue-700);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.community-advanced-filters {
    margin-top: 2px;
    border-top: 1px solid #dbe7ef;
}

.community-advanced-filters > summary {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 9px;
    padding: 13px 2px 4px;
    color: var(--ue-blue-800);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    list-style: none;
}

.community-advanced-filters > summary::-webkit-details-marker {
    display: none;
}

.community-advanced-filters > summary::before {
    width: 20px;
    height: 20px;
    border: 1px solid #c9dce9;
    border-radius: 50%;
    background: #ffffff;
    color: var(--ue-blue-700);
    content: "+";
    display: inline-grid;
    flex: 0 0 20px;
    font-size: 14px;
    line-height: 1;
    place-items: center;
}

.community-advanced-filters[open] > summary::before {
    content: "−";
}

.community-advanced-filters > summary small {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 650;
}

.community-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 260px));
    gap: 14px;
    padding: 14px 0 2px 29px;
}

.community-profile-dot-prospect,
.community-profile-prospect {
    background: #7890a3;
}

.community-profile-dot-client,
.community-profile-client {
    background: var(--ue-blue-600);
}

.community-profile-dot-family,
.community-profile-family {
    background: var(--ue-success);
}

.community-profile-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.community-member-status-stack {
    display: grid;
    gap: 6px;
}

.community-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

.community-table th:nth-child(1) { width: 19%; }
.community-table th:nth-child(2) { width: 25%; }
.community-table th:nth-child(3) { width: 18%; }
.community-table th:nth-child(4) { width: 16%; }
.community-table th:nth-child(5) { width: 22%; }

.community-member-cell,
.community-contact-cell,
.community-rank-cell,
.community-network-cell {
    display: grid;
    justify-items: start;
    gap: 5px;
    min-width: 0;
}

.community-member-cell strong,
.community-network-cell strong {
    color: var(--ue-ink-900);
    font-size: 13px;
    line-height: 1.35;
}

.community-member-cell small,
.community-network-cell small {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.community-contact-cell a {
    max-width: 100%;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.community-contact-cell a:hover,
.community-contact-cell a:focus-visible {
    color: var(--ue-orange-600);
    text-decoration: underline;
}

.community-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dce7ef;
}

.community-page-size {
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-page-size label {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 800;
}

.community-page-size select {
    width: 78px;
    height: 40px;
    min-height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #c8d9e6;
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 7 9 11.5 13.5 7' stroke='%230754a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 750;
    line-height: 40px;
}

.community-page-size select:focus {
    border-color: var(--ue-blue-600);
    box-shadow: var(--ue-focus);
}

.community-pagination,
.community-page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.community-page-direction,
.community-page-number,
.community-page-gap {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e2ec;
    border-radius: 9px;
    background: #ffffff;
    color: var(--ue-blue-800);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.community-page-direction {
    padding: 0 13px;
}

.community-page-number,
.community-page-gap {
    width: 40px;
    flex: 0 0 40px;
}

.community-page-direction:hover,
.community-page-direction:focus-visible,
.community-page-number:hover,
.community-page-number:focus-visible {
    border-color: var(--ue-blue-600);
    background: var(--ue-blue-50);
    box-shadow: var(--ue-focus);
    color: var(--ue-blue-800);
}

.community-page-number.is-current {
    border-color: var(--ue-blue-700);
    background: var(--ue-blue-700);
    color: #ffffff;
}

.community-page-direction.is-disabled {
    opacity: 0.42;
}

.community-page-gap {
    border-color: transparent;
    background: transparent;
    color: var(--ue-ink-500);
}

.community-account-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 750;
}

.community-account-state::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--ue-warning);
    content: "";
}

.community-account-state.is-active::before {
    background: var(--ue-success);
}

.community-tree-section .tree-controls {
    display: flex;
    grid-template-columns: none;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 22px;
    margin-bottom: 16px;
    padding: 18px;
}

.tree-depth-form {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(280px, 420px);
    min-width: 0;
    align-items: end;
    flex: 0 1 750px;
    gap: 22px;
}

.tree-depth-form .field {
    min-width: 0;
}

.tree-depth-form select {
    min-height: 46px;
    height: 46px;
    padding: 0 48px 0 14px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 7 9 11.5 13.5 7' stroke='%230754a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
    font-size: 14px;
    line-height: 46px;
}

.tree-depth-form p {
    max-width: 410px;
    margin: 0 0 12px;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.community-tree-section .community-tree-toolbar {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    margin: 0 4px 0 auto;
    padding: 8px 10px 8px 14px;
    border: 1px solid #cfdeea;
    border-radius: var(--ue-radius-sm);
    background: #ffffff;
}

.community-tree-toolbar > span {
    margin-right: 5px;
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 800;
}

.community-tree-section .community-tree-zoom-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex-basis: 42px;
    font-size: 21px;
}

.tree-node-tags {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.tree-node-tags .community-profile-badge,
.tree-node-tags .rank-pill {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 13px;
}

.community-tree-map .tree-node > summary {
    overflow: hidden;
}

.community-tree-map .tree-person {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.community-tree-map .tree-person > small {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .community-search-primary {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-search-actions {
        min-height: 0;
    }

    .community-tree-section .tree-controls,
    .tree-depth-form {
        align-items: stretch;
        flex-direction: column;
    }

    .tree-depth-form {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        flex: 0 0 auto;
        gap: 10px;
    }

    .tree-depth-form .field {
        min-width: 0;
    }

    .community-tree-section .community-tree-toolbar {
        align-self: flex-end;
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .community-search-actions,
    .community-search-actions button,
    .community-reset-link {
        width: 100%;
    }

    .community-search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .community-reset-link {
        padding: 7px 0;
        text-align: center;
    }

    .community-filter-grid {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 0;
    }

    .community-profile-badge {
        white-space: normal;
    }

    .community-table {
        min-width: 0;
        table-layout: auto;
    }

    .community-table td > div {
        justify-items: start;
        text-align: left;
    }

    .community-table td::before {
        font-size: 13px;
    }

    .community-pagination-bar,
    .community-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .community-page-size {
        justify-content: space-between;
    }

    .community-page-size select {
        width: 92px;
    }

    .community-pagination {
        gap: 10px;
    }

    .community-page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }

    .community-page-direction {
        width: 100%;
    }

    .rank-legend .status-legend__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-legend .status-legend__item > span:last-child {
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* App-wide layout and form consistency */

.app-content > :not(.dashboard-hero):not(.dashboard-hero-marker):not(script):not(style) {
    max-width: none;
}

input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    box-sizing: border-box;
}

/* Meter readings */
.meter-reading-hero {
    align-items: center;
}

.meter-reading-hero .button {
    flex: 0 0 auto;
}

.meter-reading-primary-action {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.meter-reading-primary-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.meter-reading-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}

.meter-reading-summary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    padding: 20px 24px;
    border: 1px solid #d5e5f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(15, 70, 116, 0.06);
}

.meter-reading-summary article span {
    color: #58758e;
    font-size: 0.92rem;
    font-weight: 750;
}

.meter-reading-summary article strong {
    color: #0d345f;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1;
}

.meter-reading-summary article.needs-attention {
    border-color: #f4c9bb;
    background: #fff8f5;
}

.meter-reading-guides,
.meter-reading-history,
.meter-reading-form-section {
    border: 1px solid #d5e5f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 70, 116, 0.06);
}

.meter-reading-guides {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.4fr);
    gap: 28px;
    align-items: center;
    padding: 26px;
    margin-bottom: 22px;
}

.meter-reading-guides h2,
.meter-reading-history h2,
.meter-reading-form-section h2,
.meter-reading-transmission-note h2,
.meter-reading-no-contracts h2 {
    margin: 3px 0 8px;
    color: #0d345f;
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    line-height: 1.2;
}

.meter-reading-guides p,
.meter-reading-section-heading p,
.meter-reading-transmission-note p,
.meter-reading-no-contracts p {
    margin: 0;
    color: #5f7890;
    font-size: 0.96rem;
    line-height: 1.55;
}

.meter-reading-guide-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.meter-reading-guide-button {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #cfe1ef;
    border-radius: 16px;
    background: #f4f9fd;
    color: #0f4f91;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.meter-reading-guide-button:hover,
.meter-reading-guide-button:focus-visible {
    border-color: #83b8dc;
    background: #eaf5fc;
    color: #0b4b89;
    transform: translateY(-1px);
}

.meter-reading-guide-button > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    color: #f0522a;
    box-shadow: 0 5px 14px rgba(15, 70, 116, 0.08);
}

.meter-reading-guide-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.meter-reading-guide-button > span:last-child {
    display: grid;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
}

.meter-reading-guide-button strong {
    font-size: 0.94rem;
    line-height: 1.25;
}

.meter-reading-guide-button small {
    color: #668198;
    font-size: 0.8rem;
    line-height: 1.35;
}

.meter-reading-history {
    overflow: hidden;
}

.meter-reading-section-heading {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px;
}

.meter-reading-count {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #d4e4f1;
    border-radius: 999px;
    background: #f3f8fc;
    color: #17599b;
    font-size: 0.82rem;
    font-weight: 800;
}

.meter-reading-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(150px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 20px 26px;
    border-top: 1px solid #dce9f3;
    border-bottom: 1px solid #dce9f3;
    background: #f4f8fb;
}

.meter-reading-filters label,
.meter-reading-form label:not(.meter-reading-contract-card):not(.calculator-check-option):not(.meter-reading-file-control),
.meter-reading-registers legend {
    display: block;
    margin: 0 0 8px;
    color: #355b7d;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.meter-reading-filters input,
.meter-reading-filters select,
.meter-reading-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.meter-reading-form select,
.meter-reading-form textarea {
    min-height: 50px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #bfd4e4;
    border-radius: 13px;
    background: #fff;
    color: #143b63;
    font: inherit;
    font-size: 0.96rem;
}

.meter-reading-form textarea {
    min-height: 132px;
    resize: vertical;
}

.meter-reading-filters input:focus,
.meter-reading-filters select:focus,
.meter-reading-form input:focus,
.meter-reading-form select:focus,
.meter-reading-form textarea:focus {
    outline: none;
    border-color: #2686c7;
    box-shadow: 0 0 0 4px rgba(38, 134, 199, 0.13);
}

.meter-reading-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.meter-reading-filter-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
}

.meter-reading-filter-actions a {
    color: #5c7690;
    font-size: 0.84rem;
    font-weight: 750;
}

.meter-reading-table-wrap {
    overflow-x: auto;
}

.meter-reading-table {
    width: 100%;
    border-collapse: collapse;
}

.meter-reading-table th {
    padding: 14px 18px;
    background: #edf5fa;
    color: #345a7b;
    font-size: 0.76rem;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
}

.meter-reading-table td {
    padding: 18px;
    border-top: 1px solid #dce8f1;
    color: #173d64;
    font-size: 0.9rem;
    vertical-align: middle;
}

.meter-reading-table td strong,
.meter-reading-table td small {
    display: block;
}

.meter-reading-table td small {
    margin-top: 4px;
    color: #6a8297;
    font-size: 0.78rem;
    line-height: 1.35;
}

.meter-reading-energy-chip,
.meter-reading-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
}

.meter-reading-energy-chip {
    margin-bottom: 7px;
    background: #e6f2fb;
    color: #1264a2;
}

.meter-reading-energy-chip.is-gas { background: #fff0e7; color: #b94720; }
.meter-reading-energy-chip.is-heat_pump { background: #e9f7f0; color: #23794d; }
.meter-reading-status.is-recorded { background: #e8f7ef; color: #177447; }
.meter-reading-status.is-needs_review { background: #fff3d8; color: #8a5a00; }
.meter-reading-status.is-locked { background: #e8eef4; color: #536b7f; }

.meter-reading-row-actions {
    white-space: nowrap;
}

.meter-reading-row-actions a {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin-left: 9px;
    color: #0c5ca8;
    font-size: 0.82rem;
    font-weight: 800;
}

.meter-reading-row-actions svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.meter-reading-pagination {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid #dce8f1;
    color: #5d768d;
    font-size: 0.84rem;
    font-weight: 750;
}

.meter-reading-pagination a {
    padding: 8px 12px;
    border: 1px solid #cddfeb;
    border-radius: 10px;
    background: #fff;
    color: #0c5ca8;
}

.meter-reading-pagination a.is-disabled { opacity: .45; pointer-events: none; }

.meter-reading-empty {
    display: grid;
    justify-items: center;
    padding: 52px 24px;
    text-align: center;
}

.meter-reading-empty > span,
.meter-reading-no-contracts > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #edf6fc;
    color: #1974b6;
}

.meter-reading-empty svg,
.meter-reading-no-contracts svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.meter-reading-empty h3 { margin: 16px 0 6px; color: #0d345f; }
.meter-reading-empty p { margin: 0 0 18px; color: #668096; }

.meter-reading-form {
    display: grid;
    gap: 22px;
}

.meter-reading-form-section {
    padding: 0 26px 28px;
}

.meter-reading-form-section > .meter-reading-section-heading {
    margin: 0 -26px 24px;
    border-bottom: 1px solid #dce9f3;
}

.meter-reading-contract-search { max-width: 560px; margin-bottom: 18px; }

.meter-reading-contract-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.meter-reading-contract-card {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 142px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #cfe0ec;
    border-radius: 17px;
    background: #fff;
    color: #173e65;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.meter-reading-contract-card:hover { border-color: #75afd5; background: #f7fbfe; }
.meter-reading-contract-card.is-selected { border-color: #1678ba; background: #edf7fd; box-shadow: 0 0 0 3px rgba(22, 120, 186, .12); }
.meter-reading-contract-card[hidden] { display: none; }
.meter-reading-contract-card input { position: absolute; opacity: 0; pointer-events: none; }

.meter-reading-contract-choice {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border: 2px solid #9ebbd0;
    border-radius: 50%;
    background: #fff;
}

.meter-reading-contract-card.is-selected .meter-reading-contract-choice {
    border: 6px solid #1678ba;
}

.meter-reading-contract-copy { display: grid; min-width: 0; gap: 5px; }
.meter-reading-contract-copy strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.meter-reading-contract-copy small { color: #617d93; font-size: 0.85rem; line-height: 1.4; }
.meter-reading-contract-copy > span:last-child { color: #486a85; font-size: 0.8rem; font-weight: 700; }
.meter-reading-contract-empty { padding: 20px; border-radius: 14px; background: #f3f7fa; color: #637d92; text-align: center; }

.meter-reading-selected-supply {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #cfe2ef;
    border-radius: 16px;
    background: #f2f8fc;
}

.meter-reading-selected-supply[hidden] { display: none; }
.meter-reading-selected-supply .meter-reading-energy-chip { margin: 0; }
.meter-reading-selected-supply div { display: grid; gap: 3px; }
.meter-reading-selected-supply small,
.meter-reading-selected-supply div:last-child span { color: #668198; font-size: 0.8rem; }

.meter-reading-fields-grid,
.meter-reading-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.meter-reading-form .field .hint,
.meter-reading-registers > p {
    margin: 7px 0 0;
    color: #6b8295;
    font-size: 0.8rem;
    line-height: 1.4;
}

.meter-reading-mode-field { max-width: 620px; margin-top: 20px; }
.meter-reading-mode-field[hidden] { display: none; }

.meter-reading-registers {
    padding: 0;
    margin: 26px 0 0;
    border: 0;
}

.meter-reading-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.meter-reading-register[hidden] { display: none; }
.meter-reading-value-input { position: relative; }
.meter-reading-value-input input { padding-right: 72px !important; }
.meter-reading-value-input span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #52718b;
    font-size: 0.86rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.meter-reading-replacement-option { margin-top: 24px; }

.meter-reading-file-control {
    display: flex !important;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 7px 8px 7px 16px;
    margin: 0 !important;
    border: 1px solid #bfd4e4;
    border-radius: 13px;
    background: #fff;
    color: #0d5da4;
    cursor: pointer;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.meter-reading-file-control small {
    max-width: 55%;
    padding: 9px 12px;
    overflow: hidden;
    border-radius: 9px;
    background: #edf5fa;
    color: #627c91;
    font-size: 0.78rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meter-reading-current-photo { display: inline-block; margin-top: 10px; color: #0d5da4; font-size: 0.84rem; font-weight: 800; }
.meter-reading-photo-preview { display: block; max-width: 100%; max-height: 260px; margin-top: 14px; border: 1px solid #d2e2ed; border-radius: 14px; object-fit: contain; }
.meter-reading-photo-preview[hidden] { display: none; }

.meter-reading-transmission-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border: 1px solid #f1cdbf;
    border-left: 5px solid #f0522a;
    border-radius: 17px;
    background: #fff8f5;
}

.meter-reading-transmission-note > span { color: #e7512b; }
.meter-reading-transmission-note svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.meter-reading-transmission-note h2 { margin-top: 0; font-size: 1.1rem; }

.meter-reading-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-bottom: 6px;
}

.meter-reading-form-guides { margin-top: 22px; }

.meter-reading-no-contracts {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
}

.pdf-guide-dialog {
    width: min(1040px, calc(100vw - 36px));
    height: min(820px, calc(100vh - 36px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(4, 38, 70, .3);
}

.pdf-guide-dialog::backdrop { background: rgba(5, 31, 56, .68); backdrop-filter: blur(3px); }
.pdf-guide-dialog[open] { display: grid; grid-template-rows: auto 1fr auto; }
.pdf-guide-dialog-header,
.pdf-guide-dialog-footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 22px; }
.pdf-guide-dialog-header { border-bottom: 1px solid #d9e6ef; }
.pdf-guide-dialog-footer { border-top: 1px solid #d9e6ef; }
.pdf-guide-dialog-header h2 { margin: 3px 0 0; color: #0d345f; font-size: 1.35rem; }
.pdf-guide-dialog-header > button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #eef5fa; color: #174f80; font-size: 1.8rem; line-height: 1; }
.pdf-guide-dialog iframe { width: 100%; height: 100%; border: 0; background: #eaf1f6; }

@media (max-width: 1180px) {
    .meter-reading-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .meter-reading-filter-search { grid-column: span 2; }
    .meter-reading-guides { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .meter-reading-summary { grid-template-columns: 1fr; gap: 10px; }
    .meter-reading-summary article { min-height: 78px; padding: 16px 18px; }
    .meter-reading-guides,
    .meter-reading-history,
    .meter-reading-form-section { border-radius: 17px; }
    .meter-reading-guides { padding: 20px; }
    .meter-reading-guide-actions,
    .meter-reading-contract-grid,
    .meter-reading-fields-grid,
    .meter-reading-details-grid,
    .meter-reading-register-grid { grid-template-columns: 1fr; }
    .meter-reading-guide-actions .meter-reading-guide-button {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        justify-content: stretch;
        width: 100%;
        text-align: left;
    }
    .meter-reading-section-heading { display: grid; padding: 20px; }
    .meter-reading-count { justify-self: start; }
    .meter-reading-filters { grid-template-columns: 1fr; padding: 18px; }
    .meter-reading-filter-search { grid-column: auto; }
    .meter-reading-filter-actions { justify-content: flex-start; }
    .meter-reading-table-wrap { overflow: visible; padding: 14px; }
    .meter-reading-table,
    .meter-reading-table tbody { display: block; }
    .meter-reading-table thead { display: none; }
    .meter-reading-table tr { display: grid; gap: 12px; padding: 18px; margin-bottom: 12px; border: 1px solid #d6e5ef; border-radius: 15px; background: #fff; }
    .meter-reading-table td { display: grid; grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr); gap: 12px; padding: 0; border: 0; text-align: right; }
    .meter-reading-table td::before { content: attr(data-label); color: #698297; font-size: 0.74rem; font-weight: 850; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .meter-reading-table td > * { justify-self: end; }
    .meter-reading-row-actions { display: flex !important; justify-content: flex-end; padding-top: 10px !important; border-top: 1px solid #e0ebf3 !important; }
    .meter-reading-row-actions::before { display: none; }
    .meter-reading-pagination { justify-content: center; }
    .meter-reading-form-section { padding: 0 18px 22px; }
    .meter-reading-form-section > .meter-reading-section-heading { margin: 0 -18px 20px; }
    .meter-reading-selected-supply { grid-template-columns: 1fr; gap: 10px; }
    .meter-reading-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .meter-reading-form-actions .button { width: 100%; }
    .meter-reading-no-contracts { display: grid; }
    .pdf-guide-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
    .pdf-guide-dialog-footer { flex-wrap: wrap; }
}

/* FAQ center */
.faq-hero {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.faq-hero::after {
    content: "";
    position: absolute;
    right: 64px;
    bottom: -88px;
    width: 230px;
    height: 230px;
    border: 38px solid rgba(185, 228, 255, .14);
    border-radius: 50%;
    pointer-events: none;
}

.faq-hero-mark {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 25px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
    transform: rotate(3deg);
}

.faq-hero-mark svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #ff5a24;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: rotate(-3deg);
}

.faq-introduction {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 32px;
    align-items: center;
    padding: 26px 28px;
    border: 1px solid #d4e4ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(10, 55, 92, .06);
    margin-bottom: 14px;
}

.faq-introduction-copy {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.faq-introduction-copy > svg {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
    background: #fff0ea;
    fill: none;
    stroke: #f0522a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.faq-introduction-copy p {
    margin: 0 0 8px;
    color: #365a79;
    font-size: 1rem;
    line-height: 1.55;
}

.faq-introduction-copy span {
    color: #71899d;
    font-size: .8rem;
    font-weight: 750;
}

.faq-search {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.faq-search > label {
    color: #315778;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.faq-search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #b9d1e2;
    border-radius: 15px;
    background: #f8fbfd;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.faq-search-field:focus-within {
    border-color: #1770bd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 112, 189, .11);
}

.faq-search-field > svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #1262a9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.faq-search-field input {
    width: 100%;
    min-height: 54px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0d345f;
    font: inherit;
    font-size: 1rem;
}

.faq-search-field input::placeholder { color: #8297a9; opacity: 1; }
.faq-search-field button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e8f1f7;
    color: #315778;
    font-size: 1.35rem;
    line-height: 1;
}
.faq-search-field button[hidden] { display: none; }

.faq-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 40;
    max-height: min(420px, 55vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #b9d1e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 55, 92, .18);
}
.faq-suggestions[hidden] { display: none; }
.faq-suggestions ul { list-style: none; margin: 0; padding: 0; }
.faq-suggestions [role="option"] { padding: 12px; border-radius: 8px; cursor: pointer; }
.faq-suggestions [role="option"]:hover,
.faq-suggestions [aria-selected="true"] { background: #e8f2fb; outline: 2px solid #1770bd; outline-offset: -2px; }
.faq-suggestions strong { display: block; color: #0d345f; font-size: 14px; line-height: 1.45; }
.faq-suggestions span, .faq-suggestions p { color: #365a79; font-size: 13px; line-height: 1.5; }
.faq-suggestions span { display: block; margin-top: 4px; }
.faq-suggestions p { margin: 8px; }
.faq-item { scroll-margin-top: 140px; }


.page-title-condensed .faq-hero-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    transform: none;
}

.page-title-condensed .faq-hero-mark svg { width: 25px; height: 25px; transform: none; }

.faq-category-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.faq-category-nav button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-height: 65px;
    padding: 9px 13px;
    border: 1px solid #d0e1ec;
    border-radius: 16px;
    background: #fff;
    color: #274f72;
    font: inherit;
    font-size: .87rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    box-shadow: 0 7px 18px rgba(11, 53, 88, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.faq-category-nav button:hover,
.faq-category-nav button:focus-visible {
    border-color: #7eafd3;
    color: #0c57a1;
    box-shadow: 0 10px 22px rgba(11, 78, 130, .09);
    transform: translateY(-1px);
}

.faq-category-nav button.is-active {
    border-color: #0c5bac;
    background: linear-gradient(135deg, #0a3766, #0a5aaa);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 66, 115, .18);
}

.faq-category-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #edf5fa;
    color: #1767ac;
}

.faq-category-nav button.is-active .faq-category-icon { background: rgba(255, 255, 255, .14); color: #ff6a37; }
.faq-category-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.faq-category-nav strong {
    min-width: 30px;
    padding: 5px 7px;
    border-radius: 999px;
    background: #edf4f8;
    color: #56748d;
    font-size: .75rem;
    text-align: center;
}
.faq-category-nav button.is-active strong { background: rgba(255, 255, 255, .15); color: #fff; }

.faq-workspace {
    overflow: hidden;
    border: 1px solid #d0e1ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(10, 53, 88, .07);
}

.faq-workspace-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #dbe8f1;
    background: linear-gradient(115deg, #f7fbfd, #edf6fb);
}

.faq-workspace-eyebrow {
    color: #ec4f27;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.faq-workspace-header h2 { margin: 4px 0 0; color: #0c345f; font-size: 1.55rem; }
.faq-workspace-header output {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #c8dce9;
    border-radius: 999px;
    background: #fff;
    color: #145a98;
    font-size: .8rem;
    font-weight: 850;
}

.faq-sections { display: grid; gap: 22px; padding: 26px; background: #f5f9fc; }
.faq-section {
    overflow: hidden;
    border: 1px solid #d5e4ee;
    border-radius: 18px;
    background: #fff;
}

.faq-section > header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 19px 21px;
    border-bottom: 1px solid #e1ebf2;
    background: #fbfdfe;
}

.faq-section-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #eaf4fa;
    color: #1266ab;
}

.faq-section-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.faq-section h3 { margin: 0 0 3px; color: #103a66; font-size: 1.1rem; }
.faq-section header p { margin: 0; color: #7790a4; font-size: .78rem; font-weight: 750; }
.faq-list { padding: 0 20px; }
.faq-item { border-bottom: 1px solid #e2ebf1; }
.faq-item:last-child { border-bottom: 0; }
.faq-item[hidden] { display: none; }
.faq-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 68px;
    padding: 14px 2px;
    color: #183e64;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #075ba6; }
.faq-item summary:focus-visible { outline: 3px solid rgba(16, 105, 181, .2); outline-offset: 4px; border-radius: 8px; }
.faq-item-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #edf5fa;
    color: #1767ac;
}
.faq-item-toggle::before,
.faq-item-toggle::after { content: ""; position: absolute; width: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.faq-item-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-item-toggle { background: #fff0eb; color: #ef522b; }
.faq-item[open] .faq-item-toggle::after { transform: rotate(0); }
.faq-answer { padding: 0 54px 20px 2px; }
.faq-answer p { margin: 0; color: #506e87; font-size: .93rem; line-height: 1.68; }
.faq-empty { display: grid; place-items: center; padding: 58px 24px; text-align: center; }
.faq-empty[hidden] { display: none; }
.faq-empty svg { width: 42px; height: 42px; margin-bottom: 12px; fill: none; stroke: #f0522a; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.faq-empty h2 { margin: 0 0 8px; color: #123b65; font-size: 1.35rem; }
.faq-empty p { margin: 0; color: #6e879b; }

.faq-support {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(460px, 1.2fr);
    overflow: hidden;
    border: 1px solid #0e477a;
    border-radius: 22px;
    background: linear-gradient(130deg, #082e57, #095896);
    color: #fff;
    box-shadow: 0 16px 35px rgba(4, 44, 80, .16);
}

.faq-support-main { padding: 32px; }
.faq-support-main > span { color: #ff7041; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.faq-support-main h2 { margin: 7px 0 9px; color: #fff; font-size: 1.6rem; }
.faq-support-main p { max-width: 620px; margin: 0 0 21px; color: #c9e3f4; line-height: 1.55; }
.faq-ticket-button,
.faq-ticket-button:hover,
.faq-ticket-button:focus-visible {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    width: auto;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #ff5424;
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}
.faq-ticket-button:hover { background: #e9471d; transform: translateY(-1px); }
.faq-ticket-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.faq-contact-list { display: grid; align-content: center; padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .055); }
.faq-contact-list a {
    display: grid;
    grid-template-columns: minmax(130px, .55fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    color: #fff;
    text-decoration: none;
}
.faq-contact-list a:last-child { border-bottom: 0; }
.faq-contact-list a:hover { background: rgba(255, 255, 255, .075); }
.faq-contact-list a > span:first-child { color: #a9cee8; font-size: .78rem; font-weight: 800; }
.faq-contact-list strong { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.faq-contact-list a > span:last-child { color: #ff7041; font-size: 1.25rem; }

@media (max-width: 1080px) {
    .faq-introduction { grid-template-columns: 1fr; }
    .faq-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-support { grid-template-columns: 1fr; }
    .faq-contact-list { border-top: 1px solid rgba(255, 255, 255, .14); border-left: 0; }
}

@media (max-width: 760px) {
    .faq-hero-mark { display: none; }
    .faq-hero::after { right: -65px; bottom: -115px; }
    .faq-introduction { gap: 22px; padding: 20px; border-radius: 17px; }
    .faq-introduction-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .faq-category-nav { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
    .faq-category-nav button { flex: 0 0 min(82vw, 310px); min-height: 61px; scroll-snap-align: start; }
    .faq-workspace { border-radius: 17px; }
    .faq-workspace-header { align-items: flex-end; padding: 20px; }
    .faq-workspace-header h2 { font-size: 1.3rem; }
    .faq-sections { gap: 15px; padding: 14px; }
    .faq-section { border-radius: 15px; }
    .faq-section > header { padding: 16px; }
    .faq-list { padding: 0 15px; }
    .faq-item summary { gap: 13px; min-height: 64px; font-size: .91rem; }
    .faq-answer { padding-right: 0; }
    .faq-support { border-radius: 17px; }
    .faq-support-main { padding: 25px 22px; }
    .faq-contact-list { padding: 10px 14px; }
    .faq-contact-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 13px 8px; }
    .faq-contact-list a > span:first-child { grid-column: 1; }
    .faq-contact-list strong { grid-column: 1; }
    .faq-contact-list a > span:last-child { grid-column: 2; grid-row: 1 / span 2; }
}

/* Useful documents */
.useful-documents-hero {
    position: relative;
    overflow: hidden;
}

.useful-documents-hero::after {
    content: "";
    position: absolute;
    right: 110px;
    bottom: -105px;
    width: 230px;
    height: 230px;
    border: 38px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    pointer-events: none;
}

.useful-documents-hero-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
}

.useful-documents-hero-mark svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.useful-documents-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: calc(var(--app-topbar-height) + 18px) 0 22px;
    padding: 22px 24px;
    border: 1px solid var(--ue-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ue-shadow-sm);
}

.useful-documents-intro-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: #fff0eb;
    color: #ef522b;
}

.useful-documents-intro-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.useful-documents-intro h2,
.useful-documents-intro p {
    margin: 0;
}

.useful-documents-intro h2 {
    color: var(--ue-ink-900);
    font-size: 1.08rem;
}

.useful-documents-intro p {
    margin-top: 5px;
    color: var(--ue-ink-600);
    line-height: 1.55;
}

.useful-document-workspace {
    padding: 28px;
    border: 1px solid var(--ue-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--ue-shadow-md);
    scroll-margin-top: calc(var(--app-topbar-height) + 90px);
}

.useful-document-heading {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    justify-content: space-between;
}

.useful-document-heading h2 {
    margin: 6px 0 7px;
    color: var(--ue-ink-900);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.useful-document-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--ue-ink-600);
    line-height: 1.55;
}

.useful-document-version {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #cfe0ec;
    border-radius: 999px;
    background: #f3f8fc;
    color: var(--ue-ink-700);
    font-size: .8rem;
    font-weight: 800;
}

.useful-document-language-note {
    display: flex;
    gap: 8px 12px;
    align-items: baseline;
    margin: 22px 0 18px;
    padding: 12px 14px;
    border-left: 4px solid #ef522b;
    border-radius: 0 10px 10px 0;
    background: #fff7f3;
    color: var(--ue-ink-700);
    font-size: .88rem;
    line-height: 1.5;
}

.useful-document-language-note strong {
    flex: 0 0 auto;
    color: var(--ue-ink-900);
}

.useful-document-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.useful-document-card {
    display: flex;
    min-width: 0;
    min-height: 226px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #d7e4ee;
    border-radius: 17px;
    background: #f8fbfd;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.useful-document-card:hover {
    border-color: #a9cce5;
    box-shadow: 0 12px 25px rgba(8, 52, 91, .09);
    transform: translateY(-2px);
}

.useful-document-card.is-current {
    border-color: #79b7df;
    background: #f2f9fe;
    box-shadow: inset 0 3px 0 #1681c4;
}

.useful-document-card header {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.useful-document-language-code,
.useful-document-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.useful-document-language-code {
    background: #075ba6;
    color: #fff;
}

.useful-document-badge {
    background: #eaf4fb;
    color: #075ba6;
    letter-spacing: 0;
}

.useful-document-badge.is-official {
    background: #e8f7ee;
    color: #217a47;
}

.useful-document-card h3 {
    margin: 18px 0 5px;
    color: var(--ue-ink-900);
    font-size: 1.15rem;
}

.useful-document-card p {
    margin: 0 0 20px;
    color: var(--ue-ink-500);
    font-size: .85rem;
}

.useful-document-download,
.useful-document-download:hover,
.useful-document-download:focus-visible {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 45px;
    margin-top: auto;
    color: #fff;
    text-decoration: none;
}

.useful-document-download svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.account-closure-procedure {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
    gap: 18px;
    margin-top: 20px;
}

.account-closure-steps,
.account-closure-destinations {
    padding: 22px;
    border: 1px solid #dce7ef;
    border-radius: 17px;
    background: #fff;
}

.account-closure-procedure h3 {
    margin: 0 0 16px;
    color: var(--ue-ink-900);
    font-size: 1.05rem;
}

.account-closure-steps ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-closure-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.account-closure-steps li > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4fb;
    color: #075ba6;
    font-size: .8rem;
    font-weight: 900;
}

.account-closure-steps li p {
    margin: 0;
    color: var(--ue-ink-700);
    line-height: 1.45;
}

.account-closure-notice {
    margin: 17px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f8fb;
    color: var(--ue-ink-600);
    font-size: .82rem;
    line-height: 1.5;
}

.account-closure-destinations {
    background: linear-gradient(145deg, #082e57, #075b99);
    color: #fff;
}

.account-closure-destinations h3 {
    color: #fff;
}

.account-closure-destination {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    text-decoration: none;
}

.account-closure-destination:last-child {
    border-bottom: 0;
}

.account-closure-destination > span:first-child {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #ff7041;
    font-weight: 900;
}

.account-closure-destination small,
.account-closure-destination strong {
    display: block;
}

.account-closure-destination small {
    margin-bottom: 3px;
    color: #a9cee8;
    font-size: .75rem;
    font-weight: 750;
}

.account-closure-destination strong {
    overflow-wrap: anywhere;
    font-size: .88rem;
    line-height: 1.45;
}

.faq-answer-cta {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #eaf4fb;
    color: #075ba6;
    font-size: .83rem;
    font-weight: 800;
    text-decoration: none;
}

.faq-answer-cta:hover {
    background: #dceefa;
    color: #034b87;
}

.profile-account-closure {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 22px 24px;
    border-color: #d4e3ee;
    background: linear-gradient(105deg, #fff 0%, #fff 62%, #f2f8fc 100%);
}

.profile-account-closure-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: #eaf4fb;
    color: #075ba6;
}

.profile-account-closure-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.profile-account-closure-copy h2,
.profile-account-closure-copy p {
    margin: 0;
}

.profile-account-closure-copy h2 {
    margin-top: 4px;
    color: var(--ue-ink-900);
    font-size: 1.2rem;
}

.profile-account-closure-copy p {
    margin-top: 5px;
    color: var(--ue-ink-600);
    line-height: 1.5;
}

.profile-account-closure-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-account-closure-actions a,
.profile-account-closure-actions a:hover,
.profile-account-closure-actions a:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 43px;
    padding: 10px 15px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .useful-document-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-closure-procedure {
        grid-template-columns: 1fr;
    }

    .profile-account-closure {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-account-closure-actions {
        grid-column: 2;
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .useful-documents-hero-mark {
        display: none;
    }

    .useful-documents-intro,
    .useful-document-workspace {
        padding: 19px;
        border-radius: 17px;
    }

    .useful-document-heading {
        display: grid;
        gap: 13px;
    }

    .useful-document-version {
        justify-self: start;
    }

    .useful-document-language-note {
        display: grid;
    }

    .useful-document-cards {
        grid-template-columns: 1fr;
    }

    .useful-document-card {
        min-height: 210px;
    }

    .account-closure-steps,
    .account-closure-destinations {
        padding: 18px;
    }

    .profile-account-closure {
        grid-template-columns: 1fr;
        padding: 20px;
        background: #fff;
    }

    .profile-account-closure-icon {
        width: 46px;
        height: 46px;
    }

    .profile-account-closure-actions {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-account-closure-actions a,
    .profile-account-closure-actions a:hover,
    .profile-account-closure-actions a:focus-visible {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* Withdrawals */

.withdrawals-hero {
    align-items: end;
}

.withdrawals-hero .button {
    margin-top: 14px;
}

.withdrawal-command {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 18px;
}

.withdrawal-balance-panel,
.withdrawal-cycle-card,
.withdrawal-requirement,
.withdrawal-empty-state {
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: var(--ue-surface);
    box-shadow: var(--ue-shadow-sm);
}

.withdrawal-balance-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
    background:
        radial-gradient(circle at 92% 15%, rgba(72, 180, 232, 0.28), transparent 29%),
        linear-gradient(135deg, var(--ue-navy-950), var(--ue-blue-800));
    color: #fff;
}

.withdrawal-balance-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.withdrawal-balance-heading span,
.withdrawal-cycle-card > span:not(.withdrawal-cycle-icon) {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.withdrawal-balance-heading h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.withdrawal-state-chip {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #d9f1ff;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.withdrawal-balance-panel > p {
    max-width: 620px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.78);
}

.withdrawal-threshold {
    display: grid;
    max-width: 560px;
    gap: 8px;
}

.withdrawal-threshold > div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.withdrawal-threshold > div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #53c6f5, #fff);
}

.withdrawal-threshold small,
.withdrawal-release-note {
    color: rgba(255, 255, 255, 0.7);
}

.withdrawal-primary-action {
    margin-top: 28px;
}

.withdrawal-primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.withdrawal-release-note {
    display: block;
    max-width: 620px;
    margin-top: 11px;
    font-size: 13px;
}

.withdrawal-release-note strong,
.withdrawal-release-note span {
    display: block;
}

.withdrawal-release-note strong {
    margin-bottom: 3px;
    color: #fff;
}

.withdrawal-cycle-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
}

.withdrawal-cycle-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: auto;
    place-items: center;
    border-radius: 14px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.withdrawal-cycle-icon svg,
.withdrawal-empty-state svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
}

.withdrawal-cycle-card > span:not(.withdrawal-cycle-icon) {
    margin-top: 28px;
    color: var(--ue-blue-700);
}

.withdrawal-cycle-card h2 {
    margin: 5px 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.035em;
}

.withdrawal-cycle-card p {
    margin: 0;
    color: var(--ue-ink-700);
}

.withdrawal-cycle-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 24px 0 12px;
}

.withdrawal-cycle-line span {
    height: 5px;
    border-radius: 999px;
    background: var(--ue-blue-100);
}

.withdrawal-cycle-line span:last-child {
    background: var(--ue-orange-500);
}

.withdrawal-cycle-card small {
    color: var(--ue-ink-500);
}

.withdrawal-readiness,
.withdrawal-history {
    margin-top: 34px;
}

.withdrawal-requirements {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.withdrawal-requirement {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
}

.withdrawal-requirement-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
    font-size: 14px;
    font-weight: 850;
}

.withdrawal-requirement.is-ready .withdrawal-requirement-icon {
    background: #e8f6ec;
    color: var(--ue-success);
}

.withdrawal-requirement > div > span {
    color: var(--ue-ink-500);
    font-size: 13px;
    font-weight: 750;
}

.withdrawal-requirement h3 {
    margin: 2px 0 7px;
    font-size: 18px;
}

.withdrawal-requirement p {
    margin: 0;
    color: var(--ue-ink-700);
    font-size: 14px;
}

.withdrawal-requirement a {
    display: inline-block;
    margin-top: 13px;
    color: var(--ue-blue-700);
    font-size: 14px;
    font-weight: 750;
}

.withdrawal-empty-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    padding: 34px;
    text-align: center;
}

.withdrawal-empty-state > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.withdrawal-empty-state h3 {
    margin: 14px 0 5px;
}

.withdrawal-empty-state p {
    max-width: 520px;
    margin: 0;
    color: var(--ue-ink-700);
}

/* Administrative withdrawals */

.admin-withdrawals-hero {
    align-items: end;
}

.admin-withdrawals-release {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid #f3c9b9;
    border-radius: 999px;
    background: #fff5f1;
    color: #a63c18;
    font-size: 13px;
    font-weight: 750;
}

.admin-withdrawals-release > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ue-orange-500);
}

.admin-withdrawals-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.admin-withdrawals-summary article {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ue-line);
    border-radius: 14px;
    background: #fff;
}

.admin-withdrawals-summary article > span,
.admin-withdrawals-summary article > small {
    display: block;
    color: var(--ue-ink-500);
    font-size: 12px;
}

.admin-withdrawals-summary article > span {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-withdrawals-summary strong {
    display: block;
    margin: 9px 0 5px;
    color: var(--ue-ink-900);
    font-size: 28px;
    line-height: 1;
}

.admin-withdrawals-summary .is-cycle-amount {
    border-color: #a8d6f2;
    background: linear-gradient(145deg, var(--ue-blue-50), #fff);
}

.admin-withdrawals-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 18px;
    margin-top: 22px;
}

.admin-withdrawals-workspace,
.admin-withdrawals-cycle {
    min-width: 0;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-lg);
    background: #fff;
    box-shadow: var(--ue-shadow-sm);
}

.admin-withdrawals-workspace > header,
.admin-withdrawals-cycle {
    padding: 24px;
}

.admin-withdrawals-workspace h2,
.admin-withdrawals-workspace p,
.admin-withdrawals-cycle h2,
.admin-withdrawals-cycle p {
    margin: 0;
}

.admin-withdrawals-workspace h2,
.admin-withdrawals-cycle h2 {
    margin-top: 4px;
    font-size: 23px;
}

.admin-withdrawals-workspace header p,
.admin-withdrawals-cycle > p {
    margin-top: 7px;
    color: var(--ue-ink-700);
}

.admin-withdrawals-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 24px 18px;
}

.admin-withdrawals-tabs a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.admin-withdrawals-tabs a span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: var(--ue-canvas);
    font-size: 12px;
}

.admin-withdrawals-tabs a.active {
    background: var(--ue-navy-950);
    color: #fff;
}

.admin-withdrawals-tabs a.active span {
    background: rgba(255, 255, 255, 0.14);
}

.admin-withdrawals-empty {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    padding: 36px;
    border-top: 1px solid var(--ue-line);
    text-align: center;
}

.admin-withdrawals-empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: var(--ue-blue-50);
    color: var(--ue-blue-700);
}

.admin-withdrawals-empty svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
}

.admin-withdrawals-empty h3 {
    margin: 14px 0 5px;
}

.admin-withdrawals-empty p {
    max-width: 490px;
    margin: 0;
    color: var(--ue-ink-700);
}

.admin-withdrawals-cycle {
    align-self: start;
}

.admin-withdrawals-cycle dl {
    display: grid;
    gap: 0;
    margin: 22px 0;
}

.admin-withdrawals-cycle dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ue-line);
}

.admin-withdrawals-cycle dt {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.admin-withdrawals-cycle dd {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.admin-withdrawals-policy {
    padding: 15px;
    border-radius: 12px;
    background: var(--ue-blue-50);
}

.admin-withdrawals-policy strong {
    font-size: 14px;
}

.admin-withdrawals-policy p {
    margin-top: 5px;
    font-size: 13px;
}

@media (max-width: 1150px) {
    .withdrawal-requirements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-withdrawals-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .withdrawal-command,
    .withdrawal-requirements,
    .admin-withdrawals-layout {
        grid-template-columns: 1fr;
    }

    .withdrawal-cycle-icon {
        margin-bottom: 0;
    }
}

@media (max-width: 620px) {
    .withdrawal-balance-heading {
        display: grid;
    }

    .withdrawal-state-chip {
        justify-self: start;
    }

    .withdrawal-balance-panel,
    .withdrawal-cycle-card {
        padding: 22px;
    }

    .admin-withdrawals-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-withdrawals-summary .is-cycle-amount {
        grid-column: 1 / -1;
    }
}

/* Shared section navigation: measured docking keeps nested menus available
   beyond their original panel, without hiding targets under the app header. */
.sticky-submenu-slot {
    display: flow-root;
    min-width: 0;
}

[data-app-shell] .dashboard-hero {
    top: var(--submenu-heading-top, var(--app-topbar-height));
}

/* Join the page header to its navigation from the first paint after setup,
   not only after the menu reaches its docked position. */
[data-app-shell] .dashboard-hero:has(+ .sticky-submenu-slot) {
    margin-bottom: 0;
}

[data-app-shell] .dashboard-hero + .sticky-submenu-slot .sticky-submenu {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

[data-app-shell] .sticky-submenu {
    position: relative;
    top: auto;
    z-index: 55;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--ue-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 53, 89, 0.06);
    transition: none;
    scrollbar-width: thin;
}

[data-app-shell] .sticky-submenu.is-docked {
    position: fixed;
    margin: 0;
    max-width: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 7px 18px rgba(15, 53, 89, 0.12);
}

[data-app-shell] .sticky-submenu a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ue-ink-700);
    font-family: inherit;
    font-size: var(--ue-font-control);
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

[data-app-shell] .sticky-submenu a strong {
    color: inherit;
    font: inherit;
}

[data-app-shell] .sticky-submenu a:hover,
[data-app-shell] .sticky-submenu a:focus-visible {
    color: var(--ue-blue-700);
    background: var(--ue-blue-50);
}

[data-app-shell] .sticky-submenu a:focus-visible {
    outline: 2px solid var(--ue-blue-600);
    outline-offset: -2px;
}

[data-app-shell] .sticky-submenu a:is(.active, .is-active, [aria-current="location"], [aria-current="page"]) {
    color: var(--ue-blue-700);
    background: var(--ue-blue-50);
    box-shadow: inset 0 -3px 0 var(--ue-orange-600);
}

/* Keep explanatory card copy accessible, while using compact navigation tabs. */
[data-app-shell] .sticky-submenu a small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The notification history caption contains a live count: keep it visible. */
[data-app-shell] .notification-admin-nav.sticky-submenu a { padding-block: 7px; }

[data-app-shell] .notification-admin-nav.sticky-submenu a small {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    font-size: var(--ue-font-caption);
}

[data-app-shell] .sticky-submenu .notification-admin-nav-icon,
[data-app-shell] .notification-step-overview.sticky-submenu a > span,
[data-app-shell] .contract-registry-navigation.sticky-submenu > a > span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
}

[data-app-shell] .sticky-submenu > li { flex: 0 0 auto; list-style: none; }

[data-app-shell] .app-content [id] {
    scroll-margin-top: var(--submenu-anchor-offset, calc(var(--app-topbar-height) + 18px));
}

@media (max-width: 640px) {
    [data-app-shell] .workspace-navigation.sticky-submenu { padding-inline: 10px; }
    [data-app-shell] .sticky-submenu a { min-height: 44px; padding-inline: 12px; }
}

@media print {
    [data-app-shell] .sticky-submenu-slot { display: none; }
}

/* Accounting billing workspace: read-only documents and explicit example previews. */
.billing-panel { display: grid; gap: 20px; }
.billing-toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.billing-toolbar .actions { margin: 0; }
.admin-search-form.billing-filters { display: grid; grid-template-columns: minmax(160px, 220px) minmax(200px, 1fr) auto; align-items: end; gap: 16px; }
.billing-source-note { margin: 0; color: var(--text-muted, #52647a); font-size: 14px; }
.billing-demo-notice { padding: 16px 20px; border-left: 4px solid #d37b16; background: #fff6e8; border-radius: 8px; color: #674012; }
.billing-demo-notice p { margin: 6px 0 0; }
.billing-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.billing-summary .feature-panel { margin: 0; }
.billing-summary h2 { margin: 10px 0 0; font-size: 26px; overflow-wrap: anywhere; }
.billing-summary p { margin-bottom: 0; }
.billing-results td small { display: block; margin-top: 5px; font-size: 12px; color: #52647a; }
.billing-status { display: inline-block; padding: 5px 9px; border-radius: 8px; background: #eef2f7; color: #3f536e; font-size: 12px; font-weight: 700; }
.billing-status-matched { background: #e6f4ef; color: #23664e; }
.billing-status-mismatch, .billing-status-exceeds, .billing-status-ineligible { background: #fff0e2; color: #8a420b; }
.billing-pagination { padding: 18px 24px; align-items: center; }
.billing-checks li { margin: 12px 0; }
@media (max-width: 900px) { .billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .admin-search-form.billing-filters { grid-template-columns: minmax(0, 1fr); }
    .billing-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .billing-toolbar, .billing-toolbar .actions { align-items: stretch; }
    .billing-toolbar > a { width: 100%; text-align: center; }
    .billing-results td { overflow-wrap: anywhere; }
}
.billing-results .contracts-table td .billing-status { color: #3f536e; }
.billing-results .contracts-table td .billing-status-matched { color: #23664e; }
.billing-results .contracts-table td .billing-status-mismatch,
.billing-results .contracts-table td .billing-status-exceeds,
.billing-results .contracts-table td .billing-status-ineligible { color: #8a420b; }
.offer-change-status {
    display: inline-block;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eaf4fc;
    color: #123c65;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}

.contract-offer-change form {
    margin-top: 12px;
}

/* General document library, followed by the account-closure procedure. */
.document-library-toolbar,
.document-library-languages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.document-library-toolbar { justify-content: space-between; }
.document-library-languages > span { margin-right: 6px; font-weight: 700; }
.document-library-languages a {
    padding: 9px 15px;
    border: 1px solid var(--ue-line);
    border-radius: 999px;
    color: var(--ue-ink-700);
    background: #fff;
    text-decoration: none;
}
.document-library-languages a[aria-current="true"] {
    color: #fff;
    background: var(--ue-ink-900);
    border-color: var(--ue-ink-900);
}
.document-library-closure-link { color: var(--ue-ink-600); font-size: .85rem; }
.document-library-notice { margin: 0; color: var(--ue-ink-600); font-size: .85rem; line-height: 1.6; }
.document-library-section { margin-top: 20px; margin-bottom: 20px; }
.document-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.document-library-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--ue-line);
    border-radius: 16px;
    background: #fbfcfe;
}
.document-library-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.document-library-file { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; color: var(--ue-ink-600); }
.document-library-file svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.document-library-language { padding: 4px 8px; border-radius: 6px; background: #edf2f7; font-size: .75rem; font-weight: 800; }
.document-library-card h3 { margin: 18px 0 8px; color: var(--ue-ink-900); font-size: 1.08rem; }
.document-library-card p { margin: 0 0 14px; color: var(--ue-ink-600); line-height: 1.6; font-size: .9rem; }
.document-library-version { margin-bottom: 18px; color: var(--ue-ink-600); font-size: .75rem; overflow-wrap: anywhere; }
.document-library-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 6px; }
.document-library-actions .button { min-height: 40px; padding: 10px 18px; font-size: .85rem; }
.document-library-download { color: var(--ue-ink-700); font-size: .85rem; font-weight: 700; }
.document-library-unavailable { color: var(--ue-ink-600); font-size: .85rem; }
@media (max-width: 680px) {
    .document-library-grid { grid-template-columns: 1fr; }
    .document-library-card { padding: 18px; }
    .document-library-languages > span { flex-basis: 100%; }
    .document-library-toolbar { align-items: flex-start; gap: 18px; }
}

/* Fit workspaces to their available width, including an expanded tablet sidebar. */
.app-content :is(.feature-panel, form, fieldset, .table-scroll),
.auth-card,
.auth-card-section,
.auth-card-header {
    min-width: 0;
}

.auth-card {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.community-search-form,
.ticket-form {
    grid-template-columns: minmax(0, 1fr);
}

.community-search-form :is(input, select),
.ticket-form :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
}

.admin-filter-toolbar {
    display: block;
}

.admin-filter-toolbar .inline-form,
.admin-search-form.billing-filters {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.admin-review-filter-heading,
.admin-permissions-header,
.wallet-recharge-admin-filter-heading {
    flex-wrap: wrap;
}

.admin-review-filter-state span,
.wallet-recharge-admin-filter-state span,
.permissions-account-summary > div,
.workflow-state-grid strong {
    overflow-wrap: anywhere;
    white-space: normal;
}

.app-content .table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

@media (min-width: 701px) and (max-width: 1100px) {
    .invoice-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    }

    .ticket-form .profile-form-grid,
    .permissions-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    }

    .admin-search-form:not(.billing-filters):not(.negative-wallet-filters) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-special-filter {
    display: block;
}

.admin-ticket-filters {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.workflow-history-layout > div {
    min-width: 0;
}

.contract-registry-table td,
.contract-registry-table td strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.billing-panel .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.contract-registry-summary span {
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 120px;
    overflow-wrap: anywhere;
}

/* Keep keyboard focus visible against light and dark surfaces. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ue-navy-950);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #ffffff;
}

.queue-pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.queue-pagination span { overflow-wrap: anywhere; }

.notification-review-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    padding: 24px;
    border: 1px solid var(--ue-line);
    border-radius: var(--ue-radius-md);
    color: var(--ue-ink-900);
    overflow: auto;
}
.notification-review-dialog::backdrop { background: rgba(5, 47, 92, .55); }
.notification-review-dialog dl > div { padding-block: 8px; border-bottom: 1px solid var(--ue-line); }
.notification-review-dialog dt { font-weight: 750; }
.notification-review-dialog dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.notification-review-dialog .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.notification-review-dialog button { white-space: normal; }

.prelaunch-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--ue-blue-100);
    border-radius: var(--ue-radius-sm);
    background: var(--ue-blue-50);
    color: var(--ue-ink-900);
    scroll-margin-top: calc(var(--app-topbar-height, 76px) + 12px);
}
.prelaunch-notice summary { cursor: pointer; font-size: 14px; line-height: 1.45; }
.prelaunch-notice summary span { display: block; margin-left: 18px; color: var(--ue-ink-700); }
.prelaunch-notice-detail { padding-top: 8px; font-size: 14px; }
.prelaunch-notice-detail p { margin: 8px 0; }
.prelaunch-link-availability { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; }
.topbar-new-contract.prelaunch-information-link { background: var(--ue-blue-50); color: var(--ue-blue-800); box-shadow: none; }
@media (max-width: 1100px) {
    .topbar-new-contract .prelaunch-link-availability { display: none; }
}
/* The title's full-bleed negative margin must not cover the preceding notice. */
.app-content .prelaunch-notice + .dashboard-hero { margin-top: 0; }

/* Metrics remain in document flow; only title and relevant navigation dock. */
.app-content > .contract-registry-summary { margin: 0 0 20px; }
.billing-tabs { display: flex; gap: 8px; overflow-x: auto; }
.billing-tabs a { padding: 12px 16px; }
[data-sensitive-form] :is(label, input, textarea, select),
.notification-composer-form :is(label, input, textarea, select) { font-size: var(--ue-font-control); }
@media (max-width: 640px) {
    .admin-review-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .admin-ticket-overview, .wallet-recharge-admin-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .admin-review-stat, .admin-ticket-stat { padding: 12px 9px; }
    .admin-review-stat span, .admin-ticket-stat span { letter-spacing: 0; overflow-wrap: anywhere; }
    .page-title-condensed .dashboard-hero h1 { font-size: 20px; line-height: 1.25; }
    .app-content > .contract-registry-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    [data-sensitive-form] :is(input, textarea, select),
    .notification-composer-form :is(input, textarea, select) { font-size: 16px; }
}
.billing-summary .feature-panel { min-height: 0; padding: 16px; }
.billing-summary .section-eyebrow { overflow-wrap: anywhere; letter-spacing: .03em; }
@media (max-width: 640px) {
    .billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Contract fields fit their container (including SEPA inside an expanded sidebar).
   Keep at most two columns, with the existing desktop widths and mobile rules. */
@media (min-width: 701px) {
    .contract-form .profile-form-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc((100% - 24px) / 2))), 1fr));
    }
}

/* Refund form: keep the accepted economic amounts grouped on narrow screens. */
.cash-refund-amounts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    max-width: 480px;
    padding: 18px;
    border-radius: 12px;
    background: #eef6fd;
}
.cash-refund-amounts dd { margin: 0; text-align: right; white-space: nowrap; }

.cash-refund-panel h2 { margin-top: 0; }
.cash-refund-panel p { font-weight: 400; line-height: 1.6; }

/* Client review: readable compact company details and clickable growth rules. */
.legal-footer, .auth-workspace > .legal-footer {
    font-size: 11px;
    gap: 4px;
    line-height: 1.45;
}
.journey-rules > summary { cursor: pointer; }

/* Suggestions are list options, not primary action buttons. Keep their text
   readable when the global button hover/focus treatment applies. */
.city-autocomplete-results .city-autocomplete-result {
    background: #ffffff;
    color: #0754a6;
    box-shadow: none;
    transform: none;
    outline: none;
}
.city-autocomplete-results .city-autocomplete-result:hover,
.city-autocomplete-results .city-autocomplete-result:focus-visible,
.city-autocomplete-results .city-autocomplete-result[aria-selected="true"] {
    background: #e8f3fa;
    color: #0754a6;
}
.city-autocomplete-results .city-autocomplete-result:focus-visible {
    outline: 2px solid #0754a6;
    outline-offset: -2px;
}
.city-autocomplete-results > .hint { padding: 10px 12px; margin: 0; }

/* Compact application headings while preserving readable controls and touch targets. */
@media (min-width: 1121px) {
    :root { --app-topbar-height: 64px; }
    .app-topbar { display: flex; gap: 12px; }
    .topbar-section { flex: 0 0 auto; }
    .topbar-actions { flex: 1 1 auto; min-width: 0; }
}
@media (min-width: 641px) {
    [data-app-shell] .dashboard-hero { padding-block: 16px; }
    [data-app-shell] .dashboard-hero h1 { font-size: clamp(24px, 2.2vw, 28px); margin-bottom: 4px; }
    .page-title-condensed [data-app-shell] .dashboard-hero { padding-block: 8px; }
    .page-title-condensed [data-app-shell] .dashboard-hero h1 { font-size: 20px; }
    [data-app-shell] :is(.feature-panel, .table-heading, .panel-heading-row) h2 { font-size: 18px; }
    .ticket-list-panel .ticket-row-action { position: sticky; right: 0; background: #ffffff; }
    .ticket-list-panel .ticket-row-action .table-action { white-space: nowrap; }
}

/* The shared photo has no icon/upload fields: do not inherit their grid slots. */
.profile-documents-panel [data-profile-shared-photo] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
[data-profile-shared-photo] .profile-document-copy {
    display: block;
    flex: 1 1 260px;
    min-width: 0;
}
[data-profile-shared-photo] .profile-document-row-actions { flex-wrap: wrap; }
[data-profile-shared-photo] .profile-document-row-actions .button {
    white-space: normal;
    min-height: 44px;
}
.community-legend-details { margin-bottom: 16px; }
.community-legend-details > summary { cursor: pointer; color: var(--ue-ink-700); font-size: 14px; font-weight: 600; }
.community-legend-details > .status-legend { margin-top: 12px; }

/* Long document pages remain readable without fixed controls covering the text. */
[data-app-shell] .mandate-reader-hero { position: relative; top: auto; }
.mandate-reader-exit { position: static; height: auto; margin-bottom: 16px; }
.mandate-reader-exit .button { margin: 0; }
.mandate-reader-complete { position: static; }

/* October release: a denser desktop workspace without scaling the viewport.
   Mobile controls keep their existing readable type and touch targets. */
@media (min-width: 1121px) {
    :root {
        --ue-sidebar-width: 260px;
        --ue-font-body: 15px;
        --ue-font-body-compact: 14px;
    }
    [data-app-shell] .app-content { padding: 24px; }
    [data-app-shell] .dashboard-hero { margin-inline: -24px; margin-top: -24px; margin-bottom: 20px; padding-inline: 24px; }
    [data-app-shell] .prelaunch-notice + .dashboard-hero { margin-top: 0; }
    [data-app-shell] .sidebar-wallets { padding: 12px; }
    [data-app-shell] .sidebar-wallet-row { padding: 10px; }
    [data-app-shell] .sidebar-wallet-icon { width: 32px; height: 32px; }
    [data-app-shell] .sidebar-nav a { min-height: 40px; padding-block: 10px; }
}
@media (min-width: 701px) {
    [data-app-shell] :where(.feature-panel) { padding: 18px; }
    [data-app-shell] :is(.feature-panel, .table-heading, .panel-heading-row) h2 { font-size: 17px; }
    [data-app-shell] :is(.profile-grid, .profile-summary-column, .dashboard-grid, .profile-form-grid) { gap: 16px; }
    [data-app-shell] .profile-section-nav { margin-bottom: 18px; padding: 5px; }
    [data-app-shell] .profile-section-nav a { min-height: 34px; padding-inline: 11px; font-size: 13px; }
    [data-app-shell] .profile-form :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select),
    [data-app-shell] .profile-form-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select) {
        min-height: 40px;
        height: 40px;
        padding-block: 8px;
        font-size: 14px;
    }
    [data-app-shell] .profile-form textarea { font-size: 14px; }
    [data-app-shell] .profile-form .field { margin-bottom: 14px; }
    [data-app-shell] :is(.profile-form, .profile-form-grid) .button,
    [data-app-shell] :is(.profile-form, .profile-form-grid) button[type=submit] { min-height: 40px; padding-block: 9px; }
    [data-app-shell] .profile-banner-preview { max-width: 360px; }
    [data-app-shell] .coming-soon-copy { padding: 36px; }
    [data-app-shell] .coming-soon-copy h2 { font-size: clamp(28px, 2.8vw, 38px); }
    [data-app-shell] .coming-soon-card { min-height: 450px; }
}

/* Member workspace density is the same in every environment; browser zoom stays user-controlled. */
@media (min-width: 1024px) {
    .app-member .dashboard-hero { padding-block: 20px; }
    .app-member .dashboard-hero h1 { font-size: clamp(26px, 2.5vw, 30px); }
    .app-member .feature-panel { padding: 22px; }
    .app-member .tier-panel { padding: 22px; }
}
.consent-onboarding .consent-preferences { padding: 18px; gap: 14px; }
.consent-onboarding .consent-preferences-header { gap: 14px; }
.consent-onboarding .consent-choice-group.consent-modern-choice { padding: 14px; }
.consent-onboarding .consent-modern-choice > p { font-size: 13px; line-height: 1.5; }

/* Member Wallet: totals retain their currency; pending amounts sit outside both wallets. */
.sidebar-wallet-summary { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.sidebar-wallet-summary strong, .sidebar-wallet-summary em { overflow-wrap: anywhere; white-space: normal; }
.sidebar-wallet-summary small { color: #b9e4ff; line-height: 1.4; }
.sidebar-wallet-pending { display: grid; gap: 4px; margin: 10px 0; color: #b9e4ff; font-size: 12px; }
.wallet-pending-section { margin: 18px 0; }
.wallet-pending-section > strong { font-size: 24px; }
.wallet-overview-card-details > div { flex-wrap: wrap; }
.wallet-overview-card-details b { overflow-wrap: anywhere; }
