.rcex-calc-app {
    --rcex-blue: #1289BE;
    --rcex-blue-dark: #0f6f9b;
    --rcex-bg: #f5f8fb;
    --rcex-card: #ffffff;
    --rcex-text: #16212d;
    --rcex-muted: #667085;
    --rcex-border: #d7e3ec;
    --rcex-warning-bg: #fff7e6;
    --rcex-warning-border: #f2c46d;
    color: var(--rcex-text);
    font-family: inherit;
    max-width: 1180px;
    margin: 0 auto;
}

.rcex-calc-app * {
    box-sizing: border-box;
}

.rcex-app-shell {
    background: var(--rcex-bg);
    border: 1px solid var(--rcex-border);
    border-radius: 18px;
    padding: 18px;
}

.rcex-app-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.rcex-app-title h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.rcex-app-title p {
    margin: 0;
    color: var(--rcex-muted);
    font-size: 15px;
}

.rcex-version-badge {
    border: 1px solid var(--rcex-border);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--rcex-muted);
    white-space: nowrap;
}

.rcex-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 18px;
}

.rcex-sidebar,
.rcex-panel,
.rcex-results-card {
    background: var(--rcex-card);
    border: 1px solid var(--rcex-border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

.rcex-sidebar {
    padding: 12px;
    align-self: start;
}

.rcex-category-label {
    margin: 14px 8px 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rcex-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rcex-category-label:first-child {
    margin-top: 4px;
}

.rcex-nav-btn {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--rcex-text);
    text-align: left;
    padding: 10px 11px;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.rcex-nav-btn:hover,
.rcex-nav-btn.is-active {
    border-color: var(--rcex-blue);
    background: rgba(18, 137, 190, 0.08);
    color: var(--rcex-blue-dark);
}

.rcex-panel {
    padding: 18px;
}

.rcex-calculator-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.rcex-calculator-heading h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.rcex-calculator-heading p {
    margin: 0;
    color: var(--rcex-muted);
}

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

.rcex-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rcex-input-group label {
    font-weight: 700;
    font-size: 13px;
}

.rcex-input-group input,
.rcex-input-group select {
    width: 100%;
    border: 1px solid var(--rcex-border);
    border-radius: 11px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    color: var(--rcex-text);
}

.rcex-input-help {
    color: var(--rcex-muted);
    font-size: 12px;
}

.rcex-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0;
}

.rcex-primary-btn,
.rcex-secondary-btn {
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.rcex-primary-btn {
    background: var(--rcex-blue);
    border: 1px solid var(--rcex-blue);
    color: #fff;
    min-width: min(100%, 280px);
    padding: 14px 24px;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(0, 128, 183, 0.18);
}

.rcex-primary-btn:hover {
    background: var(--rcex-blue-dark);
}

.rcex-secondary-btn {
    background: #fff;
    border: 1px solid var(--rcex-blue);
    color: var(--rcex-blue-dark);
}

.rcex-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rcex-results-card {
    padding: 14px;
}

.rcex-result-label {
    color: var(--rcex-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rcex-result-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 800;
}

.rcex-result-unit {
    font-size: 13px;
    color: var(--rcex-muted);
    margin-left: 4px;
}

.rcex-warning-box {
    margin-top: 14px;
    border: 1px solid var(--rcex-warning-border);
    background: var(--rcex-warning-bg);
    border-radius: 14px;
    padding: 12px 14px;
}

.rcex-warning-box strong {
    display: block;
    margin-bottom: 4px;
}

.rcex-placeholder {
    border: 1px dashed var(--rcex-border);
    border-radius: 16px;
    padding: 18px;
    background: #fbfdff;
}

.rcex-placeholder ul {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .rcex-layout {
        grid-template-columns: 1fr;
    }

    .rcex-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rcex-category-label {
        grid-column: 1 / -1;
    }

    .rcex-results-grid,
    .rcex-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .rcex-app-header,
    .rcex-calculator-heading {
        flex-direction: column;
    }

    .rcex-sidebar {
        grid-template-columns: 1fr;
    }
}

.rcex-section {
    border: 1px solid var(--rcex-border);
    border-radius: 16px;
    background: #fbfdff;
    margin-bottom: 14px;
    overflow: hidden;
}

.rcex-section summary {
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 800;
    background: #ffffff;
    border-bottom: 1px solid var(--rcex-border);
}

.rcex-section[open] summary {
    margin-bottom: 14px;
}

.rcex-section .rcex-form-grid {
    padding: 0 15px 15px;
}

.rcex-setup-summary {
    border: 1px solid var(--rcex-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: var(--rcex-muted);
}

.rcex-setup-summary strong {
    color: var(--rcex-text);
}

.rcex-results-grid-main {
    margin-bottom: 12px;
}

.rcex-results-grid-main .rcex-results-card:first-child {
    border-color: var(--rcex-blue);
    box-shadow: 0 12px 30px rgba(18, 137, 190, 0.12);
}

.rcex-result-sub {
    margin-top: 5px;
    color: var(--rcex-muted);
    font-size: 12px;
    line-height: 1.35;
}

.rcex-warning-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 8px;
}

.rcex-warning-list li {
    border: 1px solid var(--rcex-border);
    border-left-width: 5px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 11px;
}

.rcex-warning-list li strong {
    display: block;
    margin-bottom: 3px;
}

.rcex-warning-list li span {
    color: var(--rcex-muted);
    font-size: 13px;
}

.rcex-warning-list li.is-good {
    border-left-color: #16a34a;
}

.rcex-warning-list li.is-info {
    border-left-color: var(--rcex-blue);
}

.rcex-warning-list li.is-warn {
    border-left-color: #f59e0b;
}

.rcex-warning-list li.is-danger {
    border-left-color: #dc2626;
}

.rcex-model-note {
    margin-top: 14px;
    border: 1px solid var(--rcex-border);
    background: #fbfdff;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--rcex-muted);
    font-size: 13px;
}

.rcex-model-note strong {
    color: var(--rcex-text);
}

@media (max-width: 900px) {
    .rcex-section .rcex-form-grid {
        grid-template-columns: 1fr;
    }
}

.rcex-data-note {
    border: 1px solid var(--rcex-border);
    background: #f9fcff;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    color: var(--rcex-muted);
    font-size: 14px;
}

.rcex-data-note strong {
    color: var(--rcex-text);
}

.rcex-assumption-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rcex-assumption-pill {
    border: 1px solid var(--rcex-border);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.rcex-assumption-pill span {
    display: block;
    color: var(--rcex-muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.rcex-assumption-pill strong {
    display: block;
    font-size: 15px;
}

.rcex-small-muted {
    color: var(--rcex-muted);
    font-size: 13px;
    margin-top: 6px;
}

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


/* V0.003: protect form controls from theme fonts/line-height clipping text. */
.rcex-calc-app .rcex-input-group input,
.rcex-calc-app .rcex-input-group select {
    min-height: 50px;
    height: auto;
    line-height: 1.35;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
    text-overflow: ellipsis;
}

.rcex-calc-app .rcex-input-group select {
    appearance: auto;
    -webkit-appearance: menulist;
}

.rcex-calc-app .rcex-result-value {
    line-height: 1.12;
}

.rcex-calc-app .rcex-result-label,
.rcex-calc-app .rcex-assumption-pill span {
    line-height: 1.25;
}

.rcex-battery-picker input[type="search"] {
    width: 100%;
    border: 1px solid var(--rcex-border);
    border-radius: 11px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    color: var(--rcex-text);
}

.rcex-loading {
    border: 1px solid var(--rcex-border);
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    color: var(--rcex-muted);
    font-weight: 700;
}

/* V0.008 result spacing and two-speed layout */
.rcex-results-grid-speeds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
}

.rcex-results-metrics {
    margin-top: 28px;
}

.rcex-battery-picker input[list] {
    width: 100%;
    border: 1px solid var(--rcex-border);
    border-radius: 11px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    color: var(--rcex-text);
}

@media (max-width: 760px) {
    .rcex-results-grid-speeds {
        grid-template-columns: 1fr;
    }
}

/* V0.011 planned member feature cards */
.rcex-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 15px 15px;
}

.rcex-feature-card {
    border: 1px solid var(--rcex-border);
    border-radius: 14px;
    background: #fff;
    padding: 13px;
}

.rcex-feature-card strong {
    display: block;
    margin-bottom: 5px;
}

.rcex-feature-card span {
    display: block;
    color: var(--rcex-muted);
    font-size: 13px;
    line-height: 1.35;
}

.rcex-feature-note {
    padding: 0 15px 15px;
}

@media (max-width: 900px) {
    .rcex-feature-grid {
        grid-template-columns: 1fr;
    }
}


/* V0.012 member tools and CTA links */
.rcex-assumption-pill a,
.rcex-cta-row a,
.rcex-feature-card a {
    color: #0b79b7;
    font-weight: 700;
    text-decoration: none;
}
.rcex-assumption-pill a:hover,
.rcex-cta-row a:hover,
.rcex-feature-card a:hover {
    text-decoration: underline;
}
.rcex-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
}
.rcex-cta-row a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #b9dced;
    border-radius: 999px;
    background: #f2fbff;
}
.rcex-saved-setups {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d8e3ec;
    border-radius: 12px;
    background: #fff;
}
.rcex-saved-setups ul {
    margin: 8px 0 0 20px;
}
.rcex-saved-setups li {
    margin: 5px 0;
}
.rcex-feature-card .rcex-secondary-btn {
    margin-top: 10px;
    width: fit-content;
}

/* V0.013 spacing and saved setup loading */
.rcex-assumption-grid {
    margin-bottom: 26px;
}
.rcex-results-grid-speeds {
    margin-top: 6px;
}
.rcex-saved-setups li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #edf2f7;
}
.rcex-saved-setups li:last-child {
    border-bottom: 0;
}
.rcex-mini-btn {
    border: 1px solid var(--rcex-blue);
    background: #fff;
    color: var(--rcex-blue-dark);
    border-radius: 999px;
    padding: 5px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.rcex-mini-btn:hover {
    background: rgba(18, 137, 190, 0.08);
}
@media (max-width: 560px) {
    .rcex-saved-setups li {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* V0.014 saved setup buttons, stronger result spacing, and member controls */
.rcex-calc-app .rcex-assumption-grid {
    margin-bottom: 38px !important;
}
.rcex-calc-app .rcex-results-grid-speeds {
    margin-top: 18px !important;
    margin-bottom: 34px !important;
}
.rcex-saved-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.rcex-mini-btn,
.rcex-mini-btn:visited {
    background: #eaf7fd;
    color: #075f8c;
    border-color: #1289BE;
}
.rcex-mini-btn:hover,
.rcex-mini-btn:focus {
    background: #1289BE;
    color: #ffffff;
    border-color: #0f6f9b;
    text-decoration: none;
}
.rcex-mini-btn-danger,
.rcex-mini-btn-danger:visited {
    background: #fff5f5;
    color: #9b1c1c;
    border-color: #f0a0a0;
}
.rcex-mini-btn-danger:hover,
.rcex-mini-btn-danger:focus {
    background: #b42318;
    color: #ffffff;
    border-color: #b42318;
}
@media (max-width: 560px) {
    .rcex-saved-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* V0.015/V0.016 saved setup count note */
.rcex-saved-limit-note {
    display: block;
    margin-top: 3px;
    color: var(--rcex-muted);
    font-size: 12px;
    font-weight: 400;
}


/* V0.016 saved setup pagination and disabled mini buttons */
.rcex-saved-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--rcex-muted);
}
.rcex-mini-btn:disabled,
.rcex-mini-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f3f7fa;
    color: #6b7b88;
    border-color: #cbd7e0;
}
.rcex-feature-card .rcex-secondary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* V0.018 saved setup cards, tier bar, and paid feature preview */
.rcex-member-tier-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #cfe5f1;
    border-radius: 12px;
    background: #f5fbff;
}
.rcex-member-tier-bar strong {
    color: #0b4f73;
}
.rcex-member-tier-bar span {
    color: var(--rcex-muted);
}
.rcex-member-tier-bar a {
    margin-left: auto;
    color: #0b79b7;
    font-weight: 700;
    text-decoration: none;
}
.rcex-member-tier-bar a:hover {
    text-decoration: underline;
}
.rcex-saved-card-list {
    list-style: none;
    margin: 10px 0 0 !important;
    padding: 0;
}
.rcex-saved-setups .rcex-saved-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #e3edf5;
    border-radius: 12px;
    background: #fbfdff;
}
.rcex-saved-card-main {
    min-width: 0;
    flex: 1 1 auto;
}
.rcex-saved-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
}
.rcex-saved-title-row span {
    color: var(--rcex-muted);
    font-size: 12px;
}
.rcex-saved-meta {
    margin-top: 4px;
    color: #435364;
}
.rcex-saved-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.rcex-saved-stats span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6fb;
    color: #203040;
    font-size: 12px;
    font-weight: 700;
}
.rcex-paid-preview {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d8e3ec;
    border-radius: 12px;
    background: #ffffff;
}
.rcex-paid-preview h4 {
    margin: 0 0 10px;
    font-size: 16px;
}
.rcex-paid-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.rcex-paid-preview-card {
    padding: 12px;
    border: 1px dashed #b8d7e8;
    border-radius: 12px;
    background: #f8fcff;
}
.rcex-paid-preview-card strong,
.rcex-paid-preview-card span {
    display: block;
}
.rcex-paid-preview-card span {
    margin-top: 5px;
    color: var(--rcex-muted);
    font-size: 13px;
}
@media (max-width: 760px) {
    .rcex-member-tier-bar a {
        margin-left: 0;
    }
    .rcex-paid-preview-grid {
        grid-template-columns: 1fr;
    }
    .rcex-saved-setups .rcex-saved-card {
        flex-direction: column;
    }
}

