/* Current Forms / Popups / States PDF, sheets 01–10.
   Shared Pearl / Midnight appearance, shell and semantic icon authority remain intact. */

/* Native sheet geometry and shared Pearl/Midnight surfaces */
html[data-wz-module="calisthenics"][data-wz-mode] body :is(.cali-builder-edit,.cali-filter-sheet,.cali-correction-sheet,.cali-record-dialog,.cali-save-exit-sheet,.cali-unsaved-substitution,.cali-bookmark-conflict,.cali-image-viewer) {position:fixed;box-sizing:border-box;width:calc(100% - 28px);max-width:390px;max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain;padding:20px 16px;background:var(--pearl-dialog,var(--cali-canvas))!important;color:var(--wz-ink)!important;border:1px solid var(--pearl-edge,var(--cali-line));border-radius:18px;box-shadow:0 18px 50px #001b3140;scroll-padding-block:16px}
html[data-wz-module="calisthenics"][data-wz-mode] body :is(.cali-builder-edit,.cali-filter-sheet,.cali-correction-sheet,.cali-record-dialog,.cali-save-exit-sheet,.cali-unsaved-substitution,.cali-bookmark-conflict,.cali-image-viewer)>h2 {padding-right:30px;line-height:1.25;overflow-wrap:anywhere}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-close {position:absolute;top:10px;right:9px;display:grid;place-items:center;width:44px;height:44px;padding:10px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--wz-ink)!important}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-close svg {display:block;width:22px;height:22px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-pair>label {min-width:0;display:flex;flex-direction:column;gap:6px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-pair :is(input,select) {width:100%;min-width:0;box-sizing:border-box}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-order {display:grid;gap:7px;margin:13px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-order>button {width:100%;min-height:44px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-footer,.cali-sheet-reset {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-footer>button,.cali-sheet-reset>button {min-width:0;width:100%;min-height:44px;line-height:1.25}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-facts {display:grid;gap:7px;margin:12px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-facts>div {display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid var(--cali-line)}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-facts dt {font-size:13px;color:var(--wz-muted)}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-facts dd {margin:0;font-weight:600;overflow-wrap:anywhere}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-emblem {display:grid;place-items:center;margin:6px auto 16px;width:64px;height:64px;border:2px solid currentColor;border-radius:50%;color:var(--wz-link)}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-emblem svg {width:38px;height:38px;display:block}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-workout-review-sheet[data-state=saved]>:is(h2,p) {text-align:center}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-workout-review-sheet[data-state=saved]>a {display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:9px}

/* Approved viewer uses the existing reviewed phase images */
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:3px;margin:12px 0;border:1px solid var(--cali-line);border-radius:12px;background:var(--pearl-panel,var(--cali-glass))}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-tabs>button {min-height:44px;border-radius:10px;background:transparent;color:var(--wz-ink)}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-tabs>button[aria-pressed=true] {background:var(--pearl-primary)!important;color:var(--pearl-primary-text,#fff)!important}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer .cali-movement-pair {grid-template-columns:minmax(0,1fr);gap:0}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer figure[hidden] {display:none!important}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer figure {margin:0}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer figure img {display:block;width:100%;height:auto;border-radius:12px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer figcaption {text-align:center;padding:6px;font-size:13px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-pager {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px;margin:8px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-pager>button {min-height:44px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-viewer-pager>p {font-size:13px;text-align:center}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-image-viewer>button:last-child {width:100%;min-height:44px}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-bookmark[data-save-state=pending] {opacity:.65;cursor:progress}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-bookmark-conflict>button {min-height:44px;margin:8px 6px 0 0}

/* Original app-owned fields, confirmations and conditional states. */
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-note-count {text-align:right;font-size:12px!important;margin:4px 0;color:var(--wz-muted)}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-observation-removal,.cali-removal-review,.cali-correction-review {padding:12px;margin:12px 0;border:1px solid var(--cali-line);border-radius:13px;background:var(--pearl-panel,var(--cali-glass))}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet>.cali-card {margin:8px 0 0;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet label {display:flex;flex-direction:column;gap:6px;margin:12px 0;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet :is(input,textarea) {width:100%;box-sizing:border-box}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet textarea {min-height:110px;resize:vertical}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet button {min-height:44px;margin-top:7px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-correction-sheet>.outline {min-height:44px;margin:0 0 4px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-history-revision {padding:10px 12px;margin:10px 0;border:1px solid var(--cali-line);border-radius:12px;background:var(--pearl-panel,var(--cali-glass))}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-history-revision>h3 {font-size:16px;margin-bottom:5px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-history-revision>p {font-size:13px;overflow-wrap:anywhere}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-record-dialog>button {width:100%;margin:8px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-set-details>button {width:100%;margin:8px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-rest-clock {font-size:28px!important;font-weight:700;font-variant-numeric:tabular-nums;margin:10px 0!important;text-align:center}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-save-exit-sheet>button,.cali-unsaved-substitution>button {min-height:44px;margin:9px 7px 0 0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-save-exit-sheet>[role=alert]:empty {display:none}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-filter-sheet>label {display:grid!important;grid-template-columns:80px minmax(0,1fr);gap:10px;align-items:center;margin:12px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-filter-sheet>label>select {width:100%;min-width:0;box-sizing:border-box}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-assessment-details {padding:8px 10px;border:1px solid var(--cali-line);border-radius:12px;background:var(--pearl-panel,var(--cali-glass))}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-assessment-evidence-note {font-size:12px!important;color:var(--wz-muted);margin:9px 0!important}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-availability-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-availability-choices>button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:88px;padding:9px 5px;border:1px solid var(--cali-line);border-radius:12px;color:var(--wz-ink)!important;background:var(--pearl-panel,var(--cali-glass))!important}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-availability-choices>button svg {display:block;width:30px;height:30px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-availability-choices>button[aria-pressed=true] {border:2px solid var(--wz-link)!important;background:var(--pearl-selected,var(--wz-panel))!important;color:var(--wz-link)!important}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-repeated-time {padding:10px;border:2px solid var(--wz-link);border-radius:12px;background:var(--pearl-panel,var(--cali-glass));font-size:13px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-repeated-time>select {width:100%;min-height:44px;margin-top:7px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-plan-confirm-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-plan-confirm-actions>button {width:100%;min-height:44px;min-width:0}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-plan-confirm[data-state=stale] {border-color:var(--wz-link)}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-substitution-unavailable,.cali-movement-state {padding:12px;margin:12px 0;border:1px solid var(--cali-line);border-radius:13px;background:var(--pearl-panel,var(--cali-glass));color:var(--wz-ink)}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-movement-state>h3 {font-size:19px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-movement-state>a {display:flex;align-items:center;min-height:44px}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone:has(>a[href="auth.html#signin"])>p[role=status] {padding:18px;border:1px solid var(--cali-line);border-radius:16px;background:var(--pearl-panel,var(--cali-glass));font-size:18px;line-height:1.5}
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone:has(>a[href="auth.html#signin"])>a {display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border-radius:14px;background:var(--pearl-primary);color:var(--pearl-primary-text,#fff);text-decoration:none}
@media(max-width:350px) {
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-filter-sheet>label {grid-template-columns:1fr}
html[data-wz-module="calisthenics"][data-wz-mode] body .cali-sheet-footer {grid-template-columns:1fr}
}

html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-device-review,
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-expired-review,
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-profile-required {padding:14px;margin:12px 0;border:1px solid var(--cali-line);border-radius:16px;background:var(--pearl-panel,var(--cali-glass))}

html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-device-review>button,
html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-expired-review>button {width:100%;min-height:44px;margin-top:8px}

html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-profile-required label {display:flex;flex-direction:column;gap:7px}

html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-profile-required input {width:100%;box-sizing:border-box}

html[data-wz-module="calisthenics"][data-wz-mode] body main.cali-phone #calisthenics-connected .cali-profile-required button {width:100%;margin-top:10px}
