.studio-note-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
:root {
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  color: #252b36;
  background: #f5f6f8;
  color-scheme: light;
  font-synthesis: none;
  --brand: #205a47;
  --brand-dark: #205a47;
  --brand-contrast: #ffffff;
  --brand-inverse-contrast: #000000;
  --accent: #d8ef85;
  --muted: #596170;
  --line: #dce0e7;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --ink: #252b36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
}
button {
  cursor: pointer;
  border: 1px solid #c5d1c7;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  min-height: 44px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  background: #edf2ea;
  border-color: #96ab9d;
}
button.primary,
form > button:not([type]),
form > button[type="submit"] {
  background: var(--brand);
  color: var(--brand-contrast, #fff);
  border-color: var(--brand);
}
button.primary:hover,
form > button:not([type]):hover,
form > button[type="submit"]:hover {
  background: var(--brand);
  color: var(--brand-contrast);
  text-decoration: underline;
}
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
a {
  color: #205a47;
  text-underline-offset: 3px;
}
.workspace-logo {
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
}
.sidebar-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  padding: 5px;
}
.login-logo {
  width: min(240px, 100%);
  height: 120px;
  margin-bottom: 24px;
  padding: 12px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 8px;
  left: 8px;
  background: #fff;
  z-index: 20;
  padding: 12px;
  border-radius: 8px;
}
.layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}
.layout > div {
  min-width: 0;
}
.sidebar {
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 30px 18px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 25px;
}
.sidebar .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  letter-spacing: 2px;
  padding: 0 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand-inverse-contrast);
  font-size: 12px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.branch {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: inherit;
  margin-top: 4px;
}
.sidebar .branch {
  padding-left: 62px;
  margin-top: -8px;
}
.sidebar nav {
  display: grid;
  align-content: start;
  gap: 22px;
  margin-top: 34px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-contrast) transparent;
  padding: 0 3px 18px;
}
.nav-section {
  display: grid;
  gap: 4px;
}
.nav-label {
  margin: 0 10px 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.sidebar button {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 9px;
}
.sidebar button:hover {
  background: var(--brand-contrast);
  color: var(--brand-inverse-contrast);
}
.sidebar button.active {
  background: var(--accent);
  color: var(--brand-inverse-contrast);
  font-weight: 700;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar button:focus-visible {
  outline-color: var(--brand-contrast);
  outline-offset: 1px;
}
.sidebar .foot {
  border-top: 1px solid currentColor;
  padding: 17px 10px 0;
  font-size: 11px;
  color: inherit;
  line-height: 1.8;
}
header {
  background: #ffffffde;
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(24px, 3vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}
.header-location {
  font-weight: 650;
  color: #2c4938;
  font-size: 14px;
}
.header-location span {
  color: var(--muted);
  font-weight: 400;
  margin: 0 10px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--ink);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.identity-name {
  display: grid;
  line-height: 1.5;
}
.identity-name strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.identity-name small {
  font-size: 11px;
  text-transform: capitalize;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8efdf;
  color: #2a523a;
  font-weight: 700;
}
.identity button {
  font-size: 12px;
  padding: 7px 11px;
  min-height: 36px;
  background: transparent;
}
main {
  padding: 36px clamp(24px, 3vw, 52px);
  width: 100%;
  max-width: 1760px;
  margin-inline: 0;
}
.banner {
  border: 1px solid #e5d8ae;
  background: #fffbee;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 12px;
  color: #665126;
  margin-bottom: 32px;
  line-height: 1.6;
}
.banner strong {
  font-weight: 650;
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}
h1,
h2,
h3 {
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 7px 0 12px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}
p {
  line-height: 1.65;
}
.sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
  max-width: 760px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 3px 16px #283e2604;
  min-width: 0;
}
.card {
  position: relative;
}
.card::before {
  content: "";
  display: block;
  width: 23px;
  height: 3px;
  border-radius: 4px;
  background: var(--brand);
  margin-bottom: 18px;
}
.card .value {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin: 10px 0 0;
  color: #173d2d;
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  margin-bottom: 24px;
}
.panel > .panel {
  box-shadow: none;
  border-radius: 12px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #e9ede6;
}
.row:first-of-type {
  border-top: 0;
}
.row > div {
  min-width: 0;
}
.row .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 7px;
  background: #edf1e9;
  color: #485c49;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.pill.green {
  background: #e6f2e6;
  color: #275b34;
}
.pill.amber {
  background: #fff2d6;
  color: #76551d;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #7f9186;
  border-radius: 9px;
  padding: 11px 13px;
  min-height: 45px;
  width: 100%;
  color: #20382d;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #3e6d53;
}
input::placeholder,
textarea::placeholder {
  color: #627267;
}
input[readonly] {
  background: #f5f7f0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  padding-block: 4px;
  gap: 10px;
  line-height: 1.55;
  font-weight: 500;
}
label[data-share-ack-row][hidden] {
  display: none;
}
input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  flex-shrink: 0;
  accent-color: var(--brand);
  margin: 2px 0;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.wide {
  grid-column: 1/-1;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.3px;
  color: #536955;
  padding: 14px 12px;
  background: #f3f6ee;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #e7ece4;
  line-height: 1.6;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.table-wrap {
  overflow-x: auto;
}
.empty {
  border: 1px dashed #b9c9b6;
  background: #fafbf7;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid currentColor;
  opacity: 0.12;
  border-radius: 50%;
  right: -215px;
  bottom: 70px;
  box-shadow: none;
  pointer-events: none;
}
.login-story h1 {
  color: inherit;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.08;
  max-width: 520px;
  margin-top: 90px;
  font-weight: 600;
  letter-spacing: -2.4px;
}
.login-story .brand {
  color: var(--accent);
}
.login-story p {
  color: inherit;
  max-width: 400px;
  font-size: 15px;
}
.login-story .story-foot {
  font-size: 12px;
  line-height: 1.8;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background: #fafbf7;
}
.login-form form {
  width: 100%;
  max-width: 390px;
}
.login-form h1 {
  margin: 8px 0 14px;
  font-size: 32px;
}
.login-form button {
  width: 100%;
  margin-top: 10px;
}
.error {
  background: #fff0e9;
  border: 1px solid #cd9d8c;
  color: #893e29;
  border-radius: 9px;
  padding: 13px;
  margin: 12px 0;
  font-size: 13px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(440px, calc(100vw - 32px));
  z-index: 20;
}
#notice:not(:empty) {
  padding: 16px 20px;
  background: #193d2d;
  color: #fff;
  border: 1px solid #52715a;
  border-radius: 12px;
  box-shadow: 0 8px 35px #142c2526;
  font-size: 13px;
}
.agreement-body {
  white-space: pre-wrap;
  line-height: 1.8;
  background: #f4f7ef;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  gap: 10px;
}
.check input {
  width: 19px;
  min-height: 19px;
  flex-shrink: 0;
}
.search {
  max-width: 360px;
  margin: 18px 0;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline select {
  min-width: 130px;
}
.inline input {
  max-width: 160px;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  padding: 11px 0;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
  overflow-wrap: anywhere;
}
code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
footer {
  font-size: 11px;
  color: var(--muted);
  padding: 8px clamp(24px, 3vw, 52px) 26px;
  max-width: 1760px;
  margin-inline: 0;
}
.schedule-date {
  width: 61px;
  background: #eff4e7;
  color: #496446;
  text-align: center;
  border-radius: 12px;
  padding: 10px 8px;
  flex-shrink: 0;
  font-size: 11px;
}
.schedule-date b {
  font-size: 25px;
  display: block;
  font-weight: 650;
  line-height: 1.2;
  margin-top: 2px;
  color: #254b31;
}
.schedule-info {
  flex: 1;
}
.together {
  display: flex;
  align-items: center;
  gap: 16px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 226px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 13px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 28px 25px;
  }
  header {
    padding: 18px 25px;
  }
  .card,
  .panel {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 19px 16px 14px;
  }
  .sidebar .brand {
    font-size: 20px;
    padding: 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .sidebar .branch {
    padding-left: 46px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 24px;
    padding: 0 0 4px;
  }
  .nav-section {
    display: contents;
  }
  .nav-label {
    display: none;
  }
  .sidebar button {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px 12px;
  }
  .sidebar .foot {
    display: none;
  }
  .nav-icon {
    width: 16px;
    height: 16px;
  }
  header {
    padding: 14px 18px;
    min-height: 72px;
    gap: 12px;
  }
  .header-location {
    font-size: 12px;
  }
  .header-location span {
    margin: 0 4px;
  }
  .identity {
    gap: 8px;
  }
  .identity-name {
    max-width: 145px;
  }
  .identity-name strong {
    font-size: 11px;
  }
  .identity-name small {
    font-size: 10px;
  }
  .avatar {
    display: none;
  }
  .identity button {
    padding: 6px 8px;
    font-size: 11px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }
  .card::before {
    display: none;
  }
  .card .value {
    margin: 0;
    font-size: 29px;
  }
  main {
    padding: 25px 17px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .title {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
    border-radius: 13px;
  }
  .row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .row .actions {
    width: 100%;
  }
  .inline {
    flex-wrap: wrap;
  }
  .inline input,
  .inline select {
    max-width: none;
    flex: 1;
    min-width: 100px;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 32px 26px;
  }
  .login-story h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
    margin: 40px 0 18px;
  }
  .login-story .story-foot {
    display: none;
  }
  .login-form {
    padding: 36px 26px;
  }
  .banner {
    margin-bottom: 25px;
    font-size: 11px;
    padding: 10px 13px;
  }
  footer {
    padding: 0 18px 24px;
  }
}
@media (max-width: 460px) {
  .header-location {
    display: none;
  }
  header {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Statements keep optional transaction references readable on narrow screens. */
.row.ledger-entry {
  align-items: flex-start;
}
.ledger-description {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.ledger-description small {
  display: block;
}
.ledger-reference summary {
  min-height: 44px;
  padding-block: 10px;
  font-size: 0.85rem;
}
.ledger-reference code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.ledger-amount {
  white-space: nowrap;
  flex-shrink: 0;
}
.ledger-amount small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}
@media (max-width: 480px) {
  .row.ledger-entry-review {
    flex-direction: column;
    gap: 12px;
  }
  .ledger-entry-review .ledger-description {
    width: 100%;
  }
  .ledger-entry-review .ledger-amount {
    align-self: flex-end;
  }
}

.plan-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.audit-record {
  min-width: 0;
  overflow-wrap: anywhere;
}
.audit-data {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 32rem;
  overflow: auto;
}

.comparison-athletes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.comparison-athlete {
  margin: 0;
  min-width: 0;
}
.comparison-athlete h4 {
  overflow-wrap: anywhere;
}
.comparison-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.comparison-counts dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.comparison-counts dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 1.25rem;
}
@media (max-width: 760px) {
  .comparison-athletes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Newsletter preview keeps the application CSP intact. */
#email-preview {
  width: 100%;
  height: 560px;
  border: 1px solid #d9e2e5;
  border-radius: 10px;
  background: #f3f5f7;
}

label[hidden] { display: none; }

.cards:empty,.grid:empty {display:none;}
.grid:not(:has(> :nth-child(2))) {grid-template-columns:1fr;}

.athlete-name {background:transparent;border:0;padding:3px 0;min-height:32px;color:var(--ink);font-weight:650;text-align:left;text-decoration:underline;text-underline-offset:4px;}
.athlete-name:hover{background:transparent;color:var(--ink);text-decoration-thickness:2px;}.profile-heading{display:flex;gap:20px;align-items:center;margin:20px 0;}.profile-heading h1{margin:4px 0;}.profile-heading p{margin:0;}.profile-avatar{display:grid;place-items:center;flex-shrink:0;width:72px;height:72px;border-radius:18px;background:var(--brand);color:var(--brand-contrast);font-size:24px;font-weight:700;}.profile-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px;}.profile-tabs [aria-selected=true]{background:var(--brand);color:var(--brand-contrast);border-color:var(--brand);}.profile-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;}.profile-details dt{font-size:12px;color:var(--muted);}.profile-details dd{margin:6px 0;font-weight:650;}.profile-text{white-space:pre-wrap;overflow-wrap:anywhere;}@media(max-width:600px){.profile-heading{padding:20px;gap:12px;}.profile-heading h1{font-size:26px;}.profile-avatar{width:54px;height:54px;font-size:20px;}.profile-tabs button{flex:1;}}
.tools-layout{display:grid;grid-template-columns:minmax(230px,0.7fr) minmax(0,2fr);gap:24px;align-items:start}.tool-list-item{display:block;width:100%;text-align:left;margin:12px 0;padding:16px;background:var(--surface,#fff);color:var(--ink,#182920)}.tool-list-item strong,.tool-list-item small{display:block}.tool-list-item small{margin-top:6px;overflow-wrap:anywhere}.tool-block{border:1px solid var(--line,#dce2d9);border-radius:12px;padding:18px;margin:16px 0}.tool-block label{display:block;margin:12px 0}.tool-block legend{font-weight:700}.tool-block .inline{flex-wrap:wrap}[data-tool-editor] .button{display:inline-block;padding:10px 14px;border:1px solid var(--line,#dce2d9);border-radius:10px;text-decoration:none;color:var(--ink,#182920)}[data-tool-list]{max-height:65vh;overflow:auto}@media(max-width:900px){.tools-layout{grid-template-columns:1fr}[data-tool-list]{max-height:none}}
.profile-avatar{overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}.athlete-photo-editor{border-bottom:1px solid var(--line,#dce5ee);padding-bottom:24px;margin-bottom:24px}.athlete-photo-preview{width:128px;height:128px;object-fit:cover;border-radius:18px;margin-top:12px}.athlete-photo-preview[hidden]{display:none}

/* Action-first navigation: neutral surfaces with exact tenant accent. */
.sidebar { background: var(--surface); color: var(--ink); border-right: 1px solid var(--line); }
.sidebar .brand { border-left: 4px solid var(--brand); }
.sidebar button.active { background: var(--brand); color: var(--brand-contrast); }
.sidebar button:hover { background: var(--canvas); color: var(--ink); }
.sidebar button.active:hover { background: var(--brand); color: var(--brand-contrast); }
.sidebar button:focus-visible { outline-color: var(--ink); }
.sidebar nav { gap: 12px; scrollbar-color: var(--muted) transparent; }
details.nav-section { display: block; }
.nav-section > summary { cursor: pointer; padding: 12px 4px; margin: 0; min-height: 44px; color: var(--muted); }
.nav-section > button { width: 100%; margin-bottom: 3px; }
.workspace-menu-toggle { display: none !important; }
.banner { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; padding: 10px 14px; }
@media (max-width: 760px) {
  .sidebar { padding: 12px 16px; position: relative; }
  .sidebar .brand { max-width: calc(100% - 86px); padding-left: 9px; font-size: 16px; letter-spacing: .4px; }
  .sidebar .branch { display: none; }
  .workspace-menu-toggle { display: flex !important; position: absolute; top: 12px; right: 16px; align-items: center; gap: 8px; }
  .sidebar nav { display: none; margin-top: 14px; overflow-x: hidden; overflow-y: auto; max-height: 65vh; }
  .sidebar nav.mobile-open { display: block; }
  .nav-section > summary { display: list-item; margin-left: 18px; }
  .sidebar button { font-size: 14px; white-space: normal; }
  .nav-section > button { width: 100%; }
  header { min-height: 60px; padding-block: 10px; }
  main { padding-top: 16px; }
}

.session-view-switch { margin-bottom: 16px; }
.session-view-switch [aria-pressed="true"] { background: var(--brand); color: var(--brand-contrast); }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-toolbar h2 { margin: 0; }
.session-calendar { display: grid; gap: 10px; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-day { border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; background: var(--canvas); }
.calendar-day h3 { font-size: 13px; margin: 0 0 8px; }
.calendar-session { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 5px; padding: 10px; margin-bottom: 8px; border-left: 3px solid var(--brand); overflow-wrap: anywhere; }
.calendar-session strong { font-size: 13px; }
.calendar-session span { font-size: 12px; }
.calendar-day > .muted { font-size: 12px; }
.session-calendar.calendar-mode-list, .session-calendar.calendar-mode-day { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .session-calendar { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .session-calendar { grid-template-columns: 1fr; } .calendar-session { min-height: 64px; } }

.sidebar .brand { letter-spacing: .3px; font-size: 18px; overflow-wrap: anywhere; }
.sidebar .branch { margin-top: 8px; padding-left: 14px; }
[data-calendar-filter] { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 16px; }
.calendar-filters { grid-column: 1 / -1; order: 2; }
.calendar-filters > summary { padding-block: 10px; cursor: pointer; min-height: 44px; }
.calendar-filters .form-grid { margin-top: 12px; }
@media(max-width: 760px) { [data-calendar-filter] { grid-template-columns: 1fr 1fr; } [data-calendar-filter] > button { grid-column: 1 / -1; } }

@media(max-width:760px) { .has-sessions .calendar-empty { display: none; } }

.calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
@media(max-width:1100px) { .calendar-weekdays { display: none; } .session-calendar .calendar-day { grid-column-start: auto !important; } }

.profile-guardian-link, details.athlete-photo-editor { padding: 14px 0; border-block: 1px solid var(--line); margin-block: 12px; }
.profile-guardian-link > summary, details.athlete-photo-editor > summary { cursor: pointer; font-weight: 650; min-height: 44px; padding-block: 10px; }

.header-location, .card .value, input, select, textarea { color: var(--ink); }
.avatar { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); }
input, select, textarea { border-color: #8b929d; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input::placeholder, textarea::placeholder, th { color: var(--muted); }
input[readonly], th, .empty { background: var(--canvas); }
th, td, .empty { border-color: var(--line); }
.capacity-report { display: grid; gap: 16px; }
.capacity-row { padding-block: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.capacity-row p { margin-block: 6px; }
.capacity-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.capacity-heading strong { overflow-wrap: anywhere; }
.capacity-heading button { min-height: 44px; }
.capacity-meter { display: block; width: 100%; height: 20px; accent-color: var(--ink); }
.capacity-meter::-webkit-meter-bar { background: var(--canvas); border: 1px solid #747d89; border-radius: 999px; }
.capacity-meter::-webkit-meter-optimum-value { background: var(--ink); border-radius: 999px; }
.capacity-meter::-moz-meter-bar { background: var(--ink); }
.capacity-warning { font-weight: 650; color: var(--ink); }
.membership-batch-panel fieldset { min-inline-size: 0; margin-block: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.membership-batch-panel [data-batch-options] { display: grid; gap: 8px; }
.membership-batch-panel [data-batch-options] label { min-height: 44px; overflow-wrap: anywhere; }
.membership-batch-panel [data-batch-member] { overflow-wrap: anywhere; }
.membership-batch-panel h4 { margin-top: 0; font-size: 1rem; }
.enquiry-task-list { display: grid; gap: 16px; margin-block: 16px; }
.enquiry-task { padding: 16px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; min-width: 0; }
.enquiry-task h3 { margin: 0; }
[data-task-create] { min-width: min(260px,100%); max-width: 420px; padding-block: 12px; }

/* Item handovers remain usable without sideways scrolling on phones. */
.shop-handover { min-width: 0; }
.handover-items { display: grid; gap: 14px; margin-block: 18px; }
.handover-items fieldset { min-inline-size: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.handover-items legend { max-width: 100%; padding-inline: 5px; font-weight: 650; overflow-wrap: anywhere; }
.handover-items fieldset > p { margin-block: 4px 12px; }
.handover-quantities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.handover-quantities label { min-width: 0; }
.handover-quantities input { min-width: 0; min-height: 44px; }
.shop-handover [data-history-content] article { border-top: 1px solid var(--line); padding-block: 12px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .shop-handover { padding: 12px; } }

.staff-setup-page { min-height: 100vh; display: grid; place-items: start center; padding: clamp(16px,4vw,48px); background: var(--canvas); }
.staff-setup-card { width: min(100%,620px); min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.staff-setup-card .authenticator-qr { display: block; width: 240px; height: auto; max-width: 100%; image-rendering: pixelated; background: #fff; margin-block: 16px; }
.staff-setup-card .setup-key { display: block; overflow-wrap: anywhere; user-select: all; padding: 12px; background: var(--canvas); }
.staff-setup-card details { margin-block: 16px; }
.staff-invitation-panel { min-width: 0; }
.staff-invitation-panel article { overflow-wrap: anywhere; }
.staff-invitation-panel [data-private-staff-url] { width: 100%; min-width: 0; }
@media(max-width:600px){ .staff-setup-card { padding: 20px; } }

.tool-template-library > summary { cursor: pointer; font-weight: 650; min-height: 44px; }
.tool-template-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 16px; margin-top: 16px; }
.tool-template-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--canvas); overflow-wrap: anywhere; }
.tool-template-card h3 { margin-top: 0; }
.tool-copy { margin-block: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.tool-copy summary { cursor: pointer; min-height: 36px; font-weight: 600; }

.staff-access-row { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.staff-access-row > div { min-width: min(100%,240px); flex: 1; }
.staff-role-review { min-width: 0; max-width: 660px; overflow-wrap: anywhere; }
.staff-role-review textarea { min-width: 0; }

/* Preserve the native hidden contract when a component defines display. */
[hidden] { display: none !important; }

.report-metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); }
.report-metric { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: start; align-items: center; gap: 14px; }
.report-metric::before { display: none; }
.report-metric .value { margin: 0; overflow-wrap: anywhere; }
.report-metric > button { grid-column: 1 / -1; justify-self: start; min-height: 44px; max-width: 100%; }
.report-metric > .muted { min-width: 0; overflow-wrap: anywhere; }

.staff-invitation-panel > summary { cursor: pointer; min-height: 44px; display: list-item; font-weight: 650; }
.staff-invitation-panel > div { margin-top: 12px; }

[data-tool-editor] h2:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
