:root {
  --ink: #11130f;
  --ink-soft: #1b1e18;
  --paper: #f2f1eb;
  --surface: #fbfaf6;
  --white: #ffffff;
  --lime: #caff3f;
  --lime-dark: #739615;
  --coral: #ff735c;
  --blue: #8bb8ff;
  --purple: #b69cff;
  --muted: #55594f;
  --line: #deded5;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; width: 100%; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; color: var(--ink); background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.preview-notice {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: 38px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #dfe2d7;
  background: #080a07;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 11px;
  letter-spacing: .01em;
}
.preview-notice strong { color: var(--lime); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; }
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(202,255,63,.75); }

.app-shell { min-height: 100vh; padding-top: 38px; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 38px auto 0 0;
  width: 244px;
  padding: 30px 20px 22px;
  display: flex;
  flex-direction: column;
  color: #f4f5ef;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,.06);
}
.brand-lockup { min-height: 55px; display: flex; align-items: center; gap: 13px; padding: 0 9px; }
.brand-lockup > span:last-child, .sidebar-foot > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.brand-lockup strong { font-size: 17px; line-height: 1; letter-spacing: -.04em; }
.brand-lockup small, .sidebar-foot small { color: rgba(255,255,255,.67); font-size: 10px; letter-spacing: .04em; }
.brand-mark { width: 35px; color: var(--lime); }
.nav-list { margin-top: 47px; display: grid; gap: 7px; }
.nav-list::before { content: "Workspace"; padding: 0 12px 9px; color: rgba(255,255,255,.67); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.nav-item { min-height: 45px; padding: 0 12px; display: flex; align-items: center; gap: 13px; border-radius: 10px; color: rgba(255,255,255,.69); font-size: 12px; font-weight: 650; }
.nav-item.active { color: var(--white); background: rgba(255,255,255,.075); box-shadow: inset 2px 0 0 var(--lime); }
.nav-icon { width: 17px; display: inline-grid; place-items: center; color: rgba(255,255,255,.7); font-size: 15px; }
.nav-item.active .nav-icon { color: var(--lime); }
.sidebar-foot { margin-top: auto; padding: 18px 9px 0; display: flex; align-items: center; gap: 11px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot strong { font-size: 10px; }
.gym-avatar { width: 33px; height: 33px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 9px; font-size: 10px; font-weight: 900; letter-spacing: .04em; }

.workspace { grid-column: 2; min-width: 0; padding: 0 clamp(24px, 4vw, 64px); }
.topbar { min-height: 120px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.topbar h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.055em; }
.preview-chip, .quiet-chip { min-height: 29px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.38); font-size: 10px; font-weight: 700; }
.preview-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); }