/* V0.018 prediction-history summary */
.rcex-saved-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e9f3;
    border-radius: 12px;
    background: #f7fcff;
}
.rcex-saved-insights > div {
    padding: 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5eef5;
}
.rcex-saved-insights strong,
.rcex-saved-insights span {
    display: block;
}
.rcex-saved-insights span {
    margin-top: 4px;
    color: var(--rcex-muted);
    font-size: 12px;
}
.rcex-saved-insights-muted {
    display: block;
}
@media (max-width: 760px) {
    .rcex-saved-insights {
        grid-template-columns: 1fr;
    }
}

/* V0.019 visual separation and battery comparison beta */
.rcex-calculation-zone {
    margin-top: 20px;
    padding: 18px;
    border: 2px solid #cfe7f5;
    border-radius: 18px;
    background: linear-gradient(180deg, #f6fcff 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(18, 75, 112, 0.08);
}
.rcex-zone-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dbeaf3;
}
.rcex-zone-heading span {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e5f5fb;
    color: #0c6f9e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rcex-zone-heading h4 {
    margin: 0;
    font-size: 22px;
    color: #10263a;
}
.rcex-zone-heading p {
    margin: 0;
    color: var(--rcex-muted);
}
.rcex-member-section {
    margin-top: 24px;
    border: 2px solid #e5e0f4;
    background: #fbfaff;
}
.rcex-member-section > summary {
    background: #f3f0ff;
    color: #2d2354;
}
.rcex-battery-compare-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #cfe3ef;
    border-radius: 14px;
    background: #f7fcff;
}
.rcex-battery-compare-panel strong,
.rcex-battery-compare-panel span {
    display: block;
}
.rcex-battery-compare-panel span {
    margin-top: 5px;
    color: var(--rcex-muted);
}
.rcex-battery-comparison-output {
    grid-column: 1 / -1;
}
.rcex-compare-summary,
.rcex-compare-empty {
    margin: 10px 0;
    color: #42566a;
    font-size: 13px;
}
.rcex-compare-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe8f0;
    border-radius: 12px;
    background: #ffffff;
}
.rcex-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.rcex-compare-table th,
.rcex-compare-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #edf3f7;
    text-align: left;
    font-size: 13px;
}
.rcex-compare-table th {
    background: #eef8fd;
    color: #18364b;
    font-weight: 800;
}
.rcex-compare-table tr:last-child td {
    border-bottom: 0;
}
@media (max-width: 760px) {
    .rcex-battery-compare-panel {
        grid-template-columns: 1fr;
    }
}

