/* app-extra.css: what the Athlete OS stylesheet (aos.css) needs around it in this demo.
   Fonts, a few utilities the compiled stylesheet doesn't include, the demo banner and form controls. */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Archivo', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --demo-h: 0px;
}
html { scroll-padding-top: calc(4rem + var(--demo-h) + 12px); }
body { font-family: var(--font-sans); }

/* ---------- Demo banner (every page) ---------- */
.aos-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
  background: hsl(var(--brand)); color: hsl(var(--brand-foreground));
  font: 600 12.5px/1.35 var(--font-sans);
}
.aos-banner p { margin: 0; flex: 1 1 0; min-width: 0; }
.aos-banner .demo-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; flex: 0 0 auto;
  border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: inherit;
  font: 700 12px/1 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none;
}
.aos-banner .demo-btn:hover { background: hsl(var(--brand-foreground)); color: hsl(var(--brand)); }
@media (min-width: 768px) { .aos-banner { padding-left: 24px; padding-right: 24px; font-size: 13px; } }

/* The sidebar and header sit under the banner. */
.aos-side { top: var(--demo-h) !important; }
.aos-head { top: var(--demo-h) !important; }
.aos-side.is-collapsed { width: 5rem; }
.aos-side.is-collapsed .aos-hide-c { display: none; }
.aos-side.is-collapsed nav a { justify-content: center; padding-left: 0; padding-right: 0; }
@media (min-width: 768px) { .aos-body.is-collapsed { padding-left: 5rem; } }

/* ---------- Things the compiled stylesheet doesn't have ---------- */
.aos-pill-info { border-color: hsl(var(--info) / .3); background: hsl(var(--info) / .1); color: hsl(var(--info)); }
.aos-pill-warn { border-color: hsl(var(--warning) / .3); background: hsl(var(--warning) / .1); color: hsl(var(--warning)); }
.aos-pill-bad { border-color: hsl(var(--destructive) / .3); background: hsl(var(--destructive) / .1); color: hsl(var(--destructive)); }
.aos-pill-ok { border-color: hsl(var(--success) / .3); background: hsl(var(--success) / .1); color: hsl(var(--success)); }
.aos-pill-brand { border-color: hsl(var(--brand) / .3); background: hsl(var(--brand) / .1); color: hsl(var(--brand-ink)); }
.aos-pill-muted { border-color: hsl(var(--border)); background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.aos-input, .aos-select, .aos-textarea {
  width: 100%; border: 1px solid hsl(var(--input)); border-radius: .5rem; background: hsl(var(--surface));
  color: hsl(var(--foreground)); font: 500 14px/1.4 var(--font-sans); padding: .55rem .75rem;
}
.aos-select { width: auto; padding-right: 2rem; }
.aos-textarea { min-height: 92px; resize: vertical; }
.aos-input:focus, .aos-select:focus, .aos-textarea:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
.aos-msg { white-space: pre-wrap; border: 1px dashed hsl(var(--border)); border-radius: .75rem; background: hsl(var(--surface-muted)); padding: .85rem 1rem; font-size: 14px; line-height: 1.55; }

.aos-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid hsl(var(--border)); scrollbar-width: none; }
.aos-tabs button { flex: 0 0 auto; border: 0; background: none; color: hsl(var(--muted-foreground)); font: 600 13px/1 var(--font-sans); padding: .7rem .8rem; border-bottom: 2px solid transparent; cursor: pointer; }
.aos-tabs button[aria-pressed="true"] { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--brand)); }
.aos-tabs .n { margin-left: .35rem; font-family: var(--font-mono); font-size: 11px; color: hsl(var(--muted-foreground)); }

.aos-stat-label { font: 500 .62rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.aos-stat-num { font: 800 1.9rem/1 var(--font-display); letter-spacing: -.02em; }
.aos-bar { height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.aos-bar > span { display: block; height: 100%; border-radius: inherit; background: hsl(var(--brand)); }

.aos-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.aos-table th { text-align: left; font: 500 .62rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: hsl(var(--muted-foreground)); padding: .75rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.aos-table td { padding: .8rem 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; }
.aos-table tr:last-child td { border-bottom: 0; }
.aos-table tr[data-go] { cursor: pointer; }
.aos-table tr[data-go]:hover td { background: hsl(var(--accent) / .4); }

/* Persona menu and mobile drawer */
.aos-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: 17rem; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--popover)); box-shadow: 0 18px 40px -12px hsl(var(--shadow-color) / .6); padding: .4rem; }
.aos-menu button { display: flex; width: 100%; gap: .6rem; align-items: flex-start; text-align: left; border: 0; background: none; color: inherit; border-radius: .5rem; padding: .55rem .6rem; cursor: pointer; }
.aos-menu button:hover { background: hsl(var(--accent)); }
.aos-drawer { position: fixed; inset: 0; z-index: 80; display: flex; }
.aos-drawer > .scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .55); }
.aos-drawer > aside { position: relative; width: 17rem; max-width: 85vw; height: 100%; display: flex; flex-direction: column; }

/* Modal and toast reuse core.js elements */
#modal { border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); color: hsl(var(--foreground)); padding: 0; width: min(560px, calc(100vw - 32px)); }
#modal::backdrop { background: rgb(0 0 0 / .6); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: hsl(var(--popover)); color: hsl(var(--foreground)); padding: .7rem 1rem; font-size: 14px; box-shadow: 0 12px 30px -10px hsl(var(--shadow-color) / .7); display: flex; gap: .75rem; align-items: center; }
#toast[hidden] { display: none; }
#toast button { border: 0; background: none; color: hsl(var(--brand-ink)); font-weight: 700; cursor: pointer; }
.aos-tour-hi { outline: 3px solid hsl(var(--brand)); outline-offset: 3px; border-radius: .75rem; }
@media print { .aos-banner { display: none; } }
