:root {
  --sand: #f7f2e8;
  --sand-2: #efe7d6;
  --ink: #2b2018;
  --muted: #8a7c6b;
  --terra: #c1592e;
  --terra-d: #a4471f;
  --teal: #1f6f6b;
  --line: #e2d7c2;
  --card: #fffdf8;
  --shadow: 0 1px 2px rgba(43, 32, 24, .06), 0 8px 24px rgba(43, 32, 24, .08);
  --bar: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Display serif for brand + headings + hero numbers — the premium touch. */
.brand, .dash-title, .login-card h1, .modal-head h2, .card-name,
.trip-title, .share-header h1, .pp-val, .budget-totals .grand b {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
button { font: inherit; cursor: pointer; }
a { color: var(--teal); }

/* ---------- login ---------- */
.login {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, #f3e6cf 0%, var(--sand) 60%);
  z-index: 1000;
}
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 32px; width: min(360px, 90vw); text-align: center; box-shadow: var(--shadow);
}
.login-mark { font-size: 30px; color: var(--terra); }
.login-card h1 { margin: 8px 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.login-card input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 12px; background: #fff;
}
.login-card button {
  width: 100%; padding: 11px; border: 0; border-radius: 10px;
  background: var(--terra); color: #fff; font-weight: 600;
}
.login-card button:hover { background: var(--terra-d); }
.login-error { color: var(--terra-d); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- top bar ---------- */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; min-height: var(--bar);
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 500;
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: .2px; white-space: nowrap; }
.brand-mark { color: var(--terra); margin-right: 4px; }
.trip-controls { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.trip-controls select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-weight: 600; min-width: 280px; max-width: 460px; flex: 0 1 auto;
}
.date-field { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.date-field input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.summary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  background: var(--sand-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip b { color: var(--terra-d); }
.chip.teal b { color: var(--teal); }
.ghost {
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 13px; color: var(--ink); white-space: nowrap;
}
.ghost:hover { background: var(--sand-2); }

/* ---------- main layout: map fixed height, panel scrolls ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 38vw, 600px);
  height: calc(100vh - var(--bar));
  min-height: 540px;
}
.map-wrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; height: auto; }
  .map-wrap { height: 52vh; }
  .panel { max-height: none; }
}

/* ---------- stops panel ---------- */
.panel {
  background: var(--card); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px; min-width: 0;
  height: 100%; overflow-y: auto; overflow-x: hidden;
}
.panel-head { display: flex; align-items: baseline; gap: 10px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.add-stop { position: relative; margin: 14px 0; }
.add-stop input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 600;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
}
.results div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.results div:last-child { border-bottom: 0; }
.results div:hover { background: var(--sand-2); }
.results .loading, .results .empty { color: var(--muted); cursor: default; }

.stops { display: flex; flex-direction: column; gap: 12px; }
.stop {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px; min-width: 0;
}
.leg { margin: -2px 0 10px 11px; }
.leg-connector {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
  font-size: 12.5px; color: var(--teal); font-weight: 600;
}
.leg-connector .planned { color: var(--muted); font-weight: 500; }
.leg-connector.warn { color: var(--terra-d); }
.f-legnote {
  width: 100%; min-width: 0; padding: 6px 9px; border: 1px dashed var(--line);
  border-radius: 8px; background: #fffdf6; font: inherit; font-size: 12.5px; color: var(--ink);
}
.f-legnote:focus { outline: none; border-color: var(--teal); border-style: solid; background: #fff; }
.f-legnote::placeholder { color: var(--muted); }
.leg-note-cell { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.stop-top { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.stop-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--terra); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-top: 1px;
}
.stop-head { flex: 1; min-width: 0; }
.stop-name {
  font-weight: 600; font-size: 15.5px; outline: none; border-radius: 6px; padding: 1px 4px;
  word-break: break-word;
}
.stop-name:focus { background: var(--sand-2); }
.stop-when { font-size: 12.5px; color: var(--muted); margin-top: 2px; padding-left: 4px; }
.stop-when b { color: var(--terra-d); }
.stop-actions { display: flex; gap: 2px; flex: none; }
.icon-btn {
  border: 0; background: transparent; color: var(--muted); padding: 4px 6px;
  border-radius: 7px; font-size: 14px; line-height: 1;
}
.icon-btn:hover { background: var(--sand-2); color: var(--ink); }
.icon-btn.danger:hover { color: var(--terra-d); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.stop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; margin-top: 12px; }
.stop-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.stop-grid .full { grid-column: 1 / -1; }
.stop input, .stop textarea, .stop-grid input {
  width: 100%; min-width: 0; max-width: 100%;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font: inherit; font-size: 13px;
}
.stop textarea { resize: vertical; min-height: 34px; }
.no-coords { font-size: 12px; color: var(--terra-d); margin-top: 8px; }

/* ---------- lodging options ---------- */
.lodging-block { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.lodging-block > .lhead {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.lhead h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.add-lodging { border: 1px dashed var(--line); background: var(--sand); color: var(--terra-d); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.add-lodging:hover { background: var(--sand-2); }
.lodging {
  border: 1px solid var(--line); border-radius: 10px; background: var(--sand); padding: 9px 10px; margin-bottom: 8px;
}
.lodging .lrow1 { display: flex; gap: 6px; align-items: center; }
.lodging .l-label { flex: 1; font-weight: 600; }
.lodging .l-open { text-decoration: none; padding: 4px 8px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.lodging .l-open.disabled { opacity: .4; pointer-events: none; }
.lodging .l-url { margin-top: 6px; }
.lodging .l-note { margin-top: 6px; }
.lodging .l-note input { background: #fffef9; }
.lodging .lkey { font-size: 11px; color: var(--muted); margin-bottom: 2px; display: block; }

.hint { color: var(--muted); font-size: 12px; margin: 14px 0 4px; }

/* ---------- itinerary modal ---------- */
.itin-btn { border-color: var(--terra); color: var(--terra-d); font-weight: 600; }
.itin-btn:hover { background: #f6e7df; }
.modal {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  padding: 2.5vh 2.5vw; background: rgba(43, 32, 24, .45);
}
.modal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  width: 95vw; height: 95vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 28px; border-bottom: 1px solid var(--line); flex: none;
}
.modal-head h2 { margin: 0 0 2px; font-size: 22px; }
.modal .itinerary { font-size: 15px; }
.modal .itinerary th, .modal .itinerary td { padding: 14px 28px; }
.modal-head .icon-btn { font-size: 18px; }
.table-scroll { overflow: auto; }
table.itinerary { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.itinerary th, table.itinerary td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.itinerary thead th { background: var(--sand-2); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); white-space: nowrap; }
table.itinerary tbody tr:last-child td { border-bottom: 0; }
table.itinerary .day-num { font-weight: 700; color: var(--terra-d); white-space: nowrap; }
table.itinerary .drive { color: var(--teal); font-weight: 600; }
table.itinerary .drive.warn { color: var(--terra-d); }
table.itinerary .empty-row td { text-align: center; color: var(--muted); padding: 28px; }
table.itinerary .lodge-list { display: flex; flex-direction: column; gap: 2px; }

/* ---------- leaflet pin ---------- */
.pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--terra);
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  display: grid; place-items: center;
}
.pin span { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 12px; }
.leaflet-container { font: inherit; background: #e9e4d8; }

/* photo stop pin */
.pin-photo { position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--terra); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); overflow: visible; }
.pin-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pin-badge { position: absolute; top: -4px; right: -4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
/* mini-stop (waypoint) pin */
.wp-pin { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center; font-size: 13px; overflow: hidden; }
.wp-pin img { width: 100%; height: 100%; object-fit: cover; }

/* map controls */
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 1000; }
.map-btn { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px;
  font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.map-btn:hover { background: var(--sand-2); }
.map-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* leaflet popup gallery */
.pop-title { font-weight: 700; margin-bottom: 6px; }
.pop-imgs { display: flex; gap: 5px; flex-wrap: wrap; }
.pop-img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; cursor: zoom-in; }

/* photo strips in cards */
.photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px;
  border-top: 1px dashed var(--line); padding-top: 10px; }
.thumb { position: relative; width: 64px; height: 64px; }
.thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; cursor: zoom-in; border: 1px solid var(--line); }
.thumb-del { position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 50%;
  border: 0; background: var(--terra-d); color: #fff; font-size: 11px; line-height: 1; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.thumb-add { width: 64px; height: 64px; border: 1.5px dashed var(--line); border-radius: 9px; background: var(--sand);
  display: grid; place-items: center; font-size: 24px; color: var(--muted); cursor: pointer; }
.thumb-add:hover { border-color: var(--teal); color: var(--teal); background: #fff; }
.photos-hint { font-size: 11px; color: var(--muted); margin-left: auto; }

/* mini-stop cards */
.wp-head { margin-top: 20px; }
.wp-card { border-color: #cfe3e1; }
.wp-num { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 12px; flex: none; margin-top: 1px; }
.waypoints { display: flex; flex-direction: column; gap: 12px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(20, 14, 10, .9);
  display: grid; place-items: center; padding: 3vh 3vw; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- buttons ---------- */
.primary-btn { background: var(--terra); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 600; }
.primary-btn:hover { background: var(--terra-d); }

/* ---------- dashboard ---------- */
.dashboard { min-height: 100vh; }
.dash-topbar { display: flex; align-items: center; gap: 16px; padding: 0 24px; min-height: var(--bar);
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 500; }
.dash-topbar .brand { font-size: 17px; font-weight: 700; }
.dash-topbar #dash-new { margin-left: auto; }
.dash-body { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
.dash-title { font-size: 24px; margin: 0 0 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.trip-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.trip-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(43,32,24,.08), 0 14px 34px rgba(43,32,24,.12); }
.trip-card .cover { position: relative; height: 150px; background: linear-gradient(135deg, #efe2cb, #e6d4b6); overflow: hidden; }
.trip-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: #c9b48f; }
.status { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--muted); }
.status-planning { color: var(--terra-d); }
.status-upcoming { color: var(--teal); }
.status-completed { color: #5b7a3a; }
.card-body { padding: 14px 16px 16px; }
.card-name { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.card-del { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border-radius: 50%; width: 26px; height: 26px; }
.trip-card:hover .card-del { background: #fff; }

/* ---------- workspace topbar additions ---------- */
.workspace { display: flex; flex-direction: column; min-height: 100vh; }
.trip-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.trip-title { font-weight: 700; font-size: 17px; outline: none; border-radius: 6px; padding: 2px 6px; max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-title:focus { background: var(--sand-2); }
.status-select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .ghost { padding: 8px 11px; }

/* ---------- narrow modals (budget/checklist/share) ---------- */
.modal-card.narrow { width: min(660px, 96vw); height: auto; max-height: 88vh; }
.modal-scroll { overflow-y: auto; overflow-x: hidden; padding: 22px 26px 26px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; }

/* currency-prefixed money inputs */
.money { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.money .cur { position: absolute; left: 10px; color: var(--muted); font-size: 13px; pointer-events: none; }
.money input { width: 100%; min-width: 0; padding-left: 22px !important; }

/* budget */
.budget-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; margin-bottom: 18px; }
.budget-settings label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.budget-settings > label > input, .budget-settings .money input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; font: inherit; font-size: 14px; }
.budget-pp { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.pp-card { background: linear-gradient(140deg, #fbf3e6, #f2e4cd); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.pp-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pp-val { font-size: 26px; color: var(--terra-d); line-height: 1.1; }
.pp-sub { font-size: 11px; color: var(--muted); }
.budget-empty { text-align: center; padding: 18px; }
.budget-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.budget-table th, .budget-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.budget-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.budget-table td:not(:first-child), .budget-table th:not(:first-child) { text-align: right; }
.budget-totals { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.budget-totals > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.budget-totals .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 17px; }
.budget-totals .grand b { color: var(--terra-d); }
.budget-totals .per-night { color: var(--muted); font-size: 13px; }

/* checklist + activities */
.checklist, .activity { display: flex; flex-direction: column; gap: 8px; }
.check-item, .activity { display: flex; align-items: center; gap: 8px; }
.check-item input[type=text], .activity input[type=text] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; }
.check-item input[type=checkbox], .activity input[type=checkbox] { width: 17px; height: 17px; flex: none; accent-color: var(--teal); }
.c-text.done, .a-text.done { text-decoration: line-through; color: var(--muted); }
.activity { margin-bottom: 6px; }

/* share */
.share-link { display: flex; gap: 8px; margin: 14px 0; }
.share-link input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--sand); font: inherit; font-size: 13px; }
.share-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- print ---------- */
@media print {
  body * { visibility: hidden !important; }
  #itin-modal, #itin-modal * { visibility: visible !important; }
  #itin-modal { position: absolute !important; inset: 0 !important; background: #fff !important; display: block !important; padding: 0 !important; }
  #itin-modal .modal-card { width: 100% !important; height: auto !important; max-height: none !important; border: 0 !important; box-shadow: none !important; }
  .modal-head-actions, #itin-close { display: none !important; }
  table.itinerary { min-width: 0 !important; font-size: 12px !important; }
  .table-scroll { overflow: visible !important; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 1200;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- modal + micro animations ---------- */
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal:not(.hidden) { animation: modalFade .18s ease; }
.modal:not(.hidden) .modal-card { animation: modalPop .24s cubic-bezier(.2,.8,.2,1); }
.ghost, .primary-btn, .map-btn, .icon-btn, .add-lodging, .add-activity, .thumb-add {
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.primary-btn:active, .ghost:active, .map-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- premium detailing ---------- */
.login-card h1 { font-size: 24px; }
.brand { font-size: 18px; }
.dash-title { letter-spacing: -0.02em; }
.chip { box-shadow: inset 0 -1px 0 rgba(43,32,24,.03); }
.status { backdrop-filter: blur(4px); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
/* status-tinted card cover when there's no photo */
.trip-card .cover:has(.cover-empty) { background: linear-gradient(135deg, #efe2cb, #e6d4b6); }
.status-upcoming { color: var(--teal); }
/* nicer scrollbars in panels/modals */
.panel, .modal-scroll, .table-scroll { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.panel::-webkit-scrollbar, .modal-scroll::-webkit-scrollbar { width: 9px; }
.panel::-webkit-scrollbar-thumb, .modal-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; border: 2px solid var(--card); }
/* focus rings for accessibility/polish */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: 1px; }
