* {
    box-sizing: border-box;
}

.contract-change-admin {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid #cbddea;
}

.contract-change-admin-heading h2,
.contract-change-admin-heading p {
    margin: 0;
}

.contract-change-admin-heading p:last-child {
    margin-top: 6px;
    color: #526b7c;
}

.contract-change-admin-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin-top: 20px;
    padding: 20px;
    background: #f4f9fc;
    border: 1px solid #c8ddea;
    border-radius: 6px;
}

.contract-change-admin-form .field {
    min-width: 0;
}

.contract-change-admin-form .contract-change-reason-field {
    grid-column: 1 / -1;
}

.contract-change-admin-form button {
    justify-self: end;
}

.contract-change-history {
    margin-top: 22px;
}

.contract-change-page {
    width: min(920px, calc(100% - 32px));
    margin: 42px auto;
}

.contract-change-card {
    padding: 34px;
    background: #fff;
    border: 1px solid #cadbe6;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(15, 69, 111, 0.1);
}

.contract-change-logo {
    display: block;
    width: auto;
    max-height: 88px;
    margin: 0 auto 24px;
}

.contract-change-card h1 {
    margin: 0 0 16px;
    color: #0755a3;
    text-align: center;
}

.contract-change-reason {
    display: grid;
    gap: 4px;
    margin: 22px 0;
    padding: 16px;
    background: #edf6fb;
    border-left: 4px solid #075bb5;
}

.contract-change-reason span,
.contract-change-comparison span {
    color: #607585;
    font-size: 14px;
}

.contract-change-comparison article {
    padding: 18px;
    border: 1px solid #cadde9;
    border-radius: 6px;
}

.contract-change-comparison h2 {
    margin: 0 0 14px;
    color: #123e68;
    font-size: 19px;
}

.contract-change-comparison article > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.35fr) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #e1ebf1;
}

.contract-change-comparison .is-new strong {
    color: #075bb5;
}

.contract-change-warning {
    margin: 22px 0;
    padding: 14px 16px;
    background: #fff7df;
    border-left: 4px solid #f4a000;
}

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

@media (max-width: 760px) {
    .contract-change-admin-form {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .contract-change-admin-form .contract-change-reason-field {
        grid-column: auto;
    }

    .contract-change-admin-form button,
    .contract-change-decision-form button {
        width: 100%;
    }

    .contract-change-card {
        padding: 22px 16px;
    }

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

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

.calculator-final-summary {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #c7dbe9;
    border-radius: 6px;
    background: #f7fbfe;
}

.calculator-final-notice {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #ff4b1f;
    background: #fff6f1;
    color: #143f70;
}

.calculator-final-notice p {
    margin: 6px 0 0;
}

.calculator-confirmation-page {
    display: grid;
    min-height: calc(100vh - 150px);
    place-items: center;
}

.calculator-confirmation-card {
    width: min(760px, 100%);
    text-align: center;
}

.calculator-confirmation-card h1 {
    margin: 10px 0 12px;
    color: #0755a5;
    font-size: 36px;
}

.calculator-confirmation-icon {
    display: inline-grid;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e23f31;
    color: #fff;
    font-size: 34px;
    place-items: center;
}

.calculator-confirmation-icon.is-success {
    background: #2a8f27;
}

.calculator-confirmation-details {
    display: grid;
    gap: 0;
    margin: 28px 0;
    text-align: left;
}

.calculator-confirmation-details > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #d6e2eb;
}

.calculator-confirmation-details dt {
    color: #607489;
}

.calculator-confirmation-details dd {
    margin: 0;
    color: #123f70;
    font-weight: 700;
}

.calculator-confirmation-card > .calculator-primary-link {
    display: inline-flex;
    margin-top: 24px;
}

@media (max-width: 680px) {
    .calculator-confirmation-card h1 {
        font-size: 29px;
    }

    .calculator-confirmation-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

:root {
    --app-topbar-height: 54px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #123f73;
    background: #f6f8fb;
}

a {
    color: #ff4b1c;
}

.page {
    min-height: 100vh;
}

.app-shell {
    display: grid;
    grid-template-columns: 304px 1fr;
    background: #f5f8fb;
    transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

.app-sidebar {
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #d8e4ec;
    box-shadow: 6px 0 18px rgba(10, 44, 78, 0.14);
    position: sticky;
    top: 0;
    transition: width 180ms ease, min-width 180ms ease, opacity 140ms ease, box-shadow 180ms ease;
}

.app-shell.sidebar-collapsed .app-sidebar {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: 0;
    opacity: 0;
    box-shadow: none;
}

.sidebar-toggle {
    position: fixed;
    z-index: 60;
    top: 50%;
    left: 278px;
    width: 44px;
    height: 58px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(232, 242, 251, 0.92);
    box-shadow: 0 10px 28px rgba(10, 44, 78, 0.14);
    transform: translateY(-50%);
    transition: left 180ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background: #e0f0fb;
    box-shadow: 0 12px 32px rgba(10, 44, 78, 0.2);
    outline: 0;
}

.sidebar-toggle span {
    width: 14px;
    height: 14px;
    border: solid #6c99c9;
    border-width: 0 4px 4px 0;
    transform: translateX(3px) rotate(135deg);
}

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

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

.sidebar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px 10px;
    color: #ff4b1c;
    font-weight: 700;
}

.sidebar-brand-logo {
    max-width: 104px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.sidebar-backoffice-logo {
    width: auto;
    height: 45px;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 18px 18px;
}

.user-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0a559f, #063967);
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(18, 40, 68, 0.24);
}

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

.sidebar-user-name {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    text-align: center;
}

.sidebar-user-name strong {
    color: #0754a6;
    font-size: 16px;
    line-height: 1.2;
}

.sidebar-user-name form {
    margin: 0;
}

.sidebar-user-name button {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: #0754a6;
    font-size: 13px;
}

.sidebar-status {
    margin: 9px 0 7px;
    color: #ff4b1c;
    font-size: 14px;
    font-weight: 700;
}

.sidebar-profile-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 22px;
    background: #ff4b1c;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-wallets {
    border-top: 1px solid #dde5e1;
    border-bottom: 1px solid #dde5e1;
}

.sidebar-menu-search {
    position: relative;
    padding: 18px 20px 16px;
    background: #eef6fb;
    border-top: 1px solid #d8e4ec;
    border-bottom: 1px solid #d8e4ec;
}

.sidebar-menu-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #b8d9f0;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-menu-search input::placeholder {
    color: #b8bfc6;
}

.sidebar-menu-search input:focus {
    border-color: #0754a6;
    box-shadow: 0 0 0 3px rgba(7, 84, 166, 0.12);
    outline: 0;
}

.sidebar-menu-results {
    position: absolute;
    z-index: 20;
    top: calc(100% - 16px);
    right: 8px;
    left: 8px;
    overflow: hidden;
    border: 1px solid #d8e4ec;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(10, 44, 78, 0.18);
}

.sidebar-menu-result,
.sidebar-menu-result-empty {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    border: 0;
    border-bottom: 1px solid #e1ebf2;
    border-radius: 0;
    background: #ffffff;
    color: #0754a6;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
}

.sidebar-menu-result:hover,
.sidebar-menu-result:focus {
    background: #e8f2fb;
    color: #053f7c;
    outline: 0;
}

.sidebar-menu-result-empty {
    color: #6b7785;
}

.wallet-tile {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 5px 9px;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid #dde5e1;
}

.wallet-tile:first-child {
    border-top: 0;
}

.wallet-tile strong {
    color: #0754a6;
    font-size: 14px;
}

.wallet-tile em {
    grid-column: 2;
    width: max-content;
    min-width: 76px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #dfeef8;
    color: #0754a6;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.wallet-tile-row {
    grid-template-columns: 30px max-content max-content;
    column-gap: 9px;
}

.wallet-tile-row strong {
    grid-column: 2 / -1;
}

.wallet-tile-row em {
    grid-column: 2;
}

.wallet-tile button,
.wallet-recharge-link {
    grid-column: 2;
    width: max-content;
    min-height: 34px;
    border-radius: 20px;
    background: #ff4b1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.wallet-tile-row .wallet-recharge-link {
    grid-column: 3;
    min-height: 30px;
    padding: 0 13px;
    font-size: 13px;
}

.wallet-icon {
    width: 24px;
    height: 19px;
    border: 2px solid #ff4b1c;
    border-radius: 4px;
    position: relative;
}

.wallet-icon::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 8px;
    width: 10px;
    height: 8px;
    border-left: 2px solid #ff4b1c;
    border-bottom: 2px solid #ff4b1c;
    transform: rotate(-45deg);
}

.wallet-icon::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 6px;
    width: 9px;
    height: 8px;
    border: 2px solid #ff4b1c;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #ffffff;
}

.sidebar-nav {
    padding: 0 0 18px;
}

.sidebar-nav-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #cfe3f3;
    color: #0754a6;
    font-size: 16px;
    font-weight: 700;
}

.sidebar-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    color: #0754a6;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-left: 5px solid transparent;
}

.sidebar-nav-label {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-nav-badge {
    min-width: 24px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff4b1c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.sidebar-nav a.active {
    background: #e8f2fb;
    border-left-color: #0754a6;
}

.sidebar-nav-separator {
    height: 1px;
    margin: 10px 0;
    background: #dde5e1;
}

.nav-icon {
    width: 26px;
    height: 26px;
    border: 2px solid currentColor;
    display: inline-block;
    flex: 0 0 auto;
    transform: scale(0.9);
    transform-origin: center;
}

.nav-icon-dashboard {
    border-radius: 6px;
    position: relative;
}

.nav-icon-dashboard::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nav-icon-community {
    border-radius: 50%;
    position: relative;
}

.nav-icon-community::before,
.nav-icon-community::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: #ffffff;
    top: 12px;
}

.nav-icon-community::before {
    left: -9px;
}

.nav-icon-community::after {
    right: -9px;
}

.nav-icon-bank-practices,
.nav-icon-invoices,
.nav-icon-new-prospect,
.nav-icon-new-contract,
.nav-icon-bank-practices-list,
.nav-icon-new-bank-practice,
.nav-icon-reconciliations,
.nav-icon-marketing,
.nav-icon-documents,
.nav-icon-faq,
.nav-icon-tickets,
.nav-icon-notifications,
.nav-icon-wallet,
.nav-icon-withdrawals,
.nav-icon-contracts-list,
.nav-icon-self-readings {
    position: relative;
    border-radius: 5px;
}

.nav-icon-bank-practices::after,
.nav-icon-bank-practices-list::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: -5px;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: #ffffff;
}

.nav-icon-bank-practices::before,
.nav-icon-bank-practices-list::before {
    content: "";
    position: absolute;
    right: -12px;
    bottom: -8px;
    width: 8px;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-invoices::before {
    content: "€";
    position: absolute;
    right: -8px;
    bottom: -8px;
    font-size: 18px;
    font-weight: 700;
}

.nav-icon-wallet::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 8px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #ffffff;
}

.nav-icon-withdrawals::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 11px;
    width: 11px;
    border-top: 2px solid currentColor;
}

.nav-icon-withdrawals::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-new-prospect {
    border-radius: 50%;
}

.nav-icon-new-prospect::before,
.nav-icon-new-contract::before,
.nav-icon-new-bank-practice::before {
    content: "+";
    position: absolute;
    right: -8px;
    bottom: -6px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0754a6;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
}

.nav-icon-contracts-list {
    border: 0;
}

.nav-icon-contracts-list::before,
.nav-icon-contracts-list::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-top: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
}

.nav-icon-contracts-list::before {
    top: 2px;
}

.nav-icon-contracts-list::after {
    bottom: 2px;
}

.nav-icon-self-readings::before {
    content: "123";
    position: absolute;
    left: 3px;
    top: 4px;
    font-size: 12px;
    font-weight: 700;
}

.nav-icon-self-readings::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 5px;
    border-top: 2px solid currentColor;
}

.nav-icon-reconciliations::before {
    content: "";
    position: absolute;
    left: 7px;
    top: -4px;
    width: 8px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 8px;
    background: #ffffff;
    transform: rotate(45deg);
}

.nav-icon-marketing {
    border: 0;
}

.nav-icon-marketing::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 7px;
    width: 12px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(0 25%, 70% 0, 70% 100%, 0 75%);
}

.nav-icon-marketing::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    width: 8px;
    height: 14px;
    border-left: 3px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.nav-icon-documents::before,
.nav-icon-faq::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 7px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nav-icon-documents::after,
.nav-icon-faq::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 10px;
    bottom: 5px;
    border-top: 2px solid currentColor;
}

.nav-icon-tickets {
    border-radius: 50%;
}

.nav-icon-tickets::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -4px;
    height: 11px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.nav-icon-notifications {
    border-radius: 50%;
}

.nav-icon-notifications::before,
.nav-icon-notifications::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-icon-notifications::before {
    top: -5px;
    width: 16px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.nav-icon-notifications::after {
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.nav-icon-profile {
    border-radius: 50%;
    position: relative;
}

.nav-icon-profile::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
}

.nav-icon-profile::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 10px 10px 0 0;
    transform: translateX(-50%);
}

.nav-icon-contracts {
    border-radius: 4px;
    position: relative;
}

.nav-icon-contracts::before,
.nav-icon-contracts::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    border-top: 2px solid currentColor;
}

.nav-icon-contracts::before {
    top: 8px;
}

.nav-icon-contracts::after {
    top: 15px;
}

.nav-icon-admin {
    border-radius: 6px;
    position: relative;
}

.nav-icon-admin::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.nav-icon-admin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: #ffffff;
    transform: translateX(-50%);
}

.nav-icon-wallet-admin {
    border-radius: 5px;
    position: relative;
}

.nav-icon-wallet-admin::before {
    content: "";
    position: absolute;
    left: 4px;
    right: -2px;
    top: 7px;
    height: 10px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #ffffff;
}

.nav-icon-wallet-admin::after {
    content: "+";
    position: absolute;
    right: -7px;
    top: -8px;
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff4b1c;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.admin-nav-title {
    margin-top: 14px;
}

.app-main {
    min-width: 0;
}

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 24px;
    background: #fff4c6;
    border-bottom: 1px solid #e8d47c;
    color: #593d00;
}

.impersonation-banner div {
    display: grid;
    gap: 2px;
}

.impersonation-banner strong {
    color: #7a4300;
}

.impersonation-banner button {
    min-height: 36px;
    background: #ff4b1c;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--app-topbar-height);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #cfe3f3;
    border-bottom: 1px solid #bad5e7;
    box-shadow: 0 8px 16px rgba(18, 45, 73, 0.16);
}

.topbar-section,
.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar-section {
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-section::-webkit-scrollbar,
.topbar-actions::-webkit-scrollbar {
    display: none;
}

.topbar-tab {
    position: relative;
    height: var(--app-topbar-height);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 22px;
    border-radius: 0;
    background: transparent;
    color: #0754a6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.topbar-tab.active {
    background: #0754a6;
    color: #ffffff;
}

.topbar-actions {
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    padding-right: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-actions form {
    display: flex;
    height: 100%;
}

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

.topbar-utility.highlight {
    margin-inline: 8px;
    background: #ff4b1c;
    color: #ffffff;
}

.topbar-utility.highlight.active {
    background: #ff4b1c;
    box-shadow: 0 0 0 14px rgba(255, 75, 28, 0.16);
}

.topbar-actions .language-select {
    height: var(--app-topbar-height);
    padding: 0 10px;
}

.topbar-actions .language-control {
    min-width: 132px;
    min-height: 32px;
    border-width: 1px;
    box-shadow: none;
}

.topbar-actions .language-control::after {
    right: 12px;
    width: 7px;
    height: 7px;
}

.topbar-actions .language-flag {
    left: 10px;
    width: 22px;
    height: 15px;
}

.topbar-actions .language-select select {
    min-width: 132px;
    min-height: 30px;
    padding: 6px 28px 6px 38px;
    font-size: 13px;
}

.topbar-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-block;
    flex: 0 0 auto;
    color: currentColor;
    transform: scale(0.86);
    transform-origin: center;
}

.topbar-icon-sharing {
    border-radius: 50%;
    background: currentColor;
}

.topbar-icon-sharing::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 5px;
    width: 7px;
    height: 15px;
    background: #ffffff;
    clip-path: polygon(52% 0, 100% 0, 67% 41%, 100% 41%, 33% 100%, 45% 56%, 0 56%);
}

.topbar-tab.active .topbar-icon-sharing {
    background: #ffffff;
}

.topbar-tab.active .topbar-icon-sharing::before {
    background: #0754a6;
}

.topbar-icon-store::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    height: 18px;
    border: 3px solid currentColor;
    border-radius: 4px;
}

.topbar-icon-store::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 2px;
    width: 8px;
    height: 8px;
    border: 3px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.topbar-icon-renewables::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 2px;
    width: 4px;
    height: 22px;
    background: currentColor;
    transform: skewX(-10deg);
}

.topbar-icon-renewables::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 20px;
    height: 17px;
    border-top: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    transform: skewX(-16deg);
}

.topbar-icon-activity {
    border: 3px solid currentColor;
    border-radius: 50%;
}

.topbar-icon-activity::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 4px;
    width: 3px;
    height: 8px;
    background: currentColor;
}

.topbar-icon-activity::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 11px;
    width: 8px;
    height: 3px;
    background: currentColor;
    transform: rotate(24deg);
    transform-origin: left center;
}

.topbar-icon-faq {
    border: 3px solid currentColor;
    border-radius: 3px;
}

.topbar-icon-faq::before {
    content: "?";
    position: absolute;
    inset: -4px 0 0;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
}

.topbar-icon-faq::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 9px;
    height: 3px;
    background: currentColor;
}

.topbar-icon-support {
    border: 3px solid currentColor;
    border-radius: 50% 50% 40% 40%;
}

.topbar-icon-support::before {
    content: "";
    position: absolute;
    left: -5px;
    right: -5px;
    top: 10px;
    height: 9px;
    border-left: 5px solid currentColor;
    border-right: 5px solid currentColor;
}

.topbar-icon-support::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: -6px;
    width: 10px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
}

.topbar-icon-logout::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 14px;
    height: 18px;
    border: 3px solid currentColor;
    border-right: 0;
    border-radius: 2px;
}

.topbar-icon-logout::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 8px;
    width: 15px;
    height: 10px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
}

.logout-button {
    border: 0;
    color: #0754a6;
}

.app-content {
    padding: 36px;
}

.dashboard-hero {
    position: sticky;
    top: var(--app-topbar-height);
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #d7e4ed;
    margin: -36px -36px 30px;
    padding: 34px 42px;
    transition: padding 220ms ease, box-shadow 220ms ease;
    will-change: padding;
}

