/* Pass D — base */

:root {
  --ink: #11291d;
  --muted: #65766b;
  --line: #dce7df;
  --paper: #f4f7f3;
  --card: #fff;
  --green: #08713d;
  --deep: #064d2a;
  --soft: #dff5e7;
  --red: #af3933;
  --redsoft: #ffe8e6;
  --amber: #986000;
  --ambersoft: #fff1d8;
  --blue: #1d629f;
  --bluesoft: #e6f1fc;
  font-family: Inter,
          ui-sans-serif,
          system-ui,
          -apple-system,
          "Segoe UI",
          sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 84px;
}

.shell {
  width: min(100%, 1180px);
  margin: auto;
}

button,
      input,
      select {
  font: inherit;
}

button {
  cursor: pointer;
}

.bar {
  padding: 0.58rem 1rem;
  background: #15271d;
  color: #e6f7ea;
  text-align: center;
  font-size: 0.78rem;
}

.bar b {
  color: #aaf5c1;
}

header {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  background: url("../Images/header-banner.webp") center / cover no-repeat;
  color: #fff;
  padding: .65rem 1rem;
}

header:after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  right: -20rem;
  top: -25rem;
  box-shadow: 0 0 0 35px #ffffff0b,
          0 0 0 72px #ffffff09;
}

.top,
      .hero {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  align-items: center;
}

.club {
  margin: 0;
  color: #c3eecf;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account {
  border: 1px solid #ffffff45;
  border-radius: 99px;
  padding: 0.45rem 0.7rem;
  background: #04351f55;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero {
  margin-top: 1.55rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero p {
  margin: 0.65rem 0 0;
  color: #d7f3df;
  font-size: 0.98rem;
}

main {
  padding: 1.2rem 1rem 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 1.35rem 0 0.7rem;
}

.head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.head p,
      .help {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 18px #0f351e09;
}

.pad,
      .detail {
  padding: 1rem;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #eddda9;
  border-radius: 16px;
  background: #fff9e7;
}

.notice i {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ffe9a9;
  font-style: normal;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.notice h2 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1rem;
}

.notice p {
  margin: 0;
  color: #4e4d3d;
  font-size: 0.88rem;
}

.answer {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #075d34, #0d8d52);
  color: #fff;
  box-shadow: 0 14px 30px #08713d38;
}

.answer:after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  border: 18px solid #ffffff1c;
  border-radius: 50%;
  right: -2rem;
  bottom: -5rem;
}

.answer > * {
  position: relative;
  z-index: 1;
}

.answer .eyebrow {
  color: #c0f3cf;
}

.answer h2 {
  margin: 0.3rem 0;
  font-size: 1.3rem;
}

.answer p {
  margin: 0;
  color: #d7f3e0;
  font-size: 0.88rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0.8rem 0;
  font-size: 0.84rem;
}

.answer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.answer-actions button,
      .primary,
      .secondary {
  min-height: 45px;
  border-radius: 11px;
  font-weight: 800;
}

.answer-actions button {
  border: 1px solid #fff4;
  color: #fff;
  background: #fff2;
}

.answer-actions .present {
  border-color: #fff;
  background: #fff;
  color: var(--deep);
}

.answer-actions .present.selected {
  border-color: #c5f7d5;
  background: #0b713d;
  color: #fff;
}

.answer-actions .absent {
  background: #681a15aa;
}

.answer-actions .absent.selected {
  border-color: #ffc8c4;
  background: #b2352f;
  color: #fff;
}

.secondary.selected {
  border-color: var(--green);
  background: var(--soft);
  color: var(--deep);
}

.secondary.danger.selected {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.primary {
  border: 0;
  padding: 0 0.9rem;
  background: var(--green);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  padding: 0 0.9rem;
  background: #fff;
  color: var(--ink);
}

.danger {
  border-color: #efc7c4;
  background: #fffafa;
  color: var(--red);
}

.text {
  border: 0;
  padding: 0.3rem;
  color: var(--green);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
}

.events,
      .people {
  display: grid;
  gap: 0.62rem;
}

.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  padding: 0.84rem;
  text-align: left;
}

.date {
  width: 3rem;
  border-radius: 11px;
  background: var(--soft);
  color: var(--deep);
  text-align: center;
}

.date b {
  display: block;
  padding-top: 0.34rem;
  font-size: 1.1rem;
  line-height: 1;
}

.date span {
  display: block;
  padding: 0.25rem 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
}

.event h3 {
  margin: 0;
  font-size: 0.93rem;
}

.event p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.arrow {
  color: var(--muted);
  font-size: 1.3rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.27rem;
  width: fit-content;
  padding: 0.31rem 0.52rem;
  border-radius: 99px;
  font-size: 0.71rem;
  font-weight: 800;
}

.present-status {
  background: var(--soft);
  color: #075e32;
}

.absent-status {
  background: var(--redsoft);
  color: #992e29;
}

.pending-status {
  background: var(--ambersoft);
  color: var(--amber);
}

.published {
  background: var(--bluesoft);
  color: var(--blue);
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.95rem;
}

.account-card h2 {
  margin: 0.15rem 0;
  font-size: 1rem;
}