/* V0.020 member feature clarity */
.rcex-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eaf6ff;
    color: #006aa6;
    border: 1px solid #b9ddf2;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rcex-current-row td {
    background: #f8fcff;
    font-weight: 700;
}
.rcex-paid-preview-card-active {
    border-color: #b9ddf2;
    background: #f8fcff;
}
.rcex-paid-preview-card em {
    display: inline-block;
    margin-top: 10px;
    color: #5b6b7a;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rcex-gearing-comparison-output {
    margin-top: 12px;
}

/* V0.021 comparison panel/table cleanup */
.rcex-gearing-compare-panel {
    background: #fbfdff;
}
.rcex-compare-table-wrap {
    border: 1px solid #dbe8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.rcex-compare-table-wrap .rcex-compare-table {
    margin: 0;
}
.rcex-compare-table {
    border-collapse: separate;
    border-spacing: 0;
}
.rcex-compare-table th,
.rcex-compare-table td {
    border-right: 1px solid #edf3f7;
}
.rcex-compare-table th:last-child,
.rcex-compare-table td:last-child {
    border-right: 0;
}
.rcex-compare-table tr:last-child td {
    border-bottom: 0;
}
.rcex-compare-table th:first-child {
    border-top-left-radius: 11px;
}
.rcex-compare-table th:last-child {
    border-top-right-radius: 11px;
}
.rcex-paid-preview-card-active .rcex-mini-btn {
    margin-top: 10px;
}