/* Direct sponsor: visible before the account journey. */
.sponsor-contact-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 24px;
    padding: 24px 28px;
    border: 1px solid #d7e4ed;
    border-left: 4px solid #f04b24;
    border-radius: 18px;
    background: linear-gradient(110deg, #f0f7fc, #ffffff 70%);
}
.sponsor-contact-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 50%;
    background: #dcecf9;
    color: #0754a6;
    font-size: 28px;
    font-weight: 700;
}
.sponsor-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-contact-brand { background: #ffffff; border-radius: 16px; }
.sponsor-contact-brand img { object-fit: contain; padding: 10px; box-sizing: border-box; }
.sponsor-contact-details { flex: 1; min-width: 0; }
.sponsor-contact-details h2 { margin: 0 0 6px; color: #0754a6; font-size: 18px; }
.sponsor-contact-name { margin: 0 0 10px; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.sponsor-contact-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sponsor-contact-links a { display: block; min-width: 0; padding: 4px 0; color: #0754a6; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sponsor-contact-links a span { display: block; margin-bottom: 3px; color: #56687a; font-size: 12px; font-weight: 600; }
.sponsor-contact-empty { margin: 0; color: #56687a; }
@media (max-width: 640px) {
    .sponsor-contact-card { align-items: flex-start; gap: 14px; padding: 18px 16px; }
    .sponsor-contact-avatar { flex-basis: 56px; width: 56px; height: 56px; font-size: 22px; }
    .sponsor-contact-details h2 { font-size: 16px; }
    .sponsor-contact-name { font-size: 18px; }
    .sponsor-contact-links { flex-direction: column; gap: 4px; }
}

.dashboard-hero-marker {
    display: block;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dashboard-hero h1 {
    color: #0754a6;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 12px;
    transition: font-size 220ms ease, margin 220ms ease;
}

.dashboard-hero p {
    margin: 0;
    color: #1d58a7;
    font-size: 17px;
    font-weight: 700;
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 220ms ease, opacity 140ms ease;
}

.eyebrow {
    margin: 0 0 10px !important;
    color: #ff4b1c !important;
    font-size: 13px !important;
    text-transform: uppercase;
}

.dashboard-hero .eyebrow {
    max-height: 24px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 220ms ease, margin 220ms ease, opacity 140ms ease;
}

.page-title-condensed .dashboard-hero {
    padding: 14px 42px;
    box-shadow: 0 8px 16px rgba(18, 45, 73, 0.08);
}

.page-title-condensed .dashboard-hero h1 {
    margin-bottom: 0;
    font-size: 28px;
}

.page-title-condensed .dashboard-hero p,
.page-title-condensed .dashboard-hero .eyebrow {
    max-height: 0;
    opacity: 0;
}

.page-title-condensed .dashboard-hero .eyebrow {
    margin-bottom: 0 !important;
}

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

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
}

.tier-card {
    min-height: 100%;
    padding: 20px 22px;
    border: 1px solid #d8edf8;
    border-radius: 8px;
    background: #ffffff;
    color: #0754a6;
}

.tier-card.tier-current {
    border: 2px solid #ff6746;
}

.tier-client {
    background: #eef7fc;
}

.tier-family {
    background: #f2fbef;
    border-color: #d8efd0;
}

.tier-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tier-card h2 {
    margin: 0;
    color: #0754a6;
    font-size: 22px;
    font-weight: 700;
}

.tier-description {
    min-height: 104px;
    margin: 0 0 16px;
    color: #1658a5;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}

.tier-features {
    border-top: 1px solid rgba(7, 84, 166, 0.22);
}

.tier-feature {
    min-height: 34px;
    display: grid;
    grid-template-columns: 24px 1fr 22px;
    gap: 8px;
    border-bottom: 1px solid rgba(7, 84, 166, 0.18);
    color: #0754a6;
    font-size: 14px;
    font-weight: 700;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 3px solid #ff4b1c;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 7px;
    height: 12px;
    border: solid #ff4b1c;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.not-included .checkmark {
    opacity: 0.36;
}

.tooltip-button {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    align-self: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #0754a6;
    color: #ffffff;
    appearance: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    cursor: help;
    overflow: visible;
}

.tooltip-button.muted {
    opacity: 0.4;
    cursor: default;
}

.tooltip-button[data-tooltip]:hover::after,
.tooltip-button[data-tooltip]:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 20;
    right: -8px;
    bottom: calc(100% + 12px);
    width: max-content;
    max-width: min(520px, 70vw);
    padding: 12px 14px;
    border-radius: 3px;
    background: #2b2b2b;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 22px rgba(20, 32, 45, 0.22);
}

.tooltip-button[data-tooltip]:hover::before,
.tooltip-button[data-tooltip]:focus::before {
    content: "";
    position: absolute;
    right: 3px;
    bottom: calc(100% + 5px);
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #2b2b2b transparent transparent;
}

.tier-footer-note {
    margin: 16px 10px 0;
    font-size: 13px;
    color: #ff4b1c;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.tier-action {
    width: min(100%, 360px);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    padding: 0 18px;
    border-radius: 6px;
    background: #0754a6;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(7, 84, 166, 0.16);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tier-family .tier-action {
    background: #2b8b1f;
    box-shadow: 0 8px 18px rgba(43, 139, 31, 0.16);
}

.tier-action:disabled {
    opacity: 0.86;
    cursor: not-allowed;
}

.tier-action:hover,
.tier-action:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(7, 84, 166, 0.2);
    filter: brightness(1.02);
}

.tier-family .tier-action:hover,
.tier-family .tier-action:focus {
    box-shadow: 0 10px 20px rgba(43, 139, 31, 0.2);
}

.tier-upgrade {
    margin-top: 22px;
}

.tier-upgrade summary {
    list-style: none;
    cursor: pointer;
}

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

.upgrade-options {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.upgrade-option {
    margin: 0;
    padding: 14px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.upgrade-option p {
    margin: 0 0 10px;
    color: #164f95;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 10px;
}

.dashboard-followup {
    margin-top: 28px;
}

.status-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #d8e4ec;
    border-radius: 6px;
    background: #ffffff;
}

.status-list strong {
    color: #0754a6;
}

.status-list span {
    color: #66726d;
    font-weight: 700;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.copy-field {
    overflow-wrap: anywhere;
    padding: 14px 16px;
    border: 1px solid #bcd8eb;
    border-radius: 6px;
    background: #ffffff;
    color: #0754a6;
    font-weight: 700;
}

.direct-children-list,
.community-tree,
.community-tree ul {
    margin: 0;
    padding-left: 22px;
}

.direct-children-list li,
.community-tree li {
    margin: 8px 0;
    color: #0754a6;
    font-weight: 700;
}

.community-tree li span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eef7fc;
}

.community-tree-panel {
    border: 1px solid #d8e4ec;
}

.community-titlebar {
    margin-bottom: 0;
}

.community-search-band {
    margin: 0 -42px 24px;
    padding: 28px 42px;
    background: #e7f1f9;
    border-bottom: 1px solid #d5e4ee;
}

.community-search-form {
    display: grid;
    gap: 18px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

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

.community-member-search {
    position: relative;
}

.community-member-results {
    position: absolute;
    z-index: 35;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #a9c9df;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(9, 70, 125, 0.18);
}

.community-member-result {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #d7e5ef;
    border-radius: 0;
    background: #ffffff;
    color: #0754a6;
    text-align: left;
}

.community-member-result:last-child {
    border-bottom: 0;
}

.community-member-result:hover,
.community-member-result:focus-visible {
    background: #e8f3fa;
}

.community-member-result > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.community-member-result small {
    color: #58758f;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.community-member-result-code {
    max-width: 42%;
    flex: 0 1 auto;
    text-align: right;
}

.community-member-result-empty {
    padding: 13px;
    color: #58758f;
    font-size: 13px;
}

.search-actions {
    display: flex;
    justify-content: flex-end;
}

.search-actions button,
.prospect-button,
.root-button {
    background: #ff4b1c;
}

.secondary-button {
    background: #0754a6;
}

.danger-button {
    background: #ff4b1c;
    color: #ffffff;
}

.community-toolbar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.community-table-section {
    padding: 0 0 38px;
}

.community-legends {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
    color: #3a4b59;
    font-weight: 700;
}

.badge,
.rank-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.badge-info {
    background: #13c2de;
}

.badge-warning {
    background: #f2cc15;
    color: #473d00;
}

.badge-success {
    background: #45b54a;
}

.badge-medium {
    background: #58c9b9;
    color: #063f3a;
}

.table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    color: #4d5d6b;
    font-weight: 700;
}

.table-meta label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.table-meta input {
    width: 180px;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.community-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    background: #ffffff;
}

.community-table th,
.community-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #d6dde4;
    text-align: left;
    vertical-align: middle;
}

.community-table th {
    color: #2b3e4d;
    font-size: 13px;
    text-transform: uppercase;
}

.community-table td {
    color: #0754a6;
    font-weight: 700;
}

.empty-table {
    color: #4d5d6b !important;
    text-align: center !important;
}

.community-tree-section {
    margin: 0 -42px -42px;
    padding: 34px 42px 72px;
    background: #ffffff;
    border-top: 1px solid #e4e9ee;
}

.tree-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.tree-heading h2 {
    margin: 0 0 12px;
    color: #333333;
    font-size: 24px;
}

.tree-heading p {
    margin: 0;
    color: #333333;
    font-weight: 700;
}

.tree-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 420px) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}

.tree-submit {
    display: flex;
}

.rank-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 42px;
    color: #333333;
    font-weight: 700;
}

.rank-new_rank { background: #0754a6; }
.rank-family_pro { background: #dd2a92; }
.rank-family_pro_3x3 { background: #795548; }
.rank-family_3s { background: #6737ff; }
.rank-family_5s { background: #0c79ff; }
.rank-top_family { background: #02cce7; color: #053d45; }
.rank-family_pro_100 { background: #6d78c4; }
.rank-family_pro_300 { background: #3948a8; }
.rank-pro_manager { background: #56cdb8; color: #063c2e; }
.rank-pro_manager_1000 { background: #008878; }
.rank-regional_manager { background: #00a82d; }
.rank-regional_manager_3000 { background: #4ca24d; }
.rank-national_manager { background: #a6f238; color: #2e4b00; }
.rank-national_manager_7500 { background: #d8d23f; color: #3f3d00; }
.rank-director { background: #e8ea00; color: #303300; }
.rank-director_pro { background: #d9802d; }
.rank-ambassador { background: #c8c8c8; color: #303030; }
.rank-president { background: #d6a82d; color: #342600; }
.rank-base { background: #13c2de; color: #063b45; }

.community-tree-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -24px 0 14px;
}

.community-tree-zoom-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid #ff4b1c;
    border-radius: 50%;
    background: #ff4b1c;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.community-tree-zoom-button:hover,
.community-tree-zoom-button:focus-visible {
    border-color: #d93c12;
    background: #d93c12;
}

.community-tree-zoom-button:disabled {
    border-color: #b9c8d3;
    background: #dce5eb;
    color: #718391;
    cursor: not-allowed;
    opacity: 1;
}

.community-tree-viewport {
    width: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

.community-tree-map {
    min-width: 760px;
    overflow: visible;
    padding: 34px 48px 18px;
    scroll-padding-inline: 48px;
}

.tree-node {
    width: max-content;
    max-width: none;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 auto 22px;
    text-align: center;
}

.tree-node summary {
    width: min(420px, 100%);
    min-height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border: 0;
    border-radius: 4px;
    background: #baf8fa;
    color: #134658;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tree-node summary::-webkit-details-marker {
    display: none;
}

.tree-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tree-person small,
.tree-meta {
    font-size: 13px;
    color: #23566a;
}

.tree-children {
    position: relative;
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
}

.tree-children::before {
    content: "";
    position: absolute;
    top: 0;
    right: 115px;
    left: 115px;
    border-top: 2px solid #d8e4ec;
}

.tree-children > .tree-node {
    flex: 0 0 auto;
    min-width: 230px;
    position: relative;
}

.tree-children > .tree-node::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    height: 22px;
    border-left: 2px solid #d8e4ec;
}

.tree-children .tree-node summary {
    width: 230px;
    min-height: 66px;
    background: #eef7fc;
}

.tree-truncated {
    margin: 10px 0 0;
    color: #66726d;
    font-size: 13px;
}

.tree-move-panel {
    max-width: 980px;
}

.tree-move-form {
    display: grid;
    gap: 22px;
}

.tree-move-pickers {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.tree-move-user-search {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid #c8dce9;
    border-top: 4px solid #0b59a5;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(9, 70, 125, 0.08);
}

.tree-move-user-search-destination {
    border-top-color: #2b9222;
    background: linear-gradient(180deg, #f5fbf3 0%, #ffffff 100%);
}

.tree-move-picker-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 66px;
    margin-bottom: 14px;
}

.tree-move-picker-heading label {
    display: block;
    margin: 1px 0 3px;
    color: #0b4f96;
    font-size: 17px;
    font-weight: 800;
}

.tree-move-user-search-destination .tree-move-picker-heading label {
    color: #247b1d;
}

.tree-move-picker-heading p {
    margin: 0;
    color: #58758f;
    font-size: 13px;
    line-height: 1.4;
}

.tree-move-picker-step {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #0b59a5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.tree-move-user-search-destination .tree-move-picker-step {
    background: #2b9222;
}

.tree-move-search-shell {
    position: relative;
}

.tree-move-search-shell::before {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    width: 12px;
    height: 12px;
    border: 2px solid #6b8da7;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translateY(-62%);
}

.tree-move-search-shell::after {
    position: absolute;
    z-index: 2;
    top: calc(50% + 5px);
    left: 27px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #6b8da7;
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.tree-move-user-search input[type="search"] {
    width: 100%;
    min-height: 48px;
    padding-left: 44px;
    border-color: #a9c3d5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(9, 70, 125, 0.04);
}

.tree-move-user-search input[type="search"]:focus {
    border-color: #0b59a5;
    box-shadow: 0 0 0 3px rgba(11, 89, 165, 0.13);
}

.tree-move-user-search-destination input[type="search"]:focus {
    border-color: #2b9222;
    box-shadow: 0 0 0 3px rgba(43, 146, 34, 0.13);
}

.tree-move-user-search .hint {
    margin: 6px 0 0;
}

.tree-move-user-results {
    position: absolute;
    z-index: 35;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #a9c9df;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(9, 70, 125, 0.18);
}

.tree-move-picker-connector {
    display: grid;
    place-items: center;
}

.tree-move-picker-connector span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #c9dce8;
    border-radius: 50%;
    background: #ffffff;
    color: #0b59a5;
    box-shadow: 0 5px 14px rgba(9, 70, 125, 0.1);
    font-size: 22px;
    font-weight: 800;
}

.tree-move-user-result {
    display: grid;
    width: 100%;
    gap: 2px;
    align-items: start;
    justify-content: stretch;
    justify-items: start;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #d7e5ef;
    border-radius: 0;
    background: #ffffff;
    color: #0754a6;
    text-align: left;
}

.tree-move-user-result:last-child {
    border-bottom: 0;
}

.tree-move-user-result:hover,
.tree-move-user-result:focus-visible {
    background: #e8f3fa;
}

.tree-move-user-result small,
.tree-move-user-result-empty {
    color: #58758f;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.tree-move-user-result-empty {
    padding: 13px;
}

.tree-move-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #b8dfc8;
    border-radius: 6px;
    background: #edf8f2;
    color: #145c35;
    font-size: 13px;
    font-weight: 700;
}

.tree-move-selected[hidden],
.tree-move-user-results[hidden] {
    display: none;
}

.tree-move-selected button {
    min-height: 30px;
    padding: 0 10px;
    background: #ffffff;
    color: #0754a6;
    font-size: 13px;
}

@media (max-width: 800px) {
    .tree-move-pickers {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .tree-move-picker-connector span {
        transform: rotate(90deg);
    }

    .tree-move-picker-heading {
        min-height: 0;
    }
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.profile-summary-column {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 28px;
    min-width: 0;
    height: 100%;
}

.profile-summary-column.without-progress {
    grid-template-rows: minmax(0, 1fr);
}

.feature-panel.member-progress-panel,
.feature-panel.profile-banner-panel {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #c8ddec;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(7, 84, 166, 0.16);
}

.feature-panel.member-progress-panel > h2,
.feature-panel.profile-banner-panel > h2 {
    margin: 0;
    padding: 12px 18px;
    background: #0754a6;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.member-progress-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
    padding: 24px 30px 14px;
}

.member-progress-content p {
    max-width: 420px;
    margin: 0;
    overflow-wrap: anywhere;
}

.member-progress-donut {
    width: 190px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #ffffff 61%, transparent 62%),
        conic-gradient(#ff4b1c var(--progress), #cfe3f3 0);
    position: relative;
}

.member-progress-donut::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 9px solid #f6f9fc;
    pointer-events: none;
}

.member-progress-donut span {
    color: #0754a6;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.member-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 16px 30px 26px;
    padding: 0;
    list-style: none;
    position: relative;
}

.member-progress-steps::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 7%;
    left: 7%;
    border-top: 2px dashed #d2d8dd;
}

.member-progress-steps::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 7%;
    width: var(--profile-progress-width, 0%);
    border-top: 2px solid #ff4b1c;
}

.member-progress-steps li {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #8c8f94;
    font-weight: 700;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.member-progress-steps strong {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.member-progress-steps span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #cfe3f3;
    color: #0754a6;
}

.member-progress-steps .current span,
.member-progress-steps .complete span {
    background: #ff4b1c;
    color: #ffffff;
}

.member-progress-steps .current strong,
.member-progress-steps .complete strong {
    color: #ff4b1c;
}

.profile-referral-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-referral-panel .readonly-grid {
    align-content: start;
    flex: 1;
}

.profile-status-sections {
    display: grid;
    gap: 28px;
    margin-bottom: 28px;
}

.feature-panel.profile-section {
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 24px;
    border: 1px solid #c8ddec;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(7, 84, 166, 0.12);
}

#profile-store-data {
    scroll-margin-top: 96px;
}

#profile-account-data {
    scroll-margin-top: 96px;
}

.feature-panel.profile-section > h2:first-child {
    margin: 0 -24px 24px;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    background: #0754a6;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.feature-panel.profile-section > p {
    color: #40556c;
    font-weight: 400;
}

.profile-section-alert {
    margin: 0 0 18px;
}

.profile-form .profile-section {
    margin-bottom: 28px;
}

.first-contract-condition-body {
    display: grid;
    gap: 20px;
}

.first-contract-state {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d8e4ec;
    border-radius: 6px;
    background: #f7fafc;
}

.first-contract-state-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5a623;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.first-contract-condition.is-met .first-contract-state {
    border-color: #b9dfc2;
    background: #f1faf3;
}

.first-contract-condition.is-met .first-contract-state-icon {
    background: #2f9b48;
}

.first-contract-state strong {
    color: #0754a6;
    font-size: 17px;
}

.first-contract-state p {
    margin: 4px 0 0;
    color: #51677d;
    line-height: 1.45;
}

.first-contract-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.first-contract-details div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8e4ec;
    border-radius: 6px;
    background: #ffffff;
}

.first-contract-details dt {
    margin-bottom: 6px;
    color: #66726d;
    font-size: 13px;
    font-weight: 700;
}

.first-contract-details dd {
    margin: 0;
    color: #0754a6;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.first-contract-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 16px;
    border-left: 4px solid #ff4b1c;
    background: #fff5f1;
}

.first-contract-action p {
    max-width: 820px;
    margin: 0;
    color: #40556c;
    line-height: 1.45;
}

.first-contract-action .button {
    flex: 0 0 auto;
    color: #ffffff;
    white-space: nowrap;
}

.profile-referral-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-referral-link strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.referral-copy-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 18px;
    background: #ff4b1c;
    color: #ffffff;
    font-size: 13px;
}

.referral-copy-button.is-copied {
    background: #2f9b48;
}

.profile-verification-check {
    margin-top: 28px;
}

.profile-verification-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 24px;
    padding: 0;
    list-style: none;
}

.profile-verification-requirements li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #d8e4ec;
    border-radius: 6px;
    background: #f8fbfd;
}

.profile-verification-requirements li > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5a623;
    color: #ffffff;
    font-weight: 800;
}

.profile-verification-requirements .is-complete {
    border-color: #b9dfc2;
    background: #f1faf3;
}

.profile-verification-requirements .is-complete > span {
    background: #2f9b48;
}

.profile-verification-result {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid #f5a623;
    background: #fff9e9;
}

.profile-verification-result.is-approved {
    border-color: #2f9b48;
    background: #f1faf3;
    color: #1f6f35;
}

.profile-verification-result.is-rejected {
    border-color: #d83c27;
    background: #fff1ef;
    color: #9d2618;
}

.profile-verification-result p {
    margin: 4px 0 0;
}

.profile-verification-actions {
    align-items: center;
    justify-content: flex-end;
}

.profile-verification-actions p {
    margin: 0;
    color: #66726d;
    font-size: 13px;
    font-style: italic;
}

.profile-verification-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.profile-banner-panel > p {
    margin: 26px 28px 0;
}

.profile-banner-preview {
    display: block;
    width: calc(100% - 56px);
    max-width: 720px;
    margin: 0 28px 18px;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #d8e4ec;
    border-radius: 0;
    background: #ffffff;
}

.profile-photo-crop {
    grid-column: 1 / -1;
    min-width: 0;
}
.profile-photo-crop[hidden] { display: none; }
.profile-photo-crop canvas {
    display: block;
    width: min(240px, 100%);
    height: auto;
    border-radius: 50%;
    margin: 12px auto;
}
.profile-photo-crop label { display: block; margin-top: 12px; }
.profile-photo-crop input[type="range"] { display: block; width: 100%; }
.profile-banner-panel .profile-banner-upload:has(.profile-photo-crop:not([hidden])) > button {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: end;
}
#profile-photo-upload { scroll-margin-top: 240px; }

.profile-banner-upload {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin: 22px 28px 28px;
}

.profile-banner-upload .field {
    display: contents;
    margin: 0;
}

.profile-banner-upload label {
    grid-column: 1 / -1;
}

.profile-banner-upload input[type="file"] {
    grid-column: 1;
    min-height: 48px;
    padding: 10px;
    background: #ffffff;
}

.profile-banner-upload .hint {
    grid-column: 1;
    margin: -6px 0 0;
    color: #5b6f86;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
}

.profile-banner-upload button {
    grid-column: 2;
    grid-row: 2;
    min-height: 48px;
    border-radius: 24px;
    padding: 0 28px;
    background: #ff4b1c;
}

.profile-banner-panel .actions {
    margin: 0 28px 28px;
}

.profile-documents-panel {
    overflow: hidden;
    padding: 0 24px 24px;
    border: 1px solid #c8ddec;
    box-shadow: 0 4px 14px rgba(7, 84, 166, 0.12);
}

.profile-documents-panel > h2 {
    margin: 0 -24px 24px;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    background: #0754a6;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.profile-documents-panel > p {
    margin: 0 0 4px;
}

.profile-documents-list {
    display: grid;
    padding: 0;
}

.profile-document-row {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px dashed #aeb8c2;
}

.profile-document-row:last-child {
    border-bottom: 0;
}

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

.profile-document-copy h3 {
    margin: 0 0 8px;
    color: #0754a6;
    font-size: 20px;
}

.profile-document-copy p {
    margin: 0;
    color: #5b6f86;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
}

.profile-document-kind {
    display: grid;
    grid-column: 1 / -1;
    gap: 9px;
    max-width: 360px;
    color: #183b63;
    font-weight: 700;
}

.profile-document-kind select {
    width: 100%;
    min-height: 48px;
}

.profile-document-upload-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border-radius: 24px;
    background: #0754a6;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.profile-document-file {
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

.profile-document-name {
    min-height: 48px;
    background: #ffffff;
}

.profile-document-row button {
    min-height: 48px;
    border-radius: 24px;
    padding: 0 24px;
    background: #ff4b1c;
}

.profile-document-link {
    grid-column: 2;
    color: #0754a6;
    font-weight: 700;
}

.mandate-form {
    margin-top: 28px;
}

.mandate-panel {
    overflow: hidden;
    padding: 0 24px 24px;
    border: 1px solid #c8ddec;
    box-shadow: 0 4px 14px rgba(7, 84, 166, 0.12);
}

.mandate-panel > h2 {
    margin: 0 -24px 24px;
    padding: 12px 18px;
    background: #0754a6;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.mandate-panel > p {
    margin: 0 0 24px;
    color: #40556c;
}

.mandate-check-grid,
.mandate-radio-list {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.mandate-check-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.check-card {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 13px 16px;
    border: 1px solid #d7e7f2;
    border-radius: 8px;
    background: #f8fbfd;
    color: #123d6a;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.check-card input {
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
}

.check-card input::after {
    width: 5px;
    height: 9px;
}

.check-card:has(input:checked) {
    border-color: #ffb39f;
    background: #fff7f3;
    box-shadow: 0 3px 10px rgba(255, 75, 28, 0.12);
}

.mandate-radio-list fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 16px;
    border: 1px solid #d7e7f2;
    border-radius: 8px;
    background: #ffffff;
}

.mandate-radio-list legend {
    padding: 0 8px;
    color: #0754a6;
    font-weight: 800;
}

.mandate-radio-list label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.mandate-signed {
    display: inline-flex;
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #e7f7ec;
    color: #1f7a3d;
    font-weight: 800;
}

.mandate-condition-notice {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 4px solid #f1b82d;
    background: #fff8df;
    color: #6f5316;
    font-weight: 700;
}

.mandate-form .split-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

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

.profile-form {
    display: grid;
    gap: 28px;
}

.profile-block-form {
    gap: 16px;
    margin-bottom: 32px;
}

.profile-block-form .profile-section {
    margin-bottom: 0;
}

.profile-section-actions {
    justify-content: flex-end;
    margin: 24px 0 0;
}

.profile-form[inert],
.profile-document-row[inert] {
    opacity: 0.68;
}


.fiscal-profile-panel {
    margin-bottom: 18px;
}

.fiscal-profile-panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.fiscal-profile-history {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #d3e2ed);
    overflow-wrap: anywhere;
}

.fiscal-profile-history summary {
    cursor: pointer;
    line-height: 1.6;
}

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

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

.profile-form-grid .store-row-start {
    grid-column: 1;
}

.city-autocomplete-field {
    position: relative;
}

.city-autocomplete-results {
    position: absolute;
    z-index: 40;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #a9c9df;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(9, 70, 125, 0.16);
}

.city-autocomplete-result {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #d7e5ef;
    border-radius: 0;
    background: #ffffff;
    color: #0754a6;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.city-autocomplete-result:last-child {
    border-bottom: 0;
}

.city-autocomplete-result:hover,
.city-autocomplete-result:focus-visible {
    background: #e8f3fa;
}

.contracts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px 22px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.contracts-toolbar strong {
    display: block;
    color: #0754a6;
    font-size: 20px;
}

.contracts-toolbar span {
    display: block;
    margin-top: 4px;
    color: #66726d;
    font-weight: 700;
}

.compact-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.contracts-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.contracts-summary-grid article {
    padding: 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.contracts-summary-grid span,
.contract-card span {
    display: block;
    color: #66726d;
    font-size: 13px;
    font-weight: 700;
}

.contracts-summary-grid strong {
    display: block;
    margin-top: 8px;
    color: #0754a6;
    font-size: 30px;
    line-height: 1;
}

.contracts-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.35fr) minmax(180px, 0.35fr);
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #eef7fc;
}

.contracts-filter-panel label {
    display: block;
    margin-bottom: 7px;
    color: #0754a6;
    font-weight: 700;
}

.contract-card-grid {
    display: none;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.contract-card {
    padding: 20px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.contract-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3edf4;
}

.contract-card-header strong {
    display: block;
    margin-top: 4px;
    color: #0754a6;
    font-size: 18px;
}

.contract-card-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}

.contract-card-main strong {
    display: block;
    margin-top: 5px;
    color: #0754a6;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contract-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e3edf4;
}

.contract-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.contract-list-actions form {
    margin: 0;
}

.contract-card-actions .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.contract-completion-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.contract-completion-summary h2 {
    margin: 0 0 7px;
    color: #0754a6;
}

.contract-completion-summary p {
    margin: 0 0 12px;
    color: #52626d;
}

.completion-meter {
    position: relative;
    display: grid;
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    place-items: center;
}

.completion-meter-value {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(#ff4b1f var(--completion), #dbe9f2 0);
}

.completion-meter-value::after {
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.completion-meter strong {
    position: relative;
    z-index: 1;
    color: #0754a6;
    font-size: 24px;
}

.contract-missing-data ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.contract-missing-data li {
    padding: 7px 10px;
    border-radius: 5px;
    color: #7c570c;
    background: #fff5d8;
    font-size: 13px;
    font-weight: 700;
}

.panel-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading-row h2,
.panel-heading-row p {
    margin-top: 0;
}

.panel-heading-row > span {
    color: #66726d;
    font-size: 13px;
    font-style: italic;
}

.contract-document-list {
    margin-top: 18px;
    border-top: 1px solid #d8e4ec;
}

.contract-document-item {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #d8e4ec;
}

.contract-document-item.has-document {
    border-left: 4px solid #43a653;
    padding-left: 14px;
}

.contract-document-item.document-uploaded {
    border-left-color: #ef9e24;
}

.contract-document-item.document-rejected {
    border-left-color: #c93b2e;
}

.contract-document-copy > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contract-document-copy h3 {
    margin: 0;
    color: #0754a6;
    font-size: 16px;
}

.contract-document-copy p {
    margin: 7px 0 4px;
    color: #66726d;
    overflow-wrap: anywhere;
}

.contract-document-copy a {
    color: #ff4b1f;
    font-weight: 700;
}

.document-requirement {
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.document-requirement.required {
    color: #8a3d20;
    background: #ffe1d7;
}

.document-requirement.optional {
    color: #426170;
    background: #e3eef4;
}

.document-review-status {
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.document-review-status.status-uploaded {
    color: #76500d;
    background: #fff0ce;
}

.document-review-status.status-approved {
    color: #246d37;
    background: #e3f4e7;
}

.document-review-status.status-rejected {
    color: #9d2e23;
    background: #ffe2de;
}

.contract-document-copy .document-review-meta {
    color: #496473;
    font-size: 13px;
}

.contract-document-copy .document-review-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 3px solid #c93b2e;
    color: #7d291f;
    background: #fff1ef;
}

.contract-document-item form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.contract-document-picker {
    display: block;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #bcd3e2;
    border-radius: 6px;
    color: #0754a6;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.contract-document-picker input {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
}

.contract-document-item button {
    min-height: 42px;
    padding: 9px 15px;
}

.contract-document-review {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 0.35fr) minmax(320px, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #d8e4ec;
    background: #f7fafc;
}

.contract-document-item .contract-document-review form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.contract-document-item .contract-document-review form:first-child {
    display: flex;
}

.contract-document-review .document-approve-button {
    color: #ffffff;
    background: #2f9147;
}

@media (max-width: 760px) {
    .contract-completion-summary {
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .completion-meter {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }

    .completion-meter strong {
        font-size: 18px;
    }

    .panel-heading-row,
    .contract-document-copy > div {
        display: block;
    }

    .panel-heading-row > span,
    .document-requirement {
        display: inline-block;
        margin-top: 7px;
    }

    .contract-document-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contract-document-item form {
        grid-template-columns: 1fr;
    }

    .contract-document-review,
    .contract-document-item .contract-document-review form {
        grid-template-columns: 1fr;
    }

    .contract-document-item button {
        width: 100%;
    }
}

.empty-filter-message {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    color: #0754a6;
    background: #ffffff;
    font-weight: 700;
}

.empty-state {
    max-width: 760px;
}

.contracts-table-section {
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.contract-table-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    color: #50575d;
    font-size: 13px;
}

.contract-table-footer p {
    margin: 0;
    text-align: center;
}

.contract-page-size,
.contract-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contract-page-size select {
    width: 76px;
    min-height: 36px;
    padding: 6px 25px 6px 10px;
}

.contract-pagination button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d8e4ec;
    background: #ffffff;
    color: #0754a6;
}

.contract-pagination button:disabled {
    color: #99a2aa;
    cursor: not-allowed;
}

.contract-pagination span {
    min-width: 52px;
    text-align: center;
}

@media (max-width: 900px) {
    .contract-card-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* Hide only a table that is immediately duplicated by mobile cards.
       Other pages reuse contracts-table-section as their only data view. */
    .contract-card-grid + .contracts-table-section {
        display: none;
    }

    .contract-table-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .contract-page-size,
    .contract-pagination {
        justify-content: space-between;
    }

    .contract-table-footer p {
        order: 2;
        text-align: left;
    }

    .contract-pagination {
        order: 3;
    }

    .contract-pagination button {
        flex: 1;
    }
}

.wallet-movements-section[aria-busy="true"] {
    cursor: progress;
}

.wallet-movements-section[aria-busy="true"] .wallet-filter-tabs,
.wallet-movements-section[aria-busy="true"] .wallet-table-wrap,
.wallet-movements-section[aria-busy="true"] .wallet-pagination,
.wallet-movements-section[aria-busy="true"] .wallet-empty-state {
    opacity: 0.62;
    pointer-events: none;
}

.table-scroll {
    overflow-x: auto;
}

.contracts-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.contracts-list-table {
    min-width: 1680px;
}

.contracts-table th,
.contracts-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #e3edf4;
    text-align: left;
    vertical-align: top;
}

.contracts-table th {
    color: #333333;
    font-size: 13px;
    text-transform: uppercase;
}

.contracts-table td {
    color: #0754a6;
    font-weight: 700;
}

.contracts-table td span:not(.ticket-status) {
    color: #66726d;
}

.invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.invoice-summary-grid article {
    padding: 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.invoice-summary-grid span,
.invoice-document span {
    display: block;
    color: #66726d;
    font-size: 13px;
    font-weight: 700;
}

.invoice-summary-grid strong {
    display: block;
    margin-top: 8px;
    color: #0754a6;
    font-size: 28px;
    line-height: 1.1;
}

.invoice-legends {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
    margin: 0 0 34px auto;
    padding: 0;
}

.invoice-legends > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.invoice-legends > div > strong {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    margin-right: 2px;
    white-space: nowrap;
}

.invoice-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 5px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.invoice-payment-paid,
.invoice-supply-active {
    background: #45a855;
}

.invoice-payment-overdue,
.invoice-supply-rejected {
    background: #ef1717;
}

.invoice-payment-pending {
    background: #2993df;
}

.invoice-payment-partial,
.invoice-payment-disputed {
    background: #f29b18;
}

.invoice-payment-refunded,
.invoice-supply-switched_out {
    background: #ef1717;
}

.invoice-payment-cancelled,
.invoice-supply-deactivated,
.invoice-supply-deactivated_transfer {
    background: #ef1717;
}

.invoice-supply-pending,
.invoice-supply-switching {
    background: #2993df;
}

.invoice-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.35fr) minmax(180px, 0.35fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #eef7fc;
}

.invoice-filter-panel label {
    display: block;
    margin-bottom: 7px;
    color: #0754a6;
    font-weight: 700;
}

.invoice-filter-actions,
.invoice-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-filter-actions .button,
.invoice-detail-actions .button {
    margin: 0;
    white-space: nowrap;
}

.invoices-table-section {
    border: 0;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.invoices-table {
    min-width: 1600px;
    table-layout: fixed;
}

.invoices-table th:nth-child(1) { width: 125px; }
.invoices-table th:nth-child(2) { width: 110px; }
.invoices-table th:nth-child(3) { width: 125px; }
.invoices-table th:nth-child(4) { width: 105px; }
.invoices-table th:nth-child(5) { width: 85px; }
.invoices-table th:nth-child(6) { width: 170px; }
.invoices-table th:nth-child(7) { width: 105px; }
.invoices-table th:nth-child(8) { width: 110px; }
.invoices-table th:nth-child(9) { width: 105px; }
.invoices-table th:nth-child(10) { width: 105px; }
.invoices-table th:nth-child(11) { width: 125px; }
.invoices-table th:nth-child(12) { width: 110px; }
.invoices-table th:nth-child(13) { width: 110px; }
.invoices-table th:nth-child(14) { width: 130px; }

.invoice-row-actions {
    text-align: right !important;
}

.invoice-page-header {
    margin: -42px -42px 78px;
    padding: 18px 42px;
    background: #f2f2f2;
}

.invoice-page-header h1 {
    margin: 0;
    color: #0754a6;
    font-size: 28px;
    font-weight: 500;
}

.invoice-list-workspace {
    min-width: 0;
}

.invoice-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.invoice-table-tools,
.invoice-page-size,
.invoice-global-search {
    display: flex;
    align-items: center;
}

.invoice-table-tools {
    gap: 8px;
}

.invoice-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 0;
    background: #f1f1f1;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.invoice-page-size {
    gap: 7px;
    margin-left: 4px;
    color: #444444;
    font-size: 14px;
    white-space: nowrap;
}

.invoice-page-size select {
    width: 78px;
    min-height: 40px;
    padding: 7px 26px 7px 10px;
}

.invoice-global-search {
    gap: 8px;
    color: #444444;
    font-size: 14px;
}

.invoice-global-search input {
    width: 170px;
    min-height: 44px;
}

.invoices-table th,
.invoices-table td {
    padding: 14px 10px;
}

.invoices-table th {
    vertical-align: bottom;
}

.invoices-table tbody tr:nth-child(odd) {
    background: #f7f7f7;
}

.invoices-table td {
    color: #2d3136;
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.invoice-sort-button {
    width: 100%;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #2d3136;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.invoice-sort-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.invoice-sort-button > .invoice-sort-arrow {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #c9cccf;
    border-left: 4px solid transparent;
    transform: rotate(90deg);
}

.invoices-table th.is-sorted .invoice-sort-button > .invoice-sort-arrow {
    border-bottom-color: #65727b;
    transform: none;
}

.invoices-table th.is-sorted.is-descending .invoice-sort-button > .invoice-sort-arrow {
    transform: rotate(180deg);
}

.invoice-number-link {
    color: #2d3136;
    font-weight: 600;
    text-decoration: none;
}

.invoice-number-link:hover,
.invoice-number-link:focus-visible {
    color: #0754a6;
    text-decoration: underline;
}

.invoice-download-button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 20px;
    background: #ff4b1c;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.invoice-download-button.disabled {
    background: #aeb8c2;
    cursor: not-allowed;
}

.invoice-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    color: #50575d;
    font-size: 13px;
}

.invoice-table-footer p {
    margin: 0;
}

.invoice-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-pagination button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d8e4ec;
    background: #ffffff;
    color: #0754a6;
}

.invoice-pagination button:disabled {
    color: #99a2aa;
    cursor: not-allowed;
}

.invoice-pagination span {
    min-width: 52px;
    text-align: center;
}

.invoice-empty-state {
    margin-top: 40px;
}

.invoice-detail-actions {
    margin-bottom: 20px;
}

.invoice-document {
    padding: 28px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.invoice-document > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #d8e4ec;
}

.invoice-document > header img {
    width: 150px;
    height: auto;
}

.invoice-document > header strong {
    display: block;
    margin-top: 5px;
    color: #0754a6;
    font-size: 22px;
}

.invoice-detail-grid,
.invoice-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 18px;
    padding: 24px 0;
}

.invoice-detail-grid strong,
.invoice-amounts strong {
    display: block;
    margin-top: 6px;
    color: #0754a6;
    overflow-wrap: anywhere;
}

.invoice-amounts {
    border-top: 1px solid #d8e4ec;
}

.invoice-amounts strong {
    font-size: 22px;
}

.invoice-amount-due {
    padding: 14px;
    border-radius: 6px;
    background: #eef7fc;
}

.invoice-document > footer {
    padding-top: 18px;
    border-top: 1px solid #d8e4ec;
    color: #66726d;
    font-size: 13px;
}

.admin-tool-panel {
    max-width: 980px;
    margin-bottom: 28px;
}

.contract-registry-heading {
    align-items: flex-end;
}

.contract-registry-summary {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.contract-registry-summary span {
    display: grid;
    min-width: 138px;
    padding: 12px 16px;
    border: 1px solid #c9dfef;
    border-radius: 6px;
    background: #f1f8fc;
    color: #315f86;
    font-size: 13px;
}

.contract-registry-summary strong {
    color: #0754a6;
    font-size: 24px;
    line-height: 1.1;
}

.contract-registry-panel {
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid #c4dced;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(7, 84, 166, 0.08);
}

.contract-registry-panel > header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 16px 22px;
    background: #0759aa;
    color: #ffffff;
}

.contract-registry-panel > header .eyebrow,
.contract-registry-panel > header h2,
.contract-registry-panel > header p {
    margin: 0;
    color: #ffffff;
}

.contract-registry-panel > header .eyebrow {
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 13px;
    opacity: 0.9;
}

.contract-registry-panel > header h2 {
    font-size: 20px;
}

.contract-registry-panel > header p {
    max-width: 620px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    opacity: 0.9;
}

.contract-registry-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    padding: 22px;
}

.contract-registry-form .field {
    margin: 0;
}

.contract-registry-form label {
    font-size: 13px;
}

.contract-registry-form input,
.contract-registry-form select,
.contract-registry-form textarea {
    min-height: 44px;
}

.contract-registry-file-field,
.contract-registry-reason-field {
    grid-column: span 2;
}

.contract-registry-file-field input[type="file"] {
    padding: 8px;
}

.contract-registry-file-field small,
.contract-registry-reason-field small {
    display: block;
    margin-top: 6px;
    color: #557188;
    font-size: 13px;
}

.contract-registry-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin: 0;
}

.contract-registry-table-wrap {
    margin: 0;
}

.contract-registry-table {
    min-width: 1040px;
}

.contract-registry-table td {
    vertical-align: middle;
}

.contract-registry-table td strong,
.contract-registry-table td span,
.contract-registry-table td small {
    display: block;
}

.contract-registry-table td span,
.contract-registry-table td small {
    margin-top: 3px;
    color: #617384;
    font-size: 13px;
}

.contract-registry-table code {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    background: #eef4f7;
    color: #244d69;
    font-size: 13px;
}

.registry-status {
    display: inline-flex !important;
    width: fit-content;
    min-height: 25px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 13px !important;
    font-weight: 700;
}

.registry-status-active {
    background: #dff4e3;
    color: #207b35 !important;
}

.registry-status-draft {
    background: #fff1d2;
    color: #91610a !important;
}

.registry-status-retired {
    background: #edf0f2;
    color: #65717a !important;
}

.registry-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.registry-row-actions form {
    margin: 0;
}

.contract-registry-version-select {
    grid-column: span 2;
}

.contract-registry-rule-list {
    padding: 0 22px 22px;
}

.contract-registry-rule-list h3 {
    margin: 0;
    padding: 18px 0 10px;
    border-top: 1px solid #d9e5ec;
    color: #17446f;
    font-size: 16px;
}

.contract-registry-rule-list > p {
    margin: 4px 0 0;
    color: #607588;
    font-weight: 500;
}

.contract-registry-rule-list article {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #e1e9ee;
}

.contract-registry-rule-list article:first-of-type {
    border-top: 0;
}

.contract-registry-rule-list article div {
    display: grid;
    gap: 4px;
}

.contract-registry-rule-list article div:last-child {
    justify-items: end;
    text-align: right;
}

.contract-registry-rule-list article span,
.contract-registry-rule-list article small {
    color: #617384;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .contract-registry-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 720px) {
    .contract-registry-heading,
    .contract-registry-panel > header,
    .contract-registry-rule-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-registry-summary {
        width: 100%;
    }

    .contract-registry-summary span {
        min-width: 0;
        flex: 1;
    }

    .contract-registry-panel > header p {
        text-align: left;
    }

    .contract-registry-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .contract-registry-file-field,
    .contract-registry-reason-field,
    .contract-registry-version-select {
        grid-column: auto;
    }

    .contract-registry-rule-list article div:last-child {
        justify-items: start;
        text-align: left;
    }
}

.admin-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.admin-search-form .field,
.admin-search-form .actions {
    margin: 0;
}

.admin-search-form .actions {
    align-self: end;
}

.admin-impersonate-form .actions {
    margin-top: 0;
}

.admin-results {
    max-width: 1180px;
}

.admin-results form {
    margin: 0;
}

.admin-wallet-grid {
    margin-top: 28px;
}

.wallet-recharge-panel,
.account-verification-panel {
    margin-bottom: 28px;
}

.wallet-recharge-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.4fr);
    gap: 18px;
    align-items: end;
}

.wallet-recharge-status {
    margin-left: 0;
    margin-right: 0;
}

.wallet-recharge-form .actions {
    grid-column: 1 / -1;
}

.wallet-profile-required {
    margin-bottom: 18px;
}

.wallet-profile-required + .actions {
    justify-content: flex-end;
}

.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.payment-info-grid article {
    padding: 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #f8fbfd;
}

.payment-info-grid h3 {
    margin: 0 0 10px;
    color: #0754a6;
}

.payment-info-grid dl {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
}

.payment-info-grid div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

.payment-info-grid dt {
    color: #66726d;
    font-weight: 700;
}

.payment-info-grid dd {
    margin: 0;
    color: #0754a6;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.alert.warning {
    border-color: #f8df8b;
    background: #fff8d9;
    color: #85631f;
}

.stacked-action-form {
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
}

.stacked-action-form input {
    min-width: 180px;
}

.stacked-action-form textarea {
    min-width: 220px;
    resize: vertical;
}

.identity-ocr-detected {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    color: #52677d;
    font-size: 13px;
}

.identity-ocr-fields {
    display: grid;
    gap: 10px;
}

.identity-ocr-fields label {
    display: grid;
    gap: 4px;
    color: #425a70;
    font-size: 13px;
    font-weight: 700;
}

.identity-ocr-fields select,
.identity-ocr-fields input {
    width: 100%;
    min-width: 190px;
}

.mandate-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #8da9c4;
    background: #f2f6fa;
}

.mandate-form-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.identity-reuse-notice {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #cbd8e6;
    border-left: 4px solid #7c8fa3;
    border-radius: 10px;
    background: #f7fafc;
}

.identity-reuse-notice.is-approved {
    border-left-color: #2f8b57;
    background: #f1faf5;
}

.identity-reuse-notice.is-blocked {
    border-left-color: #ef5a38;
    background: #fff7f3;
}

.mandate-criminal-declaration {
    margin-top: 1.25rem;
}

.mandate-document-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.mandate-document-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem;
    border: 1px solid #d6e0e9;
    border-radius: 12px;
    background: #f7fafc;
}

.mandate-document-card.is-read {
    border-color: #9dcdb0;
    background: #f2faf5;
}

.mandate-document-card h3 {
    margin: 0.3rem 0;
}

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

.mandate-document-language {
    display: inline-flex;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    color: #fff;
    background: #153f73;
    font-size: 0.75rem;
    font-weight: 700;
}

.bdd-check-card {
    border-left: 4px solid #ef5a38;
}

.mandate-reader-hero {
    align-items: center;
}

.mandate-reader-pages {
    display: grid;
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
}

.mandate-reader-exit {
    position: sticky;
    top: calc(var(--app-topbar-height) + 18px);
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    height: 0;
    pointer-events: none;
}

.mandate-reader-exit .button {
    margin: 14px 14px 0 0;
    box-shadow: 0 10px 24px rgba(9, 52, 98, 0.18);
    pointer-events: auto;
}

.mandate-reader-page {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #d6e0e9;
    border-radius: 10px;
    background: #eef3f7;
    box-shadow: 0 8px 24px rgba(20, 57, 91, 0.08);
}

.mandate-reader-page img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.mandate-reader-page figcaption {
    padding-top: 0.65rem;
    text-align: center;
    color: #5a6c7f;
    font-size: 0.85rem;
}

.mandate-reader-end {
    padding: 1.25rem;
    border: 2px solid #2f8b57;
    border-radius: 10px;
    text-align: center;
    color: #1f6840;
    background: #effaf3;
    font-weight: 700;
}

.mandate-reader-complete {
    position: sticky;
    bottom: 1rem;
    z-index: 5;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 1rem;
    border: 1px solid #d6e0e9;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 25px rgba(20, 57, 91, 0.15);
}

.mandate-reader-complete > .hint,
.mandate-reader-complete > .alert {
    margin: 0;
}

.identity-duplicate-list {
    display: grid;
    gap: 1rem;
}

.identity-verification-history .feature-panel,
.mandate-history .feature-panel {
    min-height: 0;
    padding: 24px;
}

.identity-verification-history .feature-panel h2,
.mandate-history .feature-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.identity-verification-history .admin-review-details,
.mandate-history .admin-review-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 16px;
    margin: 0;
}

.identity-verification-history dt,
.mandate-history dt {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.identity-verification-history dd,
.mandate-history dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.mandate-acceptance-document {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d6e0e9;
}

.mandate-acceptance-document h3 {
    margin: 0 0 16px;
    font-size: 1rem;
}

.mandate-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mandate-history-tabs a {
    padding: 10px 16px;
    border: 1px solid #d6e0e9;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.mandate-history-tabs a[aria-current="page"] {
    background: #edf5fb;
    border-color: #204768;
    font-weight: 700;
}

.mandate-history-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 8px 24px;
    padding-left: 20px;
}

.identity-duplicate-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.identity-duplicate-people > div {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid #d6e0e9;
    border-radius: 10px;
    background: #f7fafc;
}

@media (max-width: 720px) {
    .mandate-document-card,
    .identity-duplicate-people {
        grid-template-columns: 1fr;
    }

    .mandate-reader-complete {
        align-items: stretch;
        flex-direction: column;
    }
}

.mandate-status-pending_legal {
    border-left-color: #f1b82d;
    background: #fff8df;
}

.mandate-status-approved {
    border-left-color: #2b9b50;
    background: #edf8f0;
}

.mandate-status-rejected {
    border-left-color: #d84848;
    background: #fff0f0;
}

.mandate-document-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.mandate-document-link small,
.mandate-review-table small {
    color: #63758a;
}

.mandate-review-table td {
    vertical-align: top;
}

@media (max-width: 760px) {
    .mandate-document-link .button,
    .mandate-review-table .stacked-action-form button {
        width: 100%;
    }
}

.wallet-recharge-actions {
    min-width: 280px;
    vertical-align: middle;
}

.wallet-recharge-actions .stacked-action-form {
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.wallet-recharge-actions .stacked-action-form + .stacked-action-form {
    margin-top: 6px;
}

.wallet-recharge-actions .stacked-action-form input {
    min-width: 0;
    height: 34px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.wallet-recharge-actions .stacked-action-form button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.admin-permissions-panel {
    max-width: 1180px;
}

.admin-permissions-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.admin-permissions-header h2 {
    margin-bottom: 4px;
}

.admin-permissions-header p {
    margin: 0;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 5px;
    background: #e8f2fb;
    color: #0754a6;
    font-weight: 700;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.permission-group {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #f8fbfd;
}

.permission-group legend {
    padding: 0 6px;
    color: #0754a6;
    font-size: 16px;
    font-weight: 700;
}

.permission-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 6px;
    background: #ffffff;
}

.permission-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: #ff4b1c;
}

.permission-row strong,
.permission-row em {
    display: block;
}

.permission-row strong {
    color: #0754a6;
}

.permission-row em {
    margin-top: 3px;
    color: #66726d;
    font-size: 13px;
    font-style: normal;
}

.contract-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 5px;
    color: #ffffff !important;
    font-size: 13px;
}

.status-pending {
    background: #13c2de;
}

.status-inserted {
    background: #13c2de;
}

.status-to_verify {
    background: #f5a623;
}

.status-in_progress {
    background: #0754a6;
}

.status-active {
    background: #45b54a;
}

.status-completed {
    background: #45b54a;
}

.status-rejected {
    background: #ff4b1c;
}

.readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 16px;
}

.readonly-grid div {
    padding: 14px;
    border: 1px solid #d8e4ec;
    border-radius: 6px;
    background: #ffffff;
}

.readonly-grid span {
    display: block;
    margin-bottom: 6px;
    color: #66726d;
    font-size: 13px;
    font-weight: 700;
}

.readonly-grid strong {
    color: #0754a6;
    overflow-wrap: anywhere;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: 700;
}

.inline-check input {
    width: auto;
    min-height: auto;
}

.move-modes {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.move-modes legend {
    margin-bottom: 4px;
    color: #0754a6;
    font-weight: 700;
}

.move-modes label {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 14px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #f8fbfd;
}

.move-modes input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}

.tree-move-fields label {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.tree-move-fields :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.move-modes strong {
    display: block;
    margin-bottom: 4px;
    color: #0754a6;
}

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

    .contracts-summary-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

.feature-panel {
    min-height: 220px;
    padding: 28px;
    border-radius: 8px;
    background: #ffffff;
}

.feature-panel h2 {
    color: #0754a6;
    font-size: 28px;
    margin: 0 0 20px;
}

.feature-panel p {
    color: #225da6;
    font-weight: 700;
    line-height: 1.55;
}

.contract-start-tools {
    display: grid;
    gap: 12px;
}

.contract-tutorial-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 14px;
    padding: 8px 12px 8px 18px;
    border: 0;
    border-radius: 20px;
    background: #ff4b1c;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.contract-tutorial-link:hover,
.contract-tutorial-link:focus-visible {
    background: #e83e10;
    color: #ffffff;
}

.contract-tutorial-play {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #ff4b1c;
    font-size: 12px;
    padding-left: 2px;
}

.contract-tutorial-dialog {
    width: min(1000px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(4, 38, 70, 0.34);
}

.contract-tutorial-dialog::backdrop {
    background: rgba(5, 31, 56, 0.72);
    backdrop-filter: blur(4px);
}

.contract-tutorial-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

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

.contract-tutorial-dialog-header {
    border-bottom: 1px solid #d9e6ef;
}

.contract-tutorial-dialog-header h2 {
    margin: 0;
    color: #0d345f;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.contract-tutorial-dialog-header .contract-bill-kicker {
    margin-bottom: 4px;
}

.contract-tutorial-dialog-header > button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef5fa;
    color: #174f80;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.contract-tutorial-video-frame {
    display: grid;
    min-height: 0;
    place-items: center;
    background: #061829;
}

.contract-tutorial-video-frame video {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 190px);
    aspect-ratio: 16 / 9;
    background: #061829;
}

.contract-tutorial-dialog-footer {
    border-top: 1px solid #d9e6ef;
}

.contract-tutorial-dialog-footer p {
    margin: 0;
    color: #49677f;
    font-size: 0.92rem;
    line-height: 1.45;
}

.contract-tutorial-dialog-footer .button {
    flex: 0 0 auto;
}

@media (max-width: 680px) {
    .contract-tutorial-dialog {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .contract-tutorial-dialog-header,
    .contract-tutorial-dialog-footer {
        padding: 14px 16px;
    }

    .contract-tutorial-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-tutorial-dialog-footer .button {
        width: 100%;
    }

    .contract-tutorial-video-frame video {
        max-height: none;
    }
}

.contract-bill-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    gap: 28px;
    padding: 22px 26px;
    border: 1px solid #b9d9ed;
    border-radius: 8px;
    background: #eaf5fc;
}

.contract-bill-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff4b1c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.contract-bill-copy h2 {
    margin: 0 0 7px;
    color: #0754a6;
    font-size: 20px;
}

.contract-bill-copy p {
    max-width: 760px;
    margin: 0;
    color: #244d72;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.contract-bill-control {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.contract-bill-button {
    width: 100%;
    border-radius: 6px;
}

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

.contract-bill-input:focus-visible + .contract-bill-name,
.contract-bill-button:has(+ .contract-bill-input:focus-visible) {
    outline: 3px solid rgba(7, 84, 166, 0.3);
    outline-offset: 2px;
}

.contract-bill-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #45647f;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-summary-panel {
    min-height: 0;
    padding: 22px 24px 6px;
    border: 1px solid #c8ddeb;
    box-shadow: 0 3px 8px rgba(9, 70, 125, 0.12);
}

.contract-summary-panel input[readonly] {
    background: #f7fafc;
    color: #244d72;
}

.contract-section {
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 24px;
    border: 1px solid #c8ddeb;
    box-shadow: 0 3px 8px rgba(9, 70, 125, 0.1);
}

.contract-section > h2:first-child {
    margin: 0 -24px 24px;
    padding: 12px 18px;
    background: #0754a6;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.contract-section > p {
    margin-top: 0;
    color: #244d72;
    font-size: 14px;
    font-weight: 400;
}

.contract-section > .inline-check {
    margin-bottom: 22px;
}

.contract-calculator .calculator-form {
    margin-top: 18px;
    border-radius: 6px;
    box-shadow: none;
}

.contract-calculator {
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contract-calculator .calculator-configurator .calculator-form {
    margin-top: 0;
    border-radius: 14px;
}

.contract-calculator .calculator-results {
    padding-top: 30px;
}

.contract-calculator .calculator-disclaimer {
    margin-bottom: 0;
}

.contract-calculator .calculator-selection {
    margin-bottom: 0;
}

.contract-reason-section .calculator-reason-options {
    margin-top: 18px;
}

.contract-conditional-block {
    margin-top: 8px;
    padding: 18px;
    background: #f7fafc;
    border: 1px solid #c8ddeb;
    border-radius: 6px;
}

.contract-conditional-block[hidden] {
    display: none;
}

.contract-conditional-block > h3 {
    margin: 0 0 14px;
    color: #0754a6;
    font-size: 16px;
}

.contract-conditional-block .profile-form-grid {
    margin-top: 0;
}

.contract-conditional-block .profile-form-grid + [data-acquisition-fields] {
    margin-top: 18px;
}

.contract-calculator { scroll-margin-top: 140px; }

.contract-conditional-block .calculator-conditional-field {
    margin-bottom: 0;
}

.contract-customer-search {
    position: relative;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #c8ddeb;
    border-radius: 6px;
    background: #eef7fc;
}

.contract-customer-search > label {
    display: block;
    margin-bottom: 4px;
    color: #0754a6;
    font-size: 15px;
    font-weight: 700;
}

.contract-customer-search > p {
    margin: 0 0 12px;
    color: #45647f;
    font-size: 13px;
}

.contract-customer-search input[type="search"] {
    width: 100%;
    background: #ffffff;
}

.contract-customer-results {
    position: absolute;
    z-index: 30;
    top: calc(100% - 16px);
    right: 16px;
    left: 16px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #a9c9df;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(9, 70, 125, 0.18);
}

.contract-customer-result {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #d7e5ef;
    border-radius: 0;
    background: #ffffff;
    color: #0754a6;
    text-align: left;
}

.contract-customer-result:last-child {
    border-bottom: 0;
}

.contract-customer-result:hover,
.contract-customer-result:focus-visible {
    background: #e8f3fa;
}

.contract-customer-result strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contract-customer-result span {
    flex: 0 0 auto;
    color: #58758f;
    font-size: 13px;
    font-weight: 600;
}

.contract-customer-result-empty {
    padding: 14px;
    color: #58758f;
    font-size: 13px;
}

.contract-subsection-title {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    padding-top: 20px;
    border-top: 1px solid #d7e5ef;
    color: #0754a6;
    font-size: 16px;
}

.contract-consent-intro {
    color: #244d72;
}

.contract-consent-intro a {
    color: #0754a6;
    font-weight: 700;
}

.contract-required-consent {
    align-items: flex-start;
    margin: 18px 0 8px;
    padding: 14px 16px;
    border-left: 4px solid #ff4b1f;
    background: #f3f8fc;
    color: #173f66;
    line-height: 1.5;
}

.contract-required-consent input {
    margin-top: 4px;
}

.contract-consent-group {
    min-width: 0;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.contract-consent-group + .contract-consent-group {
    padding-top: 24px;
    border-top: 1px solid #d7e5ef;
}

.contract-consent-group legend,
.contract-legal-heading {
    margin: 0 0 8px;
    color: #0754a6;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.contract-consent-group p {
    max-width: 1120px;
    margin: 0;
    color: #334e67;
    font-size: 14px;
    line-height: 1.55;
}

.contract-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 14px;
}

.contract-consent-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #173f66;
    font-weight: 600;
}

.contract-consent-options input {
    inline-size: 18px;
    block-size: 18px;
    margin: 0;
    accent-color: #ff4b1f;
}

.contract-legal-heading {
    color: #173f66;
    text-transform: uppercase;
}

.contract-document-note {
    padding: 12px 14px;
    border-left: 4px solid #0754a6;
    background: #f3f8fc;
}

.contract-document-note p {
    margin: 6px 0 0;
}

.contract-signature-steps {
    margin: 16px 0 0;
    padding-left: 22px;
    color: #244d72;
    line-height: 1.6;
}

.contract-signature-steps li + li {
    margin-top: 6px;
}

.new-prospect-form .form-section {
    margin-bottom: 26px;
}

.new-prospect-phone {
    display: grid;
    grid-template-columns: minmax(150px, 190px) 1fr;
    gap: 12px;
}

.new-prospect-consent {
    margin-top: 20px;
}

.new-prospect-consent label {
    color: #24435f;
    font-weight: 700;
    line-height: 1.45;
}

.new-prospect-next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.new-prospect-next-steps .feature-panel {
    min-height: 150px;
    background: #eef7fc;
    border: 1px dashed #b9d4e8;
}

.new-prospect-next-steps .feature-panel h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.new-prospect-next-steps .feature-panel p {
    color: #65788a;
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
}

.store-grid {
    display: grid;
    gap: 24px;
}

.store-product {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.7fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #d4e6f2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(9, 54, 95, 0.08);
}

.store-product-media {
    min-height: 360px;
    padding: 30px;
    display: grid;
    place-items: center;
    background: #eef7fc;
}

.store-product-media img {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(10, 44, 78, 0.18);
}

.store-product-copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.store-product-copy > span {
    color: #ff4b1c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.store-product-copy h2 {
    margin: 0;
    color: #0754a6;
    font-size: 34px;
    font-weight: 700;
}

.store-product-copy p {
    margin: 0;
    color: #24435f;
    font-size: 17px;
    line-height: 1.5;
}

.store-product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-product-meta strong,
.store-product-meta em {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    font-style: normal;
    font-weight: 800;
}

.store-product-meta strong {
    background: #e8f2fb;
    color: #0754a6;
}

.store-product-meta em {
    background: #fff0e8;
    color: #ff4b1c;
}

.tickets-summary,
.ticket-detail-summary {
    display: grid;
    grid-template-columns: minmax(180px, 0.5fr) 1fr;
    align-items: center;
    gap: 18px;
    min-height: 0;
    margin-bottom: 24px;
}

.tickets-summary span,
.ticket-detail-summary span {
    display: block;
    color: #596b7b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tickets-summary strong,
.ticket-detail-summary strong {
    display: inline-flex;
    margin-top: 4px;
    font-size: 28px;
}

.tickets-summary strong,
.ticket-detail-summary strong:not(.ticket-status) {
    color: #0754a6;
}

.ticket-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 5px;
    background: #d9e8f5;
    color: #0754a6;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.ticket-status-inserted {
    background: #12bfd8;
    color: #052f5c;
}

.ticket-status-in_progress {
    background: #f2cc15;
    color: #473d00;
}

.ticket-status-waiting_customer {
    background: #7aa9d8;
    color: #052f5c;
}

.ticket-status-escalated {
    background: #5c49d8;
    color: #ffffff;
}

.ticket-status-closed {
    background: #45b54a;
    color: #052f5c;
}

.ticket-status-reopened {
    background: #ff4b1c;
    color: #411600;
}

.table-panel {
    min-height: 0;
}

.table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.table-heading h2 {
    margin-bottom: 0;
}

.table-search {
    width: min(320px, 100%);
}

.table-panel table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    background: #ffffff;
}

.table-panel th,
.table-panel td {
    padding: 13px 10px;
    border-bottom: 1px solid #d6dde4;
    text-align: left;
    vertical-align: middle;
}

.table-panel th {
    color: #2b3e4d;
    font-size: 13px;
    text-transform: uppercase;
}

.table-panel td {
    color: #0754a6;
    font-weight: 700;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 5px;
    background: #0754a6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.empty-state {
    margin: 0;
    padding: 22px;
    border: 1px dashed #bcd8eb;
    border-radius: 8px;
    background: #f7fbfe;
}

.ticket-form .feature-panel,
.ticket-attachments-panel {
    min-height: 0;
}

.ticket-detail-summary {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.ticket-thread {
    display: grid;
    gap: 18px;
    min-height: 0;
}

.ticket-message {
    display: grid;
    gap: 12px;
    max-width: 920px;
    padding: 16px 18px;
    border: 1px solid #d8e4ec;
    border-radius: 8px;
    background: #ffffff;
}

.ticket-message.staff {
    margin-left: auto;
    background: #eef7fc;
}

.ticket-message.customer {
    background: #fff9ef;
}

.ticket-message.internal {
    margin-left: auto;
    border-style: dashed;
    background: #f5f1ff;
}

.ticket-message header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #0754a6;
}

.ticket-message header em {
    padding: 4px 8px;
    border-radius: 999px;
    background: #5c49d8;
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.ticket-message p {
    margin: 0;
    color: #273849;
    font-weight: 600;
}

.admin-ticket-summary p {
    margin: 4px 0 0;
    color: #66726d;
    font-size: 13px;
    font-weight: 700;
}

.admin-ticket-workflow {
    margin: 24px 0;
}

.admin-ticket-thread {
    margin-bottom: 28px;
}

.ticket-attachment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-attachment-links a {
    padding: 7px 10px;
    border-radius: 5px;
    background: #0754a6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ticket-dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.ticket-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.panel-outline {
    border: 2px solid #ff6746;
}

.legal-footer {
    display: grid;
    gap: 10px;
    margin: 32px;
    padding: 22px 26px;
    border-radius: 8px;
    background: #eef6fd;
    color: #0754a6;
    font-size: 14px;
    line-height: 1.5;
}

.legal-footer span {
    color: #5793c9;
    font-weight: 700;
}

.legal-footer strong {
    margin-right: 10px;
}

.panel-soft {
    background: #eef7fc;
    border: 1px solid #d8edf8;
}

.panel-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    margin-bottom: 12px;
    border-radius: 2px;
    background: #ff4b1c;
    color: #ffffff;
    font-weight: 700;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: #ffffff;
    border-bottom: 1px solid #dde5e1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
}

.brand img {
    height: 76px;
    width: auto;
}

.brand .brand-backoffice-logo {
    height: 40px;
}

.language-select {
    display: flex;
    align-items: center;
}

.language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 176px;
    min-height: 46px;
    border: 2px solid #ff4b1c;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(7, 84, 166, 0.08);
}

