:root {
  --ink: #0b1e28;
  --panel: #102a38;
  --raised: #16384a;
  --line: #1f4254;
  --brass: #c9a24b;
  --teal: #4fb0a5;
  --coral: #e26a4e;
  --text: #dce6ea;
  --muted: #7e97a3;
  --dim: #52707d;
  --r: 14px;
  --r-sm: 9px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --body: 'Inter', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
}
body.account-recovery > header,
body.account-recovery > nav,
body.account-recovery > main,
body.account-recovery > .fab,
body.account-recovery > .scrim:not(#scrim) {
  display: none !important;
}
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, #143040 0%, var(--ink) 60%);
  background-attachment: fixed;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: 15px;
}
::selection {
  background: var(--brass);
  color: var(--ink);
}
.dash-welcome {
  margin: 2px 0 18px;
}
.dash-welcome .dw-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0.2px;
}
.dash-welcome .dw-em {
  color: var(--brass);
}
.dash-welcome .dw-date {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ---------- Top bar ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(11, 30, 40, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(201, 162, 75, 0.25);
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.vessel {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.vessel b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vessel small {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.spacer {
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.net {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 999px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.net.up .dot {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.net.up {
  color: var(--teal);
}
.header-map-btn {
  color: var(--text);
  border-color: var(--brass);
  font-weight: 600;
}
.header-map-btn:hover,
.header-map-btn:focus-visible {
  color: var(--ink);
  background: var(--brass);
  outline: none;
}

/* ---------- Tabs ---------- */
nav {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar {
  display: none;
}
.tab {
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
}
.tab[hidden] {
  display: none !important;
}
.tab[aria-selected='true'] {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
.tab:hover {
  color: var(--text);
}
.dchip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.dchip.on {
  color: #0b1e28;
  background: var(--brass);
  border-color: var(--brass);
  font-weight: 600;
}
/* Captain's Log report */
#logReport {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #f7f3ea;
  color: #14232b;
  overflow: auto;
  display: none;
}
#logReport.on {
  display: block;
}
.rep-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0b1e28;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.rep-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 26px;
}
.rep-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
}
.rep-brand span {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #c9a24b;
}
.rep-actions {
  display: flex;
  gap: 10px;
}
.rep-actions .btn {
  flex: 1;
  min-height: 48px;
  padding: 13px 16px;
  font-size: 15px;
}
.rep {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 38px 64px;
  font-family: var(--body);
  line-height: 1.5;
}
.rep h1,
.rep h2,
.rep h3 {
  font-family: var(--display);
  color: #0b1e28;
  margin: 0;
  line-height: 1.2;
}
.rep .cover {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 3px double #c9a24b;
  padding-bottom: 34px;
  margin-bottom: 30px;
}
.rep .cover .boat {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.04em;
  color: #0b1e28;
  line-height: 1;
}
.rep .cover .sub {
  color: #c9a24b;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  margin: 14px 0 20px;
}
.rep .cover h1 {
  font-size: 26px;
}
.rep .cover img {
  max-width: 74%;
  max-height: 42vh;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 26px;
}
.rep section {
  margin: 0 0 24px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.rep .st {
  font-family: var(--display);
  font-size: 18px;
  color: #0b1e28;
  border-bottom: 2px solid #c9a24b;
  padding-bottom: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.rep table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: fixed;
}
.rep th,
.rep td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid #e3dbc8;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rep th {
  color: #7a6a3f;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rep .kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.rep .kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e3dbc8;
  padding: 7px 0;
  font-size: 13.5px;
}
.rep .kv span {
  color: #5a6b73;
}
.rep .kv b {
  color: #0b1e28;
  font-weight: 600;
  text-align: right;
}
.rep .narr {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 12px;
}
.rep .stars {
  color: #c9a24b;
  letter-spacing: 3px;
  font-size: 16px;
}
.rep .repmap {
  border: 1px solid #dfd7c4;
  border-radius: 12px;
  overflow: hidden;
}
.rep .mapleg {
  font-size: 11px;
  color: #7a6a3f;
  margin-top: 8px;
  text-align: center;
}
.rep .gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}
.rep .gallery:has(figure:only-child) {
  grid-template-columns: 1fr;
}
.rep .gallery figure {
  margin: 0;
  break-inside: avoid;
}
.rep .gallery img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #ece7dc;
}
.rep .gallery figcaption {
  font-size: 11.5px;
  color: #7a6a3f;
  margin-top: 5px;
}
@media (max-width: 520px) {
  .rep .gallery {
    grid-template-columns: 1fr;
  }
}
.rep .cert {
  border: 1.5px solid #c9a24b;
  border-radius: 12px;
  padding: 18px 20px;
}
.rep .foot {
  text-align: center;
  color: #9a8a5f;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 34px;
  border-top: 1px solid #e3dbc8;
  padding-top: 14px;
}
.rep .story {
  margin-bottom: 22px;
  break-inside: avoid;
}
.rep .story h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
@media print {
  @page {
    margin: 14mm 12mm;
  }
  html,
  body {
    background: #fff;
  }
  body > *:not(#logReport) {
    display: none !important;
  }
  #logReport {
    position: static;
    display: block;
    background: #fff;
    overflow: visible;
  }
  .rep-bar {
    display: none !important;
  }
  .rep {
    max-width: none;
    padding: 0;
    line-height: 1.45;
  }
  .rep .cover {
    min-height: auto;
    padding: 60px 0 40px;
    page-break-after: always;
  }
  .rep .cover img {
    max-height: 340px;
  }
  .rep section {
    page-break-inside: avoid;
  }
  .rep .st {
    break-after: avoid;
    page-break-after: avoid;
  }
  .rep .repmap {
    max-height: 360px;
  }
  .rep .gallery img {
    max-height: 118mm;
    object-fit: contain;
  }
}

/* ---------- Appearance themes ---------- */
.theme-card h3,
.language-card h3 {
  margin: 0 0 6px;
}
.theme-card > p,
.language-card > p {
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.language-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.language-picker .btn.on {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}
.theme-option {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 11px;
  text-align: left;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
}
.theme-option:hover,
.theme-option:focus-visible {
  border-color: var(--brass);
  outline: none;
}
.theme-option.on {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brass) 18%, transparent);
}
.theme-option b,
.theme-option small {
  display: block;
}
.theme-option b {
  font-size: 13px;
}
.theme-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.theme-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}
.theme-option.on .theme-check {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}
.theme-preview {
  height: 46px;
  display: grid;
  grid-template-rows: 9px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 7px;
  border: 1px solid;
  border-radius: 5px;
}
.theme-preview::before {
  content: '';
  grid-column: 1 / -1;
  border-bottom: 1px solid;
}
.theme-preview i {
  display: block;
  border: 1px solid;
}
.theme-preview i:last-child {
  display: none;
}
.classic-preview {
  color: #c9a24b;
  background: #0b1e28;
  border-color: #1f4254;
}
.classic-preview i {
  border-color: #1f4254;
  background: #102a38;
}
.yacht-preview {
  color: #111;
  background: #fafaf7;
  border-color: #777;
}
.yacht-preview i {
  border-color: #777;
  background: #fff;
}