/* V0.022 member panels, safer comparison layout, and report/garage tools */
.rcex-battery-compare-panel,
.rcex-member-tool-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
}
.rcex-battery-compare-panel > .rcex-secondary-btn,
.rcex-member-tool-panel > .rcex-secondary-btn,
.rcex-member-tool-panel > .rcex-secondary-link-btn {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
.rcex-secondary-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--rcex-blue);
    background: #fff;
    color: var(--rcex-blue-dark);
    font-weight: 700;
    text-decoration: none;
}
.rcex-secondary-link-btn:hover,
.rcex-secondary-link-btn:focus {
    background: rgba(18, 137, 190, 0.08);
    text-decoration: none;
}
.rcex-member-tool-panel {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #cfe3ef;
    border-radius: 14px;
    background: #fbfdff;
}
.rcex-member-tool-panel strong,
.rcex-member-tool-panel span {
    display: block;
}
.rcex-member-tool-panel span {
    margin-top: 5px;
    color: var(--rcex-muted);
}
.rcex-compare-table-wrap {
    border: 1px solid #d5e5ef !important;
    border-radius: 12px !important;
    overflow: auto !important;
    background: #ffffff;
}
.rcex-compare-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}
.rcex-compare-table th:first-child {
    border-top-left-radius: 11px;
}
.rcex-compare-table th:last-child {
    border-top-right-radius: 11px;
}
.rcex-compare-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 11px;
}
.rcex-compare-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 11px;
}
.rcex-garage-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.rcex-garage-stats > div {
    padding: 10px;
    border: 1px solid #e1ecf3;
    border-radius: 10px;
    background: #fff;
}
.rcex-garage-stats strong,
.rcex-garage-stats span {
    display: block;
}
.rcex-garage-stats span {
    color: var(--rcex-muted);
    font-size: 12px;
    margin-top: 4px;
}
@media (max-width: 900px) {
    .rcex-garage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .rcex-garage-stats {
        grid-template-columns: 1fr;
    }
}

