.length-lead {
    margin: 0;
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.5;
}

.length-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.length-examples-label {
    font-size: 0.85em;
    font-weight: 700;
    color: #495057;
    padding-top: 8px;
}

.length-example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.length-example-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid #c5d8ef;
    border-radius: 8px;
    background: #fff;
    color: #1971c2;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.length-example-btn:hover,
.length-example-btn.active {
    background: #e7f5ff;
    border-color: #1971c2;
    box-shadow: 0 1px 4px rgba(25, 113, 194, 0.15);
}

.length-example-btn .ex-title {
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.2;
}

.length-example-btn .ex-hint {
    font-size: 0.72em;
    color: #64748b;
    font-weight: 500;
}

.length-input-group {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
}

.length-input-group label {
    flex: none;
    font-weight: 700;
    color: #495057;
}

.length-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.length-input-row input,
.length-input-row select {
    flex: 1;
    min-width: 140px;
}

.example-caption {
    padding: 10px 12px;
    border-radius: 8px;
    background: #e7f5ff;
    border: 1px solid #a5d8ff;
    color: #1864ab;
    font-size: 0.9em;
    line-height: 1.45;
}

.example-caption[hidden],
.unit-info-panel[hidden] {
    display: none !important;
}

.result-item.muted {
    color: #868e96;
    justify-content: flex-start;
}

.result-item.is-source {
    border-color: #74c0fc;
    background: #e7f5ff;
    font-weight: 600;
}

.result-item .unit-label {
    color: #64748b;
    font-size: 0.9em;
    margin-left: 6px;
    font-weight: 500;
}

.result-item button {
    border: none;
    background: #1971c2;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.82em;
}

.result-item button:hover {
    background: #1864ab;
}

.unit-info-panel {
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    line-height: 1.55;
    color: #343a40;
    font-size: 0.92em;
}

.unit-info-panel h4 {
    margin: 0 0 8px;
    color: #1971c2;
    font-size: 1em;
}

.unit-info-panel ul {
    margin: 0;
    padding-left: 1.2rem;
}

.unit-info-panel li {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .length-input-row {
        flex-direction: column;
    }
}
