.theme-page { width: min(1120px,100%); min-width: 0; margin: 0 auto; padding: clamp(60px,8vw,110px) clamp(16px,5vw,72px); }
.theme-page h1 { max-width: 920px; margin: 10px 0 26px; font-family: "Russo One", Impact, sans-serif; font-size: clamp(34px,6vw,72px); line-height: .98; letter-spacing: -2px; overflow-wrap: anywhere; text-transform: uppercase; }
.theme-page-lead { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.theme-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.theme-breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.theme-breadcrumb span { display: inline-flex; align-items: center; }
.theme-empty { display: grid; min-height: 72dvh; place-content: center; text-align: center; }
.theme-empty > * { margin-inline: auto; }
.theme-page-code { color: rgba(23,23,20,.08); font-family: "Russo One", Impact, sans-serif; font-size: clamp(90px,18vw,220px); line-height: .78; }
.theme-empty p { max-width: 520px; color: var(--muted); line-height: 1.6; }
.theme-page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.theme-page-actions a { display: inline-grid; place-items: center; text-decoration: none; }
.theme-richtext { color: #49463f; font-size: clamp(15px,1.5vw,18px); line-height: 1.78; }
.theme-richtext > * { max-width: 780px; }
.theme-richtext h2, .theme-richtext h3 { margin: 2em 0 .7em; color: var(--ink); font-family: "Russo One", Impact, sans-serif; line-height: 1.12; overflow-wrap: anywhere; text-transform: uppercase; }
.theme-richtext h2 { font-size: clamp(25px,4vw,39px); }
.theme-richtext h3 { font-size: clamp(20px,3vw,28px); }
.theme-richtext :is(img,video,iframe) { display: block; width: 100%; max-width: 100%; height: auto; margin: 26px 0; }
.theme-richtext blockquote { margin: 24px 0; padding: 18px 22px; border-left: 5px solid var(--yellow); background: #fff; }
.theme-richtext table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.theme-richtext :is(th,td) { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.theme-richtext a { color: #75402f; text-decoration-thickness: 2px; }
.theme-pills { display: flex; min-width: 0; gap: 8px; margin: 28px 0 34px; padding-bottom: 7px; overflow-x: auto; }
.theme-pills a, .theme-pagination a { display: inline-grid; min-width: 44px; min-height: 44px; flex: 0 0 auto; padding: 9px 13px; place-items: center; border: 1px solid var(--ink); color: var(--ink); background: #fff; font-size: 9px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.theme-pills a.active, .theme-pagination a.active { color: var(--yellow); background: var(--ink); }
.theme-blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.theme-blog-card { display: flex; min-width: 0; min-height: 100%; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .22s var(--ease); }
.theme-blog-card:hover { transform: translateY(-5px); }
.theme-blog-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 2px solid var(--ink); }
.theme-blog-card > div { padding: 20px; }
.theme-blog-card span { color: #a65442; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.theme-blog-card h2 { margin: 9px 0; font-family: "Russo One", Impact, sans-serif; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; text-transform: uppercase; }
.theme-blog-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.theme-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 40px; }
.theme-post-date { display: inline-block; margin: -12px 0 28px; color: var(--muted); font-size: 11px; font-weight: 800; }
.theme-post-cover { display: block; width: 100%; max-height: 620px; margin: 0 0 38px; border: 2px solid var(--ink); object-fit: cover; }
.theme-post-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 52px; padding-top: 28px; border-top: 2px solid var(--ink); }
.theme-post-nav a { display: grid; min-width: 0; min-height: 110px; gap: 8px; padding: 18px; align-content: center; border: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; }
.theme-post-nav span { color: #a65442; font-size: 9px; font-weight: 900; }
.theme-post-nav b { overflow-wrap: anywhere; }

@media (max-width: 900px) { .theme-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .theme-page { padding: 50px 14px; }
  .theme-page h1 { letter-spacing: -1px; }
  .theme-blog-grid, .theme-post-nav { grid-template-columns: 1fr; }
  .theme-blog-card > div { padding: 16px; }
}

/* Authenticated squad analytics */
.squad-page { background: var(--paper); }
.squad-page main { max-width: none; }
.squad-hub { width: 100%; min-width: 0; }
.squad-hub-state { display: grid; min-height: calc(100dvh - 74px); place-content: center; justify-items: center; padding: 40px 18px; text-align: center; }
.squad-hub-state h1 { max-width: 760px; margin: 12px 0; font-family: "Russo One",Impact,sans-serif; font-size: clamp(32px,6vw,64px); line-height: 1; text-transform: uppercase; }
.squad-hub-state p { max-width: 620px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.squad-page-shell { width: min(1320px,100%); margin: 0 auto; padding: 46px clamp(18px,4vw,56px) 80px; }
.squad-page-hero { display: flex; align-items: flex-end; justify-content: space-between; min-width: 0; gap: 24px; margin-bottom: 28px; }
.squad-page-hero h1, .member-profile-hero h1 { margin: 7px 0 8px; font-family: "Russo One",Impact,sans-serif; font-size: clamp(38px,5vw,68px); line-height: .98; text-transform: uppercase; }
.squad-page-hero p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.squad-back-today { display: inline-grid; min-width: 150px; min-height: 48px; padding: 10px 16px; place-items: center; border: 2px solid var(--ink); color: var(--ink); background: var(--yellow); font-size: 9px; font-weight: 900; text-decoration: none; }
.squad-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-width: 0; gap: 12px; margin-bottom: 22px; }
.squad-stat-card { min-width: 0; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--ink); background: rgba(255,255,255,.78); }
.squad-stat-card strong, .squad-stat-card span, .squad-stat-card small { display: block; }
.squad-stat-card strong { font-family: "Russo One",Impact,sans-serif; font-size: clamp(24px,3vw,36px); line-height: 1; }
.squad-stat-card span { margin-top: 8px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.squad-stat-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.squad-overview-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); align-items: stretch; min-width: 0; gap: 16px; }
.squad-panel { min-width: 0; padding: 22px; border: 2px solid var(--ink); background: rgba(255,255,255,.8); box-shadow: 7px 7px 0 rgba(23,23,20,.1); }
.squad-panel > header { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; gap: 14px; margin-bottom: 16px; }
.squad-panel > header span { color: #9b4037; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.squad-panel > header h2 { margin: 4px 0 0; font-family: "Russo One",Impact,sans-serif; font-size: 22px; text-transform: uppercase; }
.squad-panel > header > b { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.squad-chart { position: relative; width: 100%; min-width: 0; padding-bottom: 23px; }
.squad-chart svg { display: block; width: 100%; height: 210px; overflow: visible; }
.chart-grid line { stroke: #d9d3c8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.squad-chart circle { fill: #cfc8bc; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.squad-chart circle.has-value { fill: var(--yellow); stroke: var(--ink); }
.squad-chart-labels { position: absolute; right: 0; bottom: 0; left: 0; height: 18px; }
.squad-chart-labels span { position: absolute; color: var(--muted); font-size: 8px; white-space: nowrap; transform: translateX(-50%); }
.compact-activity-feed { display: grid; max-height: 260px; overflow-y: auto; }
.compact-activity-feed a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; min-width: 0; min-height: 58px; gap: 9px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.compact-activity-feed a > i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; font-size: 13px; font-style: normal; }
.compact-activity-feed a > span { min-width: 0; }
.compact-activity-feed b, .compact-activity-feed small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-activity-feed b { font-size: 10px; }
.compact-activity-feed small, .compact-activity-feed time { color: var(--muted); font-size: 8px; }
.squad-rankings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; gap: 16px; margin-top: 16px; }
.squad-ranking-list { display: grid; }
.squad-ranking-row { display: grid; grid-template-columns: 26px 42px minmax(0,1fr) auto; align-items: center; min-width: 0; min-height: 66px; gap: 10px; padding: 5px 7px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.squad-ranking-row:last-child { border-bottom: 0; }
.squad-ranking-row.is-me { background: var(--yellow-soft); }
.squad-ranking-row > b { color: var(--muted); font-family: "Russo One",Impact,sans-serif; text-align: center; }
.squad-ranking-row > i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font-style: normal; }
.squad-ranking-row > span { min-width: 0; }
.squad-ranking-row strong, .squad-ranking-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-ranking-row strong { font-size: 11px; }
.squad-ranking-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.squad-ranking-row > em { font-size: 11px; font-style: normal; font-weight: 900; }
.squad-directory, .member-detail-section { margin-top: 56px; }
.squad-directory > header, .member-detail-section > header { display: flex; align-items: end; justify-content: space-between; min-width: 0; gap: 20px; margin-bottom: 20px; }
.squad-directory > header h2, .member-detail-section > header h2 { margin: 6px 0 0; font-family: "Russo One",Impact,sans-serif; font-size: clamp(28px,3vw,40px); text-transform: uppercase; }
.squad-directory > header p, .member-detail-section > header p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.squad-member-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; gap: 16px; }
.squad-member-card { display: block; min-width: 0; padding: 20px; color: var(--ink); text-decoration: none; transition: transform .2s ease,box-shadow .2s ease; }
.squad-member-card:hover { transform: translateY(-4px); box-shadow: 10px 11px 0 rgba(23,23,20,.14); }
.squad-member-card > header { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; min-width: 0; gap: 11px; }
.squad-member-card > header > i { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; font-style: normal; }
.squad-member-card > header div { min-width: 0; }
.squad-member-card > header span { color: #9b4037; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.squad-member-card h2 { margin: 3px 0 0; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.member-card-score { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; margin: 20px 0 13px; }
.member-card-score > strong { font-family: "Russo One",Impact,sans-serif; font-size: 30px; }
.member-card-score > strong small { display: block; color: var(--muted); font-family: Inter,sans-serif; font-size: 7px; }
.member-card-score > i { height: 9px; overflow: hidden; background: #ddd6c9; }
.member-card-score > i b { display: block; height: 100%; background: var(--yellow); }
.member-card-activity { display: flex; min-height: 52px; flex-wrap: wrap; align-content: start; gap: 5px; }
.activity-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 26px; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); background: #f5f1e9; font-size: 8px; }
.activity-chip i { font-style: normal; }
.activity-chip b { white-space: nowrap; }
.activity-empty { color: var(--muted); font-size: 9px; }
.squad-member-card > footer { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.squad-member-card > footer span { min-width: 0; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.squad-member-card > footer b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 10px; }
.squad-member-card > p { margin: 14px 0 0; padding: 8px; background: var(--yellow-soft); font-size: 9px; }
.squad-member-card > p span { color: #9b4037; font-weight: 900; }
.squad-mobile-tabs { display: none; }
.squad-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.squad-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }
.member-profile-hero { display: grid; grid-template-columns: 94px minmax(0,1fr) auto; align-items: center; min-width: 0; gap: 22px; margin-bottom: 26px; padding: 25px; border: 2px solid var(--ink); background: linear-gradient(125deg,rgba(255,255,255,.9),rgba(246,201,40,.24)); box-shadow: var(--shadow); }
.member-profile-hero > i { display: grid; place-items: center; width: 88px; height: 88px; border: 3px solid var(--ink); border-radius: 50%; font-size: 34px; font-style: normal; }
.member-profile-hero > div { min-width: 0; }
.member-profile-hero > div > span { color: #9b4037; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.member-profile-hero h1 { margin-block: 5px; font-size: clamp(34px,4vw,54px); overflow-wrap: anywhere; }
.member-profile-hero p { margin: 0; color: var(--muted); }
.member-ranks { display: grid; grid-template-columns: repeat(2,minmax(95px,1fr)); gap: 7px; }
.member-ranks span { padding: 11px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.member-ranks b { display: block; margin-bottom: 3px; color: var(--ink); font-family: "Russo One",Impact,sans-serif; font-size: 20px; }
.member-analytics-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); min-width: 0; gap: 16px; }
.member-fact-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; gap: 1px; margin: -10px 0 22px; background: var(--line); }
.member-fact-strip span { min-width: 0; padding: 11px 14px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 8px; text-transform: uppercase; }
.member-fact-strip b { margin-right: 5px; color: var(--ink); font-size: 12px; }
.today-power { display: flex; align-items: center; gap: 9px; margin-block: 18px; }
.today-power > strong { font-family: "Russo One",Impact,sans-serif; font-size: 58px; line-height: .8; }
.today-power > span { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.today-power small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.today-activity-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.today-detail-panel .primary-button { display: grid; min-height: 46px; place-items: center; text-decoration: none; }
.top-exercise-list, .training-day-list { display: grid; gap: 8px; }
.top-exercise-row { display: grid; grid-template-columns: 28px 40px minmax(0,1fr) auto; align-items: center; min-width: 0; min-height: 74px; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.8); }
.top-exercise-row > b { color: var(--muted); font-family: "Russo One",Impact,sans-serif; text-align: center; }
.top-exercise-row > i { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); background: var(--yellow-soft); font-style: normal; }
.top-exercise-row > span { min-width: 0; }
.top-exercise-row > span strong, .top-exercise-row > span small { display: block; }
.top-exercise-row > span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.top-exercise-row > span em { display: block; height: 5px; margin-top: 7px; overflow: hidden; background: #ddd6ca; }
.top-exercise-row > span em b { display: block; height: 100%; background: var(--yellow); }
.top-exercise-row > div { min-width: 118px; text-align: right; }
.top-exercise-row > div strong, .top-exercise-row > div small { display: block; }
.top-exercise-row > div strong { font-size: 11px; }
.top-exercise-row > div small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.training-day-row { display: grid; grid-template-columns: 120px minmax(0,1fr) 110px; align-items: center; min-width: 0; gap: 14px; padding: 13px 15px; border-left: 4px solid var(--yellow); background: rgba(255,255,255,.78); }
.training-day-date b, .training-day-date span, .training-day-score strong, .training-day-score small { display: block; }
.training-day-date b { font-size: 11px; }
.training-day-date span { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.training-day-activities { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.training-day-score { text-align: right; }
.training-day-score strong { font-family: "Russo One",Impact,sans-serif; font-size: 24px; }
.training-day-score small { color: var(--muted); font-size: 8px; }
.squad-empty-panel { display: grid; min-height: 120px; place-content: center; justify-items: center; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.squad-empty-panel b { color: var(--ink); }
.squad-empty-panel span { margin-top: 5px; font-size: 10px; }

@media (max-width: 1024px) {
  .squad-member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .squad-overview-grid, .member-analytics-grid { grid-template-columns: 1fr; }
  .activity-feed-panel .compact-activity-feed { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; max-height: none; }
}

@media (max-width: 700px) {
  .squad-page footer { display: none; }
  .member-cabinet { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .squad-page-shell { padding: 28px 14px calc(94px + env(safe-area-inset-bottom)); }
  .squad-page-hero, .squad-directory > header, .member-detail-section > header { align-items: flex-start; flex-direction: column; }
  .squad-back-today { width: 100%; }
  .squad-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .squad-stat-card { min-height: 102px; padding: 14px 12px; }
  .squad-panel { padding: 14px; box-shadow: 5px 5px 0 rgba(23,23,20,.1); }
  .squad-chart { overflow-x: auto; }
  .squad-chart svg, .squad-chart-labels { width: 620px; }
  .squad-rankings, .squad-member-grid { grid-template-columns: 1fr; }
  .squad-ranking-row { grid-template-columns: 24px 40px minmax(0,1fr); min-height: 64px; padding-inline: 2px; }
  .squad-ranking-row > em { grid-column: 3; margin-top: -12px; color: #9b4037; font-size: 9px; }
  .activity-feed-panel .compact-activity-feed { grid-template-columns: 1fr; }
  .squad-directory, .member-detail-section { margin-top: 42px; }
  .member-profile-hero { grid-template-columns: 68px minmax(0,1fr); gap: 12px; padding: 17px 14px; }
  .member-profile-hero > i { width: 64px; height: 64px; font-size: 25px; }
  .member-profile-hero h1 { font-size: 31px; }
  .member-ranks { grid-column: 1 / -1; width: 100%; }
  .top-exercise-row { grid-template-columns: 24px 36px minmax(0,1fr); padding-inline: 8px; }
  .top-exercise-row > div { grid-column: 3; min-width: 0; text-align: left; }
  .training-day-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 11px; }
  .training-day-activities { grid-column: 1 / -1; grid-row: 2; }
  .training-day-score { grid-column: 2; grid-row: 1; }
  .squad-mobile-tabs { position: fixed; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; z-index: 110; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 66px; padding: 5px; border: 2px solid var(--ink); border-radius: 16px; background: rgba(23,23,20,.96); box-shadow: 0 8px 28px rgba(0,0,0,.3); backdrop-filter: blur(16px); }
  .squad-mobile-tabs a { display: grid; min-width: 0; min-height: 54px; place-content: center; justify-items: center; gap: 2px; border-radius: 11px; color: #aaa69b; font-size: 8px; font-weight: 800; text-decoration: none; }
  .squad-mobile-tabs a[aria-current="page"] { color: var(--ink); background: var(--yellow); }
  .squad-mobile-tabs i { font-size: 17px; font-style: normal; }
}

@media (max-width: 480px) {
  .squad-page-hero h1 { font-size: 40px; }
  .squad-kpi-grid { gap: 6px; }
  .squad-stat-card strong { font-size: 25px; }
  .squad-panel > header { align-items: flex-start; flex-direction: column; }
  .squad-ranking-row > span small { white-space: normal; }
  .compact-activity-feed a { min-height: 62px; }
  .squad-member-card { padding: 15px; }
  .squad-member-card > footer { gap: 8px; }
  .member-card-activity { min-height: 0; }
  .member-ranks { grid-template-columns: 1fr 1fr; }
  .member-ranks span { padding: 9px; }
  .member-kpis .squad-stat-card { min-height: 110px; }
  .member-fact-strip { grid-template-columns: 1fr; }
}
