:root {
  --ink: #10293d;
  --muted: #5f7181;
  --line: #d8e4ed;
  --paper: #f3f8fb;
  --panel: #ffffff;
  --accent: #0b5d8f;
  --accent-2: #0f8dbd;
  --accent-3: #d8a94f;
  --navy: #08283f;
  --sky: #e8f5fb;
  --shadow: 0 18px 46px rgba(8, 40, 63, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #ffffff;
  background: #005b8f;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(8, 40, 63, 0.86), rgba(12, 93, 143, 0.42)),
    url("assets/japan-travel-hero.svg") center / cover;
}

.login-panel {
  width: min(100%, 480px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 228, 237, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-lockup {
  min-height: 56px;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: min(210px, 62vw);
  height: 64px;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo.small {
  width: 150px;
  height: 44px;
  max-height: 44px;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.eyebrow {
  margin: 20px 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 8vw, 50px);
  line-height: 1;
  letter-spacing: 0;
}

.login-copy {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  margin-top: 28px;
}

.login-form label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.password-row button {
  padding: 0 20px;
  color: white;
  background: var(--accent);
}

.full-button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  color: white;
  background: var(--accent);
}

.link-button {
  width: fit-content;
  margin-top: 12px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.login-cache-tools {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.login-cache-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(8, 126, 184, 0.34);
  color: var(--accent);
  background: rgba(8, 126, 184, 0.06);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.login-cache-button:hover {
  border-color: var(--accent);
  background: rgba(8, 126, 184, 0.12);
}

.login-cache-button:active {
  transform: translateY(1px);
}

.login-cache-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-cache-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.error-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
  display: block;
  padding-bottom: 78px;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-brand strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.main-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(8, 40, 63, 0.16);
  backdrop-filter: blur(14px);
}

.nav-item,
.ghost-button {
  width: 100%;
  padding: 10px 8px;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.nav-item.active {
  color: white;
  background: var(--accent);
}

.ghost-button {
  width: auto;
  min-width: 110px;
  margin-top: 0;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--accent);
  background: white;
}

.offline-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.offline-status {
  min-height: 18px;
  margin: -18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.content-shell {
  min-width: 0;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.trip-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 24px;
  padding: 26px;
  color: white;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 40, 63, 0.18), rgba(8, 40, 63, 0.92)),
    url("assets/japan-travel-hero.svg") center / cover;
  box-shadow: var(--shadow);
}

.trip-hero .eyebrow {
  color: #c9edff;
}

.trip-hero h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.trip-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 132px));
  gap: 10px;
}

.stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.stat small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.weather-stat {
  min-width: 172px;
}

.weather-stat.has-alert {
  border-color: rgba(255, 77, 45, 0.85);
  background: rgba(255, 77, 45, 0.22);
}

.section {
  display: none;
  padding: 28px 0 10px;
}

.search-panel {
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(8, 40, 63, 0.06);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-box input {
  border-color: rgba(11, 93, 143, 0.24);
  background: #f8fbfd;
}

.search-box button {
  width: 44px;
  min-height: 44px;
  color: white;
  background: var(--accent);
  font-size: 22px;
}

.search-box button[hidden] {
  display: none;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.search-result {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fbfd;
  text-align: left;
}

.search-result span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-result strong {
  font-size: 15px;
}

.search-result small {
  color: var(--muted);
  line-height: 1.35;
}

.empty-search {
  margin: 0;
  color: var(--muted);
}

.section.active {
  display: block;
}

@supports (content-visibility: auto) {
  .section.active,
  .admin-trip,
  .day-detail,
  .document-card,
  .advice-card,
  .rail-provider-card,
  .weather-day-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 320px;
  }
}

.section-heading {
  display: block;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-top: 30px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.overview-grid,
.essential-docs,
.live-info,
.item-grid,
.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.today-card,
.essential-doc,
.live-card,
.item-card,
.advice-card,
.document-card,
.day-detail,
.travel-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(8, 40, 63, 0.07);
}

.info-card,
.today-card,
.essential-doc,
.live-card,
.item-card,
.advice-card,
.document-card {
  padding: 18px;
}

.info-card span,
.today-heading span,
.essential-doc span,
.live-card span,
.item-card span,
.document-card span,
.day-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-card strong,
.essential-doc strong,
.live-card strong,
.item-card strong,
.document-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.info-card p,
.today-card p,
.essential-doc p,
.live-card p,
.item-card p,
.advice-card p,
.document-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.today-panel {
  margin-bottom: 28px;
}

.today-card {
  border-left: 5px solid var(--accent-2);
}

.weather-card {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 13px;
  border: 1px solid rgba(11, 93, 143, 0.18);
  border-radius: 8px;
  background: #f7fbfe;
}

.weather-card.has-alert {
  border-color: #ff3b1f;
  background: #fff2ed;
  box-shadow: 0 12px 30px rgba(255, 59, 31, 0.16);
}

.weather-card.muted {
  background: #f8fbfd;
}

.weather-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.weather-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, #0c86bd, #16b9dc);
  font-size: 24px;
  line-height: 1;
}

.weather-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat .weather-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  color: white;
  background: linear-gradient(145deg, #0c86bd, #16b9dc);
}

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

.weather-card strong {
  font-size: 17px;
}

.weather-card p {
  margin: 0;
}

.weather-card a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.weather-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weather-alert {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #062033;
  background: #ffd94d;
  font-size: 12px;
  font-weight: 800;
}

.weather-alert.high {
  color: white;
  background: #e2231a;
}

.weather-advice {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.weather-advice p {
  padding: 9px 10px;
  border-left: 4px solid #e2231a;
  border-radius: 6px;
  color: #4c1d14;
  background: white;
}

.item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.item-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.weather-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.weather-panel-card,
.weather-warning-card,
.weather-day-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(8, 40, 63, 0.07);
}

.weather-panel-card.primary {
  border-color: rgba(11, 93, 143, 0.24);
  background: #f3fbff;
}

.weather-panel-card.danger,
.weather-warning-card.high,
.weather-day-card.has-alert {
  border-color: #ff3b1f;
  background: #fff2ed;
}

.panel-kicker,
.weather-warning-card span,
.weather-day-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-panel-card strong,
.weather-warning-card strong,
.weather-day-card strong {
  font-size: 18px;
}

