:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b26;
  background: #e9eeeb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #da8900;
  outline-offset: 3px;
}
button {
  border: 0;
}
.studio {
  max-width: 1060px;
  margin: 48px auto;
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 80px;
  padding: 24px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #53685e;
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 20px 0;
}
p {
  line-height: 1.65;
  color: #53645b;
}
.note {
  font-size: 13px;
}
.reset {
  background: transparent;
  color: #286348;
  padding: 12px 0;
  text-decoration: underline;
}
.phone {
  background: #f3f5f2;
  border: 7px solid #233d32;
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 26px 70px #1b382622;
  position: relative;
  height: 824px;
  display: flex;
  flex-direction: column;
}
.statusbar {
  padding: 17px 27px 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 13px;
  background: #fff;
}
.apphead {
  background: #fff;
  padding: 16px 22px 14px;
}
.project {
  font-size: 12px;
  color: #65796c;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.titleline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.titleline h2 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -1px;
}
.add {
  border-radius: 22px;
  background: #e8f0e9;
  color: #23573b;
  min-height: 44px;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 650;
}
.summary {
  font-size: 14px;
  color: #65796c;
  margin-top: 12px;
}
.content {
  overflow: auto;
  flex: 1;
  padding: 16px;
}
.truck {
  background: #fff;
  border: 1px solid #e0e6de;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
}
.trucktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.identity {
  background: none;
  text-align: left;
  padding: 0;
  color: inherit;
  min-height: 44px;
}
.identity strong {
  font-size: 21px;
  display: block;
  letter-spacing: -0.4px;
}
.identity small {
  display: block;
  font-size: 12px;
  color: #637466;
  margin-top: 4px;
}
.badge {
  font-size: 12px;
  background: #edf3e9;
  color: #426537;
  border-radius: 12px;
  padding: 6px 9px;
  white-space: nowrap;
}
.badge.away {
  background: #f4efe4;
  color: #796038;
}
.destination {
  font-size: 14px;
  color: #67736b;
  margin: 12px 0 5px;
}
.eta {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
.eta.unknown {
  font-size: 17px;
  color: #67736b;
  font-weight: 500;
}
.action,
.primary {
  background: #245e40;
  color: #fff;
  border-radius: 12px;
  min-height: 48px;
  width: 100%;
  font-weight: 650;
}
.action.depart {
  background: #eaf0e9;
  color: #245e40;
}
.group {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c796f;
  margin: 8px 4px 12px;
}
.compact .truck {
  border: 0;
  border-bottom: 1px solid #e0e6de;
  border-radius: 0;
  margin: 0;
  padding: 16px 6px;
}
.compact .content {
  background: #fff;
}
.compact .eta {
  font-size: 17px;
  margin-bottom: 12px;
}
.compact .identity strong {
  font-size: 19px;
}
.compact .action {
  min-height: 44px;
}
.nav {
  display: flex;
  background: #fff;
  border-top: 1px solid #e2e8e0;
  padding: 9px 12px 21px;
  gap: 8px;
}
.nav button {
  flex: 1;
  background: none;
  border-radius: 12px;
  min-height: 44px;
  color: #6c796f;
  font-size: 14px;
}
.nav button.selected {
  color: #245e40;
  background: #edf3e9;
  font-weight: 700;
}
.hidden {
  display: none !important;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 25px;
  width: min(370px, calc(100% - 32px));
  color: #172b26;
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #13281fb0;
}
dialog h2 {
  margin-top: 0;
  font-size: 24px;
}
label {
  display: block;
  font-size: 13px;
  color: #526359;
  margin: 14px 0 6px;
}
input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7d2c8;
  border-radius: 10px;
  padding: 10px;
  background: white;
  color: #172b26;
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  color: #426537;
  min-height: 35px;
}
dialog .primary {
  margin-top: 22px;
}
.cancel {
  background: none;
  color: #53685e;
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
}
.metric {
  padding: 22px;
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
}
.metric strong {
  font-size: 30px;
  display: block;
  margin-top: 8px;
}
.event {
  padding: 16px 0;
  border-bottom: 1px solid #e0e6de;
  font-size: 15px;
}
.empty {
  padding: 20px 4px;
}
.homebar {
  position: absolute;
  bottom: 7px;
  width: 110px;
  height: 4px;
  background: #172b26;
  border-radius: 3px;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  .studio {
    display: block;
    margin: 0 auto;
    padding: 18px;
    max-width: 450px;
  }
  h1 {
    font-size: 30px;
    margin: 12px 0;
  }
  .phone {
    height: 780px;
    max-height: 88svh;
    width: 100%;
    border-width: 4px;
    border-radius: 30px;
  }
  .note {
    margin: 8px 0;
  }
  .reset {
    padding: 8px 0;
  }
  .studio {
    padding-bottom: 35px;
  }
}
.statusgroup {
  margin-bottom: 20px;
}
.sectiontitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 13px 14px;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.sectiontitle > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sectiontitle i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #468055;
}
.returning .sectiontitle i {
  background: #ab772e;
}
.count {
  font-size: 12px;
  background: #ffffffb0;
  border-radius: 8px;
  padding: 3px 8px;
}
.groupempty {
  padding: 18px;
  color: #637466;
  font-size: 14px;
}
.statusgroup .badge {
  display: none;
}
.rows .content {
  padding: 8px 16px;
}
.rows .sectiontitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #5a6d60;
  padding: 14px 4px 9px;
}
.rows .groupbody {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0e6de;
  overflow: hidden;
}
.rows .truck {
  position: relative;
  border: 0;
  border-bottom: 1px solid #e6eae3;
  border-radius: 0;
  margin: 0;
  padding: 14px 12px;
  min-height: 114px;
  padding-right: 110px;
}
.rows .truck:last-child {
  border-bottom: 0;
}
.rows .identity strong {
  font-size: 18px;
}
.rows .identity small {
  font-size: 11px;
}
.rows .action {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  min-height: 52px;
  font-size: 13px;
  line-height: 1.4;
  padding: 7px;
}
.rows .destination {
  font-size: 12px;
  margin: 7px 0 4px;
}
.rows .eta {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.5;
}
.rows .count {
  background: #e3e9e0;
}
.phone .content {
  scrollbar-width: thin;
}
.nav {
  order: 2;
}
.homebar {
  order: 3;
}
@media (max-width: 380px) {
  .rows .truck {
    padding-right: 96px;
  }
  .rows .action {
    width: 78px;
  }
}
.studio {
  gap: 60px;
  margin-top: 24px;
}
.phone {
  --accent: #245e40;
  --tint: #eaf0e9;
  position: sticky;
  top: 24px;
}
.phone .action,
.phone .primary {
  background: var(--accent);
}
.phone .action.depart,
.phone .add,
.phone .nav button.selected {
  background: var(--tint);
  color: var(--accent);
}
.phone .sectiontitle i {
  background: var(--accent);
}
.phone .returning .sectiontitle i {
  background: #ab772e;
}
.searchbar {
  background: white;
  padding: 0 22px 12px;
}
.searchbar input {
  background: #f1f3f0;
  border: 0;
  min-height: 38px;
  font-size: 14px;
  padding: 8px 12px;
}
.rows .content {
  padding-top: 0;
  background: #f3f5f2;
}
.rows .truck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  column-gap: 10px;
  min-height: 104px;
  padding: 12px;
}
.rows .identity,
.rows .destination,
.rows .eta,
.rows .rowdetails {
  grid-column: 1;
  overflow-wrap: anywhere;
}
.rows .identity {
  min-width: 0;
  width: 100%;
}
.rows .action {
  position: static;
  transform: none;
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  width: 90px;
  font-size: 13px;
  min-height: 54px;
}
.rows .destination {
  margin: 4px 0 0;
}
.rows .eta {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
}
.rows .eta b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: #203d2b;
}
.rows .eta.unknown {
  font-size: 13px;
}
.rowdetails {
  font-size: 12px;
  color: #637466;
  margin-top: 3px;
}
.past {
  display: block;
  font-size: 11px;
  color: #925a17;
  font-weight: 600;
  margin-top: 3px;
}
.rows .sectiontitle {
  position: sticky;
  top: 0;
  background: #f3f5f2;
  z-index: 1;
}
.rows .groupbody {
  overflow: visible;
}
.rows .truck:first-child {
  border-radius: 14px 14px 0 0;
}
.rows .truck:last-child {
  border-radius: 0 0 14px 14px;
}
.rows .truck:only-child {
  border-radius: 14px;
}
.phone .content {
  min-height: 0;
}
.apphead {
  padding-top: 17px;
  padding-bottom: 14px;
}
.nav {
  flex-shrink: 0;
}
.statusbar {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .phone {
    position: relative;
    top: 0;
  }
  .studio {
    margin-top: 0;
  }
  .phone {
    max-height: none;
    height: 800px;
  }
}
.historyentry {
  background: white;
  border: 1px solid #e0e6de;
  border-radius: 12px;
  padding: 13px;
  margin: 12px 0;
}
.historytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.historytop strong {
  font-size: 16px;
}
.historytop > span {
  font-size: 12px;
  color: var(--accent);
  background: var(--tint);
  padding: 4px 8px;
  border-radius: 7px;
}
.eventtime {
  display: block;
  font-size: 12px;
  color: #617265;
  margin: 4px 0 10px;
}
.historyfields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  border-top: 1px solid #edf0e9;
  padding-top: 10px;
}
.historyfields dt {
  font-size: 10px;
  color: #657568;
  line-height: 1.4;
}
.historyfields dd {
  font-size: 13px;
  color: #263e2d;
  line-height: 1.4;
  margin: 1px 0 0;
  overflow-wrap: anywhere;
}
.historytop > span {
  margin-left: auto;
}
.delete-event {
  background: transparent;
  color: #806b65;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  line-height: 1;
}
.delete-event:hover {
  background: #fbefeb;
  color: #a33526;
}
.historytop {
  gap: 5px;
}
.historyrow {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dfe6dc;
  gap: 6px;
  margin: 0;
  padding: 5px 0;
}
.history-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  color: #263e2d;
  padding: 9px 0;
  min-height: 52px;
}
.history-line {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.history-sub {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #637466;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.historyrow .delete-event {
  flex: 0 0 44px;
  margin-left: auto;
}
.loadstats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 18px 0 12px;
}
.loadstats > div {
  padding: 8px 4px;
}
.loadstats strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.loadstats span {
  display: block;
  font-size: 10px;
  color: #637466;
  line-height: 1.4;
  margin-top: 4px;
}
.loadrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #263e2d;
  border-bottom: 1px solid #dfe6dc;
  padding: 12px 0;
  min-height: 64px;
}
.loadrow strong {
  font-size: 14px;
}
.loadrow small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #637466;
  overflow-wrap: anywhere;
}
.loadrow > span:first-child {
  min-width: 0;
}
.loadtime {
  font-size: 12px;
  font-weight: 650;
  text-align: right;
  flex-shrink: 0;
  max-width: 44%;
}
.loadtime > span {
  color: #7a887d;
  margin-left: 4px;
}
.loadhero {
  margin-bottom: 16px;
}
.loadhero > span {
  font-size: 12px;
  color: #637466;
}
.loadhero strong {
  display: block;
  font-size: 28px;
  margin-top: 5px;
}
#sheet {
  width: min(420px, calc(100% - 24px));
  max-height: 92svh;
  padding: 22px;
}
#sheet h2 {
  margin-bottom: 8px;
}
.formhint {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #637466;
}
.formpair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.formfield {
  min-width: 0;
  margin-bottom: 10px;
}
.formfield label {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 600;
}
.formfield input,
.formfield select {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 16px;
}
.recentchoices {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-top: 5px;
  scrollbar-width: thin;
}
.recentchoices:empty {
  display: none;
}
.recentchoice {
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 10px;
  background: #edf3e9;
  color: #245e40;
  border-radius: 8px;
  font-size: 12px;
}
.recentchoice[aria-pressed="true"] {
  background: #245e40;
  color: white;
}
#sheet .primary {
  margin-top: 8px;
}

