.cdb-tool {
    color: var(--neutral-white);
}

.cdb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-100);
    font-size: 0.875rem;
}

.cdb-breadcrumb a {
    color: var(--neutral-100);
    text-decoration: none;
}

.cdb-breadcrumb a:hover {
    color: var(--primary-green-light);
}

.cdb-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-opacity);
}

.cdb-hero__copy {
    max-width: 46rem;
}

.cdb-hero h1 {
    margin: 0;
    color: var(--neutral-white);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cdb-hero p {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: var(--neutral-100);
    font-size: 1.25rem;
    line-height: 1.55;
}

.cdb-sponsor {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--neutral-white);
    text-align: right;
    text-decoration: none;
}

.cdb-sponsor span {
    color: var(--neutral-100);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cdb-sponsor strong {
    color: var(--neutral-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.cdb-card {
    margin-top: 2.5rem;
    border: 1px solid var(--border-light-opacity);
    border-radius: 8px;
    background: #f4faf7;
    color: var(--light-neutral-0);
    box-shadow: 0 32px 80px -36px rgba(0, 0, 0, 0.75);
}

.cdb-card--calculator {
    padding: 2rem;
}

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

.cdb-card__header h2 {
    margin: 0;
    color: var(--light-neutral-0);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cdb-card__header p {
    margin: 0.5rem 0 0;
    color: #6f8379;
    font-size: 1rem;
}

.cdb-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.cdb-field {
    min-width: 0;
}

.cdb-field label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    color: var(--light-neutral-0);
    font-size: 1rem;
    font-weight: 700;
}

.cdb-field label span {
    color: #9aa9a2;
    font-size: 0.875rem;
    font-weight: 600;
}

.cdb-field label .cdb-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid #b7c4be;
    border-radius: 999px;
    color: #8a9b93;
    font-size: 0.6875rem;
    line-height: 1;
}

.cdb-money-input,
.cdb-duration-input {
    display: flex;
    align-items: stretch;
    min-height: 3.5rem;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    background: var(--neutral-white);
    overflow: hidden;
}

.cdb-money-input:focus-within,
.cdb-duration-input:focus-within {
    border-color: var(--primary-green-dark);
    box-shadow: 0 0 0 3px rgba(74, 184, 101, 0.16);
}

.cdb-money-input span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    border-right: 1px solid #d8e1dd;
    background: #e8f0ed;
    color: #6f8379;
    font-weight: 700;
}

.cdb-money-input input,
.cdb-duration-input input,
.cdb-duration-input select {
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--light-neutral-0);
    font: inherit;
    font-size: 1.125rem;
    font-weight: 700;
}

.cdb-money-input input,
.cdb-duration-input input {
    flex: 1;
    padding: 0 1rem;
}

.cdb-duration-input select {
    flex: 0 0 8.5rem;
    padding: 0 1rem;
    border-left: 1px solid #d8e1dd;
    cursor: pointer;
}

.cdb-money-input input:focus,
.cdb-duration-input input:focus,
.cdb-duration-input select:focus {
    outline: none;
}

.cdb-money-input input::placeholder {
    color: #9aa9a2;
}

.cdb-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cdb-quick-row button {
    border: 1px solid #dfe6ee;
    border-radius: 999px;
    background: #f7fbff;
    color: var(--light-neutral-0);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.cdb-quick-row button:hover {
    border-color: var(--primary-green-light);
    color: var(--primary-green-dark);
}

.cdb-scenarios-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.cdb-scenarios-head h3 {
    margin: 0;
    color: var(--light-neutral-0);
    font-size: 1.125rem;
    font-weight: 800;
}

.cdb-scenarios-head p {
    margin: 0.25rem 0 0;
    color: #6f8379;
}

#cdb-scenario-count {
    color: #6f8379;
    font-weight: 700;
    white-space: nowrap;
}

.cdb-scenarios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.cdb-scenario-card,
.cdb-add-scenario {
    min-height: 13rem;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    background: var(--neutral-white);
}

.cdb-scenario-card {
    position: relative;
    padding: 1.5rem;
    box-shadow: 0 12px 28px -24px rgba(0, 0, 0, 0.5);
}

.cdb-scenario-card.is-daycoval {
    border: 2px solid #23459a;
}

.cdb-scenario-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cdb-scenario-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    color: var(--light-neutral-0);
    font-size: 1.125rem;
    font-weight: 800;
}

.cdb-scenario-title span {
    flex: 0 0 auto;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--primary-green-light);
}

.cdb-scenario-title strong {
    overflow-wrap: anywhere;
}

.cdb-exclusive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border-radius: 4px;
    background: #23459a;
    color: var(--neutral-white);
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cdb-remove-scenario {
    border: none;
    background: none;
    color: #7c8b85;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.cdb-remove-scenario:hover {
    color: var(--error-500);
}

.cdb-scenario-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cdb-scenario-fields .is-full {
    grid-column: 1 / -1;
}

