:root {
  --navy: #0b2a3c;
  --sea: #0e6e8c;
  --sand: #f6efe2;
  --ink: #10202b;
  --muted: #5a6b76;
  --card: #fff;
  --ok: #1f8a4c;
  --warn: #c98a00;
  --hot: #d0541b;
  --bad: #b3261e;
  --ex: #7a3fb3;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --header-body: 70px;
  --header-height: calc(var(--sat) + var(--header-body));
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font:
    19px/1.35 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    Segoe UI,
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: calc(var(--sat) + 10px) 16px 10px;
}
header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 800;
}
header h1 .appver {
  margin-left: 6px;
}
header .capline {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
main {
  padding: 12px 12px calc(var(--sab) + 90px);
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 21;
  display: flex;
  background: #fff;
  border-top: 1px solid #ddd;
  padding-bottom: var(--sab);
}
nav a {
  flex: 1;
  text-align: center;
  padding: 8px 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
nav a b {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}
nav a.on {
  color: var(--sea);
  font-weight: 700;
}
h2 {
  font-size: 20px;
  margin: 18px 4px 8px;
  color: var(--navy);
}
h2 small {
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  margin: 0 0 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.banner {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-weight: 600;
}
.banner.alert {
  background: #fde7e4;
  color: #8b1a16;
  border: 2px solid #8b1a16;
}
.banner.alert .ahd {
  font-weight: 400;
  font-size: 15px;
  margin-top: 4px;
}
.banner.clear {
  background: #e3f4ea;
  color: #146c3a;
}
.banner.ex {
  background: #f1e8fb;
  color: var(--ex);
  border: 2px dashed var(--ex);
  font-size: 15.5px;
}
.tag-ex {
  display: inline-block;
  background: var(--ex);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.trip.now {
  border-left-color: #1f8a4c;
}

/* Windy-style hourly forecast board (NWS data, dark navy, WCAG AA). */
.wxfc {
  margin-top: 6px;
  background: #0b2a3c;
  color: #fff;
  border-radius: 16px;
  padding: 10px 0 8px;
  overflow: visible;
}
.wxfc-now {
  padding: 4px 12px 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.wxfc-src {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #9eb0bb;
  margin-top: 4px;
}
.wxfc-days {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 8px 10px;
  -webkit-overflow-scrolling: touch;
}
.wxfc-day {
  flex: 0 0 auto;
  min-width: 46px;
  border: 0;
  background: transparent;
  color: #d7e3ea;
  border-radius: 10px;
  padding: 8px 8px;
  font-size: 16px;
  font-weight: 800;
}
.wxfc-day b,
.wxfc-day span {
  display: block;
  text-align: center;
}
.wxfc-day.on {
  background: #1f7a4c;
  color: #fff;
}
.wxfc-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 12px 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.wxfc-1h {
  background: #16384c;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 16px;
}
.wxfc-board {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.wxfc-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
}
.wxfc-row {
  display: flex;
  align-items: stretch;
  min-height: 42px;
}
.wxfc-table .wxfc-row {
  display: table-row;
}
.wxfc-lab {
  flex: 0 0 94px;
  width: 94px;
  min-width: 94px;
  max-width: 94px;
  box-sizing: border-box;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #0b2a3c;
  color: #d7e3ea;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 6px;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.wxfc-table .wxfc-lab {
  display: table-cell;
  vertical-align: middle;
}
.wxfc-col {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  padding: 6px 2px;
  box-sizing: border-box;
}
.wxfc-table .wxfc-col {
  display: table-cell;
  vertical-align: middle;
}
.wxfc-head .wxfc-col b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.wxfc-head .wxfc-col span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #9eb0bb;
}
.wxfc-col.hi {
  background: rgba(255, 255, 255, 0.1);
}
.wxfc-fill {
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px #0b2a3c;
  padding: 8px 2px;
}
.wxfc-arr {
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.wxfc-arr.empty {
  opacity: 0.4;
}
.wxfc-ico {
  font-size: 22px;
  line-height: 1.15;
}
.wxfc-sky .wxfc-col small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 2px;
}
.wxfc-note {
  padding: 8px 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #9eb0bb;
  line-height: 1.35;
}
.wxfc-empty {
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
}
.tile .k {
  font-size: 14px;
  color: var(--muted);
}
.tile .v {
  font-size: 28px;
  font-weight: 700;
}
.tile .s {
  font-size: 14px;
  color: var(--muted);
}
.trip {
  border-left: 8px solid var(--sea);
}
.trip.done {
  opacity: 0.55;
}
.trip.next {
  border-left-color: var(--hot);
}
.trip .time {
  font-size: 30px;
  font-weight: 800;
}
.trip .tour {
  font-size: 21px;
  font-weight: 700;
}
.trip .who {
  font-size: 18px;
}
.trip .meta {
  font-size: 15.5px;
  color: var(--muted);
  margin-top: 4px;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 15px;
  font-weight: 700;
  margin: 6px 6px 0 0;
  background: #eef3f6;
}
.w-ok {
  background: #e3f4ea;
  color: #146c3a;
}
.w-warn {
  background: #fff3d6;
  color: #6b4700;
}
.w-hot {
  background: #fde3d4;
  color: #9a3412;
}
.w-bad {
  background: #fde7e4;
  color: #8b1a16;
}
.captain {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 8px;
  font-size: 15.5px;
}
.captain b {
  color: #8a5d00;
}
.guestnote {
  word-break: break-word;
}
.guestnote .notebody {
  margin-top: 2px;
  font-weight: 600;
  color: var(--ink);
  white-space: pre-wrap;
}
.guestnote summary {
  cursor: pointer;
  list-style: none;
}
.guestnote summary::-webkit-details-marker,
.guestnote summary::marker {
  display: none;
}
.guestnote[open] summary .notebody {
  display: none;
}
.guestnote .notefull {
  margin-top: 6px;
}
.guestnote small {
  font-weight: 400;
  color: #8a5d00;
}
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-size: 19px;
  font-weight: 700;
  margin-top: 10px;
  background: var(--sea);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.btn.alt {
  background: #e7f0f4;
  color: var(--navy);
}
.btn.copied {
  background: var(--ok);
}
.txt {
  white-space: pre-wrap;
  background: #f3f6f8;
  border-radius: 12px;
  padding: 12px;
  font-size: 17px;
  margin-top: 8px;
}
.txtlabel {
  font-weight: 700;
  margin-top: 14px;
  font-size: 17px;
}
.week .day {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 10px;
}
.week .d {
  width: 62px;
  flex: none;
  text-align: center;
  border-right: 1px solid #e3e8eb;
  padding-right: 8px;
}
.week .d .dow {
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}
.week .d .dn {
  font-size: 30px;
  font-weight: 800;
}
.week .d .wx {
  font-size: 13px;
  color: var(--muted);
}
.week .today .d .dn {
  color: var(--hot);
}
.week .chips {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chip {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #eef6f9;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 16.5px;
}
.chip b {
  font-size: 17px;
}
.chip.bear {
  background: #eef4e6;
}
.none {
  color: var(--muted);
  font-size: 16px;
  padding: 6px 0;
}
table.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
table.hours td,
table.hours th {
  padding: 8px 4px;
  border-bottom: 1px solid #e8ecef;
  text-align: center;
}
table.hours th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
table.hours tr.dayrow td {
  background: #eef3f6;
  font-weight: 700;
  text-align: left;
}
.arrow {
  display: inline-block;
  font-weight: 900;
}
.frame {
  width: 100%;
  height: 430px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #cfe3ea;
}
#radarmap {
  height: 430px;
  border-radius: 14px;
}
.seg {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px;
}
.seg button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  font-weight: 700;
  background: #e7f0f4;
  color: var(--navy);
}
.seg button.on {
  background: var(--navy);
  color: #fff;
}
.tiderow {
  display: flex;
  justify-content: space-between;
  padding: 9px 2px;
  border-bottom: 1px solid #eef1f3;
  font-size: 18px;
}
.tiderow .H {
  color: var(--sea);
  font-weight: 700;
}
.tiderow .L {
  color: var(--muted);
  font-weight: 700;
}
.mz p {
  margin: 6px 0 12px;
}
.mz .chop {
  background: #e7f0f4;
  border-radius: 8px;
  padding: 2px 6px;
  font-weight: 700;
}
.src {
  font-size: 13px;
  color: var(--muted);
  margin: 4px;
}
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  display: none;
  overflow: hidden;
}
.sheet.on {
  display: block;
}
.sheet .panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: max(40px, env(safe-area-inset-top));
  background: var(--sand);
  border-radius: 18px 18px 0 0;
  overflow: auto;
  padding: 14px 14px calc(var(--sab) + 40px);
}
.close {
  float: right;
  border: 0;
  background: #dde6ea;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 22px;
}
.login {
  max-width: 420px;
  margin: 60px auto;
  padding: 20px;
}
.login input {
  width: 100%;
  font-size: 22px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #bbb;
  margin: 10px 0;
}
.tday {
  scroll-margin-top: 80px;
}

.photobtn {
  font-size: 22px;
  padding: 18px;
  margin: 12px 0 4px;
}
.lbl {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.sel {
  width: 100%;
  font-size: 17px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cdd;
}
.phgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ph {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
}
.ph img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e7f0f4;
}
.ph small {
  display: block;
  padding: 3px 5px;
  word-break: break-all;
  color: var(--muted);
}
.bar {
  height: 5px;
  background: #e7f0f4;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--sea);
}
nav a {
  font-size: 11.5px;
}

.trip.cal {
  border-left-color: #6b5b95;
  background: #f7f4fc;
}
.tag-cal {
  display: inline-block;
  background: #6b5b95;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.chip.cal {
  background: #f0ebf8;
  border: 1px solid #d5cce8;
}
.chip.cal b {
  color: #6b5b95;
}

/* Final check (trip completed + tip) */
.pill.check-ok {
  background: #e3f4ea;
  color: var(--ok);
}
.pill.tip-yes {
  background: #e7f0f4;
  color: var(--navy);
}
.pill.tip-no {
  background: #f3f6f8;
  color: var(--muted);
}
.trip.checked {
  border-left-color: var(--ok);
}
.chip.checked {
  background: #e3f4ea;
}
.btn.check {
  background: var(--ok);
  color: #fff;
}
.checkform .chkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.checkform .chkrow input {
  width: 22px;
  height: 22px;
}
.checkform textarea.notes {
  width: 100%;
  font: 17px/1.35 system-ui;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cdd;
  resize: vertical;
  margin-top: 4px;
}

/* Trip archive */
.arch-filters .lbl {
  margin-top: 8px;
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.arch-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.arch-totals span {
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.arch-row {
  display: block;
  text-decoration: none;
  color: inherit;
  border-left: 8px solid var(--sea);
}
.arch-row.checked {
  border-left-color: var(--ok);
}
nav a {
  font-size: 10.5px;
}
.pill.conf-hard {
  background: #fde7e4;
  color: var(--bad);
  border: 1px solid var(--bad);
  white-space: normal;
}
.pill.conf-soft {
  background: #f1e8fb;
  color: #6b5b95;
  white-space: normal;
}
.card.conf {
  border-left: 6px solid var(--bad);
}
.card.note {
  background: #fff8e6;
  font-size: 16px;
}
.banner.newbk {
  display: block;
  text-decoration: none;
  background: #e3f0fb;
  color: #0b2a3c;
  border: 2px solid #0e6e8c;
}
.btn.decline {
  background: #fff;
  color: #b3261e;
  border: 2px solid #b3261e;
}
.apv .hint {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 6px;
}
.card.pending {
  border-left: 6px solid #d0541b;
  background: #fff8f2;
}
.pendbox {
  margin: 8px 0;
}

/* Business sub-pages (Referral Clicks, Swansboro, Map) */
body.subpage nav {
  display: none;
}
body.subpage main {
  padding-bottom: calc(var(--sab) + 24px);
}
@media (min-width: 760px) {
  body.subpage main {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Bottom tab bar + glance cards + Weather sub-tabs */
nav.tabs {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  padding: 0 max(var(--sar), 4px) var(--sab) max(var(--sal), 4px);
}
nav.tabs a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
nav.tabs a b {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 2px;
  filter: grayscale(0.6);
  opacity: 0.75;
}
nav.tabs a.on {
  color: var(--sea);
  font-weight: 800;
}
nav.tabs a.on b {
  filter: none;
  opacity: 1;
}
nav.tabs a.on::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--sea);
}
main {
  padding-bottom: calc(var(--sab) + 84px);
}
.glance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}
.glance .k {
  font-size: 14px;
  color: var(--muted);
}
.glance .v {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}
.glance .go {
  font-size: 30px;
  color: var(--muted);
  padding-left: 8px;
}
.glance.cond .mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 21px;
  font-weight: 700;
}
.glance.cond small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
h2 small a {
  color: var(--sea);
  text-decoration: none;
  font-weight: 600;
}
.quick {
  display: flex;
  gap: 8px;
}
.quick .btn {
  flex: 1;
  margin: 4px 0 !important;
  font-size: 17px;
  padding: 13px 6px;
}
.subtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -12px 8px;
  padding: 2px 12px 6px;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar {
  display: none;
}
.subtabs a {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: #e7f0f4;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.subtabs a.on {
  background: var(--navy);
  color: #fff;
}
.apvrow {
  display: flex;
  gap: 8px;
}
.apvrow .btn {
  flex: 1;
  margin-top: 10px;
}
.apv > .btn.alt {
  margin-top: 8px;
}

/* In-app camera (Trip Photos) */
body.camon {
  overflow: hidden;
}
#camview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.camstage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camframe {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #000;
  flex: none;
}
.camframe video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform-origin: center center;
  will-change: transform;
}
.camflash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.camflash.on {
  animation: camfl 0.18s ease-out;
}
@keyframes camfl {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
  }
}
.camtop {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--sat) + 10px) 14px 10px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.camtrip {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.camcount {
  min-width: 44px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 4px 12px;
}
.cammsg {
  position: relative;
  z-index: 2;
  margin: auto 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 17px;
  text-align: center;
}
.cambottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px calc(var(--sab) + 12px);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65) 35%);
}
.camzoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.camztitle {
  flex: none;
  font-size: 16px;
  font-weight: 800;
}
.camzbtn {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 48px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.camzbtn:active {
  transform: scale(0.94);
}
.camzbtn:disabled {
  opacity: 0.35;
}
.camzwide {
  flex: none;
  min-width: 52px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  padding: 0 10px;
  -webkit-tap-highlight-color: transparent;
}
.camzwide.on {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
}
#camzrange {
  flex: 1;
  height: 44px;
  margin: 0;
  accent-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
#camzrange::-webkit-slider-runnable-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 99px;
}
#camzrange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
#camzrange::-moz-range-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  border: 0;
}
#camzrange::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.camzlabel {
  flex: none;
  min-width: 52px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.camstrip {
  display: flex;
  gap: 6px;
  overflow: hidden;
  height: 56px;
  margin-bottom: 10px;
}
.camstrip img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  flex: none;
}
.camctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.camspacer {
  width: 84px;
}
.camshutter {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.camshutter:active {
  transform: scale(0.92);
  background: #fff;
}
.camshutter:disabled {
  opacity: 0.4;
}
.camdone {
  width: 84px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}
.camnote {
  text-align: center;
  font-size: 12.5px;
  opacity: 0.8;
  margin-top: 8px;
}
.camtimer {
  min-width: 92px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 4px 12px;
}
.camtimer.on {
  color: #ff4d4d;
}
.camrecflag {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #ff4d4d;
  letter-spacing: 0.04em;
}
.camrecflag.on {
  display: flex;
}
.camrecflag i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.25);
}
.camrec {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: #e02323;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.camrec:active {
  transform: scale(0.92);
}
.camrec:disabled {
  opacity: 0.4;
}
.camrec.on {
  background: #fff;
}
.camrec.on::after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  background: #e02323;
  border-radius: 6px;
}
.camstrip video {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  flex: none;
  background: #000;
}

