/* Community w webie na wzór x.com — tokeny ciemnego Community z aplikacji (DesignKit Tokens+Color.swift),
   kroje z księgi znaku (General Sans, Clash Display). Bez gradientów, bez szkła, bez wersalików. */
@font-face { font-family: "General Sans"; font-weight: 400; font-display: swap; src: url("/community/assets/brand/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-display: swap; src: url("/community/assets/brand/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-display: swap; src: url("/community/assets/brand/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 500; font-display: swap; src: url("/community/assets/brand/clash-display-500.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 600; font-display: swap; src: url("/community/assets/brand/clash-display-600.woff2") format("woff2"); }

:root {
  --bg: #0C1A23; --surface: #13242E; --overlay: #1A2E3A; --line: #1F3844; --line-strong: #33505F;
  --txt: #F5F5EB; --txt2: #A3B0B8; --txt3: #6F828C; --accent: #F5F5EB; --on-accent: #0C1A23;
  --vitos: #6FD3A6; --link: #74A8E2; --gold: #E8B66A; --rec: #FF7C8C;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif; --display: "Clash Display", "General Sans", "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 400 15px/1.4 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.x-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.x-skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; }
.x-skip:focus { left: 8px; }
.x-env { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 30; font-size: 11px; color: var(--txt3); background: var(--surface); padding: 2px 10px; border-radius: 0 0 8px 8px; }
.x-muted { color: var(--txt3); }
.x-icon { flex: none; }

/* Przyciski: kapsuły jak w aplikacji i na X */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none !important; transition: background-color .16s ease-out, border-color .16s ease-out; }
.x-btn-wide { width: 100%; min-height: 44px; }
.x-btn { white-space: nowrap; }
.x-btn-small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.x-btn-light { background: var(--accent); color: var(--on-accent); }
.x-btn-light:hover { background: #E4E4D8; }
.x-btn-outline { background: transparent; color: var(--txt); border-color: var(--line-strong); }
.x-btn-outline:hover { background: rgba(245, 245, 235, .06); }
.x-btn-text { background: transparent; border: 0; color: var(--txt2); min-height: 36px; }
.x-btn-text:hover { color: var(--txt); text-decoration: underline !important; }
.x-btn[disabled] { opacity: .45; cursor: default; }
.x-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--txt); cursor: pointer; }
.x-icon-btn:hover { background: rgba(245, 245, 235, .08); text-decoration: none; }
.x-icon-btn-ring { border: 1px solid var(--line-strong); width: 38px; height: 38px; }
.x-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--txt2); font-size: 12px; font-weight: 500; }
.x-chip-gold { color: var(--gold); border-color: rgba(232, 182, 106, .5); }
.x-alert { padding: 12px 14px; border-radius: 12px; background: rgba(255, 124, 140, .12); color: #FFC2CA; border: 1px solid rgba(255, 124, 140, .35); }
.x-notice { padding: 12px 14px; border-radius: 12px; background: rgba(111, 211, 166, .10); color: #BDEBD6; border: 1px solid rgba(111, 211, 166, .3); }

/* Pola */
.x-field { display: block; }
.x-field input, .x-field textarea, .x-field select { width: 100%; background: transparent; color: var(--txt); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 16px 12px; font: 400 17px/1.3 var(--sans); }
.x-field input::placeholder { color: var(--txt3); }
.x-field input:focus, .x-field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.x-field-labelled { position: relative; }
.x-field-labelled > span { display: block; margin-bottom: 6px; color: var(--txt2); font-size: 13px; font-weight: 500; }
.x-check { display: flex; gap: 10px; align-items: flex-start; color: var(--txt2); font-size: 14px; }
.x-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.x-check a, .x-legal a { color: var(--link); }

/* ——— Ekran logowania i bramka (układ x.com) ——— */
.x-auth { min-height: 100vh; display: flex; flex-direction: column; }
.x-auth-main { flex: 1; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.05fr); align-items: center; gap: 48px;
  width: min(1240px, 100%); margin: 0 auto; padding: 48px 40px; }
.x-auth-left { display: flex; flex-direction: column; gap: 22px; max-width: 440px; justify-self: center; width: 100%; }
.x-hero { font: 600 64px/1.02 var(--display); letter-spacing: -.5px; }
.x-hero-gate { font-size: 44px; line-height: 1.08; }
.x-hero-sub { font: 600 26px/1.2 var(--display); }
.x-auth-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 380px; margin-top: 10px; }
.x-or { display: flex; align-items: center; gap: 10px; color: var(--txt3); font-size: 14px; }
.x-or::before, .x-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.x-email-form, .x-profile-form { display: flex; flex-direction: column; gap: 14px; }
.x-profile-form { max-width: 380px; }
.x-legal { color: var(--txt3); font-size: 12px; line-height: 1.5; }
.x-auth-mark { display: grid; place-items: center; }
.x-auth-mark img { width: min(78%, 520px); height: auto; opacity: .94; }
.x-qr { position: fixed; right: 28px; bottom: 56px; width: 168px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  text-align: center; color: var(--txt2); font-size: 13px; }
.x-qr p { margin-bottom: 10px; }
.x-qr-code svg { width: 132px; height: 132px; margin: 0 auto; display: block; border-radius: 6px; }
.x-auth-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 14px 20px 18px; color: var(--txt3); font-size: 13px; }
.x-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.x-choice legend { color: var(--txt2); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.x-choice-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; }
.x-choice-card:has(input:checked) { border-color: var(--accent); background: rgba(245, 245, 235, .05); }
.x-choice-card input { accent-color: var(--accent); margin-top: 3px; }
.x-choice-card > span { display: grid; gap: 2px; color: var(--txt2); font-size: 13px; }
.x-choice-card strong { color: var(--txt); font-size: 15px; }
.x-problem-text { color: var(--txt2); font-size: 17px; }

/* ——— Układ trzech kolumn ——— */
.x-frame { display: flex; justify-content: center; min-height: 100vh; }
.x-left { width: 275px; flex: none; }
.x-left-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 4px 12px 12px; }
.x-logo { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; margin: 4px 0 4px 2px; }
.x-logo:hover { background: rgba(245, 245, 235, .08); }
.x-logo img { width: 44px; height: auto; }
.x-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.x-nav-item { display: inline-flex; align-items: center; gap: 18px; padding: 12px 16px 12px 12px; border-radius: 999px; font-size: 20px; line-height: 24px; }
.x-nav-item:hover { background: rgba(245, 245, 235, .08); text-decoration: none; }
.x-nav-item[aria-current="page"] { font-weight: 600; }
.x-nav-item[aria-current="page"] .x-icon { stroke-width: 2.4; }
.x-nav-icon { position: relative; display: inline-flex; }
.x-badge { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--link); color: var(--on-accent);
  font: 600 11px/18px var(--sans); text-align: center; border: 1.5px solid var(--bg); }
.x-post-cta { width: 90%; min-height: 52px; margin: 18px 0 0; font-size: 17px; }
.x-post-cta-icon { display: none; }
.x-me { margin-top: auto; position: relative; }
.x-me summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 999px; cursor: pointer; }
.x-me summary::-webkit-details-marker { display: none; }
.x-me summary:hover { background: rgba(245, 245, 235, .08); }
.x-me-text { display: grid; min-width: 0; flex: 1; font-size: 15px; }
.x-me-text strong, .x-me-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-me-text span { color: var(--txt3); }
.x-menu { position: absolute; z-index: 10; min-width: 240px; padding: 8px 0; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-strong);
  box-shadow: 0 0 18px rgba(245, 245, 235, .12); }
.x-me .x-menu { bottom: calc(100% + 6px); left: 0; }
.x-menu button, .x-menu a { display: block; width: 100%; padding: 12px 16px; text-align: left; background: none; border: 0; font-weight: 600; cursor: pointer; font-size: 15px; }
.x-menu button:hover, .x-menu a:hover { background: rgba(245, 245, 235, .06); text-decoration: none; }
.x-danger { color: var(--rec) !important; }

.x-main { width: 600px; flex: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }
.x-right { width: 350px; flex: none; margin-left: 30px; }
.x-right-inner { position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; padding: 6px 0 24px; }
.x-search { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--txt3); }
.x-search:focus-within { border-color: var(--link); color: var(--link); }
.x-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--txt); font: 400 15px var(--sans); }
.x-search input:focus { outline: none; }
.x-search input::placeholder { color: var(--txt3); }
.x-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; display: grid; gap: 10px; }
.x-card h2 { font: 600 20px/1.2 var(--sans); }
.x-card-more { color: var(--link); font-size: 15px; }
.x-challenge-title { font-weight: 600; }
.x-progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; background: var(--overlay); overflow: hidden; }
.x-progress::-webkit-progress-bar { background: var(--overlay); border-radius: 999px; }
.x-progress::-webkit-progress-value { background: var(--vitos); border-radius: 999px; }
.x-progress::-moz-progress-bar { background: var(--vitos); border-radius: 999px; }
.x-card-app .x-qr-code svg { width: 148px; height: 148px; border-radius: 8px; }
.x-right-footer { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px; color: var(--txt3); font-size: 13px; }

