:root {
  color-scheme:light;
  --paper:#f7f8f8; --surface:#ffffff; --soft:#edf1f0; --line:#d9dfdd; --control:#788783;
  --ink:#1e2727; --grey:#50615e; --navy:#233e56; --link:#00655c; --blue-wash:#e4f3ef; --sky:#c2e4db;
  --orange:#af4700; --accent:#00695f; --accent-hover:#00554d; --on-accent:#ffffff; --orange-light:#ffb76c; --orange-wash:#fff0d9; --rust:#843600;
  --visited:#c7394c; --booked:#bd5002; --error:#a32e42; --gutter:clamp(.8rem,3vw,2.75rem);
  font:16px/1.55 -apple-system,BlinkMacSystemFont,system-ui,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  color:var(--ink);background:var(--paper);
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-height:100dvh;background:var(--paper)}
main,.ng-header-inner{max-width:1440px;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 var(--control);border-radius:6px;background:var(--surface);color:var(--ink);padding:.45rem .75rem}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid var(--accent);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:var(--ink);background:var(--surface);border-bottom:1px solid var(--line)}
.ng-header-inner,.ng-brand,.ng-account,.ng-workspace-meta,.ng-sync{display:flex;align-items:center}
.ng-header-inner{min-height:54px;justify-content:space-between;gap:1rem;padding-block:.55rem}
.ng-brand{gap:.8rem;flex:none}
.ng-brand strong{color:var(--ink);font:750 1.55rem/1 system-ui,sans-serif;letter-spacing:-.055em}
.ng-brand h1{font-size:1rem;line-height:1.2;font-weight:620;color:var(--navy);border-left:1px solid var(--line);padding-left:.8rem}
.ng-account{min-width:0;gap:.8rem}
.ng-account:has(#logout[hidden]){display:none}
#identityTitle{font-size:.81rem;color:var(--grey);overflow-wrap:anywhere}
#logout{color:var(--ink);background:var(--surface);border-color:var(--control);border-radius:5px;min-height:34px;padding:.25rem .6rem;font-size:.8rem;white-space:nowrap}
#logout:hover{background:var(--blue-wash)}
.ng-access{margin:clamp(1.5rem,8vh,6rem) auto;max-width:30rem;padding:clamp(1.4rem,3vw,2.5rem);background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 48px #1e37300c}
.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}
input::placeholder,textarea::placeholder{color:var(--grey);opacity:1}
#setup:empty,#status:empty,main:has(#workspace:not([hidden]))>.ng-access{display:none}
#login,.sg button.sg-primary,.sg .ng-activity button[type=submit]{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:700}
#login{margin-top:.5rem;width:100%;min-height:46px}
#status{margin:.7rem 0;padding:.6rem .8rem;border-left:3px solid var(--orange);background:var(--orange-wash);color:var(--rust);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{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 var(--control);background:var(--surface);border-radius:10px;padding:.54rem .85rem;cursor:pointer}
.sg button:hover{background:var(--soft)}
#login:hover,.sg button.sg-primary:hover,.sg .ng-activity button[type=submit]:hover{color:var(--on-accent);background:var(--accent-hover);border-color:var(--accent-hover)}
.sg button:focus-visible,.sg input:focus-visible,.sg select:focus-visible,.sg textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.sg button:disabled{opacity:.55;cursor:default}
.sg button[aria-pressed=true]{background:var(--blue-wash);color:var(--navy);border-color:var(--link);box-shadow:inset 0 -2px var(--link)}
.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 auto 1.25rem;padding:4px;border:1px solid var(--line);border-radius:14px;background:var(--soft);
  max-width:44rem;
}
.sg-nav button {
  min-width:0;min-height:44px;padding:.4rem .65rem;border:0;border-radius:10px;background:transparent;
  color:var(--navy);line-height:1.3;font-size:.93rem;white-space:normal;
}
.sg-nav button[aria-current=page] {color:var(--link);background:var(--surface);font-weight:700;box-shadow:0 1px 4px #182e2826}
.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:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sg-maptoolbar,.sg-caption{padding:.55rem .75rem}
.sg-maptoolbar button[data-action=locate]{background:var(--blue-wash);color:var(--navy);border-color:var(--link)}
.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:var(--navy)}
.sg .nearby-plot button.selected{outline:3px solid var(--orange-light)}
.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:var(--rust);background:var(--orange-wash)}
.sg-booked{padding:.55rem .8rem;border-left:3px solid var(--orange)}
.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 var(--control);border-radius:6px;background:var(--surface);padding:.5rem .65rem;font:inherit;box-sizing:border-box}
.sg-resultcount{margin:.5rem 0}
.sg-scroll{overflow:auto;max-height:65vh;background:var(--surface);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:var(--soft)}
.sg-sheet thead th{position:sticky;top:0;z-index:2;background:var(--soft)}
.sg-sheet tbody th{position:sticky;left:0;z-index:1;background:var(--surface);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(--link);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:var(--surface)}
.sg-dialog::backdrop,.sg .ng-activity::backdrop{background:#18242159}
.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:var(--error)}
.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:var(--control);background:var(--blue-wash)}
.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 var(--control);border-radius:6px;background:var(--surface);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:14px;background:var(--surface);padding:1rem 1.1rem}
.sg-kpis>div:first-child{background:var(--blue-wash);color:var(--ink)}
.sg-kpis span,.sg-kpis strong{display:block}
.sg-kpis span{font-size:.86rem}
.sg-kpis strong{font-size:2rem;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:var(--surface);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:var(--surface)}
.sg-result-table thead th{background:var(--soft)}
@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 var(--control);border-radius:6px;background:var(--surface);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 var(--control);border-radius:6px;padding:.4rem .65rem;background:var(--surface);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:var(--surface)}
.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:var(--rust);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{outline:2px dashed var(--ink)}
.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:first-child strong{color:var(--link)}
.sg .nearby-plot button.nm-pin.visited{background:var(--visited)}
.sg .nearby-plot button.nm-pin.booked{background:var(--booked)}
.sg-mapframe{position:relative}
.sg-maplegend{position:absolute;bottom:6px;right:6px;z-index:5;display:flex;flex-wrap:wrap;gap:3px 8px;padding:3px 6px;border-radius:4px;background:var(--surface);color:var(--ink);font-size:11px;pointer-events:none}
.sg-maplegend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:3px;background:var(--navy)}
.sg-maplegend span:last-child::before{display:none}
.sg-maplegend .recent::before{background:var(--visited)}
.sg-maplegend .booked::before{background:var(--booked)}
.sg .nearby-plot button.nm-pin.selected{outline:2px solid white;box-shadow:0 0 0 4px var(--link)}
.sg .ng-activity,.sg-dialog{color:var(--ink);border-color:var(--line);box-shadow:0 18px 60px #172c402e}
.sg .ng-activity .activity-head{padding-bottom:.65rem;border-bottom:1px solid var(--line)}
.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 var(--line)}
@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}}
.sg-analysis-tools{margin-block:.7rem}
.sg .sg-matrix th,.sg .sg-matrix td{white-space:nowrap}
.sg .sg-matrix thead th{max-width:15rem}
.sg .sg-matrix tbody th{position:sticky;left:0;z-index:1}
.sg .sg-market-value{color:var(--navy);background:var(--blue-wash);border:1px solid var(--line);border-radius:.35rem;padding:.3rem .6rem;min-height:32px;font-variant-numeric:tabular-nums}
.sg-drill:not(:empty){padding:1rem;margin:.9rem 0;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.sg-drill ul{list-style:none;padding:0;margin:.6rem 0}
.sg-drill li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-top:1px solid var(--line);padding:.3rem}
.sg-drill .sg-heading{margin-bottom:.4rem}
.sg-drill h3{font-size:1.05rem}
.sg-plan-count{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem 1.25rem;font-variant-numeric:tabular-nums}
.sg-rate{font-size:.8rem;color:var(--grey);margin-top:.55rem}
.sg-rate{padding-inline:.7rem}
.sg-focus-summary{margin:.75rem 0}
.sg-focus-summary h3{font-size:1rem;margin-bottom:.35rem}
.sg-focus-summary .sg-tools{justify-content:flex-start}