.cdb-scenario-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6f8379;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cdb-scenario-input,
.cdb-scenario-select,
.cdb-static-input {
    display: flex;
    align-items: center;
    min-height: 3rem;
    width: 100%;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    background: #f7f9fb;
    color: var(--light-neutral-0);
    overflow: hidden;
}

.cdb-scenario-select select,
.cdb-scenario-input input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--light-neutral-0);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.cdb-scenario-select select {
    padding: 0 1rem;
    cursor: pointer;
}

.cdb-scenario-input input {
    padding: 0 1rem;
    font-variant-numeric: tabular-nums;
}

.cdb-scenario-input span,
.cdb-static-input span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    height: 100%;
    border-left: 1px solid #d8e1dd;
    color: #6f8379;
    font-weight: 800;
}

.cdb-scenario-input .cdb-prefix {
    min-width: 5rem;
    border-right: 1px solid #d8e1dd;
    border-left: none;
    background: #e8f0ed;
}

.cdb-static-input {
    padding: 0 1rem;
    font-weight: 800;
}

.cdb-scenario-select select:focus,
.cdb-scenario-input input:focus {
    outline: none;
}

.cdb-add-scenario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px dashed #d8e1dd;
    color: #6f8379;
    font-weight: 800;
    cursor: pointer;
}

.cdb-add-scenario span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #e8f0ed;
    color: var(--primary-green-dark);
    font-size: 2rem;
    line-height: 1;
}

.cdb-add-scenario:hover {
    border-color: var(--primary-green-light);
    color: var(--primary-green-dark);
}

.cdb-form__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cdb-form__footer p {
    max-width: 52rem;
    margin: 0;
    color: #6f8379;
    font-size: 0.875rem;
    line-height: 1.55;
}

.cdb-form__footer strong {
    color: var(--light-neutral-0);
}

.cdb-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cdb-clear,
.cdb-submit {
    min-height: 3.25rem;
    border: none;
    border-radius: 8px;
    padding: 0 1.75rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.cdb-clear {
    background: transparent;
    color: var(--primary-green-dark);
}

.cdb-submit {
    background: var(--primary-green-light);
    color: var(--neutral-black);
    box-shadow: 0 16px 32px -20px var(--primary-green-light);
}

.cdb-submit:hover {
    background: var(--primary-green-dark);
    color: var(--neutral-white);
}

.cdb-daycoval-ad {
    display: block;
    margin: 2rem 0;
    border-radius: 8px;
    line-height: 0;
    overflow: hidden;
    box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.8);
    transition: opacity 0.2s ease;
}

.cdb-daycoval-ad[hidden] {
    display: none;
}

.cdb-daycoval-ad:hover {
    opacity: 0.92;
}

.cdb-daycoval-ad__image {
    width: 100%;
    height: auto;
}

.cdb-daycoval-ad__image--desktop {
    display: none;
}

.cdb-daycoval-ad__image--mobile {
    display: block;
}

@media (min-width: 1024px) {
    .cdb-daycoval-ad__image--desktop {
        display: block;
    }

    .cdb-daycoval-ad__image--mobile {
        display: none;
    }
}

.cdb-results {
    margin-top: 2rem;
    border: 1px solid var(--border-light-opacity);
    border-radius: 8px;
    background: var(--neutral-white);
    color: var(--light-neutral-0);
    padding: 2rem;
}

.cdb-results[hidden] {
    display: none;
}

.cdb-results__header h2,
.cdb-result-panel h3 {
    margin: 0;
    color: var(--light-neutral-0);
    font-weight: 900;
    letter-spacing: 0;
}

.cdb-results__header p {
    margin: 0.5rem 0 0;
    color: #6f8379;
}

.cdb-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cdb-kpis div {
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    background: #f7f9fb;
    padding: 1rem;
}