/* V0.025 table border and membership-access cleanup */
.rcex-compare-table-wrap {
    border: 1px solid #d8e6ef !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: none !important;
}
.rcex-compare-table-wrap .rcex-compare-table,
.rcex-compare-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.rcex-compare-table th,
.rcex-compare-table td {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid #d8e6ef !important;
    border-bottom: 1px solid #edf3f7 !important;
}
.rcex-compare-table th:last-child,
.rcex-compare-table td:last-child {
    border-right: 0 !important;
}
.rcex-compare-table tbody tr:last-child td {
    border-bottom: 0 !important;
}
.rcex-plan-access-note {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #d8e6ef;
    border-radius: 14px;
    background: #f7fbfe;
    display: grid;
    gap: 8px;
}
.rcex-plan-access-note > strong {
    font-size: 1.05rem;
}
.rcex-plan-access-note > span {
    color: #4d6071;
}
.rcex-plan-access-note summary {
    cursor: pointer;
    font-weight: 700;
    color: #005b8f;
    margin-top: 4px;
}
.rcex-plan-table-wrap {
    margin-top: 10px !important;
}

/* V0.025 comparison table cleanup: keep the table border on the wrapper only. */
.rcex-compare-table-wrap {
    border: 1px solid #d7e5ef !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.rcex-compare-table {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}
.rcex-compare-table th,
.rcex-compare-table td {
    border-top: 0 !important;
    border-left: 0 !important;
}
.rcex-compare-table th:first-child,
.rcex-compare-table td:first-child {
    border-left: 0 !important;
}
.rcex-compare-table thead th {
    border-top: 0 !important;
}

/* V0.029 FE Boat module and shared panel polish */
.rcex-button-row-primary {
    display: flex;
    justify-content: center;
    margin: 22px 0;
}

.rcex-primary-btn-large {
    width: min(100%, 440px);
    min-height: 54px;
}

.rcex-results-shell {
    border: 1px solid var(--rcex-border);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    margin-top: 18px;
    box-shadow: 0 8px 22px rgba(8, 35, 48, 0.05);
}

.rcex-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--rcex-border);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.rcex-section-title h3 {
    margin: 0;
}

.rcex-section-title p {
    margin: 4px 0 0;
    color: var(--rcex-muted);
    font-size: 14px;
}


/* V0.032 FE boat catalog picker */
.rcex-component-picker {
    display: contents;
}
.rcex-component-picker .rcex-input-group select {
    width: 100%;
}


.rcex-fe-component-stack {
    display: grid;
    gap: 14px;
}

.rcex-fe-component-section {
    border-left: 4px solid rgba(18, 137, 190, 0.32);
}

.rcex-component-picker {
    display: contents;
}

.rcex-component-summary {
    align-self: stretch;
    border: 1px solid var(--rcex-border);
    background: #f8fbfd;
    border-radius: 12px;
    padding: 12px;
    color: var(--rcex-muted);
    font-size: 13px;
}

.rcex-component-summary strong {
    color: var(--rcex-text);
    display: block;
    margin-bottom: 4px;
}

.rcex-advanced-inline {
    margin-top: 14px;
    border: 1px dashed var(--rcex-border);
    border-radius: 12px;
    padding: 10px 12px 12px;
    background: #fff;
}

.rcex-advanced-inline > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--rcex-blue-dark);
    margin-bottom: 10px;
}