.weather-panel-card p,
.weather-warning-card p,
.weather-day-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.weather-alert-board,
.weather-day-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.weather-alert-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.weather-warning-card a,
.weather-day-card a {
  width: fit-content;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.today-heading {
  margin-bottom: 18px;
}

.today-heading h3 {
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.15;
}

.today-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.today-grid h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.today-agenda {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.today-agenda li,
.today-trains span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 93, 143, 0.16);
  border-radius: 8px;
  background: var(--sky);
}

.today-agenda time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.today-agenda strong {
  font-size: 14px;
}

.today-trains {
  display: grid;
  gap: 8px;
}

.today-trains span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  padding: 10px 14px;
}

.primary-action {
  color: white;
  background: var(--accent);
}

.secondary-action {
  border: 1px solid rgba(11, 93, 143, 0.22);
  color: var(--accent);
  background: white;
}

.essential-doc,
.live-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.essential-doc a,
.live-card {
  text-decoration: none;
}

.essential-doc a {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.live-card {
  color: var(--ink);
}

.live-card:hover,
.essential-doc:hover {
  border-color: rgba(11, 93, 143, 0.45);
  box-shadow: 0 14px 34px rgba(8, 40, 63, 0.12);
}

.empty-panel {
  margin: 0;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent-2);
  background: white;
  border-radius: 8px;
}

.timeline-row time {
  color: var(--accent);
  font-weight: 800;
}

