/* Finder's map remains a real viewport, beside one working rail. */
.page-find { --gut:20px; --bar:56px; height:100dvh; overflow:hidden; display:flex; flex-direction:column; }
.page-find .find { display:grid; grid-template-columns:384px minmax(0,1fr); overflow:hidden; }
.page-find .rail { min-height:0; height:100%; z-index:5; background:var(--panel); border-right:1px solid var(--rule); }
.page-find .side { position:relative; inset:auto; width:100%; max-height:none; height:100%; border-radius:0; box-shadow:none; overflow:hidden; display:flex; flex-direction:column; }
.page-find .controls { flex:none; padding:18px 20px 12px; z-index:20; background:var(--panel); }
.page-find .query-summary { display:none; }
.page-find.has-ticket .query-summary { display:flex; width:100%; justify-content:space-between; gap:8px; background:transparent; border:0; padding:10px 0 0; text-align:left; font-size:11px; color:var(--ink-2); }
.page-find .search-box { min-height:48px; padding:2px 10px 2px 13px; border-radius:6px; box-shadow:inset 0 0 0 1px #98a59b; }
.page-find .search-input { font-size:16px; font-weight:600; }
.page-find .search-clear { width:44px; height:44px; }
.page-find .picker-list { max-height:min(460px,55dvh); }
.page-find .filter-panel { flex:none; padding:0 20px 12px; min-height:0; }
.filter-title { display:none; }
.page-find .material-controls { gap:8px; margin-top:0; margin-bottom:10px; }
.page-find .material-controls label { min-width:0; flex:1; }
.page-find .material-controls label>span { font-size:11px; letter-spacing:.02em; color:var(--ink-2); }
.page-find .material-controls select { width:100%; height:42px; min-height:42px; border-radius:5px; background:var(--panel); font-size:14px; font-weight:650; }
.page-find .action-switch { margin-bottom:12px; padding:3px; gap:1px; border-radius:6px; background:var(--page-2); }
.page-find .action-switch button { min-height:40px; font-size:12px; padding:4px 5px; border-radius:4px; }
.page-find .action-switch button[aria-pressed="true"] { background:var(--fence); color:#fff; box-shadow:none; }
.page-find .haul-settings { margin-top:8px; border:0; border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); border-radius:0; background:transparent; }
.page-find .haul-settings>summary { min-height:46px; padding:8px 0; font-size:13px; }
.page-find .haul-edit { font-size:12px; }
.page-find .settings-body { max-height:none; overflow:visible; padding:10px 0 0; }
.page-find .pickup-start { margin-top:8px; }
.page-find .pickup-start summary { min-height:44px; }
.page-find .apply-filters { display:none; }
.page-find .results-heading { flex:none; min-height:44px; padding:10px 20px; border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); background:var(--page); }
.page-find .results-heading .count { font-size:12px; min-height:20px; }
.page-find .leg-label { font-size:10px; }
.page-find .scroll { overflow:auto; min-height:0; flex:1; border-top:0; scrollbar-gutter:auto; }
.page-find .row { padding-right:14px; gap:6px; }
.page-find .row .hit { grid-template-columns:48px minmax(0,1fr); gap:12px; min-height:100px; padding:14px 0 14px 14px; }
.page-find .row .name { font-size:16px; font-weight:750; }
.page-find .row .meta { font-size:12px; }
.page-find .row .min .n { font-size:27px; }
.page-find .row .min .u { font-size:10px; }
.page-find .row .call { width:44px; height:44px; padding:0; border-radius:6px; background:var(--page-2); color:var(--fence); }
.page-find .row .call .ic { width:18px; height:18px; }
.page-find .row .call-n { display:none; }
.page-find .row .product-line { font-size:11px; line-height:1.3; }
.page-find .row .review { font-size:11px; }
.page-find .cut { padding:18px 20px 8px; }
.page-find .cut::after { height:1px; background:var(--rule); }
.page-find .side-foot { flex:none; padding:10px 20px; font-size:11px; }
.page-find .art-foot { display:none!important; }
.page-find .ticket { position:relative; inset:auto; width:100%; flex:1; min-height:0; border-radius:0; box-shadow:none; animation:none; overflow:auto; padding:0 0 22px; }
.page-find.has-ticket:not(.is-editing) .scroll,.page-find.has-ticket:not(.is-editing) .filter-panel,.page-find.has-ticket:not(.is-editing) .results-heading,.page-find.has-ticket:not(.is-editing) .side-foot { display:none; }
.page-find .t-back { width:100%; min-height:46px; display:flex; align-items:center; gap:8px; padding:8px 20px; border:0; border-bottom:1px solid var(--line); background:var(--panel); font-size:13px; font-weight:700; color:var(--fence); cursor:pointer; }
.page-find .t-back .ic { transform:rotate(180deg); width:14px; }
.page-find .t-head { padding:18px 20px 16px; display:flex; flex-direction:column; }
.page-find .t-head h2 { margin:0; font-size:24px; letter-spacing:-.035em; order:1; }
.page-find .t-town { font-size:14px; margin:4px 0 16px; order:2; }
.page-find .t-min,.page-find .t-type { order:3; }
.page-find .t-min .n { font-size:40px; }
.page-find .route-basis { font:600 11px var(--sans); letter-spacing:0; color:var(--ink-2); }
.page-find .t-actions { position:sticky; top:0; z-index:3; flex-direction:row; align-items:center; padding:10px 20px; gap:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--panel); }
.page-find .call-wide { height:44px; padding:4px 14px; font-size:14px; box-shadow:none; border-radius:5px; }
.page-find .t-actions .call-wide { flex:1; width:auto; min-width:0; }
.page-find .t-actions .web { flex:none; }
.page-find .t-actions .web { min-height:44px; }
.page-find .web { font-size:12px; }
.page-find .aerial { display:none; }
.page-find .kv { margin:6px 20px 0; grid-template-columns:86px minmax(0,1fr); }
.page-find .kv dd { font-size:13px; }
.page-find .sec { margin-top:22px; }
.page-find .detail-note,.page-find .t-review,.page-find .approach-warning { margin-left:20px; margin-right:20px; }
.page-find .mapwrap { position:relative; inset:auto; display:block; margin:0; min-height:0; height:100%; border-radius:0; overflow:hidden; }
.page-find .map { inset:0; }
.page-find .layerbar,.page-find.has-ticket .layerbar { left:auto; right:16px; top:65px; bottom:auto; display:none; flex-direction:column; min-width:190px; padding:6px; border:1px solid var(--rule); border-radius:7px; box-shadow:var(--e2); }
.page-find .layerbar.is-open { display:flex; }
.page-find .layers-btn { display:flex; position:absolute; top:16px; left:16px; z-index:3; min-height:44px; height:44px; padding:0 12px; border:1px solid var(--rule); border-radius:5px; background:var(--panel); box-shadow:var(--e1); align-items:center; gap:7px; font-size:12px; font-weight:700; }
.page-find .fit-map { position:absolute; top:16px; right:56px; z-index:3; min-height:44px; padding:0 12px; border:1px solid var(--rule); border-radius:5px; background:var(--panel); box-shadow:var(--e1); font-size:12px; font-weight:700; cursor:pointer; }
.page-find .strip { display:none!important; }
.page-find.is-editing .filter-panel { flex:1; min-height:0; overflow:auto; padding-top:0; }
.page-find.is-editing .filter-title { display:flex; align-items:center; justify-content:space-between; position:sticky; z-index:5; top:0; padding:8px 0; background:var(--panel); }
.filter-title h2 { margin:0; font-size:18px; letter-spacing:-.02em; }
.filter-title button { min-height:44px; padding:0 12px; background:var(--page-2); color:var(--fence); font-size:13px; font-weight:700; border:0; border-radius:5px; }
.page-find.is-editing .scroll,.page-find.is-editing .ticket,.page-find.is-editing .results-heading,.page-find.is-editing .side-foot { display:none; }
.page-find.is-editing .apply-filters { display:block; margin:20px 0 8px; width:100%; min-height:46px; background:var(--fence); color:#fff; border:0; border-radius:5px; font-weight:700; }
.site-choice { padding:12px 20px; border-bottom:1px solid var(--rule); background:var(--page-2); }
.site-choice p { margin:0 0 8px; font-size:13px; }
.site-choice button { display:block; width:100%; text-align:left; min-height:44px; border:0; background:var(--panel); margin:3px 0; padding:8px; color:var(--fence); font-weight:650; }
.move-job { padding:10px; font-size:13px; }
.move-job button { min-height:44px; display:block; width:100%; margin-top:8px; border:0; border-radius:4px; background:var(--fence); color:#fff; font-weight:700; }
.start-pin { background:var(--ink); border:2px solid var(--panel); color:#fff; padding:5px 8px 4px; border-radius:4px; box-shadow:0 1px 5px #233a3230; font:700 11px var(--sans); }
.page-find .route-msg { flex:none; margin:0; padding:10px 20px; border-top:1px solid var(--rule); background:var(--page); color:var(--ink-2); font-size:13px; line-height:1.4; }
.page-find .route-msg[hidden] { display:none; }
.page-find .row .call { width:56px; min-width:56px; gap:3px; flex-direction:column; font-size:13px; line-height:1; }
.page-find .row .call .ic { width:15px; height:15px; }
.page-find .row .min .u { font-size:11px; }
.page-find .row .min { flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; }
.page-find .row .hit { grid-template-columns:58px minmax(0,1fr); }
.page-find .row .min .n { font-size:24px; max-width:100%; }
.page-find .material-controls label>span,.page-find .query-summary,.page-find .action-switch button,.page-find .results-heading .count,.page-find .row .meta,.page-find .row .product-line,.page-find .row .review { font-size:13px; }
.page-find .material-controls select { min-height:44px; }
.page-find .sheet-stops button { font-size:13px; }
.page-find.is-editing .route-msg { display:none; }
@media(min-width:861px) and (max-width:1100px) { .page-find .find { grid-template-columns:360px minmax(0,1fr); } }
@media(max-width:860px) {
  .page-find { --bar:48px; --gut:16px; }
  .page-find .find,body.page-find[data-view="map"] .find { display:block; position:relative; flex:1; min-height:0; }
  .page-find .rail { position:static; width:auto; height:auto; border:0; }
  .page-find .side,.page-find.has-site .side { position:absolute; left:0; right:0; top:auto; bottom:0; width:auto; height:var(--sheet-drag-height,var(--sheet-half)); max-height:none; border-radius:18px 18px 0 0; z-index:12; overflow:hidden; }
  body.page-find[data-sheet="peek"] .side { height:var(--sheet-drag-height,var(--sheet-peek)); }
  body.page-find[data-sheet="expanded"] .side { height:var(--sheet-drag-height,var(--sheet-expanded)); }
  .page-find .controls,.page-find .controls:has(.haul-settings[open]),.page-find .controls:has(#approach-edit[open]) { position:fixed; top:calc(var(--bar) + 10px); left:12px; right:12px; z-index:18; background:transparent; padding:0; max-height:none; overflow:visible; pointer-events:none; }
  .page-find .controls>* { pointer-events:auto; }
  .page-find .search-box { background:var(--panel); min-height:48px; box-shadow:0 2px 9px #233a3220,inset 0 0 0 1px #a9b6ab; }
  .page-find .search-input { font-size:16px; font-weight:600; }
  .page-find .query-summary { margin-top:6px; width:100%; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 12px; border:1px solid var(--rule); border-radius:5px; box-shadow:var(--e1); background:var(--panel); color:var(--ink); font-size:13px; text-align:left; }
  .page-find.has-ticket .query-summary { margin-top:6px; min-height:40px; padding:7px 12px; border:1px solid var(--rule); background:var(--panel); color:var(--ink); font-size:12px; box-shadow:var(--e1); }
  .query-summary>span:first-child { font-weight:750; }
  .query-summary>span:last-child { color:var(--fence); font-size:13px; white-space:nowrap; }
  .page-find .search-msg { background:var(--panel); padding:8px 10px; border-radius:4px; box-shadow:var(--e1); max-height:72px; overflow:auto; }
  .page-find .picker-list { max-height:calc(var(--visible-height,100dvh) - 132px); }
  .page-find .filter-panel { display:none; padding:0 16px 16px; }
  .page-find.is-editing .filter-panel { display:block; }
  .page-find .filter-title { margin-bottom:8px; }
  .page-find .material-controls select { min-height:44px; font-size:16px; }
  .page-find .action-switch button { min-height:44px; font-size:13px; }
  .page-find .settings-body input,.page-find .settings-body select,.page-find .approach-weight input { min-height:44px; font-size:16px; }
  .page-find .truck-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-find .truck-grid label>span { display:flex; align-items:center; gap:6px; }
  .page-find .truck-grid input { flex:1; width:100px; min-width:0; max-width:calc(100% - 22px); }
  .page-find .approach-weight input { width:110px; }
  .page-find .settings-body { overflow:visible; }
  .page-find .results-heading { padding:6px 16px; min-height:32px; }
  .page-find .results-heading .count { font-size:13px; }
  .page-find .row { padding-right:12px; }
  .page-find .row .hit { grid-template-columns:44px minmax(0,1fr); min-height:94px; padding:12px 0 12px 12px; gap:10px; }
  .page-find .scroll,body.page-find[data-view="map"] .scroll { display:block; overflow:auto; border:0; }
  .page-find .side-foot { display:none; }
  .page-find .ticket:not([hidden]),body.page-find.ticket-open .ticket:not([hidden]) { display:block; position:relative; inset:auto; width:100%; height:auto; z-index:1; padding:0 0 24px; box-shadow:none; border-radius:0; overflow:auto; animation:none; }
  .page-find .t-head,body.page-find.ticket-open .ticket .t-head { padding:16px 16px 12px; }
  .page-find .t-head h2 { font-size:22px; }
  .page-find .t-town { margin-bottom:10px; }
  .page-find .t-min .n { font-size:34px; }
  .page-find .t-actions { padding:8px 16px; }
  .page-find .t-back { padding-left:16px; }
  .page-find .kv { margin-left:16px; margin-right:16px; }
  .page-find .mapwrap,.page-find:not(.has-site) .mapwrap,body.page-find[data-view="map"] .mapwrap,.page-find:not(.has-site)[data-view="map"] .mapwrap { display:block; position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:0; border-radius:0; }
  .page-find .layers-btn { top:116px; left:12px; min-height:44px; }
  .page-find .fit-map { top:116px; right:12px; }
  .page-find .layerbar,.page-find.has-ticket .layerbar { top:166px; right:auto; left:12px; }
  .page-find .maplibregl-ctrl-top-right { top:166px; right:12px; }
  .page-find .maplibregl-ctrl-bottom-right { bottom:var(--map-bottom,45dvh); }
  .page-find .maplibregl-ctrl-group button { width:44px!important; height:44px!important; }
  .page-find .sheet-heading>p { max-width:145px; }
  .page-find .sheet-heading>p small { display:block; font:500 10px/1.5 var(--mono); color:var(--ink-2); }
  .page-find .sheet-title-selection { display:none; }
  .page-find .sheet-title-section { display:block; }
  .page-find[data-sheet="peek"] .sheet-title-selection { display:block; }
  .page-find[data-sheet="peek"] .sheet-title-section { display:none; }
  .page-find .sheet-peek-note { display:none; margin:6px 0 8px; font-size:12px; color:var(--ink-2); }
  .page-find[data-sheet="peek"] .sheet-peek-note:not([hidden]) { display:block; }
  .page-find.has-ticket[data-sheet="peek"] .ticket:not([hidden]) { display:none; }
  .page-find #sheet-quick-call .call { min-width:52px; height:44px; padding:0 5px; gap:3px; background:var(--fence); color:#fff; }
  .page-find #sheet-quick-call .call-n { display:none; }
  .page-find.has-ticket:not(.is-editing) .results-heading,.page-find.has-ticket:not(.is-editing) .scroll { display:none; }
  .page-find.is-editing .ticket:not([hidden]),body.page-find.is-editing.ticket-open .ticket:not([hidden]) { display:none; }
  .page-find.is-searching .query-summary { display:none; }
  .page-find.is-searching .sheet-grip { opacity:.7; }
  .page-find.is-editing .sheet-stops { display:none; }
  .page-find.is-editing .sheet-heading>p { max-width:none; }
  .page-find .filter-title { justify-content:space-between; }
  .page-find .route-msg { padding:8px 16px; }
  .page-find .row .hit { grid-template-columns:58px minmax(0,1fr); }
  .page-find .row .min .u { white-space:nowrap; }
}
@media(min-width:600px) and (max-width:860px) and (max-height:500px) {
  .page-find .find,body.page-find[data-view="map"] .find { display:grid; grid-template-columns:320px minmax(0,1fr); }
  .page-find .rail { height:100%; min-height:0; border-right:1px solid var(--rule); }
  .page-find .side,.page-find.has-site .side,body.page-find[data-sheet] .side { position:relative; inset:auto; width:100%; height:100%; border-radius:0; border:0; }
  .page-find .sheet-grip { display:none; }
  .page-find .controls,.page-find .controls:has(.haul-settings[open]),.page-find .controls:has(#approach-edit[open]) { position:relative; inset:auto; padding:8px 12px; flex:none; }
  .page-find .query-summary,.page-find.has-ticket .query-summary { font-size:11px; }
  .page-find .mapwrap,.page-find:not(.has-site) .mapwrap,body.page-find[data-view="map"] .mapwrap,.page-find:not(.has-site)[data-view="map"] .mapwrap { position:relative; inset:auto; height:100%; }
  .page-find .layers-btn,.page-find .fit-map { top:12px; }
  .page-find .layerbar,.page-find.has-ticket .layerbar { top:62px; }
  .page-find .maplibregl-ctrl-bottom-right { bottom:0; }
}
@media(max-height:560px) and (max-width:860px) {
  .page-find .query-summary { min-height:36px; margin-top:4px; }
  .page-find .layers-btn,.page-find .fit-map { top:108px; }
  .page-find .maplibregl-ctrl-top-right { top:108px; }
}
