/* JDM Desk · Freight map, built to the design board: one full map, a floating Shipments card on the left, vehicle markers, grouped pins, a tooltip on the chosen shipment. */
.fmscreen{display:flex;flex-direction:column;--sea:var(--line);--land:var(--surface);--bord:var(--line-strong);--rt:var(--t3)}
.fmscreen .fmframe{margin:16px 24px 24px;border:1px solid var(--line);height:calc(100vh - 210px);min-height:520px;background:var(--sea);position:relative}
.fmscreen .fmmap{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;background:var(--sea)}
.fmscreen .fmmap:active{cursor:grabbing}
.fmscreen .fmgl{position:absolute;inset:0;width:100%;height:100%}
.fmscreen .fmgl .maplibregl-canvas{outline:none}
.fmscreen .fmgl.tiles .maplibregl-canvas{filter:var(--m-tiles,none)}
.fmscreen .fmoff{position:absolute;inset-inline-end:16px;top:16px;max-width:320px;margin:0;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--t2);font-size:13px;line-height:18px;z-index:2}
.fmscreen .fmoff[hidden]{display:none}
.fmscreen .fmoff .btn{margin-top:8px}
.fmscreen .maplibregl-ctrl-attrib{font:400 13px/18px var(--body);color:var(--t2);background:color-mix(in srgb,var(--surface) 88%,transparent);padding:0 8px}
.fmscreen .maplibregl-ctrl-attrib a{color:var(--t2)}
.fmscreen .maplibregl-ctrl-bottom-right{z-index:1}
.fmscreen .dim{opacity:.35}
.fmscreen .fmov{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.fmscreen .fmpl{position:absolute;transform:translate(-50%,26px);font:400 13px/18px var(--body);color:var(--t2);white-space:nowrap;text-shadow:0 0 3px var(--land),0 0 3px var(--land)}
.fmscreen .fmpl.top{color:var(--ink);font-weight:500}
.fmscreen .mk{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:50%;border:1.5px solid var(--ink);background:var(--surface);color:var(--ink);pointer-events:auto;cursor:pointer}
.fmscreen .mk svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}
.fmscreen .mk.mv{background:var(--ink);color:var(--on-ink)}
.fmscreen .mk.late{border-color:var(--accent);background:var(--accent);color:var(--on-bad)}
.fmscreen .mk.sel{width:40px;height:40px;box-shadow:0 0 0 4px var(--surface),0 0 0 5px var(--ink);z-index:3}
.fmscreen .mk.sel svg{width:18px;height:18px}
.fmscreen .mk .nd{position:absolute;top:-3px;inset-inline-end:-3px;width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid var(--surface)}
.fmscreen .mk.cl{width:40px;height:40px;background:var(--ink);color:var(--on-ink);font:500 13px/18px var(--mono)}
.fmscreen .mk:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.fmscreen .mk-tip{position:absolute;transform:translate(24px,-50%);width:max-content;min-width:248px;max-width:312px;padding:12px;border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--overlay);pointer-events:auto;z-index:4;font-size:14px;line-height:20px}
.fmscreen .mk-tip.l{transform:translate(calc(-100% - 24px),-50%)}
.fmscreen .mk-tip.b{transform:translate(24px,-8px)}.fmscreen .mk-tip.b.l{transform:translate(calc(-100% - 24px),-8px)}
.fmscreen .mk-tip .t1{display:flex;gap:8px;font-weight:500}.fmscreen .mk-tip .t1 span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmscreen .mk-tip .t2{color:var(--t2)}
.fmscreen .mk-tip .t3{display:flex;gap:8px;align-items:center;color:var(--t2);font-size:13px;line-height:20px;margin-top:4px}.fmscreen .mk-tip .t3 .mono{margin-inline-start:auto}
.fmscreen .mk-tip .t4{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.fmscreen .fmzoom{position:absolute;top:16px;inset-inline-start:432px;display:flex;flex-direction:column;gap:4px}
.fmscreen .fmzoom .btn[aria-disabled=true]{opacity:.4}
.fmscreen .fmnote{display:none}
.fmscreen .fmleg{position:absolute;inset-inline-end:16px;bottom:40px;display:flex;flex-wrap:nowrap;white-space:nowrap;gap:4px 16px;max-width:none;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--t2);font-size:13px;line-height:20px}
.fmscreen .fmleg span{display:inline-flex;align-items:center;gap:6px}
.fmscreen .fmleg .lg{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--ink);color:var(--on-ink)}
.fmscreen .fmleg .lg svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.6}
.fmscreen .fmleg .ln{display:inline-block;width:18px;border-top:2px solid var(--ink)}
.fmscreen .fmleg .ln.dash{border-top:2px dashed var(--rt)}.fmscreen .fmleg .ln.dash.late{border-color:var(--accent)}
.fmscreen .fmcard{position:absolute;inset-inline-start:16px;top:16px;bottom:auto;max-height:calc(100% - 32px);width:400px;display:flex;flex-direction:column;border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--overlay);z-index:5;cursor:default}
.fmscreen .fmcard.shut{bottom:auto}
.fmscreen .fmch{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;min-height:40px;border-bottom:1px solid var(--line)}
.fmscreen .fmcard.shut .fmch{border-bottom:0}
.fmscreen .fmch h2{margin:0;font:500 14px/20px var(--body)}
.fmscreen .fmch .n,.fmscreen .tab .n{margin-inline-start:6px;color:var(--t3);font-weight:400}
.fmscreen .fmcb{display:flex;flex-direction:column;min-height:0;flex:1}
.fmscreen .fmcb[hidden]{display:none}
.fmscreen .fmq{display:flex;width:auto;align-self:stretch;margin:12px 16px 0}.fmscreen .fmq input{flex:1;min-width:0}
.fmscreen .fmtabs{display:flex;padding:0 16px;border-bottom:1px solid var(--line)}
.fmscreen .fmtabs .tab{padding:10px 0;margin-inline-end:16px}
.fmscreen .fmlist{flex:1;min-height:0;overflow:auto}
.fmscreen .fmgh{display:flex;justify-content:space-between;padding:8px 16px;background:var(--well);border-bottom:1px solid var(--line-soft);color:var(--t3);font:var(--lbl)}
.fmscreen .fmrow{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:4px 12px;width:100%;padding:8px 16px;border:0;border-bottom:1px solid var(--line-soft);background:none;color:var(--ink);text-align:start;font:inherit;cursor:pointer}
.fmscreen .fmrow:hover{background:var(--well)}
/* Click language v2 R11: the job code is the row's door; the chosen row is stronger than the hovered one. */
.fmscreen .fmrow .fmmain .l1 .mono{color:var(--link)}.fmscreen .fmrow:hover .fmmain .l1 .mono,.fmscreen .fmrow:focus-visible .fmmain .l1 .mono{text-decoration:underline;text-decoration-color:var(--link-line);text-underline-offset:3px}
.fmscreen .fmrow[aria-pressed=true]{background:var(--sel)}.fmscreen .fmrow[aria-pressed=true]:hover{background:var(--sel)}
.fmscreen .fmch .btn.sq.ghost{color:var(--t2)}.fmscreen .fmch .btn.sq.ghost:hover{color:var(--ink);background:var(--well)}
.fmscreen .fmrow[aria-pressed=true]{background:var(--well);box-shadow:inset 3px 0 0 var(--ink)}
.fmscreen .fmrow:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.fmscreen .fmic{flex:none;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--line-strong)}
.fmscreen .fmrow.flag .fmic{border-color:var(--accent);color:var(--accent)}
.fmscreen .fmic svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}
.fmscreen .fmmain{display:flex;flex-direction:column;min-width:0;gap:2px}
.fmscreen .fmmain .l1{display:flex;gap:8px;align-items:baseline;min-width:0;font-size:14px;line-height:20px}
.fmscreen .fmmain .l1 .mono{white-space:nowrap}
.fmscreen .fmmain .l1 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmscreen .fmmain .l2{min-width:0;overflow:hidden;display:flex;gap:8px;align-items:center;color:var(--t2);font-size:13px;line-height:20px}
.fmscreen .fmmain .l2 .act{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--accent)}
.fmscreen .fmmain .l3{color:var(--t3);font-size:13px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmscreen .fmwhen{display:flex;flex-direction:column;align-items:flex-end;color:var(--t2);font-size:13px;line-height:20px}
.fmscreen .fmwhen .k{color:var(--t3)}
.fmscreen .fmfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;border-top:1px solid var(--line)}
.fmscreen .fmfoot>.sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmscreen .fmfb{display:flex;gap:8px;margin-inline-start:auto}
/* look-fm-buttons: a label never wraps inside a button; a long (German) pair drops to its own row instead of being squeezed */
.fmscreen .fmfb .btn,.fmscreen .mk-tip .btn{white-space:nowrap;flex:none}
.fmscreen .fmfb .btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.fmscreen .fmnone{margin:0;padding:16px;color:var(--t3);font-size:14px}
@media (max-width:1000px){
.fmscreen .fmframe{margin:12px 16px 32px;height:auto;min-height:0;background:var(--surface)}
.fmscreen .fmmap{position:relative;inset:auto;height:auto;overflow:visible;display:flex;flex-direction:column;background:var(--surface);cursor:default}
.fmscreen .fmgl{height:360px;bottom:auto}
.fmscreen .fmov{height:360px;bottom:auto}
.fmscreen .fmcard{position:relative;inset-inline-start:auto;top:auto;bottom:auto;max-height:none;width:auto;margin-top:360px;border:0;border-top:1px solid var(--line);box-shadow:none}
.fmscreen .fmlist{max-height:420px}
.fmscreen .fmzoom{inset-inline-start:auto;inset-inline-end:12px;top:12px}
.fmscreen .fmnote{display:none}
.fmscreen .fmoff{inset-inline-start:12px;inset-inline-end:60px;max-width:none;bottom:auto;top:12px}
.fmscreen .fmleg{inset-inline-end:auto;inset-inline-start:12px;top:276px;bottom:auto;flex-wrap:wrap;max-width:calc(100% - 24px)}
.fmscreen .mk-tip{width:max-content;min-width:220px;max-width:calc(100% - 48px)}
}
}
.dlg .fm-evs{margin:0 0 16px;padding:0;list-style:none;border:1px solid var(--line)}
.dlg .fm-evs li{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:8px 12px;border-top:1px solid var(--line-soft);font-size:14px}
.dlg .fm-evs li:first-child{border-top:0}
.dlg .fm-evs .t{color:var(--t3);font-family:var(--mono);font-size:13px;line-height:20px}
.dlg .fm-why{margin:0 0 16px;padding:0;list-style:none;color:var(--t2);font-size:14px}
.dlg .fm-ck{display:flex;align-items:center;gap:8px;margin-bottom:16px;font-size:14px}
.dlg .fm-ck input{width:auto;height:auto}
.dlg .fld textarea.ta{height:auto;padding:8px 10px}
/* Modes walk (dd, 25 Oct 2026, spec/desk2/look-modes-walk.md): the map library paints its own attribution box white at half strength; in Slate, Graphite and Black that was a pale box with light text. It follows the surface and the greys now, in every mode. */
.fmscreen .maplibregl-ctrl.maplibregl-ctrl-attrib,.fmscreen .maplibregl-ctrl-attrib.maplibregl-compact,.fmscreen .maplibregl-ctrl-attrib-button{background-color:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--t2)}
.fmscreen .maplibregl-ctrl-attrib a,.fmscreen .maplibregl-ctrl-attrib-inner{color:var(--t2)}.fmscreen .maplibregl-ctrl-attrib a:hover{color:var(--link)}
html[data-scheme=dark] .fmscreen .maplibregl-ctrl-attrib-button{filter:invert(1)}
