/* V0.2: compact visual hierarchy; touch targets remain at least 44 × 44 px. */
html{scroll-padding-top:100px}body{font-size:14px;line-height:1.4}
header{position:sticky;top:0;z-index:20;padding:8px max(12px,calc((100vw - 1240px)/2));gap:12px;box-shadow:0 2px 8px #00000008}
.brand{font-size:19px;gap:8px;flex-shrink:0}.brand small{font-size:11px}.mark{width:36px;height:36px;border-radius:9px;font-size:13px}
.headerStatus{flex:1;min-width:0;padding:0 4px;font-size:12px;line-height:1.3}.headerStatus #accountLabel{display:block;color:var(--muted);overflow-wrap:anywhere;font-size:11px}
#notice{margin:2px 0 0;padding:0;border:0;background:none;color:var(--accent);max-width:none;overflow-wrap:anywhere}
#notice.error{color:#ad293c;font-weight:650}:root[data-theme=dark] #notice.error{color:#ffadb8}
@media(prefers-color-scheme:dark){:root[data-theme=system] #notice.error{color:#ffadb8}}
.tools{gap:5px}.tools select,.tools button{font-size:12px;padding:5px 8px;min-width:44px}
main{max-width:1240px;padding:10px 12px 18px}.release{font-size:11px;margin:0 0 8px;gap:5px}.dot{width:6px;height:6px}
h1,.hero h1{font-size:22px;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px;max-width:none;white-space:normal}h2{font-size:17px;margin:0 0 8px}p{margin:6px 0 10px}
.hero{padding:8px 0 10px}.hero p{margin:4px 0 7px}.hero .eyebrow{display:none}
.eyebrow{font-size:10px;letter-spacing:.08em}.card,.tile{padding:14px;border-radius:10px;margin-bottom:10px;box-shadow:none}
.grid{gap:12px}.tile{display:grid;grid-template-columns:40px 1fr;column-gap:10px;align-items:start}.tileIcon{grid-row:1/4;width:36px;height:36px;border-radius:8px;font-size:22px;margin:0}.tile h2{margin:0}.tile p{margin:4px 0 8px}.tile>span:last-child{grid-column:2;font-size:13px}.auth{max-width:440px;margin:22px auto}
nav{gap:5px;padding-bottom:8px;margin-bottom:12px}nav button{font-size:13px;padding:6px 12px}
button,input,select{min-height:44px;border-radius:7px;font-size:14px;padding:6px 10px}button{min-width:44px}form{gap:10px}label{font-size:12px;gap:3px}.filters{gap:10px}.hint{font-size:12px;margin:8px 0}.row{padding:8px 0}.row button{margin:6px 0 0}
th,td{padding:7px 9px;font-size:12px}.tableWrap{margin:10px 0}footer{margin-top:18px;font-size:11px}
.sectionHead{margin-bottom:8px}.sectionHead h1{margin:0}.sectionHead .eyebrow{margin:0 0 2px}
.subnav{display:flex;gap:6px;margin:0 0 10px}.subnav button{font-size:13px}.subnav [aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.formGrid button{align-self:end}.roadmap{background:var(--soft)}.roadmap p{max-width:none}
@media(max-width:900px){header{flex-wrap:wrap}.headerStatus{order:3;flex:1 0 100%;display:flex;gap:10px;align-items:baseline;min-height:18px}.headerStatus #accountLabel{flex-shrink:0}.tools{margin-left:auto}.brand small{display:none}html{scroll-padding-top:110px}}
@media(max-width:640px){main{padding:8px}.grid{grid-template-columns:1fr;gap:0}.card,.tile{padding:12px}nav{gap:4px}nav button{flex:0 1 auto;padding:5px 9px;font-size:12px}.hero h1{font-size:21px}.hero p{font-size:13px}.tools{gap:4px}.tools button{font-size:11px;padding:4px 6px}.headerStatus{flex-wrap:wrap;gap:2px 8px}.headerStatus #accountLabel{max-width:100%;font-size:10px}.formGrid{gap:8px}header{padding:7px 8px;gap:5px}.brand{font-size:17px}.mark{width:32px;height:32px}.filters label{min-width:0}}

input[type=checkbox]{width:22px;min-height:22px;justify-self:start}#locationMap{height:360px;isolation:isolate;z-index:0}#users .row button{margin-right:8px}#deviceControls{margin-top:12px}

.brandLogo{width:40px;height:40px;object-fit:contain;border-radius:6px;background:white}

#fenceMap{height:320px;isolation:isolate;z-index:0;margin:10px 0}
.vehicleIcon{object-fit:contain;vertical-align:middle;border-radius:6px;margin:0 10px 4px 0;background:var(--surface,#fff);flex-shrink:0}
.vehiclePhotoUpload{display:block;font-size:.875rem;margin-top:8px}
.vehiclePhotoUpload input{max-width:100%;min-height:44px}
.vehicleSelectionPhoto{display:inline-block;vertical-align:middle;margin-top:4px}

/* Vehicle tools remain usable within narrow mobile viewports. */
.vehicleExtras,.vehicleOcr{min-width:0}.vehicleExtras .subnav{display:flex;flex-wrap:wrap;gap:.4rem}.vehicleExtras input,.vehicleExtras select,.vehicleOcr input{max-width:100%;min-width:0}.vehicleExtras .row{display:flex;flex-wrap:wrap;gap:.5rem;overflow-wrap:anywhere}.vehicleExtras .row strong,.vehicleExtras .row small{flex-basis:100%}.vehicleOcr{margin-block:1rem;padding:.7rem;border:1px solid var(--line,#64748b);border-radius:8px}.vehicleOcr label{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.vehicleOcr button{margin:.5rem .4rem .5rem 0}header button{max-width:100%;overflow-wrap:anywhere}

.locationActionsRow{display:flex;flex-wrap:wrap;gap:8px}.locationActionsRow a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}#locationShareText{width:100%;max-width:100%;box-sizing:border-box}
.locationMenuIcon{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#locationShareDialog{width:min(420px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;overflow:auto;border:1px solid var(--line,#94a3b8);border-radius:12px;padding:16px;background:var(--surface,#fff);color:var(--text,#062c43)}#locationShareDialog::backdrop{background:#061c3099}.locationDialogHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.locationDialogHeading h2{margin:0;font-size:1.1rem}#locationShareDialog .locationActionsRow{display:grid;grid-template-columns:1fr;margin:8px 0}#locationShareDialog .locationActionsRow a,#locationShareDialog .locationActionsRow button{display:flex;align-items:center;gap:14px;min-height:48px;text-align:left;text-decoration:none}#locationShareDialog .locationActionsRow a:hover{background:var(--bg,#eef5f8)}

/* Explicit intrinsic-size limits are required for nested grids and native buttons,
 * including Safari with enlarged text. Wrap content instead of clipping overflow. */
.trackingTile .tileOpen{grid-column:2;justify-self:start}.quickTracking{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-top:10px;margin-top:8px}.quickTrackingSelectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quickTrackingFlags{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}.quickTrackingFlags label{display:flex;align-items:center;gap:8px;min-height:44px}.quickTrackingSelectors label,.quickTrackingSelectors select{min-width:0;max-width:100%}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;width:100%;margin:0}
main,#workspace,[data-page],.card,.hero,.grid,.tile,.formGrid{min-width:0;max-width:100%}
main{width:100%}
button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.grid,.formGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tile{min-width:0;grid-template-columns:40px minmax(0,1fr)}
.tile>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.hero h1,.hero p,footer{overflow-wrap:anywhere}
nav,.subnav,.tools,.sectionHead{min-width:0;max-width:100%;flex-wrap:wrap}
nav button,.subnav button{min-width:0;max-width:100%}
@media(max-width:640px){.grid{grid-template-columns:minmax(0,1fr)}.formGrid{grid-template-columns:minmax(0,1fr)}.brand{min-width:0;max-width:100%;flex-wrap:wrap}.tools{margin-left:0}.headerStatus{min-width:0}.headerStatus>*{min-width:0;max-width:100%}}

/* Header controls share a 44px baseline; labelled device selectors may wrap on phones. */
header{align-items:flex-end}
header .tools,header .quickTrackingSelectors{align-items:flex-end}
header .tools{padding-bottom:0;margin-bottom:0}
header .tools select,header .tools button,header .quickTrackingSelectors select{height:44px;min-height:44px;box-sizing:border-box;margin-bottom:0}
header #headerVehicle{align-self:flex-end}

/* V0.6.8: compact controls retain a 44px touch target and visible focus. */
button:not(.tile),.subnav button,nav button{padding:4px 8px;font-size:13px;min-height:44px;line-height:1.25}
.actions,.trackingActions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.formGrid button{justify-self:start;width:auto}.filters{gap:8px}.subnav{gap:4px}
.portalTileSymbol{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.trackingTileActions{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.trackingTileActions .quickTracking{border:0;padding:0;margin:0;grid-column:auto}
.trackingTileActions .quickTrackingFlags{margin:0;gap:4px 12px}
.trackingTileActions .quickTrackingFlags label{gap:5px}
.trackingTile #quickTrackingState{grid-column:2;margin:0;font-size:11px}
.logbookTile #logbookOpen{grid-column:2;justify-self:start}
.locateSelectors{display:grid;grid-template-columns:minmax(140px,280px) 48px minmax(140px,220px) max-content;align-items:end;gap:10px}
.locateSelectors label{min-width:0}.locateSelectors .vehicleSelectionPhoto{width:48px;height:44px;display:flex;align-items:center;margin:0}
.locateSelectors .vehicleIcon{width:48px;height:44px;margin:0;object-fit:contain}
.locateSelectors button{grid-column:auto;justify-self:start}
@media(max-width:700px){.locateSelectors{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)}.locateSelectors button{grid-column:1/-1}.trackingTileActions{grid-column:1/-1}.trackingTile #quickTrackingState{grid-column:1/-1}}

.sourceDetailsLink{display:inline-flex;align-items:center;min-height:44px;margin-inline:6px;font-size:12px}

/* Reise und Kosten sind auch ohne GNSS-Hub nutzbar. */
#workspace[data-active-page=travel] #hubRequired,#workspace[data-active-page=costs] #hubRequired{display:none;}

/* V0.8: constrain intrinsic sizing, rather than hiding off-screen controls.
 * Native Safari date/select controls and nested grid labels otherwise retain
 * their content width even when the surrounding column is allowed to shrink. */
header{width:100%;max-width:100%;flex-wrap:wrap}
header>*{min-width:0;max-width:100%}
header .brand{flex:0 1 auto;overflow-wrap:anywhere}
header .brand>span{min-width:0}
header .tools{flex:0 1 auto;justify-content:flex-start}
header .tools>label{min-width:0;flex:0 1 auto}
#headerVehicle{flex:1 1 320px;min-width:0;max-width:100%}
form,form>*,label,.filters>*{min-width:0;max-width:100%}
input,select,textarea{min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
input[type=date],input[type=datetime-local],input[type=time]{display:block;inline-size:100%;min-width:0;max-width:100%}
input::-webkit-date-and-time-value{min-width:0;text-align:start}
nav{width:100%;flex-wrap:wrap}
nav button{flex:0 1 auto;white-space:normal;overflow-wrap:anywhere}
@media(max-width:640px){
 header .brand{flex-basis:100%}
 header .tools{flex-basis:100%;margin:0}
 header .tools select,header .tools button{font-size:16px}
 #headerVehicle{flex-basis:100%;width:100%}
 header .headerStatus{order:4;flex-basis:100%}
 .filters{grid-template-columns:minmax(0,1fr)}
 input,select,textarea{font-size:16px}
 .sectionHead{align-items:flex-start}
}

/* Whole portal tiles are one native, keyboard-accessible button each. */
[data-page="home"] .tile{cursor:pointer;text-align:left;position:relative;color:var(--text);font:inherit;width:100%}
[data-page="home"] .tile:hover{border-color:var(--accent,#5ecbd2)}
[data-page="home"] .tile:focus-visible{outline:3px solid var(--accent,#5ecbd2);outline-offset:3px}
header #quickTracking{border:0;padding:0;margin:2px 0 0;min-width:0}
header #quickTracking .quickTrackingFlags{margin:0;gap:4px 14px}
header #quickTracking .quickTrackingFlags label{min-height:36px;font-size:12px;margin:0;gap:6px}
header #quickTracking .quickTrackingFlags input{width:18px;height:18px;flex:none}
header #quickTrackingState{font-size:11px;line-height:1.2;margin:0;overflow-wrap:anywhere}

header #headerTracking{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;min-width:0}
header #headerTracking[hidden]{display:none}

/* Header controls: 44px × 80%; retain equal baselines and at least 44px width. */
header .tools select,header .tools button,header .quickTrackingSelectors select{height:35.2px;min-height:35.2px;padding-block:3px;line-height:1.2}
.logbook-chronology{margin-top:12px;min-width:0}.logbook-chronology details{border-top:1px solid var(--line);padding:8px 0}.logbook-chronology summary{cursor:pointer;overflow-wrap:anywhere}.logbook-chronology pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}

/* Vehicle reminders inherit theme text colors and distinguish urgency with words. */
#profileVehicleReminders{display:block;margin-top:.65rem;padding-top:.6rem;border-top:1px solid currentColor;text-align:left;overflow-wrap:anywhere}
#profileVehicleReminders[hidden]{display:none}
#profileVehicleReminders>strong,#profileVehicleReminders>span{display:block;margin:.3rem 0;font-size:.9rem;line-height:1.4}
#profileVehicleReminders [data-urgency="overdue"],#profileVehicleReminders [data-urgency="today"]{font-weight:700}