/* Home sync row */
.syncrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
  font-size: 14px;
  color: var(--muted);
}
.syncbtn {
  border: 0;
  border-radius: 999px;
  background: #e7f0f4;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 14px;
  min-height: 40px;
}
.syncbtn:disabled {
  opacity: 0.6;
}

/* Passenger Manifest */
#mfview {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #fff;
  overflow: auto;
  padding: calc(var(--sat) + 10px) 14px calc(var(--sab) + 24px);
}
.mfbar {
  display: flex;
  gap: 8px;
}
.mfbar .btn {
  flex: 1;
  margin: 0;
  padding: 12px 6px;
  font-size: 16px;
}
.mfsheet h2 {
  margin: 16px 0 6px;
}
.mfhead {
  font-size: 16.5px;
  margin: 6px 0 10px;
  line-height: 1.45;
}
.mftable {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.mftable th {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid #0b2a3c;
  padding: 6px 4px;
}
.mftable td {
  border-bottom: 1px solid #e3e8eb;
  padding: 9px 4px;
  vertical-align: top;
}
.mftable td.n {
  width: 28px;
  color: var(--muted);
}
.mftable td.age {
  white-space: nowrap;
  text-align: right;
}
.mftable small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.mfflag {
  font-size: 13.5px;
  color: #8a5d00;
  margin-top: 2px;
}
@media print {
  body.mfon > *:not(#mfview) {
    display: none !important;
  }
  #mfview {
    position: static;
    padding: 0;
  }
  .noprint {
    display: none !important;
  }
  .mftable {
    font-size: 13pt;
  }
}

