/* Studio OS — small custom layer over Pico.css */
@font-face {
  font-family: "Josefin Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --pico-font-family: "Josefin Sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Light theme: a pale page. White surfaces, green links. */
:root:not([data-theme="dark"]) {
  --pico-background-color: #f7faf8;
  --pico-color: #1c3a2e;
  --pico-text-selection-color: rgba(47, 125, 74, 0.22);
  --pico-muted-color: #5a7366;
  --pico-muted-border-color: #d5e6db;
  --pico-primary: #2f7d4a;
  --pico-primary-background: #2f7d4a;
  --pico-primary-border: #2f7d4a;
  --pico-primary-underline: rgba(47, 125, 74, 0.45);
  --pico-primary-hover: #24633a;
  --pico-primary-hover-background: #24633a;
  --pico-primary-hover-border: #24633a;
  --pico-primary-hover-underline: #24633a;
  --pico-primary-focus: rgba(47, 125, 74, 0.2);
  --pico-primary-inverse: #fff;
  --pico-secondary: #5c8a72;
  --pico-secondary-background: #4f7a64;
  --pico-secondary-border: #4f7a64;
  --pico-secondary-underline: rgba(92, 138, 114, 0.5);
  --pico-secondary-hover: #3f6652;
  --pico-secondary-hover-background: #3f6652;
  --pico-secondary-hover-border: #3f6652;
  --pico-secondary-hover-underline: #3f6652;
  --pico-secondary-focus: rgba(92, 138, 114, 0.22);
  --pico-secondary-inverse: #fff;
  --pico-contrast: #143028;
  --pico-contrast-background: #143028;
  --pico-contrast-border: #143028;
  --pico-contrast-underline: rgba(20, 48, 40, 0.5);
  --pico-contrast-hover: #0d221b;
  --pico-contrast-hover-background: #0d221b;
  --pico-contrast-hover-border: #0d221b;
  --pico-contrast-hover-underline: #0d221b;
  --pico-contrast-focus: rgba(20, 48, 40, 0.22);
  --pico-contrast-inverse: #fff;
  --pico-box-shadow:
    0 0.05rem 0.2rem rgba(47, 125, 74, 0.06),
    0 0.35rem 1.1rem rgba(47, 125, 74, 0.12);
  --pico-h1-color: #143028;
  --pico-h2-color: #184032;
  --pico-h3-color: #1c3a2e;
  --pico-h4-color: #234838;
  --pico-h5-color: #2a5642;
  --pico-h6-color: #32664e;
  --pico-mark-background-color: #d8f0e2;
  --pico-mark-color: #143028;
  --pico-blockquote-border-color: #b7d4c4;
  --pico-button-box-shadow: 0 0.15rem 0.5rem rgba(47, 125, 74, 0.16);
  --pico-button-hover-box-shadow: 0 0.3rem 0.85rem rgba(47, 125, 74, 0.22);
  --pico-table-border-color: #d5e6db;
  --pico-table-row-stripped-background-color: rgba(47, 125, 74, 0.05);
  --pico-code-background-color: #eef6f1;
  --pico-code-color: #2a5642;
  --pico-form-element-background-color: #fff;
  --pico-form-element-selected-background-color: #e3f3ea;
  --pico-form-element-border-color: #c5ddcf;
  --pico-form-element-color: #143028;
  --pico-form-element-placeholder-color: #7a9486;
  --pico-form-element-active-background-color: #fff;
  --pico-form-element-active-border-color: #2f7d4a;
  --pico-form-element-focus-color: rgba(47, 125, 74, 0.22);
  --pico-switch-background-color: #c5ddcf;
  --pico-switch-color: #fff;
  --pico-range-border-color: #d5e6db;
  --pico-range-active-border-color: #b7d4c4;
  --pico-range-thumb-border-color: #fff;
  --pico-range-thumb-color: #5c8a72;
  --pico-range-thumb-active-color: #2f7d4a;
  --pico-card-background-color: #fff;
  --pico-card-border-color: #e3f0e8;
  --pico-card-sectioning-background-color: #f3faf6;
  --pico-dropdown-background-color: #fff;
  --pico-dropdown-border-color: #d5e6db;
  --pico-dropdown-hover-background-color: #eef7f2;
  --pico-modal-overlay-background-color: rgba(20, 48, 40, 0.45);
  --pico-progress-background-color: #d5e6db;
  --pico-progress-color: #2f7d4a;
  --pico-accordion-border-color: #d5e6db;
  --pico-accordion-active-summary-color: #2f7d4a;
  --pico-accordion-close-summary-color: #1c3a2e;
  --pico-accordion-open-summary-color: #5a7366;
}

html:not([data-theme="dark"]) {
  background-color: #f7faf8;
  background-image: url("/img/forest-mist-light.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html:not([data-theme="dark"]) body {
  background: transparent;
  min-height: 100vh;
}
html:not([data-theme="dark"]) :is(table, td, th) {
  background-color: transparent;
}
html:not([data-theme="dark"]) nav.container {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem;
  box-shadow: 0 0.4rem 1.25rem rgba(47, 125, 74, 0.12);
  margin-top: 0.85rem;
  padding-inline: 1rem;
}
html:not([data-theme="dark"]) .schedule-toolbar,
html:not([data-theme="dark"]) .schedule-wrap,
html:not([data-theme="dark"]) .passes-card,
html:not([data-theme="dark"]) .table-wrap,
html:not([data-theme="dark"]) .account-card,
html:not([data-theme="dark"]) .account-booking,
html:not([data-theme="dark"]) .client-card,
html:not([data-theme="dark"]) .product-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.6rem rgba(47, 125, 74, 0.12), 0 0.05rem 0.2rem rgba(47, 125, 74, 0.06);
}
html:not([data-theme="dark"]) .schedule-wrap,
html:not([data-theme="dark"]) .table-wrap {
  padding: 0.35rem 0.5rem 0.75rem;
}
html:not([data-theme="dark"]) .passes-card .table-wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0.35rem 0.45rem;
}
html:not([data-theme="dark"]) .schedule-grid .slot {
  background: #fff;
  border-radius: 0.35rem;
  box-shadow: 0 0.2rem 0.65rem rgba(47, 125, 74, 0.14);
  padding: 0.4rem 0.5rem 0.45rem 0.55rem;
}
html:not([data-theme="dark"]) .schedule-grid .day-selected {
  background: color-mix(in srgb, var(--pico-primary) 14%, #fff);
}
html:not([data-theme="dark"]) .schedule-grid tbody td:hover {
  background: color-mix(in srgb, var(--pico-primary) 18%, #fff);
}
html:not([data-theme="dark"]) .schedule-grid tbody td.day-selected:hover {
  background: color-mix(in srgb, var(--pico-primary) 28%, #fff);
}
html:not([data-theme="dark"]) .schedule-grid .slot:hover {
  background: #e3f3ea;
  box-shadow: 0 0.25rem 0.85rem rgba(47, 125, 74, 0.22);
}
html:not([data-theme="dark"]) .week-step {
  background: #fff;
  color: #2f7d4a;
  border-color: #c5ddcf;
}
html:not([data-theme="dark"]) .week-step:hover {
  background: #e3f3ea;
  border-color: #2f7d4a;
}

/* Dark theme: night jungle. Soft shadows, no glow. */
[data-theme="dark"] {
  --pico-background-color: #141c18;
  --pico-color: #e4eee6;
  --pico-text-selection-color: rgba(143, 175, 150, 0.32);
  --pico-muted-color: #a3b5a8;
  --pico-muted-border-color: #3a4a40;
  --pico-primary: #8faf96;
  --pico-primary-background: #3d6248;
  --pico-primary-border: #3d6248;
  --pico-primary-underline: rgba(143, 175, 150, 0.45);
  --pico-primary-hover: #a8c4ae;
  --pico-primary-hover-background: #4a7356;
  --pico-primary-hover-border: #4a7356;
  --pico-primary-hover-underline: #a8c4ae;
  --pico-primary-focus: rgba(143, 175, 150, 0.22);
  --pico-primary-inverse: #f4f7f2;
  --pico-secondary: #b4c4b6;
  --pico-secondary-background: #2c3c32;
  --pico-secondary-border: #45584c;
  --pico-secondary-underline: rgba(180, 196, 182, 0.45);
  --pico-secondary-hover: #d0dcd2;
  --pico-secondary-hover-background: #384a3e;
  --pico-secondary-hover-border: #567060;
  --pico-secondary-hover-underline: #d0dcd2;
  --pico-secondary-focus: rgba(180, 196, 182, 0.24);
  --pico-secondary-inverse: #f4f7f2;
  --pico-contrast: #f3f7f2;
  --pico-contrast-background: #243028;
  --pico-contrast-border: #45584c;
  --pico-contrast-underline: rgba(243, 247, 242, 0.4);
  --pico-contrast-hover: #fff;
  --pico-contrast-hover-background: #2e3c34;
  --pico-contrast-hover-border: #567060;
  --pico-contrast-hover-underline: #fff;
  --pico-contrast-focus: rgba(143, 175, 150, 0.24);
  --pico-contrast-inverse: #141c18;
  --pico-box-shadow:
    0 0.05rem 0.16rem rgba(6, 10, 8, 0.28),
    0 0.25rem 0.7rem rgba(8, 12, 10, 0.22);
  --pico-h1-color: #f2f6f0;
  --pico-h2-color: #eaf2ec;
  --pico-h3-color: #e2ece4;
  --pico-h4-color: #d8e4da;
  --pico-h5-color: #cedcd0;
  --pico-h6-color: #c4d4c6;
  --pico-mark-background-color: #314438;
  --pico-mark-color: #f2f6f0;
  --pico-blockquote-border-color: #567060;
  --pico-button-box-shadow: 0 0.06rem 0.18rem rgba(6, 10, 8, 0.22);
  --pico-button-hover-box-shadow: 0 0.1rem 0.28rem rgba(6, 10, 8, 0.28);
  --pico-table-border-color: #3a4a40;
  --pico-table-row-stripped-background-color: rgba(143, 175, 150, 0.07);
  --pico-code-background-color: #1a2420;
  --pico-code-color: #d0dcd2;
  --pico-form-element-background-color: #18211c;
  --pico-form-element-selected-background-color: #2a3830;
  --pico-form-element-border-color: #45584c;
  --pico-form-element-color: #eef4f0;
  --pico-form-element-placeholder-color: #8fa396;
  --pico-form-element-active-background-color: #1c2822;
  --pico-form-element-active-border-color: #8faf96;
  --pico-form-element-focus-color: rgba(143, 175, 150, 0.22);
  --pico-switch-background-color: #3a4a40;
  --pico-switch-color: #f4f7f2;
  --pico-range-border-color: #3a4a40;
  --pico-range-active-border-color: #567060;
  --pico-range-thumb-border-color: #141c18;
  --pico-range-thumb-color: #8faf96;
  --pico-range-thumb-active-color: #a8c4ae;
  --pico-card-background-color: #1c2822;
  --pico-card-border-color: #3a4a40;
  --pico-card-sectioning-background-color: #16201a;
  --pico-dropdown-background-color: #1c2822;
  --pico-dropdown-border-color: #3a4a40;
  --pico-dropdown-hover-background-color: #28362e;
  --pico-modal-overlay-background-color: rgba(8, 12, 10, 0.72);
  --pico-progress-background-color: #28362e;
  --pico-progress-color: #8faf96;
  --pico-accordion-border-color: #3a4a40;
  --pico-accordion-active-summary-color: #a8c4ae;
  --pico-accordion-close-summary-color: #e4eee6;
  --pico-accordion-open-summary-color: #a3b5a8;
  background-color: #101612;
  background-image:
    radial-gradient(circle at 14% 26%, rgba(255, 236, 180, 0.95) 0 1px, rgba(255, 210, 130, 0.28) 3px, transparent 7px),
    radial-gradient(circle at 72% 18%, rgba(255, 244, 210, 0.9) 0 1.5px, rgba(255, 214, 140, 0.25) 4px, transparent 8px),
    radial-gradient(circle at 86% 52%, rgba(255, 230, 170, 0.85) 0 1px, rgba(255, 200, 120, 0.22) 3px, transparent 7px),
    radial-gradient(circle at 38% 70%, rgba(255, 240, 190, 0.8) 0 1px, rgba(255, 214, 140, 0.2) 3px, transparent 6px),
    radial-gradient(circle at 58% 42%, rgba(255, 248, 220, 0.7) 0 1px, transparent 5px),
    radial-gradient(circle at 22% 78%, rgba(255, 226, 160, 0.65) 0 1px, transparent 5px),
    radial-gradient(ellipse 26% 16% at 34% 48%, rgba(196, 214, 200, 0.14), transparent 72%),
    radial-gradient(ellipse 20% 12% at 68% 64%, rgba(186, 204, 194, 0.12), transparent 74%),
    url("/img/forest-mist-dark.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background: transparent;
  min-height: 100vh;
}
[data-theme="dark"] :is(table, td, th) {
  background-color: transparent;
}
[data-theme="dark"] nav.container {
  background: rgba(28, 40, 34, 0.94);
  border-radius: 0.75rem;
  box-shadow: 0 0.15rem 0.45rem rgba(6, 10, 8, 0.28);
  margin-top: 0.85rem;
  padding-inline: 1rem;
}
[data-theme="dark"] .schedule-toolbar,
[data-theme="dark"] .schedule-wrap,
[data-theme="dark"] .passes-card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .account-card,
[data-theme="dark"] .account-booking,
[data-theme="dark"] .client-card,
[data-theme="dark"] .product-card {
  background: #1c2822;
  border-radius: 0.75rem;
  box-shadow: 0 0.2rem 0.55rem rgba(6, 10, 8, 0.26);
}
[data-theme="dark"] .schedule-wrap,
[data-theme="dark"] .table-wrap {
  padding: 0.35rem 0.5rem 0.75rem;
}
[data-theme="dark"] .passes-card .table-wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0.35rem 0.45rem;
}
[data-theme="dark"] .schedule-grid .slot {
  background: #24302a;
  border-radius: 0.35rem;
  box-shadow: 0 0.08rem 0.22rem rgba(6, 10, 8, 0.22);
  padding: 0.4rem 0.5rem 0.45rem 0.55rem;
}
[data-theme="dark"] .schedule-grid .day-selected {
  background: color-mix(in srgb, #8faf96 10%, #1c2822);
}
[data-theme="dark"] .schedule-grid tbody td:hover {
  background: color-mix(in srgb, #8faf96 18%, #1c2822);
}
[data-theme="dark"] .schedule-grid tbody td.day-selected:hover {
  background: color-mix(in srgb, #8faf96 26%, #1c2822);
}
[data-theme="dark"] .schedule-grid .slot:hover {
  background: #314038;
  box-shadow: 0 0.12rem 0.32rem rgba(6, 10, 8, 0.32);
}
[data-theme="dark"] .week-step {
  background: #24302a;
  color: #c5d6c8;
  border-color: #3a4a40;
}
[data-theme="dark"] .week-step:hover {
  background: #314038;
  border-color: #8faf96;
}

.narrow { max-width: 34rem; margin: 0 auto; }
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1.15rem;
  align-items: stretch;
}
.login-story {
  border-radius: 0.75rem;
  padding: 2rem 2rem 1.7rem;
}
html:not([data-theme="dark"]) .login-story {
  background: #fff;
  color: #1c3a2e;
  box-shadow: 0 0.5rem 1.6rem rgba(47, 125, 74, 0.12), 0 0.05rem 0.2rem rgba(47, 125, 74, 0.06);
}
.login-story h2 {
  font-weight: 500;
  font-size: 2.35rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.015em;
}
html:not([data-theme="dark"]) .login-story h2 {
  color: #143028;
}
.login-story p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0.95rem;
}
html:not([data-theme="dark"]) .login-story p {
  color: #1c3a2e;
}
.login-lines {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}
.login-lines li {
  margin: 0.55rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid #7dba96;
  line-height: 1.35;
}
html:not([data-theme="dark"]) .login-lines li {
  color: #1c3a2e;
}
.login-card {
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.6rem rgba(47, 125, 74, 0.12), 0 0.05rem 0.2rem rgba(47, 125, 74, 0.06);
  padding: 1.35rem 1.35rem 1.1rem;
}
.login-card h2 { margin-top: 0; }
[data-theme="dark"] .login-story {
  background: #1a2c24;
  color: #f4faf6;
  box-shadow: 0 0.2rem 0.55rem rgba(6, 10, 8, 0.26);
}
[data-theme="dark"] .login-story h2 { color: #fff; }
[data-theme="dark"] .login-story p { color: #e4f0e8; }
[data-theme="dark"] .login-lines li { color: #f7fbf8; }
[data-theme="dark"] .login-card {
  background: #1c2822;
  box-shadow: 0 0.2rem 0.55rem rgba(6, 10, 8, 0.26);
}
.right { text-align: right; }

nav.container:not(.admin-nav) {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-block: 0.35rem 0;
  --pico-nav-element-spacing-vertical: 0.35rem;
  --pico-nav-element-spacing-horizontal: 0.1rem;
}
nav.container:not(.admin-nav) .nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  width: 100%;
}
nav.container:not(.admin-nav) .nav-account {
  display: flex;
  justify-content: flex-end;
  width: calc(100% + 2rem);
  margin: 0.2rem -1rem 0;
  padding: 0.2rem 1rem 0.25rem;
  border-top: 1px solid var(--pico-muted-border-color);
  background: rgba(28, 58, 46, 0.04);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}
[data-theme="dark"] nav.container:not(.admin-nav) .nav-account {
  background: rgba(0, 0, 0, 0.22);
}
.daily-note {
  max-width: 38rem;
  margin: 0.15rem auto 0.35rem;
  padding: 0 1rem;
  text-align: center;
  color: var(--pico-muted-color);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.45;
}
body:has(.screen-schedule) > .daily-note {
  flex: none;
  margin-bottom: 0.15rem;
}
nav.container:not(.admin-nav) .brand {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
nav.container:not(.admin-nav) .nav-menu > ul,
nav.container:not(.admin-nav) .nav-account > ul {
  align-items: center;
  margin: 0;
}
nav.container:not(.admin-nav) .nav-primary {
  flex: 1 1 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}
nav.container:not(.admin-nav) .nav-tools {
  flex: 1 1 auto;
  justify-content: flex-end;
  width: 100%;
}
nav.container:not(.admin-nav) li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.1rem 0.05rem;
}
nav.container:not(.admin-nav) .nav-primary a {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.45rem 0.22rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
nav.container:not(.admin-nav) .nav-primary a:is(:hover, :focus, :active) {
  background: transparent;
  color: var(--pico-primary);
  text-decoration: none;
}
nav.container:not(.admin-nav) .nav-primary a[aria-current="page"] {
  color: var(--pico-primary);
  border-bottom-color: var(--pico-primary);
}
nav.container:not(.admin-nav) .nav-primary li:not(.nav-staff) + li.nav-staff {
  margin-inline-start: 0.45rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 1px solid var(--pico-muted-border-color);
}
nav.container:not(.admin-nav) .nav-staff a {
  font-size: 0.92rem;
  color: var(--pico-muted-color);
}
nav.container:not(.admin-nav) .nav-staff a:is(:hover, :focus, :active),
nav.container:not(.admin-nav) .nav-staff a[aria-current="page"] {
  color: var(--pico-primary);
}
nav.container:not(.admin-nav) .nav-user {
  margin-inline-end: auto;
  color: var(--pico-muted-color);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  padding-inline: 0.15rem;
}
nav.container:not(.admin-nav) a.nav-text,
nav.container:not(.admin-nav) button.nav-text {
  --pico-background-color: transparent;
  --pico-border-color: transparent;
  --pico-color: var(--pico-muted-color);
  --pico-box-shadow: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.2rem 0.35rem;
  height: auto;
  width: auto;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pico-muted-color);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
nav.container:not(.admin-nav) a.nav-text:is(:hover, :focus, :active),
nav.container:not(.admin-nav) button.nav-text:is(:hover, :focus, :active) {
  --pico-background-color: transparent;
  --pico-border-color: transparent;
  --pico-color: var(--pico-primary);
  --pico-box-shadow: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--pico-primary);
  text-decoration: none;
}
nav.container:not(.admin-nav) a.nav-text[aria-current="page"] {
  color: var(--pico-primary);
  border-bottom-color: var(--pico-primary);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
nav.container:not(.admin-nav) .inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
nav.container:not(.admin-nav) .nav-util {
  gap: 0.4rem;
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 1px solid var(--pico-muted-border-color);
}
nav.container:not(.admin-nav) .nav-util button.slim,
nav.container:not(.admin-nav) .nav-util .theme-toggle {
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0;
}

.theme-toggle { display: none; }
html.js .theme-toggle { display: inline-block; vertical-align: middle; }
html:not([data-theme="dark"]) .theme-to-light { display: none; }
[data-theme="dark"] .theme-to-dark { display: none; }
.theme-bar { display: flex; justify-content: flex-end; }

.admin-nav { padding-top: 0; }
.admin-nav ul { flex-wrap: wrap; }
.admin-nav a { font-size: 0.85rem; padding: 0.2rem 0.5rem; }

.flash {
  padding: 0.6rem 1rem;
  border-left: 5px solid var(--pico-primary, #2f7d4a);
  background: var(--pico-card-background-color, #fff);
  margin-bottom: 1rem;
}
.flash.error { border-left-color: #c0392b; }

.class-row { padding: 0.6rem 1rem; margin-bottom: 0.5rem; }
.class-row .grid { align-items: center; margin: 0; }
.class-row .class-edit { margin-top: 0.6rem; }
.class-row .class-edit > summary { display: inline-block; width: auto; }
.class-row .class-edit form { margin-top: 0.75rem; }
.scope label { display: inline-flex; align-items: center; gap: 0.35rem; margin-right: 1rem; }
.edit-fields { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.class-row.cancelled { opacity: 0.5; }
.day-header { margin: 1.2rem 0 0.4rem; }

.inline-form { display: inline; margin: 0; }
.inline-form button, button.slim, a[role="button"].slim {
  padding: 0.15rem 0.6rem; font-size: 0.85rem; width: auto; margin: 0;
}
.slim-select { display: inline-block; width: auto; padding: 0.15rem 1.4rem 0.15rem 0.4rem; font-size: 0.85rem; margin: 0; }
.slim-row { margin: 0.25rem 0; }

.waiver-box {
  max-height: 16rem; overflow-y: auto; padding: 0.5rem 1rem;
  border: 1px solid var(--pico-muted-border-color, #ccc); border-radius: 6px;
  font-size: 0.9rem; margin-bottom: 0.6rem;
}
.schedule-head { margin-bottom: 0.65rem; }
.schedule-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}
.schedule-title h2 { margin-bottom: 0; }
.schedule-packs {
  font-size: 0.95rem;
  white-space: nowrap;
}
.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.55rem;
  padding: 0.32rem 0.45rem;
}
.week-nav,
.day-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.day-nav { display: none; }
.day-empty { display: none; margin-bottom: 0; }
.week-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pico-form-element-border-color, #c5ddcf);
  border-radius: 999px;
  text-decoration: none;
}
.week-step svg { display: block; width: 12px; height: 12px; }
.week-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 0.2rem;
  text-align: center;
  line-height: 1.1;
}
.week-kicker {
  font-size: 0.68rem;
  color: var(--pico-muted-color);
}
a.week-kicker {
  color: var(--pico-primary);
  text-decoration: none;
}
a.week-kicker:hover { text-decoration: underline; }
.week-dates {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pico-h2-color, inherit);
}
.schedule-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
}
.schedule-filters select,
.schedule-filters input[type="date"] {
  width: auto;
  max-width: 11rem;
  margin: 0;
  height: 1.65rem;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
}
@media (max-width: 760px) {
  .schedule-title { flex-wrap: wrap; }
  .schedule-toolbar { align-items: stretch; }
  .week-nav { display: none; }
  .day-nav { display: flex; margin-left: 0; justify-content: center; width: 100%; }
  .schedule-filters { flex-basis: 100%; justify-content: stretch; }
  .schedule-filters select,
  .schedule-filters input[type="date"] { flex: 1 1 8.5rem; max-width: none; }
  body:has(.screen-schedule) .schedule-grid {
    width: 100%;
    min-width: 0;
  }
  body:has(.screen-schedule) .schedule-grid thead th:not(:first-child):not(.day-selected),
  body:has(.screen-schedule) .schedule-grid tbody td:not(.day-selected) {
    display: none;
  }
  body:has(.screen-schedule) .schedule-grid tbody tr:not(:has(.day-selected .slot)) {
    display: none;
  }
  body:has(.screen-schedule) .schedule-grid .day-selected { width: 100%; }
  body:has(.screen-schedule) .schedule-wrap:has(+ .day-empty) { display: none; }
  .day-empty { display: block; }
}

.assign-pick { max-width: 20rem; }
.assign-class { margin-bottom: 1rem; }
.assign-class .assign-sessions { margin-left: 1.25rem; }
.assign-class .assign-sessions label { margin-bottom: 0.25rem; }

.passes-card { margin-top: 1.35rem; }
.passes-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 0.95rem 0.15rem;
}
.passes-title h3 { margin: 0; }
.passes-title a { white-space: nowrap; font-size: 0.95rem; }
.passes-card .passes-table { margin-bottom: 0; }
.passes-card > p {
  margin: 0;
  padding: 0.15rem 0.95rem 0.85rem;
}
.passes-note {
  color: var(--pico-muted-color);
  font-size: 0.92rem;
  padding-bottom: 0.35rem;
}
.schedule-wrap, .table-wrap { overflow-x: auto; }
body:has(.screen-schedule) {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:has(.screen-schedule) > nav.container {
  flex: none;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}
body:has(.screen-schedule) > main.container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
body:has(.screen-schedule) .schedule-head,
body:has(.screen-schedule) .flash {
  flex: none;
}
body:has(.screen-schedule) .schedule-head { margin-bottom: 0.35rem; }
body:has(.screen-schedule) .schedule-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
body:has(.screen-schedule) .schedule-grid {
  border-collapse: separate;
  border-spacing: 0;
}
body:has(.screen-schedule) .schedule-grid th,
body:has(.screen-schedule) .schedule-grid td {
  padding: 0.35rem 0.4rem;
}
body:has(.screen-schedule) .schedule-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
body:has(.screen-schedule) .schedule-grid thead th:first-child,
body:has(.screen-schedule) .schedule-grid tbody th {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 3;
}
body:has(.screen-schedule) .schedule-grid thead th:first-child { z-index: 4; }
body:has(.screen-schedule) .schedule-grid thead th.day-selected {
  background: color-mix(in srgb, var(--pico-primary, #2f7d4a) 14%, #fff);
}
body:has(.screen-schedule) > footer.container {
  flex: none;
  margin-top: 0.25rem;
  margin-bottom: 0.2rem;
  padding-top: 0;
  padding-bottom: 0;
}
[data-theme="dark"] body:has(.screen-schedule) .schedule-grid thead th,
[data-theme="dark"] body:has(.screen-schedule) .schedule-grid tbody th {
  background: #1c2822;
}
[data-theme="dark"] body:has(.screen-schedule) .schedule-grid thead th.day-selected {
  background: color-mix(in srgb, var(--pico-primary, #2f7d4a) 14%, #1c2822);
}
@media (max-width: 760px) {
  html:has(.screen-schedule) {
    height: auto;
    overflow-y: auto;
  }
  body:has(.screen-schedule) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: block;
  }
  body:has(.screen-schedule) > main.container {
    display: block;
    overflow: visible;
    min-height: auto;
  }
  body:has(.screen-schedule) .schedule-wrap {
    max-height: none;
    min-height: auto;
    overflow: visible;
  }
}
@media (max-width: 760px) {
  .passes-title { flex-wrap: wrap; }
  .passes-title a { white-space: normal; }
}
.passes-table { width: 100%; }
.passes-table td { vertical-align: top; }
.passes-table form, .passes-table button { margin: 0; }
.schedule-grid { width: 100%; }
.schedule-grid th,
.schedule-grid td {
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.schedule-grid thead th { font-weight: 600; white-space: nowrap; text-align: center; }
.schedule-grid thead th:first-child,
.schedule-grid tbody th { text-align: left; }
.schedule-grid .day-start { border-left: 1px solid var(--pico-muted-border-color, #ccc); }
.schedule-grid .day-selected { background: color-mix(in srgb, var(--pico-primary, #2f7d4a) 14%, transparent); }
.schedule-grid tbody td {
  transition: background-color 0.12s ease;
}
.schedule-grid tbody td:hover {
  background: color-mix(in srgb, var(--pico-primary, #2f7d4a) 22%, transparent);
}
.schedule-grid thead th small { display: block; font-weight: 400; }
.schedule-grid tbody th { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.schedule-grid .slot {
  margin: 0 0 0.75rem;
  padding-left: 0.45rem;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
.schedule-grid .slot.is-occupied { opacity: 0.72; }
.schedule-grid .slot:last-child { margin-bottom: 0; }
.schedule-grid .slot small { display: block; margin-top: 0.2rem; }
.schedule-grid .slot-actions { display: flex; flex-wrap: wrap; gap: 0.2rem; align-items: center; margin-top: 0.2rem; }
.schedule-grid .slot-actions a[role="button"],
.schedule-grid .slot-actions button {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.28rem;
  font-size: 0.68rem;
  line-height: 1.45;
}
.schedule-grid .slot:has(.class-edit) .slot-actions {
  display: inline-flex;
  width: auto;
  margin: 0.2rem 0.2rem 0 0;
  vertical-align: middle;
}
.schedule-grid .slot.cancelled { opacity: 0.5; }
.schedule-grid .class-edit {
  display: inline-block;
  width: auto;
  margin: 0.2rem 0 0;
  vertical-align: middle;
}
.schedule-grid .class-edit[open] { display: block; width: 100%; margin-top: 0.35rem; }
.schedule-grid .class-edit > summary {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0 0.28rem;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}
.schedule-grid .class-edit > summary::after { content: none; }
.schedule-grid .class-edit form { margin-top: 0.6rem; }
.schedule-grid .edit-fields { grid-template-columns: 1fr; }
.schedule-grid .scope label { display: flex; margin-right: 0; }

.plan-desk {
  position: relative;
  min-height: 2.35rem;
  margin: 0 0 0.95rem;
}
.plan-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  min-height: 2.35rem;
  margin: 0;
  padding-right: 8.5rem;
  color: var(--pico-muted-color);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.plan-filter select {
  width: auto;
  min-width: 10rem;
  max-width: 18rem;
  margin: 0;
  color: var(--pico-color);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  --pico-form-element-spacing-vertical: 0.32rem;
}
.plan-need { margin: 0.35rem 0 0; }
.plan-create { margin: 0; }
.plan-create > summary[role="button"] {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  margin: 0;
}
.plan-create > summary::after { content: none; }
.plan-create:not([open]) > :not(summary) { display: none; }
.plan-create > form {
  margin: 0.8rem 0 0;
  padding: 0.85rem 0 0.1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.plan-create > form > button {
  width: auto;
  margin: 0.15rem 0 0;
}
.plan-list .plan {
  position: relative;
  margin: 0;
  padding: 0.28rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.plan-list .plan:first-child {
  padding-top: 0;
  border-top: 0;
}
.plan[hidden] { display: none !important; }
.plan-body,
.plan-edit { margin: 0; }
.plan-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding-right: 5.6rem;
  color: inherit;
  line-height: inherit;
  margin: 0;
  cursor: pointer;
}
.plan-id { min-width: 0; padding-left: 1.35rem; }
.plan-summary .status-pill { justify-self: end; }
.plan-body > summary {
  color: inherit;
  line-height: inherit;
}
.plan-body[open] > summary,
.plan-body[open] > summary:not([role]):not(:focus) {
  margin-bottom: 0;
  color: inherit;
}
.plan-body > summary::-webkit-details-marker { display: none; }
.plan-body > summary::after {
  position: absolute;
  top: 0.15rem;
  left: 0;
  float: none;
  margin: 0;
  transform: rotate(-90deg);
}
.plan-body[open] > summary::after { transform: rotate(0); }
.plan-body:not([open]) > :not(summary) { display: none; }
.plan:has(.plan-edit[open]) .plan-body > :not(summary) { display: none; }
.plan-edit > summary[role="button"] {
  position: absolute;
  top: 0.45rem;
  right: 0;
  left: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.15rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 1;
  list-style: none;
}
.plan-list .plan:first-child .plan-edit > summary[role="button"] { top: 0.15rem; }
.plan-edit > summary::-webkit-details-marker { display: none; }
.plan-edit > summary::after { content: none; }
.plan-edit:not([open]) > :not(summary) { display: none; }
.plan-edit > form { margin: 0.75rem 0 0; }
.plan-description {
  margin: 0.55rem 0 0;
  color: var(--pico-muted-color);
}
.plan-sequence {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: plan-step;
}
.plan-sequence li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) max-content 6.75rem;
  gap: 0.2rem 0.85rem;
  align-items: baseline;
  padding: 0.28rem 0;
  counter-increment: plan-step;
}
.plan-sequence li + li { border-top: 1px solid var(--pico-muted-border-color); }
.plan-sequence li::before {
  content: counter(plan-step);
  color: var(--pico-muted-color);
  font-variant-numeric: tabular-nums;
}
.plan-seq-work,
.plan-seq-rest {
  color: var(--pico-muted-color);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.plan-fields {
  --pico-form-element-spacing-vertical: 0.28rem;
  --pico-spacing: 0.4rem;
}
.plan-fields > .grid,
.action-row .plan-fields > .grid {
  grid-template-columns: minmax(8rem, 1fr) minmax(16.5rem, 1.2fr) minmax(14.25rem, 1fr);
  column-gap: 0.65rem;
  row-gap: 0;
  margin-bottom: 0.4rem;
  align-items: end;
}
.plan-fields > .grid > label { margin-bottom: 0; }
.plan-fields > label { margin-bottom: 0.4rem; }
.plan-fields > .grid input,
.plan-fields > .grid select,
.plan-fields > label input {
  margin-bottom: 0;
}
.plan-fields fieldset {
  margin-bottom: 0.35rem;
}
.plan-help {
  margin: 0 0 0.4rem;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
  line-height: 1.35;
}
.plan-table:has(.plan-menu:not([hidden])) {
  position: relative;
  z-index: 4;
}
.plan-fields:has(.plan-menu:not([hidden])) .plan-add { visibility: hidden; }
.plan-table {
  display: grid;
  grid-template-columns: auto minmax(0, 2fr) minmax(11rem, 1fr) 6.25rem auto;
  column-gap: 0.65rem;
  align-items: center;
}
.plan-head, .plan-line {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
}
.plan-head { margin: 0 0 0.35rem; font-size: 0.875rem; font-weight: 600; text-align: left; }
.plan-head span { justify-self: start; }
.plan-line { margin-bottom: 0.28rem; }
.plan-field { position: relative; margin: 0; width: 100%; min-width: 0; }
.plan-pick { position: relative; min-width: 0; }
.plan-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  margin: 0;
  padding: 0.25rem;
  overflow: auto;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 0.55rem;
  background: var(--pico-card-background-color);
  box-shadow: 0 0.45rem 1.2rem rgba(6, 10, 8, 0.16);
}
.plan-menu[hidden] { display: none; }
.plan-menu-group {
  margin: 0.4rem 0.45rem 0.1rem;
  color: var(--pico-muted-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-menu-group:first-child { margin-top: 0.15rem; }
.plan-menu .plan-option {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.38rem 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}
.plan-menu .plan-option[aria-selected="true"],
.plan-menu .plan-option:hover {
  background: color-mix(in srgb, var(--pico-primary) 14%, transparent);
}
.plan-menu .plan-option-add {
  margin-top: 0.2rem;
  border-top: 1px solid var(--pico-muted-border-color);
  border-radius: 0;
  color: var(--pico-primary);
  font-weight: 600;
}
.plan-menu-empty,
.plan-menu-error {
  margin: 0.35rem 0.5rem;
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
.plan-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.plan-line select, .plan-line input, .plan-line button { margin-bottom: 0; }
.plan-remove { margin: 0; white-space: nowrap; }
.plan-add { width: auto; margin: 0.4rem 0 0; }
.plan-line-last .plan-rest { visibility: hidden; }
.plan-drag[role="button"] {
  cursor: grab; user-select: none; touch-action: none;
  display: flex; align-items: center; gap: 0.45rem; margin: 0;
  width: auto;
  height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
  padding: 0 0.55rem; box-sizing: border-box;
  background: transparent;
  color: inherit;
  font-weight: 600;
  box-shadow: none;
  border: var(--pico-border-width) solid var(--pico-muted-border-color, #ccc);
  border-radius: var(--pico-border-radius);
}
.plan-drag:active, .plan-line-dragging .plan-drag { cursor: grabbing; }
.plan-line-dragging { opacity: 0.45; }
.plan-grip {
  width: 0.7rem; height: 0.85rem;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 4px);
  opacity: 0.7;
}
.plan-position-value { font-variant-numeric: tabular-nums; min-width: 1.2rem; }
@media (max-width: 900px) {
  .plan-fields > .grid,
  .action-row .plan-fields > .grid {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
  }
  .plan-table { display: flex; flex-direction: column; gap: 0.85rem; }
  .plan-head { display: none; }
  .plan-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem 0.55rem;
    margin: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
  }
  .plan-drag { grid-column: 1; grid-row: 1; align-self: end; }
  .plan-exercise { grid-column: 2; grid-row: 1; }
  .plan-work,
  .plan-rest,
  .plan-remove { grid-column: 1 / -1; }
  .plan-remove { justify-self: start; }
  .plan-line-last .plan-rest { display: none; }
  .plan-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0.15rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 0.8rem;
    font-weight: 600;
  }
}
@media (max-width: 640px) {
  .plan-desk { min-height: 0; }
  .plan-filter { min-height: 0; margin-bottom: 0.55rem; padding-right: 0; }
  .plan-create > summary[role="button"] { position: static; margin-bottom: 0.15rem; }
  .plan-summary {
    row-gap: 0.45rem;
    padding-right: 0;
  }
  .plan-summary .plan-id { grid-column: 1 / -1; }
  .plan-summary .status-pill { grid-column: 1; justify-self: start; }
  .plan-edit > summary[role="button"] { top: calc(0.28rem + 3.3rem); }
  .plan-list .plan:first-child .plan-edit > summary[role="button"] { top: 3.3rem; }
  .plan-sequence li { grid-template-columns: 1.5rem minmax(0, 1fr) auto; }
  .plan-sequence li::before { grid-column: 1; grid-row: 1; }
  .plan-seq-name { grid-column: 2 / -1; grid-row: 1; }
  .plan-seq-work { grid-column: 2; grid-row: 2; text-align: left; }
  .plan-seq-rest { grid-column: 3; grid-row: 2; text-align: right; }
}
.exercise-video { width: 100%; max-width: 28rem; margin-bottom: 0.6rem; }
.exercise-group { margin: 1.4rem 0 0.35rem; }
.category-note { margin: 0.85rem 0 0.55rem; }
.category-list {
  border: 1px solid var(--pico-muted-border-color, #ccc);
  border-radius: var(--pico-border-radius);
  overflow: hidden;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--pico-muted-border-color, #ccc);
}
.category-row:last-child { border-bottom: 0; }
.category-row-new {
  background: color-mix(in srgb, var(--pico-primary, #2f7d4a) 7%, transparent);
}
.category-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}
.category-count {
  flex: 0 0 auto;
  min-width: 6.75rem;
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.category-row button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding-inline: 1.15rem;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .category-row { flex-wrap: wrap; }
  .category-row input { flex: 1 1 100%; }
  .category-count { margin-right: auto; min-width: 0; text-align: left; }
}

.account-head { margin-bottom: 0.35rem; }
.account-head hgroup { margin-bottom: 0; }
.account-wallet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.account-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  height: 100%;
  padding: 1rem 1.05rem 1.05rem;
}
.account-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.account-card p { margin: 0; }
.account-card > .account-figure { margin-top: 0.2rem; }
.account-card > .account-action { margin-top: auto; padding-top: 0.7rem; }
.account-figure {
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--pico-h2-color, inherit);
}
.account-figure-word {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: capitalize;
}
.account-caption,
.account-note,
.account-meta {
  color: var(--pico-muted-color);
}
.account-note { font-size: 0.92rem; }
.account-card > .account-empty { margin-top: 0.2rem; }
.account-lines { margin-top: 0.2rem; }
.account-line { margin: 0; }
.account-line + .account-line { margin-top: 0.65rem; }
.account-line strong { display: block; }
.account-meta { display: block; margin-top: 0.12rem; font-size: 0.92rem; }
.account-meta mark { margin-left: 0.3rem; color: var(--pico-mark-color); }
.account-meta mark:first-child { margin-left: 0; }
.account-action { padding-top: 0; }
.account-action a[role="button"] { margin: 0; }
.account-coming,
.account-past { margin-top: 1.75rem; }
.account-coming > h3 { margin-bottom: 0.7rem; }
.account-empty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.account-empty-row p { margin: 0; }
.account-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.account-booking-main { min-width: 0; }
.account-booking-main strong { display: block; }
.account-booking-main .account-when,
.account-booking-main small { display: block; }
.account-booking-main small,
.account-when { color: var(--pico-muted-color); }
.account-booking mark { margin-left: 0.35rem; }
.account-booking form { margin: 0; flex: 0 0 auto; }
.account-policy { margin: 0.35rem 0 0; }
.account-past > summary,
.account-past[open] > summary,
.account-past[open] > summary:not([role]):not(:focus) {
  color: var(--pico-h3-color, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.175;
}
.account-past .account-line:first-of-type { margin-top: 0.15rem; }
.client-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.client-search input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  border-radius: 0.25rem;
}
.client-search button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding-inline: 1.15rem;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .client-search { flex-wrap: wrap; }
  .client-search input[type="search"],
  .client-search button { flex: 1 1 100%; }
}
.client-hero {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin: 0.35rem 0 1.15rem;
}
.client-hero h2 { margin: 0; }
.client-mark {
  flex: 0 0 auto;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pico-h2-color);
  background: color-mix(in srgb, var(--pico-primary) 18%, var(--pico-card-background-color));
  box-shadow: 0 0.2rem 0.7rem rgba(20, 48, 40, 0.12);
}
.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0.15rem 0 0;
  color: var(--pico-muted-color);
}
.client-meta span + span::before {
  content: "·";
  margin: 0 0.45rem;
}
.client-source { text-transform: capitalize; }
.client-top,
.client-records {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}
.client-top {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
.client-records {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.85rem;
  align-items: start;
}
.client-card {
  margin: 0;
  padding: 1.05rem 1.1rem 1.1rem;
}
.client-card > h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
}
.client-card form { margin-bottom: 0; }
.client-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.waiver-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0;
}
.waiver-form p,
.magic-link { margin: 0; }
.status-pill {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid var(--pico-muted-border-color);
}
.status-pill.is-open,
.status-pill.is-inactive {
  color: #7a4e22;
  background: #f6ead8;
  border-color: #e4d0b0;
}
.status-pill.is-signed,
.status-pill.is-active {
  color: #1f5c38;
  background: #e3f3ea;
  border-color: #b7d4c4;
}
[data-theme="dark"] .status-pill.is-open,
[data-theme="dark"] .status-pill.is-inactive {
  color: #e6d2b0;
  background: #3a3226;
  border-color: #5a4c38;
}
[data-theme="dark"] .status-pill.is-signed,
[data-theme="dark"] .status-pill.is-active {
  color: #d5e8da;
  background: #24382c;
  border-color: #3d5a48;
}
.people-hero h2 { margin-bottom: 0.2rem; }
.people-hero .client-lead { margin-bottom: 0.85rem; }
.people-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.people-stack > .client-card { margin: 0; }
.person-name {
  font-size: 1.2rem;
  line-height: 1.25;
}
.people-list .person {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.people-list .person:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
}
.person-edit { display: contents; }
.person-edit > summary {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  margin: 0;
  justify-self: end;
  list-style: none;
}
.person-edit > summary::-webkit-details-marker { display: none; }
.person-edit > summary::after { content: none; }
.person-edit:not([open]) > :not(summary) { display: none; }
.person-edit > form {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}
.person-id { min-width: 0; }
[data-theme="dark"] .client-mark {
  box-shadow: 0 0.15rem 0.4rem rgba(6, 10, 8, 0.28);
}
.magic-link small {
  margin-right: 0.35rem;
  color: var(--pico-muted-color);
}
.client-lead {
  margin: -0.35rem 0 0.85rem;
  color: var(--pico-muted-color);
}
.action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.action-row .grid {
  grid-template-columns: 1fr;
}
.action-row {
  margin: 0;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--pico-primary) 7%, var(--pico-card-background-color));
}
.action-row summary {
  position: relative;
  padding: 0.7rem 2.1rem 0.7rem 0.85rem;
}
.action-row summary::after {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  float: none;
  margin: -0.5rem 0 0;
  transform: rotate(-90deg);
}
.action-row[open] > summary::after {
  transform: rotate(0);
}
.action-title {
  display: block;
  font-weight: 600;
  color: var(--pico-h3-color);
}
.action-row summary small {
  display: block;
  margin-top: 0.12rem;
  color: var(--pico-muted-color);
  font-weight: 400;
}
.action-row[open] > summary {
  margin-bottom: 0.35rem;
}
.action-row[open] > summary:not([role]):not(:focus) {
  color: inherit;
}
.action-row form {
  padding: 0 0.85rem 0.85rem;
}
.client-empty {
  margin: 0;
  color: var(--pico-muted-color);
}
.record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.record:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.record strong { display: block; }
.record-meta {
  display: block;
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}
.client-bookings {
  margin-top: 0.85rem;
}
.client-bookings table { margin-bottom: 0; }
.client-card .account-figure { margin: 0.1rem 0 0.45rem; }
.client-card .account-figure + .account-figure { margin-top: 0.35rem; }
.dash-note { margin-top: auto; padding-top: 0.85rem; }
.dash-count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.report-summary { margin-top: 0; align-items: stretch; }
.report-summary > .client-card {
  display: flex;
  flex-direction: column;
}
.report-block { margin-top: 0.85rem; }
.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.8rem;
}
.report-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
}
.report-table { margin-bottom: 0; }
.report-table td { vertical-align: middle; }
.report-for { display: block; }
.report-table .inline-form { white-space: nowrap; }
@media (max-width: 900px) {
  .account-wallet { grid-template-columns: 1fr; }
  .client-top,
  .client-records { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; }
  .login-story { padding: 1.4rem 1.25rem 1.2rem; }
  .login-story h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .class-row .grid { grid-template-columns: 1fr; }
  .right { text-align: left; }
  .account-booking { align-items: flex-start; flex-direction: column; }
}

.product-desk,
.people-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.product-card {
  margin: 0;
  padding: 0.9rem 1rem 0.7rem;
  min-width: 0;
}
.product-card > h4 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.product-add { margin: 0; }
.product-add > summary[role="button"] {
  --pico-form-element-spacing-vertical: 0.32rem;
  margin-bottom: 0;
}
.product-add[open] > summary { margin-bottom: 0.55rem; }
.product-form {
  --pico-form-element-spacing-vertical: 0.28rem;
  --pico-form-element-spacing-horizontal: 0.5rem;
  --pico-spacing: 0.35rem;
  margin: 0;
}
.product-form label {
  margin-bottom: 0.4rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pico-muted-color);
}
.product-form input,
.product-form select,
.product-form textarea {
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--pico-color);
}
.product-form input[type="number"] {
  padding-right: 0.45rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.product-form input[type="number"]::-webkit-outer-spin-button,
.product-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-form textarea {
  min-height: 2.7rem;
  resize: vertical;
}
.product-form > button { width: auto; margin: 0.1rem 0 0; }
.product-grid {
  display: grid;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.4rem;
  align-items: end;
}
.product-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid label { margin-bottom: 0; }
.product-hint {
  margin: -0.05rem 0 0.45rem;
  color: var(--pico-muted-color);
  font-size: 0.75rem;
  line-height: 1.35;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.product-actions button { width: auto; margin: 0; }
.product-list { margin-top: 0.7rem; }
.product-list details {
  margin: 0;
  padding: 0.42rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.product-list summary { line-height: 1.35; }
.product-list details[open] > summary { margin-bottom: 0.55rem; }
.product-list .product-form { margin-top: 0.15rem; }
@media (max-width: 1279px) {
  .product-desk,
  .people-desk { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .product-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .product-grid.cols-2,
  .product-grid.cols-4 { grid-template-columns: 1fr; }
}

.people-desk > .client-card {
  min-width: 0;
  padding: 0.85rem 1rem 0.7rem;
}
.people-desk .report-head { margin-bottom: 0.28rem; }
.people-note {
  margin: 0 0 0.55rem;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
  line-height: 1.35;
}
.people-desk .people-list { margin-top: 0.65rem; }
.people-desk .people-list .person {
  display: block;
  margin-top: 0;
  padding: 0.4rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.people-desk .people-list .person:first-child {
  margin-top: 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.people-desk .person-line,
.people-desk details.person > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: inherit;
  line-height: inherit;
}
.people-desk details.person > summary::-webkit-details-marker { display: none; }
.people-desk details.person > summary::after { content: none; }
.people-desk details.person[open] > summary,
.people-desk details.person[open] > summary:not([role]):not(:focus) {
  margin-bottom: 0.45rem;
  color: inherit;
}
.people-desk .person-id { flex: 1 1 auto; min-width: 0; }
.people-desk .person-name { font-size: 0.98rem; }
.people-desk .record-meta {
  font-size: 0.8rem;
  line-height: 1.3;
}
.people-desk .status-pill {
  flex: none;
  font-size: 0.75rem;
  padding: 0.06rem 0.45rem;
  white-space: nowrap;
}
.people-desk .person-edit-label,
.people-desk .person-go {
  flex: none;
  white-space: nowrap;
}
.people-desk .person-edit-label {
  padding: 0.1rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--pico-primary);
  border: var(--pico-border-width) solid var(--pico-primary);
  border-radius: var(--pico-border-radius);
}
.people-desk details.person > form { margin: 0; }
.people-desk .client-empty { margin-top: 0.55rem; }

body:has(.admin-schedule) > nav.container {
  margin-top: 0.3rem;
  margin-bottom: 0.12rem;
}
body:has(.admin-schedule) > nav.admin-nav {
  margin-top: 0;
  margin-bottom: 0.15rem;
}
body:has(.admin-schedule) .schedule-head { margin-bottom: 0.25rem; }
.admin-schedule .schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
}
.admin-schedule .schedule-add { margin: 0; }
.admin-schedule .schedule-add > summary {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0.12rem 0.6rem;
  font-size: 0.82rem;
}
.admin-schedule .schedule-add > summary::-webkit-details-marker { display: none; }
.admin-schedule .schedule-add > summary::after { content: none; }
.admin-schedule .week-nav { margin-left: auto; width: auto; }
.admin-schedule .schedule-add[open] {
  flex: 1 1 100%;
  order: 5;
}
.admin-schedule .schedule-add > form { margin-top: 0.35rem; }
.admin-schedule .schedule-add > form .product-hint { margin-bottom: 0.35rem; }
body:has(.admin-schedule) .schedule-grid th,
body:has(.admin-schedule) .schedule-grid td {
  padding: 0.12rem 0.28rem;
}
body:has(.admin-schedule) .schedule-grid thead th {
  font-size: 0.8rem;
  line-height: 1.2;
}
body:has(.admin-schedule) .schedule-grid thead th small { font-size: 0.7rem; }
body:has(.admin-schedule) .schedule-grid tbody th { font-size: 0.78rem; }
body:has(.admin-schedule) .schedule-grid .slot {
  margin: 0 0 0.2rem;
  padding: 0.12rem 0.28rem 0.14rem 0.38rem;
  line-height: 1.2;
}
body:has(.admin-schedule) .schedule-grid .slot:last-child { margin-bottom: 0; }
body:has(.admin-schedule) .schedule-grid .slot small {
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1.2;
}
body:has(.admin-schedule) .schedule-grid .slot a { font-size: 0.84rem; line-height: 1.2; }
body:has(.admin-schedule) .schedule-grid .slot-actions,
body:has(.admin-schedule) .schedule-grid .class-edit {
  margin-top: 0.05rem;
  line-height: 1.15;
}

main:has(.settings-form) > h3 { margin-bottom: 0.5rem; }
.settings-form { margin-bottom: 0.85rem; }
.settings-desk {
  display: grid;
  grid-template-columns: minmax(18.5rem, 0.82fr) minmax(0, 1.18fr);
  gap: 0.85rem;
  align-items: start;
}
.settings-form .report-head,
.settings-tools .report-head { margin-bottom: 0.35rem; }
.settings-form .product-card,
.settings-tools .product-card { margin: 0; }
.product-grid.settings-identity {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(5rem, 0.7fr);
}
.settings-waiver { margin-bottom: 0; }
.settings-waiver textarea,
.settings-copy textarea {
  field-sizing: content;
  min-height: 4.6rem;
}
.settings-copy input {
  padding-inline: 0.45rem;
  font-size: 0.84rem;
}
.settings-copy {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.42rem 0.55rem;
  align-items: stretch;
}
.settings-lang {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
}
.settings-field {
  padding-top: 0.48rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--pico-muted-color);
}
.settings-copy label {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.settings-copy textarea { flex: 1; }
.settings-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.settings-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7rem;
}
.settings-save button { width: auto; margin: 0; }
.settings-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}
.settings-tools .product-form { margin: 0; }
.settings-tools .product-hint:last-child { margin-bottom: 0; }
.settings-status {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}
.settings-status li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0;
  padding: 0.36rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
  font-size: 0.88rem;
}
.settings-status .status-pill {
  flex: none;
  font-size: 0.72rem;
  padding: 0.04rem 0.45rem;
}
.settings-warn {
  margin-top: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  background: #f6ead8;
  color: #7a4e22;
}
.settings-warn strong { color: inherit; }
[data-theme="dark"] .settings-warn {
  background: #3a3226;
  color: #e6d2b0;
}
.settings-tools a[role="button"],
.settings-tools .product-form > button {
  width: auto;
  margin: 0.15rem 0 0.35rem;
}
@media (max-width: 1279px) {
  .settings-desk { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .settings-tools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid.settings-identity { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .settings-copy { grid-template-columns: 1fr; }
  .settings-corner,
  .settings-lang,
  .settings-field { display: none; }
  .settings-save { justify-content: stretch; }
  .settings-save button { width: 100%; }
  .settings-caption {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0.12rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

body:has(.dash) > nav.container {
  margin-top: 0.4rem;
  margin-bottom: 0.15rem;
}
body:has(.dash) > nav.admin-nav {
  margin-top: 0;
  margin-bottom: 0.35rem;
  padding-top: 0.2rem;
  padding-bottom: 0.15rem;
}
body:has(.dash) > nav.admin-nav ul {
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 0;
  margin: 0;
}
body:has(.dash) > nav.admin-nav li {
  padding: 0;
}
body:has(.dash) > nav.admin-nav a {
  margin: 0;
  padding: 0.16rem 0.28rem;
  font-size: 0.8rem;
}
body:has(.dash) > nav.admin-nav button {
  margin: 0;
  padding: 0.1rem 0.45rem;
}
body:has(.dash) > main.container { padding-top: 0.15rem; }
.dash-hero {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.65rem;
}
.dash-hero h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
}
.dash-hero p {
  margin: 0.05rem 0 0;
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
.dash-mark {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pico-h2-color);
  background: color-mix(in srgb, var(--pico-primary) 18%, var(--pico-card-background-color));
}
.dash-metrics {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(7.5rem, 0.55fr) minmax(0, 1.35fr);
  gap: 0.55rem;
  align-items: stretch;
}
.dash .client-card {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.85rem 0.75rem;
  overflow: hidden;
}
.dash .client-card > h3 { margin-bottom: 0.35rem; }
.dash .report-head { margin-bottom: 0.25rem; }
.dash .report-head .dash-count {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
.dash-figure {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--pico-h2-color);
}
.dash-figure.is-multi { font-size: 1.15rem; }
.dash-figure + .dash-figure { margin-top: 0.28rem; }
.dash-caption {
  margin: auto 0 0;
  padding-top: 0.45rem;
  color: var(--pico-muted-color);
  font-size: 0.8rem;
  line-height: 1.35;
}
.dash-stat {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.55rem;
  padding: 0.32rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
  font-size: 0.84rem;
  line-height: 1.3;
}
.dash-stat:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.dash-stat span { color: var(--pico-muted-color); }
.dash-stat .status-pill {
  font-size: 0.72rem;
  padding: 0.04rem 0.45rem;
}
.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 0.55rem;
  margin-top: 0.55rem;
  align-items: start;
}
.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dash .client-empty {
  margin-top: 0.15rem;
  font-size: 0.85rem;
}
a.dash-class {
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.65rem;
  margin: 0 -0.85rem;
  padding: 0.38rem 0.85rem 0.38rem 0.7rem;
  border-top: 1px solid var(--pico-muted-border-color);
  border-left: 3px solid var(--accent, var(--pico-muted-border-color));
  color: inherit;
  text-decoration: none;
}
a.dash-class:hover strong { text-decoration: underline; }
a.dash-class time {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--pico-h3-color);
}
.dash-class-name { min-width: 0; }
.dash-class-name strong,
.dash-line strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.dash-class .record-meta,
.dash-line .record-meta { font-size: 0.78rem; line-height: 1.3; }
a.dash-class .dash-count {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pico-primary) 12%, var(--pico-card-background-color));
  font-size: 0.78rem;
  color: var(--pico-h3-color);
}
.dash-wait { margin-left: 0.3rem; color: var(--pico-muted-color); }
a.dash-class.cancelled { opacity: 0.5; }
.dash-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.65rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.dash-line:first-of-type { border-top: 0; padding-top: 0.1rem; }
.dash-line > div { min-width: 0; }
.dash-line form {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}
@media (max-width: 900px) {
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .dash-metrics > :last-child { grid-column: 1 / -1; }
  .dash-main { grid-template-columns: 1fr; }
}

.journal-desk { margin-top: 0.5rem; grid-template-columns: 1fr; }
.journal-desk .report-head form { margin: 0; }
.journal-desk .report-head button { width: auto; margin: 0; }
.journal-page {
  max-width: 38rem;
  margin-inline: auto;
}
.journal-page > hgroup { margin-bottom: 1.6rem; }
.journal-page > hgroup h2 {
  margin-bottom: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.journal-page > hgroup p {
  margin: 0;
  max-width: 34rem;
  color: var(--pico-muted-color);
  font-size: 0.95rem;
  line-height: 1.5;
}
.journal-page > section { margin-top: 2.1rem; }
.journal-page > section > h3 {
  margin: 0 0 0.9rem;
  color: var(--pico-muted-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.journal-page article {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.journal-page .journal-text {
  white-space: pre-wrap;
  margin-bottom: 0.65rem;
}
.journal-page .journal-today {
  padding: 0.1rem 0 0.2rem 1rem;
  border-left: 2px solid color-mix(in srgb, var(--pico-primary) 55%, transparent);
}
.journal-page .journal-today .record-meta,
.journal-page .journal-piece .record-meta {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.journal-page .journal-today .journal-text {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
}
.journal-page .journal-past {
  padding: 1.05rem 0 0.1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}
.journal-page .journal-past:first-of-type {
  padding-top: 0.1rem;
  border-top: 0;
}
.journal-page .journal-past .record-meta {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}
.journal-page .journal-past .journal-text {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.journal-page button.journal-copy {
  width: auto;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pico-muted-color);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.journal-page button.journal-copy:hover,
.journal-page button.journal-copy:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pico-primary);
}
.journal-page button.journal-copy:focus-visible {
  outline: 2px solid var(--pico-primary-focus);
  outline-offset: 3px;
}
.journal-page .journal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.journal-page .journal-list li {
  list-style: none;
  padding: 0.95rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}
.journal-page .journal-list li:first-child {
  padding-top: 0.1rem;
  border-top: 0;
}
.journal-page .journal-list a {
  color: var(--pico-h3-color);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
}
.journal-page .journal-list a:hover { text-decoration: underline; }
.journal-page .journal-list strong { font-weight: 500; }
.journal-page .journal-list .record-meta {
  display: inline;
  margin-left: 0.65rem;
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .journal-page .journal-list .record-meta {
    display: block;
    margin: 0.15rem 0 0;
  }
}
.journal-page .journal-list p {
  margin: 0.3rem 0 0;
  color: var(--pico-muted-color);
  line-height: 1.5;
}
.journal-page .journal-daily > p,
.journal-page .journal-pieces > p {
  margin: 0;
  color: var(--pico-muted-color);
}
.journal-page .journal-back {
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
}
.journal-page .journal-piece h2 {
  margin-bottom: 0.35rem;
  font-weight: 500;
  line-height: 1.25;
}
.journal-page .journal-piece .journal-text {
  font-size: 1.12rem;
  line-height: 1.7;
}
.journal-day { margin-top: 0.35rem; }
.journal-day > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.journal-preview {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
.journal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.journal-next { margin-top: 0.85rem; }
.journal-later-title { margin-top: 1.25rem; }
@media (max-width: 720px) {
  .journal-fields { grid-template-columns: 1fr; }
}

/* Temporary public hold: one line, dark woods, no nav. */
body.hold-page {
  min-height: 100vh;
  margin: 0;
}
.hold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.hold-brand {
  margin: 0 0 1.35rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #c5d6c8;
}
.hold-line {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.45;
  color: #f4faf6;
}
.hold-line + .hold-line {
  margin-top: 1.15rem;
}
