@font-face {
  font-family: Archivo;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url('./Archivo.ttf') format('truetype');
}
:root {
  color-scheme: light;
  --varsity-ice: #e2eefe;
  --varsity-paper: #fff;
  --varsity-ink: #10121b;
  --varsity-cobalt: #1426b6;
  --varsity-muted: #3a485e;
  --varsity-rule: #a9bbdc;
  --varsity-for: #087522;
  --varsity-against: #cd2538;
  --varsity-amber: #875207;
  --bg: var(--varsity-ice);
  --panel: var(--varsity-paper);
  --ink: var(--varsity-ink);
  --muted: var(--varsity-muted);
  --faint: var(--varsity-muted);
  --line: var(--varsity-rule);
  --blue: var(--varsity-cobalt);
  --red: var(--varsity-against);
  --danger: var(--varsity-against);
  --green: var(--varsity-for);
  --amber: var(--varsity-amber);
  --display: Archivo, Arial, sans-serif;
  --body: Archivo, Arial, sans-serif;
}
.rooting-fantasy { background: var(--varsity-ice); color: var(--ink); }
::selection { color: white; background: var(--blue); }
.rooting-fantasy :where(a, button, select, input, summary):focus-visible {
  outline: 3px solid #0081b8;
  outline-offset: 2px;
}
.rooting-fantasy button:hover { color: var(--blue); }
.rooting-fantasy .app-masthead {
  width: min(calc(100% - 48px), 1060px); max-width: none;
  margin: 0 auto; min-height: 62px; padding: 8px 0;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  border: 0; gap: 16px;
}
.app-masthead .wordmark {
  color: var(--varsity-ink); text-decoration: none; font-size: 26px;
  font-weight: 800; letter-spacing: -.055em; gap: 8px;
}
.app-masthead .brand-icon { width: 30px; height: 30px; border-radius: 7px; }
.app-masthead .account {
  order: 2; color: var(--varsity-cobalt); font-weight: 700; font-size: .9rem; min-height: 44px;
  line-height: 1.1; padding-inline: 10px; border-bottom: 2px solid var(--varsity-rule); border-radius: 0;
}
.rooting-fantasy .sample-strip {
  background: white; color: var(--muted); border-block: 1px solid var(--line);
  font-size: .82rem; line-height: 1.3;
}
.sample-strip > div {
  width: min(calc(100% - 48px), 1060px); margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.sample-strip button { color: var(--blue); font-weight: 750; padding: 8px 0; text-align: end; }
#sheet { width: min(570px,100%); color: var(--ink); background: var(--varsity-paper); box-shadow: -10px 0 50px #101b4838; }
#sheet::backdrop { background: #10183870; backdrop-filter: blur(2px); }
#sheet .sheet-header { min-height: 54px; padding: 5px clamp(14px,4vw,28px); background: var(--varsity-ice); border-bottom-color: var(--line); }
#sheet .sheet-header span { color: var(--muted); font-weight: 700; }
#sheet .close { color: var(--ink); background: transparent; }
#sheet .sheet-body { padding: 20px clamp(16px,4vw,28px) max(32px,env(safe-area-inset-bottom)); }
#sheet .sheet-body :where(p,small) { color: var(--muted); }
#sheet .sheet-alert, .rooting-fantasy .error-text { color: var(--danger); }
#sheet .sheet-alert { background: #feeff0; border-color: #e5b0b7; }
#sheet .evidence-disclosure { border-color: var(--line); }
#sheet .settings-heading { margin: 0 0 3px; font-weight: 800; }
#sheet .settings-context { margin: 0 0 16px; font-variant-numeric: tabular-nums; }
#sheet .settings-intro { margin: 5px 0 12px; }
#sheet .settings-form { margin: 0; }
#sheet .league-setting {
  padding: 9px 12px; border: 0; border-left: 4px solid var(--varsity-cobalt);
  background: var(--varsity-ice); margin-bottom: 5px;
  grid-template-columns: minmax(0,1fr) minmax(95px,auto); gap: 4px 10px;
}
#sheet .league-setting label { text-transform: none; letter-spacing: 0; font: 700 1rem/1.2 var(--body); color: var(--ink); }
#sheet .league-setting label small { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); font-weight: 500; }
#sheet .weight-field { width: 100%; color: var(--ink); background-color: white; border: 1px solid var(--varsity-rule); border-radius: 4px; }
#sheet .settings-form .primary-action { color: white; background: var(--varsity-cobalt); border: 0; margin: 8px 0 0; }
#sheet .account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 24px; }
#sheet .account-actions :is(button,a), #sheet .settings-links a {
  min-height: 44px; background: white; color: var(--blue); justify-content: flex-start;
  text-align: start; font-weight: 650; border: 1px solid var(--line); padding: 9px 12px;
}
#sheet .settings-links { margin-top: 18px; }
#sheet .settings-links summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-weight: 700; }
#sheet .settings-links nav { display: grid; gap: 4px; }
#sheet .settings-links a { display: flex; text-decoration: none; }
#sheet .lab-controls { display: grid; gap: 12px; }
#sheet .lab-controls select { display: block; width: 100%; margin-top: 5px; background-color: white; }
#sheet .lab-controls label { color: var(--ink); font-weight: 650; }
#sheet .lab-controls input { accent-color: var(--blue); }
#sheet .lab-slider { margin: .9rem 0; }
#sheet .lab-slider label { display: flex; justify-content: space-between; gap: 8px; }
#sheet .lab-slider input { display: block; width: 100%; min-height: 32px; }
#sheet .lab-result { padding: 14px 16px; background: var(--varsity-ice); border-left: 4px solid var(--blue); }
#sheet .lab-result strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
#sheet .lab-result p { margin-bottom: 0; }
@media(max-width:700px) {
  .rooting-fantasy .app-masthead, .sample-strip > div { width: calc(100% - 32px); }
  .rooting-fantasy .app-masthead { min-height: 52px; padding: 3px 0; }
  .app-masthead .wordmark { font-size: 23px; }
  .app-masthead .brand-icon { width: 27px; height: 27px; }
  #sheet { margin: auto 0 0; width: 100%; max-height: 92dvh; height: auto; border-radius: 14px 14px 0 0; }
  #sheet .account-actions { grid-template-columns: minmax(0,1fr); }
}
