/* Visual system v2: mobile-first, image-led and consistent across sections. */
:root {
  --v2-navy: #063b5c;
  --v2-blue: #075f93;
  --v2-blue-strong: #064f7b;
  --v2-sky: #eaf7fd;
  --v2-cyan: #0aaee0;
  --v2-ink: #102f45;
  --v2-muted: #60788b;
  --v2-line: #d7e7f0;
  --v2-paper: #f5f9fc;
  --v2-panel: #ffffff;
  --v2-success: #087a59;
  --v2-warning: #9a6400;
  --v2-alert: #d91e36;
  --v2-shadow: 0 14px 36px rgba(6, 59, 92, 0.1);
  --v2-shadow-soft: 0 7px 20px rgba(6, 59, 92, 0.07);
}

body {
  color: var(--v2-ink);
  background: var(--v2-paper);
}

button,
a,
input,
textarea {
  letter-spacing: 0;
}

.app-shell {
  grid-template-columns: 104px minmax(0, 1fr);
  background: var(--v2-paper);
}

.sidebar {
  gap: 14px;
  padding: 16px 9px;
  border-right-color: var(--v2-line);
  box-shadow: 7px 0 24px rgba(6, 59, 92, 0.055);
}

.sidebar-brand .brand-logo.small {
  width: 76px;
  height: 84px;
  max-height: 84px;
}

.main-nav {
  gap: 5px;
}

.nav-item {
  min-height: 62px;
  gap: 5px;
  color: var(--v2-blue);
  border: 1px solid transparent;
  background: transparent;
}

.nav-item .nav-icon {
  width: 24px;
  height: 24px;
}

.nav-item:hover {
  border-color: #cfe4ef;
  background: #f0f8fc;
}

.nav-item.active,
.nav-item.active:hover {
  color: #fff;
  border-color: var(--v2-blue);
  background: var(--v2-blue);
  box-shadow: 0 8px 18px rgba(7, 95, 147, 0.22);
}

.ghost-button,
.support-button {
  border-color: var(--v2-line);
  color: var(--v2-blue);
  background: #fff;
}

.content-shell {
  width: min(1240px, 100%);
  padding: 20px 24px 36px;
}

.trip-hero {
  min-height: 278px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  align-items: end;
  gap: 24px;
  padding: 28px;
  border: 0;
  background:
    linear-gradient(100deg, rgba(3, 37, 59, 0.94) 0%, rgba(4, 54, 83, 0.77) 55%, rgba(5, 58, 88, 0.42) 100%),
    url("assets/japan-travel-hero.svg") center / cover;
  box-shadow: var(--v2-shadow);
}

.trip-hero.has-photo {
  background: var(--v2-navy);
}

.trip-hero > .trip-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.trip-hero > .trip-hero-photo[hidden] {
  display: none;
}

.trip-hero::after {
  z-index: 1;
  background: linear-gradient(100deg, rgba(3, 37, 59, 0.96) 0%, rgba(4, 48, 75, 0.78) 50%, rgba(3, 36, 55, 0.34) 100%);
}

.trip-hero > .hero-copy,
.trip-hero > .hero-stats {
  z-index: 2;
}

.trip-hero h1 {
  max-width: 760px;
  margin: 6px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
}

