:root {
  --ink:#132f38;
  --muted:#718187;
  --paper:#f5f4ef;
  --white:#fff;
  --line:#e6e7e2;
  --pine:#244b48;
  --mint:#dceae0;
  --orange:#c96845;
  --amber:#f4e7cd;
  --blue:#e3edf0;
  --radius:18px;
  --shadow:0 12px 34px rgba(24,46,48,.06)
}
* {
  box-sizing:border-box
}
body {
  font-weight: 400;
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:15px/1.55 "Prompt",sans-serif
}
button,input,select,textarea {
  font:inherit
}
h1,h2,h3,strong,b {
  font-weight:500
}
button {
  cursor:pointer
}
a {
  color:inherit
}
.shell {
  max-width:1440px;
  margin:auto;
  padding:26px 30px 54px
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  letter-spacing:-.02em
}
.brandmark {
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--pine);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:18px
}
.top-actions {
  display:flex;
  gap:10px;
  align-items:center
}
.save-controls {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px
}
.save-control-button {
  padding:6px 9px;
  font-size:11px
}
.pill {
  border-radius:999px;
  padding:7px 12px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  color:var(--muted)
}
.button {
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:11px;
  padding:9px 13px;
  font-weight:500;
  transition:.15s
}
.button:hover {
  border-color:#9baea7;
  transform:translateY(-1px)
}
.button.primary {
  background:var(--pine);
  color:#fff;
  border-color:var(--pine)
}
.hero {
  background:var(--ink);
  color:#f8f8f3;
  border-radius:24px;
  padding:30px 34px 28px;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow)
}
.hero:after {
  content:"";
  position:absolute;
  width:350px;
  height:350px;
  border-radius:50%;
  right:-80px;
  top:-220px;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 0 0 32px rgba(255,255,255,.025),0 0 0 66px rgba(255,255,255,.02)
}
.eyebrow {
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.18em;
  color:#c1d2ca;
  font-weight:500
}
.hero h1 {
  font-size:clamp(28px,4vw,46px);
  line-height:1.1;
  letter-spacing:-.045em;
  margin:10px 0
}
.hero p {
  margin:0;
  color:#c5d0d0;
  max-width:700px
}
.route {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:24px;
  flex-wrap:wrap
}
.route span {
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:#e5eee9;
  font-size:13px
}
.route b {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  font-size:11px
}
.route i {
  font-style:normal;
  color:#8da7a0
}
.tabs {
  display:flex;
  gap:8px;
  overflow:auto;
  padding:18px 0 14px;
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:5
}
.tab {
  white-space:nowrap;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:500;
  padding:9px 14px;
  border-radius:10px
}
.tab.active {
  background:#fff;
  color:var(--ink);
  box-shadow:0 3px 12px rgba(19,47,56,.06)
}
.view {
  display:none
}
.view.active {
  display:block
}
.sectionhead {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin:16px 0
}
.sectionhead h2 {
  margin:0;
  font-size:23px;
  letter-spacing:-.03em
}
.sectionhead p {
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px
}
.grid {
  display:grid;
  gap:16px
}
.stats {
  grid-template-columns:repeat(4,1fr);
  margin:18px 0
}
.card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow)
}
.statlabel {
  font-size:12px;
  color:var(--muted)
}
.statvalue {
  font-size:26px;
  font-weight:600;
  letter-spacing:-.04em;
  margin:6px 0 2px
}
.statfoot {
  font-size:12px;
  color:var(--muted)
}
.staticon {
  float:right;
  width:34px;
  height:34px;
  border-radius:11px;
  background:var(--mint);
  display:grid;
  place-items:center;
  color:var(--pine)
}
.two {
  grid-template-columns:1.35fr 1fr
}
.route-card {
  padding:0;
  overflow:hidden
}
.cardhead {
  padding:17px 19px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center
}
.cardhead h3 {
  margin:0;
  font-size:16px
}
.timeline {
  padding:6px 19px 17px
}
.timeline-row {
  display:grid;
  grid-template-columns:66px 18px 1fr;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #f0f0ec
}
.timeline-row:last-child {
  border:0
}
.timeline-date {
  font-size:11px;
  color:var(--muted);
  padding-top:3px
}
.dot {
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--orange);
  margin:6px 0;
  box-shadow:0 0 0 4px #f8e7df
}
.timeline-copy strong {
  display:block;
  font-size:13px
}
.timeline-copy span {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:2px
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:500;
  white-space:nowrap
}
.badge.confirmed {
  background:var(--mint);
  color:#315d47
}
.badge.tentative {
  background:var(--amber);
  color:#8a6226
}
.badge.check {
  background:var(--blue);
  color:#456877
}
.badge.neutral {
  background:#f0f0ec;
  color:#687379
}
.legend {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.night-list {
  display:grid;
  gap:0
}
.night {
  display:grid;
  grid-template-columns:64px 1fr auto;
  gap:10px;
  padding:14px 0;
  border-bottom:1px solid #f0f0ec;
  align-items:start
}
.night:last-child {
  border:0
}
.nighttime {
  font-size:12px;
  color:var(--muted);
  font-weight:500
}
.night strong {
  font-size:13px;
  display:block
}
.night span {
  font-size:12px;
  color:var(--muted)
}
.activity-cards {
  grid-template-columns:repeat(3,1fr)
}
.activity-card {
  min-height:150px;
  position:relative
}
.activity-card .eyebrow {
  color:var(--orange);
  letter-spacing:.1em
}
.activity-card h3 {
  font-size:17px;
  margin:9px 0 3px
}
.activity-card p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.activity-card .badge {
  margin-top:12px
}
.maplink {
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  color:var(--pine);
  text-decoration:none;
  font-weight:500
}
.day-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px
}
.day-card {
  padding:0;
  overflow:hidden
}
.day-head {
  padding:15px 17px;
  background:#fbfbf8;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between
}
.day-head h3 {
  margin:0;
  font-size:15px
}
.day-head small {
  color:var(--muted)
}
.day-stops {
  padding:7px 16px
}
.stop {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:11px 0;
  border-bottom:1px solid #f1f1ed;
  align-items:center
}
.stop:last-child {
  border-bottom:0
}
.stop-title {
  font-weight:500;
  font-size:13px
}
.stop-meta {
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap
}
.stop-note {
  font-size:11px;
  color:var(--muted)
}
.stop-actions {
  display:flex;
  align-self:start;
  gap:4px
}
.stop-map-links {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:8px 0 4px
}
.stop-map-button,.stop-route-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 11px;
  border:1px solid #cbded5;
  border-radius:9px;
  background:#f2f8f4;
  color:var(--pine);
  font-size:11px;
  font-weight:500;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,transform .18s ease
}
.stop-map-button:hover,.stop-route-button:hover {
  background:#e4f1e9;
  border-color:#9dbdad;
  transform:translateY(-1px)
}
.stop-route-button {
  background:#f7f8f5;
  border-color:var(--line)
}
.logout-form {
  display:inline-flex;
  margin:0
}
.logout-button {
  white-space:nowrap
}
.login-page {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(55,200,168,.10), transparent 30%),
    var(--paper)
}
.login-card {
  width:min(100%, 440px);
  padding:clamp(24px, 6vw, 42px);
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 22px 70px rgba(18,44,52,.10)
}
.login-mark {
  display:grid;
  width:52px;
  height:52px;
  place-items:center;
  border-radius:17px;
  background:var(--ink);
  color:#fff;
  font-size:24px
}
.login-eyebrow {
  margin:22px 0 6px;
  color:var(--pine);
  font-size:10px;
  font-weight:600;
  letter-spacing:.11em
}
.login-card h1 {
  margin:0;
  color:var(--ink);
  font-size:clamp(23px, 6vw, 29px);
  line-height:1.3
}
.login-intro {
  margin:8px 0 24px;
  color:var(--muted);
  font-size:13px
}
.login-form {
  display:grid;
  gap:15px
}
.login-form label {
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:12px
}
.login-form input:not([type="hidden"]) {
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:15px;
  letter-spacing:.04em
}
.login-form input:focus {
  outline:3px solid rgba(55,200,168,.22);
  border-color:#70a594
}
.login-submit {
  width:100%;
  min-height:48px;
  margin-top:4px;
  font:inherit;
  font-weight:500
}
.login-submit:disabled {
  cursor:not-allowed;
  opacity:.55
}
.login-message {
  margin:0;
  padding:10px 12px;
  border:1px solid #efd0ca;
  border-radius:10px;
  background:#fff5f2;
  color:#9a3e35;
  font-size:12px
}
.login-security-note {
  margin:19px 0 0;
  color:var(--muted);
  font-size:11px;
  text-align:center
}
.iconbutton {
  width:28px;
  height:28px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  color:#667579
}
.addstop {
  width:100%;
  padding:10px;
  border:1px dashed #cbd2cc;
  border-radius:9px;
  background:#fff;
  color:var(--pine);
  font-size:12px;
  font-weight:500;
  margin:6px 0 12px
}
.stay-grid {
  grid-template-columns:repeat(2,1fr)
}
.stay {
  display:flex;
  gap:14px;
  align-items:start
}
.stayicon {
  width:42px;
  height:42px;
  border-radius:13px;
  background:var(--mint);
  display:grid;
  place-items:center;
  font-size:20px;
  flex:none
}
.stay h3 {
  font-size:15px;
  margin:0 0 2px
}
.stay p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.stay .badge {
  margin-top:9px
}
.detail-line {
  margin-top:9px;
  font-size:12px
}
.booking-highlight {
  border:1px solid #cddbd1;
  background:#f5faf5
}
.tablewrap {
  overflow:auto
}
.table {
  border-collapse:collapse;
  width:100%;
  min-width:650px
}
.table th,.table td {
  text-align:left;
  padding:13px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  vertical-align:top
}
.table th {
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em
}
.table td small {
  display:block;
  color:var(--muted);
  font-size:11px
}
.table tr:last-child td {
  border-bottom:0
}
.transport-grid {
  grid-template-columns:repeat(3,1fr)
}
.transport-card h3 {
  margin:0 0 5px;
  font-size:16px
}
.transport-card>p {
  margin:0;
  color:var(--muted);
  font-size:12px
}
.transport-card ul {
  padding-left:17px;
  margin:13px 0;
  color:#4c6065;
  font-size:12px
}
.transport-card li {
  margin:4px 0
}
.transport-card .input {
  margin-top:8px
}
.input {
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:9px 10px;
  color:var(--ink);
  width:100%;
  font-size:13px
}
.input:focus {
  outline:2px solid #c7d9d0;
  border-color:#85a89b
}
.cost-grid {
  grid-template-columns:1.1fr .9fr
}
.cost-total {
  background:var(--ink);
  color:#fff
}
.cost-total .statlabel,.cost-total .statfoot {
  color:#c1cdca
}
.cost-total .statvalue {
  font-size:31px
}
.cost-chart-switch {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:4px;
  margin-top:18px;
  padding:4px;
  border:1px solid #ffffff24;
  border-radius:11px;
  background:#0d2830
}
.cost-chart-mode {
  min-height:36px;
  padding:7px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#c1cdca;
  font-size:12px;
  font-weight:500;
  transition:background .18s ease, color .18s ease
}
.cost-chart-mode:hover {
  color:#fff
}
.cost-chart-mode.is-active {
  background:#fff;
  color:var(--ink);
  box-shadow:0 2px 8px rgba(0,0,0,.12)
}
.expense-chart-content {
  min-height:0;
  margin-top:15px
}
.expense-chart-caption {
  margin:0 0 12px;
  color:#c1cdca;
  font-size:11px
}
.expense-chart-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  justify-items:center;
  gap:18px
}
.expense-donut-wrap {
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%
}
.expense-donut {
  display:block;
  width:min(290px, 80vw);
  max-width:100%;
  overflow:visible
}
.expense-donut-segment {
  cursor:help;
  transition:opacity .15s ease, stroke-width .15s ease
}
.expense-donut-segment:hover,
.expense-donut-segment:focus {
  stroke-width:30;
  outline:none
}
.expense-donut-track {
  stroke:rgba(255,255,255,.14)
}
.expense-donut-center-caption {
  fill:#c1cdca;
  font-family:"Prompt",sans-serif;
  font-size:12px
}
.expense-donut-center-total {
  fill:#fff;
  font-family:"Prompt",sans-serif;
  font-size:21px;
  font-weight:600
}
.expense-chart-legend {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:0 18px;
  margin:0;
  padding:0;
  list-style:none;
  width:100%
}
.expense-chart-legend-item {
  display:grid;
  grid-template-columns:9px minmax(0, 1fr) auto;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:44px;
  padding:7px 0;
  border-bottom:1px solid #ffffff18;
  color:#eef2f0;
  font-size:11px;
  line-height:1.35
}
.expense-chart-swatch {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--expense-chart-color)
}
.expense-chart-legend-label {
  min-width:0
}
.expense-chart-legend-label small {
  display:block;
  margin-top:3px;
  color:#aab9bb;
  font-size:10px
}
.expense-chart-legend-item strong {
  color:#fff;
  font-size:11px;
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:nowrap
}
.expense-chart-warning {
  display:grid;
  gap:3px;
  margin-top:14px;
  padding:10px 12px;
  border:1px solid #947343;
  border-radius:10px;
  background:rgba(195,155,101,.12);
  color:#f2dfbd;
  font-size:11px
}
.expense-chart-warning small {
  color:#c1cdca;
  font-size:10px
}
.expense-chart-empty {
  display:grid;
  justify-items:center;
  gap:5px;
  min-height:176px;
  padding:24px 14px;
  border:1px dashed #ffffff35;
  border-radius:12px;
  color:#fff;
  text-align:center
}
.expense-chart-empty-icon {
  color:#9db8ae;
  font-size:26px;
  line-height:1
}
.expense-chart-empty small {
  color:#c1cdca;
  font-size:11px
}
.costrow {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(246px, 300px);
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid #f0f0ec
}
.costrow:last-child {
  border:0
}
.costrow span {
  font-size:13px
}
.costrow small {
  display:block;
  color:var(--muted);
  font-size:11px
}
.money {
  display:flex;
  width:100%;
  min-width:0;
  gap:6px
}
.money input {
  flex:1 1 150px;
  width:auto;
  min-width:150px;
  text-align:right;
  font-variant-numeric:tabular-nums
}
.money select {
  flex:0 0 90px;
  width:90px;
  min-width:90px
}
.exchange-rates-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin:10px 0 16px
}
.rate-field,.actual-expense-field {
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:11px
}
.rate-input {
  text-align:right;
  font-variant-numeric:tabular-nums
}
.actual-expenses-card {
  margin-top:16px
}
.actual-expenses-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px
}
.actual-expenses-heading h3 {
  margin:0
}
.actual-expenses-heading p {
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px
}
.actual-expense-totals {
  color:var(--pine);
  font-size:13px;
  text-align:right;
  white-space:normal;
  background:#edf4ef;
  border:1px solid #d9e7dd;
  border-radius:999px;
  padding:7px 12px
}
.actual-expense-form {
  padding:16px;
  border:1px solid #e3e9e4;
  border-radius:13px;
  background:#f8faf8
}
.actual-expense-form-grid {
  display:grid;
  grid-template-columns:minmax(180px, 1.05fr) minmax(240px, 1.9fr) minmax(165px, 1.15fr) minmax(180px, 1.3fr) minmax(88px, .55fr);
  gap:10px;
  align-items:end
}
.actual-expense-field > span {
  color:#586e73;
  font-weight:500
}
.actual-expense-field .input {
  min-width:0;
  min-height:42px;
  border-color:#dfe5e0;
  background:#fff
}
.actual-expense-field .date-picker-trigger {
  min-height:42px;
  width:100%;
  justify-content:space-between;
  border-color:#dfe5e0;
  background:#fff
}
.actual-expense-field .actual-expense-currency {
  min-width:88px
}
.actual-expense-amount {
  width:100%;
  min-width:150px;
  text-align:right;
  font-variant-numeric:tabular-nums
}
.actual-expense-form-actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid #e3e9e4
}
.actual-expense-form-actions .button {
  min-width:174px;
  min-height:42px;
  justify-content:center
}
.actual-expense-error {
  margin:0;
  color:#9c4238;
  font-size:12px
}
.actual-expenses-list {
  display:grid;
  gap:8px;
  margin-top:14px
}
.actual-expenses-empty {
  margin:0;
  color:var(--muted);
  font-size:13px
}
.actual-expense-row {
  display:grid;
  grid-template-columns:minmax(160px, .9fr) minmax(190px, 1.4fr) minmax(125px, .8fr) minmax(230px, 1.1fr) auto;
  gap:9px;
  align-items:center;
  padding:11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  transition:border-color .18s ease, box-shadow .18s ease
}
.actual-expense-row:hover {
  border-color:#cbdad0;
  box-shadow:0 4px 14px rgba(24,46,48,.045)
}
.actual-expense-row .input {
  min-width:0
}
.actual-expense-date-field .date-picker-trigger {
  min-height:38px;
  width:100%;
  justify-content:space-between
}
.actual-expense-money {
  display:grid;
  grid-template-columns:minmax(130px, 1fr) 78px;
  gap:6px;
  min-width:0
}
.actual-expense-money .actual-expense-amount {
  min-width:130px
}
.actual-expense-currency {
  width:78px;
  min-width:78px
}
.actual-expense-delete {
  padding:8px 10px;
  color:#8a4a43;
  border-color:#eadbd8;
  background:#fff
}
.actual-expense-delete:hover {
  background:#fbf3f1;
  border-color:#d9b8b2
}
.checklist {
  display:grid;
  gap:8px
}
.checkitem {
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:10px 11px;
  background:#fbfbf8;
  border:1px solid #f0f0ec;
  border-radius:10px
}
.checkitem input {
  accent-color:var(--pine);
  margin-top:4px
}
.checkitem label {
  font-size:13px;
  cursor:pointer
}
.checkitem small {
  display:block;
  color:var(--muted);
  font-size:11px
}
.note {
  padding:12px 14px;
  background:#fbf2e6;
  border:1px solid #efdfc5;
  border-radius:12px;
  color:#725a35;
  font-size:12px
}
.note.blue {
  background:#eef5f6;
  border-color:#d6e5e8;
  color:#466672
}
.footer {
  margin-top:24px;
  padding:14px 2px;
  color:var(--muted);
  font-size:11px;
  display:flex;
  justify-content:space-between;
  gap:12px
}
.hidden {
  display:none!important
}
.modal-backdrop {
  position:fixed;
  inset:0;
  background:rgba(15,35,41,.45);
  display:none;
  place-items:center;
  z-index:20;
  padding:20px
}
.modal-backdrop.open {
  display:grid
}
.modal {
  max-width:520px;
  width:100%;
  max-height:min(90vh,760px);
  overflow-y:auto;
  background:white;
  border-radius:18px;
  padding:22px;
  box-shadow:0 24px 80px #132f3844
}
.modal h3 {
  margin:0 0 6px
}
.modal p {
  margin:0 0 16px;
  font-size:13px;
  color:var(--muted)
}
.stop-modal-field {
  display:grid;
  gap:5px;
  margin:10px 0;
  color:var(--muted);
  font-size:11px
}
.stop-modal-field .input {
  margin:0
}
.stop-modal-field textarea {
  resize:vertical;
  min-height:58px
}
.stop-modal-error {
  min-height:0;
  margin:8px 0 0!important;
  color:#a1403d!important;
  font-size:12px!important
}
.modal-actions {
  display:flex;
  justify-content:end;
  gap:8px;
  margin-top:14px
}
.status-select {
  border:1px solid var(--line);
  border-radius:7px;
  padding:4px 6px;
  background:white;
  color:var(--muted);
  font-size:11px
}
@media(max-width:950px) {
  .stats {
    grid-template-columns:repeat(2,1fr)
  }
  .two,.cost-grid {
    grid-template-columns:1fr
  }
  .activity-cards {
    grid-template-columns:repeat(2,1fr)
  }
  .transport-grid {
    grid-template-columns:1fr
  }
  .shell {
    padding:18px
  }
}
@media(max-width:1000px) {
  .actual-expense-form-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr))
  }
  .actual-expense-row {
    grid-template-columns:repeat(2, minmax(0, 1fr))
  }
  .actual-expense-row .actual-expense-date-field {
    grid-column:1 / -1
  }
  .actual-expense-money {
    grid-column:1 / -1
  }
}
@media(max-width:600px) {
  .login-page {
    padding:16px
  }
  .login-card {
    padding:25px 21px;
    border-radius:20px
  }
  .logout-button {
    padding:6px 8px;
    font-size:11px
  }
  .shell {
    padding:12px 12px 38px
  }
  .modal-backdrop {
    padding:12px;
    align-items:end
  }
  .modal.stop-modal {
    max-height:88dvh;
    border-radius:18px 18px 12px 12px;
    padding:18px
  }
  .stop-map-links {
    gap:6px
  }
  .stop-map-button,.stop-route-button {
    min-height:38px;
    padding:7px 10px
  }
  .topbar {
    margin-bottom:14px
  }
  .brand {
    font-size:13px
  }
  .top-actions .pill {
    display:none
  }
  .save-controls .pill {
    display:inline-flex;
    max-width:180px;
    white-space:normal;
    line-height:1.35
  }
  .save-controls .button {
    padding:6px 8px;
    font-size:10px
  }
  .hero {
    padding:23px 20px;
    border-radius:20px
  }
  .hero:after {
    right:-220px
  }
  .route {
    gap:6px;
    margin-top:20px
  }
  .route span {
    font-size:11px
  }
  .route i {
    font-size:10px
  }
  .stats {
    gap:9px;
    margin:12px 0
  }
  .card {
    padding:14px;
    border-radius:15px
  }
  .statvalue {
    font-size:21px
  }
  .day-grid,.stay-grid,.activity-cards {
    grid-template-columns:1fr
  }
  .sectionhead {
    align-items:start;
    flex-direction:column
  }
  .night {
    grid-template-columns:52px 1fr auto
  }
  .day-card .card {
    padding:12px
  }
  .footer {
    flex-direction:column
  }
  .timeline-row {
    grid-template-columns:55px 13px 1fr
  }
  .tabs {
    margin:0 -12px;
    padding-left:12px;
    padding-right:12px
  }
  .costrow {
    grid-template-columns:minmax(0, 1fr);
    align-items:stretch;
    gap:7px
  }
  .cost-summary {
    align-items:flex-start;
    gap:8px
  }
  .cost-summary-label {
    line-height:1.4
  }
  .cost-summary-total {
    max-width:46%;
    padding:3px 7px;
    font-size:10px
  }
  .expense-chart-layout {
    gap:12px
  }
  .expense-donut {
    width:min(270px, 82vw)
  }
  .expense-chart-legend {
    grid-template-columns:minmax(0, 1fr)
  }
  .expense-chart-legend-item,
  .expense-chart-legend-item strong {
    font-size:11px
  }
  .exchange-rates-grid {
    grid-template-columns:1fr
  }
  .actual-expenses-heading {
    flex-direction:column;
    gap:8px;
    margin-bottom:14px
  }
  .actual-expense-totals {
    text-align:left;
    border-radius:10px
  }
  .actual-expense-form {
    padding:12px
  }
  .actual-expense-form-grid {
    grid-template-columns:minmax(0, 1fr)
  }
  .actual-expense-row {
    grid-template-columns:minmax(0, 1fr)
  }
  .actual-expense-row .actual-expense-date-field,
  .actual-expense-row .actual-expense-title {
    grid-column:1 / -1
  }
  .actual-expense-money {
    grid-column:1 / -1;
    grid-template-columns:minmax(0, 1fr) 78px
  }
  .actual-expense-money .actual-expense-amount {
    min-width:0
  }
  .actual-expense-delete {
    justify-self:end
  }
  .actual-expense-form-actions {
    align-items:stretch;
    flex-direction:column
  }
  .actual-expense-form-actions .button {
    width:100%
  }
}
@media print {
  body {
    background:#fff
  }
  .shell {
    max-width:none;
    padding:0
  }
  .topbar,.tabs,.top-actions,.addstop,.stop-actions,.button,.footer {
    display:none!important
  }
  .view {
    display:block!important;
    page-break-before:always
  }
  .view:first-of-type {
    page-break-before:avoid
  }
  .hero {
    background:#fff;
    color:#132f38;
    border:1px solid #ddd;
    box-shadow:none
  }
  .hero p,.eyebrow {
    color:#50656a
  }
  .card {
    box-shadow:none;
    break-inside:avoid
  }
  .day-grid,.stats,.activity-cards {
    grid-template-columns:repeat(2,1fr)
  }
  .hidden {
    display:block!important
  }
}


