/* Continue the approved trainer palette in conversations and workout results.
   Keep the chat host, viewport sizing, scrolling and all existing handlers. */
#trainer-app body.c3-coach-mode .v57-comms-workspace{background:var(--surface)!important;border:0!important;border-radius:16px!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside{padding:16px 12px!important;border-color:var(--line)}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside h2{font-size:18px;font-weight:700;margin:4px 8px 16px}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside button{gap:10px;padding:12px 8px;min-height:64px!important;border-radius:12px!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside button>span{width:32px;height:32px;border:0;background:var(--surface3);color:var(--text);font-size:12px;font-weight:700}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside button.active>span{background:var(--greenSoft);color:var(--green)}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside button strong{font-size:13px!important;line-height:1.4;overflow-wrap:anywhere}
#trainer-app body.c3-coach-mode .v57-comms-workspace>aside button small{font-size:11px;line-height:1.5}
#trainer-app body.c3-coach-mode .v57-comms-workspace>main>header{padding:18px!important;gap:12px;border-color:var(--line)}
#trainer-app body.c3-coach-mode .v57-comms-workspace>main>header h2{font-size:21px!important;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
#trainer-app body.c3-coach-mode .v57-comms-workspace>main>header small{font-size:11px!important;text-align:right}
#trainer-app body.c3-coach-mode #v57CoachThread{background:var(--bg);padding:20px!important;gap:12px}
#trainer-app body.c3-coach-mode #v57CoachThread .v57-msg{max-width:min(88%,520px);border:0;background:var(--surface2);border-radius:14px 14px 14px 4px!important;padding:12px 14px!important}
#trainer-app body.c3-coach-mode #v57CoachThread .v57-msg.mine{background:var(--greenSoft);border-radius:14px 14px 4px 14px!important}
#trainer-app body.c3-coach-mode #v57CoachThread .v57-msg>span{color:var(--muted);font-size:10px!important;line-height:1.5}
#trainer-app body.c3-coach-mode #v57CoachThread .v57-msg p{font-size:15px!important;line-height:1.55!important;margin:5px 0 7px}
#trainer-app body.c3-coach-mode #v57CoachThread .v57-msg>small{font-size:10px!important;color:var(--muted)}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-compose{background:var(--surface);border-color:var(--line)}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-compose textarea{background:var(--surface3)!important;border:1px solid transparent!important;border-radius:12px!important;box-shadow:none;font-size:16px!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-compose textarea:focus{border-color:var(--green)!important;outline:0!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-compose .comms-attach{background:var(--surface3)!important;border:0;color:var(--muted)!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-compose .comms-send{background:var(--green)!important;color:#062515!important;border:0}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-hide-keyboard{display:none!important}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-attachment-tray{background:var(--surface)}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-file-link{background:var(--surface);border:0;border-radius:10px}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-error{color:#f87171}
#trainer-app body.c3-coach-mode .v57-comms-workspace .comms-earlier{background:var(--surface2)}
#trainer-app body.c3-coach-mode .v57-comms-workspace .v57-checkins-side{padding:18px!important;border-color:var(--line)}
#trainer-app body.c3-coach-mode .v57-checkins-side header h3{font-size:16px!important;font-weight:700;margin:0 0 14px}
#trainer-app body.c3-coach-mode .v57-checkins-side article{padding:14px 0;border-color:var(--line);gap:12px}
#trainer-app body.c3-coach-mode .v57-checkins-side article>div strong{font-size:24px;color:var(--green)}
#trainer-app body.c3-coach-mode .v57-checkins-side article.warn>div strong{color:#f87171}
#trainer-app body.c3-coach-mode .v57-checkins-side article>div small{font-size:11px}
#trainer-app body.c3-coach-mode .v57-checkins-side p{font-size:12px!important;line-height:1.6}
#trainer-app body.c3-coach-mode .v57-comms-workspace .coach-attention128{border-color:var(--line);background:var(--surface)}
#trainer-app body.c3-coach-mode .v57-comms-workspace .coach-attention128 button{border:0;border-radius:9px;background:var(--surface3);color:var(--text)}
#trainer-app body.c3-coach-mode :is(.v57-comms-workspace,.coach-results,.coach-result-sheet) :is(button,a,summary):focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* Real results retain filtering, review status and the existing detail overlay. */
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-results{max-width:none;gap:18px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-account-workspace:has(>.coach-results){display:flex;flex-direction:column;min-width:0}
#trainer-app body.c3-coach-mode #screen-trainer .coach-account-workspace:has(>.coach-results)>.coach-account-bar{order:-1}
#trainer-app body.c3-coach-mode #screen-trainer .coach-stitch217 .coach-view-back129{min-height:44px;border:0;background:transparent;color:var(--muted);padding:8px 0;margin-bottom:12px;font-size:13px}
#trainer-app body.c3-coach-mode #screen-trainer .coach-account-workspace:has(>.coach-results)>.coach-view-back129{align-self:flex-start}
#trainer-app body.c3-coach-mode .coach-results h1{font-size:28px!important;font-weight:800;letter-spacing:-.035em}
#trainer-app body.c3-coach-mode .coach-results>header p{font-size:13px;margin:6px 0 0}
#trainer-app body.c3-coach-mode .coach-results button{border:0;background:var(--surface2);border-radius:12px;font-size:13px;min-height:44px}
#trainer-app body.c3-coach-mode .coach-result-filters{padding:16px;background:var(--surface);border-radius:16px;gap:12px;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr)}
#trainer-app body.c3-coach-mode .coach-result-filters label{font-size:12px;gap:7px}
#trainer-app body.c3-coach-mode .coach-result-filters :is(input,select){background:var(--surface3)!important;border:1px solid transparent;border-radius:10px;min-height:46px;font-size:16px!important;color:var(--text);box-shadow:none}
#trainer-app body.c3-coach-mode :is(.coach-result-filters,.coach-result-sheet) select{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239ba3a0' stroke-width='1.8'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
#trainer-app body.c3-coach-mode .coach-results-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0}
#trainer-app body.c3-coach-mode .coach-results-summary>span{display:flex;flex-direction:column;gap:6px;background:var(--surface);border-radius:14px;padding:16px;font-size:12px;line-height:1.5}
#trainer-app body.c3-coach-mode .coach-results-summary strong{font-size:26px;line-height:1.2;font-weight:800}
#trainer-app body.c3-coach-mode .coach-results-summary>span:first-child strong{color:var(--green)}
#trainer-app body.c3-coach-mode .coach-result-list{gap:10px}
#trainer-app body.c3-coach-mode .coach-results .coach-result-row{background:var(--surface);border:1px solid transparent;border-radius:14px;padding:18px;gap:8px}
#trainer-app body.c3-coach-mode .coach-result-row:hover{border-color:var(--line);background:var(--surface2)}
#trainer-app body.c3-coach-mode .coach-result-row-head strong{font-size:16px;font-weight:700;letter-spacing:-.02em}
#trainer-app body.c3-coach-mode .coach-result-row time{font-size:12px}
#trainer-app body.c3-coach-mode .coach-result-program{font-size:12px}
#trainer-app body.c3-coach-mode .coach-result-badges{gap:6px;font-size:11px;margin-top:3px}
#trainer-app body.c3-coach-mode .coach-result-badges>*{border-radius:6px;background:var(--surface3);padding:4px 7px;font-weight:500}
#trainer-app body.c3-coach-mode .coach-result-badges .new{background:var(--greenSoft);color:var(--green)}
#trainer-app body.c3-coach-mode .coach-results-empty{background:var(--surface);border:0;border-radius:16px;padding:22px;font-size:14px}
#trainer-app body.c3-coach-mode .coach-results-empty h2{font-weight:700;font-size:20px!important}
#trainer-app body.c3-coach-mode .coach-results-error{border-color:#f87171;background:var(--surface);border-radius:12px}

/* The results tab inside a client uses the same cards and compact rows. */
#trainer-app body.c3-coach-mode #coachClientPanel-results>section{border:0!important;background:var(--surface);border-radius:16px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis>div{padding:16px!important;background:var(--surface);border:0!important;border-radius:14px;min-width:0}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis>div:first-child{grid-column:1/-1}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis strong{font-size:22px!important;font-weight:800;overflow-wrap:anywhere}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis>div:nth-child(4) strong{font-size:18px!important;line-height:1.5}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis>div.attention{background:var(--greenSoft)}
#trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis>div.attention strong{color:var(--green)}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-workout{padding:14px 0;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;gap:12px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-workout b{font-size:14px;font-weight:700}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-workout :is(small,p){font-size:12px;color:var(--muted);line-height:1.5}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-workout>span{color:var(--green);font-size:12px;background:var(--greenSoft);border-radius:7px;padding:5px 7px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-pr-row{padding:14px 0;border-color:var(--line);gap:12px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-pr-row b{font-size:14px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-pr-row strong{font-size:14px;color:var(--green)}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-attention-row{border-color:var(--line);padding:12px 0}
#trainer-app body.c3-coach-mode #coachClientPanel-results .workspace-attention-row.warn{background:var(--greenSoft);color:var(--green);border-radius:8px;padding:12px}
#trainer-app body.c3-coach-mode #coachClientPanel-results .personal-shared-entries button{background:var(--surface3);color:var(--text);border:0;border-radius:10px;min-height:44px}

/* The sheet keeps its current scrolling and focus behaviour. */
#trainer-app body.c3-coach-mode #historyOverlay .coach-result-sheet{background:var(--bg)!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:20px!important}
#trainer-app body.c3-coach-mode .coach-result-heading{background:var(--bg);border-color:var(--line);top:-20px;margin:0 -20px 16px;padding:20px}
#trainer-app body.c3-coach-mode .coach-result-heading .eyebrow{font-size:11px;color:var(--green);letter-spacing:.06em}
#trainer-app body.c3-coach-mode .coach-result-heading h2{font-size:23px!important;font-weight:800;letter-spacing:-.03em}
#trainer-app body.c3-coach-mode .coach-result-heading p{font-size:12px}
#trainer-app body.c3-coach-mode .coach-result-sheet button{background:var(--surface3);border:0;border-radius:10px;min-height:44px}
#trainer-app body.c3-coach-mode .coach-result-totals{gap:6px;margin-top:0;font-size:12px}
#trainer-app body.c3-coach-mode .coach-result-totals>span{padding:8px 10px;background:var(--surface);border-radius:8px}
#trainer-app body.c3-coach-mode .coach-result-totals b{font-size:14px}
#trainer-app body.c3-coach-mode .coach-result-read{font-size:11px;margin:10px 0 18px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-client-feedback{background:var(--greenSoft);border:0;border-radius:12px;padding:16px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-client-feedback>span{color:var(--green);font-size:11px;font-weight:600}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-client-feedback p{font-size:14px;margin:8px 0 0}
#trainer-app body.c3-coach-mode .coach-result-sheet .coach-result-block{background:var(--surface);border:0;border-radius:14px;padding:16px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-result-exercise h3{font-size:16px!important;font-weight:700}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-compare-head{font-size:11px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-compare-row{font-size:13px;padding:10px 0}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-compare-row strong{font-size:14px;font-weight:700}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-compare-row.done strong{color:var(--green)}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-box{background:var(--surface);border:0;border-radius:14px;padding:16px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-box h3{font-size:18px;font-weight:700;letter-spacing:-.02em}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-box :is(input,select,textarea){background:var(--surface3)!important;border:1px solid transparent!important;border-radius:10px;font-size:16px!important;padding:10px 12px;color:var(--text)}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-box :is(input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:1px}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-item{background:var(--surface2);border:0;border-radius:10px;padding:12px;margin:10px 0}
#trainer-app body.c3-coach-mode .coach-result-sheet .trainer-feedback-item-top{font-size:11px;color:var(--muted)}
#trainer-app body.c3-coach-mode .coach-result-sheet #trainerFeedbackSave{background:var(--green);color:#062515}
@media(min-width:761px){
 #trainer-app body.c3-coach-mode .v57-comms-workspace{grid-template-columns:190px minmax(0,1fr) 210px!important}
}
@media(min-width:761px) and (max-width:1250px){
 #trainer-app body.c3-coach-mode .v57-comms-workspace{grid-template-columns:160px minmax(0,1fr)!important}
 #trainer-app body.c3-coach-mode .v57-comms-workspace>.v57-checkins-side{display:none!important}
}
@media(max-width:760px),(hover:none) and (pointer:coarse) and (max-width:1000px){
 #trainer-app body.c3-coach-mode #historyOverlay .coach-result-sheet{padding:16px!important}
 #trainer-app body.c3-coach-mode .coach-result-heading{top:-16px;margin:0 -16px 16px;padding:16px}
 #trainer-app body.c3-coach-mode #opCoachChatHost>.v57-comms-workspace{border-radius:0!important}
 #trainer-app body.c3-coach-mode .v57-comms-workspace>.comms-mobile-bar{gap:8px;background:var(--surface);border-color:var(--line)}
 #trainer-app body.c3-coach-mode .v57-comms-workspace .comms-avatar{background:var(--greenSoft);color:var(--green);border:0;border-radius:10px;font-weight:700}
 #trainer-app body.c3-coach-mode .v57-comms-workspace .comms-mobile-bar>button{border-radius:10px;background:var(--surface3);font-size:12px!important;padding:8px}
 #trainer-app body.c3-coach-mode #commsCoachBack{font-size:28px!important}
 #trainer-app body.c3-coach-mode #commsCoachClient{font-size:16px!important;appearance:none;-webkit-appearance:none;background-color:transparent!important;border-radius:0;box-shadow:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239ba3a0' stroke-width='1.8'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 5px center!important}
 #trainer-app body.c3-coach-mode #v57CoachThread{padding:14px!important;gap:10px}
 #trainer-app body.c3-coach-mode .v57-comms-workspace.comms-checkins-open>.v57-checkins-side{display:block!important}
}
@media(max-width:760px){
 #trainer-app body.c3-coach-mode #coachClientPanel-results .client-workspace-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #trainer-app body.c3-coach-mode .coach-results{gap:14px}
 #trainer-app body.c3-coach-mode .coach-results h1{font-size:26px!important}
 #trainer-app body.c3-coach-mode .coach-result-filters{grid-template-columns:minmax(0,1fr) 100px;padding:14px}
 #trainer-app body.c3-coach-mode .coach-result-filters label:last-child{grid-column:1/-1}
 #trainer-app body.c3-coach-mode .coach-results-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #trainer-app body.c3-coach-mode .coach-results-summary>span{padding:14px}
 #trainer-app body.c3-coach-mode .coach-results .coach-result-row{padding:14px}
 #trainer-app body.c3-coach-mode .coach-result-row-head{gap:5px}
 #trainer-app body.c3-coach-mode .coach-result-row-head strong{font-size:15px}
 #trainer-app body.c3-coach-mode .coach-result-sheet .coach-result-block{padding:12px}
 #trainer-app body.c3-coach-mode .coach-result-heading h2{font-size:21px!important}
}