.language-control::after {
    content: "";
    position: absolute;
    right: 17px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #ff4b1c;
    border-bottom: 2px solid #ff4b1c;
    pointer-events: none;
    transform: rotate(45deg) translateY(-3px);
}

.language-flag {
    position: absolute;
    left: 13px;
    width: 28px;
    height: 20px;
    overflow: hidden;
    border: 1px solid #d8e4ec;
    border-radius: 4px;
    background: #eef6fb;
    box-shadow: 0 2px 7px rgba(7, 84, 166, 0.14);
    pointer-events: none;
}

.language-flag img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.language-select select {
    min-width: 176px;
    min-height: 44px;
    padding: 9px 42px 9px 52px;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: #0754a6;
    font-weight: 700;
    cursor: pointer;
}

.language-select select:focus {
    outline: 3px solid rgba(255, 75, 28, 0.18);
    outline-offset: 3px;
}

.container {
    width: min(760px, calc(100% - 32px));
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #dde5e1;
    border-radius: 8px;
    padding: 28px;
}

h1 {
    margin: 0 0 20px;
    font-size: 28px;
}

.field {
    margin-bottom: 16px;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 28px 0;
}

.otp-box {
    width: 72px;
    height: 72px;
    min-height: 72px;
    padding: 0;
    border: 3px solid #d0d0d0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 34px;
    text-align: center;
}

