@font-face {
  font-family: "Barlow";
  src: url("/design/fonts/Barlow-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/design/fonts/Barlow-normal-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/design/fonts/BarlowCondensed-normal-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #102b49;
  --muted: #405c77;
  --blue: #145a9b;
  --glass-border: #ffffffd4;
  --glass: #f4faffc7;
  --shadow: 0 12px 40px #254e7622, inset 0 1px 0 #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 460px;
  margin: 0;
  padding: clamp(14px, 2.3vw, 32px) clamp(14px, 4vw, 58px) max(clamp(14px, 2.5vw, 34px), env(safe-area-inset-bottom));
  color: var(--ink);
  background:
    linear-gradient(178deg, #dceefb8a 0%, #f0f8fc24 56%, #2c5b88a6 100%),
    #a6c6dd url("aelby-track.webp") center 68% / cover no-repeat;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #2779c8; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand, .exit, .composer-box, .suggestions button, .jump {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 32px;
  padding: 6px 16px 6px 6px;
  font-size: .9rem;
  font-weight: 720;
  letter-spacing: -.015em;
}
.brand-menu { position: relative; z-index: 2; min-width: 0; }
 .brand { color: var(--ink); text-align: left; anchor-name: --account-button; }
.brand-actions {
  position: fixed;
  margin: 0;
  inset: 74px auto auto max(clamp(14px, 4vw, 58px), calc((100vw - 1440px) / 2));
  width: max-content;
  min-width: 10rem;
  padding: 6px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #f3faffed;
  backdrop-filter: blur(20px);
  transform-origin: 18px 0;
}
@supports (top: anchor(bottom)) {
  .brand-actions { position-anchor: --account-button; top: calc(anchor(bottom) + 7px); left: anchor(left); }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-actions {
    opacity: 0;
    transform: translateY(-4px) scale(.96);
    transition: opacity 150ms, transform 180ms ease-out, display 180ms allow-discrete, overlay 180ms allow-discrete;
  }
  .brand-actions:popover-open { opacity: 1; transform: none; }
  @starting-style { .brand-actions:popover-open { opacity: 0; transform: translateY(-4px) scale(.96); } }
}
.brand-actions :is(a, button) {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  font-size: .85rem;
  white-space: nowrap;
}
.brand-actions :is(a, button):hover { background: #dcebf6; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; font-weight: 540; }
.brand-icon, .hero-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 550;
  background: radial-gradient(ellipse at 20% 0%, #8bd6fa, transparent 63%), linear-gradient(148deg, #4caade, #1a609f 85%);
  box-shadow: inset 0 1px 2px #e9f8ffe0, inset 0 -3px 5px #123c7452, 0 7px 22px #2a77b250;
}
.eagle { display: block; width: 74%; height: auto; overflow: visible; }
.brand-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; }
.exit { padding: 10px 15px; border-radius: 30px; color: var(--ink); font-size: .82rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.exit span { margin-left: 4px; color: var(--blue); }
.exit:hover, .suggestions button:hover, .jump:hover { background: #fff; }

.workspace {
  min-height: 0;
  width: min(100%, 880px);
  margin: clamp(13px, 2.6vh, 30px) auto 0;
  display: flex;
  flex-direction: column;
}
.conversation {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ffffffc9;
  border-radius: clamp(24px, 4vw, 42px);
  background: linear-gradient(155deg, #f4faffdc 5%, #eff8ffd4 50%, #dbeafa8a 100%);
  box-shadow: 0 24px 90px #173c6638, inset 0 1px 1px #fff;
  -webkit-backdrop-filter: blur(15px) saturate(125%);
  backdrop-filter: blur(15px) saturate(125%);
}
.conversation-body { flex: 1; min-height: 0; display: flex; position: relative; }
.transcript {
  flex: 1;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 46px) clamp(16px, 5vw, 66px);
  scrollbar-width: thin;
  scrollbar-color: #81a6c4 transparent;
}
.transcript:focus-visible { outline-offset: -4px; border-radius: 32px; }
.turns { min-height: 100%; display: flex; flex-direction: column; }
.chat-empty { margin: auto 0; padding: 12px 0; text-align: center; }
.hero-mark {
  width: clamp(52px, 5vw, 66px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border: 1px solid #ffffffde;
  border-radius: 31%;
  font-size: clamp(2.65rem, 5vw, 3.8rem);
}
.hero-mark .eagle { width: 77%; filter: drop-shadow(0 2px 4px #144a8270); }
.chat-empty h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 740;
  letter-spacing: -.015em;
  text-wrap: balance;
  line-height: 1.12;
}
.chat-empty p { margin: 18px auto 0; color: var(--muted); font-size: clamp(.94rem, 2.4vw, 1.12rem); line-height: 1.45; }
.suggestions { margin: clamp(18px, 3.5vh, 34px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.suggestions button {
  padding: 10px 13px;
  border-radius: 40px;
  white-space: nowrap;
  color: var(--ink);
  font-size: .81rem;
  font-weight: 580;
  box-shadow: 0 3px 10px #2a577815, inset 0 1px 0 #fff;
}
.suggestions span { margin-left: 4px; color: var(--blue); }
.turn { margin-bottom: 24px; display: grid; gap: 16px; }
.user-message, .answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: .98rem;
}
.user-message {
  justify-self: end;
  max-width: min(92%, 54ch);
  padding: 11px 16px;
  border: 1px solid #fff9;
  border-radius: 21px 21px 6px 21px;
  background: #c6e5fa;
}
.assistant-message { max-width: 66ch; }
.assistant-name { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--blue); font-size: .85rem; font-weight: 750; }
.assistant-name span { color: var(--muted); font-size: .73rem; font-weight: 570; }
.answer a { text-decoration: underline; text-underline-offset: 3px; }
.turn-activity { margin-top: 12px; color: var(--muted); font-size: .79rem; }
.turn-activity summary { width: fit-content; padding: 4px 0; cursor: pointer; }
.turn-activity p { margin: 3px 0 0; }
.thinking { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .87rem; color: var(--muted); }
.waiting-eagle {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.waiting-eagle::before, .waiting-eagle::after {
  position: absolute;
  inset: 3px;
  border: 1px solid #4e91c2;
  border-radius: 28%;
  content: '';
  animation: orbit 2.7s linear infinite;
}
.waiting-eagle::after { inset: 6px; opacity: .5; animation-direction: reverse; animation-duration: 3.6s; }
.waiting-eagle .eagle { width: 24px; }
.elapsed { font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes orbit { to { transform: rotate(1turn); } }
.jump {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 25px;
  padding: 8px 12px;
  color: var(--blue);
  font-size: .82rem;
  white-space: nowrap;
}
.composer { padding: 0 clamp(10px, 4vw, 38px) clamp(10px, 3vw, 31px); }
.composer-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 7px; border-radius: 27px; background: #f9fcffe8; }
.composer-box:focus-within { border-color: #5a9bd0; }
.composer textarea {
  display: block;
  align-self: center;
  min-height: 1.4em;
  max-height: 120px;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  padding: 0 0 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}
.composer textarea::placeholder { color: #4b6681; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.engines {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid #d1e3f1;
  border-radius: 24px;
  background: #dcebf6;
}
.engines label { position: relative; cursor: pointer; }
.engines input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.engines span {
  display: block;
  min-width: 51px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 18px;
  color: #365b7d;
  font-size: .79rem;
  font-weight: 680;
}
.engines input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 6px #31597825; }
.engines input:focus-visible + span { outline: 3px solid #2779c8; outline-offset: 2px; }
.usage-meter { display: block; margin: 4px 10px 0 auto; color: var(--muted); font-size: .75rem; text-align: end; line-height: 1.2; }
.usage-meter strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  width: 50px;
  height: 50px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #2a78af;
  border-radius: 50%;
  background-color: var(--send-tone, #226eab);
  background-image: linear-gradient(155deg, #ffffff24, transparent 48%, #082c511f);
  transition: background-color 220ms ease, box-shadow 140ms ease;
  box-shadow: inset 0 1px 1px #b3ddf9, inset 0 -2px 4px #0c3c6960, 0 4px 14px #2d6ba550;
  color: white;
  font-weight: 720;
  font-size: .82rem;
}
.send:hover:not(:disabled) { box-shadow: inset 0 1px 1px #b3ddf9, 0 5px 17px #266ba981; }
.send .eagle { width: 30px; filter: drop-shadow(0 2px 2px #0b4374); }
.send[data-tone="1"] { --send-tone: #2178a2; }
.send[data-tone="2"] { --send-tone: #226d82; }
.send[data-tone="3"] { --send-tone: #386f91; }
.send[data-tone="4"] { --send-tone: #365e89; }
.send[data-tone="5"] { --send-tone: #234e75; }
.send:disabled { opacity: .88; }
@media (prefers-reduced-motion: no-preference) {
  .send:active:not(:disabled) {
    transform: translateY(1px) scale(1.035, .93);
    box-shadow: inset 0 2px 5px #103b6059, 0 1px 4px #2d6ba535;
  }
}
.form-status { margin: 0 0 8px; color: var(--ink); font-size: .83rem; }
.form-status:empty { display: none; }
.access-page { display: grid; grid-template: 1fr / 1fr; place-items: center; }
.access-card {
  width: min(100%, 420px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--glass-border);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  text-align: center;
}
.access-card h1 { margin: 0; font-size: 2rem; letter-spacing: -.015em; }
.access-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.45; }
.access-card .powered-by { margin-top: 4px; font-size: .77rem; }
.access-switch { display: inline-block; margin-top: 20px; font-size: .83rem; }
.access-card .access-error { color: #8b2929; }
.access-card form { margin-top: 24px; text-align: left; }
.access-card label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 640; }
.access-card input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #a9c6de;
  border-radius: 14px;
  background: #f9fcff;
  color: var(--ink);
  font: inherit;
}
.access-submit {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #13558e;
  border-radius: 14px;
  background: linear-gradient(#328ecb, #1b609e);
  color: #fff;
  font-weight: 650;
}
.editorial-page { display: block; overflow: auto; padding: clamp(20px, 5vw, 48px); }
.editorial-page h1 { margin: 0 0 24px; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.06em; }
.editorial-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.editorial-columns section { padding: 18px; border: 1px solid #ffffffe0; border-radius: 22px; background: #f6fbfee5; }
.editorial-columns h2 { margin: 0 0 7px; font-size: 1.1rem; }
.editorial-columns article { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid #d5e2ef; }
.editorial-columns article:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial-columns small { color: var(--muted); }
.editorial-columns a { text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  body { background-position: 67% center; }
  .brand { gap: 6px; padding-right: 9px; font-size: .77rem; }
  .brand-icon { width: 33px; height: 33px; }
  .topbar { gap: 5px; }
  .topbar .exit { padding-inline: 9px; font-size: .74rem; }
  .hero-mark { margin-bottom: 17px; }
  .chat-empty p { max-width: 28ch; margin-top: 13px; }
  .suggestions { gap: 7px; }
  .suggestions button { min-height: 40px; padding: 8px 11px; }
  .composer-box { border-radius: 28px; }
  .composer-actions { gap: 6px; }
  .send .eagle { width: 30px; }
  .engines span { min-width: 42px; padding-inline: 6px; }
  .editorial-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .waiting-eagle::before, .waiting-eagle::after { animation: none; }
}

h1, .editorial-columns h2 { font-family: "Barlow Condensed", Barlow, sans-serif; }
.send:only-child { margin-inline-start: auto; }

.workspace-switch, .sport-links { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--glass-border); border-radius: 24px; background: #eaf5fbe8; box-shadow: var(--shadow); }
.workspace-switch a, .sport-links a { padding: 8px 12px; border-radius: 20px; color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.workspace-switch [aria-current], .sport-links [aria-current] { color: var(--ink); background: white; box-shadow: 0 2px 8px #234b6d25; }
.sport-section { margin-top: 22px; scroll-margin-top: 12px; }
.sport-section h2 { margin: 0 0 12px; font: 700 1.4rem "Barlow Condensed", sans-serif; }
.match-row, .league { padding: 14px 2px; border-bottom: 1px solid #a5bed180; }
.match-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.match-row small { grid-column: 1/-1; color: var(--muted); }
.match-row a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.match-row strong { font-variant-numeric: tabular-nums; }
.league summary { cursor: pointer; font-weight: 600; }
.league small { color: var(--muted); }
.league table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: .9rem; }
.league :is(th, td) { padding: 5px; text-align: start; }
.league tbody th { font-weight: 400; }
.home-team { background: #badaf0; }
@media (prefers-reduced-motion: no-preference) {
  .workspace > .conversation:not([hidden]), .sport-section:not([hidden]) { animation: view-arrive 200ms ease-out; }
  @keyframes view-arrive { from { opacity: .35; transform: translateY(5px) scale(.994); } }
}
@media (max-width: 400px) { .workspace-switch a { padding: 8px; font-size: .8rem; } }
.sport-links { position: sticky; top: 0; z-index: 1; backdrop-filter: blur(16px); }

.assistant-message { min-width: 0; width: min(100%, 66ch); }
.turn { grid-template-columns: minmax(0, 1fr); }
.answer { white-space: normal; }
.answer > :first-child, .html-preview > :first-child { margin-top: 0; }
.answer > :last-child, .html-preview > :last-child { margin-bottom: 0; }
.answer p, .answer ul, .answer ol { margin: .55em 0; }
.answer :is(ul, ol) { padding-inline-start: 1.45em; }
.answer :is(h1,h2,h3,h4) { font: 700 1.25rem/1.2 "Barlow Condensed", sans-serif; margin: 1em 0 .4em; }
.answer blockquote { margin: .8em 0; border-left: 3px solid #6fa4c5; padding-left: .85em; color: var(--muted); }
.answer pre, .answer table { display: block; max-width: 100%; overflow-x: auto; }
.answer pre, .html-preview, .chat-chart { margin: .8em 0; padding: 12px; background: #f7fbffee; border: 1px solid #bdd4e3; border-radius: 14px; }
.answer code { font-size: .88em; }
.answer table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.answer th, .answer td { padding: .35em .65em; text-align: start; border-bottom: 1px solid #cbdce8; }
.chat-chart table { display: table; width: 100%; }
.chat-chart caption { text-align: start; font-weight: 600; padding-bottom: .5em; }
.chat-chart th { width: 35%; font-weight: 400; }
.chat-chart td:last-child { width: 1%; white-space: nowrap; text-align: end; }
.chat-chart svg { width: 100%; height: 9px; fill: #297ca4; }
.chat-chart path { stroke: #415f76; stroke-width: .6; }