/* Referral Clicks: two-direction summary, plain language, phone-first */
.clklead {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 4px 14px;
}
.clkwho {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
  margin: 4px 0 10px;
}
.clkgrp .gh {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 2px;
}
.clkgrp.out {
  border-left: 6px solid var(--sea);
}
.clkgrp.in {
  border-left: 6px solid var(--ok);
}
.clkgrp .grid,
.clktiles {
  margin: 4px 0 12px;
}
.clkgrp .tile {
  background: #f4f8fa;
}
.clkurl {
  word-break: break-all;
  font-size: 15px;
  color: var(--navy);
  margin: 8px 0 4px;
  line-height: 1.4;
}
.clkfrom {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.clkbar {
  display: flex;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 10px;
}
.clklist .tiderow > span:first-child {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}
.clklist .tiderow > span:nth-child(2),
.clklist .tiderow > span:nth-child(3) {
  flex: none;
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}
.clklist .clkhead {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid #e3e8eb;
}
.addin {
  margin-top: 10px;
}
.addin summary {
  font-weight: 700;
  color: var(--sea);
  padding: 8px 0;
  cursor: pointer;
  font-size: 17px;
}
.addin.card {
  padding-top: 8px;
  padding-bottom: 14px;
}

/* Shared Trip Photos gallery */
.phbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}
.phbar .btn {
  margin: 0;
  flex: 0 0 auto;
}
.phday {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.phday small {
  font-weight: 600;
  color: var(--muted);
}
.phvid {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 16px;
}
.phchk {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
  border: 2px solid var(--sea);
  color: var(--sea);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ph.on {
  outline: 3px solid var(--sea);
  outline-offset: -3px;
}
.phsharebar {
  position: sticky;
  bottom: calc(70px + var(--sab));
  z-index: 20;
  background: var(--bg, #f4f7f8);
  padding: 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.phsharebar .photobtn {
  margin: 0;
}
#phview {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
}
#phview .phviewbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  flex-wrap: wrap;
}
#phview .phviewbar .btn,
#phview .phviewbar .photobtn {
  margin: 0;
}
#phview .phviewmeta {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}
#phview .phviewmeta span {
  font-weight: 500;
  color: #c8d0d4;
}
#phview .phmedia {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px;
}
#phview .phmedia img,
#phview .phmedia video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}
#phview .phsharestat,
.phsharestat {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 8px;
}
#phview .phsharestat {
  color: #c8d0d4;
}
.ph {
  cursor: pointer;
}