/* Nagłówki kolumny i zakładki */
.x-col-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 6px 16px;
  background: rgba(12, 26, 35, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.x-col-title { display: flex; align-items: center; gap: 22px; }
.x-col-title h1 { font: 600 20px/1.2 var(--sans); }
.x-col-sub { font-size: 13px; }
.x-col-head-search { padding: 8px 16px; }
.x-search-wide { flex: 1; }
.x-tabs { display: flex; border-bottom: 1px solid var(--line); background: rgba(12, 26, 35, .88); backdrop-filter: blur(12px); }
.x-sticky { position: sticky; top: 0; z-index: 5; }
.x-tabs a { flex: 1; display: flex; justify-content: center; color: var(--txt3); font-weight: 500; }
.x-tabs a:hover { background: rgba(245, 245, 235, .05); text-decoration: none; }
.x-tabs a span { position: relative; padding: 16px 0; }
.x-tabs a[aria-current="page"] { color: var(--txt); font-weight: 600; }
.x-tabs a[aria-current="page"] span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 52px; height: 4px; margin-left: -26px; border-radius: 999px; background: var(--accent); }
.x-section-title { font: 600 20px/1.2 var(--sans); padding: 14px 16px 6px; }

/* Pole „Co się dzieje?” */
.x-composer { display: flex; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.x-composer-body { flex: 1; min-width: 0; }
.x-composer textarea { width: 100%; resize: none; overflow: hidden; background: transparent; border: 0; color: var(--txt); font: 400 20px/1.35 var(--sans); padding: 8px 0 12px; min-height: 52px; }
.x-composer textarea:focus { outline: none; }
.x-composer textarea::placeholder { color: var(--txt3); }
.x-composer-reply textarea { font-size: 17px; min-height: 40px; }
.x-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.x-composer-reply .x-composer-bar { border-top: 0; }
.x-composer-tools { display: flex; align-items: center; gap: 4px; color: var(--link); }
.x-composer-tools .x-icon-btn { color: var(--link); position: relative; overflow: hidden; }
.x-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.x-audience select { background: transparent; color: var(--link); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--sans); }
.x-toast { margin: 10px 16px; padding: 10px 14px; border-radius: 12px; background: var(--surface); color: var(--txt2); font-size: 14px; }

/* Wpis */
.x-post { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.x-post:hover { background: rgba(245, 245, 235, .02); }
.x-post-repost { display: flex; align-items: center; gap: 8px; margin: 0 0 4px 28px; color: var(--txt3); font-size: 13px; font-weight: 600; }
.x-post-row { display: flex; gap: 12px; }
.x-post-avatar { flex: none; }
.x-post-body { flex: 1; min-width: 0; }
.x-post-head { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 15px; }
.x-post-author { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.x-post-author strong { overflow: hidden; text-overflow: ellipsis; }
.x-post-head .x-chip { margin-left: 4px; }
.x-post-menu { margin-left: auto; position: relative; }
.x-post-menu summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px -6px 0; border-radius: 999px; color: var(--txt3); cursor: pointer; }
.x-post-menu summary::-webkit-details-marker { display: none; }
.x-post-menu summary:hover { color: var(--link); background: rgba(116, 168, 226, .12); }
.x-post-menu .x-menu { right: 0; top: 30px; }
.x-post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; font-size: 15px; line-height: 1.45; }
.x-post-detail .x-post-text { font-size: 17px; }
.x-mention { color: var(--link); }
.x-official { display: inline-flex; color: var(--gold); margin-left: 2px; }
.x-media { display: grid; gap: 2px; margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.x-media img { width: 100%; height: 100%; object-fit: cover; }
.x-media-1 img { max-height: 520px; }
.x-media-2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.x-media-3, .x-media-4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; aspect-ratio: 16 / 9; }
.x-media-3 img:first-child { grid-row: span 2; }
.x-workout { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.x-workout-head { display: flex; align-items: center; gap: 10px; }
.x-workout-tiles { display: flex; gap: 28px; margin: 10px 0 0; }
.x-workout-tiles dt { color: var(--txt3); font-size: 12px; }
.x-workout-tiles dd { margin: 2px 0 0; font: 600 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.x-knowledge { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); }
.x-knowledge .x-chip { justify-self: start; }
.x-badge-banner { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(232, 182, 106, .1); color: var(--gold); font-weight: 600; }
.x-actions { display: flex; justify-content: space-between; max-width: 425px; margin-top: 10px; }
.x-actions form { display: contents; }
.x-action { display: inline-flex; align-items: center; gap: 4px; min-width: 60px; padding: 0; background: none; border: 0; color: var(--txt3); font-size: 13px; cursor: pointer; }
.x-action:hover { text-decoration: none; color: var(--link); }
.x-action-repost:hover, .x-action-repost.is-on { color: var(--vitos); }
.x-action-vitos:hover, .x-action-vitos.is-on { color: var(--vitos); }
.x-action-vitos.is-on .x-icon { fill: rgba(111, 211, 166, .25); }
.x-action[disabled]:hover { color: var(--txt3); }
.x-post-comment { padding-left: 16px; }
.x-thread-reply { padding-left: 52px; }
.x-thread-reply .x-post { border-bottom: 0; }

/* Awatar */
.x-avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--overlay); flex: none; }
.x-avatar-32 { width: 32px; height: 32px; font-size: 12px; }
.x-avatar-134 { width: 134px; height: 134px; font-size: 44px; }
.x-avatar-initials { display: inline-grid; place-items: center; color: var(--txt); font-weight: 600; font-size: 15px; border: 1px solid var(--line-strong); }
.x-avatar-32.x-avatar-initials { font-size: 12px; }
.x-avatar-134.x-avatar-initials { font-size: 44px; font-family: var(--display); }

/* Osoby, listy */
.x-people, .x-list { list-style: none; margin: 0; padding: 0; }
.x-person { display: flex; align-items: center; gap: 12px; }
.x-list .x-person { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.x-person-link { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.x-person-link:hover { text-decoration: none; }
.x-person-text { display: grid; min-width: 0; }
.x-person-text strong, .x-person-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-person-text span { color: var(--txt3); }
.x-list-row { border-bottom: 1px solid var(--line); }
.x-list-row > a, .x-list-row > span, .x-list-row button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: none; border: 0; text-align: left; cursor: pointer; }
.x-list-row > a > span:not(.x-club-icon), .x-list-row > span { display: grid; gap: 2px; }
.x-list-row a:hover, .x-list-row button:hover { background: rgba(245, 245, 235, .04); text-decoration: none; }
.x-menu-list .x-list-row strong { font-size: 17px; font-weight: 500; }
.x-club-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--txt2); }
.x-club { padding: 16px; display: grid; gap: 14px; justify-items: start; border-bottom: 1px solid var(--line); }
.x-empty { padding: 40px 32px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.x-empty h2 { font: 600 22px/1.25 var(--sans); max-width: 360px; }
.x-empty-small { padding: 20px 16px; justify-items: start; text-align: left; }
.x-empty-small h2 { font-size: 15px; font-weight: 500; color: var(--txt3); }
.x-more { display: block; padding: 16px; color: var(--link); border-bottom: 1px solid var(--line); }
.x-form { display: grid; gap: 16px; padding: 16px; }
.x-radio-list { border: 0; margin: 0; padding: 0; display: grid; }
.x-radio-list label { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.x-radio-list input { accent-color: var(--accent); }

/* Profil */
.x-profile { padding: 0 16px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.x-profile-cover { height: 180px; margin: 0 -16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.x-profile-top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -68px; }
.x-profile-avatar { border: 4px solid var(--bg); border-radius: 999px; background: var(--bg); }
.x-profile-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.x-profile-name { display: flex; align-items: center; gap: 6px; font: 600 22px/1.2 var(--sans); margin-top: 8px; }
.x-lock { color: var(--txt2); display: inline-flex; }
.x-profile-bio { white-space: pre-wrap; margin-top: 6px; }
.x-profile-counts { color: var(--txt3); margin-top: 6px; }
.x-profile-counts strong { color: var(--txt); }
.x-week { display: flex; gap: 28px; margin: 10px 0 0; }
.x-week dt { color: var(--txt3); font-size: 12px; }
.x-week dd { margin: 2px 0 0; font: 600 18px var(--sans); font-variant-numeric: tabular-nums; }
.x-grid12 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 9px); gap: 3px; margin-top: 10px; justify-content: start; }
.x-grid12 span { width: 9px; height: 9px; border-radius: 2px; background: var(--overlay); }
.x-grid12 span[data-level="1"] { background: rgba(111, 211, 166, .35); }
.x-grid12 span[data-level="2"] { background: rgba(111, 211, 166, .65); }
.x-grid12 span[data-level="3"] { background: var(--vitos); }

/* Powiadomienia */
.x-note { border-bottom: 1px solid var(--line); }
.x-note.is-unread { background: rgba(116, 168, 226, .06); }
.x-note > a { display: flex; gap: 12px; padding: 12px 16px; }
.x-note > a:hover { text-decoration: none; background: rgba(245, 245, 235, .03); }
.x-note-icon { width: 32px; display: flex; justify-content: flex-end; color: var(--link); }
.x-note-reaction, .x-note-repost, .x-note-badge { color: var(--vitos); }
.x-note-body { display: grid; gap: 8px; min-width: 0; }
.x-note-actors { display: flex; gap: 4px; }
.x-note-preview { overflow-wrap: anywhere; }

/* Wiadomości */
.x-dm { display: grid; grid-template-columns: 1fr; }
.x-dm-row > a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.x-dm-row.is-open > a { background: var(--surface); border-right: 2px solid var(--link); }
.x-dm-row > a:hover { text-decoration: none; background: rgba(245, 245, 235, .04); }
.x-dm-text { display: grid; min-width: 0; flex: 1; }
.x-dm-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--link); }
.x-bubbles { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; }
.x-bubbles li { justify-self: start; max-width: 78%; display: grid; gap: 4px; }
.x-bubbles li p { padding: 10px 14px; border-radius: 20px 20px 20px 4px; background: var(--overlay); white-space: pre-wrap; overflow-wrap: anywhere; }
.x-bubbles li.is-own { justify-self: end; text-align: right; }
.x-bubbles li.is-own p { background: var(--link); color: var(--on-accent); border-radius: 20px 20px 4px 20px; text-align: left; }
.x-bubbles time { font-size: 12px; }
.x-dm-send { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--bg); }
.x-dm-send input { flex: 1; background: var(--surface); border: 0; border-radius: 16px; padding: 10px 14px; color: var(--txt); font: 400 15px var(--sans); }
.x-dm-send input:focus { outline: 1px solid var(--link); }