.rcex-fe-results-table-wrap {
  margin-top: 18px;
  border: 1px solid #d7e6f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}
.rcex-fe-results-table-wrap h4 { margin: 0 0 12px; }
.rcex-fe-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rcex-fe-detail-grid > div {
  border: 1px solid #d7e6f0;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}
.rcex-fe-detail-grid h5 { margin: 0 0 10px; font-size: 1rem; }
.rcex-fe-detail-grid dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 8px 12px; align-items: start; }
.rcex-fe-detail-grid dt { color: #5b6b82; border-bottom: 1px solid #edf3f8; padding-bottom: 6px; }
.rcex-fe-detail-grid dd { margin: 0; font-weight: 700; text-align: right; border-bottom: 1px solid #edf3f8; padding-bottom: 6px; }
@media (max-width: 900px) { .rcex-fe-detail-grid { grid-template-columns: 1fr; } }


/* V0.041 comparison export button positioning */
.rcex-compare-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 12px 0 10px;
    width: 100%;
}
.rcex-compare-actions .rcex-mini-btn {
    white-space: nowrap;
}
@media (max-width: 640px) {
    .rcex-compare-actions {
        justify-content: stretch;
    }
    .rcex-compare-actions .rcex-mini-btn {
        width: 100%;
        text-align: center;
    }
}


.rcex-fe-rating {
    margin: 14px 0 16px;
    border: 1px solid var(--rcex-border);
    border-left-width: 6px;
    background: #ffffff;
    border-radius: 16px;
    padding: 13px 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.rcex-fe-rating strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}
.rcex-fe-rating span {
    display: block;
    color: var(--rcex-muted);
    line-height: 1.45;
}
.rcex-fe-rating .rcex-rating-reasons {
    margin-top: 5px;
    font-size: 13px;
}
.rcex-fe-rating.is-good { border-left-color: #16a34a; background: #f7fff9; }
.rcex-fe-rating.is-info { border-left-color: var(--rcex-blue); background: #f5fbff; }
.rcex-fe-rating.is-warn { border-left-color: #f59e0b; background: #fffaf0; }
.rcex-fe-rating.is-danger { border-left-color: #dc2626; background: #fff5f5; }

/* V0.054 RC Car Gear Calculator button cleanup */
.rcex-gear-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 24px 0 8px;
}

.rcex-gear-actions .rcex-primary-btn {
    width: min(100%, 360px);
    min-height: 52px;
}

.rcex-gear-actions .rcex-secondary-btn {
    min-height: 44px;
    padding-left: 22px;
    padding-right: 22px;
}

@media (max-width: 640px) {
    .rcex-gear-actions .rcex-primary-btn,
    .rcex-gear-actions .rcex-secondary-btn {
        width: 100%;
    }
}

/* V0.055 RC Car Gear Calculator output cleanup */
.rcex-gear-output-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--rcex-border);
}

.rcex-gear-output-heading strong {
    font-size: 24px;
    line-height: 1.15;
    color: var(--rcex-text);
}

.rcex-gear-output-heading span {
    color: var(--rcex-muted);
    line-height: 1.45;
}

.rcex-gear-result-groups {
    display: grid;
    gap: 16px;
}

.rcex-gear-result-group {
    border: 1px solid var(--rcex-border);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.rcex-gear-result-group h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--rcex-text);
}

.rcex-gear-result-group p {
    margin: 0 0 12px;
    color: var(--rcex-muted);
    line-height: 1.45;
}

.rcex-gear-result-group .rcex-result-card {
    border: 1px solid var(--rcex-border);
    border-radius: 14px;
    background: #fdfefe;
    padding: 14px;
}

.rcex-gear-result-group .rcex-result-main {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--rcex-text);
}

.rcex-gear-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--rcex-soft-blue);
    color: var(--rcex-muted);
    line-height: 1.45;
}

.rcex-gear-note strong {
    color: var(--rcex-text);
}


/* V0.056 RC Car Gear Calculator user-facing notes and input grouping */
.rcex-gear-input-section {
    position: relative;
    overflow: hidden;
}

.rcex-gear-input-section > summary {
    font-weight: 800;
}

.rcex-gear-pitch-input {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.10), rgba(255, 255, 255, 0.92) 42%);
    border-color: #bae6fd;
}

.rcex-gear-pitch-input > summary {
    color: #075985;
}

.rcex-gear-ratio-input {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0.92) 42%);
    border-color: #ddd6fe;
}

.rcex-gear-ratio-input > summary {
    color: #4c1d95;
}

.rcex-gear-result-group:first-child {
    border-color: #bae6fd;
    background: #f8fdff;
}

.rcex-gear-result-group:first-child h4 {
    color: #075985;
}

.rcex-gear-result-group:nth-child(2) {
    border-color: #ddd6fe;
    background: #fbfaff;
}

.rcex-gear-result-group:nth-child(2) h4 {
    color: #4c1d95;
}


