:root {
  --ink: #1c201a;
  --muted: #606659;
  --line: #dedfd6;
  --paper: #f1f1ea;
  --lime: #d0ff48;
  --dark: #151714;
}
body { min-height: 100dvh; display: flex; flex-direction: column; }
#app { flex: 1; }
.access-screen { min-height: calc(100dvh - 76px); display: grid; place-items: center; padding: 18px; background: var(--dark); }
.site-footer { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 22px; background: #111410; color: white; border-top: 1px solid #363d30; padding: 9px clamp(12px,4vw,48px); }
.site-footer img { display: block; width: 118px; height: 56px; object-fit: contain; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; padding: 8px; color: inherit; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer svg { color: #40ed7e; }
@media print { .site-footer { display: none; } }
.access-card { padding: 25px; width: min(100%, 410px); }
.access-card form, .access-card label { display: grid; gap: 8px; }
.access-card form { gap: 12px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1.35fr; gap: 6px; margin-top: 19px; padding: 5px; border-radius: 7px; background: #e9ebdf; }
.login-tabs a { display: grid; place-items: center; min-height: 44px; padding: 6px; text-align: center; text-decoration: none; font-weight: 750; border-radius: 4px; }
.login-tabs a[aria-current="page"] { background: var(--lime); color: var(--ink); box-shadow: inset 0 -3px #65851c; }
.login-tabs a:not([aria-current]) { background: #fff; color: var(--muted); }
.account-actions { display: flex; gap: 5px; margin-top: 8px; }
.owner-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.owner-tabs [aria-current="page"] { background: var(--lime); border-color: #94b62f; }
.owner-stats { grid-template-columns: repeat(auto-fit,minmax(min(100%,195px),1fr)); }
.owner-company-form { padding: 0 16px 16px; }
[data-company-results] tr[hidden], [data-company-empty][hidden] { display: none; }
.feature-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.feature-picker label { display: flex; align-items: center; }
.feature-picker input { min-height: auto; }

.shell { grid-template-columns: 222px minmax(0, 1fr); }
.sidebar { padding: 19px 12px 12px; gap: 16px; }
.brand { display: block; position: relative; overflow: hidden; padding: 0; width: 100%; max-width: 198px; height: 52px; background: #12140f; border-radius: 4px; flex-shrink: 0; }
.brand:focus-visible { outline: 2px solid var(--lime); }
.brand img { position: absolute; display: block; width: 112%; height: auto; max-width: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mobile-brand { display: none; }
.crumb-route { display: flex; align-items: center; gap: 10px; }
.workspace { border-radius: 5px; background: #252920; }
.workspace b { font-size: 12px; }
.navgroup { margin-bottom: 13px; }
.navlink { border-radius: 3px; min-height: 30px; padding-block: 5px; }
.navlink.active { box-shadow: inset 4px 0 #82a712; }
.navlabel { padding-bottom: 4px; }
.topbar { height: 58px; background: var(--paper); border-color: #d9dcd0; padding-inline: 25px; }
.topbar .crumb { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.demo { background: #e9ecd9; border: 1px solid #d9dfc4; color: #3b4d26; border-radius: 4px; }
.main { padding: 22px 25px 34px; }
.btn { border-radius: 5px; }
.btn.primary { background: var(--lime); border-color: #b8dd43; }
.module-shell .heading { border-bottom: 2px solid #1b1d18; padding-bottom: 16px; }
.module-shell .heading h1 { letter-spacing: -.07em; font-size: clamp(29px,4.3vw,50px); font-weight: 850; }
.card { border-radius: 6px; }
.cardhead h2 { font-weight: 800; }

.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(310px, 1fr); gap: 14px; }
.fitness-hero {
  min-height: 290px;
  position: relative;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  background: #181b16;
  color: white;
}
.fitness-hero::before, .fitness-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.fitness-hero::before {
  background: linear-gradient(90deg, #141613 0%, #141613d1 27%, #14161305 70%), url("fitness-hero.jpg") 76% 52% / cover, #252923;
}
.fitness-hero::after {
  inset: auto -22px 0 auto;
  width: 34%;
  height: 13px;
  transform: skewX(-36deg);
  background: repeating-linear-gradient(90deg, var(--lime) 0 8px, transparent 8px 12px);
  opacity: .94;
}
.hero-content { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 23px 25px; gap: 15px; }
.hero-date { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 730; text-transform: uppercase; letter-spacing: .07em; color: #e5e8de; }
.hero-date .icon { width: 14px; height: 14px; color: var(--lime); }
.fitness-hero h1 { font: italic 950 clamp(54px,7.2vw,112px)/.76 "Arial Black","Segoe UI",sans-serif; letter-spacing: -.105em; margin: 4px 0 8px -2px; }
.fitness-hero h1 em { color: var(--lime); font-style: inherit; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-link { background: #181b17cf; border-color: #d8dfc25c; color: #fff; }
.hero-link:hover { color: #1c201a; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dashboard-metrics .stat { position: relative; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; padding: 12px; background: #fafaf6; }
.dashboard-metrics .stat:first-child { background: var(--lime); border-color: #b8db49; }
.dashboard-metrics .stat:nth-child(2) { background: #24291e; border-color: #24291e; color: white; }
.dashboard-metrics .stat:nth-child(2) :is(.stat-top,small) { color: #e0e6d7; }
.dashboard-metrics .stat:first-child :is(.stat-top,small) { color: #314216; }
.dashboard-metrics .stat:nth-child(2) .tile { background: #39452a; color: var(--lime); }
.dashboard-metrics .stat:first-child .tile { background: #bde744; color: #263715; }
.dashboard-metrics .stat strong { font-size: clamp(20px,2.45vw,38px); font-weight: 850; letter-spacing: -.065em; }
.dashboard-metrics .stat-top { gap: 5px; }
.dashboard-metrics .tile { width: 26px; height: 26px; border-radius: 4px; }
.dashboard-metrics .tile .icon { width: 15px; height: 15px; }
.dashboard-metrics .stat:focus-visible { outline-color: #3b6414; }
.dashboard-metrics .stat:hover { border-color: #58712e; box-shadow: inset 0 -3px #98bc44; }
.dashboard-body { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(310px,1fr); gap: 14px; margin-top: 14px; }
.dashboard-column { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dashboard-body .cardhead { padding: 14px 15px; }
.dashboard-body .cardhead h2 { font-size: 18px; letter-spacing: -.045em; }
.dashboard-body .cardhead select { font-size: 12px; min-height: 30px; }
.dashboard-body .chart { padding-bottom: 14px; }
.dashboard-body .barcol i { border-radius: 2px 2px 0 0; background: #dbe6c4; }
.dashboard-body .barcol i.peak { background: #9ecb35; }
.dashboard-side .card:first-child { border-top: 4px solid #b9e83b; }
.dashboard-side .lineitem .pill { border-radius: 3px; }
.dashboard-side .lineitem .tile { color: #43571b; background: #e9efd9; }
.portal-hero { border-radius: 6px; border-left: 6px solid #b6e334; }

@media (max-width: 1120px) {
  .shell { grid-template-columns: 196px minmax(0,1fr); }
  .main { padding-inline: 16px; }
  .dashboard-top, .dashboard-body { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); gap: 10px; }
  .dashboard-column { gap: 10px; }
  .hero-content { padding: 20px 15px; }
}
@media (max-width: 930px) {
  .dashboard-top, .dashboard-body { grid-template-columns: minmax(0,1fr); }
  .dashboard-metrics .stat { min-height: 95px; }
  .fitness-hero { min-height: 243px; }
}
@media (max-width: 700px) {
  .topbar { padding-inline: 10px; }
  .mobile-brand { display: block; width: clamp(90px, 31vw, 139px); background: var(--dark); border-radius: 3px; padding: 1px 3px; }
  .mobile-brand .brand { height: 31px; }
  .crumb-route { display: none; }
  .topbar, .topbar .crumb { gap: 6px; }
  .topbar .demo { font-size: 10px; padding-inline: 5px; }
  .main { padding: 11px 10px 24px; }
  .fitness-hero { min-height: 225px; }
  .fitness-hero::before { background-position: center, 73% center; }
  .fitness-hero h1 { font-size: 57px; }
  .hero-content { padding: 16px 13px; }
  .hero-actions .btn { min-height: 34px; padding: 6px 8px; font-size: 11px; }
  .dashboard-metrics .stat { padding: 9px; }
  .dashboard-metrics .stat strong { font-size: 23px; }
  .dashboard-body .cardhead { padding: 11px; }
  .dashboard-body .cardhead h2 { font-size: 16px; }
}
