.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;
  border-radius: 8px;
}

.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-wf-input{width:120px;height:36px;padding:6px 10px;font-size:14px;border:1px solid #ccc;border-radius:6px;box-sizing:border-box;}
.lh-wf-input:focus{outline:none;border-color:#4a90e2;box-shadow:0 0 0 1px #4a90e222;}

.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; border-radius: 6px; 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: #555;
}
.lh-wf-intro{font-size:15px;line-height:1.6;color:#111111;margin-bottom:18px;}
.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; }

.lh-wf-range{appearance:none;-webkit-appearance:none;width:100%;height:24px;background:transparent;margin-top:10px;cursor:pointer;}
.lh-wf-range:focus{outline:none;}
.lh-wf-range::-webkit-slider-runnable-track{height:6px;background:#d9f1ec;border-radius:0;}
.lh-wf-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#007f6b;border:2px solid #007f6b;margin-top:-7px;}
.lh-wf-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(0,127,107,0.15);}
.lh-wf-range::-moz-range-track{height:6px;background:#d9f1ec;border:1px solid #007f6b;border-radius:0;}
.lh-wf-range::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#007f6b;border:2px solid #007f6b;}
.lh-wf-range::-moz-range-progress{height:6px;background:#9fe0d3;}
.lh-wf-range:focus::-moz-range-thumb{box-shadow:0 0 0 4px rgba(0,127,107,0.15);}
.lh-wf-range::-ms-track{height:6px;background:transparent;border-color:transparent;color:transparent;}
.lh-wf-range::-ms-fill-lower{background:#9fe0d3;border:1px solid #007f6b;}
.lh-wf-range::-ms-fill-upper{background:#d9f1ec;border:1px solid #007f6b;}
.lh-wf-range::-ms-thumb{width:18px;height:18px;border-radius:50%;background:#007f6b;border:2px solid #007f6b;}
.lh-wf-soil-row{display:flex;flex-wrap:nowrap;overflow:hidden;}
.lh-wf-soil-row .lh-read-speed-option{flex:1 1 0;min-width:0;white-space:normal;line-height:1.25;justify-content:center;text-align:center;padding:10px 8px;}

.lh-wf-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;}
.lh-wf-grid2 .lh-read-speed-option{min-width:0;border-left:0;}
.lh-wf-grid2 .lh-read-speed-option:nth-child(2n){border-left:3px solid #007f6b;}
.lh-wf-grid2 .lh-read-speed-option:nth-child(n+3){border-top:3px solid #007f6b;}
.lh-wf-grid2 .lh-read-speed-option{justify-content:center;text-align:center;padding:10px 8px;white-space:normal;line-height:1.25;}

.lh-wf-hero{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;padding:12px 12px;margin:15px 0;background:#fffbe5;border-radius:6px;border:2px solid #e6e19b;}
.lh-wf-hero-title{font-size:22px;font-weight:800;color:#111111;line-height:1.2;}
.lh-wf-hero-sub{font-size:13px;color:#333333;}

.lh-wf-pot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.lh-wf-pot-grid .lh-read-speed-option{min-width:0;justify-content:center;text-align:center;padding:10px 6px;white-space:normal;line-height:1.2;border-left:0;}
.lh-wf-pot-grid .lh-read-speed-option:nth-child(n+2){border-left:3px solid #007f6b;}
@media (max-width:640px){.lh-wf-pot-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.lh-wf-pot-grid .lh-read-speed-option:nth-child(n+2){border-left:0;}}
@media (max-width:640px){.lh-wf-pot-grid .lh-read-speed-option:nth-child(2n){border-left:3px solid #007f6b;}}
@media (max-width:640px){.lh-wf-pot-grid .lh-read-speed-option:nth-child(n+3){border-top:3px solid #007f6b;}}

.lh-read-speed-toggle { border-radius: 6px; overflow: hidden; }