/* Exercise editor: one clear hierarchy, framed controls, secondary actions on demand. */
.ed-ex{position:relative;padding:20px;margin-bottom:14px;border-radius:18px;border-color:#353936;background:linear-gradient(145deg,#161817 0%,#0d0e0d 65%);box-shadow:inset 0 1px 0 #ffffff08}
.ed-ex:before{content:"";position:absolute;left:20px;top:-1px;width:52px;height:2px;background:var(--green);border-radius:2px;box-shadow:0 0 12px #b5fa3d25}
.ed-ex-heading{display:flex;align-items:center;gap:14px;min-height:52px;padding-right:116px;margin-bottom:18px}
.ed-ex-index{display:grid;place-items:center;flex:none;width:42px;height:46px;border:1px solid #526038;border-radius:12px;color:var(--green);background:#b5fa3d09;font:700 20px var(--display);font-variant-numeric:tabular-nums}
.ed-ex-identity{min-width:0}.ed-ex-kicker{display:block;font:700 9px var(--body);color:var(--muted);letter-spacing:1.8px;margin-bottom:5px}
.ed-ex-heading h3{font:800 clamp(17px,1.7vw,22px)/1.35 var(--body);letter-spacing:-.4px;margin:0;overflow-wrap:anywhere;color:var(--ink)}
.ed-side-status{display:inline-block;color:var(--green);font-size:11px;margin-top:5px}
.ed-ex-options>summary{position:absolute;top:23px;right:20px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:10px 14px;border:1px solid #526038;border-radius:11px;background:#151814;color:var(--ink);font-size:12px;font-weight:700;cursor:pointer;list-style:none}
.ed-ex-options>summary::-webkit-details-marker,.ed-technique>summary::-webkit-details-marker,.editor-session-options>summary::-webkit-details-marker,.editor-library>summary::-webkit-details-marker{display:none}
.ed-caret{display:inline-block;flex:none;width:7px;height:7px;border-right:1.5px solid var(--green);border-bottom:1.5px solid var(--green);transform:rotate(45deg);margin-top:-4px}
details[open]>.ed-technique-summary .ed-caret,.ed-ex-options[open]>summary .ed-caret,.ed-technique[open]>summary .ed-caret,.editor-session-options[open]>summary .ed-caret,.editor-library[open]>summary .ed-caret{transform:rotate(225deg);margin-top:3px}
.ed-options-panel{padding:14px;margin:0 0 16px;border:1px solid var(--line);border-radius:12px;background:#090b09}
.ed-option-actions{display:flex;flex-wrap:wrap;gap:8px}.ed-options-panel .btn{font:700 12px var(--body);min-height:44px;padding:10px 14px;box-shadow:none;transform:none}
.ed-options-panel .ed-remove{color:#efaaa5;border-color:#61403c;background:#201512}
.ed-options-panel .loc{padding-top:12px;margin:12px 0 0!important;border-top:1px solid var(--line)}
.ed-options-panel .chip{font-size:12px;min-height:44px}.ed-options-panel .chip.on{background:#b5fa3d15}
.ed-group-hint{color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 14px}
.ed-rest{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding:12px;background:#0b0d0b;border:1px solid var(--line);border-radius:12px}
.ed-rest>span{flex:1;min-width:160px;font-size:12px;color:var(--soft);font-weight:700}.ed-rest .duration-input{flex:0 1 240px}
.ed-ex .ed-sets{column-gap:10px;row-gap:8px;grid-template-columns:36px repeat(2,minmax(0,1fr)) 44px}
.ed-ex .ed-sets>span{font-size:10px;font-family:var(--body);font-weight:700;letter-spacing:.7px;padding:4px 0}
.ed-ex .ed-sets>.ed-set-number{font:700 17px var(--display);color:var(--muted);letter-spacing:0}
.ed-ex .ed-sets input:not(:disabled):not([readonly]){min-height:46px;background-color:#080a08;border-color:#657744;font:700 16px var(--body);font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 0 #ffffff08}
.ed-ex .ed-sets input:focus{border-color:var(--green);background-color:#151b0f;outline:2px solid #b5fa3d26;outline-offset:1px}
.ed-set-remove{width:44px;height:44px;color:var(--muted);font-size:18px;font-weight:500;background:#111311;border-color:#353b35}
.ed-ex .ed-add-series{width:100%;margin-top:14px;min-height:44px;background:#121610;border-color:#43512e;box-shadow:none;font-size:12px;color:var(--green)}
.ed-technique{margin-top:16px;border:1px solid #353b35;border-radius:11px;padding:0 14px;background:#0c0e0c;font-size:13px;line-height:1.8}
.ed-technique>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;list-style:none;font-size:12px;font-weight:700;color:var(--soft)}
.ed-technique[open]{padding-bottom:12px}.ed-technique li{margin-bottom:7px}.ed-technique .btn{font-size:12px;box-shadow:none}
.editor-session-options{position:relative}.editor-session-options>summary{list-style:none;gap:12px;font-size:12px}
.editor-session-options>.ed-options-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:35;min-width:230px;display:grid;gap:8px;box-shadow:0 14px 40px #0008}
.editor-guide{padding:6px 12px;gap:4px;background:transparent;border-color:#303630;border-radius:14px}
.editor-guide button{min-height:44px;background:#0c0e0c!important;border:1px solid #303630!important;box-shadow:none!important;transform:none!important;font-size:11px}.editor-guide small{font-size:10px}.editor-guide i{width:24px;height:24px;font-size:10px;border-radius:7px;background:#b5fa3d0b;color:var(--green)}
.editor-additions{padding:12px!important;border-radius:14px;gap:8px;align-items:center;top:72px}
.editor-additions .field{font-size:10px!important;letter-spacing:.3px;flex-basis:160px!important;max-width:240px!important}
.editor-additions .btn,.editor-additions select{font-size:12px;min-height:44px;padding:10px 12px;border-radius:10px}.editor-additions #addProto{align-self:center!important}
.editor-library>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:44px;cursor:pointer;list-style:none;font-weight:700}
.editor-library>summary span:first-child{min-width:0}.editor-library>summary small{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}
.editor-library[open]>summary{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.exo-top h3{font:800 clamp(18px,2vw,23px)/1.35 var(--body);letter-spacing:-.35px;margin:8px 0 5px}.gx>div>b{font:800 17px/1.4 var(--body);letter-spacing:-.2px}
@media(max-width:600px){.ed-ex{padding:16px 12px;border-radius:15px}.ed-ex-heading{gap:9px;padding-right:90px;min-height:48px;margin-bottom:16px}.ed-ex-heading h3{font-size:17px}.ed-ex-index{width:30px;height:38px;font-size:16px;border-radius:8px}.ed-ex-kicker{font-size:8px;letter-spacing:1px}.ed-ex-options>summary{right:12px;top:18px;min-height:44px;gap:9px;padding:8px 10px;font-size:11px}.ed-ex .ed-sets{grid-template-columns:28px repeat(2,minmax(0,1fr)) 36px;gap:6px}.ed-ex .ed-sets>span{font-size:8px;letter-spacing:.3px}.ed-set-remove{width:36px;min-height:44px}.ed-ex .ed-sets input:not(:disabled):not([readonly]){font-size:15px}.ed-rest{padding:10px}.ed-rest>span{min-width:100%;font-size:11px}.editor-guide{gap:0;padding:6px}.editor-guide button{flex:1 1 100%;min-height:34px}.editor-guide small{display:none}.editor-additions .field{max-width:none!important;flex-basis:100%!important}.editor-additions .btn{flex:1 1 140px!important}.ed-option-actions .btn{flex:1 1 130px}.editor-session-options>.ed-options-panel{right:0;max-width:calc(100vw - 36px)}}
@media(prefers-reduced-motion:reduce){.ed-ex *{scroll-behavior:auto}}

.blk-tools{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.blk-tools .btn{min-height:44px;font-size:12px;padding:10px 12px}.blk-target{font-size:10px;font-weight:700;letter-spacing:.3px;color:var(--green);padding:8px 0}.blk-options{position:relative}.blk-options>summary{list-style:none;gap:12px}.blk-options>summary::-webkit-details-marker{display:none}.blk-options[open]>summary .ed-caret{transform:rotate(225deg)}.blk-options>.ed-options-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:15;display:grid;gap:8px;min-width:200px;box-shadow:0 12px 32px #0009}

.blk-options .blk-sport{margin:0;min-width:0;font-size:12px;text-align:left}.blk-options .blk-sport select{width:100%;min-height:46px;margin-top:7px;font-size:16px}.blk-options>.ed-options-panel{position:static;margin:8px 0 0;min-width:245px;max-width:calc(100vw - 60px);box-shadow:none}
@media(min-width:601px) and (max-width:1100px){.ed-ex-heading h3{font-size:20px}.ed-ex .ed-sets input:not(:disabled):not([readonly]){min-height:48px}.ed-ex .ed-set-remove{height:48px}}

.proto-free-circuit{display:flex;align-items:center;gap:14px;width:100%;padding:18px;margin:10px 0 16px;text-align:left;background:linear-gradient(115deg,#172011,#0e100d);border:1px solid var(--green);border-radius:16px;color:var(--text);font:inherit;cursor:pointer}.proto-free-circuit>span:nth-child(2){flex:1;min-width:0}.proto-free-circuit b{display:block;font-size:18px;color:var(--green)}.proto-free-circuit small{display:block;margin-top:4px;color:var(--muted);line-height:1.5}.proto-free-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:1px solid var(--green);border-radius:12px;color:var(--green);font-size:26px}.proto-free-circuit:focus-visible{outline:2px solid var(--green);outline-offset:3px}

.ed-method-pause{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 2px;padding:8px 12px;border-left:2px solid var(--green);color:var(--muted);font-size:12px;background:rgba(190,255,0,.025)}
.ed-method-pause .duration-input{max-width:280px}.ed-set-number.ed-subset{padding-left:6px;font-size:12px;color:var(--green)}
@media(max-width:760px){.ed-method-pause{flex-wrap:wrap}.ed-method-pause .duration-input{max-width:100%}}
