/* v167a (Nick Nov 23): Everfit look for coach Training: a clean calendar and stacked popups. */
/* calendar */
.pl-host{padding:12px 14px}
.pl-top{margin-bottom:12px}
.pl-nav .pl-today{border-radius:999px;font-size:12px;padding:4px 12px}
.pl-range{font-size:15px}
.pl-top-more{margin-left:4px;border:1px solid var(--line);border-radius:999px;width:30px;height:30px}
.pl-switch a{border-radius:999px}
.pl-grid{gap:8px}
.pl-cell{background:#f1f3f7;border-radius:8px;padding:8px}
.pl-cell.out{opacity:.55}
.pl-cell.today .pl-dn span{background:#1d4ed8}
.pl-month .pl-cell{min-height:128px}
.pl-w5 .pl-cell,.pl-w6 .pl-cell{min-height:128px}
.pl-wo{border:1px solid #e3e7ee;border-radius:6px;box-shadow:0 1px 2px #0000000d;padding:6px 6px 4px}
.pl-wo:hover{border-color:#c7d2fe}
.pl-wo-title{font-size:10.5px}
.pl-wo-more{margin-left:auto;border:0;background:none;color:var(--muted);width:20px;height:20px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;opacity:.35;flex:none}
.pl-wo:hover .pl-wo-more,.pl-wo-more:focus{opacity:1}
.pl-wo-more:hover{background:#eef2ff;color:#1d4ed8}
.pl-wo.pl-sel{outline:2px solid #1d4ed8;outline-offset:1px}
.pl-missed{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--red,#dc2626);color:#fff;flex:none}
.pl-it{border-color:#eef0f4;background:#fff}
.pl-it-main small{font-size:10.5px}
.pl-more{font-size:11px}
.pl-help{display:none}
.cal-selbar{position:sticky;bottom:10px}
/* phone / old grid kept clean */
.cal .chip.bk{display:none}
.cal-head .pl-top-more{margin-left:6px}
/* the popup stack */
body.ev-open{overflow:hidden}
.ev-layer .ev-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.ev-layer .ev-body{overflow:auto;padding:18px 20px;min-height:0;flex:1;display:flex;flex-direction:column;gap:10px}
.ev-x{position:absolute;top:-12px;right:-12px;z-index:3;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:#0f172a;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0004}
.ev-layer .pl-float-card{overflow:visible}
.ev-layer .ev-card > .ev-body{border-radius:inherit}
.ev-h{margin:0;font-size:17px;font-weight:800}
.ev-lab{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:10px 0 4px}
.ev-tabs{display:flex;gap:16px}
.ev-tabs span{font-weight:700;font-size:13px;color:var(--muted);padding-bottom:4px}
.ev-tabs span.on{color:#1d4ed8;border-bottom:2px solid #1d4ed8}
.ev-small .pl-float-card{width:min(560px,100%);height:min(560px,calc(100vh - 80px))}
.ev-fields-pop .pl-float-card{height:auto}
.ev-mid .pl-float-card{width:min(860px,100%);height:min(620px,calc(100vh - 80px))}
.ev-video-pop .pl-float-card{width:min(720px,100%);background:#fff}
.ev-video-pop .ev-body{padding:8px}
.ev-player iframe,.ev-player video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px;background:#000}
.ev-pfoot{justify-content:flex-end;margin-top:6px}
/* editor */
.ev-editor .pl-float-card{width:min(1360px,100%);height:calc(100vh - 56px);max-height:none}
.ev-editor .ev-body{padding:0}
.ev-ed{display:grid;grid-template-columns:300px minmax(0,1fr) 260px;grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0}
.ev-ed.ev-locked{grid-template-columns:minmax(0,1fr) 260px}
.ev-lib{border-right:1px solid var(--line);padding:14px;display:flex;flex-direction:column;gap:8px;min-height:0}
.ev-lib-q{margin:0}
.ev-lib-list{overflow:auto;display:flex;flex-direction:column;gap:6px;min-height:0;flex:1}
.ev-lib-row{display:flex;align-items:center;gap:8px;border:1px solid #eef0f4;border-radius:8px;padding:4px;cursor:grab;background:#fff}
.ev-lib-row:hover{border-color:#c7d2fe}
.ev-lib-row .lib-thumb{width:56px;height:40px;flex:none;border-radius:6px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7}
.ev-lib-row .lib-thumb img,.ev-lib-row .lib-thumb video{width:100%;height:100%;object-fit:cover}
.ev-lib-row b{font-size:12.5px;font-weight:700;flex:1;min-width:0;line-height:1.25}
.ev-lib-add{flex:none}
.ev-main{overflow:auto;padding:18px 22px;min-height:0;background:#fff}
.ev-head{display:flex;align-items:center;gap:8px}
.ev-title{font-size:18px;font-weight:800;border:0;border-bottom:1px solid transparent;padding:4px 0;margin:0;background:transparent;text-transform:uppercase;flex:1;min-width:0}
.ev-title:not([readonly]):hover,.ev-title:focus{border-bottom-color:var(--line)}
.ev-when{margin-bottom:4px}
#evNotes{margin:0;min-height:44px}
.ev-secs{display:flex;flex-direction:column;gap:14px;margin-top:12px}
.ev-sec{display:flex;flex-direction:column;gap:10px;border-left:3px solid transparent;padding-left:8px}
.ev-sec.linked{border-left-color:var(--green,#16a34a)}
.ev-sec-head{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.ev-it{border:1px solid #e3e7ee;border-radius:10px;padding:10px 12px;background:#fff;display:flex;flex-direction:column;gap:8px;transition:box-shadow .2s}
.ev-it.ev-flash{box-shadow:0 0 0 3px #93c5fd}
.ev-it-head{display:flex;align-items:center;gap:10px}
.ev-it-head .lib-thumb{width:44px;height:34px;border-radius:6px;overflow:hidden;flex:none;display:inline-flex;align-items:center;justify-content:center;background:#eef2f7}
.ev-it-head .lib-thumb img,.ev-it-head .lib-thumb video{width:100%;height:100%;object-fit:cover}
.ev-it-name{flex:1;min-width:0;font-size:14px}
.ev-sets{width:100%;border-collapse:collapse}
.ev-sets th{font-size:10.5px;font-weight:700;color:var(--muted);text-align:center;padding:2px 4px}
.ev-sets td{padding:2px 4px;text-align:center}
.ev-sets input{margin:0;width:100%;text-align:center;padding:5px 6px;border:1px solid transparent;background:#f7f8fa;border-radius:6px}
.ev-sets input:not([readonly]):focus{border-color:#1d4ed8;background:#fff}
.ev-setn{color:var(--muted);width:40px}
.ev-setx{width:28px}
.ev-del{border:0;background:none;color:var(--muted);cursor:pointer;font-size:16px}
.ev-it-foot{display:flex;align-items:center;gap:10px;justify-content:space-between}
.ev-rest{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin:0}
.ev-rest input{width:70px;margin:0}
.ev-note{margin:0;font-size:12.5px;background:#f7f8fa;border:1px solid transparent}
.ev-arr{border-left:1px solid var(--line);padding:14px;overflow:auto;background:#fafbfc;min-height:0}
.ev-arr h4{margin:0 0 10px;font-size:14px}
.ev-arr-sec{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;padding:4px;border-radius:8px}
.ev-arr-sh{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.ev-arr-it{border:1px solid #e3e7ee;background:#fff;border-radius:6px;padding:7px 8px;text-align:left;font:inherit;font-size:12.5px;cursor:pointer}
.ev-arr-it[draggable="true"]{cursor:grab}
.ev-arr-it:hover{border-color:#c7d2fe}
.ev-foot{grid-column:1/-1;border-top:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:10px 16px;background:#fff}
.ev-foot .small{margin-right:auto}
.ev-lockwhy{margin-right:auto}
@media(max-width:1199px){.ev-ed{grid-template-columns:240px minmax(0,1fr) 210px}}
@media(max-width:999px){.ev-ed{grid-template-columns:minmax(0,1fr) 200px}.ev-lib{display:none}}
/* ⋯ menu */
.ev-menu{position:fixed;z-index:260;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #0003;padding:6px;min-width:200px;display:flex;flex-direction:column}
.ev-mi{display:flex;align-items:center;gap:10px;border:0;background:none;padding:8px 10px;border-radius:6px;font:inherit;font-size:13px;text-align:left;cursor:pointer;color:var(--text,#0f172a)}
.ev-mi:hover,.ev-mi:focus{background:#eef2ff}
.ev-mi.danger{color:var(--red,#dc2626)}
/* history */
.ev-pop-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ev-hist{display:flex;flex-direction:column;gap:12px;overflow:auto}
.ev-hs{border:1px solid #e3e7ee;border-radius:8px;overflow:hidden}
.ev-hs-head{display:flex;gap:12px;align-items:center;background:#f5f7fb;padding:8px 12px;font-size:12.5px}
.ev-hs-top{margin-left:auto}
.ev-hs-sets{width:100%;border-collapse:collapse;font-size:12.5px}
.ev-hs-sets th{font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;padding:6px 12px;text-align:left}
.ev-hs-sets td{padding:6px 12px;border-top:1px solid #f0f2f5}
.ev-hs-note{margin:6px 12px}
/* view exercise */
.ev-view{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;min-height:0}
.ev-view-l{min-width:0}
.ev-facts{margin:0;display:flex;flex-direction:column;gap:6px}
.ev-facts div{display:flex;gap:8px;border:1px solid #e3e7ee;border-radius:6px;padding:7px 10px;font-size:13px}
.ev-facts dt{color:var(--muted);min-width:110px}
.ev-facts dd{margin:0;font-weight:600;text-transform:capitalize}
.ev-chips{display:flex;gap:6px;flex-wrap:wrap}
.ev-chip{border:1px solid #c7d2fe;color:#1d4ed8;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600}
.ev-steps{margin:0;padding-left:18px;font-size:13px;line-height:1.5}
.ev-view-r{border-left:1px solid var(--line);padding-left:20px;min-width:0}
.ev-media-play{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;border-radius:8px;overflow:hidden;background:#0c1b2e;cursor:pointer}
.ev-media-play img,.ev-media-play video{width:100%;height:100%;object-fit:cover;display:block}
.ev-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;background:#fffffff0;color:#0f172a;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px #0005}
.ev-media-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:16/9;border:1px dashed var(--line);border-radius:8px;color:var(--muted)}
/* results */
.ev-results .pl-float-card{width:min(1000px,100%);height:calc(100vh - 80px);max-height:none}
.ev-results .ev-body{padding:0}
.ev-res{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);height:100%;min-height:0}
.ev-res-l{overflow:auto;padding:18px 20px;background:#f5f6f8;min-height:0;display:flex;flex-direction:column;gap:12px}
.ev-res-head{display:flex;align-items:center;gap:10px}
.ev-lock{margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--green,#16a34a)}
.ev-sum{background:#fff;border:1px solid #e3e7ee;border-radius:10px;overflow:hidden}
.ev-sum-row{display:grid;grid-template-columns:1fr 1fr}
.ev-sum-row > div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 18px}
.ev-sum-row > div:first-child{border-right:1px solid #eef0f4}
.ev-sum-row svg{grid-row:1/3;width:30px;height:30px;color:#1d4ed8}
.ev-sum-row b{font-size:24px;line-height:1}
.ev-sum-row small{color:var(--muted);font-size:11px}
.ev-sum-when{text-align:center;border-top:1px solid #eef0f4;padding:10px;font-size:12.5px;color:var(--muted)}
.ev-sum-rate{text-align:center;border-top:1px solid #eef0f4;padding:10px;display:flex;flex-direction:column}
.ev-sum-rate small{font-size:10px;color:var(--muted);letter-spacing:.05em}
.ev-sum-rate b{color:var(--green,#16a34a);font-size:15px}
.ev-lifted{background:#fff;border:1px solid #e3e7ee;border-radius:10px;padding:14px 18px;color:#1d4ed8}
.ev-res-dh{display:flex;justify-content:space-between;align-items:center}
.ev-res-detail{background:#fff;border:1px solid #e3e7ee;border-radius:10px;padding:12px 16px;display:flex;flex-direction:column;gap:14px}
.ev-rs{display:flex;flex-direction:column;gap:6px}
.ev-rs-t{font-size:14px;display:flex;gap:6px;align-items:center}
.ev-rx{display:flex;flex-direction:column;gap:2px;padding-left:10px;border-left:2px solid #eef0f4}
.ev-rx-n{font-weight:700;color:#1d4ed8;text-align:left;padding:0}
.ev-rx-sets{list-style:none;margin:0;padding:0;font-size:12.5px;color:var(--text)}
.ev-rx-sets span{color:var(--muted);margin-right:6px}
.ev-pr{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#b45309}
.ev-pr svg{width:12px;height:12px}
.ev-res-r{display:flex;flex-direction:column;min-height:0;padding:18px 18px 12px;border-left:1px solid var(--line)}
.ev-cm{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.ev-cm-list{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;min-height:0}
.ev-cm-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);text-align:center;min-height:200px}
.ev-cm-empty svg{width:40px;height:40px;opacity:.5}
.ev-held{margin:0}
@media(max-width:899px){.ev-res{grid-template-columns:1fr}.ev-res-r{border-left:0;border-top:1px solid var(--line)}.ev-view{grid-template-columns:1fr}.ev-view-r{border-left:0;padding-left:0}}
.pl-wo-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;line-height:1.25}
.pl-wo-head{align-items:flex-start}
/* v167b: a ToneUp no-show on the Schedule is one block, labelled */
.sc-ns-tag{font-style:normal;font-weight:700;color:#dc2626;font-size:11px;display:inline-block;margin-left:4px}
.wk-item.st-no_show b,.sc-b.st-no_show b{text-decoration:line-through;text-decoration-color:rgba(220,38,38,.6)}
