.icon { width: 21px; height: 21px; flex-shrink: 0; vertical-align: middle; }
.business-panel { padding: 28px; min-width: 0; }
.datetime-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.datetime-field legend { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.workout-sheet { max-width: 1000px; }
.workout-sheet-header { padding: 32px; border-bottom: 1px solid var(--ch-border); background: var(--ch-surface-raised); }
.workout-sheet-header > h2 { font-size: 28px; margin: 16px 0 24px; overflow-wrap: anywhere; }
.workout-metadata { display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; }
.workout-metadata > span { overflow-wrap: anywhere; }
.workout-metadata strong { display: block; font-size: 12px; color: var(--ch-text-muted); margin-bottom: 6px; }
.workout-section { padding: 28px 32px; border-bottom: 1px solid var(--ch-border); }
.workout-section:last-child { border-bottom: 0; }
.workout-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.workout-section-title > span { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; font-size: 12px; font-weight: 650; color: var(--ch-link); border: 1px solid var(--ch-border); background: var(--ch-selected); border-radius: 8px; }
.workout-section-title h2 { margin: 0; }
@media (max-width: 760px) { .page-heading { flex-wrap: wrap; } .workout-sheet-header, .workout-section { padding: 24px 20px; } }
.participant-preview { padding: 16px 0; border-bottom: 1px solid var(--ch-border); margin-bottom: 20px; }
.page-heading > div { min-width: 0; overflow-wrap: anywhere; }
.business-panel table { min-width: 640px; }
.business-panel td { min-width: 100px; }
.business-panel td:first-child { min-width: 150px; }
.business-panel > form.form-stack { max-width: 760px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 28px; }
.filter-form .field { flex: 1 1 220px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.summary-card { padding: 24px; }
.summary-card h2 { font-size: 14px; color: var(--ch-text-muted); }
.summary-card strong { font-size: 24px; overflow-wrap: anywhere; }
.section-space { margin-top: 24px; }
.record-list { margin-bottom: 24px; }
.record-link { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ch-border); padding: 16px 0; text-decoration: none; overflow-wrap: anywhere; }
a.record-link:hover { color: var(--ch-link); }
.record-link > strong { flex: 1 1 180px; }
.record-link > span { color: var(--ch-text-muted); font-size: 14px; }
.prose-text, td { overflow-wrap: anywhere; }
.workout-copy h2:not(:first-child) { margin-top: 32px; }
.workout-copy .button { margin-top: 28px; }
.pagination { margin-top: 20px; }
@media (max-width: 600px) { .business-panel { padding: 20px; } .summary-grid { grid-template-columns: 1fr; } .summary-card { padding: 20px; } }
.muted { color: var(--ch-text-muted); }
.eyebrow { color: var(--ch-text-muted); font-size: 14px; margin-bottom: 12px; }
.section-kicker, .nav-caption { color: var(--ch-text-muted); font-size: 11px; font-weight: 650; letter-spacing: 1.8px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--ch-green); color: var(--ch-on-primary); border-radius: var(--ch-radius-control); }
.skip-link:focus { top: 12px; }
.brand-on-light { display: none; }
[data-theme="light"] .brand-on-dark { display: none; }
[data-theme="light"] .brand-on-light { display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--ch-radius-control); font-size: 14px; line-height: 1.5; font-weight: 650; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--ch-green); color: var(--ch-on-primary); }
.button-primary:hover { background: var(--ch-green-light); }
.button-secondary { background: var(--ch-surface-raised); border-color: var(--ch-control-border); color: var(--ch-text); }
.button-secondary:hover { border-color: var(--ch-link); background: var(--ch-selected); }
.button-danger { background: var(--ch-danger-bg); color: var(--ch-danger); border-color: var(--ch-danger); }
.button-danger:hover { border-width: 2px; padding: 10px 17px; }
.button-quiet { color: var(--ch-text-muted); background: transparent; }
.button-quiet:hover { color: var(--ch-text); background: var(--ch-surface-raised); }
.button:active, .icon-button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button[aria-busy="true"] { cursor: progress; }
.button-full { width: 100%; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--ch-radius-control); background: transparent; color: var(--ch-text-muted); border: 1px solid var(--ch-border); }
.icon-button:hover { color: var(--ch-link); background: var(--ch-selected); }
.panel { background: var(--ch-surface); border: 1px solid var(--ch-border); border-radius: var(--ch-radius-card); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--ch-border); }
.panel-heading h2 { margin: 6px 0 0; }
.date-chip { flex-shrink: 0; border: 1px solid var(--ch-border); border-radius: 8px; padding: 7px 10px; color: var(--ch-text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 28px; }
.empty-state h3, .empty-state h2 { margin-bottom: 10px; }
.empty-state p { max-width: 380px; color: var(--ch-text-muted); font-size: 14px; }
.empty-state-large { padding: 88px 24px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; background: var(--ch-surface-raised); color: var(--ch-link); border: 1px solid var(--ch-border); border-radius: 16px; margin-bottom: 24px; }
.empty-icon .icon { width: 27px; height: 27px; }
.panel-footnote { display: flex; gap: 8px; align-items: center; padding: 16px 28px; border-top: 1px solid var(--ch-border); color: var(--ch-text-muted); font-size: 12px; }
.panel-footnote .icon { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge-neutral { background: var(--ch-surface-raised); color: var(--ch-text-muted); border: 1px solid var(--ch-border); }
.badge-success { background: var(--ch-success-bg); color: var(--ch-success); }
.badge-warning { background: var(--ch-warning-bg); color: var(--ch-warning); }
.badge-danger { background: var(--ch-danger-bg); color: var(--ch-danger); }
.badge-info { background: var(--ch-info-bg); color: var(--ch-info); }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
input:not([type="hidden"]):not([type="radio"]), textarea, select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; background: var(--ch-bg); color: var(--ch-text); border: 1px solid var(--ch-control-border); border-radius: var(--ch-radius-control); font-size: 16px; }
textarea { resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--ch-text-muted); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--ch-link); }
[aria-invalid="true"] { border-color: var(--ch-danger) !important; }
.field-error { color: var(--ch-danger); font-size: 13px; margin: 0; }
.errorlist { padding-left: 20px; margin: 0; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--ch-radius-control); border: 1px solid var(--ch-border); background: var(--ch-surface-raised); margin-bottom: 20px; font-size: 14px; }
.notice-error { color: var(--ch-danger); background: var(--ch-danger-bg); border-color: var(--ch-danger); }
.notice-success { color: var(--ch-success); background: var(--ch-success-bg); }
.notice-warning { color: var(--ch-warning); background: var(--ch-warning-bg); }
.notice .icon { margin-top: 2px; }
.connection-banner { position: relative; z-index: 30; padding: 12px 20px; color: var(--ch-warning); background: var(--ch-warning-bg); text-align: center; font-size: 14px; }
.preview-label { color: var(--ch-text-muted); font-size: 12px; padding-bottom: 24px; }
.preview-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ch-green); }
.preview-label span { padding-left: 8px; }
.theme-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; border: 0; padding: 0; }
.theme-options legend { padding-bottom: 8px; font-size: 14px; }
.theme-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--ch-control-border); border-radius: var(--ch-radius-control); cursor: pointer; }
.theme-choice:has(input:checked) { border-color: var(--ch-link); background: var(--ch-selected); }
.theme-choice input { width: 18px; height: 18px; accent-color: var(--ch-link); }
.settings-panel { max-width: 760px; padding: 32px; }
.settings-panel p { color: var(--ch-text-muted); font-size: 14px; }
.settings-list { margin: 20px 0; }
.settings-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.settings-list dt { color: var(--ch-text-muted); }
.settings-list dd { margin: 0; text-align: right; }
hr { border: 0; border-top: 1px solid var(--ch-border); margin: 32px 0; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; color: var(--ch-text-muted); font-size: 12px; padding: 0 0 16px; }
th { text-align: left; font-size: 12px; color: var(--ch-text-muted); font-weight: 600; }
td, th { padding: 14px 10px; border-bottom: 1px solid var(--ch-border); }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.table-secondary { display: block; font-size: 12px; color: var(--ch-text-muted); }
.align-right { text-align: right; font-variant-numeric: tabular-nums; }
.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.specimen { padding: 28px; min-width: 0; }
.specimen-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.logo-specimen { display: grid; place-items: center; min-height: 140px; }
.logo-specimen img { height: auto; }
.button-examples, .badge-examples { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-examples { margin-top: 20px; }
.sample-result { min-height: 24px; color: var(--ch-link); font-size: 13px; margin: 12px 0 0; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { min-height: 92px; border: 1px solid var(--ch-border); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; justify-content: end; font-size: 12px; }
.swatch code { font-size: 10px; }
.swatch-bg { background: #07110f; color: #f4f7f5; }
.swatch-surface { background: #0d1b18; color: #f4f7f5; }
.swatch-accent { background: var(--ch-green); color: var(--ch-on-primary); }
@media (max-width: 1020px) { .design-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .panel-heading, .specimen { padding: 20px; }
  .settings-panel { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .preview-label span { display: block; padding: 4px 0 0 14px; }
  .empty-state { padding: 40px 20px; }
  .panel-footnote { padding: 14px 20px; }
  .swatch { padding: 8px; }
}
@media print {
  :root { color-scheme: light; --ch-bg: #fff; --ch-surface: #fff; --ch-text: #17231f; --ch-text-muted: #17231f; --ch-border: #888; }
  .sidebar, .workspace-header, .mobile-navigation, .workspace-footer, .preview-label, .skip-link, dialog, .connection-banner { display: none !important; }
  .app-shell { display: block !important; }
  .main-content { padding: 0 !important; }
  .panel { break-inside: avoid; }
}
/* Financial summaries and accessible monthly cash chart. */
.financial-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.financial-kpis .summary-card { min-width: 0; }
.financial-kpis .summary-card strong { font-size: clamp(21px, 2.1vw, 30px); overflow-wrap: anywhere; }
.financial-kpis .summary-card > .muted { display: block; font-size: 13px; margin-top: 10px; }
.financial-note { font-size: 13px; margin: 16px 0 28px; }
.report-filter { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.report-filter select { min-width: 120px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.report-grid > section { min-width: 0; }
.report-grid .business-panel table { min-width: 360px; }
.report-grid td:last-child, .report-grid th:last-child { text-align: right; white-space: nowrap; }
.report-owner-mobile { display: none; }
.report-grid a[aria-current="true"] { font-weight: 750; text-decoration-thickness: 3px; }
@media (max-width: 600px) {
  .report-grid .business-panel table { min-width: 0; }
  .report-grid .report-owner { display: none; }
  .report-owner-mobile { display: block; font-size: 11px; color: var(--ch-text-muted); }
  .report-grid td:first-child { overflow-wrap: anywhere; }
}
.income-chart-scroll { overflow-x: auto; padding-top: 18px; }
.income-chart { display: grid; grid-template-columns: repeat(12, minmax(58px, 1fr)); gap: 12px; min-width: 840px; padding: 0 4px 8px; }
.income-month { text-align: center; font-size: 13px; }
.income-track { height: 200px; display: flex; align-items: end; justify-content: center; border-bottom: 1px solid var(--ch-control-border); background: repeating-linear-gradient(to top, transparent 0, transparent 49px, var(--ch-border) 50px); }
.income-bar { width: 68%; min-height: 3px; border-radius: 6px 6px 0 0; background: var(--ch-green); position: relative; }
.income-bar.is-zero { background: var(--ch-border); }
.income-month strong { display: block; margin-top: 12px; }
.income-value { font-size: 11px; color: var(--ch-text-muted); white-space: nowrap; }
.income-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 2; background: var(--ch-text); color: var(--ch-bg); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.income-month:hover .income-tooltip { display: block; }
@media (max-width: 1100px) { .financial-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .financial-kpis { grid-template-columns: minmax(0, 1fr); } }

/* Bounded chart heights preserve the strict style-src policy, including without JS. */
.income-height-0 { height: 0%; }
.income-height-1 { height: 1%; }
.income-height-2 { height: 2%; }
.income-height-3 { height: 3%; }
.income-height-4 { height: 4%; }
.income-height-5 { height: 5%; }
.income-height-6 { height: 6%; }
.income-height-7 { height: 7%; }
.income-height-8 { height: 8%; }
.income-height-9 { height: 9%; }
.income-height-10 { height: 10%; }
.income-height-11 { height: 11%; }
.income-height-12 { height: 12%; }
.income-height-13 { height: 13%; }
.income-height-14 { height: 14%; }
.income-height-15 { height: 15%; }
.income-height-16 { height: 16%; }
.income-height-17 { height: 17%; }
.income-height-18 { height: 18%; }
.income-height-19 { height: 19%; }
.income-height-20 { height: 20%; }
.income-height-21 { height: 21%; }
.income-height-22 { height: 22%; }
.income-height-23 { height: 23%; }
.income-height-24 { height: 24%; }
.income-height-25 { height: 25%; }
.income-height-26 { height: 26%; }
.income-height-27 { height: 27%; }
.income-height-28 { height: 28%; }
.income-height-29 { height: 29%; }
.income-height-30 { height: 30%; }
.income-height-31 { height: 31%; }
.income-height-32 { height: 32%; }
.income-height-33 { height: 33%; }
.income-height-34 { height: 34%; }
.income-height-35 { height: 35%; }
.income-height-36 { height: 36%; }
.income-height-37 { height: 37%; }
.income-height-38 { height: 38%; }
.income-height-39 { height: 39%; }
.income-height-40 { height: 40%; }
.income-height-41 { height: 41%; }
.income-height-42 { height: 42%; }
.income-height-43 { height: 43%; }
.income-height-44 { height: 44%; }
.income-height-45 { height: 45%; }
.income-height-46 { height: 46%; }
.income-height-47 { height: 47%; }
.income-height-48 { height: 48%; }
.income-height-49 { height: 49%; }
.income-height-50 { height: 50%; }
.income-height-51 { height: 51%; }
.income-height-52 { height: 52%; }
.income-height-53 { height: 53%; }
.income-height-54 { height: 54%; }
.income-height-55 { height: 55%; }
.income-height-56 { height: 56%; }
.income-height-57 { height: 57%; }
.income-height-58 { height: 58%; }
.income-height-59 { height: 59%; }
.income-height-60 { height: 60%; }
.income-height-61 { height: 61%; }
.income-height-62 { height: 62%; }
.income-height-63 { height: 63%; }
.income-height-64 { height: 64%; }
.income-height-65 { height: 65%; }
.income-height-66 { height: 66%; }
.income-height-67 { height: 67%; }
.income-height-68 { height: 68%; }
.income-height-69 { height: 69%; }
.income-height-70 { height: 70%; }
.income-height-71 { height: 71%; }
.income-height-72 { height: 72%; }
.income-height-73 { height: 73%; }
.income-height-74 { height: 74%; }
.income-height-75 { height: 75%; }
.income-height-76 { height: 76%; }
.income-height-77 { height: 77%; }
.income-height-78 { height: 78%; }
.income-height-79 { height: 79%; }
.income-height-80 { height: 80%; }
.income-height-81 { height: 81%; }
.income-height-82 { height: 82%; }
.income-height-83 { height: 83%; }
.income-height-84 { height: 84%; }
.income-height-85 { height: 85%; }
.income-height-86 { height: 86%; }
.income-height-87 { height: 87%; }
.income-height-88 { height: 88%; }
.income-height-89 { height: 89%; }
.income-height-90 { height: 90%; }
.income-height-91 { height: 91%; }
.income-height-92 { height: 92%; }
.income-height-93 { height: 93%; }
.income-height-94 { height: 94%; }
.income-height-95 { height: 95%; }
.income-height-96 { height: 96%; }
.income-height-97 { height: 97%; }
.income-height-98 { height: 98%; }
.income-height-99 { height: 99%; }
.income-height-100 { height: 100%; }
.button-danger { background: var(--ch-danger-bg); color: var(--ch-danger); border: 1px solid var(--ch-danger); }
.deletion-panel { max-width: 1000px; }
.deletion-panel table { min-width: 0; }
.deletion-panel td, .deletion-panel td:first-child { min-width: 0; }
.deletion-panel .settings-list div { flex-wrap: nowrap; }
.deletion-panel .settings-list dt { flex: 1; }
.deletion-panel .settings-list dd { flex: none; }
.deletion-panel .notice { display: block; }
.deletion-panel .notice strong { display: block; margin-bottom: 6px; }
@media (max-width: 600px) {
  .deletion-panel table { font-size: 12px; }
  .deletion-panel th, .deletion-panel td { padding: 12px 4px; }
  .deletion-panel th:not(:first-child), .deletion-panel td:not(:first-child) { text-align: right; }
  .deletion-panel td:not(:first-child) { white-space: nowrap; }
}
.gross-amount { display: block; font-size: clamp(28px, 4vw, 40px); margin: 12px 0; letter-spacing: -1px; }
.report-gross { border-top: 3px solid var(--ch-green); }
.security-page { max-width: 720px; margin: 0 auto; padding: 40px 16px; }
.security-brand { display: block; width: 220px; margin-bottom: 28px; }
.security-card h1 { font-size: clamp(24px, 4vw, 32px); }
.security-qr { display: block; max-width: 100%; height: auto; background: white; margin: 24px auto; }
.security-key { display: block; overflow-wrap: anywhere; user-select: all; padding: 16px; background: var(--ch-surface-raised); }
.security-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 0; margin: 24px 0; list-style: none; }
.security-codes li { padding: 12px; background: var(--ch-surface-raised); border-radius: 8px; font-size: 16px; user-select: all; }
