:is(#testing-guide,#training-program){position:fixed;right:0;top:var(--header-h,80px);bottom:0;width:var(--tg-width);box-sizing:border-box;overflow:auto;background:#fff;border:2px solid #2459a6;border-radius:0;box-shadow:0 10px 35px #18385c33;padding:20px;z-index:190;font:15px/1.5 'DM Sans',sans-serif;color:#18385c}:is(#testing-guide,#training-program)[hidden]{display:none}:is(#testing-guide,#training-program) h2{font-size:20px;margin:0}:is(#testing-guide,#training-program) h3{font-size:18px;margin:12px 0}:is(#testing-guide,#training-program) .tg-heading,:is(#testing-guide,#training-program) .tg-actions{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}:is(#testing-guide,#training-program) button{background:#edf3fc;color:#18385c;border:1px solid #b8cbea;border-radius:8px;padding:9px 12px;cursor:pointer;font:inherit;margin:5px 0}:is(#testing-guide,#training-program) button:disabled{opacity:.6;cursor:wait}:is(#testing-guide,#training-program) label{display:block;margin:14px 0 8px}:is(#testing-guide,#training-program) textarea,:is(#testing-guide,#training-program) select{display:block;width:100%;box-sizing:border-box;margin:7px 0;padding:8px;border:1px solid #b8cbea;border-radius:8px;font:inherit}:is(#testing-guide,#training-program) [data-message]{color:#2459a6}:is(#testing-guide,#training-program) [data-help]:not(:empty){padding:12px;background:#f1f5fc;border-radius:8px;margin-top:12px;white-space:pre-line}:is(#testing-guide,#training-program) .tg-progress{font-size:13px;color:#53647e}

:root{--tg-width:min(360px,32vw)}
body.tg-open .main-content.with-rail{margin-right:var(--tg-width)}
body.tg-open .main-content:not(.with-rail){width:calc(100% - var(--tg-width));margin-right:var(--tg-width)}
:is(#testing-guide,#training-program) .tg-heading{position:sticky;top:-20px;background:white;padding:10px 0;z-index:1}
:is(#tg-resume,#tp-resume){position:fixed;right:16px;bottom:16px;z-index:190;background:#2459a6;color:white;border:0;border-radius:10px;padding:12px 18px;font:600 15px 'DM Sans',sans-serif;cursor:pointer}
:is(#tg-resume,#tp-resume)[hidden]{display:none}
@media(max-width:700px){:root{--tg-width:100vw}:is(#testing-guide,#training-program){top:auto;height:42dvh;border-width:2px 0 0}body.tg-open .main-content.with-rail{margin-right:0;padding-bottom:calc(42dvh + 24px)}body.tg-open .main-content:not(.with-rail){width:auto;margin-right:0;padding-bottom:calc(42dvh + 24px)}}

:is(#testing-guide,#training-program) [data-help]:not(:empty){background:transparent;padding:0;white-space:normal}
:is(#testing-guide,#training-program) [data-help] h4{font-size:16px;line-height:1.4;margin:20px 0 12px}
:is(#testing-guide,#training-program) .tg-steps{padding:0;list-style:none;counter-reset:training-step;margin:12px 0}
:is(#testing-guide,#training-program) .tg-steps li{counter-increment:training-step;position:relative;margin:0 0 12px;padding:14px 14px 14px 46px;background:#f1f5fc;border-radius:10px;line-height:1.65}
:is(#testing-guide,#training-program) .tg-steps li::before{content:counter(training-step);position:absolute;left:12px;top:15px;width:24px;height:24px;border-radius:50%;background:#2459a6;color:#fff;text-align:center;font-size:13px;font-weight:700;line-height:24px}
:is(#testing-guide,#training-program) .tg-sources{font-size:13px;margin:18px 0;color:#53647e}
:is(#testing-guide,#training-program) .tg-sources summary{cursor:pointer}:is(#testing-guide,#training-program) .tg-sources a{display:block;margin-top:8px}

#training-program input[type=search]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #b8cbea;border-radius:8px;font:inherit}
#training-program progress{width:100%;accent-color:#176b53}
#training-program .tp-group{margin:18px 0}#training-program .tp-group>summary{font-weight:700;cursor:pointer}
#training-program .tp-lesson{display:block;width:100%;text-align:left;padding:12px;margin:8px 0}#training-program .tp-lesson small{display:block;color:#53647e;margin-top:4px}
#training-program .tp-notice{padding:12px;background:#f1f5fc;border-radius:8px}
#training-program .tg-steps li{white-space:normal}#training-program .tp-current{outline:2px solid #2459a6}#training-program .tp-done{background:#eff9f3}#training-program .tp-check{display:block;color:#176b53;font-size:13px;font-weight:600;margin-top:8px}
#training-program .tp-choice{display:flex;gap:8px;align-items:flex-start;font-size:14px}#training-program .tp-choice input{margin-top:5px;flex-shrink:0}#training-program fieldset{border:1px solid #b8cbea;border-radius:8px;padding:12px}#training-program legend{font-weight:600}
#training-program .tp-result{border-bottom:1px solid #b8cbea;padding:12px 0}

.tp-entry-dialog{max-width:480px;width:calc(100% - 48px);border:2px solid #2459a6;border-radius:12px;padding:24px;color:#18385c}.tp-entry-dialog::backdrop{background:#10253280}.tp-entry-dialog form{text-align:right}.tp-entry-dialog select{display:block;width:100%;padding:10px;margin:8px 0}.tp-entry-dialog button{padding:10px;cursor:pointer}.tp-practice-marker{position:fixed;left:50%;transform:translateX(-50%);bottom:8px;z-index:189;background:#176b53;color:white;border-radius:8px;padding:6px 12px;pointer-events:none;font-size:13px}.tp-width{font-size:12px!important;margin:0!important}.tp-width input{display:block;width:110px}@media(max-width:700px){.tp-width{display:none}}

/* A saved desktop width must never override the phone layout. */
@media(max-width:700px){#training-program{width:100vw}#training-program .tp-width{display:none}}

/* Guided practice reserves room for instructions even during booking confirmations. */
.training-target{outline:3px solid #b77912!important;outline-offset:4px;box-shadow:0 0 0 7px #fff1c2!important}
body.tp-guided #training-program{z-index:10001}
body.tp-guided .apv-pop{right:var(--tg-width);padding:16px}
#training-program [data-guided-hint]{font-weight:600;margin-top:0}
#training-program [data-guided-record]{border:2px solid #176b53;padding:12px;border-radius:10px;overflow-wrap:anywhere}
@media(max-width:700px){body.tp-guided .apv-pop{right:0;bottom:42dvh}body.tp-guided .apv-pop>.apv-card{max-height:calc(58dvh - 40px)}}
@media(prefers-reduced-motion:reduce){.training-target{scroll-behavior:auto}}

/* Whole-card progress must outrank the shared step-card background. */
#training-program .tg-steps li.tp-done{background:#dff3e6;border:1px solid #84b99b;color:#124d38}
#training-program .tg-steps li.tp-done::before{background:#176b53;color:#fff;content:"✓"}
#training-program .tp-lesson-state{display:flex;flex-direction:column;gap:4px;padding:14px 16px;margin:12px 0;border:2px solid #2459a6;border-radius:10px;background:#e7f0ff;color:#173f78}
#training-program .tp-lesson-state strong{font-size:18px}
#training-program .tp-lesson-state span{font-size:14px}
#training-program .tp-lesson-complete{background:#dff3e6;border-color:#176b53;color:#124d38}
#training-program .tp-lesson-active{background:#f1f5fc;border-color:#6b89b5}

#training-program .tg-steps li.tp-current.tp-needs-hint{background:#fff2cc;border:1px solid #b17b15;outline-color:#b17b15;color:#66420b}
#training-program .tg-steps li.tp-needs-hint::before{background:#98630b}
#training-program .tp-step-hint{padding:12px 0 0;margin-top:10px;border-top:1px solid #c7d4e6}
#training-program .tp-needs-hint .tp-step-hint{border-color:#d6ae5c}

@keyframes training-beacon-wave{0%{box-shadow:0 0 0 0 rgba(211,157,28,.65),0 0 0 5px rgba(211,157,28,.25)}75%,100%{box-shadow:0 0 0 18px rgba(211,157,28,0),0 0 0 30px rgba(211,157,28,0)}}
.training-target.training-beacon{animation:training-beacon-wave 2s ease-out 2;outline:3px solid #bd8417;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.training-target.training-beacon{animation:none;box-shadow:0 0 0 7px rgba(211,157,28,.25)}}

/* Training uses the workspace palette and one active instruction. */
#training-program{background:#fffdf7;border-color:#0E6975;color:#173f46;font-size:17px;line-height:1.55;box-shadow:0 10px 35px #173f4620}
#training-program .tg-heading{background:#fffdf7}
#training-program h3.tp-goal{font-size:26px;line-height:1.25;margin:20px 0 16px;font-weight:750;color:#173f46}
#training-program .tp-lesson-state{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:8px 0;margin:8px 0;border:0;border-radius:0;background:transparent;color:#0e6975}
#training-program .tp-lesson-state strong,#training-program .tp-lesson-state span{font-size:15px}
#training-program .tp-lesson-complete{color:#124d38}
#training-program .tp-practice-note{font-size:14px;margin:8px 0 16px;color:#405b58}
#training-program button{background:#edf5f1;color:#174c50;border-color:#9ebfb7;min-height:44px}
#training-program button:is([data-start],[data-step],[data-complete],[data-continue]){background:#0e6975;color:#fff;border-color:#0e6975}
#training-program :is([data-catalog],[data-close]){background:transparent}
#training-program .tg-steps li{background:#eaf4ee;color:#173f46}
#training-program .tg-steps li::before{background:#0e6975}
#training-program .tp-current{outline-color:#0e6975}
#training-program .tp-focus-steps li{font-size:20px;line-height:1.5;padding-top:20px;padding-bottom:20px}
#training-program .tp-step-hint{border-color:#bad2c8;font-size:16px}
#training-program :is(.tp-all-steps,.tp-more-help,.tg-sources){margin-top:20px;font-size:16px;color:#174c50}
#training-program summary{cursor:pointer;padding:10px 0;font-weight:650}
#training-program [data-message]{color:#176b53;font-size:15px}
#training-program [data-message]:empty{display:none}
#training-program :is(input[type=search],select,textarea,fieldset){border-color:#9ebfb7}
#training-program .tp-notice{background:#eaf4ee}
#tp-resume{background:#0e6975}
.tp-entry-dialog{border-color:#0e6975;color:#173f46}

/* Preserve the current instruction beside full-screen practice views. */
body.tp-guided .act-full,body.tp-guided  #mb-event,body.tp-guided #mb-flyer{right:var(--tg-width);max-width:calc(100vw - var(--tg-width) - 32px)}
#training-program fieldset{border-color:#93b8b4;background:#fffdf7}#training-program .tp-choice{font-size:16px;line-height:1.5;padding:8px 0;cursor:pointer}#training-program .tp-choice input{accent-color:#0e6975;min-width:20px;min-height:20px}
#training-document{position:fixed;inset:100px var(--tg-width) 12px 12px;background:#fffdf7;border:2px solid #0e6975;border-radius:12px;padding:12px;z-index:10000;display:flex;gap:12px;flex-wrap:wrap}
#training-document button{padding:10px;color:#173f46;background:#e5f2ee;border:1px solid #78a59e;border-radius:8px;cursor:pointer}#training-document iframe{width:100%;height:calc(100% - 56px);border:0}
@media(max-width:700px){body.tp-guided .act-full,body.tp-guided  #mb-event,body.tp-guided #mb-flyer{right:0;bottom:42dvh;max-width:100vw;max-height:58dvh}#training-document{inset:8px 8px 43dvh}}

body.tp-guided .mb-dialog{position:fixed;left:16px;right:calc(var(--tg-width) + 16px);top:100px;bottom:16px;margin:auto;max-height:calc(100dvh - 132px);max-width:calc(100vw - var(--tg-width) - 32px);z-index:10000}

/* Activities practice: reclaim the whole navigation rail; keep an explicit way back. */
body.tp-activities-focus:not(.tp-activities-nav){--rail-w:0px}
body.tp-activities-focus:not(.tp-activities-nav) .nav-rail{display:none}
body.tp-activities-focus:not(.tp-activities-nav) .main-content.with-rail.rail-compact{margin-left:0}
body.tp-guided .act-shell,body.tp-guided .act-root{min-width:0}
@media(max-width:1100px){body.tp-guided #mb-flyer .mb-flyer-grid{grid-template-columns:1fr}body.tp-guided #mb-flyer .mb-canvas-wrap{max-width:380px;margin:auto}}

body.tp-guided :is(#modal-overlay,#quick-add-overlay,#dvir-overlay,.act-overlay){right:var(--tg-width)}
@media(max-width:700px){body.tp-guided .mb-dialog{left:8px;right:8px;top:8px;bottom:calc(42dvh + 8px);max-width:calc(100vw - 16px);max-height:calc(58dvh - 16px)}body.tp-guided :is(#modal-overlay,#quick-add-overlay,#dvir-overlay,.act-overlay){right:0;bottom:42dvh}}

/* Current instructions remain neutral; green is reserved for verified progress. */
#training-program .tg-steps li.tp-current{background:#fffdf8;border:1px solid #b7c9c8;color:#173f46}
#training-program .tg-steps li.tp-current.tp-needs-hint{background:#fff2cc;border-color:#b17b15;color:#66420b}
#training-program .tp-success{padding:12px 16px;margin:12px 0;background:#dff3e6;border:1px solid #84b99b;border-radius:10px;color:#124d38;font-weight:700}

/* The guide remains beside editors even when no hint has been requested. */
body.tp-training-active #training-program{z-index:20000}
body.tp-training-active #modal-overlay,
body.tp-training-active #series-scope-overlay,
body.tp-training-active #series-change-overlay{right:var(--tg-width);width:auto;box-sizing:border-box}
@media(max-width:700px){
 body.tp-training-active #modal-overlay,
 body.tp-training-active #series-scope-overlay,
 body.tp-training-active #series-change-overlay{right:0;bottom:42dvh;max-height:58dvh;overflow:auto}
}

/* Compact, scannable instructions; nested bullets do not inherit step numbering. */
#training-program .tp-focus-steps > li{font-size:16px;line-height:1.5;padding-top:14px;padding-bottom:14px}
#training-program .tp-instruction-points{list-style:disc;margin:0;padding-left:18px}
#training-program .tg-steps .tp-instruction-points > li{position:static;display:list-item;counter-increment:none;background:none;border:0;outline:0;border-radius:0;margin:0 0 8px;padding:0;font-size:16px;line-height:1.5;white-space:normal}
#training-program .tg-steps .tp-instruction-points > li::before{content:none}

#training-program .tp-build{margin:0 0 6px;font-size:12px;color:#405b58}

/* A reservation opened during training is not modal, so My Training stays visible and usable beside it. */
body.tp-training-active dialog.ih-booking[open]:not(:modal){position:fixed;top:0;bottom:0;left:0;right:var(--tg-width);margin:auto;z-index:9000;box-shadow:0 12px 40px #143b4866}
@media(max-width:700px){
 body.tp-training-active dialog.ih-booking[open]:not(:modal){right:0;bottom:42dvh;max-height:58dvh}
}

/* Activity editor and flyer studio: beside the training panel for the whole lesson, never over it. */
body.tp-training-active #mb-event,body.tp-training-active #mb-flyer{right:var(--tg-width);max-width:calc(100vw - var(--tg-width) - 32px)}
body.tp-training-active .mb-dialog{position:fixed;left:16px;right:calc(var(--tg-width) + 16px);top:100px;bottom:16px;margin:auto;max-height:calc(100dvh - 132px);max-width:calc(100vw - var(--tg-width) - 32px);z-index:10000}
@media(max-width:700px){body.tp-training-active #mb-event,body.tp-training-active #mb-flyer{right:0;bottom:42dvh;max-width:100vw;max-height:58dvh}body.tp-training-active .mb-dialog{left:8px;right:8px;top:8px;bottom:calc(42dvh + 8px);max-width:calc(100vw - 16px);max-height:calc(58dvh - 16px)}}

/* My Training, 12 Oct 2026 look: matches Ask MyBelVoy. Dark teal band, white cards, teal in place of the older blue. */
#training-program{background:#F7F9FA;color:#0E3949;border:0;border-left:1px solid #E5E7EB}
#training-program .tg-heading{background:#123F43;margin:-20px -20px 12px;padding:14px 20px;color:#F7FFFD}
#training-program .tg-heading h2{color:#F7FFFD}
#training-program .tg-heading button{background:#194B50;color:#F7FFFD;border-color:#2E6266}
#training-program .tg-heading .tp-width{color:#CFE6E8}
#training-program button{background:#FFFFFF;color:#0E3949;border:1px solid #E5E7EB;border-radius:12px;min-height:44px;font-weight:700}
#training-program :is(button.tp-primary,[data-start],[data-open],[data-continue],[data-complete]){background:#0E7C8A;color:#FFFFFF;border-color:#0E7C8A}
#training-program .tp-lesson-state{border:1px solid #A9D6DA;border-radius:12px;background:#FFFFFF;color:#0E3949}
#training-program .tp-progress{display:block;height:6px;background:#E3F1F2;border-radius:999px;overflow:hidden;margin-top:6px}
#training-program .tp-progress>span{display:block;height:6px;background:#0E7C8A}
#training-program .tg-steps li{background:#FFFFFF;border:1px solid #E5E7EB;border-radius:12px}
#training-program .tg-steps li::before{background:#0E7C8A}
#training-program .tg-steps li.tp-current{background:#FFFFFF;border:2px solid #0E7C8A;outline:0;color:#0E3949}
#training-program .tp-step-hint{border-color:#E5E7EB}
#training-program .tp-closed{display:flex;flex-wrap:wrap;gap:8px;background:#E3F1F2;border:1px solid #A9D6DA;border-radius:10px;padding:10px 12px;margin:8px 0}
#training-program .tp-closed[hidden],#training-program .tp-problem[hidden]{display:none}
#training-program .tp-problem{background:#FFFFFF;border:1px solid #E5E7EB;border-radius:12px;padding:14px 16px;margin-top:12px}
#training-program .tp-label{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5A6B70}
/* A wrong click: teal, not amber. A thicker dark teal border, a soft glow and a warning mark say "look here". */
#training-program .tg-steps li.tp-current.tp-needs-hint{background:#E3F1F2;border:4px solid #0A5C66;outline:0;color:#0E3949;box-shadow:0 0 0 4px rgba(14,124,138,.22)}
#training-program .tg-steps li.tp-needs-hint::before{background:#0A5C66}
#training-program .tp-needs-hint .tp-step-hint{border-color:#A9D6DA}
#training-program .tp-needs-hint [data-guided-hint]{font-weight:700;color:#0A5C66}
#training-program .tp-needs-hint [data-guided-hint]::before{content:"!";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:8px;border-radius:50%;background:#0A5C66;color:#FFFFFF;font-size:13px;font-weight:700;vertical-align:1px}
/* Show me where, Resume and hints light the page in MyBelVoy teal, not gold. */
.training-target{outline:3px solid #0E7C8A!important;outline-offset:4px;box-shadow:0 0 0 7px rgba(14,124,138,.18)!important}
@keyframes training-beacon-teal{0%{box-shadow:0 0 0 0 rgba(14,124,138,.55),0 0 0 5px rgba(14,124,138,.22)}75%,100%{box-shadow:0 0 0 18px rgba(14,124,138,0),0 0 0 30px rgba(14,124,138,0)}}
.training-target.training-beacon{animation:training-beacon-teal 2s ease-out 2;outline:3px solid #0A5C66;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.training-target.training-beacon{animation:none;box-shadow:0 0 0 7px rgba(14,124,138,.22)}}