@media (min-width: 1000px) {
  /* Wiadomości jak na X: lista i rozmowa obok siebie, bez prawej kolumny. */
  .x-app .x-main:has(.x-dm) { width: 990px; }
  .x-dm { grid-template-columns: 390px 1fr; min-height: 100vh; }
  .x-dm-list { border-right: 1px solid var(--line); }
  .x-dm-thread { display: flex; flex-direction: column; min-height: 100vh; }
  .x-dm-thread .x-bubbles { flex: 1; align-content: end; }
  .x-dm-empty { margin: auto; }
}
@media (max-width: 1280px) { .x-right { width: 290px; margin-left: 20px; } }
@media (max-width: 1100px) {
  .x-left { width: 88px; }
  .x-nav-label, .x-me-text, .x-me-dots, .x-post-cta-label { display: none; }
  .x-nav-item { padding: 12px; }
  .x-post-cta { width: 52px; min-height: 52px; padding: 0; }
  .x-post-cta-icon { display: inline-flex; }
}
@media (max-width: 1000px) { .x-right { display: none; } }
@media (max-width: 860px) {
  .x-auth-main { grid-template-columns: 1fr; padding: 24px 20px 40px; gap: 18px; }
  .x-auth-mark { order: -1; justify-items: start; }
  .x-auth-mark img { width: 72px; }
  .x-auth-left { justify-self: start; }
  .x-hero { font-size: 42px; }
  .x-hero-gate { font-size: 32px; }
  .x-hero-sub { font-size: 21px; }
  .x-qr { display: none; }
}
@media (max-width: 700px) {
  .x-frame { flex-direction: column-reverse; justify-content: flex-end; }
  .x-left { width: 100%; position: fixed; bottom: 0; z-index: 9; background: var(--bg); border-top: 1px solid var(--line); }
  .x-left-inner { position: static; height: auto; flex-direction: row; padding: 0; }
  .x-logo, .x-me, .x-post-cta { display: none; }
  .x-left nav { flex: 1; }
  .x-nav { display: flex; justify-content: space-around; }
  .x-main { width: 100%; border: 0; padding-bottom: 64px; }
  .x-audience select { max-width: 124px; }
  .x-composer textarea { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ——— Web Community na wzór Strawy (decyzje Bartka 22.11.2026, Q1–Q17): górne menu, trzy kolumny, ekrany treningów. ——— */
:root { --run: #6FD3A6; --ride: #74A8E2; --gym: #E8B66A; --walk: #C9B8F0; --swim: #7FD1E0; --yoga: #F2A7C3; --other: #A3B0B8; --map: #13242E; }
.x-icon { display: inline-block; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }

/* Górne menu */
.s-top { position: sticky; top: 0; z-index: 10; height: 62px; border-bottom: 1px solid var(--line); background: rgba(12, 26, 35, .92); backdrop-filter: blur(12px); }
.s-top-in { width: 1240px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 6px; }
.s-logo { display: inline-grid; place-items: center; width: 52px; height: 44px; margin-right: 10px; }
.s-logo img { width: 40px; height: auto; }
.s-menu { display: flex; gap: 2px; }
.s-menu a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--txt2); font-weight: 500; font-size: 15px; }
.s-menu a:hover { background: rgba(245, 245, 235, .06); text-decoration: none; }
.s-menu a[aria-current="page"] { color: var(--txt); font-weight: 600; background: rgba(245, 245, 235, .07); }
.s-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.s-top .x-search { height: 40px; width: 280px; }
.s-top .x-icon-btn { width: 40px; height: 40px; position: relative; }
.s-top .x-badge { top: 2px; right: 0; }
.s-plus { background: var(--accent) !important; color: var(--on-accent) !important; }
.s-me { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 999px; color: var(--txt3); }

/* Strona */
.s-page { width: 1240px; margin: 0 auto; padding: 24px 0 48px; display: grid; gap: 24px; align-items: start; }
.s-page-3 { grid-template-columns: 296px minmax(0, 1fr) 320px; }
.s-page-2 { grid-template-columns: minmax(0, 1fr) 340px; }
.s-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.s-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; background: transparent; min-width: 0; }
.s-card-flush { padding: 0; gap: 0; overflow: hidden; }
.s-card h2 { font: 600 18px/1.2 var(--sans); }
.s-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-more { color: var(--link); font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.s-sep { height: 1px; background: var(--line); margin: 0 -16px; }
.s-muted { color: var(--txt3); }
.s-txt2 { color: var(--txt2); }

/* Kolumna lewa: karta profilu */
.s-me-card { text-align: center; justify-items: center; padding-top: 22px; }
.s-me-card .x-avatar { width: 72px; height: 72px; font-size: 24px; font-family: var(--display); }
.s-me-name { font: 600 20px/1.2 var(--sans); }
.s-counts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.s-counts a { display: grid; gap: 2px; padding: 4px 0; border-radius: 10px; }
.s-counts a:hover { background: rgba(245, 245, 235, .04); text-decoration: none; }
.s-counts a + a { border-left: 1px solid var(--line); }
.s-counts span { color: var(--txt3); font-size: 12px; }
.s-counts strong { font: 600 18px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.s-row-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.s-row-link:hover { text-decoration: none; }
.s-row-link .s-ico { flex: none; }
.s-row-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.s-row-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-row-text span { color: var(--txt3); font-size: 13px; }
.s-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface); color: var(--txt2); }
.s-ico-run { color: var(--run); } .s-ico-ride { color: var(--ride); } .s-ico-gym { color: var(--gym); } .s-ico-walk { color: var(--walk); }

/* Seria tygodnia */
.s-streak { width: 100%; display: grid; gap: 10px; text-align: left; }
.s-streak-head { display: flex; justify-content: space-between; align-items: baseline; }
.s-streak-head strong { font-weight: 600; }
.s-streak-head span { color: var(--vitos); font-weight: 600; font-variant-numeric: tabular-nums; }
.s-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.s-day { display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--txt3); }
.s-dot { width: 26px; height: 26px; border-radius: 999px; background: var(--overlay); display: grid; place-items: center; color: var(--on-accent); }
.s-dot.is-on { background: var(--vitos); }
.s-dot.is-today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.s-dot.is-future { background: transparent; border: 1px dashed var(--line-strong); }

/* Cele */
.s-sport-tabs { display: flex; gap: 4px; }
.s-sport-tabs button { width: 36px; height: 32px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--txt3); display: grid; place-items: center; cursor: pointer; }
.s-sport-tabs button[aria-pressed="true"] { border-color: var(--line-strong); color: var(--txt); background: rgba(245, 245, 235, .05); }
.s-goal { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; }
.s-ring { position: relative; width: 104px; height: 104px; }
.s-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.s-ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.s-ring-val strong { font: 500 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.s-ring-val span { color: var(--txt3); font-size: 12px; margin-top: 3px; }
.s-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; height: 72px; }
.s-bars i { display: block; border-radius: 4px 4px 2px 2px; background: var(--vitos); min-height: 3px; }
.s-bars i.is-zero { background: var(--overlay); }
.s-bars-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; color: var(--txt3); font-size: 11px; margin-top: 4px; }
.s-goal-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt3); }
.s-goal-line strong { color: var(--txt); font-weight: 600; }