/* Month grid */
.calseg {
  margin: 4px 0 12px;
}
.mcalhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}
.mcalhead h2 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 20px;
}
.mcalhead .btn {
  margin: 0;
  width: auto;
  padding: 8px 12px;
  flex: 0 0 auto;
}
.mcaldow,
.mcal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.mcaldow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.mcal {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  overflow: visible;
}
.mcell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  min-height: 72px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 3px;
  border: 2px solid transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mcell.out {
  opacity: 0.45;
}
.mcell.today {
  border-color: var(--hot, #d0541b);
}
.mcell.on {
  border-color: var(--sea, #1a6b8a);
  background: #eef6f9;
}
.mcell .dn {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.mcell.today .dn {
  color: var(--hot, #d0541b);
}
.mtrip {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.mtrip.cal {
  color: #6b5b95;
}
.mcount {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy, #0b2a3c);
}

.phwait {
  display: inline-block;
  margin-left: 8px;
  background: #c45c00;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}
.phstor {
  display: block;
  margin-top: 8px;
  color: var(--muted, #667);
  font-size: 13px;
  line-height: 1.35;
}
.phph {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #123;
  color: #fff;
  font-size: 28px;
}

.paybox .txtlabel {
  margin-bottom: 6px;
}

html {
  scroll-padding-top: var(--header-height);
}
.homeback {
  position: sticky;
  top: var(--header-height);
  z-index: 15;
  margin: 0 -12px 14px;
  padding: 8px 12px 10px;
  background: var(--sand);
}
.homeback a.btn,
.homeback .btn {
  display: inline-block;
  text-decoration: none;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 700;
}
body:not(:has(> header)) .homeback {
  top: 0;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
}
body.staticpage {
  padding: calc(var(--sat) + 24px) 24px calc(var(--sab) + 24px);
  max-width: 720px;
  margin: 0 auto;
}

.appver {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #667);
  letter-spacing: 0.02em;
}
h1 .appver {
  margin-left: 6px;
  vertical-align: middle;
}
.mcalhead h2 .appver {
  display: inline;
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
}

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  color: #0b2a3c;
  overflow: auto;
  font-family: system-ui, sans-serif;
  padding: 0 16px calc(var(--sab) + 24px);
  box-sizing: border-box;
}
.app-sheet-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: calc(var(--sat) + 10px) 0 10px;
}
.app-sheet-bar h2 {
  flex: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.app-sheet-bar .btn {
  flex: 0 0 auto;
  margin: 0;
}
.login {
  scroll-margin-top: calc(var(--sat) + 20px);
}

/* Trip photos: delete confirm, uploading cancel, trip camera buttons, recording bar */
.btn.danger {
  background: #b3261e;
  color: #fff;
}
.btn.danger:disabled {
  opacity: 0.45;
}
#phconfirm {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#phconfirm .phcbox {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
#phconfirm h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--navy);
}
#phconfirm p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
  color: #333;
}
#phconfirm .phcbtns {
  display: flex;
  gap: 10px;
}
#phconfirm .phcbtns .btn {
  margin-top: 4px;
  flex: 1;
  padding: 14px 8px;
}
.phcancel {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #e3e8ea;
  background: #fff;
  color: #b3261e;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 4px;
}
.tmbtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tmbtns .btn,
.tmbtns label.btn {
  flex: 1;
  margin-top: 0;
  text-align: center;
}
.tmbtns-alt {
  margin-top: 8px;
}
.tmbtns-alt .btn {
  font-weight: 500;
  opacity: 0.95;
}
#recbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--sat) + 8px) 14px 8px;
  background: #b3261e;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
#recbar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  animation: recblink 1s infinite;
}
#recbar .rbt {
  flex: 1;
  font-variant-numeric: tabular-nums;
}
#recbar .rbstop {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #b3261e;
  font-weight: 800;
  font-size: 16px;
  padding: 8px 14px;
}
@keyframes recblink {
  50% {
    opacity: 0.25;
  }
}
body.recon .camtop {
  margin-top: 38px;
}
.phsharebar .photobtn {
  background: var(--sea);
  color: #fff;
  border: 0;
  border-radius: 14px;
  width: 100%;
  font-weight: 700;
  font-size: 19px;
  padding: 14px;
}
.phsharebar .photobtn:disabled {
  opacity: 0.45;
}
.phsharebar .btn {
  margin-top: 0;
}

