.otc-section {
    --otc-surface:     #ffffff;
    --otc-panel:       #faf8f6;
    --otc-track:       #f3efeb;
    --otc-line:        #e5dfd9;
    --otc-text:        #1f1b18;
    --otc-muted:       #6e655f;
    --otc-soft:        #9c928b;
    --otc-accent:      #8c523e;
    --otc-accent-soft: #f5ece8;
    --otc-sec:         #6b705c;
    --otc-sec-soft:    #f2f3ef;
    padding: 20px 0;
    color: var(--otc-text);
    font-family: var(--font, "Inter", Arial, sans-serif);
}

.otc-section *,
.otc-section *::before,
.otc-section *::after {
    box-sizing: border-box;
}

.otc-section [hidden] {
    display: none !important;
}

.otc-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.otc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.otc-sr-copy {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

/* Shell */
.otc {
    overflow: hidden;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(31, 27, 24, 0.06);
}

/* Top bar */
.otc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #fcfbfa;
    border-bottom: 1px solid var(--otc-line);
}

/* Segmented controls */
.otc-seg {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: var(--otc-track);
    border: 1px solid var(--otc-line);
    border-radius: 10px;
    max-width: 100%;
}

.otc-seg-btn {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--otc-muted);
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.otc-seg-btn:hover {
    color: var(--otc-text);
}

.otc-seg-btn.is-active {
    color: var(--otc-text);
    background: var(--otc-surface);
    box-shadow: 0 1px 3px rgba(31, 27, 24, 0.1);
}

.otc-seg--mult .otc-seg-btn.is-active {
    color: #ffffff;
    background: var(--otc-accent);
    box-shadow: 0 2px 6px rgba(140, 82, 62, 0.28);
}

/* Dropdowns */
.otc-status-dd {
    display: none;
}

.otc-select {
    height: 36px;
    padding: 0 32px 0 12px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--otc-text);
    background-color: var(--otc-track);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e655f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: 1px solid var(--otc-line);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.otc-select--full {
    width: 100%;
    height: 44px;
    background-color: var(--otc-surface);
    font-size: 0.875rem;
}

.otc-seg-btn:focus-visible,
.otc-step:focus-visible,
.otc-copy:focus-visible,
.otc-select:focus-visible {
    outline: 2px solid var(--otc-accent);
    outline-offset: 2px;
}

/* Two-column body */
.otc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Left: inputs */
.otc-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.otc-row-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.otc-card {
    overflow: hidden;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 12px;
}

.otc-card-body {
    padding: 12px 14px;
}

.otc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--otc-muted);
}

/* Stepper */
.otc-stepper {
    display: flex;
    align-items: stretch;
    height: 44px;
    overflow: hidden;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.otc-stepper:focus-within {
    border-color: var(--otc-accent);
    box-shadow: 0 0 0 3px rgba(140, 82, 62, 0.14);
}

.otc-step {
    flex: 0 0 42px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--otc-text);
    cursor: pointer;
    background: var(--otc-panel);
    border: 0;
    transition: background 0.15s;
}

.otc-step:first-child {
    border-right: 1px solid var(--otc-line);
}

.otc-step:last-child {
    border-left: 1px solid var(--otc-line);
}

.otc-step:hover {
    background: var(--otc-track);
}

.otc-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 6px;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--otc-text);
    text-align: center;
    background: transparent;
    border: 0;
    outline: 0;
    font-variant-numeric: tabular-nums;
}

.otc-input::placeholder {
    color: var(--otc-soft);
}

/* Range slider */
.otc-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 20px;
    margin: 12px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

.otc-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--otc-line);
    border: 0;
    border-radius: 99px;
}

.otc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    background: var(--otc-accent);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(31, 27, 24, 0.22);
    cursor: pointer;
}

.otc-range::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--otc-line);
    border: 0;
    border-radius: 99px;
}

.otc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--otc-accent);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(31, 27, 24, 0.22);
    cursor: pointer;
}

.otc-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 0.6875rem;
    color: var(--otc-soft);
}

.otc-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--otc-muted);
    text-align: center;
}

/* Right: result */
.otc-result {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    background: var(--otc-panel);
    border-left: 1px solid var(--otc-line);
}

.otc-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.otc-result-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--otc-text);
}

.otc-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--otc-text);
    cursor: pointer;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.otc-copy:hover:not(:disabled) {
    background: var(--otc-accent-soft);
    color: var(--otc-accent);
}

.otc-copy:disabled {
    cursor: not-allowed;
    color: var(--otc-soft);
}

.otc-icon {
    display: block;
    flex: 0 0 auto;
}

/* Empty state */
.otc-empty {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    text-align: center;
}

.otc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--otc-accent);
    background: var(--otc-accent-soft);
    border-radius: 12px;
}

.otc-empty-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--otc-muted);
}

/* Big number */
.otc-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    line-height: 1;
}

.otc-value-num {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--otc-accent);
    font-variant-numeric: tabular-nums;
}

.otc-value-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--otc-muted);
}

.otc-meta {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--otc-muted);
}

/* 3-Stat cards */
.otc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
}

.otc-stat {
    padding: 10px;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 10px;
}

.otc-stat dt {
    margin: 0 0 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--otc-muted);
}

.otc-stat dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--otc-text);
    font-variant-numeric: tabular-nums;
}

/* Cap / phase-out note */
.otc-note {
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c4a2d;
    background: var(--otc-accent-soft);
    border: 1px solid #ead9d2;
    border-radius: 8px;
}

/* Breakdown table */
.otc-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--otc-surface);
    border: 1px solid var(--otc-line);
    border-radius: 10px;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.otc-table th,
.otc-table td {
    padding: 8px 12px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--otc-line);
}

.otc-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--otc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--otc-panel);
    text-align: left;
}

.otc-table thead th:last-child,
.otc-table tbody td {
    text-align: right;
}

.otc-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--otc-muted);
}

.otc-table tbody td {
    font-weight: 700;
    color: var(--otc-text);
}

.otc-table tbody tr:last-child th,
.otc-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Responsive */
@media (max-width: 860px) {
    .otc-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .otc-result {
        border-top: 1px solid var(--otc-line);
        border-left: 0;
    }

    .otc-empty {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .otc-wrap {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .otc-section {
        padding: 14px 0;
    }

    .otc-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        gap: 8px;
    }

    .otc-seg--status {
        display: none;
    }

    .otc-status-dd {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .otc-status-dd .otc-select {
        width: 100%;
    }

    .otc-seg--mult {
        flex: 0 0 auto;
    }

    .otc-row-2 {
        grid-template-columns: 1fr;
    }

    .otc-inputs,
    .otc-result {
        padding: 12px;
        gap: 10px;
    }

    .otc-stats {
        gap: 6px;
    }

    .otc-stat {
        padding: 8px;
    }
}