:root {
  color-scheme:light;--navy:#203b5a;--ink:#192e46;--grey:#536577;--line:#d3dce4;
  --orange:#ad481d;--paper:#f6f7f9;--gutter:clamp(.8rem,3vw,2.75rem);
  font:16px/1.55 system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  color:var(--ink);background:var(--paper);
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
main,.ng-header-inner{max-width:1280px;margin:0 auto;padding-inline:var(--gutter)}
main{padding-bottom:3rem}
h1,h2,h3,p{margin:0}
p+p{margin-top:.45rem}
button,select,input,textarea{font:inherit}
button,select,input[type=date],input[type=month],input[type=time]{min-height:42px;border:1px solid #b8c5d0;border-radius:6px;background:#fff;color:var(--ink);padding:.45rem .75rem}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #c36332;outline-offset:3px}
[hidden]{display:none!important}
label{display:grid;gap:.2rem;font-size:.9rem}
table{width:100%;border-collapse:collapse;text-align:left}
td,th{vertical-align:middle}
.ng-header{color:#fff;background:#152b44;border-bottom:3px solid #cc723d}
.ng-header-inner,.ng-brand,.ng-account,.ng-workspace-meta,.ng-sync{display:flex;align-items:center}
.ng-header-inner{min-height:64px;justify-content:space-between;gap:1rem;padding-block:.55rem}
.ng-brand{gap:.8rem;flex:none}
.ng-brand strong{color:#fff;font:750 1.55rem/1 system-ui,sans-serif;letter-spacing:-.075em}
.ng-brand strong::before{content:"";display:inline-block;height:.82em;width:5px;margin-right:.38rem;background:#f09653;transform:skew(-14deg)}
.ng-brand h1{font-size:1rem;line-height:1.2;font-weight:620;color:#ecf1f6;border-left:1px solid #607188;padding-left:.8rem}
.ng-account{min-width:0;gap:.8rem}
.ng-account:has(#logout[hidden]){display:none}
#identityTitle{font-size:.81rem;color:#e6edf5;overflow-wrap:anywhere}
#logout{color:white;background:transparent;border-color:#6f8092;border-radius:5px;min-height:34px;padding:.25rem .6rem;font-size:.8rem;white-space:nowrap}
#logout:hover{background:#29415c}
.ng-access{margin:clamp(1.5rem,8vh,6rem) auto;max-width:30rem;padding:clamp(1.4rem,3vw,2.5rem);background:white;border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:12px;box-shadow:0 8px 24px #162b4410}
.ng-access-context{font-size:.82rem;color:var(--grey);margin-bottom:.55rem}
.ng-access h2{font-size:1.6rem;letter-spacing:-.035em}
#setup{color:var(--grey);margin:.75rem 0;font-size:.93rem}
#setup:empty,#status:empty,main:has(#workspace:not([hidden]))>.ng-access{display:none}
#login,.sg button.sg-primary{background:var(--orange);border-color:var(--orange);color:white;font-weight:650}
#login{margin-top:.5rem;width:100%;min-height:46px}
#status{margin:.7rem 0;padding:.6rem .8rem;border-left:3px solid #bf5e28;background:#fff4e8;color:#653715;overflow-wrap:anywhere}
.ng-workspace-meta{min-width:0;justify-content:space-between;flex-wrap:wrap;gap:.3rem 1rem;padding:.68rem 0;color:var(--grey);font-size:.82rem}
#branchTitle{color:var(--ink);font-weight:650}
.ng-sync{gap:.6rem;white-space:nowrap}
#refresh{font-size:.8rem;min-height:32px;padding:.25rem .65rem}
.sg{--ink:#192e46;--navy:#203b5a;--line:#d3dce4;--soft:#edf1f6;--grey:#536577;color:var(--ink);min-width:0}
.sg [hidden]{display:none!important}
.sg button{font:inherit;font-size:.91rem;font-weight:600;color:var(--ink);line-height:1.3;border:1px solid #b8c5d0;background:white;border-radius:7px;padding:.54rem .85rem;cursor:pointer}
.sg button:hover{background:var(--soft)}
.sg button:focus-visible,.sg input:focus-visible,.sg select:focus-visible,.sg textarea:focus-visible{outline:3px solid #ba5a24;outline-offset:2px}
.sg button:disabled{opacity:.55;cursor:default}
.sg button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
.sg-nav {
  position:sticky;top:0;z-index:8;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);
  gap:3px;margin:0 0 1.25rem;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff;
  box-shadow:0 2px 7px #172e4610;
}
.sg-nav button {
  min-width:0;min-height:44px;padding:.4rem .25rem;border:0;border-radius:6px;background:transparent;
  color:#354d64;line-height:1.3;font-size:.93rem;white-space:normal;
}
.sg-nav button[aria-current=page] {color:#fff;background:var(--navy);box-shadow:inset 0 -3px #e59755}
.sg-heading,.sg-tools,.sg-maptoolbar,.sg-caption,.sg-pages{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}
.sg-heading{margin:.15rem 0 1rem}
.sg-heading h2,.sg-heading h3,.sg-dialog h2{margin:0;line-height:1.3;letter-spacing:-.025em}
.sg-heading h2{font-size:clamp(1.5rem,3.8vw,2rem)}
.sg-heading p,.sg-page .sg-missing,.sg-resultcount,.sg-page .sg-referrals{font-size:.86rem;color:var(--grey)}
.sg-heading p{margin:.32rem 0 0}
.sg-tools{justify-content:flex-end}
.sg-filter{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .85rem;margin:.9rem 0}
.sg-filter>span,.sg-search,.sg-fields label,.sg-dialog>form>label{font-size:.85rem;font-weight:650}
.sg-kinds,.sg-kind-entry,.sg-radius{display:flex;gap:.38rem;align-items:center;flex-wrap:wrap}
.sg-kinds button,.sg-kind-entry button,.sg-radius button{border-radius:100px;font-size:.85rem;min-height:36px;padding:.45rem .78rem}
.sg-mapbox,.sg-card,.sg-planrows{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sg-maptoolbar,.sg-caption{padding:.55rem .75rem}
.sg-maptoolbar{justify-content:flex-start}.sg-maptoolbar .sg-radius{margin-left:auto}
.sg-maptoolbar button,.sg-caption button{min-height:34px}
.sg-map{height:clamp(320px,48vh,560px);border-block:1px solid var(--line)}
.sg .nearby-plot button.nm-pin{min-height:29px;padding:0 .28rem;background:#1e3d60}
.sg .nearby-plot button.booked{background:#a74420}
.sg .nearby-plot button.selected{outline:3px solid #f19b55}
.sg-caption{font-size:.81rem;color:var(--grey)}
.sg-caption button{font-size:.8rem}
.sg-missing:empty,.sg-detail:empty{display:none}
.sg-card{margin-top:1rem;padding:clamp(.9rem,2.5vw,1.6rem)}
.sg-card .sg-heading{align-items:flex-start}
.sg-heading .sg-overline{font-size:.82rem;color:var(--navy);margin:0 0 .3rem}
.sg-card h3{font-size:1.45rem}
.sg-card h4{margin:1rem 0 .45rem}
.sg-booked,.sg-appt{color:#854419;background:#fff3df}
.sg-booked{padding:.55rem .8rem;border-left:3px solid #c16c29}
.sg-facts{display:flex;gap:1.4rem;flex-wrap:wrap;border-block:1px solid var(--line);padding:.7rem 0;margin:.8rem 0}
.sg-facts dt{color:var(--grey);font-size:.78rem}
.sg-facts dd{margin:0;font-weight:650}
.sg-note,.sg-history p{white-space:pre-wrap;overflow-wrap:anywhere}
.sg-history,.sg-planrows ol{list-style:none;padding:0;margin:0}
.sg-history li{padding:.5rem 0;border-bottom:1px solid var(--line)}
.sg-history li div{color:var(--grey);font-size:.85rem}
.sg-referrals{margin:1rem 0}
.sg-search{display:grid;gap:.3rem;max-width:32rem}
.sg-search input,.sg-dialog input,.sg-dialog select,.sg-dialog textarea{width:100%;min-width:0;border:1px solid #b4c1ce;border-radius:6px;background:white;padding:.5rem .65rem;font:inherit;box-sizing:border-box}
.sg-resultcount{margin:.5rem 0}
.sg-scroll{overflow:auto;max-height:65vh;background:white;border:1px solid var(--line);border-radius:8px;scrollbar-gutter:stable}
.sg-sheet{width:100%;min-width:1020px;border-collapse:separate;border-spacing:0;margin:0;font-size:.87rem;line-height:1.35}
.sg-sheet td,.sg-sheet th{padding:.46rem .65rem;border:0;border-bottom:1px solid var(--line);border-right:1px solid var(--line);white-space:nowrap;text-align:left}
.sg-sheet th{background:#f1f4f7}
.sg-sheet thead th{position:sticky;top:0;z-index:2;background:#e7edf3}
.sg-sheet tbody th{position:sticky;left:0;z-index:1;background:#f7f9fb;max-width:240px;white-space:normal;overflow-wrap:anywhere}
.sg-sheet thead th:first-child{left:0;z-index:3}
.sg-sheet button,.sg-pages button{min-height:32px;padding:.25rem .55rem;font-size:.85rem}
.sg button.sg-link{color:var(--navy);background:transparent;border:0;padding:.15rem .1rem;text-align:left;text-decoration:underline;text-underline-offset:.2em}
.sg-pages{justify-content:flex-end;margin-top:.5rem}
.sg-planrows{margin-top:.85rem}
.sg-planrows>p{padding:.5rem 1rem}
.sg-planrows li{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:.7rem .9rem}
.sg-planrows li:last-child{border-bottom:0}
.sg-planrows li span{color:var(--grey);font-size:.85rem}
.sg-planrows li strong{margin-left:auto}
.sg-dialog{width:min(640px,94vw);box-sizing:border-box;color:var(--ink);border:1px solid var(--line);border-radius:14px;max-height:88dvh;padding:1.3rem;background:#fff}
.sg-dialog::backdrop{background:#122337b8}
.sg-dialog .sg-fields{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1rem 0}
.sg-fields label,.sg-dialog>form>label{display:grid;gap:.24rem}
.sg-dialog .sg-span{grid-column:1/-1}
.sg-kind-entry{margin-top:.4rem}
.sg-dialog .sg-check{align-self:center;display:flex;align-items:center;gap:.45rem}
.sg-dialog .sg-check input{width:20px;min-height:20px;height:20px}
.sg-dialog .sg-error{color:#863f1a}
.sg button[aria-pressed=false]:hover{border-color:var(--navy)}
@media(max-width:620px){.sg-heading{align-items:flex-start}.sg-maptoolbar .sg-radius{margin-left:0}.sg-caption{align-items:flex-start}.sg-map{height:340px}.sg-facts{gap:1rem}.sg-sheet tbody th{max-width:155px}.sg-dialog{padding:1rem}.sg-dialog .sg-fields{gap:.5rem}.sg-filter>span{width:100%}}
.sg-sheet .sg-cell{min-height:32px;width:100%;padding:.2rem .1rem;border:1px solid transparent;border-radius:2px;background:transparent;text-align:left;color:inherit;font-size:inherit;font-weight:inherit}
.sg-sheet .sg-cell:hover,.sg-sheet .sg-cell:focus-visible{border-color:#869bad;background:#e8eef5}
.sg-sheet input,.sg-sheet select{font:inherit;min-height:32px;border:1px solid var(--navy);border-radius:2px;max-width:15rem;padding:.2rem .3rem}
.sg-sheet input[type=checkbox]{min-height:18px;width:20px;height:20px}
.sg-period{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.6rem .8rem;margin:1rem 0}
.sg-period label{display:grid;gap:.25rem;font-size:.86rem;font-weight:650}
.sg-period input{padding:.45rem .6rem;min-height:40px;border:1px solid #b8c5d0;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
.sg-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.6rem}
.sg-kpis>div{border:1px solid var(--line);border-radius:9px;background:#fff;padding:.8rem 1rem}
.sg-kpis>div:first-child{background:var(--navy);color:white}
.sg-kpis span,.sg-kpis strong{display:block}
.sg-kpis span{font-size:.86rem}
.sg-kpis strong{font-size:1.8rem;font-variant-numeric:tabular-nums;line-height:1.2;margin-top:.3rem}
.sg-kpis small{font-size:.8rem;margin-left:.25rem}
.sg .sg-count-rule{color:var(--grey);font-size:.84rem;margin:.65rem 0 1.1rem}
.sg-result-table{overflow-x:auto;margin-top:.7rem;background:white;border:1px solid var(--line);border-radius:8px}
.sg-result-table table{min-width:345px;width:100%;border-collapse:collapse;margin:0;font-size:.9rem}
.sg-result-table td,.sg-result-table th{padding:.55rem .7rem;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}
.sg-result-table th:first-child,.sg-result-table td[colspan]{text-align:left}
.sg-result-table tbody th{background:white}
.sg-result-table thead th{background:#e7edf3}
@media(max-width:620px){.sg-kpis{grid-template-columns:1fr 1fr}.sg-result-table td,.sg-result-table th{padding:.45rem .38rem}}
.sg-period select{padding:.45rem .6rem;min-height:40px;max-width:100%;border:1px solid #b8c5d0;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
.sg-result-table caption{padding:.6rem .7rem;text-align:left;color:var(--ink);font-weight:650}
.sg-result-table table+table{margin-top:1rem}
.sg-sheet .sg-logcell{white-space:normal;min-width:14rem;max-width:27rem}
.sg-sheet .sg-log+.sg-log{margin-top:.4rem;border-top:1px solid var(--line);padding-top:.4rem}
.sg-log span,.sg-old .sg-history strong{font-size:.77rem;color:var(--grey)}
.sg-log div,.sg-old p{white-space:pre-wrap;overflow-wrap:anywhere}
.sg-old summary{cursor:pointer;color:var(--navy);text-decoration:underline;text-underline-offset:.16em}
.sg-old[open]{min-width:15rem;max-width:25rem;white-space:normal}
.sg-new-row{border:1px solid var(--line);border-radius:.5rem;margin:1rem 0;padding:.7rem .9rem}
.sg-new-row legend{color:var(--navy);font-weight:700;padding-inline:.4rem}
.sg-new-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .8rem}
.sg-new-grid label{display:grid;gap:.25rem;font-weight:600;font-size:.85rem}
.sg-new-row details{margin:.6rem 0}
.sg-new-row summary{cursor:pointer;color:var(--navy);font-size:.88rem}
.sg-entry-more{margin-bottom:.5rem}
@media(max-width:440px){.sg-new-grid{grid-template-columns:1fr}}
.sg-route-controls{display:flex;align-items:flex-end;gap:.75rem;flex-wrap:wrap}
.sg-route-controls label{display:grid;gap:.25rem;font-size:.9rem;font-weight:650}
.sg-route-controls input{font:inherit;border:1px solid #b4c1ce;border-radius:6px;padding:.4rem .65rem;background:white;min-height:42px;color:var(--ink)}
.sg-route-list{margin:1rem 0;padding-left:2rem}
.sg-route-list li{padding:.5rem .5rem;border-bottom:1px solid var(--line);background:white}
.sg-route-list li::marker{font-weight:700;color:var(--navy)}
.sg-route-list li span{display:inline-flex;align-items:center;gap:.5rem;margin-left:.7rem;flex-wrap:wrap}
.sg-route-own h3{font-size:1rem}
.sg-route-own>div{padding:.4rem 0}
.sg-enroute{color:#77401b;font-size:.85rem;font-weight:650}
.sg-heading-unavailable,.sg-route-status{font-size:.88rem;color:var(--grey)}
.sg .nearby-plot button.nm-pin.enroute{background:#a64a22;outline:2px dashed white}
.sg-log p{margin:.12rem 0}
.sg-leg{display:block;padding:.25rem 0;color:var(--grey);font-variant-numeric:tabular-nums}
.sg-route-method{font-size:.85rem;color:var(--grey)}
.sg-route-list a,.sg-enroute+a{color:var(--navy);text-underline-offset:.15em}

.sg-heading h2{font-weight:730;letter-spacing:-.035em}
.sg-heading p{line-height:1.45}
.sg-kpis>div{border-top:3px solid #d2dce7}
.sg-kpis>div:first-child{border-top-color:#e18c4f}
.sg .nearby-plot button.nm-pin.booked{background:#a74822}
.sg .nearby-plot button.nm-pin.selected{box-shadow:0 0 0 2px #a9471d}
.sg .ng-activity,.sg-dialog{color:var(--ink);border-color:var(--line);box-shadow:0 18px 60px #172c4550}
.sg .ng-activity .activity-head{padding-bottom:.65rem;border-bottom:2px solid var(--navy)}
.sg .ng-activity button[type=submit]{background:var(--orange);border-color:var(--orange)}
.sg .ng-activity [data-outcome][aria-pressed=true],.sg .ng-activity .choice label:has(input:checked){color:#193552;background:#e8eef5;border-color:#63809c}
.sg .ng-activity input,.sg-dialog input{accent-color:var(--navy)}
.sg .ng-activity textarea,.sg-dialog textarea{font-size:1rem}
.sg-result-table:has(thead th:nth-child(6)) table{min-width:56rem}
.sg-result-table:has(thead th:nth-child(6)) th{white-space:nowrap}
.sg-result-table:has(thead th:nth-child(6)) th:first-child{position:sticky;left:0;box-shadow:1px 0 #d3dce4}
@media (max-width:760px) {
  .ng-header-inner{min-height:0;align-items:flex-start;gap:.3rem;flex-direction:column;padding-block:.62rem .48rem}
  .ng-brand{gap:.65rem}.ng-brand strong{font-size:1.32rem}.ng-brand h1{font-size:.9rem;padding-left:.65rem}
  .ng-account{width:100%;justify-content:space-between;gap:.45rem}
  #identityTitle{font-size:.74rem;line-height:1.25}
  #logout{font-size:.74rem;min-height:29px}
  .ng-workspace-meta{padding:.35rem 0;font-size:.75rem;line-height:1.2}
  .ng-sync{gap:.4rem}#refresh{min-height:29px;padding:.18rem .45rem}
  .sg-nav{margin-bottom:.8rem;gap:1px;padding:2px;border-radius:7px}
  .sg-nav button{font-size:clamp(.73rem,3.2vw,.875rem);padding:.28rem .03rem;min-height:42px}
  .sg-filter{gap:.3rem .55rem;margin:.65rem 0}
  .sg-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}
  .sg-kpis>div{padding:.5rem .55rem}
  .sg-kpis span{font-size:.75rem}.sg-kpis strong{font-size:1.4rem}
  .sg-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.65rem 0}
  .sg-period label,.sg-period input,.sg-period select{min-width:0;width:100%}
  .sg-period>label:nth-child(2){grid-row:1;grid-column:1/-1}
  .sg-result-table table{min-width:0}
  .sg-result-table:not(:has(thead th:nth-child(6))) thead th{white-space:nowrap}
  .sg-result-table:not(:has(thead th:nth-child(6))) th:first-child{overflow-wrap:anywhere}
  .sg-sheet thead th:first-child,.sg-sheet tbody th{max-width:min(36vw,155px)}
}
@media (max-width:349px) {
  .sg-nav{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
  .sg-nav button{font-size:.8rem}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