/* Page-specific presentation */

.brand-season {
  color: #9ca9a7;
  font-weight: 500;
}

.cardhead-spaced {
  padding: 0 0 14px;
  border: 0;
}

.cardhead-compact {
  padding: 0 0 12px;
  border: 0;
}

.note-spaced,
.grid-spaced {
  margin-top: 16px;
}

.heading-tight {
  margin: 0 0 12px;
}

.heading-loose {
  margin: 0 0 13px;
}

.rate-input {
  max-width: 260px;
  margin: 6px 0 8px;
}

.cost-note {
  margin-top: 18px;
  background: #ffffff12;
  border-color: #ffffff20;
  color: #dbe5e3;
}

.stop-status {
  margin-top: 9px;
}

.cost-day {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.cost-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  list-style:none;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  padding: 5px 0;
}

.cost-summary::-webkit-details-marker {
  display:none
}

.cost-summary::before {
  content:"›";
  flex:0 0 auto;
  color:var(--muted);
  font-size:19px;
  line-height:1;
  transform:rotate(0);
  transition:transform .18s ease
}

.cost-day[open] > .cost-summary::before {
  transform:rotate(90deg)
}

.cost-summary-label {
  min-width:0;
  flex:1 1 auto
}

.cost-summary-area {
  color: var(--muted);
  font-weight: 400;
}

