:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #667180;
  --line: #d9e0e7;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --blue: #245c9b;
  --teal: #127069;
  --gold: #9b6a16;
  --coral: #b85042;
  --green: #2d7a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.subline,
.muted {
  color: var(--muted);
}

.subline {
  margin: 8px 0 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

nav a,
.button,
.actions a,
.actions button,
.document-actions button,
.decision-row button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
}

nav a:hover,
.button:hover,
.actions a:hover {
  border-color: var(--blue);
  text-decoration: none;
}

.warning {
  margin: 0;
  padding: 12px clamp(18px, 4vw, 54px);
  background: #fff1d6;
  border-bottom: 1px solid #e9c36b;
}

main {
  padding: 0 0 32px;
}

.band {
  padding: 32px clamp(18px, 4vw, 54px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
}

.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.health-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 122, 77, 0.15);
}

.dashboard-grid,
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.panel,
.day-card,
.suggestion-card,
.document-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(24, 34, 47, 0.06);
}

.panel {
  min-height: 190px;
  padding: 20px;
  position: relative;
}

.panel h3,
.suggestion-card h3,
.document-row h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.panel-icon {
  position: absolute;
  right: 18px;
  top: 16px;
  color: var(--gold);
  font-size: 26px;
}

.alert-panel {
  border-top: 4px solid var(--gold);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.day-card {
  padding: 16px;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.day-head h3 {
  margin: 0;
  font-size: 20px;
}

.day-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.event {
  border-left: 4px solid var(--line);
  padding: 10px 0 12px 12px;
  margin: 10px 0;
}

.event.flight {
  border-left-color: var(--blue);
}

.event.hotel {
  border-left-color: var(--teal);
}

.event.suggestion {
  border-left-color: var(--gold);
}

.event.checklist,
.event.transfer {
  border-left-color: var(--coral);
}

.event p,
.suggestion-card p,
.document-row p {
  margin: 6px 0;
}

.private {
  font-weight: 800;
}

.transport {
  color: var(--muted);
  font-weight: 800;
}

.state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  color: #ffffff;
  background: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.state.planned,
.state.done,
.state.accepted {
  background: var(--green);
}

.state.suggested,
.state.proposed {
  background: var(--blue);
}

.state.maybe {
  background: var(--gold);
}

.state.rejected {
  background: var(--coral);
}

.actions,
.decision-row,
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.actions form,
.document-actions form {
  margin: 0;
}

.decision-row button {
  cursor: pointer;
}

.decision-row button[value="yes"] {
  border-color: rgba(45, 122, 77, 0.35);
}

.decision-row button[value="maybe"] {
  border-color: rgba(155, 106, 22, 0.35);
}

.decision-row button[value="no"] {
  border-color: rgba(184, 80, 66, 0.35);
}

.suggestion-card {
  padding: 16px;
}

.status-rejected {
  opacity: 0.68;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

footer {
  padding: 20px clamp(18px, 4vw, 54px) 34px;
  color: var(--muted);
  font-weight: 800;
}

.print-view nav,
.print-view .decision-row,
.print-view form {
  display: none;
}

@media print {
  body {
    background: #ffffff;
  }

  nav,
  .decision-row,
  form {
    display: none;
  }

  .band {
    padding: 16px 0;
  }

  .topbar,
  footer {
    padding-left: 0;
    padding-right: 0;
  }

  .panel,
  .day-card,
  .suggestion-card,
  .document-row {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-heading,
  .document-row {
    align-items: stretch;
    flex-direction: column;
  }

  .document-row {
    display: flex;
  }

  nav {
    justify-content: flex-start;
  }

  .health {
    white-space: normal;
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

/* v0.1.x mobile trip hub layer */
body {
  padding-bottom: 86px;
}

.hero-band {
  padding-top: 22px;
}

.compact-band {
  padding-top: 18px;
  padding-bottom: 18px;
}

.status-stack {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 5px 12px;
  background: #10243d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(24, 34, 47, 0.12);
}

.bottom-nav a {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav span {
  font-size: 17px;
  color: var(--teal);
}

.trip-lists {
  display: grid;
  gap: 12px;
}

details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.mini-card-grid,
.map-link-grid,
.category-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.trip-card-mini,
.map-button,
.category-card {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.trip-card-mini:hover,
.map-button:hover,
.category-card:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.trip-card-mini span,
.category-card span,
.category-card small {
  color: var(--muted);
}

.trip-card-mini.archived {
  opacity: 0.72;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-card {
  min-height: 150px;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f5;
  color: var(--teal);
  font-size: 25px;
}

.category-section {
  margin-top: 14px;
}

.category-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
}

.route-line {
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef4fb;
  color: #173b64;
  font-weight: 800;
}

.time-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.time-list li {
  margin: 4px 0;
}

.decision-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-row button,
.big-button {
  min-height: 50px;
  width: 100%;
  font-size: 16px;
}

.decision-row button[value="yes"] {
  background: rgba(45, 122, 77, 0.1);
}

.decision-row button[value="maybe"] {
  background: rgba(155, 106, 22, 0.1);
}

.decision-row button[value="no"] {
  background: rgba(184, 80, 66, 0.1);
}

.settings-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(24, 34, 47, 0.06);
}

.password-warning {
  padding: 10px;
  border-radius: 8px;
  background: #fff1d6;
  font-weight: 900;
}

@media (max-width: 760px) {
  .topbar {
    display: block;
    padding: 18px 16px;
  }

  .topbar h1 {
    font-size: 30px;
  }

  .topbar > nav {
    display: none;
  }

  .band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-heading {
    display: grid;
  }

  .status-stack {
    justify-items: start;
  }

  .dashboard-grid,
  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 142px;
  }

  .actions a,
  .actions button,
  .document-actions a,
  .document-actions button,
  .button {
    min-height: 46px;
    width: 100%;
  }
}

@media (min-width: 761px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }

  .mini-card-grid,
  .map-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

/* v0.1.x professional mobile cards */
:root {
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --ink-strong: #101820;
  --shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

body {
  background: #eef2f5;
  color: var(--ink-strong);
}

.topbar {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.topbar h1 {
  max-width: 780px;
  font-size: clamp(30px, 4vw, 44px);
}

.warning {
  background: #fff4df;
  color: #5d3600;
  font-weight: 800;
}

.band {
  padding-top: 22px;
  padding-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0;
}

.panel,
.day-card,
.suggestion-card,
.document-row,
.settings-card,
.trip-card-mini,
.map-button,
.category-card,
details {
  border-radius: 8px;
  border-color: #dfe7ee;
  box-shadow: var(--shadow);
}

.operator-card {
  min-height: 148px;
  overflow: hidden;
  background: var(--surface);
}

.operator-card h3 {
  margin-right: 42px;
  font-size: 24px;
  line-height: 1.12;
}

.panel-icon {
  right: 16px;
  top: 15px;
  font-size: 30px;
}

.health {
  color: #24435f;
}

.bottom-nav {
  border-top-color: #d7e1ea;
}

.bottom-nav a {
  min-height: 62px;
  font-size: 12px;
}

.bottom-nav span {
  font-size: 20px;
}

.timeline {
  align-items: start;
}

.day-card {
  background: #f9fbfc;
  padding: 14px;
}

.day-head {
  margin-bottom: 14px;
}

.day-head h3 {
  font-size: 21px;
}

.event,
.suggestion-card,
.document-row {
  display: block;
  margin: 10px 0;
  padding: 0;
  border: 1px solid #dfe7ee;
  border-left-width: 1px;
  background: var(--surface);
  overflow: hidden;
}

.event.flight,
.event.hotel,
.event.suggestion,
.event.checklist,
.event.transfer {
  border-left-width: 1px;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.card-summary {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.card-summary::after {
  content: "⌄";
  grid-column: 3;
  justify-self: end;
  align-self: end;
  color: var(--muted);
  font-weight: 900;
}

details[open] > .card-summary::after {
  content: "⌃";
}

.card-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f5;
  font-size: 26px;
}

.summary-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.summary-main strong {
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.18;
}

.summary-main small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.card-details {
  padding: 0 14px 14px 70px;
  color: #243444;
}

.card-details p:first-child {
  margin-top: 0;
}

.state {
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  font-size: 12px;
}

.state.proposed,
.state.planned {
  background: #315f8d;
}

.state.accepted,
.state.done {
  background: #25734d;
}

.state.maybe {
  background: #946413;
}

.state.rejected {
  background: #a9443a;
}

.suitability {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f7f3;
  color: #23543c;
  font-weight: 800;
}

.route-line {
  border: 1px solid #cfe0ef;
}

.time-list {
  padding: 10px 10px 10px 28px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.actions a,
.actions button,
.document-actions a,
.document-actions button,
.archive-row button,
.button {
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
}

.decision-row {
  gap: 10px;
}

.decision-row button {
  min-height: 54px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

.archive-row {
  margin-top: 10px;
}

.archive-row button {
  width: 100%;
  border: 1px solid #dfe7ee;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.category-card {
  min-height: 142px;
  background: #ffffff;
}

.category-card strong {
  font-size: 19px;
}

.category-icon {
  font-size: 28px;
}

.category-section {
  padding: 10px;
  background: #f9fbfc;
}

.category-section > summary {
  padding: 2px 4px;
  font-size: 18px;
}

.map-button {
  align-content: center;
  min-height: 56px;
  font-weight: 850;
}

.document-row {
  box-shadow: var(--shadow);
}

.selected-trip-card,
.create-trip-card,
.summary-card,
.planner-card {
  background: var(--surface);
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.selected-trip-card {
  padding: 16px;
}

.selected-trip-card h3,
.create-trip-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.create-trip-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
}

.summary-card span {
  font-size: 24px;
}

.summary-card strong {
  font-size: 22px;
}

.summary-card small {
  color: var(--muted);
  font-weight: 800;
}

.inline-warning {
  border-radius: 8px;
  border: 1px solid #e9c36b;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.planner-card {
  overflow: hidden;
}

.planner-card.selected-plan {
  border-color: #25734d;
  box-shadow: 0 0 0 3px rgba(37, 115, 77, 0.14), var(--shadow);
}

.planner-card .route-line {
  background: #f2f7f3;
  color: #23543c;
}

.planner-card .archive-row button {
  background: #10243d;
  color: #ffffff;
}

.proposal-card.status-accepted {
  border-color: rgba(37, 115, 77, 0.45);
}

.proposal-card.status-maybe {
  border-color: rgba(148, 100, 19, 0.45);
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .topbar {
    border-bottom: 1px solid #dfe7ee;
  }

  .subline {
    font-size: 14px;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .operator-card h3 {
    font-size: 22px;
  }

  .card-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .card-summary .state {
    grid-column: 2;
    justify-self: start;
  }

  .card-summary::after {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  .card-details {
    padding-left: 14px;
  }

  .decision-row {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .planner-grid {
    grid-template-columns: 1fr;
  }

  .create-trip-card {
    grid-template-columns: 1fr;
  }
}

/* v0.1.4 polished local-time cards */
:root {
  --mint-soft: #eaf7f1;
  --sky-soft: #eaf3fb;
  --amber-soft: #fff4de;
  --rose-soft: #fff0ee;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.selected-style-panel {
  border-top: 4px solid var(--teal);
}

.selected-style-panel h3 {
  color: #0e5f57;
}

.card-summary {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 92px;
  padding: 15px;
}

.card-summary::after {
  display: none;
}

.details-hint {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef3f6;
  color: #345066;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.details-hint::after {
  content: "⌄";
  font-size: 13px;
}

details[open] > summary .details-hint::after {
  content: "⌃";
}

.time-summary-line {
  color: #24435f;
  font-weight: 850;
}

.time-chip-row,
.pace-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.time-chip,
.pace-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--sky-soft);
  color: #173b64;
  font-size: 12px;
  font-weight: 900;
}

.time-chip:nth-child(2) {
  background: var(--mint-soft);
  color: #24533a;
}

.time-chip:nth-child(3) {
  background: var(--amber-soft);
  color: #674208;
}

.time-chip:nth-child(4) {
  background: var(--rose-soft);
  color: #75362d;
}

.pace-pill {
  background: #10243d;
  color: #ffffff;
}

.time-blocks {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) auto minmax(0, 1.4fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fbfdfe;
}

.time-row-time {
  color: #173b64;
  font-size: 12px;
  font-weight: 950;
}

.time-row-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef7f5;
  font-size: 20px;
}

.time-row-main {
  display: grid;
  min-width: 0;
}

.time-row-main strong {
  color: #142536;
  font-size: 14px;
  line-height: 1.2;
}

.time-row-main small,
.time-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.time-note {
  margin-top: 8px;
}

.planner-time-blocks {
  padding: 10px;
  border-radius: 8px;
  background: #f4f8fb;
}

.planner-card.selected-plan {
  border-color: #127069;
  box-shadow: 0 0 0 2px rgba(18, 112, 105, 0.16), var(--shadow);
}

.planner-card.selected-plan > summary {
  background: linear-gradient(180deg, #ffffff 0%, #effaf7 100%);
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible {
  background: #eef7f5;
  color: #0e5f57;
  outline: 2px solid rgba(18, 112, 105, 0.28);
  outline-offset: 2px;
  text-decoration: none;
}

.bottom-nav a:active {
  background: #e2f0ed;
}

@media (min-width: 980px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  .planner-grid,
  .suggestion-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

@media (max-width: 760px) {
  .card-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .card-summary .state,
  .details-hint {
    grid-column: 2;
    justify-self: start;
  }

  .card-details {
    padding-left: 14px;
  }

  .time-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .time-row-time {
    grid-column: 1 / -1;
  }

  .time-chip-row {
    display: grid;
  }

  .time-chip {
    justify-content: flex-start;
    width: 100%;
  }
}

/* v0.1.5 destination brief */
.destination-band {
  background: #f6f9fb;
}

.destination-brief-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.destination-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eef7f5 100%);
  border: 1px solid #d9e5ee;
}

.destination-hero h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
}

.destination-hero p {
  max-width: 760px;
  margin: 0;
  color: #243444;
  font-size: 18px;
  font-weight: 750;
}

.destination-facts {
  display: grid;
  gap: 8px;
  align-content: center;
}

.destination-facts span {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #243444;
  font-size: 13px;
  font-weight: 850;
}

.destination-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
  align-items: start;
}

.brief-card-grid,
.confirmed-day-grid {
  display: grid;
  gap: 12px;
}

.brief-card,
.confirmed-day-card,
.brief-side-panel {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.06);
  overflow: hidden;
}

.brief-card.status-rejected {
  border-color: rgba(169, 68, 58, 0.28);
}

.brief-card.status-maybe {
  border-color: rgba(148, 100, 19, 0.35);
}

.brief-summary {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.brief-summary::-webkit-details-marker {
  display: none;
}

.brief-details {
  padding: 0 14px 14px 70px;
}

.brief-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #243444;
  font-weight: 650;
}

.brief-list li {
  margin: 7px 0;
}

.brief-side-panel {
  position: sticky;
  top: 12px;
  padding: 14px;
}

.brief-side-panel h3,
.confirmed-itinerary h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.compact-map-grid {
  grid-template-columns: 1fr;
}

.confirmed-itinerary {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.compact-heading {
  margin-bottom: 0;
}

.singapore-schedule .time-row {
  grid-template-columns: minmax(120px, 0.72fr) auto minmax(0, 1.45fr) auto;
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.schedule-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  padding: 5px 9px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 980px) {
  .brief-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-card.status-rejected,
  .brief-card.status-maybe {
    grid-column: span 2;
  }

  .confirmed-day-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .confirmed-day-card {
    align-self: start;
  }
}

@media (max-width: 900px) {
  .destination-hero,
  .destination-layout {
    grid-template-columns: 1fr;
  }

  .brief-side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .destination-brief-card,
  .destination-hero {
    padding: 14px;
  }

  .brief-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .brief-summary .state,
  .brief-summary .details-hint {
    grid-column: 2;
    justify-self: start;
  }

  .brief-details {
    padding-left: 14px;
  }

  .singapore-schedule .time-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .schedule-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

/* v0.1.6 itinerary-first layout */
.itinerary-band {
  background: #ffffff;
}

.itinerary-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.day-nav-panel {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #f8fbfc;
  box-shadow: var(--shadow);
}

.day-nav-panel h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.day-nav-panel a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.day-nav-panel a:hover,
.day-nav-panel a:focus-visible {
  border-color: var(--teal);
  text-decoration: none;
}

.day-nav-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.confirmed-day-stack {
  display: grid;
  gap: 14px;
}

.itinerary-day-card {
  border-color: #cfe0ef;
}

.day-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.day-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--sky-soft);
  color: #173b64;
  font-size: 12px;
  font-weight: 900;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.section-subhead {
  margin: 0 0 10px;
  font-size: 22px;
}

.booking-list {
  display: grid;
  gap: 12px;
}

.booking-card {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.maps-band {
  background: #f8fbfc;
}

.route-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.route-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.route-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.route-card p {
  margin: 5px 0;
}

.archive-band {
  padding-top: 18px;
}

.planning-archive {
  border: 1px solid #cfdbe5;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.planning-archive > summary {
  min-height: 72px;
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--ink);
}

.planning-archive > summary span {
  font-size: 20px;
  font-weight: 950;
}

.planning-archive > summary small {
  color: var(--muted);
  font-weight: 750;
}

.archive-content {
  padding: 0 12px 12px;
}

.archive-content > .band {
  padding: 18px 0;
}

.archive-content .section-heading {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .itinerary-workspace,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .day-nav-panel {
    position: static;
  }
}

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

  .day-nav-panel {
    display: none;
  }

  .booking-card .card-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .booking-card .details-hint {
    grid-column: 2;
  }
}

/* v0.1.7 clean overview and task cards */
:root {
  --shadow-soft: 0 8px 18px rgba(16, 24, 32, 0.07);
}

.panel,
.destination-brief-card,
.brief-card,
.confirmed-day-card,
.booking-card,
.route-card,
.document-row,
.settings-card {
  box-shadow: var(--shadow-soft);
}

.quick-actions-card {
  min-height: 0;
}

.quick-button-grid {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.quick-button-grid .button {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  background: #10243d;
  color: #ffffff;
  border-color: #10243d;
}

.places-section {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.place-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.place-card {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.place-summary {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.place-summary::-webkit-details-marker {
  display: none;
}

.place-details {
  padding: 0 14px 14px 70px;
}

.place-notes-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.place-notes-form label {
  color: #243444;
  font-size: 13px;
  font-weight: 900;
}

.note-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.place-notes-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cfdbe5;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

.archived-planning-notes {
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #fbfdfe;
  box-shadow: none;
}

.archived-planning-notes > summary {
  min-height: 50px;
  padding: 12px 14px;
  color: #345066;
  font-size: 15px;
  font-weight: 950;
}

.archived-planning-notes > .brief-card-grid {
  padding: 0 12px 12px;
}

.task-card {
  border-left: 4px solid #315f8d;
}

.task-card.task-done {
  border-left-color: var(--green);
  background: #fbfdfb;
}

.task-card.task-done .summary-main strong {
  color: #32513d;
}

.task-mark {
  background: #f2f7f3;
}

.task-todo .task-mark {
  background: #eef4fb;
}

.task-done .card-details,
.task-done .time-note {
  color: #4f6257;
}

.document-actions .button {
  min-height: 48px;
}

.route-card .actions a,
.place-card .actions a,
.singapore-schedule .schedule-actions a {
  min-height: 40px;
}

.day-metrics span {
  border-radius: 8px;
}

@media (min-width: 980px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quick-button-grid .button,
  .route-card .actions a,
  .place-card .actions a,
  .document-actions .button {
    justify-content: center;
    min-height: 52px;
    font-size: 16px;
  }

  .place-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .place-summary .details-hint {
    grid-column: 2;
    justify-self: start;
  }

  .place-details {
    padding-left: 14px;
  }
}

/* v0.1.8 app-style itinerary views */
.app-shell {
  min-height: calc(100vh - 170px);
}

.app-view,
.utility-section {
  display: none;
}

.app-view.is-active {
  display: block;
}

.print-view .app-view,
.print-view .utility-section {
  display: block;
}

.view-nav a.is-active,
.bottom-nav a.is-active {
  border-color: #173b64;
  background: #173b64;
  color: #ffffff;
  text-decoration: none;
}

.bottom-nav a.is-active span {
  color: #ffffff;
}

.day-nav-panel {
  align-content: start;
}

.day-tab {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.day-tab:hover,
.day-tab:focus-visible,
.day-tab.is-active {
  border-color: #173b64;
  box-shadow: 0 0 0 3px rgba(36, 92, 155, 0.12);
}

.day-tab.is-active {
  background: #173b64;
  color: #ffffff;
}

.day-tab span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.day-tab.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.day-panel {
  display: none;
}

.day-panel.is-active,
.print-view .day-panel {
  display: block;
}

.place-summary {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.place-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  white-space: nowrap;
  border: 1px solid #cfdbe5;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f8fbfc;
  color: #395064;
  font-size: 12px;
  font-weight: 950;
}

.place-status.is-visited {
  border-color: rgba(45, 122, 77, 0.32);
  background: #eef8f1;
  color: #275b3d;
}

.place-card.visited {
  border-color: rgba(45, 122, 77, 0.42);
}

.note-preview {
  color: #455d72;
  font-weight: 800;
}

.place-actions-row {
  margin: 12px 0 0;
}

.place-actions-row .button,
.place-notes-form .button {
  min-height: 44px;
}

.archive-band {
  padding-top: 0;
}

.archive-band.is-active {
  display: block;
}

@media (max-width: 760px) {
  .app-shell {
    min-height: calc(100vh - 190px);
  }

  .band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .view-nav {
    display: none;
  }

  .day-nav-panel {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x proximity;
  }

  .day-nav-panel .eyebrow,
  .day-nav-panel h3 {
    display: none;
  }

  .day-tab {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .place-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .place-status,
  .place-summary .details-hint {
    grid-column: 2;
    justify-self: start;
  }

  .place-status {
    margin-top: 3px;
  }
}

/* v0.1.9 practical trip controls */
.practical-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.compact-line {
  margin: 0;
  color: #26384a;
  font-weight: 750;
}

.compact-action {
  width: fit-content;
  margin-top: 4px;
}

.flight-status,
.manual-tracking-badge,
.comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.flight-status {
  border: 1px solid #cad8e3;
  background: #f4f8fb;
  color: #29455e;
}

.status-scheduled,
.status-confirmed {
  border-color: rgba(45, 122, 77, 0.32);
  background: #eef8f1;
  color: #275b3d;
}

.status-check-closer,
.status-unknown {
  border-color: rgba(155, 106, 22, 0.32);
  background: #fff8e8;
  color: #75500e;
}

.status-delayed,
.status-cancelled {
  border-color: rgba(184, 80, 66, 0.32);
  background: #fff0ed;
  color: #8f3529;
}

.manual-tracking-badge {
  border: 1px solid #d9e5ee;
  background: #eef4fb;
  color: #173b64;
}

.status-note {
  color: #41576b;
  font-weight: 750;
}

.places-control-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.place-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.place-progress span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  border: 1px solid #cfdbe5;
  border-radius: 999px;
  background: #ffffff;
  color: #26384a;
  padding: 7px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: #173b64;
  background: #173b64;
  color: #ffffff;
}

.place-card.is-filtered-out {
  display: none;
}

.place-summary {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.comment-badge {
  border: 1px solid #d9e5ee;
  background: #f8fbfc;
  color: #3d5265;
}

.comment-badge.has-comment {
  border-color: rgba(36, 92, 155, 0.3);
  background: #eef4fb;
  color: #173b64;
}

.comment-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #173b64;
  border-radius: 7px;
  background: #173b64;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.document-add-card {
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.document-add-card > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #173b64;
  font-size: 17px;
}

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

.document-add-form label,
.document-add-form .wide-field {
  display: grid;
  gap: 6px;
  color: #243444;
  font-size: 13px;
  font-weight: 900;
}

.document-add-form input,
.document-add-form textarea {
  width: 100%;
  border: 1px solid #cfdbe5;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

.document-add-form .wide-field {
  grid-column: 1 / -1;
}

.document-add-form button {
  justify-self: start;
}

@media (max-width: 760px) {
  .compact-action,
  .document-add-form button {
    width: 100%;
  }

  .place-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .place-status,
  .comment-badge,
  .comment-button,
  .place-summary .details-hint {
    grid-column: 2;
    justify-self: start;
  }

  .comment-button {
    min-height: 42px;
  }

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

/* v0.1.10 day-first itinerary app */
.topbar {
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.topbar h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.view-nav a.is-day-active,
.bottom-nav a.is-day-active {
  border-color: #173b64;
  background: #173b64;
  color: #ffffff;
  text-decoration: none;
}

.bottom-nav a.is-day-active span {
  color: #ffffff;
}

.itinerary-band {
  background: #f7f4ee;
}

.itinerary-workspace {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 18px;
}

.day-nav-panel {
  top: 16px;
}

.day-panel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #d9e5ee;
  padding: 18px;
}

.day-panel-header h3 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 30px);
}

.day-panel-header p {
  margin: 0;
}

.confirmed-day-card {
  overflow: hidden;
}

.confirmed-day-card .brief-details {
  padding: 16px;
}

.day-activity-list {
  display: grid;
  gap: 12px;
}

.activity-card {
  border: 1px solid #d5e2ec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 0;
}

.activity-card.visited {
  border-color: rgba(45, 122, 77, 0.45);
  background: #fbfdfb;
}

.activity-summary {
  display: grid;
  grid-template-columns: minmax(88px, 120px) auto minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  list-style: none;
}

.activity-summary::-webkit-details-marker {
  display: none;
}

.activity-time {
  color: #173b64;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.activity-icon {
  font-size: 26px;
}

.activity-details {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e2ebf2;
  padding: 0 14px 14px 158px;
}

.activity-actions a {
  background: #10243d;
  color: #ffffff;
  border-color: #10243d;
}

.today-directions {
  margin-top: 18px;
}

.day-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.day-route-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.day-route-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.day-route-card p {
  margin: 5px 0;
}

.day-route-card .actions a {
  min-height: 42px;
  background: #10243d;
  color: #ffffff;
  border-color: #10243d;
}

@media (max-width: 760px) {
  .topbar {
    display: block;
  }

  .topbar .view-nav {
    display: none;
  }

  .itinerary-workspace {
    grid-template-columns: 1fr;
  }

  .day-nav-panel {
    display: none;
  }

  .confirmed-day-card .brief-details {
    padding: 12px;
  }

  .day-panel-header {
    padding: 14px;
  }

  .activity-summary {
    grid-template-columns: minmax(72px, 88px) auto minmax(0, 1fr);
    align-items: start;
  }

  .activity-summary .place-status,
  .activity-summary .comment-badge,
  .activity-summary .comment-button {
    grid-column: 3;
    justify-self: start;
  }

  .activity-details {
    padding: 0 14px 14px;
  }

  .activity-actions a,
  .day-route-card .actions a {
    width: 100%;
  }

  .day-route-card {
    grid-template-columns: 1fr;
  }
}

/* v0.1.11 clean day screen redesign */
:root {
  --app-bg: #f5f7f8;
  --card-border: #dce5ec;
  --card-shadow: 0 10px 24px rgba(22, 35, 48, 0.07);
}

body {
  background: var(--app-bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(210, 220, 228, 0.85);
  box-shadow: 0 8px 22px rgba(24, 34, 47, 0.08);
}

.topbar h1 {
  font-size: clamp(20px, 2.4vw, 30px);
}

.topbar .eyebrow,
.topbar .subline {
  margin-top: 3px;
}

.selected-day-title {
  color: #173b64;
  font-weight: 950;
}

.warning {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}

.itinerary-band {
  padding-top: 18px;
  background: var(--app-bg);
}

.clean-agenda-workspace {
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  align-items: start;
}

.mobile-day-segment {
  display: none;
}

.day-nav-panel,
.side-card,
.day-summary-card,
.agenda-card,
.day-route-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.day-nav-panel {
  border-radius: 12px;
}

.day-tab {
  border-radius: 10px;
}

.agenda-column {
  display: grid;
  gap: 18px;
}

.day-panel {
  display: none;
}

.day-panel.is-active {
  display: grid;
  gap: 18px;
}

.day-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
}

.day-summary-card h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.day-summary-card p {
  margin: 0;
  color: #394b5d;
  font-weight: 750;
}

.summary-facts {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.summary-facts span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: #f2f6f8;
  color: #30485e;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 850;
}

.agenda-groups {
  display: grid;
  gap: 22px;
}

.agenda-group h3 {
  margin: 0 0 10px;
  color: #173b64;
  font-size: 17px;
  text-transform: uppercase;
}

.agenda-list {
  display: grid;
  gap: 12px;
}

.agenda-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.agenda-card.visited {
  border-color: rgba(45, 122, 77, 0.38);
  background: #fbfdfb;
}

.agenda-time {
  color: #173b64;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.agenda-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.agenda-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.agenda-main h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.agenda-location,
.agenda-note,
.agenda-transport,
.note-preview {
  margin: 0;
}

.agenda-location {
  color: #627180;
  font-size: 14px;
  font-weight: 800;
}

.agenda-note {
  color: #2c3f50;
}

.agenda-transport {
  color: #536778;
  font-size: 14px;
  font-weight: 800;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-actions form,
.comment-popover form {
  margin: 0;
}

.icon-action,
.chip-action,
.comment-popover > summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3dee7;
  border-radius: 999px;
  background: #f8fbfc;
  color: #22384e;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.icon-action:hover,
.chip-action:hover,
.comment-popover > summary:hover {
  border-color: #173b64;
  text-decoration: none;
}

.chip-action.is-visited {
  border-color: rgba(45, 122, 77, 0.35);
  background: #eef8f1;
  color: #275b3d;
}

.comment-popover {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.comment-popover[open] {
  flex-basis: 100%;
}

.comment-popover[open] > summary {
  margin-bottom: 8px;
}

.comment-popover form {
  display: grid;
  gap: 8px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  background: #f8fbfc;
  padding: 10px;
}

.comment-popover label {
  color: #243444;
  font-size: 13px;
  font-weight: 900;
}

.comment-popover textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cfdbe5;
  border-radius: 8px;
  padding: 9px;
  font: inherit;
}

.comment-popover .button {
  width: fit-content;
  min-height: 36px;
}

.today-directions {
  margin-top: 4px;
}

.today-directions .compact-heading {
  margin-bottom: 10px;
}

.day-route-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.day-route-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  box-shadow: none;
}

.day-route-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.day-route-card p,
.day-route-card small {
  display: block;
  margin: 0;
  color: #5d6f7f;
  font-size: 13px;
  font-weight: 750;
}

.day-side-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 118px;
}

.side-card {
  padding: 14px;
}

.side-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.side-card p {
  margin: 0;
  color: #536778;
  font-size: 14px;
}

.side-routes {
  display: none;
}

.side-routes.is-active {
  display: grid;
  gap: 8px;
}

.side-routes a {
  display: block;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  padding: 8px;
  color: #173b64;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .clean-agenda-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .day-side-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar .eyebrow,
  .topbar .subline {
    font-size: 12px;
    margin: 2px 0 0;
  }

  .warning {
    display: none;
  }

  .itinerary-band {
    padding: 12px 12px 24px;
  }

  .clean-agenda-workspace {
    grid-template-columns: 1fr;
  }

  .mobile-day-segment {
    position: sticky;
    top: 88px;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 620px;
    margin: 0 auto 12px;
    border: 1px solid #d8e2ea;
    border-radius: 999px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(24, 34, 47, 0.08);
  }

  .segment-day {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #30485e;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
  }

  .segment-day.is-active,
  .segment-day.is-day-active {
    background: #173b64;
    color: #ffffff;
  }

  .day-nav-panel,
  .day-side-panel {
    display: none;
  }

  .agenda-column {
    gap: 14px;
  }

  .day-summary-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .day-summary-card h2 {
    font-size: 30px;
  }

  .summary-facts {
    min-width: 0;
  }

  .agenda-group h3 {
    margin-left: 2px;
  }

  .agenda-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .agenda-time {
    color: #627180;
  }

  .agenda-main h4 {
    font-size: 17px;
  }

  .compact-actions {
    gap: 7px;
  }

  .icon-action,
  .chip-action,
  .comment-popover > summary {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .comment-popover .button {
    width: 100%;
  }

  .day-route-grid {
    grid-template-columns: 1fr;
  }

  .day-route-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* v0.1.11 stay and day itinerary layout */
:root {
  --stay-bg: #f4f7f8;
  --stay-ink: #17212d;
  --stay-muted: #637181;
  --stay-line: #dce4ea;
  --stay-soft: #ffffff;
  --stay-blue: #173b64;
  --stay-teal: #0f6d64;
  --stay-gold: #8f6a1e;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, var(--stay-bg) 230px),
    var(--stay-bg);
}

.utility-section,
.archive-band,
#maps.utility-section,
#places.utility-section,
#overview.utility-section,
#trips.utility-section,
#settings.utility-section {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
  box-shadow: 0 6px 24px rgba(23, 33, 45, 0.06);
}

.topbar h1 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.selected-day-title {
  color: var(--stay-blue);
  font-weight: 850;
}

.view-nav a.is-active,
.bottom-nav a.is-active,
.view-nav a.is-day-active,
.bottom-nav a.is-day-active {
  border-color: var(--stay-blue);
  background: var(--stay-blue);
  color: #ffffff;
}

.compact-password-warning {
  display: block;
  max-width: 1180px;
  margin: 10px auto 0;
  border: 1px solid #ead191;
  border-radius: 8px;
  background: #fff9e8;
  color: #604800;
  padding: 6px 10px;
  font-size: 12px;
}

.stay-layout {
  padding-top: 18px;
}

.trip-home {
  display: block;
  max-width: 1180px;
  margin: 0 auto 12px;
}

.trip-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--stay-line);
  border-radius: 10px;
  background: var(--stay-soft);
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(23, 33, 45, 0.05);
}

.trip-title-block h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.trip-title-block p {
  margin: 0;
  color: var(--stay-muted);
  font-weight: 750;
}

.trip-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  grid-column: 1 / -1;
  color: var(--stay-muted);
  font-size: 13px;
  font-weight: 800;
}

.stay-card-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr));
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto 14px;
}

.stay-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--stay-line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(23, 33, 45, 0.045);
}

.stay-card-primary {
  grid-column: auto;
  border-color: rgba(15, 109, 100, 0.35);
  box-shadow: 0 16px 38px rgba(15, 109, 100, 0.12);
}

.stay-card-head,
.stay-hotel-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.stay-card h3 {
  margin: 0;
  color: var(--stay-ink);
  font-size: 20px;
  line-height: 1.1;
}

.stay-card p,
.stay-card small,
.stay-facts dd {
  color: var(--stay-muted);
}

.stay-card p {
  margin: 5px 0 0;
}

.stay-status {
  border: 1px solid rgba(15, 109, 100, 0.22);
  border-radius: 999px;
  background: #eaf7f4;
  color: var(--stay-teal);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 950;
  text-transform: capitalize;
  white-space: nowrap;
}

.stay-hotel-line {
  justify-content: flex-start;
}

.stay-hotel-line > span {
  font-size: 20px;
}

.stay-hotel-line strong,
.stay-hotel-line small {
  display: block;
}

.stay-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.stay-facts div {
  display: grid;
  gap: 2px;
}

.stay-facts dt {
  color: var(--stay-teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.stay-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 760;
}

.stay-actions,
.stay-day-menu,
.support-button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stay-day-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
}

.stay-day-button {
  min-height: 58px;
  display: grid;
  gap: 2px;
  border: 1px solid #d3dde6;
  border-radius: 10px;
  background: #f8fbfc;
  color: #26394b;
  padding: 9px;
  font: inherit;
  text-align: left;
}

.stay-day-button span {
  font-size: 13px;
  font-weight: 950;
}

.stay-day-button strong {
  font-size: 12px;
  color: #687785;
}

.stay-day-button.is-active,
.stay-day-button.is-day-active {
  border-color: var(--stay-blue);
  background: var(--stay-blue);
  color: #ffffff;
}

.stay-day-button.is-active strong,
.stay-day-button.is-day-active strong {
  color: rgba(255, 255, 255, 0.82);
}

.stay-placeholder {
  border-top: 1px solid var(--stay-line);
  padding-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.stay-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.stay-day-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid var(--stay-line);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(23, 33, 45, 0.06);
}

.stay-day-panel h3,
.stay-day-panel p {
  margin: 0;
}

.support-button-stack {
  border-top: 1px solid var(--stay-line);
  padding-top: 10px;
}

.agenda-column {
  min-width: 0;
}

.day-panel {
  display: none;
}

.day-panel.is-active {
  display: block;
}

.stay-day-summary {
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(23, 33, 45, 0.07);
}

.stay-day-summary h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.activity-card-clean {
  border-radius: 12px;
  background: #ffffff;
}

.activity-card-clean .agenda-body {
  display: grid;
  min-width: 0;
}

.activity-card-clean .agenda-note {
  margin-bottom: 2px;
  color: #2b3a48;
  font-size: 15px;
}

.activity-card-clean .agenda-transport {
  margin: 0;
  color: var(--stay-muted);
  font-size: 13px;
}

.activity-action-row {
  align-items: center;
  border-top: 1px solid #edf1f4;
  margin-top: 12px;
  padding-top: 10px;
}

.activity-action-row form {
  margin: 0;
}

.icon-action,
.chip-action,
.comment-popover > summary {
  min-height: 34px;
  border: 1px solid #d8e2ea;
  border-radius: 999px;
  background: #ffffff;
  color: #203346;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.icon-action:hover,
.chip-action:hover,
.comment-popover > summary:hover {
  border-color: var(--stay-blue);
  text-decoration: none;
}

.chip-action.is-visited {
  border-color: rgba(45, 122, 77, 0.3);
  background: #edf8f1;
  color: #286c45;
}

.note-popover[open] {
  flex-basis: 100%;
}

.note-popover textarea {
  min-height: 84px;
}

.note-preview {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #4b5b69;
  font-size: 13px;
  font-weight: 800;
}

.today-directions {
  border-top: 1px solid var(--stay-line);
  margin-top: 18px;
  padding-top: 16px;
}

.day-route-card {
  border-radius: 12px;
}

.day-route-card .icon-action {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .stay-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stay-card-primary {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 10px 12px;
  }

  .view-nav {
    display: none;
  }

  .compact-password-warning {
    display: block;
    margin: 6px 12px 0;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
  }

  .stay-layout {
    padding: 12px;
  }

  .trip-home {
    margin-bottom: 10px;
  }

  .trip-title-block {
    grid-template-columns: 1fr;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 2px;
  }

  .trip-title-block h2 {
    font-size: 19px;
  }

  .trip-meta-line {
    gap: 5px 8px;
    font-size: 11px;
    line-height: 1.25;
  }

  .trip-meta-line span:nth-child(1),
  .trip-meta-line span:nth-child(2) {
    display: none;
  }

  .stay-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .stay-card,
  .stay-card-primary {
    grid-column: auto;
    border-radius: 10px;
    padding: 12px;
  }

  .stay-card h3 {
    font-size: 20px;
  }

  .stay-card:not(.stay-card-primary) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .stay-card:not(.stay-card-primary) .stay-hotel-line,
  .stay-card:not(.stay-card-primary) .stay-facts,
  .stay-card:not(.stay-card-primary) .stay-actions,
  .stay-card:not(.stay-card-primary) .stay-placeholder {
    grid-column: 1 / -1;
  }

  .stay-card:not(.stay-card-primary) .stay-facts,
  .stay-card:not(.stay-card-primary) .stay-actions,
  .stay-card:not(.stay-card-primary) .stay-placeholder {
    display: none;
  }

  .stay-card:not(.stay-card-primary) .stay-hotel-line {
    font-size: 13px;
  }

  .stay-day-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stay-day-button {
    min-height: 46px;
    align-items: center;
    padding: 7px;
  }

  .stay-day-button span {
    font-size: 12px;
  }

  .stay-day-button strong {
    font-size: 10px;
  }

  .stay-card-primary .stay-facts div:nth-child(1),
  .stay-card-primary .stay-facts div:nth-child(3) {
    display: none;
  }

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

  .stay-day-panel {
    display: none;
  }

  .day-summary-card {
    border-radius: 12px;
    padding: 15px;
  }

  .stay-day-summary h2 {
    font-size: 26px;
  }

  .agenda-card {
    border-radius: 12px;
  }

  .activity-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-action-row .note-popover {
    grid-column: 1 / -1;
  }

  .icon-action,
  .chip-action,
  .comment-popover > summary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .bottom-nav {
    display: flex;
  }
}

@media (max-width: 460px) {
  .topbar h1 {
    font-size: 20px;
  }

  .topbar .subline {
    font-size: 12px;
  }

  .trip-title-block h2 {
    font-size: 30px;
  }

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

/* v0.1.12 scalable stay card app layout */
.topbar .view-nav a[href="#days"]::before {
  content: "📍 ";
}

.topbar .view-nav a[href="#stays"]::before {
  content: "🏨 ";
}

.today-layout .trip-home {
  margin-bottom: 10px;
}

.selected-stay-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--stay-line);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(23, 33, 45, 0.055);
  margin-bottom: 12px;
}

.selected-stay-card h2,
.selected-stay-card p {
  margin: 0;
}

.selected-stay-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.selected-stay-card p {
  color: var(--stay-muted);
  font-weight: 800;
}

.mobile-stay-day-menu {
  display: none;
}

.stays-view {
  padding-top: 18px;
}

.stays-heading {
  max-width: 1180px;
  margin: 0 auto 14px;
}

.all-stays-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.all-stays-grid .stay-card-primary {
  grid-column: span 1;
}

.stay-day-scroll {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.stay-day-placeholder {
  opacity: 0.78;
  cursor: default;
}

.stay-day-placeholder span,
.stay-day-placeholder strong {
  color: #657484;
}

.bottom-nav a[href*="day-1-"] {
  display: none;
}

@media (min-width: 980px) {
  .stay-workspace {
    grid-template-columns: 260px minmax(0, 1fr) 250px;
  }

  .stay-workspace::after {
    content: "Selected stay\\A Paradox Singapore Merchant Court\\A\\AUse Stays to switch city. Flights and Docs stay secondary.";
    white-space: pre-line;
    align-self: start;
    position: sticky;
    top: 104px;
    border: 1px solid var(--stay-line);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    color: var(--stay-muted);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(23, 33, 45, 0.05);
  }
}

@media (max-width: 820px) {
  .today-layout {
    padding-top: 10px;
  }

  .selected-stay-card {
    grid-template-columns: 1fr auto;
    padding: 11px;
    margin-bottom: 10px;
  }

  .selected-stay-card h2 {
    font-size: 22px;
  }

  .selected-stay-card p {
    font-size: 12px;
  }

  .selected-stay-card .icon-action {
    width: auto;
    min-width: 96px;
  }

  .mobile-stay-day-menu {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-stay-day-menu::-webkit-scrollbar,
  .stay-day-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-stay-day-menu .stay-day-button {
    min-height: 48px;
  }

  .all-stays-grid {
    grid-template-columns: 1fr;
  }

  .stays-view {
    padding: 12px;
  }

  .stays-heading {
    margin-bottom: 10px;
  }

  .stays-heading h2 {
    margin: 0;
    font-size: 24px;
  }

  .stay-day-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86px, 30%);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .all-stays-grid .stay-card:not(.stay-card-primary) .stay-facts,
  .all-stays-grid .stay-card:not(.stay-card-primary) .stay-actions,
  .all-stays-grid .stay-card:not(.stay-card-primary) .stay-placeholder {
    display: grid;
  }

  .all-stays-grid .stay-card:not(.stay-card-primary) .stay-actions {
    display: flex;
  }

  .bottom-nav a {
    flex: 1 1 0;
  }
}

@media (max-width: 460px) {
  .trip-title-block h2 {
    font-size: 19px;
  }

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

  .selected-stay-card .icon-action {
    width: 100%;
  }
}

/* v0.1.14 swipeable stay cards */
.stay-selector-block {
  max-width: 1180px;
  margin: 0 auto 16px;
}

.stay-selector-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stay-selector-heading h3,
.stay-selector-heading p {
  margin: 0;
}

.stay-selector-heading h3 {
  color: var(--stay-ink);
  font-size: 20px;
  line-height: 1.1;
}

.stay-selector-heading > span {
  color: var(--stay-muted);
  font-size: 12px;
  font-weight: 900;
}

.stay-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 3px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 84, 127, 0.35) transparent;
}

.stay-carousel::-webkit-scrollbar {
  height: 6px;
}

.stay-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(31, 84, 127, 0.28);
}

.stay-carousel-card {
  position: relative;
  flex: 0 0 min(84vw, 340px);
  scroll-snap-align: start;
  border: 1px solid var(--stay-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 33, 45, 0.07);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stay-carousel-card.is-active {
  border-color: rgba(15, 109, 100, 0.55);
  box-shadow: 0 18px 42px rgba(15, 109, 100, 0.16);
  transform: translateY(-1px);
}

.stay-select-card {
  width: 100%;
  display: grid;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--stay-ink);
  padding: 16px 16px 52px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.stay-select-card:focus-visible {
  outline: 3px solid rgba(31, 84, 127, 0.26);
  outline-offset: 3px;
  border-radius: 14px;
}

.stay-card-topline,
.stay-hotel-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stay-card-topline > span:first-child {
  color: var(--stay-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.stay-select-card strong {
  font-size: 26px;
  line-height: 1.05;
}

.stay-select-card > span:not(.stay-card-topline):not(.stay-hotel-mini),
.stay-select-card small {
  color: var(--stay-muted);
  font-size: 13px;
  font-weight: 800;
}

.stay-hotel-mini {
  justify-content: flex-start;
  color: #26394b;
  font-size: 14px;
  font-weight: 900;
}

.mini-map-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ea;
  border-radius: 999px;
  background: #f8fbfc;
  color: #203346;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 950;
}

.mini-map-link:hover,
.mini-map-link:focus-visible {
  border-color: var(--stay-blue);
  text-decoration: none;
}

.stay-panels,
.stay-detail-panels {
  max-width: 1180px;
  margin: 0 auto;
}

.stay-panel,
.stay-detail-panel {
  display: none;
}

.stay-panel.is-active,
.stay-detail-panel.is-active {
  display: block;
}

.placeholder-day-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 1fr);
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.placeholder-day-row::-webkit-scrollbar {
  display: none;
}

.stay-planning-day {
  cursor: pointer;
}

.empty-stay-state {
  border: 1px dashed #cdd8e2;
  border-radius: 14px;
  background: #f8fbfc;
  padding: 18px;
  color: var(--stay-muted);
}

.empty-stay-state h3,
.empty-stay-state p {
  margin: 0;
}

.empty-stay-state h3 {
  color: var(--stay-ink);
  margin-bottom: 6px;
}

.stays-selector-block {
  margin-bottom: 12px;
}

.stays-carousel .stay-carousel-card {
  flex-basis: min(82vw, 320px);
}

.stay-detail-panel {
  border: 1px solid var(--stay-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(23, 33, 45, 0.065);
}

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

.stay-detail-header h3,
.stay-detail-header p {
  margin: 0;
}

.stay-detail-header h3 {
  color: var(--stay-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.stay-detail-header p {
  color: var(--stay-muted);
  font-weight: 800;
}

.stay-detail-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .stay-carousel-card {
    flex-basis: min(31vw, 330px);
  }

  .today-layout .stay-carousel-card {
    flex-basis: min(30vw, 330px);
  }
}

@media (max-width: 820px) {
  .stay-selector-heading {
    align-items: start;
  }

  .stay-selector-heading > span {
    max-width: 96px;
    text-align: right;
  }

  .stay-carousel {
    margin-right: -12px;
    padding-right: 12px;
  }

  .stay-carousel-card {
    flex-basis: 82vw;
  }

  .stay-select-card {
    min-height: 190px;
  }

  .stay-select-card strong {
    font-size: 28px;
  }

  .selected-placeholder-card {
    grid-template-columns: 1fr auto;
  }

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

  .stay-detail-panel {
    padding: 14px;
  }
}

@media (max-width: 460px) {
  .stay-carousel-card {
    flex-basis: 84vw;
  }

  .stay-select-card strong {
    font-size: 25px;
  }

  .selected-placeholder-card {
    grid-template-columns: 1fr;
  }
}

/* v0.1.13 print controls and no-jump actions */
.print-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.print-option-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--stay-line);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(23, 33, 45, 0.045);
}

.print-option-card > span {
  font-size: 24px;
}

.print-option-card h3,
.print-option-card p {
  margin: 0;
}

.print-option-card p {
  color: var(--stay-muted);
  font-size: 13px;
  font-weight: 750;
}

/* v0.1.25 editable users and roles */
.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-user-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--stay-line);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(23, 33, 45, 0.045);
}

.admin-user-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-user-heading > span {
  font-size: 24px;
}

.admin-user-heading h3,
.admin-user-heading p {
  margin: 0;
}

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

.admin-user-form label,
.checkbox-line {
  display: grid;
  gap: 6px;
  color: #243444;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-form input,
.admin-user-form select,
.document-add-form select {
  width: 100%;
  border: 1px solid #cfdbe5;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}

.checkbox-line input {
  width: auto;
}

.admin-user-actions {
  margin-top: 10px;
}

.admin-add-user-card {
  margin-bottom: 18px;
}

/* v0.1.26 app login and logout */
.login-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 249, 0.94)),
    var(--stay-bg);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--stay-line);
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(23, 33, 45, 0.12);
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #243444;
  font-size: 13px;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  border: 1px solid #cfdbe5;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfdfe;
  font: inherit;
}

.login-warning,
.login-error {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
}

.login-warning {
  border: 1px solid #f1c77a;
  background: #fff7e6;
  color: #6f4a05;
}

.login-error {
  border: 1px solid #f0a5a5;
  background: #fff0f0;
  color: #842929;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: var(--stay-muted);
  font-size: 12px;
  font-weight: 850;
}

.account-logout button {
  min-height: 34px;
  border: 1px solid #cfdbe5;
  border-radius: 999px;
  background: #ffffff;
  color: #173b64;
  padding: 6px 11px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.account-logout button:hover,
.account-logout button:focus-visible {
  border-color: #173b64;
}

@media (max-width: 760px) {
  .admin-user-grid,
  .admin-user-form {
    grid-template-columns: 1fr;
  }

  .admin-user-actions .button,
  .admin-user-card > form:last-child .button {
    width: 100%;
  }

  .login-shell {
    align-items: start;
    padding: 18px;
  }

  .login-card {
    border-radius: 12px;
    padding: 18px;
  }

  .account-logout {
    width: 100%;
    justify-content: space-between;
    grid-column: 1 / -1;
  }
}

.flight-check-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--stay-line);
  margin-top: 12px;
  padding-top: 12px;
}

.flight-check-form label {
  display: grid;
  gap: 5px;
  color: var(--stay-muted);
  font-size: 12px;
  font-weight: 900;
}

.flight-check-form select {
  min-height: 38px;
  border: 1px solid var(--stay-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--stay-ink);
  padding: 7px 10px;
  font: inherit;
  font-weight: 800;
}

.ajax-visited-form button:disabled,
.ajax-comment-form button:disabled {
  opacity: 0.6;
}

.print-view .topbar,
.print-view .bottom-nav,
.print-view .compact-password-warning,
.print-view footer,
.print-view .view-nav,
.print-view .print-options-view,
.print-view .stay-selector-block,
.print-view .stay-detail-panels,
.print-view .placeholder-stay-panel,
.print-view .selected-stay-card .icon-action,
.print-view .mobile-stay-day-menu,
.print-view .support-button-stack,
.print-view .print-day-action {
  display: none !important;
}

.print-view .app-shell {
  min-height: auto;
}

.print-view .app-view,
.print-view .utility-section {
  display: none !important;
}

.print-view.print-scope-full .app-view,
.print-view.print-scope-full .utility-section {
  display: block !important;
}

.print-view.print-scope-stay #days,
.print-view.print-scope-day #days,
.print-view.print-scope-docs #docs,
.print-view.print-scope-flights #bookings {
  display: block !important;
}

.print-view .print-hidden {
  display: none !important;
}

.print-view.print-scope-day .day-panel {
  display: block;
}

@media (max-width: 820px) {
  .print-option-grid {
    grid-template-columns: 1fr;
  }

  .flight-check-form {
    display: grid;
  }

  .flight-check-form .button {
    width: 100%;
  }
}

/* v0.1.19 mobile/tablet layout confidence pass */
.app-shell {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.today-layout {
  padding-bottom: 16px;
}

.stay-selector-block {
  margin-bottom: 12px;
}

.stay-selector-heading {
  align-items: center;
}

.stay-selector-heading h3 {
  font-size: 18px;
}

.stay-carousel {
  gap: 10px;
  padding-bottom: 12px;
}

.stay-carousel-card {
  flex-basis: min(82vw, 318px);
  border-radius: 12px;
}

.stay-select-card {
  gap: 6px;
  padding: 13px 14px 46px;
}

.stay-select-card strong {
  font-size: 24px;
}

.stay-select-card small {
  line-height: 1.25;
}

.mini-map-link {
  bottom: 10px;
  right: 10px;
  min-height: 30px;
}

.selected-stay-card,
.day-summary-card,
.stay-detail-panel,
.activity-card-clean,
.day-route-card,
.print-option-card,
.booking-card {
  border-radius: 11px;
}

.selected-stay-card {
  margin-bottom: 10px;
  padding: 12px 13px;
}

.selected-stay-card h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.stay-day-summary {
  box-shadow: 0 10px 28px rgba(23, 33, 45, 0.06);
}

.stay-day-summary h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.summary-facts {
  gap: 7px;
}

.agenda-groups {
  gap: 14px;
}

.agenda-list {
  gap: 10px;
}

.activity-card-clean .agenda-note {
  font-size: 14px;
  line-height: 1.42;
}

.day-route-grid {
  gap: 10px;
}

@media (min-width: 821px) and (max-width: 1080px) {
  .topbar {
    padding: 12px 22px;
  }

  .stay-layout,
  .stays-view,
  #bookings.app-view,
  #docs.app-view,
  #print.app-view {
    padding-left: 22px;
    padding-right: 22px;
  }

  .trip-title-block {
    padding: 12px 14px;
  }

  .stay-carousel-card {
    flex-basis: min(42vw, 330px);
  }

  .today-layout .stay-carousel-card {
    flex-basis: min(42vw, 330px);
  }

  .stay-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
  }

  .stay-day-panel {
    top: 92px;
    padding: 12px;
  }

  .stay-day-panel h3 {
    font-size: 18px;
    line-height: 1.15;
  }

  .selected-stay-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .day-route-grid,
  .booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  body {
    background:
      linear-gradient(180deg, #ffffff 0, var(--stay-bg) 150px),
      var(--stay-bg);
  }

  .topbar {
    padding: 8px 12px 7px;
    box-shadow: 0 4px 16px rgba(23, 33, 45, 0.055);
  }

  .topbar h1 {
    font-size: 19px;
    line-height: 1;
  }

  .topbar .eyebrow {
    font-size: 10px;
  }

  .topbar .subline {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.15;
  }

  .topbar .subline:not(.selected-day-title) {
    display: none;
  }

  .selected-day-title {
    font-size: 12px;
  }

  .compact-password-warning {
    margin: 5px 12px 0;
    padding: 4px 8px;
  }

  .stay-layout,
  .stays-view,
  #bookings.app-view,
  #docs.app-view,
  #print.app-view {
    padding: 8px 12px 14px;
  }

  .trip-home {
    margin-bottom: 7px;
  }

  .trip-title-block {
    display: none;
  }

  .stay-selector-block {
    margin-bottom: 9px;
  }

  .stay-selector-heading {
    margin-bottom: 6px;
  }

  .stay-selector-heading h3 {
    font-size: 16px;
  }

  .stay-selector-heading > span {
    max-width: none;
    font-size: 11px;
    white-space: nowrap;
  }

  .stay-carousel {
    gap: 9px;
    margin-right: -12px;
    padding: 2px 12px 10px 0;
  }

  .stay-carousel-card {
    flex-basis: min(78vw, 322px);
  }

  .stay-select-card {
    min-height: 148px;
    gap: 5px;
    padding: 12px 13px 42px;
  }

  .stay-card-topline > span:first-child,
  .stay-select-card > span:not(.stay-card-topline):not(.stay-hotel-mini),
  .stay-select-card small {
    font-size: 12px;
  }

  .stay-select-card strong {
    font-size: 24px;
  }

  .stay-hotel-mini {
    font-size: 13px;
    line-height: 1.25;
  }

  .mini-map-link {
    min-height: 30px;
    padding: 6px 10px;
  }

  .stay-workspace {
    gap: 9px;
  }

  .selected-stay-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 11px;
  }

  .selected-stay-card h2 {
    font-size: 20px;
  }

  .selected-stay-card p {
    font-size: 11px;
    line-height: 1.25;
  }

  .selected-stay-card .icon-action {
    min-width: 82px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .mobile-stay-day-menu {
    gap: 7px;
    grid-auto-columns: minmax(90px, 30vw);
    margin-bottom: 9px;
  }

  .mobile-stay-day-menu .stay-day-button {
    min-height: 44px;
    padding: 7px 8px;
  }

  .stay-day-button span {
    font-size: 12px;
  }

  .stay-day-button strong {
    font-size: 10px;
  }

  .day-summary-card {
    padding: 12px;
  }

  .stay-day-summary h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  .summary-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .summary-facts span,
  .summary-facts .icon-action {
    font-size: 12px;
  }

  .agenda-group h3 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .agenda-card {
    padding: 12px;
  }

  .agenda-time {
    font-size: 12px;
  }

  .agenda-main h4 {
    font-size: 17px;
  }

  .activity-icon {
    font-size: 22px;
  }

  .activity-action-row {
    gap: 7px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .icon-action,
  .chip-action,
  .comment-popover > summary {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .today-directions {
    margin-top: 14px;
    padding-top: 12px;
  }

  .day-route-card {
    align-items: center;
    padding: 11px;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 6px;
  }

  .bottom-nav a {
    min-width: 0;
    padding: 6px 4px;
    font-size: 10px;
  }

  .bottom-nav span {
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .stay-layout,
  .stays-view,
  #bookings.app-view,
  #docs.app-view,
  #print.app-view {
    padding-left: 10px;
    padding-right: 10px;
  }

  .stay-carousel {
    margin-right: -10px;
    padding-right: 10px;
  }

  .stay-carousel-card {
    flex-basis: 80vw;
  }

  .stay-select-card {
    min-height: 142px;
  }

  .stay-select-card strong {
    font-size: 22px;
  }

  .selected-stay-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-stay-card .icon-action {
    width: 100%;
  }

  .day-route-card {
    grid-template-columns: 1fr;
  }

  .day-route-card .icon-action {
    width: 100%;
  }
}

@media (min-width: 821px) {
  .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar h1 {
    font-size: clamp(24px, 2.4vw, 32px);
  }

  .topbar .eyebrow {
    margin-bottom: 4px;
  }

  .topbar .subline {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
  }
}

@media (max-width: 820px) {
  .today-layout .stay-selector-heading {
    display: none;
  }

  .today-layout .stay-carousel {
    padding-top: 0;
  }

  .today-layout .stay-select-card {
    min-height: 132px;
  }

  .today-layout .stay-select-card small {
    display: none;
  }
}

@media (max-width: 460px) {
  .selected-stay-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .selected-stay-card .icon-action {
    width: auto;
  }

  .today-layout .stay-carousel-card {
    flex-basis: 79vw;
  }
}

/* v0.1.20 mobile UI stabilization and no-jump shell */
:root {
  --mobile-nav-space: 108px;
}

.app-shell {
  min-height: 0;
}

@media (max-width: 820px) {
  html {
    overflow-x: hidden;
    scroll-padding-bottom: var(--mobile-nav-space);
  }

  body {
    overflow-x: hidden;
  }

  .app-shell {
    min-height: 0;
    padding-bottom: calc(var(--mobile-nav-space) + env(safe-area-inset-bottom, 0px));
  }

  .app-view {
    min-height: 0;
    scroll-margin-bottom: var(--mobile-nav-space);
  }

  footer {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    width: auto;
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid rgba(216, 226, 234, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    padding: 6px;
    box-shadow: 0 -8px 28px rgba(23, 33, 45, 0.16);
    backdrop-filter: blur(14px);
  }

  .bottom-nav a {
    min-height: 50px;
    border-radius: 12px;
    padding: 6px 3px;
    font-size: 10px;
    line-height: 1;
  }

  .bottom-nav span {
    font-size: 18px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 55;
  }

  .compact-password-warning {
    position: relative;
    z-index: 1;
  }

  .today-layout {
    padding-bottom: 18px;
  }

  .stays-view {
    display: none;
    padding-bottom: 18px;
  }

  .stays-view.is-active {
    display: block;
  }

  .stays-heading {
    margin-bottom: 6px;
  }

  .stays-heading .muted {
    display: none;
  }

  .stays-heading h2 {
    font-size: 22px;
  }

  .stays-selector-block {
    margin-bottom: 6px;
  }

  .stays-selector-block .stay-selector-heading {
    display: none;
  }

  .stays-view .stay-carousel {
    padding-bottom: 8px;
  }

  .stays-carousel .stay-carousel-card {
    flex-basis: min(70vw, 282px);
  }

  .stays-view .stay-select-card {
    min-height: 112px;
    padding: 10px 12px 38px;
  }

  .stays-view .stay-select-card strong {
    font-size: 21px;
  }

  .stays-view .stay-select-card small {
    display: none;
  }

  .stays-view .stay-hotel-mini {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .stay-detail-panel {
    padding: 12px;
    margin-bottom: 0;
  }

  .stay-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
  }

  .stay-detail-header h3 {
    font-size: 20px;
  }

  .stay-detail-header p {
    font-size: 12px;
    line-height: 1.25;
  }

  .stay-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .stay-detail-facts div:nth-child(3) {
    display: none;
  }

  .stay-detail-facts div {
    gap: 1px;
  }

  .stay-detail-facts dd {
    font-size: 12px;
    line-height: 1.25;
  }

  .stay-actions {
    gap: 7px;
  }

  .stay-day-scroll,
  .placeholder-day-row,
  .mobile-stay-day-menu,
  .stay-carousel {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .stay-panels,
  .stay-detail-panels {
    padding-bottom: 0;
  }

  .day-panel.is-active {
    padding-bottom: 2px;
  }

  .today-directions {
    margin-bottom: 0;
  }

  .day-route-grid,
  .agenda-list,
  .booking-list,
  .document-grid,
  .print-option-grid {
    padding-bottom: 2px;
  }
}

@media (max-width: 460px) {
  :root {
    --mobile-nav-space: 112px;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav a {
    min-height: 48px;
    font-size: 9.5px;
  }

  .stays-carousel .stay-carousel-card {
    flex-basis: 76vw;
  }
}

/* v0.1.21 compact mobile stay picker correction */
.selected-stay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.change-stay-button {
  cursor: pointer;
}

@media (max-width: 820px) {
  .today-stay-picker {
    display: none;
    margin-bottom: 7px;
  }

  .today-stay-picker.is-open {
    display: block;
  }

  .today-stay-picker .stay-carousel {
    padding-bottom: 8px;
  }

  .today-stay-picker .stay-carousel-card {
    flex-basis: min(72vw, 292px);
  }

  .today-stay-picker .stay-select-card {
    min-height: 112px;
    padding: 10px 12px 38px;
  }

  .today-stay-picker .stay-select-card strong {
    font-size: 21px;
  }

  .today-stay-picker .stay-select-card small {
    display: none;
  }

  .today-stay-picker .stay-hotel-mini {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .stay-panel.is-active > .stay-workspace {
    gap: 6px;
  }

  .stay-panel.is-active .selected-stay-card {
    position: relative;
    z-index: 42;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  .stay-panel.is-active .selected-stay-card .eyebrow {
    display: none;
  }

  .stay-panel.is-active .selected-stay-card h2 {
    font-size: 18px;
    line-height: 1.05;
  }

  .stay-panel.is-active .selected-stay-card p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 11px;
  }

  .stay-panel.is-active .selected-stay-card .icon-action {
    min-height: 30px;
    min-width: 78px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .selected-stay-actions {
    gap: 6px;
  }

  .mobile-stay-day-menu {
    position: sticky;
    top: 72px;
    z-index: 41;
    margin: 0 0 8px;
    border: 1px solid rgba(216, 226, 234, 0.85);
    border-radius: 12px;
    background: rgba(244, 247, 248, 0.96);
    padding: 6px;
    box-shadow: 0 8px 20px rgba(23, 33, 45, 0.08);
    backdrop-filter: blur(10px);
  }

  .mobile-stay-day-menu .stay-day-button {
    min-height: 40px;
    border-radius: 9px;
    padding: 6px 8px;
  }

  .day-summary-card {
    margin-top: 0;
  }

  .stay-day-summary {
    padding: 10px 11px;
  }

  .stay-day-summary h2 {
    font-size: 20px;
  }

  .stay-day-summary p {
    font-size: 13px;
    line-height: 1.35;
  }
}

@media (max-width: 460px) {
  .today-stay-picker .stay-carousel-card {
    flex-basis: 74vw;
  }

  .stay-panel.is-active .selected-stay-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stay-panel.is-active .selected-stay-card .icon-action {
    width: auto;
  }

  .mobile-stay-day-menu {
    top: 70px;
  }
}

/* v0.1.27 tablet header cleanup */
@media (min-width: 821px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar .view-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    min-width: max-content;
  }

  .topbar .view-nav a {
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .account-logout {
    justify-self: end;
    white-space: nowrap;
  }

  .account-logout span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 18px;
  }

  .topbar .view-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
  }

  .topbar .view-nav a {
    min-width: 74px;
    padding-inline: 9px;
    text-align: center;
  }

  .account-logout {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 1081px) {
  .account-logout {
    grid-column: 3;
  }
}

/* v0.1.28 desktop stay layout: no horizontal swipe trap */
.mobile-copy {
  display: none;
}

@media (min-width: 821px) {
  .trip-home,
  .stay-selector-block,
  .stay-panels,
  .stay-detail-panels,
  .stay-workspace {
    max-width: 1320px;
  }

  .stay-selector-heading {
    align-items: center;
  }

  .stay-selector-heading > span {
    max-width: none;
    white-space: nowrap;
  }

  .stay-carousel,
  .stays-view .stay-carousel,
  .today-stay-picker .stay-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 3px 0 8px;
    scrollbar-width: none;
  }

  .stay-carousel::-webkit-scrollbar {
    display: none;
  }

  .stay-carousel-card,
  .stays-carousel .stay-carousel-card,
  .today-layout .stay-carousel-card,
  .today-stay-picker .stay-carousel-card {
    width: auto;
    min-width: 0;
    flex: none;
    flex-basis: auto;
    scroll-snap-align: none;
  }

  .stay-select-card,
  .stays-view .stay-select-card,
  .today-stay-picker .stay-select-card {
    min-height: 158px;
  }

  .stays-view .stay-select-card small,
  .today-stay-picker .stay-select-card small {
    display: block;
  }
}

@media (min-width: 1180px) {
  .stay-carousel,
  .stays-view .stay-carousel,
  .today-stay-picker .stay-carousel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }
}
