@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f4f3ef;
  --white: #fff;
  --ink: #16181a;
  --muted: #656563;
  --line: #dcdcd7;
  --green: #0d7a5a;
  --green-dark: #095a43;
  --green-soft: #e8f2ed;
  --blue: #326693;
  --blue-soft: #eaf0f7;
  --amber: #8b6527;
  --amber-soft: #f6f0e3;
  --red: #a03932;
  --red-soft: #f9ecea;
  --radius: 12px;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 Manrope,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.mono,
.eyebrow,
.section-index {
  font-family: var(--mono);
}
.eyebrow,
.section-index {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1440px;
  margin: auto;
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  font-weight: 600;
}
.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}
.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  filter: brightness(0);
}
.brand small {
  display: block;
  font: 8px/1.8 var(--mono);
  letter-spacing: 0.12em;
}
.brand-divider {
  height: 24px;
  width: 1px;
  background: var(--line);
}
.event-logo {
  display: block;
  width: 100px;
  height: auto;
  flex: none;
  mix-blend-mode: multiply;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  min-width: 0;
}
.auth-user { position: relative; min-width: 0; max-width: 280px; }
.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.account-trigger:after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  flex: none;
  margin-left: 2px;
  margin-top: -3px;
}
.auth-user[open] .account-trigger:after { transform: rotate(225deg); margin-top: 3px; }
#auth-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px #16181a14;
}
.account-menu > span { display: block; font-size: 11px; color: var(--muted); }
.account-menu > strong { display: block; font-size: 13px; overflow-wrap: anywhere; margin-top: 4px; }
.account-menu #logout { width: 100%; margin-top: 12px; padding: 8px 10px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; font-size: 13px; justify-content: flex-start; }
main {
  max-width: 1440px;
  padding: 40px;
  margin: 0 auto;
  outline: 0;
}
h1 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 9px;
  min-height: 40px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover {
  background: var(--green-dark);
}
.primary:active {
  transform: translateY(1px);
}
.secondary {
  background: var(--white);
  border: 1px solid var(--line);
}
.secondary:hover,
.quiet:hover {
  background: #e9e8e3;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 32px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e9e8e4;
  border-radius: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.sheet-tab {
  flex: 1 1 auto;
  background: transparent;
  padding: 6px 12px;
  min-height: 32px;
  line-height: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sheet-tabs:empty {
  width: 370px;
  max-width: 100%;
  height: 40px;
  visibility: hidden;
}
.sheet-tab[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 4px #0000000a;
}
.sheet-tab:hover:not([aria-pressed="true"]) {
  background: #ffffff66;
}
.sheet-tab:focus-visible {
  outline-offset: -3px;
}
.date-rail {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 12px 2px 18px;
  scrollbar-width: thin;
}
.date-button {
  flex: none;
  width: 52px;
  min-height: 60px;
  padding: 9px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  line-height: 1.3;
}
.date-button:first-child { width: 76px; }
.date-button .date-weekday {
  display: block;
  font: 10px var(--mono);
  letter-spacing: .08em;
  color: var(--muted);
}
.date-button strong { font-size: 17px; font-weight: 600; }
.date-button:first-child strong { font-size: 13px; }
.date-button small {
  display: block;
  font: 11px var(--mono);
  margin-top: 5px;
  color: var(--muted);
}
.date-button:hover { border-color: #8bc6b5; }
.date-button.date-today {
  background: var(--green-soft);
  border-color: #8bc6b5;
}
.date-button.date-today .date-weekday { color: var(--green); }
.date-button[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.date-button:first-child[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.date-button:first-child[aria-pressed="true"] small { color: #c9c9c2; }
.date-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
  height: 5px;
}
.date-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent, #858b90);
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 340px) 165px 175px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  min-width: 0;
  height: 40px;
}
.search-wrap svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-wrap input {
  border: 0;
  background: none;
  padding: 9px 0;
  min-width: 0;
  width: 100%;
  font-size: 14px;
}
.search-wrap:focus-within,
.filter-label:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.search-wrap input:focus,
.filter-label select:focus {
  outline: none;
}
.filter-label {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  height: 40px;
  min-width: 0;
}
.filter-label > span {
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.filter-label select {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  width: 100%;
  text-overflow: ellipsis;
  cursor: pointer;
}
.result-summary {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}
.result-summary .quiet {
  min-height: 18px;
  padding: 0;
  font-size: 12px;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.journey-group {
  margin-bottom: 26px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}
.group-heading:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.group-heading small {
  font: 12px var(--mono);
  color: var(--muted);
  order: 2;
}
.journey-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  gap: 14px;
  width: 100%;
  padding: 17px 16px;
  margin-bottom: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.journey-card:hover {
  border-color: #a5b6ac;
}
.journey-card[aria-pressed="true"] {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.journey-time {
  border-left: 3px solid var(--accent, var(--muted));
  padding-left: 9px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.journey-time strong {
  display: block;
  font: 14px var(--mono);
  line-height: 1.35;
}
.journey-time small {
  display: block;
  font: 11px var(--mono);
  color: var(--muted);
  margin-top: 5px;
}
.journey-guest,
.journey-driver {
  min-width: 0;
}
.journey-guest strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.journey-guest small,
.journey-driver small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.journey-driver strong {
  font-size: 14px;
  font-weight: 500;
}
.journey-driver small {
  font: 12px var(--mono);
  margin-top: 6px;
}
.status {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #f0f0ee;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 100px;
}
.status:before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.on-duty {
  --accent: var(--green);
}
.assigned {
  --accent: var(--blue);
}
.confirmed {
  --accent: var(--amber);
}
.cancelled {
  --accent: var(--red);
}
.status.on-duty {
  background: var(--green-soft);
  color: var(--green-dark);
}
.status.assigned {
  background: var(--blue-soft);
  color: var(--blue);
}
.status.confirmed {
  background: var(--amber-soft);
  color: var(--amber);
}
.status.cancelled {
  background: var(--red-soft);
  color: var(--red);
}
.details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  scrollbar-width: thin;
}
.detail-heading {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.detail-code {
  text-transform: none;
  background: #f0f0ee;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: .05em;
}
.detail-type {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-meta > .status { flex: none; max-width: 48%; white-space: normal; }
.detail-heading h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.detail-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 8px;
}
.detail-banner {
  padding: 18px 24px;
  background: #f8f8f6;
  border-bottom: 1px solid var(--line);
}
.detail-banner.on-duty { background: #ecf6f3; color: var(--green-dark); }
.detail-banner small { display: block; font-size: 13px; opacity: .7; margin-bottom: 5px; }
.detail-banner strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.detail-section { padding: 24px 24px 0; }
.detail-section[data-render-key="trip-facts"] { padding-top: 20px; }
.detail-section[data-render-key="trip-notes"] { padding-bottom: 20px; }
.detail-section > h3 { font-size: 10px; font-weight: 400; margin: 0 0 14px; }
.detail-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 11px;
  align-items: baseline;
}
.detail-facts + .detail-facts { margin-top: 11px; }
.detail-facts dt { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.detail-facts dd { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.detail-facts a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.chauffeur-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.chauffeur-avatar,
.profile-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #f0f0ee; flex: none; }
.profile-avatar { width: 30px; height: 30px; }
.chauffeur-avatar:before,
.chauffeur-avatar:after,
.profile-avatar:before,
.profile-avatar:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--muted);
  opacity: .65;
}
.chauffeur-avatar:before,
.profile-avatar:before {
  width: 24%;
  height: 24%;
  top: 21%;
  border-radius: 50%;
}
.chauffeur-avatar:after,
.profile-avatar:after {
  width: 48%;
  height: 27%;
  bottom: 21%;
  border-radius: 50% 50% 20% 20%;
}
.chauffeur-person { flex: 1; min-width: 0; }
.chauffeur-person strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.chauffeur-person span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.chauffeur-call { flex: none; padding: 8px 13px; min-height: 36px; font-size: 13px; }
.chauffeur-card.unassigned { display: block; border-style: dashed; background: #fafaf8; color: var(--muted); }
.chauffeur-card.unassigned strong { font-size: 14px; }
.chauffeur-card.unassigned p { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.detail-note { padding: 13px 14px; border-radius: 11px; background: #f5f5f3; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-placeholder {
  padding: 40px 24px;
  color: var(--muted);
  text-align: center;
}
.detail-close {
  display: none;
}
.detail-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-share { display: contents; }
.detail-actions .secondary { min-height: 44px; padding: 10px 4px; border-radius: 9px; font-size: 13px; text-align: center; }
.operations-button { display: flex; align-items: center; justify-content: center; }
.share-button { grid-column: 2; grid-row: 1; }
.share-button.copied {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.share-check {
  display: inline-block;
  animation: share-copied 300ms ease-out;
}
@keyframes share-copied {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: scale(1); }
}
.share-feedback { grid-column: 1 / -1; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.share-feedback:empty { display: none; }
.share-url {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  background: var(--paper);
}
.shared-page main { max-width: 1120px; }
.shared-page .page-heading { align-items: center; }
.shared-page h1 { font-size: 30px; }
.shared-details {
  position: static;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
}
.shared-details .detail-heading,
.shared-details .detail-banner { grid-column: 1 / -1; padding: 28px 32px; }
.shared-details .detail-heading h2 { font-size: clamp(28px, 4vw, 40px); }
.shared-details .detail-heading p { font-size: 17px; }
.shared-details .detail-banner strong { font-size: 26px; }
.shared-details .detail-section { min-width: 0; padding: 24px 32px; }
.shared-details [data-render-key="trip-facts"] { grid-row: span 3; border-right: 1px solid var(--line); }
.shared-details .detail-facts { grid-template-columns: 110px minmax(0, 1fr); }
.shared-details .detail-facts dd { font-size: 16px; }
.shared-details .detail-facts dt { font-size: 14px; }
.shared-details .detail-section > h3 { font-size: 11px; }
.shared-details .detail-footer { grid-column: 1 / -1; padding: 20px 32px; }
@media (max-width: 800px) {
  .shared-page .shared-details { display: block; max-height: none; position: static; }
  .shared-details .detail-heading,
  .shared-details .detail-banner { padding: 24px; }
  .shared-details .detail-section { padding: 24px 24px 0; }
  .shared-details .detail-section[data-render-key="trip-notes"] { padding-bottom: 20px; }
  .shared-details .detail-footer { padding: 16px 24px; }
  .shared-details [data-render-key="trip-facts"] { border-right: 0; }
  .shared-details .detail-facts { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .shared-details .detail-banner strong { font-size: 23px; }
  .share-url { font-size: 16px; }
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  min-width: 130px;
  max-width: 320px;
  overflow-wrap: anywhere;
}
th {
  background: #eeeee8;
  white-space: nowrap;
  font-size: 12px;
}
th button {
  background: none;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-align: left;
  width: 100%;
}
td {
  vertical-align: top;
  white-space: pre-wrap;
}
tbody tr:hover {
  background: #fafaf7;
}
caption {
  padding: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  font-size: 11px;
}
.pagination button:disabled {
  cursor: default;
}
.empty-state {
  text-align: center;
  padding: 70px 24px;
  background: #ffffff66;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty-symbol {
  font-size: 32px;
  color: var(--muted);
}
.empty-state h2 {
  font-size: 20px;
  margin: 8px 0;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
}
.error-banner {
  background: var(--red-soft);
  color: var(--red);
  padding: 14px 18px;
  border-radius: 9px;
  margin: 16px 0;
}
.loading-state {
  padding: 32px 0;
  color: var(--muted);
}
.skeleton {
  height: 78px;
  background: linear-gradient(90deg, #eaeae4, #fafaf7, #eaeae4);
  background-size: 200% 100%;
  border-radius: 12px;
  margin-top: 12px;
  animation: shimmer 1.5s infinite;
}
.auth-layout {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: auto;
}
.auth-intro h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 24px 0;
}
.auth-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.auth-route {
  display: flex;
  align-items: center;
  max-width: 290px;
  margin: 64px 0 24px;
}
.auth-route span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.auth-route span:last-child {
  background: var(--green);
}
.auth-route i {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 8px 28px #16181a04;
}
.auth-card h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
  margin: 28px 0 12px;
  line-height: 1.2;
}
.auth-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.auth-card form {
  margin-top: 26px;
}
.auth-card input + label { margin-top: 16px; }
#sign-in { justify-content: center; }
.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.auth-card input {
  width: 100%;
  border: 1px solid #c9cbc5;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdfdfb;
}
.auth-card .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
  min-height: 46px;
}
.auth-foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  font-size: 12px !important;
}
.message {
  padding: 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark) !important;
  margin-top: 18px;
}
.message.failure {
  background: var(--red-soft);
  color: var(--red) !important;
}
#verify-box {
  margin-top: 24px;
}
#different-email {
  width: 100%;
  margin-top: 10px;
}
#portal,
.auth-layout {
  animation: appear 0.35s ease-out;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 1500px) {
  .journey-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}
@media (max-width: 1150px) {
  .journey-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .journey-card {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px 12px;
  }
  .journey-driver {
    display: none;
  }
  .top-inner {
    gap: 16px;
  }
  .auth-layout {
    gap: 40px;
  }
  .auth-intro h1 {
    font-size: 52px;
  }
  .detail-section { padding: 24px 20px 0; }
  #portal .detail-footer { padding: 16px 20px; }
  #portal .detail-actions .secondary { font-size: 12px; }
  .detail-banner { padding: 18px 20px; }
  .detail-facts { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
  .chauffeur-card { gap: 8px; padding: 12px 10px; }
  .chauffeur-avatar { width: 30px; height: 30px; }
  .chauffeur-call { padding: 8px 10px; }
  .detail-heading {
    padding: 20px;
  }
}
@media (min-width: 801px) and (max-width: 1200px) {
  .toolbar {
    grid-template-columns: minmax(220px, 1fr) 180px 196px;
  }
  .sheet-tabs {
    grid-column: 1 / 3;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 800px) {
  .top-inner {
    height: 64px;
    padding: 0 20px;
    gap: 12px;
  }
  .event-logo { width: 80px; }
  .brand-divider {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 24px;
  }
  .page-heading .compact {
    font-size: 0;
    padding: 10px 14px;
    gap: 0;
  }
  .page-heading .compact span {
    font-size: 20px;
  }
  .journey-layout {
    grid-template-columns: 1fr;
  }
  .details {
    position: relative;
    top: 0;
    max-height: none;
    order: -1;
  }
  #portal .details:not(.mobile-open) {
    display: none;
  }
  .detail-close {
    display: inline-flex;
    float: right;
  }
  .journey-card {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }
  .journey-driver {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    max-width: 440px;
    margin: 20px auto;
  }
  .auth-intro h1 {
    font-size: 44px;
    margin: 16px 0;
  }
  .auth-intro > p:not(.eyebrow) {
    font-size: 13px;
  }
  .auth-route,
  .auth-intro > p:last-child {
    display: none;
  }
  .auth-card {
    padding: 28px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right .quiet {
    font-size: 10px;
    padding: 6px;
  }
  .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .search-wrap {
    grid-column: 1 / -1;
    padding: 0 12px;
  }
  .search-wrap input {
    font-size: 16px;
  }
  .filter-label {
    gap: 6px;
    padding: 0 10px;
  }
  .filter-label select {
    font-size: 16px;
  }
  .filter-label > span {
    font-size: 11px;
  }
  .sheet-tabs {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
  }
  .sheet-tab {
    font-size: 16px;
    padding: 6px 12px;
  }
  .result-count {
    font-size: 13px;
  }
  .result-summary {
    min-height: 24px;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .result-summary .result-count { margin-left: 0; }
  .date-button {
    min-width: 52px;
  }
  .journey-guest strong {
    font-size: 16px;
  }
  .journey-guest small {
    font-size: 14px;
  }
  .status {
    font-size: 12px;
    padding: 4px 7px;
  }
  .journey-card {
    padding: 15px 10px;
    gap: 8px;
  }
  .journey-time strong {
    font-size: 14px;
  }
  .journey-time small {
    font-size: 11px;
  }
  .group-heading {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading > div > p:last-child {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    margin-bottom: 10px;
  }
}
@media (max-width: 480px) {
  #auth-email { display: none; }
  .account-trigger { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* F1 event identity, using the owner's existing Sepang event imagery. */
:root {
  --navy: #181b2c;
  --gold: #b99a52;
  --on-navy: #f4f4ef;
  --on-navy-muted: #c0c4cf;
}
.auth-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  max-width: 1280px;
  gap: 64px;
  min-height: calc(100vh - 152px);
}
.auth-intro {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  color: var(--on-navy);
}
.race-photo {
  position: relative;
  aspect-ratio: 1.9;
  overflow: hidden;
}
.race-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}
.race-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10152270, transparent 45%, #181b2c90);
}
.race-photo-top {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.race-photo-top .race-logo {
  width: 106px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}
.race-year {
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  color: var(--on-navy);
}
.race-copy {
  padding: 32px 36px 28px;
}
.race-copy .eyebrow {
  color: var(--gold);
  font-size: 9px;
}
.race-copy h1 {
  font-size: 42px;
  letter-spacing: -0.035em;
  margin: 16px 0;
  line-height: 1.12;
}
.race-copy > p:not(.eyebrow) {
  color: var(--on-navy-muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 430px;
}
.race-venue {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ffffff26;
  margin-top: 28px;
  padding-top: 20px;
}
.race-venue strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.race-venue div > span {
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  color: var(--gold);
}
.race-venue a {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
  color: var(--on-navy-muted);
}
.race-venue a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}
.checkered {
  width: 24px;
  height: 24px;
  flex: none;
  background: conic-gradient(
    var(--on-navy) 25%,
    transparent 0 50%,
    var(--on-navy) 0 75%,
    transparent 0
  );
  background-size: 12px 12px;
  opacity: 0.8;
}
.auth-card {
  padding: 32px;
}
.auth-card h2 {
  font-size: 27px;
}
@media (max-width: 1100px) {
  .auth-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  }
  .race-copy {
    padding: 28px;
  }
  .race-copy h1 {
    font-size: 34px;
  }
  .race-venue {
    gap: 10px;
  }
  .race-venue a {
    font-size: 9px;
  }
  .race-photo {
    aspect-ratio: 1.6;
  }
}
@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
    max-width: 520px;
    margin: 0 auto;
    gap: 24px;
  }
  .race-photo {
    aspect-ratio: 2.15;
  }
  .race-photo-top {
    top: 16px;
    left: 20px;
    right: 20px;
  }
  .race-photo-top .race-logo {
    width: 80px;
    max-height: 32px;
  }
  .race-year {
    font-size: 8px;
  }
  .race-copy {
    padding: 24px;
  }
  .race-copy h1 {
    font-size: 30px;
    margin: 12px 0;
  }
  .race-copy > p:not(.eyebrow) {
    font-size: 11px;
  }
  .race-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .race-venue {
    padding-top: 16px;
    margin-top: 20px;
    gap: 10px;
  }
  .race-venue strong {
    font-size: 10px;
  }
  .race-venue div > span {
    font-size: 8px;
  }
  .checkered {
    width: 20px;
    height: 20px;
    background-size: 10px 10px;
  }
  .race-venue a {
    font-size: 9px;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-card h2 {
    font-size: 25px;
    margin-top: 20px;
  }
}
@media (max-width: 800px) {
  .race-copy {
    padding: 20px 24px;
  }
  .race-copy h1 {
    font-size: 27px;
  }
  .race-copy > p:not(.eyebrow) {
    display: none;
  }
  .race-photo {
    aspect-ratio: 2.5;
  }
  .race-venue {
    margin-top: 16px;
    padding-top: 14px;
  }
}
.details {
  scroll-margin-top: 84px;
}

.contact-operations {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 0;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.contact-operations > [aria-hidden] { opacity: .5; }
.contact-operations .mono { font-size: 11.5px; font-weight: 400; }
.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 800px) {
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading h1 { margin-bottom: 0; }
  .journey-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .journey-card > .status {
    grid-column: 2;
    justify-self: start;
  }
  .auth-card input { font-size: 16px; }
  .filter-label select { font-size: 15px; }
  .sheet-tab { font-size: 14px; }
}
