:root {
  --navy: #102a43;
  --green: #008550;
  --bg: #f5f7fa;
  --line: #e4eaf0;
  --muted: #63768a;
  --orange: #bc6b0a;
  --red: #bc3a41;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--navy);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #62adf7;
  outline-offset: 2px;
}
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: #edf3f6;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #006b41;
}
.danger {
  color: var(--red);
  border-color: #edc6c9;
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.small {
  font-size: 14px;
  padding: 8px 10px;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 19px;
  z-index: 5;
}
.brand {
  padding: 0 15px 28px;
}
.wordmark {
  font-size: 38px;
  letter-spacing: -3px;
  font-weight: 850;
  line-height: 1.2;
}
.wordmark span {
  color: var(--green);
}
.brand small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 700;
}
.brand .appname {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
  letter-spacing: 0.4px;
}
.brand img {
  max-width: 170px;
  max-height: 65px;
  object-fit: contain;
}
.navlabel {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: #8b9aab;
  padding: 10px 14px;
}
.navbtn {
  width: 100%;
  border: 0;
  justify-content: flex-start;
  padding: 13px 15px;
  margin: 3px 0;
  color: #60748a;
  background: transparent;
  font-size: 14px;
  gap: 13px;
  min-height: 48px;
}
.navbtn.active {
  background: #e9f5ef;
  color: var(--green);
}
.navbtn.active:before {
  content: "";
  position: absolute;
  left: 0;
  height: 24px;
  width: 3px;
  background: var(--green);
  border-radius: 0 4px 4px 0;
}
.sidebottom {
  margin-top: auto;
}
.support {
  margin: 22px 10px;
  padding: 16px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.support strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 4px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 21px 7px 0;
  font-size: 12px;
}
.profile strong {
  display: block;
  font-size: 13px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8eff5;
  color: var(--navy);
  height: 38px;
  width: 38px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.main {
  margin-left: 246px;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.topbar .crumb {
  color: #8290a0;
}
.topbar .crumb b {
  color: var(--navy);
  font-weight: 500;
}
.toptools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.connection {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.dot {
  height: 7px;
  width: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}
.dot.off {
  background: var(--orange);
}
.bell {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px;
}
.bell i {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
}
.content {
  padding: 30px 36px 55px;
  max-width: 1700px;
  margin: auto;
}
.demo {
  font-size: 12px;
  color: #82611c;
  background: #fff8e6;
  border: 1px solid #f0e2b9;
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 26px;
}
.demo span {
  font-size: 11px;
  opacity: 0.8;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 0 0 7px;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
p {
  margin: 0 0 12px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 27px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
}
.stat .stat-icon {
  position: absolute;
  right: 19px;
  top: 19px;
  background: #edf5f1;
  color: var(--green);
  padding: 9px;
  border-radius: 9px;
  display: flex;
}
.stat:nth-child(2) .stat-icon {
  background: #edf3fc;
  color: #467fc5;
}
.stat:nth-child(3) .stat-icon {
  background: #fff5e5;
  color: var(--orange);
}
.stat:nth-child(4) .stat-icon {
  background: #fdf0f1;
  color: var(--red);
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
  padding-right: 30px;
}
.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1.4;
  font-weight: 700;
  margin: 9px 0 3px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panelhead .subtitle {
  margin-top: 3px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.segmented {
  background: #f2f5f8;
  padding: 3px;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font-size: 12px;
  min-height: 34px;
}
.segmented .chosen {
  background: white;
  box-shadow: 0 1px 4px #102a4315;
}
.filters {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters select,
.filters input {
  font-size: 12px;
  min-height: 38px;
  width: auto;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 30px 6px 10px;
}
.filters .count {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.weeknav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.weeknav strong {
  font-size: 13px;
  min-width: 182px;
  text-align: center;
}
.weeknav button {
  padding: 7px 10px;
  min-height: 36px;
}
.schedule {
  display: grid;
  grid-template-columns: 123px repeat(7, minmax(0, 1fr));
  font-size: 12px;
}
.dayhead {
  padding: 15px 5px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: 0.8px;
}
.dayhead strong {
  display: block;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.7;
  letter-spacing: 0;
}
.dayhead.today strong {
  background: var(--green);
  color: white;
  border-radius: 50%;
  width: 34px;
  margin: auto;
}
.teamcell {
  border-bottom: 1px solid var(--line);
  padding: 20px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 165px;
}
.teamcell strong {
  font-size: 12px;
}
.teamcell small {
  font-size: 10px;
  color: var(--muted);
}
.teamcolor {
  width: 23px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 11px;
}
.daycell {
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 5px;
  min-width: 0;
  min-height: 165px;
  background: #fff;
}
.daycell.weekend {
  background: #fafbfd;
}
.daycell.today {
  background: #f7fcf9;
}
.event {
  border: 1px solid #d7e9df;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: #f1f8f4;
  padding: 9px 7px;
  width: 100%;
  display: block;
  text-align: left;
  min-height: 105px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.event:hover {
  background: #e4f2ea;
}
.event.blue {
  background: #f0f5fc;
  border-color: #dce7f5;
  border-left-color: #467fc5;
}
.event.purple {
  background: #f7f3fb;
  border-color: #e5dbee;
  border-left-color: #8763ad;
}
.event .time {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1px;
  margin-bottom: 6px;
}
.event strong {
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}
.event .town {
  font-size: 10px;
  color: #62766d;
}
.event .type {
  font-size: 9px;
  margin-top: 8px;
  color: #3e6553;
}
.event .statusmini {
  font-size: 9px;
  color: var(--orange);
  margin-top: 6px;
  display: block;
}
.legend {
  padding: 13px 22px;
  font-size: 10px;
  display: flex;
  gap: 18px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
}
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.listrow {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
}
.listrow:last-child {
  border: 0;
}
.listrow .body {
  flex: 1;
  min-width: 0;
}
.listrow h3 {
  font-size: 13px;
  margin-bottom: 3px;
}
.listrow p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.listrow .rowicon {
  padding: 10px;
  background: #fff4e4;
  border-radius: 9px;
  color: var(--orange);
  display: flex;
}
.listrow .rowicon.red {
  color: var(--red);
  background: #fdf0f1;
}
.listrow button {
  min-width: 44px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf3f9;
  color: #46729c;
  font-size: 10px;
  font-weight: 650;
  white-space: normal;
}
.badge.green {
  background: #e8f5ed;
  color: #008550;
}
.badge.orange {
  background: #fff3dc;
  color: #9f600d;
}
.badge.red {
  background: #fcebed;
  color: #b4333e;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.jobcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.jobcard .ref {
  font-size: 11px;
  color: var(--muted);
}
.jobcard h3 {
  font-size: 17px;
}
.jobcard p {
  font-size: 13px;
  color: var(--muted);
}
.jobcard .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.jobcard button {
  font-size: 12px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #94a8b8;
}
.empty strong {
  display: block;
  color: var(--navy);
  margin: 4px;
}
.mobileNav {
  display: none;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detailbox {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}
.detailbox h2 {
  margin-bottom: 14px;
}
.kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 9px;
  font-size: 14px;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.kv span {
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 14px;
  background: white;
  font-size: 14px;
  font-weight: 600;
}
.steps {
  display: flex;
  gap: 5px;
  margin: 20px 0;
  overflow: hidden;
}
.steps button {
  font-size: 12px;
  flex: 1;
  padding: 10px 5px;
  min-width: 0;
  border-radius: 8px;
  background: white;
}
.steps .active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.steps b {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f6;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--navy);
}
.stepform {
  max-width: 820px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: block;
  margin-bottom: 17px;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 7px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e2eb;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--navy);
  background: white;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--green);
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 13px;
  max-width: 100%;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  font-size: 14px;
  margin-bottom: 12px;
}
.checkitem {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 15px;
}
.checkitem h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.checkitem select {
  margin-bottom: 10px;
}
.notice {
  padding: 15px 18px;
  background: #eef5fc;
  border: 1px solid #d7e7f7;
  color: #335a7e;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 18px;
}
.notice.warn {
  background: #fff7e8;
  color: #916117;
  border-color: #efddb9;
}
.notice.error {
  background: #fff0f0;
  color: #a9323c;
  border-color: #edc3c7;
}
.notice li {
  margin: 5px 0;
}
.savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
}
.savebar small {
  font-size: 12px;
  color: var(--muted);
}
.photoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 13px;
}
.photo {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.photo img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.photo .info {
  padding: 9px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.photo .info small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.photo .checkline {
  font-size: 11px;
  min-height: 35px;
  margin: 0;
  padding: 6px;
}
.photo a {
  display: block;
}
.back {
  padding-left: 0;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.sectiongap {
  margin-top: 24px;
}
.modalshade {
  position: fixed;
  inset: 0;
  background: #102a4370;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal {
  width: 660px;
  max-width: 100%;
  max-height: 94dvh;
  background: white;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 25px 80px #102a4340;
}
.modalhead {
  padding: 23px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modalbody {
  padding: 24px;
}
.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  position: sticky;
  bottom: 0;
  background: white;
}
.formerror:empty {
  display: none;
}
.formerror {
  padding: 12px;
  background: #fff0f0;
  color: #aa303d;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.loginvisual {
  background: var(--navy);
  color: white;
  padding: 10vw 7vw;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loginvisual:after {
  content: "";
  width: 500px;
  height: 500px;
  position: absolute;
  bottom: -200px;
  right: -230px;
  border: 80px solid #ffffff06;
  transform: rotate(30deg);
  border-radius: 65px;
}
.loginvisual .wordmark {
  font-size: 60px;
  margin-bottom: 10px;
}
.loginvisual h1 {
  font-size: 42px;
  margin-top: 65px;
  max-width: 470px;
  letter-spacing: -1.4px;
}
.loginvisual p {
  color: #a6becf;
  max-width: 400px;
  margin-top: 15px;
  font-size: 17px;
}
.loginform {
  padding: 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 660px;
}
.loginform h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.loginform .subtitle {
  margin-bottom: 30px;
  font-size: 14px;
}
.loginform .primary {
  width: 100%;
  margin-top: 5px;
}
.demologins {
  margin-top: 25px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demologins p {
  font-size: 12px;
  color: var(--muted);
}
.demologins .toolbar {
  gap: 6px;
}
.demologins button {
  font-size: 12px;
  padding: 9px;
}
.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 50px;
  font-weight: 800;
}
.boot span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 50;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  max-width: 90vw;
  font-size: 14px;
  box-shadow: 0 6px 25px #102a4320;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.syncitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 13px;
}
.timepill {
  padding: 10px;
  background: #f0f5fa;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
.datebar {
  font-size: 14px;
  font-weight: 700;
  padding: 15px 22px;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 11px;
  color: var(--muted);
  background: #fafbfd;
}
td {
  overflow-wrap: anywhere;
}
.no-wrap {
  white-space: nowrap;
}
.textmuted {
  color: var(--muted);
}
.readingsrow {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 44px;
  gap: 8px;
  margin-bottom: 10px;
}
.photo-large {
  max-width: 100%;
  height: auto;
}
.linkbtn {
  color: var(--green);
  background: transparent;
  border-color: transparent;
}
.formgrid .wide {
  grid-column: 1/-1;
}
.unscheduled {
  padding: 16px 22px;
  background: #fafbfd;
  border-top: 1px solid var(--line);
}
.unscheduled .toolbar {
  margin-top: 8px;
}
.unscheduled button {
  font-size: 11px;
}
.calendarhint {
  font-size: 10px;
  color: var(--muted);
  padding: 0 22px 12px;
}
.listcontent .listrow h3 {
  font-size: 15px;
}
.listcontent .listrow p {
  font-size: 13px;
}
.reporttext {
  white-space: pre-wrap;
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (min-width: 1550px) {
  .event strong {
    font-size: 13px;
  }
  .event .time,
  .event .type,
  .event .town {
    font-size: 11px;
  }
  .daycell {
    padding: 9px;
  }
  .teamcell {
    padding: 22px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding: 25px 12px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat .label {
    font-size: 11px;
  }
  .schedule {
    grid-template-columns: 95px repeat(7, minmax(0, 1fr));
  }
  .event {
    padding: 7px 4px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teamcell {
    padding: 16px 8px;
  }
  .weeknav strong {
    min-width: auto;
  }
  .panelhead {
    padding: 17px;
  }
  .two-col {
    gap: 18px;
  }
  .event .town {
    font-size: 9px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 78px;
    padding: 25px 10px;
  }
  .brand {
    padding: 0 0 22px;
  }
  .brand .wordmark {
    font-size: 24px;
    letter-spacing: -2px;
  }
  .brand small,
  .brand .appname,
  .brand img,
  .navlabel,
  .navbtn span,
  .support,
  .profile > div:not(.avatar) {
    display: none;
  }
  .navbtn {
    padding: 12px;
    justify-content: center;
  }
  .main {
    margin-left: 78px;
  }
  .profile {
    justify-content: center;
    padding: 18px 0 0;
  }
  .toptools .connection {
    display: none;
  }
  .panelhead {
    flex-wrap: wrap;
  }
  .schedule {
    grid-template-columns: 90px repeat(7, minmax(0, 1fr));
  }
  .stat .stat-icon {
    display: none;
  }
  .stat .label {
    padding: 0;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .steps button {
    flex-direction: column;
    gap: 5px;
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .loginvisual {
    padding: 7vw 5vw;
  }
  .loginvisual h1 {
    font-size: 34px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar .crumb {
    font-size: 14px;
  }
  .topbar .crumb:before {
    content: "GME";
    font-size: 23px;
    letter-spacing: -1px;
    font-weight: 850;
    color: var(--navy);
    margin-right: 14px;
  }
  .topbar .crumb span {
    display: none;
  }
  .toptools {
    gap: 4px;
  }
  .toptools > small {
    display: none;
  }
  .topbar .avatar {
    width: 33px;
    height: 33px;
  }
  .content {
    padding: 20px 16px 105px;
  }
  .demo {
    font-size: 12px;
    padding: 10px 12px;
    margin-bottom: 22px;
  }
  .demo span {
    display: none;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading .subtitle {
    font-size: 13px;
    line-height: 1.5;
  }
  .heading > button {
    padding: 11px;
    font-size: 14px;
    white-space: nowrap;
  }
  .heading > button .icon {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 16px;
  }
  .stat .label {
    font-size: 12px;
  }
  .stat strong {
    font-size: 28px;
    margin: 6px 0;
  }
  .stat small {
    font-size: 11px;
  }
  .panelhead {
    padding: 17px 16px;
  }
  .panelhead h2 {
    font-size: 17px;
  }
  .panelhead .toolbar {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .weeknav {
    width: 100%;
    justify-content: space-between;
  }
  .weeknav strong {
    font-size: 14px;
  }
  .weeknav button {
    min-height: 44px;
  }
  .filters {
    padding: 12px 15px;
    gap: 8px;
  }
  .filters select,
  .filters input {
    font-size: 14px;
    min-height: 44px;
    flex: 1;
    min-width: 120px;
  }
  .filters .count {
    display: none;
  }
  .two-col,
  .cards {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .two-col > .panel {
    margin-bottom: 20px;
  }
  .cards {
    gap: 15px;
  }
  .mobileNav {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 10;
    box-shadow: 0 -4px 18px #102a4305;
  }
  .mobileNav button {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    padding: 7px 2px;
    border: 0;
    background: transparent;
    color: #6b7f93;
    min-height: 57px;
    font-weight: 500;
  }
  .mobileNav button.active {
    color: var(--green);
  }
  .mobileNav button.active .icon {
    stroke-width: 2.3;
  }
  .mobileNav .icon {
    width: 22px;
    height: 22px;
  }
  .listrow {
    padding: 16px;
    gap: 11px;
  }
  .listrow h3 {
    font-size: 15px;
  }
  .listrow p {
    font-size: 12px;
  }
  .listrow .badge {
    font-size: 10px;
  }
  .listrow button {
    padding: 8px;
  }
  .listrow .rowicon {
    display: none;
  }
  .panel {
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .badge {
    font-size: 11px;
  }
  .legend,
  .calendarhint {
    display: none;
  }
  .formgrid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field > span {
    font-size: 14px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .modalshade {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-height: 95dvh;
    border-radius: 17px 17px 0 0;
    width: 100%;
  }
  .modalhead {
    padding: 17px 19px;
  }
  .modalbody {
    padding: 20px;
  }
  .modalfoot {
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  }
  .modalfoot button {
    flex: 1;
  }
  .modalfoot .primary {
    flex: 2;
  }
  .detailbox {
    padding: 18px;
    margin-bottom: 16px;
  }
  .kv {
    grid-template-columns: 105px 1fr;
    font-size: 14px;
  }
  .steps {
    gap: 4px;
  }
  .steps button {
    font-size: 10px;
    padding: 10px 2px;
  }
  .steps b {
    font-size: 12px;
    width: 22px;
    height: 22px;
  }
  .savebar {
    position: sticky;
    bottom: 77px;
    background: #fff;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    z-index: 4;
    box-shadow: 0 -4px 16px #102a430a;
    flex-wrap: wrap;
  }
  .savebar small {
    font-size: 11px;
    flex: 1;
  }
  .savebar button {
    font-size: 14px;
  }
  .actions {
    gap: 8px;
  }
  .actions button,
  .actions a {
    font-size: 13px;
    padding: 10px 12px;
    flex: 1;
    white-space: nowrap;
  }
  .login {
    display: block;
  }
  .loginvisual {
    padding: 30px 25px;
  }
  .loginvisual .wordmark {
    font-size: 40px;
    margin-bottom: 0;
  }
  .loginvisual h1 {
    font-size: 26px;
    margin: 20px 0 0;
  }
  .loginvisual p {
    font-size: 14px;
    margin-bottom: 0;
  }
  .loginform {
    padding: 30px 25px;
  }
  .loginform h2 {
    font-size: 24px;
  }
  .demologins button {
    font-size: 13px;
  }
  .demologins {
    margin-top: 20px;
  }
  .readingsrow {
    grid-template-columns: 1fr 1fr 44px;
  }
  .readingsrow input:nth-child(3) {
    grid-column: 1/3;
    grid-row: 2;
  }
  .readingsrow button {
    grid-column: 3;
    grid-row: 1/3;
  }
  .notice {
    font-size: 14px;
  }
  .photoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jobcard .ref {
    font-size: 12px;
  }
  .jobcard p {
    font-size: 14px;
  }
  #toast {
    bottom: 95px;
    width: max-content;
    max-width: 92vw;
    font-size: 14px;
  }
  table {
    font-size: 14px;
  }
  th {
    font-size: 12px;
  }
  td,
  th {
    padding: 12px;
  }
  .listcontent .listrow {
    flex-wrap: wrap;
  }
  .listcontent .listrow > .body {
    min-width: 180px;
  }
  .listcontent .listrow > button {
    margin-left: auto;
  }
  .dayhead {
    font-size: 12px;
  }
  .unscheduled {
    padding: 16px;
  }
  .unscheduled button {
    font-size: 13px;
  }
  .textmuted {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .heading {
    flex-wrap: wrap;
  }
  .heading > div {
    flex: 1;
    min-width: 200px;
  }
  .heading > button {
    font-size: 16px;
  }
  .listrow h3,
  .listcontent .listrow h3 {
    font-size: 16px;
  }
  .listrow p,
  .listcontent .listrow p {
    font-size: 16px;
  }
  .jobcard p,
  .kv,
  .reporttext,
  .checkline,
  .notice {
    font-size: 16px;
  }
  .subtitle {
    font-size: 14px;
  }
  .field > span {
    font-size: 16px;
  }
  .stepform .subtitle {
    font-size: 16px;
  }
  .formerror {
    font-size: 16px;
  }
  .demo b {
    font-size: 11px;
  }
}