.otp-box:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
    outline: 0;
}

.otp-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.otp-actions-row form {
    margin: 0;
}

.otp-actions-row > button {
    margin-left: auto;
}

.consent-page {
    display: grid;
    gap: 24px;
}

.consent-intro {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.consent-intro h1 {
    color: #0754a6;
}

.consent-intro p {
    max-width: 760px;
    margin: 0;
    color: #333333;
    font-weight: 700;
    line-height: 1.5;
}

.consent-intro img {
    width: 220px;
    max-width: 70%;
}

.consent-form {
    display: grid;
    gap: 24px;
}

.consent-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d8e4ec;
}

.consent-card h2 {
    margin: 0;
    color: #0754a6;
    text-align: center;
}

.consent-document-preview {
    max-height: 260px;
    overflow: auto;
    padding: 20px;
    border: 1px solid #d8e4ec;
    background: #fafafa;
    color: #333333;
    line-height: 1.6;
}

.consent-document-link {
    justify-self: center;
    color: #ff4b1c;
    font-weight: 700;
}

.consent-check {
    align-items: flex-start;
}

.consent-choice-group {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px dashed #b8c3be;
}

.consent-choice-group legend {
    color: #333333;
    font-weight: 700;
}

.consent-choice-group p {
    margin: 0;
    color: #333333;
    line-height: 1.5;
}

.consent-choice-group label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    font-weight: 700;
}

.consent-choice-group input {
    width: auto;
    min-height: auto;
}

.consent-actions {
    justify-content: center;
}

label {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #b8c3be;
    border-radius: 6px;
    font-size: 16px;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 42px;
    min-height: 40px;
    padding: 0;
    border-radius: 0 5px 5px 0;
    background: transparent;
    color: #0754a6;
}

.password-toggle:hover,
.password-toggle:focus {
    background: #eef6fb;
    color: #ff4b1c;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.phone-grid,
.two-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 4px;
}

input[type="checkbox"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 2px solid #a9bfd0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(17, 58, 92, 0.06);
    vertical-align: middle;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

input[type="checkbox"]::after {
    content: "";
    width: 6px;
    height: 10px;
    margin-top: -1px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:hover:not(:disabled) {
    border-color: #4b84b4;
    box-shadow: 0 0 0 3px rgba(7, 84, 166, 0.08);
}

input[type="checkbox"]:active:not(:disabled) {
    transform: scale(0.94);
}

input[type="checkbox"]:checked {
    border-color: #ff4b1c;
    background: linear-gradient(135deg, #ff673f, #ff4b1c);
    box-shadow: 0 3px 8px rgba(255, 75, 28, 0.2);
}

input[type="checkbox"]:checked::after {
    opacity: 1;
}

input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(7, 84, 166, 0.28);
    outline-offset: 2px;
}

input[type="checkbox"]:disabled {
    border-color: #cbd8e1;
    background-color: #edf3f7;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.68;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #ff4b1c;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fff0f0;
    border: 1px solid #f0b8b8;
    color: #8a1f1f;
}

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

.hint {
    color: #66726d;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-summary-column,
    .profile-summary-column.without-progress {
        grid-template-rows: auto;
        height: auto;
    }

    .member-progress-content {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
        padding-inline: 28px;
    }

    .profile-banner-preview {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        z-index: 90;
        top: 0;
        left: 0;
        width: min(304px, 86vw);
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        transform: translateX(0);
        transition: transform 180ms ease, opacity 140ms ease, box-shadow 180ms ease;
    }

    .app-shell.sidebar-collapsed .app-sidebar {
        width: min(304px, 86vw);
        height: 100vh;
        min-height: 100vh;
        opacity: 0;
        transform: translateX(-100%);
    }

    .app-shell:not(.sidebar-ready) .app-sidebar {
        opacity: 0;
        transform: translateX(-100%);
    }

    .sidebar-toggle {
        top: 50%;
        left: auto;
        right: 12px;
        width: 38px;
        height: 52px;
        min-height: 52px;
    }

    .app-shell.sidebar-collapsed .sidebar-toggle {
        right: auto;
        left: 0;
    }

    .sidebar-brand,
    .sidebar-user {
        padding: 16px;
    }

    .user-avatar {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }

    .sidebar-wallets {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wallet-tile {
        padding: 14px 20px;
    }

    .app-topbar {
        height: var(--app-topbar-height);
        min-height: var(--app-topbar-height);
        align-items: stretch;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0;
    }

    .impersonation-banner,
    .admin-search-form {
        align-items: flex-start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .impersonation-banner > div {
        padding-left: 48px;
    }

    .impersonation-banner form,
    .impersonation-banner button {
        width: 100%;
    }

    .topbar-actions {
        width: auto;
        align-items: center;
        flex-direction: row;
        padding: 0;
    }

    .topbar-tab {
        padding-inline: 16px;
        font-size: 14px;
    }

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

    .topbar-utility.highlight {
        margin-inline: 6px;
        box-shadow: none;
    }

    .topbar-utility.highlight.active {
        box-shadow: none;
    }

    .app-content {
        padding: 22px 16px;
    }

    .dashboard-hero {
        top: var(--app-topbar-height);
        margin: -22px -16px 24px;
        padding: 28px 16px;
    }

    .page-title-condensed .dashboard-hero {
        padding: 14px 16px;
    }

    .page-title-condensed .dashboard-hero h1 {
        font-size: 24px;
    }

    .dashboard-hero h1 {
        font-size: 30px;
    }

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

    .contracts-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .contracts-summary-grid,
    .invoice-summary-grid,
    .contracts-filter-panel,
    .invoice-filter-panel,
    .contract-card-grid,
    .contract-card-main,
    .invoice-detail-grid,
    .invoice-amounts,
    .wallet-recharge-form,
    .payment-info-grid {
        grid-template-columns: 1fr;
    }

    .contract-card {
        padding: 16px;
    }

    .contract-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-actions {
        width: 100%;
        justify-content: stretch;
    }

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

    .otp-boxes {
        gap: 8px;
    }

    .otp-box {
        width: 44px;
        height: 58px;
        min-height: 58px;
        font-size: 28px;
    }

    .otp-actions-row {
        align-items: stretch;
        flex-direction: column;
    }

    .otp-actions-row form,
    .otp-actions-row button {
        width: 100%;
    }

    .table-scroll {
        overflow: visible;
    }

    .contracts-table {
        min-width: 0;
    }

    .contracts-table thead {
        display: none;
    }

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

    .contracts-table tr {
        padding: 10px 0;
        border-bottom: 1px solid #e3edf4;
    }

    .contracts-table td {
        display: grid;
        grid-template-columns: minmax(118px, 0.42fr) 1fr;
        gap: 12px;
        padding: 10px 16px;
        border-bottom: 0;
    }

    .contracts-table td::before {
        content: attr(data-label);
        color: #66726d;
        font-weight: 700;
    }

    .invoice-filter-actions,
    .invoice-detail-actions {
        width: 100%;
        justify-content: stretch;
    }

    .invoice-filter-actions .button,
    .invoice-detail-actions .button {
        flex: 1 1 160px;
    }

    .invoice-legends > div {
        align-items: flex-start;
    }

    .invoice-legends > div > strong {
        width: 100%;
        margin-right: 0;
    }

    .invoice-page-header {
        margin: -22px -16px 28px;
        padding: 18px 16px;
    }

    .invoice-page-header h1 {
        font-size: 25px;
    }

    .invoice-legends {
        align-items: stretch;
        margin-bottom: 26px;
        gap: 14px;
    }

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

    .invoice-status {
        white-space: normal;
    }

    .invoice-table-toolbar,
    .invoice-table-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-table-tools {
        width: 100%;
    }

    .invoice-tool-button {
        width: 100%;
    }

    .invoice-page-size {
        justify-content: space-between;
        margin: 4px 0 0;
    }

    .invoice-global-search {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-global-search input {
        width: 100%;
    }

    .invoices-table tbody tr {
        margin-bottom: 14px;
        padding: 8px 0;
        border: 1px solid #d8e4ec;
        border-radius: 6px;
        background: #ffffff !important;
    }

    .invoices-table td {
        grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .invoices-table .invoice-row-actions {
        text-align: left !important;
    }

    .invoice-download-button {
        width: 100%;
    }

    .invoice-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-pagination {
        justify-content: space-between;
    }

    .invoice-pagination button {
        flex: 1;
    }

    .invoice-document {
        padding: 18px;
    }

    .invoice-document > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tickets-summary,
    .ticket-detail-summary {
        grid-template-columns: 1fr;
    }

    .ticket-status-legend {
        justify-content: flex-start;
    }

    .table-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }

    .table-panel .responsive-table {
        overflow: visible;
    }

    .table-panel table {
        min-width: 0;
    }

    .table-panel thead {
        display: none;
    }

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

    .table-panel tr {
        padding: 12px 0;
        border-bottom: 1px solid #e3edf4;
    }

    .table-panel td {
        display: grid;
        grid-template-columns: minmax(118px, 0.42fr) 1fr;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 0;
    }

    .table-panel td::before {
        content: attr(data-label);
        color: #66726d;
        font-weight: 800;
    }

    .table-panel td:last-child {
        display: flex;
        padding-top: 14px;
    }

    .ticket-message,
    .ticket-message.staff {
        max-width: none;
        margin-left: 0;
    }

    .ticket-message header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-dashboard-actions .button {
        width: 100%;
    }

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

    .community-layout {
        grid-template-columns: 1fr;
    }

    .profile-grid,
    .profile-form-grid,
    .profile-banner-upload,
    .member-progress-content,
    .profile-document-row,
    .mandate-check-grid,
    .first-contract-details,
    .profile-verification-requirements,
    .readonly-grid,
    .inline-form,
    .permissions-grid {
        grid-template-columns: 1fr;
    }

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

    .first-contract-action .button {
        width: 100%;
        white-space: normal;
    }

    .profile-referral-link,
    .profile-verification-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .referral-copy-button,
    .profile-verification-actions .button,
    .profile-verification-actions button {
        width: 100%;
    }

    .member-progress-content {
        justify-items: center;
        padding: 24px 20px 16px;
        text-align: center;
    }

    .member-progress-donut {
        width: 180px;
    }

    .member-progress-steps {
        margin: 18px 16px 28px;
    }

    .member-progress-steps strong {
        font-size: 13px;
    }

    .profile-banner-upload input[type="file"],
    .profile-banner-upload .hint,
    .profile-banner-upload button {
        grid-column: 1;
    }

    .profile-banner-upload button {
        grid-row: auto;
        width: 100%;
    }

    .feature-panel.profile-section,
    .profile-documents-panel {
        padding: 0 18px 22px;
    }

    .feature-panel.profile-section > h2:first-child,
    .profile-documents-panel > h2 {
        margin-left: -18px;
        margin-right: -18px;
    }

    .profile-documents-panel > p {
        margin: 0 0 4px;
    }

    .profile-documents-list {
        padding: 0;
    }

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

    .profile-document-upload-button,
    .profile-document-row button,
    .split-actions button {
        width: 100%;
    }

    .store-product {
        grid-template-columns: 1fr;
    }

    .store-product-media {
        min-height: 0;
        padding: 18px;
    }

    .store-product-copy {
        padding: 24px 18px;
    }

    .store-product-copy h2 {
        font-size: 28px;
    }

    .split-actions {
        flex-direction: column;
    }

    .admin-permissions-header,
    .admin-search-form {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .community-search-band,
    .community-tree-section {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .legal-footer {
        margin: 20px 16px;
        padding: 18px;
    }

    .search-row,
    .search-row-top,
    .tree-controls {
        grid-template-columns: 1fr;
    }

    .community-legends,
    .table-meta,
    .tree-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-tree-map {
        min-width: 760px;
        padding-right: 32px;
        padding-left: 32px;
    }

    .community-tree-toolbar {
        margin-top: -20px;
    }

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

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

    .brand img {
        height: 62px;
    }

    .brand .brand-backoffice-logo {
        height: 40px;
    }

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

    .new-prospect-phone,
    .new-prospect-next-steps {
        grid-template-columns: 1fr;
    }

    .container {
        margin-top: 24px;
        padding: 22px;
    }
}

/* Profile workspace: compact overview, structured forms and document workflow */

.profile-grid {
    align-items: start;
}

.profile-grid.without-progress {
    grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr);
}

.profile-grid .profile-summary-column {
    align-content: start;
    grid-template-rows: auto auto;
    height: auto;
}

.profile-grid .profile-summary-column.without-progress {
    grid-template-rows: auto;
}

.profile-summary-column .profile-referral-panel {
    height: auto;
}

.profile-banner-panel .profile-banner-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.profile-banner-panel .profile-banner-upload .profile-banner-upload-field {
    display: block;
    min-width: 0;
}

.profile-banner-upload-field > label {
    display: block;
    margin: 0 0 7px;
    color: #315777;
    font-size: 13px;
    font-weight: 800;
}

.profile-banner-file-control {
    display: flex;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid #c7dbe9;
    border-radius: 10px;
    background: #ffffff;
}

.profile-banner-file-input,
.profile-document-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-banner-file-picker {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-right: 1px solid #c7dbe9;
    background: #edf6fc;
    color: #0757a8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease;
}

.profile-banner-upload-field .profile-banner-file-picker {
    grid-column: auto;
    margin: 0;
}

.profile-banner-file-picker:hover {
    background: #dceefa;
    color: #073c70;
}

.profile-banner-file-picker svg,
.profile-document-upload-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-banner-file-name {
    min-width: 0;
    padding: 11px 13px;
    overflow: hidden;
    color: #607d96;
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-banner-panel .profile-banner-upload > button {
    align-self: start;
    grid-row: 1;
    min-height: 44px;
    margin: 25px 0 0;
}

.profile-banner-panel .field-hint {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.profile-banner-panel .profile-banner-upload-field > .hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

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

.profile-data-grid.profile-data-grid {
    align-items: start;
}

.profile-data-grid > .profile-block-form.profile-block-form {
    align-self: start;
    height: auto;
}

.profile-data-grid > .profile-block-form > .profile-section.profile-section {
    height: auto;
}

.profile-section-intro {
    margin: -2px 0 18px;
    color: #607d96;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.profile-data-grid .profile-form-grid {
    flex: 0 0 auto;
}

.profile-data-grid .profile-section-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid #dce8f1;
    border-radius: 10px;
    background: #f6fafe;
}

.profile-data-grid .profile-section-actions > span {
    color: #607d96;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.profile-data-grid .profile-section-actions button {
    flex: 0 0 auto;
    min-height: 40px;
    margin: 0;
}

.profile-documents-panel > p {
    margin: 0 0 18px;
    color: #607d96;
    font-size: 13px;
    line-height: 1.55;
}

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

.profile-documents-panel .profile-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
    gap: 18px;
    align-items: center;
    padding: 17px;
    border: 1px solid #d7e5ef;
    border-radius: 12px;
    background: #f8fbfe;
}

.profile-document-copy {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.profile-documents-panel .profile-document-copy {
    grid-column: auto;
}

.profile-document-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e6f2fa;
    color: #0757a8;
}

.profile-document-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.profile-document-heading {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.profile-documents-panel .profile-document-row h3 {
    margin: 0;
    color: #0c3157;
    font-size: 15px;
    line-height: 1.35;
}

.profile-documents-panel .profile-document-row p {
    margin: 5px 0 0;
    color: #607d96;
    font-size: 12px;
    line-height: 1.45;
}

.profile-document-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.profile-document-status.is-uploaded {
    background: #e8f7ed;
    color: #187a3c;
}

.profile-document-status.is-missing {
    background: #fff3dc;
    color: #935d00;
}

.profile-document-controls {
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.profile-document-upload-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #bed6e7;
    border-radius: 9px;
    background: #ffffff;
    color: #0757a8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-documents-panel .profile-document-upload-button {
    grid-column: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border-color: #bed6e7;
    background: #ffffff;
    color: #0757a8;
    font-size: 12px;
}

.profile-document-upload-button:hover {
    border-color: #91bddc;
    background: #edf6fc;
}

.profile-documents-panel .profile-document-upload-button:hover {
    border-color: #91bddc;
    background: #edf6fc;
    color: #073c70;
}

.profile-document-name {
    min-width: 0;
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid #d7e5ef;
    border-radius: 9px;
    background: #ffffff;
    color: #607d96;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-document-row-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.profile-document-row-actions .button,
.profile-document-row-actions button {
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
}

.mandate-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 4px;
    padding: 0;
    list-style: none;
}

.mandate-journey li {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid #d9e7f1;
    border-radius: 10px;
    background: #f6fafe;
    color: #315777;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.mandate-journey li > span,
.mandate-step-heading > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0757a8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.mandate-step-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding-left: 0 !important;
    color: #0c3157;
}

.mandate-step-heading::before {
    content: none !important;
}

.mandate-step-heading strong {
    font: inherit;
}

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

.mandate-form .mandate-document-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.mandate-document-card {
    display: grid;
    grid-template-rows: auto minmax(48px, auto) auto 76px auto minmax(108px, auto);
    gap: 13px;
    min-width: 0;
    padding: 17px;
    border-radius: 12px;
}

.mandate-document-card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.mandate-document-read-state {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #edf2f6;
    color: #607d96;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.mandate-document-read-state.is-read {
    background: #e8f7ed;
    color: #187a3c;
}

.mandate-document-card h3 {
    align-self: start;
    margin: 0;
    color: #0c3157;
    font-size: 15px;
    line-height: 1.35;
}

.mandate-document-version {
    display: block;
    color: #315777;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.mandate-document-meta-slot {
    align-self: start;
    min-height: 76px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.66);
    color: #607d96;
    font-size: 12px;
    line-height: 1.45;
}

.mandate-document-meta-slot p {
    margin: 0;
}

.mandate-document-meta-slot p + p {
    margin-top: 2px;
}

.mandate-document-meta-slot a {
    font-weight: 800;
}

.mandate-document-card > p {
    margin: 0;
    color: #607d96;
    font-size: 12px;
    line-height: 1.45;
}

.mandate-document-card .button,
.mandate-document-card > a {
    align-self: stretch;
    width: 100%;
    min-height: 44px;
    margin: 0;
    text-align: center;
}

.mandate-document-card .check-card {
    align-self: stretch;
    min-height: 108px;
    margin: 0;
}

.mandate-form-fields,
.mandate-check-grid {
    gap: 14px;
}

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

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

@media (max-width: 760px) {
    .profile-banner-panel .profile-banner-upload,
    .profile-document-controls,
    .mandate-journey {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-banner-panel .profile-banner-upload > button,
    .profile-document-upload-button,
    .profile-document-row-actions,
    .profile-document-row-actions .button,
    .profile-document-row-actions button {
        width: 100%;
    }

    .profile-banner-panel .profile-banner-upload > button {
        margin-top: 0;
    }

    .profile-document-row-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-data-grid .profile-section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-data-grid .profile-section-actions button {
        width: 100%;
    }

    .mandate-journey li {
        min-height: 48px;
    }
}

/* Account progress: compact status summary and clear milestones */

.feature-panel.member-progress-panel .member-progress-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid #d8e7f1;
    border-radius: 12px;
    background: linear-gradient(120deg, #edf6fc 0%, #f8fbfe 68%, #ffffff 100%);
}

.feature-panel.member-progress-panel .member-progress-current {
    min-width: 0;
}

.feature-panel.member-progress-panel .member-progress-current > span,
.feature-panel.member-progress-panel .member-progress-percentage > span {
    display: block;
    color: #607d96;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.feature-panel.member-progress-panel .member-progress-current > strong {
    display: block;
    margin-top: 5px;
    color: #0c3157;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.018em;
    line-height: 1.2;
}

.feature-panel.member-progress-panel .member-progress-current p {
    max-width: 560px;
    margin: 7px 0 0;
    color: #426582;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.feature-panel.member-progress-panel .member-progress-percentage {
    display: grid;
    place-items: center;
    min-width: 104px;
    min-height: 82px;
    padding: 11px 14px;
    border: 1px solid #c9ddea;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(12, 49, 87, 0.07);
    text-align: center;
}

.feature-panel.member-progress-panel .member-progress-percentage strong {
    color: #0754a6;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1;
}

.feature-panel.member-progress-panel .member-progress-percentage > span {
    margin-top: 5px;
    font-size: 12px;
    letter-spacing: 0.035em;
}

.feature-panel.member-progress-panel .member-progress-meter {
    height: 8px;
    margin: 15px 2px 17px;
    overflow: hidden;
    border-radius: 999px;
    background: #dceaf3;
}

.feature-panel.member-progress-panel .member-progress-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0754a6 0%, #238bc8 68%, #f4512a 100%);
    box-shadow: 0 0 0 1px rgba(7, 84, 166, 0.06);
}

.feature-panel.member-progress-panel .member-progress-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-panel.member-progress-panel .member-progress-steps::before,
.feature-panel.member-progress-panel .member-progress-steps::after {
    content: none;
}

.feature-panel.member-progress-panel .member-progress-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 11px;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    background: #ffffff;
    color: #607d96;
    text-align: left;
}

.feature-panel.member-progress-panel .member-progress-steps li.current {
    border-color: #f5ab96;
    background: #fff7f4;
    box-shadow: inset 0 0 0 1px rgba(244, 81, 42, 0.08);
}

.feature-panel.member-progress-panel .member-progress-steps li.complete {
    border-color: #9fc9e2;
    background: linear-gradient(135deg, #e7f4fc 0%, #f3f9fd 100%);
    box-shadow: inset 0 0 0 1px rgba(7, 84, 166, 0.05);
}

.feature-panel.member-progress-panel .member-progress-step-marker {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cbdce8;
    border-radius: 9px;
    background: #edf4f8;
    color: #607d96;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}

.feature-panel.member-progress-panel .member-progress-step-marker svg {
    width: 18px;
    height: 18px;
}

.feature-panel.member-progress-panel .member-progress-steps .complete .member-progress-step-marker {
    border-color: #0754a6;
    background: #0754a6;
    color: #ffffff;
}

.feature-panel.member-progress-panel .member-progress-steps .current .member-progress-step-marker {
    border-color: #f4512a;
    background: #f4512a;
    color: #ffffff;
}

.feature-panel.member-progress-panel .member-progress-steps li > div {
    min-width: 0;
}

.feature-panel.member-progress-panel .member-progress-steps small,
.feature-panel.member-progress-panel .member-progress-steps strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
}

.feature-panel.member-progress-panel .member-progress-steps small {
    color: #7890a4;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.feature-panel.member-progress-panel .member-progress-steps strong {
    margin-top: 3px;
    color: #426582;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.feature-panel.member-progress-panel .member-progress-steps .complete strong {
    color: #0754a6;
}

.feature-panel.member-progress-panel .member-progress-steps .current strong {
    color: #bc381d;
}

@media (max-width: 720px) {
    .feature-panel.member-progress-panel .member-progress-overview {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .feature-panel.member-progress-panel .member-progress-percentage {
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 8px;
        min-height: 0;
    }

    .feature-panel.member-progress-panel .member-progress-percentage > span {
        margin-top: 0;
    }

    .feature-panel.member-progress-panel .member-progress-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

.workflow-toolbar .inline-form {
    align-items: end;
    display: flex;
    gap: 12px;
}

.workflow-toolbar .field {
    min-width: min(360px, 100%);
}

.credit-check-import-panel {
    align-items: center;
    border-left: 4px solid #ef4b23;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    margin: 22px 0;
    min-height: 0;
}

.credit-check-import-panel h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.credit-check-import-panel p {
    color: #425d6c;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 8px;
}

.credit-check-import-panel .eyebrow {
    color: #ef4b23;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
}

.credit-check-format-hint {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

.credit-check-driver {
    background: #e8f2f9;
    color: #0754a6;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    padding: 6px 9px;
}

.credit-check-import-form {
    border-left: 1px solid #d8e4ec;
    display: grid;
    gap: 10px;
    padding-left: 28px;
}

.credit-check-import-form label {
    color: #0754a6;
    font-size: 13px;
    font-weight: 700;
}

.credit-check-import-form input[type="file"] {
    background: #f8fbfd;
    border: 1px solid #bcd0dc;
    min-width: 0;
    padding: 8px;
    width: 100%;
}

.credit-check-import-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.credit-check-import-actions .button,
.credit-check-import-actions button {
    min-height: 40px;
}

.workflow-contracts-table tr.is-selected td {
    background: #eef7fc;
}

.calculator-orders-toolbar {
    margin-bottom: 22px;
}

.calculator-orders-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(170px, 0.75fr)) auto;
}

.calculator-orders-filters .field {
    min-width: 0;
}

.calculator-orders-filters button {
    min-height: 44px;
}

.calculator-orders-table tr.is-selected td {
    background: #eef7fc;
}

.calculator-order-detail {
    margin-top: 24px;
    min-height: 0;
}

.calculator-order-detail .workflow-detail-heading p {
    margin: 4px 0 0;
}

.calculator-order-summary-grid {
    border-bottom: 1px solid #d8e4ec;
    border-top: 1px solid #d8e4ec;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.calculator-order-summary-grid > div {
    border-bottom: 1px solid #d8e4ec;
    border-right: 1px solid #d8e4ec;
    min-width: 0;
    padding: 14px;
}

.calculator-order-summary-grid > div:nth-child(3n) {
    border-right: 0;
}

.calculator-order-summary-grid > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.calculator-order-summary-grid span,
.calculator-order-summary-grid strong,
.calculator-order-summary-grid small {
    display: block;
}

.calculator-order-summary-grid span {
    color: #687985;
    font-size: 13px;
    margin-bottom: 4px;
}

.calculator-order-summary-grid strong {
    color: #143f64;
    overflow-wrap: anywhere;
}

.calculator-order-summary-grid small {
    color: #617789;
    margin-top: 3px;
}

.calculator-order-acceptances {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

.calculator-order-acceptances h3,
.calculator-order-acceptances p {
    margin: 0;
}

.calculator-order-acceptances ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.calculator-order-acceptances li {
    align-items: center;
    background: #f6f9fb;
    color: #284f67;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 9px;
    min-height: 38px;
    padding: 7px 10px;
}

.calculator-order-acceptances li span {
    align-items: center;
    background: #dce7ee;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 22px;
    height: 22px;
    justify-content: center;
}

.calculator-order-acceptances li.is-accepted span {
    background: #dff3e4;
    color: #26733a;
}

.calculator-order-acceptances li.is-missing span {
    background: #ffe6e1;
    color: #9f2e20;
}

.workflow-calculator-source {
    align-items: center;
    background: #eef7fc;
    border-left: 4px solid #0754a6;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 12px 14px;
}

.workflow-calculator-source span,
.workflow-calculator-source strong,
.workflow-calculator-source small {
    display: block;
}

.workflow-calculator-source span {
    color: #687985;
    font-size: 13px;
}

.workflow-badge {
    background: #e8f0f6;
    color: #174f73;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    padding: 5px 7px;
}

.workflow-internally_rejected,
.workflow-network_rejected,
.workflow-ko {
    background: #ffe7e3;
    color: #a72f20;
}

.workflow-internally_approved,
.workflow-verified,
.workflow-active_supply {
    background: #e3f4e7;
    color: #246d37;
}

.workflow-awaiting_network_decision,
.workflow-submission_pending,
.workflow-activation_scheduled {
    background: #fff1d6;
    color: #7b5213;
}

.workflow-detail-panel {
    margin-top: 24px;
}

.workflow-detail-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.workflow-detail-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.workflow-state-grid {
    border-bottom: 1px solid #d8e4ec;
    border-top: 1px solid #d8e4ec;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0;
}

.workflow-state-grid > div {
    border-right: 1px solid #d8e4ec;
    padding: 14px;
}

.workflow-state-grid > div:last-child {
    border-right: 0;
}

.workflow-state-grid span,
.workflow-state-grid strong {
    display: block;
}

.workflow-state-grid span {
    color: #687985;
    font-size: 13px;
    margin-bottom: 4px;
}

.workflow-document-review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -4px 0 20px;
    padding: 12px 14px;
    border-left: 4px solid #ef9e24;
    background: #fff7e7;
}

.workflow-document-review-summary.is-complete {
    border-left-color: #43a653;
    background: #eef8f0;
}

.workflow-document-review-summary span,
.workflow-document-review-summary strong {
    display: block;
}

.workflow-document-review-summary span {
    margin-bottom: 3px;
    color: #687985;
    font-size: 13px;
}

.workflow-document-review-summary a {
    color: #0754a6;
    font-weight: 700;
}

.workflow-actions-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-action-form {
    border: 1px solid #d6e4ed;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.workflow-action-form h3,
.workflow-action-form p {
    margin: 0;
}

.workflow-action-form button {
    align-self: flex-start;
}

.workflow-checklist-confirmation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    color: #24485d;
    font-size: 13px;
}

.workflow-checklist-confirmation input {
    margin-top: 2px;
}

.workflow-action-form .workflow-blocked-hint {
    color: #9d2e23;
    font-size: 13px;
    font-weight: 700;
}

.workflow-history-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.workflow-provider-error {
    margin: 18px 0 0;
    overflow-wrap: anywhere;
}

.workflow-provider-events {
    min-height: 0;
    margin-top: 22px;
}

.workflow-provider-events-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.workflow-provider-events-heading h2,
.workflow-provider-events-heading p {
    margin: 0;
}

.workflow-provider-events-heading > span {
    max-width: 520px;
    color: #547087;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

@media (max-width: 900px) {
    .calculator-orders-filters,
    .calculator-order-summary-grid,
    .calculator-order-acceptances {
        grid-template-columns: 1fr;
    }

    .calculator-orders-filters button {
        width: 100%;
    }

    .calculator-order-summary-grid > div,
    .calculator-order-summary-grid > div:nth-child(3n),
    .calculator-order-summary-grid > div:nth-last-child(-n + 3) {
        border-bottom: 1px solid #d8e4ec;
        border-right: 0;
    }

    .calculator-order-summary-grid > div:last-child {
        border-bottom: 0;
    }

    .workflow-calculator-source {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-calculator-source a {
        width: 100%;
    }

    .credit-check-import-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .credit-check-import-form {
        border-left: 0;
        border-top: 1px solid #d8e4ec;
        padding-left: 0;
        padding-top: 20px;
    }

    .credit-check-import-actions .button,
    .credit-check-import-actions button {
        justify-content: center;
        width: 100%;
    }

    .workflow-state-grid,
    .workflow-actions-grid,
    .workflow-history-layout {
        grid-template-columns: 1fr;
    }

    .workflow-state-grid > div {
        border-bottom: 1px solid #d8e4ec;
        border-right: 0;
    }

    .workflow-detail-heading,
    .workflow-toolbar .inline-form,
    .workflow-provider-events-heading {
        align-items: stretch;
        flex-direction: column;
    }


    .workflow-detail-links,
    .workflow-document-review-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-detail-links a {
        width: 100%;
    }

    .workflow-provider-events-heading > span {
        max-width: none;
        text-align: left;
    }
}

@media print {
    @page {
        size: landscape;
        margin: 10mm;
    }

    .app-sidebar,
    .sidebar-toggle,
    .app-topbar,
    .legal-footer,
    .invoice-detail-actions,
    .invoice-filter-panel,
    .invoice-table-toolbar,
    .invoice-table-footer,
    .invoice-legends,
    .impersonation-banner {
        display: none !important;
    }

    html,
    body,
    .page,
    .app-shell {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .app-shell {
        display: block !important;
    }

    .app-main,
    .app-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .dashboard-hero {
        margin: 0 0 18px !important;
        padding: 0 0 16px !important;
        border-bottom: 1px solid #d8e4ec;
        background: #ffffff !important;
        color: #0754a6 !important;
    }

    .invoice-page-header {
        margin: 0 0 18px !important;
        padding: 0 0 16px !important;
        border-bottom: 1px solid #d8e4ec;
        background: #ffffff !important;
    }

    .invoice-document,
    .invoices-table-section {
        border: 0;
        box-shadow: none;
    }

    .table-scroll {
        width: 100% !important;
        overflow: visible !important;
    }

    .invoices-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed;
        border-collapse: collapse;
        font-size: 7.2px;
    }

    .invoices-table th,
    .invoices-table td {
        width: auto !important;
        padding: 3px 4px !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .invoices-table th:nth-child(14),
    .invoices-table td:nth-child(14) {
        display: none !important;
    }

    .invoice-sort-button {
        gap: 2px;
        font-size: 7px;
        line-height: 1.15;
    }

    .invoice-sort-button > .invoice-sort-arrow {
        display: none;
    }

    .invoice-status {
        min-height: 0;
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 7px;
    }
}
.sponsor-reactivation-alert,
.admin-dashboard-alert {
    margin: 0 0 24px;
    border: 1px solid #f1b26a;
    border-left: 5px solid #ff4b18;
    background: #fff8ec;
    color: #173d65;
}

.sponsor-reactivation-heading,
.admin-dashboard-alert-heading {
    padding: 16px 18px;
}

.sponsor-reactivation-heading > div,
.admin-dashboard-alert-heading > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admin-dashboard-alert-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sponsor-reactivation-heading h2,
.admin-dashboard-alert-heading h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
}

.sponsor-reactivation-heading p,
.admin-dashboard-alert-heading p {
    margin: 0;
    font-size: 14px;
}

.sponsor-reactivation-icon,
.admin-dashboard-alert-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    background: #ff4b18;
    color: #fff;
    font-weight: 700;
}

.admin-dashboard-alert-heading .button {
    flex: 0 0 auto;
}

.sponsor-reactivation-list {
    border-top: 1px solid #f1d4ae;
}

.sponsor-reactivation-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
}

.sponsor-reactivation-list article + article {
    border-top: 1px solid #f1d4ae;
}

.sponsor-reactivation-list article > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sponsor-reactivation-list strong,
.sponsor-reactivation-list span {
    overflow-wrap: anywhere;
}

.sponsor-reactivation-list small {
    color: #697785;
}

.sponsor-reactivation-list form {
    flex: 0 0 auto;
}

.sponsor-reactivation-list button {
    min-height: 36px;
    padding: 7px 14px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .admin-dashboard-alert-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-dashboard-alert-heading .button {
        width: 100%;
    }

    .contract-bill-upload {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .contract-tutorial-link {
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
    }

    .contract-bill-name {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .contract-summary-panel {
        padding: 18px 18px 2px;
    }

    .contract-section {
        padding: 0 18px 20px;
    }

    .contract-section > h2:first-child {
        margin: 0 -18px 20px;
        padding: 11px 14px;
        font-size: 15px;
    }

    .contract-customer-search {
        padding: 14px;
    }

    .contract-customer-results {
        top: calc(100% - 14px);
        right: 14px;
        left: 14px;
    }

    .contract-customer-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sponsor-reactivation-list article {
        align-items: stretch;
        flex-direction: column;
    }

    .sponsor-reactivation-list button {
        width: 100%;
    }
}

/* Dashboard assistance and direct-network activity */
.dashboard-assistance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 28px;
}

.dashboard-activity-card {
    display: flex;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #cfe0ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 66, 111, .08);
}

.dashboard-activity-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 15px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #dce8f1;
    background: linear-gradient(135deg, #fff 0%, #f7fbfe 100%);
}

.dashboard-activity-header .eyebrow {
    margin: 0 0 5px;
    color: #ef5328;
    font-size: 13px;
    letter-spacing: .11em;
}

.dashboard-activity-header h2 {
    margin: 0;
    color: #0a315d;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.18;
}

.dashboard-activity-header p:not(.eyebrow) {
    max-width: 620px;
    margin: 7px 0 0;
    color: #5c7690;
    font-size: 15px;
    line-height: 1.5;
}

.dashboard-activity-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #c5dded;
    border-radius: 15px;
    background: #eaf5fb;
    color: #0b5bac;
}

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

.dashboard-activity-icon-network {
    border-color: #cbe8d7;
    background: #eef9f2;
    color: #238e50;
}

.dashboard-activity-counters {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.dashboard-activity-counters > span {
    display: grid;
    min-width: 78px;
    padding: 8px 12px;
    border: 1px solid #d4e3ed;
    border-radius: 14px;
    background: #fff;
    color: #607991;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.dashboard-activity-counters strong {
    color: #0a4f98;
    font-size: 22px;
    line-height: 1;
}

.dashboard-activity-counters > .is-emphasized {
    border-color: #f4a287;
    background: #fff3ee;
    color: #b83c19;
}

.dashboard-activity-counters > .is-emphasized strong {
    color: #e64b21;
}

.dashboard-activity-counters > .is-warning {
    border-color: #f1c888;
    background: #fff8e9;
    color: #916018;
}

.dashboard-activity-counters > .is-warning strong {
    color: #c77b08;
}

.network-attention-count > span {
    min-width: 92px;
}

.dashboard-activity-state {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 22px 0;
    padding: 11px 14px;
    border: 1px solid #cce7d7;
    border-radius: 13px;
    background: #f0faf4;
    color: #237744;
}

.dashboard-activity-state > span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 50%;
    background: #2e9a5b;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-activity-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}

.dashboard-activity-list {
    display: grid;
}

.ticket-activity-list {
    padding: 8px 22px 0;
}

.dashboard-activity-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 4px;
    border-bottom: 1px solid #e0e9f0;
    color: #0a315d;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.dashboard-activity-row:hover,
.dashboard-activity-row:focus-visible {
    margin: 0 -8px;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 12px;
    background: #f1f8fd;
    color: #0a315d;
    transform: translateX(2px);
}

.dashboard-activity-row.has-unread-update {
    background: linear-gradient(90deg, rgba(255, 82, 32, .075), transparent 72%);
}

.ticket-activity-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #c4d6e4;
    border-radius: 50%;
    background: #fff;
}

.has-unread-update .ticket-activity-dot {
    border-color: #ff5425;
    background: #ff5425;
    box-shadow: 0 0 0 4px rgba(255, 84, 37, .12);
}

.dashboard-activity-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-activity-main > span:not(.dashboard-activity-titleline),
.dashboard-activity-main small {
    overflow: hidden;
    color: #678098;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.dashboard-activity-titleline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-activity-titleline strong {
    min-width: 0;
    overflow: hidden;
    color: #0a315d;
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-titleline em,
.ticket-subject-cell em {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #ff5425;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.dashboard-activity-titleline em.is-action {
    background: #fff1d6;
    color: #8a5a0b;
}

.dashboard-activity-row time {
    color: #758ca0;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-activity-arrow {
    color: #0b61b4;
    font-size: 20px;
    font-weight: 800;
}

.dashboard-activity-empty {
    display: grid;
    gap: 5px;
    margin: auto 22px;
    padding: 20px;
    border: 1px dashed #c6dae8;
    border-radius: 15px;
    background: #f7fbfe;
}

.dashboard-activity-empty strong {
    color: #17436e;
    font-size: 16px;
}

.dashboard-activity-empty p {
    margin: 0;
    color: #667f96;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-activity-empty.is-positive {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    border-color: #c7e4d3;
    background: #f2faf5;
}

.dashboard-empty-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #299356;
    color: #fff;
    font-weight: 900;
}

.dashboard-activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 20px 22px 22px;
}

.dashboard-activity-actions.is-single {
    justify-content: flex-end;
    padding-top: 14px;
}

.network-attention-list {
    padding: 8px 22px 0;
}

.network-attention-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid #e0e9f0;
}

.network-attention-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #eaf5fb, #d9edf8);
    color: #0b5bac;
    font-size: 13px;
    font-weight: 900;
}

.network-attention-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.network-attention-actions form {
    margin: 0;
}

.compact-button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
    white-space: nowrap;
}

.ticket-subject-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.has-unread-ticket-update > td:first-child {
    box-shadow: inset 4px 0 #ff5425;
}

@media (max-width: 1180px) {
    .dashboard-assistance-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-card {
        min-height: 0;
    }

    .dashboard-activity-empty {
        margin-top: 28px;
        margin-bottom: 28px;
    }
}

@media (max-width: 720px) {
    .dashboard-activity-header {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 20px 18px 17px;
    }

    .dashboard-activity-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .dashboard-activity-counters {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .ticket-activity-list,
    .network-attention-list {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-activity-row {
        grid-template-columns: 12px minmax(0, 1fr) 20px;
    }

    .dashboard-activity-row time {
        display: none;
    }

    .network-attention-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .network-attention-actions {
        grid-column: 1 / -1;
        padding-left: 52px;
    }

    .dashboard-activity-actions {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .dashboard-activity-titleline {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-activity-titleline strong {
        white-space: normal;
    }

    .dashboard-activity-actions,
    .network-attention-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-activity-actions .button,
    .network-attention-actions .button,
    .network-attention-actions button {
        width: 100%;
    }
}

/* Dashboard contract activity */
.dashboard-contracts-workspace {
    display: grid;
    grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr);
    gap: 22px;
    margin: 0 0 32px;
}

.dashboard-contracts-workspace.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-contract-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cfe0ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 66, 111, .08);
}

.dashboard-contract-panel-heading {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid #dbe7ef;
    background: linear-gradient(135deg, #fff 0%, #f6fafd 100%);
}

.dashboard-contract-panel-heading .eyebrow {
    margin: 0 0 4px;
    color: #ef5328;
    font-size: 13px;
    letter-spacing: .1em;
}

.dashboard-contract-panel-heading h2 {
    margin: 0;
    color: #0a315d;
    font-size: clamp(20px, 1.65vw, 26px);
    line-height: 1.2;
}

.dashboard-contract-panel-heading p:not(.eyebrow) {
    margin: 6px 0 0;
    color: #607991;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-contract-panel-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #c8ddec;
    border-radius: 14px;
    background: #eaf5fb;
    color: #0b5bac;
}

.dashboard-contract-panel-icon svg,
.dashboard-contract-type-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.dashboard-upgrade-icon {
    border-color: #f3c6b7;
    background: #fff2ed;
    color: #e95027;
}

.dashboard-panel-all-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cfdfeb;
    border-radius: 11px;
    background: #fff;
    color: #0754a6;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-panel-all-link:hover,
.dashboard-panel-all-link:focus-visible {
    border-color: #8ab9dc;
    background: #eef7fc;
    color: #0754a6;
}

.dashboard-recent-contract-list {
    display: grid;
    padding: 8px 22px 12px;
}

.dashboard-contract-row {
    display: grid;
    grid-template-columns: 42px minmax(180px, 1.05fr) minmax(160px, .9fr) 200px 72px 22px;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 15px 4px;
    border-bottom: 1px solid #e0e9f0;
    color: #0a315d;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.dashboard-contract-row:last-child {
    border-bottom: 0;
}

.dashboard-contract-row:hover,
.dashboard-contract-row:focus-visible {
    margin: 0 -8px;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 13px;
    background: #f1f8fd;
    color: #0a315d;
    transform: translateX(2px);
}

.dashboard-contract-type-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #eaf5fb;
    color: #0b5bac;
}

.dashboard-contract-type-icon.is-gas {
    background: #fff1e9;
    color: #ea572e;
}

.dashboard-contract-identity,
.dashboard-contract-customer {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-contract-identity strong,
.dashboard-contract-customer strong {
    min-width: 0;
    overflow: hidden;
    color: #0a315d;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-contract-identity small,
.dashboard-contract-customer small {
    overflow: hidden;
    color: #6a8298;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-contract-customer small {
    color: #8799a9;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.dashboard-contract-status {
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf4fa;
    color: #486984;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.dashboard-contract-status.is-positive {
    background: #e9f8ef;
    color: #257846;
}

.dashboard-contract-status.is-negative {
    background: #fff0ed;
    color: #bc4121;
}

.dashboard-contract-status.is-progress {
    background: #fff6df;
    color: #8b6414;
}

.dashboard-contract-row time {
    color: #70869a;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-contract-open {
    color: #0b61b4;
    font-size: 20px;
    font-weight: 900;
}

.dashboard-contract-empty {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 24px;
    padding: 20px;
    border: 1px dashed #c6dae8;
    border-radius: 15px;
    background: #f7fbfe;
}

.dashboard-contract-empty > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #e9f3fa;
    color: #0b5bac;
    font-size: 22px;
}

.dashboard-contract-empty strong {
    color: #17436e;
    font-size: 16px;
}

.dashboard-contract-empty p {
    margin: 4px 0 0;
    color: #667f96;
    font-size: 14px;
}

.dashboard-upgrade-panel {
    display: flex;
    flex-direction: column;
}

.dashboard-upgrade-list {
    display: grid;
    padding: 8px 20px 0;
}

.dashboard-upgrade-list > a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 3px;
    border-bottom: 1px solid #e0e9f0;
    color: #0a315d;
    text-decoration: none;
}

.dashboard-upgrade-list > a > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dashboard-upgrade-list strong {
    font-size: 14px;
}

.dashboard-upgrade-list small {
    color: #687f94;
    font-size: 12px;
}

.dashboard-upgrade-list em {
    padding: 6px 8px;
    border-radius: 999px;
    background: #fff3d8;
    color: #8b6213;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.dashboard-upgrade-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #fff0ea;
    color: #e95027;
    font-weight: 900;
}

.dashboard-contract-panel-actions {
    margin-top: auto;
    padding: 18px 20px 20px;
}

@media (max-width: 1120px) {
    .dashboard-contracts-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-contract-row {
        grid-template-columns: 42px minmax(180px, 1fr) minmax(160px, .9fr) 200px 22px;
    }

    .dashboard-contract-row time {
        display: none;
    }
}

@media (max-width: 760px) {
    .dashboard-contract-panel-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 20px 18px;
    }

    .dashboard-contract-panel-icon {
        width: 42px;
        height: 42px;
    }

    .dashboard-panel-all-link {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .dashboard-recent-contract-list {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-contract-row {
        grid-template-columns: 42px minmax(0, 1fr) 22px;
        gap: 11px;
    }

    .dashboard-contract-customer,
    .dashboard-contract-status {
        grid-column: 2;
    }

    .dashboard-contract-customer {
        margin-top: -3px;
    }

    .dashboard-contract-status {
        margin-top: 2px;
    }

    .dashboard-contract-open {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 460px) {
    .dashboard-upgrade-list > a {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .dashboard-upgrade-list em {
        grid-column: 2;
        justify-self: start;
    }
}
/* Public price calculator */
.calculator-embed-body {
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background: transparent;
}

.calculator-embed-layout,
.calculator-embed-main {
    width: 100%;
    min-height: 0;
}

.calculator-embed-main {
    padding: 0;
}

.calculator-embed {
    width: 100%;
    color: #103f70;
    font-family: Arial, Helvetica, sans-serif;
}

.calculator-embed form {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: stretch;
    width: min(100%, 1500px);
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d1deea;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(6, 63, 126, 0.13);
}

.calculator-embed-compact {
    min-width: 0;
}

.calculator-embed-segments {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px;
    background: #f5f9fc;
    border-right: 1px solid #d5e1ea;
}

.calculator-embed-segments button {
    min-height: 44px;
    padding: 8px 12px;
    color: #0755a5;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    background: #edf4f8;
    border: 1px solid #c6d8e5;
    border-radius: 9px;
    cursor: pointer;
}

.calculator-embed-segments button.active {
    color: #fff;
    background: #0755a5;
    border-color: #0755a5;
}

.calculator-embed-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 7px;
    background: #eef5f9;
    border-right: 0;
}

.calculator-embed-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 9px 8px;
    color: #365a77;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    background: transparent;
    border: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
}

.calculator-embed-tabs button:last-of-type {
    border-right: 1px solid transparent;
}

.calculator-embed-tabs button.active {
    color: #0755a5;
    background: #fff;
    border-color: #bfd5e4;
    box-shadow: inset 0 3px 0 #ff4b1f, 0 4px 12px rgba(6, 63, 126, 0.08);
}

.calculator-embed-tabs button[hidden] {
    display: none;
}

.calculator-embed-tabs button span {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: #ff4b1f;
    font-size: 15px;
    line-height: 1;
}

.calculator-embed-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(175px, .8fr) minmax(330px, 1.45fr) auto;
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-top: 1px solid #d5e1ea;
}

.calculator-embed .calculator-dual-consumptions {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
}

.calculator-embed-field {
    display: block;
    min-width: 0;
}

.calculator-embed-field[hidden] {
    display: none;
}

.calculator-embed-field > span:first-child,
.calculator-embed-field > label {
    display: block;
    min-height: 20px;
    margin-bottom: 5px;
    color: #123f70;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
}

.calculator-embed-field input,
.calculator-embed-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    color: #163c5c;
    font: inherit;
    font-size: 15px;
    background: #fff;
    border: 1px solid #9fb7c8;
    border-radius: 9px;
}

.calculator-embed-field input:focus,
.calculator-embed-field select:focus {
    border-color: #0755a5;
    outline: 3px solid rgba(7, 85, 165, 0.13);
}

.calculator-embed-postcode,
.calculator-embed-unit {
    position: relative;
    display: block;
}

.calculator-embed-postcode input {
    padding-right: min(48%, 230px);
}

.calculator-embed-postcode strong,
.calculator-embed-unit strong {
    position: absolute;
    top: 50%;
    right: 12px;
    overflow: hidden;
    color: #5b7183;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}

.calculator-embed-postcode strong {
    max-width: 44%;
}

.calculator-embed-unit input {
    padding-right: 84px;
}

.calculator-embed-field small {
    display: block;
    min-height: 14px;
    margin-top: 3px;
    color: #617b90;
    font-size: 12px;
}

.calculator-embed-submit {
    align-self: start;
    min-height: 44px;
    margin-top: 22px;
    padding: 9px 18px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    background: #ff4b1f;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.calculator-embed-submit:hover {
    background: #e93c13;
}

.calculator-embed-error {
    grid-column: 1 / -1;
    margin: 0 10px 10px;
    padding: 9px 11px;
    color: #8b1515;
    font-size: 13px;
    background: #ffeded;
    border: 1px solid #e7a2a2;
    border-radius: 4px;
}

.calculator-body {
    background: #f3f7fb;
}

.calculator-layout {
    min-height: 100vh;
}

.calculator-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 10px clamp(18px, 4vw, 64px);
    background: #fff;
    border-bottom: 1px solid #d7e4ee;
    box-shadow: 0 4px 14px rgba(0, 73, 141, 0.08);
}

.calculator-brand {
    display: inline-flex;
    align-items: center;
}

.calculator-brand img {
    display: block;
    width: auto;
    height: 56px;
}

.calculator-main {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.calculator {
    color: #123f70;
}

.calculator-configurator {
    padding: 6px;
    background:
        radial-gradient(circle at 92% 8%, rgba(185, 228, 255, 0.28), transparent 34%),
        linear-gradient(135deg, #073f7d 0%, #0754a6 58%, #0c6fbd 100%);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(7, 63, 125, 0.18);
}

.calculator-configurator-heading {
    padding: 22px 24px;
    color: #ffffff;
}

.calculator-configurator-heading .calculator-eyebrow {
    color: #b9e4ff;
}

.calculator-configurator .calculator-configurator-heading h1,
.calculator-configurator .calculator-configurator-heading h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: 0;
}

.calculator-configurator .calculator-configurator-heading h2 {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
}

.calculator-configurator > .calculator-configurator-heading > p:last-child {
    max-width: 760px;
    margin: 9px 0 0;
    color: #e2f2ff;
    font-size: 16px;
    line-height: 1.5;
}

.calculator-configurator .calculator-form {
    background: #ffffff;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.calculator-intro {
    max-width: 820px;
    margin-bottom: 28px;
}

.calculator-configurator > .calculator-intro {
    max-width: none;
    margin-bottom: 0;
}

.calculator-eyebrow {
    margin: 0 0 7px;
    color: #ff4b1f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.calculator-intro h1,
.calculator-results-heading h2 {
    margin: 0;
    color: #0755a5;
    letter-spacing: 0;
}

.calculator-intro h1 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
}

.calculator-intro > p:last-child {
    margin: 12px 0 0;
    max-width: 740px;
    color: #365c7f;
    font-size: 18px;
    line-height: 1.55;
}

.calculator-form {
    overflow: visible;
    background: #fff;
    border: 1px solid #cadce9;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(7, 85, 165, 0.1);
}

.calculator-segment-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 24px 8px;
}

.calculator-configurator .calculator-segment-group {
    padding: 20px 20px 0;
}

.calculator-segment-control {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: #edf5fa;
    border: 1px solid #c4d9e9;
    border-radius: 6px;
}

.calculator-configurator .calculator-segment-control {
    gap: 6px;
    padding: 5px;
    background: #f2f7fa;
    border-color: #cedee9;
    border-radius: 12px;
}

.calculator-segment {
    min-height: 36px;
    padding: 7px 15px;
    color: #0755a5;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.calculator-configurator .calculator-segment {
    min-height: 42px;
    padding-inline: 20px;
    border-radius: 9px;
}

.calculator-segment.active {
    color: #fff;
    background: #0755a5;
    border-color: #0755a5;
}

.calculator-configurator .calculator-segment.active {
    box-shadow: 0 6px 14px rgba(7, 84, 166, 0.2);
}

.calculator-energy-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 8px;
    border-top: 1px solid #d4e1ea;
    border-bottom: 1px solid #d4e1ea;
}

.calculator-configurator .calculator-energy-tabs {
    gap: 8px;
    margin: 16px 20px 0;
    border: 0;
}

.calculator-energy-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 64px;
    padding: 14px 24px;
    color: #41617c;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    background: #eef2f5;
    border: 0;
    border-right: 1px solid #d4e1ea;
    cursor: pointer;
}

.calculator-configurator .calculator-energy-tab {
    justify-content: center;
    min-height: 58px;
    padding: 12px 14px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cedee9;
    border-radius: 10px;
}

.calculator-energy-tab[hidden] {
    display: none;
}

.calculator-energy-tab:last-of-type {
    border-right: 0;
}

.calculator-configurator .calculator-energy-tab:last-of-type {
    border-right: 1px solid #cedee9;
}

.calculator-energy-tab.active {
    color: #063f7e;
    background: #fff;
    box-shadow: inset 0 4px 0 #ff4b1f;
}

.calculator-configurator .calculator-energy-tab.active {
    color: #123f70;
    background: #fff2ec;
    border-color: #ff4b1f;
    box-shadow: inset 0 3px 0 #ff4b1f, 0 5px 14px rgba(255, 75, 31, 0.1);
}

.calculator-energy-tab span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ff4b1f;
    font-size: 20px;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(200px, 1fr) minmax(160px, .75fr) auto;
    gap: 18px;
    align-items: start;
    padding: 28px;
}