.cost-summary-total {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  max-width:55%;
  padding:4px 9px;
  border:1px solid #dce8df;
  border-radius:999px;
  background:#eff5f0;
  color:var(--pine);
  font-size:11px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:normal
}

.cost-summary-total:not([data-has-total]) {
  border-color:transparent;
  background:transparent;
  color:var(--muted);
  font-weight:400
}

.action-dashboard {
  margin-bottom: 22px;
}

.action-dashboard-head {
  align-items: center;
  margin-bottom: 14px;
}

.action-dashboard-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.action-dashboard-head .action-progress {
  margin: 0;
}

.action-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  min-width: 0;
  padding: 18px;
}

.action-card-preparation {
  grid-column: 1 / -1;
}

.action-card-head,
.action-card-title,
.action-card-head-actions {
  display: flex;
  align-items: center;
}

.action-card-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.action-card-title {
  min-width: 0;
  gap: 9px;
}

.action-card-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.action-card-icon {
  flex: 0 0 auto;
  font-size: 18px;
}

.action-card-count {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f5efdf;
  color: #80662e;
  font-size: 11px;
}

.action-card-head-actions {
  gap: 9px;
}

.action-card-content {
  min-width: 0;
}

.action-card-content .action-empty {
  padding: 10px 0 2px;
}