/* Filtr kanału */
.s-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.s-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--txt2); font-weight: 500; font-size: 14px; background: transparent; }
.s-pill:hover { text-decoration: none; background: rgba(245, 245, 235, .05); }
.s-pill[aria-current="page"], .s-pill[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.s-pill .s-club-dot { width: 18px; height: 18px; border-radius: 6px; font-size: 10px; }
.s-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); gap: 2px; }
.s-seg button { height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--txt3); font-weight: 500; font-size: 14px; cursor: pointer; }
.s-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Karta treningu w kanale */
.s-act { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 14px; }
.s-act-head { display: flex; gap: 12px; align-items: center; }
.s-act-who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.s-act-who strong { font-weight: 600; }
.s-act-who span { color: var(--txt3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.s-act-title { display: flex; align-items: center; gap: 12px; }
.s-act-title h3 { font: 600 20px/1.25 var(--sans); }
.s-stats { display: flex; gap: 0; margin: 0; }
.s-stats > div { padding: 0 22px; border-left: 1px solid var(--line); }
.s-stats > div:first-child { padding-left: 0; border-left: 0; }
.s-stats dt { color: var(--txt3); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.s-stats dd { margin: 3px 0 0; font: 600 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.s-stats dd small { font-size: 14px; font-weight: 500; color: var(--txt2); margin-left: 2px; }
.s-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--map); }
.s-map svg { display: block; width: 100%; height: auto; }
.s-photos { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; }
.s-photos-2 { grid-template-columns: 1fr 1fr; }
.s-photos-3 { grid-template-columns: 2fr 1fr 1fr; }
.s-photo { aspect-ratio: 4 / 3; display: block; }
.s-act-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin: 0 -16px -4px; padding-left: 16px; padding-right: 10px; }
.s-givers { display: flex; align-items: center; gap: 10px; color: var(--txt3); font-size: 13px; }
.s-stack { display: flex; }
.s-stack .x-avatar { width: 26px; height: 26px; font-size: 10px; border: 2px solid var(--bg); margin-left: -8px; }
.s-stack .x-avatar:first-child { margin-left: 0; }
.s-acts { display: flex; gap: 2px; }
.s-acts .x-icon-btn { color: var(--txt3); width: 38px; height: 38px; }
.s-acts .is-on { color: var(--vitos); }
.s-acts .is-on .x-icon { fill: rgba(111, 211, 166, .25); }
.s-mini { display: flex; align-items: center; gap: 8px; color: var(--txt2); font-size: 14px; }
.s-mini strong { color: var(--txt); }
.s-challenge-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); }
.s-challenge-card strong { font-weight: 600; font-size: 16px; }

