.lh-cefr-calc-wrapper {
    max-width: 700px;
    margin: 20px auto;
    padding: 16px;
    border: 4px solid #c9efe7;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.lh-cefr-calc-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.lh-cefr-calc-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.lh-cefr-calc-row {
    margin-bottom: 16px;
}

.lh-cefr-calc-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.lh-cefr-calc-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 420px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 0;
}

.lh-cefr-calc-textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 1px #4a90e222;
}

.lh-cefr-calc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.lh-cefr-switch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lh-cefr-switch-title {
    font-size: 13px;
    font-weight: 500;
}

.lh-cefr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.lh-cefr-radio-label {
    font-size: 13px;
    cursor: pointer;
}

.lh-cefr-toggle-advanced {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.lh-cefr-toggle-advanced input {
    cursor: pointer;
}

.lh-cefr-calc-button.lh-cefr-calc-button--gray{background:#ececec;border-color:#c0c0c0;color:#151515;}

.lh-cefr-calc-button { color:#151515; font-size:14px; font-family:Tahoma, Arial, sans-serif; background:#E4F6F3; font-weight:bold; border:3px solid #007f6b; padding:5px 18px; cursor:pointer; display:inline-block; height:40px; min-width:140px; text-align:center; text-decoration:none; transition:background .2s ease,color .2s ease,border-color .2s ease; }
.lh-cefr-calc-button:hover { background:#007f6b; color:#ffffff; border-color:#007f6b; }
.lh-cefr-calc-button:focus { outline:none; }

.lh-cefr-calc-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.lh-cefr-calc-note {
    font-size: 12px;
    color: #777;
}

.lh-cefr-calc-error {
    margin-top: 6px;
    font-size: 13px;
    color: #c0392b;
}

.lh-cefr-results {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e3e3e3;
}

.lh-cefr-results-main-level {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.lh-cefr-results-main-level .lh-cefr-level-tag {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 2px 8px;
    margin-left: 4px;
    background: #007F6B;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
}

.lh-cefr-results-subtitle {
    margin-bottom: 6px;
}

#lh-cefr-style-note {
    font-weight: 600;
}

.lh-cefr-results-disclaimer {
    font-size: 12px;
    color: #777;
}

.lh-cefr-progress-block {
    margin-top: 10px;
}

.lh-cefr-progress-label {
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.lh-cefr-unknown {
    margin-top: 16px;
    font-size: 12px;
}

.lh-cefr-unknown-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lh-cefr-unknown-note {
    margin-bottom: 4px;
    color: #777;
}

.lh-cefr-unknown-textarea {
    width: 100%;
    min-height: 120px;
    font-size: 12px;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    resize: vertical;
}

.lh-cefr-level-buttons {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lh-cefr-level-btn {
    min-width: 42px;
    padding: 4px 10px;
    font-size: 12px;
    border: 2px solid #007F6B;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    border-radius: 0;
}

.lh-cefr-level-btn:hover {
    background: #007F6B;
    color: #ffffff;
}

.lh-cefr-level-btn.active {
    background: #007F6B;
    color: #ffffff;
}

@media (max-width: 480px) {
    .lh-cefr-calc-wrapper {
        padding: 12px;
        margin: 10px auto;
    }
}
.lh-read-speed-option input { position: absolute; opacity: 0; pointer-events: none; }
.lh-read-speed-toggle { display:inline-flex; border:3px solid #007f6b; border-radius:0; overflow:hidden; }
.lh-read-speed-option { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:6px 12px; font-size:13px; cursor:pointer; user-select:none; min-width:70px; background:#ffffff; color:#333333; }
.lh-read-speed-option + .lh-read-speed-option { border-left:3px solid #007f6b; }
.lh-read-speed-option.active { background:#007f6b; color:#ffffff; }