.completed-payment-details {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.completed-payment-details summary {
  color: var(--pine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.completed-payment-details summary span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 999px;
  background: #e8f0e9;
  color: #54745b;
  font-size: 10px;
}

.action-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.action-form {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbf8;
}

.action-form-heading,
.action-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-item-controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.action-form-heading strong {
  font-weight: 500;
}

.action-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px;
}

.action-item-main {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.action-checkbox-label {
  padding-top: 2px;
}

.action-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--pine);
}

.action-item-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-item-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.action-item-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.action-item.is-done .action-item-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.action-item.is-overdue .action-item-copy p,
.action-status-overdue {
  color: #a54d3e;
}

.action-status-done {
  color: #54745b;
  font-size: 11px;
}

.action-status-pending {
  color: #98732e;
  font-size: 11px;
}

.action-manage {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.date-picker-control {
  min-width: 0;
}

.date-picker-value {
  display: none !important;
}

.date-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.date-picker-trigger:hover {
  border-color: var(--pine);
  background: var(--paper);
}

.date-picker-trigger:focus-visible,
.date-picker-nav:focus-visible,
.date-picker-close:focus-visible,
.date-picker-day:focus-visible,
.date-picker-select:focus-visible,
.date-picker-text-button:focus-visible,
.date-picker-today:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.date-picker-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--pine);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-date-trigger {
  min-height: 36px;
  max-width: 170px;
  padding: 6px 9px;
  font-size: 11px;
}

