/* Native selects on Safari otherwise adopt the compact menu-button appearance. */
main form select, .owner-shell select, .section-heading select, main #nearby-radius {
  appearance:none; -webkit-appearance:none; height:50px; min-height:50px; box-sizing:border-box;
  padding:0 40px 0 13px; border:1px solid var(--border); border-radius:12px; color:var(--text);
  background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' stroke='%238bc3db' stroke-width='1.7' fill='none'/%3E%3C/svg%3E") no-repeat right 13px center;
}
main .experience-form select {height:50px; min-height:50px; padding-block:0;}
.photo-picker {position:relative; overflow:hidden;}
.photo-picker input[type=file] {position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:auto;cursor:pointer;margin:0;}
.photo-picker:focus-within {outline:2px solid var(--cyan);outline-offset:2px;}
.picked-photo {display:block;overflow-wrap:anywhere;color:var(--cyan);}
.public-hero,.studio-grid {display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(20px,4vw,68px);align-items:center;margin-bottom:36px;}
.public-hero img {width:100%;aspect-ratio:1.65;object-fit:cover;border-radius:20px;}
.public-hero h1,.owner-work h2 {text-wrap:balance;}
.public-grid,.owner-kpis {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:16px;margin:18px 0;}
.public-card {overflow:hidden;padding:0;}
.public-card>img,.admin-car-photo {width:100%;max-height:370px;object-fit:contain;background:var(--bg);}
.public-card>div,.driver-card,.public-profile {padding:24px;}
.public-card h3,.driver-card h2,.compact-record h3 {margin:.25em 0;}
.story-body {white-space:pre-line;overflow-wrap:anywhere;}
.public-profile {margin:22px 0;}
.studio-grid {align-items:start;gap:22px;}
.portal-check {display:flex;align-items:center;gap:12px;}
.portal-check input[type=checkbox] {width:19px;height:19px;min-height:0;flex:none;margin:0;}
.profile-preview {border-left:3px solid var(--cyan);padding:10px 16px;margin-block:20px;background:var(--bg);}
.studio-row,.compact-record,.section-heading,.refresh-row,.portal-search,.period-toolbar {display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.studio-row,.compact-record,.section-heading {justify-content:space-between;}
.studio-row {border-top:1px solid var(--border);padding-block:12px;}
.portal-search,.period-toolbar {align-items:end;margin:12px 0 20px;}
.portal-search label,.period-toolbar label,.refresh-row label,.section-heading label {margin:0;max-width:100%;}
.portal-search label:first-child {flex:1;min-width:min(220px,100%);}
.owner-shell {display:grid;grid-template-columns:195px minmax(0,1fr);align-items:start;gap:26px;}
.owner-sidebar {position:sticky;top:85px;border:1px solid var(--border);border-radius:16px;background:var(--card);padding:12px;}
.owner-sidebar summary {cursor:pointer;font-weight:700;padding:6px;}
.owner-sidebar nav {display:grid;gap:4px;margin-top:12px;}
.owner-sidebar a {display:block;text-decoration:none;border-radius:8px;padding:9px 12px;font-weight:590;}
.owner-sidebar [aria-current=page] {background:#153852;color:var(--cyan);}
.owner-work {min-width:0;}
.owner-work h2 {margin-top:0;}
.owner-work .panel {margin-bottom:14px;}
.owner-kpis {grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));}
.owner-kpis a {display:grid;align-content:center;gap:6px;text-decoration:none;margin:0!important;min-height:94px;}
.owner-kpis b {font-size:clamp(24px,3vw,36px);color:var(--cyan);}
.refresh-row {justify-content:flex-end;margin-bottom:20px;}
.refresh-row small {margin-right:auto;}
.refresh-row label {display:flex;align-items:center;gap:8px;}
.refresh-row select {width:auto;}
.volume-bars {height:120px;display:flex;align-items:end;gap:2px;margin-top:18px;border-bottom:1px solid var(--border);}
.volume-bars i {background:var(--cyan);border-radius:2px 2px 0 0;flex:1;}
.geo-map {padding:10px;background:var(--bg);border:1px solid var(--border);border-radius:14px;}
.geo-map svg {width:100%;max-height:420px;display:block;}
.geo-map [role=button] {cursor:pointer;}
.geo-map path:focus {stroke:white;stroke-width:2;}
.geo-legend {display:flex;gap:18px;flex-wrap:wrap;font-size:.85rem;}
.geo-legend span:before {content:'';display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;background:#20394a;}
.geo-legend span:nth-child(2):before {background:#294a60;}
.geo-legend span:nth-child(3):before {background:#235574;}
.geo-legend span:nth-child(4):before {background:#50cbf4;}
.data-section {min-width:0;margin-block:16px;}
.tablebox {overflow:auto;max-height:420px;}
.tablebox th {position:sticky;top:0;background:var(--card);z-index:1;}
.owner-records .compact-record {padding:12px 18px;}
.compact-record p {margin:0;}
#owner-report-map {height:340px;border-radius:16px;overflow:hidden;margin:16px 0;}
.admin-pin {width:36px;height:36px;min-height:36px;padding:6px;border-radius:50%;color:white;}
.admin-pin svg {width:23px;height:23px;}
.admin-pin.level-1 {background:#11784e;}
.admin-pin.level-2 {background:#9c6000;}
.admin-pin.level-3 {background:#bb2b4f;}
@media(max-width:760px) {
 .owner-shell,.studio-grid,.public-hero {grid-template-columns:minmax(0,1fr);}
 .public-hero {gap:18px;}.public-hero img {max-height:220px;}
 .owner-sidebar {position:static;}.owner-shell {gap:18px;}
 .period-toolbar label {flex:1 1 120px;}
 .refresh-row {justify-content:flex-start;}
 .owner-kpis {grid-template-columns:repeat(2,minmax(0,1fr));}
 .portal-search {align-items:stretch;}
}

.driver-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;}
.proof-dialog{width:min(460px,90vw);color:var(--text);}.proof-dialog::backdrop{background:#020d18c9;}

.compact-record.selected-record{border-color:var(--cyan);}.map-mode{margin-top:15px;}

.geo-map{overflow:auto;max-height:450px;}.geo-map svg{max-width:none;}.geo-zoom{display:flex;gap:6px;margin-top:6px;}.geo-zoom button{min-width:40px;padding:4px;}

dialog.proof-dialog {margin:auto;max-height:85dvh;overflow:auto;background:var(--card);border:1px solid var(--border);border-radius:18px;color-scheme:dark;}
.proof-dialog h2 {font-size:1.2rem;white-space:pre-line;overflow-wrap:anywhere;}
.proof-dialog textarea,.proof-dialog input {width:100%;box-sizing:border-box;min-height:48px;}
.proof-dialog .actions {justify-content:flex-end;margin-top:16px;}

.proof-dialog.record-confirmation[open] {display:grid;gap:20px;}
.record-confirmation h2,.record-confirmation p,.record-confirmation .actions {margin:0;}
.record-identity {display:grid;gap:6px;overflow-wrap:anywhere;}
.record-identity code {color:var(--muted);font-size:.85rem;}
.record-confirmation p {line-height:1.55;font-weight:400;}