.sg .sg-approval-alert{margin:0 0 .7rem;padding:.35rem .8rem;min-height:34px;background:var(--orange-wash);border:1px solid var(--orange);color:var(--rust);font-weight:650}


.sg-nav-icon,.sg-nav-short {display:none}
@media (max-width:719px), (max-width:960px) and (max-height:520px) and (pointer:coarse) {
  :root {--sg-tabbar-height:calc(56px + env(safe-area-inset-bottom,0px))}
  html:has(#workspace:not([hidden]) .sg-nav) {scroll-padding-bottom:calc(var(--sg-tabbar-height) + 8px)}
  #workspace:not([hidden]):has(.sg-nav) {padding-bottom:var(--sg-tabbar-height)}
  #workspace .sg>.sg-nav {
    position:fixed;inset:auto 0 0;z-index:45;width:auto;max-width:none;height:var(--sg-tabbar-height);
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr;grid-auto-flow:column;gap:0;
    margin:0;padding:3px max(4px,env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left));
    border:0;border-top:1px solid #ccd8d6;border-radius:0;background:#fbfdfc;box-shadow:0 -1px 7px #1939320b;
  }
  #workspace .sg-nav button {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    margin:0;min-height:44px;min-width:0;padding:1px 0;border:0;border-radius:9px;
    background:transparent;color:#576763;box-shadow:none;font-size:.68rem;font-weight:580;line-height:1.15;white-space:nowrap;
  }
  #workspace .sg-nav button[aria-current=page] {background:#e3f0eb;color:#125548;font-weight:750}
  #workspace .sg-nav button:focus-visible {outline-offset:-2px}
  .sg-nav .sg-nav-long {display:none}
  .sg-nav .sg-nav-short,.sg-nav .sg-nav-icon {display:block}
  .sg-nav .sg-nav-icon {width:21px;height:21px;flex:none}
  .sg-nav button[aria-current=page] .sg-nav-icon {stroke-width:2}
  main:has(#workspace:not([hidden]) .sg-nav)>#status:not(:empty) {bottom:calc(var(--sg-tabbar-height) + 8px)}
}
@media (max-width:960px) and (max-height:520px) and (pointer:coarse) {
  #workspace .sg-page[data-page=map] {min-height:0}
}