.calculator-configurator .calculator-inputs {
    padding: 20px;
}

.calculator-single-consumption,
.calculator-dual-consumptions {
    min-width: 0;
}

.calculator-dual-consumptions {
    display: grid;
    grid-column: span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calculator-dual-consumptions[hidden],
.calculator-single-consumption[hidden] {
    display: none;
}

.calculator-field {
    position: relative;
    min-width: 0;
}

.calculator-field label {
    display: block;
    margin: 0 0 9px;
    color: #123f70;
    font-size: 14px;
    font-weight: 800;
}

.calculator-field input,
.calculator-field select {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: #173b5b;
    font: inherit;
    font-size: 16px;
    background: #fff;
    border: 1px solid #9fb7c8;
    border-radius: 6px;
}

.calculator-field input:focus,
.calculator-field select:focus {
    border-color: #0755a5;
    outline: 3px solid rgba(7, 85, 165, 0.14);
}

.calculator-field small {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #55728a;
    font-size: 13px;
}

.calculator-input-unit {
    position: relative;
}

.calculator-postcode-combo {
    position: relative;
}

.calculator-postcode-combo input {
    padding-right: min(46%, 280px);
}

.calculator-postcode-combo span {
    position: absolute;
    top: 50%;
    right: 14px;
    max-width: min(42%, 260px);
    overflow: hidden;
    color: #5b7183;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}

.calculator-input-unit input {
    padding-right: 88px;
}

.calculator-input-unit span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #5b7183;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.calculator-autocomplete {
    position: absolute;
    top: calc(100% - 18px);
    right: 0;
    left: 0;
    z-index: 20;
    overflow: hidden;
    background: #fff;
    border: 1px solid #9fb7c8;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 24px rgba(20, 60, 92, 0.16);
}

.calculator-autocomplete button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    color: #123f70;
    font: inherit;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1eaf0;
    cursor: pointer;
}

.calculator-autocomplete button:hover,
.calculator-autocomplete button:focus {
    background: #eaf4fb;
    outline: 0;
}

.calculator-submit,
.calculator-offer-price button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 11px 24px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    background: #ff4b1f;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.calculator-submit {
    align-self: start;
    margin-top: 26px;
}

.calculator-submit:hover,
.calculator-offer-price button:hover {
    background: #e93c13;
}

.calculator-submit:disabled,
.calculator-offer-price button:disabled {
    cursor: wait;
    opacity: .65;
}

.calculator-offer-price button.is-selected {
    background: #176b39;
}

.calculator-form-error {
    margin: 0 28px 24px;
    padding: 12px 14px;
    color: #8b1515;
    background: #ffeded;
    border: 1px solid #e7a2a2;
    border-radius: 5px;
}

.calculator-results {
    scroll-margin-top: 96px;
    padding-top: 48px;
}

.calculator-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.calculator-results-heading h2 {
    font-size: 30px;
}