@media (max-width: 620px) {
  .theme-picker {
    grid-template-columns: 1fr;
  }
}

html[data-theme='yacht'] {
  --ink: #fafaf7;
  --panel: #ffffff;
  --raised: #f1f0ec;
  --line: #c9c7c0;
  --brass: #b38a32;
  --teal: #216d63;
  --coral: #b44836;
  --text: #111111;
  --muted: #595a56;
  --dim: #7d7e78;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: Georgia, 'Times New Roman', serif;
  --mono: 'Courier New', Courier, monospace;
}
html[data-theme='yacht'] body {
  background-image: none;
}
html[data-theme='yacht'] header {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: #aaa9a3;
}
html[data-theme='yacht'] .mark {
  background: #111;
  box-shadow: none;
}
html[data-theme='yacht'] .tab[aria-selected='true'] {
  background: #fff;
  border-color: #aaa9a3;
}
html[data-theme='yacht'] .header-map-btn {
  border-color: #111;
}
html[data-theme='yacht'] .header-map-btn:hover,
html[data-theme='yacht'] .header-map-btn:focus-visible {
  color: #fff;
  background: #111;
}
html[data-theme='yacht'] .card,
html[data-theme='yacht'] .stat,
html[data-theme='yacht'] .entry .body,
html[data-theme='yacht'] .entry .node,
html[data-theme='yacht'] .sheet,
html[data-theme='yacht'] .live-map-dialog,
html[data-theme='yacht'] .live-map-head {
  box-shadow: none;
}
html[data-theme='yacht'] .btn.primary,
html[data-theme='yacht'] .fab {
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: none;
}
html[data-theme='yacht'] .btn:not(.primary):hover {
  color: #111;
  background: #fff;
}
html[data-theme='yacht'] .dchip.on,
html[data-theme='yacht'] .segbtn.on,
html[data-theme='yacht'] .taskc.done .check,
html[data-theme='yacht'] .theme-option.on .theme-check {
  color: #111;
}
html[data-theme='yacht'] .scrim {
  background: rgba(17, 17, 17, 0.46);
}
html[data-theme='yacht'] .toast {
  background: #111;
  color: #fff;
}
html[data-theme='yacht'] .map,
html[data-theme='yacht'] .leaflet-container,
html[data-theme='yacht'] .advmap .leaflet-container {
  background: #e8e8e3;
}
html[data-theme='yacht'] .leaflet-tile {
  filter: grayscale(0.2) brightness(1.04) contrast(0.94);
}
html[data-theme='yacht'] .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #686864 !important;
}
html[data-theme='yacht'] .leaflet-control-attribution a {
  color: #333 !important;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}
.view {
  display: none;
  animation: rise 0.25s ease;
}
.view.on {
  display: block;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Headings ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
}
h2.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.2px;
  margin: 4px 0 18px;
}
h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  margin: 26px 0 12px;
  color: var(--text);
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}
.card + .card {
  margin-top: 10px;
}
.grid {
  display: grid;
  gap: 10px;
}

