:root {
  --bg: #f3f5f2;
  --surface: #fff;
  --ink: #111816;
  --muted: #718078;
  --line: #dfe5e0;
  --dark: #0c1311;
  --green: #61df9a;
  --green-dark: #173f2b;
  --red: #c44f4f;
  --shadow: 0 18px 50px rgba(13, 25, 20, 0.12);
}
html {
  scroll-behavior: auto !important;
  overscroll-behavior: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.boot b {
  color: var(--ink);
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 235px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--dark);
  color: #fff;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.brand i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--green);
  color: #092117;
  border-radius: 9px;
  font: 800 22px Manrope;
}
.brand b {
  font: 800 22px Manrope;
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.15em;
  background: #26322e;
  color: #aebbb5;
  padding: 4px 6px;
  border-radius: 4px;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px -3px 26px;
  padding: 13px;
  background: #151e1b;
  border: 1px solid #26312d;
  border-radius: 10px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #d9f9e6;
  color: #163927;
  font-weight: 700;
}
.account-card div {
  min-width: 0;
}
.account-card b,
.account-card small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-card b {
  font-size: 12px;
}
.account-card small {
  color: #84918b;
  font-size: 10px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  color: #9ca9a3;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
  font-weight: 600;
}
.sidebar nav button i {
  font-style: normal;
  display: inline-grid;
  width: 24px;
}
.sidebar nav button.active,
.sidebar nav button:hover {
  background: #1b2723;
  color: #fff;
}
.sidebar nav button.active {
  box-shadow: inset 3px 0 var(--green);
}
.aside-foot {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid #23302b;
  padding: 18px 4px 0;
}
.online {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #173326;
}
.aside-foot b,
.aside-foot small {
  display: block;
  font-size: 10px;
}
.aside-foot small {
  color: #728079;
  margin-top: 2px;
}
main {
  min-width: 0;
}
header {
  height: 68px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 4;
}
header > span {
  font-weight: 600;
}
header > span i {
  font-style: normal;
  color: #a2ada7;
  margin: 0 7px;
}
header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.access {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 20px;
}
.access.paid {
  background: #dbf6e7;
  color: #1b613b;
}
.access.free {
  background: #f1ead9;
  color: #725a1d;
}
.user,
.mobile-menu {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.readonly-banner {
  margin: 22px 34px 0;
  padding: 12px 15px;
  border: 1px solid #ded5b8;
  background: #fffaf0;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.readonly-banner > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.readonly-banner b {
  font-size: 12px;
  color: #705b22;
}
.readonly-banner span {
  font-size: 12px;
  color: #84775a;
}
.content {
  padding: 31px 34px 50px;
  max-width: 1500px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.17em;
  font-weight: 800;
  color: #829087;
  margin-bottom: 8px;
}
.page-head h1 {
  font: 800 32px Manrope;
  margin: 0;
}
.page-head h1 span,
.login h2 span {
  color: #38bb75;
}
.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
}
.primary {
  border: 0;
  background: var(--green-dark);
  color: #fff;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(23, 63, 43, 0.14);
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metrics article,
.detail-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.metrics span,
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metrics b {
  display: block;
  font: 700 26px Manrope;
  margin: 10px 0 3px;
}
.metrics small {
  color: #94a098;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
}
.panel-head {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font: 700 17px Manrope;
  margin: 0;
}
.panel-head .kicker {
  margin-bottom: 3px;
}
.link,
.actions button,
.detail-actions button,
.detail-section > div button {
  border: 0;
  background: transparent;
  color: #3d6852;
  font-size: 12px;
  font-weight: 700;
}
.table .tr {
  display: grid;
  align-items: center;
  border-bottom: 1px solid #edf0ed;
  min-height: 65px;
  padding: 0 18px;
  gap: 12px;
}
.table button.tr {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  color: inherit;
}
.table button.tr:hover {
  background: #f7faf7;
}
.table .tr:last-child {
  border-bottom: 0;
}
.trip-table .tr {
  grid-template-columns: 1.25fr 1fr 1fr 0.8fr 0.75fr 0.65fr;
}
.vehicle-table .tr {
  grid-template-columns: 1.5fr 0.7fr 0.8fr 0.7fr 1fr;
}
.th {
  min-height: 37px !important;
  background: #f8faf8;
  color: #8a968f;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.tr b,
.tr small {
  display: block;
}
.tr small {
  color: #8a968f;
  margin-top: 3px;
  font-weight: 400;
}
.pill {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #256542;
  background: #dff6e8;
  padding: 5px 8px;
  border-radius: 20px;
  text-transform: capitalize;
}
.pill.muted {
  color: #6d7772;
  background: #edf0ee;
}
.pill.shared {
  color: #405f70;
  background: #e7f0f4;
}
.vehicle-section {
  margin-top: 24px;
}
.vehicle-section + .vehicle-section {
  margin-top: 34px;
}
.vehicle-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3px 11px;
}
.vehicle-section-head h2 {
  margin: 0;
  font: 700 18px Manrope;
}
.vehicle-section-head .kicker {
  margin-bottom: 4px;
}
.vehicle-section-head > span {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 25px;
  padding: 0 8px;
  border-radius: 13px;
  background: #e5ebe7;
  color: #52625a;
  font-size: 11px;
  font-weight: 700;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.identity > i {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: #e6f7ed;
  color: #23603f;
  font-style: normal;
}
.actions {
  text-align: right;
  white-space: nowrap;
}
.actions button {
  padding: 5px;
}
.danger-link {
  color: var(--red) !important;
}
.vehicle-list {
  padding: 7px 15px;
}
.vehicle-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  background: #fff;
  border-bottom: 1px solid #edf0ed;
  padding: 14px 2px;
}
.vehicle-list > button:last-child {
  border: 0;
}
.vehicle-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e7f8ed;
  font-style: normal;
}
.vehicle-list b,
.vehicle-list small {
  display: block;
}
.vehicle-list small {
  color: var(--muted);
  margin-top: 3px;
}
.vehicle-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.filters select,
.filters input {
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
}
.filters input {
  min-width: 280px;
}
.empty {
  grid-column: 1/-1;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #95a099;
  gap: 7px;
}
.empty i {
  font-style: normal;
  font-size: 25px;
}
.error {
  background: #fff0f0;
  color: #8c3030;
  border: 1px solid #f0caca;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}
.error button {
  float: right;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(680px, 95vw);
  z-index: 10;
  background: #f7f9f6;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(10, 20, 15, 0.18);
  overflow: auto;
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
  animation: slide 0.2s ease;
}
@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}
.drawer-head {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 22px 25px;
  z-index: 2;
}
.drawer-head h2 {
  font: 700 23px Manrope;
  margin: 0;
}
.drawer-head p {
  margin: 5px 0 0;
  color: var(--muted);
}
.drawer-close {
  border: 0;
  background: #eef1ee;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-size: 22px;
}
.drawer-body {
  padding: 20px 25px 45px;
}
.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 13px;
}
.detail-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 8px 11px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.detail-grid article {
  padding: 14px;
}
.detail-grid b {
  display: block;
  font: 700 17px Manrope;
  margin-top: 7px;
}
.detail-grid small {
  display: block;
  color: #5d8d70;
  margin-top: 3px;
}
.warn {
  color: #b87532 !important;
}
.detail-section {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.detail-section > div:first-child {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.detail-section h3 {
  margin: 0;
  font: 700 15px Manrope;
}
.detail-section > div > span {
  color: var(--muted);
  font-size: 11px;
  margin-left: 8px;
}
.detail-section > div > button {
  margin-left: auto;
}
.compact-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid #edf0ed;
}
.compact-list > div:last-child {
  border: 0;
}
.compact-list b,
.compact-list small {
  display: block;
}
.compact-list small {
  color: var(--muted);
  margin-top: 2px;
}
.compact-list code {
  font-size: 11px;
  color: #647169;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.login > section {
  padding: 45px 8vw;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login > section:after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid #2e5141;
  border-radius: 50%;
  right: -220px;
  top: 15%;
  box-shadow:
    0 0 0 70px rgba(53, 117, 82, 0.07),
    0 0 0 140px rgba(53, 117, 82, 0.04);
}
.login h1 {
  font: 800 clamp(42px, 6vw, 77px) / 1.03 Manrope;
  margin: 15px 0;
  position: relative;
  z-index: 1;
}
.login h1 em {
  color: var(--green);
  font-style: normal;
}
.login > section p {
  max-width: 480px;
  color: #aab7b1;
  font-size: 16px;
  line-height: 1.6;
}
.login > section > small {
  color: #63726b;
}
.login form {
  width: min(400px, 80%);
  margin: auto;
}
.login form h2 {
  font: 800 34px Manrope;
  margin: 7px 0;
}
.login form > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.login label,
#editor label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-size: 12px;
  font-weight: 700;
}
.login input,
#editor input,
#editor select {
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
}
.login .primary {
  width: 100%;
  margin-top: 7px;
}
.google {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  font-weight: 700;
}
.divider {
  text-align: center;
  color: #9aa49f;
  font-size: 11px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(560px, calc(100vw - 30px));
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(6, 13, 10, 0.6);
  backdrop-filter: blur(2px);
}
#editor-form {
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 15px;
}
.modal-head h2 {
  margin: 0;
  font: 700 21px Manrope;
}
.modal-head button {
  border: 0;
  background: transparent;
  font-size: 23px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}
