@font-face {
  font-family: DM;
  src: url(/dm.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/barlow.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202f29;
  --muted: #647068;
  --forest: #163b30;
  --brand-background: #071410;
  --green: #214f40;
  --acid: #d7efa3;
  --line: #dce1d9;
  --canvas: #f4f5ef;
  --card: #fffefa;
  --amber: #925a17;
  color: var(--ink);
  font:
    14px/1.45 DM,
    "Segoe UI",
    sans-serif;
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #639a6d;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
small {
  font-size: 12px;
}
h1 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.052em;
  font-weight: 630;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.037em;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
input,
select {
  color: var(--ink);
}
.shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100dvh;
}
.side {
  background: var(--brand-background);
  color: #eef4e9;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 27px 17px 16px;
}
.brand-row {
  padding: 0 8px;
}
.workspace {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px 5px 21px;
  margin: 15px 4px 18px;
  border-bottom: 1px solid #ffffff21;
  color: #c8d8c8;
  font-size: 12px;
  font-weight: 500;
}
.nav-label,
.dateline,
.section-kicker {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-label {
  padding: 6px 11px 9px;
  color: #a0b5a8;
}
.nav-label.second {
  margin-top: 25px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border-radius: 7px;
  text-align: left;
  color: #d7e4d7;
  font-size: 13px;
  font-weight: 520;
  margin: 2px 0;
}
.nav-item:hover {
  background: #244b3d;
}
.nav-item.selected {
  color: #203f2e;
  background: var(--acid);
  font-weight: 650;
}
.nav-item b {
  margin-left: auto;
  font-size: 10px;
  min-width: 19px;
  line-height: 19px;
  border-radius: 5px;
  background: #ffffff22;
  color: #e8f3dd;
  text-align: center;
}
.nav-item.selected b {
  color: #234429;
  background: #bad684;
}
.side-foot {
  margin-top: auto;
}
.profile-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d9e9c7;
  padding: 11px 8px;
}
.profile {
  border-top: 1px solid #ffffff29;
  padding: 16px 2px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #daebc0;
  border: 1px solid #afc49f;
  display: grid;
  place-items: center;
  color: #284732;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile strong,
.profile small,
.directory-row strong,
.directory-row small,
.trip-cell small,
.date-cell small {
  display: block;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  font-size: 11px;
  color: #b6c8b9;
}
.profile .icon-btn {
  margin-left: auto;
}
.top {
  height: 61px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 48px);
  background: #fafbf6;
  gap: 12px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb i {
  font-style: normal;
  margin: 0 9px;
  color: #a2aba2;
}
.crumb strong {
  color: var(--ink);
  font-weight: 540;
}
.local {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #576b56;
  font-size: 11px;
  font-weight: 550;
}
.local i,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68985e;
}
.content {
  padding: 30px clamp(20px, 3vw, 48px) 42px;
  max-width: 1530px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.dateline {
  color: var(--muted);
  margin-bottom: 6px;
}
.btn,
.light-btn,
.text-btn,
.icon-btn,
.picker,
.search,
.driver,
.focus-head,
.todo-title,
.head-inline,
.form-heading,
.editor-meta > span,
.report-totals span,
.notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 7px;
  justify-content: center;
}
.primary {
  color: #f5faed;
  background: var(--green);
  border: 1px solid #163b30;
  box-shadow: 0 1px 2px #13201810;
}
.primary:hover {
  background: #143b2d;
}
.quiet,
.picker,
.search {
  border: 1px solid #d4dbd1;
  background: var(--card);
  border-radius: 7px;
}
.quiet:hover,
.icon-btn:hover {
  background: #72867516;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.driver,
.subtle {
  color: #536459;
  font-size: 13px;
}
.driver {
  font-weight: 550;
}
.picker,
.search {
  padding: 6px 9px;
  color: #69766b;
  min-height: 34px;
}
.picker select,
.picker input,
.search input {
  background: transparent;
  border: 0;
  font-size: 12px;
  min-width: 0;
  color: var(--ink);
  max-width: 100%;
}
.month input {
  max-width: 158px;
}
.picker select {
  cursor: pointer;
}
.subtle {
  margin-left: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 19px 0;
  margin-bottom: 19px;
}
.metric {
  padding: 0 clamp(13px, 1.8vw, 29px);
  border-left: 1px solid var(--line);
}
.metric:first-child {
  border: 0;
}
.metric > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a685f;
  font-size: 12px;
  font-weight: 550;
}
.metric-icon,
.amber-icon,
.report-icon,
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf2e9;
  color: #49654d;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  flex-shrink: 0;
}
.metric strong,
.todo-number {
  font:
    600 39px/1.1 Barlow,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.025em;
}
.metric strong {
  display: block;
  margin-top: 8px;
}
.metric strong small {
  font:
    500 13px DM,
    sans-serif;
  color: #636f63;
  letter-spacing: 0;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(185px, 1fr);
  gap: 17px;
  margin: 0 0 23px;
}
.focus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f2f7e9;
  background: #264e3d;
  border: 1px solid #244a39;
  border-radius: 12px;
  padding: 18px 22px;
}
.focus:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      128deg,
      transparent 0 48px,
      #b2d7a20c 49px 50px,
      transparent 51px 70px
    ),
    radial-gradient(ellipse at 98% -20%, #477353, transparent 70%);
}
.focus-head {
  color: #d9e8cb;
  font-size: 13px;
  font-weight: 600;
}
.live-dot {
  background: #c6e79c;
  width: 6px;
  height: 6px;
  margin-left: 1px;
}
.itinerary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 0 16px;
}
.itinerary > div {
  min-width: 0;
}
.itinerary small {
  display: block;
  color: #bed0bb;
  font-size: 11px;
}
.itinerary strong {
  display: block;
  font-size: clamp(17px, 1.75vw, 28px);
  font-weight: 580;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.itinerary em {
  vertical-align: middle;
  display: inline-block;
  font:
    600 10px DM,
    sans-serif;
  letter-spacing: 0;
  padding: 2px 5px;
  border: 1px solid #90a88f;
  border-radius: 4px;
  color: #ddeecc;
}
.track {
  display: flex;
  align-items: center;
  flex: 1 1 22px;
  min-width: 18px;
  max-width: 85px;
  color: #b4cd9b;
}
.track i {
  flex: 1;
  border-top: 1px dashed #a4ba98;
}
.track b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.focus-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #ffffff21;
  padding-top: 11px;
}
.focus-foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d0decc;
  font-size: 12px;
}
.light-btn {
  border-radius: 5px;
  padding: 6px 10px;
  color: #24432c;
  font-size: 12px;
  font-weight: 650;
  background: var(--acid);
}
.light-btn:hover {
  background: #e5f7bc;
}
.no-active h2 {
  margin: 20px 0;
}
.todo-card {
  border: 1px solid #e1daca;
  border-radius: 12px;
  background: #faf7ed;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.amber-icon {
  background: #f3e7c7;
  color: var(--amber);
}
.todo-title h2 {
  font-size: 16px;
}
.todo-number {
  font-size: 41px;
  margin: 12px 0 8px;
}
.todo-number span {
  font:
    450 13px DM,
    sans-serif;
  letter-spacing: 0;
  color: #6e6a55;
  margin-left: 9px;
}
.text-btn {
  padding: 3px 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}