/* crew row */
.crew-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 17px;
  color: var(--brass);
  border: 1px solid var(--line);
}
.crew-row .who {
  flex: 1;
  min-width: 0;
}
.crew-row .who b {
  font-weight: 600;
}
.crew-row .who span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.crew-card {
  display: grid;
  gap: 13px;
}
.crew-card-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.crew-card .who {
  min-width: 0;
}
.crew-card .who b {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.crew-card .who span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.crew-card-controls,
.crew-user-actions,
.crew-access {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.crew-user-actions {
  margin-top: 8px;
  justify-content: flex-start;
}
.crew-card-controls {
  justify-content: flex-end;
}
.crew-access {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.crew-section-label {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--dim);
}
.crew-access .dchip {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
@media (max-width: 520px) {
  .crew-card-summary {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  .crew-card-controls {
    grid-column: 2;
    justify-content: flex-start;
  }
}
.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.aboard {
  color: var(--teal);
  border-color: rgba(79, 176, 165, 0.4);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
}
.icon-btn:hover {
  background: var(--raised);
  color: var(--coral);
}

/* trip card */
.trip {
  display: block;
  text-align: left;
  width: 100%;
}
.trip .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.trip .name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  flex: 1;
}
.trip .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.trip .meta .k {
  color: var(--dim);
}
.status {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.status.planned {
  color: var(--brass);
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.3);
}
.status.active {
  color: var(--teal);
  background: rgba(79, 176, 165, 0.12);
  border: 1px solid rgba(79, 176, 165, 0.35);
}
.status.active::before {
  content: '●  ';
  font-size: 8px;
  vertical-align: middle;
}
.status.completed {
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  transition: 0.15s;
}
.btn:hover {
  border-color: var(--brass);
  color: #fff;
}
.btn.primary {
  background: linear-gradient(150deg, var(--brass), #a9842f);
  color: var(--ink);
  border: none;
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: none;
}
.btn.block {
  width: 100%;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ---------- Forms ---------- */
label.fld {
  display: block;
  margin-bottom: 13px;
}
label.fld span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.inp {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 10px;
  transition: 0.15s;
}
.inp:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.12);
}
textarea.inp {
  resize: vertical;
  min-height: 78px;
  line-height: 1.55;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* type chooser */
.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.type {
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink);
  text-align: center;
  transition: 0.15s;
}
.type:hover {
  border-color: var(--dim);
}
.type[aria-pressed='true'] {
  border-color: var(--brass);
  background: rgba(201, 162, 75, 0.1);
}
.type .g {
  font-size: 21px;
  display: block;
  line-height: 1.4;
}
.type .l {
  font-size: 11px;
  color: var(--muted);
}
.type[aria-pressed='true'] .l {
  color: var(--text);
}

/* ---------- Logbook timeline ---------- */
.log {
  position: relative;
  margin-top: 8px;
  padding-left: 34px;
}
.log::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line), var(--line) 60%, transparent);
}
.entry {
  position: relative;
  margin-bottom: 14px;
}
.entry .node {
  position: absolute;
  left: -34px;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  z-index: 2;
}
.entry.incident .node {
  border-color: var(--coral);
}
.entry .body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
}
.entry.incident .body {
  border-color: rgba(226, 106, 78, 0.4);
}
.entry .stamp {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.coord {
  color: var(--teal);
  font-family: var(--mono);
}
.entry .et {
  font-weight: 600;
  margin: 5px 0 3px;
  font-size: 15.5px;
}
.entry .nt {
  color: var(--muted);
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.55;
}
.thumbs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.thumbs .t {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--ink);
}
.thumbs .t img,
.thumbs .t video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumbs .t .vtag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.35);
}
.entry .del {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--dim);
  font-size: 13px;
  opacity: 0;
}
.entry:hover .del {
  opacity: 1;
}
.entry .del:hover {
  color: var(--coral);
}