/* V0.059 Real LiPo C-Rating Calculator */
.rcex-lipo-input-section {
    position: relative;
    overflow: hidden;
}
.rcex-lipo-input-section > summary {
    font-weight: 800;
}
.rcex-lipo-test-input {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bbf7d0;
}
.rcex-lipo-test-input > summary {
    color: #166534;
}
.rcex-lipo-method-input {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.09), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bae6fd;
}
.rcex-lipo-method-input > summary {
    color: #075985;
}
.rcex-method-list {
    display: grid;
    gap: 12px;
}
.rcex-method-list > div {
    border: 1px solid var(--rcex-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}
.rcex-method-list strong,
.rcex-method-list span {
    display: block;
}
.rcex-method-list span {
    margin-top: 4px;
    color: var(--rcex-muted);
    line-height: 1.45;
}
.rcex-lipo-output-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--rcex-border);
}
.rcex-lipo-output-heading strong {
    font-size: 24px;
    line-height: 1.15;
    color: var(--rcex-text);
}
.rcex-lipo-output-heading span {
    color: var(--rcex-muted);
    line-height: 1.45;
}
.rcex-lipo-rating-read {
    border-left: 5px solid var(--rcex-blue);
    border-radius: 14px;
    background: #f8fbff;
    padding: 13px 15px;
    margin-bottom: 16px;
}
.rcex-lipo-rating-read strong,
.rcex-lipo-rating-read span {
    display: block;
}
.rcex-lipo-rating-read span {
    color: var(--rcex-muted);
    margin-top: 4px;
    line-height: 1.45;
}
.rcex-lipo-rating-read.is-good { border-left-color: #16a34a; background: #f7fff9; }
.rcex-lipo-rating-read.is-info { border-left-color: var(--rcex-blue); background: #f5fbff; }
.rcex-lipo-rating-read.is-warn { border-left-color: #f59e0b; background: #fffaf0; }

/* V0.062 LiPo pack saving */
.rcex-lipo-member-tools { margin-top: 1.25rem; }
.rcex-lipo-pack-group { margin-top: 1rem; }
.rcex-lipo-pack-group h4 { margin: 0 0 .65rem; font-size: .95rem; color: #1f2937; }

.rcex-lipo-history-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06));
  margin: 14px 0;
}
.rcex-lipo-history-summary strong { display: block; font-size: 1rem; }
.rcex-lipo-history-summary span { display: block; color: #475569; margin-top: 3px; }
.rcex-lipo-pack-group-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rcex-lipo-pack-group-head h4 { margin: 0; }
.rcex-lipo-trend-summary {
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.rcex-lipo-trend-chart {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}
.rcex-lipo-trend-chart svg {
  width: 100%;
  height: 70px;
  overflow: visible;
}
.rcex-lipo-trend-chart polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rcex-lipo-trend-chart span {
  color: #64748b;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .rcex-lipo-history-summary,
  .rcex-lipo-pack-group-head {
    align-items: stretch;
    flex-direction: column;
  }
  .rcex-lipo-history-summary .rcex-secondary-btn,
  .rcex-lipo-pack-group-head .rcex-mini-btn {
    width: 100%;
  }
}

/* V0.064 speed-run component-style input grouping and saved pack visibility */
.rcex-speed-input-section {
    position: relative;
    overflow: hidden;
}
.rcex-speed-input-section > summary {
    font-weight: 800;
}
.rcex-speed-setup-input {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.09), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bfdbfe;
}
.rcex-speed-setup-input > summary { color: #1d4ed8; }
.rcex-speed-vehicle-input {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.09), rgba(255, 255, 255, 0.94) 42%);
    border-color: #a7f3d0;
}
.rcex-speed-vehicle-input > summary { color: #047857; }
.rcex-speed-motor-input {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #fed7aa;
}
.rcex-speed-motor-input > summary { color: #c2410c; }
.rcex-speed-battery-input {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bbf7d0;
}
.rcex-speed-battery-input > summary { color: #166534; }
.rcex-speed-gearing-input {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #ddd6fe;
}
.rcex-speed-gearing-input > summary { color: #4c1d95; }


/* V0.066 charger input color grouping */
.rcex-charger-input-section {
    position: relative;
    overflow: hidden;
}
.rcex-charger-input-section > summary {
    font-weight: 800;
}
.rcex-charger-pack-input {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bbf7d0;
}
.rcex-charger-pack-input > summary { color: #166534; }
.rcex-charger-power-input {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.10), rgba(255, 255, 255, 0.94) 42%);
    border-color: #bae6fd;
}
.rcex-charger-power-input > summary { color: #075985; }

.rcex-results-card.is-estimated-data {
    border-color: #dc2626;
    background: #fff5f5;
    box-shadow: 0 10px 26px rgba(220, 38, 38, 0.12);
}

.rcex-results-card.is-estimated-data .rcex-result-label,
.rcex-results-card.is-estimated-data .rcex-result-sub {
    color: #991b1b;
}

.rcex-airplane-primary { border-color:#b8d7ff; background:#f7fbff; }
.rcex-airplane-primary > summary { color:#084c8d; }
.rcex-airplane-reference { border-color:#d4c3ff; background:#fbf9ff; }
.rcex-airplane-reference > summary { color:#5834a8; }
.rcex-airplane-image-wrap { background:#fff; border:1px solid #d8e3ef; border-radius:18px; padding:12px; text-align:center; margin:10px 0; overflow:auto; }
.rcex-airplane-image-wrap img { max-width:100%; height:auto; display:block; margin:0 auto; }
.rcex-airplane-main-result { background:#f7fbff; border-color:#b8d7ff; }
.rcex-airplane-control-result { background:#fffaf3; border-color:#ffd6a6; }
.rcex-airplane-performance-result { background:#f6fff8; border-color:#b8e5c2; }
.rcex-airplane-result-groups .rcex-results-grid { margin-top:10px; }


/* V0.079 RC Boat Calculator */
.rcex-boat-input-section { border-color: #bae6fd; }
.rcex-boat-input-section > summary { color: #075985; }
.rcex-boat-brushless-input { background: linear-gradient(180deg, #f0f9ff, #ffffff); }
.rcex-boat-pitch-input { background: linear-gradient(180deg, #f0fdf4, #ffffff); border-color: #bbf7d0; }
.rcex-boat-pitch-input > summary { color: #166534; }
.rcex-boat-prop-input { background: linear-gradient(180deg, #fff7ed, #ffffff); border-color: #fed7aa; }
.rcex-boat-prop-input > summary { color: #9a3412; }
.rcex-boat-gas-input { background: linear-gradient(180deg, #fef2f2, #ffffff); border-color: #fecaca; }
.rcex-boat-gas-input > summary { color: #991b1b; }
.rcex-boat-hull-input { background: linear-gradient(180deg, #faf5ff, #ffffff); border-color: #e9d5ff; }
.rcex-boat-hull-input > summary { color: #6b21a8; }
.rcex-boat-result-groups { display: grid; gap: 14px; }
.rcex-boat-result-group { border-radius: 18px; }
.rcex-boat-speed-output { border-color: #bae6fd; background: #f0f9ff; }
.rcex-boat-pitch-output { border-color: #bbf7d0; background: #f0fdf4; }
.rcex-boat-prop-output { border-color: #fed7aa; background: #fff7ed; }
.rcex-boat-gas-output { border-color: #fecaca; background: #fef2f2; }
.rcex-boat-hull-output { border-color: #e9d5ff; background: #faf5ff; }

/* V0.109 Battery Benchmark Explorer expanded metric details */
.rcex-benchmark-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f4c81;
}
.rcex-benchmark-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
    min-width: 360px;
}
.rcex-benchmark-metric-grid span {
    display: block;
    border: 1px solid #d8e3ef;
    background: #f8fbff;
    border-radius: 10px;
    padding: 8px;
}
.rcex-benchmark-metric-grid strong,
.rcex-benchmark-metric-grid em {
    display: block;
}
.rcex-benchmark-metric-grid strong {
    font-size: 0.78rem;
    color: #475569;
}
.rcex-benchmark-metric-grid em {
    font-style: normal;
    font-weight: 800;
    color: #0f172a;
    margin-top: 3px;
}
.rcex-muted { color: #64748b; }

/* V0.118 Battery Benchmark soft-lock full-width 50/50 right-side preview layout */

.rcex-battery-lock-inline {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
}
.rcex-battery-picker.is-battery-locked input[name="batteryPicker"] {
    background: #f4f6f8;
    color: #64748b;
    cursor: not-allowed;
}
.rcex-battery-lock-note {
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}
.rcex-battery-lock-note strong { color: #1f2937; }
.rcex-battery-lock-note span { color: #475569; font-size: 0.9rem; line-height: 1.25; }
.rcex-battery-lock-note a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.rcex-locked-battery-preview {
    margin-top: 0;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    display: block;
    min-width: 0;
    min-height: 250px;
}
.rcex-locked-battery-preview-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.rcex-locked-battery-chip-grid {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    max-height: 218px;
    padding-right: 4px;
}
.rcex-locked-battery-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    padding: 4px 8px;
    background: #eef2f7;
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.78;
    white-space: nowrap;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .rcex-battery-lock-inline {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .rcex-battery-lock-inline {
        grid-template-columns: 1fr;
    }
}