.trip-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.trip-hero .eyebrow {
  margin: 0;
  color: #d5f2ff;
  font-size: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.stat,
.hero-day-stat {
  width: 100%;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 8px;
  color: #fff;
  background: rgba(2, 34, 53, 0.46);
  box-shadow: none;
  text-align: left;
  backdrop-filter: blur(10px);
}

.stat strong,
.hero-day-stat strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.stat span,
.stat small,
.hero-day-stat span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.weather-stat {
  min-width: 0;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
}

.weather-stat .weather-icon {
  grid-row: 1 / span 3;
  align-self: center;
}

.search-panel {
  margin: 14px 0 0;
  padding: 12px;
  border-color: var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
}

.search-panel label {
  color: var(--v2-blue);
}

.search-box input {
  min-height: 46px;
  border-color: #c9e0ec;
  background: #f8fbfd;
}

.search-box button,
.refresh-button,
.document-link,
.map-link {
  color: #fff;
  background: var(--v2-blue);
}

.section {
  padding: 24px 0 10px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  color: var(--v2-navy);
  font-size: clamp(25px, 3vw, 34px);
}

.section-heading p {
  color: var(--v2-muted);
}

.section-heading.compact {
  margin-top: 26px;
  margin-bottom: 10px;
}

.section-heading.compact h2 {
  font-size: 19px;
}

.panel-kicker,
.eyebrow {
  color: var(--v2-blue);
}

.today-command-card {
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.today-command-header {
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.today-command-header h3 {
  color: var(--v2-blue);
  font-size: clamp(27px, 4vw, 40px);
}

.today-status-pill {
  color: var(--v2-success);
  background: #e8f7f1;
}

.place-photo {
  min-width: 0;
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dceaf2;
  box-shadow: var(--v2-shadow-soft);
}

.place-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.place-photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: rgba(3, 35, 54, 0.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(7px);
}

.today-place-photo {
  width: 100%;
  height: clamp(220px, 22vw, 300px);
  aspect-ratio: auto;
}

.today-signal-grid {
  gap: 9px;
}

.today-signal {
  min-height: 68px;
  padding: 12px 14px;
  border-color: #cce8f4;
  background: var(--v2-sky);
}

.today-signal span,
.today-doc-card header span,
.today-next-card > span,
.today-now-card > span,
.today-priority-card span {
  color: var(--v2-blue);
}

.today-now-card {
  padding: 20px;
  background: linear-gradient(120deg, var(--v2-blue-strong), #0783b9);
  box-shadow: 0 13px 28px rgba(6, 79, 123, 0.2);
}

.today-now-card strong {
  font-size: clamp(20px, 3vw, 28px);
}

.today-now-card > span {
  color: #d7f4ff;
}

.today-priority-card,
.today-doc-card,
.today-next-card {
  border-color: var(--v2-line);
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.today-priority-card strong {
  color: var(--v2-success);
}

.today-link-button {
  color: var(--v2-blue);
  border-color: #beddea;
}

.today-doc-list a,
.today-next-list div {
  border-color: #d7eaf3;
  background: #f6fbfd;
}

.today-next-list p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.45;
}

.today-quick-actions a,
.today-quick-actions button {
  color: var(--v2-blue);
  border-color: #c9e2ee;
  box-shadow: none;
}

.today-command-card.phase-after .today-now-card {
  background: linear-gradient(120deg, #315f78, #4f829d);
}

.day-tabs {
  gap: 7px;
  padding: 4px 0 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.day-tab {
  min-width: 76px;
  min-height: 42px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 1px solid #cbe1ec;
  color: var(--v2-blue);
  background: #fff;
  box-shadow: none;
}

.day-tab.active {
  color: #fff;
  border-color: var(--v2-blue);
  background: var(--v2-blue);
}

.day-detail {
  padding: 0;
  overflow: hidden;
  border-color: var(--v2-line);
  background: #fff;
  box-shadow: var(--v2-shadow);
}

.day-detail > .day-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 22px;
  align-items: stretch;
  padding: 20px;
  border-bottom: 1px solid var(--v2-line);
  background: #f8fbfd;
}

.day-detail-header > div:first-child {
  align-self: center;
}

.day-detail-header h3 {
  color: var(--v2-navy);
  font-size: clamp(25px, 3.4vw, 40px);
}

.day-detail-header p {
  color: var(--v2-muted);
}

.day-intro-summary {
  margin-bottom: 8px;
}

.day-intro-more {
  color: var(--v2-muted);
}

.day-intro-more summary {
  width: fit-content;
  padding: 6px 0;
  color: var(--v2-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.day-intro-more p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.day-cover-photo {
  min-height: 230px;
  aspect-ratio: 4 / 3;
}

.day-detail > .weather-day-card,
.day-detail > .rail-day-panel,
.day-detail > .day-columns {
  margin-right: 20px;
  margin-left: 20px;
}

.day-columns {
  padding-bottom: 20px;
}

.agenda-list {
  gap: 8px;
}

.agenda-item {
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.agenda-item[open] {
  border-color: #aad6e9;
  box-shadow: var(--v2-shadow-soft);
}

.agenda-item summary {
  min-height: 54px;
  padding: 11px 13px;
  background: #f8fbfd;
}

.agenda-item summary time {
  color: var(--v2-blue);
}

.agenda-item > p,
.agenda-item > .transport-info,
.agenda-item > .map-link {
  margin-right: 14px;
  margin-left: 14px;
}

.agenda-place-photo {
  height: clamp(180px, 26vw, 300px);
  margin: 12px 14px 0;
  box-shadow: none;
}

.history-note,
.day-resource,
.reservation-list li,
.transport-info {
  border-color: var(--v2-line);
  box-shadow: none;
}

.maps-panel,
.rail-summary,
.rail-alerts,
.rail-details,
.weather-summary,
.weather-warnings {
  min-width: 0;
}

.rail-focus-card,
.rail-alert-panel,
.rail-route-card,
.rail-provider-card,
.weather-panel-card,
.weather-warning-card,
.weather-day-card,
.item-card,
.travel-card,
.advice-card,
.info-card,
.essential-doc,
.live-card {
  border-color: var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
}

.rail-focus-card,
.weather-hero-card {
  background: linear-gradient(120deg, var(--v2-blue-strong), #0783b9);
}

.rail-provider-card a,
.rail-route-links a,
.travel-links a,
.item-links a,
.essential-doc a {
  color: #fff;
  background: var(--v2-blue);
  box-shadow: none;
}

.item-grid,
.advice-grid,
.overview-grid,
.essential-docs,
.live-info {
  gap: 12px;
}

.document-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.document-filter {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #c9e1ed;
  color: var(--v2-blue);
  background: #fff;
  box-shadow: none;
}

.document-filter.active {
  color: #fff;
  border-color: var(--v2-blue);
  background: var(--v2-blue);
}

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

.document-group {
  min-width: 0;
}

.document-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.document-group h3 {
  margin: 0;
  color: var(--v2-navy);
  font-size: 19px;
}

.document-group > header span {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 700;
}

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

.document-card {
  min-width: 0;
  padding: 14px;
  border-color: var(--v2-line);
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
}

.document-card strong,
.document-card p {
  overflow-wrap: anywhere;
}

.document-link {
  min-width: 70px;
  min-height: 40px;
  box-shadow: none;
}

.legal-footer {
  margin-bottom: 0;
  color: var(--v2-muted);
}

.mobile-header-actions,
.mobile-search-button,
.bottom-nav {
  display: none;
}

@media (max-width: 980px) {
  .trip-hero {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .day-detail > .day-detail-header {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  }

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

@media (max-width: 720px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .app-shell {
    display: block;
    padding-bottom: 0;
  }

  .sidebar {
    z-index: 100;
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
    border-bottom-color: var(--v2-line);
    box-shadow: 0 7px 20px rgba(6, 59, 92, 0.09);
  }

  .sidebar-brand {
    min-width: 0;
    gap: 8px;
  }

  .sidebar-brand .brand-logo.small {
    width: 92px;
    height: 40px;
    max-height: 40px;
  }

  .sidebar-brand strong {
    max-width: 35vw;
    color: var(--v2-ink);
    font-size: 12px;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-search-button,
  .mobile-menu-button {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #c7dfeb;
    border-radius: 8px;
    color: var(--v2-blue);
    background: #fff;
    box-shadow: none;
  }

  .mobile-search-button span {
    --search-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-4-4'/%3E%3C/svg%3E");
    width: 22px;
    height: 22px;
    display: block;
    background: currentColor;
    -webkit-mask: var(--search-icon) center / contain no-repeat;
    mask: var(--search-icon) center / contain no-repeat;
  }

  .mobile-menu-button {
    display: inline-flex;
    gap: 0;
  }

  .mobile-menu-button strong {
    display: none;
  }

  .sidebar.menu-open .mobile-menu-button,
  .app-shell.search-open .mobile-search-button {
    color: #fff;
    border-color: var(--v2-blue);
    background: var(--v2-blue);
  }

  .sidebar-menu {
    top: calc(100% + 6px);
    left: 8px;
    right: 8px;
    z-index: 120;
    max-height: calc(100vh - 78px);
    padding: 10px;
    border-color: var(--v2-line);
    box-shadow: 0 20px 44px rgba(6, 59, 92, 0.2);
  }

  .sidebar-menu .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .sidebar-menu .nav-item {
    min-height: 60px;
  }

  .content-shell {
    padding: 10px 10px 20px;
  }

  .trip-hero {
    min-height: 204px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
    background-position: center 45%;
  }

  .trip-hero h1 {
    max-width: 92%;
    margin: 3px 0 7px;
    font-size: clamp(29px, 9vw, 39px);
    line-height: 1;
  }

  .trip-hero #tripSubtitle {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .trip-hero .eyebrow {
    font-size: 10px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .stat,
  .hero-day-stat {
    min-height: 58px;
    padding: 9px 10px;
  }

  .stat strong,
  .hero-day-stat strong,
  .weather-stat strong {
    font-size: 13px;
  }

  .stat span,
  .stat small,
  .hero-day-stat span {
    font-size: 10px;
  }

  .weather-stat .weather-icon {
    width: 28px;
    height: 28px;
  }

  .search-panel {
    display: none;
    margin: 8px 0 0;
  }

  .app-shell.search-open .search-panel {
    display: block;
  }

  .section {
    padding-top: 18px;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 10px;
  }

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

  .today-section-heading > p {
    display: none;
  }

  .today-command-header {
    padding: 13px 14px;
  }

  .today-command-header h3 {
    font-size: 28px;
  }

  .today-command-header p {
    font-size: 12px;
  }

  .today-place-photo {
    height: 180px;
    aspect-ratio: auto;
  }

  .today-now-card {
    padding: 16px;
  }

  .today-now-card strong {
    font-size: 20px;
  }

  .today-now-card p {
    font-size: 13px;
  }

  .today-priority-card {
    padding: 14px;
  }

  .today-priority-icon {
    width: 38px;
    height: 38px;
  }

  .today-priority-icon svg {
    width: 34px;
    height: 34px;
  }

  .day-tabs {
    position: sticky;
    top: 60px;
    z-index: 30;
    margin: 0 -10px 10px;
    padding: 8px 10px;
    border-top: 1px solid rgba(215, 231, 240, 0.8);
    border-bottom: 1px solid var(--v2-line);
    background: rgba(245, 249, 252, 0.96);
    backdrop-filter: blur(12px);
  }

  .day-detail > .day-detail-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px;
  }

  .day-detail-header h3 {
    font-size: 27px;
  }

  .day-cover-photo {
    min-height: 0;
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .day-detail > .weather-day-card,
  .day-detail > .rail-day-panel,
  .day-detail > .day-columns {
    margin-right: 12px;
    margin-left: 12px;
  }

  .agenda-place-photo {
    height: 190px;
  }

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

  .document-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .legal-footer {
    margin-bottom: 14px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    min-height: calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--v2-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -9px 28px rgba(6, 59, 92, 0.1);
    backdrop-filter: blur(14px);
  }

  .bottom-nav-item {
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 7px;
    color: #5f7788;
    background: transparent;
    box-shadow: none;
    font-size: 10px;
    font-weight: 800;
  }

  .bottom-nav-item.active {
    color: var(--v2-blue);
    background: #eaf7fd;
  }

  .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8'/%3E%3C/svg%3E");
    width: 23px;
    height: 23px;
    display: block;
    background: currentColor;
    -webkit-mask: var(--bottom-icon) center / contain no-repeat;
    mask: var(--bottom-icon) center / contain no-repeat;
  }

  .bottom-nav-item[data-section="overview"] .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m3%2011%209-8%209%208'/%3E%3Cpath%20d='M5%2010v10h14V10'/%3E%3Cpath%20d='M9%2020v-6h6v6'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[data-section="itinerary"] .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%202v4M16%202v4M3%2010h18'/%3E%3Crect%20x='4'%20y='5'%20width='16'%20height='17'%20rx='2'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[data-section="rail"] .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%203h12a3%203%200%200%201%203%203v8a4%204%200%200%201-4%204H7a4%204%200%200%201-4-4V6a3%203%200%200%201%203-3Z'/%3E%3Cpath%20d='M7%208h10M7%2013h3M14%2013h3M8%2021l2-3M16%2021l-2-3'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[data-section="documents"] .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8Z'/%3E%3Cpath%20d='M14%202v6h6M8%2013h8M8%2017h6'/%3E%3C/svg%3E");
  }

  .bottom-nav-item[data-bottom-more] .bottom-nav-icon {
    --bottom-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%3E%3Cpath%20d='M4%2012h.01M12%2012h.01M20%2012h.01'/%3E%3C/svg%3E");
  }
}

@media (max-width: 520px) {
  .sidebar-menu .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-command-header,
  .today-signal-grid,
  .today-lower-grid,
  .today-priority-card {
    grid-template-columns: 1fr;
  }

  .today-status-pill {
    width: fit-content;
  }

  .today-signal {
    min-height: 62px;
  }

  .today-inline-actions,
  .today-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-card {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-tabs,
  .document-filters {
    scroll-behavior: auto;
  }
}
/* Secure account selection and optional administrator verification. */
#adminTotpField {
  display: grid;
  gap: 6px;
}

#adminTotpField[hidden],
.trip-choice-panel[hidden] {
  display: none;
}

.trip-choice-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.trip-choice-panel h2 {
  margin: 0;
  color: #073454;
  font-size: 1.35rem;
}

.trip-choices {
  display: grid;
  gap: 10px;
}

.trip-choice {
  display: grid;
  width: 100%;
  min-height: 76px;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #b9d9eb;
  border-radius: 8px;
  background: #fff;
  color: #073454;
  text-align: left;
  box-shadow: 0 5px 18px rgba(9, 79, 119, 0.08);
}

.trip-choice:hover,
.trip-choice:focus-visible {
  border-color: #048fd0;
  background: #f1faff;
}

.trip-choice strong {
  font-size: 1rem;
}

.trip-choice span {
  color: #557085;
  font-size: 0.88rem;
}

.rail-alert-panel.scheduled,
.rail-provider-card.scheduled {
  border-color: #99cbea;
  background: #f1f9fe;
}

.rail-alert-panel.past,
.rail-provider-card.past {
  border-color: #d5dee5;
  background: #f7f9fa;
}

.rail-alert-panel.scheduled header strong,
.rail-provider-card.scheduled strong {
  color: #075f91;
}

.rail-alert-panel.past header strong,
.rail-provider-card.past strong {
  color: #526775;
}