.timeline-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.day-tab {
  flex: 0 0 auto;
  min-width: 94px;
  padding: 10px 12px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.day-tab.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.day-detail {
  padding: 26px;
}

.day-detail header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.day-detail h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.day-detail p {
  color: var(--muted);
  line-height: 1.62;
}

.day-columns {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.agenda-list,
.reservation-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.agenda-list li,
.reservation-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
}

.agenda-item summary {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.agenda-item summary::-webkit-details-marker,
.history-note summary::-webkit-details-marker {
  display: none;
}

.agenda-item summary::after,
.history-note summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.agenda-item summary::after {
  grid-column: 3;
  justify-self: end;
}

.agenda-item[open] summary::after,
.history-note[open] summary::after {
  content: "-";
}

.agenda-list time {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.agenda-list strong,
.reservation-list strong {
  display: block;
  margin-bottom: 4px;
}

.agenda-item p {
  margin: 10px 0 0 104px;
}

.map-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 12px 0 0 104px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 93, 143, 0.22);
  border-radius: 6px;
  color: var(--accent);
  background: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.transport-info {
  margin: 12px 0 0 104px;
  padding: 12px;
  border: 1px solid rgba(15, 141, 189, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.transport-info > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
}

.transport-info p {
  margin: 0;
}

.transport-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.transport-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: white;
  background: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.map-link:hover {
  border-color: var(--accent);
  background: #eef8fd;
}

.maps-panel {
  display: grid;
  gap: 16px;
}

.maps-day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.maps-day-tab {
  flex: 0 0 122px;
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(8, 40, 63, 0.06);
}

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

.maps-day-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.maps-day-tab.active {
  color: #ffffff;
  border-color: var(--accent);
  background: linear-gradient(135deg, #08b9e8, #07669b);
}

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

.maps-focus-card,
.maps-route-card,
.maps-point-card,
.maps-point-list .empty-card {
  border: 1px solid rgba(216, 228, 237, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 40, 63, 0.08);
}

.maps-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.maps-focus-copy h3 {
  margin: 6px 0;
  color: var(--accent);
  font-size: 28px;
}

.maps-focus-copy p,
.maps-route-card p,
.maps-point-card p,
.maps-point-list .empty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.maps-focus-actions,
.maps-point-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maps-focus-actions a,
.maps-point-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.maps-focus-actions .primary-action,
.maps-point-actions .map-open-link {
  color: #ffffff;
  background: var(--accent);
}

.maps-focus-actions .secondary-action {
  border: 1px solid rgba(11, 93, 143, 0.22);
  color: var(--accent);
  background: #ffffff;
}

.maps-route-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.maps-route-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 19px;
}

.maps-route-visual {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.26), transparent 17%),
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(135deg, #08b9e8, #075f93);
}

.maps-route-visual::before {
  content: "";
  position: absolute;
  inset: 28px 24px;
  border: 3px dashed rgba(255, 255, 255, 0.56);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.maps-route-city {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.maps-route-visual i {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: var(--accent);
  background: #ffffff;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(8, 40, 63, 0.22);
}

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

.maps-point-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
}

.maps-point-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #08b9e8, #07669b);
  font-weight: 900;
}

.maps-point-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.maps-point-card h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.maps-point-actions {
  margin-top: 12px;
}

.maps-point-list .empty-card {
  padding: 18px;
}

.maps-point-list .empty-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.history-notes {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.day-resources {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.day-resource {
  display: block;
  padding: 13px 14px;
  border: 1px solid rgba(11, 93, 143, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-decoration: none;
}

.day-resource span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day-resource strong {
  display: block;
  line-height: 1.3;
}

.day-resource:hover {
  border-color: var(--accent);
  background: #eef8fd;
}

.history-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.history-note summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.history-note p {
  margin: 10px 0 0;
}

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

.document-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.travel-card {
  overflow: hidden;
}

.travel-card details {
  padding: 18px;
}

.travel-card summary {
  cursor: pointer;
  list-style: none;
}

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

.travel-card summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.travel-card summary strong {
  display: block;
  margin-bottom: 8px;
  padding-right: 34px;
  font-size: 19px;
}

.travel-card summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.travel-card summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  float: right;
  display: grid;
  place-items: center;
  margin-top: -32px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

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

.travel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}

.travel-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: #eef8fd;
  font-size: 12px;
  font-weight: 800;
}

.travel-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.travel-section h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.travel-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.travel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.travel-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  color: white;
  background: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.document-link {
  padding: 10px 14px;
  color: white;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

@media (min-width: 900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    padding-bottom: 0;
  }

  .sidebar {
    height: 100vh;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: #ffffff;
  }

  .main-nav {
    position: static;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-item,
  .ghost-button {
    padding: 12px 14px;
    text-align: left;
    font-size: 14px;
  }

  .ghost-button {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  #logoutButton {
    margin-top: auto;
  }

  .offline-status {
    margin-top: -18px;
    text-align: left;
  }

  .content-shell {
    padding: 28px;
  }

  .trip-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 34px;
    background:
      linear-gradient(90deg, rgba(8, 40, 63, 0.82), rgba(8, 40, 63, 0.22)),
      url("assets/japan-travel-hero.svg") center / cover;
  }

  .hero-stats {
    grid-template-columns: minmax(132px, 1fr);
  }

  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
  }

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

@media (max-width: 899px) {
  .overview-grid,
  .essential-docs,
  .live-info,
  .item-grid,
  .advice-grid,
  .weather-summary,
  .weather-alert-board,
  .weather-day-grid,
  .today-grid,
  .admin-technical-grid,
  .day-columns {
    grid-template-columns: 1fr;
  }

  .admin-technical-details {
    grid-template-columns: 1fr;
  }

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

  .admin-trip-expanded > header,
  .admin-day-fields,
  .admin-agenda-edit {
    grid-template-columns: 1fr;
  }

  .admin-trip-expanded > header {
    display: grid;
  }

  .admin-day-fields label:nth-child(3),
  .admin-day-fields label:nth-child(4),
  .admin-agenda-edit label:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-bottom: max(126px, calc(126px + env(safe-area-inset-bottom)));
  }

  .login-shell,
  .content-shell,
  .sidebar {
    padding: 18px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
  }

  .sidebar-brand {
    grid-column: 1 / -1;
  }

  .login-panel,
  .trip-hero,
  .today-card,
  .day-detail {
    padding: 22px;
  }

  .trip-hero {
    min-height: 284px;
  }

  .trip-hero h1 {
    font-size: 34px;
  }

  .trip-hero p {
    font-size: 15px;
  }

  .password-row,
  .hero-stats,
  .today-actions,
  .admin-trip,
  .document-card,
  .timeline-row {
    grid-template-columns: 1fr;
  }

  .main-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-item {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 11px;
  }

  .search-panel {
    margin-top: 12px;
    padding: 14px;
  }

  .section {
    padding-top: 24px;
  }

  .section-heading.compact {
    margin-top: 24px;
  }

  .today-heading h3 {
    font-size: 21px;
  }

  .today-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action,
  .essential-doc a {
    width: 100%;
    justify-content: center;
  }

  .sidebar-brand span {
    display: none;
  }

  .ghost-button {
    width: 100%;
    min-width: auto;
    padding: 10px 8px;
    font-size: 12px;
  }

  .offline-status {
    display: none;
  }

  .day-detail header {
    display: block;
  }

  .document-link {
    text-align: center;
  }

  .admin-header {
    display: grid;
  }

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

  .admin-technical-panel > header {
    display: grid;
  }

  .agenda-item summary {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .agenda-item summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    margin-top: 0;
  }

  .agenda-item p {
    margin-left: 0;
  }

  .map-link {
    margin-left: 0;
  }

  .transport-info {
    margin-left: 0;
  }
}

/* Unified JEA mobile dashboard redesign */
:root {
  --ink: #0a314d;
  --muted: #63788a;
  --line: #dceaf3;
  --paper: #f7fbfe;
  --panel: #ffffff;
  --accent: #075f93;
  --accent-2: #0aaee0;
  --accent-3: #d7a94b;
  --navy: #053d61;
  --sky: #edf8fd;
  --alert: #e51c32;
  --alert-soft: #fff1f3;
  --shadow: 0 18px 48px rgba(5, 61, 97, 0.12);
  --shadow-soft: 0 10px 28px rgba(5, 61, 97, 0.08);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7fbfe 260px),
    var(--paper);
  font-weight: 500;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

a {
  color: var(--accent);
}

input {
  min-height: 48px;
  border-color: #cfe3ee;
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

input:focus {
  outline: 3px solid rgba(10, 174, 224, 0.22);
  border-color: var(--accent-2);
}

button,
.document-link,
.essential-doc a,
.item-links a,
.travel-links a,
.transport-links a {
  border-radius: 8px;
}

.login-shell {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(5, 61, 97, 0.88), rgba(10, 174, 224, 0.72)),
    url("assets/japan-travel-hero.svg") center / cover;
}

.login-panel,
.admin-header,
.admin-security-form,
.admin-trip {
  border-color: rgba(207, 227, 238, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 30px;
}

.login-panel h1 {
  color: var(--ink);
}

.password-row button,
.full-button,
.primary-action,
.search-box button,
.admin-security-form button,
.admin-actions button,
.document-link,
.essential-doc a,
.item-links a,
.travel-links a,
.transport-links a {
  background: linear-gradient(135deg, var(--accent), #087bb0);
  box-shadow: 0 10px 22px rgba(7, 95, 147, 0.18);
}

.link-button {
  color: var(--accent);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  padding-bottom: 0;
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 10px;
  border-right: 1px solid rgba(207, 227, 238, 0.9);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 8px 0 28px rgba(5, 61, 97, 0.06);
  overflow-y: auto;
  backdrop-filter: blur(14px);
}

.sidebar-brand {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.sidebar-brand .brand-logo.small {
  width: 70px;
  height: 82px;
  max-height: 82px;
  object-fit: contain;
  object-position: center;
}

.sidebar-brand div {
  display: none;
}

.main-nav {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-item {
  min-height: 68px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 4px;
  color: var(--accent);
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.nav-item .nav-icon {
  --nav-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%3Cpath%20d='M8%2012h8'/%3E%3C/svg%3E");
  width: 26px;
  height: 26px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}

.nav-item[data-section="overview"] .nav-icon {
  --nav-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");
}

.nav-item[data-section="maps"] .nav-icon {
  --nav-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='M9%2018l-6%203V6l6-3%206%203%206-3v15l-6%203-6-3Z'/%3E%3Cpath%20d='M9%203v15M15%206v15'/%3E%3C/svg%3E");
}

.nav-item[data-section="weather"] .nav-icon {
  --nav-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='M12%202v3M4.9%204.9%207%207M2%2012h3'/%3E%3Cpath%20d='M7%2018h10.5a4.5%204.5%200%200%200%20.4-9%206%206%200%200%200-11.3%201.7A3.7%203.7%200%200%200%207%2018Z'/%3E%3C/svg%3E");
}

.nav-item[data-section="itinerary"] .nav-icon {
  --nav-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%3Cpath%20d='M8%2014h.01M12%2014h.01M16%2014h.01M8%2018h.01M12%2018h.01'/%3E%3C/svg%3E");
}

.nav-item[data-section="rail"] .nav-icon {
  --nav-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");
}

.nav-item[data-section="travel"] .nav-icon {
  --nav-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='M10.5%2012.5%203%2010l1-2%208%201%204-6%202%201-2%207%205%201%201%202-6%201-4%206-2-1%201.5-7.5Z'/%3E%3C/svg%3E");
}

.nav-item[data-section="stays"] .nav-icon {
  --nav-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%207v13M21%2012v8M3%2014h18'/%3E%3Cpath%20d='M7%2014V9h7a4%204%200%200%201%204%204v1'/%3E%3Cpath%20d='M7%2010h3'/%3E%3C/svg%3E");
}

.nav-item[data-section="documents"] .nav-icon {
  --nav-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");
}

.nav-item[data-section="advice"] .nav-icon {
  --nav-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='M9%2018h6M10%2022h4'/%3E%3Cpath%20d='M8.5%2014.5A6%206%200%201%201%2015.5%2014.5c-.9.7-1.5%201.7-1.5%203.5h-4c0-1.8-.6-2.8-1.5-3.5Z'/%3E%3C/svg%3E");
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, #08b9e8, #07669b);
  box-shadow: 0 12px 24px rgba(7, 95, 147, 0.22);
}

.nav-item:focus-visible,
.ghost-button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 174, 224, 0.28);
  outline-offset: 3px;
}

.ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 6px;
  border: 1px solid #d8eaf3;
  color: var(--accent);
  background: #ffffff;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.15;
}

.admin-header .ghost-button {
  width: auto;
  min-width: 132px;
}

#logoutButton {
  margin-top: auto;
}

.offline-status {
  width: 100%;
  margin: -10px 0 0;
  font-size: 10px;
  text-align: center;
}

.content-shell {
  width: min(1160px, 100%);
  padding: 22px 20px 34px;
}

.trip-hero {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5, 61, 97, 0.95), rgba(7, 138, 190, 0.86)),
    url("assets/japan-travel-hero.svg") center / cover;
  box-shadow: var(--shadow);
}

.trip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 38, 61, 0.22), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.trip-hero > * {
  position: relative;
  z-index: 1;
}

