/* The calm layer: shadcn's sidebar layout and its dashboard's density. Loaded after shadcn.css. A left sidebar with the pages in four
   groups (a sheet on phones), one header line with the sample badge, the feed's time and the seat; one title and one muted line per page;
   longer words in popovers, a dialog and "More detail" disclosures; long tables show their first rows; the tour is a pill in the corner. */
:root{--sb-w:248px;--gap:24px}
body{background:var(--background);padding-bottom:var(--gh)}

/* shell: sidebar + inset */
.shell{display:grid;grid-template-columns:var(--sb-w) minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;box-sizing:border-box;background:#fafafa;border-right:1px solid var(--border);padding:12px 12px 20px;z-index:30}
.sb-head{display:flex;align-items:center;gap:10px;padding:6px 6px 10px}
.sb-head .brand{display:block;min-width:0}
.sb-head .brand p{margin:0}
.sb-head .brand-t{font-size:14px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
.sb-head .brand-s{font-size:12px;line-height:1.35;color:var(--muted-foreground)}
.sb-head .brand-mark{flex:none;width:28px;height:28px}
.sb-close{display:none}
.sidebar nav{background:none;border:0}
.sidebar .navlinks{display:flex;flex-direction:column;max-width:none;margin:0;padding:0;gap:2px}
.sb-g{margin:18px 8px 6px;font-size:12px;font-weight:500;line-height:1;color:var(--muted-foreground)}
.sidebar .navlinks a{display:flex;align-items:center;gap:10px;margin:0;padding:8px 10px;font-size:14px;font-weight:400;line-height:1.25;color:#404040;text-decoration:none;border:0;border-radius:calc(var(--radius) - 2px)}
.sidebar .navlinks a .ic{flex:none;color:#737373}
.sidebar .navlinks a:hover{background:#f0f0f0;color:var(--foreground)}
.sidebar .navlinks a[aria-current=page]{background:#ebebeb;color:var(--foreground);font-weight:500}
.sidebar .navlinks a[aria-current=page] .ic{color:var(--foreground)}
.inset{min-width:0;display:flex;flex-direction:column}

/* header: one line */
.top{display:flex;align-items:center;gap:12px;min-height:56px;box-sizing:border-box;padding:8px 32px;border-bottom:1px solid var(--border);background:var(--background);color:var(--foreground)}
.menu-btn,.top-t{display:none}
.top-r{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:0}
.feedbar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;background:none;border:0;padding:0;font-size:13px}
.fb-t{display:inline-flex;align-items:center;gap:7px;color:var(--muted-foreground);white-space:nowrap;font-variant-numeric:tabular-nums}
.fb-dot{width:7px;height:7px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px #dcfce7}
.feedbar .btn.small{padding:4px 10px;font-size:13px}
.demo-badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;font:inherit;font-size:12px;font-weight:500;line-height:1;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:999px;cursor:pointer;white-space:nowrap}
.demo-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#d97706}
.demo-badge:hover{background:var(--accent)}
.top .who{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
.top .who label{font-weight:400;color:var(--muted-foreground);white-space:nowrap}
.top .who select{max-width:210px;font-size:14px;padding:5px 32px 5px 10px}
.top .who .btn.small{font-size:13px;padding:5px 12px}
.sep{width:1px;height:20px;background:var(--border)}

/* page */
main,main.wide{max-width:1200px;width:100%;box-sizing:border-box;margin:0 auto;padding:32px 32px 40px}
.foot{max-width:1200px;width:100%;box-sizing:border-box;margin:0 auto;padding:0 32px 28px;font-size:13px}
.ph{margin:0 0 var(--gap)}
.ph h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.025em}
.ph .lede{display:flex;align-items:center;gap:2px;margin:6px 0 0;font-size:15px;line-height:1.4;color:var(--muted-foreground)}
main .card{padding:24px;margin:0 0 var(--gap)}
main .card>h2:first-child,.card-h h2{margin:0 0 16px;font-size:16px;line-height:1.3}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.card-c{font-size:13px;color:var(--muted-foreground)}
main section+section{margin-top:0}
main p{max-width:72ch}

/* popover, info button, disclosure, dialog */
.ibtn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;padding:0;margin:0;border:0;background:none;color:var(--muted-foreground);border-radius:calc(var(--radius) - 2px);vertical-align:middle;cursor:pointer;box-shadow:none}
.ibtn:hover{background:var(--accent);color:var(--foreground)}
.pop{position:fixed;inset:auto;top:64px;right:16px;margin:0;box-sizing:border-box;width:max-content;max-width:min(360px,calc(100vw - 24px));padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);color:var(--popover-foreground);box-shadow:var(--shadow-lg);font-size:14px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;letter-spacing:0}
.pop p{margin:0 0 8px;max-width:none}.pop p:last-child{margin:0}
.pop-t{font-weight:600}
.pop-l{margin:0;padding-left:18px}.pop-l li{margin:0 0 4px}
.pop.demobar{background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);font-size:14px;font-weight:400;text-align:left;white-space:normal;overflow:visible;padding:14px 16px}
.pop.demobar .bar-l{display:block}.pop.demobar .bar-s{display:none}
details.more{margin:12px 0 0}
details.more>summary{display:inline-flex;align-items:center;gap:6px;padding:4px 0;font-size:13px;font-weight:500;color:var(--muted-foreground);cursor:pointer;list-style:none}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:"";width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") no-repeat center/14px 14px;transition:transform .15s}
details.more[open]>summary::before{transform:rotate(90deg)}
details.more>summary:hover{color:var(--foreground)}
.more-b{padding:4px 0 0}
.more-b p.small{margin:0 0 6px}
dialog.dlg{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;padding:28px;border:1px solid var(--border);border-radius:calc(var(--radius) + 2px);background:var(--background);color:var(--foreground);box-shadow:var(--shadow-lg)}
dialog.dlg::backdrop{background:rgba(0,0,0,.5)}
dialog.dlg h2{margin:0 0 12px;font-size:18px}
dialog.dlg h3{font-size:14px;margin:18px 0 6px}
dialog.dlg .grid3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}
dialog.dlg .grid3 h3{margin:12px 0 2px}
dialog.dlg .grid3 p{margin:0;font-size:14px;color:#404040}
.dlg-x{position:absolute;top:12px;right:12px;margin:0}

/* overview */
.proves-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin:calc(-1 * var(--gap) - 40px) 0 var(--gap);min-height:40px}
.stats.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 var(--gap)}
.stat.kpi{position:relative;padding:20px 24px 22px;border-top:1px solid var(--border)}
.stat.kpi .stat-l{font-size:14px;font-weight:500;margin:0;padding-right:28px}
.stat.kpi .stat-l a{color:var(--muted-foreground);text-decoration:none}
.stat.kpi .stat-l a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.stat.kpi:hover{border-color:#d4d4d4}
.stat.kpi .stat-v{font-size:30px;line-height:1.15;margin:10px 0 4px;font-weight:600}
.stat.kpi .stat-s{font-size:13px;color:var(--muted-foreground)}
.stat.kpi .kpi-i{position:absolute;top:14px;right:14px;z-index:1}
.ov-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
.ov-row .card{margin:0}
.attn ul.alerts{margin:0;padding:0;list-style:none}
.attn ul.alerts li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:1.4}
.attn ul.alerts li:last-child{border-bottom:0;padding-bottom:0}
.attn ul.alerts li:first-child{padding-top:0}
.attn .al-t{flex:1;min-width:0}
.attn ul.alerts li a{white-space:nowrap;font-weight:500}
ul.mini{list-style:none;margin:0;padding:0}
ul.mini li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:14px}
ul.mini li:first-child{padding-top:0}
ul.mini a{color:var(--foreground);text-decoration:none}ul.mini a:hover{text-decoration:underline}
.mini-v{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.week .small{margin:12px 0 0;font-size:13px}

/* tables: shadcn spacing, secondary text muted; clipped rows and row-detail columns wait behind Show all */
.tw{border:1px solid var(--border);border-radius:var(--radius)}
th,td{padding:10px 14px}
th{color:var(--muted-foreground);font-weight:500;font-size:13px;height:40px}
td{font-size:14px}
td .small,td small,td .sub{color:var(--muted-foreground)}
html.js .tw[data-clip]:not(.all) tr.xr,html.js .tw[data-minor]:not(.all) .mc{display:none}
.tw-more{display:flex;gap:8px;align-items:center;margin:10px 0 0}
.tw-more .btn{font-size:13px;padding:5px 12px}
.tw-more span{font-size:13px;color:var(--muted-foreground)}

/* forms */
.filters{gap:12px 16px}
.btns{gap:8px}

/* the tour: a pill in the bottom-right corner; its stop text opens in a card above it */
.guide.pill{left:auto;right:16px;bottom:16px;width:auto;max-width:calc(100vw - 32px);background:var(--background);border:1px solid var(--border);border-radius:999px;box-shadow:var(--shadow-lg);padding:0}
.guide.pill .g-in{display:flex;align-items:center;gap:6px;max-width:none;margin:0;padding:5px 5px 5px 6px;grid-template-columns:none}
.guide.pill .g-more{display:flex;flex-direction:row;align-items:baseline;gap:8px;min-width:0;margin:0;padding:6px 10px;font:inherit;font-size:14px;line-height:1.25;text-align:left;color:var(--foreground);background:none;border:0;border-radius:999px;text-decoration:none;cursor:pointer}
.guide.pill .g-more:hover{background:var(--accent)}
.guide.pill .g-more::after{content:"";align-self:center;flex:none;width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E") no-repeat center/14px 14px;transition:transform .15s}
.guide.pill.open .g-more::after{transform:rotate(180deg)}
.guide.pill .g-k{margin:0;font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted-foreground);white-space:nowrap}
.guide.pill .g-t{display:block;margin:0;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;-webkit-line-clamp:unset;overflow:visible}
.guide.pill .g-a{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;margin:0}
.guide.pill .g-a .btn{border-radius:999px;padding:7px 16px;font-size:14px;white-space:nowrap}
.guide.pill .g-a .btn.g-ic,.guide.pill .g-x-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:999px;border-color:transparent;box-shadow:none;background:none;color:var(--foreground)}
.guide.pill .g-a .btn.g-ic:hover,.guide.pill .g-x-btn:hover{background:var(--accent)}
.guide.pill .g-tools{display:flex;align-items:center;margin:0}
.guide.pill .g-hide-m{display:none}
.guide.pill .g-hide-d{display:flex;margin:0}
.guide.pill .g-card{display:none;position:absolute;right:0;bottom:calc(100% + 8px);box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:min(52vh,420px);overflow:auto;padding:16px 18px;background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg)}
.guide.pill.open .g-card{display:block}
.guide.pill .g-r{display:block;margin:0 0 8px;padding:0;font-size:14px;line-height:1.45;white-space:normal;overflow:visible;-webkit-line-clamp:unset;color:var(--foreground)}
.guide.pill .g-r2{color:var(--muted-foreground)}
.guide.pill .g-r2::before{content:none}
.guide.pill .g-b{display:block;max-height:none;overflow:visible;font-size:14px;line-height:1.45}
.guide.pill .g-b p{margin:0 0 8px}
.guide.pill .g-b p:last-child{margin:0}
.guide.pill .g-flash{padding:6px 10px}
.guide.slim,.guide.done.chip{left:auto;right:16px;bottom:16px;width:auto;border:1px solid var(--border);border-radius:999px;box-shadow:var(--shadow-lg);background:var(--background)}
.guide.slim .g-in{display:flex;align-items:center;gap:10px;padding:5px 5px 5px 16px;max-width:none}
.guide.slim .g-a .btn{border-radius:999px}
.guide.done.chip{border-radius:calc(var(--radius) + 4px)}