/* Dashboard notes feed */
#dashSeg {
  overflow-x: auto;
  scrollbar-width: none;
}
#dashSeg::-webkit-scrollbar {
  display: none;
}
.dash-note-filters {
  display: flex;
  gap: 7px;
  margin: 0 0 14px;
  padding: 1px 1px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-note-filters::-webkit-scrollbar {
  display: none;
}
.dash-note-filters .dchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 11px;
  white-space: nowrap;
}
.dash-notes-feed {
  width: min(100%, 680px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.dash-note-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.dash-note-head {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.dash-note-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  font-size: 17px;
}
.dash-note-heading {
  min-width: 0;
}
.dash-note-heading strong,
.dash-note-heading small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-note-heading strong {
  font-size: 14px;
}
.dash-note-heading small,
.dash-note-head time {
  margin-top: 2px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}
.dash-note-head time {
  margin: 0;
  white-space: nowrap;
}
.dash-note-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
}
.dash-note-media[data-media-count='1'] {
  grid-template-columns: 1fr;
}
.dash-note-media:empty {
  display: none;
}
.dash-note-media-item {
  min-height: 190px;
  max-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.dash-note-media-item img,
.dash-note-media-item video {
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 560px;
  display: block;
  object-fit: cover;
}
.dash-note-media-item img {
  cursor: zoom-in;
}
.dash-note-media[data-media-count='1'] .dash-note-media-item,
.dash-note-media[data-media-count='1'] .dash-note-media-item img,
.dash-note-media[data-media-count='1'] .dash-note-media-item video {
  min-height: min(70vw, 460px);
}
.dash-note-copy {
  padding: 13px 14px 14px;
}
.dash-note-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.dash-note-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 9px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}
.dash-note-details button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  cursor: pointer;
}
@media (max-width: 520px) {
  .dash-note-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .dash-note-head time {
    display: none;
  }
  .dash-note-icon {
    width: 34px;
    height: 34px;
  }
}

