/* JPons 360 — additions on top of jhon.css, same visual language. */

[hidden]{display:none!important}
body{-webkit-tap-highlight-color:transparent}
img{max-width:100%}
/* Focus: dark on the light screens, lime only on the dark zones. */
:root{--focus:#173f35}
.hero,.cp,.rest-timer:not(.over),.stat,.toast,.save-bar,.notification-settings,.admin-shell .app-header{--focus:#b8d86c}
@media(min-width:800px){.admin-shell>.admin-nav{--focus:#b8d86c}.admin-shell>.admin-nav .nav:focus-visible{outline-offset:2px}}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.field input:focus-visible,.field textarea:focus-visible,.field select:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
[tabindex="-1"]:focus-visible{outline:none}

/* jhon.css: `.shell>*{position:relative}` was overriding the fixed bottom nav */
.shell>.bottom{position:fixed;z-index:20}
.bottom .nav{min-height:44px}
.shell>.bottom:not(.admin-nav){padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}
/* Very large text: the menu scrolls sideways instead of losing tabs. */
.bottom{overflow-x:auto}
.bottom .nav{flex:1 0 auto}
.bottom .nav:focus-visible{outline-offset:-3px}
@media(min-width:800px){.admin-shell>.admin-nav{position:static;z-index:auto;overflow:visible}}

/* ---------- boot, loading, toasts ---------- */
.boot{min-height:100vh;display:grid;place-items:center}
.boot img{mix-blend-mode:multiply;animation:breathe 1.4s ease-in-out infinite}
@keyframes breathe{50%{opacity:.45;transform:scale(.96)}}
.page-loading{padding:70px 0;text-align:center;color:var(--muted);font-size:13px;font-weight:700}
.loadbar{position:fixed;z-index:90;top:0;left:0;right:0;height:3px;overflow:hidden;pointer-events:none}
.loadbar:before{content:"";position:absolute;top:0;bottom:0;width:40%;background:linear-gradient(90deg,transparent,var(--leaf),var(--lime),transparent);animation:loadbar 1s ease-in-out infinite}
@keyframes loadbar{from{transform:translateX(-100%)}to{transform:translateX(260%)}}

.toast-wrap{position:fixed;z-index:80;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 24px));display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{pointer-events:auto;padding:13px 16px;border-radius:16px 12px;background:linear-gradient(135deg,var(--green),#2f6e51);color:#fff;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 12px 30px #173f3540;animation:drop-in .25s ease-out}
.toast.error{background:linear-gradient(135deg,#a9483d,#8f3d34)}
.toast-action{min-height:44px;margin:-10px -6px -10px 10px;padding:0 8px;border:0;background:none;color:#fff;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.toast.out{opacity:0;transform:translateY(-6px);transition:opacity .3s,transform .3s}
body[data-area=admin] .toast{border-radius:10px}
@keyframes drop-in{from{opacity:0;transform:translateY(-8px)}}

/* ---------- buttons & small helpers ---------- */
a.btn{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-weight:800}
.btn:disabled{opacity:.6;cursor:default}
.btn.is-busy{position:relative;color:transparent!important;opacity:.85}
.btn.is-busy:after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2.5px solid #ffffff73;border-top-color:#fff;animation:spin .7s linear infinite}
.btn.secondary.is-busy:after,.btn.ghost.is-busy:after,.btn.danger.is-busy:after{border-color:#173f3533;border-top-color:var(--green)}
button.is-busy:not(.btn){opacity:.55}
@keyframes spin{to{transform:rotate(360deg)}}
.btn.small{padding:10px 12px;font-size:13px;min-height:44px}
.btn.auto{width:auto;flex:0 0 auto}
.btn.danger{background:#fff;color:var(--danger);border:1px solid #e7c3bc;box-shadow:none}
.admin-shell .btn.danger{background:#fff}
.link-btn{background:none;padding:14px 4px;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.danger-text{color:var(--danger)}
.avatar-btn{flex:0 0 44px;width:44px;height:44px;padding:0;cursor:pointer}
.grow{flex:1;min-width:0}
.small{font-size:12px}
p.small{margin:6px 0}
.mt{margin-top:22px!important}
.empty{padding:34px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:1.5}
.load-error h3{margin-bottom:6px}
.boot-note{padding:40px 24px;text-align:center;color:var(--muted);font-size:14px}
.offline-pill{margin:12px 0 0;padding:8px 12px;border-radius:99px;background:#fff4d8;color:#6b5310;font-size:12px;font-weight:800;text-align:center}
.stack-actions{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.photo-missing{display:block;min-height:42px;padding:12px;border-radius:12px;background:#e8ece6;color:var(--muted);font-size:12px}
.trainer-link{max-width:100%;min-height:44px}
.page-content>.back-link:first-child{margin-top:14px}
.back-link{min-height:44px}
.field select:focus{border-color:var(--leaf);box-shadow:0 0 0 3px #6f9b7626}
.field input.invalid,.field textarea.invalid,.field select.invalid,.sets input.invalid,.item-editor .invalid{border-color:var(--danger)!important;box-shadow:0 0 0 3px #a9483d22!important}

.pill{white-space:normal}
.pill.pill-off{background:#eceee9;color:#59635e}
.pill.pill-pain{background:#f7dfd7;color:#8f3d34}

/* ---------- client: home ---------- */
.stat-note{display:block;margin-top:10px;font-size:12px;font-weight:800;color:#dcebd2}
.list-button .notice{margin-bottom:0}
.routine-notes{margin:14px 0;padding:4px 18px;border-radius:20px 14px;background:#ffffffe0;border:1px solid rgba(23,63,53,.08)}
.routine-notes summary,.tech summary{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:800;color:var(--green);cursor:pointer;list-style:none}
.routine-notes summary{justify-content:space-between}
.routine-notes summary::-webkit-details-marker,.tech summary::-webkit-details-marker{display:none}
.routine-notes summary:after,.tech summary:after{content:"";flex:0 0 auto;width:7px;height:7px;margin-top:-4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.routine-notes[open] summary:after,.tech[open] summary:after{margin-top:4px;transform:rotate(-135deg)}
.routine-notes p{margin:0 0 14px;white-space:pre-line;font-size:14px}

/* ---------- client: workout ---------- */
.day-chips{display:flex;gap:8px;overflow-x:auto;margin:4px -20px 0;padding:6px 20px 6px;scrollbar-width:none}
.day-chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 15px;border-radius:99px;background:#fff;border:1px solid #d6e2d2;color:var(--green);font-size:13px;box-shadow:0 6px 14px #173f3512}
.chip.active{background:linear-gradient(135deg,var(--green),#2f6e51);color:#fff;border-color:transparent}
.chip i{font-style:normal;font-size:9px;letter-spacing:.08em;text-transform:uppercase;padding:3px 6px;border-radius:99px;background:var(--lime);color:var(--green)}
.rest-pill{display:inline-block;margin-left:4px;font-size:11px;font-weight:700;color:var(--muted)}
.sets{grid-template-columns:36px 1fr 1fr 44px}
.sets input{font:inherit;font-size:16px;background:#fff}
.sets input.set-in{min-height:44px}
.sets .check{width:44px;height:44px;margin:0}
.sets strong.is-done{color:#3c6f2c}
.sets input.is-done{background:#eef6e6;border-color:#cfe3c3}
.add-set{background:none;color:var(--green);font-size:13px;min-height:44px;padding:12px 0}
.last-hint{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.ex-note{white-space:pre-line}
.tech{margin:4px 0}
.tech summary{font-size:13px}
.tech p{margin:0 0 8px;white-space:pre-line;font-size:14px}

.rest-timer{position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));width:min(440px,calc(100% - 24px));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:12px 14px 12px 18px;border-radius:22px 15px;background:linear-gradient(135deg,var(--green),#245c46);color:#fff;box-shadow:0 16px 34px #173f3555;animation:rise-in .25s ease-out}
.rest-info{min-width:0}
.rest-info small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#c8e77b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rest-time{display:block;font-size:30px;font-weight:950;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.rest-actions{display:flex;gap:8px}
.rest-actions button{min-height:44px;padding:10px 12px;border-radius:12px;background:#ffffff1f;color:#fff;font-size:13px}
.rest-actions [data-rest=skip]{background:var(--lime);color:var(--green)}
.rest-bar{grid-column:1/-1;height:5px;border-radius:99px;background:#ffffff26;overflow:hidden}
.rest-bar span{display:block;width:100%;height:100%;border-radius:99px;background:var(--lime);transition:width .25s linear}
.rest-timer.over{padding:20px 18px;background:var(--lime);color:var(--green);box-shadow:0 0 0 6px #b8d86c66,0 16px 34px #173f3555;animation:rest-flash .5s ease-in-out 3}
.rest-timer.over .rest-time{font-size:54px}
.rest-timer.over .rest-info small{color:var(--green);white-space:normal}
.rest-timer.over .rest-actions button{background:var(--green);color:#fff}
.rest-timer.over [data-rest=add],.rest-timer.over [data-rest=mute],.rest-timer.over .rest-bar{display:none}
.rest-actions .rest-mute{min-width:44px;padding:0;font-size:18px}
@keyframes rest-flash{50%{transform:translateX(-50%) scale(1.04)}}
@keyframes rise-in{from{opacity:0;transform:translate(-50%,10px)}}
@media(min-width:700px){.rest-timer{bottom:104px}}

/* ---------- client: feedback ---------- */
.session-sum{margin:0 0 4px;font-size:13px;font-weight:800;color:var(--green)}
.range-row{display:flex;align-items:center;gap:14px}
.field .range-row input[type=range]{flex:1;height:44px;padding:0;border:0;background:none;box-shadow:none;accent-color:var(--green)}
.range-value{flex:0 0 48px;height:48px;display:grid;place-items:center;border-radius:16px 12px;background:linear-gradient(145deg,var(--lime),var(--mint));color:var(--green);font-size:22px;font-weight:950}
.range-hint{display:block;margin-top:6px;font-size:12px;font-weight:700;color:var(--muted)}
.field .consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:12px 13px;border-radius:14px;background:#f2f7ec;border:1px solid #dbe8d2;font-size:13px;line-height:1.45;font-weight:700;color:var(--ink);cursor:pointer}
.field .consent input{flex:0 0 22px;width:22px;height:22px;margin:0;padding:0;border:0;accent-color:var(--green)}
.consent-note{display:block;margin-top:8px;font-size:12px;line-height:1.45;color:var(--muted)}
.week-line{margin:10px 0 0;font-size:13px}

/* ---------- client: progress ---------- */
.admin-grid small{display:block}
.ex-progress .top{gap:10px}
.ex-progress .top h3{margin:0}
.spark{display:block;width:100%;height:44px;margin:10px 0 4px}
.spark polyline{fill:none;stroke:#68a642;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.spark circle{fill:#fff;stroke:#68a642;stroke-width:2.5}
.trend-down{color:var(--danger);font-weight:900;background:#f8e5e1;padding:6px 9px;border-radius:6px}

/* ---------- SVG charts ---------- */
.chart-grid>.card{min-width:0}
.line-chart,.bars-svg{max-width:100%}
.chart-heading>div{min-width:0}
.line-chart .axis{stroke:#c9d3ca;stroke-width:1}
.y-labels text{font-size:13px;fill:#59635e;text-anchor:end}
.x-labels text{font-size:13px;fill:#59635e}
.area-fill{stroke:none}
.bars-svg{display:block;width:100%;height:auto;margin-top:12px;overflow:visible}
.bars-svg .baseline{stroke:#dfe4df;stroke-width:1}
.bars-svg .bar.empty{fill:#e3e9e1}
.bars-svg .bar:not(.met):not(.empty){opacity:.6}
.bar-value{font-size:13px;font-weight:800;fill:#173f35;text-anchor:middle}
.bar-label{font-size:13px;fill:#59635e;text-anchor:middle}
.bar-label.current{font-weight:800;fill:#173f35}
.goal-line{stroke:#d99a2b;stroke-width:1.5;stroke-dasharray:5 4}
.goal-label{font-size:13px;font-weight:800;fill:#7f5710;text-anchor:end}
.chart-select{min-height:44px;max-width:100%;border:1px solid #d6ddd5;border-radius:8px;padding:6px 10px;font:inherit;font-size:16px;font-weight:800;color:#173f35;background:#fff}
.chart-empty{padding:34px 0;text-align:center}

/* ---------- admin: summary & lists ---------- */
.stat-link{cursor:pointer;transition:transform .15s}
.stat-link:hover{transform:translateY(-2px)}
.activity-row{padding:12px 0}
.activity-row .notification-icon{flex:0 0 38px;width:38px;height:38px}
.search input[type=search]{-webkit-appearance:none;appearance:none}

/* ---------- admin: client detail ---------- */
.contact-line{margin:2px 0 0;font-size:12px;color:var(--muted);word-break:break-word}
.client-identity h1{word-break:break-word}
.client-head{flex-wrap:wrap;row-gap:12px}
.client-identity{min-width:min(100%,260px)}
.client-head .notice{margin-top:0}
.negative{color:var(--danger);font-weight:800}
.new-tag{color:#315d47;font-weight:800}
.metric small.down{color:var(--danger)}
.assign-panel{margin-top:16px}
.assign-panel .row{flex-wrap:wrap}
.fb-row{padding:14px 0;border-bottom:1px solid #e2e7e2}
.fb-row:last-child{border:0;padding-bottom:0}
.fb-row .top{align-items:flex-start;gap:10px}
.fb-title{display:block;margin:8px 0 2px}
.rpe-score{flex:0 0 auto;white-space:nowrap}
.fb-row .feedback-quote{margin-top:10px}
.pain-area{display:block;margin-top:6px;font-size:12px;font-weight:700;color:var(--danger)}

/* ---------- admin: routines & editor ---------- */
button.day-number{border:0;cursor:pointer}
.routine-card .row.row-minor{margin-top:8px}
.routine-card .row-minor .btn{padding:8px;font-size:12px}
.is-archived{background:#f2f4f1}
.day-editor-head{display:flex;align-items:flex-end;gap:12px}
.day-editor-head .day-number{margin-bottom:2px}
.field.compact{margin:0 0 4px}
.field.compact label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.item-editor{margin:12px 0;padding:12px;border:1px solid #e1e7e0;border-radius:10px;background:#fafcf8}
.item-top{display:flex;align-items:center;gap:8px}
.item-top select{flex:1}
.item-n{flex:0 0 26px;height:26px;display:grid;place-items:center;border-radius:7px;background:#e2efd7;color:var(--green);font-size:12px;font-weight:900}
.item-tools{display:flex;gap:4px}
.icon-btn{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border-radius:8px;background:#eef3ea;color:var(--green);font-size:14px}
.icon-btn:disabled{opacity:.35;cursor:default}
.icon-btn.danger{background:#f8e5e1;color:var(--danger)}
.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.mini{display:block}
.mini span{display:block;margin-bottom:4px;font-size:11px;font-weight:800;color:var(--muted)}
.mini.wide{margin-top:8px}
.item-editor select,.item-editor input{width:100%;min-width:0;border:1px solid #d6ddd5;background:#fff;border-radius:8px;padding:9px 10px;font:inherit;font-size:16px;color:var(--ink)}
.item-editor select:focus,.item-editor input:focus{border-color:var(--leaf);box-shadow:0 0 0 3px #6f9b7626}
.day-editor .btn.small{margin-top:4px}
.save-bar{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));width:min(440px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 16px;border-radius:12px;background:#101814;color:#fff;font-size:13px;font-weight:800;box-shadow:0 14px 30px #10191440;animation:rise-in .2s ease-out}
.admin-shell .save-bar .btn{width:auto;background:#82c84a;color:#102016}
@media(min-width:800px){.save-bar{bottom:24px;left:calc(50% + 105px)}}
/* Phones: the exercise select gets its own full-width line under the number and the tools. */
@media(max-width:479px){
  .item-top{flex-wrap:wrap}
  .item-top select{order:3;flex:1 1 100%}
  .item-tools{margin-left:auto}
  .item-grid{grid-template-columns:minmax(0,.7fr) minmax(0,1.4fr) minmax(0,.9fr)}
}

/* ---------- admin: exercises ---------- */
.ex-row{display:flex;align-items:center;gap:12px}
.thumb{flex:0 0 96px;width:96px;height:54px;object-fit:cover;border-radius:8px;background:#dfe6df}
.thumb-empty{display:grid;place-items:center;color:#a9b5ad;font-size:18px}
.ex-card h3{margin:0 0 6px}
.ex-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ex-card .row{margin-top:12px}
.ex-edit form{margin-top:12px;padding-top:12px;border-top:1px solid #e2e7e2}
.ex-card-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.show-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin:12px 0}
.show-more small{font-weight:700;color:var(--muted)}
.archived-block{margin:22px 0}
.archived-block summary{padding:8px 4px;font-weight:900;color:var(--green);cursor:pointer}

/* ---------- admin: feedback ---------- */
.segmented{display:flex;gap:6px;margin:4px 0 14px;padding:5px;background:#fff;border:1px solid #d8dfd8;border-radius:10px}
.segmented button{flex:1;min-height:44px;padding:10px;border-radius:7px;background:none;color:#50705e;font-size:13px}
.segmented button.active{background:#173f35;color:#fff}
.feedback-card .row{flex-wrap:wrap;margin-top:4px}
.feedback-card .row .btn{padding:11px}
.feedback-card .no-comment{font-style:italic}
.feedback-card .notice{margin-top:0}
.feedback-card .top{gap:10px;align-items:flex-start}
.feedback-card .top>div{min-width:0}
.feedback-card .top>strong{flex:0 0 auto;white-space:nowrap}
.is-reviewed{background:#f6f8f4}

/* ---------- admin: notifications & invites ---------- */
.mark-read:disabled{opacity:.6}
.notification-item button{min-height:44px;padding:12px 0}
.invite-row{gap:12px}
.invite-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.new-code-box{margin-top:16px}
.new-code-box>span{display:block;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.code.big{margin:6px 0 12px;font-size:30px}
.new-code-box .row{flex-wrap:wrap}
.code-expiry{display:block;margin:-4px 0 12px;font-size:12px;font-weight:700;color:var(--muted)}

/* ---------- account: password, recovery, deletion, privacy ---------- */
.forgot-link{display:block;margin:4px auto 0;padding:12px 4px;min-height:44px}
.legal-link{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;width:max-content;max-width:100%;margin:4px auto 18px;padding:10px 12px;font-size:12px;font-weight:700;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.consent a,.consent-note a,.legal a{color:var(--green);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.danger-zone{border-color:#efd3cc}
.danger-zone .row{flex-direction:column;align-items:stretch;margin-top:6px}
.danger-zone form .field{margin-top:12px}
.legal h3{margin-bottom:10px}
.legal p{margin:0;color:var(--ink);line-height:1.6;font-size:15px}
.legal-list{margin:0;padding:0 0 0 18px;display:grid;gap:8px;line-height:1.55;font-size:15px}
.legal-list li::marker{color:var(--leaf)}
.admin-shell .legal{border-radius:12px}

/* ---------- muscle groups: pills, filter chips, form chips ---------- */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mg-pills{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 2px}
.mg-pill{display:inline-block;padding:4px 8px;border-radius:99px;background:#eef3ea;color:#315d47;font-size:11px;font-weight:800;line-height:1.3}
.mg-pill.mg-type{background:#f6efd4;color:#7a5a12}
.mg-pills.quiet{margin:4px 0 8px}
.mg-pills.quiet .mg-pill{padding:3px 7px;background:#f1f5ee;color:#4f6a59;font-size:10.5px;font-weight:700}
.tag-filter{margin:10px 0 0;min-width:0}
.tag-scroll{display:flex;gap:8px;overflow-x:auto;margin:0 -20px;padding:4px 20px 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.tag-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:9px 14px;border-radius:99px;background:#fff;border:1px solid #d6e2d2;color:var(--green);font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.tag-chip[aria-pressed=true],.tag-chip:has(input:checked){background:var(--green);border-color:var(--green);color:#fff}
.tag-chip.tag-type{border-style:dashed;border-color:#d9b75a;background:#fffaf0;color:#7a5a12}
.tag-chip.tag-type[aria-pressed=true],.tag-chip.tag-type:has(input:checked){background:#b8862a;border-color:#b8862a;border-style:solid;color:#fff}
.tag-chip:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.tag-chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.tag-sep{flex:0 0 1px;align-self:stretch;margin:4px 2px;background:#d6e2d2}
.tag-hint{margin:0;font-size:12px;line-height:1.4;color:var(--muted)}
.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:2px;font-size:13px;font-weight:800;color:var(--green)}
.filter-bar .link-btn{min-height:44px;padding:12px 4px}
.ex-filter .field.search{margin:0}
.admin-shell .tag-chip{border-radius:8px}
@media(min-width:700px){.tag-scroll{flex-wrap:wrap;overflow:visible;margin:0;padding:4px 0 8px}
  .picker .tag-scroll{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:4px 20px 8px}}
.did-you-mean{margin:8px 0 0;padding:0 8px 12px;font-size:14px;line-height:1.4;text-align:center}
.did-you-mean .link-btn{display:block;width:100%;min-height:44px;padding:8px 4px;font-size:14px}
.past-session{align-items:center}
.modal-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:0;border-radius:14px;background:#f8f7f1;color:var(--ink);box-shadow:0 12px 40px #10191440}
.modal-dialog::backdrop{background:#10191473}
.modal-dialog h3{margin:0 0 8px}
.modal-dialog .row{flex-wrap:wrap;margin-top:14px}
.modal-dialog .notice{margin-top:10px}
.modal-dialog input[readonly]{background:#eef0ea;color:var(--muted)}
.tag-pick{margin:12px 0 6px;padding:0;border:0;min-width:0}
.tag-pick legend{padding:0;margin-bottom:8px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tag-pick .tag-chips{display:flex;flex-wrap:wrap;gap:8px}
.tag-pick .tag-chip{position:relative;padding:9px 12px}
.tag-group-label{display:block;margin:12px 0 8px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* ---------- exercise photo: panel form ---------- */
.label-like{display:block;margin-bottom:7px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.image-field{margin:12px 0 4px}
.image-preview{display:block;width:100%;max-width:360px;height:auto;max-height:260px;object-fit:contain;border-radius:12px;background:#eef2ec;border:1px solid #e1e7e0}
.image-empty{display:grid;place-items:center;height:110px;color:#5a665f;font-size:13px;font-weight:700}
.image-actions{margin-top:10px;flex-wrap:wrap}
.image-actions .btn{width:auto;flex:0 0 auto}
.file-btn{cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center}
.file-btn:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.image-note{display:block;margin-top:6px;font-size:12px}

/* ---------- routine editor: exercise picker ---------- */
.ex-pick{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border:1px solid #d6ddd5;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:700;text-align:left;cursor:pointer}
.ex-pick span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-pick.empty{color:var(--muted);font-weight:600}
.ex-pick b{flex:0 0 auto;color:var(--leaf)}
.pick-thumb{flex:0 0 44px;width:44px;height:44px;border-radius:7px;object-fit:cover;background:#dfe6df}
.pick-thumb.thumb-empty{display:grid;place-items:center;color:#a9b5ad;font-size:13px}
.ex-pick .pick-thumb{flex-basis:36px;width:36px;height:36px}
@media(max-width:479px){.item-top .ex-pick{order:3;flex:1 1 100%}}
.picker{width:min(560px,100%);max-width:100%;max-height:min(90vh,900px);margin:auto auto 0;padding:0;border:0;border-radius:18px 18px 0 0;background:#f8f7f1;color:var(--ink);box-shadow:0 -12px 40px #10191440}
.picker::backdrop{background:#10191473}
.picker[open]{display:flex}
.picker-body{display:flex;flex-direction:column;width:100%;max-height:inherit;min-height:0;overflow:hidden}
.picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 6px 20px}
.picker-head h3{margin:0}
.picker-filters{padding:0 20px;min-width:0}
.picker-filters .field.search{margin:6px 0 0}
.picker-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 12px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e2e7e2}
.picker-list:focus{outline:none}
.pick-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:4px 0;padding:8px 10px;border:1px solid transparent;border-radius:10px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pick-row:hover{border-color:#cfe3c3}
.pick-row.selected{border-color:var(--leaf);background:#eef6e6}
.pick-row strong{display:block;font-size:15px;line-height:1.3}
.pick-row .mg-pills{margin:5px 0 0}
.pick-check{flex:0 0 auto;color:var(--leaf);font-size:18px}
.picker-empty{padding:24px 8px;text-align:center}
@media(min-width:700px){.picker{margin:auto;border-radius:14px}}
@media(min-width:1000px){.picker{width:min(960px,100%)}}
@media(orientation:landscape) and (max-height:500px){
  .picker{width:100%;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0}
  .picker-body{height:100%;max-height:none}
  .picker-head{padding:4px 16px 0 20px}
  .picker .field.search{margin:0}
  .picker .tag-filter{margin:2px 0 0}
  .picker .tag-scroll{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:2px 20px 4px}
  .picker .tag-chip{min-height:36px;padding:5px 12px}
  .picker .tag-hint{display:none}
  .picker .filter-bar{min-height:24px;margin:0}
  .picker .filter-bar .link-btn{min-height:24px;padding:2px 4px}
}

/* ---------- socio: photo and video of each exercise ---------- */
.ex-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;max-height:70vh;object-fit:contain;margin:12px 0;border-radius:16px;background:#dfe6df}
.ex-media .ex-photo,.ex-media .video{margin-top:8px}
.media-tabs{display:inline-flex;gap:4px;margin-top:10px;padding:4px;border-radius:99px;background:#fff;border:1px solid #d6e2d2}
.media-tabs button{min-height:44px;min-width:76px;padding:8px 14px;border-radius:99px;background:none;color:var(--green);font-size:13px;font-weight:800}
.media-tabs button[aria-pressed=true]{background:linear-gradient(135deg,var(--green),#2f6e51);color:#fff}

/* ---------- timed circuits: socio card ---------- */
.circuit-card{margin:4px -8px;padding:16px 12px;border:1px solid #d9e7cf;border-radius:20px 14px;background:linear-gradient(160deg,#f6fbef,#eef6e4)}
.circuit-card.exercise:last-child{border:1px solid #d9e7cf}
.circuit-eyebrow{display:block;margin-bottom:4px;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#3c6f2c}
.circuit-card h3{margin:0 0 4px}
.cstep-list{list-style:none;margin:10px 0 4px;padding:0;display:grid;gap:6px}
.cstep{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 8px;border-radius:12px;background:#fff;border:1px solid #e1ead9}
.cstep strong{display:block;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.cstep small{display:block;margin-top:2px;font-size:12px;font-weight:700;color:var(--muted)}
.cstep-thumb{flex:0 0 40px;width:40px;height:40px;border-radius:9px;object-fit:cover;background:#dfe6df}
.cstep-n{display:grid;place-items:center;background:#e2efd7;color:var(--green);font-size:13px;font-weight:900}
.cstep-row{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:44px}
summary.cstep-row{list-style:none;cursor:pointer}
summary.cstep-row::-webkit-details-marker{display:none}
.cstep.has-more{align-items:flex-start}
.cstep-details{flex:1;min-width:0}
.cstep-chev{margin-left:auto;flex:0 0 auto;padding:0 4px;color:var(--muted);transition:transform .2s}
.cstep-details[open] .cstep-chev{transform:rotate(180deg)}
.cstep-body{padding:8px 0 4px}
.cstep-body .video,.cstep-body .ex-photo{margin:6px 0}
.cstep-kg{flex:0 0 76px;width:76px;min-height:44px;padding:8px;border:1px solid #d6ddd5;border-radius:10px;background:#fff;font:inherit;font-size:16px}
.cstep-kg.invalid{border-color:var(--danger);box-shadow:0 0 0 3px #a9483d22}
.circuit-status{margin:10px 0 0;font-size:13px;font-weight:800;color:var(--green)}
.circuit-status.done{color:#3c6f2c}
.circuit-start{margin-top:12px;min-height:52px;font-size:16px}
.circuit-restart{display:block;margin:2px auto 0;min-height:44px}
.circuit-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.circuit-line span{display:inline-block;padding:4px 9px;border-radius:99px;background:#eef6e4;color:#3f6b33;font-size:11.5px;font-weight:800}

/* ---------- timed circuits: player ---------- */
html.cp-open,html.cp-open body{overflow:hidden}
.cp{--cp-bg:#173f35;--cp-solid:#173f35;--cp-accent:#b8d86c;position:fixed;inset:0;z-index:100;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;background:var(--cp-bg);color:#fff;transition:background .35s}
.cp[data-phase=work]{--cp-bg:linear-gradient(165deg,#2f7a3a,#173f35 70%);--cp-accent:#d7f08a}
.cp[data-phase=rest]{--cp-bg:linear-gradient(165deg,#1f4f6e,#13293a 70%);--cp-solid:#13293a;--cp-accent:#9fd3f0}
.cp[data-phase=prep]{--cp-bg:linear-gradient(165deg,#8a6216,#3a2a0e 75%);--cp-solid:#3a2a0e;--cp-accent:#f6d27a}
.cp[data-phase=done]{--cp-bg:linear-gradient(165deg,#4b8657,#173f35 75%);--cp-accent:#d7f08a}
.cp-inner{display:flex;flex-direction:column;align-items:center;width:min(480px,100%);min-height:100%;padding:calc(16px + env(safe-area-inset-top)) 20px 0;text-align:center;box-sizing:border-box}
.cp-top{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px}
.cp-round{font-size:14px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#ffffffd9}
.cp-icon{width:48px;height:48px;border-radius:14px;background:#ffffff1f;color:#fff;font-size:20px}
.cp-phase{margin-top:14px;padding:8px 16px;border-radius:99px;background:var(--cp-accent);color:#10231b;font-size:15px;font-weight:950;letter-spacing:.12em}
.cp-time{margin:6px 0 0;-webkit-text-size-adjust:none;text-size-adjust:none;white-space:nowrap;font-size:clamp(56px,30vw,150px);font-weight:950;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.cp.is-paused .cp-time{opacity:.55}
.cp-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0;margin-top:8px;font-size:clamp(22px,6vw,30px);font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.cp-media{width:100%;margin-top:12px}
.cp-media img{display:block;width:100%;max-height:26vh;object-fit:contain;border-radius:18px;background:#ffffff14}
.cp-next{min-height:20px;margin:12px 0 0;font-size:15px;font-weight:700;color:#ffffffc7}
.cp-bar{width:100%;height:8px;margin-top:16px;border-radius:99px;background:#ffffff26;overflow:hidden}
.cp-bar span{display:block;width:0;height:100%;border-radius:99px;background:var(--cp-accent);transition:width .2s linear}
.cp-controls{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px;width:100%;padding-top:14px}
.cp-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;border-radius:18px;background:#ffffff1f;color:#fff;font-size:22px;font-weight:900}
.cp-btn small{font-size:12px;font-weight:800}
.cp-btn:disabled{opacity:.35}
.cp-main{background:var(--cp-accent);color:#10231b;font-size:20px}
.cp-end{min-height:48px;margin-top:6px;padding:10px 20px;background:none;color:#ffffffd9;font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.cp-note{margin:4px 0 0;font-size:12px;font-weight:600;color:#ffffffa6}
.cp-wake{color:var(--cp-accent)}
@media(max-height:760px){.cp-media img{max-height:18vh}}
@media(max-height:640px){.cp-time{font-size:clamp(56px,24vw,120px)}}
@media(max-height:600px) and (orientation:portrait){.cp-media img{max-height:14vh}.cp-note:not(.cp-wake){display:none}}
.cp-col{display:contents}
.cp-col-controls{position:sticky;bottom:0;z-index:1;display:flex;flex-direction:column;align-items:center;width:calc(100% + 40px);margin:auto -20px 0;padding:0 20px calc(10px + env(safe-area-inset-bottom));background:var(--cp-solid)}
/* Page zoom on a phone: the bar would cover the clock, so it scrolls with the rest. */
@media(max-height:420px) and (orientation:portrait){.cp-col-controls{position:static}}
/* Phone sideways: time on one side, controls on the other, so Pausa / Atrás / Saltar never need a scroll. */
@media(max-height:500px) and (orientation:landscape){
  .cp{align-items:stretch}
  .cp-inner{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:28px;width:min(900px,100%);padding:calc(6px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left))}
  .cp-top{grid-column:1/-1}
  .cp-col,.cp-col-controls{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
  .cp-col-controls{position:static;width:auto;margin:0;padding:0;background:none}
  .cp-phase{margin-top:0;padding:6px 14px;font-size:13px}
  .cp-time{font-size:min(28vh,18vw)}
  .cp-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;font-size:clamp(17px,5vh,24px)}
  .cp-media{margin-top:6px}
  .cp-media img{max-height:20vh}
  .cp-next{min-height:0;margin-top:6px;font-size:13px}
  .cp-bar{margin-top:0}
  .cp-controls{margin-top:14px;padding-top:0}
  .cp-btn{min-height:56px}
}

/* ---------- timed circuits: routine editor ---------- */
.circuit-editor{border-color:#cfe0c2;background:#f4f9ee}
.circuit-editor input{min-height:44px}
.circuit-head{display:flex;flex-direction:column;gap:2px}
.circuit-badge{font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#3c6f2c}
.circuit-sum{font-size:13px;font-weight:800;color:var(--green)}
.circuit-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,1fr)}
.step-list{list-style:none;margin:12px 0 4px;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.step-editor{min-width:0;padding:10px;border:1px solid #e1e7e0;border-radius:10px;background:#fff}
.step-n{background:#fff4d6;color:#7a5a12}
.item-grid.step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.step-last{align-self:end;margin:0;padding:10px 0;font-size:12px;font-weight:700;color:var(--muted)}
.add-row{flex-wrap:wrap}
.add-row .btn{flex:1 1 160px;width:auto}
.add-step{margin-top:6px}
@media(max-width:479px){
  .circuit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .circuit-grid .cname{grid-column:1/-1}
  .item-top .circuit-head{order:0;flex:1 1 0}
  .step-editor .ex-pick{order:3;flex:1 1 100%}
}

/* ---------- timed circuits: trainer views ---------- */
.circuit-done{margin-top:12px;padding:12px;border-radius:12px;background:#f4f9ee;border:1px solid #dbe8d2}
.circuit-done .top{gap:10px}
.circuit-done ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}
.circuit-done li{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.circuit-done li small{flex:0 0 auto;color:var(--muted);font-weight:700}
.tag-chip.tag-short{background:#eef6e4;border-color:#bcd7a9;color:#2f5d27}
.tag-chip.tag-short[aria-pressed=true]{background:#3c6f2c;border-color:#3c6f2c;color:#fff}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* ---------- routines by weeks: socio ---------- */
.plan-until{margin:-4px 4px 10px;font-size:12px;font-weight:700;color:var(--muted)}
.week-days h3{margin-bottom:4px}
.wk-day{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 0;border-bottom:1px solid #e4e8e2;background:none;color:inherit;text-align:left}
.wk-day:last-child{border-bottom:0}
.wk-day strong{display:block;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.wk-day small{display:block;margin-top:2px;font-size:12px;font-weight:700;color:var(--muted)}
.wk-label{flex:0 0 auto;min-width:74px;padding:6px 9px;border-radius:99px;background:var(--mint);color:var(--green);font-size:11px;font-weight:900;text-align:center;letter-spacing:.02em}
.wk-day.is-optional .wk-label{background:#fffaf0;color:#7a5a12;border:1px dashed #d9b75a}
.wk-mark{flex:0 0 auto;font-size:11px;font-weight:900;letter-spacing:.06em}
.wk-mark.done{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e1efd9;color:#3c6f2c;font-size:14px}
.wk-mark.next{padding:4px 8px;border-radius:99px;background:var(--lime);color:var(--green)}
.week-done .btn{margin-top:6px}
.chip.chip-optional:not(.active){border-style:dashed;border-color:#d9b75a;color:#7a5a12;background:#fffaf0}
.chip i.done{background:#e1efd9;color:#3c6f2c}
.chip.active i.done{background:#ffffff2e;color:#fff}
.optional-note{margin:10px 0 0;background:#fffaf0;color:#7a5a12}

/* ---------- routines by weeks: editor ---------- */
.mode-field{margin-bottom:0}
.mode-switch{margin:0}
.mode-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.2}
.mode-switch button small{font-size:11px;font-weight:700}
.week-group{margin:18px 0 6px;padding:12px 12px 4px;border:1px solid #d7e4cf;border-radius:14px;background:#f3f8ee}
.week-head{display:flex;align-items:center;gap:10px;padding:2px 2px 0}
.week-head h2{flex:1;margin:0;font-size:20px;letter-spacing:-.02em;color:var(--green)}
.week-group .day-editor{margin:10px 0}
.week-empty{margin:10px 2px}
.add-day-week{margin:2px 0 10px}
.day-options{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:10px 0 2px}
.day-options .week-move{flex:1 1 140px;min-width:0}
.day-options .week-move select{width:100%;min-height:44px;border:1px solid #d6ddd5;background:#fff;border-radius:8px;padding:9px 10px;font:inherit;font-size:16px;color:var(--ink)}
.switch{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:800;color:var(--green);cursor:pointer}
.switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.switch-track{position:relative;flex:0 0 46px;width:46px;height:28px;border-radius:99px;background:#d6ddd5;transition:background .15s}
.switch-track:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.switch input:checked+.switch-track{background:#b8862a}
.switch input:checked+.switch-track:after{transform:translateX(18px)}
.switch input:focus-visible+.switch-track{outline:3px solid var(--focus);outline-offset:2px}
.day-editor.is-optional{border-style:dashed;border-color:#d9b75a}

/* ---------- client plan (planificación) ---------- */
.plan-card .top{gap:10px}
.plan-card .top h3{margin:0}
.plan-blocks{list-style:none;margin:12px 0 4px;padding:0}
.plan-block{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e4e8e2}
.plan-block:last-child{border-bottom:0}
.plan-block strong{display:block;overflow-wrap:anywhere}
.plan-block small{display:block;margin-top:2px;font-size:12px;color:var(--muted);line-height:1.4}
.plan-block.is-past strong{color:var(--muted)}
.plan-block.is-active .item-n{background:var(--green);color:#fff}
.plan-next{margin:10px 0 2px;font-size:14px;color:var(--green)}
.plan-actions{flex-wrap:wrap;margin-top:10px}
.plan-form{margin-top:14px;padding-top:12px;border-top:1px solid #e2e7e2}
.plan-row{margin:10px 0;padding:12px;border:1px solid #e1e7e0;border-radius:10px;background:#fafcf8}
.plan-row.is-current{border-color:#bcd7a9;background:#f3f8ee}
.plan-row.is-locked{background:#f2f4f1}
.plan-row.is-locked small{display:block;font-size:12px;color:var(--muted)}
.plan-dates{font-size:13px;font-weight:800;color:var(--green)}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.plan-grid .plan-routine{grid-column:1/-1}
.plan-grid select,.plan-grid input{width:100%;min-width:0;min-height:44px;border:1px solid #d6ddd5;background:#fff;border-radius:8px;padding:9px 10px;font:inherit;font-size:16px;color:var(--ink)}
.plan-end,.plan-choice{margin:14px 0 6px;padding:0;border:0}
.plan-end legend,.plan-choice legend{margin-bottom:6px;font-size:13px;font-weight:800;color:var(--ink)}
.radio-row{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:1.35;cursor:pointer}
.radio-row input{flex:0 0 22px;width:22px;height:22px;margin:0;accent-color:var(--green)}
.plan-line{margin:8px 0 0}
.plan-events .activity-row strong{font-size:14px;line-height:1.35}
/* Nutrition link in the socio bottom nav (an <a>, it leaves the hash router for /nutricion/). */
.bottom a.nav{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-weight:800}
.nutrition-card .row{flex-wrap:wrap}.nutrition-card .row>*{flex:1 1 180px}.nutrition-state{display:flex;align-items:center;gap:10px;margin:6px 0 12px}

/* ---------- accessibility, over jhon.css ---------- */
/* Texts AA: the green and greys of the mockup that did not reach 4.5:1 on their real background. */
.eyebrow{color:#3c6f2c}
.shell:not(.admin-shell) .hero .eyebrow{align-self:flex-start;width:fit-content;max-width:100%;padding:3px 8px;border-radius:6px;background:#0a1f17cc;color:#d9f08f;text-shadow:none}
.brand-360{background:linear-gradient(135deg,var(--green),#3f7a52)}
.admin-shell .brand-360{background:#82c84a}
.trend-up{color:#3c6f2c}
.positive{color:#3c6f2c}
.metric span{color:#59635e}
.metric small{color:#3c6f2c}
.session-table>div:first-child{color:#59635e}
.notification-item time{font-size:11px;color:#59635e}
.notification-icon.success{color:#3c6f2c}
.notification-item button{color:#2f6133}
.admin-shell{--muted:#5a665f}
.notify-bell .bell-count{background:#c7402a}
.feedback-quote{color:#4d5a52}
.client-meta strong{color:#173f35}
/* Touch: 44 px at least. */
.notify-bell{width:44px;height:44px}
.client-actions .btn,.routine-card .row .btn,.routine-card .row-minor .btn{min-height:44px}
/* Text at 200 %: long words wrap instead of being cut off by the shell. */
.hero h1{overflow-wrap:anywhere}
.client-head h1{overflow-wrap:anywhere}
.admin-grid{grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.admin-grid>*,.metric-row>*{min-width:0;overflow-wrap:anywhere}
/* Wraps only when the text beside it would be left with too little room, not because a line of text is long. */
.top{flex-wrap:wrap;gap:6px}
.top>:first-child:not(:last-child){flex:1 1 7rem;min-width:0}
.client-actions{flex-wrap:wrap}
.client-actions .btn{white-space:normal}
.filter-bar{flex-wrap:wrap}
/* Errors beside the field. */
.field-error{display:block;margin:6px 0 2px;font-size:13px;font-weight:700;line-height:1.4;color:#8f3d34}
.mini .field-error{font-size:12px}
.no-plan h1{margin:0 0 8px;font-size:24px;line-height:1.2;letter-spacing:-.02em}
.tag-pick .tag-chip{white-space:normal}

/* ---------- several trainers and online clients (docs/MULTI-ENTRENADOR.md §9) ---------- */
/* Count of unread messages on the Mensajes tab and in lists. */
.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:3px;padding:0 5px;border-radius:99px;background:#a9483d;color:#fff;font-size:11px;font-weight:900;line-height:1;vertical-align:1px}
.admin-nav .nav span .nav-count{display:inline-flex}
label.consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0;padding:12px 13px;border-radius:14px;background:#f2f7ec;border:1px solid #dbe8d2;font-size:13px;line-height:1.45;font-weight:700;color:var(--ink);cursor:pointer}
.mt{margin-top:9px}

/* Filters of the responsible of the centre */
.centre-filter{margin:0 0 12px}
.centre-filter select{min-height:44px}
.scope-switch,.feedback-tabs,.checkin-filter,.routine-scope,.invite-mode,.mode-pick{flex-wrap:wrap}
.feedback-tabs{margin-bottom:8px}
.work-cards{margin:12px 0}
.work-cards .card{border-top:3px solid #b8862a}
.attention-soft h2{color:#7a5a16}

/* Client cards and file */
.pill.pill-online{background:#173f35;color:#fff}
.client-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}
.trainer-of{color:#59635e}
.client-news{margin:0 0 12px;color:#7a5a16;font-weight:800}
.team-cards{display:grid;gap:12px;margin:14px 0}
@media(min-width:700px){.team-cards{grid-template-columns:1fr 1fr}}
.team-cards .card{min-height:0}
.team-cards h3{margin-bottom:8px}
.trainer-name{margin:4px 0 10px;font-size:17px}
.mode-pick{margin:6px 0 8px}

/* Routines and exercises of the team */
.routine-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px}
.routine-tags .muted{color:#59635e}
.share-switch{margin-top:6px}
.section-note{margin:-4px 0 10px}
.ro-items{margin:8px 0 0;padding:0;list-style:none}
.ro-items li{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-bottom:1px solid #e4e8e2}
.ro-items li:last-child{border-bottom:0}
.ro-items small{color:#59635e}
.created-by{margin:6px 0;color:#2f6133;font-weight:800}

/* Messages */
.messages-head{margin-bottom:10px}
.thread-card{padding:12px}
.thread{display:flex;flex-direction:column;gap:10px;max-height:min(58vh,560px);overflow-y:auto;padding:4px 2px 8px;overscroll-behavior:contain}
.thread-empty{text-align:center;margin:18px 0}
.bubble{max-width:85%;padding:10px 13px;border-radius:16px;line-height:1.45}
.bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble small{display:block;margin-top:5px;font-size:11px;font-weight:700}
.bubble.mine{align-self:flex-end;background:#173f35;color:#fff;border-bottom-right-radius:5px}
.bubble.mine small{color:#d7e6d0}
.bubble.theirs{align-self:flex-start;background:#edf4ea;color:#17211d;border-bottom-left-radius:5px}
.bubble.theirs small{color:#4f5b54}
.compose{display:flex;gap:8px;align-items:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid #e4e8e2}
.compose textarea{flex:1;min-height:48px;max-height:160px;border:1px solid #d6ddd5;border-radius:14px;padding:12px 13px;font:inherit;resize:vertical;background:#fff}
.compose .btn{flex:0 0 auto;width:auto;min-height:48px;padding:0 18px}
.thread-list{padding:4px 14px}
.thread-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e4e8e2;min-height:44px;cursor:pointer}
.thread-row:last-child{border-bottom:0}
.thread-row .top{display:flex;justify-content:space-between;gap:8px}
.thread-row time{font-size:11px;color:#59635e;white-space:nowrap}
.thread-last{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.thread-row .grow{min-width:0}
.thread-row.unread strong{color:#102016}
.thread-row.unread .thread-last{color:#17211d;font-weight:700}

/* Weekly check-in */
.scale-field{margin:0 0 16px;padding:0;border:0}
.scale-field legend{margin-bottom:8px;font-size:14px;font-weight:800;color:var(--ink)}
.scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.scale-opt{position:relative;display:block}
.scale-opt input{position:absolute;opacity:0;width:1px;height:1px}
.scale-opt span{display:flex;align-items:center;justify-content:center;min-height:46px;border:1px solid #d6ddd5;border-radius:12px;background:#fff;color:#17211d;font-weight:900;font-size:16px;cursor:pointer}
.scale-opt input:checked+span{background:#173f35;border-color:#173f35;color:#fff}
.scale-opt input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.scale-ends{display:flex;justify-content:space-between;gap:8px;margin-top:5px}
.scale-ends small{font-size:11px;color:#59635e}
.measures{margin:0 0 14px;border:1px solid #e1e7df;border-radius:14px;padding:0 13px}
.measures summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:800;color:var(--green);cursor:pointer}
.measure-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;padding-bottom:13px}
.measure-grid input{width:100%;min-height:44px;border:1px solid #d6ddd5;border-radius:12px;padding:10px;font:inherit;background:#fff}
.checkin-status{margin-top:0}
.checkin-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:12px 0}
.checkin-facts span{display:flex;flex-direction:column;padding:9px 10px;border-radius:12px;background:#f3f6f1}
.checkin-facts small{font-size:10px;font-weight:800;color:#59635e;text-transform:uppercase;letter-spacing:.01em;overflow-wrap:anywhere}
.checkin-facts strong{font-size:18px;color:var(--ink)}
.reply-text{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);line-height:1.5}
.reply-box{margin-top:12px}
.reply-box strong{display:block}
.checkin-detail{padding:0;overflow:hidden}
.checkin-detail>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:14px 16px;cursor:pointer;list-style:none}
.checkin-detail>summary::-webkit-details-marker{display:none}
.checkin-detail>summary small{display:block;font-size:12px}
.checkin-detail[open]>summary{border-bottom:1px solid #e4e8e2}
.checkin-detail>:not(summary){margin-left:16px;margin-right:16px}
.checkin-detail .reply-form{margin-bottom:16px}
.reply-form .row{margin-top:8px}
.checkin-card .row{margin-top:10px}

/* Progress photos: never cached, only behind the session. */
.progress-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin:12px 0}
.progress-photo{margin:0}
.progress-photo img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:#e9eee6}
.progress-photo figcaption{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:4px;font-size:12px;font-weight:800;color:#4f5b54}
.progress-photo .link-btn{min-height:32px;font-size:12px}
.photo-add{flex-wrap:wrap}
.photo-open{display:block;width:100%;padding:0;border:0;background:none;border-radius:12px;cursor:zoom-in}
.photo-open:focus-visible{outline:3px solid #173f35;outline-offset:2px}
.photo-viewer{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:rgba(10,16,13,.92)}
.photo-viewer img{max-width:100%;max-height:calc(100vh - 110px);object-fit:contain;border-radius:10px;background:#e9eee6}
/* The photo and its bar in one frame as wide as the photo: the bar never sticks out of it. */
.photo-viewer-frame{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;max-width:100%;min-width:min(100%,280px)}
.photo-viewer-frame img{align-self:center}
.photo-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:auto;color:#fff;font-weight:800}
.signup-goal{margin-top:4px;overflow-wrap:anywhere}

/* A line of the app in a thread («Ahora te lleva …») */
.bubble.system{align-self:center;max-width:92%;background:#fff8e6;color:#3d3313;border:1px dashed #c9b37a;text-align:center}
.bubble.system small{color:#5c4f26}

/* Sign-up link, requests and codes */
.signup-link{margin:10px 0}
.signup-link .code{display:block;font-size:13px;letter-spacing:0;overflow-wrap:anywhere}
.request-row{padding:14px 0;border-bottom:1px solid #e4e8e2}
.request-row:last-child{border-bottom:0}
.request-row .row{margin-top:10px;flex-wrap:wrap}
.request-row .muted.small{margin-top:2px}

/* Equipo */
.trainer-row .client-meta{margin:14px 0 10px}
.trainer-row h3{overflow-wrap:anywhere}
.t-panel:empty{display:none}
.t-panel{margin-top:10px}
.disable-form strong{display:block;margin-bottom:4px}
.disable-form .muted{color:#3f4b44}
.billing-off .notice{margin-bottom:6px}

/* Inicio and Perfil of an online socio */
.home-checkin .btn,.home-messages .btn{margin-top:4px}
.trainer-card .btn{width:auto}

/* ==========================================================================
   Full width on every screen (03/12/2026): no phone floating in the middle.
   jhon.css keeps a 480 px column (socio) and a 1180 px box (panel); everything here overrides that.
   Each screen is named on .shell by its view (data-screen="home", "workout", "clientDetail"… see shell() in app.js).
   Socio: phone as before (< 700) · tablet 700–1023, full width with the bar at the bottom · computer ≥ 1024, the menu
   goes up into a header that stays. Panel: side bar fixed at full height and header across from 800 px.
   Long reading (forms, the session with its sets, texts, a conversation) keeps a reading width inside a page that
   does use the screen (backgrounds, hero and grids from edge to edge).
   ========================================================================== */

/* ---------- tablet and up: both areas fill the window ---------- */
@media(min-width:700px){
  body{padding:0}
  .shell{max-width:none;min-height:100vh;min-height:100dvh;border-radius:0;box-shadow:none}
  .shell:not(.admin-shell){--pad:32px;padding:24px var(--pad) 104px}
  .shell:not(.admin-shell) .hero{margin:20px calc(-1 * var(--pad)) 16px;padding:48px var(--pad) 32px;min-height:330px}
  .shell:not(.admin-shell) .hero h1{max-width:620px}
  .shell:not(.admin-shell) .hero p{max-width:600px}
  .shell:not(.admin-shell) .day-chips{margin-left:calc(-1 * var(--pad));margin-right:calc(-1 * var(--pad));padding-left:var(--pad);padding-right:var(--pad)}
  .shell>.bottom{left:0;right:0;bottom:0;transform:none;width:auto;border-radius:0;justify-content:center}
  .shell:not(.admin-shell)>.bottom .nav{max-width:180px}
  .fab,.admin-shell .fab{right:24px}
  .rest-timer{bottom:calc(84px + env(safe-area-inset-bottom))}
  .save-bar{width:min(520px,calc(100% - 48px))}

  /* Socio, screens of cards: a grid from edge to edge (2 columns on a tablet, 3–4 on a computer). */
  .shell:not(.admin-shell):is([data-screen=home],[data-screen=progress],[data-screen=profile],[data-screen=checkinHistory]) .page-content{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px 18px;align-items:stretch}
  .shell:not(.admin-shell):is([data-screen=home],[data-screen=progress],[data-screen=profile],[data-screen=checkinHistory]) .page-content>*{grid-column:1/-1;margin-top:0;margin-bottom:0}
  .shell:not(.admin-shell):is([data-screen=home],[data-screen=progress],[data-screen=profile],[data-screen=checkinHistory]) .page-content>:is(.card,.list-button,.stat,.routine-notes,.admin-grid){grid-column:auto}
  .shell:not(.admin-shell) .page-content>.hero{margin-top:20px;margin-bottom:4px}
  .shell:not(.admin-shell) .page-content>.list-button>.card{height:100%;margin:0}
  .shell:not(.admin-shell) .page-content>.stat{display:flex;flex-direction:column;justify-content:center}
  .shell:not(.admin-shell) .page-content>.routine-notes{align-self:start}
  .shell:not(.admin-shell) .page-content>.section-title{margin-top:10px}
  .shell:not(.admin-shell) #online-cards{display:contents}
  .shell:not(.admin-shell) #online-cards>*{margin:0}
  .shell:not(.admin-shell):is([data-screen=progress],[data-screen=profile],[data-screen=checkinHistory]) .page-content{align-items:start}
  .shell:not(.admin-shell) .page-content>.list-button{padding:0}
  .shell:not(.admin-shell) .page-content>.back-link{justify-self:start}
  .shell:not(.admin-shell) .page-content>.btn{justify-self:center;width:100%;max-width:480px}
  /* Progreso: the history goes across, its sessions side by side. */
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.card:last-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));column-gap:32px}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.card:last-child>:not(.day){grid-column:1/-1}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.card:last-child>.day:last-child{border-bottom:1px solid #e4e8e2}
  /* Screens to read: a button on its own is a block, so it centres with the rest. */
  .shell:not(.admin-shell) .page-content>button{display:block}

  /* Socio, screens to read or fill in: a reading width, centred under a hero that goes from edge to edge. */
  .shell:is([data-screen=welcome],[data-screen=login],[data-screen=recover],[data-screen=signup],[data-screen=signupStatus],[data-screen=feedback],[data-screen=done],[data-screen=checkin],[data-screen=messages],[data-screen=privacy]):not(.admin-shell) .page-content>:not(.hero){max-width:720px;margin-left:auto;margin-right:auto}
  .shell:is([data-screen=welcome],[data-screen=login],[data-screen=recover],[data-screen=signup],[data-screen=signupStatus],[data-screen=feedback],[data-screen=done],[data-screen=checkin],[data-screen=privacy]):not(.admin-shell) .page-content>.hero{padding-left:calc(var(--pad) + max(0px, (100% - 720px) / 2));padding-right:calc(var(--pad) + max(0px, (100% - 720px) / 2))}
  .shell[data-screen=messages]:not(.admin-shell) .page-content>*{max-width:880px}

  /* The session: each exercise is its own card, side by side when they fit (never a row of sets 1,900 px long). */
  .shell[data-screen=workout] .page-content>.routine-notes,.shell[data-screen=workout] .page-content>.notice{max-width:880px}
  .shell[data-screen=workout] .page-content>.card:has(>.exercise){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:18px;align-items:start;padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  .shell[data-screen=workout] .page-content>.card>.exercise{min-width:0;margin:0;padding:20px;border:1px solid rgba(23,63,53,.08);border-radius:26px 18px;background:#fffffff0;box-shadow:var(--shadow)}
  .shell[data-screen=workout] .page-content>.card>.circuit-card{border-color:#d9e7cf;background:linear-gradient(160deg,#f6fbef,#eef6e4)}
  .shell[data-screen=workout] .page-content>.card>.exercise .sets{max-width:520px}
  .shell[data-screen=workout] .page-content>#finish{display:block;max-width:480px;margin:18px auto 0}
}

/* ---------- socio on a computer: the menu in the header, which stays at the top ---------- */
@media(min-width:1024px){
  .shell:not(.admin-shell){--pad:clamp(32px,4vw,72px);overflow:hidden;overflow:clip;padding-top:0;padding-bottom:64px}
  .shell:not(.admin-shell)>.app-header{position:sticky;top:0;z-index:30;height:76px;margin:0 calc(-1 * var(--pad));padding:0 var(--pad);background:#fbf9f1eb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid #e1e7dd}
  .shell:not(.admin-shell)>.bottom{position:fixed;z-index:31;top:0;bottom:auto;left:50%;right:auto;transform:translateX(-50%);height:76px;width:auto;max-width:calc(100% - 2 * var(--pad) - 280px);gap:4px;align-items:center;padding:0 4px;background:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none}
  .shell:not(.admin-shell)>.bottom .nav{flex:0 0 auto;max-width:none;min-height:44px;padding:10px 18px;border-radius:99px;font-size:14px;color:#3f4b44}
  .shell:not(.admin-shell)>.bottom .nav:hover:not(.active){background:#173f3510;color:var(--green)}
  .shell:not(.admin-shell)>.bottom .nav.active{background:var(--green);color:#fff}
  .shell:not(.admin-shell)>.bottom .nav:focus-visible{outline-offset:2px}
  .shell:not(.admin-shell)>.nature-leaves{top:96px}
  .shell:not(.admin-shell) .hero{min-height:380px;padding-top:64px;padding-bottom:44px;border-radius:0 0 56px 24px}
  .shell:not(.admin-shell) .page-content>.hero{margin-top:0}
  .shell:not(.admin-shell) .hero h1{max-width:760px;font-size:54px}
  .shell:not(.admin-shell) .hero p{max-width:640px;font-size:17px}
  .shell:not(.admin-shell) .page-content>.offline-pill{justify-self:start;margin-top:16px}
  .shell:not(.admin-shell):is([data-screen=home],[data-screen=progress],[data-screen=profile],[data-screen=checkinHistory]) .page-content{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px 22px}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.chart-card-lite{grid-column:span 2}
  html:has(.shell:not(.admin-shell)>.bottom){scroll-padding-top:92px}
  .rest-timer{bottom:calc(24px + env(safe-area-inset-bottom))}
  .toast-wrap{top:88px}
  .shell[data-screen=messages]:not(.admin-shell) .thread{max-height:max(320px,calc(100vh - 420px))}
}

/* ---------- panel from 800 px: side bar at full height, header across, content fluid ---------- */
@media(min-width:800px){
  .admin-shell{max-width:none;min-height:100vh;min-height:100dvh;margin:0;border-radius:0;box-shadow:none;overflow:hidden;overflow:clip}
  .admin-shell .app-header{position:sticky;top:0;z-index:30}
  .admin-shell>.admin-nav{position:sticky;top:76px;align-self:start;justify-content:flex-start;height:calc(100vh - 76px);height:calc(100dvh - 76px);min-height:0;overflow-y:auto}
  /* The side bar's colour runs to the bottom of the page even where the bar itself has scrolled with it. */
  .admin-shell:has(>.admin-nav){background:linear-gradient(90deg,#17241e 210px,#edf0eb 210px)}
  .admin-shell .page-content>.field.search{max-width:640px}
  .admin-shell .page-content{padding:4px clamp(24px,2.6vw,48px) 72px}
  .admin-shell .fab{right:32px;bottom:32px}
  body[data-area=admin] .toast-wrap{top:88px;left:calc(50% + 105px)}
  /* Without the menu (entrar, loading): the content takes the whole width, the form a reading width. */
  .admin-shell:not(:has(>.admin-nav)) .page-content{grid-column:1/-1}
  .admin-shell:is([data-screen=login],[data-screen=privacy]) .page-content>*{max-width:760px;margin-left:auto;margin-right:auto}
  .admin-shell:is([data-screen=login],[data-screen=privacy]) .page-content>.hero{margin-top:28px}
  .admin-shell #client-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}
}

/* Panel, screens of cards: everything across, and the cards side by side (2 columns from 1000 px — an iPad on its
   side —, 3–4 on a big screen). */
@media(min-width:1000px){
  .admin-shell:is([data-screen=summary],[data-screen=routines],[data-screen=feedback],[data-screen=checkins],[data-screen=team],[data-screen=invites]) .page-content{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px 18px;align-content:start;align-items:start}
  .admin-shell:is([data-screen=summary],[data-screen=routines],[data-screen=feedback],[data-screen=checkins],[data-screen=team],[data-screen=invites]) .page-content>*{grid-column:1/-1;margin-top:0;margin-bottom:0}
  .admin-shell:is([data-screen=summary],[data-screen=routines],[data-screen=feedback],[data-screen=checkins],[data-screen=team],[data-screen=invites]) .page-content>.card{grid-column:auto}
  .admin-shell .page-content>.hero{margin-top:18px}
  .admin-shell .page-content>.section-title{margin-top:12px}
  .admin-shell .page-content>:is(.btn,.segmented,.centre-filter,.trainer-link,.legal-link){justify-self:start;width:auto;min-width:min(100%,360px)}
  .admin-shell .page-content>.segmented{min-width:min(100%,460px)}
  .admin-shell[data-screen=routines] .page-content>.card,.admin-shell[data-screen=team] .page-content>.card{align-self:stretch}
  .admin-shell .work-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
  .admin-shell .work-cards .card{margin:0}
}

@media(min-width:1100px){

  /* Exercise library and the routine editor: cards in columns. */
  .admin-shell #ex-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:0 18px;align-items:start}
  .admin-shell #ex-list>:not(.ex-card){grid-column:1/-1}
  .admin-shell[data-screen=exercises] .page-content>.friendly,.admin-shell[data-screen=exercises] .ex-filter{max-width:980px}
  .admin-shell[data-screen=routineEditor] #days,.admin-shell[data-screen=routineEditor] .week-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));column-gap:18px;align-items:start}
  .admin-shell[data-screen=routineEditor] #days>:not(.day-editor),.admin-shell[data-screen=routineEditor] .week-group>:not(.day-editor){grid-column:1/-1}
  .admin-shell[data-screen=routineEditor] #days>.btn,.admin-shell[data-screen=routineEditor] .week-group>.btn{justify-self:start;width:auto;min-width:min(100%,320px)}
  .admin-shell[data-screen=routineEditor] .page-content>.btn{width:auto;min-width:320px}

  /* File of a client: metrics and charts across; the lists below, side by side. */
  .admin-shell[data-screen=clientDetail] .page-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-content:start;align-items:start}
  .admin-shell[data-screen=clientDetail] .page-content>*{grid-column:1/-1}
  .admin-shell[data-screen=clientDetail] .page-content>:is(#past-sessions,#past-sessions+#recent-feedback,#nutrition-card,.card:has(#reset-code)){grid-column:auto}
  .admin-shell[data-screen=clientDetail] .page-content>.chart-grid{margin-bottom:14px}
  .admin-shell[data-screen=clientDetail] .page-content>.trainer-link{justify-self:center}
  .admin-shell .team-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}

  /* Messages: the conversations on the left, the open one on the right. */
  .admin-shell .msg-split{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:18px;align-items:start}
  .admin-shell .msg-list{position:sticky;top:92px;max-height:calc(100vh - 110px);overflow-y:auto;overscroll-behavior:contain}
  .admin-shell .msg-list>.card{margin-top:0}
  .admin-shell .msg-split .msg-empty-pane{display:grid;place-items:center;min-height:min(60vh,520px);margin:0;text-align:center}
  .admin-shell .msg-main>.client-head{justify-content:flex-start;align-items:center;gap:28px;padding-top:4px}
  .admin-shell[data-screen=clientDetail] .chart-grid .line-chart{height:250px}
  .admin-shell .msg-main .thread{max-height:max(320px,calc(100vh - 330px))}
  .admin-shell .msg-main .bubble{max-width:min(85%,680px)}
  .admin-shell .thread-row.is-current{margin:0 -14px;padding-left:14px;padding-right:14px;background:#eef6e6;box-shadow:inset 3px 0 0 #7fbf45}
}
@media(max-width:1099px){.msg-empty-pane{display:none}}

@media(min-width:1600px){
  .admin-shell .chart-grid{grid-template-columns:1.6fr 1fr}
}

/* ---------- circuit player on a computer: bigger clock and picture, no bar behind the controls ---------- */
@media(min-width:900px) and (min-height:640px){
  .cp-inner{width:min(780px,100%);padding-left:32px;padding-right:32px}
  .cp-time{font-size:clamp(120px,15vw,210px)}
  .cp-name{font-size:clamp(26px,2.6vw,38px)}
  .cp-media img{max-height:38vh}
  .cp-col-controls{width:100%;margin:auto 0 0;padding:0 0 calc(18px + env(safe-area-inset-bottom));background:none}
  .cp-controls{max-width:620px;margin:0 auto}
  .cp-btn{min-height:76px}
}

/* ---------- photo viewer and dialogs on a big screen ---------- */
@media(min-width:1024px){
  .photo-viewer img{max-height:calc(100vh - 120px)}
  .photo-viewer-bar{width:auto}
  .modal-dialog{width:min(520px,calc(100% - 32px))}
}

/* ==========================================================================
   Full width, second pass (03/12/2026): what the visual review of every screen at 768–1920 px found.
   ========================================================================== */

/* Skip to the content (the menu comes before it), seen only when it gets the focus. */
.shell>.skip-link{position:absolute;z-index:120;top:8px;left:8px;min-height:44px;padding:10px 16px;border:0;border-radius:10px;background:#173f35;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;transform:translateY(-160%)}
.shell>.skip-link:focus{transform:none;outline:3px solid #b8d86c;outline-offset:2px}
/* The socio's avatar after the menu is for a computer only (see shell() in app.js). */
.shell>.avatar-after-nav{display:none}
/* Panel: what is only in the side bar of a computer. */
.admin-nav .nav-wide{display:none}
.admin-shell .header-actions .avatar-btn{flex:0 0 44px;border-radius:50%;font:inherit;font-weight:900}
/* Clientes: the inline invite is for a computer; on a phone the round button stays. */
.search-row{display:contents}
.invite-inline{display:none}
/* Inicio: on a phone the two zones are not there. */
.home-grid,.home-main,.home-side{display:contents}
.msg-side-links{display:none}

/* ---------- landscape phone: header, hero and bars that leave room for the screen ---------- */
@media(orientation:landscape) and (max-height:500px){
  .shell:not(.admin-shell){padding-top:6px;padding-bottom:56px}
  .shell:not(.admin-shell)>.app-header{min-height:48px}
  .shell:not(.admin-shell) .brand-logo{width:48px;height:40px}
  .shell:not(.admin-shell) .page-content>.hero{min-height:0;margin-top:6px;padding-top:16px;padding-bottom:16px}
  .shell:not(.admin-shell) .hero h1{font-size:28px;margin:4px 0 6px}
  .shell:not(.admin-shell) .hero p{font-size:14px;line-height:1.4}
  .shell:not(.admin-shell) .hero .boost{display:none}
  .shell>.bottom:not(.admin-nav){padding-top:0;padding-bottom:env(safe-area-inset-bottom)}
  .shell>.bottom:not(.admin-nav) .nav{min-height:44px;padding-top:0;padding-bottom:0}
  .rest-timer{left:auto;right:12px;transform:none;bottom:calc(52px + env(safe-area-inset-bottom));width:min(440px,calc(100% - 24px));padding:6px 8px 6px 14px;gap:4px 10px}
  .rest-time{font-size:24px}
  .rest-info{display:flex;align-items:baseline;gap:10px}
  .rest-bar{height:4px}
  .rest-timer.over{padding:10px 14px}
  .rest-timer.over .rest-time{font-size:34px}
  .shell[data-screen=workout] .video{display:block;width:auto;max-width:100%;height:min(70vh,320px);margin-left:auto;margin-right:auto}
  .save-bar{bottom:calc(52px + env(safe-area-inset-bottom))}
}

/* ---------- tablet and up ---------- */
@media(min-width:700px){
  /* Inicio: the session and the week on the left; check-in, messages, indications and «Estamos contigo» on the right. */
  .shell[data-screen=home]:not(.admin-shell) .page-content>.home-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}
  .shell[data-screen=home] .home-main,.shell[data-screen=home] .home-side{display:flex;flex-direction:column;gap:16px;min-width:0}
  .shell[data-screen=home] .home-main>*,.shell[data-screen=home] .home-side>*,.shell[data-screen=home] #online-cards>*{margin:0}
  .shell[data-screen=home] .home-main>.stat{order:1}
  .shell[data-screen=home] .home-main>.list-button{padding:0}
  .shell[data-screen=home] .home-main>.list-button>.card{margin:0}

  /* Progreso on a tablet: the chart under the two figures, across. */
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.chart-card-lite{grid-column:1/-1}

  /* Perfil: «Cerrar sesión» and «Borrar mi cuenta» in one band at the end, across. */
  .shell[data-screen=profile] .page-content>.account-band{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 24px;margin-top:8px;padding-top:20px;border-top:1px solid #dfe5df}
  .shell[data-screen=profile] .account-band>#logout{flex:0 0 auto;width:auto;min-width:220px;margin:0}
  .shell[data-screen=profile] .account-band>.danger-zone{flex:1 1 360px;max-width:560px;margin:0 0 0 auto}
  .shell[data-screen=profile] .account-band>.legal-link{flex:1 0 100%}

  /* Tus revisiones: the way back inside the hero, the weeks in two columns that need no strict order. */
  .shell[data-screen=checkinHistory]:not(.admin-shell) .page-content>.back-link{position:absolute;z-index:2;top:30px;left:0;margin:0;color:#fff;text-shadow:0 1px 8px #0008;--focus:#b8d86c}
  .shell[data-screen=checkinHistory]:not(.admin-shell) .page-content>.hero{padding-top:84px}
  .shell[data-screen=checkinHistory]:not(.admin-shell) .page-content>.checkin-list{grid-column:1/-1;columns:2 300px;column-gap:18px}
  .shell[data-screen=checkinHistory] .checkin-list>.card{display:inline-block;width:100%;margin:0 0 16px;break-inside:avoid}

  /* Text to read: lines of about 65 characters inside the reading column. */
  .shell:is([data-screen=welcome],[data-screen=login],[data-screen=recover],[data-screen=signup],[data-screen=signupStatus],[data-screen=privacy],[data-screen=done],[data-screen=checkin]):not(.admin-shell) .page-content>:not(.hero) :is(p,li){max-width:65ch}

  /* The session: the hero is smaller, the sets matter now. */
  .shell[data-screen=workout]:not(.admin-shell) .page-content>.hero{min-height:200px;padding-top:28px}
}
@media(min-width:700px) and (max-width:1023px){
  /* The session on a tablet: the picture on the left, the sets on the right. */
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card):has(>:is(.video,.ex-photo,.ex-media)){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;align-items:start}
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card):has(>:is(.video,.ex-photo,.ex-media))>*{grid-column:1/-1}
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card)>:is(.video,.ex-photo,.ex-media){grid-column:1;grid-row:2/span 3;margin-top:4px}
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card):has(>:is(.video,.ex-photo,.ex-media))>.sets{grid-column:2;grid-row:2;max-width:none}
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card):has(>:is(.video,.ex-photo,.ex-media))>.add-set{grid-column:2;grid-row:3}
  .shell[data-screen=workout] .page-content>.card>.exercise:not(.circuit-card):has(>:is(.video,.ex-photo,.ex-media))>.last-hint{grid-column:2;grid-row:4}
  .shell[data-screen=workout] .page-content>.card>.exercise .sets{max-width:640px}
}

/* ---------- panel from 700 px: clients two by two even before the side bar ---------- */
@media(min-width:700px){
  .admin-shell #client-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:16px;align-items:start}
  .admin-shell #client-list>.card{margin:0}
}

/* ---------- panel from 800 px ---------- */
@media(min-width:800px){
  /* The organic ring of jhon.css belonged to the 480 px column; the hero's ring stays inside the hero. */
  .admin-shell:before{display:none}
  .admin-shell .page-content .hero{position:relative;overflow:hidden}
  .admin-shell .hero:after{right:40px}

  /* Side bar: Ejercicios, Avisos and, at the bottom, Cerrar sesión. Ejercicios lights itself, not Rutinas. */
  .admin-shell .admin-nav .nav-wide{display:flex}
  .admin-shell .admin-nav .nav.parent-active:not(:hover){background:none;color:#b8c5be}
  .admin-shell .admin-nav .nav-logout{margin-top:auto;border:1px solid #31443a;background:none;color:#b8c5be;cursor:pointer;font:inherit;font-size:13px;font-weight:800}
  .admin-shell .admin-nav .nav-logout:hover{background:#ffffff10;color:#fff}

  /* Clientes: the invite beside the search, not floating over the cards. */
  .admin-shell[data-screen=clients] .fab{display:none}
  .admin-shell .page-content>.search-row{display:flex;align-items:center;gap:14px;margin:14px 0}
  .admin-shell .search-row>.field.search{flex:1 1 auto;max-width:640px;margin:0}
  .admin-shell .search-row>.invite-inline{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:48px;padding:0 20px}

  /* Avisos: a column you can read, with the time beside the title. */
  .admin-shell .notification-list{max-width:900px}
  .admin-shell .notification-item .top{justify-content:flex-start;align-items:baseline;gap:12px}
  .admin-shell .notification-item .top>strong{flex:0 1 auto}
  .admin-shell .notification-item time{font-size:12px;color:#66706a}
}

/* ---------- panel from 1000 px ---------- */
@media(min-width:1000px){
  /* Resumen: the priorities stacked on the left, the recent activity beside them. */
  .admin-shell[data-screen=summary] .page-content{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);grid-auto-flow:row dense}
  .admin-shell[data-screen=summary] .page-content>.card{grid-column:1}
  .admin-shell[data-screen=summary] .page-content>.card:last-child{grid-column:2;grid-row:span 3}

  /* Rutinas: the library is not one more routine, it is a band at the end. */
  .admin-shell[data-screen=routines] .page-content>.library-card{grid-column:1/-1;align-self:start;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:10px}
  .admin-shell[data-screen=routines] .library-card>h3{margin:0}
  .admin-shell[data-screen=routines] .library-card>p{flex:1 1 220px;margin:0}
  .admin-shell[data-screen=routines] .library-card>.btn{width:auto;min-width:240px}

  /* Feedback and Revisiones: the filters in one row, «Marcar todo» at its end. */
  .admin-shell .page-content>.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
  .admin-shell .filter-row>*{margin:0}
  .admin-shell .filter-row>.segmented{flex:0 1 260px;min-width:min(100%,220px)}
  .admin-shell .filter-row>.btn{width:auto;margin-left:auto}

  /* Invitaciones: the codes on the left; the link, ChatGPT and the account on the right. */
  .admin-shell .page-content>.invite-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-items:start}
  .admin-shell .invite-col{min-width:0}
  .admin-shell .invite-col>.card:first-child{margin-top:0}
  .admin-shell .invite-col>.section-title:first-child{margin-top:0}
  .admin-shell .invite-col>.btn{width:auto;min-width:min(100%,320px)}
  .admin-shell .invite-col>.legal-link{display:inline-block;margin-left:16px}

  /* Revisiones of a client: the weight on the left (stays in sight), the weeks in date order on the right. */
  .admin-shell[data-screen=clientCheckins] .client-head{justify-content:flex-start;gap:28px}
  .admin-shell[data-screen=clientCheckins] .page-content:has(>.chart-card){display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);column-gap:18px;align-items:start}
  .admin-shell[data-screen=clientCheckins] .page-content>*{grid-column:1/-1}
  .admin-shell[data-screen=clientCheckins] .page-content>.chart-card{grid-column:1;position:sticky;top:92px;margin-top:16px}
  .admin-shell[data-screen=clientCheckins] .page-content>.chart-card+.checkin-weeks{grid-column:2}
  .admin-shell .checkin-weeks{max-width:900px}
  .admin-shell .checkin-weeks>.card:first-child{margin-top:16px}
}

/* ---------- panel from 1100 px: file of a client, editor, library, messages ---------- */
@media(min-width:1100px){
  /* File: the sessions and «Acceso a la app» on the left, a long «Feedback reciente» on the right, each column its own height. */
  .admin-shell[data-screen=clientDetail] .page-content>.detail-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-items:start}
  .admin-shell .detail-col{min-width:0}
  .admin-shell .detail-col>.card:first-child{margin-top:0}
  .admin-shell[data-screen=clientDetail] .chart-grid{align-items:start}
  .admin-shell .team-cards{grid-template-columns:repeat(2,minmax(0,1fr))}

  /* Editor: two days side by side from here, three on a big screen; no empty column kept for a day that is not there. */
  .admin-shell[data-screen=routineEditor] #days,.admin-shell[data-screen=routineEditor] .week-group{grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr))}
  .admin-shell[data-screen=routineEditor] .page-content>.card .field,.admin-shell[data-screen=routineEditor] .page-content>.card .mode-field{max-width:760px}
  .admin-shell #assign-form{display:grid;grid-template-columns:minmax(0,520px) 170px;column-gap:14px;align-items:end}
  .admin-shell #assign-form>*{grid-column:1/-1}
  .admin-shell #assign-form>.field:has(#ar-client){grid-column:1}
  .admin-shell #assign-form>.field:is(:has(#ar-goal),:has(#ar-week)){grid-column:2}
  .admin-shell #assign-form>.btn{justify-self:start;width:auto;min-width:280px}
  .admin-shell[data-screen=routineEditor] .day-editor{container-type:inline-size}

  .admin-shell[data-screen=exercises] .page-content>.friendly,.admin-shell[data-screen=exercises] .ex-filter{max-width:none}

  /* Messages: the open row coloured edge to edge; the conversation a width the eyes can follow. */
  .admin-shell .thread-row.is-current{width:calc(100% + 28px)}
  .admin-shell .msg-split .msg-empty-pane{min-height:220px;align-content:center;gap:12px}
  .admin-shell .msg-split .msg-empty-pane .btn{width:auto}
  .admin-shell .msg-main{max-width:860px}
  .admin-shell .msg-main>.client-head .file-link{order:2;margin-left:auto}
}
/* A day of the editor that is wide: sets, reps and rest beside the note, in one row. */
@container (min-width:600px){
  .item-editor:not(.circuit-editor){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:10px;align-items:end}
  .item-editor:not(.circuit-editor)>.item-top{grid-column:1/-1}
  .item-editor:not(.circuit-editor)>.mini.wide{margin-top:10px}
}
@media(min-width:1240px){
  .admin-shell .team-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
}
/* Library: the list on the left, «Nuevo ejercicio» in a column that stays on the right. */
@media(min-width:1280px){
  .admin-shell[data-screen=exercises] .page-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px);column-gap:24px;align-items:start}
  .admin-shell[data-screen=exercises] .page-content>*{grid-column:1/-1}
  .admin-shell[data-screen=exercises] .page-content>.friendly:has(#ex-new){grid-column:2;grid-row:3/span 4;position:sticky;top:92px;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;margin-top:0}
  .admin-shell[data-screen=exercises] .page-content>:is(.ex-filter,.section-title,#ex-list,.archived-block){grid-column:1}
  .admin-shell[data-screen=exercises] .page-content>.ex-filter{margin-top:0}
  .admin-shell[data-screen=exercises] .page-content>.back-link{justify-self:start}
  .admin-shell[data-screen=exercises] #ex-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
}

/* ---------- exercise picker on a computer: in a tall window every filter is in sight (a lower one keeps the
   scrolling row: the list needs the height) ---------- */
@media(min-width:1024px) and (min-height:900px){
  .picker .tag-scroll{flex-wrap:wrap;overflow:visible;margin:0;padding:4px 0 8px}
}

/* ---------- socio on a computer ---------- */
@media(min-width:1024px){
  /* The avatar after the menu, at the right of the header. */
  .shell:not(.admin-shell):has(>.avatar-after-nav)>.app-header>.avatar-btn{display:none}
  .shell:not(.admin-shell)>.avatar-after-nav{display:grid;position:fixed;z-index:32;top:16px;right:var(--pad);margin:0}

  .shell[data-screen=home]:not(.admin-shell) .page-content>.home-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px}
  .shell[data-screen=home] .home-main>.list-button>.card{display:flex;flex-direction:column;justify-content:center;min-height:210px;padding:28px}
  .shell[data-screen=home] .home-main>.list-button h2{font-size:32px}

  /* The session: two columns at most, read in a Z; the circuit and the indications across. */
  .shell[data-screen=workout] .page-content>.card:has(>.exercise){grid-template-columns:repeat(2,minmax(0,1fr))}
  .shell[data-screen=workout] .page-content>.card>.circuit-card{grid-column:1/-1}
  .shell[data-screen=workout] .page-content>.card>.circuit-card .cstep-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-items:start}
  .shell[data-screen=workout] .page-content>:is(.routine-notes,.notice){max-width:none}

  /* Progreso: the two figures stacked, the chart beside them; the history in two columns at most. */
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.admin-grid{grid-column:1;grid-template-columns:1fr;align-self:stretch}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.chart-card-lite{grid-column:2/-1}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.weight-card{grid-column:1/-1}
  .shell:not(.admin-shell)[data-screen=progress] .page-content>.card:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}

  /* Perfil: three columns at most. */
  .shell:not(.admin-shell)[data-screen=profile] .page-content{grid-template-columns:repeat(3,minmax(0,1fr))}

  /* Tus revisiones: the weight on the left, the weeks beside it. */
  .shell:not(.admin-shell)[data-screen=checkinHistory] .page-content:has(>.chart-card-lite){grid-template-columns:minmax(300px,400px) minmax(0,1fr)}
  .shell:not(.admin-shell)[data-screen=checkinHistory] .page-content>.chart-card-lite{grid-column:1;position:sticky;top:96px}
  .shell:not(.admin-shell)[data-screen=checkinHistory] .page-content>.chart-card-lite+.checkin-list{grid-column:2}
  .shell[data-screen=checkinHistory]:not(.admin-shell) .page-content>.back-link{top:20px}

  /* Mensajes of an online client: the trainer on the left, the conversation from top to bottom on the right. */
  .shell[data-screen=messages]:not(.admin-shell) .page-content{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:24px;align-items:start;padding-top:24px}
  .shell[data-screen=messages]:not(.admin-shell) .page-content>:not(.hero){max-width:none;margin:0}
  .shell[data-screen=messages]:not(.admin-shell) .page-content>.client-head{display:block;position:sticky;top:100px;padding:22px;border:1px solid #e1e7dd;border-radius:26px 18px;background:#fffffff0;box-shadow:var(--shadow)}
  .shell[data-screen=messages]:not(.admin-shell) .msg-side-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:14px}
  .shell[data-screen=messages]:not(.admin-shell) .msg-side-links .btn{width:auto}
  .shell[data-screen=messages]:not(.admin-shell) .page-content>.notice{grid-column:1/-1}
  .shell[data-screen=messages]:not(.admin-shell) .thread{height:max(320px,calc(100vh - 290px));height:max(320px,calc(100dvh - 290px));max-height:none}
  .shell[data-screen=messages]:not(.admin-shell) .bubble{max-width:min(85%,60ch)}
}

/* ---------- socio on a big screen: the page still goes edge to edge, its content stops at 1,400 px ---------- */
@media(min-width:1600px){
  .shell:not(.admin-shell){--side:max(0px,calc((100vw - 2 * var(--pad) - 1400px) / 2))}
  .shell:not(.admin-shell) .page-content{padding-left:var(--side);padding-right:var(--side)}
  .shell:not(.admin-shell) .page-content>.hero{margin-left:calc(-1 * (var(--pad) + var(--side)));margin-right:calc(-1 * (var(--pad) + var(--side)));padding-left:calc(var(--pad) + var(--side));padding-right:calc(var(--pad) + var(--side))}
  .shell:is([data-screen=welcome],[data-screen=login],[data-screen=recover],[data-screen=signup],[data-screen=signupStatus],[data-screen=feedback],[data-screen=done],[data-screen=checkin],[data-screen=privacy]):not(.admin-shell) .page-content>.hero{padding-left:calc(var(--pad) + var(--side) + max(0px, (100% - 720px) / 2));padding-right:calc(var(--pad) + var(--side) + max(0px, (100% - 720px) / 2))}
  .shell:not(.admin-shell) .day-chips{margin-left:calc(-1 * (var(--pad) + var(--side)));margin-right:calc(-1 * (var(--pad) + var(--side)));padding-left:calc(var(--pad) + var(--side));padding-right:calc(var(--pad) + var(--side))}
  .shell[data-screen=checkinHistory]:not(.admin-shell) .page-content>.back-link{left:var(--side)}
  .shell:not(.admin-shell)>.app-header{padding-left:calc(var(--pad) + var(--side));padding-right:calc(var(--pad) + var(--side))}
  .shell:not(.admin-shell)>.avatar-after-nav{right:calc(var(--pad) + var(--side))}
}

/* Landscape phone, after the tablet rules it would otherwise lose to: the session's hero as small as the rest. */
@media(orientation:landscape) and (max-height:500px){
  .shell[data-screen=workout]:not(.admin-shell) .page-content>.hero{min-height:0;padding-top:14px;padding-bottom:12px}
}

/* ---------- old address (jpons360.kukuri.io): the notice of the move, above everything, in the page's flow ---------- */
.moved-notice{position:relative;z-index:50;display:flex;flex-direction:column;gap:4px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));background:#173d2c;color:#fff;font-size:13px;line-height:1.4}
.moved-notice .moved-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.moved-notice strong{font-size:14px}
.moved-notice .moved-warn{color:#ffe08a;font-weight:700}
.moved-notice .moved-link{align-self:flex-start;flex:0 0 auto;margin-top:4px;padding:8px 14px;border-radius:99px;background:#8bd450;color:#10251a;font-weight:800;text-decoration:none;white-space:nowrap}
.moved-notice .moved-link:focus-visible{outline:2px solid #ffe08a;outline-offset:2px}
@media(min-width:700px){
  .moved-notice{flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:12px clamp(16px,4vw,72px);padding-top:calc(12px + env(safe-area-inset-top))}
  .moved-notice .moved-text{max-width:900px}
  .moved-notice .moved-link{align-self:center;margin-top:0}
}
/* The socio's menu and avatar are fixed at the top on a computer: while the notice shows, they go just under it. */
@media(min-width:1024px){
  .shell:not(.admin-shell)>.bottom{top:var(--moved-h,0px)}
  .shell:not(.admin-shell)>.avatar-after-nav{top:calc(16px + var(--moved-h,0px))}
}
