@import url("/browser-assets/brand-094d21a21a2c6c48770298aa0e9d1cfc.css");
:root {
  color-scheme: light;
  --bg: var(--brand-background);
  --surface: #fff;
  --ink: var(--brand-ink);
  --muted: #606c65;
  --line: #dce3dc;
  --accent: var(--brand-primary);
  --accent-soft: var(--brand-surface);
  --radius: 24px;
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-wrap: anywhere; hyphens: auto; }
body[data-gym="riverside"] { --accent: #654778; --accent-soft: #f0eaf4; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #abb9af; border-radius: 12px; color: var(--ink); background: white; padding: .65rem .8rem; }
textarea { resize: vertical; }
input[readonly] { background: var(--bg); }
label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 650; }
button:disabled { opacity: 1; color: #626b65; background: #e5e9e4; border-color: #d6ddd5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.2; letter-spacing: -.045em; margin-bottom: .65rem; font-weight: 650; }
h2 { font-size: 1.15rem; line-height: 1.35; letter-spacing: -.025em; margin-bottom: .75rem; }
h3 { font-size: 1rem; }
small, .small { font-size: .8rem; }
.muted { color: var(--muted); }
.eyebrow { display: block; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 750; color: var(--muted); margin-bottom: .55rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; background: white; padding: 1rem; transform: translateY(calc(-100% - 2rem)); }
.skip-link:focus { transform: none; }
.sidebar { width: 246px; position: fixed; inset: 0 auto 0 0; padding: 2rem 1.2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #f2f5ef; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 0 .4rem; }
.brand small { display: block; font-weight: 450; color: var(--muted); font-size: .72rem; }
.brand-mark { width: 2.625rem; height: 2.625rem; flex-shrink: 0; display: grid; place-items: center; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.login-logo { display: block; max-width: 100%; height: auto; margin: 1rem 0 1.75rem; }
.workspace-menu { margin-top: 3rem; }
.workspace-menu summary { display: none; }
.workspace-menu nav { display: grid; gap: .4rem; }
.workspace-menu nav a { min-height: 48px; border-radius: 14px; padding: .8rem; display: flex; align-items: center; gap: .8rem; color: #536258; text-decoration: none; font-size: .88rem; font-weight: 550; }
.workspace-menu nav a > span:first-child { flex-shrink: 0; white-space: nowrap; font-size: .65rem; font-variant-numeric: tabular-nums; }
.workspace-menu nav a:hover { background: #e6ece3; }
.workspace-menu nav a[aria-current="page"] { background: var(--accent); color: white; }
.nav-count { margin-left: auto; font-size: .72rem; background: white; border-radius: 8px; padding: .05rem .45rem; color: var(--accent); }
.sidebar-note { margin-top: auto; padding: 1.5rem .5rem 0; font-size: .78rem; color: var(--muted); }
.sidebar-note .eyebrow { line-height: 1.8; }
.workspace { margin-left: 246px; min-width: 0; }
.topbar { min-height: 96px; border-bottom: 1px solid var(--line); padding: 1rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); }
.gym-switch { max-width: 440px; }
.gym-switch label { color: var(--muted); font-weight: 500; font-size: .68rem; }
.gym-switch select { min-width: 0; flex: 1; border: 0; background: var(--bg); font-size: .88rem; font-weight: 600; }
.session-state { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #abb4ac; }
.preview-banner { display: flex; align-items: center; gap: 1rem; padding: .7rem 2.5rem; background: #f5efd9; color: #655322; font-size: .75rem; border-bottom: 1px solid #e9dfbc; }
.preview-banner strong { font-size: .62rem; letter-spacing: .1em; white-space: nowrap; }
main { padding: 2.3rem 2.5rem 1rem; max-width: 1520px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.page-heading p:last-child { margin-bottom: 0; font-size: .9rem; }
.page-heading > .button { flex-shrink: 0; }
.button { min-height: 44px; max-width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: .7rem; border-radius: 18px; border: 1px solid transparent; padding: .65rem 1rem; font-size: .8rem; font-weight: 650; text-decoration: none; line-height: 1.4; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover:not(:disabled) { filter: brightness(.9); }
.subtle { border-color: var(--line); background: var(--surface); color: var(--ink); }
.subtle:hover { background: var(--accent-soft); }
.inline-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gym-switch .inline-controls { flex-wrap: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric p { font-size: .78rem; font-weight: 550; color: var(--muted); margin-bottom: .5rem; }
.metric > strong { display: block; font-size: 2.35rem; font-weight: 600; letter-spacing: -.05em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metric strong small { font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.metric > span { display: block; font-size: .68rem; color: var(--muted); margin-top: .5rem; }
.overview-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-heading h2 { margin-bottom: 0; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); padding: .25rem .5rem; font-size: .65rem; font-weight: 600; }
.count-circle { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: .4rem .7rem; font-size: .8rem; font-weight: 700; }
.distribution > .muted { font-size: .78rem; }
.bar-row { display: grid; grid-template-columns: minmax(85px, 1fr) 2fr 24px; gap: .8rem; align-items: center; font-size: .76rem; margin: .85rem 0; }
.bar-row strong { text-align: right; font-size: .75rem; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 10px; border: 0; border-radius: 8px; background: var(--accent-soft); accent-color: var(--accent); }
meter::-webkit-meter-bar { border: 0; background: var(--accent-soft); border-radius: 8px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 8px; }
meter::-moz-meter-bar { background: var(--accent); border-radius: 8px; }
.attention-item { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.attention-item > span:nth-child(2) { flex: 1; min-width: 0; }
.attention-item strong { display: block; font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.attention-item small { display: block; color: var(--muted); font-size: .66rem; margin: .15rem 0; }
.attention-marker { width: 8px; height: 8px; border-radius: 50%; background: #a77825; flex-shrink: 0; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: .8rem; font-weight: 600; background: transparent; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.activity-section { margin-top: 2rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.unavailable { border-style: dashed; background: #f6f7f2; }
.unavailable h3 { color: var(--muted); font-size: .78rem; }
.unavailable > strong { display: block; font-size: 1rem; margin-bottom: .6rem; }
.unavailable p, .activity-grid p { font-size: .78rem; color: var(--muted); margin-bottom: 0; }
.filters { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; padding: 1.2rem; margin-bottom: .5rem; }
.filters > div { min-width: 120px; flex: 1; }
.filters .search-field { flex: 2; min-width: 190px; }
.filters input, .filters select { font-size: .8rem; }
.htmx-indicator { visibility: hidden; min-height: 1.25rem; margin: .25rem .25rem .75rem; font-size: .75rem; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { visibility: visible; }
.error-notice { border: 1px solid #cf9e95; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; color: #7f3027; background: #fff2ed; font-size: .85rem; }
.table-card { padding: 0; overflow: hidden; }
.table-card > .card-heading { padding: 1.25rem 1.5rem; margin: 0; }
.table-card h2 { font-size: .95rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; white-space: nowrap; }
thead { background: #f6f8f3; }
thead th { color: var(--muted); font-size: .67rem; font-weight: 650; padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
tbody td, tbody th { padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); font-weight: 450; }
tbody tr:hover { background: #fafbf7; }
.boulder-label { display: flex; align-items: center; gap: .8rem; }
.boulder-label strong { font-weight: 600; }
.hold-dot { width: 14px; height: 14px; border: 1px solid #0003; border-radius: 6px; flex-shrink: 0; }
.hold-dot.yellow { background: #edc64b; }
.hold-dot.blue { background: #5893bf; }
.hold-dot.green { background: #6b9c69; }
.hold-dot.red { background: #c56d63; }
.hold-dot.purple { background: #9475b3; }
.hold-dot.orange { background: #d68f4b; }
.record-id { display: block; color: var(--muted); font-size: .65rem; margin-top: .25rem; }
.status { font-size: .65rem; border-radius: 8px; padding: .3rem .55rem; background: #eff1ed; color: #58645c; text-transform: capitalize; font-weight: 650; display: inline-block; }
.status.active, .status.accepted { background: #e7f1e7; color: #32603c; }
.status.draft, .status.pending { background: #f8eed6; color: #785b20; }
.status.archived, .status.rejected { background: #eef0f2; color: #55616b; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.report-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; white-space: normal; max-width: 360px; }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state p { color: var(--muted); font-size: .9rem; }
.back-link { margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.report-detail h2 { font-size: 1.5rem; margin-top: 1.5rem; }
blockquote { margin: 1.5rem 0; border-left: 3px solid var(--line); padding: .5rem 1rem; line-height: 1.8; font-size: .92rem; }
.context-box { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; margin: 1rem 0; }
.context-box > strong { font-size: .9rem; }
.notice { padding: 1rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; margin: 1rem 0 0; }
.reply-panel label { margin-top: 1.2rem; }
.reply-panel .inline-controls { margin-top: 1rem; }
.access-intro { margin-bottom: 1.5rem; }
.access-intro h2 { margin-top: 1rem; }
.workspace-footer { max-width: 1520px; margin: 1rem auto 0; padding: 1rem 2.5rem 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .65rem; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.error-page main { width: min(100%, 700px); padding: 2rem; margin: auto; }
@media (max-width: 1200px) {
  main { padding: 2rem 1.5rem 1rem; }
  .topbar, .preview-banner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .detail-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { position: static; width: auto; padding: 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: .85rem; }
  .workspace { margin-left: 0; }
  .workspace-menu { margin-top: .8rem; }
  .workspace-menu summary { display: list-item; cursor: pointer; padding: .6rem .5rem; min-height: 44px; font-weight: 650; font-size: .8rem; }
  .workspace-menu nav { margin-top: .5rem; }
  .sidebar-note { display: none; }
  .topbar { padding: 1rem; flex-wrap: wrap; }
  .gym-switch { width: 100%; max-width: none; }
  .session-state { font-size: .7rem; }
  .preview-banner { padding: .8rem 1rem; align-items: flex-start; flex-direction: column; gap: .3rem; }
  main { padding: 1.5rem 1rem 1rem; }
  .card { padding: 1.2rem; }
  .table-card { padding: 0; }
  .metric-grid { gap: .6rem; }
  .metric > strong { font-size: 2rem; }
  .metric > span { font-size: .65rem; }
  .overview-grid { gap: 1rem; }
  .filters > div, .filters .search-field { min-width: 100%; }
  .filters > .button { flex: 1; }
  .bar-row { grid-template-columns: minmax(90px, 1fr) 1.5fr 22px; gap: .5rem; }
  .pagination { flex-wrap: wrap; padding: 1rem; }
  .pagination .inline-controls { width: 100%; justify-content: flex-end; }
  .workspace-footer { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.browser-language { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.browser-language a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .75rem; font-size: .8rem; border-radius: 10px; text-decoration: none; }
.browser-language a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
h1, h2, h3, .metric > strong { overflow-wrap: anywhere; }
.card-heading > div { min-width: 0; }
.section-heading { flex-wrap: wrap; }
@media (max-width: 420px) {
  .card-heading { flex-wrap: wrap; align-items: flex-start; }
  .metric-grid { grid-template-columns: 1fr; }
  .gym-switch .inline-controls { flex-direction: column; align-items: stretch; }
  .gym-switch .button { align-self: flex-end; }
}
