:root {
  color-scheme: light;
  --page: #f3f5f9;
  --navy: #050c1f;
  --navy-light: #091635;
  --line: #d7deeb;
  --text: var(--navy);
  --muted: #45516a;
  --red: #d12a2a;
  --red-dark: #b91c1c;
  --gold: #dfa400;
  --blue: #00678f;
  --display: "Tomorrow", "Plus Jakarta Sans", Arial, sans-serif;
  font: 16px/1.55 "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: .01em;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fff; border-top: 5px solid var(--navy); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; min-height: 84px; justify-content: space-between; align-items: center; gap: 20px; }
.top img { display: block; object-fit: contain; width: 178px; height: auto; }
.top-link { color: var(--navy); font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.top-link:hover { color: var(--blue); text-decoration: underline; }
.top-link span { color: var(--blue); margin-left: .35rem; font-family: Arial, sans-serif; }
.layout { display: grid; gap: 24px; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: stretch; margin-top: 42px; }
.hero {
  display: flex; align-items: flex-end; min-height: 520px; color: #fff; background-color: var(--navy);
  background-image: linear-gradient(8deg, #050c1f 4%, #050c1f 21%, #050c1fe8 36%, #050c1f38 67%),
    url("https://images.prismic.io/teamsport/enWFM-ac5wjr37NY_UK-TeamSport-Banner-Karting-Desktop.png?auto=format,compress&w=1400");
  background-size: cover; background-position: 76% center; border-radius: 22px; overflow: hidden;
}
.hero-copy { padding: clamp(24px, 4vw, 48px); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font: 800 clamp(2.1rem, 4.2vw, 3.5rem)/1.05 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
h1 span { color: var(--gold); }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 99px; background: #d60959; }
.hero p { margin: 0; max-width: 34ch; color: #edf2ff; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; min-width: 0; box-shadow: 0 10px 32px #050c1f0d; }
.login { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 62px); color-scheme: dark; color: #fff; border-color: #293955; background: linear-gradient(145deg, var(--navy), var(--navy-light)); }
h2 { margin-bottom: 8px; font: 800 1.65rem/1.15 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.login > p { color: #dce5f8; margin-bottom: 26px; }
.login :focus-visible { outline-color: var(--gold); }
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .9rem; }
input, textarea { color-scheme: light; color: var(--text); background: #fff; border: 1px solid #737f94; border-radius: 12px; padding: 12px 14px; width: 100%; }
.primary { background: linear-gradient(var(--red), var(--red-dark)); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; text-transform: uppercase; }
.primary:hover { background: var(--red-dark); }
.login .primary { display: flex; justify-content: space-between; width: 100%; margin-top: 16px; }
.notice { color: var(--red-dark); font-size: .85rem; margin: 10px 0 0; }
.login .notice { color: #ffd777; }
.notice:empty { display: none; }
.chat { display: flex; flex-direction: column; min-height: 520px; }
.chat-header, .chat-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; }
.chat-header { border-bottom: 1px solid var(--line); min-height: 67px; }
.chat-header h2 { font-size: 1.1rem; margin: 0; }
.quiet { background: transparent; color: inherit; border: 0; padding: 7px 0; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.messages { flex: 1; min-height: 230px; max-height: min(55dvh, 520px); overflow: auto; padding: 18px 20px; }
.message { max-width: 92%; margin: 0 0 12px; border-radius: 13px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 11px 14px; font-size: .9rem; }
.message.agent { background: #edf1f8; }
.message.user { background: var(--navy-light); color: #fff; margin-left: auto; }
.message a { color: var(--blue); font-weight: 700; }
.suggestions { padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.suggestions button, .decision-secondary { background: #fff; border: 1px solid #737f94; color: inherit; border-radius: 12px; padding: 7px 11px; font-size: .78rem; }
.suggestions button:hover, .decision-secondary:hover { color: var(--blue); border-color: var(--blue); }
.composer { display: flex; gap: 8px; padding: 0 20px; align-items: center; }
.composer textarea { resize: vertical; min-height: 48px; max-height: 160px; font-size: .9rem; }
.composer .primary { white-space: nowrap; }
.chat-footer { color: var(--muted); font-size: .75rem; }
.chat-footer p { margin: 0; }
.chat-notice { padding: 0 20px 12px; }
#approval { margin: 0 20px 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--gold); background: #fff9e8; }
#approval p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
#approval button + button { margin-left: 8px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--blue); padding-block: 20px; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 840px) {
  .shell { width: min(600px, calc(100% - 32px)); }
  .top-inner { min-height: 64px; }
  .top img { width: 145px; height: auto; }
  .layout { grid-template-columns: 1fr; margin-top: 20px; gap: 16px; }
  .hero { min-height: 280px; }
  .layout-chat .hero { min-height: 126px; }
  .layout-chat .hero h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .layout-chat .hero h1 br, .layout-chat .hero h1::after { display: none; }
  .layout-chat .hero p { display: none; }
}
