.routine-tools {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.routine-tools .tabs {margin:0;max-width:100%;overflow:auto}
.library-caption {font-size:11px;color:var(--muted)}
.equipment-line {display:flex;gap:7px;align-items:center;color:#9aafb7;font-size:11px;line-height:1.5;margin:-3px 0 13px;min-height:33px}
.equipment-line .badge {color:var(--teal);font-size:9px;flex-shrink:0}
.exercise-preview {gap:8px;min-height:44px}
.exercise-preview>span {flex:1}
.exercise-preview small {white-space:nowrap}
.watch-form {display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #25433f;border-radius:6px;background:#0b2624;color:var(--teal);font-size:10px;font-weight:600;min-height:32px;padding:5px 8px;white-space:nowrap;cursor:pointer}
.watch-form:hover {background:#123b35;border-color:var(--teal)}
.watch-form .icon {width:12px;height:12px}
.exercise-preview .watch-form {padding:6px;min-width:30px}
.exercise-preview .watch-form span {display:none}
.routine-details-button {margin-top:12px;margin-bottom:2px}
.exercise-detail>div:nth-child(2) {flex:1;min-width:0}
.exercise-detail .watch-form {margin-left:auto}
.exercise-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.exercise-heading h3 {margin:0}
.exercise-side-note {font-size:11px;color:var(--muted);margin:-4px 0 13px}
#exercise-guide {width:min(780px,calc(100% - 32px));max-height:90dvh;padding:0;border:1px solid #2a4b48;border-radius:15px;background:var(--panel);color:var(--text);box-shadow:0 35px 120px #000b;overflow:auto}
#exercise-guide::backdrop {background:#02080dcc;backdrop-filter:blur(7px)}
#exercise-guide .modal-head {padding:23px 26px 20px;position:sticky;top:0;background:var(--panel);z-index:2}
#exercise-guide .modal-head h2 {font-size:24px}
.guide-body {padding:0 26px 25px}
.guide-video {aspect-ratio:16/9;width:100%;background:#020807;border:1px solid #26463f;border-radius:10px;overflow:hidden}
.guide-video iframe {display:block;width:100%;height:100%;border:0}
.video-placeholder {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:18px;width:100%;height:100%;background:radial-gradient(ellipse at center,#153b35,#071013)}
.video-placeholder> .icon {width:34px;height:34px;color:var(--teal)}
.video-placeholder p {font-size:12px;color:#a5b9bc;max-width:320px;margin:0;line-height:1.6}
.guide-video:has(.video-placeholder) {aspect-ratio:auto}
.video-placeholder {min-height:260px}
.guide-links {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;margin:13px 0 22px;color:var(--muted)}
.guide-links a {color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.guide-facts {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.guide-facts span {padding:6px 9px;border:1px solid var(--border);border-radius:5px;color:#b6c8cf;font-size:11px}
.guide-steps {list-style:none;padding:0;margin:14px 0 18px;counter-reset:guide-step}
.guide-steps li {counter-increment:guide-step;display:flex;align-items:flex-start;gap:13px;font-size:13px;line-height:1.65;color:#c5d4d8;margin:13px 0}
.guide-steps li::before {content:counter(guide-step);background:#123a33;color:var(--teal);border-radius:50%;width:25px;height:25px;flex:0 0 25px;text-align:center;font-size:11px;line-height:25px}
.guide-note {font-size:11px;color:#91aaaF;line-height:1.7;border-top:1px solid var(--border);padding-top:13px;margin:0}
@media(max-width:580px){.routine-tools{gap:12px}.routine-tools .tabs{width:100%}.exercise-detail{gap:9px}.exercise-detail .watch-form{font-size:9px;padding:5px}.exercise-heading{align-items:flex-start}.exercise-heading h3{font-size:14px;line-height:1.5}#exercise-guide{width:calc(100% - 16px);max-height:94dvh}#exercise-guide .modal-head{padding:18px}#exercise-guide .modal-head h2{font-size:21px}.guide-body{padding:0 15px 20px}.guide-links{line-height:1.7}.video-placeholder{gap:8px}.video-placeholder>.icon{display:none}.video-placeholder p{font-size:11px}}