.studio {
  display: block;
  max-width: 458px;
  margin: 24px auto;
  padding: 12px 24px;
}
.phone {
  position: relative;
  top: 0;
  width: 100%;
}
.previewnote {
  text-align: center;
  font-size: 12px;
  color: #637466;
  margin-top: 16px;
}
.previewnote .reset {
  font-size: 12px;
}
@media (max-width: 480px) {
  .studio {
    margin: 0 auto;
    padding: 10px;
    max-width: 430px;
  }
  .phone {
    height: calc(100svh - 90px);
    min-height: 480px;
    max-height: 824px;
  }
  .previewnote {
    margin-top: 8px;
  }
}
.pickerfield {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #c7d2c8;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 16px;
  color: #172b26;
}
.pickerfield > span:first-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.pickerfield > span:last-child {
  color: #637466;
}
#pickerSheet {
  width: min(420px, calc(100% - 24px));
  padding: 22px;
  max-height: 90svh;
}
#pickerSheet h2 {
  margin-bottom: 16px;
}
#pickerOptions {
  max-height: 38svh;
  min-height: 100px;
  overflow-y: auto;
  border-top: 1px solid #dfe6dc;
  border-bottom: 1px solid #dfe6dc;
  overscroll-behavior: contain;
}
.pickeroption {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 12px 4px;
  background: white;
  color: #263e2d;
  border-bottom: 1px solid #edf0e9;
  overflow-wrap: anywhere;
}
.pickeroption[aria-pressed="true"] {
  color: #245e40;
  font-weight: 650;
  background: #f1f6ed;
}
.pickerempty {
  font-size: 14px;
}
.pickerfooter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pickerfooter button {
  flex: 1;
  background: none;
  min-height: 44px;
  font-size: 14px;
  color: #53685e;
}
#pickerAdd {
  overflow-wrap: anywhere;
  padding: 12px;
}
#pickerCount {
  font-size: 12px;
  margin: 10px 0;
}

