@import url("/style.css");
body.application {
  font-size: 13px;
  background: #f8f6ef;
}
.application h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 15px;
}
.application h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 5px 0 15px;
}
.application h3 {
  font-size: 21px;
  letter-spacing: -0.3px;
}
.application button,
.application input,
.application select,
.application textarea {
  font: inherit;
}
.application button {
  cursor: pointer;
}
.application button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.app-shell {
  max-width: 1460px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.app-sidebar {
  border-right: 1px solid #dedfd4;
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.app-sidebar .brand {
  font-size: 21px;
  white-space: normal;
}
.app-sidebar .crest {
  flex: none;
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: none;
  text-align: left;
  padding: 12px;
  border-radius: 9px;
  color: #738074;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 12px;
}
.nav-item.active {
  color: #103b2e;
  background: #e9ede3;
  font-weight: 600;
}
.nav-icon {
  font-size: 17px;
  min-width: 24px;
  text-align: center;
}
.app-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 10px;
  color: #69736b;
}
.app-sidebar-foot a {
  text-decoration: none;
}
.app-main {
  min-width: 0;
}
.app-topbar {
  padding: 23px 35px;
  border-bottom: 1px solid #e5e4d9;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #f8f6ef;
}
.app-topbar .brand {
  display: none;
}
.app-topbar select {
  max-width: 300px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #103b2e;
  font-family: Playfair, Georgia, serif;
  font-size: 24px;
  padding: 4px 25px 4px 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.account-button {
  border: 1px solid #dedfd4;
  background: #fffefa;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 11px;
  font-weight: 600;
}
.role-badge,
.tag-label {
  display: inline-block;
  padding: 4px 8px;
  background: #e8ede4;
  color: #48604c;
  font-size: 9px;
  line-height: 1.5;
  border-radius: 5px;
}
.role-badge {
  white-space: nowrap;
}
.app-content {
  max-width: 1000px;
  margin: auto;
  padding: 32px 36px 55px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-header .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-bottom: 9px;
  color: #7c806f;
}
.page-header p {
  color: #69736b;
  font-size: 12px;
  max-width: 560px;
}
.app-button {
  border: 1px solid #103b2e;
  background: #103b2e;
  color: #fffefa;
  border-radius: 9px;
  min-height: 43px;
  padding: 11px 17px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.app-button.secondary {
  background: #fffefa;
  color: #103b2e;
  border-color: #dedfd4;
}
.app-button.danger {
  background: transparent;
  color: #9b443b;
  border-color: #e4cfc6;
}
.app-button.small {
  min-height: 35px;
  padding: 8px 12px;
  font-size: 10px;
}
.app-button.link {
  background: none;
  border-color: transparent;
  color: #103b2e;
  padding-left: 0;
  padding-right: 0;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.panel-card {
  background: #fffefa;
  border: 1px solid #e3e1d6;
  border-radius: 15px;
  padding: 23px;
  margin-bottom: 16px;
  min-width: 0;
}
.panel-card p {
  font-size: 12px;
  color: #69736b;
  line-height: 1.8;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.app-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-grid .panel-card {
  margin-bottom: 0;
}
.hero-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 265px;
  background: #103b2e;
  color: #fffefa;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-app:before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/assets/course_demo.jpg") center/cover;
  opacity: 0.65;
}
.hero-app:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(120deg, #0a30259c, #0a302535);
}
.hero-app h1 {
  font-size: 43px;
  max-width: 520px;
  line-height: 1.15;
}
.hero-app .eyebrow {
  color: #dbcda8;
  font-size: 8px;
}
.hero-app p {
  font-size: 12px;
  color: #e9eddf;
}
.hero-app .app-button {
  background: #fffefa;
  color: #103b2e;
  border-color: #fffefa;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0 17px;
}
.section-title h2 {
  margin: 0;
}
.section-title a {
  font-size: 11px;
  text-decoration: none;
}
.empty-state {
  padding: 35px 20px;
  text-align: center;
  border: 1px dashed #cecfbf;
  border-radius: 12px;
  color: #69736b;
}
.empty-state h3 {
  color: #103b2e;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 12px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e4d9;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
}
.list-row p {
  font-size: 10px;
  color: #69736b;
}
.list-grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.date-block {
  min-width: 48px;
  width: 48px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #eeeee3;
  border-radius: 8px;
  font-family: Playfair, Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
}
.date-block small {
  font:
    8px Inter,
    sans-serif;
  text-transform: uppercase;
  color: #69736b;
}
.status-text {
  font-size: 9px;
  color: #69736b;
}
.notice {
  padding: 13px 15px;
  border: 1px solid #e5d8b8;
  background: #f5efdf;
  border-radius: 9px;
  color: #6c5d37;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #f9ebe4;
  border-color: #e8cfc0;
  color: #91493c;
}
.notice.success {
  background: #eaf0e6;
  border-color: #ccdbc5;
  color: #365f3c;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 11px;
  min-width: 0;
}
.field label {
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #dcded0;
  background: #fffefa;
  border-radius: 8px;
  padding: 12px;
  color: #173c30;
  min-height: 44px;
  width: 100%;
  outline-offset: 2px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field small {
  color: #69736b;
  font-size: 9px;
  line-height: 1.7;
}
.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field.inline input {
  width: 18px;
  height: 18px;
  min-height: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-title {
  font-family: Playfair, Georgia, serif;
  font-size: 25px;
  margin: 0 0 20px;
}
.auth-page {
  max-width: 520px;
  margin: 6vh auto;
  padding: 0 25px;
}
.auth-page > .brand {
  margin-bottom: 45px;
  font-size: 25px;
}
.auth-page h1 {
  font-size: 42px;
}
.auth-page > .panel-card {
  padding: 29px;
}
.auth-page .form-title {
  margin-bottom: 15px;
}
.auth-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dedfd4;
  margin: 24px 0;
}
.auth-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  color: #69736b;
  padding: 10px 0;
  background: none;
  font-size: 12px;
}
.auth-tabs button.active {
  color: #103b2e;
  border-bottom-color: #aa8b50;
}
.fineprint {
  font-size: 10px;
  color: #69736b;
  line-height: 1.85;
  margin-top: 20px;
}
.auth-footer {
  display: flex;
  gap: 20px;
  font-size: 10px;
  margin: 24px 0;
  color: #69736b;
}
.auth-footer a {
  text-decoration: none;
}
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-row button {
  border: 1px solid #dedfd4;
  background: transparent;
  color: #69736b;
  border-radius: 30px;
  padding: 9px 15px;
  font-size: 11px;
}
.filter-row button.active {
  background: #103b2e;
  color: white;
  border-color: #103b2e;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 21px;
}
.slot-button {
  min-height: 70px;
  border: 1px solid #dedfd4;
  background: #fffefa;
  border-radius: 9px;
  padding: 10px;
  color: #103b2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.slot-button strong {
  font-family: Playfair, Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}
.slot-button span {
  font-size: 9px;
  color: #69736b;
}
.slot-button.selected {
  background: #103b2e;
  color: white;
  border-color: #103b2e;
}
.slot-button.selected span {
  color: #e7eddd;
}
.slot-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e4d9;
}
.summary-line.total {
  font-size: 17px;
  font-weight: 600;
}
.member-card {
  padding: 29px;
  background: linear-gradient(135deg, #103b2e, #072b1e);
  color: #fffefa;
  border-radius: 16px;
  max-width: 510px;
  margin: 0 auto 22px;
}
.member-card .brand {
  color: #fffefa;
  font-size: 25px;
}
.member-card .crest {
  background: transparent;
  color: #d8c18f;
}
.member-card h2 {
  font-size: 35px;
  margin-top: 36px;
  color: #fffefa;
}
.member-card p {
  font-size: 11px;
  color: #d2dcc7;
}
.member-card .card-reference {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #bdc7aa40;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
}
.member-card strong {
  font-weight: 500;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  padding: 6px 0;
}
.metric {
  min-width: 100px;
  flex: 1;
}
.metric strong {
  display: block;
  font-family: Playfair, Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
}
.metric small {
  display: block;
  color: #69736b;
  font-size: 9px;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #e2e3d5;
  border-radius: 9px;
  margin-bottom: 19px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
  background: #fffefa;
}
th {
  text-align: left;
  font-size: 9px;
  background: #eeeee4;
  font-weight: 500;
  white-space: nowrap;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #e5e4da;
  vertical-align: top;
}
td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
td .button-row {
  gap: 7px;
}
td .app-button {
  white-space: nowrap;
}
.score-input {
  width: 54px !important;
  min-height: 35px !important;
  padding: 7px !important;
  border: 1px solid #dedfd4;
  border-radius: 5px;
  background: #fffefa;
  color: #103b2e;
}
.admin-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-menu button {
  background: #fffefa;
  border: 1px solid #dedfd4;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 10px;
  color: #69736b;
}
.admin-menu button.active {
  border-color: #103b2e;
  color: #103b2e;
  background: #e8ece2;
}
.text-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialog-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: #0b302798;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.dialog {
  background: #f8f6ef;
  border-radius: 17px;
  padding: 27px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 70px #0b302733;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 28px;
}
.close-dialog {
  border: 1px solid #dedfd4;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  background: #fffefa;
  color: #103b2e;
  font-size: 19px;
}
.loading {
  padding: 50px 25px;
  text-align: center;
  color: #69736b;
}
.loading:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #dedfd4;
  border-top-color: #aa8b50;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mobile-bottom {
  display: none;
}
.app-footer {
  padding: 18px 35px;
  color: #69736b;
  font-size: 9px;
  display: flex;
  gap: 20px;
  border-top: 1px solid #e5e4d9;
}
.app-footer a {
  text-decoration: none;
}
.form-result:empty {
  display: none;
}
.json-mono {
  font-family: ui-monospace, monospace;
  font-size: 11px !important;
}
.actions-cell {
  min-width: 135px;
}
.full-button {
  width: 100%;
}
.account-name {
  font-size: 11px;
  color: #69736b;
}
.account-name strong {
  font-weight: 500;
  color: #103b2e;
}
.application .muted {
  color: #69736b;
}
.application .spaced {
  margin-top: 22px;
}
.application .small-label {
  font-size: 10px;
  color: #69736b;
}
.split-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 25px;
}
.danger-area {
  border-top: 1px solid #dedfd4;
  margin-top: 24px;
  padding-top: 20px;
}
.club-card-select {
  width: 100%;
  text-align: left;
  border: 1px solid #dedfd4;
  border-radius: 13px;
  padding: 20px;
  background: #fffefa;
  color: #103b2e;
}
.club-card-select.selected {
  border-color: #aa8b50;
  box-shadow: inset 0 0 0 1px #aa8b50;
}
.club-card-select h3 {
  font-size: 24px;
  margin-bottom: 7px;
}
.club-card-select p {
  font-size: 11px;
  color: #69736b;
}
.app-illustrative {
  font-size: 7px;
  letter-spacing: 1px;
  color: #ddd9c7;
}
.role-link {
  font-size: 10px;
  text-decoration: none;
  padding: 8px 11px;
  border: 1px solid #dedfd4;
  border-radius: 6px;
}
.alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aa8b50;
  display: inline-block;
  margin-right: 6px;
}
.permission-note {
  font-size: 11px;
  color: #69736b;
  padding: 12px 0;
}
.end-space {
  margin-bottom: 20px;
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .app-sidebar {
    padding: 28px 15px;
  }
  .app-topbar {
    padding: 21px 25px;
  }
  .app-content {
    padding: 29px 25px 45px;
  }
  .app-sidebar .brand {
    font-size: 19px;
  }
  .app-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-grid.three > *:last-child {
    grid-column: 1/-1;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .app-topbar select {
    font-size: 22px;
    max-width: 240px;
  }
  .account-name {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    display: none;
  }
  .app-topbar {
    padding: 17px 20px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .app-topbar .brand {
    display: inline-flex;
    font-size: 17px;
    flex: 1;
  }
  .app-topbar > .club-select {
    order: 3;
    max-width: 100%;
    width: 100%;
    font-size: 23px;
    margin-top: 8px;
    border-top: 1px solid #dedfd4;
    padding-top: 11px;
  }
  .topbar-right {
    gap: 8px;
  }
  .role-badge {
    font-size: 8px;
  }
  .account-button {
    width: 31px;
    height: 31px;
    font-size: 9px;
  }
  .role-link {
    font-size: 8px;
    padding: 7px 9px;
  }
  .app-content {
    padding: 26px 20px 105px;
  }
  .application h1 {
    font-size: 33px;
    letter-spacing: -0.8px;
  }
  .application h2 {
    font-size: 26px;
  }
  .page-header {
    flex-direction: column;
    gap: 12px;
  }
  .page-header h1 {
    margin-bottom: 12px;
  }
  .page-header p {
    font-size: 11px;
  }
  .app-grid,
  .app-grid.three {
    grid-template-columns: 1fr;
  }
  .app-grid.three > *:last-child {
    grid-column: auto;
  }
  .panel-card {
    padding: 19px;
    border-radius: 13px;
  }
  .hero-app {
    min-height: 265px;
    padding: 26px 24px;
  }
  .hero-app h1 {
    font-size: 37px;
    margin: 25px 0;
  }
  .hero-app p {
    font-size: 11px;
  }
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mobile-bottom {
    display: flex;
    position: fixed;
    z-index: 40;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffefaf5;
    border-top: 1px solid #dedfd4;
    padding: 7px 5px max(10px, env(safe-area-inset-bottom));
    backdrop-filter: blur(15px);
  }
  .mobile-bottom button {
    flex: 1;
    border: 0;
    background: none;
    color: #8b9386;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-height: 48px;
    font-size: 8px;
    padding: 4px 1px;
    min-width: 0;
  }
  .mobile-bottom button .nav-icon {
    font-size: 20px;
    line-height: 1;
  }
  .mobile-bottom button.active {
    color: #103b2e;
    font-weight: 600;
  }
  .app-footer {
    padding: 18px 20px 95px;
    font-size: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .list-row {
    gap: 11px;
    flex-wrap: wrap;
  }
  .list-row > .button-row {
    margin-left: 59px;
  }
  .app-content > .admin-menu {
    margin-bottom: 18px;
  }
  .admin-menu button {
    font-size: 9px;
    padding: 9px 11px;
  }
  .dialog-backdrop {
    padding: 12px;
  }
  .dialog {
    padding: 22px;
    max-height: 94vh;
  }
  .dialog-head h2 {
    font-size: 25px;
  }
  .auth-page {
    margin-top: 4vh;
    padding: 0 20px;
  }
  .auth-page > .brand {
    margin-bottom: 30px;
    font-size: 23px;
  }
  .auth-page h1 {
    font-size: 37px;
  }
  .auth-page > .panel-card {
    padding: 23px;
  }
  .member-card {
    padding: 24px;
  }
  .member-card h2 {
    font-size: 31px;
  }
  .member-card .card-reference {
    font-size: 9px;
    flex-direction: column;
    gap: 8px;
  }
  .metrics {
    gap: 15px;
  }
  .metric {
    min-width: 95px;
  }
  .metric strong {
    font-size: 29px;
  }
  .section-title {
    margin-top: 25px;
  }
  .role-nav-mobile {
    display: flex;
    gap: 8px;
    overflow: auto;
    margin-bottom: 20px;
  }
  .table-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  td,
  th {
    padding: 10px;
  }
  .hero-app:before {
    background-position: 40%;
  }
  .page-header .button-row {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading:before {
    animation: none;
  }
}
dialog.dialog {
  border: 0;
  color: #173c30;
}
dialog.dialog::backdrop {
  background: #0b302798;
}
.application .app-topbar select option {
  font:
    13px Inter,
    Arial,
    sans-serif;
}
.application .app-button.close-dialog {
  padding: 0;
}
.application .field input[type="color"] {
  padding: 5px;
  min-height: 44px;
}
.application .app-footer .app-button {
  font-size: 9px;
  min-height: 0;
  padding: 0;
}
.application .auth-page .notice {
  margin-top: 15px;
}