/* One header holds the brand, primary navigation and branch context. */
:root{--ng-bar:calc(58px + env(safe-area-inset-top,0px))}
.ng-header{position:sticky;top:0;z-index:39;background:#fcfcfd}
.ng-header-inner{height:var(--ng-bar);min-height:0;max-width:none;flex-direction:row;align-items:center;padding:max(2px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
.ng-brand strong{font-size:1.55rem;color:#202225;letter-spacing:-.07em}
.ng-brand h1{font-size:.79rem;color:#626568}
.ng-account{width:auto}
.ng-branch{display:flex;align-items:center;gap:7px;min-height:40px;padding:4px 6px;border:0;background:transparent;font-size:.81rem}
.ng-branch i{background:#6c9f8c;width:7px;height:7px;border-radius:50%}
#branchTitle{color:#555e5c;font-weight:600;max-width:12rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
#branchTitle:empty::after{content:"アカウント"}
#account-menu{position:fixed;inset:calc(var(--ng-bar) + 4px) max(12px,env(safe-area-inset-right)) auto auto;width:max-content;max-width:calc(100vw - 24px);margin:0;padding:16px;border:1px solid #dedfe1;border-radius:16px;color:var(--ink);background:#fff;box-shadow:0 10px 36px #27303126}
#account-menu:popover-open{display:grid;gap:9px}
#account-menu .ng-sync{justify-content:space-between}
body:has(#workspace[hidden]) #account-menu .ng-sync{display:none}
#workspace{padding-top:12px}
#workspace:has(.sg-page[data-page=map]:not([hidden])){padding-top:0}
@media(min-width:720px) and (min-height:521px),(min-width:961px){
  #workspace .sg>.sg-nav{position:fixed;top:calc(env(safe-area-inset-top,0px) + 10px);left:50%;transform:translateX(-50%);z-index:40;width:max-content;max-width:calc(100vw - 300px);margin:0;display:flex;gap:1px;padding:3px;border:0;border-radius:12px;background:#e9eaec}
  #workspace .sg-nav button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;color:#515558;border:0;border-radius:9px;padding:4px 11px;min-height:31px;font-size:.8rem;white-space:nowrap}
  #workspace .sg-nav button[aria-current=page]{background:#fff;color:#202826;box-shadow:0 1px 4px #25282f24}
  #workspace .sg-nav-icon{display:inline-block;width:16px;height:16px}
  #workspace .sg-nav-long{display:none}
  #workspace .sg-nav-short{display:inline}
}
@media(max-width:959px){.ng-brand h1{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}}
@media(max-width:719px),(max-width:960px) and (max-height:520px) and (pointer:coarse){
  :root{--ng-bar:calc(47px + env(safe-area-inset-top,0px))}
  .ng-header-inner{padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}
  .ng-brand strong{font-size:1.3rem}
}
