:root {
  --ink: #17211f;
  --muted: #687672;
  --paper: #f7f8f4;
  --card: #ffffff;
  --line: #dfe6df;
  --brand: #d8f36b;
  --brand-deep: #8da62f;
  --accent: #ff765c;
  --navy: #24383a;
  --shadow: 0 18px 45px rgba(28, 49, 43, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% -5%, #eaf7bd 0, transparent 32rem), var(--paper); }
a { color: inherit; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 850; letter-spacing: -.04em; font-size: 1.18rem; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 11px; background: var(--brand); color: var(--navy); font-weight: 950; box-shadow: 4px 4px 0 var(--navy); }
.header-user { display: flex; align-items: center; gap: .85rem; color: var(--muted); font-size: .9rem; }
.header-user form { margin: 0; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 4rem; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 2rem 0 1.5rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--brand-deep); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.05; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.4rem); max-width: 12ch; }
h2 { margin: 0; font-size: 1.25rem; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.stat { grid-column: span 3; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.15rem; box-shadow: var(--shadow); }
.stat strong { display: block; margin-top: .4rem; font-size: 2rem; letter-spacing: -.06em; }
.panel { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem; box-shadow: var(--shadow); }
.panel-wide { grid-column: span 8; }
.panel-side { grid-column: span 4; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.session-list { display: grid; gap: .75rem; }
.session-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.session-card:hover, .session-card:focus-visible { transform: translateY(-2px); border-color: var(--brand-deep); box-shadow: 0 10px 24px rgba(28,49,43,.1); }
.session-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.session-meta { color: var(--muted); font-size: .86rem; }
.session-arrow { color: var(--accent); font-size: 1.4rem; font-weight: 800; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .6rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-brand { background: #eef9c9; color: #53651a; }
.badge-warm { background: #fff0eb; color: #b84c37; }
.badge-dark { background: #e7eeee; color: var(--navy); }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; border: 0; border-radius: 10px; padding: .65rem 1rem; background: var(--navy); color: #fff; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
button[hidden] { display: none; }
.button:hover, button:hover { background: #38575a; }
.button-primary { background: var(--brand); color: var(--navy); }
.button-primary:hover { background: #c6e552; }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
form.card-form { display: grid; gap: 1rem; max-width: 620px; }
form.card-form[hidden] { display: none; }
.member-autocomplete-fallback { display: grid; gap: 1rem; }
.member-autocomplete-fallback[hidden] { display: none; }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .8rem; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(216,243,107,.55); border-color: var(--brand-deep); }
.auth-shell { min-height: 70vh; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); padding: clamp(1.5rem, 5vw, 2.7rem); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.4rem; margin-bottom: .6rem; }
.auth-card form { display: grid; gap: 1rem; }
.helptext, .errorlist { color: var(--muted); font-size: .82rem; }
.member-autocomplete { display: grid; gap: .45rem; }
.member-autocomplete__options {
  display: grid;
  gap: .2rem;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.member-autocomplete__options[hidden] { display: none; }
.member-autocomplete__option {
  width: 100%;
  justify-content: flex-start;
  min-height: 2.5rem;
  border: 0;
  padding: .6rem .7rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 600;
}
.member-autocomplete__option:not(:disabled):hover,
.member-autocomplete__option[aria-selected="true"] { background: #eef4e5; color: var(--ink); }
.member-autocomplete__option:disabled { opacity: .58; cursor: not-allowed; }
.roster { display: grid; gap: .5rem; padding: 0; list-style: none; }
.roster li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .75rem; border-bottom: 1px solid var(--line); }
.toolbar { display: flex; flex-wrap: wrap; gap: .65rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 760px) {
  .site-header { padding: 1rem; }
  .header-user { font-size: .8rem; }
  .container { width: min(100% - 1.25rem, 600px); }
  .hero { display: block; margin-top: 1.2rem; }
  .hero .button { margin-top: 1rem; }
  .stat { grid-column: span 6; }
  .panel-wide, .panel-side { grid-column: span 12; }
  .session-card { align-items: flex-start; }
}
@media (max-width: 430px) {
  .site-header { flex-wrap: wrap; }
  .brand span:last-child { display: none; }
  .header-user { gap: .4rem; max-width: 100%; }
  .header-user > span { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-user .button { padding-inline: .65rem; }
  .stat { grid-column: span 12; }
}