/* summary */
.sumgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat .n {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--brass);
  line-height: 1;
}
.stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px;
}

/* empty + misc */
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
}
.empty .big {
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.6;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.back:hover {
  color: var(--brass);
}
.hint {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* modal */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 19, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.scrim.on {
  display: flex;
}
body.modal-open {
  overflow: hidden;
}
.sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 22px 20px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  animation: up 0.25s ease;
}
@keyframes up {
  from {
    transform: translateY(30px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.sheet h3 {
  margin-top: 0;
}
@media (min-width: 600px) {
  .scrim {
    align-items: center;
  }
  .sheet {
    border-radius: 18px;
  }
}

/* Live AIS map */
.live-map-scrim {
  z-index: 2065;
  align-items: center;
  padding: 18px;
}
.live-map-dialog {
  width: min(1100px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: up 0.25s ease;
}
.live-map-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(16px, calc(env(safe-area-inset-top, 0px) + 10px));
  padding-right: max(18px, calc(env(safe-area-inset-right, 0px) + 10px));
  padding-bottom: 16px;
  padding-left: max(18px, calc(env(safe-area-inset-left, 0px) + 10px));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.live-map-head .eyebrow {
  margin-bottom: 1px;
}
.live-map-head h2 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
}
.live-map-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}
.live-map-close:hover,
.live-map-close:focus-visible {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
  outline: none;
}
#liveMapPanel {
  padding: 18px;
}

@media (max-width: 620px) {
  header {
    gap: 9px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-actions {
    gap: 4px;
  }
  .net {
    padding: 6px 8px;
  }
  .live-map-scrim {
    align-items: stretch;
    padding: 0;
  }
  .live-map-dialog {
    max-height: none;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  #liveMapPanel {
    padding: 10px;
  }
}

/* floating add */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  background: linear-gradient(150deg, var(--brass), #a9842f);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 8px;
}
.fab.on {
  display: inline-flex;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 80px);
  z-index: 2100;
  background: var(--raised);
  border: 1px solid var(--brass);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.3s;
  opacity: 0;
}
.toast.on {
  transform: translate(-50%, 0);
  opacity: 1;
}
hr.div {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

/* ---------- Map ---------- */
.map {
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d2531;
  margin-bottom: 14px;
  position: relative;
  z-index: 0;
}
.leaflet-container {
  background: #0d2531;
  font-family: var(--mono);
}
.leaflet-tile {
  filter: brightness(0.82) contrast(1.05) saturate(0.9);
}
.leaflet-control-attribution {
  background: rgba(11, 30, 40, 0.7) !important;
  color: var(--dim) !important;
  font-size: 9px;
}
.leaflet-control-attribution a {
  color: var(--muted) !important;
}
.leaflet-bar a {
  background: var(--panel) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #0b1e28;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.pin b {
  transform: rotate(45deg);
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  color: #0b1e28;
}
.pin.start {
  background: var(--teal);
}
.pin.end {
  background: var(--brass);
}
.advmap {
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 10px;
}
.advmap .leaflet-container {
  background: #0d2531;
}
.segbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.segbtn {
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: var(--body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.segbtn.on {
  background: var(--brass);
  border-color: var(--brass);
  color: #0b1e28;
  font-weight: 600;
}
.advlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 14px;
}
.lchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.lchip i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.fix {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid #0b1e28;
  box-shadow: 0 0 0 2px rgba(226, 106, 78, 0.3);
}
.wpt {
  width: 12px;
  height: 12px;
  background: var(--brass);
  border: 2px solid #0b1e28;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.wproute {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  border: 2px solid #0b1e28;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-content-wrapper {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.leaflet-popup-tip {
  background: var(--raised);
}
.leaflet-popup-content {
  margin: 9px 12px;
  font-family: var(--body);
  font-size: 13px;
}
.leaflet-popup-content .pt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
}
.leaflet-popup-close-button {
  color: var(--muted) !important;
}
.maptip {
  font-size: 12px;
  color: var(--dim);
  margin: -6px 0 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---------- Fleet / PMS ---------- */
.grp {
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.grp h3 {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.grp .ln {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.asset {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
}
.asset .ic {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.asset .mid {
  flex: 1;
  min-width: 0;
}
.asset .mid b {
  font-weight: 600;
  display: block;
}
.asset .mid span {
  font-size: 12.5px;
  color: var(--muted);
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}
.chip.ok {
  color: var(--teal);
  border-color: rgba(79, 176, 165, 0.4);
  background: rgba(79, 176, 165, 0.08);
}
.chip.soon {
  color: var(--brass);
  border-color: rgba(201, 162, 75, 0.4);
  background: rgba(201, 162, 75, 0.1);
}
.chip.over {
  color: var(--coral);
  border-color: rgba(226, 106, 78, 0.5);
  background: rgba(226, 106, 78, 0.12);
}
.chip.fault {
  color: #fff;
  border-color: var(--coral);
  background: var(--coral);
}
.dotline {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.hubtabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.hubtabs::-webkit-scrollbar {
  display: none;
}
.htab {
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.htab[aria-selected='true'] {
  color: var(--text);
  border-color: var(--brass);
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.kv:last-child {
  border-bottom: none;
}
.kv .k {
  color: var(--muted);
}
.kv .v {
  font-family: var(--mono);
  text-align: right;
}
.sched .top,
.taskc .top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sched .top b,
.taskc .top b {
  flex: 1;
  font-weight: 600;
}
.prio {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.prio.high {
  color: var(--coral);
  border-color: rgba(226, 106, 78, 0.5);
}
.prio.med {
  color: var(--brass);
  border-color: rgba(201, 162, 75, 0.4);
}
.taskc.done b {
  text-decoration: line-through;
  color: var(--muted);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: transparent;
  font-size: 13px;
}
.taskc.done .check {
  background: var(--teal);
  border-color: var(--teal);
  color: #0b1e28;
}
.evrow {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.evrow:last-child {
  border-bottom: none;
}
.evrow .eic {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  font-size: 14px;
}
.evrow.fault .eic {
  border-color: var(--coral);
}
.evrow .estamp {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container {
  overflow: hidden;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
  background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
  image-rendering: -webkit-optimize-contrast;
}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
  width: 1600px;
  height: 1600px;
  -webkit-transform-origin: 0 0;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
}

.leaflet-container img.leaflet-tile {
  /* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
  mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
  -ms-touch-action: pan-x pan-y;
  touch-action: pan-x pan-y;
}
.leaflet-container.leaflet-touch-drag {
  -ms-touch-action: pinch-zoom;
  /* Fallback for FF which doesn't support pinch-zoom */
  touch-action: none;
  touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  -ms-touch-action: none;
  touch-action: none;
}
.leaflet-container {
  -webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
  -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-zoom-box {
  width: 0;
  height: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 800;
}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
  -moz-user-select: none;
}

.leaflet-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}
.leaflet-overlay-pane {
  z-index: 400;
}
.leaflet-shadow-pane {
  z-index: 500;
}
.leaflet-marker-pane {
  z-index: 600;
}
.leaflet-tooltip-pane {
  z-index: 650;
}
.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-map-pane canvas {
  z-index: 100;
}
.leaflet-map-pane svg {
  z-index: 200;
}

.leaflet-vml-shape {
  width: 1px;
  height: 1px;
}
.lvml {
  behavior: none;
  display: inline-block;
  position: absolute;
}

/* control positioning */

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top {
  top: 0;
}
.leaflet-right {
  right: 0;
}
.leaflet-bottom {
  bottom: 0;
}
.leaflet-left {
  left: 0;
}
.leaflet-control {
  float: left;
  clear: both;
}
.leaflet-right .leaflet-control {
  float: right;
}
.leaflet-top .leaflet-control {
  margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
  margin-left: 10px;
}
.leaflet-right .leaflet-control {
  margin-right: 10px;
}

/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
  opacity: 0;
  -webkit-transition: opacity 0.2s linear;
  -moz-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
  opacity: 1;
}
.leaflet-zoom-animated {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}
svg.leaflet-zoom-animated {
  will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
  transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.leaflet-zoom-anim .leaflet-zoom-hide {
  visibility: hidden;
}

/* cursors */

.leaflet-interactive {
  cursor: pointer;
}
.leaflet-grab {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
  cursor: crosshair;
}
.leaflet-popup-pane,
.leaflet-control {
  cursor: auto;
}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
  cursor: move;
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
  pointer-events: none;
}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
  pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
  pointer-events: auto;
}

/* visual tweaks */

.leaflet-container {
  background: #ddd;
  outline-offset: 1px;
}
.leaflet-container a {
  color: #0078a8;
}
.leaflet-zoom-box {
  border: 2px dotted #38f;
  background: rgba(255, 255, 255, 0.5);
}

/* general typography */
.leaflet-container {
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* general toolbar styles */

.leaflet-bar {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
}
.leaflet-bar a {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  width: 26px;
  height: 26px;
  line-height: 26px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  display: block;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background-color: #f4f4f4;
  color: #bbb;
}

.leaflet-touch .leaflet-bar a {
  width: 30px;
  height: 30px;
  line-height: 30px;
}
.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font:
    bold 18px 'Lucida Console',
    Monaco,
    monospace;
  text-indent: 1px;
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 22px;
}

/* layers control */

.leaflet-control-layers {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
  border-radius: 5px;
}
.leaflet-control-layers-toggle {
  background-image: none;
  width: 36px;
  height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
  background-image: none;
  background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
  width: 44px;
  height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
  display: block;
  position: relative;
}
.leaflet-control-layers-expanded {
  padding: 6px 10px 6px 6px;
  color: #333;
  background: #fff;
}
.leaflet-control-layers-scrollbar {
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 5px;
}
.leaflet-control-layers-selector {
  margin-top: 2px;
  position: relative;
  top: 1px;
}
.leaflet-control-layers label {
  display: block;
  font-size: 13px;
  font-size: 1.08333em;
}
.leaflet-control-layers-separator {
  height: 0;
  border-top: 1px solid #ddd;
  margin: 5px -10px 5px -6px;
}

/* Default icon URLs */
.leaflet-default-icon-path {
  /* used only in path-guessing heuristic, see L.Icon.Default */
  background-image: none;
}

/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
  background: #fff;
  background: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
  padding: 0 5px;
  color: #333;
  line-height: 1.4;
}
.leaflet-control-attribution a {
  text-decoration: none;
}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
  text-decoration: underline;
}
.leaflet-attribution-flag {
  display: inline !important;
  vertical-align: baseline !important;
  width: 1em;
  height: 0.6669em;
}
.leaflet-left .leaflet-control-scale {
  margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
  margin-bottom: 5px;
}
.leaflet-control-scale-line {
  border: 2px solid #777;
  border-top: none;
  line-height: 1.1;
  padding: 2px 5px 1px;
  white-space: nowrap;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px #fff;
}
.leaflet-control-scale-line:not(:first-child) {
  border-top: 2px solid #777;
  border-bottom: none;
  margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
  border-bottom: 2px solid #777;
}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: 2px solid rgba(0, 0, 0, 0.2);
  background-clip: padding-box;
}

/* popup */

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 12px;
}
.leaflet-popup-content {
  margin: 13px 24px 13px 20px;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}
.leaflet-popup-content p {
  margin: 17px 0;
  margin: 1.3em 0;
}
.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}
.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;

  margin: -10px auto 0;
  pointer-events: auto;

  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: white;
  color: #333;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}
.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  font:
    16px/24px Tahoma,
    Verdana,
    sans-serif;
  color: #757575;
  text-decoration: none;
  background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
  color: #585858;
}
.leaflet-popup-scrolled {
  overflow: auto;
}

.leaflet-oldie .leaflet-popup-content-wrapper {
  -ms-zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
  width: 24px;
  margin: 0 auto;

  -ms-filter: 'progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)';
  filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
  border: 1px solid #999;
}

/* div icon */

.leaflet-div-icon {
  background: #fff;
  border: 1px solid #666;
}

/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
  position: absolute;
  padding: 6px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #222;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.leaflet-tooltip.leaflet-interactive {
  cursor: pointer;
  pointer-events: auto;
}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  position: absolute;
  pointer-events: none;
  border: 6px solid transparent;
  background: transparent;
  content: '';
}

/* Directions */

.leaflet-tooltip-bottom {
  margin-top: 6px;
}
.leaflet-tooltip-top {
  margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
  left: 50%;
  margin-left: -6px;
}
.leaflet-tooltip-top:before {
  bottom: 0;
  margin-bottom: -12px;
  border-top-color: #fff;
}
.leaflet-tooltip-bottom:before {
  top: 0;
  margin-top: -12px;
  margin-left: -6px;
  border-bottom-color: #fff;
}
.leaflet-tooltip-left {
  margin-left: -6px;
}
.leaflet-tooltip-right {
  margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  top: 50%;
  margin-top: -6px;
}
.leaflet-tooltip-left:before {
  right: 0;
  margin-right: -12px;
  border-left-color: #fff;
}
.leaflet-tooltip-right:before {
  left: 0;
  margin-left: -12px;
  border-right-color: #fff;
}

/* Printing */

@media print {
  /* Prevent printers from removing background-images of controls. */
  .leaflet-control {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.rental-crew-section{margin:0 0 18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.rental-crew-section-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}.rental-crew-section-head>div:first-child{flex:1}.rental-crew-section-head h3{margin:3px 0 5px;font-family:var(--display);font-size:20px;color:var(--text)}.rental-crew-section-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.rental-crew-refresh{padding:7px 11px;white-space:nowrap}
.rental-crew-trip-list{display:grid;gap:10px}.rental-crew-trip{margin:0;padding:16px;background:var(--bg)}.rental-crew-trip-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.rental-crew-trip-head h3{margin:3px 0 5px;font-family:var(--display);font-size:17px;color:var(--text)}.rental-crew-trip-meta{margin:0;color:var(--muted);font-size:13px}.rental-crew-trip-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.rental-crew-trip-dates>div{display:grid;gap:3px;padding-top:10px;border-top:1px solid var(--line)}.rental-crew-trip-dates span,.rental-crew-trip-copy span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}.rental-crew-trip-dates b{font-size:13px;color:var(--text)}.rental-crew-trip-dates small{color:var(--muted);line-height:1.4}.rental-crew-warning-line{margin-top:13px;font-size:12px;color:var(--muted)}.rental-crew-warning-line.has-warnings{color:var(--coral);font-weight:600}.rental-crew-trip-details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.rental-crew-trip-details summary{cursor:pointer;color:var(--teal);font-size:13px;font-weight:600}.rental-crew-trip-copy{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.rental-crew-trip-copy p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5;white-space:pre-wrap}.rental-crew-error{display:grid;gap:5px;margin:0 0 18px;color:var(--coral)}.rental-crew-error span{font-size:13px;color:var(--muted)}
@media(max-width:620px){.rental-crew-section-head{display:grid}.rental-crew-refresh{justify-self:start}.rental-crew-trip-head{display:grid}.rental-crew-trip-dates,.rental-crew-trip-copy{grid-template-columns:1fr}}
