.clv-card { padding: 28px; }
.clv-title-bar { background: linear-gradient(135deg, var(--site-dark, #0f766e) 0%, var(--site-dark-2, #115e59) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.clv-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.clv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 18px; }
.clv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.clv-field label { font-weight: 600; font-size: .88em; color: #374151; }
.clv-field input[type="number"] { width: 100%; max-width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: .98em; color: #23272f; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.clv-field input[type="number"]:focus { border-color: var(--site-light, #14b8a6); box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
.clv-field input[type="number"]:focus-visible { outline: 3px solid rgba(20, 184, 166, .5); outline-offset: 2px; }
.clv-help { font-size: .78em; color: #6b7280; line-height: 1.4; }

.clv-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.clv-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d1d5db; background: #f3f4f6; color: #374151; border-radius: 30px; padding: 8px 18px; font-weight: 600; font-size: .9em; cursor: pointer; transition: background .2s ease; }
.clv-btn:hover { background: #e5e7eb; }
.clv-btn:focus-visible { outline: 3px solid rgba(20, 184, 166, .5); outline-offset: 2px; }

.clv-error { margin-top: 18px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 12px 14px; font-size: .92em; }
.clv-error[hidden], .clv-results[hidden] { display: none; }

.clv-results { margin-top: 24px; border-top: 1px solid #eee; padding-top: 22px; }
.clv-method { font-size: .85em; color: #4b5563; background: #f7f8fa; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.5; }
.clv-output-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.clv-output { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.clv-output-main { background: #f0fdfa; border-color: #99f6e4; }
.clv-output-label { font-size: .82em; color: #6b7280; font-weight: 600; }
.clv-output-value { font-size: 1.4em; color: #23272f; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.clv-output-note { font-size: .78em; color: #6b7280; line-height: 1.45; }

@media (max-width: 600px) {
    .clv-card { padding: 20px 16px; }
    .clv-title-bar { margin: -20px -16px 20px; padding: 14px 16px; }
    .clv-actions { justify-content: stretch; }
    .clv-btn { width: 100%; justify-content: center; }
    .clv-output-value { font-size: 1.25em; }
}