.sample-workspace { padding: 26px 0 42px; }
.sample-label { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.sample-label > span { padding: 6px 9px; color: var(--ink); background: var(--lime); border-radius: 5px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.sample-label p { margin: 0; color: var(--muted); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { position: relative; overflow: hidden; min-height: 185px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card-dark { color: var(--white); background: var(--ink-soft); border-color: var(--ink-soft); }
.metric-card-lime { background: var(--lime); border-color: var(--lime); }
.metric-head { min-height: 30px; display: flex; justify-content: space-between; align-items: flex-start; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card-dark .metric-head { color: rgba(255,255,255,.72); }
.metric-card-lime .metric-head { color: #3b430f; }
.metric-arrow { color: inherit; font-size: 15px; }
.metric-card > strong { display: block; margin-top: 16px; font-size: clamp(28px, 3vw, 39px); line-height: 1; letter-spacing: -.055em; }
.metric-card > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.metric-card-dark > p { color: rgba(255,255,255,.68); }
.metric-card-lime > p { color: #3b430f; }
.positive { color: var(--lime); font-style: normal; font-weight: 800; }
.positive.dark { color: var(--ink); }
.sparkline { position: absolute; inset: auto 18px 0; height: 48px; display: flex; align-items: end; gap: 5px; opacity: .78; }
.sparkline i { flex: 1; min-height: 4px; background: linear-gradient(to top, rgba(202,255,63,.18), var(--lime)); border-radius: 3px 3px 0 0; }
.height-27 { height: 27%; }.height-31 { height: 31%; }.height-33 { height: 33%; }.height-38 { height: 38%; }
.height-49 { height: 49%; }.height-52 { height: 52%; }.height-56 { height: 56%; }.height-57 { height: 57%; }
.height-61 { height: 61%; }.height-68 { height: 68%; }.height-74 { height: 74%; }.height-81 { height: 81%; }
.height-82 { height: 82%; }.height-91 { height: 91%; }
.status-live { color: #466200; text-transform: uppercase; letter-spacing: .1em; }
.status-live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--lime-dark); }
.progress { height: 4px; margin-top: 27px; background: #e4e4dc; border-radius: 99px; }
.progress span { height: 100%; display: block; background: var(--ink); border-radius: inherit; }
.progress .width-67 { width: 67%; }
.metric-card > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.revenue-rule { height: 36px; margin-top: 21px; border-bottom: 1px solid rgba(17,19,15,.22); }
.revenue-rule span { width: 76%; height: 100%; display: block; border-bottom: 3px solid var(--ink); }
.score-ring { width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid var(--lime); border-radius: 50%; color: var(--ink); font-size: 10px; font-weight: 850; box-shadow: inset 0 0 0 2px var(--surface); }
.health-dots { margin-top: 28px; display: flex; gap: 5px; }
.health-dots i { height: 5px; flex: 1; background: var(--lime-dark); border-radius: 99px; }
.health-dots i.muted { background: #d8d9d1; }

.dashboard-grid { margin-top: 13px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 13px; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-kicker { margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.panel h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.quiet-chip { min-height: 27px; font-size: 10px; }
.quiet-chip.warm { color: #8b3b2d; background: #fff0ec; border-color: #ffd7cf; }
.chart { position: relative; height: 230px; margin-top: 26px; padding: 0 4px 29px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(8px, 2vw, 23px); border-bottom: 1px solid var(--line); }
.chart-line { position: absolute; z-index: 0; left: 0; right: 0; height: 1px; background: #ecece5; }
.line-one { top: 15%; }.line-two { top: 45%; }.line-three { top: 75%; }
.bar-column { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar { width: min(30px, 74%); min-height: 10px; background: #d6d8cf; border-radius: 5px 5px 1px 1px; }
.bar.sample-peak { background: var(--ink); box-shadow: inset 0 4px 0 var(--lime); }
.bar.future { background: repeating-linear-gradient(135deg, #e4e5de 0 5px, #f4f4ef 5px 10px); }
.bar-column small { position: absolute; top: calc(100% + 10px); color: var(--muted); font-size: 10px; }
.chart-summary { padding-top: 17px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.chart-summary span { display: flex; align-items: center; gap: 7px; }
.chart-summary strong { color: var(--ink); font-size: 10px; }
.legend { width: 7px; height: 7px; display: inline-block; border-radius: 2px; background: var(--ink); box-shadow: inset 0 2px 0 var(--lime); }
.schedule-list { margin-top: 20px; }
.schedule-item { min-height: 71px; display: grid; grid-template-columns: 48px 3px minmax(0,1fr) 32px; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.schedule-item:first-child { border-top: 0; }
.schedule-item time { font-size: 12px; font-weight: 800; }
.schedule-item time small { color: var(--muted); font-size: 10px; }
.class-color { width: 3px; height: 36px; border-radius: 99px; }
.color-lime { background: var(--lime-dark); }.color-coral { background: var(--coral); }.color-blue { background: var(--blue); }
.schedule-item > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.schedule-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.schedule-item div small { color: var(--muted); font-size: 10px; }
.coach-avatar, .member-initials { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 10px; font-weight: 850; }
.coach-avatar.coral, .member-initials { background: #ffd7cf; }.coach-avatar.blue, .member-initials.blue { background: #dce9ff; }.member-initials.purple { background: #ebe4ff; }
.attention-panel { grid-column: 1 / -1; }
.attention-list { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.attention-list > div { min-width: 0; min-height: 68px; padding: 11px; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.attention-list p { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.attention-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attention-list small { color: var(--muted); font-size: 10px; }
.attention-list em { padding: 5px 7px; color: #7a3024; background: #fff0ec; border-radius: 5px; font-size: 10px; font-weight: 750; font-style: normal; }
.attention-list em.medium { color: #665020; background: #fff6d7; }.attention-list em.positive-tag { color: #49630b; background: #f0ffd1; }
.workspace-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .attention-list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; min-height: auto; padding: 18px 20px; display: block; }
  .brand-lockup { min-height: 42px; }
  .nav-list { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 3px; }
  .nav-list::before { display: none; }
  .nav-item { min-width: 0; min-height: 40px; padding-inline: 9px; }
  .nav-item.active { box-shadow: inset 0 -2px 0 var(--lime); }
  .sidebar-foot { display: none; }
  .workspace { padding-inline: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .attention-panel { grid-column: auto; }
}

@media (max-width: 560px) {
  .preview-notice { min-height: 50px; padding-inline: 14px; flex-wrap: wrap; align-content: center; line-height: 1.2; }
  .app-shell { padding-top: 50px; }
  .sidebar { margin-top: 0; }
  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { min-height: 103px; }
  .preview-chip { display: none; }
  .sample-label { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 174px; }
  .panel { padding: 19px; }
  .chart { gap: 5px; }
  .chart-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .attention-list > div { grid-template-columns: 36px minmax(0,1fr); }
  .attention-list em { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
