@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(assets/barlow-condensed.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #172e3b;
  --muted: #576b78;
  --line: #dce4e7;
  --nav: #142d3c;
  --lime: #c6f57b;
  --bg: #f4f7f8;
  --panel: #fff;
  --radius: 15px;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
input,
select,
textarea {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #347fc2;
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.97);
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
button,
td,
th,
p,
h2,
h3,
small,
strong,
span {
  overflow-wrap: anywhere;
}
button svg {
  pointer-events: none;
}
.layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #e8eff3;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: auto;
  scrollbar-width: thin;
}
.brand {
  min-height: 102px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #ffffff1a;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #203d49;
  border-radius: 12px;
}
.brand strong,
.receipt-brand {
  font-family: var(--heading);
  font-size: 2.17rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: white;
  font-style: italic;
}
.brand strong span,
.receipt-brand span {
  color: var(--lime);
}
.brand small,
.club small,
.profile small {
  display: block;
  color: #a8bec8;
  font-size: 0.77rem;
  margin-top: 3px;
}
.sidebar nav {
  padding: 5px 0 12px;
}
.navgroup {
  padding-top: 18px;
}
.navgroup p {
  margin: 0 0 8px;
  padding: 0 13px;
  color: #a3b7c1;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.navitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 2px 0;
  color: #d4dfe4;
  text-align: left;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.15;
}
.navitem svg {
  color: #a7bcc7;
}
.navitem:hover {
  background: #203d4d;
}
.navitem.active {
  background: #c9f383;
  color: #1b332f;
  font-weight: 700;
}
.navitem.active svg {
  color: #223f30;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff1a;
  padding-top: 9px;
}
.sidebar-foot > .navitem {
  color: #bacbd2;
  font-size: 0.82rem;
}
.club {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 10px 20px;
}
.club strong {
  font-size: 0.83rem;
}
.clubmark {
  width: 32px;
  height: 34px;
  background: #254351;
  border-radius: 8px;
  color: #c7ebac;
  display: grid;
  place-items: center;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 65px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 54px);
  gap: 10px;
}
.crumb,
.toptools,
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb {
  font-size: 0.82rem;
  color: #637681;
}
.crumb b {
  color: #243b46;
}
.crumb .iconbtn {
  display: none;
}
.toptools {
  gap: 6px;
}
.iconbtn {
  height: 36px;
  width: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
}
.iconbtn:hover,
.profile:hover {
  background: #edf3f4;
}
.topdivider {
  height: 22px;
  border-right: 1px solid var(--line);
  margin: 0 6px;
}
.profile {
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 4px 6px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2ecda;
  color: #34513a;
  font-weight: 700;
  font-size: 0.77rem;
}
main {
  width: 100%;
  max-width: 1710px;
  margin: 0 auto;
  padding: 29px clamp(20px, 3vw, 54px) 40px;
  flex: 1;
  min-width: 0;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 21px;
}
.pagehead h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 3.2vw, 3.25rem);
  letter-spacing: -0.018em;
  font-weight: 700;
  line-height: 1;
}
.pagehead p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-top: 7px;
}
.head-actions,
.buttonrow,
.form-foot,
.modal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.season {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 700;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  white-space: nowrap;
}
.season svg {
  color: #617681;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #173340 url(assets/atletica.jpg) 70% 59% / cover no-repeat;
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #102a37 1%,
    rgba(17, 44, 55, 0.98) 24%,
    rgba(16, 43, 56, 0.85) 41%,
    rgba(17, 37, 44, 0.3) 68%,
    rgba(16, 35, 42, 0.06)
  );
  z-index: -1;
}
.hero-inner {
  padding: 22px 30px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7f1bc;
  font-weight: 700;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
}
.hero-tag i,
footer i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}
.hero h2 {
  font: 700 clamp(2.15rem, 3.1vw, 3rem)/1.07 var(--heading);
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
}
.hero p {
  color: #e0e9e9;
  font-size: 0.88rem;
}
.hero .btn {
  margin-top: 17px;
}
.btn,
.mini,
.textbtn,
.namebtn,
.panel-link,
.chip,
.tab {
  border-radius: 7px;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #cdd9de;
  background: #fff;
  font-size: 0.865rem;
  padding: 8px 14px;
  line-height: 1.25;
}
.btn.primary,
.mini.solid {
  background: #1b3c4b;
  border-color: #1b3c4b;
  color: #fff;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #193328;
  padding: 8px 13px;
}
.btn.danger {
  background: #fff0ed;
  border-color: #e8bfba;
  color: #9a332a;
}
.mini {
  padding: 6px 9px;
  border: 1px solid #d5dfe2;
  background: #f8fafb;
  font-size: 0.78rem;
  margin: 2px;
}
.textbtn,
.namebtn {
  padding: 3px 4px;
  color: #245a72;
  text-align: left;
  font-size: 0.86rem;
}
.namebtn {
  padding-left: 0;
}
.textbtn:hover,
.namebtn:hover {
  text-decoration: underline;
}
.panel-link {
  background: #f4f7f8;
  border: 1px solid #dde5e8;
  min-height: 35px;
  font-size: 0.82rem;
  color: #354e5b;
  width: 100%;
  margin-top: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.stat,
.panel,
.course-card,
.summary-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 5px #1c3e4e04;
}
.stat {
  text-align: left;
  padding: 15px 16px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat:hover,
.course-card:hover {
  border-color: #a9bdc6;
}
.stat-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #455e6a;
}
.icon-tile,
.sport-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.icon-tile {
  width: 33px;
  height: 33px;
}
.sport-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.blue {
  background: #e4edf9;
  color: #3768a7;
}
.teal,
.mint {
  background: #e0f2e9;
  color: #297051;
}
.green {
  background: #e9f2dc;
  color: #537a31;
}
.orange,
.amber {
  background: #fff0dc;
  color: #a35b1a;
}
.pink {
  background: #f8e9f0;
  color: #a35b7e;
}
.purple {
  background: #eee9f9;
  color: #7353a5;
}
.red,
.rose {
  background: #fce8e7;
  color: #ad4f48;
}
.neutral {
  background: #edf2f4;
  color: #516674;
}
.stat > strong {
  font-family: var(--heading);
  font-size: 2.5rem;
  line-height: 1.12;
  margin: 9px 0 3px;
  letter-spacing: -0.015em;
}
.stat > small {
  font-size: 0.76rem;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  padding: 19px 21px;
  min-width: 0;
  margin-bottom: 16px;
}
.dashboard-grid > .panel {
  margin: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.panelhead h2,
.course-card h2,
.message h3 {
  font-size: 1.14rem;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.panelhead p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}
.panelhead > .badge {
  white-space: nowrap;
}
.lesson-row,
.task,
.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid #e6ecef;
}
.lesson-row:hover,
.task:hover,
.choice:hover {
  background: #f7fafb;
}
.timecol {
  width: 44px;
  flex-shrink: 0;
}
.timecol b {
  display: block;
  font-size: 0.88rem;
}
.timecol small,
.sport-cell small,
.task small,
.choice small,
.course-card small,
.club small,
.message small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
}
.sport-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-align: left;
}
.sport-cell strong,
.task strong,
.choice strong {
  font-size: 0.9rem;
  display: block;
}
.lesson-seats {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #506874;
  white-space: nowrap;
}
.lesson-row > svg {
  color: #7b909a;
}
.task {
  padding: 16px 0;
  gap: 11px;
}
.task .icon-tile {
  width: 36px;
  height: 36px;
}
.stretch {
  flex: 1;
  min-width: 0;
}
.task > b {
  border-radius: 6px;
  min-width: 24px;
  padding: 3px;
  text-align: center;
  background: #eff3f5;
  font-size: 0.78rem;
}
.club small {
  color: #adc2cb;
}
.toolbar,
.chips,
.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.toolbar {
  margin: 0 0 17px;
  justify-content: space-between;
}
.date-pick {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.date-pick input {
  width: auto;
}
.tabs {
  gap: 3px;
  background: #e6edef;
  border-radius: 9px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 17px;
}
.toolbar .tabs {
  margin: 0;
}
.tab,
.chip {
  font-size: 0.84rem;
  padding: 8px 13px;
}
.tab.selected,
.chip.selected {
  background: #fff;
  color: #1f4250;
  box-shadow: 0 1px 5px #213c4c1c;
}
.chips {
  margin: 0 0 15px;
}
.chip {
  padding: 7px 12px;
  background: #edf2f3;
  border: 1px solid #dfe7ea;
}
.chip.selected {
  background: #dceacc;
  border-color: #bfd2b2;
  color: #335536;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.course-card {
  text-align: left;
  padding: 20px;
  display: block;
}
.course-card small {
  margin: 14px 0 6px;
}
.course-card h2 {
  margin-bottom: 8px;
}
.course-card p,
.message p {
  font-size: 0.9rem;
  line-height: 1.5;
}
.course-card > span:last-child {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.81rem;
  color: var(--muted);
}
.course-card > span:last-child b {
  color: #a5b6be;
}
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.summary-strip .data-line {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  text-align: left;
}
.summary-strip .data-line strong {
  text-align: left;
  font-size: 1.4rem;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.865rem;
}
th,
td {
  text-align: left;
  padding: 11px 8px;
  border-bottom: 1px solid #e7edef;
}
th {
  color: var(--muted);
  background: #f5f8f9;
  font-size: 0.75rem;
  font-weight: 700;
}
td {
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td .mini {
  white-space: normal;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 80px;
  text-align: center;
  color: #637782;
  font-size: 0.9rem;
  padding: 14px;
}
.data-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e7edef;
  font-size: 0.9rem;
}
.data-line span {
  color: var(--muted);
}
.data-line strong {
  text-align: right;
}
.help,
.footnote {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 9px 0;
}
.footnote {
  font-size: 0.77rem;
  margin-top: 14px;
}
.buttonrow {
  margin: 12px 0 4px;
}
.message {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.message h3 {
  font-size: 1rem;
  margin: 5px 0;
}
.chart button {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 9px 0;
  font-size: 0.85rem;
}
.chart i {
  height: 11px;
  border-radius: 10px;
  background: #e8eef0;
  overflow: hidden;
}
.chart em {
  display: block;
  height: 100%;
  background: #6c9c82;
  border-radius: 10px;
}
.chart b {
  text-align: right;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd6db;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 1rem;
}
textarea {
  resize: vertical;
}
.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.field > span {
  font-size: 0.81rem;
  font-weight: 700;
  color: #48616b;
}
.toolbar .field {
  min-width: min(100%, 165px);
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid .family-fields {
  display: grid;
  gap: 13px;
}
.form-grid [hidden] {
  display: none;
}
.form-grid .detail-block {
  margin: 0;
}
.searchform {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 5px 0 10px;
  background: white;
  border: 1px solid var(--line);
  max-width: 100%;
}
.searchform input {
  border: 0;
  padding: 8px 0;
}
.searchform button {
  font-size: 0.8rem;
  background: #edf3f4;
  border-radius: 5px;
  padding: 6px 9px;
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 8px 4px 0;
  font-size: 0.82rem;
}
.tick input {
  width: auto;
}
.form-error {
  color: #a62d2b;
  font-size: 0.9rem;
}
.form-error:not(:empty) {
  border-radius: 6px;
  padding: 10px;
  background: #fff0ef;
  margin-top: 10px;
}
.form-foot {
  margin-top: 19px;
  justify-content: flex-end;
}
dialog {
  padding: 0;
  width: min(630px, calc(100vw - 32px));
  max-height: 88dvh;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 90px #08243230;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #10232fc2;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.modal-head,
.modal-foot {
  background: #fff;
  display: flex;
  align-items: center;
  padding: 14px 21px;
  gap: 12px;
  z-index: 1;
}
.modal-head {
  justify-content: space-between;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-family: var(--heading);
  font-size: 1.85rem;
}
.modal-body {
  padding: 19px 21px;
}
.modal-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.choice:first-child {
  border-top: 0;
}
.detail-block {
  margin: 19px 0 10px;
}
.detail-block h3 {
  font-size: 0.97rem;
  margin-bottom: 7px;
}
.detail-block p {
  white-space: pre-line;
}
.receipt-brand {
  color: var(--ink);
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.receipt-brand span {
  color: #73a543;
}
.document {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.document .buttonrow {
  margin: 2px 0;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #183747;
  color: white;
  padding: 11px 18px;
  border-radius: 9px;
  box-shadow: 0 4px 14px #0002;
  pointer-events: none;
  font-size: 0.87rem;
  opacity: 0;
  max-width: 93vw;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
footer {
  border-top: 1px solid var(--line);
  padding: 14px clamp(20px, 3vw, 54px);
  color: var(--muted);
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
footer i {
  background: #78a857;
}
.skip {
  position: fixed;
  left: 10px;
  top: -60px;
  z-index: 10;
  background: #fff;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
#print-area,
.backdrop {
  display: none;
}
@media (min-width: 1450px) {
  .hero {
    min-height: 225px;
  }
  .stat {
    padding: 19px 20px;
  }
  .lesson-row {
    padding: 15px 0;
  }
  .layout {
    grid-template-columns: 252px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }
  .sidebar {
    padding: 0 11px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 12px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 13px;
  }
  .panel {
    padding: 17px;
  }
  .task small {
    font-size: 0.73rem;
  }
}
@media (max-width: 960px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 245px;
    transform: translateX(-104%);
    visibility: hidden;
    transition:
      transform 0.18s ease,
      visibility 0.18s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .menu-open .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #112b37a8;
    z-index: 4;
  }
  .crumb .iconbtn {
    display: grid;
  }
  .topbar {
    height: 59px;
  }
  .workspace {
    min-height: 100dvh;
  }
  .brand {
    min-height: 83px;
  }
  .navgroup {
    padding-top: 12px;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
  .navitem {
    padding: 9px 12px;
  }
}
@media (max-width: 720px) {
  main {
    padding: 22px 16px 32px;
  }
  .topbar {
    padding: 0 12px;
  }
  .pagehead h1 {
    font-size: 2.45rem;
  }
  .pagehead {
    gap: 8px;
    margin-bottom: 16px;
  }
  .pagehead p {
    font-size: 0.85rem;
  }
  .season {
    font-size: 0.72rem;
    padding: 7px;
  }
  .hero {
    min-height: 178px;
    background-position: 65% 58%;
  }
  .hero-inner {
    padding: 19px 21px;
  }
  .hero:before {
    background: linear-gradient(95deg, #112c39 0%, #122f3ceb 21%, #112b38b8 51%, #172b3540 88%);
  }
  .hero h2 {
    font-size: 2.35rem;
  }
  .hero p {
    font-size: 0.82rem;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 16px;
  }
  .stat {
    padding: 12px 14px;
  }
  .stat strong {
    font-size: 2.1rem;
    margin-top: 5px;
  }
  .stat-top {
    gap: 8px;
    font-size: 0.81rem;
  }
  .stat-top .icon-tile {
    width: 29px;
    height: 29px;
  }
  .stat small {
    font-size: 0.73rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    justify-content: flex-start;
  }
  .panel {
    padding: 16px;
  }
  .dashboard-grid .panelhead {
    margin-bottom: 9px;
  }
  .task {
    padding: 13px 0;
  }
  .chart button {
    grid-template-columns: 95px 1fr 36px;
  }
  .summary-strip {
    gap: 12px;
  }
  .summary-strip .data-line strong {
    font-size: 1.18rem;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab,
  .chip {
    padding: 7px 9px;
  }
}
@media (max-width: 550px) {
  .crumb {
    gap: 4px;
  }
  .crumb > span,
  .crumb > svg {
    display: none;
  }
  .toptools {
    gap: 1px;
  }
  .profile {
    gap: 6px;
  }
  .topdivider {
    margin: 0 4px;
  }
  .pagehead {
    flex-wrap: wrap;
  }
  .head-actions {
    max-width: 100%;
  }
  .pagehead .head-actions:empty {
    display: none;
  }
  .pagehead:has(.season) {
    flex-wrap: nowrap;
  }
  .season {
    white-space: normal;
    line-height: 1.2;
  }
  .hero h2 {
    font-size: 2.12rem;
  }
  .hero-inner {
    padding: 18px;
  }
  .hero-tag {
    font-size: 0.63rem;
  }
  .lesson-row {
    gap: 8px;
  }
  .sport-cell {
    gap: 8px;
  }
  .sport-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .sport-cell strong {
    font-size: 0.86rem;
  }
  .sport-cell small {
    font-size: 0.7rem;
  }
  .timecol {
    width: 37px;
  }
  .lesson-seats {
    font-size: 0.72rem;
  }
  .lesson-row > svg {
    width: 12px;
  }
  .course-grid {
    gap: 9px;
  }
  .course-card {
    padding: 14px;
  }
  .course-card h2 {
    font-size: 1rem;
  }
  .course-card p {
    font-size: 0.8rem;
  }
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  .table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-align: right;
    padding: 5px 1px;
    border: 0;
    flex-wrap: wrap;
  }
  .table-wrap td:before {
    content: attr(data-label);
    font-size: 0.75rem;
    color: #60737d;
    text-align: left;
    flex: 1;
  }
  .table-wrap .namebtn {
    max-width: 74%;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding: 13px 15px;
  }
  .modal-head h2 {
    font-size: 1.6rem;
  }
  .toolbar .field {
    flex: 1 1 130px;
  }
  .date-pick .iconbtn {
    width: 30px;
  }
  .panelhead h2 {
    font-size: 1.05rem;
  }
  .badge {
    font-size: 0.7rem;
  }
  .modal-body .sport-cell {
    margin-bottom: 8px;
  }
  .data-line {
    font-size: 0.84rem;
  }
  .summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }
  .summary-strip .data-line {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white !important;
  }
  .skip,
  #app,
  #toast,
  dialog {
    display: none !important;
  }
  dialog::backdrop {
    display: none !important;
  }
  #print-area {
    display: block;
    padding: 18mm;
    color: #111;
    background: #fff;
  }
  #print-area h1 {
    margin-bottom: 20px;
  }
  #print-area .receipt-brand {
    color: #172e3b;
  }
  .detail-block {
    break-inside: avoid;
  }
  @page {
    margin: 10mm;
  }
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #22414e;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.timecol,
.timecol *,
.profile,
.profile > span,
.lesson-seats {
  white-space: nowrap;
  overflow-wrap: normal;
}
.timecol {
  flex: 0 0 45px;
}
.toptools,
.profile {
  flex-shrink: 0;
}
.crumb {
  min-width: 0;
}
.crumb b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero {
  background-size: 70% auto;
  background-position: right 49%;
}
.hero:before {
  background: linear-gradient(95deg, #112c39 0%, #112c39 30%, #112c39ec 40%, #142c36a6 56%, #14272e22 79%);
}
.timecol b,
.timecol small {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .hero {
    background-size: cover;
    background-position: 65% 55%;
  }
  .hero:before {
    background: linear-gradient(95deg, #112c39 0%, #122f3cef 18%, #112b38aa 54%, #172b3540 88%);
  }
  .timecol {
    flex-basis: 42px;
  }
}
@media (max-width: 430px) {
  .topbar {
    padding: 0 8px;
  }
  .profile {
    font-size: 0.79rem;
    gap: 4px;
    padding: 3px;
  }
  .toptools .iconbtn {
    width: 32px;
  }
  .crumb {
    font-size: 0.77rem;
  }
  .timecol {
    flex-basis: 41px;
  }
  .timecol b {
    font-size: 0.84rem;
  }
}
@media print {
  body:has(dialog[open]) {
    overflow: visible;
  }
}
.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.week-day {
  min-width: 0;
  padding: 10px 7px 14px;
  border-right: 1px solid var(--line);
}
.week-day:last-child {
  border: 0;
}
.week-day h2 {
  display: grid;
  gap: 4px;
  padding: 3px 4px 10px;
  font-size: 1.04rem;
}
.week-day h2 small {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 400;
  text-transform: capitalize;
}
.week-day.current h2 strong {
  color: #386644;
}
.week-lesson {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 6px;
  border-radius: 7px;
  padding: 9px 7px;
  text-align: left;
}
.week-lesson > span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
}
.week-lesson b {
  font-size: 0.83rem;
  color: #1c3945;
}
.week-lesson small,
.week-empty {
  font-size: 0.72rem;
}
.week-empty {
  color: var(--muted);
  padding: 4px;
}
@media (max-width: 720px) {
  .week-board {
    display: block;
  }
  .week-day {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .week-day h2 {
    display: flex;
    align-items: baseline;
    gap: 5px;
  }
  .week-lesson {
    grid-template-columns: 52px 1fr auto;
    align-items: center;
  }
  .week-day.current {
    background: #f6faf1;
  }
}
@media (max-width: 960px) {
  body:has(.menu-open) {
    overflow: hidden;
  }
}