.cdb-kpis span {
    display: block;
    color: #6f8379;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cdb-kpis strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--primary-green-dark);
    font-size: 1.125rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cdb-result-panel {
    margin-top: 1.5rem;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    padding: 1rem;
    background: var(--neutral-white);
}

.cdb-table-scroll {
    margin-top: 0.75rem;
    overflow-x: auto;
}

.cdb-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.cdb-table th,
.cdb-table td {
    padding: 0.75rem;
    border-top: 1px solid #edf2ef;
    color: var(--light-neutral-100);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cdb-table th:first-child,
.cdb-table td:first-child {
    text-align: left;
}

.cdb-table th {
    color: var(--light-neutral-0);
    font-weight: 900;
    vertical-align: bottom;
}

.cdb-table small {
    display: block;
    margin-top: 0.125rem;
    color: #6f8379;
    font-size: 0.6875rem;
    font-weight: 600;
}

.cdb-table .is-best {
    background: rgba(74, 184, 101, 0.08);
}

.cdb-table .is-daycoval {
    background: rgba(35, 69, 154, 0.06);
}

.cdb-table .is-highlight td {
    color: var(--light-neutral-0);
    font-weight: 900;
}

.cdb-table .is-red {
    color: var(--error-500);
}

.cdb-table .is-green {
    color: var(--primary-green-dark);
}

.cdb-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0;
    color: #6f8379;
    font-size: 0.8125rem;
    font-weight: 700;
}

.cdb-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.cdb-chart-legend i {
    display: inline-block;
    width: 1rem;
    height: 0.1875rem;
    border-radius: 999px;
}

.cdb-chart-wrapper {
    position: relative;
    height: 22rem;
}

.cdb-editorial,
.cdb-faq,
.cdb-other-tools {
    max-width: 52rem;
    margin: 4rem auto 0;
    color: var(--neutral-white);
}

.cdb-editorial h2,
.cdb-faq h2,
.cdb-other-tools h2 {
    margin: 3rem 0 1.25rem;
    color: var(--neutral-white);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0;
}

.cdb-editorial h2:first-child,
.cdb-faq h2:first-child,
.cdb-other-tools h2:first-child {
    margin-top: 0;
}

.cdb-editorial h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--neutral-white);
    font-size: 1.25rem;
    font-weight: 800;
}

.cdb-editorial p {
    color: var(--neutral-100);
    font-size: 1.125rem;
    line-height: 1.65;
}

.cdb-editorial strong {
    color: var(--neutral-white);
}

.cdb-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cdb-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--neutral-100);
    font-size: 1.125rem;
    line-height: 1.55;
}

.cdb-steps span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary-green-light);
    color: var(--neutral-black);
    font-weight: 900;
}

.cdb-ir-table {
    margin: 1.5rem 0;
    border: 1px solid #d8e1dd;
    border-radius: 8px;
    overflow: hidden;
    background: #f4faf7;
}

.cdb-ir-table table {
    width: 100%;
    border-collapse: collapse;
}

.cdb-ir-table th,
.cdb-ir-table td {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #d8e1dd;
    color: var(--light-neutral-0);
    text-align: left;
}

.cdb-ir-table thead th {
    border-top: none;
    background: #e8f0ed;
    font-weight: 900;
}

.cdb-faq details {
    border: 1px solid var(--border-opacity);
    border-radius: 8px;
    background: var(--opacity-dark-4);
    margin-bottom: 0.875rem;
    padding: 0 1.25rem;
}

.cdb-faq details[open] {
    border-color: rgba(74, 184, 101, 0.5);
}

.cdb-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    color: var(--neutral-white);
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.cdb-faq summary::-webkit-details-marker {
    display: none;
}

.cdb-faq summary::after {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.cdb-faq details[open] summary::after {
    transform: rotate(225deg);
}

.cdb-faq p {
    margin: 0;
    padding: 0 0 1.25rem;
    color: var(--neutral-100);
    font-size: 1rem;
    line-height: 1.65;
}

.cdb-other-tools {
    padding-bottom: 4rem;
}

.cdb-other-tools > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cdb-other-tools a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    min-height: 9rem;
    border: 1px solid var(--border-opacity);
    border-radius: 8px;
    background: var(--opacity-dark-4);
    padding: 1.5rem;
    color: var(--neutral-white);
    text-decoration: none;
}

.cdb-other-tools a:hover {
    border-color: rgba(74, 184, 101, 0.5);
}

.cdb-other-tools a span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(74, 184, 101, 0.12);
    color: var(--primary-green-light);
    font-size: 1.25rem;
}

.cdb-other-tools a span svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cdb-other-tools strong {
    color: var(--neutral-white);
    font-size: 1rem;
    line-height: 1.35;
}

.cdb-other-tools small {
    grid-column: 2;
    color: var(--neutral-100);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .cdb-hero h1 {
        font-size: 2.25rem;
    }

    .cdb-hero {
        flex-direction: column;
    }

    .cdb-sponsor {
        align-items: flex-start;
        margin-top: 0;
        text-align: left;
    }

    .cdb-form__grid,
    .cdb-scenarios,
    .cdb-kpis,
    .cdb-other-tools > div {
        grid-template-columns: 1fr;
    }

    .cdb-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 575.98px) {
    .cdb-card--calculator,
    .cdb-results {
        padding: 1.25rem;
    }

    .cdb-money-input,
    .cdb-duration-input {
        min-height: 3.25rem;
    }

    .cdb-duration-input select {
        flex-basis: 7rem;
        padding: 0 0.75rem;
    }

    .cdb-scenario-fields {
        grid-template-columns: 1fr;
    }

    .cdb-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cdb-clear,
    .cdb-submit {
        width: 100%;
    }

    .cdb-editorial h2,
    .cdb-faq h2,
    .cdb-other-tools h2 {
        font-size: 1.625rem;
    }

    .cdb-chart-wrapper {
        height: 18rem;
    }
}
