/* Training-photo cards: scoped to the existing trainer photos modal. */
@font-face{font-family:TrainerPhotosInter;src:url('/assets/home-inter.3ed987bab1b8.woff2') format('woff2');font-weight:100 900;font-display:swap}
#app .overlay.tp-overlay{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;padding:16px!important;box-sizing:border-box!important;overscroll-behavior:contain}
#app .form.photos-modal.tp-modal{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;width:min(440px,100%)!important;max-width:440px!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:28px!important;background:#fff!important;color:#151515!important;box-shadow:0 20px 70px #0003!important;font-family:TrainerPhotosInter,Inter,Arial,sans-serif!important;text-align:left!important;box-sizing:border-box!important}
#app .tp-modal *{box-sizing:border-box}
#app .tp-modal .tp-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px 22px 20px;flex:0 0 auto;background:#fff}
#app .tp-modal .tp-heading{margin:0;color:#151515;font:650 23px/1.25 TrainerPhotosInter,Inter,Arial,sans-serif;letter-spacing:-.6px;text-transform:none}
#app .tp-modal .tp-subtitle{margin:7px 0 0;color:#6b6d73;font:400 13px/1.5 TrainerPhotosInter,Inter,Arial,sans-serif;overflow-wrap:anywhere}
#app .tp-modal .tp-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;border:0;border-radius:14px;background:#f2f3f5;color:#151515;cursor:pointer;touch-action:manipulation}
#app .tp-modal .tp-close svg{width:20px;height:20px;pointer-events:none}
#app .tp-modal>.col{display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;margin:0!important;padding:18px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#f2f3f5!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#app .tp-modal>.col>.sickness__title,#app .tp-modal>.col>br,#app .tp-modal>.btn_save{display:none!important}
#app .tp-modal .photos-grid,#app .tp-modal .photos-skeleton{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;width:100%!important;margin:0!important;padding:0!important}
#app .tp-modal .photo-item{position:relative;display:block!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:24px!important;background:#fff!important;box-shadow:none!important;text-align:left!important;cursor:zoom-in;transform:none!important;touch-action:pan-y pinch-zoom}
#app .tp-modal .photo-image{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important;border-radius:0!important;background:#e9eaed!important}
#app .tp-modal .photo-info{display:block!important;padding:16px 18px 18px!important;text-align:left!important;font-family:TrainerPhotosInter,Inter,Arial,sans-serif!important}
#app .tp-modal .photo-date,#app .tp-modal .photo-stats{display:none!important}
#app .tp-modal .tp-date{font:650 16px/1.35 TrainerPhotosInter,Inter,Arial,sans-serif;letter-spacing:-.25px;color:#151515}
#app .tp-modal .tp-weekday{margin-top:4px;color:#6b6d73;font:400 12px/1.5 TrainerPhotosInter,Inter,Arial,sans-serif}
#app .tp-modal .tp-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;font:400 12px/1.4 TrainerPhotosInter,Inter,Arial,sans-serif;color:#151515}
#app .tp-modal .tp-stat{display:inline-flex;align-items:baseline;gap:6px;padding:8px 10px;border-radius:10px;background:#f2f3f5}
#app .tp-modal .tp-stat b{font-weight:650;font-variant-numeric:tabular-nums}
#app .tp-modal .tp-photo-error{padding:10px 16px;background:#fff0f3;color:#9c2640;font:400 13px/1.4 TrainerPhotosInter,Arial,sans-serif}
#app .tp-modal .no-photos{padding:40px 16px!important;color:#6b6d73!important;font:400 15px/1.5 TrainerPhotosInter,Inter,Arial,sans-serif!important}
#app .tp-modal .skeleton-item{border-radius:24px!important;overflow:hidden;background:#fff!important}
#app .tp-modal .tp-footer{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 22px max(15px,env(safe-area-inset-bottom));border-top:1px solid #e6e7eb;background:#fff;color:#6b6d73;font:400 12px/1.4 TrainerPhotosInter,Inter,Arial,sans-serif}
#app .tp-modal .tp-footer span:last-child{color:#151515}
#app .tp-modal .photo-item:focus-visible,#app .tp-modal button:focus-visible{outline:3px solid #151515;outline-offset:-3px}
.tp-photo-viewer{position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-width:960px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:24px;background:#fff;color:#151515;overflow:auto;overscroll-behavior:contain;font-family:TrainerPhotosInter,Inter,Arial,sans-serif;box-shadow:0 20px 70px #0005}
.tp-photo-viewer::backdrop{background:#000b}
.tp-photo-viewer .tp-viewer-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#fff;z-index:1}
.tp-photo-viewer .tp-viewer-title{margin:0;font-size:17px;line-height:1.4;font-weight:650}
.tp-photo-viewer button{flex-shrink:0;width:44px;height:44px;border:0;border-radius:14px;background:#f2f3f5;color:#151515;font:400 26px/1 Arial;cursor:pointer;touch-action:manipulation}
.tp-photo-viewer img{display:block;width:100%;height:auto;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);object-fit:contain;background:#f2f3f5}
.tp-photo-viewer .tp-viewer-stats{padding:16px 20px;font-size:14px;line-height:1.5}
.tp-photo-viewer .tp-viewer-error{margin:0;padding:30px 20px;font-size:14px;line-height:1.5;color:#9c2640}
@media(max-width:480px){#app .overlay.tp-overlay{padding:10px!important}#app .form.photos-modal.tp-modal{max-height:calc(100vh - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:24px!important}#app .tp-modal .tp-header{padding:20px 18px 16px}#app .tp-modal .tp-heading{font-size:21px}#app .tp-modal>.col{padding:14px!important}#app .tp-modal .photo-info{padding:14px 16px 16px!important}#app .tp-modal .tp-footer{padding-left:18px;padding-right:18px}}
@media(max-height:480px){#app .tp-modal .tp-header{padding:12px 18px}#app .tp-modal .tp-subtitle{margin-top:3px}#app .tp-modal .tp-footer{padding-top:8px;padding-bottom:8px}}
#app .tp-modal [hidden],.tp-photo-viewer [hidden]{display:none!important}
/* Override legacy global typography and the old 220px form-column cap. */
#app .tp-modal *, .tp-photo-viewer *{font-family:TrainerPhotosInter,Inter,Arial,sans-serif!important}
#app .tp-modal>.col{max-width:none!important;align-self:stretch!important}
#app .form.photos-modal.tp-modal{height:min(900px,calc(100vh - 32px))!important;height:min(900px,calc(100dvh - 32px))!important}
@media(max-width:480px){#app .form.photos-modal.tp-modal{height:calc(100vh - 20px)!important;height:calc(100dvh - 20px)!important}}
