:root{font-family:Segoe UI,Arial,sans-serif;color:#203843;background:#f1f5f5;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#153c49;color:white;padding:20px max(24px,calc((100% - 1180px)/2));display:flex;justify-content:space-between;align-items:center}.brand{font-weight:800;color:#93dec9;text-decoration:none;font-size:25px}.brand span{color:white;font-size:18px;margin-left:14px}.tag{font-size:13px;color:#c5dce3}main{max-width:1228px;padding:32px 24px;margin:auto}.intro{display:flex;justify-content:space-between;gap:24px;align-items:center}h1{font-size:36px;line-height:1.2;margin:8px 0 15px;letter-spacing:-1px}h2{font-size:19px;margin:0}.eyebrow{color:#337767;letter-spacing:2px;font-size:11px;font-weight:700}.intro p:not(.eyebrow),.hint{color:#62767e}.connection{display:grid;gap:6px;background:#e6eeef;padding:18px;border-radius:12px;font-size:12px}.connection strong{font-size:14px;color:#215d56}nav{display:flex;gap:8px;margin:28px 0 20px}button{font:600 15px Segoe UI,sans-serif;background:white;border:1px solid #c6d5d7;border-radius:9px;padding:12px 18px;cursor:pointer;color:#244752;min-height:46px}button.active,.primary{background:#126c5c;color:white;border-color:#126c5c}.primary{width:100%;margin-top:18px;font-size:17px}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #96dcca;outline-offset:2px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}article{background:white;border:1px solid #dce5e6;padding:25px;border-radius:15px;margin-bottom:20px}.section-title{display:flex;gap:12px;align-items:center;margin-bottom:20px}.section-title>span{font-size:12px;color:#16735f;background:#e7f4ef;border-radius:8px;padding:7px}label{display:block;font-size:14px;font-weight:600;margin:16px 0 7px}input,textarea,select{font:inherit;width:100%;padding:12px;border:1px solid #bdcfd2;border-radius:8px;background:white;color:inherit;min-width:0}.camera{border:2px dashed #a7c9c0;background:#f2faf7;padding:26px 18px;border-radius:12px;text-align:center;display:grid;gap:10px;cursor:pointer}.camera span,.hint,.optional{font-size:13px;font-weight:400}.camera input{font-size:12px;border:0;padding:0;background:transparent}#preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}#preview img{width:110px;height:90px;object-fit:cover;border-radius:8px}.status{font-size:13px;background:#edf4f3;padding:10px;border-radius:8px}.check{display:flex;align-items:center;gap:10px}.check input{width:22px;height:22px}.optional{color:#72858c}.hint{margin:10px 0}.journal-heading{display:flex;gap:20px;justify-content:space-between;align-items:start}.event{padding:20px 0;border-bottom:1px solid #dce5e6}.event h3{margin:0 0 6px;font-size:17px}.event p{margin:5px 0;overflow-wrap:anywhere;white-space:pre-wrap}.event img{width:80px;height:70px;object-fit:cover;border-radius:6px;margin:8px 8px 0 0}.event small{color:#62767e}.pill{display:inline-block;background:#edf4f3;padding:4px 9px;border-radius:6px;font-size:12px}#message:not(:empty){padding:15px;background:#fff4dd;border-left:4px solid #c3923b;border-radius:6px;margin-top:15px}#cells{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}#cells button{min-width:50px}#carCards{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#carCards button{display:grid;max-width:140px;font-size:12px}#carCards img{width:90px;height:60px;object-fit:cover}fieldset{padding:0;border:0;margin:0;min-width:0}footer{font-size:12px;color:#72858c;margin:20px 0}[hidden]{display:none!important}@media(max-width:800px){.columns{grid-template-columns:1fr}.intro{display:block}.connection{margin-top:20px}h1{font-size:30px}main{padding:20px 14px}article{padding:20px}.tag{max-width:130px;text-align:right}.journal-heading{display:block}.journal-heading button{margin-bottom:15px}}
/* Three-screen tablet and phone layouts */
.header-right{display:flex;align-items:center;gap:12px}.header-right select{width:auto;font-size:13px;padding:7px;background:#244d59;color:white;border-color:#54717a}.header-right label{margin:0;color:#c7dadf;font-size:12px}.header-right #connection{font-size:12px;color:#cee0e5;max-width:200px}.main-nav{margin:0 0 20px}.steps{list-style:none;display:flex;padding:0;gap:8px;margin:0 0 18px}.steps li{flex:1;display:flex;align-items:center;gap:9px;padding:12px;border-bottom:3px solid #d4e1e2;color:#6a8088;font-size:14px}.steps li[aria-current]{color:#126c5c;border-color:#126c5c;font-weight:700}.steps li span{border-radius:50%;background:#dfebe7;padding:3px 9px}.screen-heading{margin:24px 0}.screen-heading h1{font-size:32px;margin:8px 0}.screen-heading p{color:#647b83}.screen-heading h1:focus{outline:none}.map-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px}.map-choice{text-align:left;padding:30px;min-height:190px;border-radius:18px;display:grid;align-content:space-between;gap:12px;box-shadow:0 8px 22px #1a394707}.map-choice:hover{background:#edf8f3;border-color:#71a997}.map-choice strong{font-size:26px;font-weight:650}.map-number{font-size:13px;color:#438473}.map-caption{color:#6c858b;font-weight:400;font-size:13px}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.map-panel{padding:16px;min-width:0}.map-tools{display:flex;gap:8px;align-items:center;margin-bottom:14px}.map-tools button{padding:8px 12px}.map-tools output{font-size:13px;min-width:42px;text-align:center}#mapViewport{max-height:60vh;overflow:auto;border:1px solid #dce6e7;border-radius:8px;background:white;overscroll-behavior:contain}#mapCanvas{display:block;width:100%;height:auto;touch-action:pan-x pan-y;cursor:crosshair}#pointMarker{pointer-events:none}.location-confirm{padding:24px;background:white;border-radius:14px;border:1px solid #dce5e6}.location-confirm>button{width:100%;margin-top:12px}.text-button{background:transparent;border:0;color:#126c5c;padding:9px 4px;min-height:44px}.location-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#e5f0ec;padding:8px 16px;border-radius:10px}.file-choice{display:block;border:1px solid #c1d5d5;padding:14px;border-radius:9px;text-align:center;font-size:14px;cursor:pointer}.file-choice input{display:block;border:0;font-size:12px;padding:8px 0 0}.photo-tile{position:relative;display:grid;gap:4px;width:110px}.photo-tile button{font-size:12px;min-height:36px;padding:5px}.status{font-size:12px}.screen .columns{gap:20px}dialog{width:min(660px,94vw);padding:20px;border:0;border-radius:18px;color:#203843;max-height:94dvh;overflow:auto}dialog::backdrop{background:#0a2737b8}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}#cameraVideo{width:100%;max-height:60dvh;object-fit:contain;background:#142e39;border-radius:10px}#cameraHelp{font-size:14px;color:#576f78}.dialog-head button{min-width:44px}.camera-busy{opacity:.7}body[data-layout=phone] main{max-width:510px}body[data-layout=phone] .columns,body[data-layout=phone] .map-layout,body[data-layout=phone] .map-choices{grid-template-columns:1fr}body[data-layout=phone] .map-choice{min-height:110px;padding:20px;grid-template-columns:24px 1fr;align-items:center}body[data-layout=phone] .map-choice strong{font-size:21px}body[data-layout=phone] .map-caption{grid-column:2}body[data-layout=phone] .screen-heading h1{font-size:27px}body[data-layout=phone] .steps li{font-size:12px;padding:8px 4px;gap:5px}body[data-layout=phone] .location-summary{display:block}body[data-layout=phone] #mapViewport{max-height:50dvh}body[data-layout=phone] .location-confirm{padding:16px}body[data-layout=phone] .map-tools{flex-wrap:wrap}
@media(max-width:700px){header{padding:16px;align-items:start}.header-right{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:165px}.header-right #connection{width:100%;text-align:right;font-size:10px}.layout-label{display:none!important}.map-choices,.map-layout{grid-template-columns:1fr}.map-choice{min-height:110px;padding:20px;grid-template-columns:24px 1fr;align-items:center}.map-choice strong{font-size:21px}.map-caption{grid-column:2}.screen-heading h1{font-size:27px}.steps li{font-size:12px;padding:8px 4px;gap:5px}.steps{gap:4px}.location-summary{display:block}.location-confirm{padding:16px}.map-tools{flex-wrap:wrap}#mapViewport{max-height:50dvh}.map-panel{margin-bottom:0}.screen-heading{margin:18px 0}.screen-heading>p{font-size:14px}}
/* Compact, viewport-sized workflow */
body{height:100dvh;overflow:hidden}main,body[data-layout=phone] main{height:100dvh;max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;flex-direction:column;overflow:hidden}body[data-layout=phone] main{max-width:510px}.main-nav{margin:0 0 4px;min-height:38px;justify-content:flex-end}.main-nav button{min-height:34px;padding:5px 12px;font-size:12px}body:not([data-step="1"]):not(.journal-open) .main-nav{display:none}body:not(.journal-open) #newTab{display:none}#capture{display:flex;flex-direction:column;flex:1;min-height:0}.steps{flex:none;margin:0;gap:4px;height:42px}.steps li{padding:0;display:block;border-bottom-width:2px;min-width:0}.steps li button{width:100%;height:100%;min-height:38px;font-size:12px;padding:6px 2px;border:0;background:transparent;font-weight:500}.steps li[aria-current] button{font-weight:700;color:#126c5c}.steps li button:disabled{opacity:.45;cursor:default}#draftStatus{flex:none;margin:3px 0;padding:3px 7px;font-size:11px;line-height:1.3;max-height:34px;overflow:auto}#form,#fields{flex:1;display:flex;flex-direction:column;min-height:0}.screen{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 4px}.screen-heading,body[data-layout=phone] .screen-heading{margin:8px 0 12px}.screen-heading h1,body[data-layout=phone] .screen-heading h1{font-size:23px;margin:0;line-height:1.2}.screen-heading p{margin:4px 0}.map-choices,body[data-layout=phone] .map-choices{gap:12px}.map-choice,body[data-layout=phone] .map-choice{min-height:110px;padding:18px;display:flex;gap:12px;align-items:center}.map-choice strong,body[data-layout=phone] .map-choice strong{font-size:23px}.map-caption{display:none}.map-number{font-size:12px}.step-dock{flex:none;display:flex;gap:12px;padding:8px 0 max(6px,env(safe-area-inset-bottom));border-top:1px solid #d9e5e4;background:#f1f5f5;min-height:64px}.step-dock button{min-height:46px;margin:0}.step-dock .primary{flex:1;width:auto}.step-dock #stepBack{min-width:110px}body[data-step="1"] .step-dock{display:none}#screen2{display:flex;flex-direction:column;overflow:hidden}.map-layout,body[data-layout=phone] .map-layout{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}.map-panel{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:8px}.map-tools,body[data-layout=phone] .map-tools{flex:none;gap:6px;margin:0 0 6px;flex-wrap:nowrap}.map-tools button{min-height:36px;padding:5px 10px;font-size:12px}.map-tools #centerPoint{margin-left:auto}.map-tools output{font-size:12px}#mapViewport,body[data-layout=phone] #mapViewport{flex:1;min-height:0;max-height:none;overflow:auto}#mapLoadStatus{flex:none;font-size:12px;margin:6px 0 0}.location-confirm,body[data-layout=phone] .location-confirm{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;padding:0}.location-confirm #selectedLocation{font-size:12px;margin:3px 0}.location-confirm #unknownLocation{width:auto;margin:0;padding:6px;min-height:38px;font-size:12px}article{padding:16px;margin-bottom:10px}#screen3>article{margin:0}#screen3 .primary{margin-top:0}.brief-location{font-size:12px;color:#5d7977;margin-top:4px}.file-choice{padding:10px;margin:10px 0;font-size:13px}.file-choice input{font-size:12px}.compact-details{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compact-details article{margin:0}.compact-details h2{font-size:17px}.compact-details label{margin:9px 0 4px;font-size:13px}.compact-details input,.compact-details select,.compact-details textarea{padding:9px;font-size:15px;min-height:42px}.compact-details textarea{min-height:66px}.compact-details .hint{font-size:12px;margin:6px 0}.compact-details .check{margin:12px 0 0}.compact-details .check input{min-height:22px}#preview{margin-top:10px}.photo-tile{width:90px}#preview img{width:90px;height:75px}#cameraStatus{font-size:12px;margin:6px 0}#message:not(:empty){flex:none;padding:7px 10px;margin:0 0 4px;font-size:12px;max-height:60px;overflow:auto}#journal{flex:1;min-height:0;overflow:auto}.optional-heading{margin-bottom:8px}#catalogNotice{max-height:48px;overflow:auto}#carCards{max-height:190px;overflow:auto}#carSummary{max-height:80px;overflow:auto}body[data-layout=phone] .compact-details{grid-template-columns:1fr;gap:8px}body[data-layout=phone] .compact-details article{padding:11px}body[data-layout=phone] .map-choice{min-height:91px}body[data-layout=phone] .map-choice strong{font-size:20px}
@media(max-width:700px){main{padding:6px 10px}.steps li button{font-size:11px}.map-choices{grid-template-columns:1fr;gap:10px}.map-choice{min-height:91px;padding:18px}.map-choice strong{font-size:20px}.compact-details{grid-template-columns:1fr;gap:8px}.compact-details article{padding:11px}.screen-heading{margin:8px 0 10px}.step-dock{gap:8px}.step-dock #stepBack{min-width:90px}.step-dock button{font-size:14px}.compact-details label{margin-top:7px}.compact-details select,.compact-details input{min-height:40px;padding:8px}.compact-details h2{font-size:16px}.compact-details textarea{min-height:56px;height:60px}.optional-heading{display:none}.location-confirm #unknownLocation{max-width:190px;line-height:1.2}.map-panel{padding:5px}.screen-heading h1{font-size:22px}}
@media(max-height:600px) and (min-width:701px){.screen-heading{margin:5px 0}.screen-heading h1{font-size:20px}.map-choice{min-height:80px}.map-choices{gap:10px}article{padding:10px}#cameraStatus{margin:4px 0}.photo-tile{width:80px}#preview img{height:55px;width:80px}}
/* Optional horizontal workspace: ?view=landscape */
@media (orientation:landscape) and (min-width:640px){
body[data-layout=landscape] main{max-width:1600px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}
body[data-layout=landscape] #capture{display:grid;grid-template-columns:126px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px 16px}
body[data-layout=landscape] .steps{grid-column:1;grid-row:1;display:flex;flex-direction:column;height:auto;gap:8px;margin:0;border-right:1px solid #d6e3e1;padding-right:12px;justify-content:center}
body[data-layout=landscape] .steps li{flex:none;border:0;border-radius:9px;min-height:46px}
body[data-layout=landscape] .steps li button{text-align:left;font-size:14px;padding:12px 9px;min-height:46px}
body[data-layout=landscape] .steps li[aria-current]{background:#dceee7}
body[data-layout=landscape] #draftStatus{grid-column:1;grid-row:2;max-height:64px;margin:0;padding:6px;font-size:10px}
body[data-layout=landscape] #form{grid-column:2;grid-row:1 / span 2;min-width:0}
body[data-layout=landscape] #fields{display:grid;grid-template-columns:minmax(0,1fr) 152px;gap:16px;min-width:0}
body[data-layout=landscape] .screen{grid-column:1;grid-row:1;min-width:0}
body[data-layout=landscape] .step-dock{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;min-height:0;border-top:0;border-left:1px solid #d6e3e1;padding:10px 0 10px 14px}
body[data-layout=landscape] .step-dock .primary{flex:none;width:100%}
body[data-layout=landscape] .step-dock button{width:100%;min-height:50px;font-size:14px}
body[data-layout=landscape][data-step="1"] #fields{grid-template-columns:minmax(0,1fr)}
body[data-layout=landscape][data-step="1"] .step-dock{display:none}
body[data-layout=landscape] .screen-heading{margin:4px 0 12px}
body[data-layout=landscape] .screen-heading h1{font-size:24px}
body[data-layout=landscape] .map-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body[data-layout=landscape] .map-choice{min-height:120px;padding:20px}
body[data-layout=landscape] .map-choice strong{font-size:24px}
body[data-layout=landscape] .compact-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-layout=landscape] #screen3>article{display:grid;grid-template-columns:minmax(170px,.9fr) minmax(0,1.1fr);grid-template-rows:auto auto 1fr;gap:12px 18px}
body[data-layout=landscape] #openCamera{grid-column:1;grid-row:1;min-height:50px}
body[data-layout=landscape] .file-choice{grid-column:1;grid-row:2;margin:0}
body[data-layout=landscape] #cameraStatus{grid-column:1;grid-row:3}
body[data-layout=landscape] #preview{grid-column:2;grid-row:1 / span 3;margin:0;align-content:start;overflow:auto;max-height:50dvh}
body[data-layout=landscape] #preview:empty:before{content:'Здесь появятся фотографии';display:grid;place-items:center;min-height:160px;width:100%;border:1px dashed #bad0cc;border-radius:10px;color:#6b827d;font-size:13px;text-align:center;padding:10px}
body[data-layout=landscape] #cameraDialog[open]{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;width:min(900px,96vw);max-height:96dvh;padding:16px}
body[data-layout=landscape] .dialog-head{grid-column:1 / span 2;margin:0}
body[data-layout=landscape] #cameraVideo{grid-column:1;grid-row:2 / span 2;max-height:calc(96dvh - 100px);height:100%;min-height:0}
body[data-layout=landscape] #cameraHelp{grid-column:2;grid-row:2;font-size:13px}
body[data-layout=landscape] #takePhoto{grid-column:2;grid-row:3;align-self:end;margin:0}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:640px){
body[data-layout=landscape] main{padding-top:6px;padding-bottom:6px}
body[data-layout=landscape] #capture{grid-template-columns:100px minmax(0,1fr);gap:6px 10px}
body[data-layout=landscape] #fields{grid-template-columns:minmax(0,1fr) 112px;gap:10px}
body[data-layout=landscape] .steps{gap:2px;padding-right:8px}
body[data-layout=landscape] .steps li button{font-size:12px;padding:9px 5px}
body[data-layout=landscape] .step-dock{padding-left:8px;gap:8px}
body[data-layout=landscape] .step-dock button{padding:8px 5px;font-size:13px;min-height:46px}
body[data-layout=landscape] .step-dock #stepBack{min-width:0}
body[data-layout=landscape] .screen-heading{margin:2px 0 8px}
body[data-layout=landscape] .screen-heading h1{font-size:20px}
body[data-layout=landscape] .map-choice{min-height:90px;padding:14px}
body[data-layout=landscape] .map-choice strong{font-size:19px}
body[data-layout=landscape] .compact-details{gap:8px}
body[data-layout=landscape] .compact-details article{padding:10px}
body[data-layout=landscape] .compact-details label{font-size:12px;margin-top:5px}
body[data-layout=landscape] .compact-details input,body[data-layout=landscape] .compact-details select{font-size:13px;min-height:38px;padding:7px}
body[data-layout=landscape] .compact-details h2{font-size:14px}
body[data-layout=landscape] .compact-details textarea{height:65px;min-height:55px;font-size:13px}
body[data-layout=landscape] #screen3>article{padding:12px;gap:8px;grid-template-columns:minmax(150px,1fr) minmax(0,1fr)}
body[data-layout=landscape] .file-choice{font-size:12px;padding:8px}
body[data-layout=landscape] #preview:empty:before{min-height:120px}
body[data-layout=landscape] .location-confirm #unknownLocation{font-size:11px;max-width:none;min-height:30px}
}

/* Maintenance is an independent branch; the accident draft stays intact. */
#openMaintenance{display:block;width:100%;margin-top:12px;min-height:52px;background:#e3efec;border-color:#91b9ad}
body.maintenance-open .main-nav{display:none}
#maintenance{flex:1;min-height:0;overflow:auto}
#maintenanceBack{margin-bottom:12px}
#maintenanceForm{display:block;width:min(100%,460px);margin:0 auto;padding:12px}
#maintenanceTitle{font-size:clamp(22px,4vw,30px);letter-spacing:0}
#maintenanceNumber{font-size:32px;letter-spacing:8px;text-align:center;min-height:64px}
#maintenanceError{color:#9c3024;font-size:14px}
#maintenanceError:empty{display:none}
#maintenanceForm .primary{margin-top:12px}

/* Number entry and compact portrait phone layout. */
#accidentNumber{font-size:30px;letter-spacing:8px;text-align:center;min-height:58px}
#accidentNumber[aria-invalid=true]{border-color:#b75b47}
#accidentNumberStatus{min-height:18px}
#unknownInitiator{font-size:13px;min-height:44px;padding:8px 10px}
#catalogNotice:empty{display:none}
@media(max-width:600px) and (orientation:portrait){
 main,body[data-layout=phone] main{padding: max(6px,env(safe-area-inset-top)) 10px 0}
 .steps{height:38px;gap:2px}
 .steps li button{font-size:11px;min-height:36px;white-space:nowrap}
 #draftStatus{font-size:10px;margin:2px 0;padding:2px 4px}
 .screen-heading,body[data-layout=phone] .screen-heading{margin:8px 0}
 .screen-heading h1,body[data-layout=phone] .screen-heading h1{font-size:22px}
 .map-choices,body[data-layout=phone] .map-choices{gap:8px}
 .map-choice,body[data-layout=phone] .map-choice{min-height:72px;padding:14px;border-radius:12px}
 .map-choice strong,body[data-layout=phone] .map-choice strong{font-size:20px}
 #openMaintenance{margin-top:8px;min-height:50px}
 .compact-details,body[data-layout=phone] .compact-details{grid-template-columns:1fr;gap:8px}
 .compact-details article,body[data-layout=phone] .compact-details article{padding:10px 12px}
 .compact-details label{margin:6px 0 4px;font-size:13px}
 .compact-details input,.compact-details select,.compact-details textarea{font-size:16px;min-height:44px}
 #accidentNumber{font-size:30px;min-height:56px;padding:6px 12px}
 #screen4 .compact-details h2{display:none}
 #screen4 .compact-details article>label:first-child{margin-top:0}
 #screen4 #catalogNotice{margin:0 0 6px;font-size:11px}
 #screen4 .check{margin-top:8px;min-height:32px}
 #screen4 .check input{width:22px;min-height:22px;flex-shrink:0}
 #carSummary{max-height:64px;line-height:1.35}
 .step-dock{gap:8px;min-height:62px;padding:8px 0 max(8px,env(safe-area-inset-bottom))}
 .step-dock button{min-height:46px;font-size:16px}
 #maintenanceForm{padding:6px 0}
}

/* Portrait flow: reachable controls, one scroll area and compact content. */
@media(max-width:600px) and (orientation:portrait){
 .screen{scroll-padding:12px;padding-bottom:8px}
 #screen1 .map-choice{width:100%;justify-content:flex-start}
 #screen1 .map-number{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:#e7f2ed;border-radius:8px}
 #screen1 .map-choice strong{line-height:1.25}
 .main-nav{min-height:36px}
 .main-nav button{min-height:36px}
 #screen2 .map-panel{padding:6px;border-radius:12px}
 .map-tools,body[data-layout=phone] .map-tools{gap:4px}
 .map-tools button{min-height:44px;min-width:44px;padding:6px 8px;font-size:13px}
 .map-tools output{min-width:38px;font-size:12px}
 .map-tools #centerPoint{min-width:0;font-size:12px}
 #mapLoadStatus{font-size:11px;line-height:1.3;margin-top:5px}
 .location-confirm,body[data-layout=phone] .location-confirm{gap:4px;min-height:44px}
 .location-confirm #unknownLocation{max-width:170px;min-height:44px;font-size:11px;padding:5px}
 #screen3>article{padding:12px;border-radius:12px}
 #openCamera{min-height:52px;font-size:17px}
 .file-choice{position:relative;min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px;font-size:14px;margin:8px 0}
 .file-choice:focus-within{outline:3px solid #96dcca;outline-offset:2px}
 .file-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
 #cameraStatus{font-size:12px;line-height:1.4}
 #preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .photo-tile{width:auto;min-width:0}
 #preview img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
 .photo-tile button{min-height:44px;font-size:12px}
 #screen5 .compact-details{gap:8px}
 #screen5 .compact-details article{padding:10px 12px}
 #screen5 label:first-child{margin-top:0}
 #screen5 textarea{height:82px;min-height:70px;resize:vertical}
 #occurredAt{max-width:100%;min-width:0}
 #maintenance{display:flex;flex-direction:column;padding-bottom:max(10px,env(safe-area-inset-bottom));scroll-padding:12px}
 #maintenanceBack{align-self:flex-start;min-height:44px;margin-bottom:8px}
 #maintenanceForm{width:100%;max-width:460px;background:white;border:1px solid #dce5e6;border-radius:14px;padding:16px;margin:0 auto}
 #maintenanceTitle{font-size:23px;line-height:1.2;margin:0 0 18px}
 #maintenanceForm label{margin-top:0}
 #maintenanceNumber{font-size:30px;min-height:58px}
 #maintenanceHint{font-size:12px;line-height:1.4}
 #maintenanceForm .primary{min-height:48px}
 #journal>article{padding:12px;border-radius:12px;margin:0}
 .journal-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}
 .journal-heading h2{font-size:20px}
 .journal-heading .hint{display:none}
 .journal-heading #retry{min-height:44px;margin:0;padding:8px;font-size:12px;max-width:140px}
 #search{min-height:44px;font-size:16px}
 .event{padding:14px 0}
 .event h3{font-size:16px;line-height:1.35}
 .event p{font-size:14px}
 .event small{font-size:11px;overflow-wrap:anywhere;display:block}
 .event .pill{font-size:11px;line-height:1.4}
 .event img{width:72px;height:64px;margin:6px 6px 0 0}
 #cameraDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px;border-radius:14px}
 .dialog-head{gap:8px;margin-bottom:8px}
 .dialog-head h2{font-size:19px}
 #cameraVideo{max-height:55dvh;display:block}
 #cameraHelp{font-size:12px;margin:8px 0}
 #takePhoto{min-height:48px;margin-top:8px}
}
@media(max-width:360px) and (orientation:portrait){
 .steps li button{font-size:10px}
 .map-choice strong,body[data-layout=phone] .map-choice strong{font-size:18px}
 #maintenanceTitle{font-size:21px}
}