.date-picker-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
}

.date-picker-dialog {
  position: absolute;
  width: 336px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: date-picker-in .14s ease-out;
}

@keyframes date-picker-in {
  from { opacity: 0; transform: translateY(4px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.date-picker-heading,
.date-picker-month-controls,
.date-picker-footer {
  display: flex;
  align-items: center;
}

.date-picker-heading {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.date-picker-month-controls {
  gap: 6px;
  min-width: 0;
}

.date-picker-nav,
.date-picker-close {
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.date-picker-nav:hover,
.date-picker-close:hover {
  border-color: var(--pine);
  background: var(--paper);
}

.date-picker-close {
  font-size: 19px;
}

.date-picker-select {
  min-width: 0;
  height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.date-picker-year {
  width: 74px;
}

.date-picker-era {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-weekdays {
  margin-bottom: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.date-picker-weekdays > span {
  padding: 4px 0;
}

.date-picker-day {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  transition: background .12s, border-color .12s, color .12s;
}

.date-picker-day:hover {
  border-color: var(--line);
  background: var(--paper);
}

.date-picker-day.is-outside {
  color: var(--muted);
  opacity: .58;
}

.date-picker-day.is-today {
  border-color: var(--pine);
  color: var(--pine);
  font-weight: 500;
}

.date-picker-day.is-selected,
.date-picker-day.is-selected:hover {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--white);
  font-weight: 500;
}

.date-picker-footer {
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.date-picker-text-button,
.date-picker-today {
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pine);
  font: inherit;
  font-size: 11px;
}

.date-picker-text-button:hover,
.date-picker-today:hover {
  background: var(--mint);
}

.action-due-field {
  display:grid;
  gap:4px;
  min-width:0
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.action-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rental-payment-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 12px;
  max-width: 440px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.rental-payment-field select {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.stay-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.stay-field > span {
  color: var(--muted);
  font-size: 11px;
}

.stay-field input,
.stay-field select,
.stay-date-value {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 8px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
}

.stay-management-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stay-editor {
  min-width: 0;
}

.stay-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.stay-editor-head h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.stay-editor-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stay-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.stay-field input:focus,
.stay-field select:focus {
  outline: 2px solid #c7d9d0;
  border-color: #85a89b;
}

.price-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.stay-editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #f0f0ec;
  color: var(--muted);
  font-size: 11px;
}

.map-preview {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--pine);
  border-radius: 10px;
  background: var(--pine);
  color: var(--white);
  font-weight: 500;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}

.map-preview:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.map-preview:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.rental-stay-card {
  margin-top: 16px;
}

@media (max-width: 950px) {
  .stay-management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .action-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .action-card-preparation {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .action-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .action-card {
    padding: 15px;
  }

  .action-form-grid {
    grid-template-columns: 1fr;
  }

  .action-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .action-item-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .action-date-trigger {
    max-width: none;
  }

  .date-picker-layer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 12px 0;
    background: color-mix(in srgb, var(--ink) 28%, transparent);
  }

  .date-picker-dialog {
    position: relative;
    width: min(420px, 100%);
    max-width: 100%;
    max-height: min(600px, calc(100dvh - 12px));
    margin: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    animation: date-picker-sheet-in .18s ease-out;
  }

  @keyframes date-picker-sheet-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .date-picker-weekdays,
  .date-picker-days {
    gap: 6px;
  }

  .date-picker-day {
    min-height: 40px;
    border-radius: 12px;
    font-size: 13px;
  }

  .rental-payment-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stay-form-grid {
    grid-template-columns: 1fr;
  }

  .stay-editor-head {
    flex-direction: column;
  }
}
