:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #173244;
  background: #f3f6f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body.portal-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-header {
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: #0b2436;
  color: #eef6fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.portal-brand {
  color: inherit;
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.portal-brand span {
  color: #91b2c2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.portal-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.portal-header nav a,
.portal-header nav button {
  color: #e8f3fa;
  font: inherit;
  font-size: 14px;
}
.portal-header nav a {
  text-underline-offset: 4px;
}
.portal-header nav button {
  border: 1px solid #5e7988;
  background: transparent;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
.portal-root {
  width: min(100% - 32px, 1080px);
  margin: 38px auto;
  flex: 1;
}
.portal-auth {
  width: min(100%, 480px);
  margin: 24px auto;
}
.portal-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.portal-nav,
.portal-card,
.portal-auth-card {
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  box-shadow: 0 8px 24px #1232470a;
}
.portal-nav {
  padding: 18px 12px;
}
.portal-nav h2 {
  margin: 4px 10px 14px;
  font-size: 11px;
  color: #6c8592;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.portal-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 7px;
  color: #29495a;
  text-decoration: none;
  font-size: 14px;
}
.portal-nav a[aria-current='page'] {
  color: #075e68;
  background: #e8f4f3;
  font-weight: 650;
}
.portal-nav a[aria-disabled='true'] {
  color: #83959d;
  cursor: not-allowed;
}
.portal-content {
  min-width: 0;
}
.portal-heading {
  margin: 0 0 7px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.7px;
}
.portal-lede {
  color: #607886;
  line-height: 1.65;
  margin: 0 0 24px;
}
.portal-card,
.portal-auth-card {
  padding: clamp(20px, 4vw, 32px);
}
.portal-auth-card h1 {
  margin: 0 0 8px;
  font-size: 29px;
}
.portal-auth-card > p {
  margin: 0 0 22px;
  color: #607886;
  line-height: 1.6;
}
.portal-form {
  display: grid;
  gap: 16px;
}
.portal-field {
  display: grid;
  gap: 7px;
}
.portal-field label {
  font-weight: 620;
  font-size: 14px;
}
.portal-field input {
  width: 100%;
  border: 1px solid #aebfc8;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: #173244;
  font: inherit;
  min-height: 44px;
}
.portal-field input:focus-visible,
.portal-button:focus-visible,
.portal-nav a:focus-visible,
.portal-header a:focus-visible,
.portal-header button:focus-visible {
  outline: 3px solid #1b9ca0;
  outline-offset: 2px;
}
.portal-help {
  color: #607886;
  font-size: 13px;
  line-height: 1.5;
  margin: -5px 0 0;
}
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  background: #086b73;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.portal-button:hover {
  background: #07545b;
}
.portal-button.secondary {
  background: #eaf1f4;
  color: #274657;
}
.portal-button.secondary:hover {
  background: #dce8ed;
}
.portal-button.danger {
  background: #a93e38;
}
.portal-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 14px;
}
.portal-links a,
.portal-inline-link {
  color: #076a73;
  text-underline-offset: 3px;
}
.portal-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 7px;
  line-height: 1.5;
  font-size: 14px;
}
.portal-message[hidden] {
  display: none;
}
.portal-message.error {
  color: #7d2923;
  background: #fff0ed;
  border: 1px solid #efc1ba;
}
.portal-message.success {
  color: #175d4f;
  background: #eaf6f1;
  border: 1px solid #b5dfce;
}
.portal-message.info {
  color: #315469;
  background: #eef5f8;
  border: 1px solid #c9dce5;
}
.portal-status {
  color: #607886;
}
.portal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.portal-summary-item {
  padding: 16px;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
  min-width: 0;
}
.portal-summary-item dt {
  color: #6d8490;
  font-size: 12px;
  margin-bottom: 8px;
}
.portal-summary-item dd {
  margin: 0;
  color: #173244;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.portal-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e7f4ef;
  color: #216d5b;
  font-size: 12px;
  font-weight: 650;
}
.portal-badge.neutral {
  background: #edf2f4;
  color: #496371;
}
.portal-session-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.portal-secret {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 1rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.5rem;
  background: #f3f7f8;
  color: #102c3d;
}
.portal-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
}
.portal-session p {
  margin: 5px 0;
  color: #607886;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.portal-session strong {
  font-size: 14px;
}
.portal-placeholder {
  padding: 18px;
  background: #f6f9fa;
  border: 1px dashed #bdcdd5;
  border-radius: 9px;
  color: #607886;
  line-height: 1.6;
}
.portal-footer {
  padding: 22px;
  text-align: center;
  color: #6a818e;
  font-size: 12px;
  border-top: 1px solid #e0e8ec;
}

@media (max-width: 700px) {
  .portal-header {
    min-height: 64px;
    padding: 0 16px;
  }
  .portal-brand {
    font-size: 21px;
  }
  .portal-brand span {
    display: none;
  }
  .portal-header nav {
    gap: 10px;
  }
  .portal-root {
    margin: 22px auto;
  }
  .portal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portal-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
  }
  .portal-nav h2 {
    display: none;
  }
  .portal-nav a {
    white-space: nowrap;
    padding: 10px;
  }
  .portal-summary {
    grid-template-columns: 1fr;
  }
  .portal-session {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal-session .portal-button {
    width: 100%;
  }
}

.station-location-map {
  height: 340px;
  width: 100%;
  border-radius: 8px;
}
.station-location-pin {
  color: #c53932;
  font-size: 26px;
  text-shadow: 0 1px 3px white;
}
[data-place-results] button {
  display: block;
  width: 100%;
  padding: 0.6rem;
  text-align: left;
}