/* Garmin-style tide graph on customer trip cards (start-time marker). */
.tidecard {
  background: #000;
  border-radius: 12px;
  padding: 10px 8px 8px;
  margin: 10px 0 8px;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.tidecard svg {
  display: block;
  width: 100%;
  height: 72px;
}
.tidecard-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  line-height: 1;
}
.tidecard-label b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.tidecard-label span {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  opacity: 0.95;
}
.tideline {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.35;
}

/* Pending, needs a new date */
.card.hold {
  border-left: 6px solid #0e6e8c;
  background: #f4f9fc;
}
.holdmeta {
  font-size: 15px;
  color: var(--muted);
  margin: 3px 0;
}
.holdlabel {
  display: block;
  font-weight: 700;
  margin-top: 10px;
  font-size: 15px;
}
textarea.holdnotes {
  width: 100%;
  box-sizing: border-box;
  min-height: 70px;
  font: 16px/1.35 system-ui;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cdd;
  resize: vertical;
  margin: 6px 0;
}
.holdacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.holdacts .btn {
  flex: 1 1 140px;
  margin: 0;
  text-align: center;
  text-decoration: none;
}
.holdbanner {
  margin-top: 0;
}

/* Home skeleton + trip time wrap */
.skel {
  padding: 4px 0 20px;
}
.skel .sk-banner,
.skel .sk-cell,
.skel .sk-board,
.skel .sk-card {
  background: linear-gradient(90deg, #e8eef1 25%, #f5f7f8 37%, #e8eef1 63%);
  background-size: 400% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-radius: 14px;
}
@keyframes skel {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
.skel .sk-banner {
  height: 72px;
  margin-bottom: 12px;
}
.skel .sk-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.skel .sk-cell {
  flex: 1;
  height: 120px;
}
.skel .sk-board {
  height: 200px;
  margin-bottom: 16px;
}
.skel .sk-card {
  height: 88px;
  margin-bottom: 10px;
}
.card.trip .time .tend {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

/* Map + trip tracks */
.mapbox {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  background: #cfe3ec;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.mapload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  padding: 20px;
  text-align: center;
}
.mappin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mappin > *,
.mappin {
  -webkit-tap-highlight-color: transparent;
}
.mappin.draft {
  outline: 3px dashed #fff;
  outline-offset: 2px;
  animation: pinpulse 1.2s ease-in-out infinite;
}
.mappin.static {
  display: inline-flex;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 8px;
  cursor: default;
  box-shadow: none;
}
@keyframes pinpulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55);
  }
}
.pinhead {
  display: flex;
  align-items: center;
  font-size: 19px;
}
.pinnote {
  font-size: 17px;
  line-height: 1.4;
  margin: 6px 0;
  white-space: pre-wrap;
}
.pinphoto {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 12px;
  margin: 8px 0;
  object-fit: cover;
}
#mappanel .lbl {
  display: block;
  font-weight: 700;
  margin-top: 10px;
  font-size: 15px;
}
#mappanel textarea.sel,
#mappanel input.sel {
  width: 100%;
  box-sizing: border-box;
  font: 16px/1.35 system-ui;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cdd;
  margin-top: 4px;
}
.pinkind button {
  font-size: 14.5px;
  padding: 10px 4px;
}
.maptrk.sel {
  outline: 3px solid #ff6d00;
  outline-offset: -3px;
}
.trkcard .trkrec {
  font-size: 18px;
  line-height: 1.4;
}
.trkcard .trknum {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.trkcard .btn.trkend {
  background: var(--bad);
  font-size: 21px;
  padding: 18px;
}
.trkcard .btn.trkgo2 {
  background: var(--ok);
  font-size: 21px;
  padding: 18px;
}
.rdot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bad);
  margin-right: 8px;
  vertical-align: middle;
  animation: recblink 1.2s ease-in-out infinite;
}
#trkbar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--sab) + 66px);
  z-index: 7;
  align-items: center;
  gap: 10px;
  background: var(--bad);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 16px;
}
#trkbar.late {
  background: #8a5d00;
}
#trkbar .rdot {
  background: #fff;
}
#trkbar .trkt {
  flex: 1;
  font-variant-numeric: tabular-nums;
}
#trkbar small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}
#trkbar .trkgo {
  background: #fff;
  color: var(--bad);
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
}
body.subpage #trkbar {
  bottom: calc(var(--sab) + 10px);
}
.maplibregl-ctrl-attrib {
  font-size: 10px;
}
#mappanel:not(:empty) {
  margin-top: 10px;
}
.mapbox.mini {
  height: 36vh;
  min-height: 220px;
}
#mappanel .card {
  margin: 0 0 6px;
  box-shadow: none;
}

