/* Latest Calisthenics boards: native concise forms, original movement art and
   current shared canvas. Domain controls/records and their handlers stay intact. */
html[data-wz-module="calisthenics"][data-wz-mode] body main {background:var(--wz-page-wash) var(--wz-canvas)!important;color:var(--wz-ink)!important;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] body main::before {display:none!important}
html[data-wz-module="calisthenics"][data-wz-mode] .cali-hero {min-height:0;height:auto;padding:12px 16px;background:none!important}
html[data-wz-module="calisthenics"][data-wz-mode] .cali-hero h1 {color:var(--wz-ink)!important;text-shadow:none;text-transform:none;font-size:26px;line-height:1.2}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected {color:var(--wz-ink);font-size:16px;line-height:1.5;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(h1,h2,h3,h4,p,strong,label,summary,dt,dd,figcaption,li,legend) {color:var(--wz-ink)!important;text-shadow:none;overflow-wrap:anywhere}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(p,label,input,select,textarea,button,a) {font-size:16px;line-height:1.5}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(p,small,.cali-metric>span,figcaption) {color:var(--wz-muted)!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(small,figcaption,.cali-metric>span) {font-size:14px!important;line-height:1.45}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(.cali-card,.cali-metric,.restored-feature-copy,.cali-builder-summary) {background:var(--wz-panel)!important;color:var(--wz-ink)!important;border-color:var(--wz-edge)!important;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {box-sizing:border-box;min-width:0;max-width:100%;min-height:48px;border:1px solid var(--wz-edge);border-radius:12px;background:var(--wz-surface-raised)!important;color:var(--wz-ink)!important;font-size:16px!important;padding:10px 12px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .form-counter input {font-size:32px!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(button,a) {min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(button.outline,a:not(.start):not(.app-primary)) {color:var(--wz-link)!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(button.start,a.start,a.app-primary) {background:linear-gradient(180deg,#0872df,#0055c6)!important;color:#fff!important;border-color:#0877d7!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected [aria-pressed="true"] {background:var(--wz-accent)!important;color:var(--wz-accent-contrast)!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .restored-date-strip [aria-pressed="true"] :is(small,strong) {color:inherit!important}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected dialog {box-sizing:border-box;width:calc(100% - 24px);max-width:430px;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:20px 16px;background:var(--wz-panel)!important;color:var(--wz-ink)!important;border:1px solid var(--wz-edge);border-radius:20px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected dialog :is(p,label,button,input,select,textarea,a) {font-size:16px;line-height:1.5}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .form-two>label {min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .form-two .wz-choice-group {grid-template-columns:minmax(0,1fr)}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .form-equipment-grid label {min-height:48px;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :focus-visible {outline:3px solid var(--wz-link);outline-offset:3px}
@media(max-width:380px){html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .form-two {grid-template-columns:minmax(0,1fr)}}

/* C03 movement rows: original media beside concise facts; notes stay optional. */
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .sports-library-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-row {display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;gap:12px;padding:12px}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-row[data-has-art="false"] {grid-template-columns:minmax(0,1fr)}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-row>.cali-preview-link {grid-column:1;width:76px;min-width:0;margin:0;display:block}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-row .wz-inventory-thumb {width:76px;min-width:0;height:84px;margin:0}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-row .wz-inventory-thumb :is(img,svg) {width:100%;height:100%;object-fit:contain}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-copy {display:grid;gap:6px;min-width:0}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-copy :is(h2,p) {margin:0}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-actions {display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-actions :is(a,button) {flex:1 1 64px;min-width:0;min-height:44px;margin:0;padding:6px;font-size:14px}
html[data-wz-screen="calisthenics-library"] #calisthenics-connected .cali-library-notes {margin:0}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected p {font-size:16px!important;line-height:1.5}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(.sports-movement-card p,.cali-metric p) {font-size:14px!important;line-height:1.45}

/* Original page-owned scene: one faded layer, identical artwork in both modes. */
html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:6px;min-height:204px;padding:20px 16px 16px;background:transparent!important;overflow:hidden}
html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,var(--wz-canvas),transparent 85%),url('assets/calisthenics/home-hero.png') 66% 48%/cover no-repeat;opacity:.85;mask-image:linear-gradient(transparent,#000 12%,#000 66%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 66%,transparent);pointer-events:none}
html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero h1{grid-column:1;grid-row:1;font-size:28px;line-height:1.2;margin:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero .cali-home-intro{grid-column:1/-1;margin:0;max-width:14em;line-height:1.5;font-size:16px;color:var(--wz-ink);text-shadow:none}
html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero .cali-home-settings{grid-column:2;grid-row:1;align-self:start;min-height:44px;margin:-7px 0 0;padding-inline:4px;color:var(--wz-link);font-size:14px;text-decoration:none}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .restored-date-strip button[aria-pressed="true"],
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .restored-date-strip button[aria-pressed="true"] :is(span,strong,small){color:#fff!important;background-color:#076bd9}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected :is(.cali-card,.restored-feature-copy){border-radius:18px;box-shadow:inset 0 1px 0 #fff2,0 4px 14px #1634500d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout{grid-template-columns:86px minmax(0,1fr);gap:12px;padding:14px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout>img{min-height:0;height:128px;max-height:128px;object-fit:cover;align-self:center;border-radius:12px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout .restored-feature-actions{display:flex;flex-wrap:wrap;gap:8px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout .restored-feature-actions>a{flex:1 1 100px;min-width:0;margin:0;text-align:center;justify-content:center;word-break:normal;overflow-wrap:normal}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-card{margin-block:14px;padding:14px}
html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-library-row{padding:12px}
@media(max-width:350px){html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero{grid-template-columns:minmax(0,1fr);min-height:216px}html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero .cali-home-settings{grid-column:1;grid-row:3;justify-self:start;margin:0}html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout{grid-template-columns:72px minmax(0,1fr)}}
@media(prefers-reduced-transparency:reduce){html[data-wz-screen="calisthenics-home"][data-wz-mode] body main.cali-phone>.cali-hero::before{opacity:1}html[data-wz-module="calisthenics"] #calisthenics-connected :is(.cali-card,.restored-feature-copy){backdrop-filter:none;-webkit-backdrop-filter:none}}
html[data-wz-module="calisthenics"][data-wz-mode] body #calisthenics-connected{padding-bottom:16px;scroll-padding-bottom:100px}
html[data-wz-module="calisthenics"][data-wz-mode] body #calisthenics-connected :is(a,button,input,select,textarea,summary){scroll-margin-block:16px 110px;word-break:normal}
html[data-wz-module="calisthenics"][data-wz-mode] body #calisthenics-connected summary{min-height:44px;box-sizing:border-box;padding-block:8px;cursor:pointer}

html[data-wz-module="calisthenics"][data-wz-mode] #calisthenics-connected .cali-board-workout .restored-feature-copy{background:transparent!important;border:0!important;box-shadow:none!important;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-wz-module="calisthenics"][data-wz-mode] body main:has(>nav.cali-nav){padding-bottom:calc(var(--wz-bottom-nav-height,76px) + env(safe-area-inset-bottom) + 16px)!important}
html[data-wz-module="calisthenics"][data-wz-mode] body dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:430px;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:20px 16px calc(20px + env(safe-area-inset-bottom));background:var(--wz-panel)!important;color:var(--wz-ink)!important;border:1px solid var(--wz-edge);border-radius:20px;box-shadow:0 18px 60px #03152d55}
html[data-wz-module="calisthenics"][data-wz-mode] body dialog :is(p,label,button,input,select,textarea,a){font-size:16px;line-height:1.5}
html[data-wz-module="calisthenics"][data-wz-mode] body dialog :is(button,a,summary){min-height:44px}
html[data-wz-module="calisthenics"][data-wz-mode] body dialog::backdrop{background:#03152d70;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