/* Minimal iOS-style selection sheet. */
#pickerSheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(400px, 100%);
  max-height: 78svh;
  border-radius: 18px 18px 0 0;
  padding: 12px 20px max(20px, env(safe-area-inset-bottom));
  background: white;
  color: #1c1c1e;
}
#pickerSheet::backdrop {
  background: #0004;
}
.pickerheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
#pickerSheet h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}
#pickerCancel {
  background: none;
  color: #8e8e93;
  font-size: 26px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  margin-right: -10px;
}
#pickerSearch {
  background: #f3f3f5;
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  font-size: 16px;
  margin: 0 0 8px;
  padding: 9px 12px;
}
.pickerlist {
  background: transparent;
  border: 0;
  border-radius: 0;
}
#pickerOptions {
  border: 0;
  min-height: 0;
  max-height: 38svh;
}
.pickeroption {
  padding: 12px 0;
  min-height: 48px;
  color: #262629;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f2;
  background: transparent;
}
.pickeroption[aria-pressed="true"] {
  background: transparent;
  color: #262629;
  font-weight: 400;
}
.pickeroption[aria-pressed="true"] > span:last-child {
  color: #245e40;
  font-weight: 600;
}
#pickerClear,
#pickerAdd {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  margin: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 14px;
  color: #245e40;
}
#pickerClear {
  color: #8e8e93;
  font-size: 13px;
}
.pickerempty {
  padding: 15px 0;
  margin: 0;
  font-size: 13px;
  color: #8e8e93;
}
.exportintro {
  padding: 20px 2px 16px;
}
.exportintro strong {
  font-size: 17px;
}
.exportintro p {
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0;
  color: #637466;
}
.exportlist {
  background: white;
  border: 1px solid #e0e6de;
  border-radius: 13px;
  overflow: hidden;
}
.exportrow {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 17px 14px;
  min-height: 80px;
  text-align: left;
  background: white;
  color: #263e2d;
}
.exportrow + .exportrow {
  border-top: 1px solid #edf0e9;
}
.exporticon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  flex-shrink: 0;
  background: #edf3e9;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.4px;
  color: #245e40;
}
.exportrow strong {
  display: block;
  font-size: 16px;
}
.exportrow small {
  display: block;
  font-size: 12px;
  color: #637466;
  margin-top: 5px;
}
.exportarrow {
  margin-left: auto;
  color: #7c897f;
  font-size: 20px;
}
.exporthint {
  font-size: 12px;
  color: #637466;
  line-height: 1.5;
  margin: 16px 2px;
}
.exportstatus {
  font-size: 13px;
  color: #245e40;
  margin: 12px 2px;
}
.nav {
  gap: 3px;
  padding-left: 8px;
  padding-right: 8px;
}
.nav button {
  font-size: 13px;
}
.daybar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 14px 7px;
  background: white;
  flex-shrink: 0;
}
.daybar > button {
  min-width: 38px;
  min-height: 38px;
  padding: 4px 8px;
  background: none;
  color: #245e40;
  font-size: 24px;
}
.dayselect {
  position: relative;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #435849;
}
.dayselect input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}
.dayselect input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}
.dayselect:focus-within {
  outline: 2px solid #245e40;
  border-radius: 6px;
}
#today {
  font-size: 12px;
  margin-left: 3px;
}
.recordtimes {
  border-bottom: 1px solid #e0e6de;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.recordtimes label {
  font-size: 12px;
}
.recordtimes input {
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.recordtimes .formpair {
  grid-template-columns: 100px minmax(0, 1fr);
}

/* The compact layout fills the device; no preview frame. */
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  background: #f3f5f2;
}
.studio {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  height: 100dvh;
}
.phone {
  position: relative;
  top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding-top: env(safe-area-inset-top);
}
.nav {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.content {
  overscroll-behavior: contain;
  min-height: 0;
}
.apphead {
  padding: 14px 18px 10px;
  flex-shrink: 0;
}
.titleline h2 {
  font-size: 28px;
}
input,
select {
  font-size: 16px !important;
}
button {
  touch-action: manipulation;
}
dialog {
  max-height: 85dvh;
}
#storageError {
  position: fixed;
  z-index: 10;
  top: 0;
  background: #fff0d5;
  color: #592a00;
  padding: 12px;
  width: 100%;
}
.historyrow {
  overflow-wrap: anywhere;
}
.identity {
  max-width: 100%;
  overflow-wrap: anywhere;
}
#undo {
  float: right;
  font-size: 13px;
  min-height: 36px;
  margin-top: -25px;
}
.filterbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.filterbar label {
  flex: 1;
  min-width: 110px;
  margin: 0;
}
.filterbar select,
.filterbar input {
  min-height: 38px;
  padding: 6px;
}
.breakdown {
  font-size: 13px;
  border-bottom: 1px solid #dfe6dc;
  padding: 10px 2px;
}
.report-tools {
  margin-top: 24px;
}
.report-tools button {
  min-height: 44px;
  background: none;
  color: #245e40;
  padding: 8px;
}
.report-tools p {
  font-size: 12px;
}

.recordtimes .formpair {
  grid-template-columns: 1fr;
}
.recordtimes input[type="datetime-local"] {
  width: 100%;
  min-width: 0;
}
#historyTitle:focus {
  outline: none;
}
.pickerfield > span:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.formpair > div {
  min-width: 0;
}
.historyfields dd {
  overflow-wrap: anywhere;
}
.loadrow > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.loadtime {
  flex-shrink: 0;
}
dialog input {
  max-width: 100%;
}
@media (max-height: 500px) {
  dialog,
  #pickerSheet {
    max-height: 92dvh;
  }
  .apphead {
    padding-top: 8px;
    padding-bottom: 5px;
  }
  .summary {
    margin-top: 5px;
  }
  .nav {
    padding-top: 4px;
  }
  .daybar {
    padding-bottom: 0;
  }
}
