/* The same compact log sheet is used in Calisthenics and the Hub. */
.wz-cali-record-sheet{box-sizing:border-box;width:min(94vw,32rem);max-height:calc(100dvh - 2rem);margin:auto;padding:0;border:1px solid #9ec8e3;border-radius:1.1rem;background:#edf7ff;color:#142a3b;box-shadow:0 12px 42px #102a4550;overflow:auto;font:inherit}
.wz-cali-record-sheet::backdrop{background:#071b2d88;backdrop-filter:blur(3px)}
.wz-cali-record-sheet>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem 1rem;background:inherit;border-bottom:1px solid #b9d5e7}
.wz-cali-record-sheet>header h2{margin:0;font-size:1.1rem}.wz-cali-record-sheet>header button{min-height:44px;min-width:44px;margin:0;width:auto;padding:.3rem .65rem;border:1px solid #a5cee8;border-radius:.7rem;background:transparent;color:inherit}
.wz-cali-sheet-body{padding:1rem}.wz-cali-record-sheet form{display:grid;gap:.85rem}.wz-cali-record-sheet label{display:grid;gap:.4rem;margin:0;font-size:.875rem}.wz-cali-record-sheet input,.wz-cali-record-sheet select,.wz-cali-record-sheet textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:.6rem .7rem;border:1px solid #b2d1e6;border-radius:.65rem;background:#ffffffa8;color:inherit;font:inherit;font-size:1rem;color-scheme:light}.wz-cali-record-sheet label[hidden],.wz-cali-record-sheet section[hidden]{display:none!important}
.wz-cali-record-sheet summary{min-height:44px;display:flex;align-items:center;font-size:.875rem;cursor:pointer}.wz-cali-record-sheet summary::before{content:'›';margin-right:.5rem}.wz-cali-record-sheet details[open]>summary::before{transform:rotate(90deg)}
.wz-cali-record-sheet .wz-cali-check{display:flex;align-items:center;gap:.6rem;min-height:44px}.wz-cali-record-sheet .wz-cali-check input{width:20px;min-height:20px;height:20px}.wz-cali-work-period{display:grid;gap:.65rem;padding:.75rem;margin:.65rem 0;border:1px solid #b2d1e6;border-radius:.75rem}
.wz-cali-record-sheet button{min-height:44px;cursor:pointer;font:inherit}.wz-cali-record-sheet .wz-cali-save{border:1px solid #72dfff;border-radius:1rem;background:linear-gradient(#00d0f7,#0069ff 75%,#0659da);color:white;box-shadow:0 2px 5px #127ad936,inset 0 1px 1px #b1f7ff;font-size:.875rem}.wz-cali-record-sheet [role=alert]:not(:empty){padding:.65rem;border:1px solid #c77f36;border-radius:.6rem}.wz-cali-record-sheet [role=status]:empty{display:none}
.wz-cali-log-trigger{display:inline-flex;gap:.5rem;align-items:center;justify-content:center;min-height:44px;max-width:100%;font:inherit}.wz-cali-log-trigger svg{width:20px;height:20px;flex:none}.wz-cali-record-sheet .cali-card{margin:.65rem 0;padding:.8rem}.wz-cali-record-sheet .cali-card h2{font-size:1rem}.wz-cali-record-sheet .cali-summary-art{max-height:88px;max-width:100%;object-fit:cover}.wz-cali-record-sheet .cali-summary-results{display:block}.wz-cali-record-sheet .cali-summary-results .wz-inventory-thumb{width:52px;max-height:52px}.wz-cali-record-sheet .cali-summary-more{margin-top:.75rem}
html[data-wz-mode=dark] .wz-cali-record-sheet{background:#0d2a3b;color:#e8f5fd;border-color:#31576c}html[data-wz-mode=dark] .wz-cali-record-sheet>header{border-color:#31576c}html[data-wz-mode=dark] .wz-cali-record-sheet input,html[data-wz-mode=dark] .wz-cali-record-sheet select,html[data-wz-mode=dark] .wz-cali-record-sheet textarea{background:#12384b;border-color:#42677d;color-scheme:dark}html[data-wz-mode=dark] .wz-cali-work-period{border-color:#42677d}
@media(prefers-reduced-motion:reduce){.wz-cali-record-sheet *{animation:none!important;transition:none!important}}

#calisthenics-connected .cali-progress-log{width:100%;margin:.3rem 0 .8rem}#calisthenics-connected .cali-history-record{padding:.65rem .75rem;margin:.5rem 0;border-radius:.8rem}#calisthenics-connected .cali-history-record h2{font-size:.875rem;line-height:1.3;margin:0 0 .25rem}#calisthenics-connected .cali-history-record>p{font-size:.75rem;margin:.2rem 0}.cali-history-actions{display:flex;gap:.5rem;margin-top:.3rem}.cali-history-actions>button{flex:1;min-height:44px;margin:0!important}.cali-progress-record .cali-metrics{display:flex!important;gap:.5rem}.cali-progress-record .cali-metric{flex:1;min-width:0}.cali-progress-record .cali-result-row{padding:.6rem!important}

.wz-cali-log-trigger[hidden]{display:none!important}.wz-cali-log .wz-field-icon{display:none!important}#home-day-tasks>.wz-cali-log-trigger{font-size:.75rem;min-height:44px;padding:.35rem .7rem;border:1px solid #97c6e6;border-radius:.75rem;background:transparent;color:inherit}

/* Isolate native sheets from the former full-page header and label rules. */
html[data-wz-mode] body dialog.wz-cali-record-sheet>header{box-sizing:border-box;height:auto!important;min-height:0!important;max-height:none!important;padding:.6rem 1rem!important;background:inherit!important;border-radius:0!important;box-shadow:none!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet>header::before,html[data-wz-mode] body dialog.wz-cali-record-sheet>header::after{content:none!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet label{color:inherit!important;font-size:.875rem!important;margin:0!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet summary::before{content:none!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet summary::after{content:'›'!important;margin-left:auto;position:static!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet details[open]>summary::after{transform:rotate(90deg)}
html[data-wz-mode] body dialog.wz-cali-record-sheet .cali-record-identity{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:.35rem .7rem!important;align-items:center!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet .cali-record-identity>.cali-summary-art{grid-column:1;grid-row:1/4;width:82px!important;height:64px!important;max-height:64px!important;object-fit:contain!important;border:0!important;background:none!important}
html[data-wz-mode] body dialog.wz-cali-record-sheet .cali-record-identity>:not(img){grid-column:2;margin:0!important;min-width:0;overflow-wrap:anywhere}
html[data-wz-mode] body dialog.wz-cali-record-sheet .cali-record-identity>h2{font-size:1rem!important;line-height:1.3}.wz-cali-record-sheet .cali-record-identity>p{font-size:.75rem!important;line-height:1.4}.wz-cali-record-sheet .cali-record-identity[data-record-status=completed]>p:first-of-type{color:var(--wz-accent,#078aff)!important}