/* Odznaki i kafle klubów */
.s-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; flex: none; }
.s-badge svg { width: 100%; height: 100%; }
.s-badge-44 { width: 44px; height: 44px; }
.s-badge-64 { width: 64px; height: 64px; }
.s-club-dot { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font: 600 14px/1 var(--sans); color: var(--txt); flex: none; }
.c1 { background: #1D4A3E; color: #BDEBD6; } .c2 { background: #1E3B5A; color: #C6DCF4; } .c3 { background: #4A3A22; color: #F3DDB6; }
.c4 { background: #3A3254; color: #DCD3F7; } .c5 { background: #2A3D47; color: #D3DEE3; } .c6 { background: #4A2A31; color: #F6C9CF; }
.s-clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.s-clubs a { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--txt2); }
.s-clubs a:hover { text-decoration: none; color: var(--txt); }
.s-clubs .s-club-dot { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }
.s-clubs span { max-width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-ch { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.s-ch-body { display: grid; gap: 6px; min-width: 0; }
.s-ch-body strong { font-weight: 600; font-size: 14px; }
.s-ch-body .x-progress { height: 6px; }
.s-ch-val { font-size: 12px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.s-ch-val b { color: var(--txt); font-weight: 600; }
.s-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

/* Strona treningu */
.s-hero-head { display: flex; align-items: center; gap: 12px; }
.s-hero-head .x-avatar { width: 48px; height: 48px; }
.s-h1 { font: 600 30px/1.15 var(--sans); letter-spacing: -.2px; }
.s-note { color: var(--txt2); font-size: 16px; }
.s-big { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; }
.s-big > div { padding: 16px 18px; display: grid; gap: 4px; }
.s-big > div + div { border-left: 1px solid var(--line); }
.s-big strong { font: 500 34px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.s-big strong small { font: 500 16px var(--sans); color: var(--txt2); margin-left: 3px; letter-spacing: 0; }
.s-big span { color: var(--txt3); font-size: 13px; }
.s-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.s-table th { text-align: right; color: var(--txt3); font-weight: 500; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.s-table th:first-child, .s-table td:first-child { text-align: left; padding-left: 0; }
.s-table td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td:first-child { color: var(--txt2); }
.s-table .s-unit { color: var(--txt3); font-size: 13px; margin-left: 3px; }
.s-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.s-tabs a { position: relative; padding: 14px 16px; color: var(--txt3); font-weight: 500; }
.s-tabs a:hover { text-decoration: none; color: var(--txt); }
.s-tabs a[aria-current="page"] { color: var(--txt); font-weight: 600; }
.s-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 999px; background: var(--accent); }
.s-elev { display: block; width: 100%; height: auto; }
.s-chart-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-chart-row:last-child { border-bottom: 0; }
.s-chart-label { display: grid; gap: 3px; }
.s-chart-label span { color: var(--txt3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.s-chart-label strong { font: 600 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.s-chart-label strong small { font-size: 13px; color: var(--txt2); font-weight: 500; margin-left: 3px; }
.s-chart-label em { font-style: normal; color: var(--txt3); font-size: 12px; font-variant-numeric: tabular-nums; }
.s-chart { display: block; width: 100%; height: 112px; }
.s-axis { display: grid; grid-template-columns: 150px 1fr; gap: 16px; color: var(--txt3); font-size: 12px; padding-top: 6px; }
.s-axis div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.s-split { display: grid; grid-template-columns: 40px 1fr 70px 64px 70px; gap: 12px; align-items: center; padding: 7px 0; font-variant-numeric: tabular-nums; font-size: 14px; }
.s-split-bar { height: 14px; border-radius: 4px; background: rgba(111, 211, 166, .55); }
.s-split.is-best .s-split-bar { background: var(--vitos); }
.s-split-head { color: var(--txt3); font-size: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.s-split > :nth-child(n+3) { text-align: right; }
.s-comment { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.s-comment p { font-size: 14px; }
.s-comment b { font-weight: 600; }
.s-comment time { color: var(--txt3); font-size: 12px; }
.s-input { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--txt3); font-size: 14px; }
.s-input span { flex: 1; }
.s-recent { display: grid; gap: 12px; }
.s-vitos-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.s-vitos-grid .x-avatar { width: 32px; height: 32px; font-size: 11px; }

/* Profil */
.s-cover { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3px; height: 210px; border-radius: 16px; overflow: hidden; }
.s-cover .s-photo { aspect-ratio: auto; height: 100%; }
.s-prof { display: flex; align-items: flex-end; gap: 18px; margin: -56px 0 0 24px; position: relative; }
.s-prof .x-avatar { width: 120px; height: 120px; font-size: 40px; font-family: var(--display); border: 4px solid var(--bg); }
.s-prof-text { flex: 1; display: grid; gap: 4px; padding-bottom: 6px; }
.s-prof-name { font: 600 26px/1.15 var(--sans); }
.s-prof-meta { color: var(--txt3); display: flex; align-items: center; gap: 10px; }
.s-prof-meta strong { color: var(--txt); font-weight: 600; }
.s-prof-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; }
.s-weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.s-weeks-big strong { font: 500 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.s-weeks-big span { color: var(--txt3); margin-left: 6px; }
.s-dots { display: grid; grid-template-columns: repeat(7, 26px); grid-auto-rows: 26px; gap: 6px; margin-top: 14px; }
.s-dots i { display: grid; place-items: center; }
.s-dots i::before { content: ""; width: var(--d, 6px); height: var(--d, 6px); border-radius: 999px; background: var(--vitos); }
.s-dots i.is-zero::before { width: 6px; height: 6px; background: var(--overlay); }
.s-dots i.is-today { border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.s-dots-days { display: grid; grid-template-columns: repeat(7, 26px); gap: 6px; color: var(--txt3); font-size: 11px; text-align: center; margin-top: 6px; }
.s-sportbars { display: grid; gap: 12px; }
.s-sportbar { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.s-sportbar-track { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: var(--overlay); overflow: hidden; margin-top: -6px; }
.s-sportbar-track i { display: block; height: 100%; border-radius: 999px; }
.s-year { display: block; width: 100%; height: auto; }
.s-year-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s-badges { display: flex; gap: 18px; }
.s-badges a { display: grid; justify-items: center; gap: 8px; width: 92px; text-align: center; font-size: 12px; color: var(--txt2); }
.s-list-row { display: grid; grid-template-columns: 36px 1fr 90px 90px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.s-list-row:last-child { border-bottom: 0; }
.s-list-row > span:nth-child(n+3) { text-align: right; }
.s-cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.s-cmp th { padding: 0 0 10px; font-weight: 500; color: var(--txt3); text-align: right; }
.s-cmp th:first-child { text-align: left; }
.s-cmp th .x-avatar { width: 32px; height: 32px; font-size: 11px; display: inline-grid; }
.s-cmp td { padding: 8px 0; text-align: right; color: var(--txt2); border-top: 1px solid var(--line); }
.s-cmp td:first-child { text-align: left; color: var(--txt3); }
.s-cmp td.is-lead { color: var(--txt); font-weight: 600; }
.s-cmp tr.s-cmp-group td { color: var(--txt); font-weight: 600; padding-top: 16px; border-top: 0; }

/* Klub */
.s-club-cover { height: 168px; border-radius: 16px; overflow: hidden; }
.s-club-head { display: flex; align-items: flex-end; gap: 18px; margin: -44px 0 0 24px; position: relative; }
.s-club-head .s-club-dot { width: 96px; height: 96px; border-radius: 24px; font: 600 32px/1 var(--display); border: 4px solid var(--bg); }
.s-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.s-event { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; }
.s-date { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--surface); }
.s-date span { color: var(--txt3); font-size: 12px; }
.s-date strong { font: 500 30px/1 var(--display); }
.s-event h3 { font: 600 18px/1.25 var(--sans); }
.s-event-meta { color: var(--txt3); font-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.s-event-who { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--txt3); font-size: 13px; }
.s-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s-leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s-leader { border-radius: 14px; background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.s-leader-top { display: flex; align-items: center; gap: 10px; }
.s-leader-top span { color: var(--txt3); font-size: 13px; }
.s-leader strong { font: 500 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.s-leader strong small { font: 500 14px var(--sans); color: var(--txt2); margin-left: 3px; }
.s-leader-who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.s-leader-who .x-avatar { width: 28px; height: 28px; font-size: 10px; }
.s-rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.s-rank th { color: var(--txt3); font-weight: 500; font-size: 13px; text-align: right; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.s-rank th:nth-child(1), .s-rank th:nth-child(2) { text-align: left; }
.s-rank td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.s-rank td:nth-child(1) { text-align: left; width: 44px; color: var(--txt3); font-weight: 600; }
.s-rank td:nth-child(2) { text-align: left; }
.s-rank td:nth-child(3) { font-weight: 600; }
.s-rank tr.is-me td { background: rgba(245, 245, 235, .05); }
.s-rank tr.is-me td:first-child { border-radius: 10px 0 0 10px; }
.s-rank tr.is-me td:last-child { border-radius: 0 10px 10px 0; }
.s-rank-who { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.s-rank-who .x-avatar { width: 30px; height: 30px; font-size: 11px; }
.s-rank .s-top3 { color: var(--gold); }
.s-members { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.s-members .x-avatar { width: 40px; height: 40px; font-size: 13px; }
.s-snip { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.s-snip-head { display: flex; gap: 6px; align-items: baseline; font-size: 14px; }
.s-snip-head b { font-weight: 600; }
.s-snip p { font-size: 14px; color: var(--txt2); margin-top: 2px; }
.x-avatar.a1 { background: #1D4A3E; } .x-avatar.a2 { background: #1E3B5A; } .x-avatar.a3 { background: #4A3A22; }
.x-avatar.a4 { background: #3A3254; } .x-avatar.a5 { background: #2A3D47; } .x-avatar.a6 { background: #4A2A31; }
.x-avatar.x-avatar-initials { border-color: transparent; }
.s-photo-wide { aspect-ratio: 16 / 10; }
.s-photos-4 { grid-template-columns: repeat(4, 1fr); } .s-photos-4 .s-photo { aspect-ratio: 1; border-radius: 12px; } .s-photos-4 { gap: 8px; border-radius: 0; }
.s-rank td.s-top3 { color: var(--gold); }

/* ——— Ekrany z kodu (22.11, faza 2) ——— */
.s-app .x-avatar-72 { width: 72px; height: 72px; font: 600 24px/1 var(--display); }
.s-app .x-avatar-120 { width: 120px; height: 120px; font: 600 40px/1 var(--display); border: 4px solid var(--bg); }
.s-app .x-avatar-48 { width: 48px; height: 48px; }
.s-app .x-avatar-28 { width: 28px; height: 28px; font-size: 10px; }
.s-dd { position: relative; }
.s-dd summary { list-style: none; cursor: pointer; }
.s-dd summary::-webkit-details-marker { display: none; }
.s-menu .s-dd summary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--txt2); font-weight: 500; }
.s-menu .s-dd summary:hover, .s-menu .s-dd[open] summary { background: rgba(245, 245, 235, .06); }
.s-menu .s-dd summary[aria-current="page"] { color: var(--txt); font-weight: 600; background: rgba(245, 245, 235, .07); }
.s-dd .x-menu { top: calc(100% + 6px); left: 0; }
.s-dd-right .x-menu { left: auto; right: 0; }
.s-top .x-search { width: 260px; }
.s-top .x-icon-btn[aria-current="page"] { background: rgba(245, 245, 235, .08); }
.s-page-x { grid-template-columns: 640px 320px; justify-content: center; }
.s-page-x .s-x-main, .s-page-wide .s-x-main { width: auto; min-height: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.s-page-x .x-col-head, .s-page-wide .x-col-head, .s-page-x .x-tabs { position: static; }
.s-page-wide { grid-template-columns: minmax(0, 1fr); }
.s-page-narrow { grid-template-columns: minmax(0, 720px); justify-content: center; }
.s-page-full { grid-template-columns: minmax(0, 1fr); }
.s-me-text { display: grid; gap: 2px; }
.s-me-name { font: 600 20px/1.2 var(--sans); }
.s-sep { width: calc(100% + 32px); }
.s-me-card .s-sep { margin: 0 -16px; }
.s-sport-tabs a { width: 36px; height: 32px; border-radius: 999px; border: 1px solid transparent; color: var(--txt3); display: grid; place-items: center; }
.s-sport-tabs a:hover { text-decoration: none; color: var(--txt); }
.s-sport-tabs a[aria-pressed="true"] { border-color: var(--line-strong); color: var(--txt); background: rgba(245, 245, 235, .05); }
.s-ico-swim { color: var(--swim); } .s-ico-yoga { color: var(--yoga); } .s-ico-other { color: var(--other); }
.s-ico-big { width: 44px; height: 44px; }
.s-ico-sm { width: 30px; height: 30px; border-radius: 10px; }
.s-tone-gold { color: var(--gold); } .s-tone-vitos { color: var(--vitos); } .s-tone-link { color: var(--link); }
.s-bg-run { background: var(--run); } .s-bg-ride { background: var(--ride); } .s-bg-gym { background: var(--gym); } .s-bg-walk { background: var(--walk); }
.s-bg-swim { background: var(--swim); } .s-bg-yoga { background: var(--yoga); } .s-bg-other { background: var(--other); }
.s-badge { position: relative; display: inline-grid; place-items: center; flex: none; }
.s-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-badge .x-icon { position: relative; }
.s-ch { color: inherit; }
.s-ch:hover { text-decoration: none; }
.s-ch:hover strong { text-decoration: underline; }
.x-chip-vitos { color: var(--vitos); border-color: rgba(111, 211, 166, .5); justify-self: start; }
.x-chip-danger { color: var(--rec); border-color: rgba(255, 124, 140, .5); margin-left: 8px; }
.s-act-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--txt2); }
.s-act-who a { color: inherit; }
.s-act-post { padding: 0; overflow: hidden; }
.s-act-post .x-post { border-bottom: 0; }
.s-act-foot form { display: contents; }
.s-photos-1 { grid-template-columns: 1fr; } .s-photos-1 .s-photo { aspect-ratio: 16 / 9; }
.s-photo { width: 100%; height: 100%; object-fit: cover; background: var(--overlay); }
.s-photos-4 .s-photo { aspect-ratio: 1; border-radius: 12px; }
.s-more-block { display: block; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--link); }
.s-title-row { display: flex; align-items: center; gap: 14px; }
.s-h2 { font: 600 22px/1.2 var(--sans); }
.s-h3 { font: 600 18px/1.2 var(--sans); }
.s-legal { color: var(--txt2); font-size: 14px; line-height: 1.5; }
.s-confirm { gap: 16px; }
.s-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.x-btn-danger { background: var(--rec); color: var(--on-accent); }
.x-btn-danger:hover { background: #FF97A4; }
.s-menu-ring summary { margin: 0; width: 38px; height: 38px; border: 1px solid var(--line-strong); color: var(--txt); }
.s-card-tight { gap: 6px; }
.s-zones { display: grid; gap: 8px; }
.s-zones h2 { font: 600 16px/1.2 var(--sans); }
.s-zone { display: grid; grid-template-columns: 70px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; color: var(--txt3); }
.s-zone i { display: block; height: 10px; border-radius: 4px; }
.s-zone strong { text-align: right; color: var(--txt); font-weight: 600; font-variant-numeric: tabular-nums; }
.s-chart-line { stroke: var(--vitos); }
.s-chart-rec .s-chart-line { stroke: var(--rec); } .s-chart-rec .s-chart-dot { fill: var(--rec); }
.s-chart-elev .s-chart-line { stroke: var(--txt2); } .s-chart-elev .s-chart-dot { fill: var(--txt2); }
.s-chart-dot { fill: var(--vitos); stroke: var(--bg); stroke-width: 2; }
.s-analysis { cursor: crosshair; }
.s-comment-text { overflow-wrap: anywhere; }
.s-comment a { color: inherit; }
.s-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--txt); font: 400 14px var(--sans); }
.s-input input:focus { outline: none; }
.s-input:focus-within { border-color: var(--link); }
.s-prof-wrap { display: grid; gap: 8px; }
.s-cover { background: var(--surface); }
.s-cover-0 { height: 120px; grid-template-columns: 1fr; }
.s-cover-1 { grid-template-columns: 1fr; } .s-cover-2 { grid-template-columns: 1fr 1fr; } .s-cover-3 { grid-template-columns: 2fr 1fr 1fr; }
.s-prof-meta { flex-wrap: wrap; }
.s-prof-meta a { color: var(--txt3); }
.s-prof-actions form { display: contents; }
.s-bio { white-space: pre-wrap; color: var(--txt2); margin: 4px 0 0 24px; }
.s-seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.s-seg a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; color: var(--txt3); font-weight: 500; font-size: 14px; }
.s-seg a:hover { text-decoration: none; color: var(--txt); }
.s-seg a[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.s-badge-item { display: grid; justify-items: center; gap: 8px; width: 92px; text-align: center; font-size: 12px; color: var(--txt2); }
.s-badges { flex-wrap: wrap; }
a.s-list-row { color: inherit; }
a.s-list-row:hover { text-decoration: none; background: rgba(245, 245, 235, .03); }
.s-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-toolbar .x-search { width: 260px; height: 40px; }
.s-select select, .s-select input { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--txt); font: 500 14px var(--sans); }
.s-select select option { background: var(--bg); }
.s-select-num input { width: 110px; }
.s-stats-bar { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.s-grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-grid-table th { text-align: left; color: var(--txt3); font-weight: 500; font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); }
.s-grid-table th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.s-grid-table th a[aria-sort] { color: var(--txt); }
.s-grid-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.s-grid-table tr:last-child td { border-bottom: 0; }
.s-grid-table td .x-chip { margin-left: 6px; }
.s-grid-table td a { color: inherit; }
.s-nowrap { white-space: nowrap; color: var(--txt2); }
.s-log { overflow-x: auto; }
.s-log-row { display: grid; grid-template-columns: 150px repeat(7, minmax(92px, 1fr)); border-bottom: 1px solid var(--line); min-height: 112px; }
.s-log-row:last-child { border-bottom: 0; }
.s-log-head { min-height: 0; color: var(--txt3); font-size: 12px; text-align: center; }
.s-log-head span { padding: 8px 0; }
.s-log-week { display: grid; align-content: center; gap: 2px; padding: 12px 14px; border-right: 1px solid var(--line); font-size: 13px; }
.s-log-week span { color: var(--txt3); font-variant-numeric: tabular-nums; }
.s-log-day { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; padding: 22px 6px 10px; border-right: 1px solid var(--line); }
.s-log-day:last-child { border-right: 0; }
.s-log-day.is-today { background: rgba(245, 245, 235, .03); }
.s-log-date { position: absolute; top: 6px; left: 8px; font-size: 11px; color: var(--txt3); }
.s-log-item { display: grid; justify-items: center; gap: 3px; text-align: center; color: inherit; max-width: 100%; }
.s-log-item:hover { text-decoration: none; }
.s-log-bubble { border-radius: 999px; opacity: .9; }
.s-log-bubble.is-manual, .s-legend .is-manual { background: transparent !important; border: 2px dashed var(--run); }
.s-log-title { font-size: 12px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-log-val { font-size: 11px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.s-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--txt3); font-size: 13px; }
.s-legend span { display: inline-flex; align-items: center; gap: 6px; }
.s-legend i { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.s-year-nav { display: flex; align-items: center; gap: 12px; }
.is-off { opacity: .35; }
.s-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s-month { gap: 10px; }
.s-month-bars { display: flex; align-items: flex-end; gap: 2px; height: 58px; }
.s-month-bars i { flex: 1; border-radius: 2px; background: var(--vitos); }
.s-month-bars i.is-zero { background: var(--overlay); }
.s-form { display: grid; gap: 14px; }
.s-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.s-tags, .s-sport-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s-sport-pick legend, .s-fieldset legend { color: var(--txt2); font-size: 13px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.s-tag input { position: absolute; opacity: 0; pointer-events: none; }
.s-tag span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--txt2); font-weight: 500; font-size: 14px; cursor: pointer; }
.s-tag input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.s-tag input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.s-goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.s-goal-card h2 { display: inline-flex; align-items: center; gap: 8px; }
.s-goal-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-featured { grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; display: grid; }
.s-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.s-ch-card { justify-items: center; text-align: center; }
.s-ch-card h3 { font: 600 16px/1.3 var(--sans); }
.s-card-rank { padding: 12px 16px 8px; }
.s-rank-foot { font-size: 13px; padding: 8px 0 4px; }
.s-rank-who { color: inherit; }
.s-club-cover { background: var(--surface); }
.s-club-cover .s-photo, .s-cover-tone { display: block; width: 100%; height: 100%; }
.s-cover-tone { opacity: .55; }
.s-club-dot-xl { width: 96px; height: 96px; border-radius: 24px; font: 600 32px/1 var(--display); border: 4px solid var(--bg); }
.s-club-head .s-club-dot-xl { width: 96px; height: 96px; }
.s-date-sm { width: 48px; padding: 6px 0; border-radius: 12px; flex: none; }
.s-date-sm strong { font-size: 20px; }
.s-event h3 a { color: inherit; }
.s-event-actions { display: grid; gap: 6px; justify-items: end; }
.s-event-actions form { display: contents; }
.s-search-big { height: 52px; font-size: 17px; }
.s-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-radio { display: flex; gap: 10px; align-items: center; color: var(--txt); cursor: pointer; }
.s-radio input { accent-color: var(--accent); width: 18px; height: 18px; }
.s-vitos-grid a:hover { text-decoration: none; }
.s-members a:hover { text-decoration: none; }
@media (max-width: 1280px) {
  .s-top-in, .s-page { width: auto; margin: 0 24px; }
  .s-page { margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .s-page-3 { grid-template-columns: 260px minmax(0, 1fr) 280px; }
  .s-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .s-page-3 { grid-template-columns: 260px minmax(0, 1fr); }
  .s-page-3 > .s-col:last-child { display: none; }
  .s-page-2, .s-page-x { grid-template-columns: minmax(0, 1fr); }
  .s-top .x-search { width: 200px; }
}
@media (max-width: 860px) {
  .s-page-3 { grid-template-columns: minmax(0, 1fr); }
  .s-top { height: auto; }
  .s-top-in { flex-wrap: wrap; padding: 8px 0; margin: 0 12px; }
  .s-menu { order: 3; width: 100%; overflow-x: auto; }
  .s-top .x-search { display: none; }
  .s-page { padding: 16px 12px 48px; }
  .s-big { grid-template-columns: repeat(2, 1fr) !important; }
  .s-big > div:nth-child(3) { border-left: 0; }
  .s-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-leaders { grid-template-columns: 1fr; }
  .s-prof, .s-club-head { flex-wrap: wrap; margin-left: 12px; }
  .s-featured { grid-template-columns: 1fr; justify-items: start; }
  .s-chart-row { grid-template-columns: 1fr; }
  .s-axis { grid-template-columns: 1fr; }
  .s-axis > span { display: none; }
}
/* CSP webu (style-src 'self') nie pozwala na atrybuty style: wymiary z klas i z atrybutów SVG. */
.s-badge-44 { width: 44px; height: 44px; } .s-badge-56 { width: 56px; height: 56px; } .s-badge-64 { width: 64px; height: 64px; }
.s-badge-72 { width: 72px; height: 72px; } .s-badge-96 { width: 96px; height: 96px; }
.s-big-1 { grid-template-columns: 1fr; } .s-big-2 { grid-template-columns: repeat(2, 1fr); } .s-big-3 { grid-template-columns: repeat(3, 1fr); } .s-big-4 { grid-template-columns: repeat(4, 1fr); }
svg.s-bars { display: block; width: 100%; height: 72px; }
.s-fill-vitos { fill: var(--vitos); } .s-fill-overlay { fill: var(--overlay); }
.s-fill-run { fill: var(--run); } .s-fill-ride { fill: var(--ride); } .s-fill-gym { fill: var(--gym); } .s-fill-walk { fill: var(--walk); }
.s-fill-swim { fill: var(--swim); } .s-fill-yoga { fill: var(--yoga); } .s-fill-other { fill: var(--other); }
.s-stroke-accent { stroke: var(--accent); }
.s-stroke-run { stroke: var(--run); } .s-stroke-ride { stroke: var(--ride); } .s-stroke-gym { stroke: var(--gym); } .s-stroke-walk { stroke: var(--walk); }
.s-stroke-swim { stroke: var(--swim); } .s-stroke-yoga { stroke: var(--yoga); } .s-stroke-other { stroke: var(--other); }
.s-zone-bar { display: block; width: 100%; height: 10px; }
svg.s-dots { display: block; width: 224px; height: 128px; margin-top: 14px; }
.s-dots-days { grid-template-columns: repeat(7, 32px); gap: 0; }
svg.s-sportbar-track { display: block; width: 100%; height: 6px; background: none; }
svg.s-month-bars { display: block; width: 100%; height: 58px; }
.s-log-bubble { display: block; opacity: .9; }
.s-act, .s-card { grid-template-columns: minmax(0, 1fr); }
.s-stats { flex-wrap: wrap; row-gap: 10px; }
.s-act-who span { flex-wrap: wrap; }
@media (max-width: 860px) {
  .s-stats > div { padding: 0 14px; }
  .s-act-title h3 { font-size: 18px; }
  .s-goal { grid-template-columns: 88px 1fr; }
}
.s-card-flush:has(.s-grid-table) { overflow-x: auto; }
@media (max-width: 860px) { .s-toolbar .x-search { width: 100%; } .s-page-head { flex-wrap: wrap; } }
.s-cover-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0 24px; }
.s-file-btn { position: relative; overflow: hidden; }

/* ——— Szkielety ładowania (x.js) i połysk zdjęć: plamy w kolorze nakładki, spokojny połysk wspólny dla całej strony ——— */
.k-off { display: none !important; }
.k, img.k-img { background-color: var(--overlay);
  background-image: linear-gradient(100deg, rgba(245, 245, 235, 0) 30%, rgba(245, 245, 235, .045) 50%, rgba(245, 245, 235, 0) 70%);
  background-size: 200% 100%; background-repeat: no-repeat; background-attachment: fixed; animation: k-shine 1.8s ease-in-out infinite; }
@keyframes k-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.k { display: block; flex: none; border-radius: 8px; }
.k-line { height: 12px; border-radius: 6px; }
.k-line-lg { height: 22px; border-radius: 8px; }
.k-w5 { width: 5%; } .k-w10 { width: 10%; } .k-w15 { width: 15%; } .k-w25 { width: 25%; } .k-w30 { width: 30%; } .k-w35 { width: 35%; }
.k-w40 { width: 40%; } .k-w45 { width: 45%; } .k-w50 { width: 50%; } .k-w55 { width: 55%; } .k-w60 { width: 60%; } .k-w75 { width: 75%; }
.k-w80 { width: 80%; } .k-w85 { width: 85%; } .k-w90 { width: 90%; }
.k-circle { border-radius: 999px; }
.k-32 { width: 32px; height: 32px; } .k-40 { width: 40px; height: 40px; } .k-56 { width: 56px; height: 56px; } .k-72 { width: 72px; height: 72px; }
.k-96 { width: 96px; height: 96px; } .k-120 { width: 120px; height: 120px; }
.k-square { border-radius: 14px; }
.k-box { width: 100%; border-radius: 12px; }
.k-box.k-w40 { width: 40%; } .k-box.k-grow { width: auto; }
.k-h96 { height: 96px; } .k-h140 { height: 140px; } .k-h160 { height: 160px; } .k-h200 { height: 200px; } .k-h260 { height: 260px; }
.k-pill { width: 96px; height: 34px; border-radius: 999px; }
.k-num { width: 64px; height: 22px; } .k-num-lg { width: 84px; height: 30px; }
.k-dot { width: 22px; height: 22px; border-radius: 999px; }
.k-bar { width: 100%; height: 6px; border-radius: 999px; }
.k-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-stack { display: grid; gap: 8px; min-width: 0; }
.k-grow { flex: 1; }
.k-stats { gap: 28px; flex-wrap: wrap; }
.k-stats .k-stack > .k-line { width: 48px; }
.k-pills { gap: 8px; }
.k-actions { justify-content: flex-end; gap: 18px; }
.k-tabs { gap: 32px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.k-tabs .k-line { width: 72px; }
.k-list-row { padding: 6px 0; }
.k-card { gap: 16px; }
.k-center { justify-items: center; }
.k-center .k-line-lg { justify-self: center; }
.k-center .k-stats { justify-content: center; }
.k-cover { border-radius: 16px; }
.k-prof { margin: -56px 0 0 24px; align-items: flex-end; }
.k-prof .k-circle { border: 4px solid var(--bg); box-sizing: content-box; }
.k-club { padding: 0 4px; }
.k-xhead { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.k-xpost { padding: 14px 16px; }
.k-xpost .k-row { align-items: flex-start; }
.k-skeleton { pointer-events: none; }
img.k-img { color: transparent; }
.x-media-1 img.k-img { aspect-ratio: 4 / 3; }
@media (prefers-reduced-motion: reduce) {
  .k, img.k-img { animation: none; background-image: none; }
}
@media (max-width: 860px) {
  .k-prof { margin-left: 12px; }
  .k-prof .k-circle { width: 88px; height: 88px; }
  .k-tabs { gap: 20px; overflow: hidden; }
}

/* ═════════ Kierunek B „Zdjęcie i ziarno” (22.11.2026; /tmp/lonvit-strava/wizualia/wizualia.md §3–4, makiety B-*) ═════════
   Baza biało-szara: zieleń (--vitos) tylko dla vitosa, postępu, „dziś”, startu trasy i obwódki mojego awatara.
   Gradienty: najpierw zwykły sRGB, potem `in oklch` (Safari 16.2+). Ziarno to kafel PNG 160 px (bez data-URI feTurbulence).
   CSP (style-src 'self') nie pozwala na atrybuty style: wszystko przez klasy. */
:root { --grain: url("/community/assets/x/grain.png"); --grey-bar: #8C9AA2; --ink-a: rgba(12, 26, 35, 0); }

/* Karty odróżnione od strony */
.s-card, .s-act { background-color: var(--surface); border-color: rgba(245, 245, 235, .05); border-radius: 20px; }
.s-pill, .s-seg { background: transparent; }

/* Ikony sportów białe na szarym polu, bez koloru sportu */
.s-ico, .s-ico-run, .s-ico-ride, .s-ico-gym, .s-ico-walk, .s-ico-swim, .s-ico-yoga, .s-ico-other { background: var(--overlay); color: var(--txt); }
.s-streak-head span { color: var(--txt); }
.s-dot.is-on { background: var(--txt); color: var(--on-accent); }
.s-dot.is-today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--vitos); }

/* Wykresy: biel i szarość, dziś / bieżący okres zielony */
.s-fill-bar { fill: url(#s-g-bar); } .s-fill-area { fill: url(#s-g-area); } .s-fill-white { fill: var(--txt); } .s-fill-grey { fill: #C9D0D4; }
.s-op-1 { opacity: .45; } .s-op-2 { opacity: .7; } .s-op-3 { opacity: 1; }
svg.s-bars-84 { height: 84px; }
.s-chart-line { stroke: var(--txt); } .s-chart-dot { fill: var(--txt); }
.s-chart-rec .s-chart-line { stroke: var(--txt2); } .s-chart-rec .s-chart-dot { fill: var(--txt2); }
.s-chart-elev .s-chart-line { stroke: var(--txt); } .s-chart-elev .s-chart-dot { fill: var(--txt); }
.s-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Awatary i znaki klubów: neutralny gradient OKLCH zamiast płaskiego granatu */
.x-avatar-initials, .x-avatar.a1, .x-avatar.a2, .x-avatar.a3, .x-avatar.a4, .x-avatar.a5, .x-avatar.a6,
.s-club-dot, .s-club-dot.c1, .s-club-dot.c2, .s-club-dot.c3, .s-club-dot.c4, .s-club-dot.c5, .s-club-dot.c6 {
  background: linear-gradient(160deg, #56646E, #2B3A44);
  background: linear-gradient(in oklch 160deg, oklch(0.42 0.02 230), oklch(0.28 0.025 232)); color: var(--txt); border-color: transparent; }
.x-avatar-me { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--vitos); }
.s-top .x-avatar-me { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--vitos); }
.s-prof .x-avatar-me { border-color: var(--bg); box-shadow: 0 0 0 3px var(--vitos); }

/* Zdjęcie zastępcze sportu: szare i przygaszone, czyta się jako tło, nie jako zdjęcie osoby */
.s-stock { filter: grayscale(1) brightness(.5) contrast(1.1); object-fit: cover; }

/* Karta treningu w kanale: media od krawędzi */
.s-act-b { padding: 0; gap: 0; overflow: hidden; }
.s-media { position: relative; height: 300px; overflow: hidden; background: var(--bg); }
.s-media-route { height: 360px; }
.s-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(12, 26, 35, .96) 0%, rgba(12, 26, 35, .55) 38%, rgba(12, 26, 35, 0) 68%), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .96) 0%, oklch(0.205 0.028 232 / .55) 38%, oklch(0.205 0.028 232 / 0) 68%), var(--grain); }
.s-scrim-route { background: linear-gradient(to top, rgba(12, 26, 35, .9), rgba(12, 26, 35, 0) 45%);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .9), oklch(0.205 0.028 232 / 0) 45%); }
.s-routepanel { position: absolute; inset: 0;
  background: var(--grain), radial-gradient(80% 90% at 30% 20%, #26363F, #0E1C25 70%);
  background: var(--grain), radial-gradient(80% 90% at 30% 20% in oklch, oklch(0.32 0.03 230), oklch(0.19 0.026 232) 70%); }
.s-routepanel .s-route { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 118px); }
.s-map { background: var(--grain), radial-gradient(80% 90% at 30% 20%, #26363F, #0E1C25 70%); border-color: transparent; }
.s-pip { position: absolute; right: 14px; top: 14px; width: 110px; height: 140px; border-radius: 12px; object-fit: cover; z-index: 2; box-shadow: 0 0 0 2px rgba(12, 26, 35, .6); }
.s-chip { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(12, 26, 35, .7); background: oklch(0.205 0.028 232 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--txt); font: 600 13px/1 var(--sans); }
.s-media-txt { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; z-index: 2; color: var(--txt); }
.s-media-txt h3 { font: 600 20px/1.25 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-media-txt a { color: inherit; }
.s-hero { display: flex; align-items: flex-end; gap: 10px 22px; flex-wrap: wrap; }
.s-hero > strong { font: 500 60px/.95 var(--display); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.s-hero > strong small { font: 500 18px var(--sans); color: var(--txt2); margin-left: 4px; letter-spacing: 0; }
.s-hero-stats { display: flex; gap: 10px 18px; margin: 0; flex-wrap: wrap; padding-bottom: 3px; }
.s-hero-stats dt { color: var(--txt2); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.s-hero-stats dd { margin: 2px 0 0; font: 600 17px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.s-hero-stats dd small { font-size: 13px; color: var(--txt2); font-weight: 500; margin-left: 2px; }
.s-act-in { padding: 14px 16px 4px; display: grid; gap: 10px; min-width: 0; }
.s-act-b .s-act-foot { margin: 0; border-top: 0; padding: 4px 10px 10px 16px; }
.s-act-b .s-act-text { color: var(--txt2); }

/* Strona treningu: duże media z trasą i zdjęciami, liczby na scrimie */
.s-act-hero .s-media-hero { height: 400px; }
.s-media-split { display: grid; grid-template-columns: 3fr 1fr; gap: 3px; }
.s-media-split .s-routepanel { position: relative; }
.s-media-side { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.s-media-side img { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.s-act-hero .s-scrim-route { background: linear-gradient(to top, rgba(12, 26, 35, .95), rgba(12, 26, 35, 0) 40%), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .95), oklch(0.205 0.028 232 / 0) 40%), var(--grain); }
.s-hero-title { font: 600 28px/1.2 var(--sans); }
.s-hero-big { display: flex; gap: 12px 34px; align-items: baseline; flex-wrap: wrap; }
.s-hero-big > div { display: grid; gap: 4px; }
.s-hero-big strong { font: 500 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.s-hero-big strong.s-hero-first { font-size: 72px; line-height: .95; letter-spacing: -.5px; }
.s-hero-big strong small { font: 500 16px var(--sans); color: var(--txt2); margin-left: 3px; letter-spacing: 0; }
.s-hero-big span { color: var(--txt2); font-size: 13px; }
.s-act-hero .s-act-in { padding: 14px 16px 16px; }
.s-act-hero .s-note { font-size: 16px; }

/* „Twój tydzień”: przygaszone zdjęcie pod gradientem z ziarnem */
.s-week { position: relative; overflow: hidden; gap: 18px; }
.s-week-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-week-scrim { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12, 26, 35, .95) 30%, rgba(12, 26, 35, .55)), var(--grain);
  background: linear-gradient(in oklch to right, oklch(0.205 0.028 232 / .95) 30%, oklch(0.205 0.028 232 / .55)), var(--grain); }
.s-on-media { position: relative; z-index: 1; }
.s-week-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; }
.s-week-num { display: grid; gap: 4px; }
.s-week-num strong { font: 500 48px/1 var(--display); font-variant-numeric: tabular-nums; }

/* Lewa kolumna: karta profilu z paskiem zdjęcia */
.s-me-card { position: relative; overflow: hidden; padding-top: 0; }
.s-me-cover { position: relative; height: 84px; margin: 0 -16px; width: calc(100% + 32px); }
.s-me-cover img { width: 100%; height: 100%; display: block; }
.s-me-cover i { position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), rgba(19, 36, 46, 0) 80%), var(--grain); }
.s-me-avatar { margin-top: -52px; position: relative; }
.s-me-card .x-avatar-me { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--vitos); }

/* Kafle klubów z okładką */
.s-club-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-club-tiles a { position: relative; height: 78px; border-radius: 14px; overflow: hidden; display: block; background: var(--bg); }
.s-club-tiles a:hover { text-decoration: none; }
.s-club-tiles img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-club-tiles i { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 26, 35, .92), rgba(12, 26, 35, 0) 70%), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .92), oklch(0.205 0.028 232 / 0) 70%), var(--grain); }
.s-club-tiles span { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 13px; font-weight: 600; color: var(--txt); z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Okładki: mozaika profilu i klub ze scrimem */
.s-cover-mosaic { position: relative; height: 260px; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--bg); }
.s-cover-mosaic > img { width: 100%; height: 100%; object-fit: cover; min-height: 0; display: block; }
.s-cover-mosaic > img:first-child { grid-row: 1 / 3; }
.s-cover-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 26, 35, .9), rgba(12, 26, 35, 0) 50%), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .9), oklch(0.205 0.028 232 / 0) 50%), var(--grain); }
.s-club-cover { position: relative; }
.s-club-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Rozeta odznaki (biała, ikona granatowa) i odznaki na zdjęciach */
.s-rosette { fill: var(--txt); }
.s-badge { color: var(--on-accent); }
.s-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.s-badge-item { width: auto; }
.s-badge-tile { position: relative; width: 100%; height: 120px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.s-badge-tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-badge-tile i { position: absolute; inset: 0; background: radial-gradient(circle, rgba(12, 26, 35, .2), rgba(12, 26, 35, .85)), var(--grain); }
.s-badge-tile .s-badge { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .s-page-3 > .s-col:first-child { order: 2; }
  .s-media { height: 340px; }
  .s-media-route { height: 400px; }
  .s-hero > strong { font-size: 52px; }
  .s-pip { width: 92px; height: 118px; }
  .s-week-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .s-act-hero .s-media-hero { height: 440px; }
  .s-media-split { grid-template-columns: minmax(0, 1fr); }
  .s-media-side { display: none; }
  .s-hero-big strong.s-hero-first { font-size: 56px; }
  .s-hero-big { gap: 10px 20px; }
  .s-hero-big strong { font-size: 26px; }
  .s-cover-mosaic { height: 180px; }
  .s-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Wyzwania: wyróżnione na zdjęciu sportu ze scrimem, karty z rozetą na zdjęciu */
.s-featured-b { position: relative; overflow: hidden; min-height: 220px; padding: 0; }
.s-featured-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-featured-scrim { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12, 26, 35, .95) 25%, rgba(12, 26, 35, .5)), var(--grain);
  background: linear-gradient(in oklch to right, oklch(0.205 0.028 232 / .95) 25%, oklch(0.205 0.028 232 / .5)), var(--grain); }
.s-featured-in { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; }
.s-featured-in .s-h2 { font-size: 26px; }
.s-ch-card .s-badge-tile { height: 132px; }
@media (max-width: 860px) { .s-featured-in { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 20px; } }
/* Szkielety dopasowane do kart B (media na górze) */
.k-h84 { height: 84px; } .k-h260 { height: 260px; } .k-h300 { height: 300px; } .k-h360 { height: 360px; } .k-h400 { height: 400px; }
.k-box.k-media { border-radius: 0; }
.s-act-b > .k-actions { padding: 8px 16px 14px; }
.k-num-xl { width: 150px; height: 48px; }
.k-week { align-items: flex-end; gap: 28px; }
.s-menu a { white-space: nowrap; }
@media (max-width: 860px) {
  .k-media.k-h300 { height: 340px; } .k-media.k-h360 { height: 400px; } .k-media-hero.k-h400 { height: 440px; } .k-h260.k-cover { height: 180px; }
  .k-week { flex-wrap: wrap; }
}

/* ——— Karty kanału kierunku B (989_16): „zdobywa odznakę” i wydarzenie klubu; okładki klubów z biblioteki ——— */
.s-media-badge { height: 230px; }
.s-scrim-badge { background: linear-gradient(to top, rgba(12, 26, 35, .92), rgba(12, 26, 35, .3)), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.205 0.028 232 / .92), oklch(0.205 0.028 232 / .3)), var(--grain); }
.s-media-badge .s-stock { filter: grayscale(1) brightness(.7) contrast(1.1); }
.s-badge-who, .s-event-club { position: absolute; left: 16px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--txt2); font-size: 14px; }
.s-badge-who { top: 14px; }
.s-badge-who strong, .s-event-club strong { color: var(--txt); font-weight: 600; }
.s-badge-who a, .s-event-club a { color: inherit; }
.s-media-menu { margin-left: auto; }
.s-media-menu > summary { color: var(--txt); }
.s-badge-main { position: absolute; left: 16px; right: 18px; bottom: 20px; z-index: 2; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; }
.s-badge-text { display: grid; gap: 8px; min-width: 0; }
.s-badge-text h3 { font: 600 20px/1.25 var(--sans); color: var(--txt); }
.s-badge-text a { color: inherit; }
svg.s-badge-bar { display: block; width: 100%; height: 6px; }
.s-badge-112 { width: 112px; height: 112px; }
.s-media-event { height: 150px; }
.s-scrim-event { background: linear-gradient(to top, #13242E, rgba(19, 36, 46, .2) 70%), var(--grain);
  background: linear-gradient(in oklch to top, oklch(0.245 0.03 230), oklch(0.245 0.03 230 / .2) 70%), var(--grain); }
.s-event-club { bottom: 12px; }
.s-event-club .s-club-dot { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.s-event-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px 16px; }
.s-event-card .s-date { background: var(--txt); color: var(--on-accent); border-radius: 12px; }
.s-event-card .s-date span { color: var(--on-accent); font-weight: 600; }
.s-event-text { display: grid; gap: 6px; min-width: 0; }
.s-event-text h3 { font: 600 18px/1.25 var(--sans); }
.s-event-text h3 a { color: inherit; }
.s-cover-preset { object-fit: cover; filter: brightness(.78); }
.s-cover-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.s-cover-option { position: relative; display: block; height: 96px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--bg); }
.s-cover-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-cover-option input { position: absolute; opacity: 0; pointer-events: none; }
.s-cover-option:has(input:checked) { border-color: var(--txt); }
.s-cover-option:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.s-cover-option > span:not(.x-visually-hidden) { position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: 12px; font-weight: 600; color: var(--txt); }
.s-share-badge { gap: 16px; }
.s-badge-tile-wide { height: 160px; }
.s-note-action { padding: 0 16px 12px 64px; }
.x-badge-card { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.x-badge-card-text { display: grid; gap: 2px; }
.s-badge-item .x-btn { justify-self: center; }
@media (max-width: 860px) {
  .s-badge-main { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .s-badge-main .s-badge-112 { width: 84px; height: 84px; }
  .s-event-card { grid-template-columns: 56px minmax(0, 1fr); }
  .s-event-card > form { grid-column: 1 / -1; }
  .s-event-card > form .x-btn { width: 100%; }
}
.k-h150 { height: 150px; } .k-h230 { height: 230px; } .k-64 { width: 64px; height: 64px; }
.k-event { padding: 12px 16px 16px; gap: 14px; }
