/* Shared finishing layer: legible controls and consistent keyboard feedback. */
:root { --focus-ring:#a95232; }
body.dark-theme { --focus-ring:#f1b988; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline:3px solid var(--focus-ring);
    outline-offset:3px;
}
:where(input,select,textarea) { max-width:100%; }
:where(input:not([type=checkbox]):not([type=radio]),select,textarea) {
    min-height:44px;
    border-radius:10px;
    transition:border-color .18s ease,box-shadow .18s ease;
}
:where(input:not([type=checkbox]):not([type=radio]),select,textarea):focus {
    border-color:var(--teal);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 17%,transparent);
}
:where(button,.button-link,.primary,.text-control,.icon-button) { min-height:42px; }
:where(.form-card,.panel,.stat,.estimate-card) { overflow-wrap:anywhere; }
.form-card { box-shadow:0 20px 54px rgb(24 51 64 / 8%); }
.data-table { width:100%; }
.data-table th { text-align:left; }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media(max-width:600px) {
    .page { padding-left:18px; padding-right:18px; }
    .form-card { border-radius:18px; }
    .site-header { min-height:72px; }
    .header-tools { gap:5px; }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto!important; }
    *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
