:root {
  --ink: #103a42;
  --pine: #1c554f;
  --paper: #f5f4ef;
  --rule: #d8ded6;
  --blue: var(--ink);
  --copper: #a45b31;
  --line: var(--rule);
  --muted: #526764;
  background: var(--paper);
  color: #213b3b;
  font-family: system-ui, sans-serif;
}
.ng-hub body, .ng-field body, .ng-sigef body {background: var(--paper)}
body > header, .ng-drawing body > h1 {
  background-color: var(--ink);
  background-image: linear-gradient(90deg,#103a42 24%,#103a4299),url("map-contours.png");
  background-size: auto, 470px auto;
  background-position: right center;
  background-repeat: no-repeat;
  border-bottom: 2px solid #c78052;
  color: white;
}
body > header {gap: 10px}
body > header img {border: 1px solid #71908c;border-radius: 10px}
body > header strong {font-weight: 700;letter-spacing: -.035em}
body > header small {color: #d5e3dd}
body > header a {border: 1px solid #74948f;border-radius: 8px;font-weight: 600;font-size: 14px}
body > header a:focus-visible, .globalnav :focus-visible {outline: 3px solid #d69361;outline-offset: -3px}
.ng-hub body > header {background: #103a42;padding: 12px clamp(14px,3vw,40px)}
.ng-hub header img {width: 40px;height: 40px}
.ng-hub header strong {font-size: 23px;line-height: 1}
.ng-hub header small {font-size: 12px;margin-top: 3px}
.ng-hub main {width: 100%;max-width: 1380px;padding: clamp(16px,2.6vw,38px)}
.ng-hub h1, .ng-hub h2 {letter-spacing: -.04em;color: var(--ink)}
.ng-hub h1 {font-size: clamp(27px,3vw,39px);line-height: 1.12}
.ng-hub button.primary, .ng-hub button.copper, .ng-field button.copper {
  background: var(--pine);border-color: var(--pine);color: white;
}
#homePane > .heading {
  align-items: flex-start;justify-content: center;flex-direction: column;
  gap: 16px;position: relative;isolation: isolate;overflow: hidden;
  background: #123f47;color: white;
  border-radius: 16px;padding: clamp(22px,3vw,40px);margin-bottom: 14px;
}
#homePane > .heading::before {
  content: "";position: absolute;inset: 0;z-index: -1;
  background: linear-gradient(90deg,#123f47 8%,#123f47eb 24%,transparent 75%),
              url("map-contours.png") right 48% / auto 160% no-repeat;
}
#homePane > .heading h1 {margin: 5px 0 0;color: #fff7e9;font-size: clamp(34px,4.2vw,60px);font-weight: 650;letter-spacing: -.055em}
#todayLabel {font-size: 13px;color: #d4e5dc}
#homeNew.copper {background: #f4bd91;color: #263b36;border-color: transparent;border-radius: 8px}
.ng-hub .globalnav {gap: 4px;background: #fbfbf7;border-color: var(--rule)}
.globalnav #otherAreas {display: contents}
.ng-hub .globalnav :is(button,a) {
  display: flex;align-items: center;gap: 10px;color: #365250;
  border-radius: 9px;text-align: left;text-decoration: none;font-size: 14px;
  font-weight: 600;line-height: 1.25;padding: 12px;background: transparent;
}
.ng-hub .globalnav [aria-current=true] {background: #deebe3;color: #153f37;box-shadow: inset 3px 0 #9d5d38}
.globalnav :is(button,a)::before, .ng-hub .stat::before {
  content: "";display: inline-block;flex: 0 0 auto;
  width: 21px;height: 21px;background-color: currentColor;
  -webkit-mask: url("survey-icons.png") var(--glyph,0%) center / 1200% 100% no-repeat;
  mask: url("survey-icons.png") var(--glyph,0%) center / 1200% 100% no-repeat;
}
[data-tab=projects] {--glyph: 9.0909%}
[data-tab=clients], .stat:nth-child(4) {--glyph: 18.1818%}
[data-tab=staff] {--glyph: 27.2727%}
[data-tab=hours] {--glyph: 36.3636%}
[data-tab=account] {--glyph: 45.4545%}
.globalnav a[href="field-check.html"] {--glyph: 54.5455%}
.globalnav a[href="sigef.html"] {--glyph: 63.6364%}
.globalnav #moreNav {--glyph: 72.7273%;display: none}
.ng-hub .stats {gap: 10px;margin: 0 0 18px}
.ng-hub .stat {position: relative;padding: 15px 16px;background: #fffefa;border-radius: 12px}
.ng-hub .stat::before {position: absolute;right: 13px;top: 14px;color: var(--pine);width: 19px;height: 19px}
.ng-hub .stat:first-child {--glyph: 81.8182%}
.ng-hub .stat:nth-child(2) {--glyph: 90.9091%}
.ng-hub .stat:nth-child(2)::before {color: #a45b31}
.ng-hub .stat:nth-child(3) {--glyph: 100%}
.ng-hub .stat b {color: var(--ink);font-size: 29px;line-height: 1.2;font-variant-numeric: tabular-nums}
.ng-hub .stat small {font-size: 13px}
.ng-hub .panel {border-radius: 14px}
.ng-hub .calendar-head {justify-content: flex-start}
.ng-hub .calendar-head strong {flex: 1;text-align: center}
.ng-hub .calendar-head button {min-width: 44px}
.ng-hub .day {min-height: 68px;border-radius: 5px;background: #fbfcf8;vertical-align: top}
.ng-hub .day.selected {outline-color: #a15a34;background: #f9eadb}
.ng-hub .day.today {box-shadow: inset 0 0 0 1px #245f52}
.ng-hub .weekdays span {color: var(--muted);font-weight: 600;padding-inline: 0}
.ng-hub #projectCards article {background: #fff;border: 1px solid var(--rule);border-radius: 13px;overflow: hidden}
.ng-hub #projectCards .project-card {border: 0;border-left: 4px solid var(--tone,var(--pine));border-radius: 0}
.ng-hub #projectCards .toolbar {padding: 10px 14px;border-top: 1px solid var(--rule);background: #fbfcf9}
.ng-hub #projectCards .toolbar button {flex: 1 1 auto}
.ng-hub dialog::backdrop {background: #0a313ccc}
.ng-hub :is(input,select,textarea):focus-visible {outline: 2px solid var(--pine);outline-offset: 1px}
.ng-drawing .tabs button[aria-selected=true], .ng-sigef .sigef-tabs [aria-current=true] {background: var(--pine);color: white;box-shadow: inset 0 -3px #d7986e}
@media (min-width: 740px) {
  .ng-hub body {display: grid;grid-template-columns: clamp(150px,17vw,220px) minmax(0,1fr);grid-template-rows: auto 1fr;min-height: 100vh}
  .ng-hub body > header {grid-column: 1/-1}
  .ng-hub .globalnav {
    position: sticky;top: 0;align-self: start;flex-direction: column;
    height: 100vh;height: 100dvh;padding: 22px 10px;border: 0;border-right: 1px solid var(--rule);
  }
  .ng-hub .globalnav a {white-space: normal}
  .ng-hub .globalnav a:first-of-type {margin-top: 15px;border-top: 1px solid var(--rule);border-radius: 0}
  .ng-hub main {margin: 0 auto;min-width: 0}
  .ng-hub .dashboard {grid-template-columns: 1fr}
  .ng-hub .dashboard > aside {align-self: start}
}
@media (min-width: 1120px) {
  .ng-hub .dashboard {grid-template-columns: minmax(0,1.65fr) minmax(245px,1fr)}
}
@media (max-width: 739px) {
  .ng-hub main {padding: 14px 12px calc(88px + env(safe-area-inset-bottom))}
  .ng-hub .globalnav {
    position: fixed;inset: auto 0 0;z-index: 20;display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));overflow: visible;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));border-block: 1px solid var(--rule);
    box-shadow: 0 -3px 14px #163c3810;
  }
  .ng-hub .globalnav > button, .ng-hub .globalnav #moreNav {
    display: flex;flex-direction: column;gap: 3px;justify-content: center;
    padding: 4px 0;font-size: 12px;min-height: 50px;
  }
  .ng-hub .globalnav #moreNav {display: flex}
  .ng-hub .globalnav > [aria-current=true], .ng-hub #moreNav[aria-expanded=true],
  .ng-hub #moreNav:has(+ #otherAreas [aria-current=true]) {background: #e1ece4;box-shadow: inset 0 2px #a45b31}
  .globalnav #otherAreas {display: none}
  #moreNav[aria-expanded=true] + #otherAreas {
    display: grid;position: absolute;bottom: calc(100% + 6px);right: 8px;
    background: #fffefa;border: 1px solid var(--rule);border-radius: 14px;padding: 6px;
    box-shadow: 0 8px 32px #103a4238;max-height: 65dvh;overflow: auto;
  }
  #homePane > .heading {gap: 14px;padding: 20px 16px}
  #homePane > .heading::before {background-position: center, 62% center}
  .ng-hub .stats {grid-template-columns: repeat(2,minmax(0,1fr));gap: 7px}
  .ng-hub .stat {padding: 10px 13px}
  .ng-hub .dashboard {grid-template-columns: minmax(0,1fr)}
  .ng-hub .day {min-height: 48px}
  .ng-hub .panel {padding: 13px}
  .ng-hub .day b {font-size: 13px}
  .ng-hub dialog {width: calc(100% - 14px);max-height: 90dvh}
  .ng-field header div, .ng-sigef header div {min-width: 0}
  .ng-field header a, .ng-sigef header a {white-space: nowrap;margin-left: auto;padding: 9px}
}
@media print {
  .ng-hub .globalnav {display: none}
  .ng-hub body {display: block}
}
.outward {
  display: inline-block;position: relative;width: 9px;height: 9px;margin: 0 2px 1px 4px;
  border-top: 1.5px solid;border-right: 1.5px solid;
}
.outward::before {
  content: "";position: absolute;top: -0.5px;right: 0;width: 11px;height: 1.5px;
  background: currentColor;transform-origin: right center;transform: rotate(-45deg);
}