.calculator-results-heading > p {
    margin: 0 0 3px;
    color: #426582;
    font-weight: 700;
}

.calculator-offers {
    display: grid;
    gap: 18px;
}

.calculator-dual-offer-group {
    display: grid;
    gap: 14px;
}

.calculator-dual-offer-group + .calculator-dual-offer-group {
    margin-top: 32px;
    padding-top: 30px;
    border-top: 2px solid #c7dbe9;
}

.calculator-dual-offer-group > h3 {
    margin: 0;
    color: #0755a5;
    font-size: 25px;
}

.calculator-empty {
    margin: 0;
    padding: 24px;
    color: #365c7f;
    background: #fff;
    border: 1px solid #cadce9;
    border-radius: 6px;
}

.calculator-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cadce9;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(7, 85, 165, 0.07);
}

.calculator-offer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.15fr);
    gap: 28px;
    padding: 26px;
}

.calculator-offer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 25px;
}

.calculator-test-badge,
.calculator-green-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
}

.calculator-test-badge {
    color: #8b4c00;
    background: #fff1cc;
}

.calculator-green-badge {
    color: #166534;
    background: #dcf5df;
}

.calculator-offer h3 {
    margin: 9px 0 7px;
    color: #0755a5;
    font-size: 25px;
    letter-spacing: 0;
}

.calculator-offer-main p {
    margin: 0;
    color: #526f87;
    line-height: 1.45;
}

.calculator-offer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
}

.calculator-offer-details div {
    padding: 10px 0;
    border-bottom: 1px solid #d8e3eb;
}

.calculator-offer-details dt {
    color: #577086;
    font-size: 13px;
}

.calculator-offer-details dd {
    margin: 3px 0 0;
    color: #163f64;
    font-size: 16px;
    font-weight: 800;
}

.calculator-energy-mix {
    grid-column: 1 / -1;
    margin-top: 2px;
    border-top: 1px solid #d8e3eb;
}

.calculator-energy-mix summary {
    padding: 12px 0 2px;
    color: #0755a5;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.calculator-energy-mix-content {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.calculator-energy-mix-content img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d8e3eb;
}

.calculator-energy-mix-content a {
    justify-self: start;
    color: #0755a5;
    font-size: 13px;
    font-weight: 800;
}

.calculator-offer-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #eaf4fb;
    border-left: 1px solid #cadce9;
}

.calculator-offer-price p {
    margin: 0;
    color: #0755a5;
}

.calculator-offer-price p strong {
    display: block;
    font-size: 30px;
}

.calculator-offer-price > span {
    margin-top: 4px;
    color: #496981;
    font-size: 13px;
}

.calculator-offer-price small {
    margin: 10px 0 16px;
    color: #496981;
}

.calculator-selection {
    margin-top: 24px;
    padding: 20px 22px;
    color: #155b31;
    background: #e5f6e9;
    border: 1px solid #9ed2a9;
    border-radius: 6px;
}

.calculator-selection strong {
    font-size: 19px;
}

.calculator-selection p {
    margin: 6px 0 0;
}

.calculator-dual-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 24px;
    padding: 22px;
    background: #eef7fc;
    border: 1px solid #a9cddd;
    border-radius: 8px;
}

.calculator-dual-selection[hidden] {
    display: none;
}

.calculator-dual-selection strong {
    color: #0755a5;
    font-size: 19px;
}

.calculator-dual-selection p {
    margin: 6px 0 0;
    color: #496981;
}

.calculator-dual-selection dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.calculator-dual-selection dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.calculator-dual-selection dt {
    color: #577086;
}

.calculator-dual-selection dd {
    margin: 0;
    color: #163f64;
    font-weight: 800;
    text-align: right;
}

.calculator-dual-selection .calculator-dual-total {
    padding-top: 8px;
    border-top: 1px solid #c7dbe9;
}

.calculator-dual-selection button {
    min-height: 50px;
    padding: 11px 22px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    background: #ff4b1f;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.calculator-dual-selection button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.calculator-disclaimer {
    max-width: 900px;
    margin: 22px auto 0;
    color: #61788c;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.calculator-subscribe {
    display: grid;
    gap: 28px;
}

.calculator-subscribe-heading {
    max-width: 820px;
}

.calculator-subscribe-heading h1,
.calculator-subscribe-unavailable h1 {
    margin: 6px 0 10px;
    color: #0755a5;
    font-size: 38px;
    letter-spacing: 0;
}

.calculator-subscribe-heading > p:last-child,
.calculator-subscribe-unavailable > p {
    margin: 0;
    color: #4e6d86;
    font-size: 17px;
    line-height: 1.55;
}

.calculator-quote-summary {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(420px, 1.6fr) minmax(190px, .65fr);
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c7dbe9;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(7, 85, 165, .07);
}

.calculator-quote-summary-dual {
    grid-template-columns: minmax(220px, .85fr) minmax(270px, 1.1fr) minmax(240px, .95fr) minmax(190px, .65fr);
}

.calculator-dual-quote-items {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: 20px 24px;
    border-right: 1px solid #d9e6ef;
}

.calculator-dual-quote-items article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: baseline;
    padding: 10px 12px;
    background: #f8fbfd;
    border: 1px solid #d9e6ef;
    border-radius: 7px;
}

.calculator-dual-quote-items span {
    grid-row: 1 / 3;
    align-self: center;
    color: #ff4b1f;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.calculator-dual-quote-items strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #123f70;
    font-size: 14px;
}

.calculator-dual-quote-items small {
    color: #5a758b;
    font-size: 13px;
}

.calculator-dual-quote-items b {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
    color: #0755a5;
    font-size: 13px;
    white-space: nowrap;
}

.calculator-technical-supply {
    margin-top: 22px;
    padding: 0 22px 22px;
    background: #f8fbfd;
    border: 1px solid #c7dbe9;
    border-radius: 8px;
}

.calculator-technical-supply > header {
    margin: 0 -22px 4px;
    padding: 18px 22px;
    background: #eaf4fb;
    border-bottom: 1px solid #c7dbe9;
    border-radius: 8px 8px 0 0;
}

.calculator-technical-supply > header h3 {
    margin: 3px 0 0;
    color: #0755a5;
    font-size: 22px;
}

.calculator-technical-supply > .calculator-form-section {
    background: #fff;
}

.calculator-quote-copy,
.calculator-quote-facts,
.calculator-quote-price {
    padding: 24px;
}

.calculator-quote-copy {
    background: #f1f7fb;
}

.calculator-quote-copy > span,
.calculator-quote-price > span {
    color: #5a758b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.calculator-quote-copy h2 {
    margin: 7px 0;
    overflow-wrap: anywhere;
    color: #0755a5;
    font-size: 23px;
    letter-spacing: 0;
}

.calculator-quote-copy p,
.calculator-quote-price p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #5a758b;
    font-size: 13px;
}

.calculator-quote-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 0;
}

.calculator-quote-facts div {
    min-width: 0;
}

.calculator-quote-facts dt {
    color: #6a8295;
    font-size: 13px;
}

.calculator-quote-facts dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: #163f64;
    font-weight: 800;
}

.calculator-quote-price {
    text-align: right;
    background: #eaf4fb;
    border-left: 1px solid #c7dbe9;
}

.calculator-quote-price strong {
    display: block;
    margin-top: 6px;
    color: #0755a5;
    font-size: 27px;
}

.calculator-quote-price small {
    color: #58758c;
}

.calculator-quote-price p {
    margin-top: 10px;
}

.calculator-contract-reason {
    padding: 28px;
    background: #fff;
    border: 1px solid #c7dbe9;
    border-radius: 8px;
}

.calculator-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.calculator-step-heading > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: #ff4b1f;
    border-radius: 50%;
}

.calculator-step-heading p {
    margin: 0;
    color: #617b90;
    font-size: 13px;
}

.calculator-step-heading h2 {
    margin: 2px 0 5px;
    color: #0755a5;
    font-size: 25px;
    letter-spacing: 0;
}

.calculator-reason-options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.calculator-reason-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 84px;
    padding: 16px 18px;
    color: #173f64;
    font: inherit;
    text-align: left;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 6px;
    cursor: pointer;
}

.calculator-reason-option:hover,
.calculator-reason-option:focus-visible {
    border-color: #75a9ce;
    background: #edf6fc;
    outline: 0;
}

.calculator-reason-option.active {
    border-color: #ff4b1f;
    box-shadow: 0 0 0 2px rgba(255, 75, 31, .13);
}

.visually-hidden:focus-visible + .calculator-reason-option {
    border-color: #0755a5;
    outline: 3px solid rgba(7, 85, 165, .16);
}

.calculator-reason-icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: #0755a5;
    border-radius: 50%;
}

.calculator-reason-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    content: '';
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

.calculator-reason-option strong,
.calculator-reason-option small {
    display: block;
}

.calculator-reason-option strong {
    color: #0755a5;
    font-size: 17px;
}

.calculator-reason-option small {
    margin-top: 4px;
    color: #526f87;
    font-size: 13px;
    line-height: 1.45;
}

.calculator-subscribe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.calculator-subscribe-footer > a {
    color: #0755a5;
    font-weight: 700;
}

.calculator-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    background: #ff4b1f;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.calculator-primary-link:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.calculator-primary-link:hover,
.calculator-primary-link:focus-visible {
    color: #ffffff;
}

.calculator-next-step-note {
    margin: 18px 0 0 54px;
    padding: 12px 14px;
    color: #265c3a;
    background: #ebf7ee;
    border: 1px solid #abd4b5;
    border-radius: 5px;
}

.calculator-subscribe-alert {
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 6px;
}

.calculator-subscribe-alert-error {
    color: #8b1515;
    background: #ffeded;
    border-color: #e7a2a2;
}

.calculator-subscribe-alert-success {
    color: #245c38;
    background: #eaf7ed;
    border-color: #a8d2b2;
}

.calculator-selected-reason {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0 0 54px;
    padding: 12px 14px;
    color: #496981;
    background: #eef6fb;
    border: 1px solid #c7dbe9;
    border-radius: 5px;
}

.calculator-selected-reason strong {
    color: #0755a5;
    text-align: right;
}

.calculator-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.calculator-company-details {
    display: contents;
}

.calculator-customer-field {
    min-width: 0;
}

.calculator-customer-field-wide {
    grid-column: 1 / -1;
}

.calculator-customer-field label {
    display: block;
    margin-bottom: 9px;
    color: #173f64;
    font-size: 13px;
    font-weight: 800;
}

.calculator-customer-field input,
.calculator-customer-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: #173b5b;
    font: inherit;
    background: #fff;
    border: 1px solid #a9bdcb;
    border-radius: 5px;
}

.calculator-customer-field input:focus,
.calculator-customer-field select:focus {
    border-color: #0755a5;
    outline: 3px solid rgba(7, 85, 165, .14);
}

.calculator-phone-grid {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(220px, 1.5fr);
    gap: 10px;
}

.calculator-form-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #d5e3ed;
}

.calculator-form-section > h3 {
    margin: 0;
    color: #0755a5;
    font-size: 18px;
    letter-spacing: 0;
}

.calculator-form-section > p {
    margin: 6px 0 0;
    color: #617b90;
    font-size: 13px;
    line-height: 1.5;
}

.calculator-field-hint {
    display: block;
    margin-top: 6px;
    color: #617b90;
    font-size: 13px;
    line-height: 1.4;
}

.calculator-choice-group {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.calculator-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.calculator-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 112px;
    padding: 18px;
    color: #173f64;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 6px;
    cursor: pointer;
}

.calculator-payment-option:has(input:checked) {
    background: #eef6fb;
    border-color: #ff4b1f;
    box-shadow: 0 0 0 2px rgba(255, 75, 31, .12);
}

.calculator-payment-option-unavailable {
    cursor: not-allowed;
    opacity: .62;
}

.calculator-payment-option input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0755a5;
}

.calculator-payment-option strong,
.calculator-payment-option small {
    display: block;
}

.calculator-payment-option strong {
    color: #0755a5;
    font-size: 16px;
}

.calculator-payment-option small {
    margin-top: 5px;
    color: #526f87;
    font-size: 13px;
    line-height: 1.45;
}

.calculator-choice-group > legend {
    margin-bottom: 4px;
    color: #173f64;
    font-size: 13px;
    font-weight: 800;
}

.calculator-choice-option,
.calculator-check-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #173f64;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.calculator-choice-option {
    padding: 12px 14px;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 5px;
}

.calculator-choice-option:has(input:checked) {
    background: #eef6fb;
    border-color: #0755a5;
}

.calculator-choice-option input,
.calculator-check-option input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #0755a5;
}

.calculator-check-option {
    margin-top: 18px;
    padding: 13px 14px;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 5px;
}

.calculator-conditional-field,
.calculator-billing-fields {
    margin-top: 18px;
}

.calculator-conditional-field {
    max-width: calc(50% - 9px);
}

.calculator-conditional-field[hidden],
.calculator-billing-fields[hidden],
.calculator-sepa-fields[hidden],
.calculator-bank-transfer-note[hidden] {
    display: none;
}

.calculator-sepa-consent {
    line-height: 1.55;
}

.calculator-bank-transfer-note {
    padding: 18px;
    background: #f4f8fb;
    border: 1px solid #c7dbe9;
    border-radius: 6px;
}

.calculator-review-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin-top: 26px;
    border-top: 1px solid #d5e3ed;
}

.calculator-review-section {
    min-width: 0;
    padding: 22px 0 10px;
    border-bottom: 1px solid #d5e3ed;
}

.calculator-review-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.calculator-review-section-heading h3 {
    margin: 0;
    color: #0755a5;
    font-size: 18px;
    letter-spacing: 0;
}

.calculator-review-section-heading a {
    color: #d93610;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.calculator-review-list {
    margin: 0;
}

.calculator-review-list > div {
    display: grid;
    grid-template-columns: minmax(120px, .85fr) minmax(0, 1.15fr);
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #e3ebf1;
}

.calculator-review-list > div:last-child {
    border-bottom: 0;
}

.calculator-review-list dt,
.calculator-review-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.calculator-review-list dt {
    color: #617b90;
    font-size: 13px;
    font-weight: 800;
}

.calculator-review-list dd {
    color: #173f64;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.calculator-documents {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #d5e3ed;
}

.calculator-documents h3 {
    margin: 0;
    color: #0755a5;
    font-size: 19px;
    letter-spacing: 0;
}

.calculator-documents > div > p {
    margin: 6px 0 0;
    color: #617b90;
    font-size: 13px;
}

.calculator-documents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.calculator-documents li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 12px 14px;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 5px;
}

.calculator-documents li span,
.calculator-documents li strong,
.calculator-documents li small {
    display: block;
}

.calculator-documents li strong {
    color: #173f64;
    font-size: 13px;
    line-height: 1.35;
}

.calculator-documents li small {
    margin-top: 3px;
    color: #71899c;
    font-size: 13px;
}

.calculator-documents li a {
    flex: 0 0 auto;
    color: #0755a5;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.calculator-documents-notice {
    margin: 16px 0 0;
    padding: 12px 14px;
    color: #765014;
    font-size: 13px;
    line-height: 1.45;
    background: #fff7df;
    border: 1px solid #ead291;
    border-radius: 5px;
}

.calculator-acceptance-complete {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-top: 24px;
    padding: 13px 15px;
    color: #245c38;
    background: #eaf7ed;
    border: 1px solid #a8d2b2;
    border-radius: 5px;
}

.calculator-acceptance-complete strong {
    font-size: 14px;
}

.calculator-acceptance-complete span {
    font-size: 13px;
    line-height: 1.45;
}

.calculator-acceptance-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.calculator-acceptance-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    color: #173f64;
    background: #f5f9fc;
    border: 1px solid #c7dbe9;
    border-radius: 5px;
    cursor: pointer;
}

.calculator-acceptance-option:has(input:checked) {
    background: #eef6fb;
    border-color: #0755a5;
}

.calculator-acceptance-option-bdd {
    border-left: 4px solid #ff4b1f;
}

.calculator-acceptance-option input {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    appearance: none;
    background: #fff;
    border: 2px solid #7892a6;
    border-radius: 3px;
    cursor: pointer;
    place-content: center;
}

.calculator-acceptance-option input::before {
    width: 5px;
    height: 10px;
    content: "";
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transform-origin: center;
}

.calculator-acceptance-option input:checked {
    background: #0755a5;
    border-color: #0755a5;
}