/* phones: the sidebar is a sheet from the menu button; the header is two short rows */
@media (max-width:900px){
 .top .who label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:720px){
 :root{--gap:16px}
 .shell{display:block}
 .sidebar{display:none;position:fixed;top:0;left:0;bottom:0;height:auto;width:min(300px,86vw);z-index:60;box-shadow:var(--shadow-lg);padding:10px 12px 24px;background:var(--background)}
 .sidebar:has(.navlinks.open){display:block}
 body.nav-open::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:55}
 .sb-close{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;width:40px;height:40px;padding:0;border:0;background:none;border-radius:calc(var(--radius) - 2px);color:var(--foreground);cursor:pointer}
 .sidebar .navlinks,.sidebar .navlinks.open{display:flex;flex-direction:column;grid-template-columns:none;padding:0;border:0}
 .sidebar .navlinks a,.sidebar .navlinks.open a{padding:10px 10px;font-size:15px;border:0;border-radius:calc(var(--radius) - 2px)}
 .sb-g{margin:14px 10px 4px}
 .top{flex-wrap:wrap;gap:8px 8px;padding:8px 12px;min-height:0}
 .top .menu-btn{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0;padding:6px 12px 6px 10px;font-size:14px;font-weight:500;line-height:1.3;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);box-shadow:var(--shadow-xs)}
 .top-t{display:block;margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em;flex:1;min-width:0}
 .top-r{display:contents}
 .demo-badge{order:2}
 .top .who{order:3;flex:1 1 auto;min-width:0}
 .top .who select{flex:1;min-width:0;max-width:none;font-size:16px;padding:6px 30px 6px 10px}
 .top .who .btn.small{font-size:16px;padding:6px 12px}
 .feedbar{order:4;margin-left:auto}
 .feedbar .btn.small{font-size:14px;padding:6px 10px}
 .fb-t{font-size:13px}
 main,main.wide{padding:20px 16px 28px}
 .foot{padding:0 16px 20px}
 .ph h1{font-size:24px}
 .ph .lede{font-size:14px}
 main .card{padding:16px}
 .proves-row{margin:0 0 var(--gap);justify-content:flex-start}
 .stats.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .stat.kpi{padding:14px 16px 16px}
 .stat.kpi .stat-v{font-size:24px;margin:8px 0 2px}
 .stat.kpi .kpi-i{top:8px;right:8px}
 .ov-row{grid-template-columns:minmax(0,1fr)}
 dialog.dlg{padding:20px}
 dialog.dlg .grid3{grid-template-columns:minmax(0,1fr)}
 input,select,textarea,.filters select,.filters input{font-size:16px}
 select{padding-left:10px}
 .btn.small{font-size:14px}
 .guide.pill{right:8px;bottom:8px;max-width:calc(100vw - 16px)}
 .guide.pill .g-in{padding:4px}
 .guide.pill .g-more{flex-direction:column;align-items:flex-start;gap:0;padding:4px 8px}
 .guide.pill .g-more::after{display:none}
 .guide.pill .g-k{font-size:12px;line-height:1.2}
 .guide.pill .g-t{font-size:13.5px;white-space:normal;line-height:1.2}
 .guide.pill .g-a .btn{padding:7px 14px}
 .guide.pill .g-a .btn.g-ic,.guide.pill .g-x-btn{width:40px;height:40px}
 .guide.pill .g-hide-d{display:none}
 .guide.pill .g-hide-m{display:flex}
 .guide.pill .g-card{width:calc(100vw - 16px);right:0;max-height:52vh}
 .guide.slim{right:8px;bottom:8px}
}
@media print{.sidebar,.top,.guide{display:none!important}.shell{display:block}}
button svg,.btn svg{flex:none;width:16px;height:16px}
@media (max-width:720px){.ph .lede{display:block}.ph .lede .ibtn{margin-left:2px;vertical-align:-8px}}
.g-ch{display:none;margin:0 0 6px;font-size:15px;font-weight:600;line-height:1.3}
@media (max-width:720px){.guide.pill .g-more .g-t{display:none}.guide.pill .g-ch{display:block}.guide.pill .g-more{padding:8px 10px}.guide.pill .g-k{font-size:14px;color:var(--foreground)}.guide.pill .g-more::after{display:block}}
/* an accordion: each item's heading opens its words */
ol.accs{list-style:none;padding:0;margin:0;counter-reset:none}
ol.accs>li{border-bottom:1px solid var(--border);padding:0;margin:0}
ol.accs>li:last-child{border-bottom:0}
details.acc>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-size:15px;font-weight:500;cursor:pointer;list-style:none}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary::after{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center/16px 16px;transition:transform .2s}
details.acc[open]>summary::after{transform:rotate(180deg)}
details.acc>summary:hover{text-decoration:underline;text-underline-offset:4px}
.acc-b{padding:0 0 16px;font-size:14px;line-height:1.55;color:#404040;max-width:72ch}
/* the trip list shows its first rows on every screen, the rest behind its own Show more (the phone's fold, now on a wide screen too) */
.fold.f-desk:not(.all) table.cards tbody tr.more{display:none}
.fold.f-desk .fold-btn{display:inline-block;margin:10px 0 0}
p.small.tl{margin:12px 0}
/* the sidebar's column keeps its tint the page's full height */
.shell{background:#fafafa}.inset{background:var(--background)}
.g-tour{font-weight:400}
.raw-l{margin:12px 0 0}
.guide.pill:not(.open) .g-b{display:none}
.guide.pill .g-more{flex-wrap:wrap}.guide.pill .g-tour{color:var(--muted-foreground);font-size:13px;white-space:nowrap}
.guide.pill .g-more .g-tour+.g-k{margin-left:-4px;padding-left:4px}
@media (max-width:720px){.guide.pill .g-more{flex-direction:row;align-items:baseline;gap:4px}.guide.pill .g-tour{font-size:14px}}
.pop{display:block}.pop:not(:popover-open){display:none}
.pop .pp{display:block;margin:0 0 8px}.pop .pp:last-child{margin:0}
.pop .pop-l{display:block;padding-left:0}.pop .pli{display:block;margin:0 0 4px;padding-left:14px;position:relative}.pop .pli::before{content:"";position:absolute;left:2px;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--muted-foreground)}
.pop .pp.pop-t{font-weight:600}
.pop.demobar .pp.bar-l{display:block}.pop.demobar .pp.bar-s{display:none}
@media (max-width:720px){
 main,main.wide{padding-left:12px;padding-right:12px}
 main .card{padding:16px 14px}
 main .filters label,main .row .f{flex:1 1 100%;min-width:0}
 main .filters select,main .filters input:not([type=checkbox]):not([type=radio]):not([type=hidden]),main .row .f select{width:100%;max-width:100%;box-sizing:border-box}
}
/* a zone's own map keeps a readable height beside the sidebar (its 12:5 shape came out under 400 px at 1280 wide) */
@media (min-width:721px){.map.zone svg{aspect-ratio:auto;height:max(400px,min(520px,calc(100vh - 290px)))}}
/* the phone sheet lists each group's pages two to a row, so all twelve fit above the tour pill on a 320 px screen */
@media (max-width:720px){
 .sidebar .navlinks,.sidebar .navlinks.open{display:grid;grid-template-columns:1fr 1fr;gap:2px 4px}
 .sidebar .sb-g{grid-column:1/-1;margin:12px 10px 2px}
 .sidebar .navlinks a,.sidebar .navlinks.open a{min-height:40px;box-sizing:border-box;padding:8px;font-size:15px;gap:8px}
 .sb-head{padding:4px 4px 6px}
}
/* the tour pill stays reachable over the phone's menu sheet (the sheet's links end well above it) */
@media (max-width:720px){.guide.pill,.guide.slim{z-index:65}}
.guide.pill .g-tour{color:#404040}
.guide.pill .g-k{color:#525252}
@media (max-width:720px){.guide.pill .g-more .g-tour+.g-k{margin-left:0;padding-left:0}.guide.pill .g-more{gap:5px}}
/* fix pass 16: the share page (public: no sidebar, no staff controls) takes the one-line header; the Publish card's lines sit beside their ⓘ */
body.shared .sh-top{padding:8px 32px}
body.shared .sh-brand{display:flex;align-items:center;gap:10px;min-width:0}
body.shared .sh-brand .brand-t{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em}
body.shared .sh-brand .brand-s{margin:0;font-size:12px;color:var(--muted-foreground)}
body.shared main{max-width:1200px;margin:0 auto;padding:32px;box-sizing:border-box;width:100%}
body.shared .foot{max-width:1200px;margin:0 auto;padding:16px 32px 32px;box-sizing:border-box}
.publish .pub-state{margin:0 0 4px}
.publish .pub-btns{align-items:center}
.publish .share-row{align-items:center}
@media (max-width:719px){
 body.shared .sh-top{flex-wrap:nowrap;padding:8px 12px}
 body.shared .sh-top .top-r{display:flex;margin-left:auto}
 body.shared main{padding:16px 12px}
 body.shared .foot{padding:12px 12px 24px}
 .share-row input{font-size:16px} /* the share link field at 16 px like every phone control (it was 13 px: iOS zooms on focus under 16) */
}

/* fix pass 17: the tour is docked, never floating over the work. Wide screens: at the foot of the sidebar's column, at the sidebar's own width (the sidebar's
   links scroll clear of it through --gdock, which app.js sets). Phones: a slim bar in the page's flow under the header, its card opening in the flow below it;
   paused or finished, one line at the page's foot. What the tour left in this copy (its zone and standard) is said in the dock, with Start over. */
.g-left{margin:0;font-size:12.5px;line-height:1.4;color:var(--muted-foreground)}
.g-left a{color:var(--foreground);text-decoration:underline;text-underline-offset:2px}
@media (min-width:721px){
 body{padding-bottom:0}
 .sidebar{padding-bottom:calc(var(--gdock, 0px) + 20px)}
 .guide.pill,.guide.slim,.guide.done.chip{position:fixed;left:0;right:auto;top:auto;bottom:0;width:var(--sb-w);max-width:var(--sb-w);box-sizing:border-box;margin:0;padding:0;border:0;border-top:1px solid var(--border);border-right:1px solid var(--border);border-radius:0;box-shadow:none;background:#fafafa;z-index:45;transform:none;display:flex;flex-direction:column}
 .guide.pill .g-in{order:2;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px 12px}
 .guide.pill .g-more{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 6px;padding:6px 8px;border-radius:calc(var(--radius) - 2px)}
 .guide.pill .g-more .g-t{flex:1 1 100%;white-space:normal;font-size:14px;line-height:1.3}
 .guide.pill .g-more::after{position:absolute;right:20px;margin-top:2px}
 .guide.pill .g-a{flex:1 1 auto;justify-content:flex-start;flex-wrap:wrap;gap:6px}
 .guide.pill .g-tools{flex:none}
 .guide.pill .g-left{order:3;padding:0 20px 12px}
 .guide.pill .g-card{order:1;position:static;width:auto;max-height:min(46vh,380px);margin:0;padding:12px 20px 4px;background:none;border:0;border-radius:0;box-shadow:none}
 .guide.pill .g-ch{display:none}
 .guide.slim .g-in{flex-direction:column;align-items:flex-start;gap:6px;margin:0;max-width:none;width:100%;box-sizing:border-box;padding:10px 20px 8px}
 .guide.slim .g-t{font-size:13.5px;font-weight:500;color:var(--muted-foreground)}
 .guide.slim .g-left{padding:0 20px 12px}
 .guide.done.chip summary{padding:0 20px}
 .guide.done.chip .g-left{padding:0 20px 8px}
 .guide.done.chip .g-a{padding:2px 20px 12px}
}
@media (max-width:720px){
 .guide.pill{position:static;margin:0 12px 8px;width:auto;max-width:none;border-radius:var(--radius);box-shadow:none;transform:none;z-index:auto}
 .guide.pill .g-in{justify-content:space-between}
 .guide.pill .g-card{position:static;width:auto;max-height:none;margin:0;border:0;border-top:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);box-shadow:none}
 .guide.pill .g-left{display:none;padding:0 14px 10px}
 .guide.pill .g-more::after{transform:rotate(180deg)}
 .guide.pill.open .g-more::after{transform:none}
 .guide.pill.open .g-left{display:block}
 .guide.slim,.guide.done.chip{order:99;position:static;margin:0 12px 12px;width:auto;max-width:none;border-radius:var(--radius);box-shadow:none;transform:none;z-index:auto}
 .guide.slim .g-in{flex-wrap:wrap;padding:6px 6px 6px 14px}
 .guide.slim .g-left{padding:0 14px 10px}
 .guide.done.chip .g-left{padding:0 14px 6px}
 .guide.done.chip{align-self:flex-start;max-width:calc(100% - 24px)}
 .guide.g-away{transform:none}
 body.g-away-on{padding-bottom:0}
}
/* fix pass 19: the zone map sits inside Draw a zone. Wide screens: the map on the left, held in view while the fields beside it scroll; phones: the map right
   under Name, Zone type and Shape, so typing a name never sends the map off the screen (it was about 2,400 px above the form) */
form.zdraw .zd-map figure.map{margin:4px 0 12px}
@media (min-width:1000px){
 form.zdraw{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);column-gap:24px;align-items:start}
 form.zdraw>*{grid-column:2;min-width:0}
 form.zdraw>h2,form.zdraw>h2+*{grid-column:1/-1}
 form.zdraw>.zd-map{grid-column:1;grid-row:3/span 40;position:sticky;top:12px;align-self:start}
 form.zdraw>.zd-map figure.map{margin:0}
 form.zdraw .row{flex-wrap:wrap}
}
/* fix pass 23: on a phone and a tablet Draw a zone opens on its map; Name, Zone type and Shape fold under it (a wide screen keeps the map beside them) */
details.zd-fields>summary{cursor:pointer;font-weight:600;padding:6px 0;min-height:44px;display:flex;align-items:center}
@media (min-width:1000px){details.zd-fields>summary{display:none}}
@media (max-width:999px){
 form.zdraw{display:flex;flex-direction:column}
 form.zdraw>h2{order:-4}
 form.zdraw>h2+*{order:-3}
 form.zdraw>.zd-map{order:-2}
 form.zdraw>#draw-preview-box{order:-1}
}
/* fix pass 19: the open tour card at the sidebar's foot leaves every page link in view (at 1440 by 900 it hid Privacy and Public view): the links close up
   while it is open, and app.js caps the card's height to the room under the last link (its words scroll inside it) */
@media (min-width:721px){
 body:has(#guide.pill.open) .sidebar .navlinks a{padding-top:5px;padding-bottom:5px}
 body:has(#guide.pill.open) .sidebar .sb-g{margin-top:8px}
}
/* fix pass 19: on a phone the header is two rows (Menu and the seat; the sample badge and the feed clock), and the tour bar sits close under it: the page
   starts about 60 px higher. The product's name stays in the menu sheet's head and for screen readers */
@media (max-width:720px){
 .top{padding:6px 12px;gap:6px 8px}
 .top-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .top .menu-btn{order:0;flex:none}
 .top .who{order:1;flex:1 1 200px}
 .demo-badge{order:2}
 .feedbar{order:3;margin-left:auto}
 .guide.pill{margin:6px 12px 4px}
 main,main.wide{padding-top:14px}
}
/* fix pass 19: Compliance's two short tables sit side by side on a wide screen; the builder's trip filters and extra columns fold under one line */
.cmp-pair{display:block}
@media (min-width:1000px){.cmp-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap);align-items:start;margin:0 0 var(--gap)}.cmp-pair>.card{margin:0}}
form.builder details.b-more{flex:1 1 100%;margin:4px 0}
form.builder details.b-more>.more-b{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}
/* fix pass 19: short tables of two or three columns (Flags by rule, the geofence gaps, corrals by state) stay tables on a phone, not a card a row */
@media (max-width:720px){
 table.cards.slim{display:table;width:100%}
 table.cards.slim thead{display:table-header-group}
 table.cards.slim tbody{display:table-row-group}
 table.cards.slim tbody tr{display:table-row;border-bottom:0;padding:0}
 table.cards.slim th,table.cards.slim td{display:table-cell;width:auto;padding:8px 6px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
 table.cards.slim th.n,table.cards.slim td.n{text-align:right}
 table.cards.slim td::before{content:none}
}
.imp-lead{margin:0 0 4px;font-size:13.5px;color:var(--muted-foreground)} /* fix pass 19: the import form's one-line lead; its full help is one click away under it */

/* fix pass 20: on a phone the header is one row (it took two, and three with the tour bar, before the title): Menu as its icon, the Sample data badge
   as its dot, the feed clock and Update, the seat as its short name over the real select, and Switch. Every control stays on the screen, and each
   word hidden here stays for screen readers (Menu, Sample data, MT, feed) */
.who-sel{display:contents}.who-short{display:none}.fb-i{display:none}
@media (max-width:720px){
 .top{flex-wrap:nowrap;gap:4px;padding:6px 8px}
 .top .menu-btn{order:0;flex:none;padding:6px 6px;gap:0}
 .mb-l,.db-l,.fb-z,.fb-w{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .demo-badge{order:1;flex:none;width:26px;height:26px;padding:0;justify-content:center;gap:0}
 .demo-badge::before{width:8px;height:8px}
 .feedbar{order:2;margin-left:0;gap:3px;flex:none}
 .fb-t{gap:4px;font-size:12.5px}
 .feedbar .btn.small{padding:6px 6px}
 .fb-i{display:block}
 .top .who{order:3;flex:0 1 auto;margin-left:auto;gap:4px}
 .who-sel{display:block;position:relative;flex:none}
 .who-short{display:block;font-size:16px;line-height:1.3;padding:6px 20px 6px 7px;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 6px center;white-space:nowrap;pointer-events:none}
 .top .who .who-sel select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;cursor:pointer}
 .who-sel:has(select:focus-visible) .who-short{outline:2px solid var(--ring);outline-offset:2px}
 .top .who .btn.small{padding:6px 8px}
}
@media (max-width:380px){.top{gap:3px;padding:6px 6px}.feedbar .btn.small{padding:6px 5px}.top .who .btn.small{padding:6px 7px}.top .menu-btn{padding:6px 5px}}
#draw-form .f[hidden],#draw-form .row[hidden]{display:none} /* fix pass 20: Draw a zone shows only the chosen type's fields */
@media (max-width:359px){.top{flex-wrap:wrap;row-gap:6px}.top .who{margin-left:0}} /* fix pass 20: under 360 px (a 320 px phone) the one row would not fit, so the seat wraps to a second row */
/* fix pass 20: on a wide screen the corral card's hour picker and summary sit beside the table of corrals by state */
.corral-top>div>p:last-child{margin-bottom:0}@media (min-width:1000px){.corral-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:12px 24px;align-items:start}.corral-top .tw,.corral-top table{margin-top:0}}
/* fix pass 21: the docked tour card's buttons stay inside the card at every width (stop 2's "Next: register MDS 2.2.0 in your copy" ran past the sidebar's edge):
   the button's words wrap inside it, and the row it sits in never grows past the card */
@media (min-width:721px){
 .guide.pill .g-a{min-width:0;max-width:100%}
 .guide.pill .g-a > form{min-width:0;max-width:100%;flex:0 1 auto}
 .guide.pill .g-a .btn:not(.g-ic){white-space:normal;max-width:100%;text-align:left;line-height:1.3;overflow-wrap:anywhere}
}
/* fix pass 21: Show zones / Hide zones sits right above the live map, one tap away */
.map-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 8px}.map-quick span.small{margin:0;color:var(--muted-foreground)}
/* fix pass 21: on a phone the Sample data dot carries its word ("Sample"; review 18 saw a bare orange dot), and the tour is the header's own second line,
   flat under its first, instead of a separate card with its own margins between the header and the page */
.db-s{display:none}
@media (max-width:720px){
 .demo-badge{width:auto;padding:0 7px 0 6px;gap:4px;font-size:12.5px}
 .demo-badge .db-s{display:inline}
 .top{gap:3px}
 .top .who .btn.small{padding:6px 6px}
 .top:has(+ .guide.pill){border-bottom:0}
 .top + .guide.pill{margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:var(--background)}
 .top + .guide.pill .g-in{padding:0 8px 4px}
 .top + .guide.pill .g-more{padding:6px 6px}
}
@media (max-width:380px){.demo-badge{padding:0 6px 0 5px;gap:3px}.top .who .btn.small{padding:6px 5px}}
/* fix pass 21: Switch shows as its icon on a phone (its word stays for screen readers), the room the Sample word takes */
.sw-i{display:none}
@media (max-width:720px){.top .who .sw-b{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:6px 8px}.sw-b .sw-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sw-b .sw-i{display:block}}
@media (max-width:420px){.top{gap:2px;padding:6px 4px}.top .menu-btn{padding:6px 4px}.demo-badge{padding:0 5px 0 4px}.feedbar .btn.small{padding:6px 4px}.who-short{padding-right:17px;background-position:right 5px center}.top .who .sw-b{min-width:30px;padding:6px 6px}}
/* fix pass 21: on a phone the zone-draw map fits the screen (its figure was 873 px on an 844 px screen): the three draw buttons share one row and the
   key's zone types sit in two columns */
@media (max-width:720px){
 figure.map.draw .draw-bar{padding:8px 10px}
 figure.map.draw .draw-bar .draw-status{margin:0 0 6px}
 figure.map.draw .draw-bar .btns{flex-wrap:nowrap;gap:6px;margin:0}
 figure.map.draw .draw-bar .btn.small{padding:6px 9px;font-size:14px;white-space:nowrap;min-height:36px}
 figure.map.draw .map-key{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 10px;font-size:12.5px;margin:6px 0 2px}
 figure.map.draw .map-key li{align-items:flex-start;line-height:1.3}
 figure.map.draw .map-info{margin:4px 0}
}
@media (max-width:419px){figure.map.draw .draw-bar .btns{flex-wrap:wrap}} /* fix pass 23: 419, not 379: at 390 Clear stuck out of its card */ /* fix pass 21: under 380 px the three draw buttons do not fit one row (a 320 px phone scrolled sideways) */
/* fix pass 22 */
.m-v.m-vl{cursor:pointer}
@media (max-width:720px){#working{top:auto;bottom:16px}}
details.filt-fold.ff-always{margin:0 0 10px}
details.filt-fold.ff-always>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;padding:8px 40px 8px 12px;border:1px solid var(--input,#6b7684);border-radius:calc(var(--radius,4px) - 2px);background:#fff;cursor:pointer;list-style:none;position:relative;font-size:14px;font-weight:500}
details.filt-fold.ff-always>summary::-webkit-details-marker{display:none}
details.filt-fold.ff-always>summary::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-70%) rotate(45deg)}
details.filt-fold.ff-always[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}
details.filt-fold.ff-always[open]>summary{margin-bottom:8px}
details.filt-fold.ff-always .ff-k{font-weight:700}
details.filt-fold.ff-always .ff-chips{display:flex;flex-wrap:wrap;gap:6px}
details.filt-fold.ff-always .ff-none{color:var(--muted-foreground);font-weight:400}
details.key-fold,details.ie-fold{margin:8px 0}
details.key-fold>summary,details.ie-fold>summary{display:flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--input,#6b7684);border-radius:calc(var(--radius,4px) - 2px);background:#fff;cursor:pointer;font-size:14px;font-weight:500}
details.key-fold[open]>summary,details.ie-fold[open]>summary{margin-bottom:8px}
.m-city{fill:none;stroke:#22303c;stroke-width:2px;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;pointer-events:none}
.m-cw{margin:8px 0;padding:8px 12px;border:1px solid var(--border,#d5dbe1);border-radius:4px;background:#fff;font-size:14px}.m-cw p{margin:0}.m-cw ul{margin:4px 0 0;padding-left:18px}
@media (max-width:720px){.top .demo-badge{margin-right:6px}}
/* fix pass 22: the menu has fifteen pages now (Vehicles, Policies, Corrals): a little tighter on a wide screen, so the open tour card still covers no link */
@media (min-width:721px){.sidebar .navlinks a{padding:6px 10px}.sidebar .sb-g{margin:12px 8px 4px}.sidebar .navlinks{gap:1px}}
/* fix pass 23 (review 20): a vehicle's ID never breaks across lines ("WW-" over "0001"); the Incidents map is calmer: its zones are drawn faint under the 686 markers, and on a phone the dots are smaller and lighter */
a[href^="/devices/"],td[data-l="Vehicle"] a{white-space:nowrap}
figure.map:has(.m-inc) .m-zone{fill-opacity:.07;stroke-opacity:.45}
@media (max-width:720px){
 figure.map .m-inc circle{r:3.6px;fill-opacity:.42;stroke-width:.6}
 figure.map .m-inc.crash path{stroke-width:2}
}

/* fix pass 24 (review 21, item 1): the docked tour card shows its whole text, and on a short desktop screen the sidebar's links sit closer so the dock covers none of them
   at 1440x900 and 1366x768 (the links still scroll above the dock) */
@media (min-width:721px){
 .guide.pill .g-card{max-height:calc(100vh - 210px)}
}
@media (min-width:721px) and (max-height:960px){
 .sidebar{padding-top:6px}
 .sb-head{padding:0 6px 2px}
 .sidebar .navlinks{gap:0}
 .sidebar .navlinks a,body:has(#guide.pill.open) .sidebar .navlinks a{padding:3px 10px}
 .sidebar .sb-g,body:has(#guide.pill.open) .sidebar .sb-g{margin:4px 8px 0;font-size:11.5px}
 .guide.pill .g-card{padding:6px 18px 0}
 .guide.pill .g-card .g-x,.guide.pill .g-card p{margin:0 0 3px;font-size:13px;line-height:1.35}
 .guide.pill .g-in{padding:2px 12px 6px;gap:4px}
 .guide.pill .g-more{padding:4px 8px}
 .guide.pill .g-left{padding:0 18px 6px;font-size:11.5px;line-height:1.3}
}
