/* Application layer, retaining the original Easy Car Fix gold / charcoal design. */
:root { --nav-h: 76px; }
body { overflow-wrap: anywhere; }
h1 { font-family: var(--display),system-ui,sans-serif; font-size:clamp(1.8rem,4vw,2.8rem); line-height:1.12; margin-bottom:.65rem; }
h2 { font-family:var(--display),system-ui,sans-serif; font-size:1.3rem; margin:1.1rem 0 .8rem; }
h3 { font-size:1.05rem; margin:.4rem 0; }
p { line-height:1.6; }
.card { margin-bottom:1.2rem; }
.card p + p { margin-top:.65rem; }
.app-shell { min-height:75vh; padding-top:calc(var(--nav-h) + 2.5rem); max-width:1200px; }
.brand-light { color:#c1c1c1; font-weight:400; margin-left:.25rem; }
.nav { gap:1.2rem; z-index:1000; }
.nav-right { align-items:center; }
.nav-right>a:not(.btn) { color:#eee; }
.nav-links { flex-wrap:wrap; }
.menu-toggle { display:none; color:#fff; background:transparent; border:1px solid #777; border-radius:6px; padding:7px 12px; }
.environment { position:relative; margin-top:76px; padding:8px 16px; color:#57451e; background:#fff0c8; text-align:center; font-size:.8rem; }
.environment:not([hidden]) + .app-shell { padding-top:2rem; }
.environment[hidden] { display:none; }
.environment:not([hidden]) ~ .hero { margin-top:0; }
.auth-card { max-width:480px; margin-inline:auto; }
.form-wide { max-width:850px; margin-inline:auto; }
.form-grid.cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.form-field { min-width:0; }
input,select,textarea { max-width:100%; font:inherit; }
textarea { width:100%; min-height:100px; border:1px solid #d6d1c8; border-radius:8px; padding:12px; }
input[type=file] { width:100%; padding:12px 0; }
input[type=checkbox] { width:17px; height:17px; accent-color:#9c782e; flex:none; }
button:disabled { opacity:.5; cursor:not-allowed; }
.terms-check { display:block; line-height:1.8; margin:18px 0; }
.terms-check a,.hint a,.legal a { text-decoration:underline; }
.category-options { border:1px solid #ddd5c4; padding:18px; border-radius:10px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:1rem 0; }
.category-options legend { padding:0 8px; font-weight:600; }
.category-options label { display:flex; align-items:center; gap:8px; font-size:.88rem; }
.inline-checks { display:flex; flex-wrap:wrap; gap:16px; margin:16px 0; }
.location-map { height:330px; border-radius:12px; background:#e6e4dd; margin:12px 0; z-index:1; }
.location-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:.82rem; }
.hint { color:#68645e; font-size:.81rem; line-height:1.6; margin:10px 0; }
.form-error { background:#fff0ed; color:#9d2c21; padding:12px; border-radius:8px; margin:12px 0; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:3000; max-width:min(650px,90vw); width:max-content; padding:16px 24px; background:#22352b; color:white; box-shadow:0 4px 30px #0003; border-radius:10px; }
.toast.error { background:#8c322b; }
.dev-code { background:#fff3d4; padding:14px; border-radius:8px; color:#58451e; margin-bottom:16px; }
.request-actions { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 0; }
.request-photos { display:flex; flex-wrap:wrap; gap:12px; }
.upload-panel { border:1px dashed #bda36e; padding:20px; border-radius:12px; margin:24px 0; }
.estimate { background:#edf4ed; color:#27402e; padding:20px; margin:18px 0; border-radius:10px; }
.results-head { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.master-list { display:grid; gap:12px; }
.master-card { margin:0; }
.portfolio-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:15px 0; }
.portfolio-pair img { width:100%; height:220px; object-fit:cover; border-radius:8px; }
.portfolio-pair figcaption { grid-column:1/-1; color:#666; font-size:.85rem; }
.portfolio-row { display:flex; gap:10px; align-items:center; margin:10px 0; }
.portfolio-row img { width:90px; height:70px; object-fit:cover; border-radius:5px; }
.working-hours>div { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; align-items:center; }
.working-hours .form-field { margin:4px 0; }
.dashboard-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:22px 0; }
.dashboard-links .card { margin:0; font-weight:600; font-size:.9rem; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:16px; margin:22px 0; }
.stats-grid strong { display:block; font-size:1.9rem; font-family:var(--display),sans-serif; }
.stats-grid span { display:block; color:#68645e; font-size:.8rem; margin-top:8px; }
.thread-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr); gap:22px; }
.thread-layout>*,.profile-grid>* { min-width:0; }
.thread-photos { display:flex; flex-wrap:wrap; gap:8px; }
.thread-photos img { width:100px; height:100px; object-fit:cover; border-radius:8px; }
.messages { max-height:420px; overflow:auto; padding:12px 0; }
.message { margin:10px 35px 10px 0; padding:14px; background:#f1eee8; border-radius:12px; }
.message.mine { margin:10px 0 10px 35px; background:#efe4c9; }
.message small { color:#716c60; font-size:.7rem; }
.preserve { white-space:pre-wrap; }
.offer-card { border:1px solid #ded7c6; padding:15px; margin:10px 0; border-radius:10px; }
.offer-card strong { display:block; font-size:1.4rem; }
.price-large { font-size:2.4rem; color:#927020; }
.notification { display:block; margin-top:15px; }
.notification.unread { border-left:4px solid #b6934c; }
.legal { max-width:850px; margin-inline:auto; }
.legal h2 { margin-top:24px; }
.legal p { margin:12px 0; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; } th,td { padding:12px; border-bottom:1px solid #ddd; text-align:left; }
.document-grid { display:flex; flex-wrap:wrap; gap:16px; }
.document-grid img { width:180px; max-height:220px; object-fit:contain; }
.admin-user { border-bottom:1px solid #ddd; padding:16px 0; }
footer a { color:inherit; text-decoration:underline; }
.ba-slider { touch-action:pan-y; }
@media(max-width:800px){
 .nav { flex-wrap:wrap; padding:14px 20px; height:auto; min-height:76px; }
 .menu-toggle { display:block; margin-left:auto; }
 .nav .nav-links,.nav .nav-right { display:none; width:100%; }
 .nav.expanded .nav-links,.nav.expanded .nav-right { display:flex; }
 .nav.expanded .nav-links { flex-direction:column; align-items:flex-start; gap:15px; }
 .thread-layout,.profile-grid { grid-template-columns:1fr; }
 .dashboard-links { grid-template-columns:1fr 1fr; }
 .form-grid.cols-3 { grid-template-columns:1fr; }
 .hero-stats { position:relative; padding:20px; bottom:auto; }
 .hero-full { padding-bottom:0; }
 .hero-copy { padding:0 20px; }
 .location-map { height:280px; }
}
@media(max-width:500px){
 .app-shell { padding-inline:16px; }
 .card { padding:20px; }
 .form-grid.cols-2,.category-options,.dashboard-links { grid-template-columns:1fr; }
 .working-hours>div { grid-template-columns:1.2fr 1fr 1fr; gap:8px; font-size:.8rem; }
 .working-hours input[type=time] { padding:5px; font-size:.8rem; }
 .portfolio-row { flex-wrap:wrap; }
 .portfolio-pair img { height:150px; }
 .results-head { align-items:flex-start; flex-direction:column; }
}

.form-field input[type=number],.form-field input[type=date],.form-field input[type=time],.form-field input[type=datetime-local],.form-field select { width:100%; border:1px solid #d6d1c8; border-radius:8px; background:#fff; padding:11px 12px; color:#292a2c; min-height:43px; }
.nav .brand { color:#fff; }
.form-field textarea { resize:vertical; }

/* Document inspection and prominent specialist map markers. */
.document-preview { display:flex; flex-direction:column; align-items:center; gap:8px; padding:10px; border:1px solid #d5d5d5; border-radius:12px; background:#fff; cursor:zoom-in; color:#222; font:inherit; }
.document-preview:hover,.document-preview:focus-visible { outline:3px solid #b99653; }
.document-preview span { font-size:14px; font-weight:700; }
.document-viewer { width:min(1100px,94vw); max-height:94vh; padding:20px; border:0; border-radius:16px; }
.document-viewer::backdrop { background:rgba(0,0,0,.8); }
.document-viewer-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.document-viewer-bar h2 { margin:0; overflow-wrap:anywhere; }
.document-viewer-body { overflow:auto; max-height:78vh; margin-top:16px; text-align:center; }
.document-viewer-body img { width:auto; max-width:100%; height:auto; }
.specialist-map-pin { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50% 50% 50% 8px; background:#151515; color:#ffe099; border:3px solid #e5bd65; box-shadow:0 3px 12px #0008; font:bold 15px/1 sans-serif; }
.specialist-map-pin.unavailable { background:#50545b; border-color:#fff; color:#fff; }
.leaflet-tooltip.specialist-map-label { background:#191919; color:#fff; border:2px solid #e5bd65; border-radius:8px; padding:8px 12px; font:700 15px/1.3 sans-serif; box-shadow:0 3px 12px #0005; max-width:240px; white-space:normal; text-align:center; }
.specialist-map-popup strong { display:block; font-size:19px; line-height:1.3; }
.specialist-map-popup a { display:inline-block; padding:10px 14px; border-radius:8px; background:#191919; color:#ffe099 !important; font-weight:700; }
/* October specification additions */
.company-logo{width:128px;height:96px;object-fit:contain;background:#fff;border-radius:12px;padding:8px;max-width:100%}.company-logo.avatar{width:72px;height:64px;flex-shrink:0}.radius-presets{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.radius-presets small{flex-basis:100%}.address-suggestions{display:grid;gap:4px}.address-option{text-align:left;padding:12px;background:#fff;color:#182022;border:1px solid #b99653;border-radius:6px;cursor:pointer}.location-confirm{display:block;margin:12px 0}.document-status{padding:15px 0;border-bottom:1px solid #ddd}.document-status button{margin:6px}.documentReviewForm{padding:10px}.order-progress{border-left:4px solid #b99653}.order-progress p{line-height:1.7}.portfolio-pair img,.portfolio-row img{cursor:zoom-in}.portfolio-row input{min-width:100px;max-width:100%}h2[id],section[id]{scroll-margin-top:100px}button:disabled{opacity:.55;cursor:not-allowed}#documentViewer img{object-fit:contain}#documentViewer .document-viewer-bar{flex-wrap:wrap}input:invalid:focus,textarea:invalid:focus{outline:2px solid #b03939}.address-option:focus-visible,.portfolio-pair img:focus-visible{outline:3px solid #b99653}#saved-addresses,#vehicles{margin:24px 0;padding-top:18px;border-top:1px solid #ddd}
@media(max-width:600px){.portfolio-row{flex-wrap:wrap}.document-viewer-bar{gap:8px}.order-progress{padding:16px}.radius-presets .btn{padding:8px}.document-grid{grid-template-columns:1fr}}