.calculator-acceptance-option input:checked::before {
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.calculator-acceptance-option input:focus-visible {
    outline: 3px solid rgba(7, 85, 165, .18);
    outline-offset: 2px;
}

.calculator-acceptance-option span,
.calculator-acceptance-option strong,
.calculator-acceptance-option small {
    display: block;
}

.calculator-acceptance-option strong {
    color: #0755a5;
    font-size: 14px;
}

.calculator-acceptance-option small {
    margin-top: 5px;
    color: #526f87;
    font-size: 13px;
    line-height: 1.5;
}

.calculator-acceptance-option a {
    color: #0755a5;
    font-weight: 800;
}

.calculator-acceptance-audit-note {
    margin: 18px 0 0;
    color: #617b90;
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}

.calculator-subscribe-unavailable {
    max-width: 720px;
    margin: 36px auto;
    padding: 34px;
    text-align: center;
    background: #fff;
    border: 1px solid #c7dbe9;
    border-radius: 8px;
}

.calculator-subscribe-unavailable .calculator-primary-link {
    margin-top: 22px;
}

@media (max-width: 1300px) {
    .calculator-embed form {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .calculator-embed-tabs {
        border-right: 0;
    }

    .calculator-embed-fields {
        grid-column: 1 / -1;
        grid-template-columns: minmax(180px, .8fr) minmax(340px, 1.45fr) auto;
        border-top: 1px solid #d5e1ea;
    }
}

@media (max-width: 1200px) {
    .calculator-offer {
        grid-template-columns: 1fr;
    }

    .calculator-offer-price {
        border-top: 1px solid #cadce9;
        border-left: 0;
    }
}

@media (max-width: 1050px) {
    .calculator-embed-fields {
        grid-template-columns: minmax(180px, .8fr) minmax(320px, 1.45fr) auto;
    }

    .calculator-embed-submit {
        width: auto;
    }

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

    .calculator-submit {
        width: 100%;
    }

    .calculator-dual-selection {
        grid-template-columns: 1fr;
    }

    .calculator-offer-main {
        grid-template-columns: 1fr;
    }

    .calculator-quote-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-quote-copy {
        grid-column: 1 / -1;
    }

    .calculator-quote-summary-dual .calculator-quote-price {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .calculator-embed form {
        grid-template-columns: 1fr;
    }

    .calculator-embed-segments {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 9px;
        border-right: 0;
        border-bottom: 1px solid #d5e1ea;
    }

    .calculator-embed-segments button {
        padding-inline: 8px;
    }

    .calculator-embed-tabs button {
        justify-content: center;
        min-height: 50px;
        padding: 9px 5px;
        font-size: 13px;
        text-align: center;
    }

    .calculator-embed-tabs button span {
        display: none;
    }

    .calculator-embed-tabs {
        border-bottom: 1px solid #d5e1ea;
    }

    .calculator-embed-fields {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 12px;
    }

    .calculator-embed-submit {
        width: 100%;
        margin-top: 0;
    }

    .calculator-embed .calculator-dual-consumptions {
        grid-template-columns: 1fr;
    }

    .calculator-embed-postcode input {
        padding-right: 12px;
    }

    .calculator-embed-postcode strong {
        position: static;
        display: block;
        max-width: none;
        margin-top: 4px;
        transform: none;
        white-space: normal;
    }

    .calculator-header {
        min-height: 66px;
        padding: 8px 14px;
    }

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

    .calculator-main {
        width: min(100% - 24px, 1440px);
        padding: 26px 0 44px;
    }

    .calculator-configurator {
        padding: 4px;
        border-radius: 15px;
    }

    .calculator-configurator-heading {
        padding: 19px 17px;
    }

    .calculator-configurator .calculator-configurator-heading h2 {
        font-size: 24px;
    }

    .calculator-configurator > .calculator-configurator-heading > p:last-child {
        font-size: 15px;
    }

    .calculator-intro h1 {
        font-size: 34px;
    }

    .calculator-intro > p:last-child {
        font-size: 16px;
    }

    .calculator-segment-group {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 12px 0;
    }

    .calculator-configurator .calculator-segment-group {
        padding: 14px 12px 0;
    }

    .calculator-segment-control {
        display: flex;
    }

    .calculator-segment {
        flex: 1;
    }

    .calculator-energy-tab {
        min-height: 56px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .calculator-configurator .calculator-energy-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 14px 12px 0;
    }

    .calculator-configurator .calculator-energy-tab {
        min-height: 54px;
        padding: 10px 8px;
        font-size: 14px;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 16px;
    }

    .calculator-configurator .calculator-inputs {
        padding: 18px 12px;
    }

    .calculator-dual-consumptions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .calculator-postcode-combo input {
        padding-right: 14px;
    }

    .calculator-postcode-combo span {
        position: static;
        display: block;
        max-width: none;
        margin-top: 6px;
        transform: none;
        white-space: normal;
    }

    .calculator-results {
        padding-top: 34px;
    }

    .calculator-results-heading {
        display: block;
    }

    .calculator-results-heading > p {
        margin-top: 8px;
    }

    .calculator-offer-main {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 16px;
    }

    .calculator-offer-details {
        grid-template-columns: 1fr;
    }

    .calculator-subscribe-heading h1,
    .calculator-subscribe-unavailable h1 {
        font-size: 30px;
    }

    .calculator-quote-summary,
    .calculator-quote-facts {
        grid-template-columns: 1fr;
    }

    .calculator-quote-price {
        grid-column: auto;
        text-align: left;
        border-top: 1px solid #c7dbe9;
        border-left: 0;
    }

    .calculator-dual-quote-items {
        border-right: 0;
        border-bottom: 1px solid #c7dbe9;
    }

    .calculator-dual-quote-items article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .calculator-dual-quote-items b {
        grid-row: auto;
        grid-column: 2;
        white-space: normal;
    }

    .calculator-technical-supply {
        padding-inline: 14px;
    }

    .calculator-technical-supply > header {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .calculator-contract-reason {
        padding: 20px 16px;
    }

    .calculator-reason-option {
        align-items: flex-start;
        padding: 14px;
    }

    .calculator-subscribe-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .calculator-subscribe-footer > * {
        width: 100%;
        text-align: center;
    }

    .calculator-next-step-note {
        margin-left: 0;
    }

    .calculator-selected-reason {
        align-items: flex-start;
        flex-direction: column;
        margin-left: 0;
    }

    .calculator-selected-reason strong {
        text-align: left;
    }

    .calculator-customer-grid,
    .calculator-phone-grid,
    .calculator-payment-options,
    .calculator-review-sections,
    .calculator-documents ul {
        grid-template-columns: 1fr;
    }

    .calculator-review-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .calculator-review-list dd {
        text-align: left;
    }

    .calculator-documents li {
        align-items: flex-start;
        flex-direction: column;
    }

    .calculator-conditional-field {
        max-width: none;
    }
}
.contract-dual-technical-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.contract-technical-supply {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid rgba(19, 88, 166, 0.2);
    border-radius: 18px;
    background: rgba(235, 244, 252, 0.55);
}

.contract-technical-supply .profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contract-technical-supply .field,
.contract-technical-supply input {
    min-width: 0;
}

.contract-technical-supply-heading {
    margin-bottom: 1rem;
}

.contract-technical-supply-heading h3,
.contract-technical-supply-heading p {
    margin: 0;
}

.workflow-bundle-panel {
    margin: 1.25rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(19, 88, 166, 0.22);
    border-radius: 18px;
    background: rgba(235, 244, 252, 0.6);
}

.workflow-bundle-heading,
.workflow-bundle-contract,
.workflow-bundle-contract > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workflow-bundle-heading h3,
.workflow-bundle-heading p {
    margin: 0;
}

.workflow-bundle-heading code {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color, #1358a6);
    font-weight: 700;
}

.workflow-bundle-contracts {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.workflow-bundle-summary {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #b8d6c3;
    border-radius: 12px;
    background: #edf8f1;
    color: #245c3b;
}

.workflow-bundle-summary.is-mixed {
    border-color: #e7c671;
    background: #fff8df;
    color: #775706;
}

.workflow-bundle-summary span {
    font-size: 0.88rem;
    line-height: 1.45;
}

.workflow-provider-rejection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 1.25rem;
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid #e3aab2;
    border-left: 5px solid #b33143;
    border-radius: 12px;
    background: #fff3f4;
    color: #6f2632;
}

.workflow-provider-rejection h3,
.workflow-provider-rejection p,
.workflow-provider-rejection dl,
.workflow-provider-rejection dt,
.workflow-provider-rejection dd {
    margin: 0;
}

.workflow-provider-rejection dl {
    display: grid;
    gap: 0.65rem;
}

.workflow-provider-rejection dl > div {
    display: grid;
    gap: 0.15rem;
}

.workflow-provider-rejection dt {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.workflow-provider-rejection dd {
    overflow-wrap: anywhere;
    color: #3c2730;
    font-weight: 700;
}

.workflow-bundle-contract {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(19, 88, 166, 0.16);
    border-radius: 14px;
    background: #fff;
}

.workflow-bundle-contract.is-current {
    border-color: #1358a6;
    box-shadow: inset 4px 0 #1358a6;
}

.workflow-bundle-contract > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
}

.workflow-bundle-contract > div:last-child {
    align-items: flex-end;
}

.workflow-bundle-contract em {
    color: #557189;
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .contract-dual-technical-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .workflow-bundle-heading,
    .workflow-bundle-contract {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-bundle-contract > div:last-child {
        align-items: flex-start;
    }

    .workflow-provider-rejection {
        grid-template-columns: 1fr;
    }
}

.reconciliation-hero {
    margin-bottom: 1.5rem;
}

.reconciliation-setting-panel,
.reconciliation-request-panel {
    margin-bottom: 1.5rem;
}

.reconciliation-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.reconciliation-panel-heading h2,
.reconciliation-panel-heading p {
    margin-top: 0;
}

.reconciliation-setting-form,
.reconciliation-request-form,
.reconciliation-decision-form {
    display: grid;
    gap: 1rem;
}

.reconciliation-setting-form > button,
.reconciliation-request-form > button {
    justify-self: start;
}

.reconciliation-consent-option {
    margin: 0;
}

.reconciliation-consent-option span,
.reconciliation-consent-option strong,
.reconciliation-consent-option small {
    display: block;
}

.reconciliation-consent-option small {
    margin-top: 0.35rem;
    color: #557189;
    line-height: 1.45;
}

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

.reconciliation-list {
    display: grid;
    gap: 1rem;
}

.reconciliation-card {
    padding: 1.15rem;
    border: 1px solid rgba(19, 88, 166, 0.18);
    border-radius: 14px;
    background: #f8fbfe;
}

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

.reconciliation-card > header div,
.reconciliation-card > header span {
    display: grid;
    gap: 0.2rem;
}

.reconciliation-card > header div > span,
.reconciliation-card > p {
    color: #557189;
    font-size: 0.9rem;
}

.reconciliation-card > p {
    margin: 0.8rem 0 0;
}

.reconciliation-card form {
    margin-top: 1rem;
}

.reconciliation-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    color: #36566f;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    background: #e9f0f5;
    border-radius: 999px;
}

.reconciliation-state.is-approved {
    color: #176b39;
    background: #e7f5eb;
}

.reconciliation-state.is-pending {
    color: #8b6100;
    background: #fff5d8;
}

.reconciliation-state.is-rejected,
.reconciliation-state.is-revoked {
    color: #7b4550;
    background: #f4e9ec;
}

.reconciliation-empty-state {
    padding: 1.25rem;
    color: #365c7f;
    background: #f4f8fb;
    border: 1px dashed #a9c4d7;
    border-radius: 12px;
}

.reconciliation-empty-state p {
    margin: 0.4rem 0 0;
}

@media (max-width: 1050px) {
    .reconciliation-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .reconciliation-panel-heading,
    .reconciliation-card > header {
        align-items: stretch;
        flex-direction: column;
    }

    .reconciliation-state {
        align-self: flex-start;
    }
}

/* New contract: modern spacing and visual hierarchy */
.contract-form {
    width: min(1360px, 100%);
    margin-inline: auto;
    gap: 32px;
}

.contract-form .contract-section {
    position: relative;
    min-height: 0;
    overflow: visible;
    padding: 28px 30px 30px;
    border: 1px solid #cddfea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(9, 70, 125, 0.08);
}

.contract-form .contract-section > h2:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    padding: 0 0 17px;
    border-bottom: 1px solid #dce8f0;
    background: transparent;
    color: #123d69;
    font-size: clamp(19px, 1.5vw, 23px);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contract-form .contract-section > h2:first-child::before {
    width: 5px;
    height: 28px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: #ff4b1c;
    content: "";
}

.contract-form .contract-section > p {
    max-width: 980px;
    margin: 0 0 24px;
    color: #4d687f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.contract-form .contract-section > .profile-form-grid,
.contract-form .contract-section > .optional-billing {
    margin-top: 24px;
}

.contract-form .contract-customer-search + .profile-form-grid {
    margin-top: 0;
}

.contract-form .profile-form-grid {
    gap: 22px 24px;
}

.contract-form .profile-form-grid .field {
    min-width: 0;
    margin-bottom: 0;
}

.contract-form .field > label,
.contract-field-label {
    display: block;
    margin: 0 0 8px;
    color: #315675;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.025em;
}

.contract-form .field > input:where(:not([type="checkbox"]):not([type="radio"])),
.contract-form .field > select,
.contract-form .field > textarea,
.contract-form .phone-grid input,
.contract-form .phone-grid select {
    min-height: 48px;
    border-color: #b9cedc;
    border-radius: 9px;
    background: #ffffff;
    color: #173f64;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contract-form .field > input:where(:not([type="checkbox"]):not([type="radio"])):focus,
.contract-form .field > select:focus,
.contract-form .field > textarea:focus,
.contract-form .phone-grid input:focus,
.contract-form .phone-grid select:focus {
    border-color: #1675bd;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(22, 117, 189, 0.13);
}

.contract-form .field > input[readonly] {
    border-color: #d4e1e9;
    background: #f4f8fb;
}

.contract-form .field .hint {
    margin: 8px 0 0;
    color: #668097;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.contract-form .contract-subsection-title {
    margin: 12px 0 2px;
    padding-top: 24px;
    border-top-color: #dce8f0;
    color: #123d69;
    font-size: 17px;
}

.contract-form .contract-summary-panel {
    min-height: 0;
    padding: 22px 24px;
    border: 1px solid #cddfea;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef7fc 100%);
    box-shadow: 0 6px 20px rgba(9, 70, 125, 0.07);
}

.contract-form .contract-summary-panel .profile-form-grid {
    gap: 18px;
}

.contract-form .contract-summary-panel .field {
    margin: 0;
}

.contract-form .contract-summary-panel input[readonly] {
    min-height: 46px;
    border-color: #ccdee9;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.contract-form .contract-customer-search {
    margin: 24px 0;
    padding: 20px;
    border-color: #bdd8e8;
    border-radius: 12px;
    background: #f0f8fc;
}

.contract-form .contract-customer-search > label {
    margin-bottom: 9px;
    font-size: 15px;
}

.contract-form .contract-customer-search > p {
    margin-bottom: 14px;
    line-height: 1.5;
}

.contract-form .contract-customer-search input[type="search"] {
    min-height: 48px;
    border-radius: 9px;
}

.contract-form .contract-technical-supply {
    padding: 22px;
    border-color: #c7ddea;
    border-radius: 14px;
    background: #f7fbfd;
}

.contract-form .contract-technical-supply-heading {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dce8f0;
}

.contract-form .contract-technical-supply-heading .eyebrow {
    margin-bottom: 4px;
    color: #ff4b1c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contract-form .contract-technical-supply-heading h3 {
    color: #123d69;
    font-size: 18px;
}

.contract-form .contract-conditional-block {
    margin-top: 22px;
    padding: 20px;
    border-color: #cddfea;
    border-radius: 12px;
    background: #ffffff;
}

.contract-form .contract-billing-section > .inline-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 24px 0 0;
    padding: 15px 17px;
    border: 1px solid #c6dce9;
    border-radius: 11px;
    background: #f3f9fc;
    color: #173f64;
    line-height: 1.45;
}

.contract-form .contract-payment-options {
    gap: 16px;
    margin: 20px 0 26px;
}

.contract-form .contract-payment-options .calculator-payment-option {
    min-height: 104px;
    padding: 20px;
    border-radius: 12px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.contract-form .contract-payment-options .calculator-payment-option:hover {
    border-color: #8eb9d3;
    transform: translateY(-1px);
}

.contract-form .contract-payment-options .calculator-payment-option:has(input:checked) {
    border-color: #ff7048;
    background: #fff8f5;
    box-shadow: 0 6px 18px rgba(255, 75, 28, 0.1);
}

.contract-sepa-panel {
    margin-top: 4px;
    padding: 22px;
    border: 1px solid #cbdfea;
    border-radius: 14px;
    background: #f8fbfd;
}

.contract-sepa-panel[hidden] {
    display: none;
}

.contract-sepa-holder-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0 0 24px;
    padding: 15px 17px;
    border: 1px solid #bed8e7;
    border-radius: 11px;
    background: #eef7fc;
    color: #173f64;
    font-size: 15px;
    line-height: 1.45;
}

.contract-sepa-holder-check input,
.contract-form .contract-billing-section > .inline-check input {
    width: 19px;
    height: 19px;
}

.contract-form .calculator-bank-transfer-note {
    margin-top: 4px;
    padding: 20px;
    border: 1px solid #cbdfea;
    border-radius: 12px;
    background: #f4f9fc;
}

.contract-form .calculator-bank-transfer-note h3,
.contract-form .calculator-bank-transfer-note p {
    margin: 0;
}

.contract-form .calculator-bank-transfer-note p {
    margin-top: 7px;
}

.contract-form .contract-calculator .calculator-disclaimer {
    max-width: none;
    margin: 26px 0 0;
    padding: 15px 18px;
    border: 1px solid #c9dfea;
    border-left: 4px solid #1675bd;
    border-radius: 10px;
    background: #f4f9fc;
    color: #45647f;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.contract-form .contract-document-note {
    margin: 0 0 26px;
    padding: 18px 20px;
    border: 1px solid #c7ddea;
    border-left: 5px solid #1675bd;
    border-radius: 11px;
    background: #f2f8fc;
    color: #173f64;
}

.contract-form .contract-document-note strong {
    display: block;
    font-size: 15px;
}

.contract-form .contract-document-note p {
    margin: 7px 0 0;
    color: #4d687f;
    font-weight: 400;
    line-height: 1.55;
}

.contract-documents-grid {
    margin-top: 0 !important;
}

.contract-file-field {
    grid-column: 1 / -1;
}

.contract-file-picker {
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px dashed #9fc1d5;
    border-radius: 12px;
    background: #f8fbfd;
}

.button.contract-file-button {
    min-height: 46px;
    margin: 0;
    padding-inline: 22px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ue-action-orange), var(--ue-action-orange-hover));
    color: #ffffff;
    cursor: pointer;
}

.button.contract-file-button:hover,
.button.contract-file-button:focus-visible {
    background: linear-gradient(135deg, var(--ue-action-orange-hover), #982c0c);
    color: #ffffff;
}

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

.contract-file-button:has(+ .contract-file-input:focus-visible) {
    outline: 3px solid rgba(241, 90, 36, 0.22);
    outline-offset: 3px;
}

.contract-file-name {
    min-width: 0;
    overflow: hidden;
    padding: 12px 14px;
    border: 1px solid #d4e2ea;
    border-radius: 9px;
    background: #ffffff;
    color: #587188;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-form .contract-customer-acceptance-notice {
    border-color: #bed8e7;
    background: linear-gradient(135deg, #f8fcfe 0%, #eef7fc 100%);
}

.contract-form .contract-signature-section {
    border-color: #ffd0c2;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
}

.contract-form .contract-signature-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style-position: inside;
    color: #315675;
}

.contract-form .contract-signature-steps li {
    min-width: 0;
    margin: 0;
    padding: 15px 16px;
    border: 1px solid #d3e2eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.contract-form .contract-signature-steps li::marker {
    color: #ff4b1c;
    font-weight: 900;
}

.contract-form-actions {
    justify-content: flex-end;
    gap: 14px;
    margin: -2px 0 8px;
    padding: 22px 0 0;
    border-top: 1px solid #dce8f0;
}

.contract-form-actions button,
.contract-form-actions .button {
    min-width: 190px;
    min-height: 50px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .contract-form {
        gap: 26px;
    }

    .contract-form .contract-section {
        padding: 24px;
        border-radius: 14px;
    }

    .contract-form .contract-payment-options,
    .contract-form .contract-signature-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contract-form {
        gap: 22px;
    }

    .contract-form .contract-section {
        padding: 20px 18px 22px;
        border-radius: 12px;
    }

    .contract-form .contract-section > h2:first-child {
        gap: 11px;
        margin-bottom: 10px;
        padding-bottom: 14px;
        font-size: 18px;
    }

    .contract-form .contract-section > h2:first-child::before {
        height: 24px;
    }

    .contract-form .contract-section > p {
        margin-bottom: 20px;
    }

    .contract-form .contract-summary-panel,
    .contract-form .contract-customer-search,
    .contract-form .contract-technical-supply,
    .contract-sepa-panel {
        padding: 17px;
    }

    .contract-file-picker {
        grid-template-columns: 1fr;
    }

    .contract-file-name {
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .contract-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-form-actions button,
    .contract-form-actions .button {
        width: 100%;
    }
}
.workflow-order-confirmation-form {
    border-color: rgba(0, 100, 190, 0.28);
    background: linear-gradient(145deg, rgba(232, 246, 255, 0.94), #fff);
}

.workflow-rate-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 100, 190, 0.16);
    border-radius: 12px;
    background: #fff;
}

.workflow-rate-input {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.workflow-rate-input span,
.workflow-order-confirmation-form small {
    color: var(--text-muted, #60758a);
    font-size: 0.875rem;
}

.workflow-order-confirmation-history {
    margin-top: 24px;
}

@media (max-width: 680px) {
    .workflow-rate-input {
        grid-template-columns: 1fr;
    }
}

/* Calculator configurator */
.contract-form > .feature-panel.contract-calculator {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.calculator-configurator {
    scroll-margin-top: 96px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d7e4ee;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(16, 67, 108, 0.08);
}

.calculator-configurator .calculator-configurator-heading {
    position: relative;
    display: grid;
    gap: 3px;
    overflow: visible;
    padding: 20px 22px 20px 44px;
    border-bottom: 1px solid #e1ebf2;
    background: #ffffff;
}

.calculator-configurator .calculator-configurator-heading::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 22px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ue-orange-500), var(--ue-orange-600));
    box-shadow: 0 4px 10px rgba(234, 72, 27, 0.18);
    content: "";
    pointer-events: none;
}

.calculator-configurator .calculator-configurator-heading::after {
    display: none;
}

.calculator-configurator-contract .calculator-configurator-heading {
    padding: 18px 22px 18px 44px;
}

.calculator-configurator-contract .calculator-configurator-heading .calculator-eyebrow {
    margin-bottom: 4px;
    color: var(--ue-orange-600);
    font-size: 12px;
    letter-spacing: 0.11em;
}

.calculator-configurator .calculator-configurator-heading .calculator-eyebrow {
    color: var(--ue-orange-600);
}

.calculator-configurator .calculator-configurator-heading h1,
.calculator-configurator .calculator-configurator-heading h2 {
    color: var(--ue-ink-900);
}

.calculator-configurator > .calculator-configurator-heading > p:last-child {
    color: var(--ue-ink-700);
}

.calculator-configurator-contract .calculator-configurator-heading h2 {
    font-size: clamp(21px, 1.7vw, 26px);
    line-height: 1.15;
}

.calculator-configurator-contract > .calculator-configurator-heading > p:last-child {
    max-width: none;
    margin-top: 6px;
    color: var(--ue-ink-700);
    font-size: 14px;
    line-height: 1.4;
}

.calculator-configurator .calculator-form {
    overflow: hidden;
    border-radius: 0 0 14px 14px;
}

.calculator-configurator .calculator-control-section {
    padding: 21px 22px;
    background: #ffffff;
}

.calculator-configurator .calculator-control-section + .calculator-control-section {
    border-top: 1px solid #e1ebf2;
}

.calculator-configurator .calculator-customer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.calculator-configurator .calculator-control-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.calculator-configurator .calculator-control-heading > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.calculator-configurator .calculator-control-heading strong {
    color: #123f70;
    font-size: 16px;
    line-height: 1.25;
}

.calculator-configurator .calculator-control-heading small {
    color: #607b92;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.calculator-configurator .calculator-control-step {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    background: #0754a6;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(7, 84, 166, 0.18);
}

.calculator-configurator .calculator-segment-group {
    flex: 0 0 auto;
    padding: 0;
}

.calculator-configurator .calculator-segment-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 5px;
    padding: 5px;
    background: #edf4f8;
    border: 1px solid #cbdce8;
    border-radius: 12px;
}

.calculator-configurator .calculator-segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    color: #315b7e;
    line-height: 1.2;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    transform: none;
}

.calculator-configurator .calculator-segment:hover,
.calculator-configurator .calculator-segment:focus-visible {
    color: #0754a6;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(7, 84, 166, 0.1);
    outline: 3px solid rgba(7, 84, 166, 0.12);
    transform: none;
}

.calculator-configurator .calculator-segment.active,
.calculator-configurator .calculator-segment.active:hover,
.calculator-configurator .calculator-segment.active:focus-visible {
    color: #ffffff;
    background: #0754a6;
    box-shadow: 0 6px 14px rgba(7, 84, 166, 0.22);
}

.calculator-configurator .calculator-energy-section {
    background: #fbfdff;
}

.calculator-configurator .calculator-energy-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    border: 0;
}

.calculator-configurator .calculator-energy-tab,
.calculator-configurator .calculator-energy-tab:last-of-type {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    gap: 11px;
    align-items: center;
    min-height: 86px;
    padding: 14px;
    color: #294f70;
    text-align: left;
    background: #ffffff;
    border: 1px solid #cbdce8;
    border-radius: 13px;
    box-shadow: 0 5px 15px rgba(14, 70, 119, 0.05);
    transform: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.calculator-configurator .calculator-energy-tab[hidden] {
    display: none;
}

@media (min-width: 1121px) {
    .calculator-configurator .calculator-energy-tabs:has([data-calculator-private-energy][hidden]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.calculator-configurator .calculator-energy-tab:hover,
.calculator-configurator .calculator-energy-tab:focus-visible {
    color: #123f70;
    background: #f3f9fd;
    border-color: #6fa8cf;
    box-shadow: 0 9px 20px rgba(7, 84, 166, 0.11);
    outline: 3px solid rgba(7, 84, 166, 0.12);
    transform: translateY(-2px);
}

.calculator-configurator .calculator-energy-tab.active,
.calculator-configurator .calculator-energy-tab.active:hover,
.calculator-configurator .calculator-energy-tab.active:focus-visible {
    color: #123f70;
    background: #fff4ef;
    border-color: #ff4b1f;
    box-shadow: inset 0 3px 0 #ff4b1f, 0 9px 20px rgba(255, 75, 31, 0.12);
}

.calculator-configurator .calculator-energy-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #0754a6;
    background: #eaf5fc;
    border-radius: 12px;
}

.calculator-configurator .calculator-energy-tab.active .calculator-energy-icon {
    color: #ff4b1f;
    background: #ffffff;
}

.calculator-configurator .calculator-energy-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.calculator-configurator .calculator-energy-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    width: auto;
    height: auto;
    place-items: initial;
    color: #244d70;
    font-size: inherit;
}

.calculator-configurator .calculator-energy-copy strong {
    color: inherit;
    font-size: 15px;
    line-height: 1.2;
}

.calculator-configurator .calculator-energy-copy small {
    color: #6a8296;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.calculator-configurator .calculator-energy-selected {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: transparent;
    background: #ffffff;
    border: 1px solid #cbdce8;
    border-radius: 50%;
}

.calculator-configurator .calculator-energy-tab.active .calculator-energy-selected {
    color: #ffffff;
    background: #ff4b1f;
    border-color: #ff4b1f;
}

.calculator-configurator .calculator-energy-selected svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

.calculator-configurator .calculator-data-section {
    background: #f5f9fc;
}

.calculator-configurator .calculator-inputs {
    grid-template-columns: minmax(180px, 0.8fr) minmax(360px, 1.7fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px 0 0;
}

.calculator-configurator .calculator-dual-consumptions {
    grid-column: auto;
    gap: 16px;
}

.calculator-configurator .calculator-field label {
    margin-bottom: 8px;
    color: #244d70;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.calculator-configurator .calculator-field input,
.calculator-configurator .calculator-field select {
    min-height: 52px;
    padding: 12px 14px;
    color: #123f70;
    background: #ffffff;
    border: 1px solid #adc5d6;
    border-radius: 11px;
    box-shadow: 0 3px 9px rgba(16, 63, 102, 0.04);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.calculator-configurator .calculator-field input:hover,
.calculator-configurator .calculator-field select:hover {
    border-color: #6d9dbc;
}

.calculator-configurator .calculator-field input:focus,
.calculator-configurator .calculator-field select:focus {
    background: #ffffff;
    border-color: #0754a6;
    box-shadow: 0 0 0 4px rgba(7, 84, 166, 0.12);
    outline: 0;
}

.calculator-configurator .calculator-field small {
    min-height: 17px;
    margin-top: 6px;
    color: #678197;
    font-size: 13px;
}

.calculator-configurator .calculator-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 25px;
    padding: 12px 20px;
    color: #ffffff;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff5a2c, #ee4318);
    border-radius: 11px;
    box-shadow: 0 9px 19px rgba(238, 67, 24, 0.22);
}

.calculator-configurator .calculator-submit:hover,
.calculator-configurator .calculator-submit:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #ec431a, #d93610);
    box-shadow: 0 12px 23px rgba(216, 54, 16, 0.28);
    outline: 3px solid rgba(255, 75, 31, 0.16);
}

.calculator-configurator .calculator-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.calculator-configurator .calculator-form-error {
    margin: 0 22px 20px;
    border-radius: 10px;
}

.contract-form .contract-supply-section > .profile-form-grid > .contract-subsection-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 1120px) {
    .calculator-configurator .calculator-energy-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-configurator .calculator-inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-configurator .calculator-dual-consumptions {
        grid-column: 1 / -1;
    }

    .calculator-configurator .calculator-submit {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .contract-form > .feature-panel.contract-calculator {
        padding: 0;
        border-radius: 0;
    }

    .calculator-configurator .calculator-control-section {
        padding: 18px 16px;
    }

    .calculator-configurator .calculator-configurator-heading::after {
        display: none;
    }

    .calculator-configurator .calculator-configurator-heading::before {
        top: 18px;
        bottom: 18px;
        left: 16px;
    }

    .calculator-configurator .calculator-customer-section {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .calculator-configurator .calculator-segment-group,
    .calculator-configurator .calculator-segment-control {
        width: 100%;
    }

    .calculator-configurator .calculator-segment-control {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-configurator .calculator-energy-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-inline: 0;
    }

    .calculator-configurator .calculator-energy-tab,
    .calculator-configurator .calculator-energy-tab:last-of-type {
        grid-template-columns: 40px minmax(0, 1fr) 22px;
        min-height: 80px;
        padding: 12px;
    }

    .calculator-configurator .calculator-energy-icon {
        width: 40px;
        height: 40px;
    }

    .calculator-configurator .calculator-inputs {
        grid-template-columns: 1fr;
        padding: 18px 0 0;
    }

    .calculator-configurator .calculator-dual-consumptions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .calculator-configurator .calculator-submit {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .calculator-configurator .calculator-energy-tabs {
        grid-template-columns: 1fr;
    }

    .calculator-configurator .calculator-energy-tab,
    .calculator-configurator .calculator-energy-tab:last-of-type {
        min-height: 72px;
    }

    .calculator-configurator .calculator-control-heading {
        align-items: flex-start;
    }

    .calculator-configurator .calculator-segment-control {
        grid-template-columns: 1fr;
    }
}

/* Calculator results workspace */

.calculator-results {
    scroll-margin-top: calc(var(--app-topbar-height) + 74px);
    padding-top: 28px;
}

.calculator-results-heading {
    position: relative;
    align-items: center;
    margin-bottom: 18px;
    padding: 20px 22px 20px 44px;
    border: 1px solid #d7e4ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 67, 108, 0.07);
}

.calculator-results-heading::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 22px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ue-orange-500), var(--ue-orange-600));
    content: "";
}

.calculator-results-heading-copy {
    display: grid;
    gap: 3px;
}

.calculator-results-heading .calculator-eyebrow {
    margin: 0;
    color: var(--ue-orange-600);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.calculator-results-heading h2 {
    margin: 0;
    color: var(--ue-ink-900);
    font-size: clamp(21px, 1.8vw, 26px);
    line-height: 1.2;
}

.calculator-results-context {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.calculator-results-context .calculator-results-location {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #d7e4ee;
    border-radius: 999px;
    background: #f2f8fc;
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
}

.calculator-results-edit {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    color: #0754a6;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #9fc5df;
    border-radius: 999px;
    box-shadow: 0 3px 9px rgba(7, 84, 166, 0.07);
    cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.calculator-results-edit:hover,
.calculator-results-edit:focus-visible {
    color: #ffffff;
    background: #0754a6;
    border-color: #0754a6;
    box-shadow: 0 6px 14px rgba(7, 84, 166, 0.18);
    outline: 3px solid rgba(7, 84, 166, 0.12);
}

.calculator-results-edit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.calculator-offers {
    gap: 14px;
}

.calculator-dual-offer-group {
    gap: 13px;
}

.calculator-dual-offer-group + .calculator-dual-offer-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d7e4ee;
}

.calculator-dual-offer-group > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ue-ink-900);
    font-size: 19px;
}

.calculator-dual-offer-group > h3::before {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border: 3px solid #dceefa;
    border-radius: 50%;
    background: var(--ue-blue-700);
    content: "";
    box-shadow: 0 0 0 2px rgba(11, 99, 184, 0.1);
}

.calculator-offer {
    grid-template-columns: minmax(0, 1fr) 230px;
    overflow: hidden;
    border: 1px solid #d3e1eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(16, 67, 108, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.calculator-offer:hover {
    border-color: #a9c8dc;
    box-shadow: 0 12px 28px rgba(16, 67, 108, 0.1);
    transform: translateY(-1px);
}

.calculator-offer.is-selected {
    border-color: var(--ue-orange-500);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1), 0 12px 28px rgba(16, 67, 108, 0.1);
}

.calculator-offer-main {
    grid-template-columns: minmax(210px, 0.82fr) minmax(320px, 1.18fr);
    gap: 22px;
    padding: 22px;
}

.calculator-offer-identity {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-content: start;
}

.calculator-offer-energy-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: #eaf5fc;
    color: var(--ue-blue-700);
}

.calculator-offer--gas .calculator-offer-energy-icon {
    background: #eef7f4;
    color: #168064;
}

.calculator-offer--waermepumpe .calculator-offer-energy-icon {
    background: #f0f1fb;
    color: #5a66a8;
}

.calculator-offer-energy-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.calculator-offer-badges {
    min-height: 23px;
    gap: 6px;
}

.calculator-test-badge,
.calculator-green-badge {
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.035em;
}

.calculator-test-badge {
    border: 1px solid #f1d596;
    background: #fff8e8;
    color: #8a5910;
}

.calculator-green-badge {
    border: 1px solid #bfe2ca;
    background: #edf8f1;
    color: #247044;
}

.calculator-offer h3 {
    margin: 9px 0 5px;
    color: var(--ue-ink-900);
    font-size: 21px;
    line-height: 1.2;
}

.calculator-offer-main p {
    color: var(--ue-ink-500);
    font-size: 14px;
}

.calculator-offer-facts {
    display: grid;
    align-content: start;
    gap: 12px;
}

.calculator-offer-details {
    gap: 9px;
}

.calculator-offer-details div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e0eaf1;
    border-radius: 10px;
    background: #f8fbfd;
}

.calculator-offer-details dt {
    color: var(--ue-ink-500);
    font-size: 12px;
    font-weight: 700;
}

.calculator-offer-details dd {
    margin-top: 4px;
    color: var(--ue-ink-900);
    font-size: 15px;
}

.calculator-energy-mix {
    margin: 0;
    padding-top: 0;
    border-top: 0;
}

.calculator-energy-mix summary {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 0;
    color: var(--ue-blue-700);
    font-size: 13px;
}

.calculator-energy-mix-content {
    margin-top: 5px;
    padding: 14px;
    border: 1px solid #dce7ef;
    border-radius: 11px;
    background: #f8fbfd;
}

.calculator-energy-mix-content img {
    border: 0;
    border-radius: 8px;
}

.calculator-offer-price {
    position: relative;
    padding: 22px 18px;
    border-left: 1px solid #d7e4ee;
    background: linear-gradient(150deg, #f2f8fc 0%, #e7f2f9 100%);
}

.calculator-offer-price::before {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ue-orange-500);
    content: "";
    box-shadow: 0 0 0 5px rgba(241, 90, 36, 0.1);
}

.calculator-offer-price p {
    color: var(--ue-ink-700);
    font-size: 13px;
    font-weight: 750;
}

.calculator-offer-price p strong {
    margin-bottom: 2px;
    color: var(--ue-blue-800);
    font-size: 28px;
    line-height: 1.05;
}

.calculator-offer-price > span,
.calculator-offer-price small {
    color: var(--ue-ink-500);
    font-size: 13px;
}

.calculator-offer-price button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(234, 72, 27, 0.18);
}

.calculator-offer-price button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.calculator-offer-price button.is-selected {
    background: var(--ue-success);
    box-shadow: 0 8px 18px rgba(35, 133, 67, 0.18);
}

.calculator-selection,
.calculator-dual-selection {
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(16, 67, 108, 0.06);
}

.calculator-selection {
    padding: 19px 22px;
    border-color: #b8dfc8;
    background: #edf8f2;
}

.calculator-dual-selection {
    padding: 20px 22px;
    border-color: #c8deeb;
    background: #f2f8fc;
}

.calculator-dual-selection dl {
    padding: 12px 14px;
    border: 1px solid #d7e4ee;
    border-radius: 10px;
    background: #ffffff;
}

.calculator-dual-selection button {
    min-height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ue-action-orange), var(--ue-action-orange-hover));
    box-shadow: 0 8px 18px rgba(234, 72, 27, 0.18);
}

.calculator-disclaimer {
    max-width: none;
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid #d7e4ee;
    border-left: 4px solid var(--ue-blue-700);
    border-radius: 10px;
    background: #f8fbfd;
    color: var(--ue-ink-500);
    text-align: left;
}

@media (max-width: 1200px) {
    .calculator-offer {
        grid-template-columns: 1fr;
    }

    .calculator-offer-price {
        display: grid;
        grid-template-columns: minmax(150px, 0.7fr) minmax(120px, 0.55fr) minmax(190px, 0.8fr);
        gap: 8px 18px;
        align-items: center;
        border-top: 1px solid #d7e4ee;
        border-left: 0;
        text-align: left;
    }

    .calculator-offer-price p,
    .calculator-offer-price > span,
    .calculator-offer-price small {
        margin: 0;
    }

    .calculator-offer-price button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 900px) {
    .calculator-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .calculator-results-context {
        align-self: flex-start;
        justify-content: flex-start;
    }

    .calculator-offer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .calculator-results {
        padding-top: 22px;
    }

    .calculator-results-heading {
        padding: 18px 16px 18px 37px;
    }

    .calculator-results-heading::before {
        top: 18px;
        bottom: 18px;
        left: 16px;
    }

    .calculator-results-context .calculator-results-location {
        border-radius: 9px;
        line-height: 1.35;
    }

    .calculator-results-context {
        width: 100%;
        align-items: stretch;
    }

    .calculator-results-edit {
        border-radius: 9px;
    }

    .calculator-offer-main {
        padding: 18px 16px;
    }

    .calculator-offer-identity {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .calculator-offer-energy-icon {
        width: 42px;
        height: 42px;
    }

    .calculator-offer-details {
        grid-template-columns: 1fr;
    }

    .calculator-offer-price {
        display: flex;
        align-items: stretch;
        padding: 19px 16px;
        text-align: center;
    }

    .calculator-offer-price button {
        width: 100%;
    }

    .calculator-dual-selection {
        padding: 18px 16px;
    }
}

/* Contracts list: compact overview with expandable operational details */

.contracts-table-section .table-scroll {
    overflow: visible;
}

.contracts-list-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.contracts-list-table .contract-column-contract {
    width: 16%;
}

.contracts-list-table .contract-column-customer {
    width: 20%;
}

.contracts-list-table .contract-column-network {
    width: 18%;
}

.contracts-list-table .contract-column-supply {
    width: 17%;
}

.contracts-list-table .contract-column-status {
    width: 18%;
}

.contracts-list-table .contract-column-actions {
    width: 11%;
}

.contracts-list-table th {
    padding: 14px 16px;
    background: #edf6fc;
    color: #355a79;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.3;
    text-transform: uppercase;
    vertical-align: middle;
}

.contracts-list-table td {
    padding: 18px 16px;
    color: #0c3157;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}

.contracts-list-table tbody > tr[data-contract-item] {
    transition: background-color 160ms ease;
}

.contracts-list-table tbody > tr[data-contract-item]:hover,
.contracts-list-table tbody > tr[data-contract-item]:has(+ .contract-detail-row:not([hidden])) {
    background: #f8fbfe;
}

.contract-table-primary,
.contract-status-stack {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.contract-table-primary strong,
.contract-table-primary span,
.contract-table-primary small,
.contract-status-stack small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.contract-table-primary strong {
    color: #0c3157;
    font-size: 14px;
    font-weight: 800;
}

.contract-table-primary span,
.contract-table-primary small {
    color: #607d96;
    font-size: 12px;
    font-weight: 650;
}

.contract-code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #c9ddec;
    border-radius: 7px;
    background: #f1f8fd;
    color: #0754a6 !important;
    font-size: 12px !important;
    letter-spacing: 0.025em;
}

.contract-status-stack .workflow-badge {
    margin-bottom: 3px;
    white-space: normal;
}

.contract-status-stack small {
    color: #607d96;
    font-size: 12px;
    font-weight: 650;
}

.contract-status-stack small span {
    color: #355a79;
    font-weight: 800;
}

.contracts-list-table .contract-list-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.contracts-list-table .contract-list-actions .button,
.contracts-list-table .contract-list-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.contract-details-toggle {
    gap: 5px;
}

.contract-details-toggle svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.contract-details-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.contract-detail-row[hidden] {
    display: none;
}

.contracts-list-table .contract-detail-row > td {
    padding: 0;
    border-bottom: 1px solid #cfe0ec;
    background: #f3f8fc;
}

.contract-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-top: 1px solid #dce9f2;
    box-shadow: inset 4px 0 0 #f4512a;
}

.contract-detail-grid section {
    min-width: 0;
    padding: 15px;
    border: 1px solid #d7e5ef;
    border-radius: 10px;
    background: #ffffff;
}

.contract-detail-grid h3 {
    margin: 0 0 12px;
    color: #0c3157;
    font-size: 14px;
    font-weight: 800;
}

.contract-detail-grid dl,
.contract-detail-grid dl > div {
    margin: 0;
}

.contract-detail-grid dl {
    display: grid;
    gap: 9px;
}

.contract-detail-grid dl > div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f6;
}