.check input {
  height: auto !important;
}
.form-note {
  padding: 12px;
  background: #f2f6f3;
  color: var(--muted);
  border-radius: 7px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.modal-actions > button:first-child {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.sharing-loading {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.sharing-intro {
  position: relative;
  padding: 0 150px 21px 0;
  border-bottom: 1px solid var(--line);
}
.sharing-intro > b {
  font: 700 15px Manrope;
}
.sharing-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.sharing-intro .primary {
  position: absolute;
  right: 0;
  top: 0;
}
.invitation-result {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #bcd8c7;
  border-radius: 9px;
  background: #f4faf6;
}
.invitation-result label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 11px;
}
.invitation-result label > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}
.invitation-result input {
  min-width: 0;
  height: 39px;
  border: 1px solid #cfdcd3;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #415048;
}
.invitation-result button {
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
}
.invitation-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 8px;
}
.invitation-code span,
.invitation-result > small {
  color: var(--muted);
  font-size: 10px;
}
.invitation-code strong {
  font: 700 15px Manrope;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.share-list {
  margin-top: 20px;
}
.share-list > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 10px;
}
.share-list > div:first-child .kicker {
  margin: 0;
}
.share-list > div:first-child > b {
  font-size: 11px;
  color: var(--muted);
}
.share-person {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-top: 1px solid #edf0ed;
}
.share-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e2f4e8;
  color: #24583b;
  font-size: 10px;
  font-weight: 700;
}
.share-person b,
.share-person small {
  display: block;
}
.share-person small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.share-person button {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.share-empty {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid #edf0ed;
  color: var(--muted);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #14201b;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
#toast.danger {
  background: #842f2f;
}
.trip-map-shell {
  position: relative;
  height: 310px;
  margin-bottom: 12px;
  border-radius: 11px;
  overflow: hidden;
  background: #101815;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
#trip-map {
  height: 100%;
  width: 100%;
  background: #101815;
}
.dark-road-tiles {
  filter: grayscale(1) invert(0.92) brightness(0.52) contrast(0.9);
}
.map-caption {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 19, 17, 0.9);
  color: #e8f0eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 7px 9px;
  pointer-events: none;
}
.map-caption span,
.map-caption small {
  font-size: 10px;
}
.map-caption span {
  font-weight: 700;
}
.map-caption span i {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: #65dfa0;
  vertical-align: middle;
  margin-right: 5px;
}
.map-caption small {
  color: #98aaa0;
}
.route-marker {
  background: transparent;
  border: 0;
}
.route-marker i {
  display: block;
  width: 18px;
  height: 18px;
  border: 4px solid #101815;
  border-radius: 50%;
  background: #65dfa0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.route-marker.finish i {
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: #e8f0eb;
}
.route-marker.stop i {
  width: 15px;
  height: 15px;
  background: #101815;
  border-color: #65dfa0;
}
.map-empty {
  height: 150px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #101815;
  color: #829087;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.map-empty i {
  font-style: normal;
  font-size: 22px;
}
.leaflet-control-attribution {
  background: rgba(12, 19, 17, 0.82) !important;
  color: #87968e !important;
}
.leaflet-control-attribution a {
  color: #c3d1c9 !important;
}
.leaflet-control-zoom a {
  background: #111a17 !important;
  color: #e7f0eb !important;
  border-color: #293630 !important;
}
.leaflet-control-scale-line {
  background: rgba(12, 19, 17, 0.75) !important;
  color: #d8e3dd !important;
  border-color: #d8e3dd !important;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}
.profile-section,
.plan-section,
.billing-history {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.profile-section {
  padding: 25px;
}
.section-title h2,
.plan-top h2 {
  margin: 0;
  font: 700 20px Manrope;
}
.section-title p {
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0 22px;
}
.profile-form label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  font-size: 12px;
  font-weight: 700;
}
.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  font: inherit;
  resize: vertical;
}
.profile-form input {
  height: 43px;
}
.profile-form input:disabled {
  color: #7d8882;
  background: #f4f6f4;
}
.profile-form label small,
.plan-note {
  color: var(--muted);
  font-weight: 400;
}
.profile-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.plan-section {
  padding: 25px;
  border-color: #bcd8c7;
  box-shadow: 0 15px 35px rgba(25, 65, 44, 0.08);
}
.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.plan-state,
.order-status {
  flex: none;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}
