/* Shared compact Bootstrap controls. Page-specific layouts retain precedence. */
body.bd-ui{--ui-line:#d9e3ec;--ui-ink:#1c3d57;--ui-muted:#62788b}
.bd-ui .bd-field-feedback{font-size:12px;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere;grid-column:1/-1}
.bd-ui .btn{font-size:13px;line-height:1.45;padding:9px 14px;min-height:38px;border-radius:9px;font-weight:650;letter-spacing:0;box-shadow:none;max-width:100%;overflow-wrap:anywhere}
.bd-ui .btn.primary,.bd-ui .btn.btn-primary{background:#126b9b;border-color:#126b9b;color:#fff}
.bd-ui .btn.primary:hover,.bd-ui .btn.btn-primary:hover{background:#09577f;border-color:#09577f;transform:none}
.bd-ui .btn.ghost{border:1px solid #c7d7e3;background:transparent;color:#315a78}
.bd-ui .btn.ghost:hover{background:#eaf3f9;border-color:#95b3c9;transform:none}
.bd-ui :is(.form-control,.form-select){font-size:14px;line-height:1.5;min-height:40px;border-radius:9px;border-color:#c8d8e5;box-shadow:none}
.bd-ui :is(.form-control,.form-select):focus{border-color:#3287ad;box-shadow:0 0 0 3px #3287ad22}
.bd-ui .account-form label{font-size:13px;line-height:1.5;font-weight:600}
.bd-ui .account-form :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){font-size:14px;padding:10px 12px;border:1px solid #c8d8e5;border-radius:9px;max-width:100%;min-width:0}
.bd-ui :is(.dash-panel,.booking-flow,.catalog-card){border:1px solid var(--ui-line);border-radius:14px;box-shadow:0 3px 16px #153a5805}
.bd-ui .dash-panel{padding:20px}
.bd-ui .dash-panel>h3{font-size:19px;line-height:1.35;margin-bottom:12px}
.bd-ui :is(.form-status,.module-status){font-size:13px;line-height:1.5}
.bd-ui .auth-card .form-control{min-height:42px}
.bd-ui .auth-card .bd-social-button{font-size:14px;min-height:44px}
.bd-ui .btn:focus-visible{outline:3px solid #439ac4;outline-offset:3px}
/* The photo size and data handling are unchanged: only the upload controls are compacted. */
/* Bootstrap-compatible feedback: retain contrast instead of fading the label. */
.bd-ui .btn,.bd-ui #mainNav.rc18-nav>a:is(.space,.quote),.bd-ui #private-app-shell .bd-dashboard-logout{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease;opacity:1}
.bd-ui.bd-account-page #private-app-shell .btn,.bd-ui.bd-account-page #private-app-shell .bd-dashboard-logout{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}
.bd-ui #mainNav.rc18-nav>a.space{background:#0872cb;color:#fff;border:1px solid #0872cb;filter:none}
.bd-ui #mainNav.rc18-nav>a.quote{background:#087f3b;color:#fff;border:1px solid #087f3b;filter:none}
.bd-ui #mainNav.rc18-nav>a.space:is(:hover,:focus-visible){background:#066bc2;color:#fff;opacity:1;filter:none}
.bd-ui #mainNav.rc18-nav>a.quote:is(:hover,:focus-visible){background:#06672f;color:#fff;opacity:1;filter:none}
.bd-ui .btn:not(:disabled):is(:hover,:active){filter:none}
@media(hover:hover){
 .bd-ui .btn:not(:disabled):not(.disabled):hover,.bd-ui #private-app-shell .btn:not(:disabled):not(.disabled):hover,.bd-ui #private-app-shell .bd-dashboard-logout:not(:disabled):hover,.bd-ui #mainNav.rc18-nav>a:is(.space,.quote):hover{transform:translateY(-2px);box-shadow:0 5px 12px #12395326;opacity:1}
}
.bd-ui .btn:not(:disabled):active,.bd-ui #private-app-shell .bd-dashboard-logout:active,.bd-ui #mainNav.rc18-nav>a:is(.space,.quote):active{transform:translateY(0) scale(.98);box-shadow:0 1px 4px #12395320}
.bd-ui #private-app-shell .btn:not(:disabled):not(.disabled):active,.bd-ui #private-app-shell .bd-dashboard-logout:not(:disabled):active{transform:translateY(0) scale(.98);box-shadow:0 1px 4px #12395320}
.bd-ui #private-app-shell .bd-dashboard-logout:is(:hover,:focus-visible){background:#e3eef7;color:#173e5c;border-color:#91aec4}
html[data-bs-theme=dark] .bd-ui #private-app-shell .bd-dashboard-logout:is(:hover,:focus-visible){background:#274d68;color:#fff;border-color:#84abc6}
.bd-ui .btn.dark:is(:hover,:focus-visible){background:#0c365d;color:#fff}
.bd-ui .btn.light:is(:hover,:focus-visible){background:#edf5fc;color:#041f3d}
.bd-ui .btn:is(:disabled,.disabled),.bd-ui #private-app-shell .btn:is(:disabled,.disabled){opacity:.6;transform:none;box-shadow:none;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.bd-ui .btn,.bd-ui #mainNav.rc18-nav>a:is(.space,.quote),.bd-ui #private-app-shell .bd-dashboard-logout{transition:none!important;transform:none!important}}
.bd-ui #bd-avatar-editor .bd-avatar-upload-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 6px}
.bd-ui #bd-avatar-editor .bd-avatar-upload-row .btn{width:auto;min-height:36px;padding:7px 11px;font-size:12px}
.bd-ui #bd-avatar-editor #bd-avatar-file[hidden]{display:none!important}
.bd-ui #bd-avatar-editor .bd-avatar-upload-hint{font-size:11px;color:#647b8f;line-height:1.5}
.bd-ui #bd-avatar-editor #bd-avatar-selection{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0}
.bd-ui #bd-avatar-editor #bd-avatar-selection[hidden]{display:none}
.bd-ui #bd-avatar-editor .dropdown-menu{min-width:220px;padding:5px;border:1px solid #d3e0e9;border-radius:10px;box-shadow:0 8px 24px #16395018}
.bd-ui #bd-avatar-editor .dropdown-item{font-size:12px;line-height:1.5;padding:9px 11px;border-radius:6px;white-space:normal}
.bd-ui #bd-avatar-editor .bd-avatar-options{border-color:transparent!important;background:transparent!important;color:#4d6d84!important}
.bd-ui #bd-avatar-editor #bd-avatar-reload{padding:9px 11px;border:0;width:100%;text-align:left}
.bd-ui #bd-avatar-editor #bd-avatar-status{font-size:11px;margin:8px 0 0}
html[data-bs-theme=dark] .bd-ui{--ui-line:#3e607a;--ui-ink:#e0edf6;--ui-muted:#adc1d2}
html[data-bs-theme=dark] .bd-ui .btn.ghost{color:#d8eaf7;border-color:#567b95}
html[data-bs-theme=dark] .bd-ui .btn.ghost:hover{background:#244c68}
html[data-bs-theme=dark] .bd-ui #bd-avatar-editor :is(.bd-avatar-upload-hint,.bd-avatar-options){color:#b5ccdf!important}
@media(max-width:640px){.bd-ui .btn{min-height:40px;padding:9px 12px;font-size:13px}.bd-ui .dash-panel{padding:17px}.bd-ui #bd-avatar-editor .bd-avatar-upload-row .btn{min-height:40px}}
