.ucw {
    max-width: 48rem;
    margin-inline: auto;
    padding: clamp(1rem, 4vw, 2.25rem);
    border: 1px solid #bdd5d2;
    border-radius: 1.5rem;
    background: #f2faf9;
    color: #142f36;
}
.ucw h2 { margin: 0; color: inherit; }
.ucw header p { margin: .4rem 0 1.4rem; }
.ucw-controls, .ucw-units { display: grid; gap: 1rem; }
.ucw-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ucw-units {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
}
.ucw label { display: grid; gap: .3rem; font-weight: 650; }
.ucw input, .ucw select, .ucw button {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: .5rem .65rem;
    border: 1px solid #668886;
    border-radius: .65rem;
    background: white;
    color: #142f36;
    font: inherit;
}
.ucw button { background: #12585b; color: white; cursor: pointer; }
.ucw :is(input, select, button):focus-visible { outline: 3px solid #12585b; outline-offset: 2px; }
.ucw output {
    display: block;
    margin-top: 1.25rem;
    padding: .8rem 1rem;
    border-radius: .8rem;
    background: #d7eeea;
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}
@media (max-width: 560px) {
    .ucw-controls, .ucw-units { grid-template-columns: minmax(0, 1fr); }
    .ucw button { grid-row: 3; }
}