.todo-card .text-btn {
  margin-top: auto;
}
.text-btn:hover,
.trip-title:hover,
.link:hover {
  text-decoration: underline;
}
.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
}
.count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  min-width: 24px;
  height: 21px;
  border: 1px solid #d8dfd3;
  border-radius: 6px;
  background: #f0f3eb;
  color: #62705f;
  font:
    620 11px DM,
    sans-serif;
}
.compact {
  min-height: 30px;
  padding: 4px 7px;
}
.journal-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.journal-table th {
  background: #f3f5ed;
  color: #6d776b;
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  font-weight: 650;
  border-block: 1px solid var(--line);
  padding: 8px 9px;
}
.journal-table td {
  border-top: 1px solid #e5e9df;
  padding: 11px 9px;
  font-size: 12px;
}
.journal-table th:first-child,
.journal-table td:first-child {
  padding-left: 20px;
}
.journal-table th:last-child,
.journal-table td:last-child {
  padding-right: 13px;
}
.date-cell,
.num-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.num-cell small {
  font-size: 10px;
  color: #758176;
}
.trip-title {
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 0;
  color: #253e2d;
  line-height: 1.35;
}
.trip-cell small,
.date-cell small {
  font-size: 11px;
  color: #6b776c;
  margin-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.done {
  background: #eaf1e5;
  color: #456349;
}
.badge.active {
  color: #285c73;
  background: #e5eff2;
}
.pending-note {
  display: block;
  color: #946321;
  font-size: 10px;
  margin-top: 3px;
}
.icon-btn {
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 6px;
}
.open-cell {
  text-align: right;
}
.empty {
  padding: 31px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: flex;
  margin: 0 auto 12px;
  width: 42px;
  height: 42px;
}
.empty strong {
  display: block;
  color: var(--ink);
}
.empty p {
  font-size: 13px;
  margin: 5px 0 12px;
}
.report-card {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 23px;
}
.report-icon {
  width: 54px;
  height: 64px;
}
.report-card p {
  color: var(--muted);
  font-size: 13px;
}
.report-card a {
  margin-left: auto;
}
.notice {
  color: #84591b;
  background: #faf1dd;
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 12px;
  margin-top: 12px;
}
.report-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 3px;
  color: var(--muted);
  font-size: 13px;
}
.report-totals b {
  color: var(--ink);
}
.directory-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}
.directory-row small {
  color: var(--muted);
  margin-top: 3px;
}
.mobile-menu,
.mobile-close,
.scrim {
  display: none;
}
.boot {
  padding: 15vh 10vw;
}
dialog {
  padding: 0;
  border: 1px solid #bfcbbd;
  border-radius: 16px;
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 90px #12281a40;
}
dialog::backdrop {
  background: #162b2394;
}
dialog.wide {
  width: min(680px, calc(100% - 24px));
}
.dialog-head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.dialog-head h2 {
  font-size: 23px;
}
.simple-form,
.editor-body {
  margin: 0;
  border: 0;
  min-inline-size: 0;
  padding: 20px 22px;
}
.simple-form {
  display: grid;
  gap: 15px;
}
.simple-form label,
.editor-body label:not(.end-check),
.calculated small {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #536254;
}
.simple-form input,
.simple-form select,
.editor-body input:not([type="checkbox"], [type="radio"]),
.editor-body select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #c9d2c6;
  border-radius: 6px;
  min-height: 40px;
  background: white;
  font-size: 14px;
  font-weight: 450;
}
.editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.editor-meta label {
  flex-direction: row !important;
  align-items: center;
}
.section-kicker {
  color: var(--muted);
  margin: 8px 0;
}
.segmented {
  display: flex;
  gap: 6px;
}
.segmented label {
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 6px;
}
.segmented label:has(input:checked) {
  border-color: #95ad90;
  background: #eaf2e3;
  color: #355c3c;
}
.segmented input {
  accent-color: var(--green);
  margin: 0;
}
.form-heading {
  margin: 19px 0 10px;
  gap: 9px;
}
.form-heading .metric-icon {
  width: 28px;
  height: 28px;
}
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 12px;
}
.unit-input {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #c9d2c6;
  border-radius: 6px;
  background: white;
}
.unit-input:focus-within {
  outline: 2px solid #639a6d;
  outline-offset: 1px;
}
.unit-input input {
  border: 0 !important;
  outline: 0 !important;
  background: none !important;
  min-height: 38px !important;
}
.unit-input span {
  font-size: 11px;
  white-space: nowrap;
  padding-right: 9px;
  color: #72816d;
}
.calculated {
  background: #eaf2e4;
  border: 1px solid #d3dfc9;
  border-radius: 7px;
  padding: 6px 10px;
}
.calculated strong {
  font:
    600 24px/1.1 Barlow,
    sans-serif;
  display: block;
  color: #2f5134;
  margin-top: 3px;
}
.end-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
  cursor: pointer;
}
.end-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.end-check small,
.end-check strong {
  display: block;
}
.end-check strong {
  font-size: 13px;
}
.end-check small {
  font-size: 11px;
  color: var(--muted);
}
.lot {
  margin: 10px 0 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f3;
}
.lot legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 650;
}
.lot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.site-fields {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.remove {
  color: #875b45;
  align-self: end;
  justify-self: end;
  padding: 9px 2px;
}
.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: #fffefa;
}
.save-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.error {
  color: #973b31;
  font-size: 13px;
}
.error:empty {
  display: none;
}
.save-bar .error {
  width: 100%;
}
#toast {
  position: fixed;
  z-index: 4;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #173b2f;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px #1b362528;
  padding: 10px 17px;
  opacity: 0;
  pointer-events: none;
  transition: 0.16s;
  max-width: 90vw;
}
#toast.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 198px minmax(0, 1fr);
  }
  .side {
    padding-inline: 12px;
  }
  .content {
    padding-inline: 22px;
  }
  .metric {
    padding-inline: 14px;
  }
  .feature-row {
    grid-template-columns: minmax(0, 1.65fr) minmax(175px, 1fr);
  }
  .itinerary {
    gap: 8px;
  }
  .journal-table th,
  .journal-table td {
    padding-inline: 6px;
  }
  .metric > div {
    gap: 5px;
    font-size: 11px;
  }
  .month input {
    max-width: 145px;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .side {
    position: fixed;
    z-index: 6;
    left: 0;
    top: 0;
    width: 235px;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .menu-open .side {
    visibility: visible;
    transform: translateX(0);
  }
  .menu-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
    background: #18342070;
  }
  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu,
  .mobile-close {
    display: inline-flex;
  }
  .top {
    justify-content: start;
    height: 50px;
    padding: 0 17px;
    gap: 8px;
  }
  .top .local {
    margin-left: auto;
  }
  .content {
    padding: 20px;
  }
  .metric strong {
    font-size: 32px;
  }
  .metrics {
    padding-block: 14px;
  }
}
@media (max-width: 620px) {
  .content {
    padding: 19px 13px 28px;
  }
  .page-head {
    align-items: end;
    margin-bottom: 15px;
    gap: 6px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .page-head > .btn {
    font-size: 12px;
    padding: 9px 10px;
    gap: 4px;
  }
  .dateline {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    margin-bottom: 12px;
  }
  .metric {
    padding: 12px 14px;
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .metric strong {
    margin: 3px 0 0;
    font-size: 30px;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
  }
  .metric > div {
    font-size: 11px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 13px;
  }
  .focus {
    padding: 14px 15px;
  }
  .itinerary {
    margin: 10px 0 12px;
    gap: 12px;
  }
  .itinerary strong {
    font-size: 22px;
  }
  .focus-foot {
    padding-top: 8px;
  }
  .todo-card {
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .todo-title h2 {
    font-size: 14px;
  }
  .todo-title {
    gap: 6px;
  }
  .amber-icon {
    width: 24px;
    height: 24px;
  }
  .todo-number {
    margin: 0;
    font:
      600 13px DM,
      sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eee1bc;
  }
  .todo-number span {
    display: none;
  }
  .todo-card .text-btn {
    margin: 0 0 0 auto;
  }
  .toolbar {
    margin-bottom: 11px;
    gap: 8px;
  }
  .picker.month {
    margin-left: auto;
  }
  .section-head {
    padding: 12px;
    gap: 6px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .section-head .picker {
    padding: 4px;
  }
  .compact select {
    font-size: 11px;
  }
  .journal-table,
  .journal-table tbody,
  .journal-table tr,
  .journal-table td {
    display: block;
  }
  .journal-table thead {
    display: none;
  }
  .journal-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 6px;
    padding: 11px 13px;
    border-top: 1px solid var(--line);
  }
  .journal-table td {
    border: 0;
    padding: 0 !important;
  }
  .date-cell {
    font-size: 11px !important;
    color: var(--muted);
    grid-area: 1/1;
  }
  .trip-cell {
    grid-area: 2/1;
    margin-top: 1px;
  }
  .trip-title {
    font-size: 14px;
  }
  .num-cell {
    grid-area: 3/1;
  }
  .num-cell:nth-child(4) {
    display: none;
  }
  .state-cell {
    grid-area: 1/2/3/3;
    text-align: right;
  }
  .open-cell {
    grid-area: 3/2;
  }
  .report-card {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
  }
  .report-card a {
    width: 100%;
    margin-top: 8px;
  }
  .report-totals {
    gap: 8px 16px;
    padding: 12px;
  }
  .search {
    max-width: 47%;
  }
  .editor-body,
  .simple-form {
    padding: 14px;
  }
  .dialog-head {
    padding: 12px 14px;
  }
  .editor-meta {
    align-items: end;
  }
  .editor-meta label {
    display: block !important;
  }
  .editor-meta input {
    max-width: 154px;
    display: block;
  }
  .measure-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .calculated {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
  }
  .calculated strong {
    margin: 0;
    font-size: 22px;
  }
  .lot {
    padding: 10px;
  }
  .lot-fields {
    gap: 8px;
  }
  .lot-fields > .site-fields {
    grid-column: 1/-1;
  }
  .save-bar {
    padding: 10px 14px;
  }
  .save-bar > span {
    font-size: 10px;
  }
  .editor-body input,
  .simple-form input {
    font-size: 16px !important;
  }
  .notice {
    font-size: 11px;
  }
  .directory-row {
    padding: 12px;
  }
}
@media (max-width: 360px) {
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .itinerary strong {
    font-size: 18px;
  }
  .lot-fields {
    grid-template-columns: 1fr;
  }
  .itinerary {
    gap: 6px;
  }
  .todo-card .text-btn {
    font-size: 11px;
  }
}
.top-actions,
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-actions {
  margin-left: auto;
  gap: 16px;
}
.theme-switch {
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.editor-body .lot-fields .adr-check {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
}
.adr-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.backup-info {
  margin-top: 16px;
  padding: 18px 20px;
}
.backup-info p {
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.backup-info small {
  color: var(--muted);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111a17;
  --card: #1b2722;
  --ink: #eaf0e7;
  --muted: #b6c5b9;
  --line: #384b40;
  --forest: #112c24;
  --green: #c5df9d;
  --amber: #f8ce83;
  --raised: #25342c;
  --control: #14201a;
}
[data-theme="dark"] .top,
[data-theme="dark"] .save-bar {
  background: var(--card);
}
[data-theme="dark"] .theme-switch[aria-pressed="true"] {
  background: #324635;
  color: var(--acid);
  border-color: #668061;
}
[data-theme="dark"] .primary {
  background: var(--acid);
  color: #193124;
  border-color: #a8c781;
}
[data-theme="dark"] .primary:hover {
  background: #e6f5c6;
}
[data-theme="dark"]
  :is(
    .local,
    .driver,
    .subtle,
    .metric > div,
    .metric strong small,
    .num-cell small,
    .trip-cell small,
    .date-cell small,
    .unit-input span,
    .calculated small,
    .simple-form label,
    .editor-body label:not(.end-check)
  ) {
  color: var(--muted);
}
[data-theme="dark"] :is(.picker, .search, .quiet, dialog, .journal-table td) {
  border-color: var(--line);
}
[data-theme="dark"]
  :is(.metric-icon, .report-icon, .empty-icon, .count, .journal-table th) {
  background: var(--raised);
  color: #cedec9;
  border-color: var(--line);
}
[data-theme="dark"] .trip-title {
  color: var(--ink);
}
[data-theme="dark"] .focus {
  background: #203d30;
}
[data-theme="dark"] .todo-card {
  background: #302c20;
  border-color: #544b34;
}
[data-theme="dark"] :is(.amber-icon, .notice) {
  background: #463b24;
  color: var(--amber);
}
[data-theme="dark"] .todo-number span {
  color: #d4c9af;
}
[data-theme="dark"] .badge.done {
  background: #304633;
  color: #d3e7ba;
}
[data-theme="dark"] .badge.active {
  background: #263d49;
  color: #bce2f1;
}
[data-theme="dark"] .pending-note {
  color: var(--amber);
}
[data-theme="dark"]
  :is(
    .simple-form input,
    .simple-form select,
    .editor-body input:not([type="checkbox"], [type="radio"]),
    .editor-body select,
    .unit-input,
    option
  ) {
  background: var(--control);
  color: var(--ink);
  border-color: #516356;
}
[data-theme="dark"] .lot {
  background: #202e26;
}
[data-theme="dark"] :is(.segmented label:has(input:checked), .calculated) {
  background: #2a422e;
  border-color: #56704e;
  color: var(--acid);
}
[data-theme="dark"] .calculated strong {
  color: var(--acid);
}
[data-theme="dark"] :is(.error, .remove) {
  color: #ffb2a4;
}
@media (max-width: 620px) {
  .top-actions .local {
    display: none;
  }
  .top .crumb {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  [data-theme="dark"] .todo-number {
    background: #59482c;
  }
}
.journal-table tr.unfinished {
  background-image: repeating-linear-gradient(
    128deg,
    transparent 0 8px,
    rgb(50 120 77 / 10%) 8px 10px
  );
}
[data-theme="dark"] .journal-table tr.unfinished {
  background-image: repeating-linear-gradient(
    128deg,
    transparent 0 8px,
    rgb(154 220 160 / 11%) 8px 10px
  );
}
.month-nav,
.report-actions,
.pdf-preview header,
.request-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.month-nav .icon-btn,
.pdf-preview .icon-btn {
  font-size: 23px;
  min-width: 36px;
  min-height: 36px;
  line-height: 1;
  border: 1px solid var(--line);
}
.report-actions {
  margin-left: auto;
  flex-wrap: wrap;
}
.pdf-preview {
  margin-top: 12px;
  background: var(--canvas);
  padding: 12px;
}
.pdf-preview header {
  justify-content: center;
  padding-bottom: 10px;
}
.pdf-preview canvas {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  margin: auto;
  background: white;
  box-shadow: 0 2px 10px #10251c22;
}
.pdf-preview button:disabled {
  cursor: default;
}
.requests {
  margin-bottom: 16px;
}
.request-row,
.no-requests {
  padding: 12px 18px;
}
.request-row {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.request-row div {
  flex: 1;
  min-width: 130px;
}
.request-row small,
.request-row strong,
.request-row select {
  display: block;
}
.request-row small,
.no-requests,
.request-row label {
  color: var(--muted);
  font-size: 12px;
}
.request-row select {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}
.otp-qr {
  width: 192px;
  max-width: 100%;
  height: auto;
  justify-self: center;
}
.otp-key {
  display: block;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.recovery-codes {
  display: grid;
  gap: 5px;
  text-align: center;
}
@media (min-width: 1051px) {
  .metrics.five-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 621px) and (max-width: 1050px) {
  .metrics.five-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .five-metrics .metric {
    padding-inline: 10px;
  }
  .five-metrics .metric > div {
    flex-wrap: wrap;
  }
  .five-metrics .metric strong {
    font-size: 30px;
  }
}
@media (max-width: 620px) {
  .five-metrics .metric:last-child {
    grid-column: 1/-1;
    border-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .month-nav {
    margin-left: auto;
  }
  .month-nav .picker.month {
    margin-left: 0;
  }
  .report-actions {
    width: 100%;
  }
  .report-actions .btn {
    flex: 1;
    min-width: 125px;
    width: auto;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
