/* Corporate workflow palette: teal locations and visits, steel-blue routes. */
.tracking-section{background:#f4f8f7}
.tracking-preview{--teal:#176b65;--teal-wash:#e8f2ef;--steel:#426581;--steel-wash:#edf2f7;--preview-accent:var(--teal);--preview-wash:var(--teal-wash);padding:24px;border:1px solid #d4dde2;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgb(35 65 54 / 4%)}
.tracking-preview[data-active-view=route]{--preview-accent:var(--steel);--preview-wash:var(--steel-wash)}
.tracking-preview[data-active-view=visits]{--preview-accent:var(--teal);--preview-wash:var(--teal-wash)}
.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.preview-toolbar h3{font-size:20px;line-height:1.4}
.example-label{flex-shrink:0;font-size:12px;line-height:1.5;color:#4b5b68;background:#edf2f3;border-radius:5px;padding:5px 9px}
.preview-tabs{display:flex;gap:12px;border-bottom:1px solid var(--border)}
.preview-tabs a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:12px 20px;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;color:var(--ink);font-size:15px;font-weight:600;text-decoration:none}
.preview-tabs a:nth-child(1) .icon{color:var(--teal)}.preview-tabs a:nth-child(2) .icon{color:var(--steel)}.preview-tabs a:nth-child(3) .icon{color:var(--teal)}
.preview-tabs a:hover{background:#f7f9fa}
.preview-tabs a[aria-selected=true]{background:var(--preview-wash);color:var(--preview-accent);border-bottom-color:var(--preview-accent)}
.preview-panel{display:grid;grid-template-columns:minmax(240px, .43fr) minmax(0,1fr);gap:28px;padding-top:28px;align-items:start}
.preview-panel+.preview-panel{margin-top:28px;border-top:1px solid var(--border)}
.is-interactive .preview-panel{margin-top:0;border-top:0}
.preview-copy h3{font-size:22px;line-height:1.35}
.preview-copy>p{margin-top:12px;line-height:1.6}
.preview-copy .preview-hint{padding:9px 12px;border-radius:6px;background:var(--teal-wash);color:var(--teal);font-size:13px}
.employee-list,.visit-choices{display:grid;gap:10px;margin-top:20px}
.employee-choice,.visit-choices button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:76px;border:1px solid #d8dce2;border-radius:9px;padding:12px;background:white;color:var(--ink);line-height:1.4}
.employee-choice>span:nth-child(2),.visit-choices button>span{flex:1;min-width:0}
.employee-choice strong,.visit-choices strong{display:block;font-size:15px;font-weight:650}
.employee-choice strong+span,.visit-choices strong+span{display:block;margin-top:4px;font-size:13px;color:var(--body)}
.employee-choice>.icon{width:16px;transform:rotate(-90deg);color:var(--body)}
.employee-choice[aria-pressed=true]{border-color:var(--teal);background:var(--teal-wash);box-shadow:inset 0 0 0 1px var(--teal)}
.employee-choice:hover{border-color:var(--teal)}
.employee-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#dcebe5;color:#10544f;font-size:14px;font-weight:700}
[data-employee=rohan] .employee-avatar{background:#ece4d7;color:#725634}
[data-employee=neha] .employee-avatar{background:#e1e9f1;color:#426581}
.location-stage{position:relative;min-width:0}
.preview-map{position:relative;isolation:isolate;overflow:hidden;border-radius:10px;background:#fff;aspect-ratio:3/2}
/* Soften only the base map; interactive markers, routes and records stay opaque. */
.preview-map>img{width:100%;height:100%;object-fit:cover;opacity:.6}
.map-marker{--marker:#176b65;position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;padding:5px;border:0;background:transparent;color:var(--ink);min-height:44px;white-space:nowrap;z-index:1}
.marker-dot{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50% 50% 50% 5px;background:var(--marker);border:3px solid #fff;color:#fff;font-size:11px;font-weight:700;box-shadow:0 2px 8px #40483830}
.marker-name{background:#fff;border:1px solid var(--marker);border-left:0;padding:3px 8px 3px 6px;margin-left:-2px;border-radius:0 16px 16px 0;font-size:12px;font-weight:650}
[data-marker=rohan]{--marker:#80613c}[data-marker=neha]{--marker:#426581}
.map-marker[aria-pressed=true]{z-index:2}.map-marker[aria-pressed=true] .marker-dot{outline:5px solid #ffffffa6;box-shadow:0 0 0 9px #176b6526}
.location-record{position:absolute;left:16px;bottom:16px;display:grid;gap:5px;min-width:200px;max-width:calc(100% - 32px);padding:14px 16px;border:1px solid #d4dde2;border-radius:10px;background:#fff;box-shadow:0 3px 12px #28372e0d;font-size:13px;line-height:1.5}
.location-record>strong{font-size:16px;color:var(--ink)}
.location-record>span{display:flex;align-items:center;gap:6px}.location-record .icon{width:16px;height:16px}
.activity-label{display:inline-flex;align-items:center;gap:5px;width:fit-content;background:#e8f2ef;color:#176b65;font-size:12px;font-weight:600;padding:3px 8px;border-radius:5px}
.location-record .activity-label{margin-top:3px}
.route-stops{list-style:none;padding:0;margin-top:20px;display:grid;gap:8px}
.route-stops li{position:relative;padding-left:22px}
.route-stops li:before{content:'';position:absolute;left:5px;top:0;bottom:-9px;width:1px;background:#b9c9d6}
.route-stops li:first-child:before{top:24px}.route-stops li:last-child:before{bottom:24px}
.route-stops li:after{content:'';position:absolute;left:0;top:19px;width:9px;height:9px;border:1px solid var(--steel);border-radius:50%;background:#fff}
.route-stops li:has([aria-current=step]):after{background:var(--steel)}
.route-stops button{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 8px;width:100%;min-height:48px;padding:9px 12px;border:1px solid #d4dde2;border-radius:7px;background:white;color:var(--ink);font-size:13px;text-align:left;line-height:1.5}
.route-stops button time{font-size:12px;color:var(--body)}
.route-stops button[aria-current=step]{border-color:var(--steel);background:var(--steel-wash);font-weight:600}
.route-overlay{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-linejoin:round;stroke-linecap:round}
.route-track{stroke:#8ea5b8;stroke-width:5;stroke-dasharray:9 10}
.route-progress{stroke:#426581;stroke-width:6}
.is-interactive [data-route-segment]:not(.is-travelled){visibility:hidden}
.route-points{stroke:#426581;stroke-width:4;fill:white}
.route-position{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;background:var(--steel);color:white;border:3px solid white;border-radius:50%;box-shadow:0 0 0 6px #ffffff94;font-size:12px;font-weight:700}
.route-place{position:absolute;left:16px;bottom:16px;max-width:calc(100% - 32px);background:white;border:1px solid #d4dde2;border-radius:6px;padding:7px 12px;font-size:14px;font-weight:600;color:#365671}
.route-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 16px;border:1px solid #d4dde2;border-radius:9px;margin-top:12px;background:#f7f9fa}
.route-play{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:124px;background:white;color:#426581;border:1px solid #426581;border-radius:6px;padding:8px 12px;font-size:13px;font-weight:600}
.route-play .icon{width:16px;height:16px}.route-play .play-icon,.route-play.is-playing .pause-icon{display:flex}.route-play .pause-icon,.route-play.is-playing .play-icon{display:none}
.route-scrubber{flex:1;min-width:90px;display:flex;align-items:center;min-height:44px}
.route-scrubber input{min-height:44px;accent-color:#426581;width:100%;margin:0;cursor:pointer}
.route-readout{font-size:13px;color:#365671;line-height:1.5}
.visit-choices button[aria-pressed=true]{background:var(--teal-wash);border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.visit-choices button:hover{border-color:var(--teal)}
.visit-choices .icon{color:var(--teal);width:24px;height:24px}
.preview-copy .visit-hint{display:flex;align-items:flex-start;gap:10px;background:var(--teal-wash);border:1px solid var(--border);border-radius:8px;padding:14px;margin-top:24px;font-size:14px}.visit-hint .icon{color:var(--teal);margin-top:2px}
.visit-record{padding:18px 22px;background:#fff;border:1px solid var(--border);border-radius:10px}
.visit-art{position:relative;overflow:hidden;border-radius:7px;background:#eef3f6}
.visit-art img{width:100%;max-height:210px;object-fit:contain}
.visit-art figcaption{position:absolute;bottom:7px;right:8px;background:#ffffffed;padding:2px 7px;font-size:11px;border-radius:3px;color:#4b5b68}
.visit-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 10px}
.visit-heading h3{font-size:22px}.visit-heading .icon{width:14px;height:14px}
.visit-details dl>div{display:grid;grid-template-columns:100px 1fr;gap:16px;border-bottom:1px solid #d9e0e4;padding:8px 0;font-size:14px;line-height:1.5}
.visit-details dt{font-weight:600;color:var(--ink)}
.visit-evidence{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;margin-top:14px}.visit-evidence .icon{width:16px;height:16px;color:var(--teal)}
.preview-footnote{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px}.preview-footnote p{font-size:13px;max-width:72ch}.preview-footnote .text-link{flex-shrink:0;font-size:14px}
.tracking-preview .enhanced-only{display:none}.is-interactive .enhanced-only{display:flex}
.tracking-preview button:disabled{cursor:default;opacity:1}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1279px){.preview-panel{grid-template-columns:280px minmax(0,1fr);gap:24px}.location-record{position:static;max-width:none;border-radius:0 0 10px 10px;box-shadow:none;grid-template-columns:1fr 1fr;gap:5px 12px}.location-stage .preview-map{border-radius:10px 10px 0 0}.location-record .activity-label{margin:0}.route-readout{width:100%}}
@media(max-width:991px){.preview-panel{grid-template-columns:1fr;gap:24px}.employee-list{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-choice{gap:9px;padding:12px}.employee-choice>.icon{display:none}.employee-avatar{flex-basis:32px;width:32px;height:32px;font-size:12px}.route-stops{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.route-stops li{padding-left:0}.route-stops li:before,.route-stops li:after{display:none}.route-stops button{display:block;min-height:66px;padding:8px}.route-stops time{display:block}.visit-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-copy .visit-hint{margin-top:16px}.route-readout{width:auto}.preview-footnote{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:767px){.tracking-preview{padding:18px;border-radius:12px}.preview-toolbar{align-items:flex-start;gap:10px;margin-bottom:16px}.preview-toolbar h3{font-size:18px;max-width:20ch}.example-label{font-size:11px;padding:4px 7px}.preview-tabs{gap:4px}.preview-tabs a{flex:1;gap:5px;padding:10px 5px;font-size:13px;line-height:1.4}.preview-tabs .icon{width:18px;height:18px}.preview-panel{padding-top:22px;gap:20px}.preview-copy h3{font-size:22px}.employee-list{grid-template-columns:1fr;gap:8px;margin-top:14px}.employee-choice{min-height:66px}.employee-choice>.icon{display:block}.employee-choice strong{font-size:15px}.employee-choice strong+span{font-size:13px}.employee-avatar{flex-basis:36px;width:36px;height:36px}.preview-map{aspect-ratio:3/2}.map-marker{padding:5px 3px}.marker-dot{width:30px;height:30px;font-size:9px;border-width:2px}.marker-name{font-size:10px;padding:2px 5px}.location-record{padding:12px;grid-template-columns:1fr;gap:5px}.route-stops{grid-template-columns:1fr;gap:7px}.route-stops li{padding-left:22px}.route-stops li:before,.route-stops li:after{display:block}.route-stops button{display:flex;min-height:44px;padding:8px 12px;font-size:14px}.route-stops time{font-size:13px}.route-stops li:after{top:17px}.route-controls{padding:10px;gap:8px 12px}.route-play{min-width:113px;padding-inline:8px}.route-readout{width:100%;font-size:13px}.route-position{width:30px;height:30px;font-size:10px;border-width:2px}.route-place{left:10px;bottom:10px;padding:4px 8px;font-size:12px}.visit-choices{grid-template-columns:1fr}.visit-record{padding:14px}.visit-art img{max-height:180px}.visit-art figcaption{font-size:10px}.visit-details dl>div{grid-template-columns:80px 1fr;gap:12px;font-size:14px}.visit-heading{margin-top:14px}.preview-footnote{margin-top:14px}.preview-footnote .text-link{flex-shrink:1}}
@media(max-width:359px){.tracking-preview{padding:14px}.preview-toolbar{flex-direction:column;gap:8px}.preview-toolbar h3{max-width:none}.preview-tabs a{flex-direction:column;font-size:12px;gap:4px}.preview-copy h3{font-size:21px}.marker-name{display:none}.map-marker .marker-dot{width:32px;height:32px;font-size:10px}.visit-details dl>div{grid-template-columns:1fr;gap:3px}}
@media(forced-colors:active){.map-marker[aria-pressed=true],.employee-choice[aria-pressed=true],.preview-tabs a[aria-selected=true],.route-stops button[aria-current=step],.visit-choices button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:2px}.marker-dot,.route-position{border:2px solid ButtonText}.route-progress,.route-track,.route-points{stroke:CanvasText}}