.contract-detail-grid dl > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contract-detail-grid dt,
.contract-detail-grid dd {
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

.contract-detail-grid dt {
    color: #607d96;
    font-weight: 650;
}

.contract-detail-grid dd {
    margin: 0;
    color: #0c3157;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: right;
}

@media (max-width: 1120px) and (min-width: 901px) {
    .contracts-list-table th,
    .contracts-list-table td {
        padding-right: 10px;
        padding-left: 10px;
    }

    .contracts-list-table .contract-column-contract,
    .contracts-list-table .contract-column-network,
    .contracts-list-table .contract-column-supply,
    .contracts-list-table .contract-column-status {
        width: 17%;
    }

    .contracts-list-table .contract-column-customer {
        width: 20%;
    }

    .contracts-list-table .contract-column-actions {
        width: 12%;
    }

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

/* Personal contracts: full-width, customer-focused cards */

.contract-card-grid.contract-card-grid-personal {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.contract-card-personal {
    padding: 0;
    border-color: #cfe0ec;
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(12, 49, 87, 0.08);
}

.contract-card-personal::before {
    top: 22px;
    right: auto;
    bottom: 22px;
    left: 0;
    width: 4px;
    height: auto;
    border-radius: 0 4px 4px 0;
    background: #f4512a;
}

.contract-card-personal:hover {
    border-color: #bdd4e4;
    box-shadow: 0 12px 30px rgba(12, 49, 87, 0.11);
    transform: none;
}

.contract-card-personal .contract-card-header {
    align-items: center;
    margin: 0;
    padding: 22px 24px 19px;
    border-bottom: 1px solid #dce8f1;
    background: linear-gradient(110deg, #f7fbfe 0%, #ffffff 64%);
}

.contract-card-personal .contract-card-header > div {
    min-width: 0;
}

.contract-card-personal .contract-card-header > div > span {
    color: #607d96;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.contract-card-personal .contract-card-header strong {
    margin-top: 6px;
    color: #0c3157;
    font-size: 20px;
    letter-spacing: -0.015em;
}

.contract-card-product-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 7px 0 0;
}

.contract-card-personal .contract-card-product-line span {
    display: inline;
    color: #426582;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
}

.contract-card-personal .workflow-badge {
    flex: 0 0 auto;
    max-width: 260px;
    padding: 8px 12px;
    text-align: center;
}

.contract-card-personal .contract-card-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    padding: 22px 24px 24px;
}

.contract-card-personal .contract-card-field {
    min-width: 0;
    padding: 3px 0 3px 14px;
    border: 0;
    border-left: 3px solid #d6e6f1;
}

.contract-card-personal .contract-card-field-status {
    border-left-color: #43b96b;
}

.contract-card-personal .contract-card-field-payment {
    border-left-color: #f2bd22;
}

.contract-card-personal .contract-card-field > span {
    color: #607d96;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contract-card-personal .contract-card-field strong {
    margin-top: 7px;
    color: #0c3157;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contract-card-personal .contract-card-field small {
    margin-top: 5px;
    color: #607d96;
    font-size: 12px;
    font-weight: 650;
}

.contract-card-personal .contract-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    justify-content: stretch;
    margin: 0;
    padding: 17px 24px;
    border-top: 1px solid #dce8f1;
    background: #f7fbfe;
}

.contract-card-action-copy {
    min-width: 0;
}

.contract-card-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.contract-card-action-buttons form {
    margin: 0;
}

.contract-card-personal .contract-card-action-copy strong,
.contract-card-personal .contract-card-action-copy span {
    display: block;
    letter-spacing: 0;
    text-transform: none;
}

.contract-card-personal .contract-card-action-copy strong {
    color: #0c3157;
    font-size: 14px;
    font-weight: 800;
}

.contract-card-personal .contract-card-action-copy span {
    margin-top: 3px;
    color: #607d96;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.contract-card-personal .contract-card-actions .button,
.contract-card-personal .contract-card-actions button {
    min-width: 150px;
    min-height: 40px;
    margin: 0;
    font-size: 13px;
}

@media (max-width: 780px) {
    .contract-card-personal .contract-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 18px 17px;
    }

    .contract-card-personal .workflow-badge {
        max-width: 100%;
    }

    .contract-card-personal .contract-card-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 20px 18px;
    }

    .contract-card-personal .contract-card-actions {
        grid-template-columns: minmax(0, 1fr);
        padding: 17px 18px 19px;
    }

    .contract-card-personal .contract-card-actions .button,
    .contract-card-personal .contract-card-actions button {
        width: 100%;
    }

    .contract-card-personal .contract-card-action-buttons {
        align-items: stretch;
        flex-direction: column;
    }
}

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

/* Social banner: light preview frame with a compact rounded card */

.profile-banner-preview-frame {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 16px;
    border: 1px solid #cfe0ec;
    border-radius: 14px;
    background: #edf6fc;
}

.profile-banner-panel .profile-banner-preview {
    display: block;
    width: min(420px, 100%);
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    border: 1px solid #c6d9e7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(12, 49, 87, 0.1);
    object-fit: contain;
}

@media (max-width: 640px) {
    .profile-banner-preview-frame {
        padding: 10px;
        border-radius: 12px;
    }

    .profile-banner-panel .profile-banner-preview {
        width: 100%;
        max-width: 420px;
        border-radius: 13px;
    }
}

/* Profile overview alignment: preserve the original stacked layout */

.profile-grid.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-grid.has-progress {
    align-items: stretch;
}

.profile-grid.has-progress > .profile-summary-column,
.profile-grid.has-progress > .profile-banner-panel {
    height: 100%;
}

.profile-grid.has-progress > .profile-banner-panel {
    display: flex;
    flex-direction: column;
}

.profile-grid.has-progress .profile-banner-preview-frame {
    flex: 1 1 auto;
    min-height: 304px;
    padding: 12px;
}

.profile-grid.has-progress .profile-banner-panel .profile-banner-preview {
    width: min(350px, 100%);
    max-width: 100%;
}

.profile-grid.has-progress .profile-banner-panel .profile-banner-actions {
    flex: 0 0 auto;
}

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

    .profile-grid.has-progress > .profile-summary-column,
    .profile-grid.has-progress > .profile-banner-panel {
        height: auto;
    }

    .profile-grid.has-progress .profile-banner-preview-frame {
        min-height: 0;
    }
}
.workspace-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #d6e4ef;
}

.workspace-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #16436e;
    text-decoration: none;
}

.workspace-navigation a:hover,
.workspace-navigation a[aria-current="page"] {
    background: #edf5fc;
    box-shadow: inset 0 -3px #ff501d;
}

.workspace-navigation a:focus-visible {
    outline: 2px solid #1264aa;
    outline-offset: 2px;
}

.workspace-navigation-count {
    padding: 2px 7px;
    border-radius: 12px;
    background: #fff0e9;
    color: #b7350c;
    font-weight: 700;
}

@media print {
    .workspace-navigation {
        display: none;
    }
}
.journey-panel { margin-bottom: 30px; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.journey-heading h2 { margin: 0; color: #10375f; font-size: 28px; }
.journey-heading p { color: #526b7c; }
.journey-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.journey-card { min-width: 0; padding: 24px; background: white; border: 1px solid #d6e4ef; border-radius: 18px; }
.journey-card h3 { margin-top: 0; color: #10375f; }
.journey-card a { color: #0754a6; }
.journey-number { font-size: 38px; color: #0754a6; }
.journey-panel progress { display: block; width: 100%; height: 12px; accent-color: #1264aa; margin: 14px 0; }
.journey-panel progress { appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: #e5eef5; }
.journey-panel progress::-webkit-progress-bar { background: #e5eef5; }
.journey-panel progress::-webkit-progress-value { background: #1264aa; border-radius: 8px; }
.journey-panel progress::-moz-progress-bar { background: #1264aa; }
.journey-checklist { padding: 0; list-style: none; }
.journey-checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf2f6; }
.journey-checklist small { margin-left: auto; color: #526b7c; }
.journey-note { font-size: 13px; line-height: 1.6; color: #526b7c; }
.journey-status { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.journey-status dd { margin: 0; font-weight: 700; color: #10375f; }
.journey-career { margin: 20px 0; }
.journey-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.journey-goals article { padding: 16px; border-radius: 12px; background: #f0f7fd; }
.journey-goals h4 { min-height: 3em; margin-top: 0; }
.journey-empty { padding: 18px; background: #f3f7fa; border-radius: 12px; }
.journey-history { padding: 12px 0 0 8px; list-style: none; max-height: 600px; overflow: auto; }
.journey-history li { border-left: 2px solid #d6e4ef; padding: 0 0 22px 16px; }
.journey-history time, .journey-history strong, .journey-history span { display: block; overflow-wrap: anywhere; }
.journey-history time { color: #526b7c; font-size: 12px; margin-bottom: 6px; }
.journey-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.journey-spotlight { min-width: 0; padding: 32px; border-radius: 22px; color: white; background: radial-gradient(ellipse at top right, #1c78b4, transparent 65%), #093b6b; box-shadow: 0 12px 30px #0b46751a; }
.journey-spotlight-top { display: flex; gap: 24px; align-items: center; }
.journey-spotlight h3 { color: white; font-size: clamp(26px, 2.6vw, 36px); margin: 6px 0 10px; line-height: 1.2; }
.journey-spotlight p { margin: 0; color: #e1eef9; line-height: 1.6; }
.journey-panel .journey-kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.journey-ring { flex: 0 0 112px; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#ffad70 var(--journey-angle), #ffffff26 0); }
.journey-ring > span { width: 96px; height: 96px; display: grid; align-content: center; justify-items: center; border-radius: 50%; background: #0c4679; font-size: 36px; font-weight: 700; line-height: 1.1; }
.journey-ring small { font-size: 14px; color: #d3e5f5; font-weight: 400; margin-top: 4px; }
.journey-spotlight progress { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; margin: 0; }
.journey-spotlight progress::-webkit-progress-value { background: #ffad70; }
.journey-spotlight progress::-moz-progress-bar { background: #ffad70; }
.journey-rank-summary { display: flex; align-items: flex-start; gap: 14px; border-top: 1px solid #ffffff30; padding-top: 22px; margin-top: 26px; }
.journey-rank-summary strong { display: block; font-size: 24px; margin: 5px 0; }
.journey-rank-summary small { display: block; color: #d3e5f5; font-size: 12px; }
.journey-rank-summary p:not(.journey-kicker) { font-size: 14px; margin-top: 8px; }
.journey-rank-mark { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: #ffffff17; color: #ffbc88; font-size: 25px; }
.journey-next { padding: 28px; border-radius: 22px; }
.journey-next h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }
.journey-next .button { color: white; margin: 6px 0 12px; }
.journey-checklist { margin: 8px 0 0; }
.journey-checklist li { font-size: 13px; gap: 8px; }
.journey-checklist a { text-decoration: none; }
.journey-checklist small { font-size: 12px; text-align: right; }
.journey-step-mark { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #edf3f9; color: #56728b; }
.journey-checklist .is-complete .journey-step-mark { background: #e0f1e9; color: #1d6b4e; }
.journey-status-strip { padding: 20px 8px 0; }
.journey-status-strip .journey-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; margin: 0; }
.journey-status-strip dt { color: #526b7c; }
.journey-status-strip dd { margin-right: 20px; }
.journey-status-strip .journey-note { font-size: 12px; margin-bottom: 0; }
.journey-career { padding: 28px; }
.journey-career > h3 { font-size: 23px; margin-bottom: 8px; }
.journey-career > p { font-size: 14px; color: #526b7c; }
.journey-goals { margin-top: 24px; }
.journey-goals article { background: #f5f9fc; padding: 20px; border: 1px solid #e3edf5; }
.journey-goal-mark { display: grid; place-items: center; width: 32px; height: 32px; background: #e1edf9; border-radius: 10px; color: #0754a6; font-size: 22px; margin-bottom: 18px; }
.journey-goals h4 { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.journey-goals strong { font-size: 26px; color: #10375f; }
.journey-goals p { font-size: 12px; color: #526b7c; }
.journey-goals progress { height: 6px; }
.journey-history-details summary { color: #10375f; font-size: 20px; font-weight: 700; cursor: pointer; padding: 2px 0 12px; }
.journey-history li { position: relative; }
.journey-history li::before { content: ''; position: absolute; width: 8px; height: 8px; background: #1264aa; border: 3px solid white; border-radius: 50%; left: -8px; top: 0; }
.journey-panel a:focus-visible, .journey-panel summary:focus-visible { outline: 3px solid #f47a38; outline-offset: 4px; }
@media (max-width: 1100px) { .journey-overview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .journey-columns { grid-template-columns: minmax(0, 1fr); }
    .journey-heading { align-items: flex-start; flex-direction: column; }
    .journey-card { padding: 18px; }
    .journey-spotlight { padding: 24px; }
    .journey-spotlight-top { gap: 16px; }
    .journey-ring { flex-basis: 88px; width: 88px; height: 88px; }
    .journey-ring > span { width: 76px; height: 76px; font-size: 28px; }
    .journey-spotlight h3 { font-size: 24px; overflow-wrap: anywhere; }
    .journey-status-strip .journey-status { display: grid; grid-template-columns: 1fr 1fr; }
    .journey-status-strip dd { margin: 0; }
    .journey-next .button { width: 100%; }
}
.analytics-panel { margin: 16px 0 32px; }
.staff-dashboard-heading { padding: 4px 0 8px; }
.staff-dashboard-heading h1 { color:#10375f; font-size:32px; line-height:1.2; margin:8px 0 12px; }
.staff-dashboard-heading > div > p:not(.eyebrow) { color:#526b7c; line-height:1.6; margin:0; }
.analytics-context-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; color:#526b7c; font-size:13px; }
.analytics-context-bar p { margin:0; }
.analytics-live-label { display:inline-block; margin-right:8px; padding:4px 10px; background:#e8f1f9; border-radius:20px; color:#174f80; font-size:12px; }
.analytics-jump-links { display:flex; flex-wrap:wrap; gap:4px 20px; margin:18px 0 28px; border-bottom:1px solid #d6e4ef; }
.analytics-jump-links a { padding:10px 0; color:#0754a6; text-decoration:none; font-weight:600; font-size:14px; border-bottom:2px solid transparent; }
.analytics-jump-links a:hover { border-color:#f46c30; }
.analytics-panel section[id], .staff-directory { scroll-margin-top:100px; }
.analytics-source-warning { border-left:3px solid #d36a22; padding:12px 16px; background:#fff5e9; color:#714313; border-radius:6px; font-size:13px; }
.analytics-toolbar, .analytics-toolbar form { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.analytics-toolbar { justify-content:space-between; margin:26px 0 12px; }
.analytics-toolbar h2 { margin:0; color:#10375f; font-size:24px; }
.analytics-toolbar form { max-width:100%; }
.analytics-toolbar form label { margin:0; font-size:13px; }
.analytics-toolbar form select { width:auto; max-width:100%; min-width:180px; margin:0; }
.analytics-toolbar .eyebrow { display:none; }
.analytics-note, .analytics-section-heading p { color:#526b7c; font-size:13px; line-height:1.6; }
.analytics-section-heading { margin:26px 0 14px; }
.analytics-section-heading h2, .analytics-section-heading h3 { color:#10375f; margin:0; font-size:23px; }
.analytics-section-heading p { margin:8px 0 0; }
.analytics-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:20px 0; border:1px solid #d6e4ef; border-radius:14px; overflow:hidden; background:white; }
.analytics-kpis article { min-width:0; padding:20px 22px; border-right:1px solid #e3edf5; }
.analytics-kpis article:last-child { border:0; }
.analytics-kpis strong { display:block; font-size:32px; color:#0754a6; margin:10px 0; font-variant-numeric:tabular-nums; }
.analytics-kpis span, .analytics-kpis small { font-size:13px; color:#526b7c; line-height:1.5; }
.analytics-performance-stack { display:grid; gap:20px; }
.analytics-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.analytics-card { min-width:0; background:white; border:1px solid #d6e4ef; border-radius:14px; padding:24px; }
.analytics-card h3 { margin:0 0 14px; color:#10375f; font-size:21px; }
.analytics-card a { color:#0754a6; }
.analytics-card > details { margin-top:16px; }
.analytics-card summary { cursor:pointer; color:#0754a6; font-size:14px; padding:8px 0; }
.analytics-chart-unit { color:#10375f; font-weight:600; font-size:14px; margin:6px 0 16px; }
.analytics-chart-legend { display:flex; flex-wrap:wrap; gap:10px 24px; color:#526b7c; font-size:12px; margin-bottom:10px; }
.analytics-chart-legend span { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.analytics-chart-legend b { font-weight:600; color:#10375f; }
.analytics-chart-legend i { width:24px; border-top:3px solid #1264aa; }
.analytics-chart-legend .is-previous { border-color:#73889e; border-top-style:dashed; }
.analytics-chart-scroll { overflow-x:auto; overscroll-behavior-x:contain; }
.analytics-trend-chart { display:block; width:100%; min-width:640px; height:auto; }
.analytics-trend-chart text { fill:#526b7c; font-size:18px; font-family:inherit; font-variant-numeric:tabular-nums; }
.analytics-chart-x-label { text-align:center; color:#526b7c; font-size:13px; margin:4px 0 12px; }
.analytics-chart-scroll-note { display:none; color:#526b7c; font-size:12px; line-height:1.5; }
.analytics-pipeline-row { display:grid; grid-template-columns:minmax(180px,1fr) 80px minmax(120px,1fr); gap:16px; align-items:center; margin:0; padding:12px 0; border-bottom:1px solid #edf2f6; font-size:14px; }
.analytics-pipeline-row:last-child { border:0; }
.analytics-pipeline-row strong { text-align:right; }
.analytics-pipeline-row progress { width:100%; height:7px; accent-color:#1264aa; appearance:none; border:0; background:#e5eef5; border-radius:4px; overflow:hidden; }
.analytics-pipeline-row progress::-webkit-progress-bar { background:#e5eef5; }
.analytics-pipeline-row progress::-webkit-progress-value { background:#1264aa; border-radius:4px; }
.analytics-pipeline-row progress::-moz-progress-bar { background:#1264aa; }
.analytics-table-scroll { overflow:auto; max-height:360px; }
.analytics-table-scroll table { width:100%; font-size:13px; }
.analytics-table-scroll th, .analytics-table-scroll td { text-align:left; padding:10px; border-bottom:1px solid #edf2f6; white-space:nowrap; }
.analytics-operations { margin-bottom:28px; }
.analytics-queues { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #d6e4ef; border-radius:14px; overflow:hidden; background:white; }
.analytics-queue { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 16px; padding:16px 20px; color:#0754a6; text-decoration:none; border-bottom:1px solid #e3edf5; min-width:0; }
.analytics-queue:nth-child(odd) { border-right:1px solid #e3edf5; }
.analytics-queue > span { font-size:14px; font-weight:600; }
.analytics-queue strong { color:#a94019; font-size:23px; font-variant-numeric:tabular-nums; }
.analytics-queue small { grid-column:1/-1; font-size:12px; color:#526b7c; }
.analytics-queue.is-clear strong, .analytics-queue.is-unavailable strong { color:#526b7c; }
.analytics-queue.is-unavailable { background:#fff8ef; }
.analytics-queue:hover { background:#f1f7fc; }
.analytics-empty-state { padding:16px; background:#f4f8fb; color:#526b7c; border-radius:10px; font-size:14px; }
.staff-directory { margin:32px 0; }
.staff-directory-controls { padding:20px; border:1px solid #d6e4ef; border-radius:14px 14px 0 0; background:white; display:flex; flex-wrap:wrap; align-items:end; gap:12px 24px; }
.staff-directory [hidden] { display:none !important; }
.staff-directory-controls label { flex:1 1 360px; margin:0; font-size:13px; color:#526b7c; }
.staff-directory-controls input { display:block; margin:8px 0 0; width:100%; }
.staff-directory-filters { display:flex; flex-wrap:wrap; gap:8px; flex-basis:100%; }
.staff-directory-filters button { min-height:36px; padding:7px 12px; border:1px solid #cfdfeb; border-radius:6px; background:white; box-shadow:none; color:#315875; font-size:13px; font-weight:500; }
.staff-directory-filters button[aria-pressed="true"] { background:#103f6b; border-color:#103f6b; color:white; }
.staff-directory-group { background:white; border:1px solid #d6e4ef; border-top:0; }
.staff-directory-group:last-child { border-radius:0 0 14px 14px; overflow:hidden; }
.staff-directory-group h3 { margin:0; padding:12px 20px; background:#edf4fa; font-size:14px; color:#10375f; }
.staff-directory-group h3 small { font-size:12px; font-weight:400; margin-left:8px; }
.staff-directory-group ul { margin:0; padding:0; list-style:none; }
.staff-tool-link { display:grid; grid-template-columns:32px minmax(0,1fr) auto 20px; align-items:center; gap:16px; padding:17px 20px; border-bottom:1px solid #edf2f6; color:#10375f; text-decoration:none; }
.staff-tool-link:hover { background:#f5f9fd; }
.staff-tool-icon { width:24px; height:24px; color:#1264aa; fill:none; stroke:currentColor; }
.staff-tool-link strong { display:block; font-size:15px; line-height:1.4; }
.staff-tool-link small { display:block; color:#526b7c; font-size:13px; line-height:1.5; margin-top:4px; }
.staff-tool-metric { max-width:190px; text-align:right; }
.staff-tool-metric b { display:inline-block; min-width:28px; padding:3px 8px; background:#eaf2f9; border-radius:5px; color:#174f80; font-size:14px; }
.staff-tool-metric small { font-size:12px; }
.staff-tool-arrow { grid-column:4; color:#1264aa; font-size:21px; }
.analytics-panel a:focus-visible, .analytics-panel summary:focus-visible, .analytics-chart-scroll:focus-visible, .staff-directory a:focus-visible, .staff-directory button:focus-visible { outline:3px solid #f47a38; outline-offset:3px; }
@media(max-width:900px) {
    .analytics-chart-scroll-note { display:block; }
    .analytics-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .analytics-kpis article { border-bottom:1px solid #e3edf5; }
    .analytics-charts { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:600px) {
    .staff-dashboard-heading h1 { font-size:28px; }
    .analytics-queues { grid-template-columns:minmax(0,1fr); }
    .analytics-queue:nth-child(odd) { border-right:0; }
    .analytics-card { padding:18px; }
    .analytics-toolbar form { align-items:stretch; flex-direction:column; width:100%; }
    .analytics-kpis article { padding:16px; }
    .analytics-kpis strong { font-size:27px; }
    .analytics-pipeline-row { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
    .analytics-pipeline-row progress { grid-column:1/-1; }
    .staff-directory-controls { padding:16px; }
    .staff-tool-link { grid-template-columns:24px minmax(0,1fr) 20px; gap:10px; padding:16px; }
    .staff-tool-arrow { grid-column:3; grid-row:1; }
    .staff-tool-metric { grid-column:2; max-width:none; text-align:left; }
    .staff-tool-metric b, .staff-tool-metric small { display:inline; margin-right:5px; }
}

/* Shared daily report: period activity stays distinct from live operational queues. */
.staff-report { margin:22px 0 30px; }
.staff-report .analytics-toolbar { margin-bottom:12px; }
.staff-report .analytics-toolbar p { margin:6px 0 0; }
.analytics-toolbar form .staff-report-test-toggle { display:flex; align-items:center; gap:8px; cursor:pointer; }
.staff-report-test-toggle input { width:18px; height:18px; margin:0; flex-shrink:0; }
.staff-report-period { color:#174f80; font-size:13px; font-weight:600; }
.staff-report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:12px 0; }
.staff-report-metrics article { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 12px; min-width:0; background:#fff; border:1px solid #d6e4ef; border-radius:10px; padding:12px 14px; }
.staff-report-metrics article:first-child { background:#073f72; border-color:#073f72; }
.staff-report-metrics article:first-child :is(span,strong,small) { color:#fff; }
.staff-report-metrics span { display:block; color:#365b7d; font-size:14px; line-height:1.5; }
.staff-report-metrics strong { grid-column:2; grid-row:1 / span 2; margin:0; color:#0754a6; font-size:27px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.staff-report-metrics small { grid-column:1; color:#526b7c; font-size:12px; }
.staff-report-credit { background:#fff; border:1px solid #d6e4ef; border-radius:14px; padding:20px; }
.staff-report-credit h3 { color:#10375f; margin:0; font-size:18px; }
.staff-report-credit .analytics-note { margin:6px 0 16px; }
.staff-report-credit dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0; }
.staff-report-credit dl div { border-left:3px solid #8ca5b9; padding-left:12px; }
.staff-report-credit .credit-passed { border-color:#23855d; }
.staff-report-credit .credit-failed { border-color:#c34c4c; }
.staff-report-credit .credit-manual_review { border-color:#b4781b; }
.staff-report-credit dt { font-size:13px; color:#365b7d; }
.staff-report-credit dd { margin:7px 0 0; font-size:24px; font-weight:700; color:#10375f; }
@media(max-width:1100px) { .staff-report-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
    .staff-report-metrics, .staff-report-credit dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .staff-report-metrics article { padding:12px; gap:4px 8px; }
    .staff-report .analytics-toolbar form { width:100%; }
    .staff-report .analytics-toolbar select { min-width:0; flex:1; }
}


.lifecycle-snapshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 24px;
}
.lifecycle-snapshots > section { min-width: 0; }
.lifecycle-snapshot-fields { display: grid; gap: 12px; }
.lifecycle-search-results { display: grid; gap: 12px; padding-left: 20px; }
.lifecycle-search-results a { overflow-wrap: anywhere; }

/* Structural invitations use the ordinary Community panels, with readable links on mobile. */
.structural-invite-panel { margin-top: 1.25rem; }
.structural-invite-panel > p { max-width: 72ch; }
.corporate-invite-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.corporate-invite-actions > form { margin: 0; max-width: 100%; }
.corporate-invite-actions button { max-width: 100%; white-space: normal; }
.structural-invite-created { margin-top: 1.25rem; padding: 1rem; background: var(--surface-soft, #f4f7fa); border-radius: .75rem; }
.structural-invite-created label { display: block; font-weight: 600; margin-bottom: .5rem; }
.structural-invite-created textarea { display: block; width: 100%; min-width: 0; overflow-wrap: anywhere; resize: vertical; padding: .75rem; margin-bottom: .75rem; }
.structural-invite-list { display: grid; gap: 1rem; }
.structural-invite-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid #e2e8f0; }
.structural-invite-item h3 { margin: 0 0 .5rem; }
.structural-invite-item p { margin: .35rem 0; }
@media (max-width: 600px) { .structural-invite-item { align-items: flex-start; flex-direction: column; } }
