/* Setry v0.9.2 — client-only finishing pass. Parent components and desktop sidebar untouched.
   Reference: Setry Design System / Widok klienta, v1.0, 27.11.2026. */

/* The area revealed by Safari overscroll/status-bar must be brand forest, never white. */
html.setry-client-shell,
html.setry-client-shell body { background-color:#042820; overscroll-behavior-y:contain; }
html.setry-client-shell .client-v09 { min-height:100dvh; background:#edf2f7; }
html.setry-client-shell .client-v09 .main-wrap { min-height:100dvh; }

/* Readable measured scale; avoid forcing webview zoom or transforms on the page. */
.client-v09 .sc-page { text-size-adjust:100%; -webkit-text-size-adjust:100%; }
.client-v09 .sc-page h1,
.client-v09 .sc-page h2 { text-wrap:balance; }
.client-v09 .sc-page .btn,
.client-v09 .sc-page button { -webkit-tap-highlight-color:transparent; }
.client-v09 .sc-page button:focus-visible,
.client-v09 .sc-page summary:focus-visible { outline:2px solid #128f65; outline-offset:3px; }

/* 01: Home — align content with hero's approved spacing and quiet statistic surfaces. */
.client-v09 .sc-home { gap:16px; }
.client-v09 .sc-hero-copy { padding:25px 25px 23px; min-height:168px; }
.client-v09 .sc-hero-copy .sc-eyebrow { letter-spacing:.18em; margin-bottom:9px; }
.client-v09 .sc-hero-copy h1 { letter-spacing:-.045em; font-weight:860; }
.client-v09 .sc-hero-copy p { line-height:1.48; }
.client-v09 .sc-next-card { border:1px solid #226b50; }
.client-v09 .sc-next-card .sc-kicker { letter-spacing:.12em; }
.client-v09 .sc-next-card .sc-next-actions { position:relative; z-index:2; }
.client-v09 .sc-next-card .sc-next-actions .btn { min-height:46px; }
.client-v09 .sc-next-card .sc-next-actions .btn:focus-visible { outline-color:#a2ffce; }
.client-v09 .sc-home-stats { gap:10px; }
.client-v09 .sc-home-stats .sc-stat { align-content:start; border-color:#e5edf1; box-shadow:0 4px 14px #113e3510; }
.client-v09 .sc-home-stats .sc-stat-title { font-weight:680; color:#435e6b; }
.client-v09 .sc-home-stats .sc-stat strong { overflow-wrap:break-word; word-break:normal; }
.client-v09 .sc-home-stats .sc-stat small { line-height:1.36; color:#667f89; }
.client-v09 .sc-goal-card { padding-block:17px; }
.client-v09 .sc-program-day { padding-block:10px; }
.client-v09 .sc-program-day:focus-visible { outline-color:#b8ffdc; }
.client-v09 .sc-activity-row { min-height:66px; }

/* 02: Roadmap — numbered nodes, continuous spine, contextual pictograms and premium open state. */
.client-v09 .sc-exercise-group { overflow:visible; }
.client-v09 .sc-roadmap {
  position:relative; margin-left:22px; padding-left:24px; border:0;
  gap:11px; isolation:isolate;
}
.client-v09 .sc-roadmap::before {
  content:""; position:absolute; z-index:-1; left:0; top:18px; bottom:18px;
  width:3px; border-radius:999px;
  background:linear-gradient(180deg,#74e4ac 0%,#0b9060 45%,#a7dec4 100%);
  box-shadow:0 0 0 3px rgba(133,242,188,.075);
}
.client-v09 .sc-roadmap-entry {
  position:relative; min-width:0; background:linear-gradient(108deg,#f9fcfe,#f3f8fb);
  border:1px solid #d6e4e9; border-radius:16px; box-shadow:0 2px 9px #1643370c;
  transition:border-color 180ms ease,box-shadow 180ms ease,background-color 180ms ease;
}
.client-v09 .sc-roadmap-entry::before { left:-26px; top:24px; width:9px; height:9px; background:#85f2bc; border:2px solid #e8fff4; box-shadow:0 0 0 3px #c8f1de; }
.client-v09 .sc-roadmap-number {
  left:-43px; top:10px; width:37px; height:37px; border-radius:13px;
  background:linear-gradient(145deg,#e3f7ee,#d4e8e5); border:1px solid #c9e3d9;
  color:#10382e; font-size:12px; font-weight:850;
  box-shadow:0 5px 12px #0e68481b;
}
.client-v09 .sc-roadmap-entry[open] .sc-roadmap-number {
  background:linear-gradient(135deg,#07533f,#06382e);color:#fff;
  border-color:#1d8361;box-shadow:0 5px 16px #065c3b42;
}
.client-v09 .sc-roadmap-entry[open] { background:#edfbf5; border-color:#28b77c; box-shadow:0 4px 16px #128f6523; }
.client-v09 .sc-roadmap-entry summary { min-height:68px; border-radius:15px; padding:10px 12px; gap:11px; }
.client-v09 .sc-roadmap-entry[open] summary { border-radius:15px 15px 0 0; }
.client-v09 .sc-roadmap-thumb {
  width:38px;height:38px;border-radius:12px;flex:0 0 38px;
  background:linear-gradient(145deg,#edfcf4,#d9f5e9); border:1px solid #d3eadd;
  box-shadow:0 3px 8px #123d2f0d;
}
.client-v09 .sc-roadmap-thumb svg { height:28px;width:28px;stroke-width:2.1; }
.client-v09 .sc-roadmap-info strong { font-size:14px;line-height:1.28; }
.client-v09 .sc-roadmap-info small { font-size:11px;line-height:1.38;margin-top:4px; }
.client-v09 .sc-roadmap-entry .sc-chevron { flex:0 0 auto; }
.client-v09 .sc-roadmap-details {
  position:relative; margin:0 1px 1px; border-radius:0 0 14px 14px;
  border-top:1px solid #c9e9d9; overflow:hidden;
  padding:14px 14px 15px; background:linear-gradient(116deg,#e5f9ee,#f5fdfa);
}
.client-v09 .sc-ex-note { gap:10px; }
.client-v09 .sc-ex-note .sc-icon { box-shadow:0 3px 7px #143e3010; }
.client-v09 .sc-ex-note p { overflow-wrap:anywhere; }
.client-v09 .sc-video-link { border-color:#c3e7d5; }
.client-v09 .sc-roadmap-entry[open] .sc-chevron { color:#086a47; }

/* 03: Training selector — resumable sessions compact/collapsible without losing actions. */
.client-v09 .sc-drafts { padding:0; overflow:hidden; }
.client-v09 .sc-drafts>summary.sc-drafts-trigger {
 display:flex;align-items:center; gap:10px; padding:14px 15px;
 list-style:none;cursor:pointer;min-height:64px;user-select:none;
}
.client-v09 .sc-drafts>summary::-webkit-details-marker {display:none;}
.client-v09 .sc-drafts-icon {
 width:38px;height:38px;flex:none;border-radius:12px;
 background:#ddf5eb;color:#07533f;display:grid;place-items:center;
}
.client-v09 .sc-drafts-label { flex:1;min-width:0; }
.client-v09 .sc-drafts-label strong { display:block;color:#0c2028;font-size:16px;font-weight:790; }
.client-v09 .sc-drafts-label small {display:block;color:#607986;font-size:12px;margin-top:3px;line-height:1.35;}
.client-v09 .sc-drafts-count {background:#d9f4e7;border-radius:100px;padding:5px 9px;font-size:12px;font-weight:820;color:#07533f;}
.client-v09 .sc-drafts-chevron {color:#143e36;transform:rotate(90deg);transition:transform .18s ease;}
.client-v09 .sc-drafts[open] .sc-drafts-chevron {transform:rotate(-90deg);}
.client-v09 .sc-draft-list {padding:0 14px 12px;animation:sc-drafts-open .2s ease both;}
.client-v09 .sc-draft-list .sc-draft-row {border-top:1px solid #dce8e3;border-bottom:0;gap:10px;min-height:61px;}
.client-v09 .sc-draft-row .btn {flex:0 0 auto;min-width:76px;}
@keyframes sc-drafts-open { from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)} }

/* Training inputs — suggestions are placeholders, saved performances are foreground values. */
.client-v09 .sc-set-row .set-input::placeholder,
.client-v09 .sc-set-row .sc-weight-control input::placeholder { color:#91a5b2!important;opacity:1;font-weight:580; }
.client-v09 .sc-set-row .set-input:focus,
.client-v09 .sc-set-row .sc-weight-control:focus-within {border-color:#19a96e;box-shadow:0 0 0 2px #a5efd0;}
.client-v09 .sc-set-row .set-input:not(:placeholder-shown) {font-weight:790;}
.client-v09 .sc-set-row .sc-weight-control input:focus {outline:none;}
.client-v09 .sc-set-row .sc-reps-input {caret-color:#06482f;}

/* Clockwise depletion: the dark elapsed arc GROWS clockwise; the mint arc shows time remaining. */
.client-v09 .sc-rest-ring {
 --ring-radius:62px;
 background:linear-gradient(#04332a,#04332a) padding-box,
   conic-gradient(from 0deg,#276e56 0 var(--ring-progress,0%),#a6ffd1 var(--ring-progress,0%) 100%) border-box!important;
}
.client-v09 .sc-rest-ring.is-timed::after {
 content:"";position:absolute;left:calc(50% - 5px);top:0px;width:10px;height:10px;
 border:2px solid #dffff0;border-radius:50%;background:#fff;
 box-shadow:0 1px 6px #04282090;
 transform:rotate(var(--ring-angle,0deg))!important;
 transform-origin:5px var(--ring-radius);
 transition:transform 150ms linear;
 will-change:transform;
}
.client-v09 .sc-rest-ring:not(.is-timed)::after {display:none;}

/* 04: Analytics / settings — stable touch sizes, quiet surfaces, readable metadata. */
.client-v09 .sc-trend-card,.client-v09 .sc-measure-categories,.client-v09 .sc-measure-history {overflow:hidden;}
.client-v09 .sc-periods button {min-height:35px;}
.client-v09 .sc-history-row {min-height:56px;}
.client-v09 .sc-setting-card .sc-setting-main {min-width:0;}
.client-v09 .sc-setting-card .sc-setting-main p {overflow-wrap:anywhere;}

/* Dark mode must preserve contrast after refinement, not inherit light foregrounds. */
html[data-theme="dark"] .client-v09 .sc-drafts-label strong {color:#effff8;}
html[data-theme="dark"] .client-v09 .sc-drafts-label small {color:#bad8cb;}
html[data-theme="dark"] .client-v09 .sc-drafts-icon {background:#1b5942;color:#c7ffe1;}
html[data-theme="dark"] .client-v09 .sc-drafts-count {background:#255f4d;color:#bcffdc;}
html[data-theme="dark"] .client-v09 .sc-drafts-chevron {color:#ceffe5;}
html[data-theme="dark"] .client-v09 .sc-draft-list .sc-draft-row {border-color:#2c6751;}
html[data-theme="dark"] .client-v09 .sc-roadmap-entry {background:#10352b;border-color:#386955;}
html[data-theme="dark"] .client-v09 .sc-roadmap-entry[open] {background:#154235;border-color:#42aa76;}
html[data-theme="dark"] .client-v09 .sc-roadmap-number {background:#164534;color:#d8f6e6;border-color:#347757;}
html[data-theme="dark"] .client-v09 .sc-roadmap-entry[open] .sc-roadmap-number {background:#87f2bb;color:#073c2e;}
html[data-theme="dark"] .client-v09 .sc-roadmap-details {background:#17483a;border-color:#367459;}
html[data-theme="dark"] .client-v09 .sc-roadmap-thumb {background:#18523e;color:#d2ffe9;border-color:#337454;}
html[data-theme="dark"] .client-v09 .sc-roadmap-entry::before {border-color:#153d30;}
html[data-theme="dark"] .client-v09 .sc-set-row .set-input::placeholder,
html[data-theme="dark"] .client-v09 .sc-set-row .sc-weight-control input::placeholder {color:#91b5a5!important;}

@media(max-width:760px) {
 html.setry-client-shell .client-v09 {min-height:100dvh;}
 .client-v09 .sc-mobile-header {height:calc(108px + env(safe-area-inset-top,0px));padding-top:calc(26px + env(safe-area-inset-top,0px));}
 .client-v09 .sc-home {gap:15px;}
 .client-v09 .sc-hero-copy {min-height:158px;padding:19px 15px 18px;}
 .client-v09 .sc-hero-copy h1 {font-size:clamp(29px,8.1vw,35px);}
 .client-v09 .sc-hero-copy p {font-size:12px;line-height:1.45;margin-top:7px;}
 .client-v09 .sc-next-card {padding:17px 16px 16px;min-height:204px;}
 .client-v09 .sc-next-card h2 {font-size:clamp(27px,8vw,36px);}
 .client-v09 .sc-next-card .sc-next-actions {padding-top:14px;}
 .client-v09 .sc-home-stats {gap:8px;}
 .client-v09 .sc-home-stats .sc-stat {min-height:108px;padding:10px 9px 12px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;}
 .client-v09 .sc-home-stats .sc-stat .sc-stat-row {display:flex;flex-direction:column;gap:5px;align-items:flex-start;}
 .client-v09 .sc-home-stats .sc-stat .sc-icon {width:30px;height:30px;flex:none;margin:0;border-radius:9px;}
 .client-v09 .sc-home-stats .sc-stat .sc-icon svg {height:18px;width:18px;}
 .client-v09 .sc-home-stats .sc-stat .sc-stat-title {font-size:11px;line-height:1.2;min-height:0;}
 .client-v09 .sc-home-stats .sc-stat strong {font-size:clamp(13px,3.65vw,17px);line-height:1.12;letter-spacing:-.03em;}
 .client-v09 .sc-home-stats .sc-stat small {font-size:10px;margin-top:auto;line-height:1.2;}
 .client-v09 .sc-goal-card {gap:12px;}
 .client-v09 .sc-roadmap {margin-left:20px;padding-left:22px;gap:9px;}
 .client-v09 .sc-roadmap-number {left:-40px;width:35px;height:35px;}
 .client-v09 .sc-roadmap-entry summary {gap:8px;padding:10px;min-height:62px;}
 .client-v09 .sc-roadmap-thumb {height:34px;width:34px;flex-basis:34px;}
 .client-v09 .sc-roadmap-thumb svg {height:24px;width:24px;}
 .client-v09 .sc-roadmap-info strong {font-size:13px;}
 .client-v09 .sc-roadmap-info small {font-size:10.5px;}
 .client-v09 .sc-roadmap-details {padding:12px 11px;}
 .client-v09 .sc-rest-ring {--ring-radius:56px;}
 .client-v09 .sc-workout-picker .sc-page-heading {padding-top:4px;}
 .client-v09 .sc-drafts>summary.sc-drafts-trigger {padding:12px;}
 .client-v09 .sc-drafts-label strong {font-size:14px;}
 .client-v09 .sc-drafts-label small {font-size:11px;}
 .client-v09 .sc-draft-list {padding:0 11px 10px;}
 .client-v09 .sc-active-workout .sc-set-panel {scroll-margin-top:85px;}
 .client-v09 .sc-exercise-bottom {touch-action:pan-x;}
 .client-v09 .content {padding-bottom:calc(95px + env(safe-area-inset-bottom,0px));}
 .client-v09 .mobile-bottom {padding-bottom:calc(7px + env(safe-area-inset-bottom,0px));}
}
@media(max-width:359px){
 .client-v09 .sc-home-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
 .client-v09 .sc-home-stats .sc-stat:last-child {grid-column:1/-1;}
 .client-v09 .sc-rest-ring {--ring-radius:48px;}
 .client-v09 .sc-roadmap {margin-left:19px;padding-left:18px;}
 .client-v09 .sc-roadmap-number {left:-37px;width:33px;height:33px;}
 .client-v09 .sc-roadmap-thumb {height:29px;width:29px;flex-basis:29px;}
 .client-v09 .sc-roadmap-thumb svg {height:22px;width:22px;}
 .client-v09 .sc-roadmap-entry summary {gap:6px;}
 .client-v09 .sc-roadmap-info strong {font-size:12px;}
}
@media(min-width:761px){
 .client-v09 .sc-roadmap {margin-left:25px;padding-left:27px;}
 .client-v09 .sc-roadmap-number {left:-49px;}
 .client-v09 .sc-roadmap-entry::before {left:-30px;}
 .client-v09 .sc-home-stats .sc-stat {min-height:125px;}
 .client-v09 .sc-hero-copy {min-height:190px;}
}
@media(prefers-reduced-motion:reduce){
 .client-v09 .sc-draft-list {animation:none;}
 .client-v09 .sc-rest-ring.is-timed::after,
 .client-v09 .sc-drafts-chevron,
 .client-v09 .sc-roadmap-entry {transition:none!important;}
}
/* iOS Safari auto-zooms inputs below 16px. Prevent a magnified page after login
   or set entry; no viewport lock or user-scalable=no accessibility regression. */
@media(max-width:760px){
 #login-form input,
 .client-v09 .sc-page input,
 .client-v09 .sc-page select,
 .client-v09 .sc-page textarea {font-size:16px;}
 .client-v09 .sc-set-row .sc-weight-control input,
 .client-v09 .sc-set-row .set-input {font-size:16px;}
}
