:root {
  color-scheme: light;
  --forest: #092d24;
  --pine: #115540;
  --dark: #142a25;
  --text: #233832;
  --muted: #52655e;
  --paper: #f4f7f5;
  --white: #fff;
  --line: #d7e2dc;
  --gold: #f5cc64;
  --field: #e9f1ec;
  --radius: .9rem;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--pine); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #a25d00; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { color: var(--dark); font-weight: 790; font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.65rem); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { color: var(--dark); font-weight: 750; font-size: 1.18rem; line-height: 1.24; letter-spacing: -.02em; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.skip { position: fixed; top: -10rem; left: .75rem; padding: .65rem 1rem; background: var(--white); z-index: 5; }
.skip:focus { top: .75rem; }
.topbar { background: var(--forest); color: var(--white); border-bottom: 3px solid var(--gold); }
.bar-inner, .container, .footer > div { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.bar-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: flex; gap: .7rem; align-items: center; flex-shrink: 0; font-weight: 730; color: var(--white); text-decoration: none; line-height: 1.14; }
.brand img { border-radius: 50%; }
.brand small { display: block; margin-top: .2rem; color: #bdd1c6; font-size: .79rem; }
.topbar nav, .user-links, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.topbar nav a, .user-links > a, .signout { color: #e4eee8; font-size: .9rem; text-decoration: none; border-radius: .42rem; padding: .43rem .65rem; }
.topbar nav a[aria-current], .topbar nav a:hover, .user-links > a:hover, .signout:hover { background: #224b3d; color: var(--white); }
.topbar nav .mobile-account { display: none; }
.topbar :focus-visible { outline-color: var(--gold); }
.signout { border: 1px solid #527264; background: transparent; white-space: nowrap; }
.container { padding-block: 2.65rem 4.5rem; min-height: 70vh; flex: 1; }
.footer { background: #eaf0ed; border-top: 1px solid var(--line); color: #3e5149; font-size: .87rem; }
.footer > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding: 1rem 0; }
.page-heading { margin-bottom: 1.55rem; }
.page-heading p { margin-top: .64rem; font-size: 1.03rem; color: var(--muted); max-width: 60ch; }
.page-heading .button, .page-heading .pill { margin-top: .65rem; }
.team-heading { display: flex; justify-content: space-between; align-items: end; gap: .75rem 1.5rem; flex-wrap: wrap; }
.breadcrumb { display: inline-block; margin-bottom: .7rem; font-size: .9rem; font-weight: 650; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); isolation: isolate; position: relative; overflow: hidden; background: linear-gradient(105deg, #0d3529, #18513d); color: var(--white); border: 1px solid #214939; border-radius: var(--radius); margin-bottom: 1.25rem; }
.summary::after { content: ""; position: absolute; right: -4.6rem; top: -8rem; z-index: -1; width: 21rem; aspect-ratio: 1; border: 1px solid #fff2; box-shadow: 0 0 0 1.9rem #ffffff0e, 0 0 0 4rem #ffffff0d, 0 0 0 6.1rem #ffffff0b; border-radius: 50%; }
.summary div { padding: 1.02rem 1.45rem 1.12rem; min-width: 0; }
.summary div + div { border-left: 1px solid #ffffff45; }
.summary strong { display: block; color: #f9d77e; font-size: clamp(1.6rem, 1.1rem + 2.5vw, 2.7rem); font-variant-numeric: tabular-nums; line-height: 1.12; }
.summary span { display: block; margin-top: .33rem; font-size: .9rem; color: #eef5f0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; padding: .82rem 1rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); margin-bottom: 1.45rem; }
.filters label { min-width: 9rem; flex: 1; }
.filters label:last-of-type { flex: .85; }
.filters.small { border: none; padding: 0; margin: 0; background: transparent; }
.filters.small label { min-width: 8.3rem; }
label { display: grid; gap: .29rem; font-size: .89rem; font-weight: 680; color: #364d42; min-width: 0; }
label .muted { font-weight: 500; font-size: .83rem; }
input:not([type=checkbox]), select, textarea { background: var(--white); color: var(--dark); border: 1px solid #a8bbb0; border-radius: .47rem; padding: .47rem .63rem; width: 100%; min-height: 2.52rem; max-width: 100%; }
textarea { resize: vertical; }
input[type=file] { padding: .4rem; }
select { appearance: none; padding-right: 1.6rem; background-image: linear-gradient(45deg, transparent 50%, #345246 50%), linear-gradient(135deg, #345246 50%, transparent 50%); background-position: right .92rem center, right .63rem center; background-size: .31rem .31rem; background-repeat: no-repeat; }
.button { align-items: center; display: inline-flex; justify-content: center; color: var(--pine); appearance: none; border: 1px solid transparent; border-radius: .48rem; padding: .43em .83em; text-decoration: none; font-size: .92rem; font-weight: 700; min-height: 2.52rem; text-align: center; }
.button:hover { filter: brightness(.95); }
.button.primary { background: var(--pine); color: var(--white); }
.button.secondary { background: #f0f5f2; border-color: #c0d0c7; }
.button.quiet { background: transparent; }
.button.quiet:hover { background: var(--field); }
.button.compact { font-size: .87rem; min-height: 2.14rem; }
.button:disabled { background: #daece0; color: #174a35; border-color: #bdd5c5; cursor: default; filter: none; }
.schedule { display: grid; gap: .9rem; }
.week { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.week-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--field); padding: .68rem 1rem; border-bottom: 1px solid var(--line); }
.week-header h2 { font-size: 1.06rem; }
.week-header > span { color: #3d5a4e; font-size: .84rem; white-space: nowrap; }
.week-empty { padding: .7rem 1rem; color: var(--muted); font-size: .9rem; }
.event-row { display: grid; grid-template-columns: 8rem minmax(10rem, 1fr) minmax(13rem, 41%); gap: .65rem 1rem; align-items: center; min-height: 4.2rem; padding: .74rem 1rem; scroll-margin-top: 1rem; }
.event-row + .event-row { border-top: 1px solid #e3eae6; }
.event-date { width: max-content; max-width: 100%; font-size: .9rem; color: #3f5b50; font-weight: 690; }
.event-date .pill { display: table; margin-top: .23rem; }
.event-name { font-weight: 740; line-height: 1.28; text-decoration-color: #80a594; }
.event-main .muted { margin-top: .13rem; }
.event-main > .pill { margin-top: .22rem; }
.muted { color: var(--muted); font-size: .89rem; }
.dot { display: inline-block; margin-inline: .17em; }
.event-teams, .event-actions form { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: .34rem; min-width: 0; }
.pill { color: #355146; font-weight: 690; font-size: .78rem; background: #edf2ef; padding: .14rem .5rem; border: 1px solid #d6e1db; display: inline-block; border-radius: 1rem; max-width: 100%; }
.pill.amber { background: #fff0cd; color: #694000; border-color: #efd7a0; }
.pill.green, .pill.registered { background: #e3f1e7; color: #18523a; border-color: #c3ddcb; }
.pill.planned { background: #edf0f8; color: #34476e; border-color: #d7deef; }
.team-pill { text-decoration: none; line-height: 1.22; padding: .28rem .58rem; }
.team-pill:hover { text-decoration: underline; }
.team-pill small { display: block; font-size: .72rem; font-weight: 520; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.team-card { text-decoration: none; padding: 1rem; min-height: 8.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); display: grid; align-content: start; gap: .4rem; justify-items: start; }
.team-card:hover { border-color: var(--pine); }
.team-card.assigned { border-top: .22rem solid #278768; }
.team-card > span:last-child { font-size: .91rem; }
.team-toolbar { margin-bottom: 1.2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: end; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs a { font-weight: 690; color: var(--muted); border-radius: .45rem; text-decoration: none; padding: .45rem .65rem; font-size: .91rem; }
.tabs a[aria-current] { background: #dcebe2; color: #174a36; }
.tabs span { margin-left: .23rem; font-size: .78rem; }
.panel, .doc, .empty { background: var(--white); padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.detail-grid.single { grid-template-columns: minmax(0, 1fr); }
.doc { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .5rem .85rem; }
.doc + .doc { margin-top: .6rem; }
.doc-body { min-width: 0; overflow-wrap: anywhere; }
.doc-body p { margin-top: .3rem; white-space: pre-line; }
.doc .actions { grid-column: 2; }
.doc-icon { background: #e7f0e9; border: 1px solid var(--line); color: var(--pine); border-radius: .35rem; font-weight: 780; font-size: .78rem; padding: .5rem; }
.plain-list { list-style: none; margin: .55rem 0 0; padding: 0; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .57rem 0; overflow-wrap: anywhere; }
.plain-list li + li { border-top: 1px solid var(--line); }
.plain-list a { font-weight: 700; }
.accounts li div span { display: block; font-size: .87rem; }
.add-team { margin-top: .9rem; }
summary { font-weight: 730; color: var(--pine); }
details[open] summary { margin-bottom: .55rem; }
.facts { margin: .35rem 0 .85rem; }
.facts > div { padding: .53rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 715; }
.facts dd { margin: .16rem 0 0; overflow-wrap: anywhere; }
.empty p { margin: .3rem 0 .72rem; color: var(--muted); }
.stack { display: grid; gap: .9rem; }
.form-width { width: min(43rem, 100%); }
.form-row, .checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .63rem; }
fieldset { border: 1px solid var(--line); padding: .7rem; border-radius: .5rem; margin: 0; min-width: 0; }
legend { font-weight: 690; color: #364d42; padding-inline: .36rem; }
.check { display: flex; align-items: start; }
.check input { margin: .24em .24em 0 0; accent-color: var(--pine); }
.notice { background: #e1f1e6; border: 1px solid #a9d1b8; border-radius: .55rem; color: #174c35; padding: .63rem .8rem; margin-bottom: .78rem; }
.notice.error { background: #ffefeb; border-color: #e7b6ad; color: #782f24; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: white; background: radial-gradient(ellipse at bottom left, #235b47, var(--forest) 75%); border-right: 3px solid var(--gold); padding: clamp(1.8rem, 7vw, 7rem); }
.auth-brand img { width: clamp(4.2rem, 12vw, 8.25rem); border-radius: 50%; margin-bottom: 1.15rem; }
.auth-brand p { color: #f7d678; font-weight: 740; margin-bottom: .52rem; }
.auth-brand h1 { color: var(--white); max-width: 11ch; }
.auth-form { display: flex; justify-content: center; align-items: center; padding: 2rem; }
.auth-form form { width: min(100%, 25rem); padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.auth-form h2 { font-size: 1.65rem; }
@media (max-width: 64rem) {
  .bar-inner { flex-wrap: wrap; padding-block: .65rem; column-gap: .6rem; }
  .topbar nav { order: 3; width: 100%; }
  .topbar nav a { padding: .37rem .58rem; }
}
@media (max-width: 48rem) {
  .bar-inner, .container, .footer > div { width: min(100% - 2rem, 76rem); }
  .container { padding-block: 1.85rem 3rem; }
  .event-row { grid-template-columns: 6.6rem minmax(0, 1fr); }
  .event-teams, .event-actions { grid-column: 2; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .bar-inner { column-gap: .25rem; }
  .brand { font-size: .85rem; gap: .4rem; }
  .brand img { width: 2.12rem; }
  .brand small { font-size: .73rem; }
  .user-links > a { display: none; }
  .topbar nav .mobile-account { display: inline-block; }
  .topbar nav { gap: .15rem; }
  .topbar nav a { font-size: .81rem; padding: .4rem .41rem; }
  .summary div { padding: .68rem .53rem; }
  .summary span { font-size: .77rem; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
  .filters label { min-width: 0; }
  .filters.small { display: flex; }
  .event-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: .68rem .75rem; }
  .event-date { display: flex; align-items: center; gap: .32rem; }
  .event-date .pill { margin: 0; }
  .event-teams, .event-actions { grid-column: 1; }
  .team-grid { gap: .55rem; }
  .team-card { padding: .7rem; overflow-wrap: anywhere; }
  .form-row, .checkbox-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-brand { border-right: 0; border-bottom: 3px solid var(--gold); }
  .auth-brand h1 { max-width: unset; }
  .auth-form { align-items: start; padding: 1rem; }
}