.profile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.field {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field span {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field b {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  scrollbar-width: none;
}

.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 800;
}

.tabs .active {
  background: var(--soft);
  color: var(--deep);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.metric {
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
}

.metric b {
  display: block;
  font-size: 1.3rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.7rem;
}

.title h2 {
  margin: 0.2rem 0 0;
  font-size: 1.22rem;
}

.block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.person {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #176a45;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.person-main {
  min-width: 0;
  flex: 1;
}

.person-main b {
  display: block;
  font-size: 0.86rem;
}

.person-main span {
  color: var(--muted);
  font-size: 0.73rem;
}

.toggle {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.toggle.on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.toggle:disabled {
  border-color: #e2d6d4;
  background: #f5f1f0;
  color: #b4aaa8;
  cursor: not-allowed;
}

.actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.feedback {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--soft);
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.locked {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 11px;
  background: var(--ambersoft);
  color: #714a08;
  font-size: 0.84rem;
}

.empty {
  padding: 1.4rem 1rem;
  border: 1px dashed #c8d6cc;
  border-radius: 15px;
  color: var(--muted);
  background: #fbfdfb;
  text-align: center;
  font-size: 0.88rem;
}

.bottom {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-top: 1px solid var(--line);
  background: #fffffff0;
}

.bottom div {
  display: flex;
  width: min(100%, 520px);
}

.nav {
  flex: 1;
  border: 0;
  padding: 0.28rem 0.2rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.nav span {
  display: block;
  font-size: 1.1rem;
}

.nav.active {
  color: var(--deep);
}

.form-card {
  width: min(calc(100% - 2rem), 460px);
  margin: 1.6rem auto;
  padding: 1.25rem;
}

.form-card h2 {
  margin: 0.15rem 0;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.two {
  grid-template-columns: 1fr 1fr;
}

.control {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
}

.control input,
      .control select {
  width: 100%;
  min-height: 45px;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.form-error {
  margin-top: 0.8rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: var(--redsoft);
  color: #992e29;
  font-size: 0.84rem;
  font-weight: 700;
}

.loading {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}

.mini {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mini button {
  min-height: 35px;
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
}

.admin-role {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 32px;
  padding: 0.3rem 0.4rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
}

.admin-page {
  display: grid;
  gap: .7rem;
}

.admin-section {
  padding: .7rem;
}

.admin-section-head {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .45rem;
}

.admin-section-head h3 {
  margin: 0;
  font-size: .9rem;
}

.admin-requests,
.admin-members {
  display: grid;
  gap: .35rem;
}

.admin-request,
.admin-member {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 34px;
  padding: .2rem .25rem;
  border-bottom: 1px solid var(--line);
}

.admin-request:last-child,
.admin-member:last-child {
  border-bottom: 0;
}

.admin-request-type {
  flex: 0 0 5.2rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.admin-page .person-main b {
  font-size: .76rem;
  font-weight: 600;
}

.admin-page .person-main span {
  font-size: .64rem;
}

.admin-page .mini {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}

.admin-page .password-reset-request {
  display: grid;
  align-items: start;
  gap: .25rem;
}

.admin-page .password-reset-request .admin-request-type,
.admin-page .password-reset-request .mini {
  margin-left: 0;
}

.admin-page .password-reset-request .admin-request-type {
  flex: none;
}

.admin-page .password-reset-request .mini {
  flex-direction: column;
  align-items: flex-start;
}

.admin-page .mini button {
  min-height: 29px;
  padding: .25rem .4rem;
  font-size: .66rem;
}

.admin-page .coach-card-menu {
  position: static;
  flex: 0 0 auto;
}

.admin-page .coach-card-menu-trigger {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.admin-member.is-inactive {
  opacity: .72;
}

@media (min-width: 700px) {
  body {
    padding-bottom: 1rem;
  }
  header {
    min-height: 150px;
    padding: .75rem 2rem;
    border-radius: 0 0 26px 26px;
  }
  main {
    padding: 1.5rem 2rem 2.5rem;
  }
  .grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(285px, 0.75fr);
    align-items: start;
  }
  .coach-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  }
  .actions {
    grid-template-columns: 1fr 1fr;
  }
  .bottom {
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .bottom div {
    display: none;
  }
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.coach-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  max-width: none;
  margin: 1rem auto;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.coach-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.3rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.coach-nav button.active {
  background: var(--soft);
  color: var(--deep);
}

.coach-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: .01em;
  white-space: nowrap;
  font-size: .82rem;
}

@media (max-width:720px) {
  .coach-nav {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .12rem;
    margin: .7rem auto;
    padding: .2rem;
  }
  .coach-nav button {
    min-height: 42px;
    padding: .25rem .1rem;
    font-size: .58rem;
    line-height: 1;
    white-space: nowrap;
  }
}

.session-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.session-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.session-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
  background: var(--soft);
}

.session-card div {
  padding: 0.7rem;
}

.session-card h3 {
  margin: 0;
  font-size: 0.88rem;
}

.session-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.coach-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  resize: vertical;
  font: inherit;
}

.absence-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.absence-form select,
      .absence-form input {
  min-height: 42px;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.info-preview {
  white-space: pre-wrap;
}

.danger-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .session-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .coach-nav {
    max-width: none;
  }
  body {
    padding-bottom: 84px;
  }
  .bottom {
    position: fixed;
    padding: 0.45rem 0.7rem;
    border-top: 1px solid var(--line);
    background: #fffffff0;
  }
  .bottom div {
    display: flex;
  }
}

@media (max-width:720px) {
  .lineup-member {
    grid-template-columns: auto auto minmax(0,1fr) auto !important;
    grid-template-rows: auto !important;
  }
  .lineup-member-actions {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .lineup-member .avatar {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  .lineup-member-main {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  .lineup-attendance {
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}