.trip-hero h1 {
  color: white;
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 0;
}

.trip-hero p,
.trip-hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.stat {
  min-height: 112px;
  display: grid;
  align-content: center;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.stat strong {
  color: white;
  font-size: 30px;
}

.weather-stat strong {
  font-size: 18px;
}

.search-panel,
.info-card,
.today-card,
.essential-doc,
.live-card,
.item-card,
.advice-card,
.document-card,
.day-detail,
.travel-card,
.weather-panel-card,
.weather-warning-card,
.weather-day-card,
.timeline-row,
.history-note,
.day-resource,
.transport-info {
  border-color: rgba(207, 227, 238, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.search-panel {
  margin: 16px 0 2px;
  padding: 14px;
}

.search-panel label,
.panel-kicker,
.info-card span,
.today-heading span,
.essential-doc span,
.live-card span,
.item-card span,
.document-card span,
.day-meta span,
.travel-card summary span,
.day-resource span,
.weather-warning-card span,
.weather-day-card span {
  color: var(--accent);
  letter-spacing: 0.04em;
}

.section {
  padding: 30px 0 0;
}

.section-heading h2 {
  color: var(--accent);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

.overview-grid,
.essential-docs,
.live-info,
.item-grid,
.advice-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.info-card,
.essential-doc,
.live-card,
.item-card,
.advice-card,
.document-card {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.info-card:hover,
.essential-doc:hover,
.live-card:hover,
.item-card:hover,
.advice-card:hover,
.document-card:hover,
.travel-card:hover,
.weather-day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 174, 224, 0.46);
  box-shadow: 0 16px 34px rgba(5, 61, 97, 0.13);
}

.today-card {
  border-left: 0;
  padding: 22px;
}

.today-heading h3,
.day-detail h3 {
  color: var(--ink);
}

.today-agenda li,
.today-trains span,
.agenda-list li,
.reservation-list li {
  border-color: rgba(10, 174, 224, 0.18);
  background: #f5fbfe;
}

.today-agenda li {
  border-left: 4px solid var(--accent-2);
}

.weather-card {
  border-color: rgba(10, 174, 224, 0.24);
  background: #f4fbff;
}

.weather-card.has-alert,
.weather-panel-card.danger,
.weather-warning-card.high,
.weather-day-card.has-alert,
.weather-focus-card.has-alert {
  border-color: var(--alert);
  background: var(--alert-soft);
}

.weather-icon,
.stat .weather-icon {
  color: white;
  background: linear-gradient(135deg, #0792ca, #08bde8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 10px 20px rgba(7, 95, 147, 0.2);
}

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

.weather-focus-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #0775ad, #0abce8);
  box-shadow: var(--shadow);
}

.weather-focus-card strong,
.weather-focus-card p,
.weather-focus-card .panel-kicker,
.weather-focus-source span,
.weather-focus-source strong {
  color: white;
}

.weather-focus-icon {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(4, 67, 105, 0.32);
}

.weather-focus-icon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-focus-copy strong {
  display: block;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
}

.weather-focus-copy p {
  margin: 8px 0 0;
  opacity: 0.88;
}

.weather-focus-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.weather-focus-metrics span {
  padding: 8px 10px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.weather-focus-source {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.weather-panel-card.source-card {
  background: #fbfdff;
}

.weather-warning-card.high {
  box-shadow: 0 14px 36px rgba(229, 28, 50, 0.16);
}

.weather-warning-card.high strong,
.weather-panel-card.danger strong {
  color: var(--alert);
}

.weather-alert {
  color: #7a1f00;
  background: #ffd666;
}

.weather-alert.high {
  background: var(--alert);
}

.weather-advice p {
  border-left-color: var(--alert);
}

.weather-day-grid,
.weather-alert-board {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.day-tabs {
  gap: 10px;
  padding-bottom: 10px;
}

.day-tab {
  min-width: 100px;
  min-height: 58px;
  border-color: rgba(10, 174, 224, 0.28);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.day-tab.active {
  background: linear-gradient(135deg, #08b9e8, #07669b);
  box-shadow: 0 12px 24px rgba(7, 95, 147, 0.2);
}

.day-detail {
  padding: 24px;
}

.agenda-item summary::after,
.history-note summary::after,
.travel-card summary::after {
  background: linear-gradient(135deg, #08b9e8, #07669b);
}

.map-link,
.secondary-action,
.weather-card a,
.weather-warning-card a,
.weather-day-card a {
  border-color: rgba(10, 174, 224, 0.28);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
}

.transport-info {
  background: #ffffff;
}

.travel-card details {
  padding: 20px;
}

.travel-meta span,
.admin-badge {
  color: var(--accent);
  background: #eaf7fd;
}

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

.timeline-row {
  border-left: 0;
  border-top: 4px solid var(--accent-2);
}

.advice-card h3 {
  color: var(--accent);
}

.admin-shell {
  background: var(--paper);
}

.admin-header .eyebrow {
  margin-top: 0;
}

.admin-actions button.warning {
  color: #3d2b05;
  background: linear-gradient(135deg, #f4c967, var(--accent-3));
}

.admin-actions button.danger {
  background: linear-gradient(135deg, #e51c32, #b40f22);
}

@media (min-width: 900px) {
  .app-shell {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .sidebar {
    padding: 24px 14px;
  }

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

  .content-shell {
    padding: 30px;
  }

  .trip-hero {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 240px);
  }

  .nav-item {
    min-height: 76px;
    font-size: 12px;
  }
}

@media (max-width: 899px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .weather-summary,
  .weather-alert-board,
  .weather-day-grid,
  .today-grid,
  .day-columns {
    grid-template-columns: 1fr;
  }

  .document-card,
  .timeline-row,
  .password-row,
  .admin-trip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
    padding-bottom: 0;
  }

  .sidebar {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 12px;
    padding: 14px 7px;
  }

  .sidebar-brand {
    grid-column: auto;
  }

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

  .main-nav {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nav-item {
    min-height: 58px;
    padding: 7px 3px;
    font-size: 10px;
  }

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

  .ghost-button {
    padding: 8px 4px;
    font-size: 10px;
  }

  .content-shell {
    padding: 14px 10px 26px;
  }

  .trip-hero,
  .today-card,
  .day-detail,
  .login-panel {
    padding: 18px;
  }

  .trip-hero {
    min-height: 300px;
  }

  .trip-hero h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .trip-hero p {
    font-size: 15px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .weather-focus-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .weather-focus-icon {
    width: 96px;
    height: 96px;
  }

  .weather-focus-icon svg {
    width: 58px;
    height: 58px;
  }

  .weather-focus-source {
    display: grid;
  }

  .today-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action,
  .essential-doc a,
  .document-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .agenda-item summary {
    grid-template-columns: 1fr auto;
  }

  .agenda-list time {
    white-space: normal;
  }

  .agenda-item p,
  .map-link,
  .transport-info {
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 6px;
    padding-right: 6px;
  }

  .sidebar-brand .brand-logo.small {
    width: 56px;
    height: 70px;
  }

  .nav-item {
    min-height: 56px;
    font-size: 9.5px;
  }

  .content-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .weather-focus-metrics {
    display: grid;
  }
}

/* Weather screen closer to the selected mobile mockup */
#weather .section-heading {
  margin-bottom: 18px;
}

#weather .section-heading h2 {
  color: var(--accent);
}

.weather-summary {
  display: block;
  margin-bottom: 26px;
}

.weather-focus-card,
.weather-focus-card.has-alert {
  display: grid;
  grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #087dc0 0%, #08b5e4 100%);
  box-shadow: 0 18px 40px rgba(7, 95, 147, 0.22);
}

.weather-focus-card.has-alert {
  box-shadow: 0 18px 40px rgba(7, 95, 147, 0.22), 0 0 0 2px rgba(229, 28, 50, 0.48);
}

.weather-focus-icon {
  width: min(100%, 210px);
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(5, 61, 97, 0.28);
}

.weather-focus-icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-focus-copy {
  min-width: 0;
}

.weather-focus-copy strong {
  display: block;
  color: white;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
}

.weather-focus-date,
.weather-focus-summary {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2.8vw, 22px);
}

.weather-focus-temp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.weather-focus-temp {
  color: white;
  font-size: clamp(54px, 10vw, 82px);
  font-weight: 800;
  line-height: 0.95;
}

.weather-focus-thermo,
.weather-focus-drop,
.weather-focus-clock {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
}

.weather-focus-thermo svg {
  width: 36px;
  height: 36px;
}

.weather-focus-drop svg,
.weather-focus-clock svg {
  width: 28px;
  height: 28px;
}

.weather-focus-thermo svg,
.weather-focus-drop svg,
.weather-focus-clock svg,
.weather-alert-symbol svg,
.weather-safety-list svg,
.weather-system-icon svg,
.weather-system-arrow svg,
.weather-day-rain svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-focus-rain {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
}

.weather-focus-rain strong {
  color: white;
  font-size: clamp(28px, 5vw, 42px);
}

.weather-focus-rain span:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.weather-focus-source {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  justify-content: start;
  gap: 10px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.weather-focus-source span,
.weather-focus-source strong {
  color: white;
}

.weather-focus-source strong {
  font-size: 15px;
  font-weight: 700;
}

.weather-forecast-list {
  margin-bottom: 26px;
}

.weather-forecast-heading h3 {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(20px, 3vw, 28px);
}

.weather-day-strip {
  display: flex;
  gap: 12px;
  margin: 0 -4px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.weather-day-card {
  flex: 0 0 132px;
  min-height: 220px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 16px 12px;
  border: 1px solid rgba(207, 227, 238, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.weather-day-card.active {
  border-color: #0aaee0;
  box-shadow: 0 14px 30px rgba(10, 174, 224, 0.18);
}

.weather-day-card.has-alert {
  border-color: rgba(229, 28, 50, 0.7);
  background: #fffafb;
}

.weather-day-card strong {
  color: #0781bf;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.weather-day-card > span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.weather-day-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 6px 0 2px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #0792ca, #08bde8);
}

.weather-day-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-day-card h4 {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.15;
  text-align: center;
}

.weather-day-temp,
.weather-day-rain {
  margin: 0;
  color: #22394c;
  font-size: 16px;
  font-weight: 700;
}

.weather-day-rain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.weather-day-rain span {
  color: #078bd0;
}

.weather-day-rain svg {
  width: 16px;
  height: 16px;
}

.weather-full-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px auto 0;
  color: #078bd0;
  text-decoration: none;
  font-weight: 800;
}

.weather-full-link::after {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: 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'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%206%206%206-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: 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'%20stroke-linejoin='round'%3E%3Cpath%20d='m9%206%206%206-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
}

.weather-warnings {
  display: grid;
  gap: 16px;
}

.weather-alert-panel {
  padding: 22px;
  border: 1px solid #ffd5da;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff3f4, #ffffff 28%);
  box-shadow: var(--shadow-soft);
}

.external-data-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #ffd66b;
  border-radius: 8px;
  background: #fff8e2;
}

.external-data-note strong {
  display: block;
  color: #8f5a00;
  font-size: 15px;
}

.external-data-note p {
  margin: 5px 0 0;
  color: #5e4a1c;
  font-size: 13px;
  line-height: 1.45;
}

.external-data-note.stale {
  border-color: #f2a93b;
  background: #fff3d8;
}

.weather-alert-panel header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.weather-alert-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--alert);
}

.weather-alert-symbol svg {
  width: 58px;
  height: 58px;
  fill: rgba(229, 28, 50, 0.12);
}

.weather-alert-symbol.calm {
  color: #0b8c61;
}

.weather-alert-panel header strong {
  color: var(--alert);
  font-size: clamp(22px, 3vw, 28px);
}

.weather-alert-panel.calm {
  border-color: #cbeedd;
  background: #f5fffa;
}

.weather-alert-panel.calm header strong {
  color: #0b8c61;
}

.weather-alert-panel header p,
.weather-alert-panel > p {
  margin: 4px 0 0;
  color: var(--muted);
}

.weather-alert-main-list {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1d5d9;
}

.weather-alert-main-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}

.weather-alert-main-item div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.weather-alert-main-item strong {
  color: #27384a;
}

.weather-alert-main-item p {
  grid-column: 1 / -1;
  margin: 0 0 0 22px;
  color: #4f5f6e;
  line-height: 1.45;
}

.weather-alert-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--alert);
}

.weather-alert-level {
  width: fit-content;
  align-self: start;
  padding: 5px 8px;
  border-radius: 8px;
  color: white;
  background: var(--alert);
  font-size: 12px;
  font-weight: 800;
}

.weather-safety-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.weather-safety-list > strong {
  color: var(--alert);
  font-size: 16px;
}

.weather-safety-list p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin: 0;
  color: #2f3f4d;
}

.weather-safety-list span {
  color: var(--alert);
}

.weather-safety-list svg {
  width: 18px;
  height: 18px;
}

.weather-alert-action {
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--alert);
  border-radius: 8px;
  color: var(--alert);
  background: white;
  text-decoration: none;
  font-weight: 800;
}

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

.weather-system-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(207, 227, 238, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.weather-system-card.danger {
  border-color: rgba(229, 28, 50, 0.6);
  background: #fffafb;
}

.weather-system-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #075f93, #078bd0);
}

.weather-system-icon svg {
  width: 34px;
  height: 34px;
}

.weather-system-card strong {
  color: var(--accent);
  font-size: 20px;
}

.weather-system-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.weather-system-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
  text-decoration: none;
}

.weather-system-arrow svg {
  width: 28px;
  height: 28px;
}

.weather-typhoon-detail-list {
  display: grid;
  gap: 12px;
}

.weather-typhoon-detail-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(229, 28, 50, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8f9, #ffffff 42%);
  box-shadow: var(--shadow-soft);
}

.weather-typhoon-detail-card.high {
  border-color: rgba(229, 28, 50, 0.72);
}

.weather-typhoon-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.weather-typhoon-detail-card header span {
  display: block;
  color: var(--alert);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-typhoon-detail-card header strong {
  display: block;
  margin-top: 2px;
  color: #102f4d;
  font-size: 18px;
}

.weather-typhoon-detail-card header a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  color: white;
  background: var(--alert);
  text-decoration: none;
  font-weight: 900;
}

.weather-typhoon-detail-card p {
  margin: 0;
  color: #415466;
  line-height: 1.45;
}

.weather-typhoon-impact-list,
.weather-typhoon-advice {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f3dce0;
}

.weather-typhoon-impact-list span {
  padding: 9px 10px;
  border-radius: 6px;
  color: #7a1b28;
  background: #fff0f2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.weather-typhoon-advice strong {
  color: var(--alert);
}

@media (max-width: 720px) {
  .weather-focus-card,
  .weather-focus-card.has-alert {
    grid-template-columns: 1fr;
  }

  .weather-focus-icon {
    width: min(190px, 72vw);
  }

  .weather-focus-source {
    grid-template-columns: auto 1fr;
  }

  .weather-focus-source strong {
    grid-column: 2;
  }

  .weather-alert-main-item {
    grid-template-columns: 1fr;
  }

  .weather-alert-main-item p {
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .weather-focus-card,
  .weather-focus-card.has-alert,
  .weather-alert-panel,
  .weather-system-card,
  .weather-typhoon-detail-card {
    padding: 16px;
  }

  .weather-day-card {
    flex-basis: 118px;
    min-height: 208px;
  }
}

/* Mobile top menu */
.mobile-menu-button {
  display: none;
}

.sidebar-menu {
  display: contents;
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
    grid-template-columns: none;
    padding-bottom: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 227, 238, 0.95);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(5, 61, 97, 0.09);
    overflow: visible;
    backdrop-filter: blur(16px);
  }

  .sidebar-brand {
    width: auto;
    display: flex;
    justify-items: initial;
    align-items: center;
    justify-self: start;
    gap: 10px;
    text-align: left;
  }

  .sidebar-brand .brand-logo.small {
    width: 112px;
    height: 44px;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
  }

  .sidebar-brand div {
    min-width: 0;
    display: block;
  }

  .sidebar-brand span {
    display: none;
  }

  .sidebar-brand strong {
    display: block;
    max-width: 44vw;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-button {
    min-width: 92px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(10, 174, 224, 0.32);
    border-radius: 8px;
    color: var(--accent);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .mobile-menu-button span {
    width: 22px;
    height: 16px;
    display: block;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 7px / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 14px / 100% 2px no-repeat;
  }

  .mobile-menu-button strong {
    color: currentColor;
    font-size: 13px;
  }

  .sidebar.menu-open .mobile-menu-button {
    color: #ffffff;
    background: linear-gradient(135deg, #08b9e8, #07669b);
    border-color: transparent;
  }

  .sidebar-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: calc(100vh - 88px);
    padding: 12px;
    border: 1px solid rgba(207, 227, 238, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 46px rgba(5, 61, 97, 0.18);
    overflow-y: auto;
  }

  .sidebar.menu-open .sidebar-menu {
    display: grid;
  }

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

  .nav-item {
    min-height: 62px;
    gap: 6px;
    padding: 9px 6px;
    font-size: 11px;
  }

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

  .ghost-button {
    width: 100%;
    min-height: 42px;
    font-size: 12px;
  }

  .offline-status {
    display: block;
    margin: -2px 0 2px;
    font-size: 11px;
    text-align: center;
  }

  #logoutButton {
    margin-top: 0;
  }

  .content-shell {
    width: 100%;
    padding: 14px 10px 28px;
  }

  .trip-hero {
    min-height: 270px;
  }
}

@media (max-width: 430px) {
  .sidebar {
    min-height: 62px;
    padding: 9px 10px;
  }

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

  .sidebar-brand strong {
    max-width: 38vw;
    font-size: 12px;
  }

  .mobile-menu-button {
    min-width: 48px;
    width: 48px;
    padding: 8px;
  }

  .mobile-menu-button strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sidebar-menu .main-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Support and legal */
.support-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.support-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(11, 93, 143, 0.18);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
}

.support-button.whatsapp {
  color: #ffffff;
  border-color: transparent;
  background: #0b8f62;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 34px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(207, 227, 238, 0.95);
  color: var(--muted);
  font-size: 12px;
}

.legal-footer p {
  margin: 0;
}

.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(207, 227, 238, 0.95);
  color: var(--muted);
  font-size: 12px;
}

.legal-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-link {
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 40, 63, 0.58);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.legal-panel {
  width: min(100%, 720px);
}

.modal-panel h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.08;
}

.modal-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.support-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.support-form label {
  color: var(--ink);
  font-weight: 800;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.support-form input {
  min-height: 46px;
  padding: 12px;
}

.support-form textarea {
  min-height: 148px;
  padding: 12px;
  resize: vertical;
}

.legal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 4px;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  background: #f6fbfe;
}

.legal-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--accent);
  background: transparent;
  font-weight: 800;
}

