/* Motor Spoke Calculator — design matching the screenshot */
.msc-wrapper-54bd8ad9 {
    max-width: 1120px;
    margin: 24px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a202c;
}

/* Header */
.msc-header-54bd8ad9 {
    margin-bottom: 28px;
}
.msc-header-54bd8ad9 h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px 0;
    color: #1a202c;
}
.msc-subtitle-54bd8ad9 {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    max-width: 700px;
}

/* Preset block (like "Техническая информация") */
.msc-preset-block-54bd8ad9 {
    background: #f7fafc;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
}
.msc-preset-label-54bd8ad9 {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
}
.msc-preset-select-54bd8ad9 {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
    min-width: 200px;
}
.msc-preset-hint-54bd8ad9 {
    font-size: 0.75rem;
    color: #718096;
    margin-left: auto;
}

/* Grid */
.msc-grid-54bd8ad9 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards */
.msc-card-54bd8ad9,
.msc-results-card-54bd8ad9,
.msc-diagram-54bd8ad9,
.msc-calculation-info-54bd8ad9 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px 20px;
    margin-bottom: 16px;
}
.msc-card-54bd8ad9:last-child,
.msc-results-card-54bd8ad9:last-child {
    margin-bottom: 0;
}

.msc-card-header-54bd8ad9 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.msc-card-icon-54bd8ad9 {
    font-size: 1.2rem;
}
.msc-card-title-54bd8ad9 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}
.msc-card-subtitle-54bd8ad9 {
    font-size: 0.75rem;
    color: #718096;
    margin-left: auto;
    font-weight: 400;
}

/* Field rows */
.msc-field-row-54bd8ad9 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 12px;
}
.msc-field-row-54bd8ad9:last-child {
    margin-bottom: 0;
}

.msc-field-54bd8ad9 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.msc-field-54bd8ad9 label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
}
.msc-field-unit-54bd8ad9 {
    font-weight: 400;
    color: #a0aec0;
    font-size: 0.7rem;
}
.msc-field-54bd8ad9 input,
.msc-field-54bd8ad9 select {
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.msc-field-54bd8ad9 input:focus,
.msc-field-54bd8ad9 select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
    background: #fff;
}
.msc-field-hint-54bd8ad9 {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* Side groups (left/right) */
.msc-side-group-54bd8ad9 {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #edf2f7;
}
.msc-side-group-54bd8ad9:last-child {
    margin-bottom: 0;
}
.msc-side-label-54bd8ad9 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}
.msc-side-left-54bd8ad9 {
    color: #3182ce;
}
.msc-side-right-54bd8ad9 {
    color: #e53e3e;
}

.msc-full-width-54bd8ad9 {
    margin-top: 10px;
}

/* Consent block */
.msc-consent-block-54bd8ad9 {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
}
.msc-consent-box-54bd8ad9 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.msc-consent-checkbox-54bd8ad9 {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #3182ce;
    cursor: pointer;
}
.msc-consent-box-54bd8ad9 label {
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    line-height: 1.4;
}
.msc-consent-link-54bd8ad9 {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}
.msc-consent-link-54bd8ad9:hover {
    text-decoration: underline;
}

.msc-info-box-54bd8ad9 {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
}
.msc-info-box-54bd8ad9 h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}
.msc-info-box-54bd8ad9 ol,
.msc-info-box-54bd8ad9 p {
    margin: 6px 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #4a5568;
}
.msc-close-info-54bd8ad9 {
    background: #edf2f7;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* Button */
.msc-btn-primary-54bd8ad9 {
    width: 100%;
    padding: 12px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 6px;
}
.msc-btn-primary-54bd8ad9:hover:not(:disabled) {
    background: #2b6cb0;
}
.msc-btn-primary-54bd8ad9:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Results */
.msc-results-header-54bd8ad9 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.msc-results-icon-54bd8ad9 {
    font-size: 1.2rem;
}
.msc-results-title-54bd8ad9 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}
.msc-results-subtitle-54bd8ad9 {
    font-size: 0.75rem;
    color: #718096;
    margin-left: auto;
}
.msc-results-grid-54bd8ad9 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px 0 12px;
}
.msc-result-item-54bd8ad9 {
    background: #f7fafc;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #edf2f7;
}
.msc-result-left-54bd8ad9 {
    border-top: 3px solid #3182ce;
}
.msc-result-right-54bd8ad9 {
    border-top: 3px solid #e53e3e;
}
.msc-result-label-54bd8ad9 {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.03em;
}
.msc-result-value-54bd8ad9 {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 4px 0 2px;
}
.msc-result-left-54bd8ad9 .msc-result-value-54bd8ad9 {
    color: #2b6cb0;
}
.msc-result-right-54bd8ad9 .msc-result-value-54bd8ad9 {
    color: #c53030;
}
.msc-result-sub-54bd8ad9 {
    display: block;
    font-size: 0.65rem;
    color: #a0aec0;
}

.msc-warning-54bd8ad9 {
    background: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #7b341e;
    margin-top: 10px;
}
.msc-warning-54bd8ad9 strong {
    display: block;
    margin-bottom: 2px;
}

/* Diagram */
.msc-diagram-54bd8ad9 {
    margin: 0 0 16px 0;
    text-align: center;
}
.msc-diagram-54bd8ad9 svg {
    max-width: 100%;
    height: auto;
}
.msc-diagram-caption-54bd8ad9 {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #4a5568;
}
.msc-legend-54bd8ad9 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.msc-legend-dot-54bd8ad9 {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #cbd5e0;
}

/* Calculation info */
.msc-calculation-info-54bd8ad9 {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.msc-calculation-info-54bd8ad9 summary {
    padding: 12px 16px;
    font-weight: 700;
    color: #3182ce;
    cursor: pointer;
}
.msc-calculation-info-body-54bd8ad9 {
    padding: 0 16px 16px;
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.6;
}
.msc-calculation-info-body-54bd8ad9 code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.msc-calculation-note-54bd8ad9 {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 8px;
}

/* Tooltips */
.msc-tooltip-icon-54bd8ad9 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e0;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}
.msc-tooltip-icon-54bd8ad9:hover {
    background: #3182ce;
}
.msc-tooltip-text-54bd8ad9 {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 400;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 50;
    text-align: center;
    line-height: 1.4;
}
.msc-tooltip-text-54bd8ad9::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a202c;
}
.msc-tooltip-icon-54bd8ad9:hover .msc-tooltip-text-54bd8ad9 {
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .msc-grid-54bd8ad9 {
        grid-template-columns: 1fr;
    }
    .msc-results-grid-54bd8ad9 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .msc-field-row-54bd8ad9 {
        grid-template-columns: 1fr;
    }
    .msc-preset-block-54bd8ad9 {
        flex-direction: column;
        align-items: stretch;
    }
    .msc-preset-hint-54bd8ad9 {
        margin-left: 0;
    }
    .msc-card-subtitle-54bd8ad9,
    .msc-results-subtitle-54bd8ad9 {
        display: none;
    }
}