.swb-nav {
  margin: 0 0 12px;
}
.swb-tot-h {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px;
}
.swb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.swb-grid div {
  background: #f4f8fb;
  border-radius: 12px;
  padding: 10px 12px;
}
.swb-grid b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.swb-grid span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.swb-grid .swb-owed {
  background: #fff6e8;
  border: 1px solid #f0d58a;
}
.swb-grid .swb-owed b {
  color: #8a5d00;
}
.swb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.swb-price {
  font-weight: 800;
  font-size: 18px;
}
.swb-trip .tour {
  font-weight: 800;
  margin-top: 6px;
  font-size: 18px;
}
.swb-paid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.swb-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.swb-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--sea);
}
.swb-paid.is-paid {
  border-left: 6px solid #1a7a3a;
  background: #f3faf5;
}

/* ===== Simple layout: Today / Trips / Weather / More. Big tap targets, plain chips. ===== */
nav.tabs a {
  font-size: 13.5px;
}
nav.tabs a b {
  font-size: 26px;
}
.sx-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  margin: 0 0 12px;
  text-decoration: none;
}
.sx-st-t {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sx-st-s {
  flex: 1;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}
.sx-go {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sx-go.sx-ok {
  background: #5ecf88;
  color: #06301a;
}
.sx-go.sx-warn {
  background: #fbbf24;
  color: #3d2a00;
}
.sx-go.sx-bad {
  background: #f87171;
  color: #3b0605;
}
.sx-needs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.sx-need {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-height: 64px;
}
.sx-need b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}
.sx-need.hot {
  background: #fff0cc;
  color: #5c3d00;
}
.sx-small {
  font-size: 14px;
  color: var(--muted);
  margin: -4px 4px 10px;
}
.sx-hero {
  border-left: 8px solid var(--sea);
  padding: 16px;
}
.sx-hero.sx-now {
  border-left-color: var(--ok);
}
.sx-lab {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.sx-lab small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.sx-big {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin: 2px 0;
  color: var(--navy);
}
.sx-big2 {
  font-size: 26px;
}
.sx-big .tend {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}
.sx-tour {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.sx-who {
  font-size: 18px;
  margin-top: 2px;
}
.sx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sx-chip {
  display: inline-block;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  padding: 5px 11px;
  white-space: nowrap;
}
.sx-ok {
  background: #dff3e6;
  color: #146c3a;
}
.sx-warn {
  background: #fff0cc;
  color: #6b4600;
}
.sx-bad {
  background: #fde7e4;
  color: #8b1a16;
}
.sx-gray {
  background: #e9eef1;
  color: #33444f;
}
.sx-sea {
  background: #d8eef5;
  color: #0a5870;
}
.sx-warn:not(.sx-chip):not(.sx-go):not(.sx-hrw) {
  background: #fff6e0;
  color: #6b4600;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
}
.sx-meet {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 10px;
  color: var(--navy);
  text-decoration: none;
}
.sx-meet small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px;
}
.sx-btns {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.sx-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  padding: 12px 6px;
  font-size: 18px;
  font-weight: 800;
  min-height: 54px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.sx-main {
  background: var(--sea);
  color: #fff;
}
.sx-alt {
  background: #e3eef3;
  color: var(--navy);
}
.sx-full {
  width: 100%;
  margin-top: 8px;
}
.sx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  min-height: 64px;
}
.sx-row .sx-tm {
  font-size: 18px;
  font-weight: 800;
  width: 84px;
  flex: none;
  color: var(--navy);
}
.sx-row .sx-nm {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.sx-row .sx-nm small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 14.5px;
}
.sx-row .sx-chip {
  font-size: 13.5px;
  padding: 4px 9px;
}
.sx-row .sx-go {
  font-size: 26px;
  color: var(--muted);
  padding: 0;
}
.sx-row.sx-cal {
  background: #f3eefa;
}
.sx-row.done {
  opacity: 0.6;
}
.sx-link {
  display: block;
  text-align: center;
  font-weight: 800;
  color: var(--sea);
  text-decoration: none;
  padding: 14px;
  font-size: 17px;
}
.sx-empty {
  text-align: center;
  font-size: 18px;
}
.sx-card .sx-btns {
  margin-top: 10px;
}
.sx-card .sx-btn {
  min-height: 50px;
}
.sx-search {
  width: 100%;
  font-size: 18px;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin: 0 0 10px;
  -webkit-appearance: none;
}
.sx-seg {
  display: flex;
  background: #e0e6e9;
  border-radius: 12px;
  padding: 3px;
  margin: 0 0 10px;
}
.sx-seg a {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}
.sx-seg a.on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.sx-day {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 4px 6px;
  letter-spacing: 0.02em;
}
.sx-day span {
  font-weight: 600;
  color: var(--muted);
}
.sx-hours {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.sx-hr {
  flex: 1;
  min-width: 0;
  background: #eef3f6;
  border-radius: 12px;
  padding: 8px 2px;
  text-align: center;
  font-size: 14px;
}
.sx-hr b {
  display: block;
  font-size: 14px;
}
.sx-hrw {
  display: inline-block;
  min-width: 34px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  padding: 2px 4px;
  margin: 4px 0 0;
}
.sx-hr small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.sx-plain {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.sx-v {
  font-size: 19px;
  font-weight: 800;
  margin-top: 4px;
}
.sx-v2 {
  font-size: 16.5px;
  margin-top: 4px;
  line-height: 1.4;
}
.sx-more {
  display: block;
  color: var(--sea);
  font-weight: 800;
  margin-top: 6px;
  font-size: 15px;
}
.sx-det summary {
  font-weight: 800;
  color: var(--sea);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}
.sx-det summary::-webkit-details-marker {
  display: none;
}
.sx-gh {
  margin: 14px 4px 8px;
}
.sx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sx-tile {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 18px;
  padding: 16px 10px 14px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-height: 112px;
}
.sx-tile i {
  display: block;
  font-style: normal;
  font-size: 34px;
  margin-bottom: 4px;
}
.sx-tile small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 2px;
}
.sx-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--bad);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  padding: 2px 8px;
}
.sx-foot {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0;
}
.sx-foot a {
  color: var(--muted);
}
.sx-steps {
  padding: 0;
  overflow: hidden;
}
.sx-step + .sx-step,
.sx-acc + .sx-acc {
  border-top: 1px solid #e6ecef;
}
.sx-step > summary,
.sx-acc > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  min-height: 60px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.sx-step > summary::-webkit-details-marker,
.sx-acc > summary::-webkit-details-marker {
  display: none;
}
.sx-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sx-step.done .sx-n {
  background: var(--ok);
}
.sx-x {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
}
.sx-x small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}
.sx-chev,
.sx-acc > summary span {
  color: var(--muted);
  font-size: 22px;
  transition: transform 0.15s;
}
.sx-acc > summary span {
  font-size: 15px;
  font-weight: 600;
  margin-left: auto;
}
details[open] > summary .sx-chev {
  transform: rotate(90deg);
}
.sx-acc > summary {
  font-weight: 800;
  font-size: 18px;
}
.sx-sb {
  padding: 0 14px 14px;
}
.sx-sb .card {
  box-shadow: none;
  border: 1px solid #e6ecef;
}
.sx-sub {
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 8px;
  font-size: 16px;
}
.sx-sum .tag-ex {
  margin-bottom: 6px;
}