.plan-state.active,
.order-status.paid {
  color: #1d6840;
  background: #ddf6e7;
}
.plan-state.pending,
.order-status.requested,
.order-status.invoiced {
  color: #755b15;
  background: #f8edce;
}
.plan-state.free,
.plan-state.expired,
.order-status.cancelled {
  color: #66716b;
  background: #edf0ee;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 26px 0 12px;
}
.plan-price b {
  font: 800 38px Manrope;
  letter-spacing: -0.04em;
}
.plan-price span,
.plan-lead {
  color: var(--muted);
}
.plan-lead {
  line-height: 1.55;
}
.plan-features {
  list-style: none;
  padding: 4px 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.plan-features i {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 7px;
  border-radius: 50%;
  background: #e2f6e9;
  color: #266744;
  font-style: normal;
  font-size: 10px;
}
.invoice-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.invoice-flow span {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.invoice-flow span b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: var(--green-dark);
  background: #e5f6ec;
  border-radius: 50%;
}
.invoice-flow > i {
  height: 1px;
  background: #ced8d2;
}
.plan-message {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 12px 13px;
  border-radius: 7px;
  background: #f4f7f4;
}
.plan-message b {
  font-size: 12px;
}
.plan-message span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.plan-cta {
  width: 100%;
  margin-top: 2px;
}
.plan-note {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
  font-size: 10px;
}
.billing-history {
  margin-top: 18px;
  overflow: hidden;
}
.billing-history > .section-title {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.billing-table > div {
  display: grid;
  grid-template-columns: 1fr 120px 190px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px 24px;
  border-bottom: 1px solid #edf0ed;
}
.billing-table > div:last-child {
  border-bottom: 0;
}
.billing-table b,
.billing-table small {
  display: block;
}
.billing-table small {
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -245px;
    width: 235px;
    transition: 0.2s;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .content {
    padding: 24px 18px;
  }
  .readonly-banner {
    margin: 16px 18px 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login > section {
    display: none;
  }
  header {
    padding: 0 18px;
  }
  .trip-table .tr {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  }
  .trip-table .tr span:nth-child(4),
  .trip-table .tr span:nth-child(6) {
    display: none;
  }
  .vehicle-table .tr {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }
  .vehicle-table .tr span:nth-child(2),
  .vehicle-table .tr span:nth-child(4) {
    display: none;
  }
}
@media (max-width: 600px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head p {
    max-width: 240px;
  }
  .access {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .filters {
    display: grid;
  }
  .filters input {
    min-width: 0;
  }
  .drawer-body {
    padding: 16px;
  }
  .compact-list > div {
    grid-template-columns: 1fr auto;
  }
  .compact-list code {
    display: none;
  }
  .readonly-banner,
  .readonly-banner > div {
    align-items: flex-start;
  }
  .readonly-banner > div {
    display: grid;
  }
  .billing-table > div {
    grid-template-columns: 1fr auto;
  }
  .billing-table > div > span:last-child {
    grid-column: 1 / -1;
  }
  .sharing-intro {
    padding-right: 0;
  }
  .sharing-intro .primary {
    position: static;
    margin-top: 14px;
  }
  .vehicle-table .actions {
    white-space: normal;
  }
}

.distance-audit {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line, #26372f);
}
.distance-audit summary {
  cursor: pointer;
  color: var(--muted, #9caea4);
  font-size: 13px;
}
.distance-audit[open] summary { margin-bottom: 14px; }
.distance-audit > button { margin-top: 12px; }

.sidebar .privacy-link { margin: 24px 20px; color: #a6b8aa; font-size: 13px; text-decoration: none; display: block; }
.login section small a { color: inherit; text-underline-offset: 3px; }

/* Keep native select behavior with a consistently inset chevron. */
select:not([multiple]):not([size]) {
 appearance:none;-webkit-appearance:none;padding-right:38px!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23577460' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:12px 8px!important;
}

/* Clear vehicle actions, with destructive actions kept in a secondary menu. */
.table-panel:has(.vehicle-table){overflow:visible}
.vehicle-actions-menu{position:relative;flex:none;text-align:left}
.vehicle-actions-menu summary{list-style:none;cursor:pointer;border:1px solid #d8e3dc;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;font-size:21px;line-height:1;background:#fff;color:#335d48}
.vehicle-actions-menu summary::-webkit-details-marker{display:none}
.vehicle-actions-menu summary:focus-visible{outline:2px solid #39865e;outline-offset:2px}
.vehicle-actions-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:175px;background:#fff;border:1px solid #d8e3dc;border-radius:10px;padding:5px;box-shadow:0 10px 28px #15342320}
.vehicle-actions-menu>div button{display:block;width:100%;text-align:left;padding:10px;border-radius:6px;white-space:nowrap}
.vehicle-actions-menu>div button:hover{background:#f1f5f2}
.logbook-coming{max-width:620px;margin:54px auto;padding:28px 0;border-top:1px solid #d7e2da}
.logbook-coming h2{font-size:25px;line-height:1.25;margin:12px 0}
.logbook-coming p{color:#62776a;line-height:1.6;margin:0 0 24px;max-width:48ch}
.logbook-coming .primary{display:inline-flex;align-items:center;gap:10px}
.logbook-coming .primary svg{transform:rotate(180deg)}
.trip-row-driver{overflow-wrap:anywhere}
@media(max-width:700px){
 .trip-table{padding:0 14px}
 .trip-table .tr.th{display:none}
 .trip-table .tr:not(.th){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'date distance' 'vehicle distance' 'driver duration';gap:4px 12px;align-items:center;padding:16px 0;border-bottom:1px solid #e1e9e3;text-align:left}
 .trip-table .tr:not(.th):last-child{border-bottom:0}
 .trip-table .trip-row-date{grid-area:date;display:block;font-size:12px;color:#64786a}
 .trip-table .trip-row-date b{font-weight:500}
 .trip-table .trip-row-date small{display:inline;margin-left:7px;font-size:10px;color:#819086}
 .trip-table .trip-row-vehicle{grid-area:vehicle;display:block;font-weight:700;font-size:14px;line-height:1.4}
 .trip-table .trip-row-driver{grid-area:driver;display:block;font-size:11px;color:#718176;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 .trip-table .trip-row-distance{grid-area:distance;display:block;white-space:nowrap;align-self:center;font-size:16px;color:#194b33}
 .trip-table .tr .trip-row-duration{grid-area:duration;display:block;font-size:11px;color:#718176;text-align:right}
 .trip-table .trip-row-state{display:none!important}
 .trip-page-information .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding:0 14px;border-radius:10px;background:#f6f9f6}
 .trip-page-information .detail-grid article{background:none;border:0;border-bottom:1px solid #e0e8e2;border-radius:0;padding:13px 0;min-width:0}
 .trip-page-information .detail-grid article:first-child,.trip-page-information .detail-grid article:last-child{grid-column:1/-1}
 .trip-page-information .detail-grid article:last-child{border-bottom:0}
 .trip-page-information .detail-grid b{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
 .trip-page-information .trip-section-heading{align-items:center;gap:12px}
 .trip-page-information .trip-section-heading h2{font-size:20px}
 .vehicle-table .actions{gap:12px}
 .logbook-coming{margin-top:32px}
}
.vehicle-table .actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
@media(max-width:700px){
 .vehicle-table .tr{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .vehicle-table .tr .actions{grid-column:1/-1;justify-content:flex-end;padding-top:2px}
 .vehicle-table .th span:last-child{display:none}
 .trip-table .tr span.trip-row-duration{display:block}
}

.trip-header-tools[hidden]{display:none!important}
@media(max-width:700px){
 .trip-info-section>.detail-grid article:nth-child(2){grid-column:1;grid-row:2}
 .trip-info-section>.detail-grid article:nth-child(5){grid-column:2;grid-row:2}
 .trip-info-section>.detail-grid article:nth-child(3){grid-column:1;grid-row:3}
 .trip-info-section>.detail-grid article:nth-child(4){grid-column:2;grid-row:3}
}

/* Dense monthly ledger. Only the bounded page is mounted. */
#logbook-host{--book-border:#dce5df;--book-muted:#65776d;font-variant-numeric:tabular-nums}
.logbook-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.logbook-top h1{margin:0;font-size:24px;letter-spacing:-.6px}.logbook-exports{display:flex;gap:5px}
#logbook-host button,#logbook-host select,#logbook-host input,#logbook-host textarea{font:inherit;font-size:12px;color:#244b37;box-sizing:border-box}
#logbook-host button{cursor:pointer;background:#fff;border:1px solid var(--book-border);border-radius:7px;padding:7px 10px}#logbook-host button:disabled{opacity:.4;cursor:default}#logbook-host button:hover:not(:disabled){background:#eaf2ed}#logbook-host button:focus-visible,#logbook-host input:focus-visible,#logbook-host select:focus-visible,#logbook-host textarea:focus-visible,.logbook-table-wrap:focus-visible{outline:2px solid #4b916b;outline-offset:2px}
#logbook-host svg{width:15px;height:15px;flex-shrink:0}.logbook-exports button{display:flex;align-items:center;gap:5px;height:32px;min-width:32px;justify-content:center}
.logbook-toolbar{display:flex;gap:8px;align-items:center}.logbook-toolbar select{width:260px;max-width:60%;min-width:0}.logbook-toolbar input{width:160px;min-width:0}
#logbook-host select,#logbook-host input:not([type=checkbox]),#logbook-host textarea{background-color:#fff;border:1px solid var(--book-border);border-radius:7px;min-height:34px;padding:7px 30px 7px 10px}#logbook-host input[type=month]{padding-right:8px}
.logbook-summary{display:flex;align-items:center;gap:18px;min-height:48px;font-size:12px;border-bottom:1px solid var(--book-border);margin-top:8px}.logbook-summary>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--book-muted)}.logbook-summary .book-total{font-size:15px;color:#244b37}.logbook-summary b{font-weight:650}.logbook-summary>span+span{padding-left:14px;border-left:1px solid var(--book-border)}.logbook-check{display:flex;align-items:center;gap:5px;margin-left:auto;cursor:pointer;white-space:nowrap;color:#876021}.logbook-check input{width:14px;height:14px;margin:0 3px 0 0;accent-color:#244b37}.logbook-notice{font-size:11px;color:#795c22;margin:8px 0}
.logbook-table-wrap{max-height:calc(100dvh - 300px);min-height:150px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.logbook-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:left;font-size:12px}.logbook-table th{position:sticky;top:0;z-index:1;background:#f2f5f1;color:var(--book-muted);height:30px;font-size:10px;font-weight:500;border-bottom:1px solid var(--book-border)}.logbook-table th,.logbook-table td{padding:0 7px;white-space:nowrap}.logbook-table td{height:35px;border-bottom:1px solid #e5ebe6}.logbook-table tr:hover td{background:#eaf2ed}.logbook-table .book-status{width:34px;padding:0 2px}.logbook-table .book-date{width:58px}.logbook-table th:nth-child(2){width:58px}.logbook-table th:nth-child(3){width:105px}.logbook-table .book-driver{width:33px;text-align:center}.logbook-table .book-distance{width:72px;text-align:right;font-weight:600}.logbook-table .book-odometer{width:158px;text-align:right}.book-odometer>span{color:#8c9c91}.logbook-table .book-action{width:34px;text-align:right;padding:0 2px}
#logbook-host .book-icon{display:inline-grid;place-items:center;min-width:28px;height:28px;border:0;padding:0;background:transparent;vertical-align:middle}.book-warning{color:#a37118!important}.book-ok{color:#6b8a76!important}#logbook-host .logbook-trip{padding:0;border:0;border-radius:2px;background:transparent;font-weight:600;text-align:left;height:28px}#logbook-host .logbook-trip:hover{text-decoration:underline;background:transparent}.book-purpose{overflow:hidden}#logbook-host .book-purpose-button{display:flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;max-width:100%;width:100%;height:28px;text-align:left}.book-purpose-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-type{display:inline-flex;flex-shrink:0;color:#72877a}.book-driver>span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e5ece6;font-size:9px;color:#667b6d}
.logbook-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px;color:var(--book-muted);font-size:11px}.logbook-pagination>div{display:flex;align-items:center;gap:5px}#logbook-host .logbook-pagination select{font-size:11px;min-height:30px;padding-top:4px;padding-bottom:4px}#logbook-host .logbook-pagination button{display:grid;place-items:center;width:30px;height:30px;padding:0}.logbook-empty{text-align:center;padding:36px 8px;font-size:13px;color:var(--book-muted)}
.logbook-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:22px;border:1px solid var(--book-border);border-radius:13px;color:#244b37}.logbook-dialog::backdrop{background:#10271b66}.logbook-dialog form{display:grid;gap:16px}.logbook-dialog h2{font-size:19px;margin:0 0 14px}.logbook-dialog label{display:grid;gap:6px;font-size:12px}.logbook-dialog textarea{width:100%;resize:vertical;max-height:40vh}.logbook-dialog p{font-size:13px;line-height:1.6}.logbook-dialog .form-actions{display:flex;justify-content:end;gap:8px;margin-top:12px}#logbook-host .logbook-dialog .primary{background:#244b37;color:#fff}.book-dialog-heading{display:flex;justify-content:space-between;align-items:start}.book-detail-list{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;font-size:13px}.book-detail-list dt{color:var(--book-muted)}.book-detail-list dd{margin:0;overflow-wrap:anywhere}.book-issue-list{font-size:12px;color:#876021;padding-left:18px;line-height:1.8}#logbook-host .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.logbook-table .book-driver{display:none}.logbook-table .book-odometer{width:132px;font-size:11px}.logbook-summary{gap:10px}.logbook-summary>span+span{padding-left:8px}}
@media(max-width:700px){.logbook-top h1{font-size:21px}.logbook-top{margin-bottom:9px}.logbook-toolbar{gap:6px}.logbook-toolbar select{width:auto;flex:1;max-width:none}.logbook-toolbar input{width:143px}.logbook-summary{flex-wrap:wrap;gap:8px 12px;padding:10px 0;min-height:0}.logbook-summary>span:first-child{display:none}.logbook-summary>span+span{border:0;padding-left:0}.logbook-summary .book-total{font-size:14px}.logbook-summary svg{width:13px!important;height:13px!important}.logbook-summary>span{font-size:11px}.logbook-check{font-size:11px}.logbook-table .book-purpose,.logbook-table .book-driver,.logbook-table .book-odometer{display:none}.logbook-table-wrap{max-height:calc(100dvh - 310px);min-height:180px}.logbook-table th{height:28px}.logbook-table td{height:44px;padding:0 3px}.logbook-table th:nth-child(2){width:48px}.logbook-table th:nth-child(3){width:auto}.logbook-table .book-status,.logbook-table .book-action{width:40px;padding:0}.logbook-table .book-distance{width:53px}.logbook-table .book-time{font-size:11px}.logbook-table th{padding:0 3px}#logbook-host .book-icon{min-width:40px;height:42px}#logbook-host .logbook-trip{height:42px}.logbook-exports button{height:40px;min-width:40px}#logbook-host .logbook-pagination button{width:38px;height:38px}#logbook-host .logbook-pagination select{min-height:38px}.logbook-pagination{font-size:10px;gap:4px}.logbook-pagination>div{gap:3px}#logbook-host .logbook-pagination select{max-width:110px;font-size:10px}}

/* Month selection shares the logbook's restrained green controls. */
#logbook-host .book-month-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:160px;text-transform:none;white-space:nowrap}
#logbook-host .book-month-trigger svg{width:14px;height:14px;transform:rotate(90deg)}
.book-month-dialog{width:min(350px,calc(100vw - 28px));padding:16px;background:#fff}
.book-month-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#logbook-host .book-month-heading button{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0}
.book-month-heading svg{width:16px;height:16px}.book-month-heading strong{font-size:16px;font-variant-numeric:tabular-nums}
.book-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#logbook-host .book-month-grid button{min-height:42px;padding:6px 3px;font-size:12px;text-transform:capitalize;border-color:transparent;background:#f5f8f6}
#logbook-host .book-month-grid button:hover{background:#e7eee9}
#logbook-host .book-month-grid button[aria-pressed="true"]{background:#244b37;color:#fff}
@media(max-width:700px){#logbook-host .book-month-trigger{min-width:145px;font-size:12px}}
#logbook-host .book-month-heading [data-choose-year]{width:auto;min-width:80px;font-size:16px;font-weight:650;border-color:transparent;background:transparent}
#logbook-host .book-month-heading [data-choose-year]:hover{background:#e7eee9}
.book-year-grid{max-height:min(330px,55dvh);overflow:auto;overscroll-behavior:contain;scroll-padding:8px}

#logbook-host .book-whole-year{width:100%;min-height:40px;margin-bottom:8px;background:#f5f8f6;border-color:transparent}
#logbook-host .book-whole-year[aria-pressed="true"]{background:#244b37;color:#fff}

.logbook-dialog .book-purpose-hint{margin:-8px 0 0;font-size:12px;color:#876021;line-height:1.5}

.vehicle-evidence{width:min(780px,calc(100vw - 28px));max-height:calc(100dvh - 28px);color:#244b37;background:#fff;overflow:hidden}
.evidence-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 12px}.evidence-head h2{margin:4px 0 0;font:700 21px Manrope}.evidence-head button{display:grid;place-items:center;min-width:36px;width:36px;height:36px;padding:0}.evidence-head svg{width:17px;height:17px}
.evidence-asof{display:flex;align-items:end;gap:8px;padding:0 22px 14px;border-bottom:1px solid #d8e3dc}.evidence-asof label{display:grid;gap:5px;font-size:11px}.evidence-asof input{max-width:170px;min-height:36px}.evidence-asof button{min-height:36px}
.evidence-scroll{max-height:calc(100dvh - 195px);overflow:auto;overscroll-behavior:contain;padding:0 22px 18px}.evidence-status{font-size:12px;color:#607669;margin:14px 0}.evidence-notice{font-size:12px;color:#876021;line-height:1.5}
.evidence-section{border-top:1px solid #e4ebe6}.evidence-section summary,.evidence-history summary{padding:13px 0;font-size:13px;font-weight:650;cursor:pointer}.evidence-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:2px 0 17px}.evidence-fields label,.evidence-version-fields label{display:grid;gap:5px;font-size:11px;min-width:0}.evidence-fields input,.evidence-fields select,.evidence-version-fields input,.evidence-version-fields textarea{width:100%;min-width:0;box-sizing:border-box;font-size:13px}.evidence-wide{grid-column:1/-1}
.vehicle-evidence fieldset{border:0;padding:0;margin:0;min-width:0}.vehicle-evidence fieldset:disabled input,.vehicle-evidence fieldset:disabled select,.vehicle-evidence fieldset:disabled textarea{opacity:1;color:#607669;background:#f7f9f7}.evidence-version-fields{border-top:1px solid #d8e3dc;padding-top:15px;display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px}.evidence-version-fields textarea{resize:vertical;min-height:64px;max-height:170px}
.evidence-help{font-size:11px;color:#607669;line-height:1.6;margin:13px 0}.evidence-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0}.evidence-footer span{font-size:12px}.vehicle-evidence .primary{background:#244b37;color:#fff}.evidence-history{border-top:1px solid #d8e3dc}.evidence-history summary span{font-weight:400;color:#607669}.evidence-history>div{display:grid;gap:4px}.evidence-history button{display:grid;text-align:left;gap:3px;padding:10px;min-width:0;background:#f5f8f6;border-color:transparent;overflow-wrap:anywhere}.evidence-history button b{font-size:12px}.evidence-history button span,.evidence-history button small{font-size:11px;color:#607669}
@media(max-width:600px){.evidence-head{padding:16px 16px 12px}.evidence-asof{padding:0 16px 12px}.evidence-scroll{padding:0 16px 16px}.evidence-fields{grid-template-columns:1fr;gap:12px}.evidence-wide{grid-column:auto}.evidence-version-fields{grid-template-columns:1fr;gap:12px}.evidence-version-fields input{max-width:190px}.evidence-footer{gap:8px}.evidence-footer .primary{min-height:42px}}
.vehicle-evidence .evidence-head{height:auto;position:static;backdrop-filter:none}.evidence-head>div{display:block}.vehicle-evidence .boot{min-height:180px}
.vehicle-evidence button,.vehicle-evidence input,.vehicle-evidence select,.vehicle-evidence textarea{font:inherit;color:#244b37;border:1px solid #d8e3dc;border-radius:7px;background:#fff;font-size:12px}
.vehicle-evidence input,.vehicle-evidence select{height:38px;padding:0 10px}.vehicle-evidence textarea{padding:9px 10px}.vehicle-evidence button{padding:8px 12px;min-height:36px}.vehicle-evidence button:disabled{cursor:default;opacity:.55}.vehicle-evidence button:hover:not(:disabled){background:#f1f5f2}.vehicle-evidence input:focus-visible,.vehicle-evidence select:focus-visible,.vehicle-evidence textarea:focus-visible,.vehicle-evidence button:focus-visible,.vehicle-evidence summary:focus-visible{outline:2px solid #39865e;outline-offset:2px}.vehicle-evidence .primary:hover:not(:disabled){background:#173f2b}.vehicle-evidence .evidence-history button{background:#f5f8f6;border-color:transparent}.vehicle-evidence .evidence-head button{padding:0}
.book-evidence-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.book-evidence-driver{grid-column:1/-1}.logbook-export-status{font-size:12px;color:#607669;margin:9px 0 0;line-height:1.5}.logbook-export-status button{margin-left:8px}.book-profile-snapshot{border-top:1px solid #d8e3dc;margin-top:14px;padding-top:10px}.book-profile-snapshot summary{cursor:pointer;font-size:12px;color:#607669}.book-profile-snapshot .book-detail-list{margin-top:12px}
@media(max-width:600px){.book-evidence-fields{grid-template-columns:1fr}.book-evidence-driver{grid-column:auto}}
.book-accounting{border-top:1px solid #d8e3dc;padding:10px 0}.book-accounting>summary{cursor:pointer;font-size:12px;font-weight:650}.book-accounting-sources p,.book-accounting-note{font-size:11px!important;line-height:1.5;margin:9px 0;color:#607669}.book-confirmed-fields{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}.book-accounting-reconfirm{display:flex!important;grid-template-columns:none;align-items:start;gap:8px;margin-top:12px}.book-accounting-reconfirm input{width:16px!important;min-height:16px!important;margin:2px 0 0;flex:none}.book-accounting [data-accounting-reset],.book-accounting [data-accounting-history]{font-size:11px!important;margin-right:7px;margin-top:5px}.book-accounting [data-accounting-preview]{border-top:1px solid #d8e3dc;margin-top:12px;padding-top:10px}
.book-accounting-diff{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;margin:10px 0}.book-accounting-diff th,.book-accounting-diff td{text-align:left;padding:8px 4px;border-bottom:1px solid #e4ebe6;vertical-align:top;overflow-wrap:anywhere}.book-accounting-diff th{font-weight:600}.book-accounting-diff small{display:block;font-size:10px;font-weight:400;color:#607669;margin-top:4px}.book-history-dialog{width:min(650px,calc(100vw - 28px))}.book-history-event{border-top:1px solid #d8e3dc;margin-top:10px}.book-history-event>summary{cursor:pointer;display:grid;gap:4px;padding:12px 0;font-size:12px}.book-history-event>summary span{color:#607669;font-size:11px}.book-history-event p{font-size:11px;overflow-wrap:anywhere}.book-history-dialog [data-history-restore]{margin-top:20px;border-top:1px solid #d8e3dc;padding-top:12px}.book-history-dialog [data-history-restore] label{margin:12px 0}.book-history-dialog [data-history-list] button{font-size:11px!important}.book-history-dialog .form-actions{flex-wrap:wrap}.book-history-dialog [data-history-status]{font-size:12px;margin:12px 0;line-height:1.5}.book-history-dialog h3,.book-history-dialog h4{font-size:13px}
.book-history-dialog{--book-border:#d8e3dc}.book-history-dialog button,.book-history-dialog select,.book-history-dialog textarea{font:inherit;font-size:12px;color:#244b37;border:1px solid #d8e3dc;border-radius:7px;padding:8px 10px;background:#fff}.book-history-dialog svg{width:16px;height:16px}.book-history-dialog .book-dialog-heading button{display:grid;place-items:center;min-width:34px;height:34px;padding:0}.book-history-dialog .primary{background:#244b37;color:#fff}.book-history-dialog textarea{resize:vertical;width:100%}.book-history-dialog button:disabled{opacity:.55;cursor:default}.book-history-dialog button:focus-visible,.book-history-dialog select:focus-visible,.book-history-dialog textarea:focus-visible{outline:2px solid #39865e;outline-offset:2px}
.book-history-event>summary{position:relative;padding-right:20px}.book-history-event>summary::after{content:'⌄';position:absolute;right:2px;top:13px;color:#607669}.book-history-event[open]>summary::after{transform:rotate(180deg)}

/* Period readings are separate from the dense trip table. */
.reading-dialog{width:min(760px,calc(100vw - 24px));padding:20px;box-sizing:border-box;color:#183c2c}
.reading-dialog .reading-header{position:static;height:auto;padding:0 0 12px;display:flex;justify-content:space-between;align-items:start;background:none;border:0;box-shadow:none}
.reading-header>div{display:block}.reading-header h2{font-size:20px;margin:0}.reading-header p{margin:4px 0;color:#698274;font-size:13px}
.reading-dialog button{border:1px solid #dbe6df;background:white;border-radius:8px;padding:8px 10px;color:#284e3a;cursor:pointer;font:inherit}.reading-dialog button:disabled{opacity:.55;cursor:default}.reading-dialog button.primary{background:#287d51;color:white;border-color:#287d51}
.reading-actions{display:flex;flex-wrap:wrap;gap:6px}.reading-status{font-size:13px}.reading-status:empty{display:none}
.reading-list{display:grid;gap:0;border-block:1px solid #e1e9e3;margin:14px 0}.reading-dialog .reading-row{display:flex;justify-content:space-between;gap:12px;padding:10px 4px;border:0;border-bottom:1px solid #edf1ed;border-radius:0;text-align:left}.reading-row:last-child{border-bottom:0}.reading-row[aria-pressed=true]{background:#edf6ef}.reading-row>span:last-child{text-align:right}.reading-row strong{font-size:13px;font-weight:600}.reading-row small{display:block;color:#6b8073;font-size:11px;margin-top:3px}.reading-editor{border-top:2px solid #2d8053;padding-top:14px}.reading-editor h3,.reading-reconciliation h3{font-size:15px;margin:0 0 8px}.reading-editor fieldset{border:0;margin:0;padding:0;min-width:0}.reading-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reading-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#536b5d}.reading-fields .reading-wide{grid-column:1/-1}.reading-dialog input,.reading-dialog textarea,.reading-dialog select{width:100%;box-sizing:border-box;min-width:0;border:1px solid #d5e2d9;border-radius:7px;padding:9px;background:#fff;color:#183c2c;font:inherit}.reading-dialog input:focus,.reading-dialog textarea:focus,.reading-dialog select:focus{outline:2px solid #82b996;outline-offset:1px}.reading-dialog [readonly]{background:#f4f7f4}.reading-hint{font-size:12px;line-height:1.5;color:#64786b}.reading-notices{font-size:12px;line-height:1.5;padding-left:18px;color:#8c6527}.reading-reconciliation{margin:14px 0;padding:12px;background:#f5f8f5;border-radius:8px}.reading-reconciliation>p{font-size:12px}.reading-reconciliation dl{margin:0}.reading-reconciliation dl>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:4px 0}.reading-reconciliation dd{margin:0;text-align:right}.reading-editor .form-actions{flex-wrap:wrap}.reading-dialog .error button{font-size:12px;margin-top:8px}
@media(max-width:500px){.reading-dialog{padding:14px;max-height:calc(100dvh - 20px)}.reading-fields{grid-template-columns:1fr}.reading-fields .reading-wide{grid-column:auto}.reading-header h2{font-size:18px}.reading-dialog .reading-row{padding-block:11px}.reading-actions button{font-size:12px}.logbook-exports [data-book-readings] span{display:none}.reading-reconciliation dl>div{display:block}.reading-reconciliation dd{text-align:left;margin-top:3px}}
#logbook-host [data-book-readings][hidden],.reading-dialog [hidden]{display:none!important}
.costs-dialog{width:min(860px,calc(100vw - 24px))}.costs-tabs{display:flex;gap:4px;border-bottom:1px solid #dfe8e1;padding-bottom:8px;margin-bottom:10px}.costs-tabs [aria-selected=true]{background:#e6f3e9;border-color:#95baa1;font-weight:600}.costs-actions select{width:auto;padding-right:30px}.costs-list{border-block:1px solid #e2ebe4;margin-top:10px}.costs-row{display:flex;align-items:stretch;border-bottom:1px solid #edf2ee;gap:6px}.costs-row:last-child{border-bottom:0}.costs-dialog .costs-row>button{border:0;border-radius:0;background:none;padding:10px 3px}.costs-row>button[data-edit]{display:flex;flex:1;min-width:0;justify-content:space-between;gap:14px;text-align:left}.costs-row>button[data-edit]>span{min-width:0}.costs-row>button[data-edit]>span:last-child{text-align:right;flex-shrink:0}.costs-row strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.costs-row small{display:block;color:#6a7f70;font-size:11px;margin-top:4px}.costs-row>button[data-attach],.costs-row>button[data-download]{min-width:32px}.costs-totals{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#5b7464}.costs-pagination{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}.costs-optional{margin:12px 0}.costs-optional>summary,.costs-original>summary{cursor:pointer;font-size:13px;color:#477456}.costs-optional .reading-fields{margin-top:10px}.costs-editor>fieldset>label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin-block:10px}.costs-original code{font-size:11px;overflow-wrap:anywhere}.costs-dialog [data-status]{font-size:13px}.costs-dialog [data-status]:empty{display:none}#logbook-host [data-book-costs][hidden]{display:none!important}
@media(max-width:500px){.logbook-exports [data-book-costs] span{display:none}.costs-actions button,.costs-actions select{font-size:12px}.costs-actions select{max-width:155px}.costs-row>button[data-edit]{gap:8px}.costs-row>button[data-edit]>span:last-child{max-width:105px}.costs-row strong{font-size:12px}.costs-row small{font-size:10px}}
.archives-dialog{width:min(860px,calc(100vw - 24px))}.archive-filters select{width:auto;padding-right:28px}.archive-list{margin-top:16px}.archive-row{border-top:1px solid #dce7df;padding:14px 0}.archive-row-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:13px}.archive-row-heading small{display:block;color:#647b6b;font-size:12px;margin-top:4px}.archive-row>p{font-size:12px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.archive-row details{font-size:12px;margin:10px 0}.archive-row summary{cursor:pointer;color:#47745a}.archive-row code{display:block;font-size:11px;overflow-wrap:anywhere;margin:8px 0}.archive-row .reading-actions button{font-size:12px}.archive-editor>fieldset{border:0;padding:0;margin:0;min-width:0}.archive-editor>fieldset>label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:12px 0}.archive-editor>fieldset>.archive-ack{flex-direction:row;align-items:start;line-height:1.5}.archive-ack input{width:16px;flex:0 0 16px;margin:3px 0 0}.archive-preview{margin:12px 0;padding:12px;background:#f3f8f4;border-radius:8px}.archive-preview h4{margin:0;font-size:14px}.archive-preview>p{font-size:12px}.archive-counts{display:grid;grid-template-columns:1fr 1fr;gap:5px 18px}.archive-counts>div{display:flex;justify-content:space-between;font-size:12px}.archive-counts dd{margin:0;font-weight:600}.archive-issues{font-size:12px;line-height:1.5;color:#926827}.archive-issues ul{padding-left:18px}.archives-dialog [data-status]{font-size:13px}.archives-dialog [data-status]:empty{display:none}
@media(max-width:500px){.logbook-exports [data-book-archives] span{display:none}.archive-counts{grid-template-columns:1fr}.archive-row-heading>span:last-child{max-width:110px;text-align:right}.archive-filters{gap:6px}.archive-filters select,.archive-filters button{font-size:12px}}

/* Evidence delegation stays within the compact bookkeeping workspace. */
.logbook-scope{font-size:11px;color:#64786b;margin:0 0 10px;line-height:1.5}.logbook-scope:empty{display:none}.evidence-access-dialog{width:min(620px,calc(100vw - 24px))}.evidence-grants{margin:12px 0}.evidence-grant{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #e1e9e3}.evidence-grant strong{font-size:13px;overflow-wrap:anywhere}.evidence-grant small{display:block;color:#64786b;font-size:11px;margin-top:4px}.evidence-grant>div:first-child{min-width:0}.evidence-grant>div:last-child{display:flex;gap:5px;flex-shrink:0}.evidence-grant button{display:grid;place-items:center;width:34px;height:34px;padding:7px}.evidence-access-dialog .evidence-permissions{display:grid;gap:10px;margin:16px 0}.evidence-access-dialog .evidence-permissions label,.evidence-access-dialog .evidence-consent{display:flex;align-items:start;gap:9px;line-height:1.6}.evidence-access-dialog input[type=checkbox]{width:16px;min-height:16px;flex-shrink:0;margin-top:2px;accent-color:#287d51}.evidence-access-dialog .reading-editor{margin-top:18px}.evidence-access-dialog .reading-editor label{margin-bottom:12px}.evidence-access-dialog button svg{width:16px;height:16px}.evidence-access-dialog [data-error]{color:#9a362a}.evidence-grant button:hover{background:#f0f6f1}.evidence-access-dialog:open{animation:evidence-access-in .14s ease-out}@keyframes evidence-access-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}#logbook-host [hidden]{display:none!important}
@media(max-width:700px){.logbook-exports{gap:2px}.logbook-exports [data-book-access],.logbook-exports [data-book-profile]{min-width:36px}.logbook-top{align-items:start}.logbook-top h1{flex-shrink:0}.logbook-exports{flex-wrap:wrap;justify-content:end}.logbook-scope{font-size:10px}.evidence-grant button{height:40px;width:40px}.evidence-access-dialog .form-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.evidence-access-dialog:open{animation:none}}

.email-verification{margin:0 0 18px;padding:10px 0;border-bottom:1px solid #dce7df;font-size:12px;color:#566d5e}.email-verification p{line-height:1.6;margin:0 0 7px}.email-verification>div{display:flex;flex-wrap:wrap;gap:6px}.email-verification button{background:#fff;color:#285039;border:1px solid #d7e3da;border-radius:7px;padding:8px 10px;font:inherit}.email-verification [data-email-status]:empty{display:none}.email-verification [data-email-status]{margin-top:8px}

/* Shared vehicle device policy and duplicate-trip review. */
.device-policy-mode{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:8px 0 16px;border-bottom:1px solid #e3e9e5}.device-policy-mode>div{min-width:0}.device-policy-mode button{flex-shrink:0}.device-policy-list{list-style:none;padding:0;margin:0}.device-policy-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e3e9e5}.device-policy-list li>div:first-child{min-width:0;overflow-wrap:anywhere}.device-policy-list small{display:block;margin-top:3px;color:#6b7a71;font-variant-numeric:tabular-nums}.device-policy-actions{display:flex;gap:4px}.device-policy-actions button{display:grid;place-items:center;width:36px;height:36px;padding:7px}.device-policy-dialog input{width:100%}
.trip-conflict-notice{display:flex;align-items:center;gap:12px;border-left:3px solid #b27a20;background:#fff9ec;padding:12px 16px;margin:0 0 16px;color:#654814}.trip-conflict-notice>span{display:flex}.trip-conflict-notice>div{flex:1;min-width:0}.trip-conflict-notice strong{font-size:13px}.trip-conflict-notice p{font-size:12px;line-height:1.5;margin:3px 0 0}.trip-conflict-notice button{flex-shrink:0}
.trip-conflict-dialog{width:min(1100px,calc(100vw - 32px));max-width:1100px;padding:24px;max-height:calc(100dvh - 32px);overflow:auto}.trip-conflict-dialog>.reading-header{margin-bottom:16px}.trip-conflict-workspace{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:24px;min-width:0}.trip-conflict-list-pane{min-width:0;max-height:72dvh;overflow:auto}.trip-conflict-row{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;gap:5px;padding:12px 10px;border:0;border-bottom:1px solid #e3e9e5;border-radius:0;background:transparent;font-size:12px;white-space:normal;overflow-wrap:anywhere}.trip-conflict-row strong{font-size:13px}.trip-conflict-row strong small{font-weight:400}.trip-conflict-row em{font-size:11px;font-style:normal;color:#786029}.trip-conflict-row[aria-pressed=true]{background:#eef5ef;box-shadow:inset 3px 0 #21815a}.trip-conflict-detail{min-width:0}.trip-conflict-kind p{margin:5px 0 14px;color:#6b7a71;font-size:12px}.trip-conflict-trips{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.trip-conflict-trip{min-width:0;overflow-wrap:anywhere}.trip-conflict-trip h3{font-size:14px;margin:8px 0 5px}.trip-conflict-trip p{font-size:12px;line-height:1.6;color:#6b7a71}.conflict-route-key{font-size:11px}.conflict-route-key:before{content:'';display:inline-block;width:16px;border-top:3px solid #087b56;vertical-align:middle;margin-right:6px}.conflict-route-2:before{border-top:3px dashed #7050b8}.trip-conflict-map{height:320px;min-height:220px;z-index:0;border-radius:10px;overflow:hidden;background:#edf1ed}.trip-conflict-map-empty{display:grid;place-items:center;padding:24px;text-align:center;font-size:13px;color:#6b7a71}.trip-conflict-decisions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.trip-conflict-decisions button{white-space:normal;min-height:40px}.trip-conflict-dialog [data-status]{font-size:13px;line-height:1.5}.trip-conflict-dialog .reading-header>div{min-width:0}.trip-conflict-dialog .reading-header h2{overflow-wrap:anywhere}
@media(max-width:680px){.device-policy-mode{flex-direction:column;gap:6px}.trip-conflict-notice{flex-wrap:wrap;padding:10px 12px}.trip-conflict-notice>div{flex-basis:calc(100% - 40px)}.trip-conflict-notice>button{margin-left:32px}.trip-conflict-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}.trip-conflict-workspace{grid-template-columns:minmax(0,1fr);gap:16px}.trip-conflict-list-pane{max-height:220px;border-bottom:1px solid #e3e9e5;padding-bottom:12px}.trip-conflict-map{height:260px}.trip-conflict-trips{gap:12px}.trip-conflict-decisions{display:grid;grid-template-columns:1fr}.device-policy-dialog{max-width:calc(100vw - 16px)}}