.legal-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #075f93, #08b9e8);
}

.legal-content {
  display: none;
  color: var(--muted);
  line-height: 1.58;
}

.legal-content.active {
  display: block;
}

.legal-content h3 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 20px;
}

.legal-content p {
  margin-bottom: 12px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(5, 61, 97, 0.2);
}

.cookie-banner strong {
  color: var(--accent);
  font-size: 15px;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.primary-action,
.secondary-action {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #075f93, #08b9e8);
}

.secondary-action {
  border: 1px solid rgba(11, 93, 143, 0.18);
  color: var(--accent);
  background: #ffffff;
}

@media (max-width: 720px) {
  .support-actions {
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  .legal-footer {
    display: grid;
    justify-items: start;
    padding-bottom: 8px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1 1 130px;
  }
}

@media (max-width: 430px) {
  .support-actions {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    padding: 22px 18px;
  }
}

/* Rail status screen */
.refresh-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(10, 174, 224, 0.34);
  border-radius: 8px;
  color: var(--accent);
  background: white;
  box-shadow: var(--shadow-soft);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rail-summary,
.rail-alerts,
.rail-details {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.rail-focus-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #075f93 0%, #08b9e8 100%);
  box-shadow: var(--shadow);
}

.rail-focus-card.alert {
  box-shadow: var(--shadow), 0 0 0 2px rgba(229, 28, 50, 0.48);
}

.rail-focus-card.unknown {
  background: linear-gradient(135deg, #5f7181, #0a8fbd);
}

.rail-focus-icon {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(5, 61, 97, 0.28);
}

.rail-focus-icon svg,
.rail-alert-icon svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-focus-copy span,
.rail-focus-card > div > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-focus-copy strong,
.rail-focus-card strong {
  display: block;
  color: white;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
}

.rail-focus-copy p,
.rail-focus-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.rail-focus-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rail-focus-metrics span {
  padding: 8px 10px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.rail-focus-source {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.rail-focus-source span,
.rail-focus-source strong {
  color: white;
}

.rail-alert-panel {
  padding: 20px;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.rail-alert-panel.alert {
  border-color: #ffccd3;
  background: linear-gradient(180deg, #fff3f4, #ffffff 32%);
}

.rail-alert-panel.unknown {
  border-color: #ffe6aa;
  background: linear-gradient(180deg, #fff9ea, #ffffff 32%);
}

.rail-alert-panel.ok {
  border-color: #cbeedd;
  background: linear-gradient(180deg, #f5fffa, #ffffff 32%);
}

.rail-alert-panel header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.rail-alert-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.rail-alert-panel.alert .rail-alert-icon,
.rail-alert-panel.alert header strong,
.rail-alert-panel.alert .rail-safety-list > strong {
  color: var(--alert);
}

.rail-alert-panel.unknown .rail-alert-icon,
.rail-alert-panel.unknown header strong,
.rail-alert-panel.unknown .rail-safety-list > strong {
  color: #9a6400;
}

.rail-alert-panel.ok .rail-alert-icon,
.rail-alert-panel.ok header strong {
  color: #0b8c61;
}

.rail-alert-panel header strong {
  font-size: clamp(20px, 3vw, 28px);
}

.rail-alert-panel header p,
.rail-alert-panel > p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.rail-context-note {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 8px;
  color: #5b4600 !important;
  background: #fff6d9;
}

.rail-safety-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.rail-safety-list p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  margin: 0;
  color: #2f3f4d;
}

.rail-safety-list svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}

.rail-section-grid h3,
.rail-day-panel h4 {
  margin-bottom: 12px;
  color: var(--accent);
}

.rail-route-list,
.rail-provider-grid {
  display: grid;
  gap: 12px;
}

.rail-provider-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 12px;
}

.rail-route-card,
.rail-provider-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(207, 227, 238, 0.95);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.rail-route-card span,
.rail-provider-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-provider-card.alert {
  border-color: rgba(229, 28, 50, 0.5);
  background: #fff6f7;
}

.rail-provider-card.unknown {
  border-color: #ffe3a3;
  background: #fffaf0;
}

.rail-provider-card.ok {
  border-color: #d7efe6;
}

.rail-provider-card.alert strong {
  color: var(--alert);
}

.rail-provider-card.unknown strong {
  color: #9a6400;
}

.rail-route-card p,
.rail-provider-card p,
.rail-provider-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rail-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rail-route-links a,
.rail-provider-card a {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #087bb0);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.rail-day-panel {
  margin: 0 0 18px;
}

.rail-day-panel .rail-alert-panel {
  padding: 16px;
}

/* Hoy command center */
.today-section-heading {
  align-items: end;
}

.today-section-heading .panel-kicker {
  display: block;
  margin-bottom: 6px;
}

.today-command-card {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(207, 227, 238, 0.94);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 254, 0.98)),
    #ffffff;
  box-shadow: var(--shadow);
}

.today-command-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.today-command-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.today-command-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.today-status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #0b6d4c;
  background: #e8f8f0;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.today-status-pill.alert {
  color: #ffffff;
  background: var(--alert);
}

.today-status-pill.unknown {
  color: #614000;
  background: #ffe8a6;
}

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

.today-signal {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(10, 174, 224, 0.2);
  border-radius: 8px;
  background: #f2fbff;
}

.today-signal span,
.today-doc-card header span,
.today-next-card > span,
.today-now-card > span,
.today-priority-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.today-signal strong {
  font-size: 15px;
  line-height: 1.25;
}

.today-signal.alert {
  border-color: rgba(229, 28, 50, 0.38);
  background: #fff3f4;
}

.today-signal.alert strong {
  color: var(--alert);
}

.today-signal.unknown {
  border-color: #ffe1a0;
  background: #fff9ea;
}

.today-now-card {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #07669b, #08b9e8);
  box-shadow: 0 16px 34px rgba(7, 95, 147, 0.2);
}

.today-now-card span,
.today-now-card strong,
.today-now-card p {
  color: white;
}

.today-now-card strong {
  font-size: clamp(21px, 4vw, 32px);
  line-height: 1.1;
}

.today-now-card p {
  max-width: 760px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.today-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.today-inline-actions .primary-action,
.today-inline-actions .secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.today-inline-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.today-priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #cbeedd;
  border-radius: 8px;
  background: #f5fffa;
}

.today-priority-card.alert {
  border-color: #ffb7c1;
  background: linear-gradient(180deg, #fff1f3, #ffffff 38%);
}

.today-priority-card.unknown {
  border-color: #ffe0a0;
  background: linear-gradient(180deg, #fff8e8, #ffffff 38%);
}

.today-priority-card strong {
  display: block;
  margin-top: 2px;
  color: #0b8c61;
  font-size: clamp(18px, 3vw, 24px);
}

.today-priority-card.alert strong,
.today-priority-card.alert span,
.today-priority-card.alert .today-priority-icon {
  color: var(--alert);
}

.today-priority-card.unknown strong,
.today-priority-card.unknown span,
.today-priority-card.unknown .today-priority-icon {
  color: #9a6400;
}

.today-priority-card p {
  margin: 7px 0 0;
  color: #34485a;
  line-height: 1.48;
}

.today-priority-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0b8c61;
}

.today-priority-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.today-link-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(10, 174, 224, 0.28);
  color: var(--accent);
  background: white;
  box-shadow: none;
  font-size: 12px;
}

.today-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: 14px;
}

.today-doc-card,
.today-next-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(207, 227, 238, 0.92);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.today-doc-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-doc-list {
  display: grid;
  gap: 9px;
}

.today-doc-list a,
.today-next-list div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(10, 174, 224, 0.16);
  border-radius: 8px;
  background: #f6fbfe;
  text-decoration: none;
}

.today-doc-list a strong,
.today-next-list strong {
  font-size: 14px;
  line-height: 1.25;
}

.today-doc-list a span,
.today-next-list time {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.today-next-list {
  display: grid;
  gap: 9px;
}

.today-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.today-quick-actions a,
.today-quick-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(10, 174, 224, 0.25);
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

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

  .rail-focus-card {
    grid-template-columns: 1fr;
  }

  .rail-focus-icon {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 520px) {
  .refresh-button {
    width: 100%;
    margin-top: 12px;
  }

  .rail-focus-card,
  .rail-alert-panel,
  .rail-route-card,
  .rail-provider-card {
    padding: 16px;
  }

  .rail-focus-source {
    display: grid;
  }

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

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

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

  .today-inline-actions .primary-action,
  .today-inline-actions .secondary-action {
    width: 100%;
  }
}

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

  .maps-focus-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .maps-focus-actions a,
  .maps-point-actions a {
    width: 100%;
  }

  .maps-route-visual {
    min-height: 150px;
  }
}

@media (max-width: 520px) {
  .maps-day-tab {
    flex-basis: 108px;
    min-height: 66px;
  }

  .maps-focus-card,
  .maps-route-card,
  .maps-point-card,
  .maps-point-list .empty-card {
    padding: 16px;
  }

  .maps-focus-copy h3 {
    font-size: 24px;
  }

  .maps-point-card {
    grid-template-columns: 1fr;
  }

  .maps-point-marker {
    width: 38px;
    height: 38px;
  }

  .maps-point-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .admin-trip {
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.9fr);
    align-items: start;
    gap: 22px;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: start;
    justify-self: end;
    width: min(100%, 560px);
    margin-top: 0;
    gap: 8px;
  }

  .admin-actions button {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(5, 61, 97, 0.1);
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .admin-actions button[data-admin-action="preview"] {
    grid-column: span 2;
  }

  .admin-actions button[data-admin-action="send-access"] {
    background: linear-gradient(135deg, #0792ca, #075f93);
  }

  .admin-actions button[data-admin-action="reset-start"] {
    color: var(--accent);
    border: 1px solid rgba(7, 95, 147, 0.22);
    background: #ffffff;
  }

  .admin-actions button.warning,
  .admin-actions button.danger {
    box-shadow: 0 8px 18px rgba(122, 64, 20, 0.11);
  }
}
