
  :root { color-scheme: dark; --bg:#0a101b; --panel:#111b2c; --panel2:#172339; --text:#eef4ff; --muted:#aabbd1; --line:#304058; --accent:#ef4444; --accent2:#7f1d1d; --accentsoft:rgba(239,68,68,.15); --success:#4ade80; --warning:#fbbf24; --shadow:0 22px 60px rgba(0,0,0,.25) }
  * {box-sizing:border-box}
  html {scroll-behavior:smooth}
  body {margin:0;min-height:100vh;background:radial-gradient(circle at 10% -10%,rgba(67,94,151,.22),transparent 32rem),radial-gradient(circle at 95% -4%,rgba(21,51,77,.25),transparent 30rem),var(--bg);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);font-size:15px;line-height:1.45}
  button,input {font:inherit}
  button {cursor:pointer; touch-action:manipulation}
  button:disabled {cursor:not-allowed;opacity:.45}
  button:focus-visible, input:focus-visible,summary:focus-visible {outline:3px solid var(--accent);outline-offset:3px}
  .wrap {width:min(1150px,calc(100% - 28px));margin:auto}
  .top {padding:27px 0 22px;display:flex;justify-content:space-between;gap:16px;align-items:center}
  .brand {display:flex;align-items:center;gap:12px}
  .brandmark {width:55px;height:55px;border-radius:16px;background:linear-gradient(135deg,#ecf4ff,var(--accent));display:grid;place-items:center;font-size:27px;font-weight:1000;color:#09121f;letter-spacing:-2px;box-shadow:0 11px 30px color-mix(in srgb,var(--accent),transparent 75%)}
  .eyebrow {text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:850;color:var(--muted)}
  h1,h2,h3,p {margin-top:0}
  h1 {font-size:clamp(22px,3vw,30px);letter-spacing:-.055em;line-height:1.05;margin:4px 0 0;font-weight:1000}
  .badge {border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap}
  .tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:17px}
  .tab {text-align:left;border:1px solid #2d3a50;background:#111b2c;color:var(--text);border-radius:15px;padding:13px 16px;min-height:77px;transition:.2s;border-top:3px solid var(--tab-accent)}
  .tab:hover {transform:translateY(-2px);background:#17253a}
  .tab[aria-selected="true"] {border-color:var(--tab-accent);background:color-mix(in srgb,var(--tab-accent),#101b2d 84%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tab-accent),transparent 55%)}
  .tab b {font-size:19px;display:block;letter-spacing:-.035em}
  .tab small {display:block;color:#a9bdd4;font-size:11px;margin-top:2px;font-weight:700}
  .overview {border:1px solid var(--line);background:linear-gradient(128deg,var(--panel),#19243a 80%);border-radius:22px;padding:21px;display:flex;justify-content:space-between;gap:22px;align-items:center;margin-bottom:17px}
  .overview .pre {color:var(--accent);text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:900}
  .overview h2 {font-size:clamp(21px,3.5vw,31px);line-height:1.1;margin:4px 0 7px;letter-spacing:-.05em}
  .overview p {margin-bottom:0;color:var(--muted);font-size:13px}
  .overview-right{display:flex;flex-direction:column;align-items:stretch}
  .overview-reset{display:flex;justify-content:flex-end;margin-top:10px}
  .overview-reset .btn{width:100%;max-width:220px}
  .overview-reset .btn:disabled{opacity:.45;cursor:not-allowed}
  .stats {display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
  .stat {min-width:88px;background:#0c1424;border:1px solid #2e3c52;border-radius:13px;padding:9px 13px}
  .stat span {display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:900}
  .stat b {display:block;font-variant-numeric:tabular-nums;font-size:22px;font-weight:900;letter-spacing:-.05em}
  .meter {height:7px;background:#263650;border-radius:20px;overflow:hidden;margin-top:16px}
  .meter>span {display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),#c4e2ff);border-radius:20px;transition:width .3s}
  .main {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(275px,.8fr);gap:17px;align-items:start;margin-bottom:32px}
  .col {display:grid;gap:17px;min-width:0}
  .card {border:1px solid var(--line);background:linear-gradient(150deg,#172238,#101b2a);border-radius:22px;padding:21px;box-shadow:var(--shadow)}
  .card.subtle {box-shadow:none}
  .sectiontitle {font-size:11px;text-transform:uppercase;letter-spacing:.145em;color:var(--accent);font-weight:950;margin:0 0 9px}
  .sectiontitle.muted {color:#a8bbd4}
  .current-title {font-size:clamp(24px,4vw,37px);line-height:1.12;letter-spacing:-.055em;font-weight:950;margin:3px 0 12px;overflow-wrap:anywhere}
  .chips {display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
  .chip {font-size:12px;border:1px solid #35435b;border-radius:9px;background:#0c1526;padding:6px 10px;color:#c7d5e9}
  .chip strong {color:#fff}
  .notes {background:#0b1424;border:1px solid #2e405a;border-left:3px solid var(--accent);border-radius:11px;padding:12px 13px}
  .notes {color:#c6d5e9;font-size:13px;line-height:1.55}
  .notes strong {display:block;color:#fff;margin-bottom:3px;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
  .counterbox {margin-top:17px;border:1px solid #32435d;background:linear-gradient(145deg,#0c1729,#101d30);padding:17px;border-radius:17px}
  .counterhead {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}
  .counterhead h3 {font-size:13px;margin:0;font-weight:900;color:#eaf1ff}
  .counterhead span {font-size:12px;color:var(--muted)}
  .counter {display:grid;grid-template-columns:70px 1fr 70px;align-items:center;gap:10px}
  .countbtn {background:#253751;border:1px solid #425574;color:#fff;font-size:32px;font-weight:700;border-radius:15px;height:74px;line-height:1}
  .countbtn:active {transform:scale(.97)}
  .countinput {width:100%;text-align:center;border:0;outline:none;background:transparent;color:#fff;font-size:clamp(45px,8vw,66px);font-weight:1000;font-variant-numeric:tabular-nums;letter-spacing:-.07em;min-width:0;appearance:textfield;-moz-appearance:textfield}
  .countinput::-webkit-outer-spin-button,.countinput::-webkit-inner-spin-button {-webkit-appearance:none;margin:0}
  .countertools {margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
  .muted {color:var(--muted)}
  .mini {font-size:12px}
  .btn {border-radius:13px;padding:13px 15px;border:1px solid #40526b;background:#22334c;color:#f5f9ff;font-weight:850;min-height:45px}
  .btn:hover {filter:brightness(1.13)}
  .btn.primary {background:var(--accent);border-color:var(--accent);color:#08111d;font-weight:950}
  .btn.secondary {background:#1d314d}
  .btn.ghost {background:transparent;border-color:#3c4c64;color:#c6d4e7}
  .btn.tiny {font-size:12px;padding:7px 11px;min-height:34px;border-radius:9px}
  .btn.danger {border-color:#77414c;color:#ffd5dc}
  .actions {display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
  .actions>.btn.primary {grid-column:1/-1;font-size:17px;min-height:58px}
  .inline-timer {margin-top:16px;padding:14px;border:1px solid #354966;border-radius:16px;background:linear-gradient(165deg,#152238,#0d192b);text-align:center}
  .inline-timer .timer-ring {width:146px;height:146px;margin:12px auto}
  .inline-timer .timer-ring-inner {width:124px;height:124px}
  .inline-timer .timer-value {font-size:38px}
  .inline-timer .timer-controls {margin-top:10px}
  .inline-timer .timer-controls .btn {min-width:62px}

  /* Disposizione affiancata dei dati di serie e del timer, anche su smartphone */
  .exercise-metrics {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;align-items:stretch}
  .exercise-metrics .metrics-left {min-width:0;display:flex;flex-direction:column;justify-content:center}
  .exercise-metrics .inline-timer {margin:0;padding:11px 8px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .exercise-metrics .inline-timer .sectiontitle {font-size:10px;text-align:center}
  .exercise-metrics .inline-timer .timer-ring {width:116px;height:116px;margin:12px auto 9px;box-shadow:0 0 0 4px #101c2d}
  .exercise-metrics .inline-timer .timer-ring-inner {width:100px;height:100px}
  .exercise-metrics .inline-timer .timer-value {font-size:29px}
  .exercise-metrics .inline-timer .timer-caption {font-size:8px;letter-spacing:0.01em;padding:0 5px}
  .exercise-metrics .inline-timer .timer-controls {margin-top:7px;gap:4px}
  .exercise-metrics .inline-timer .timer-controls .btn {min-width:0;flex:1 1 45%;padding:7px 4px;font-size:10px}
  .exercise-metrics .counterhead {display:block}
  .exercise-metrics .counterhead h3 {font-size:11px}
  .exercise-metrics .counterhead span {font-size:10px}
  .exercise-metrics .counter {grid-template-columns:37px minmax(0,1fr) 37px;gap:3px}
  .exercise-metrics .counter .countbtn {height:48px;padding:0;font-size:24px}
  .exercise-metrics .countinput {font-size:clamp(30px,5vw,43px)}
  .exercise-metrics .countertools {font-size:10px;gap:7px}
  .exercise-metrics .countertools .btn {font-size:10px;padding:6px}
  .exercise-metrics .timed-settings {margin:10px 0 0;padding-top:10px;display:flex;flex-wrap:wrap}
  .exercise-metrics .timed-settings input {font-size:16px;width:66px}
  @media(max-width:580px){.exercise-metrics{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.exercise-metrics .inline-timer .timer-ring{width:99px;height:99px}.exercise-metrics .inline-timer .timer-ring-inner{width:85px;height:85px}.exercise-metrics .inline-timer .timer-value{font-size:25px}.exercise-metrics .counter{grid-template-columns:27px minmax(0,1fr) 27px;gap:2px}.exercise-metrics .counter .countbtn{height:43px;font-size:20px}.exercise-metrics .countinput{font-size:29px}.exercise-metrics .inline-timer .sectiontitle{font-size:9px}.exercise-metrics .countertools .btn{font-size:9px}}
  .timed-settings {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 2px;border-top:1px solid #354966;padding-top:13px}
  .timed-settings input {width:83px;border:1px solid #415571;background:#0c1728;color:#fff;border-radius:10px;padding:9px;text-align:center;font-weight:900;font-size:19px}
  .timer {text-align:center;background:linear-gradient(165deg,#152238,#0d192b)}
  .timer .sectiontitle {text-align:left}
  .timer-ring {width:178px;height:178px;border-radius:50%;background:conic-gradient(var(--accent) 0%,#293852 0%);display:grid;place-items:center;margin:13px auto 11px;box-shadow:0 0 0 7px #101c2d}
  .timer-ring-inner {height:155px;width:155px;background:#101b2c;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}
  .timer-value {font-variant-numeric:tabular-nums;letter-spacing:-.075em;font-size:46px;line-height:1.1;font-weight:1000}
  .timer-caption {font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:850}
  .timer-controls {display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:15px}
  .timer-controls .btn {flex:1;min-width:90px}
  .presets {display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:13px}
  .preset {min-width:0;border:1px solid #40516a;border-radius:9px;background:#172842;color:#dfebff;padding:9px 2px;font-weight:900;font-size:13px}
  .timer-hint {font-size:12px;color:var(--muted);margin:11px 0 0}
  .ahead {display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
  .ahead h3 {margin:0;font-size:16px;letter-spacing:-.015em}
  details.block {border-top:1px solid #34435a;padding:11px 0}
  details.block:first-of-type {border-top:0}
  summary {cursor:pointer;display:flex;justify-content:space-between;gap:13px;align-items:center;font-size:13px;font-weight:880;list-style:none}
  summary::-webkit-details-marker {display:none}
  summary:after {content:'+';font-size:19px;color:var(--accent)}
  details[open]>summary:after {content:'−'}
  .blockinfo {color:var(--muted);font-size:11px;white-space:nowrap}
  .grouptitle {font-size:11px;color:var(--accent);margin:13px 0 6px;font-weight:900;letter-spacing:.045em}
  .exercise-list {margin:0;padding-left:0;list-style:none;display:grid;gap:6px}
  .exercise-list li {display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#c2d4e7;line-height:1.35}
  .exercise-list li .dot {width:7px;height:7px;border:1px solid #8196b3;border-radius:50%;margin-top:5px;flex:none}
  .exercise-list li.done .dot {background:var(--success);border-color:var(--success)}
  .exercise-list li.current .dot {background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px var(--accentsoft)}
  .exercise-list li small {display:block;color:#819cb8;font-size:11px}
  .switchline {display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #324159;padding:13px 0;font-size:13px}
  .switchline:last-child {padding-bottom:0}
  .switchline label {cursor:pointer}
  input[type=checkbox] {accent-color:var(--accent);width:20px;height:20px;cursor:pointer}
  .history-line {border-top:1px solid #2e405a;padding:10px 0;font-size:12px;display:flex;justify-content:space-between;gap:8px}
  .history-line:first-of-type {border-top:0}
  .history-line b {display:block;color:#fff;font-size:13px}
  .history-line span {color:var(--muted)}
  .footer {border-top:1px solid #2a3850;padding:21px 0 34px;color:#8ca3c2;font-size:12px;text-align:center}
  #toast {position:fixed;z-index:30;left:50%;bottom:20px;transform:translate(-50%,110px);opacity:0;transition:.3s;background:#e8f4ff;color:#112139;border:1px solid #fff;border-radius:11px;padding:11px 18px;font-size:13px;font-weight:900;box-shadow:0 10px 40px #0009;pointer-events:none;max-width:calc(100% - 30px);text-align:center}
  #toast.show {opacity:1;transform:translate(-50%,0)}
  .intro {padding:28px 12px 20px;text-align:center}
  .intro h3 {font-size:24px;letter-spacing:-.04em;margin:0 0 10px}
  .intro p {max-width:510px;margin:0 auto 20px;color:var(--muted)}
  .intro .icon {font-size:48px;line-height:1.4;margin-bottom:7px}
  .complete {background:linear-gradient(140deg,#0b2728,#102537);text-align:center}
  .complete .large {font-size:55px;line-height:1.3}
  .complete h3 {font-size:25px;margin:0 0 7px}
  .complete p {color:#b6d8d9}
  .complete-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}
  .complete-grid div {border:1px solid #365b60;border-radius:12px;padding:11px}
  .complete-grid b {font-size:22px;display:block}
  .complete-grid span {font-size:11px;color:#a9c5c6}
  .options {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .right-controls {display:flex;align-items:center;gap:9px;flex-wrap:wrap}
  .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .timer-edit {display:flex;justify-content:space-between;gap:8px;margin-top:13px;align-items:center}
  .rest-edit {width:78px;border:1px solid #415571;background:#0c1728;color:#fff;border-radius:9px;padding:8px 9px;text-align:center;font-weight:850}
  @media(max-width:850px){.main{grid-template-columns:1fr}.overview{align-items:flex-start}.stats{justify-content:flex-start}.main>.col:first-child{order:1}.main>.col:last-child{order:2}}
  @media(max-width:580px){.wrap{width:min(100% - 20px,1150px)}.top{padding:17px 0 16px}.badge{font-size:10px;padding:7px 9px}.brandmark{width:46px;height:46px;font-size:23px}.tabs{gap:6px}.tab{padding:10px 9px;min-height:65px}.tab b{font-size:17px}.tab small{font-size:10px}.overview{padding:16px;display:block}.stats{margin-top:14px;justify-content:stretch}.stat{flex:1;min-width:0;text-align:center;padding:8px 5px}.stat b{font-size:19px}.stat span{font-size:9px}.card{padding:16px;border-radius:17px}.counter{grid-template-columns:62px 1fr 62px}.countbtn{height:66px}.current-title{font-size:26px}.timer-ring{width:155px;height:155px}.timer-ring-inner{width:133px;height:133px}.timer-value{font-size:42px}.actions>.btn.primary{min-height:60px}.tabs{margin-bottom:12px}}

  /* IRON 45 · interfaccia timer prioritaria / revisione V5 */
  .exercise-metrics{grid-template-columns:minmax(0,.65fr) minmax(0,1.55fr);gap:12px}
  .exercise-metrics .metrics-left{justify-content:flex-start;gap:5px}
  .exercise-metrics .inline-timer{padding:15px 10px;min-height:220px;background:linear-gradient(150deg,#1b2b43,#0d192b);border-color:color-mix(in srgb,var(--accent),#344963 45%)}
  .exercise-metrics .inline-timer .sectiontitle{font-size:11px;line-height:1.3}
  .exercise-metrics .inline-timer .timer-ring{width:min(188px,92%);height:auto;aspect-ratio:1;margin:12px auto;box-shadow:0 0 0 5px #101c2d}
  .exercise-metrics .inline-timer .timer-ring-inner{width:87%;height:87%}
  .exercise-metrics .inline-timer .timer-value{font-size:clamp(31px,4vw,45px);letter-spacing:-.055em}
  .exercise-metrics .inline-timer .timer-caption{font-size:10px;letter-spacing:.02em}
  .exercise-metrics .counterhead h3{font-size:10px;line-height:1.3}
  .exercise-metrics .counterhead span{font-size:9px}
  .exercise-metrics .counter{grid-template-columns:28px minmax(0,1fr) 28px;gap:3px}
  .exercise-metrics .counter .countbtn{height:42px;font-size:21px;border-radius:9px}
  .exercise-metrics .countinput{font-size:clamp(25px,3vw,34px)}
  .exercise-metrics .countertools{font-size:10px;gap:5px}
  .exercise-metrics .countertools .btn{font-size:9px;padding:5px 6px}
  .exercise-metrics .timed-settings{margin:5px 0 0;padding-top:8px;align-items:flex-start}
  .exercise-metrics .timed-settings label{font-size:10px;line-height:1.35}
  .exercise-metrics .timed-settings input{width:60px;padding:6px 3px;font-size:15px}
  .exercise-metrics .inline-timer .timer-controls .btn{font-size:11px;padding:8px 5px}
  .stat.stat-elapsed{min-width:130px}
  .overview-reset{justify-content:flex-start;margin-top:9px}
  .overview-reset .btn{width:100%;max-width:none;font-size:10px;min-height:30px;padding:5px 7px;white-space:nowrap}
  .overview-right .stats{align-items:flex-start}
  .series-focus{background:linear-gradient(120deg,var(--accentsoft),#142137 95%);border:1px solid var(--accent);border-left:5px solid var(--accent);border-radius:12px;padding:11px 13px;margin:0 0 13px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
  .series-focus strong{font-size:19px;color:#fff;letter-spacing:-.025em}
  .series-focus .series-eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:1000}
  .series-focus .series-pips{display:flex;gap:6px;align-items:center}
  .series-focus .series-pips span{width:13px;height:13px;border:1.5px solid #627690;border-radius:50%;display:inline-block}
  .series-focus .series-pips span.past{background:#4ade80;border-color:#4ade80}
  .series-focus .series-pips span.now{background:#ef4444;border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.20);transform:scale(1.15)}
  .series-focus .series-pips span.now.recovering{background:#9aa9bc;border-color:#9aa9bc;box-shadow:0 0 0 3px rgba(154,169,188,.20)}
  .exercise-list li.current{background:var(--accentsoft);border:1px solid color-mix(in srgb,var(--accent),transparent 46%);border-radius:9px;padding:6px 7px;font-weight:800}
  .exercise-list li.current small{font-weight:400}
  .exercise-list li .plan-now{display:inline-block;margin-top:3px;border-radius:5px;background:var(--accent);color:#08111d;padding:2px 5px;font-size:9px;font-weight:1000}
  @media(max-width:580px){
   .exercise-metrics{grid-template-columns:minmax(0,.60fr) minmax(0,1.40fr);gap:7px}
   .counterbox{padding:10px}
   .exercise-metrics .inline-timer{padding:10px 5px;min-height:195px}
   .exercise-metrics .inline-timer .timer-ring{width:min(150px,95%);height:auto}
   .exercise-metrics .inline-timer .timer-ring-inner{width:87%;height:87%}
   .exercise-metrics .inline-timer .timer-value{font-size:clamp(28px,7.5vw,38px)}
   .exercise-metrics .inline-timer .timer-caption{font-size:8px}
   .exercise-metrics .inline-timer .sectiontitle{font-size:9px}
   .exercise-metrics .counter{grid-template-columns:24px minmax(0,1fr) 24px;gap:1px}
   .exercise-metrics .counter .countbtn{height:36px;font-size:18px}
   .exercise-metrics .countinput{font-size:26px}
   .exercise-metrics .countertools .btn{font-size:9px;padding:5px}
   .exercise-metrics .timed-settings{display:block}
   .exercise-metrics .timed-settings input{margin-top:5px;width:64px}
   .exercise-metrics .inline-timer .timer-controls .btn{font-size:9px;padding:7px 2px}
   .stat.stat-elapsed{min-width:0}
   .overview-reset .btn{font-size:9px;padding:5px 4px}
   .series-focus strong{font-size:17px}
  }
  @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}


  /* V6 · Allineamenti e gerarchia delle informazioni */
  .overview-right {width:min(100%,385px);min-width:0;align-self:center}
  .overview-right .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;justify-content:stretch}
  .overview-right .stat{min-width:0;width:100%;padding:12px 7px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}
  .overview-right .stat span {font-size:10px;line-height:1.35;text-align:center}
  .overview-right .stat b {font-size:clamp(17px,2.2vw,23px);text-align:center}
  .overview-reset{margin-top:9px;width:100%;display:block}
  .overview-reset .btn{width:100%;max-width:none;min-height:40px;font-size:12px;text-align:center}
  .chips{gap:9px}
  .chips .chip{font-size:13px;padding:9px 12px;border-color:#465b78;line-height:1.4}
  .chips .chip strong{font-size:14px;font-weight:950;color:#fff}
  .chips .chip:first-child{background:color-mix(in srgb,var(--accent),#111c2e 89%);border-color:color-mix(in srgb,var(--accent),#465b78 50%)}
  .exercise-metrics .metrics-left{align-items:center;justify-content:center;text-align:center;padding:4px 0;gap:10px}
  .exercise-metrics .counterhead{width:100%;text-align:center;margin-bottom:2px}
  .exercise-metrics .counterhead h3{font-size:11px;line-height:1.35;text-align:center}
  .exercise-metrics .counterhead span{display:block;font-size:10px;margin-top:4px;text-align:center}
  .exercise-metrics .counter{width:100%;max-width:220px;margin:0 auto;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px;justify-content:center}
  .exercise-metrics .countertools{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;margin-top:0}
  .exercise-metrics .countertools>div{justify-content:center;text-align:center;width:100%}
  .exercise-metrics .countertools .btn{min-width:0;text-align:center}
  .exercise-metrics .timed-settings{width:100%;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
  .exercise-metrics .timed-settings label{max-width:160px;text-align:center}
  .exercise-metrics .inline-timer{width:100%}
  @media(max-width:850px){.overview-right{width:100%;margin-top:13px}.overview-right .stats{justify-content:stretch}}
  @media(max-width:580px){
    .overview-right{margin-top:14px;width:100%}
    .overview-right .stat{padding:10px 4px;min-width:0}
    .overview-right .stat span{font-size:9px;letter-spacing:.02em}
    .overview-right .stat b{font-size:18px}
    .overview-reset .btn{min-height:41px;font-size:12px}
    .chips .chip{font-size:12px;padding:8px 10px}
    .chips .chip strong{font-size:13px}
    .exercise-metrics{grid-template-columns:minmax(110px,.77fr) minmax(0,1.23fr)}
    .exercise-metrics .metrics-left{gap:8px;padding:4px 0}
    .exercise-metrics .counter{grid-template-columns:25px minmax(0,1fr) 25px;gap:2px}
    .exercise-metrics .countertools{gap:6px}
    .exercise-metrics .countertools>div:last-child{display:flex;flex-wrap:wrap;gap:4px!important}
    .exercise-metrics .countertools .btn{padding:5px 4px;font-size:9px}
    .exercise-metrics .timed-settings{display:flex;align-items:center;justify-content:center}
    .exercise-metrics .timed-settings input{margin:0}
  }

  /* V7 · Blocco e sezione su due livelli */
  .block-heading{min-width:0;flex:1 1 210px}
  .block-heading .sectiontitle{margin:0 0 4px;font-size:12px;line-height:1.35;letter-spacing:.065em}
  .group-subtitle{font-size:12px;letter-spacing:.025em;font-weight:800;color:#dce8fa;line-height:1.35}
  .block-window{margin-left:auto;white-space:nowrap;text-align:right;align-self:flex-start;padding-top:1px}
  /* Indicatori identici in altezza, compreso Tempo trascorso */
  .overview-right .stats{align-items:stretch;grid-auto-rows:1fr}
  .overview-right .stat{height:100%;min-height:78px;align-self:stretch}
  /* Riepilogo: tempo in fondo a destra, accanto al comando + / - */
  details.block>summary{gap:7px;justify-content:flex-start}
  details.block>summary>span:first-child{min-width:0;flex:1 1 auto}
  details.block>summary .blockinfo{flex:0 0 auto;margin-left:auto;text-align:right}
  details.block>summary:after{flex:0 0 20px;text-align:center;line-height:1}
  /* Swap pannelli: timer a sinistra, valori effettivi a destra */
  .exercise-metrics{grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr)}
  .exercise-metrics .inline-timer{order:0;grid-column:1;grid-row:1;min-width:0}
  .exercise-metrics .metrics-left{order:1;grid-column:2;grid-row:1;min-width:0}
  @media(max-width:580px){
    .overview-right .stat{min-height:76px}
    .exercise-metrics{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
    .block-heading .sectiontitle{font-size:11px}
    .group-subtitle{font-size:11px}
    .block-window{font-size:10px}
    details.block>summary .blockinfo{font-size:10px}
  }
  /* V8: comandi sessione affiancati e finestra di conferma interna */
  .overview-reset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .overview-reset .btn{width:100%;max-width:none;min-height:44px;white-space:normal;line-height:1.25}
  .overview-reset .btn.finish-btn{border-color:#498a77;color:#b6f7dd;background:#10362e}
  .overview-reset .btn.finish-btn:hover{background:#174b3f}
  .session-dialog{border:1px solid #516787;border-radius:18px;padding:24px;background:#101c30;color:#f0f5ff;width:min(92vw,440px);box-shadow:0 20px 75px #0009}
  .session-dialog::backdrop{background:rgba(0,0,0,.75)}
  .session-dialog h3{margin:0 0 9px;font-size:22px}
  .session-dialog p{color:#b8cbe4;line-height:1.55;margin:0 0 22px}
  .session-dialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .session-dialog .dialog-actions button{min-height:46px}
  @media(max-width:380px){.overview-reset{gap:6px}.overview-reset .btn{font-size:11px}}

  /* V13: azzeramento rosso tenue, stessa intensità del pulsante verde Termina */
  .overview-reset .btn[data-action="reset"]{
    color:#ffccd4;background:#361c26;border:1px solid #8a4a5b;
    box-shadow:none;
  }
  .overview-reset .btn[data-action="reset"]:hover:not(:disabled){background:#482630;border-color:#a85c70}
  .overview-reset .btn[data-action="reset"]:disabled{opacity:.45}

  /* V13: il disco del recupero è neutro in tutti gli allenamenti */
  .inline-timer.is-rest .sectiontitle{color:#b8c4d3}
  .inline-timer.is-rest .timer-caption{color:#d7dee9}
  .inline-timer.is-rest .timer-ring{box-shadow:0 0 0 5px #101c2d,0 0 20px rgba(148,163,184,.10)}
  .timer-controls .btn.rest-skip{background:#3d202a;border-color:#915163;color:#ffd1da;font-weight:900}
  .timer-controls .btn.rest-skip:hover:not(:disabled){background:#542a37;border-color:#af687a}

  /* V9 · Timer dominante e controlli compatti */
  .exercise-metrics{grid-template-columns:minmax(0,1.7fr) minmax(0,.8fr);align-items:stretch;gap:12px}
  .exercise-metrics .inline-timer{min-height:300px;padding:16px 10px}
  .exercise-metrics .inline-timer .timer-ring{width:min(238px,96%);height:auto;aspect-ratio:1;margin:10px auto}
  .exercise-metrics .inline-timer .timer-value{font-size:clamp(35px,4.5vw,52px)}
  .exercise-metrics .metrics-left{gap:7px;justify-content:flex-start;padding:10px 3px}
  .exercise-metrics .counterhead h3{font-size:10px}
  .exercise-metrics .counter{max-width:170px;grid-template-columns:28px minmax(0,1fr) 28px;gap:3px}
  .exercise-metrics .counter .countbtn{height:38px;font-size:18px}
  .exercise-metrics .countinput{font-size:clamp(23px,2.8vw,30px)}
  .exercise-metrics .countertools{gap:5px}
  .exercise-metrics .countertools .btn{padding:5px 4px;font-size:9px}
  .exercise-metrics .timed-settings{padding-top:5px;gap:5px}
  .recovery-inside{width:100%;max-width:190px;border-top:1px solid #344661;margin:6px auto 0;padding:10px 0 0;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
  .recovery-inside label{font-size:10px;color:#d9e7fb;font-weight:750;line-height:1.35}
  .recovery-inside label span{color:#a7bad2;font-weight:450}
  .recovery-inside .rest-edit{width:78px;min-height:36px;padding:5px 8px;font-size:17px;text-align:center;border:1px solid #567090;border-radius:9px;background:#12243b;color:#eef5ff}
  .timer-edit{display:none}
  @media(max-width:580px){
    .exercise-metrics{grid-template-columns:minmax(0,1.35fr) minmax(0,.75fr);gap:5px}
    .exercise-metrics .inline-timer{min-height:235px;padding:12px 4px}
    .exercise-metrics .inline-timer .timer-ring{width:min(165px,98%)}
    .exercise-metrics .inline-timer .timer-value{font-size:clamp(26px,7vw,37px)}
    .exercise-metrics .metrics-left{gap:7px;padding:5px 1px}
    .exercise-metrics .counter{grid-template-columns:22px minmax(0,1fr) 22px;gap:1px}
    .exercise-metrics .counter .countbtn{height:33px;font-size:17px}
    .exercise-metrics .countinput{font-size:23px}
    .exercise-metrics .countertools .btn{font-size:8px;padding:4px 2px}
    .recovery-inside{margin-top:4px;padding-top:8px}
    .recovery-inside label{font-size:9px}
    .recovery-inside .rest-edit{width:67px;min-height:33px;font-size:15px}
  }
  
  /* V14 · recupero: tre comandi in prima riga e salta recupero a tutta larghezza */
  .exercise-metrics .inline-timer .timer-controls.rest-controls{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;
  }
  .exercise-metrics .inline-timer .timer-controls.rest-controls .btn{
    min-width:0;width:100%;max-width:none;flex:none;white-space:nowrap;
    padding:9px 3px;font-size:clamp(9px,1vw,12px);min-height:39px;
  }
  .exercise-metrics .inline-timer .timer-controls.rest-controls .rest-skip{
    grid-column:1/-1;min-height:42px;font-size:12px;
  }
  /* V15: stessa griglia a due righe per il timer della tenuta */
  .exercise-metrics .inline-timer .timer-controls.work-controls{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;
  }
  .exercise-metrics .inline-timer .timer-controls.work-controls .btn{
    min-width:0;width:100%;max-width:none;flex:none;white-space:nowrap;
    padding:9px 3px;font-size:clamp(9px,1vw,12px);min-height:39px;
  }
  .exercise-metrics .inline-timer .timer-controls.work-controls [data-action="timerStop"]{
    grid-column:1/-1;min-height:42px;font-size:12px;
  }
  @media(max-width:580px){
    .exercise-metrics .inline-timer .timer-controls.work-controls{gap:4px}
    .exercise-metrics .inline-timer .timer-controls.work-controls .btn{font-size:9px;padding:8px 1px;min-height:36px}
    .exercise-metrics .inline-timer .timer-controls.work-controls [data-action="timerStop"]{font-size:11px;min-height:39px}
  }
  /* Conferme: gli stessi colori tenui dei comandi sessione */
  #sessionDialog #sessionConfirm{
    background:#361c26;border:1px solid #8a4a5b;color:#ffccd4;box-shadow:none;
  }
  #sessionDialog #sessionConfirm:hover{background:#482630;border-color:#a85c70}
  #finishDialog #finishConfirm{
    background:#10362e;border:1px solid #498a77;color:#b6f7dd;box-shadow:none;
  }
  #finishDialog #finishConfirm:hover{background:#174b3f}
  @media(max-width:580px){
    .exercise-metrics .inline-timer .timer-controls.rest-controls{gap:4px}
    .exercise-metrics .inline-timer .timer-controls.rest-controls .btn{font-size:9px;padding:8px 1px;min-height:36px}
    .exercise-metrics .inline-timer .timer-controls.rest-controls .rest-skip{font-size:11px;min-height:39px}
  }

.pause-label{display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.pause-icon{display:inline-block;position:relative;width:9px;height:11px;flex:0 0 9px;}
.pause-icon::before,.pause-icon::after{content:"";position:absolute;top:0;bottom:0;width:2px;border-radius:1px;background:currentColor;}
.pause-icon::before{left:1px;}
.pause-icon::after{right:1px;}

/* V18 · valori editabili dalla tastiera e controlli simmetrici */
.exercise-metrics .countinput:focus{outline:2px solid var(--accent);outline-offset:-2px;border-radius:6px;background:rgba(255,255,255,.06);}
.exercise-metrics .recovery-inside{max-width:190px;width:100%;}
.exercise-metrics .recovery-inside .rest-counter{width:100%;max-width:170px;display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:3px;align-items:center;}
.exercise-metrics .recovery-inside .rest-counter .rest-edit{background:transparent;border:0;width:100%;min-width:0;min-height:38px;padding:2px 0;font-size:clamp(23px,2.8vw,30px);font-weight:900;color:#fff;text-align:center;}
.exercise-metrics .recovery-inside .rest-counter .countbtn{height:38px;font-size:18px;}
.exercise-metrics .rest-edit::-webkit-inner-spin-button,.exercise-metrics .rest-edit::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
@media(max-width:580px){.exercise-metrics .recovery-inside .rest-counter{grid-template-columns:22px minmax(0,1fr) 22px;gap:1px;}.exercise-metrics .recovery-inside .rest-counter .countbtn{height:33px;font-size:17px;}.exercise-metrics .recovery-inside .rest-counter .rest-edit{font-size:23px;min-height:33px;}}

/* V20: allineamento unità recupero e riferimento al foglio */
.exercise-metrics .recovery-inside label .rest-unit{display:block;margin-top:3px;color:#a7bad2;font-weight:450;}
.exercise-metrics .recovery-inside .rest-reference{font-size:10px;color:#a7bad2;text-align:center;margin-top:0;line-height:1.25;}
@media(max-width:580px){.exercise-metrics .recovery-inside .rest-reference{font-size:9px;}}

/* V21: tipografia uniforme e leggermente più leggibile nei due pannelli di input */
.exercise-metrics .counterhead h3,
.exercise-metrics .recovery-inside label {font-size:13px;line-height:1.35;font-weight:800;}
.exercise-metrics .counterhead span,
.exercise-metrics .recovery-inside label .rest-unit {font-size:12px;line-height:1.3;font-weight:450;}
.exercise-metrics .countinput,
.exercise-metrics .recovery-inside .rest-counter .rest-edit {font-size:32px;}
.exercise-metrics .countertools,
.exercise-metrics .recovery-inside .rest-reference {font-size:11px;line-height:1.35;}
@media(max-width:580px){
  .exercise-metrics .counterhead h3,
  .exercise-metrics .recovery-inside label{font-size:12px;}
  .exercise-metrics .counterhead span,
  .exercise-metrics .recovery-inside label .rest-unit{font-size:11px;}
  .exercise-metrics .countinput,
  .exercise-metrics .recovery-inside .rest-counter .rest-edit{font-size:26px;}
  .exercise-metrics .countertools,
  .exercise-metrics .recovery-inside .rest-reference{font-size:10px;}
}

/* V22 · input divisi in due pannelli simmetrici, linea al centro esatto del disco */
.exercise-metrics .metrics-left{
 display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);
 gap:0;align-items:stretch;justify-content:stretch;text-align:center;
 padding:0 3px;min-height:0;height:100%;
}
.exercise-metrics .metrics-left .actual-value-panel{
 min-height:0;width:100%;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:8px;padding:6px 0;
}
.exercise-metrics .metrics-left .recovery-inside{
 width:100%;max-width:none;min-height:0;margin:0;
 border-top:1px solid #344661;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:7px;padding:6px 0;
}
.exercise-metrics .metrics-left .countertools .mini.muted,
.exercise-metrics .metrics-left .recovery-inside .rest-reference{
 font-size:11px;line-height:1.35;font-weight:400;
}
@media(max-width:580px){
 .exercise-metrics .metrics-left{padding:0 1px;}
 .exercise-metrics .metrics-left .actual-value-panel{gap:6px;padding:3px 0;}
 .exercise-metrics .metrics-left .recovery-inside{gap:5px;padding:4px 0;}
 .exercise-metrics .metrics-left .countertools .mini.muted,
 .exercise-metrics .metrics-left .recovery-inside .rest-reference{font-size:10px;}
}


.timer-controls.stopwatch-controls{display:flex;justify-content:center;}
.timer-controls.stopwatch-controls .btn{width:100%;}

/* V25 · Tenuta: soli tre comandi nella riga, senza pulsante di arresto */
.exercise-metrics .inline-timer .timer-controls.work-controls{grid-template-columns:repeat(3,minmax(0,1fr));}
/* V26 · Pannelli perfettamente simmetrici sull’altezza reale del timer.
   La divisione resta al 50% anche quando il recupero aggiunge una seconda riga di pulsanti. */
.exercise-metrics .metrics-left{
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
}
.exercise-metrics .metrics-left .actual-value-panel,
.exercise-metrics .metrics-left .recovery-inside{box-sizing:border-box;min-height:0;}
/* Solo cronometro serie: pulsante della stessa larghezza del cerchio. */
.exercise-metrics .inline-timer .timer-controls.stopwatch-controls{
  width:min(238px,96%);max-width:100%;margin:7px auto 0;
}
.exercise-metrics .inline-timer .timer-controls.stopwatch-controls .btn{
  width:100%;max-width:none;flex:1 1 100%;
}
@media(max-width:580px){
  .exercise-metrics .inline-timer .timer-controls.stopwatch-controls{width:min(165px,98%);}
}

  .objective-heading{font-size:11px;text-transform:uppercase;letter-spacing:.145em;color:var(--accent);font-weight:950;margin:0 0 9px}

.overview .muscle-summary{font-size:12px;color:#a9bbd2;margin-top:7px}
.overview .muscle-summary strong{color:#cad9eb}

/* V35: intestazione allenamento ordinata in quattro livelli. */
.overview .overview-subtitle{font-size:clamp(23px,3.3vw,32px);font-weight:950;line-height:1.16;letter-spacing:-.035em;margin:8px 0 16px;overflow-wrap:anywhere}
.overview .overview-field-label{display:block;color:#9db0ca;font-size:11px;letter-spacing:.09em;font-weight:850;text-transform:uppercase;margin-bottom:5px}
.overview .overview-muscles{margin-top:0}
.overview .muscle-summary{font-size:clamp(14px,1.75vw,18px);font-weight:850;line-height:1.45;letter-spacing:.035em;text-transform:uppercase;color:#e0ecfa;margin:0}
.overview .overview-equipment{margin-top:14px}
.overview .overview-equipment p{font-size:clamp(13px,1.4vw,15px);font-weight:650;color:#becfe4;line-height:1.4;margin:0}
@media(max-width:580px){.overview .overview-subtitle{font-size:clamp(22px,5.7vw,28px);margin-bottom:14px}.overview .muscle-summary{font-size:14px}}


/* V38: celebrazione compatta e bandiere incrociate, come nel riferimento. */
.complete{position:relative;overflow:hidden}
.complete::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top center,rgba(255,255,255,.06),transparent 46%);pointer-events:none}
.finish-hero{position:relative;isolation:isolate;height:154px;margin:0 0 14px;display:flex;justify-content:center;align-items:center;overflow:hidden}
.finish-crossed-flags{width:min(100%,248px);height:142px;position:relative;z-index:2;overflow:visible;filter:drop-shadow(0 5px 6px rgba(0,0,0,.22))}
.finish-crossed-flags .flag-cloth-left,.finish-crossed-flags .flag-cloth-right{transform-box:fill-box;transform-origin:center;animation:flagsCelebrate 3.4s ease-in-out infinite}
.finish-crossed-flags .flag-cloth-right{animation-delay:.15s}
.complete .finish-title{font-size:clamp(23px,3.6vw,30px);font-weight:950;letter-spacing:.025em;line-height:1.18;margin:0 0 9px;position:relative;z-index:2}
.complete .finish-workout{font-size:clamp(17px,2.6vw,21px);font-weight:800;letter-spacing:.085em;color:#a8e7dd;margin:0 0 14px;position:relative;z-index:2}
.confetti{position:absolute;top:0;left:0;right:0;height:100%;overflow:hidden;z-index:1;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.65) 68%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.65) 68%,transparent 100%)}
.confetti-piece{position:absolute;top:-20px;width:8px;height:13px;border-radius:2px;opacity:.85;animation:confettiFall var(--dur,3.5s) linear var(--delay,0s) infinite both}
.confetti-piece.square{border-radius:2px}
.confetti-piece.dot{width:7px;height:7px;border-radius:50%}
.confetti-piece:nth-child(5n){width:6px;height:12px}
.complete .large{display:none}
@keyframes flagsCelebrate{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes confettiFall{0%{transform:translate3d(0,-16px,0) rotate(0deg);opacity:0}8%{opacity:.95}85%{opacity:.8}100%{transform:translate3d(var(--drift,0px),195px,0) rotate(540deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.finish-crossed-flags .flag-cloth-left,.finish-crossed-flags .flag-cloth-right,.confetti-piece{animation:none}}


/* V40: il nome del programma prevale sui dettagli descrittivi. */
.overview .pre.overview-workout-name{
  font-size:clamp(27px,3.4vw,39px);
  font-weight:1000;line-height:1.12;letter-spacing:-.045em;
  color:var(--accent);text-transform:uppercase;
}
.overview .overview-duration{
  font-size:clamp(12px,1.35vw,14px);
  font-weight:750;letter-spacing:.02em;color:#a9bfd7;
  vertical-align:middle;white-space:nowrap;
}
.overview .overview-subtitle{
  font-size:clamp(15px,1.8vw,19px);font-weight:700;
  line-height:1.35;letter-spacing:0;color:#c6d6e9;
  margin:8px 0 15px;
}
@media(max-width:580px){
  .overview .pre.overview-workout-name{font-size:clamp(26px,7.3vw,34px)}
  .overview .overview-duration{font-size:12px}
  .overview .overview-subtitle{font-size:clamp(15px,4.2vw,18px);margin-bottom:14px}
}

/* V41: durata in evidenza accanto al titolo, senza grassetto. */
.overview .overview-duration{
  font-size:clamp(23px,2.9vw,34px);
  font-weight:400;letter-spacing:-.035em;
  color:var(--accent);vertical-align:baseline;
}
@media(max-width:580px){
  .overview .overview-duration{font-size:clamp(21px,5.9vw,27px)}
}

/* V42: tipografia uniforme nella sola intestazione sinistra. */
.overview .overview-heading,
.overview .overview-heading .overview-workout-name,
.overview .overview-heading .overview-duration,
.overview .overview-heading .overview-subtitle,
.overview .overview-heading .muscle-summary,
.overview .overview-heading .overview-field-label,
.overview .overview-heading .overview-equipment p{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-style:normal;
}
.overview .overview-heading .overview-subtitle{
  color:color-mix(in srgb,var(--accent) 64%,#f2f6ff 36%);
}

/* V43 - CALIWO Studio, editor locale integrato */
.tab-wrap{position:relative;min-width:0}
.tab-wrap .tab{width:100%;height:100%;padding-right:45px}
.tab-eye{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#d6e5fb;border:1px solid #425776;background:#263a57;cursor:pointer}
.tab-eye:hover,.tab-eye:focus-visible{background:var(--tab-accent);color:#111927;outline:2px solid #e0eaff}





#editorDialog{width:min(1450px,calc(100vw - 16px));max-width:none;height:min(94dvh,1050px);max-height:none;background:#101a2c;color:#f5f9ff;border:1px solid #465975;border-radius:19px;box-shadow:0 18px 80px #000b;padding:0;overflow:hidden}
#editorDialog::backdrop{background:rgba(2,7,18,.76);backdrop-filter:blur(6px)}
.editor-shell{height:100%;display:flex;flex-direction:column}
.editor-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px 13px;border-bottom:1px solid #31445f;background:#142238;flex-wrap:wrap}
.editor-top h2{font-size:22px;margin:0;color:var(--accent);letter-spacing:-.04em}
.editor-top p{margin:3px 0 0;color:#a9c4d9;font-size:12px}
.editor-top-actions{display:flex;gap:7px;flex-wrap:wrap}
.editor-tabs{display:flex;gap:7px;padding:12px 20px;border-bottom:1px solid #304059;flex-wrap:wrap}
.editor-tab{background:#22324b;border:1px solid #465976;border-radius:9px;padding:8px 18px;color:#e7f1ff;font-weight:850;cursor:pointer}
.editor-tab[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#0b1726}
.editor-body{padding:17px 20px 30px;overflow:auto;flex:1;min-height:0}
.editor-info{font-size:12px;color:#afd6ce;margin:0 0 16px}
.editor-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:16px}
.editor-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.editor-field label{color:#9db3d1;font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
.editor-field input,.editor-field textarea,.edit-table input,.edit-table textarea,.edit-table select{font:inherit;color:#eef5ff;background:#0c1525;border:1px solid #344b67;border-radius:8px;padding:9px 8px;width:100%;min-width:0;outline:none}
.editor-field input:focus,.editor-field textarea:focus,.edit-table input:focus,.edit-table textarea:focus,.edit-table select:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft)}
.editor-field textarea{resize:vertical;min-height:60px}
.editor-block{border:1px solid #344760;border-radius:14px;margin:14px 0;background:#142135;overflow:hidden}
.editor-block-head{padding:13px;background:#1b2c45;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.editor-block-head strong{color:#edf8ff;font-size:14px}
.editor-block-tools{display:flex;gap:6px;flex-wrap:wrap}
.editor-block-fields{display:grid;grid-template-columns:2fr 1fr 2fr;gap:9px;padding:12px}
.edit-scroll{width:100%;overflow-x:auto;padding:0 11px 10px}
.edit-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0 7px;text-align:left}
.edit-table th{font-size:10px;text-transform:uppercase;color:#a1bbda;letter-spacing:.05em;padding:0 6px 3px;white-space:nowrap}
.edit-table td{vertical-align:top;padding:0 4px}
.edit-table tbody tr{background:#172740}
.edit-table input,.edit-table select{font-size:12px;min-height:37px}
.edit-table textarea{font-size:12px;min-height:37px;height:37px;resize:vertical}
.edit-table .col-exercise{width:18%}.edit-table .col-note{width:25%}.edit-table .col-type{width:10%}.edit-table .col-superset{width:8%}.edit-table .col-scheme{width:13%}.edit-table .col-tempo{width:8%}.edit-table .col-rest{width:8%}.edit-table .col-kind{width:9%}.edit-table .col-move{width:10%}
.editor-small{background:#253954;border:1px solid #4a6384;border-radius:8px;color:#f0f6ff;padding:7px 10px;cursor:pointer;font-size:12px;font-weight:800}
.editor-small:hover{background:#344c6b}
.editor-small.negative{border-color:#81536a;color:#ffccd2}
.editor-actions{display:flex;align-items:center;gap:8px;padding:12px;flex-wrap:wrap}
.editor-small.icontext{display:inline-flex;align-items:center;gap:7px}
.editor-actrow{display:flex;gap:4px;min-width:142px}
.editor-actrow button{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;padding:0;border:1px solid #435978;border-radius:6px;background:#243751;color:#f1f5ff;cursor:pointer}
.editor-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.editor-icon svg{width:16px;height:16px;display:block;fill:currentColor;stroke:none}
.editor-actrow .move-icon svg{width:17px;height:17px}
.editor-small.icontext .editor-icon svg{width:15px;height:15px}
.editor-actrow button:hover{background:#34516d}
.editor-footer{border-top:1px solid #324962;background:#142238;padding:10px 20px;color:#b1c8de;font-size:11px}
@media(max-width:850px){.editor-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-block-fields{grid-template-columns:1fr 1fr}.editor-top{align-items:flex-start}}
@media(max-width:560px){.tab-wrap .tab{padding:9px 33px 9px 9px}.tab-eye{right:4px;width:29px;height:30px}.editor-meta{grid-template-columns:1fr}.editor-meta .editor-field{grid-column:1/-1 !important}.editor-block-fields{grid-template-columns:1fr}.editor-body{padding:12px}.editor-top{padding:13px}.editor-tabs{padding:10px}}


/* V44: destructive actions and reliable in-editor confirmation */
.editor-actrow button.negative{border-color:#81536a;color:#ffccd2;background:#253954}
.editor-actrow button.negative:hover,.editor-small.negative:hover{border-color:#a7697d;background:#423047;color:#ffe4e9}
.editor-shell{position:relative}
.editor-delete-overlay[hidden]{display:none!important}
.editor-delete-overlay{position:absolute;z-index:20;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(3,9,19,.76);padding:16px;backdrop-filter:blur(3px)}
.editor-delete-card{background:#17243a;border:1px solid #765063;border-radius:16px;padding:24px;width:min(100%,420px);box-shadow:0 18px 50px #0009}
.editor-delete-card h3{font-size:19px;color:#ffe3e7;margin:0 0 10px}
.editor-delete-card p{font-size:14px;color:#c8d6e8;line-height:1.55;margin:0 0 20px;overflow-wrap:anywhere}
.editor-delete-buttons{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.editor-delete-buttons .editor-small{min-height:42px;padding:10px 16px}
.editor-delete-buttons .editor-small.negative{background:#442734;border-color:#a25a70;color:#ffe1e7}


/* V45 - Blocco: intestazione modificabile direttamente, note a tutta larghezza. */
.editor-block-head .editor-block-heading{display:flex;align-items:center;gap:6px;flex:1 1 320px;flex-wrap:wrap;min-width:0}
.editor-block-heading .block-num{font-size:14px;font-weight:800;color:#edf8ff;white-space:nowrap}
.editor-block-heading .editor-inline-input{background:transparent;color:#edf8ff;border:1px solid transparent;border-radius:7px;outline:0;padding:5px 7px;font:inherit;font-weight:750;min-width:100px;max-width:100%;transition:background .15s,border-color .15s}
.editor-block-heading .editor-inline-input:hover{background:#293b55;border-color:#435978}
.editor-block-heading .editor-inline-input:focus{background:#0c1525;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft)}
.editor-block-heading input[data-field="title"]{flex:1 1 210px;width:210px;font-size:14px}
.editor-block-heading input[data-field="window"]{flex:0 1 115px;width:115px;font-size:12px;font-weight:500;color:#b7cce5;text-align:right}
.editor-block-fields{display:block;padding:12px}
.editor-block-fields .editor-field{width:100%}
.editor-block-fields .editor-field input{width:100%}
.editor-actrow button.paste-mode{background:#1b493b;border-color:#459b77;color:#bbfbe1}
.editor-actrow button.paste-mode:hover{background:#265d49}
.editor-info .copy-mode-note{font-weight:800;color:#aff7cf}
@media(max-width:560px){.editor-block-heading input[data-field="window"]{text-align:left}}


/* V47 – accesso editor integrato nell'intestazione */
.tab-edit{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:var(--tab-accent);border:1px solid color-mix(in srgb,var(--tab-accent),#425776 42%);background:color-mix(in srgb,var(--tab-accent),#101b2d 88%);cursor:pointer;transition:background .15s,border-color .15s}
.tab-edit:hover,.tab-edit:focus-visible{background:color-mix(in srgb,var(--tab-accent),#101b2d 68%);border-color:var(--tab-accent);outline:2px solid color-mix(in srgb,var(--tab-accent),transparent 60%)}
.overview-editrow{display:flex;justify-content:flex-end;align-items:center;margin-top:13px;margin-bottom:0}
.overview-editbtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:34px;padding:7px 12px;font-size:11px;line-height:1.2;font-weight:800;white-space:nowrap;color:var(--accent);background:color-mix(in srgb,var(--accent),#142238 90%);border:1px solid color-mix(in srgb,var(--accent),#415472 45%);border-radius:9px;cursor:pointer}
.overview-editbtn:hover,.overview-editbtn:focus-visible{background:color-mix(in srgb,var(--accent),#142238 75%);border-color:var(--accent)}
.overview-editbtn svg{flex:none}
.overview-heading .meter{margin-top:9px}
@media(max-width:560px){.tab-edit{right:4px;width:29px;height:30px}.overview-editrow{margin-top:12px}.overview-editbtn{min-height:32px}}

/* V48 - visualizzazione scheda e comandi contestuali */
.tab-wrap .tab{padding-right:87px}
.tab-edit{right:9px}
.tab-preview{position:absolute;top:50%;right:48px;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:var(--tab-accent);border:1px solid color-mix(in srgb,var(--tab-accent),#425776 42%);background:color-mix(in srgb,var(--tab-accent),#152238 88%);cursor:pointer}
.tab-preview:hover,.tab-preview:focus-visible{background:color-mix(in srgb,var(--tab-accent),#101b2d 68%);border-color:var(--tab-accent);outline:2px solid color-mix(in srgb,var(--tab-accent),transparent 60%)}
.overview-heading .overview-equipment-row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:13px}
.overview-heading .overview-equipment-row .overview-equipment{margin:0;min-width:0;flex:1 1 150px}
.overview-heading .overview-equipment-row .overview-editrow{margin:0;flex:0 0 auto}
.overview-heading .meter{margin-top:18px}
.editor-mode-switch{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.editor-mode-btn{background:#22324b;border:1px solid #506787;border-radius:9px;padding:9px 13px;color:#d6e8f9;font-size:12px;font-weight:850;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.editor-mode-btn[aria-pressed="true"]{background:color-mix(in srgb,var(--preview-accent),#142238 81%);border-color:var(--preview-accent);color:#f5f9ff}
.editor-mode-btn svg{width:16px;height:16px}
#editorDialog.preview-active .editor-top-actions #editorRestore,#editorDialog.preview-active .editor-top-actions #editorImport{display:none}
.editor-body.preview-body{background:linear-gradient(180deg,#0e1829,#101b2f);padding:24px clamp(14px,3vw,38px) 42px}
.sheet-preview{--sheet-accent:var(--accent);max-width:1000px;margin:0 auto;font-family:inherit;color:#e8f1fc}
.sheet-hero{border:1px solid color-mix(in srgb,var(--sheet-accent),#394d64 65%);border-top:5px solid var(--sheet-accent);border-radius:18px;background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--sheet-accent),transparent 89%),transparent 62%),#16243b;padding:25px clamp(18px,3vw,30px);margin-bottom:20px}
.sheet-hero .sheet-kicker{font-size:11px;font-weight:900;letter-spacing:.17em;text-transform:uppercase;color:var(--sheet-accent);margin-bottom:6px}
.sheet-hero h2{font-size:clamp(28px,5vw,42px);color:var(--sheet-accent);font-weight:950;line-height:1.1;letter-spacing:-.045em;margin:0 0 7px}
.sheet-subtitle{color:#e2eefc;font-size:17px;font-weight:700;margin-bottom:16px}
.sheet-musc{color:#d5e3f4;font-size:12px;letter-spacing:.06em;font-weight:800;text-transform:uppercase;margin-bottom:15px}
.sheet-meta{display:flex;flex-wrap:wrap;gap:8px}
.sheet-meta span{border:1px solid #3b506b;background:#0d192c;border-radius:999px;font-size:12px;color:#d7e6f7;padding:6px 12px}
.sheet-section{border:1px solid #32435d;background:#142237;border-radius:17px;margin:0 0 15px;overflow:hidden}
.sheet-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:17px 18px;background:#1d304a;border-bottom:1px solid #354a66}
.sheet-section-num{color:var(--sheet-accent);font-size:10px;letter-spacing:.13em;font-weight:950;display:block;margin-bottom:4px}
.sheet-section-head h3{font-size:clamp(17px,2.4vw,21px);line-height:1.2;font-weight:900;margin:0}
.sheet-section-window{border:1px solid color-mix(in srgb,var(--sheet-accent),#4a6079 60%);border-radius:8px;color:#c3d5e9;font-size:12px;white-space:nowrap;padding:6px 9px}
.sheet-block-note{margin:14px 18px 5px;padding:10px 13px;border-left:3px solid var(--sheet-accent);background:#0d1b2f;border-radius:0 8px 8px 0;color:#c2d2e6;font-size:12px;line-height:1.5}
.sheet-exercises{padding:12px 15px 17px;display:grid;gap:8px}
.sheet-group-caption{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--sheet-accent);font-weight:950;padding:10px 4px 2px}
.sheet-exercise{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;align-items:start;padding:14px 15px;border:1px solid #354b67;background:#0e1b2e;border-radius:11px}
.sheet-exercise-name{font-weight:850;font-size:15px;color:#f4f8ff;margin-bottom:6px;overflow-wrap:anywhere}
.sheet-exercise-note{font-size:12px;line-height:1.5;color:#b9c9de;white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-exercise-detail{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:335px}
.sheet-pill{display:inline-flex;align-items:center;padding:6px 9px;border-radius:7px;border:1px solid #3a506c;background:#1d304b;font-size:11px;color:#ccdbed;white-space:nowrap}
.sheet-pill.primary{background:color-mix(in srgb,var(--sheet-accent),#0f1e32 88%);border-color:color-mix(in srgb,var(--sheet-accent),#455872 65%);color:#f7fbff;font-weight:950}
.sheet-footnotes{padding:19px 23px;background:#142237;border:1px solid #32435d;border-radius:16px}
.sheet-footnotes h3{font-size:14px;color:var(--sheet-accent);text-transform:uppercase;letter-spacing:.1em;margin:0 0 11px}
.sheet-footnotes p{color:#cad9ea;line-height:1.5;font-size:12px;margin:0 0 8px}
.sheet-empty{font-size:13px;color:#9fb5cf;padding:12px}
@media(max-width:600px){.tab-wrap .tab{padding-right:69px}.tab-preview{right:35px;width:27px;height:30px}.tab-edit{width:27px;height:30px}.overview-heading .overview-equipment-row{align-items:flex-end}.overview-editbtn{font-size:10px}.sheet-exercise{grid-template-columns:1fr}.sheet-exercise-detail{justify-content:flex-start}.editor-mode-btn{padding:8px 9px}}

/* V49: names and eight customizable workouts */
#tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.tab-wrap{min-width:0}
.tab-wrap .tab b{overflow-wrap:anywhere;font-size:clamp(12px,1.15vw,16px);line-height:1.2}
.editor-name-tab{display:flex;gap:7px;align-items:center;padding:5px 9px;background:#20324c;border:1px solid #485c78;border-radius:10px;min-width:0}
.editor-name-tab[aria-selected="true"]{border-color:var(--accent);background:color-mix(in srgb,var(--accent),#15253b 85%)}
.editor-name-tab .editor-tab{padding:7px 10px;min-width:35px;color:var(--accent);background:#101b30}
.editor-name-input{font:inherit;font-size:13px;font-weight:800;color:#f2f7ff;background:transparent;border:1px solid transparent;border-radius:6px;padding:6px;width:clamp(100px,12vw,174px);min-width:0;outline:none}
.editor-name-input:hover,.editor-name-input:focus{border-color:var(--accent);background:#101b30}
.editor-add-workout{font-size:22px;min-width:42px;min-height:40px;border:1px dashed #6c849d;background:#253954;border-radius:10px;color:#e7f3ff;font-weight:800;cursor:pointer}
.editor-add-workout:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:900px){#tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){#tabs{grid-template-columns:1fr}.editor-name-tab{width:100%;justify-content:space-between}.editor-name-input{flex:1;width:100%}}


/* V50 — split Serie × Rip/Tenuta, compact unit selector */
.edit-table{min-width:1100px;table-layout:fixed}
.edit-table .col-exercise{width:17%}
.edit-table .col-note{width:23%}
.edit-table .col-type{width:9%}
.edit-table .col-superset{width:7%}
.edit-table .col-scheme{width:15%}
.edit-table .col-kind{width:5.5%}
.edit-table .col-tempo{width:7%}
.edit-table .col-rest{width:7.5%}
.edit-table .col-move{width:9%}
.editor-scheme-pair{display:grid;grid-template-columns:minmax(0,.72fr) 12px minmax(0,1.38fr);align-items:center;gap:3px}
.editor-scheme-pair span{text-align:center;font-size:13px;font-weight:800;color:#b4cee8}
.editor-scheme-pair input{min-width:0;text-align:center;padding:8px 3px}
.edit-table select[data-field="kind"]{padding:8px 1px;text-align:center;text-align-last:center;min-width:0;font-size:11px}
.editor-dual-heading{display:grid;grid-template-columns:minmax(0,.72fr) 12px minmax(0,1.38fr);gap:3px;text-align:center}
.editor-dual-heading span:nth-child(2){grid-column:3}


/* Compact RIP/TENUTA and RECUPERO while retaining room for notes. */
.edit-table .col-exercise{width:18.5%}
.edit-table .col-note{width:26%}
.edit-table .col-scheme{width:12%}
.edit-table .col-rest{width:6%}
.editor-scheme-pair,.editor-dual-heading{
  grid-template-columns:minmax(0,.8fr) 12px minmax(0,1.1fr);
}
.editor-rest-pair{
  display:grid;
  grid-template-columns:minmax(0,1fr) 12px;
  gap:3px;
  align-items:center;
}
.editor-rest-pair input{min-width:0;text-align:center;padding:8px 2px}
.editor-rest-pair span{
  color:#b4cee8;
  font-size:13px;
  font-weight:800;
  text-align:center;
}


/* V52: original V48 workout-tab appearance, names only. */
#editorTabs .editor-name-tab{
 display:flex;align-items:center;min-width:0;gap:0;
 padding:0;background:#22324b;border:1px solid #465976;
 border-radius:9px;color:#e7f1ff;font-weight:850;
}
#editorTabs .editor-name-tab[aria-selected="true"]{
 background:var(--accent);border-color:var(--accent);color:#0b1726;
}
#editorTabs .editor-name-input,
#editorTabs .editor-name-static{
 display:block;width:clamp(120px,13vw,190px);min-width:0;
 margin:0;padding:10px 15px;
 border:0;border-radius:8px;background:transparent;
 color:inherit;font:inherit;font-size:13px;font-weight:850;
 text-align:center;outline:none;
}
#editorTabs .editor-name-input{cursor:text;}
#editorTabs .editor-name-input:focus{
 box-shadow:inset 0 0 0 2px rgba(255,255,255,.65);
 background:rgba(0,0,0,.09);
}
#editorTabs .editor-name-static{cursor:pointer;}
@media(max-width:580px){
 #editorTabs .editor-name-tab{width:auto;justify-content:center}
 #editorTabs .editor-name-input,#editorTabs .editor-name-static{width:clamp(115px,38vw,190px)}
}


/* V54 — elimination beside edit/preview, shown only while editing. */
#editorDeleteWorkout{border-color:#8d4d61;color:#ffcbcf;background:#342330}
#editorDeleteWorkout:hover{background:#582b3b;border-color:#bf7588}
#editorDialog.preview-active #editorDeleteWorkout{display:none}

/* V55 - intestazione stile V48 e pulsante Modifica con sfondo blu. */
#editorDialog #editorModeEdit,
#editorDialog #editorModeEdit[aria-pressed="true"]{
  background:#22324b;
  border-color:var(--preview-accent,#506787);
  color:#d6e8f9;
}
#editorDialog #editorModeEdit:hover{
  background:#2a405c;
}
#editorDialog #editorSubtitle{max-width:760px;line-height:1.45}
/* Colonne compatte, serie e ripetizioni esattamente della stessa larghezza. */
.edit-table .col-exercise{width:19.5%}
.edit-table .col-note{width:28%}
.edit-table .col-type{width:9%}
.edit-table .col-superset{width:5.5%}
.edit-table .col-scheme{width:12%}
.edit-table .col-kind{width:5.5%}
.edit-table .col-tempo{width:5.5%}
.edit-table .col-rest{width:6%}
.edit-table .col-move{width:9%}
.editor-scheme-pair,.editor-dual-heading{
  grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);
}
.editor-rest-pair{grid-template-columns:minmax(0,1fr) 23px;gap:3px}
.editor-rest-pair span{font-weight:800;font-size:13px}

/* V56: note del blocco compatte e in secondo piano rispetto agli esercizi. */
.editor-block-fields{padding:6px 12px 8px;background:transparent}
.editor-block-fields .editor-block-note-input{
  display:block;width:100%;height:29px;min-height:29px;
  padding:5px 10px;font:inherit;font-size:11px;font-weight:500;
  color:#94a7bd;background:#101b2c;border:1px solid #293b51;
  border-radius:6px;outline:none;
}
.editor-block-fields .editor-block-note-input::placeholder{color:#71869c;opacity:1;font-style:italic}
.editor-block-fields .editor-block-note-input:focus{border-color:#5c7797;background:#142236;color:#d4e3f4}
.editor-block-fields .editor-block-note-input:focus::placeholder{color:transparent}
/* Colonne: esercizio e tipologia leggermente piu' strette, piu' spazio alle note. */
.edit-table .col-exercise{width:17.5%}
.edit-table .col-note{width:31%}
.edit-table .col-type{width:8%}
/* Centra intestazioni e contenuti da Tipologia a Recupero. */
.edit-table th:nth-child(n+3):nth-child(-n+8),
.edit-table td:nth-child(n+3):nth-child(-n+8){text-align:center}
.edit-table td:nth-child(n+3):nth-child(-n+8) > input,
.edit-table td:nth-child(n+3):nth-child(-n+8) > select{text-align:center;text-align-last:center}
.edit-table td:nth-child(n+3):nth-child(-n+8) > input{padding-left:4px;padding-right:4px}

/* V57: dati generali su una sola riga, durata compatta, note a larghezza piena */
.editor-meta.studio-main-meta{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(83px,.42fr) minmax(0,1.2fr) minmax(0,1.5fr);gap:11px;align-items:start}
.editor-meta.studio-main-meta>.editor-field{grid-column:auto!important}
.editor-meta.studio-main-meta>.studio-workout-notes{grid-column:1/-1!important}
.editor-meta.studio-main-meta .editor-field textarea{min-height:39px;height:39px}
.editor-meta.studio-main-meta .studio-workout-notes textarea{min-height:62px;height:62px}
.editor-meta.studio-main-meta .editor-field input{min-height:39px}
@media(max-width:760px){.editor-meta.studio-main-meta{grid-template-columns:minmax(0,1fr) 95px}.editor-meta.studio-main-meta>.editor-field:nth-child(3),.editor-meta.studio-main-meta>.editor-field:nth-child(4){grid-column:auto!important}}
@media(max-width:560px){.editor-meta.studio-main-meta{grid-template-columns:minmax(0,1fr) 85px}.editor-meta.studio-main-meta>.editor-field{grid-column:auto!important}.editor-meta.studio-main-meta>.studio-workout-notes{grid-column:1/-1!important}}

/* V58: note a larghezza totale e gruppi muscolari allineati agli altri campi. */
.editor-meta.studio-main-meta>.studio-workout-notes{grid-column:1/-1!important;width:100%;min-width:0}
.editor-meta.studio-main-meta>.studio-workout-notes textarea{display:block;width:100%;max-width:100%}
.editor-meta.studio-main-meta>.editor-field:not(.studio-workout-notes)>input,
.editor-meta.studio-main-meta>.editor-field:not(.studio-workout-notes)>textarea{height:42px;min-height:42px;box-sizing:border-box}

/* V59 — Row and notes share exactly the same full-width container. */
.editor-meta.studio-main-meta{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 width:100%;
 max-width:none;
 box-sizing:border-box;
}
.editor-meta.studio-main-meta>.studio-fields-row{
 display:grid;
 grid-template-columns:minmax(0,1.6fr) minmax(83px,.42fr) minmax(0,1.2fr) minmax(0,1.5fr);
 gap:11px;
 width:100%;
 min-width:0;
}
.editor-meta.studio-main-meta>.studio-workout-notes{
 display:flex;
 width:100%;
 max-width:none;
 min-width:0;
 align-self:stretch;
 grid-column:auto!important;
}
.editor-meta.studio-main-meta>.studio-workout-notes textarea{
 display:block;
 width:100%;
 max-width:none;
 min-width:0;
 box-sizing:border-box;
}
@media(max-width:760px){
 .editor-meta.studio-main-meta>.studio-fields-row{
  grid-template-columns:minmax(0,1fr) minmax(83px,95px);
 }
}
@media(max-width:560px){
 .editor-meta.studio-main-meta>.studio-fields-row{
  grid-template-columns:minmax(0,1fr) 85px;
 }
}

/* V60 — command arrangement: right 2×2; restore next to delete. */
.editor-top{align-items:flex-start}
.editor-top>div:first-child{flex:1 1 370px;min-width:0}
.editor-top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex:0 0 auto;width:min(315px,100%);align-self:flex-start}
.editor-top-actions>.editor-small{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:8px 9px}
.editor-top-actions>.editor-small svg{width:15px;height:15px}
#editorRestore{border-color:#526d8d;background:#22324b;color:#d6e8f9}
#editorRestore:hover{background:#314963;border-color:var(--preview-accent,#789cb9)}
#editorDialog.preview-active #editorRestore{display:none}
#editorDialog.preview-active .editor-top-actions #editorImport{display:inline-flex}
/* Desktop: scale all fields to the available width rather than forcing a 1100px table. */
@media(min-width:1050px){
 .edit-scroll{overflow-x:visible;padding:0 7px 10px}
 .edit-table{width:100%;min-width:0;table-layout:fixed}
}
.edit-table{table-layout:fixed}
.edit-table th{padding:0 2px 3px;font-size:9px;letter-spacing:0;white-space:nowrap}
.edit-table td{padding:0 2px}
.edit-table input,.edit-table textarea,.edit-table select{padding:7px 3px;font-size:11px}
.edit-table textarea{font-size:11px}
.edit-table .col-exercise{width:15%}
.edit-table .col-note{width:20%}
.edit-table .col-type{width:7%}
.edit-table .col-superset{width:6%}
.edit-table .col-scheme{width:12%}
.edit-table .col-kind{width:6%}
.edit-table .col-tempo{width:7%}
.edit-table .col-rest{width:11%}
.edit-table .col-move{width:16%}
.editor-actrow{gap:3px;min-width:0;justify-content:center}
.editor-actrow button{flex:1 1 0;min-width:0;width:auto;max-width:34px;height:31px}
.editor-scheme-pair,.editor-dual-heading{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);gap:2px}
.editor-scheme-pair input{padding:7px 1px;font-size:11px;min-width:0}
.editor-rest-pair{grid-template-columns:minmax(0,1fr) 20px;gap:2px}
.editor-rest-pair input{padding:7px 1px;font-size:11px;min-width:0}
.editor-rest-pair span{font-size:11px;font-weight:400;color:#a9c1d8}
@media(max-width:1049px){.edit-table{min-width:925px}}
@media(max-width:590px){.editor-top-actions{width:100%;max-width:340px}.editor-top>div:first-child{flex-basis:100%}}
/* Print only the rendered clean workout summary, never the app controls. */
#studioPrintArea{display:none}
@media print{
 @page{size:A4;margin:12mm}
 body{background:#fff!important;color:#141c29!important}
 body>*:not(#studioPrintArea){display:none!important}
 #studioPrintArea{display:block!important;position:static!important;width:100%!important;max-width:none!important;overflow:visible!important;background:#fff!important;color:#182338!important}
 #studioPrintArea .sheet-preview{max-width:none;color:#182338!important}
 #studioPrintArea .sheet-hero,#studioPrintArea .sheet-section,#studioPrintArea .sheet-footnotes{break-inside:avoid;box-shadow:none!important;color:#182338!important;background:#f5f7fa!important;border-color:#a9b6c6!important}
 #studioPrintArea .sheet-section-head{background:#e8edf4!important;color:#182338!important}
 #studioPrintArea .sheet-hero h2,#studioPrintArea .sheet-section-num{color:#284a7b!important}
 #studioPrintArea .sheet-hero * ,#studioPrintArea .sheet-section *,#studioPrintArea .sheet-footnotes *{text-shadow:none!important}
 #studioPrintArea .sheet-exercise,#studioPrintArea .sheet-meta span,#studioPrintArea .sheet-block-note{background:#fff!important;color:#192337!important;border-color:#bbc5d1!important;break-inside:avoid}
 #studioPrintArea .sheet-exercise * ,#studioPrintArea .sheet-hero .sheet-subtitle,#studioPrintArea .sheet-musc,#studioPrintArea .sheet-section-head h3{color:#192337!important}
}

/* V61 — balanced RECUPERO/SERIE widths and precisely aligned action header/rows. */
.edit-table .col-rest{width:6%}
.edit-table .col-note{width:25%}
.edit-table th.col-move{text-align:center}
.edit-table tbody td{vertical-align:middle;padding:5px 2px}
.edit-table tbody tr{background:#172740}
.edit-table .editor-actrow{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-height:37px;margin:0 auto}
.edit-table .editor-actrow button{flex:1 1 0;max-width:34px;min-width:0}
.edit-table .editor-rest-pair{align-items:center;grid-template-columns:minmax(0,1fr) 18px;gap:1px}
.edit-table .editor-rest-pair input{font-size:11px;padding-left:1px;padding-right:1px}
.edit-table .editor-rest-pair span{font-weight:400;font-size:10px}

/* V62 — one rounded, evenly padded container per exercise row. */
.edit-table{border-spacing:0 8px}
.edit-table tbody tr{background:transparent}
.edit-table tbody td{background:#172740;padding:8px 4px;vertical-align:middle}
.edit-table tbody td:first-child{border-radius:11px 0 0 11px;padding-left:10px}
.edit-table tbody td:last-child{border-radius:0 11px 11px 0;padding-right:10px}
.edit-table .col-move{width:11%}
.edit-table .col-note{width:30%}
.edit-table .editor-actrow{justify-content:flex-end;gap:4px}
.edit-table .editor-actrow button{flex:0 0 30px;width:30px;height:35px;max-width:30px}
.edit-table .editor-actrow .editor-drag-handle{margin-left:5px;width:31px;flex-basis:31px;max-width:31px;border:1px dashed #7189aa;background:#304463;color:#e0ecff;cursor:grab;touch-action:none;user-select:none}
.edit-table .editor-actrow .editor-drag-handle:active{cursor:grabbing}
.edit-table tbody tr.studio-row-dragging td{background:#284361;box-shadow:inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)}
.edit-table tbody tr.studio-row-dragging td:first-child{box-shadow:inset 2px 0 0 var(--accent),inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)}
.edit-table tbody tr.studio-row-dragging td:last-child{box-shadow:inset -2px 0 0 var(--accent),inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)}
.studio-drag-active,.studio-drag-active *{user-select:none!important}
@media(max-width:1049px){.edit-table .editor-actrow button{flex:0 0 30px}}

/* V63 — handle visually integrated at the extreme right; entire row follows cursor. */
.edit-table tbody td:last-child{padding-right:0;overflow:hidden}
.edit-table .editor-actrow{
  height:100%;min-height:48px;margin:0;
  display:flex;align-items:stretch;justify-content:flex-end;gap:5px;
}
.edit-table .editor-actrow>button:not(.editor-drag-handle){
  align-self:center;flex:0 0 30px;width:30px;height:35px;
}
.edit-table .editor-actrow .editor-drag-handle{
  align-self:stretch;position:relative;
  flex:0 0 31px;width:31px;max-width:31px;height:auto;min-height:48px;
  margin:0 0 0 4px;padding:0 5px;
  background:transparent;border:0;border-left:1px solid #3b536e;
  border-radius:0 10px 10px 0;
  color:#93aac7;cursor:grab;touch-action:none;user-select:none;
  transition:background .16s ease,color .16s ease;
}
.edit-table .editor-actrow .editor-drag-handle:hover{
  background:rgba(255,255,255,.09);color:var(--accent);
}
.edit-table .editor-actrow .editor-drag-handle:active{cursor:grabbing}
.edit-table .editor-actrow .editor-drag-handle svg{width:18px;height:22px}
.edit-table tbody tr.studio-row-dragging{opacity:.27}
.edit-table tbody tr.studio-row-dragging td{
  background:#365172;box-shadow:inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)
}
.edit-table tbody tr.studio-row-dragging td:first-child{
  box-shadow:inset 2px 0 0 var(--accent),inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)
}
.edit-table tbody tr.studio-row-dragging td:last-child{
  box-shadow:inset -2px 0 0 var(--accent),inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)
}
.edit-table.studio-drag-ghost{
  position:fixed;z-index:2147483000;margin:0;
  border-collapse:separate;border-spacing:0;min-width:0;
  pointer-events:none;filter:drop-shadow(0 14px 20px rgba(0,0,0,.45));
  will-change:transform;
}
.edit-table.studio-drag-ghost tbody td{
  background:#29415f;padding:8px 4px;
  border-top:1px solid var(--accent);border-bottom:1px solid var(--accent);
}
.edit-table.studio-drag-ghost tbody td:first-child{
  border-left:2px solid var(--accent);border-radius:11px 0 0 11px;padding-left:10px
}
.edit-table.studio-drag-ghost tbody td:last-child{
  border-right:2px solid var(--accent);border-radius:0 11px 11px 0
}
.edit-table.studio-drag-ghost input,.edit-table.studio-drag-ghost textarea,
.edit-table.studio-drag-ghost select{pointer-events:none}

/* V64: actions inside the selected workout tile; no extra control row. */
#editorTabs{align-items:center;overflow:visible}
#editorTabs .editor-name-tab[aria-selected="true"]{
 position:relative;
 gap:0;overflow:visible;z-index:2;
}
#editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
#editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
 flex:1 1 140px;width:clamp(110px,12vw,180px);
}
#editorTabs .editor-tile-tools{
 display:flex;align-items:center;gap:5px;
 margin:0 6px 0 auto;padding-left:6px;flex:0 0 auto;
}
#editorTabs .editor-tile-icon{
 display:grid;place-items:center;width:32px;height:32px;min-width:32px;
 padding:0;border-radius:8px;cursor:pointer;
 border:1px solid color-mix(in srgb,var(--accent),#41516c 55%);
 background:#1a2c45;color:var(--accent);
 transition:background .15s ease,border-color .15s ease;
}
#editorTabs .editor-tile-icon:hover,
#editorTabs .editor-tile-icon:focus-visible{
 background:#2a405e;border-color:var(--accent);outline:none;
}
#editorTabs .editor-tile-icon svg{width:17px;height:17px;display:block}
#editorTabs .editor-tile-options{position:relative}
#editorTabs .editor-tile-menu{
 position:absolute;right:0;top:calc(100% + 9px);
 width:max-content;min-width:210px;max-width:calc(100vw - 42px);
 padding:6px;border-radius:11px;z-index:200;
 background:#15243a;border:1px solid #527091;
 box-shadow:0 14px 30px rgba(0,0,0,.42);
}
#editorTabs .editor-tile-menu[hidden]{display:none}
#editorTabs .editor-tile-menu button{
 width:100%;display:flex;align-items:center;gap:9px;
 background:transparent;color:#e3efff;border:0;
 padding:11px 10px;text-align:left;border-radius:7px;
 font:inherit;font-size:12px;font-weight:750;cursor:pointer;
}
#editorTabs .editor-tile-menu button:hover{background:#28405b}
#editorTabs .editor-tile-menu button.danger{color:#ffb6c2}
#editorTabs .editor-tile-menu button.danger:hover{background:#473040}
#editorTabs .editor-tile-menu button svg{width:17px;height:17px;flex:0 0 17px}
@media(max-width:580px){
 #editorTabs .editor-name-tab[aria-selected="true"]{width:100%}
 #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
 #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{flex:1 1 auto;width:80px}
 #editorTabs .editor-tile-tools{margin-left:auto}
}

/* V65 — compact coherent training metadata and fully readable workout notes. */
#editorDialog .studio-main-meta{
 background:linear-gradient(145deg,#19283e,#142237);
 border:1px solid #38516e;border-radius:14px;
 padding:13px 15px 14px;margin:0 0 14px;
 gap:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#editorDialog .studio-main-meta .studio-fields-row{
 grid-template-columns:minmax(0,1.65fr) minmax(88px,.48fr) minmax(0,1.25fr) minmax(0,1.6fr);
 gap:10px;
 align-items:stretch;
}
#editorDialog .studio-main-meta .editor-field{gap:5px}
#editorDialog .studio-main-meta .editor-field label{
 font-size:10px;font-weight:800;letter-spacing:.07em;color:#a7bbd4;
}
#editorDialog .studio-main-meta input,
#editorDialog .studio-main-meta textarea{
 background:#101e31;border:1px solid #344a65;
 border-radius:8px;color:#e9f1ff;font-size:12px;
 padding:9px 11px;box-sizing:border-box;
}
#editorDialog .studio-main-meta .studio-fields-row input,
#editorDialog .studio-main-meta .studio-fields-row textarea{
 min-height:40px;height:40px;
}
#editorDialog .studio-main-meta .studio-fields-row textarea{
 overflow-y:auto;resize:none;line-height:1.35;
}
#editorDialog .studio-main-meta .studio-notes-area{
 width:100%;min-width:0;
 border-top:1px solid #2e415a;
 padding-top:10px;
}
#editorDialog .studio-main-meta .studio-workout-notes{
 width:100%;min-width:0;
 display:flex;flex-direction:column;gap:5px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
 display:block;width:100%;height:auto;min-height:74px;
 max-height:none;overflow:hidden;resize:none;
 line-height:1.55;white-space:pre-wrap;
 padding:11px 13px;
 background:#102036;border-color:#3a5676;
 font-size:12.5px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea:focus{
 background:#132741;
}
@media(max-width:760px){
 #editorDialog .studio-main-meta .studio-fields-row{
  grid-template-columns:minmax(0,1fr) 90px;
 }
}
@media(max-width:560px){
 #editorDialog .studio-main-meta{padding:11px}
}
/* Contextual help for Superset: hover shows native title, click opens panel. */
.studio-superset-head{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
}
.studio-superset-info{
 display:inline-flex;align-items:center;justify-content:center;
 width:15px;height:15px;padding:0;
 border-radius:50%;border:1px solid #7893b6;
 background:transparent;color:#c6d7ef;
 font-size:10px;font-family:Georgia,serif;font-weight:bold;
 cursor:help;line-height:1;
}
.studio-superset-info:hover,.studio-superset-info:focus-visible{
 color:var(--accent);border-color:var(--accent);outline:none;
}
.studio-superset-popup{
 position:fixed;z-index:2147483500;box-sizing:border-box;
 background:#21344d;border:1px solid #6583a4;
 border-radius:10px;padding:12px 14px;
 box-shadow:0 12px 28px rgba(0,0,0,.45);
 color:#e7f2ff;font-size:12px;line-height:1.5;
 text-transform:none;text-align:left;letter-spacing:normal;white-space:normal;
}

/* V66 — Uniform exercise cells and subtle grouped columns. */
#editorDialog .edit-table{
  border-spacing:0 9px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td{
  height:62px;
  box-sizing:border-box;
  position:relative;
  vertical-align:middle;
  padding-top:9px;
  padding-bottom:9px;
  background:#19283e;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:first-child{
  padding-left:10px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:last-child{
  padding-right:0;
}
/* Shared look with DESCRIZIONE / DURATA / ATTREZZI above. */
#editorDialog .edit-table tbody tr.studio-ex-row input,
#editorDialog .edit-table tbody tr.studio-ex-row select,
#editorDialog .edit-table tbody tr.studio-ex-row textarea{
  display:block;
  width:100%;
  height:42px;
  min-height:42px;
  max-height:42px;
  margin:0;
  padding:7px 5px;
  box-sizing:border-box;
  border:1px solid #344a65;
  border-radius:8px;
  background:#101e31;
  color:#e9f1ff;
  font-size:11px;
  font-weight:400;
  line-height:1.35;
  outline:none;
  box-shadow:none;
}
#editorDialog .edit-table tbody tr.studio-ex-row textarea{
  resize:none;
  overflow-y:auto;
  scrollbar-width:thin;
}
#editorDialog .edit-table tbody tr.studio-ex-row input:focus,
#editorDialog .edit-table tbody tr.studio-ex-row select:focus,
#editorDialog .edit-table tbody tr.studio-ex-row textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-rest-pair{
  height:42px;
  min-height:42px;
  align-items:center;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair input,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-rest-pair input{
  text-align:center;
  min-width:0;
  padding-left:1px;
  padding-right:1px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair span,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-rest-pair span{
  align-self:center;
  line-height:1;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:44px;
  height:44px;
  margin:0;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button:not(.editor-drag-handle){
  align-self:center;
  height:36px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow .editor-drag-handle{
  align-self:stretch;
  height:44px;
  min-height:44px;
}
/* Group divisions:
   [Esercizio, Note tecniche, Tipologia] | [Superset] |
   [Serie, Rip, Unità] | [Cadenza] | [Recupero] | [Azioni] */
#editorDialog .edit-table thead th:nth-child(4),
#editorDialog .edit-table thead th:nth-child(5),
#editorDialog .edit-table thead th:nth-child(7),
#editorDialog .edit-table thead th:nth-child(8),
#editorDialog .edit-table thead th:nth-child(9),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9){
  padding-left:11px;
}
#editorDialog .edit-table thead th{position:relative}
#editorDialog .edit-table thead th:nth-child(4)::before,
#editorDialog .edit-table thead th:nth-child(5)::before,
#editorDialog .edit-table thead th:nth-child(7)::before,
#editorDialog .edit-table thead th:nth-child(8)::before,
#editorDialog .edit-table thead th:nth-child(9)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::before{
  content:"";
  position:absolute;
  left:3px;
  top:13px;
  bottom:13px;
  width:1px;
  background:#405671;
  opacity:.75;
  pointer-events:none;
}
#editorDialog .edit-table thead th:nth-child(4)::before,
#editorDialog .edit-table thead th:nth-child(5)::before,
#editorDialog .edit-table thead th:nth-child(7)::before,
#editorDialog .edit-table thead th:nth-child(8)::before,
#editorDialog .edit-table thead th:nth-child(9)::before{
  top:2px;
  bottom:1px;
  opacity:.5;
}
#editorDialog .edit-table .col-exercise{width:15%}
#editorDialog .edit-table .col-note{width:28%}
#editorDialog .edit-table .col-type{width:7.5%}
#editorDialog .edit-table .col-superset{width:7%}
#editorDialog .edit-table .col-scheme{width:11%}
#editorDialog .edit-table .col-kind{width:5.5%}
#editorDialog .edit-table .col-tempo{width:6.5%}
#editorDialog .edit-table .col-rest{width:8.5%}
#editorDialog .edit-table .col-move{width:11%}
#editorDialog .edit-table th.col-move{text-align:center}
@media(max-width:1150px){
 #editorDialog .edit-table{min-width:1030px}
}
@media(min-width:1151px){
 #editorDialog .edit-table{min-width:0}
}


/* V67: uniform 1px dividers ONLY within exercise rows. */
#editorDialog .edit-table thead th:nth-child(4)::before,
#editorDialog .edit-table thead th:nth-child(5)::before,
#editorDialog .edit-table thead th:nth-child(7)::before,
#editorDialog .edit-table thead th:nth-child(8)::before,
#editorDialog .edit-table thead th:nth-child(9)::before{content:none!important;display:none!important}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::before{
 width:1px;opacity:1;background:#49617d;
 top:11px;bottom:11px;left:3px;
}
/* Section intervals more legible, without changing the common alignment. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7),
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8){padding-left:12px}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(3){padding-right:6px}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(6){padding-right:6px}
/* Action icons have equal breathing room beside the copy button and after delete. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9){padding-left:8px;padding-right:0}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::before{left:2px}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow{
 width:100%;display:flex;justify-content:flex-end;gap:5px;padding:0;margin:0;box-sizing:border-box;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button:not(.editor-drag-handle){
 flex:0 0 30px;width:30px;max-width:30px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle{
 flex:0 0 31px;width:31px;margin:0 0 0 0;max-width:31px;
}
/* Compact studio header: three familiar buttons inside a dropdown, plus close X. */
#editorDialog .editor-top{position:relative;align-items:center;padding-top:13px;padding-bottom:11px}
#editorDialog .editor-top-actions{
 display:flex;flex:0 0 auto;width:auto;gap:8px;align-items:center;justify-content:flex-end;
 margin-left:auto;align-self:center;
}
#editorDialog .studio-head-menu-wrap{position:relative}
#editorDialog .editor-top-actions>.studio-head-square,
#editorDialog .studio-head-menu-wrap>.studio-head-square{
 width:39px;height:39px;min-width:39px;min-height:39px;
 padding:8px;display:grid;place-items:center;
 background:#253954;border:1px solid #4a6384;color:#f0f6ff;border-radius:8px;
 cursor:pointer;
}
#editorDialog .studio-head-square:hover{background:#344c6b}
#editorDialog .studio-head-square svg{width:19px;height:19px}
#editorDialog .studio-head-menu[hidden]{display:none!important}
#editorDialog .studio-head-menu{
 position:absolute;right:0;top:calc(100% + 9px);z-index:250;
 display:flex;flex-direction:column;gap:6px;
 padding:9px;min-width:193px;
 background:#15243a;border:1px solid #4f6787;border-radius:11px;
 box-shadow:0 16px 38px rgba(0,0,0,.48);
}
#editorDialog .studio-head-menu>.editor-small{
 display:inline-flex!important;align-items:center;justify-content:flex-start;
 gap:9px;width:100%;min-height:36px;padding:8px 11px;
 font-size:12px;font-weight:800;white-space:nowrap;
 border-radius:8px;background:#253954;border:1px solid #4a6384;color:#f0f6ff;
}
#editorDialog .studio-head-menu>.editor-small:hover{background:#344c6b}
#editorDialog .studio-head-menu>.editor-small svg{width:15px;height:15px}
@media(max-width:590px){#editorDialog .editor-top-actions{width:auto;max-width:none;margin-left:auto}}


/* V68 — clearer exercise sections, exact 1px lines and balanced action spacing. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::before{
 content:none!important;display:none!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)::after,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(5)::after,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(7)::after,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(8)::after,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::after{
 content:"";display:block;position:absolute;left:3px;
 top:12px;bottom:12px;width:1px;min-width:1px;
 background:#4c607a;opacity:.8;pointer-events:none;border:0;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9){
 padding-left:12px;padding-right:6px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::after{left:3px}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow{
 width:100%;justify-content:space-between;gap:4px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle{
 margin-left:auto;
}
/* Headings sit slightly nearer their rows; first columns align with their fields. */
#editorDialog .edit-table{border-spacing:0 6px}
#editorDialog .edit-table thead th{padding-top:0;padding-bottom:0;vertical-align:bottom}
#editorDialog .edit-table thead th:nth-child(1){padding-left:14px;text-align:left}
#editorDialog .edit-table thead th:nth-child(2){padding-left:5px;text-align:left}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2){padding-left:4px}
#editorDialog .editor-block .edit-scroll{padding-bottom:2px}
#editorDialog .editor-block .editor-actions{padding-top:4px;padding-bottom:10px}
/* Drag-and-drop block control: shared visual language with exercise actions. */
#editorDialog .editor-block{transition:border-color .16s ease,box-shadow .16s ease}
#editorDialog .editor-block-head{padding-right:0}
#editorDialog .editor-block-tools{
 align-self:stretch;align-items:center;gap:5px;flex-wrap:nowrap;
 margin-left:auto;
}
#editorDialog .editor-block-tools .editor-block-icon{
 display:inline-flex;justify-content:center;align-items:center;
 width:34px;height:34px;flex:0 0 34px;padding:0;
 background:#253954;border:1px solid #4a6384;border-radius:7px;
 color:#f0f6ff;cursor:pointer;
}
#editorDialog .editor-block-tools .editor-block-icon:hover{background:#344c6b}
#editorDialog .editor-block-tools .editor-block-icon.negative{
 color:#ffccd2;border-color:#81536a;
}
#editorDialog .editor-block-tools .editor-block-icon.negative:hover{background:#423047}
#editorDialog .editor-block-tools .editor-block-drag-handle{
 display:grid;place-items:center;
 width:36px;flex:0 0 36px;
 height:100%;min-height:54px;align-self:stretch;
 margin-left:4px;padding:0;
 background:transparent;border:0;border-left:1px solid #3b536e;
 color:#93aac7;cursor:grab;touch-action:none;user-select:none;
 border-radius:0 12px 0 0;
}
#editorDialog .editor-block-tools .editor-block-drag-handle:hover{
 color:var(--accent);background:rgba(255,255,255,.07);
}
#editorDialog .editor-block-tools .editor-block-drag-handle:active{cursor:grabbing}
#editorDialog .editor-block-tools .editor-block-drag-handle svg{width:18px;height:21px}
#editorDialog .editor-block.studio-block-dragging{
 opacity:.32;border:1px dashed var(--accent);background:#2d4461;
}
.studio-block-ghost{
 position:fixed;z-index:2147483000;pointer-events:none;
 padding:16px 18px;border:1px solid var(--accent);
 background:#233953;border-radius:13px;color:#eef6ff;
 box-shadow:0 14px 30px rgba(0,0,0,.48);
 will-change:transform;box-sizing:border-box;
}
.studio-block-ghost-top{display:flex;align-items:center;gap:12px}
.studio-block-ghost-name{font-size:16px;font-weight:850}
.studio-block-ghost-detail{font-size:12px;color:#a9c4df;margin:8px 0 0 30px}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
 min-height:185px;resize:vertical;overflow-y:auto;
}

/* V69: square exercise action buttons, using spare space beside the grip. */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow{
  display:flex;align-items:center;justify-content:flex-end;
  gap:3px;width:100%;min-height:44px;height:44px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button:not(.editor-drag-handle){
  flex:0 0 34px;width:34px;min-width:34px;max-width:34px;
  height:34px;min-height:34px;max-height:34px;
  padding:0;align-self:center;box-sizing:border-box;
  border-radius:7px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle{
  flex:0 0 24px;width:24px;max-width:24px;
  margin-left:0;padding:0 2px;
  height:44px;min-height:44px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9){
  padding-left:11px;padding-right:2px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
  min-height:320px;resize:vertical;
}

/* V70: Note blocco integrata sotto il titolo, a sinistra dei comandi. */
#editorDialog .editor-block-head{
  display:flex;align-items:stretch;justify-content:space-between;
  flex-wrap:nowrap;gap:12px;padding:11px 0 11px 13px;
}
#editorDialog .editor-block-head .editor-block-main{
  display:flex;flex-direction:column;justify-content:center;
  flex:1 1 0;min-width:0;gap:5px;
}
#editorDialog .editor-block-head .editor-block-heading{
  flex:0 0 auto;width:100%;min-width:0;gap:6px;
}
#editorDialog .editor-block-head .editor-block-fields{
  display:block;width:100%;min-width:0;margin:0;padding:0;
  background:transparent;
}
#editorDialog .editor-block-head .editor-block-note-input{
  display:block;width:100%;min-width:0;box-sizing:border-box;
  height:31px;min-height:31px;padding:5px 10px;
  font-size:11px;line-height:1.25;
}
#editorDialog .editor-block-head .editor-block-tools{
  flex:0 0 auto;align-self:stretch;display:flex;align-items:center;
  gap:5px;margin:0;padding:0;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
  min-height:800px;resize:vertical;overflow-y:auto;
}
@media(max-width:620px){
 #editorDialog .editor-block-head{gap:6px;padding-left:9px}
 #editorDialog .editor-block-head .editor-block-tools{gap:3px}
 #editorDialog .editor-block-head .editor-block-tools .editor-block-icon{width:30px;height:30px;flex-basis:30px}
 #editorDialog .editor-block-head .editor-block-tools .editor-block-drag-handle{width:29px;flex-basis:29px}
}

/* V71 — workout title matched to main page, editable inline in Studio. */
#editorDialog .studio-workout-heading{
  width:100%;display:flex;align-items:center;min-width:0;
  margin:1px 0 11px;padding:0 2px;
}
#editorDialog .studio-workout-title{
  display:block;box-sizing:border-box;width:100%;min-width:0;
  padding:4px 8px 5px 0;margin:0;
  background:transparent;border:1px solid transparent;border-radius:7px;
  outline:none;color:var(--accent);
  font-size:clamp(27px,3.4vw,39px);font-weight:1000;
  line-height:1.15;letter-spacing:-.045em;
  font-family:inherit;text-transform:uppercase;
  transition:border-color .16s ease,background .16s ease;
}
#editorDialog .studio-workout-title:hover{
  border-color:color-mix(in srgb,var(--accent),transparent 60%);
}
#editorDialog .studio-workout-title:focus{
  background:#12243a;border-color:var(--accent);
  padding-left:9px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
  min-height:800px;resize:vertical;overflow-y:auto;
}
@media(max-width:580px){
  #editorDialog .studio-workout-title{font-size:clamp(25px,7vw,34px)}
}

/* V72: consistent trash icons, softer block notes, duplicate title controls */
#editorDialog .editor-block-head .editor-block-note-input{
 background:#1b2c43;color:#c1d1e4;border-color:#425b78;
}
#editorDialog .editor-block-head .editor-block-note-input:focus{
 background:#243751;color:#e7f1ff;
}
#editorDialog .editor-block-icon.negative .editor-icon svg,
#editorDialog .editor-actrow button.negative .editor-icon svg{
 fill:none;stroke:currentColor;stroke-width:1.9;
 width:17px;height:17px;
}
#editorDialog .studio-workout-heading{gap:14px;align-items:center;position:relative;overflow:visible}
#editorDialog .studio-workout-heading .studio-workout-title{flex:1;min-width:0;width:auto}
#editorDialog .studio-heading-actions{flex:0 0 auto;display:flex;align-items:center;gap:7px;margin-left:auto;position:relative}
#editorDialog .studio-heading-actions .editor-tile-icon{
 display:grid;place-items:center;width:36px;height:36px;min-width:36px;
 padding:0;border-radius:8px;cursor:pointer;
 border:1px solid color-mix(in srgb,var(--accent),#41516c 55%);
 background:#1a2c45;color:var(--accent);
}
#editorDialog .studio-heading-actions .editor-tile-icon:hover{
 background:#2a405e;border-color:var(--accent)
}
#editorDialog .studio-heading-actions .editor-tile-icon svg{width:18px;height:18px;display:block}
#editorDialog .studio-heading-actions .editor-tile-options{position:relative}
#editorDialog .studio-heading-actions .editor-tile-menu{
 position:absolute;right:0;top:calc(100% + 9px);
 width:max-content;min-width:210px;max-width:calc(100vw - 42px);
 padding:6px;border-radius:11px;z-index:300;
 background:#15243a;border:1px solid #527091;
 box-shadow:0 14px 30px rgba(0,0,0,.42);
}
#editorDialog .studio-heading-actions .editor-tile-menu[hidden]{display:none}
#editorDialog .studio-heading-actions .editor-tile-menu button{
 width:100%;display:flex;align-items:center;gap:9px;
 background:transparent;color:#e3efff;border:0;
 padding:11px 10px;text-align:left;border-radius:7px;
 font:inherit;font-size:12px;font-weight:750;cursor:pointer;
}
#editorDialog .studio-heading-actions .editor-tile-menu button:hover{background:#28405b}
#editorDialog .studio-heading-actions .editor-tile-menu button.danger{color:#ffb6c2}
#editorDialog .studio-heading-actions .editor-tile-menu button.danger:hover{background:#473040}
#editorDialog .studio-heading-actions .editor-tile-menu button svg{width:17px;height:17px;flex:0 0 17px}
@media(max-width:580px){
 #editorDialog .studio-workout-heading{gap:5px}
 #editorDialog .studio-heading-actions{gap:4px}
 #editorDialog .studio-heading-actions .editor-tile-icon{width:31px;height:31px;min-width:31px}
}

/* V73: direct, accessible deletion in the selected workout selector. */
#editorTabs .studio-tile-delete{color:#ffbdc8;border-color:#81536a}
#editorTabs .studio-tile-delete:hover{color:#ffe3e8;border-color:#aa697e;background:#473144}
#editorTabs .studio-tile-delete .editor-icon{display:grid;place-items:center}
#editorTabs .studio-tile-delete .editor-icon svg{width:17px;height:17px}

/* V74 — same outlined trash icon for workouts, blocks and exercises. */
#editorDialog .studio-uniform-trash .editor-icon{
 display:inline-flex;align-items:center;justify-content:center;
 width:18px;height:18px;flex:0 0 18px;
}
#editorDialog .studio-uniform-trash .editor-icon svg{
 display:block;width:17px;height:17px;
 fill:none!important;stroke:currentColor!important;
 stroke-width:1.9!important;stroke-linecap:round;stroke-linejoin:round;
}

/* V75 — all three actions are immediately available next to the workout title. */
#editorDialog .studio-heading-actions .studio-heading-delete{
 color:#ffbdc8;border-color:#81536a;
}
#editorDialog .studio-heading-actions .studio-heading-delete:hover{
 color:#ffe4e9;border-color:#aa697e;background:#473144;
}
#editorDialog .studio-heading-actions .studio-heading-delete .editor-icon svg{
 width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;
}

/* V76 — note blocco discrete, vicine al titolo; pulsante occhio solo accanto al titolo in modifica. */
#editorDialog .editor-block-head .editor-block-main{gap:2px}
#editorDialog .editor-block-head .editor-block-note-input{
  border:1px solid transparent;
  box-shadow:none;
}
#editorDialog .editor-block-head .editor-block-note-input:hover{
  border-color:rgba(116,145,181,.38);
}
#editorDialog .editor-block-head .editor-block-note-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog:not(.preview-active) #editorTabs .editor-tile-tools [data-studio-toggle-mode]{display:none}

/* V77 — anteprima e modifica affiancate verticalmente nella intestazione. */
.overview-heading .overview-equipment-row .overview-editrow{
 display:flex;flex-direction:column;align-items:stretch;gap:7px;
 min-width:145px;
}
.overview-heading .overview-editrow .overview-editbtn{
 width:100%;margin:0;justify-content:center;
}
@media(max-width:560px){
 .overview-heading .overview-equipment-row .overview-editrow{min-width:135px}
}

/* V78 — intestazione più raccolta, comandi allineati ad Azzera sessione. */
.overview .overview-muscles .muscle-summary{line-height:1.28}
.overview-heading .overview-equipment-row{margin-top:5px}
.overview-heading .overview-equipment-row .overview-editrow{
 position:relative;top:-7px;
}
@media(max-width:600px){
 .overview-heading .overview-equipment-row{margin-top:5px}
 .overview-heading .overview-equipment-row .overview-editrow{top:-5px}
}

/* V79 — comandi più in alto e distanza Attrezzi/barra ulteriormente ridotta. */
.overview-heading .overview-equipment-row{margin-top:2px}
.overview-heading .overview-equipment-row .overview-editrow{top:-17px}
.overview-heading .meter{margin-top:6px}
@media(max-width:600px){
 .overview-heading .overview-equipment-row{margin-top:2px}
 .overview-heading .overview-equipment-row .overview-editrow{top:-13px}
 .overview-heading .meter{margin-top:6px}
}

/* V80: allinea Note blocco al titolo editabile del blocco e riduce il distacco. */
#editorDialog .editor-block-head .editor-block-main{
  --block-label-width:100px;
  gap:0;
}
#editorDialog .editor-block-head .editor-block-heading .block-num{
  flex:0 0 var(--block-label-width);
  width:var(--block-label-width);
  box-sizing:border-box;
}
#editorDialog .editor-block-head .editor-block-fields{
  margin-top:-2px;
  margin-left:calc(var(--block-label-width) + 6px);
  width:calc(100% - var(--block-label-width) - 6px);
}
@media(max-width:620px){
  #editorDialog .editor-block-head .editor-block-main{--block-label-width:93px}
}

/* V81 — compact single-position view/edit toggle, immediately left of studio options. */
#editorDialog .editor-top-actions #studioModeToggle{flex:0 0 39px;}

/* V82: etichetta blocco centrata rispetto a titolo + note; intervallo sotto. */
#editorDialog .editor-block-head .editor-block-main{
  display:grid;grid-template-columns:106px minmax(0,1fr);align-items:center;
  column-gap:7px;row-gap:0;min-width:0;flex:1 1 0;
}
#editorDialog .editor-block-head .editor-block-labels{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  align-self:center;gap:1px;min-width:0;
}
#editorDialog .editor-block-head .editor-block-labels .block-num{
  flex:none;width:auto;min-width:0;display:block;text-align:center;
  font-size:13px;font-weight:850;line-height:1.18;white-space:nowrap;
}
#editorDialog .editor-block-head .editor-block-labels .editor-block-window{
  display:block;flex:none;width:100%;min-width:0;max-width:100%;
  margin:0;padding:2px 3px;height:22px;box-sizing:border-box;
  text-align:center;font-size:12px;font-weight:750;line-height:1.1;
  color:var(--accent);background:transparent;border:1px solid transparent;
  border-radius:5px;
}
#editorDialog .editor-block-head .editor-block-labels .editor-block-window:hover{
  background:#293b55;border-color:#435978;
}
#editorDialog .editor-block-head .editor-block-labels .editor-block-window:focus{
  background:#0c1525;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .editor-block-head .editor-block-content{
  min-width:0;display:flex;flex-direction:column;justify-content:center;gap:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading{
  display:block;width:100%;flex:none;margin:0;padding:0;min-width:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading input[data-field="title"]{
  display:block;width:100%;max-width:none;min-width:0;box-sizing:border-box;
  height:29px;margin:0;padding:3px 7px;line-height:1.18;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-fields{
  display:block;width:100%;margin:0;padding:0;min-width:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-note-input{
  display:block;width:100%;min-width:0;height:23px;min-height:23px;
  margin:-1px 0 0;padding:2px 7px;box-sizing:border-box;
  font-size:11px;line-height:1.15;
}
@media(max-width:620px){
  #editorDialog .editor-block-head .editor-block-main{grid-template-columns:86px minmax(0,1fr);column-gap:4px}
  #editorDialog .editor-block-head .editor-block-labels .block-num{font-size:11px}
}

/* V83 — WORKOUT STUDIO view/edit icon follows the selected training theme. */
#editorDialog .editor-top-actions #studioModeToggle{
  color:var(--studio-active-color,var(--accent));
  border-color:var(--studio-active-color,var(--accent));
  background:#253954;
}
#editorDialog .editor-top-actions #studioModeToggle:hover{
  background:#344c6b;
}
/* Restore action matches the neutral blue copy button (not the delete action). */
#editorDialog .studio-heading-actions .studio-heading-restore{
  color:#f0f6ff;
  background:#253954;
  border-color:#4a6384;
}
#editorDialog .studio-heading-actions .studio-heading-restore:hover{
  color:#f0f6ff;
  background:#344c6b;
  border-color:#4a6384;
}

/* V85 — intervallo e numero blocco condividono il colore della scheda
   anche quando un CSS generico degli input definisce un colore differente. */
#editorDialog .editor-block-head .editor-block-labels .block-num,
#editorDialog .editor-block-head .editor-block-labels input.editor-block-window {
  color:var(--studio-block-color) !important;
  -webkit-text-fill-color:var(--studio-block-color);
  opacity:1;
}
#editorDialog .editor-block-head .editor-block-labels input.editor-block-window::selection {
  background:color-mix(in srgb,var(--studio-block-color),transparent 70%);
}

/* V86 — il cestino della scheda selezionata usa lo stile della penna in Visualizza. */
#editorDialog #editorTabs .editor-name-tab .editor-tile-icon.studio-tile-delete{
  color:var(--accent);
  border-color:color-mix(in srgb,var(--accent),#41516c 55%);
  background:#1a2c45;
}
#editorDialog #editorTabs .editor-name-tab .editor-tile-icon.studio-tile-delete:hover,
#editorDialog #editorTabs .editor-name-tab .editor-tile-icon.studio-tile-delete:focus-visible{
  color:var(--accent);
  background:#2a405e;
  border-color:var(--accent);
}

/* V87 — serie attuale dentro il pannello cronometro, sopra il timer. */
#exerciseCard .exercise-metrics .inline-timer .series-focus{
  align-self:stretch;width:100%;box-sizing:border-box;
  margin:0 0 13px;padding:10px 12px;
  text-align:left;gap:8px;
}
#exerciseCard .exercise-metrics .inline-timer .series-focus strong{font-size:clamp(15px,1.8vw,19px)}
#exerciseCard .exercise-metrics .inline-timer .series-focus .series-pips{gap:5px}
#exerciseCard .exercise-metrics .inline-timer .series-focus .series-pips span{width:11px;height:11px}
#exerciseCard .current-title{margin-bottom:9px}
@media(max-width:580px){
 #exerciseCard .exercise-metrics .inline-timer .series-focus{padding:8px 7px;gap:6px;margin-bottom:10px}
 #exerciseCard .exercise-metrics .inline-timer .series-focus strong{font-size:14px}
 #exerciseCard .exercise-metrics .inline-timer .series-focus .series-eyebrow{font-size:9px}
 #exerciseCard .exercise-metrics .inline-timer .series-focus .series-pips{gap:4px}
 #exerciseCard .exercise-metrics .inline-timer .series-focus .series-pips span{width:9px;height:9px}
}

/* V88 — Neutral global studio actions in the main header. */
.main-header-tools{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.main-header-tools .badge{margin:0;flex:0 0 auto}
.main-header-buttons{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.main-header-buttons .main-studio-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:8px 11px;color:#dbe8f8;background:#21324b;border:1px solid #435873;white-space:nowrap}
.main-header-buttons .main-studio-button:hover{background:#304662;border-color:#647d9b}
.main-header-buttons .main-studio-button svg{flex:0 0 17px}
/* Single per-workout Play/Stop control, with the same square action style. */
#tabs .tab-wrap .tab{padding-right:55px}
#tabs .tab-session-btn{
 position:absolute;top:50%;right:10px;transform:translateY(-50%);
 width:36px;height:36px;display:grid;place-items:center;padding:0;cursor:pointer;
 border:0;border-radius:10px;color:#f5f8ff;
 background:color-mix(in srgb,var(--tab-accent) 27%,#101b2d);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tab-accent) 70%,#8fa5c0);
 transition:background .15s,transform .15s;
}
#tabs .tab-session-btn:is(.is-running,:hover,:focus-visible){
 background:color-mix(in srgb,var(--tab-accent) 37%,#101b2d);
}
#tabs .tab-session-btn:focus-visible{outline:2px solid var(--tab-accent);outline-offset:2px}
#tabs .tab-session-btn:active{transform:translateY(-50%) scale(.94)}
#tabs .tab-session-btn svg{width:20px;height:20px;display:block}
.overview-heading .overview-equipment-row{margin-top:2px}
@media(max-width:900px){.top{flex-wrap:wrap}.main-header-tools{flex:1 1 auto}}
@media(max-width:660px){.main-header-tools{width:100%;justify-content:space-between;gap:7px}.main-header-tools .badge{white-space:normal}.main-header-buttons{gap:5px}.main-header-buttons .main-studio-button{padding:8px 7px;font-size:10px}.main-header-buttons .main-studio-button svg{width:15px;height:15px}}
@media(max-width:420px){.main-header-tools{align-items:stretch}.main-header-buttons .main-studio-button{width:36px;min-width:36px;padding:6px}.main-header-buttons .main-studio-button span{display:none}#tabs .tab-wrap .tab{padding-right:47px}#tabs .tab-session-btn{right:7px;width:33px;height:33px}}

/* V90: gerarchia più leggera per gruppi muscolari; attrezzi su un'unica riga. */
.overview .overview-heading .overview-muscles .muscle-summary{
 text-transform:none;font-weight:400;letter-spacing:0;
 font-size:clamp(13px,1.45vw,15px);line-height:1.45;
 color:#b6c9de;
}
.overview .overview-heading .overview-equipment-row{
 margin-top:13px;
}
.overview .overview-heading .overview-equipment{
 display:flex;align-items:baseline;flex-wrap:wrap;
 gap:4px 8px;
}
.overview .overview-heading .overview-equipment .overview-field-label{
 display:inline;margin:0;white-space:nowrap;font-size:11px;
 font-weight:800;letter-spacing:.05em;
}
.overview .overview-heading .overview-equipment p{
 display:inline;margin:0;flex:0 1 auto;
 font-size:clamp(12px,1.3vw,14px);font-weight:400;
 line-height:1.4;
}
@media(max-width:580px){
 .overview .overview-heading .overview-muscles .muscle-summary{font-size:13px}
 .overview .overview-heading .overview-equipment-row{margin-top:11px}
}

/* V91 — reference copy glyph, identical visual size to the trash icon. */
#editorDialog .editor-block-icon .studio-copy-icon svg,
#editorDialog .editor-actrow button .studio-copy-icon svg{
 width:17px;height:17px;
 display:block;
 fill:none;stroke:currentColor;stroke-width:1.9;
 stroke-linecap:round;stroke-linejoin:round;
}
/* V92: annullamento modifiche, immediatamente prima del ripristino. */
#editorDialog .studio-heading-actions .studio-heading-undo{
  color:#d6e8f9;background:#22324b;border-color:#526d8d;
}
#editorDialog .studio-heading-actions .studio-heading-undo:hover:not(:disabled){
  color:#f0f6ff;background:#314963;border-color:#789cb9;
}
#editorDialog .studio-heading-actions .studio-heading-undo:disabled{
  opacity:.38;cursor:default;filter:grayscale(.45);
}

/* V93: compact contextual guide replaces the bottom footer. */
#editorDialog .studio-help-wrap{position:relative;flex:0 0 auto}
#editorDialog .studio-help-wrap #studioHelpToggle{
 display:grid;place-items:center;
 width:39px;height:39px;padding:0;
 color:#b9d4ef;background:#22324b;border:1px solid #4a6384;border-radius:8px;
}
#editorDialog .studio-help-wrap #studioHelpToggle:hover,
#editorDialog .studio-help-wrap #studioHelpToggle[aria-expanded="true"]{
 color:#f0f7ff;background:#304763;border-color:#7d9ab9
}
#editorDialog .studio-help-wrap svg{width:19px;height:19px}
#editorDialog .studio-help-popover{
 position:absolute;right:0;top:calc(100% + 9px);z-index:500;
 width:min(345px,calc(100vw - 42px));padding:15px 16px;
 background:#182a42;border:1px solid #587391;border-radius:12px;
 box-shadow:0 15px 35px rgba(0,0,0,.48);
 color:#d9e8f8;font-size:12px;line-height:1.52;text-align:left;
}
#editorDialog .studio-help-popover[hidden]{display:none}
#editorDialog .studio-help-popover strong{display:block;color:#fff;margin-bottom:7px;letter-spacing:.06em}
#editorDialog .studio-help-popover p{margin:0 0 9px}
#editorDialog .studio-help-popover p:last-child{margin-bottom:0}

/* V94 — clean details panel and one full-width workout progress bar. */
.overview{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(280px,auto);
 gap:17px 22px;
 align-items:start;
}
.overview .overview-heading{min-width:0;width:100%;flex:none}
.overview .overview-right{min-width:0;align-self:start}
.overview .overview-details{
 width:100%;box-sizing:border-box;display:flex;flex-direction:column;
 gap:6px;margin-top:12px;padding:11px 14px;
 background:rgba(10,21,38,.40);border:1px solid #35475e;border-radius:12px;
}
.overview .overview-details .overview-detail{
 display:flex;align-items:baseline;flex-wrap:wrap;column-gap:9px;row-gap:2px;
 margin:0;min-width:0;
}
.overview .overview-details .overview-field-label{
 flex:0 0 auto;display:inline;
 font-size:10px;font-weight:850;letter-spacing:.065em;
 color:#93acc7;text-transform:uppercase;white-space:nowrap;margin:0;
}
.overview .overview-details .muscle-summary,
.overview .overview-details .equipment-summary{
 flex:1 1 180px;min-width:0;
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:13px;font-weight:400;line-height:1.4;
 letter-spacing:0;text-transform:none;color:#c3d3e5;
 margin:0;
}
.overview .overview-details .muscle-summary{color:#d0ddec}
.overview .overview-full-progress{
 grid-column:1 / -1;align-self:end;
 width:100%;box-sizing:border-box;
 margin-top:11px;padding:0;
}
.overview .overview-full-progress .meter{
 display:block;width:100%;margin:0;
 height:8px;border-radius:20px;overflow:hidden;
 background:#263650;
}
.overview .overview-full-progress .meter>span{display:block;height:100%}
@media(max-width:850px){
 .overview{grid-template-columns:1fr;gap:14px}
 .overview .overview-right{width:100%}
 .overview .overview-full-progress{grid-column:1;margin-top:8px}
 .overview .stats{justify-content:stretch}
}
@media(max-width:580px){
 .overview{display:grid;gap:13px}
 .overview .overview-details{margin-top:9px;padding:10px 11px;gap:6px}
 .overview .overview-details .muscle-summary,
 .overview .overview-details .equipment-summary{font-size:12px;flex-basis:150px}
 .overview .overview-full-progress{margin-top:6px}
}

/* V95 - Workout hero redesign: visually continuous with the dark sports dashboard. */
.overview.overview-hero{
  position:relative;isolation:isolate;overflow:hidden;
  padding:27px 29px 24px;
  border:1px solid #32435a;border-radius:22px;
  background:linear-gradient(122deg,#19253a 0%,#162236 48%,#111d30 100%);
  box-shadow:0 12px 28px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.035);
  display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,auto);
  gap:23px 27px;align-items:start;
}
.overview.overview-hero:before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--accent) 0%,color-mix(in srgb,var(--accent),transparent 47%) 40%,transparent 83%);
  z-index:-1;pointer-events:none;
}
.overview.overview-hero:after{
  content:"";position:absolute;width:390px;height:310px;right:-150px;top:-180px;
  background:radial-gradient(circle,color-mix(in srgb,var(--accent),transparent 90%) 0%,transparent 69%);
  pointer-events:none;z-index:-1;
}
.overview-hero .overview-heading{display:flex;flex-direction:column;min-width:0;gap:0}
.overview-hero .hero-eyebrow{
  display:flex;align-items:center;gap:8px;margin-bottom:11px;
  color:#849ab3;font-size:10px;line-height:1.2;
  font-weight:800;letter-spacing:.16em;
}
.overview-hero .hero-eyebrow-mark{height:7px;width:7px;background:var(--accent);border-radius:2px;box-shadow:0 0 0 3px var(--accentsoft)}
.overview-hero .pre.overview-workout-name{margin:0;font-size:clamp(28px,3.4vw,40px);line-height:1.08;letter-spacing:-.045em;overflow-wrap:anywhere}
.overview-hero .overview-duration{font-size:clamp(19px,2.4vw,29px);font-weight:400;white-space:normal}
.overview-hero .overview-heading .overview-subtitle{
  margin:8px 0 0;color:color-mix(in srgb,var(--accent),#e9f3ff 72%);
  font-size:clamp(14px,1.5vw,17px);font-weight:550;line-height:1.45;
}
/* No inner framed panel: a simple horizontal metadata rail, with elegant separators. */
.overview-hero .overview-details{
  display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;
  gap:0;margin:25px 0 0;padding:0;
  background:transparent;border:0;border-radius:0;width:100%;
}
.overview-hero .overview-details .overview-detail{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  flex:0 1 auto;min-width:0;max-width:100%;
  row-gap:5px;column-gap:0;margin:0;padding:1px 18px 1px 0;
}
.overview-hero .overview-details .overview-detail + .overview-detail{
  border-left:1px solid #42536a;padding-left:18px;
}
.overview-hero .overview-details .overview-field-label{
  font-size:10px;letter-spacing:.105em;font-weight:850;color:#87a0b9;
  line-height:1.25;white-space:nowrap;
}
.overview-hero .overview-details .muscle-summary,
.overview-hero .overview-details .equipment-summary{
  color:#d9e6f5;font-size:13px;line-height:1.45;font-weight:500;
  letter-spacing:0;text-transform:none;flex:none;margin:0;min-width:0;
  max-width:310px;overflow-wrap:anywhere;
}
.overview-hero .overview-right{display:flex;flex-direction:column;align-self:stretch;justify-content:space-between;min-width:0;gap:16px}
.overview-hero .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;justify-content:stretch}
.overview-hero .stat{
  min-width:0;min-height:75px;height:auto;
  border:1px solid #2e4058;border-radius:12px;
  background:rgba(9,18,33,.47);padding:12px 10px 10px;
  box-sizing:border-box;
}
.overview-hero .stat span{font-size:9px;letter-spacing:.05em;line-height:1.35;color:#91a5bf}
.overview-hero .stat b{margin-top:7px;font-size:clamp(19px,2.1vw,25px);line-height:1;color:#f3f7ff}
.overview-hero .stat:last-child b{color:var(--accent)}
.overview-hero .overview-reset{margin-top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.overview-hero .overview-reset .btn{width:100%;max-width:none;min-height:42px}
.overview-hero .overview-full-progress{
  grid-column:1 / -1;align-self:end;
  border-top:1px solid #32435b;margin-top:1px;padding-top:17px;
  width:100%;
}
.overview-hero .hero-progress-caption{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  font-size:10px;line-height:1.4;letter-spacing:.105em;
  font-weight:800;color:#95acc8;margin-bottom:9px;
}
.overview-hero .hero-progress-caption>span:first-child{display:inline-flex;align-items:center;gap:8px}
.overview-hero .hero-progress-pip{height:6px;width:6px;border-radius:50%;background:var(--accent)}
.overview-hero .hero-progress-caption>span:last-child{color:#c4d5e7}
.overview-hero .overview-full-progress .meter{height:8px;background:#0c1a2b;border-radius:9px;margin:0;width:100%;overflow:hidden}
.overview-hero .overview-full-progress .meter>span{background:linear-gradient(90deg,color-mix(in srgb,var(--accent),#0c1a2b 14%),var(--accent));border-radius:9px;}
@media(max-width:1040px){
  .overview.overview-hero{grid-template-columns:minmax(0,1fr);gap:22px;padding:23px 22px}
  .overview-hero .overview-right{width:100%;gap:12px}
  .overview-hero .stat{min-height:69px}
  .overview-hero .overview-details{margin-top:19px}
  .overview-hero .overview-full-progress{margin-top:0}
}
@media(max-width:580px){
  .overview.overview-hero{padding:20px 16px;gap:17px}
  .overview-hero .hero-eyebrow{font-size:9px;margin-bottom:9px}
  .overview-hero .pre.overview-workout-name{font-size:clamp(25px,7vw,32px)}
  .overview-hero .overview-duration{font-size:clamp(18px,5vw,23px)}
  .overview-hero .overview-heading .overview-subtitle{font-size:14px;margin-top:7px}
  .overview-hero .overview-details{display:grid;gap:13px;margin-top:18px}
  .overview-hero .overview-details .overview-detail{padding:0;max-width:none;gap:4px}
  .overview-hero .overview-details .overview-detail + .overview-detail{padding:0;border:0}
  .overview-hero .overview-details .muscle-summary,.overview-hero .overview-details .equipment-summary{font-size:12px;max-width:none}
  .overview-hero .stat{padding:9px 7px;min-height:67px}
  .overview-hero .stat span{font-size:8px}
  .overview-hero .stat b{font-size:19px}
  .overview-hero .overview-full-progress{padding-top:14px}
  .overview-hero .hero-progress-caption{font-size:9px}
}

/* V96: session metrics sit directly above the session action buttons. */
.overview-hero .overview-right{
  justify-content:flex-end;
  gap:9px;
}
.overview-hero .stats{margin-top:auto;margin-bottom:0}
.overview-hero .overview-reset{margin-top:0}
@media(max-width:1040px){
  .overview-hero .overview-right{justify-content:flex-end;gap:9px}
}

/* V96: program block numbers/names match the selected workout color. */
details.block > summary > span:first-child{color:var(--accent)}
/* Separate hierarchy for Supersets vs workout-colored block titles. */
details.block .grouptitle{color:#b7cee9;letter-spacing:.035em;font-weight:850;margin:13px 0 6px}
details.block > .exercise-list.plan-standalone{margin-top:13px}
details.block .exercise-list + .exercise-list.plan-standalone{margin-top:13px}
details.block .blockinfo{color:#a7b9d1}

/* V98: during recovery the main action becomes the only Skip recovery button. */
:is(#exerciseCard .actions,#focusTimerActions)>.btn.primary-skip-rest{
  background:#9aa9bc;
  border-color:#b7cadc;
  color:#0b1b2b;
  box-shadow:0 4px 14px rgba(154,169,188,.17);
}
:is(#exerciseCard .actions,#focusTimerActions)>.btn.primary-skip-rest:hover:not(:disabled){
  background:#b9d4e4;
  border-color:#cce7f3;
}
:is(#exerciseCard .actions,#focusTimerActions)>.btn.primary-skip-rest:active:not(:disabled){background:#879daf}

/* Keep the time window beside the first line of the workout block. */
#exerciseCard>.options{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:10px;
}
#exerciseCard>.options .block-heading{
 min-width:0;overflow-wrap:anywhere;
}
#exerciseCard .options .block-window{
  color:var(--accent);
  font-family:inherit;
  font-size:clamp(11px,1.1vw,13px);
  font-weight:900;
  line-height:1.35;
  letter-spacing:.055em;
  text-transform:uppercase;
  font-variant-numeric:tabular-nums;
  padding:2px 0 0;
  opacity:1;
}
/* Azzera è un'azione secondaria, discreta e neutra. */
.overview-hero .overview-reset .btn[data-action="reset"],
.main-header-buttons .main-studio-button[data-header-view]{
  background:#1d2b40;
  color:#b6c9df;
  border:1px solid #4b607c;
  font-size:12px;
  font-weight:750;
  border-radius:10px;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.overview-hero .overview-reset .btn[data-action="reset"]:hover:not(:disabled),
.main-header-buttons .main-studio-button[data-header-view]:is(:hover,:focus-visible){
  background:#273a54;
  border-color:#7890ac;
  color:#e4efff;
}
/* Termina è il comando primario: tinta piena del workout. */
.overview-hero .overview-reset .btn[data-action="finish"]{
  background:color-mix(in srgb,var(--accent) 90%,#808080 10%);
  border:1px solid color-mix(in srgb,var(--accent) 90%,#808080 10%);
  color:#081421;
  font-size:12px;
  font-weight:950;
  letter-spacing:.015em;
  border-radius:10px;
  box-shadow:0 4px 16px color-mix(in srgb,var(--accent),transparent 78%);
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.overview-hero .overview-reset .btn[data-action="finish"]:hover:not(:disabled){
  background:color-mix(in srgb,var(--accent) 90%,#a0a0a0 10%);
  box-shadow:0 6px 20px color-mix(in srgb,var(--accent),transparent 65%);
  transform:translateY(-1px);
}
.overview-hero .overview-reset .btn[data-action="finish"]:disabled,
.overview-hero .overview-reset .btn[data-action="reset"]:disabled{
  opacity:.42;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
@media(max-width:580px){
  #exerciseCard .options .block-window{font-size:11px;letter-spacing:.015em}
  .overview-hero .overview-reset .btn[data-action="finish"],
  .overview-hero .overview-reset .btn[data-action="reset"]{font-size:11px}
}


/* Timer and repetition/recovery layout. */
#exerciseCard .counterbox-with-series{display:flex;flex-direction:column;gap:12px;min-width:0}
#exerciseCard .counterbox-with-series>.exercise-metrics{width:100%;min-width:0}
#exerciseCard .counterbox-with-series .inline-timer .timer-ring{
  width:min(258px,98%);height:auto;aspect-ratio:1;
  margin:12px auto;
}
@media(max-width:580px){
 #exerciseCard .counterbox-with-series{gap:9px}
 #exerciseCard .counterbox-with-series .inline-timer .timer-ring{width:min(179px,98%)}
}

/* V102 — compact numeric rail and enlarged, dominant timer dial. */
#exerciseCard .counterbox-with-series>.exercise-metrics{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(124px,19%,160px);
  gap:10px;
  align-items:stretch;
}
#exerciseCard .exercise-metrics .metrics-left{
  grid-column:2;grid-row:1;
  width:100%;min-width:0;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:stretch;
  justify-content:center;gap:12px;
  padding:10px 0 10px 7px;
}
#exerciseCard .exercise-metrics .inline-timer{
  grid-column:1;grid-row:1;min-width:0;
  padding:14px 10px;min-height:320px;
}
#exerciseCard .counterbox-with-series .inline-timer .timer-ring{
  width:min(314px,calc(100% - 8px));height:auto;
  aspect-ratio:1;margin:13px auto 12px;
}
#exerciseCard .exercise-metrics .inline-timer .timer-ring-inner{width:87%;height:87%}
#exerciseCard .exercise-metrics .inline-timer .timer-value{font-size:clamp(34px,5vw,58px)}
#exerciseCard .exercise-metrics .actual-value-panel,
#exerciseCard .exercise-metrics .recovery-inside{
  width:100%;max-width:160px;min-width:0;
  margin-left:auto;margin-right:auto;box-sizing:border-box;
}
#exerciseCard .exercise-metrics .counterhead{text-align:center}
#exerciseCard .exercise-metrics .counterhead h3{
  font-size:10px;line-height:1.35;text-wrap:balance;
  margin:0 0 3px;white-space:normal;
}
#exerciseCard .exercise-metrics .counterhead span{display:block;font-size:9px}
#exerciseCard .exercise-metrics .counter,
#exerciseCard .exercise-metrics .recovery-inside .rest-counter{
  display:grid;grid-template-columns:26px minmax(0,1fr) 26px;
  gap:2px;align-items:center;width:100%;max-width:none;
}
#exerciseCard .exercise-metrics .counter .countbtn,
#exerciseCard .exercise-metrics .recovery-inside .rest-counter .countbtn{
  height:35px;min-width:0;padding:0;border-radius:8px;font-size:19px;
}
#exerciseCard .exercise-metrics .countinput,
#exerciseCard .exercise-metrics .recovery-inside .rest-counter .rest-edit{
  min-width:0;width:100%;font-size:clamp(23px,2.75vw,30px);
}
#exerciseCard .exercise-metrics .countertools{text-align:center;line-height:1.4}
#exerciseCard .exercise-metrics .countertools .mini{font-size:9px;overflow-wrap:anywhere}
#exerciseCard .exercise-metrics .recovery-inside{
  border-top:1px solid #344661;margin-top:0;
  padding:13px 0 0;gap:6px;text-align:center;
}
#exerciseCard .exercise-metrics .recovery-inside label{
  font-size:10px;line-height:1.35;text-wrap:balance;white-space:normal;
}
#exerciseCard .exercise-metrics .recovery-inside .rest-reference{font-size:9px}
@media(max-width:580px){
 #exerciseCard .counterbox-with-series>.exercise-metrics{
  grid-template-columns:minmax(0,1fr) clamp(102px,31%,122px);gap:5px;
 }
 #exerciseCard .exercise-metrics .metrics-left{padding:5px 0 5px 2px;gap:9px}
 #exerciseCard .exercise-metrics .inline-timer{padding:10px 4px;min-height:255px}
 #exerciseCard .counterbox-with-series .inline-timer .timer-ring{
   width:min(244px,calc(100% - 4px));margin:12px auto;
 }
 #exerciseCard .exercise-metrics .inline-timer .timer-value{font-size:clamp(29px,7.5vw,43px)}
 #exerciseCard .exercise-metrics .counterhead h3{font-size:9px}
 #exerciseCard .exercise-metrics .counter,
 #exerciseCard .exercise-metrics .recovery-inside .rest-counter{
  grid-template-columns:23px minmax(0,1fr) 23px;gap:1px;
 }
 #exerciseCard .exercise-metrics .counter .countbtn,
 #exerciseCard .exercise-metrics .recovery-inside .rest-counter .countbtn{
  height:33px;font-size:18px;border-radius:7px;
 }
 #exerciseCard .exercise-metrics .countinput,
 #exerciseCard .exercise-metrics .recovery-inside .rest-counter .rest-edit{font-size:23px;min-height:33px}
 #exerciseCard .exercise-metrics .countertools .mini{font-size:8px}
 #exerciseCard .exercise-metrics .recovery-inside{padding-top:9px}
 #exerciseCard .exercise-metrics .recovery-inside label{font-size:9px}
 #exerciseCard .exercise-metrics .recovery-inside .rest-reference{font-size:8px}
}

/* V103 — a modern workout-building interface; preserve existing block headers. */
#editorDialog .studio-main-meta{
 position:relative;overflow:hidden;
 background:linear-gradient(125deg,#1b2b43 0%,#162439 58%,#142034 100%);
 border:1px solid #405671;border-radius:17px;
 padding:17px 18px 18px;margin-bottom:20px;gap:16px;
 box-shadow:0 9px 27px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.055);
}
#editorDialog .studio-main-meta::before{
 content:"";position:absolute;inset:0 auto 0 0;width:3px;
 background:var(--accent);opacity:.85;pointer-events:none;
}
#editorDialog .studio-meta-eyebrow{
 display:flex;align-items:center;gap:10px;width:100%;
 color:#ecf5ff;font-size:11px;font-weight:850;letter-spacing:.14em;
}
#editorDialog .studio-meta-mark{color:var(--accent);font-size:18px;line-height:1}
#editorDialog .studio-meta-rule{height:1px;flex:1;background:linear-gradient(90deg,#526c86,transparent)}
#editorDialog .studio-meta-hint{color:#839bb4;font-size:9px;font-weight:700;letter-spacing:.09em;white-space:nowrap}
#editorDialog .studio-main-meta .studio-fields-row{gap:12px}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field{
 background:rgba(13,26,44,.55);
 border:1px solid #354b64;border-radius:11px;
 padding:9px 11px 10px;gap:5px;
 transition:border-color .18s,background .18s,box-shadow .18s;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field:focus-within{
 border-color:var(--accent);background:#152b45;
 box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .studio-main-meta .editor-field label{
 color:#98aec7;font-size:10px;letter-spacing:.095em;font-weight:850;
}
#editorDialog .studio-main-meta .studio-fields-row input,
#editorDialog .studio-main-meta .studio-fields-row textarea{
 height:33px;min-height:33px;padding:5px 0;
 background:transparent;border:0;border-radius:0;
 color:#f3f8ff;font-size:13px;font-weight:650;
 box-shadow:none;
}
#editorDialog .studio-main-meta .studio-fields-row input:focus,
#editorDialog .studio-main-meta .studio-fields-row textarea:focus{
 border:0;box-shadow:none;background:transparent;
}
#editorDialog .studio-main-meta .studio-notes-area{
 padding:0;border:0;min-width:0;
}
#editorDialog .studio-main-meta .studio-workout-notes{
 background:rgba(11,25,44,.4);border:1px solid #384e67;
 border-radius:11px;padding:11px 13px 13px;gap:7px;
 transition:border-color .18s,background .18s;
}
#editorDialog .studio-main-meta .studio-workout-notes:focus-within{
 border-color:var(--accent);background:#172b45;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea,
#editorDialog .studio-main-meta .studio-workout-notes textarea:focus{
 background:transparent;border:0;box-shadow:none;
 padding:0;color:#dceafa;line-height:1.65;font-size:12.5px;
 min-height:74px;
}
/* Row cards: separate each exercise from surrounding machinery. */
#editorDialog .editor-block .edit-scroll{padding:8px 12px 6px;box-sizing:border-box}
#editorDialog .edit-table{border-spacing:0 10px}
#editorDialog .edit-table thead th{
 color:#89a3bf;font-size:9px;font-weight:850;
 letter-spacing:.055em;padding-bottom:5px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td{
 height:68px;padding-top:9px;padding-bottom:9px;
 background:#1c3048;border-top:1px solid #37506a;border-bottom:1px solid #37506a;
 transition:background .16s,border-color .16s;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:first-child{
 border-left:1px solid #37506a;border-radius:12px 0 0 12px;
 padding-left:10px;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:last-child{
 border-right:1px solid #37506a;border-radius:0 12px 12px 0;
 padding-right:5px;
}
#editorDialog .edit-table tbody tr.studio-ex-row:hover td{
 background:#223a54;border-top-color:#53708a;border-bottom-color:#53708a;
}
#editorDialog .edit-table tbody tr.studio-ex-row:hover td:first-child{border-left-color:#53708a}
#editorDialog .edit-table tbody tr.studio-ex-row:hover td:last-child{border-right-color:#53708a}
#editorDialog .edit-table .studio-ex-identity{display:flex;align-items:center;gap:8px;min-width:0}
#editorDialog .edit-table .studio-ex-number{
 display:grid;place-items:center;flex:0 0 27px;height:30px;
 background:var(--accentsoft);border:1px solid color-mix(in srgb,var(--accent) 32%,transparent);
 color:var(--accent);border-radius:7px;
 font:850 10px/1 system-ui,sans-serif;letter-spacing:.015em;
}
#editorDialog .edit-table .studio-ex-identity input[data-field="name"]{
 min-width:0;flex:1 1 0;font-weight:750;font-size:12px;color:#f4f9ff;
}
#editorDialog .edit-table tbody tr.studio-ex-row input,
#editorDialog .edit-table tbody tr.studio-ex-row select,
#editorDialog .edit-table tbody tr.studio-ex-row textarea{
 background:#13243a;border-color:#324b67;border-radius:8px;
 color:#dceafa;font-size:11.5px;min-height:40px;height:40px;max-height:40px;
}
#editorDialog .edit-table tbody tr.studio-ex-row input:hover,
#editorDialog .edit-table tbody tr.studio-ex-row textarea:hover,
#editorDialog .edit-table tbody tr.studio-ex-row select:hover{border-color:#68849f}
#editorDialog .edit-table tbody tr.studio-ex-row input:focus,
#editorDialog .edit-table tbody tr.studio-ex-row textarea:focus,
#editorDialog .edit-table tbody tr.studio-ex-row select:focus{
 background:#18314e;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow{height:45px;min-width:0;gap:4px}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button:not(.editor-drag-handle){
 background:#273d56;border-radius:8px;border-color:#47617a;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button:hover:not(.editor-drag-handle){
 background:#36516e;border-color:#7698b4;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button.negative{
 color:#ffbdc5;background:rgba(127,58,77,.19);border-color:rgba(222,120,142,.25);
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle{
 border-radius:8px;background:#243a54;border-color:#597491;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>button.paste-mode{
 background:#1b493b;border-color:#459b77;color:#bbfbe1;
}
#editorDialog .editor-block .editor-actions [data-editor-act="addRow"]{
 background:#1c3046;border:1px dashed #607a94;
 border-radius:10px;color:#d5eaff;padding:10px 15px;
}
#editorDialog .editor-block .editor-actions [data-editor-act="addRow"]:hover{
 background:#2b4461;border-color:var(--accent);
}
@media(max-width:760px){
 #editorDialog .studio-main-meta .studio-fields-row{
  grid-template-columns:minmax(0,1fr) minmax(90px,.32fr);
 }
 #editorDialog .studio-main-meta .studio-fields-row>.editor-field:nth-child(3),
 #editorDialog .studio-main-meta .studio-fields-row>.editor-field:nth-child(4){grid-column:auto}
 #editorDialog .studio-meta-hint{display:none}
}
@media(max-width:560px){
 #editorDialog .studio-main-meta{padding:14px 12px;gap:12px}
 #editorDialog .studio-main-meta .studio-fields-row{gap:8px}
 #editorDialog .studio-main-meta .studio-fields-row>.editor-field{padding:8px}
 #editorDialog .editor-block .edit-scroll{padding-left:8px;padding-right:8px}
}

/* V104 – labels stay above their own editable field, not inside a field card. */
#editorDialog .studio-main-meta .studio-fields-row>.editor-field{
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
  gap:7px; padding:0; background:transparent; border:0; border-radius:0;
  box-shadow:none; min-width:0;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field:focus-within{
  background:transparent; border:0; box-shadow:none;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>label{
  display:block; position:static; margin:0; padding:0 2px;
  font-size:10px; font-weight:850; letter-spacing:.095em;
  line-height:1.4; color:#9fb6d1;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>input,
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>textarea{
  display:block; box-sizing:border-box; width:100%; height:46px; min-height:46px;
  margin:0; padding:10px 12px;
  border:1px solid #3d5470; border-radius:10px;
  background:#102138; color:#f3f8ff;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12);
  font-size:13px; font-weight:600;
  transition:border-color .17s,box-shadow .17s,background .17s;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>input:focus,
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>textarea:focus{
  background:#142c48; border:1px solid var(--accent);
  box-shadow:0 0 0 3px var(--accentsoft); outline:none;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
  height:800px; min-height:800px; max-height:none;
  overflow-y:auto; resize:vertical;
}
@media(max-width:560px){
  #editorDialog .studio-main-meta .studio-fields-row>.editor-field{padding:0;gap:6px}
}

/* V105: workout-specific theme and consistent block/exercise action buttons. */
#editorDialog .studio-main-meta::before{background:var(--accent)}
#editorDialog .edit-table .studio-ex-number{
 color:var(--accent);
 background:color-mix(in srgb,var(--accent) 14%,#18283d);
 border-color:color-mix(in srgb,var(--accent) 40%,#31465d);
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon,
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle{
 display:inline-flex;align-items:center;justify-content:center;
 width:31px;height:35px;min-width:31px;flex:0 0 31px;
 padding:0;border-radius:8px;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon{
 background:#273d56;border:1px solid #47617a;color:#e5edf8;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon.negative{
 color:#ffbdc5;background:rgba(127,58,77,.19);border-color:rgba(222,120,142,.25);
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle{
 background:#243a54;border:1px dashed #597491;color:#e0ecff;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon .editor-icon,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow .editor-icon{
 display:inline-flex;align-items:center;justify-content:center;
 width:18px;height:18px;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon .editor-icon svg,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow .editor-icon svg{
 width:17px;height:17px;display:block;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle svg,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle svg{
 width:18px;height:20px;display:block;
}

/* V106 — block controls reuse the exercise-row grip behavior, hover and sizing. */
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon{
  box-sizing:border-box;
  flex:0 0 34px;width:34px;min-width:34px;max-width:34px;
  height:34px;min-height:34px;max-height:34px;
  padding:0;border-radius:7px;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon:not(.negative):hover{
  background:#36516e;border-color:#7698b4;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-icon.negative:hover{
  background:rgba(127,58,77,.32);border-color:rgba(222,120,142,.4);
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle.editor-drag-handle{
  box-sizing:border-box;
  align-self:center;position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 24px;width:24px;min-width:24px;max-width:24px;
  height:44px;min-height:44px;max-height:44px;
  margin:0;padding:0 2px;
  background:#243a54;border:1px dashed #597491;
  border-radius:8px;color:#e0ecff;
  cursor:grab;touch-action:none;user-select:none;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle.editor-drag-handle:hover,
#editorDialog .edit-table tbody tr.studio-ex-row .editor-actrow>.editor-drag-handle:hover{
  background:rgba(255,255,255,.09);color:var(--accent);border-color:var(--accent);
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle.editor-drag-handle:active{
  cursor:grabbing;
}
#editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle.editor-drag-handle svg{
  width:18px;height:20px;display:block;
}
@media(max-width:620px){
 #editorDialog .editor-block-head .editor-block-tools>.editor-block-icon{
  flex-basis:34px;width:34px;height:34px;
 }
 #editorDialog .editor-block-head .editor-block-tools>.editor-block-drag-handle.editor-drag-handle{
  flex-basis:24px;width:24px;height:44px;
 }
}

/* V108: refined exercise columns and naturally wrapping block headings. */
#editorDialog .studio-main-meta .studio-fields-row textarea[data-field="muscleGroups"]{
 text-align:left!important;text-align-last:left!important;direction:ltr;
 padding-left:12px!important;text-indent:0!important;
}
#editorDialog .edit-table .col-exercise{width:18%}
#editorDialog .edit-table .col-rest{width:5.5%}
#editorDialog .edit-table .studio-ex-identity{gap:6px}
#editorDialog .edit-table .studio-ex-number{
 flex:0 0 21px;width:21px;height:23px;
 font-size:9px;border-radius:6px;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity input[data-field="name"],
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity input[data-field="name"]:hover{
 border:1px solid transparent;background:transparent;
 border-radius:7px;padding-left:6px;padding-right:4px;
 color:#f4f9ff;box-shadow:none;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity input[data-field="name"]:focus{
 border:1px solid var(--accent);background:#10253e;
 box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow{
 display:block;width:100%;max-width:none;min-width:0;
 height:auto;min-height:29px;max-height:none;resize:none;overflow:hidden;
 box-sizing:border-box;margin:0;padding:3px 7px;
 font:inherit;font-size:14px;font-weight:750;line-height:1.3;
 color:#edf8ff;background:transparent;border:1px solid transparent;
 border-radius:7px;outline:0;overflow-wrap:anywhere;white-space:pre-wrap;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow:hover{
 background:#293b55;border-color:#435978;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow:focus{
 background:#0c1525;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft);
}

/* V109: chained superset exercises with enforced zero-rest controls. */
#editorDialog .edit-table tbody tr.studio-ex-row td:first-child{position:relative}
#editorDialog .edit-table .studio-ex-identity{position:relative}
#editorDialog .edit-table .studio-ex-link{
 position:absolute;left:4px;top:-22px;z-index:3;
 width:22px;height:22px;display:grid;place-items:center;
 border-radius:7px;border:1px solid color-mix(in srgb,var(--accent) 55%,#273c52);
 background:#20354c;color:var(--accent);pointer-events:none;
 box-shadow:0 2px 10px rgba(2,10,20,.35);
}
#editorDialog .edit-table .studio-ex-link svg{width:14px;height:14px}
#editorDialog .edit-table tbody tr.studio-superset-connected td:first-child{border-left-color:var(--accent)}
#editorDialog .edit-table tbody tr.studio-superset-locked [data-field="rest"]{
 opacity:1!important;cursor:not-allowed!important;
 color:#91bfc4!important;background:rgba(81,159,165,.10)!important;
 border-color:rgba(110,208,215,.30)!important;
}
#editorDialog .edit-table tbody tr.studio-superset-locked .editor-rest-pair>span{color:#91bfc4}

/* V110 — superset grouping: centered link + continuous color-coded bracket. */
#editorDialog .edit-table{border-spacing:0 7px}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4){position:relative}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)>.studio-ex-link{
 position:absolute!important;
 left:50%!important;top:-3.5px!important;
 transform:translate(-50%,-50%)!important;
 z-index:8;width:22px;height:22px;
 display:grid;place-items:center;pointer-events:none;
 border:1px solid color-mix(in srgb,var(--accent) 65%,#30455d);
 border-radius:7px;background:#15283f;
 color:var(--accent);box-shadow:0 1px 7px #0c182c9c;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(4)>.studio-ex-link svg{width:14px;height:14px}
/* Bring same-superset cards closer, without changing spacing elsewhere. */
#editorDialog .edit-table tbody tr.studio-ex-row.studio-superset-member{
 transform:translateY(calc(var(--studio-link-depth,0) * -3px));
}
/* Left bracket connects row centers across the exercise group. */
#editorDialog .edit-table tbody tr.studio-superset-member td:first-child{position:relative;overflow:visible}
#editorDialog .edit-table tbody tr.studio-superset-member td:first-child::before{
 content:'';position:absolute;left:-8px;z-index:4;
 top:-4px;bottom:-4px;width:8px;box-sizing:border-box;
 border-left:2px solid var(--accent);pointer-events:none;
}
#editorDialog .edit-table tbody tr.studio-superset-first td:first-child::before{
 top:50%;border-top:2px solid var(--accent);border-radius:6px 0 0 0;
}
#editorDialog .edit-table tbody tr.studio-superset-last td:first-child::before{
 bottom:50%;border-bottom:2px solid var(--accent);border-radius:0 0 0 6px;
}
#editorDialog .edit-table tbody tr.studio-superset-first.studio-superset-last td:first-child::before{display:none}

/* V112 — targeted editor column rebalance. */
#editorDialog .edit-table .col-type{width:8.25%}
#editorDialog .edit-table .col-superset{width:5.5%}
#editorDialog .edit-table .col-scheme{width:11.75%}
#editorDialog .edit-table .col-rest{width:9.5%}
#editorDialog .edit-table .col-move{width:10%}

/* V111 – borderless metadata editing, consistent with block/exercise names. */
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>input,
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>textarea,
#editorDialog .studio-main-meta .studio-workout-notes textarea{
  background:transparent;
  border:1px solid transparent;
  border-radius:6px;
  box-shadow:none;
  padding-left:2px;
  padding-right:2px;
  color:#f3f8ff;
  transition:background .16s,border-color .16s;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>input:hover,
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>textarea:hover,
#editorDialog .studio-main-meta .studio-workout-notes textarea:hover{
  background:rgba(255,255,255,.025);
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>input:focus,
#editorDialog .studio-main-meta .studio-fields-row>.editor-field>textarea:focus,
#editorDialog .studio-main-meta .studio-workout-notes textarea:focus{
  background:rgba(255,255,255,.035);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  box-shadow:none;
  outline:none;
}
#editorDialog .studio-main-meta .studio-workout-notes{
  background:transparent;border-color:transparent;
  box-shadow:none;padding-left:0;padding-right:0;
}
#editorDialog .studio-main-meta .studio-workout-notes:focus-within{
  background:transparent;border-color:transparent;box-shadow:none;
}
#editorDialog .studio-main-meta .studio-fields-row>.editor-field{
  background:transparent;border-color:transparent;box-shadow:none;
}

/* V113 — compact labels and pixel-aligned input content in workout details. */
#editorDialog .studio-main-meta .studio-fields-row > .editor-field{
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  gap:2px;padding:0;min-width:0;
}
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > label{
  display:block;box-sizing:border-box;width:100%;margin:0;padding:0 2px;
  line-height:17px;text-align:left;
}
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > input,
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea{
  display:block;box-sizing:border-box;width:100%;height:36px;min-height:36px;
  margin:0;padding:6px 2px;
  border:1px solid transparent;border-radius:6px;background:transparent;
  color:#f3f8ff;font:600 13px/22px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:left;text-align-last:left;vertical-align:top;
}
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea{
  resize:vertical;min-height:36px;overflow-y:auto;
}

/* V114 — restored Superset explainer and freely resizable notes (as muscle groups). */
#editorDialog .studio-superset-guidance{
 display:flex;align-items:flex-start;gap:9px;
 margin:7px 1px 14px;padding:10px 13px;
 border:1px solid color-mix(in srgb,var(--accent) 22%,#384b64);
 border-radius:9px;background:color-mix(in srgb,var(--accent) 5%,#142238);
 color:#b6cce3;font-size:11px;line-height:1.5;
}
#editorDialog .studio-superset-guidance strong{color:#deebf8;letter-spacing:.065em}
#editorDialog .studio-guidance-i{
 flex:0 0 17px;display:grid;place-items:center;width:17px;height:17px;
 border:1px solid var(--accent);border-radius:50%;color:var(--accent);
 font:bold 11px/1 system-ui,sans-serif;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea{
 display:block;box-sizing:border-box;width:100%;max-width:100%;
 min-height:800px;height:800px;
 resize:vertical!important;overflow-y:auto;
 padding:6px 2px;text-align:left;text-align-last:left;direction:ltr;
 color:#f3f8ff;font:600 13px/22px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 background:transparent;border:1px solid transparent;border-radius:6px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea:focus{
 background:rgba(255,255,255,.035);
 border-color:color-mix(in srgb,var(--accent) 55%,transparent);
 outline:none;
}

/* V115 — selectors with the same visual language as WORKOUT STUDIO menus. */
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"]{
 -webkit-appearance:none;appearance:none;
 width:100%;min-width:0;min-height:40px;height:40px;max-height:40px;
 padding:0 21px 0 9px;
 border:1px solid #4a6384;border-radius:8px;
 background-color:#253954;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c4d7ef' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-size:13px 13px;background-position:right 5px center;background-repeat:no-repeat;
 color:#f0f6ff;
 font-size:11.5px;font-weight:750;line-height:1.25;
 text-align:left;text-align-last:left;
 cursor:pointer;
 transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
 color-scheme:dark;
}
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"]:hover{
 background-color:#344c6b;border-color:#819fbc;
}
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"]:focus{
 background-color:#344c6b;border-color:var(--accent);
 box-shadow:0 0 0 2px var(--accentsoft);outline:none;
}
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"] option{
 background:#15243a;color:#f0f6ff;font-weight:650;
}
/* Scrollbars: document, studio, dialogs, program and editable text areas. */
:root{
 --scroll-track:#0e192b;
 --scroll-thumb:#415c7c;
 --scroll-thumb-hover:#6888a8;
}
html,body,body *,dialog,dialog *{
 scrollbar-width:thin;
 scrollbar-color:var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:99px}
*::-webkit-scrollbar-thumb{
 background:#415c7c;border:2px solid var(--scroll-track);border-radius:99px;
}
*::-webkit-scrollbar-thumb:hover{background:#6888a8}
*::-webkit-scrollbar-corner{background:var(--scroll-track)}
/* The workout editor follows the selected workout color when hovering the thumb. */
#editorDialog{--scroll-thumb-hover:var(--accent)}
#editorDialog *::-webkit-scrollbar-thumb:hover{
 background:color-mix(in srgb,var(--accent) 55%,#526c88);
}
#editorDialog *{scrollbar-color:#486684 #112036}
@media (pointer:coarse){
 *::-webkit-scrollbar{width:6px;height:6px}
 *::-webkit-scrollbar-thumb{border-width:1px}
}


/* V116: visual typography and compact information tooltip for Superset/Cadenza. */
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"],
#editorDialog .edit-table tbody tr.studio-ex-row select[data-field="kind"] option{
 font-weight:400;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair input[data-field="sets"],
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair input[data-field="goal"]{
 font-weight:800;
}
#editorDialog .studio-superset-popup{
 max-width:calc(100vw - 36px);
}

/* V117 — borderless, vertically resizable metadata textareas like Muscle Groups. */
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="subtitle"],
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="muscleGroups"],
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]{
 display:block;box-sizing:border-box;width:100%;max-width:100%;
 padding:6px 2px!important;margin:0;
 color:#f3f8ff;text-align:left;text-align-last:left;
 font:600 13px/22px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 background:transparent!important;border:1px solid transparent!important;
 border-radius:6px;box-shadow:none!important;outline:0;
 resize:vertical!important;overflow-y:auto;
}
#editorDialog .studio-main-meta .studio-fields-row textarea[data-field="subtitle"]{
 min-height:36px;height:36px;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]{
 min-height:80px;height:800px;
}
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="subtitle"]:hover,
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="subtitle"]:focus,
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]:hover,
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]:focus{
 background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
/* A bespoke menu, not the operating system's squared select list. */
#editorDialog .studio-kind-picker{position:relative;width:100%;min-width:0}
#editorDialog .studio-kind-picker select.studio-native-kind{display:none!important}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-kind-trigger{
 appearance:none;display:flex;align-items:center;justify-content:space-between;
 gap:3px;width:100%;min-height:36px;padding:0 8px;
 background:linear-gradient(135deg,#273e58,#1b3049);
 border:1px solid #4a6583;border-radius:11px;
 color:#e8f4ff;font-size:12px;font-weight:400;line-height:1;
 cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;
}
#editorDialog .studio-kind-trigger svg{flex:none;color:#9fbad5;transition:transform .15s ease}
#editorDialog .studio-kind-trigger:hover,
#editorDialog .studio-kind-trigger[aria-expanded="true"]{
 background:#304e6c;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .studio-kind-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
#editorDialog .studio-kind-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#editorDialog .studio-kind-menu{
 position:fixed;z-index:20000;box-sizing:border-box;padding:5px;
 background:#1c2e45;border:1px solid #557490;border-radius:13px;
 box-shadow:0 14px 34px rgba(0,0,0,.43),inset 0 1px 0 rgba(255,255,255,.045);
 display:flex;flex-direction:column;gap:3px;
}
#editorDialog .studio-kind-menu .studio-kind-option{
 appearance:none;border:0;border-radius:9px;min-height:34px;padding:8px 12px;
 background:transparent;color:#c6daec;font:400 12px/1 system-ui,sans-serif;
 text-align:left;cursor:pointer;
}
#editorDialog .studio-kind-menu .studio-kind-option:hover,
#editorDialog .studio-kind-menu .studio-kind-option:focus-visible{
 background:#344e6b;color:#fff;outline:none;
}
#editorDialog .studio-kind-menu .studio-kind-option[aria-selected="true"]{
 color:#fff;background:color-mix(in srgb,var(--accent) 25%,#21374e);
}

/* V118 — exact Superset field alignment and reliable contextual tips. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-superset-cell{
 position:relative;display:block;width:100%;min-width:0;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-superset-cell > input{
 display:block;width:100%;box-sizing:border-box;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-superset-cell > .studio-ex-link{
 position:absolute!important;left:50%!important;top:-11.5px!important;
 transform:translate(-50%,-50%)!important;
 z-index:8;width:22px;height:22px;display:grid;place-items:center;
 border-radius:7px;border:1px solid color-mix(in srgb,var(--accent) 65%,#30455d);
 color:var(--accent);background:#15283f;pointer-events:none;
 box-shadow:0 1px 7px #0c182c9c;
}
#editorDialog .studio-superset-popup{
 position:absolute!important;z-index:5000!important;
 max-width:calc(100% - 24px);
 background:#21344d;border:1px solid #6583a4;border-radius:10px;
 padding:12px 14px;box-shadow:0 12px 28px rgba(0,0,0,.45);
 color:#e7f2ff;font-size:12px;line-height:1.5;
 text-align:left;letter-spacing:normal;text-transform:none;white-space:normal;
 pointer-events:auto;
}
#editorDialog .edit-table thead th .studio-superset-head{position:relative;z-index:1}
#editorDialog .edit-table thead th .studio-superset-info{position:relative;z-index:2;flex-shrink:0}

/* V119 — clear focus outlines for Description and Muscle Groups;
   Training Notes stays borderless until actively selected. */
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="subtitle"]:focus,
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea[data-field="muscleGroups"]:focus,
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]:focus{
  background:rgba(255,255,255,.035)!important;
  border:1px solid color-mix(in srgb,var(--accent) 65%,#7b93b1)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent)!important;
  outline:none!important;
}
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]:not(:focus),
#editorDialog .studio-main-meta .studio-workout-notes textarea[data-field="notes"]:not(:focus):hover{
  background:transparent!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
  outline:none!important;
}

/* V120: aligned Superset values and unified Type/Units selection. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-superset-cell > input[data-field="superset"]{
 text-align:center!important;
 padding-left:4px!important;padding-right:4px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-kind-picker .studio-kind-trigger{
 min-width:0;max-width:100%;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-kind-picker .studio-kind-trigger span{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;
}

/* V121 — neutral, gray 3-second preparation between zero-rest Superset steps. */
#exerciseCard .inline-timer.is-prep{
 border-color:#667486;
 background:linear-gradient(155deg,#28323e,#17212d);
}
#exerciseCard .inline-timer.is-prep .sectiontitle,
#exerciseCard .inline-timer.is-prep .timer-caption{color:#cbd2da}
#exerciseCard .inline-timer.is-prep .timer-value{color:#f1f3f6}
#exerciseCard .inline-timer.is-prep .timer-ring{box-shadow:0 0 0 5px #1c2632,0 0 22px rgba(161,172,188,.13)}
#exerciseCard .inline-timer.is-prep .timer-ring-inner{background:#1c2632}
#exerciseCard .inline-timer.is-prep .timer-controls{min-height:31px;justify-content:center}
#exerciseCard .inline-timer.is-prep .timer-controls span{color:#c8d0da}

/* V122 — clear exercise state, linked supersets and integrated objective. */
#exerciseCard .current-exercise-status{
  margin:14px 0 5px;color:#9db3ce;font-size:10px;font-weight:900;
  letter-spacing:.11em;text-transform:uppercase;
}
#exerciseCard .current-name-line{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:12px}
#exerciseCard .current-name-line .current-title{margin:0;min-width:0;flex:0 1 auto}
:is(#exerciseCard,#focusTimerOverlay) .current-superset-badge{
  display:inline-flex;align-items:center;justify-content:center;max-width:100%;
  border:1px solid var(--accent);border-radius:999px;padding:6px 10px;
  color:var(--accent);background:var(--accentsoft);
  font-size:11px;font-weight:950;letter-spacing:.05em;white-space:nowrap;
}
#exerciseCard .superset-upnext{
  display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;
  border-left:3px solid var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);
  padding:9px 12px;margin:0 0 13px;border-radius:0 9px 9px 0;
}
#exerciseCard .superset-upnext span{font-size:10px;font-weight:900;letter-spacing:.08em;color:#aebfd5}
#exerciseCard .superset-upnext strong{font-size:13px;font-weight:850;color:#eaf5ff}
#exerciseCard .chips .chip:first-child{color:var(--accent);font-weight:900}
#exerciseCard .chips .chip:first-child strong{color:#fff}
details.block .plan-superset-chain .exercise-list{gap:8px}
details.block .plan-exercise-group{margin:0}
details.block .plan-exercise-group .exercise-list.plan-standalone{margin-top:13px}
@media(max-width:580px){
 #exerciseCard .current-exercise-status{margin-top:12px}
 :is(#exerciseCard,#focusTimerOverlay) .current-superset-badge{font-size:10px;padding:5px 9px}
 #exerciseCard .superset-upnext{padding:8px 10px}
 details.block .plan-superset-chain{padding-left:13px}
}

/* V123 — anticipo Superset sotto le indicazioni, con obiettivo completo. */
#exerciseCard .notes + .superset-upnext{margin-top:12px;margin-bottom:14px;align-items:center}
#exerciseCard .superset-upnext .superset-next-objective{
 font-size:11px;font-weight:800;letter-spacing:0;text-transform:none;
 color:var(--accent);border-left:1px solid #51647d;padding-left:10px;
}
@media(max-width:580px){
 #exerciseCard .superset-upnext .superset-next-objective{flex-basis:100%;border-left:0;padding-left:0}
}

/* During a rest the active row uses the timer's neutral, gray palette. */
details.block .exercise-list li.current.recovering{
  background:rgba(151,163,179,.12);
  border-color:#8795a8;
  color:#d9e0e9;
}
details.block .exercise-list li.current.recovering .dot{
  background:#a2adbc;
  border-color:#a2adbc;
  box-shadow:0 0 0 3px rgba(161,173,190,.16);
}
details.block .exercise-list li.current.recovering .plan-now-rest{
  background:#778799;
  border:1px solid #a1acba;
  color:#f5f7fa;
}

/* Bracket grouping the linked exercises in Programma. */
details.block .plan-superset-chain{
  position:relative;
  margin:8px 0 13px 3px;
  padding:6px 0 6px 20px;
  border-radius:14px 0 0 14px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 7%,transparent),transparent 64px);
}
details.block .plan-superset-chain::before{
  content:"";
  position:absolute;
  left:0;top:2px;bottom:2px;
  width:14px;
  box-sizing:border-box;
  border:2px solid color-mix(in srgb,var(--accent) 80%,transparent);
  border-right:0;
  border-radius:13px 0 0 13px;
  pointer-events:none;
}
/* Keep active/paused exercise highlighting; other Superset rows remain transparent. */
details.block .plan-superset-chain .exercise-list li:not(.current){
  background:transparent;
  box-shadow:none;
}
@media(max-width:580px){
  details.block .plan-superset-chain{padding-left:17px}
}

/* V127 — a single hover/focus language for all editable Studio fields. */
#editorDialog:not(.preview-active) #editorContent input:not([type="hidden"]):not(:disabled):not([readonly]):hover,
#editorDialog:not(.preview-active) #editorContent textarea:not(:disabled):not([readonly]):hover,
#editorDialog:not(.preview-active) #editorContent select:not(:disabled):hover,
#editorDialog:not(.preview-active) #editorContent .studio-kind-trigger:hover,
#editorDialog:not(.preview-active) #editorContent .studio-type-trigger:hover,
#editorDialog:not(.preview-active) #editorContent .studio-block-title-autogrow:hover,
#editorDialog:not(.preview-active) #editorContent .studio-ex-identity input[data-field="name"]:hover,
#editorDialog:not(.preview-active) #editorContent .studio-fields-row input:hover,
#editorDialog:not(.preview-active) #editorContent .studio-fields-row textarea:hover{
 background:#293b55!important;
 border-color:#435978!important;
 box-shadow:none!important;
 transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
#editorDialog:not(.preview-active) #editorContent input:not([type="hidden"]):not(:disabled):not([readonly]):focus,
#editorDialog:not(.preview-active) #editorContent textarea:not(:disabled):not([readonly]):focus,
#editorDialog:not(.preview-active) #editorContent select:not(:disabled):focus,
#editorDialog:not(.preview-active) #editorContent .studio-kind-trigger:focus-visible,
#editorDialog:not(.preview-active) #editorContent .studio-type-trigger:focus-visible{
 background:#0c1525!important;
 border-color:var(--accent)!important;
 box-shadow:0 0 0 2px var(--accentsoft)!important;
 outline:none!important;
}
/* Preserve disabled/locked rest indicators and existing custom dropdown functions. */
/* Title & note are laid out in flow, with a real gap rather than overlapping margins. */
#editorDialog .editor-block-head .editor-block-content{
 display:flex;flex-direction:column;justify-content:center;
 gap:5px;min-width:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading{
 position:relative;top:-3px;
 margin:0 0 -3px;padding:0;min-width:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow{
 display:block;position:relative;top:0;
 min-height:35px!important;
 padding:7px 7px 4px!important;
 line-height:1.3!important;
 margin:0!important;box-sizing:border-box;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-fields{
 margin:0!important;padding:0!important;min-width:0;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-note-input{
 display:block;margin:0!important;
 min-height:27px;height:27px;
 padding:4px 7px;box-sizing:border-box;
}

/* V128 — tightly stacked block name and notes: no negative offsets or overlapping boxes. */
#editorDialog .editor-block-head .editor-block-content{
  gap:2px!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading{
  position:static!important;top:auto!important;
  margin:0!important;padding:0!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow{
  position:static!important;top:auto!important;margin:0!important;
  min-height:30px!important;padding:4px 7px 3px!important;
  line-height:1.22!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-fields{
  position:static!important;margin:0!important;padding:0!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-note-input{
  position:static!important;margin:0!important;
  height:25px!important;min-height:25px!important;
  padding:3px 7px!important;
}
/* V128 — slight width transfer from Recupero to Tipologia, at every viewport. */
#editorDialog .edit-table .col-type{width:9.25%}
#editorDialog .edit-table .col-rest{width:8.5%}
/* No vertical divider before the Actions controls, including legacy pseudo borders. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::before,
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9)::after,
#editorDialog .edit-table thead th:nth-child(9)::before,
#editorDialog .edit-table thead th:nth-child(9)::after{
  content:none!important;display:none!important;border:0!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(9){padding-left:4px!important}
/* Header labels can use two lines; keep help buttons aligned and visible. */
#editorDialog .edit-table thead th{
  white-space:normal!important;
  vertical-align:middle;
  line-height:1.25;
  overflow-wrap:normal;
}
#editorDialog .edit-table thead th .studio-superset-head{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  align-content:center;gap:3px 5px;
  max-width:100%;line-height:1.2;
  white-space:normal;
}
#editorDialog .edit-table thead th .studio-superset-info{flex:0 0 15px}
#editorDialog .edit-table thead th.col-rest .studio-rest-heading{
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:2px;line-height:1.15;
}
#editorDialog .edit-table thead th.col-rest .studio-rest-heading span:last-child{
  font-size:10px;font-weight:550;text-transform:none;letter-spacing:0;color:#9eb7d1;
}
/* The rest cell contains only a number now. */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-rest-pair{
  display:block!important;grid-template-columns:none!important;gap:0!important;width:100%;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-rest-pair input{
  box-sizing:border-box;width:100%;min-width:0;text-align:center;
}
/* Superset chain is placed by measured row boundaries to stay at exact mid-gap. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-superset-cell > .studio-ex-link{
  top:0;left:50%!important;transform:translate(-50%,-50%)!important;
}

/* V129 — coherent exercise-editor proportions and notes. */
/* Values Serie and Rip keep their existing typography, only follow workout accent. */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair input[data-field="sets"],
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair input[data-field="goal"]{
  color:var(--accent)!important;
}
/* Technical notes: polished two-line writing area, no side brackets. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) textarea[data-field="note"]{
  display:block!important;width:100%!important;
  height:57px!important;min-height:57px!important;max-height:none!important;
  box-sizing:border-box;margin:0!important;
  padding:10px 11px!important;resize:vertical!important;
  line-height:1.55!important;font-size:11.5px!important;
  color:#e0ecf9!important;
  border:1px solid #42617c!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#1b324c,#182a40)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
  scrollbar-width:thin;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) textarea[data-field="note"]:hover{
  border-color:#7895af!important;background:#243b56!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) textarea[data-field="note"]:focus{
  border-color:var(--accent)!important;background:#14283f!important;
  box-shadow:0 0 0 2px var(--accentsoft)!important;
}
/* Shift a little width from Recupero to the other editable cells. */
#editorDialog .edit-table .col-rest{width:7.15%!important}
#editorDialog .edit-table .col-type{width:9.55%!important}
/* Align all exercise inputs around the central axis, even with two-line notes. */
#editorDialog .edit-table tbody tr.studio-ex-row td{
  vertical-align:middle!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2){padding-top:6px;padding-bottom:6px}
#editorDialog .edit-table tbody tr.studio-ex-row td>.studio-superset-cell,
#editorDialog .edit-table tbody tr.studio-ex-row td>.editor-scheme-pair,
#editorDialog .edit-table tbody tr.studio-ex-row td>.editor-rest-pair,
#editorDialog .edit-table tbody tr.studio-ex-row td>.studio-ex-identity{
  align-items:center;
}
/* Compact single-line headings; tooltip buttons remain on the same baseline. */
#editorDialog .edit-table thead th{white-space:nowrap!important;vertical-align:middle!important}
#editorDialog .edit-table thead th .studio-superset-head{
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;flex-wrap:nowrap!important;
  gap:4px!important;white-space:nowrap!important;
}
#editorDialog .edit-table thead th .studio-rest-heading{
  display:inline-flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;white-space:nowrap!important;
}
/* Display a seconds glyph visually without inserting it into numeric input values. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds{
  position:relative!important;display:block!important;width:100%;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds input[data-field="rest"]{
  width:100%!important;box-sizing:border-box!important;
  padding-right:13px!important;padding-left:2px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds::after{
  content:'sec';position:absolute;right:3px;top:50%;transform:translateY(-50%);
  pointer-events:none;color:#b9d3ea;font-size:12px;font-weight:700;
  line-height:1;opacity:.92;
}

/* V130 – consistent numeric fields, clearer dropdowns and tightly spaced block heading. */
#editorDialog .edit-table input[data-field="sets"],
#editorDialog .edit-table input[data-field="rest"]{
  appearance:textfield!important;
  -moz-appearance:textfield!important;
  text-align:center!important;
}
#editorDialog .edit-table input[data-field="sets"]::-webkit-inner-spin-button,
#editorDialog .edit-table input[data-field="sets"]::-webkit-outer-spin-button,
#editorDialog .edit-table input[data-field="rest"]::-webkit-inner-spin-button,
#editorDialog .edit-table input[data-field="rest"]::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds input[data-field="rest"]{
  padding:0 21px 0 5px!important;
  text-align:center!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds::after{
  font-size:9px!important;
  font-weight:600!important;
  right:4px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) textarea[data-field="note"]{
  resize:none!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-kind-trigger{
  padding-left:7px!important;
  padding-right:5px!important;
  gap:2px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-kind-trigger svg{
  width:11px!important;height:11px!important;flex:0 0 11px!important;
}
#editorDialog .editor-block-head .editor-block-content{
  gap:1px!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-heading textarea.studio-block-title-autogrow{
  padding:9px 7px 2px!important;
  line-height:1.22!important;
  min-height:33px!important;
  box-sizing:border-box!important;
}
#editorDialog .editor-block-head .editor-block-content .editor-block-note-input{
  margin:0!important;
}

/* V131: hover hints styled as the existing Studio information popovers. */
.studio-hover-tip{
 position:fixed; z-index:2147483000; box-sizing:border-box;
 width:max-content;max-width:min(310px,calc(100vw - 28px));
 padding:11px 14px; border:1px solid #587391;border-radius:12px;
 background:#182a42;color:#d9e8f8; box-shadow:0 15px 35px rgba(0,0,0,.48);
 font:500 12px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 letter-spacing:0;white-space:normal;text-align:left;overflow-wrap:anywhere;
 pointer-events:none;
}
.studio-hover-tip[hidden]{display:none!important}
#editorDialog .studio-hover-tip{
 border-color:color-mix(in srgb,var(--accent) 27%,#587391);
}

/* V133: make the seconds suffix visually match the adjacent value. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds::after{
  right:8px!important;
  font-family:inherit!important;
  font-size:11.5px!important;
  font-weight:inherit!important;
  letter-spacing:normal!important;
  color:#dceafa!important;
  opacity:1!important;
}

/* V134 — interactive column headers replace the separate (i) help buttons. */
#editorDialog .edit-table thead th .studio-column-help{
 display:inline-flex!important;align-items:center;justify-content:center;
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
 border:0!important;background:transparent!important;box-shadow:none!important;
 padding:6px 0 7px!important;margin:0!important;
 font:inherit!important;font-size:inherit!important;letter-spacing:inherit!important;
 text-transform:uppercase;color:inherit;line-height:1.2;
 white-space:nowrap;cursor:help;transition:color .18s ease;
}
#editorDialog .edit-table thead th:is(:first-child,:nth-child(2)) .studio-column-help{justify-content:flex-start}
#editorDialog .edit-table thead th:hover .studio-column-help,
#editorDialog .edit-table thead th .studio-column-help:hover,
#editorDialog .edit-table thead th .studio-column-help:focus-visible,
#editorDialog .edit-table thead th .studio-column-help[aria-expanded="true"]{color:var(--accent)!important}
#editorDialog .edit-table thead th .studio-column-help:focus-visible{
 outline:1px solid var(--accent)!important;outline-offset:2px;border-radius:4px;
}
#editorDialog .edit-table thead th{cursor:help}
/* Recovery values: visual units placed immediately after the number, centered together. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds::after{
 content:none!important;display:none!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 gap:0!important;width:100%;min-height:32px;
 padding:0 3px;border:1px solid #415a78;border-radius:7px;
 background:#172a43;transition:border-color .18s ease,background .18s ease;
 font-family:inherit;font-size:11.5px;font-variant-numeric:tabular-nums;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value:hover{
 border-color:#7695ae;background:#213954;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value:focus-within{
 border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 17%,transparent);
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value input[data-field="rest"]{
 display:block!important;flex:0 0 auto!important;
 width:var(--studio-rest-width,2.6ch)!important;min-width:0!important;max-width:65%!important;
 margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 outline:0!important;text-align:right!important;line-height:1.3!important;
 font:inherit!important;color:inherit!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value .studio-rest-quote{
 display:block;flex:0 0 auto;margin:0;padding:0;
 font:inherit!important;font-weight:inherit!important;line-height:1.3!important;
 color:#dceafa;pointer-events:none;
}
#editorDialog .edit-table tbody tr.studio-superset-locked .studio-rest-value{opacity:.72}

/* V135 — Recupero shares the same native field style as Cadenza/Superset. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value{
 background:#13243a!important;
 border:1px solid #324b67!important;
 border-radius:8px!important;
 box-shadow:none!important;
 color:#dceafa!important;
 font-family:inherit!important;
 font-size:11.5px!important;
 font-weight:400!important;
 min-height:40px!important;
 height:40px!important;
 padding:0 4px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value:hover{
 background:#293b55!important;border-color:#435978!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value:focus-within{
 background:#0c1525!important;border-color:var(--accent)!important;
 box-shadow:0 0 0 2px var(--accentsoft)!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value input[data-field="rest"],
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value .studio-rest-quote{
 color:#dceafa!important;font:inherit!important;font-size:11.5px!important;font-weight:400!important;
}
/* Exercise name: automatic wrapping, with no more than two visible lines. */
#editorDialog .edit-table .studio-ex-identity{align-items:center!important}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity textarea[data-field="name"]{
 display:block!important;flex:1 1 0!important;min-width:0!important;width:100%!important;
 min-height:34px!important;max-height:54px!important;
 height:auto!important;field-sizing:content;
 box-sizing:border-box!important;
 padding:7px 6px!important;
 line-height:19px!important;font-size:12px!important;font-weight:750!important;
 color:#f4f9ff!important;
 resize:none!important;overflow-y:auto!important;overflow-x:hidden!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;
 border:1px solid transparent!important;background:transparent!important;
 border-radius:7px!important;box-shadow:none!important;
 scrollbar-width:thin;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity textarea[data-field="name"]:hover{
 background:#293b55!important;border-color:#435978!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-ex-identity textarea[data-field="name"]:focus{
 background:#0c1525!important;border-color:var(--accent)!important;
 box-shadow:0 0 0 2px var(--accentsoft)!important;
}

/* V136 — Recupero: a single clipped, fixed-height editable surface. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value{
 display:flex!important;align-items:center!important;justify-content:center!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 overflow:hidden!important;box-sizing:border-box!important;
 padding:0 4px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value input[data-field="rest"]{
 display:block!important;align-self:center!important;
 height:28px!important;min-height:0!important;max-height:28px!important;
 box-sizing:border-box!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;outline:none!important;
 line-height:28px!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value input[data-field="rest"]:is(:hover,:focus){
 border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-value .studio-rest-quote{
 height:28px!important;line-height:28px!important;align-self:center!important;
}
/* V136 — metadata: one-line inputs have no resize grip or scrollbar;
   the same clean vertical resize control appears only for text that wraps. */
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea:is([data-field="subtitle"],[data-field="muscleGroups"],[data-field="equipment"]){
 display:block!important;box-sizing:border-box!important;
 height:36px;min-height:36px!important;
 resize:none!important;overflow:hidden!important;
 background:transparent!important;
 line-height:22px!important;padding:6px 2px!important;
 text-align:left!important;text-align-last:left!important;
}
#editorDialog .studio-main-meta .studio-fields-row > .editor-field > textarea.studio-meta-multiline{
 resize:vertical!important;overflow-y:auto!important;overflow-x:hidden!important;
 min-height:58px!important;
}

/* V137 — full-width Training Notes, identical to the other workout details. */
#editorDialog .studio-main-meta>.studio-fields-row.studio-notes-fields-row{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 width:100%;min-width:0;margin-top:3px;gap:0;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field{
 display:flex;flex-direction:column;align-items:stretch;min-width:0;
 gap:2px!important;padding:0!important;background:transparent!important;border:0!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field>label{
 display:block;width:100%;margin:0;padding:0 2px;line-height:17px;text-align:left;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field>textarea[data-field="notes"]{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;height:36px;min-height:36px!important;
 padding:6px 2px!important;margin:0!important;line-height:22px!important;
 background:transparent!important;border:1px solid transparent!important;border-radius:6px!important;
 color:#f3f8ff;font:600 13px/22px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 text-align:left!important;resize:none!important;overflow:hidden!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field>textarea[data-field="notes"].studio-meta-multiline{
 resize:vertical!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:58px!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field>textarea[data-field="notes"]:hover{
 background:rgba(255,255,255,.025)!important;
 border-color:color-mix(in srgb,var(--accent) 40%,#536b86)!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row>.editor-field>textarea[data-field="notes"]:focus{
 outline:0!important;background:rgba(255,255,255,.035)!important;
 border-color:var(--accent)!important;
 box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 13%,transparent)!important;
}

/* V138: column help is activated by the label itself, not empty header space. */
#editorDialog .edit-table thead th{cursor:default!important}
#editorDialog .edit-table thead th .studio-column-help{
 display:inline-flex!important;width:auto!important;max-width:100%!important;
 flex:0 0 auto!important;box-sizing:border-box!important;
 padding:5px 1px!important;margin:0!important;
 cursor:help!important;
}
#editorDialog .edit-table thead th:hover .studio-column-help{
 color:inherit!important;
}
#editorDialog .edit-table thead th .studio-column-help:is(:hover,:focus-visible,[aria-expanded="true"]){
 color:var(--accent)!important;
}

/* Recupero: the same editable surface, dimensions and typography as Cadenza.
   The numeric input is visually borderless inside the single field; the quote
   is non-editable decoration and does not change stored seconds. */
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds{
 display:block!important;width:100%!important;margin:0!important;padding:0!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 padding:0 3px!important;margin:0!important;box-sizing:border-box!important;
 overflow:hidden!important;border:1px solid #344a65!important;border-radius:8px!important;
 background:#101e31!important;color:#e9f1ff!important;
 font-size:11px!important;font-weight:400!important;line-height:1.35!important;
 box-shadow:none!important;transition:background .15s,border-color .15s!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value:hover{
 background:#20324b!important;border-color:#5d7897!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value:focus-within{
 background:#0c1525!important;border-color:var(--accent)!important;
 box-shadow:0 0 0 2px var(--accentsoft)!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value input[data-field="rest"]{
 display:block!important;flex:0 1 auto!important;
 width:var(--studio-rest-width,2.6ch)!important;min-width:1ch!important;max-width:70%!important;
 height:100%!important;min-height:0!important;max-height:100%!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;
 outline:0!important;box-shadow:none!important;
 font:inherit!important;font-size:11px!important;font-weight:400!important;line-height:1.35!important;
 color:inherit!important;text-align:right!important;
 appearance:textfield!important;-moz-appearance:textfield!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value input[data-field="rest"]:is(:hover,:focus){
 border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .studio-rest-seconds .studio-rest-value .studio-rest-quote{
 display:inline!important;flex:0 0 auto!important;
 width:auto!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;
 font:inherit!important;font-size:11px!important;font-weight:400!important;line-height:1.35!important;
 color:inherit!important;pointer-events:none!important;
}

/* V139 — Training Notes: scrollbar and resize grip only when text wraps. */
#editorDialog .studio-main-meta .studio-notes-fields-row > .editor-field > textarea[data-field="notes"]:not(.studio-meta-multiline){
  height:36px!important;min-height:36px!important;
  overflow:hidden!important;resize:none!important;
  scrollbar-width:none!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row > .editor-field > textarea[data-field="notes"].studio-meta-multiline{
  min-height:58px!important;resize:vertical!important;
  overflow-y:scroll!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#577995 #182a42!important;
}
#editorDialog .studio-main-meta .studio-notes-fields-row > .editor-field > textarea[data-field="notes"]:not(.studio-meta-multiline)::-webkit-scrollbar{display:none!important}
#editorDialog .studio-main-meta .studio-notes-fields-row > .editor-field > textarea[data-field="notes"].studio-meta-multiline::-webkit-scrollbar{display:block!important;width:9px!important}

/* V140 — inline measurement symbol follows minutes / seconds, not repetitions. */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit{
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;
 width:100%;min-width:0;max-width:100%;height:100%;min-height:31px;
 gap:0;border:1px solid #415a78;border-radius:7px;
 background:#172a43;
 color:var(--accent);font:inherit;font-weight:800;
 transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit:hover{
 border-color:#7695ae;background:#213954;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit:focus-within{
 border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 17%,transparent);
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit input[data-field="goal"]{
 box-sizing:content-box!important;flex:0 1 auto!important;
 width:var(--goal-text-width,2.5ch)!important;min-width:0!important;max-width:78%!important;
 padding:0!important;margin:0!important;outline:none!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
 font:inherit!important;font-weight:800!important;color:inherit!important;
 line-height:1.3!important;text-align:right!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit .studio-goal-suffix{
 display:inline!important;flex:0 0 auto;align-self:center;
 padding:0!important;margin:0!important;
 font:inherit!important;font-weight:800!important;font-size:inherit!important;
 line-height:1.3!important;color:inherit!important;
 pointer-events:none;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit[data-goal-unit="reps"] .studio-goal-suffix{display:none!important}

/* V141 — Obiettivo: seconda casella identica a Serie (incluse tipografia e dimensioni). */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit{
 width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
 box-sizing:border-box!important;padding:0 5px!important;
 border:1px solid #344a65!important;border-radius:8px!important;
 background:#101e31!important;
 font-family:inherit!important;font-size:11px!important;font-weight:800!important;
 line-height:1.35!important;color:var(--accent)!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit:hover{
 border-color:#7895af!important;background:#243b56!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit:focus-within{
 border-color:var(--accent)!important;background:#14283f!important;
 box-shadow:0 0 0 2px var(--accentsoft)!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit input[data-field="goal"],
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit .studio-goal-suffix{
 font-family:inherit!important;font-size:11px!important;font-weight:800!important;
 line-height:1.35!important;color:var(--accent)!important;
}
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit input[data-field="goal"]{
 height:100%!important;min-height:0!important;max-height:100%!important;
}

/* V142 — center the text in the Rip/Sec/Min objective input. */
#editorDialog .edit-table tbody tr.studio-ex-row .editor-scheme-pair .studio-goal-unit input[data-field="goal"]{
  text-align:center!important;
  text-align-last:center!important;
}

/* V145 — block actions use the same actual SVGs, geometry and interactive styles as exercise actions. */
#editorDialog .editor-block-head .studio-block-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:4px;
 min-width:0;min-height:44px;height:45px;align-self:center;margin:0;padding:0;
}
#editorDialog .editor-block-head .studio-block-actions>button:not(.editor-drag-handle){
 box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 padding:0!important;margin:0!important;align-self:center!important;
 border:1px solid #47617a!important;border-radius:8px!important;
 background:#273d56!important;color:#f1f5ff!important;
 cursor:pointer!important;transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}
#editorDialog .editor-block-head .studio-block-actions>button:not(.editor-drag-handle):hover,
#editorDialog .editor-block-head .studio-block-actions>button:not(.editor-drag-handle):focus-visible{
 background:#36516e!important;border-color:#7698b4!important;
}
#editorDialog .editor-block-head .studio-block-actions>button.negative:not(.editor-drag-handle){
 color:#ffbdc5!important;background:rgba(127,58,77,.19)!important;
 border-color:rgba(222,120,142,.25)!important;
}
#editorDialog .editor-block-head .studio-block-actions>button.negative:hover:not(.editor-drag-handle){
 background:#36516e!important;border-color:#7698b4!important;
}
#editorDialog .editor-block-head .studio-block-actions>button.paste-mode:not(.editor-drag-handle){
 background:#1b493b!important;border-color:#459b77!important;color:#bbfbe1!important;
}
#editorDialog .editor-block-head .studio-block-actions>button.paste-mode:hover:not(.editor-drag-handle){
 background:#265d49!important;
}
/* Exercise grip exactly: left solid rule, no dashed outer border, muted glyph. */
#editorDialog .editor-block-head .studio-block-actions>.editor-drag-handle{
 box-sizing:border-box!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 flex:0 0 24px!important;width:24px!important;min-width:0!important;max-width:24px!important;
 height:44px!important;min-height:44px!important;max-height:none!important;
 padding:0 2px!important;margin:0!important;align-self:stretch!important;
 position:relative!important;
 border:0!important;border-left:1px solid #597491!important;border-radius:8px!important;
 background:#243a54!important;color:#93aac7!important;
 cursor:grab!important;touch-action:none;user-select:none;
 transition:background .16s ease,color .16s ease,border-color .16s ease!important;
}
#editorDialog .editor-block-head .studio-block-actions>.editor-drag-handle:hover{
 background:rgba(255,255,255,.09)!important;color:var(--accent)!important;border-left-color:var(--accent)!important;
}
#editorDialog .editor-block-head .studio-block-actions>.editor-drag-handle:active{cursor:grabbing!important}
#editorDialog .editor-block-head .studio-block-actions>.editor-drag-handle svg{
 width:18px!important;height:22px!important;display:block!important;
}
#editorDialog .editor-block-head .studio-block-actions .editor-icon{
 display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;
}
#editorDialog .editor-block-head .studio-block-actions .editor-icon svg{
 width:17px;height:17px;display:block;
}
#editorDialog .editor-block-head .studio-block-actions button.negative .editor-icon svg{
 fill:none;stroke:currentColor;stroke-width:1.9;
}
#editorDialog .editor-block-head .studio-block-actions .studio-copy-icon svg{
 fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}

/* V146: align the block's three action icons with the exercise-row icons.
   The exercise drag handle ends 18px before the block header's right edge. */
#editorDialog .editor-block-head .studio-block-actions{
  margin-right:18px!important;
}

/* V147: WORKOUT STUDIO title is its own help trigger, like column headings. */
#editorDialog .studio-title-help-wrap{display:inline-block;position:relative;max-width:100%;vertical-align:top}
#editorDialog #studioHelpToggle.studio-title-help{
 display:inline;border:0;background:transparent;padding:0;margin:0;
 font:inherit;letter-spacing:inherit;line-height:inherit;
 color:inherit;white-space:nowrap;cursor:help;
 transition:color .17s ease;
}
#editorDialog #studioHelpToggle.studio-title-help:hover,
#editorDialog #studioHelpToggle.studio-title-help:focus-visible,
#editorDialog #studioHelpToggle.studio-title-help[aria-expanded="true"]{
 color:var(--studio-active-color,var(--accent))!important;
 filter:brightness(1.17);
}
#editorDialog #studioHelpToggle.studio-title-help:focus-visible{
 outline:1px solid var(--studio-active-color,var(--accent));outline-offset:4px;border-radius:3px
}
#editorDialog .studio-title-help-wrap .studio-help-popover{
 position:absolute;top:calc(100% + 13px);left:0;right:auto;
 width:min(355px,calc(100vw - 48px));max-width:calc(100vw - 48px);
 white-space:normal;z-index:1000;
}

/* V149 — duration value and unit are one continuous, editable field. */
#editorDialog .studio-main-meta .studio-duration-value{
 display:flex;align-items:center;justify-content:flex-start;gap:4px;
 min-height:36px;height:36px;box-sizing:border-box;width:100%;min-width:0;
 border:1px solid transparent;border-radius:7px;background:transparent;
 padding:0 2px;color:#f3f8ff;font-family:inherit;font-size:13px;font-weight:650;
 transition:background .15s ease,border-color .15s ease;
}
#editorDialog .studio-main-meta .studio-duration-value:hover{background:#293b55;border-color:#435978}
#editorDialog .studio-main-meta .studio-duration-value:focus-within{
 background:#0c1525;border-color:var(--accent);box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .studio-main-meta .studio-duration-value>input[data-field="duration"]{
 flex:0 1 3ch;min-width:2ch!important;width:3ch!important;max-width:4ch!important;
 min-height:0!important;height:100%!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;outline:none!important;
 font:inherit!important;color:inherit!important;text-align:right!important;
 appearance:textfield;-moz-appearance:textfield;
}
#editorDialog .studio-main-meta .studio-duration-value>input[data-field="duration"]::-webkit-inner-spin-button,
#editorDialog .studio-main-meta .studio-duration-value>input[data-field="duration"]::-webkit-outer-spin-button{
 -webkit-appearance:none;margin:0;
}
#editorDialog .studio-main-meta .studio-duration-value>span{
 flex:0 0 auto;white-space:nowrap;font:inherit!important;color:inherit!important;
}
/* V149 — the border stays put while the existing scrollbar sits 6px inward.
   Leave scrollbar width and the original field's outer dimensions unchanged. */
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) .studio-note-scroll-inset{
 width:100%;min-width:0;height:57px;box-sizing:border-box;overflow:hidden;
 border:1px solid #42617c;border-radius:11px;
 background:linear-gradient(145deg,#1b324c,#182a40);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
 transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) .studio-note-scroll-inset:hover{
 border-color:#7895af;background:#243b56;
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) .studio-note-scroll-inset:focus-within{
 border-color:var(--accent);background:#14283f;
 box-shadow:0 0 0 2px var(--accentsoft);
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) .studio-note-scroll-inset textarea[data-field="note"]{
 display:block!important;width:calc(100% - 6px)!important;
 min-height:55px!important;height:55px!important;max-height:55px!important;
 margin:0 6px 0 0!important;padding:9px 10px!important;
 box-sizing:border-box!important;background:transparent!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 outline:0!important;resize:none!important;overflow-y:auto!important;
 /* Preserve existing scrollbar widths; only its horizontal location changes. */
}
#editorDialog .edit-table tbody tr.studio-ex-row td:nth-child(2) .studio-note-scroll-inset textarea[data-field="note"]:is(:focus,:hover){
 background:transparent!important;border:0!important;box-shadow:none!important;
}

/* V150 · Progress Insights — a full dashboard, same design system. */
.progress-page[hidden]{display:none!important}
.progress-page{--progress-panel:#131f32;display:grid;gap:16px;margin-bottom:30px;min-width:0}
body.progress-open #app,body.progress-open #tabs{display:none!important}
body.progress-open [data-header-progress]{color:var(--accent)!important;border-color:var(--accent)!important;background:var(--accentsoft)!important}
.progress-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:24px 26px;border-radius:21px;border:1px solid #344a66;background:linear-gradient(125deg,#192b43,#101c30);box-shadow:inset 0 1px rgba(255,255,255,.045)}
.progress-hero:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent),transparent 85%)}
.progress-eyebrow{font-size:10px;color:var(--accent);letter-spacing:.16em;font-weight:900;text-transform:uppercase;margin-bottom:7px}
.progress-hero h2{font-size:clamp(25px,3.8vw,38px);margin:0 0 5px;letter-spacing:-.045em;line-height:1.13}
.progress-hero p{margin:0;font-size:12px;color:#aebfd5;line-height:1.6;max-width:620px}
.progress-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.progress-filterbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.progress-filterbar label{color:#9db5d0;font-weight:800;font-size:11px;letter-spacing:.07em;text-transform:uppercase}
.progress-select{max-width:100%;background:#182941;color:#e8f2ff;border:1px solid #415976;border-radius:9px;min-height:38px;padding:8px 32px 8px 11px;font:700 12px system-ui;outline:none;cursor:pointer}
.progress-select:focus-visible{border-color:var(--accent);outline:2px solid var(--accentsoft)}
.progress-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.progress-kpi{position:relative;overflow:hidden;background:#132238;border:1px solid #324761;border-radius:14px;padding:15px 17px;min-width:0}
.progress-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--accent);opacity:.75}
.progress-kpi span{display:block;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#94abc5}
.progress-kpi strong{font-size:clamp(22px,2.65vw,30px);font-weight:950;line-height:1.1;letter-spacing:-.045em;display:block;margin:9px 0 5px;color:#f2f7ff;font-variant-numeric:tabular-nums}
.progress-kpi small{display:block;font-size:11px;line-height:1.45;color:#95acc5}
.progress-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:15px;align-items:start}
.progress-stack{display:grid;gap:15px;min-width:0}
.progress-card{border:1px solid #344860;background:linear-gradient(155deg,#17263d,#101c2f);border-radius:18px;padding:19px;min-width:0}
.progress-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.progress-card h3{font-size:15px;line-height:1.2;letter-spacing:-.015em;margin:0;color:#f1f6ff}
.progress-card .progress-sub{font-size:11px;color:#9fb4cf;margin:5px 0 0}
.progress-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#bbccdf}
.progress-legend i{display:inline-block;width:9px;height:9px;background:var(--accent);border-radius:3px;margin-right:5px}
.progress-legend i.muted{background:#85a6c4}
.progress-chart{min-height:194px;display:flex;align-items:center;justify-content:center}
.progress-chart svg{width:100%;display:block;max-height:245px;overflow:visible}
.progress-empty{padding:34px 15px;text-align:center;border:1px dashed #3b526d;border-radius:12px;color:#9fb3cb;font-size:12px;line-height:1.6;width:100%}
.progress-empty svg{display:block;width:33px;height:33px;margin:0 auto 9px;color:var(--accent)}
.progress-bottom{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.progress-metric-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #2f425b;font-size:12px;color:#bfd0e4}
.progress-metric-row:last-child{border-bottom:0}
.progress-metric-row b{color:#f2f7ff;font-variant-numeric:tabular-nums}
.progress-footnote{font-size:11px;line-height:1.65;color:#8fa6c0;margin:6px 0 0}
.progress-session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 0;border-bottom:1px solid #30445b}
.progress-session-row:last-child{border-bottom:0}
.progress-session-row strong{font-size:12px;color:#f4f8ff;display:block}
.progress-session-row small{display:block;color:#96aec9;font-size:11px;margin-top:4px}
.progress-session-row b{color:var(--accent);font-size:12px;white-space:nowrap}
.progress-highlight{color:var(--accent)!important}
@media(max-width:920px){.progress-layout{grid-template-columns:1fr}.progress-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.progress-hero{padding:18px 16px}.progress-kpis{gap:7px}.progress-kpi{padding:13px 12px}.progress-kpi strong{font-size:23px}.progress-bottom{grid-template-columns:1fr}.progress-card{padding:14px}.progress-filterbar{width:100%}.progress-filterbar .progress-select{flex:1 1 120px;min-width:0}.progress-actions{width:100%}}

/* V151 — NEXTIME identity. TIME and timing dial follow the currently selected workout. */
.brand .nextime-mark{
  width:55px;height:55px;min-width:55px;border-radius:16px;
  display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(137deg,#eaf4ff 0%,color-mix(in srgb,var(--accent),#f3f9ff 35%) 100%);
  border:1px solid color-mix(in srgb,var(--accent),#e8f4ff 45%);
  box-shadow:0 9px 27px color-mix(in srgb,var(--accent),transparent 77%),inset 0 1px 0 rgba(255,255,255,.48);
  color:#101d30;letter-spacing:normal;
  transition:background .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.nextime-mark svg{width:42px;height:42px;display:block;overflow:visible}
.nextime-main-title{margin:4px 0 0;font-size:clamp(25px,3.1vw,34px);letter-spacing:-.06em;line-height:1.06;font-weight:1000}
.nextime-word{color:#f0f6ff;font:inherit;letter-spacing:inherit;white-space:nowrap}
.nextime-time{color:var(--accent);transition:color .2s ease}
.main-header-buttons [data-header-edit]{
  background:color-mix(in srgb,var(--accent),#17263c 10%);
  color:#e4efff;
  border:1px solid color-mix(in srgb,var(--accent),#526580 51%);
  box-shadow:0 4px 16px color-mix(in srgb,var(--accent),transparent 82%),inset 0 1px 0 rgba(255,255,255,.045);
  transition:background .17s ease,border-color .17s ease,box-shadow .17s ease,transform .17s ease;
}
.main-header-buttons [data-header-edit]:hover,
.main-header-buttons [data-header-edit]:focus-visible{
  background:color-mix(in srgb,var(--accent),#17263c 19%);
  border-color:var(--accent);
  box-shadow:0 5px 22px color-mix(in srgb,var(--accent),transparent 65%),0 0 0 1px color-mix(in srgb,var(--accent),transparent 64%);
  transform:translateY(-1px);
}
.nextime-screen-brand{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:0 0 9px;color:#dbe9ff}
.nextime-mini-mark{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;
  background:linear-gradient(138deg,#dceeff,color-mix(in srgb,var(--accent),#f5f8ff 33%));
  color:#101d30;border-radius:9px;
  border:1px solid color-mix(in srgb,var(--accent),#dceeff 45%);
  box-shadow:0 5px 17px color-mix(in srgb,var(--accent),transparent 82%);
}
.nextime-mini-mark svg{width:25px;height:25px;display:block}
.nextime-mini-wordmark{font-size:14px;font-weight:1000;letter-spacing:-.045em;line-height:1}
#editorDialog .nextime-studio-heading{min-width:0}
#editorDialog .nextime-screen-brand{margin-bottom:7px}
#editorDialog .nextime-mini-wordmark .nextime-time{color:var(--accent)}
#progressPage .nextime-screen-brand{margin:0 0 12px}
#progressPage .nextime-mini-wordmark{font-size:15px}
@media(max-width:580px){
  .brand .nextime-mark{width:46px;height:46px;min-width:46px;border-radius:14px}
  .nextime-mark svg{width:37px;height:37px}
  .nextime-main-title{font-size:clamp(23px,6.2vw,29px)}
  #editorDialog .nextime-screen-brand{margin-bottom:5px}
  .nextime-mini-mark{width:26px;height:26px;flex-basis:26px;border-radius:8px}
  .nextime-mini-mark svg{width:23px;height:23px}
}

/* V152 NEXTIME — visual identity: chosen stopwatch / next / growing performance. */
.brand .nextime-mark,
#editorDialog .nextime-mini-mark,
#progressPage .nextime-mini-mark{
  overflow:hidden!important; padding:0!important;
  border:1px solid #34465f!important;
  background:#101725!important;
  color:inherit!important;
  box-shadow:0 8px 20px rgba(0,0,0,.22),0 6px 20px color-mix(in srgb,var(--accent),transparent 87%)!important;
}
.brand .nextime-mark{border-radius:15px!important}
.nextime-symbol-art{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;pointer-events:none!important;user-select:none!important}
#editorDialog .nextime-mini-mark,#progressPage .nextime-mini-mark{border-radius:8px!important}
/* V155 — true 3→2→1 start cue in the existing timer, in workout color. */
#exerciseCard .inline-timer.is-start-prep .timer-ring{
 box-shadow:0 0 0 5px #101c2d,0 0 22px color-mix(in srgb,var(--accent),transparent 73%);
}
#exerciseCard .inline-timer.is-start-prep .timer-ring-inner{background:#101b2c}
#exerciseCard .inline-timer.is-start-prep .start-countdown-value{
 color:var(--accent);font-size:clamp(47px,7vw,65px);
 font-weight:1000;letter-spacing:-.045em;text-shadow:0 0 17px color-mix(in srgb,var(--accent),transparent 68%);
 font-variant-numeric:tabular-nums;
}
#exerciseCard .inline-timer.is-start-prep .timer-caption{color:var(--accent)}

/* V155 — shared compactible workout picker for both Visualizza and Modifica. */
#editorDialog .studio-workout-picker{position:relative;flex:0 0 auto;min-width:0;border-bottom:1px solid #304059;background:#142238}
#editorDialog .studio-workout-picker #editorTabs{border-bottom:0;padding-bottom:4px}
#editorDialog .studio-picker-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:1px 18px 7px;min-height:29px}
#editorDialog .studio-picker-summary{flex:1;min-width:0;color:#aebfd7;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#editorDialog .studio-picker-toggle{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px;
 width:27px;height:24px;padding:2px;border-radius:7px;
 color:#b8cde6;background:#21344f;border:1px solid #415b79;
 cursor:pointer;transition:background .17s,border-color .17s,color .17s;
}
#editorDialog .studio-picker-toggle svg{width:17px;height:17px;display:block}
#editorDialog .studio-picker-toggle:hover,#editorDialog .studio-picker-toggle:focus-visible{
 background:#314a69;border-color:var(--accent);color:var(--accent);outline:0;
}
#editorDialog .studio-workout-picker.is-collapsed #editorTabs{display:none!important}
#editorDialog .studio-workout-picker.is-collapsed .studio-picker-footer{padding:7px 18px;min-height:37px}

/* Restrict the formerly enormous active workout tile ONLY when viewport is narrow. */
@media(max-width:700px){
 #editorDialog #editorTabs{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;gap:7px;padding:10px 12px 5px;
 }
 #editorDialog .studio-workout-picker.is-collapsed #editorTabs{display:none!important}
 #editorDialog #editorTabs .editor-name-tab,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"]{
  box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;
  flex-wrap:wrap;align-content:center;justify-content:center;
  padding:3px!important;gap:2px;
 }
 #editorDialog #editorTabs .editor-name-input,
 #editorDialog #editorTabs .editor-name-static,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
  display:block;box-sizing:border-box;flex:1 1 100%!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding:8px 4px!important;margin:0!important;
  text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:clamp(11px,3vw,13px)!important;
 }
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-tile-tools{
  flex:0 0 auto;margin:0 auto 2px;padding:0;
  justify-content:center;gap:5px;
 }
 #editorDialog #editorTabs .editor-tile-icon{width:29px;height:29px;min-width:29px}
 #editorDialog #editorTabs .editor-add-workout{width:100%;min-width:0;max-width:100%;min-height:37px}
 #editorDialog .studio-picker-footer{padding-right:12px}
}

/* V156 — stacked, mode-aware headings in both workout views. */
#editorDialog .editor-top h2#editorTitle{
 margin:0!important;line-height:1!important;letter-spacing:normal!important;
}
#editorDialog #editorTitle .studio-title-help-wrap{
 display:inline-block;position:relative;vertical-align:top;
}
#editorDialog #studioHelpToggle.studio-title-help{
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;
 width:max-content;max-width:100%;text-align:left!important;
 gap:3px!important;margin:0!important;padding:0!important;
 white-space:normal!important;line-height:1.1!important;
 background:transparent!important;border:0!important;
}
#editorDialog #studioHelpToggle .studio-heading-mode{
 display:block;color:#fff!important;
 font-family:inherit;font-size:12px!important;font-weight:650!important;
 line-height:1.2!important;letter-spacing:.14em!important;
 transition:color .15s ease;
}
#editorDialog #studioHelpToggle .studio-heading-workout{
 display:block;color:var(--accent)!important;
 font-family:inherit;font-size:clamp(24px,2.6vw,32px)!important;
 font-weight:850!important;line-height:1.05!important;
 letter-spacing:-.04em!important;
 transition:filter .15s ease;
}
#editorDialog #studioHelpToggle:is(:hover,:focus-visible,[aria-expanded="true"]) .studio-heading-workout{
 filter:brightness(1.2);
}
#editorDialog #studioHelpToggle:is(:hover,:focus-visible,[aria-expanded="true"]) .studio-heading-mode{
 color:#fff!important;
}
@media(max-width:560px){
 #editorDialog #studioHelpToggle .studio-heading-workout{font-size:26px!important}
}

/* V157 — workout name alone receives its selected-workout accent in the collapsed picker. */
#editorDialog .studio-workout-picker.is-collapsed .studio-picker-summary{
 display:flex;align-items:center;gap:7px;min-width:0;
}
#editorDialog .studio-picker-summary .studio-picker-workout-name{
 display:inline-block;max-width:min(70%, 460px);min-width:0;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 padding:4px 9px;border-radius:7px;
 border:1px solid color-mix(in srgb,var(--picker-accent) 55%,transparent);
 background:color-mix(in srgb,var(--picker-accent) 16%,#142238);
 color:var(--picker-accent);font-weight:850;
 line-height:1.3;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

/* V158 — workbook tabs remain in a single responsive row in both modes. */
#editorDialog #editorTabs{
 display:grid!important;
 grid-template-columns:repeat(var(--studio-tabs-count,4),minmax(0,1fr))!important;
 flex-wrap:nowrap!important;align-items:stretch!important;
 gap:clamp(2px,.55vw,7px)!important;
 padding:10px clamp(5px,1.1vw,18px) 5px!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 box-sizing:border-box!important;overflow:visible!important;
}
#editorDialog #editorTabs .editor-name-tab,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"]{
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 width:100%!important;flex:unset!important;
 display:flex!important;justify-content:center!important;align-items:center!important;
 flex-wrap:nowrap!important;overflow:hidden!important;
 padding:0!important;margin:0!important;
}
#editorDialog #editorTabs .editor-name-input,
#editorDialog #editorTabs .editor-name-static,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
 box-sizing:border-box!important;display:block!important;
 flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:100%!important;
 text-align:center!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 padding:9px clamp(1px,.55vw,9px)!important;margin:0!important;
 font-size:clamp(8px,1.05vw,13px)!important;
}
#editorDialog #editorTabs .editor-add-workout{
 min-width:0!important;max-width:100%!important;width:100%!important;
 box-sizing:border-box!important;height:auto!important;min-height:34px!important;
}
@media(max-width:700px){
 #editorDialog #editorTabs{
  display:grid!important;
  grid-template-columns:repeat(var(--studio-tabs-count,4),minmax(0,1fr))!important;
  gap:3px!important;padding:8px 5px 4px!important;
 }
 #editorDialog #editorTabs .editor-name-tab,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"]{
  width:100%!important;max-width:100%!important;
  flex-wrap:nowrap!important;padding:0!important;
 }
 #editorDialog #editorTabs .editor-name-input,
 #editorDialog #editorTabs .editor-name-static,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
  flex:1 1 0!important;width:100%!important;min-width:0!important;
  padding:8px 1px!important;font-size:clamp(7px,1.65vw,11px)!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
}
/* V158 — scroll the entire studio dialog, not a separately scrolling body. */
#editorDialog{
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain;scrollbar-gutter:stable;
}
#editorDialog .editor-shell{
 height:auto!important;min-height:100%!important;display:block!important;
}
#editorDialog .editor-top,
#editorDialog .studio-workout-picker{position:relative!important;top:auto!important;}
#editorDialog .editor-body{
 overflow:visible!important;flex:none!important;min-height:0!important;
}

/* V159 — always-square add button; larger, legible workout names in BOTH studio modes. */
#editorDialog #editorTabs{
 grid-template-columns:repeat(var(--studio-workout-count,4),minmax(0,1fr))!important;
}
#editorDialog #editorTabs.has-add-workout{
 grid-template-columns:repeat(var(--studio-workout-count,4),minmax(0,1fr)) 40px!important;
}
#editorDialog #editorTabs .editor-add-workout{
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 width:40px!important;min-width:40px!important;max-width:40px!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 padding:0!important;margin:0!important;aspect-ratio:1/1!important;
 font-size:25px!important;line-height:1!important;align-self:center!important;
}
#editorDialog #editorTabs .editor-name-input,
#editorDialog #editorTabs .editor-name-static,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
 font-size:clamp(14px,1.2vw,17px)!important;
 font-weight:900!important;
 letter-spacing:-.025em!important;
}
@media(max-width:700px){
 #editorDialog #editorTabs{
  grid-template-columns:repeat(var(--studio-workout-count,4),minmax(0,1fr))!important;
 }
 #editorDialog #editorTabs.has-add-workout{
  grid-template-columns:repeat(var(--studio-workout-count,4),minmax(0,1fr)) 36px!important;
 }
 #editorDialog #editorTabs .editor-add-workout{
  width:36px!important;min-width:36px!important;max-width:36px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  font-size:23px!important;
 }
 #editorDialog #editorTabs .editor-name-input,
 #editorDialog #editorTabs .editor-name-static,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input,
 #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static{
  font-size:14px!important;
  padding:9px 1px!important;
 }
}

/* V160 — themed edit pencil beside MODIFICA; always-right studio action buttons. */
#editorDialog #studioHelpToggle .studio-heading-mode-line{
 display:inline-flex;align-items:center;gap:6px;max-width:100%;white-space:nowrap;
}
#editorDialog #studioHelpToggle .studio-heading-edit-icon{
 width:15px;height:15px;flex:0 0 15px;stroke:var(--accent);display:block;
 filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent),transparent 65%));
}
#editorDialog.preview-active #studioHelpToggle .studio-heading-edit-icon{display:none!important}
#editorDialog .editor-top{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 align-items:start!important;column-gap:8px!important;row-gap:0!important;
 flex-wrap:nowrap!important;
}
#editorDialog .editor-top>.nextime-studio-heading{
 min-width:0!important;width:auto!important;flex:initial!important;
}
#editorDialog .editor-top .editor-top-actions{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 flex-direction:row!important;flex-wrap:nowrap!important;
 width:max-content!important;max-width:none!important;min-width:max-content!important;
 margin:0 0 0 auto!important;align-self:start!important;gap:7px!important;
 grid-column:2!important;grid-row:1!important;
}
#editorDialog .editor-top-actions>.studio-head-square,
#editorDialog .editor-top-actions .studio-head-menu-wrap>.studio-head-square{
 flex:0 0 39px!important;min-width:39px!important;width:39px!important;
}
@media(max-width:430px){
 #editorDialog .editor-top{padding-left:10px!important;padding-right:10px!important;column-gap:4px!important}
 #editorDialog .editor-top .editor-top-actions{gap:5px!important}
 #editorDialog .editor-top-actions>.studio-head-square,
 #editorDialog .editor-top-actions .studio-head-menu-wrap>.studio-head-square{
  width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;
  flex-basis:35px!important;
 }
 #editorDialog .nextime-mini-wordmark{font-size:12px}
}

/* V161 — remove NEXTIME icon globally; add title icon also for Visualizza. */
.brand .nextime-mark,
#editorDialog .nextime-mini-mark,
#progressPage .nextime-mini-mark{display:none!important}
.brand, #editorDialog .nextime-screen-brand, #progressPage .nextime-screen-brand{gap:0!important}
#editorDialog .nextime-screen-brand, #progressPage .nextime-screen-brand{margin-bottom:7px!important}
.brand .nextime-main-title{margin-left:0!important}
#editorDialog .nextime-mini-wordmark, #progressPage .nextime-mini-wordmark{font-size:15px;font-weight:1000;letter-spacing:-.045em;line-height:1}
#editorDialog #studioHelpToggle .studio-heading-view-icon{
 width:15px;height:15px;flex:0 0 15px;stroke:var(--accent);display:none;
 filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent),transparent 65%));
}
#editorDialog.preview-active #studioHelpToggle .studio-heading-edit-icon{display:none!important}
#editorDialog.preview-active #studioHelpToggle .studio-heading-view-icon{display:block!important}
@media(max-width:580px){
  .brand{gap:0!important}
}

/* V163 — studio title spacing, two-row responsive picker, reveal-on-scroll toolbar. */
#editorDialog .nextime-studio-heading .nextime-screen-brand{margin-bottom:21px!important}
#editorDialog #editorTabs,
#editorDialog #editorTabs.has-add-workout{
  display:grid!important;
  grid-template-columns:repeat(var(--studio-picker-cols,4),minmax(0,1fr))!important;
  gap:7px!important;
  padding:11px 14px 7px!important;
  align-items:center!important;
}
#editorDialog #editorTabs .editor-name-tab,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"]{min-height:40px!important}
#editorDialog #editorTabs .editor-name-static,
#editorDialog #editorTabs .editor-name-input,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static,
#editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input{
  font-size:clamp(13px,1.25vw,16px)!important;
  padding:9px 5px!important;
}
@media(max-width:700px){
  #editorDialog #editorTabs,#editorDialog #editorTabs.has-add-workout{gap:5px!important;padding:9px 8px 5px!important}
  #editorDialog #editorTabs .editor-name-static,
  #editorDialog #editorTabs .editor-name-input,
  #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-static,
  #editorDialog #editorTabs .editor-name-tab[aria-selected="true"] .editor-name-input{font-size:14px!important;padding:9px 2px!important}
}
/* Only the bar track sticks; its collapsed height never obstructs scrolling. */
#editorDialog .studio-sticky-track{
  position:sticky;top:0;z-index:90;height:0;overflow:visible;
  pointer-events:none;
}
#editorDialog .studio-sticky-inner{
  display:flex;align-items:center;gap:12px;min-height:54px;padding:7px 13px;
  background:color-mix(in srgb,#142238 94%,var(--accent));
  border-bottom:1px solid color-mix(in srgb,var(--accent) 35%,#4a607c);
  box-shadow:0 8px 25px rgba(0,0,0,.36);
  backdrop-filter:blur(15px);
  opacity:0;transform:translateY(-110%);
  transition:transform .24s cubic-bezier(.2,.75,.24,1),opacity .22s ease;
  pointer-events:none;
}
#editorDialog.studio-toolbar-visible .studio-sticky-inner{
  opacity:1;transform:translateY(0);pointer-events:auto;
}
#editorDialog .studio-sticky-workouts{
  display:flex;align-items:center;gap:5px;min-width:0;flex:1 1 auto;
  overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;
}
#editorDialog .studio-sticky-workouts::-webkit-scrollbar{display:none}
#editorDialog .studio-sticky-chip{
  --picker-accent:#75baff;
  flex:0 0 auto;max-width:190px;min-width:36px;
  padding:6px 9px;border-radius:7px;
  border:1px solid color-mix(in srgb,var(--picker-accent) 50%,transparent);
  background:color-mix(in srgb,var(--picker-accent) 13%,#142238);
  color:var(--picker-accent);font-size:12px;font-weight:850;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;
  transition:background .17s,border-color .17s,box-shadow .17s;
}
#editorDialog .studio-sticky-chip[aria-current="true"]{
  background:color-mix(in srgb,var(--picker-accent) 24%,#142238);
  border-color:var(--picker-accent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
#editorDialog .studio-sticky-chip:hover{background:color-mix(in srgb,var(--picker-accent) 30%,#142238)}
#editorDialog .studio-sticky-actions{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end}
#editorDialog .studio-sticky-actions .editor-top-actions{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;gap:5px!important;margin:0!important;width:max-content!important;
  min-width:0!important;max-width:none!important;grid-column:auto!important;grid-row:auto!important;
}
#editorDialog .studio-sticky-actions .editor-top-actions>.studio-head-square,
#editorDialog .studio-sticky-actions .editor-top-actions .studio-head-menu-wrap>.studio-head-square{
  width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;
  flex:0 0 31px!important;padding:5px!important;border-radius:7px!important;
}
#editorDialog .studio-sticky-actions .studio-head-square svg{width:17px!important;height:17px!important}
#editorDialog .studio-actions-placeholder{grid-column:2;grid-row:1;align-self:start;justify-self:end;flex:0 0 auto}
@media(max-width:480px){
  #editorDialog .studio-sticky-inner{padding:6px 8px;gap:6px;min-height:46px}
  #editorDialog .studio-sticky-chip{font-size:11px;padding:5px 7px;max-width:132px}
  #editorDialog .studio-sticky-workouts{gap:4px}
  #editorDialog .studio-sticky-actions .editor-top-actions>.studio-head-square,
  #editorDialog .studio-sticky-actions .editor-top-actions .studio-head-menu-wrap>.studio-head-square{
    width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;flex-basis:29px!important
  }
}
@media(prefers-reduced-motion:reduce){#editorDialog .studio-sticky-inner{transition:none}}

/* V164 — compact header: workout-tile styling, only the active tile themed,
   with the contextual edit / view icon fixed at the left. */
#editorDialog .studio-sticky-inner{gap:8px!important;min-height:47px!important;padding:6px 10px!important}
#editorDialog .studio-sticky-mode-icon{
  flex:0 0 24px;display:grid;place-items:center;width:24px;height:29px;
  color:var(--accent);filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent),transparent 70%));
}
#editorDialog .studio-sticky-mode-icon svg{width:19px;height:19px;display:block}
#editorDialog .studio-sticky-mode-icon .studio-sticky-view-icon{display:none}
#editorDialog.preview-active .studio-sticky-mode-icon .studio-sticky-edit-icon{display:none}
#editorDialog.preview-active .studio-sticky-mode-icon .studio-sticky-view-icon{display:block}
#editorDialog .studio-sticky-workouts{gap:4px!important;flex:1 1 0;min-width:0!important}
#editorDialog .studio-sticky-chip,
#editorDialog .studio-sticky-chip[aria-current="false"]{
  flex:0 1 auto;min-width:31px;max-width:135px;
  padding:6px 8px!important;border-radius:9px!important;
  background:#111b2c!important;
  border:1px solid #34465f!important;
  border-top:3px solid #34465f!important;
  color:#e6eef9!important;font-size:11px!important;font-weight:850!important;
  line-height:1.15!important;min-height:30px;
  box-shadow:none!important;
  white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;
}
#editorDialog .studio-sticky-chip[aria-current="true"]{
  background:color-mix(in srgb,var(--picker-accent),#101b2d 84%)!important;
  border:1px solid var(--picker-accent)!important;
  border-top:3px solid var(--picker-accent)!important;
  color:#f2f7ff!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--picker-accent),transparent 74%)!important;
}
#editorDialog .studio-sticky-chip:hover{
  transform:translateY(-1px);background:#17253a!important;border-top-color:var(--picker-accent)!important;
}
#editorDialog .studio-sticky-chip[aria-current="true"]:hover{
  background:color-mix(in srgb,var(--picker-accent),#101b2d 77%)!important;
}
@media(max-width:480px){
  #editorDialog .studio-sticky-inner{gap:5px!important;padding:5px 7px!important}
  #editorDialog .studio-sticky-mode-icon{flex-basis:20px;width:20px}
  #editorDialog .studio-sticky-mode-icon svg{width:17px;height:17px}
  #editorDialog .studio-sticky-workouts{gap:3px!important}
  #editorDialog .studio-sticky-chip,
  #editorDialog .studio-sticky-chip[aria-current="false"]{
    padding:5px 6px!important;font-size:10px!important;max-width:100px;min-width:27px;
    min-height:28px;
  }
}

/* V165 — sticky selectors mirror the Studio editor-name-tab (V52), NOT homepage cards. */
#editorDialog .studio-sticky-chip,
#editorDialog .studio-sticky-chip[aria-current="false"]{
  background:#22324b!important;
  border:1px solid #465976!important;
  border-top:1px solid #465976!important;
  border-radius:9px!important;
  color:#e7f1ff!important;
  box-shadow:none!important;
  padding:6px 10px!important;
  min-height:30px!important;
  font-size:12px!important;
  font-weight:850!important;
  transform:none!important;
}
#editorDialog .studio-sticky-chip[aria-current="true"],
#editorDialog .studio-sticky-chip[aria-current="true"]:hover{
  background:var(--picker-accent)!important;
  border:1px solid var(--picker-accent)!important;
  border-top:1px solid var(--picker-accent)!important;
  border-radius:9px!important;
  color:#0b1726!important;
  box-shadow:none!important;
  transform:none!important;
}
#editorDialog .studio-sticky-chip[aria-current="false"]:hover{
  background:#2e4565!important;
  border-color:#607b9e!important;
  transform:none!important;
}
@media(max-width:480px){
  #editorDialog .studio-sticky-chip,
  #editorDialog .studio-sticky-chip[aria-current="false"]{
    padding:5px 7px!important;font-size:11px!important;min-height:28px!important;
  }
}

/* V166 — horizontally scroll the compact Studio workout strip when overflowed. */
#editorDialog .studio-sticky-workouts{scroll-behavior:smooth;min-width:0!important;overscroll-behavior-inline:contain}
#editorDialog .studio-sticky-workouts .studio-sticky-chip{flex:0 0 auto!important;min-width:max-content!important;max-width:145px!important}
#editorDialog .studio-sticky-scroll{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 24px;width:24px;height:29px;min-width:24px;padding:0;
  border:1px solid #536c89;border-radius:7px;
  background:#22324b;color:#e7f1ff;cursor:pointer;
  box-shadow:0 2px 7px rgba(0,0,0,.15);
}
#editorDialog .studio-sticky-scroll svg{width:16px;height:16px;display:block}
#editorDialog .studio-sticky-scroll:hover:not(:disabled){background:#304b6c;border-color:var(--accent)}
#editorDialog .studio-sticky-scroll:disabled{opacity:.32;cursor:default}
#editorDialog .studio-sticky-scroll[hidden]{display:none!important}
@media(max-width:480px){
  #editorDialog .studio-sticky-scroll{flex-basis:20px;width:20px;min-width:20px;height:27px}
  #editorDialog .studio-sticky-scroll svg{width:14px;height:14px}
  #editorDialog .studio-sticky-workouts .studio-sticky-chip{max-width:112px!important}
}

/* V167: always-visible workout selector; compact top scrolling toolbar remains independent. */
#editorDialog .studio-workout-picker #editorTabs{display:grid!important}

/* V168 — left-align the duration numeric value in workout details. */
#editorDialog .studio-main-meta .studio-duration-value>input[data-field="duration"]{
 text-align:left!important;
}

/* V169 — compact responsive home: two-row workout picker and icon-only header tools. */
@media (max-width:700px){
  .top{flex-wrap:nowrap!important;align-items:center!important;gap:7px!important;padding:16px 0 14px!important}
  .top .brand{min-width:0;flex:1 1 auto}
  .top .main-header-tools{width:auto!important;min-width:0!important;flex:0 0 auto!important;margin-left:auto!important;justify-content:flex-end!important;align-items:center!important}
  .top .main-header-tools .badge{display:none!important}
  .top .main-header-buttons{display:flex;flex-wrap:nowrap;align-items:center;gap:5px}
  .top .main-header-buttons .main-studio-button{display:inline-flex!important;justify-content:center;align-items:center;flex:0 0 35px!important;width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;padding:0!important;gap:0!important}
  .top .main-header-buttons .main-studio-button span{display:none!important}
  .top .main-header-buttons .main-studio-button svg{width:17px!important;height:17px!important;flex:0 0 17px!important}
  .top .nextime-main-title{font-size:clamp(21px,5.4vw,30px)!important}
  /* Always at most two rows; with extra workouts, scroll the grid sideways. */
  #tabs.tabs{display:grid!important;grid-auto-flow:column!important;grid-template-rows:repeat(2, minmax(59px,auto))!important;grid-template-columns:none!important;grid-auto-columns:calc((100% - 8px)/2)!important;gap:8px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding-bottom:4px}
  #tabs .tab-wrap{min-width:0!important;scroll-snap-align:start}
  #tabs .tab-wrap .tab{display:flex;align-items:center;justify-content:flex-start;min-height:59px!important;height:100%!important;padding:9px 39px 9px 10px!important;border-radius:12px!important;text-align:left}
  #tabs .tab-wrap .tab small{display:none!important}
  #tabs .tab-wrap .tab b{display:block;min-width:0;font-size:clamp(12px,3.1vw,16px)!important;line-height:1.2!important;overflow-wrap:anywhere!important;word-break:normal}
  #tabs .tab-session-btn{right:6px!important;width:29px!important;height:29px!important;min-width:29px!important;border-radius:8px!important}
  #tabs .tab-session-btn svg{width:16px!important;height:16px!important}
}
@media(max-width:370px){
  .top .main-header-buttons{gap:4px}
  .top .main-header-buttons .main-studio-button{flex-basis:32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
  #tabs.tabs{gap:6px!important;grid-auto-columns:calc((100% - 6px)/2)!important}
  #tabs .tab-wrap .tab{padding:7px 34px 7px 7px!important}
  #tabs .tab-wrap .tab b{font-size:12px!important}
  #tabs .tab-session-btn{right:4px!important;width:26px!important;height:26px!important}
}

/* V170 — homepage: 8 compact workout tiles in a 4×2 mobile grid, no sideways scroll. */
@media (max-width:700px){
  #tabs.tabs{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:none!important;
    grid-auto-rows:minmax(84px,auto)!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    gap:6px!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    padding-bottom:0!important;
  }
  #tabs .tab-wrap{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:3px!important;
    scroll-snap-align:none!important;
    position:relative!important;
    background:#111b2c;
    border:1px solid #2d3a50;
    border-top:3px solid var(--tab-accent);
    border-radius:12px;
    padding:4px 3px 5px!important;
  }
  #tabs .tab-wrap:has(.tab[aria-selected="true"]){
    border-color:var(--tab-accent);
    background:color-mix(in srgb,var(--tab-accent),#101b2d 84%);
  }
  #tabs .tab-wrap .tab{
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex:1 1 auto!important;
    min-height:39px!important;height:auto!important;
    width:100%!important;
    padding:2px 1px!important;
    background:transparent!important;
    border:none!important;
    border-radius:6px!important;
    box-shadow:none!important;
    text-align:center!important;
  }
  #tabs .tab-wrap .tab b{
    font-size:clamp(10px,2.9vw,13px)!important;
    line-height:1.12!important;
    letter-spacing:-.02em!important;
    overflow-wrap:anywhere!important;
    hyphens:auto;
  }
  #tabs .tab-wrap .tab small{display:none!important}
  #tabs .tab-session-btn{
    position:relative!important;
    top:auto!important;right:auto!important;left:auto!important;
    transform:none!important;
    align-self:center!important;
    flex:0 0 25px!important;
    width:36px!important;min-width:36px!important;
    height:25px!important;min-height:25px!important;
    margin:0!important;
    border-radius:7px!important;
  }
  #tabs .tab-session-btn:active{transform:scale(.95)!important}
  #tabs .tab-session-btn svg{width:14px!important;height:14px!important}
}
@media(max-width:370px){
  #tabs.tabs{gap:4px!important}
  #tabs .tab-wrap{padding:3px 2px 4px!important;border-radius:10px!important;gap:3px!important}
  #tabs .tab-wrap .tab{padding:2px 0!important;min-height:38px!important}
  #tabs .tab-wrap .tab b{font-size:clamp(9.5px,3vw,11.5px)!important}
  #tabs .tab-session-btn{width:32px!important;min-width:32px!important;height:24px!important;min-height:24px!important;flex-basis:24px!important}
}

/* V171 — no header line-break at intermediate viewport sizes. */
@media(max-width:900px){
  .top{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
  .top .brand{flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
  .top .main-header-tools{flex:0 0 auto!important;min-width:0!important;width:auto!important;margin-left:auto!important;align-items:center!important;justify-content:flex-end!important}
  .top .main-header-tools .badge{display:none!important}
  .top .main-header-buttons{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:6px!important}
  .top .main-header-buttons .main-studio-button{
    display:inline-flex!important;justify-content:center!important;align-items:center!important;
    flex:0 0 36px!important;width:36px!important;min-width:36px!important;
    height:36px!important;min-height:36px!important;padding:0!important;gap:0!important;
  }
  .top .main-header-buttons .main-studio-button span{display:none!important}
  .top .main-header-buttons .main-studio-button svg{width:17px!important;height:17px!important;flex:0 0 17px!important}
  .top .nextime-main-title{font-size:clamp(21px,3.7vw,29px)!important}
}
@media(max-width:370px){
  .top{gap:5px!important}
  .top .main-header-buttons{gap:4px!important}
  .top .main-header-buttons .main-studio-button{flex-basis:32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
}
/* V171 — flatter workout tiles: keep 4 columns x at most 2 rows for 8 workouts. */
@media(max-width:700px){
  #tabs.tabs{
    grid-auto-rows:minmax(0,auto)!important;
    gap:5px!important;
    margin-bottom:12px!important;
  }
  #tabs .tab-wrap{
    padding:3px 2px 4px!important;
    gap:1px!important;
    border-radius:10px!important;
  }
  #tabs .tab-wrap .tab{
    min-height:23px!important;
    height:auto!important;
    flex:0 1 auto!important;
    padding:2px 1px 0!important;
    line-height:1.06!important;
  }
  #tabs .tab-wrap .tab b{
    line-height:1.08!important;
    font-size:clamp(10px,2.75vw,12px)!important;
  }
  #tabs .tab-session-btn{
    width:29px!important;min-width:29px!important;
    height:22px!important;min-height:22px!important;flex-basis:22px!important;
    padding:2px!important;border-radius:6px!important;
  }
  #tabs .tab-session-btn svg{width:13px!important;height:13px!important}
}
@media(max-width:370px){
  #tabs.tabs{gap:4px!important}
  #tabs .tab-wrap{padding:2px 1px 3px!important;gap:0!important}
  #tabs .tab-wrap .tab{min-height:22px!important;padding:2px 0 0!important}
  #tabs .tab-wrap .tab b{font-size:clamp(9px,2.9vw,11px)!important}
  #tabs .tab-session-btn{width:27px!important;min-width:27px!important;height:21px!important;min-height:21px!important;flex-basis:21px!important}
}

/* V172 — In the mobile 4-column grid place Start beside the workout name
   while tiles have sufficient width; stack Start below only on very narrow viewports. */
@media (min-width:561px) and (max-width:700px){
  #tabs .tab-wrap{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:3px!important;
    padding:4px 4px!important;
  }
  #tabs .tab-wrap .tab{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:26px!important;
    padding:2px 0 2px 2px!important;
    text-align:left!important;
    justify-content:flex-start!important;
  }
  #tabs .tab-wrap .tab b{overflow-wrap:anywhere!important}
  #tabs .tab-session-btn{
    position:relative!important;
    flex:0 0 25px!important;
    width:25px!important;min-width:25px!important;
    height:24px!important;min-height:24px!important;
    align-self:center!important;
    margin:0!important;
  }
}
@media(max-width:560px){
  /* At narrow widths each tile has room for its name and Start on a new line. */
  #tabs .tab-wrap{flex-direction:column!important;align-items:stretch!important}
  #tabs .tab-wrap .tab{width:100%!important;text-align:center!important;justify-content:center!important}
  #tabs .tab-session-btn{align-self:center!important}
}

/* V174 — the actively running series indicator pulses like an illuminated red LED. */
@keyframes nextimeSeriesLedPulse{
  0%,100%{opacity:1;transform:scale(1.2);box-shadow:0 0 0 3px rgba(239,68,68,.22),0 0 13px 3px rgba(239,68,68,.58)}
  50%{opacity:.36;transform:scale(.88);box-shadow:0 0 0 1px rgba(239,68,68,.07),0 0 3px rgba(239,68,68,.13)}
}
#exerciseCard .series-focus.series-running .series-pips span.now,
#exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{
  animation:nextimeSeriesLedPulse 1.08s ease-in-out infinite;
}
/* The rail folds away smoothly: the timer fills its entire row. */
#exerciseCard .counterbox-with-series>.exercise-metrics{
  grid-template-columns:minmax(0,1fr) clamp(160px,22%,205px)!important;
  gap:12px;
  transition:grid-template-columns .42s cubic-bezier(.2,.8,.2,1),gap .42s cubic-bezier(.2,.8,.2,1);
}
#exerciseCard .exercise-metrics>.metrics-left{
  min-width:0!important;overflow:hidden;
  opacity:1;transform:translateX(0);
  transition:opacity .27s ease,transform .42s cubic-bezier(.2,.8,.2,1);
  pointer-events:auto;
}
#exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  grid-template-columns:minmax(0,1fr) 0fr!important;gap:0!important;
}
#exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
 opacity:0;transform:translateX(24px);pointer-events:none;
 visibility:hidden;transition:opacity .20s ease,transform .42s cubic-bezier(.2,.8,.2,1),visibility 0s linear .42s;
 padding:0!important;border:0!important;
}
#exerciseCard .counterbox-with-series .exercise-metrics.metrics-rail-closed .inline-timer .timer-ring{
 width:min(390px,calc(100% - 8px));
 transition:width .38s cubic-bezier(.2,.8,.2,1);
}
#exerciseCard .counterbox-with-series .exercise-metrics .inline-timer .timer-ring{
 transition:width .38s cubic-bezier(.2,.8,.2,1);
}
/* Easy-to-find, persistent disclosure control in the timer header. */
#exerciseCard .inline-timer .timer-heading-row{
 width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;
}
#exerciseCard .inline-timer .timer-heading-row .sectiontitle{
 min-width:0;margin:0;font-size:clamp(10px,1.15vw,12px);font-weight:850;
}
#exerciseCard .metrics-rail-toggle{
 display:inline-flex;justify-content:center;align-items:center;gap:6px;
 flex:0 0 auto;padding:6px 9px;min-height:31px;
 border:1px solid #526784;border-radius:9px;background:#1e3048;
 color:#e0ebf9;font-weight:800;font-size:11px;line-height:1;
 transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
#exerciseCard .metrics-rail-toggle:hover{background:#2c4462;border-color:#86a3c5;transform:translateY(-1px)}
#exerciseCard .metrics-toggle-icon{font-size:21px;font-weight:850;line-height:10px}
/* The input rail is legible and the recovery panel uses the neutral gray rest theme. */
#exerciseCard .exercise-metrics .metrics-left{
 gap:10px!important;padding:7px 2px!important;
}
#exerciseCard .exercise-metrics .actual-value-panel{
 max-width:none;min-width:0;padding:12px 7px!important;
 background:linear-gradient(165deg,#1b3048,#14243a);
 border:1px solid #405776;border-radius:12px;
}
#exerciseCard .exercise-metrics .actual-value-panel .counterhead h3{
 font-size:clamp(11px,1.15vw,13px);font-weight:900;color:#eaf3ff;
}
#exerciseCard .exercise-metrics .actual-value-panel .metrics-unit-label{
 font-size:10px;color:#b9cde6;line-height:1.3;
}
#exerciseCard .exercise-metrics .recovery-inside{
 max-width:none;min-width:0;padding:12px 7px!important;margin:0!important;
 background:linear-gradient(155deg,#313d4b,#252e3b);
 border:1px solid #687586;border-radius:12px;gap:9px;
}
#exerciseCard .exercise-metrics .recovery-inside label{
 font-size:clamp(11px,1.15vw,13px);font-weight:900;color:#eff3f8;
}
#exerciseCard .exercise-metrics .recovery-inside label .rest-unit{
 display:block;font-size:10px;font-weight:550;color:#bbc6d3;margin-top:5px;
}
#exerciseCard .exercise-metrics .recovery-inside .rest-reference{
 color:#c4cdd8;font-size:10px;
}
#exerciseCard .exercise-metrics .recovery-inside .rest-edit{
 background:#1a2634;border-color:#7d8b9b;color:#f3f6fa;
}
#exerciseCard .exercise-metrics .recovery-inside .countbtn{
 background:#405064;border-color:#78889a;color:#f4f7fa;
}
#exerciseCard .exercise-metrics .recovery-inside .countbtn:hover{background:#576d83}
#exerciseCard .exercise-metrics .counter .countbtn{
 min-height:35px;font-size:21px;font-weight:850;
}
@media(max-width:580px){
 #exerciseCard .counterbox-with-series>.exercise-metrics{
  grid-template-columns:minmax(0,1fr) clamp(119px,36%,150px)!important;gap:7px;
 }
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  grid-template-columns:minmax(0,1fr) 0fr!important;gap:0!important;
 }
 #exerciseCard .exercise-metrics .metrics-left{padding:3px 0!important;gap:7px!important}
 #exerciseCard .exercise-metrics .actual-value-panel,
 #exerciseCard .exercise-metrics .recovery-inside{padding:9px 3px!important}
 #exerciseCard .exercise-metrics .actual-value-panel .counterhead h3,
 #exerciseCard .exercise-metrics .recovery-inside label{font-size:11px}
 #exerciseCard .exercise-metrics .actual-value-panel .metrics-unit-label,
 #exerciseCard .exercise-metrics .recovery-inside label .rest-unit{font-size:9px}
 #exerciseCard .metrics-rail-toggle{padding:6px 7px;font-size:10px}
 #exerciseCard .counterbox-with-series .exercise-metrics.metrics-rail-closed .inline-timer .timer-ring{
   width:min(292px,calc(100% - 6px));
 }
}
@media(prefers-reduced-motion:reduce){
 #exerciseCard .series-focus.series-running .series-pips span.now{animation:none;box-shadow:0 0 0 3px rgba(239,68,68,.35)}
 #exerciseCard .counterbox-with-series>.exercise-metrics,
 #exerciseCard .exercise-metrics>.metrics-left,
 #exerciseCard .counterbox-with-series .exercise-metrics .inline-timer .timer-ring{transition:none}
}

/* V175 — timer with an integrated dial and readable controls. */
#exerciseCard .inline-timer{min-width:0!important;overflow:visible;position:relative;padding:12px 9px!important}
#exerciseCard .inline-timer .timer-main-area{width:100%;position:relative;display:flex;align-items:center;justify-content:center;padding:3px 18px 3px 0}
#exerciseCard .exercise-metrics .inline-timer .timer-ring,
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-ring{
 width:min(100%,370px)!important;max-width:370px!important;aspect-ratio:1!important;height:auto!important;
 margin:5px auto!important;transition:width .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease!important;
}
#exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-ring{max-width:270px!important}
#exerciseCard .inline-timer .timer-ring-inner{
 width:90%!important;height:90%!important;min-width:0;min-height:0;padding:9% 3% 8%;display:flex!important;
 flex-direction:column!important;align-items:center!important;justify-content:space-evenly!important;gap:3px!important;
}
#exerciseCard .timer-inside-label{
 width:100%;color:#eff6ff;text-align:center;font-size:clamp(9px,1.05vw,12px);
 line-height:1.2;font-weight:900;letter-spacing:.035em;white-space:normal;
}
#exerciseCard .inline-timer .timer-value{
 font-size:clamp(36px,5vw,69px)!important;font-weight:1000!important;line-height:.97!important;
 letter-spacing:-.075em!important;white-space:nowrap;
}
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-value{font-size:clamp(48px,6.5vw,86px)!important}
#exerciseCard .inline-timer .timer-caption{font-size:clamp(8px,1vw,11px)!important;line-height:1.2;text-align:center}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls{
 width:100%;margin:0!important;display:flex!important;justify-content:center!important;align-items:center!important;
 flex-wrap:nowrap!important;gap:clamp(2px,.5vw,6px)!important;padding:0 2px;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn{
 display:inline-flex;align-items:center;justify-content:center;min-width:0!important;
 padding:5px 5px!important;min-height:28px!important;height:auto;flex:0 1 auto!important;
 font-size:clamp(9px,.96vw,12px)!important;line-height:1.15!important;font-weight:850!important;
 border-radius:8px;white-space:nowrap;
}
#exerciseCard .inline-timer.is-rest .timer-inside-label{color:#cfd7e2}
#exerciseCard .metrics-rail-toggle{
 position:absolute!important;z-index:5;right:0!important;top:50%!important;transform:translate(2px,-50%)!important;
 width:24px!important;min-width:24px!important;height:96px!important;min-height:96px!important;
 padding:0!important;border-radius:14px 5px 5px 14px!important;
 background:linear-gradient(180deg,#293f5d,#17283f)!important;
 border:1px solid #627b9c!important;border-right:3px solid var(--accent)!important;
 box-shadow:-5px 4px 14px rgba(0,0,0,.22)!important;
 transition:background .32s ease,box-shadow .32s ease,border-color .32s ease!important;
}
#exerciseCard .metrics-rail-toggle:hover{background:#354d69!important;box-shadow:-7px 6px 20px rgba(0,0,0,.35)!important}
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon{font-size:26px;line-height:1;display:block;transition:transform .35s ease}
#exerciseCard .exercise-metrics.metrics-rail-closed .metrics-toggle-icon{transform:rotate(180deg)}
#exerciseCard .counterbox-with-series>.exercise-metrics{
 transition:grid-template-columns .62s cubic-bezier(.22,1,.36,1),gap .62s cubic-bezier(.22,1,.36,1)!important;
}
#exerciseCard .exercise-metrics>.metrics-left{transition:opacity .42s ease,transform .62s cubic-bezier(.22,1,.36,1),visibility 0s!important}
#exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
 transition:opacity .35s ease,transform .62s cubic-bezier(.22,1,.36,1),visibility 0s linear .62s!important;
}
/* Same red blinking LED during a recovery interval. */
#exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{
 background:#9aa9bc!important;border-color:#9aa9bc!important;animation:nextimeRecoveryLedPulse 1.08s ease-in-out infinite;
}
/* The active Stop button keeps the Play button's workout-colored treatment. */
/* Global actions live in the workout's recap, above the three stats. */
.top .main-header-buttons{display:none!important}
.overview-hero .overview-toolbar{display:flex;align-items:center;justify-content:center;width:100%;margin:0 0 10px}
.overview-hero .overview-toolbar .main-header-buttons{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:7px}
.overview-hero .overview-toolbar .main-studio-button{min-height:35px;padding:7px 9px}
.overview-hero .overview-right{justify-content:flex-start}
.overview-hero .overview-details{align-items:flex-start!important;row-gap:12px!important}
.overview-hero .overview-details .overview-detail{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;row-gap:5px!important;margin:0!important}
.overview-hero .overview-details .muscle-summary,.overview-hero .overview-details .equipment-summary{
 display:block!important;font-size:13px!important;line-height:1.45!important;font-weight:500!important;
 text-transform:none!important;letter-spacing:0!important;color:#d9e6f5!important;
}
@media(max-width:1000px){
 .overview-hero .overview-toolbar{justify-content:flex-end!important}
 .overview-hero .overview-toolbar .main-studio-button{min-height:32px;padding:5px 7px;font-size:11px}
}
@media(max-width:700px){
 .overview-hero .overview-details{flex-direction:column!important;gap:10px!important}
 .overview-hero .overview-details .overview-detail + .overview-detail{border-left:0!important;padding-left:0!important}
 .overview-hero .overview-toolbar{justify-content:flex-end!important}
 .overview-hero .overview-toolbar .main-studio-button{width:33px!important;height:33px!important;padding:6px!important;min-width:33px!important}
 .overview-hero .overview-toolbar .main-studio-button span{display:none!important}
 .overview-hero .overview-toolbar .main-studio-button svg{width:17px!important;height:17px!important}
 #exerciseCard .inline-timer .timer-value{font-size:clamp(32px,7vw,57px)!important}
 #exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-value{font-size:clamp(46px,11vw,72px)!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn{font-size:clamp(8px,2.2vw,11px)!important;padding:4px 4px!important;min-height:24px!important}
 #exerciseCard .timer-inside-label{font-size:clamp(8px,2.1vw,11px)!important}
 #exerciseCard .metrics-rail-toggle{width:22px!important;min-width:22px!important;height:75px!important;min-height:75px!important}
}
@media(max-width:700px){
 /* Keep compact app actions anchored at the recap's upper-right corner. */
 .overview-hero{position:relative!important}
 .overview-hero .overview-toolbar{
  position:absolute!important;top:12px!important;right:14px!important;width:auto!important;
  margin:0!important;z-index:4!important;
 }
 .overview-hero .overview-heading .hero-eyebrow{max-width:calc(100% - 115px)}
}
@media(max-width:390px){
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-ring{max-width:230px!important}
 #exerciseCard .inline-timer .timer-ring-inner{padding:7% 2%!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn{font-size:8px!important;padding:3px 3px!important}
}
body.progress-open .top .main-header-buttons{display:flex!important}
@media(prefers-reduced-motion:reduce){
 #exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{animation:none!important}
}


/* V176 — Compact, stable dial; mini exercise context and deliberate controls. */
#exerciseCard .counterbox-with-series>.exercise-metrics{align-items:start!important;align-content:start!important}
#exerciseCard .exercise-metrics .inline-timer{
 min-height:0!important;height:auto!important;align-self:start!important;
 justify-content:flex-start!important;gap:0!important;
 padding:11px 8px 12px!important;overflow:visible!important;
}
#exerciseCard .exercise-metrics .inline-timer .timer-quick-info{
 width:100%;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;
 gap:4px 10px;padding:2px 6px 4px;text-align:center;line-height:1.35;
}
#exerciseCard .timer-quick-name{
 display:block;max-width:100%;font-size:16px;font-weight:850;color:#ecf4ff;
 white-space:normal;overflow-wrap:anywhere;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 12px;color:#c4d5e9;font-size:10px;line-height:1.35}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts b{font-weight:800;color:#f1f6ff;margin-right:2px}
#exerciseCard .inline-timer .timer-outside-label{
 margin:2px 0 5px;color:var(--accent);text-transform:uppercase;
 font-size:11px!important;font-weight:900;letter-spacing:.075em;line-height:1.25;text-align:center;
}
#exerciseCard .inline-timer.is-rest .timer-outside-label,
#exerciseCard .inline-timer.is-prep .timer-outside-label{color:#b5c3d4}
#exerciseCard .inline-timer .timer-main-area{
 padding:2px 24px 2px 0!important;margin:0!important;min-height:0!important;
 flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
}
#exerciseCard .exercise-metrics .inline-timer .timer-ring,
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-ring{
 width:min(100%,320px)!important;max-width:320px!important;
 height:auto!important;aspect-ratio:1!important;margin:3px auto!important;
}
#exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-ring{max-width:260px!important}
#exerciseCard .exercise-metrics .inline-timer .timer-ring-inner{
 width:90%!important;height:90%!important;padding:10% 5%!important;
 justify-content:center!important;gap:9px!important;
}
/* No viewport-dependent font resizing during sidebar transitions or window resizing. */
#exerciseCard .exercise-metrics .inline-timer .timer-value,
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-value{
 font-size:54px!important;line-height:1!important;letter-spacing:-.065em!important;
 font-variant-numeric:tabular-nums;white-space:nowrap;
}
#exerciseCard .inline-timer .timer-caption{
 font-size:10px!important;letter-spacing:.055em!important;line-height:1.3!important;
 max-width:100%;padding:0 2px;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls{
 width:auto!important;max-width:100%;display:flex!important;gap:5px!important;
 padding:0!important;margin:3px 0 0!important;align-items:center!important;flex-wrap:nowrap!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
 box-sizing:border-box;flex:0 0 43px!important;width:43px!important;height:43px!important;
 min-height:43px!important;min-width:43px!important;max-width:43px!important;
 border-radius:50%!important;padding:0!important;
 display:inline-flex;align-items:center;justify-content:center;
 font-size:13px!important;font-weight:900!important;
 font-variant-numeric:tabular-nums;letter-spacing:-.035em!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
 box-sizing:border-box;flex:0 0 auto!important;display:inline-flex!important;gap:7px!important;
 min-width:88px!important;height:43px!important;min-height:43px!important;
 padding:0 12px!important;border-radius:23px!important;font-size:12px!important;
 font-weight:900!important;letter-spacing:.005em!important;
}
#exerciseCard .timer-pause-glyph{display:inline-flex;gap:3px;align-items:center;justify-content:center}
#exerciseCard .timer-pause-glyph i{display:block;width:4px;height:13px;background:currentColor;border-radius:1px}
#exerciseCard .timer-play-glyph{font-size:13px;line-height:1}
#exerciseCard .inline-timer .timer-controls.prep-controls .mini{font-size:11px!important;color:#c4d5e8}
/* On very narrow screens, an opened data panel stacks below the dial to avoid unreadable controls. */
@media(max-width:600px){
 #exerciseCard .counterbox-with-series>.exercise-metrics:not(.metrics-rail-closed){
  grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
 }
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed)>.metrics-left{grid-row:2;max-height:none}
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed)>.inline-timer{grid-row:1}
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-ring{max-width:320px!important}
 #exerciseCard .inline-timer .timer-main-area{padding-right:21px!important}
}
@media(max-width:360px){
 #exerciseCard .exercise-metrics .inline-timer .timer-ring,
 #exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-ring{max-width:278px!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls{gap:3px!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
  flex-basis:38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;
  height:38px!important;min-height:38px!important;font-size:12px!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
  min-width:82px!important;height:38px!important;min-height:38px!important;padding:0 9px!important}
}


/* V176 precision: keep all timer actions INSIDE the dial at every width. */
#exerciseCard .inline-timer .timer-ring-inner .timer-controls{
 width:max-content!important;max-width:100%!important;flex:0 0 auto!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
 flex:0 0 92px!important;width:92px!important;min-width:92px!important;max-width:92px!important;
}
#exerciseCard .inline-timer .timer-ring-inner{padding-left:2%!important;padding-right:2%!important}
@media(max-width:360px){
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
  flex:0 0 35px!important;width:35px!important;min-width:35px!important;max-width:35px!important;
  height:35px!important;min-height:35px!important;
 }
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
  flex:0 0 84px!important;width:84px!important;min-width:84px!important;max-width:84px!important;
  height:35px!important;min-height:35px!important;
 }
}

/* V177 — responsive accordion rail; the dial stays independent of its editable data. */
@keyframes nextimeRecoveryLedPulse{
 0%,100%{opacity:1;transform:scale(1.2);box-shadow:0 0 0 3px rgba(154,169,188,.23),0 0 13px 3px rgba(154,169,188,.62)}
 50%{opacity:.37;transform:scale(.87);box-shadow:0 0 0 1px rgba(154,169,188,.06),0 0 3px rgba(154,169,188,.13)}
}
#exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{
 background:#9aa9bc!important;border-color:#9aa9bc!important;
 animation:nextimeRecoveryLedPulse 1.08s ease-in-out infinite!important;
}
/* The session actions are never children of the folding rail and remain visible. */
#exerciseCard > .actions{display:grid!important;visibility:visible!important;opacity:1!important}
#exerciseCard .counterbox-with-series>.exercise-metrics{
 grid-template-columns:minmax(0,1fr) minmax(0,190px)!important;
 gap:12px!important;
 transition:grid-template-columns .8s cubic-bezier(.2,.8,.2,1),gap .8s cubic-bezier(.2,.8,.2,1)!important;
}
#exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
 grid-template-columns:minmax(0,1fr) minmax(0,0fr)!important;
 gap:0!important;
}
#exerciseCard .exercise-metrics>.metrics-left{
 overflow:hidden!important;min-width:0!important;
 transition:opacity .52s ease,transform .8s cubic-bezier(.2,.8,.2,1),visibility 0s linear 0s!important;
}
#exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
 opacity:0!important;transform:translateX(20px)!important;visibility:hidden!important;pointer-events:none!important;
 padding:0!important;border:0!important;
 transition:opacity .48s ease,transform .8s cubic-bezier(.2,.8,.2,1),visibility 0s linear .8s!important;
}
/* A narrow dedicated column keeps the chevron OUTSIDE the circular clock. */
#exerciseCard .inline-timer .timer-main-area{
 width:100%!important;min-width:0!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) 25px!important;
 align-items:center!important;column-gap:clamp(11px,1.5vw,19px)!important;
 padding:0 5px!important;box-sizing:border-box!important;
}
#exerciseCard .inline-timer .timer-main-area .timer-ring{
 grid-column:1!important;grid-row:1!important;
 width:100%!important;max-width:340px!important;height:auto!important;
 aspect-ratio:1!important;margin:3px auto!important;
 transition:max-width .8s cubic-bezier(.2,.8,.2,1),box-shadow .8s ease!important;
}
#exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring{
 max-width:260px!important;
}
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-main-area .timer-ring{
 max-width:340px!important;
}
#exerciseCard .inline-timer .metrics-rail-toggle{
 grid-column:2!important;grid-row:1!important;position:static!important;
 align-self:center!important;justify-self:center!important;
 inset:auto!important;right:auto!important;top:auto!important;
 transform:none!important;display:grid!important;place-items:center!important;
 width:24px!important;min-width:24px!important;height:91px!important;min-height:91px!important;
 padding:0!important;line-height:1!important;
}
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon{
 width:19px;height:19px;display:grid!important;place-items:center!important;
 font-size:0!important;line-height:0!important;transform:none!important;
}
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon svg{
 width:17px!important;height:17px!important;display:block!important;
 transform:translateX(0px) rotate(0deg);
 transition:transform .45s ease;
}
#exerciseCard .exercise-metrics.metrics-rail-closed .metrics-rail-toggle .metrics-toggle-icon svg{
 transform:translateX(0px) rotate(180deg);
}
/* Context is a two-line block: exercise name then goal and recovery. */
#exerciseCard .exercise-metrics .inline-timer .timer-quick-info{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;flex-wrap:nowrap!important;gap:4px!important;
 padding:3px 5px 6px!important;
}
#exerciseCard .timer-quick-name{width:100%;text-align:center!important;line-height:1.3!important}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts{display:flex!important;justify-content:center!important;gap:5px 13px!important}
/* Phase label inside the dial, above the digits, no duplicate external label. */
#exerciseCard .inline-timer .timer-ring-inner{
 justify-content:center!important;gap:7px!important;padding:7% 2% 5%!important;
}
#exerciseCard .timer-inside-label{
 display:block!important;color:var(--accent)!important;font-size:11px!important;
 font-weight:900!important;letter-spacing:.075em!important;text-transform:uppercase;
 line-height:1.25!important;text-align:center!important;
}
#exerciseCard .inline-timer.is-rest .timer-inside-label,
#exerciseCard .inline-timer.is-prep .timer-inside-label,
#exerciseCard .inline-timer.is-start-prep .timer-inside-label{color:#b5c3d4!important}
/* A slightly lower, tighter row leaves the numerical time dominant. */
#exerciseCard .inline-timer .timer-ring-inner .timer-controls{
 margin-top:10px!important;gap:5px!important;transform:translateY(3px);
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
 width:38px!important;min-width:38px!important;max-width:38px!important;flex:0 0 38px!important;
 height:38px!important;min-height:38px!important;font-size:12px!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
 width:82px!important;min-width:82px!important;max-width:82px!important;flex:0 0 82px!important;
 height:38px!important;min-height:38px!important;padding:0 8px!important;
 font-size:11px!important;gap:5px!important;
}
/* The logged amount inherits the workout hue, the planned rest remains cool gray. */
#exerciseCard .exercise-metrics .actual-value-panel{
 background:linear-gradient(145deg,color-mix(in srgb,var(--accent),#14243a 20%),color-mix(in srgb,var(--accent),#111c2d 12%))!important;
 border:1px solid color-mix(in srgb,var(--accent),#8899ae 42%)!important;
 box-shadow:inset 0 1px 0 color-mix(in srgb,var(--accent),transparent 82%)!important;
}
#exerciseCard .exercise-metrics .actual-value-panel .counterhead h3{color:#f7faff!important}
#exerciseCard .exercise-metrics .recovery-inside{
 background:linear-gradient(160deg,#354353,#273440)!important;
 border:1px solid #758394!important;
}
@media(max-width:600px){
 /* The rail expands underneath the clock like a bellows, without moving actions offscreen. */
 #exerciseCard .counterbox-with-series>.exercise-metrics,
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  display:flex!important;flex-direction:column!important;gap:0!important;
 }
 #exerciseCard .exercise-metrics>.inline-timer{
  order:1!important;width:100%!important;grid-column:auto!important;grid-row:auto!important;
 }
 #exerciseCard .exercise-metrics>.metrics-left{
  order:2!important;width:100%!important;grid-column:auto!important;grid-row:auto!important;
  max-height:370px!important;opacity:1!important;padding:7px 3px!important;
  transition:max-height .8s cubic-bezier(.2,.8,.2,1),opacity .55s ease,transform .8s cubic-bezier(.2,.8,.2,1),padding .8s ease!important;
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
  max-height:0!important;height:auto!important;min-height:0!important;
  opacity:0!important;padding-top:0!important;padding-bottom:0!important;
  transform:translateY(-8px)!important;
  transition:max-height .8s cubic-bezier(.2,.8,.2,1),opacity .48s ease,transform .8s cubic-bezier(.2,.8,.2,1),padding .8s ease!important;
 }
 #exerciseCard .inline-timer .timer-main-area{padding:0 5px!important;column-gap:11px!important}
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring{max-width:290px!important}
 #exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-main-area .timer-ring{max-width:340px!important}
}
@media(max-width:360px){
 #exerciseCard .inline-timer .timer-main-area{column-gap:10px!important;padding:0 2px!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls{gap:3px!important}
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
  width:34px!important;min-width:34px!important;max-width:34px!important;flex-basis:34px!important;
  height:34px!important;min-height:34px!important;font-size:11px!important;
 }
 #exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
  width:76px!important;min-width:76px!important;max-width:76px!important;flex-basis:76px!important;
  height:34px!important;min-height:34px!important;padding:0 5px!important;font-size:10px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{animation:none!important}
 #exerciseCard .counterbox-with-series>.exercise-metrics,
 #exerciseCard .exercise-metrics>.metrics-left,
 #exerciseCard .inline-timer .timer-main-area .timer-ring{transition:none!important}
}


/* V177 refinement — primary actions stay directly beneath the dial, even when the rail expands below on phones. */
#exerciseCard .exercise-metrics>.actions{
 grid-column:1!important;grid-row:2!important;
 display:grid!important;grid-template-columns:1fr 1fr!important;
 gap:9px!important;width:100%!important;min-width:0!important;
 margin:5px 0 0!important;opacity:1!important;visibility:visible!important;
}
:is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions)>.btn.primary{grid-column:1 / -1!important}
#exerciseCard .exercise-metrics>.metrics-left{
 grid-column:2!important;grid-row:1 / span 2!important;
 height:auto!important;min-height:0!important;max-height:490px!important;
 transition:max-height .8s cubic-bezier(.2,.8,.2,1),opacity .55s ease,transform .8s cubic-bezier(.2,.8,.2,1),visibility 0s!important;
}
#exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
 height:auto!important;max-height:0!important;min-height:0!important;
 transition:max-height .8s cubic-bezier(.2,.8,.2,1),opacity .5s ease,transform .8s cubic-bezier(.2,.8,.2,1),visibility 0s linear .8s!important;
}
@media(max-width:600px){
 #exerciseCard .exercise-metrics>.inline-timer{order:1!important}
 #exerciseCard .exercise-metrics>.actions{order:2!important;margin:6px 0 3px!important}
 #exerciseCard .exercise-metrics>.metrics-left{
  order:3!important;grid-row:auto!important;grid-column:auto!important;
  max-height:400px!important;
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{max-height:0!important}
}

/* V177: keep a small, visible dial expansion on mobile as the side data folds. */
@media(max-width:600px){
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring{
  max-width:min(230px,calc(100vw - 150px))!important;
 }
}

/* V178 — compact side data, stable centred dial and accessible full-width actions. */
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts b{font-weight:450!important;color:inherit!important}
#exerciseCard .counterbox-with-series>.exercise-metrics{
 grid-template-columns:minmax(0,1fr) minmax(0,166px)!important;
 gap:8px!important;align-items:start!important;
}
#exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
 grid-template-columns:minmax(0,1fr) minmax(0,0fr)!important;gap:0!important;
}
#exerciseCard .exercise-metrics>.inline-timer{
 grid-column:1!important;grid-row:1!important;
 min-width:0!important;width:100%!important;
 padding:10px 8px 8px!important;overflow:hidden!important;
}
/* Balanced inset means the circle's centre coincides with the timer panel centre. */
#exerciseCard .inline-timer .timer-main-area{
 position:relative!important;display:flex!important;align-items:center!important;
 justify-content:center!important;min-width:0!important;width:100%!important;
 box-sizing:border-box!important;padding:4px 33px!important;gap:0!important;
}
#exerciseCard .inline-timer .timer-main-area .timer-ring{
 flex:0 1 340px!important;grid-column:auto!important;grid-row:auto!important;
 box-sizing:border-box!important;width:100%!important;
 max-width:340px!important;height:auto!important;aspect-ratio:1!important;
 margin:4px auto!important;
 transition:max-width .78s cubic-bezier(.2,.8,.2,1),width .78s cubic-bezier(.2,.8,.2,1)!important;
}
#exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring{max-width:260px!important}
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-main-area .timer-ring{max-width:340px!important}
/* The side arrow belongs to the panel edge and never occupies dial space. */
#exerciseCard .inline-timer .metrics-rail-toggle{
 position:absolute!important;grid-column:auto!important;grid-row:auto!important;
 top:50%!important;right:0!important;left:auto!important;bottom:auto!important;
 transform:translateY(-50%)!important;align-self:auto!important;justify-self:auto!important;
 width:23px!important;min-width:23px!important;height:90px!important;
 margin:0!important;padding:0!important;display:flex!important;
 align-items:center!important;justify-content:center!important;
}
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon,
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon svg{
 display:flex!important;align-items:center!important;justify-content:center!important;
 margin:0!important;padding:0!important;vertical-align:middle!important;
}
#exerciseCard .metrics-rail-toggle .metrics-toggle-icon svg{display:block!important}
/* The action row is as wide as the combined timer + sidebar, regardless of sidebar state. */
#exerciseCard .exercise-metrics>.actions{
 grid-column:1/-1!important;grid-row:2!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 margin:4px 0 0!important;
}
#exerciseCard .exercise-metrics>.metrics-left{
 grid-column:2!important;grid-row:1!important;
 max-width:166px!important;width:100%!important;min-width:0!important;
 height:auto!important;max-height:420px!important;
 padding:2px 0!important;gap:7px!important;
 overflow:hidden!important;align-self:center!important;
}
#exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
 max-height:0!important;padding:0!important;
}
#exerciseCard .exercise-metrics .actual-value-panel,
#exerciseCard .exercise-metrics .recovery-inside{
 width:100%!important;min-width:0!important;max-width:none!important;
 padding:8px 6px!important;gap:5px!important;
 justify-content:center!important;
}
#exerciseCard .exercise-metrics .actual-value-panel{
 background:linear-gradient(160deg,color-mix(in srgb,var(--accent),#152338 23%),color-mix(in srgb,var(--accent),#101d2e 13%))!important;
 border:1px solid color-mix(in srgb,var(--accent),#9ab4cf 52%)!important;
 box-shadow:inset 0 1px 0 color-mix(in srgb,var(--accent),transparent 75%)!important;
}
#exerciseCard .exercise-metrics .actual-value-panel .counterhead,
#exerciseCard .exercise-metrics .recovery-inside label{
 width:100%!important;min-width:0!important;text-align:center!important;
}
#exerciseCard .exercise-metrics .actual-value-panel .counterhead h3,
#exerciseCard .exercise-metrics .recovery-inside label{
 font-size:11px!important;line-height:1.2!important;
 letter-spacing:0!important;margin:0!important;
}
#exerciseCard .exercise-metrics .actual-value-panel .metrics-unit-label,
#exerciseCard .exercise-metrics .recovery-inside .rest-unit{
 display:inline!important;font-size:9px!important;font-weight:450!important;margin:0!important;
}
#exerciseCard .exercise-metrics .counter,
#exerciseCard .exercise-metrics .recovery-inside .rest-counter{
 display:grid!important;grid-template-columns:27px minmax(0,1fr) 27px!important;
 gap:3px!important;min-width:0!important;width:100%!important;
}
#exerciseCard .exercise-metrics .countinput,
#exerciseCard .exercise-metrics .rest-edit{
 min-width:0!important;width:100%!important;font-size:22px!important;
 padding:2px 0!important;text-align:center!important;
}
#exerciseCard .exercise-metrics .counter .countbtn,
#exerciseCard .exercise-metrics .rest-counter .countbtn{
 width:27px!important;min-width:0!important;height:32px!important;min-height:32px!important;
 padding:0!important;font-size:18px!important;
}
#exerciseCard .exercise-metrics .countertools .mini,
#exerciseCard .exercise-metrics .rest-reference{
 font-size:10px!important;line-height:1.25!important;margin:0!important;white-space:normal!important;
}
/* Recovery LED only pulses while the rest countdown is running. */
#exerciseCard .series-focus.series-recovering .series-pips span.now.recovering{
 animation:none!important;opacity:1!important;transform:none!important;
 background:#9aa9bc!important;border-color:#9aa9bc!important;
}
#exerciseCard .series-focus.series-recovering.series-recovery-active .series-pips span.now.recovering{
 animation:nextimeRecoveryLedPulse 1.08s ease-in-out infinite!important;
}
@media(max-width:760px){
 #exerciseCard .counterbox-with-series>.exercise-metrics,
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  display:flex!important;flex-direction:column!important;gap:0!important;
 }
 #exerciseCard .exercise-metrics>.inline-timer{order:1!important;width:100%!important}
 #exerciseCard .exercise-metrics>.actions{order:2!important;width:100%!important;max-width:none!important}
 #exerciseCard .exercise-metrics>.metrics-left{
  order:3!important;grid-column:auto!important;grid-row:auto!important;
  width:100%!important;max-width:none!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;align-items:stretch!important;max-height:210px!important;
  transition:max-height .8s cubic-bezier(.2,.8,.2,1),opacity .55s ease,padding .8s ease!important;
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
  max-height:0!important;opacity:0!important;padding:0!important;
 }
 #exerciseCard .exercise-metrics .actual-value-panel,
 #exerciseCard .exercise-metrics .recovery-inside{max-width:none!important;margin:0!important}
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring{
  max-width:290px!important;
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-main-area .timer-ring{
  max-width:340px!important;
 }
}
@media(max-width:370px){
 #exerciseCard .inline-timer .timer-main-area{padding:4px 27px!important}
 #exerciseCard .inline-timer .metrics-rail-toggle{width:21px!important;min-width:21px!important}
 #exerciseCard .exercise-metrics .metrics-left{gap:5px!important}
 #exerciseCard .exercise-metrics .actual-value-panel,
 #exerciseCard .exercise-metrics .recovery-inside{padding:7px 3px!important}
 #exerciseCard .exercise-metrics .counter,
 #exerciseCard .exercise-metrics .rest-counter{grid-template-columns:24px minmax(0,1fr) 24px!important;gap:2px!important}
 #exerciseCard .exercise-metrics .counter .countbtn,
 #exerciseCard .exercise-metrics .rest-counter .countbtn{width:24px!important}
}
@media(prefers-reduced-motion:reduce){
 #exerciseCard .series-focus.series-recovering.series-recovery-active .series-pips span.now.recovering{animation:none!important}
}

/* V179: Preferences dropdown and progress history. */
.top .main-header-tools{position:relative}
.preferences-menu{position:relative;flex:0 0 auto;z-index:150}
.settings-gear{height:38px;width:38px;min-width:38px;padding:0;display:grid;place-items:center;background:#1c2b40;border:1px solid #435873;border-radius:10px;color:#dceaff;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.settings-gear:hover,.settings-gear[aria-expanded="true"]{background:#30445f;border-color:var(--accent);transform:rotate(12deg)}
.preferences-dropdown{position:absolute;z-index:300;right:0;top:calc(100% + 10px);width:min(325px,calc(100vw - 28px));background:#152338;border:1px solid #425b79;border-radius:14px;box-shadow:0 20px 50px #0009;padding:5px;animation:settings-in .19s ease-out}
.preferences-dropdown[hidden]{display:none!important}
.preferences-dropdown .card{margin:0!important;box-shadow:none!important;border:0!important;background:transparent!important}
@keyframes settings-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.settings-gear{width:34px;min-width:34px;height:34px;border-radius:9px}.top .main-header-tools{gap:6px!important}}
.progress-history-list{margin-top:18px}
.progress-history-list .card{max-width:none!important}
/* V179: heading details and next-exercise indicator. */
#exerciseCard .timer-quick-info .timer-quick-facts{justify-content:center!important}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts b{font-weight:500!important}
/* V179: actual counts share the solid accent styling of View / Edit. */
#exerciseCard .actual-value-panel{background:color-mix(in srgb,var(--accent),#101b2d 84%)!important;border:1px solid color-mix(in srgb,var(--accent),#526580 51%)!important;border-radius:12px!important}
#exerciseCard .actual-value-panel .counterhead h3,#exerciseCard .actual-value-panel .metrics-unit-label{color:#e4efff!important}
#exerciseCard .actual-slider-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:4px 0 6px;flex-wrap:wrap}
#exerciseCard .actual-slider-value{color:#f5faff;font-size:25px;font-weight:900;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
#exerciseCard .actual-slider-value small{font-size:12px;font-weight:650;color:#dce9f9}
#exerciseCard .actual-slider-wrap{position:relative;min-width:0;padding:8px 2px 14px}
#exerciseCard .actual-graduated-slider{appearance:none;-webkit-appearance:none;display:block;width:100%;height:12px;border:1px solid #7185a0;border-radius:999px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--slider-progress),#30435c var(--slider-progress),#30435c 100%);cursor:ew-resize;position:relative;z-index:2;touch-action:pan-y;outline-offset:5px}
#exerciseCard .actual-graduated-slider::-webkit-slider-thumb{-webkit-appearance:none;width:25px;height:25px;border-radius:50%;background:#f0f7ff;border:4px solid var(--accent);box-shadow:0 1px 9px #0009;cursor:grab}
#exerciseCard .actual-graduated-slider::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:#f0f7ff;border:4px solid var(--accent);box-shadow:0 1px 9px #0009;cursor:grab}
#exerciseCard .actual-slider-marks{display:block;height:7px;position:absolute;left:2px;right:2px;bottom:2px;background:repeating-linear-gradient(90deg,rgba(208,226,246,.67) 0 1px,transparent 1px 10%);mask-image:linear-gradient(#000,#000);pointer-events:none}

/* V180 — cleaner settings and neutral centred data panel. */
.settings-gear{
 background:#18283d!important;color:#e9f4ff!important;
 border:1px solid #55718f!important;border-radius:11px!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 4px 14px #0004!important;
}
.settings-gear svg{display:block;width:22px;height:22px;stroke:#e6f3ff;stroke-width:2.15}
.settings-gear:hover,.settings-gear[aria-expanded="true"]{
 transform:none!important;background:#27415d!important;border-color:var(--accent)!important;
 box-shadow:0 0 0 2px color-mix(in srgb,var(--accent),transparent 79%),0 5px 15px #0004!important;
}
#exerciseCard .actual-value-panel,
#exerciseCard .exercise-metrics .actual-value-panel{
 background:#17263a!important;
 border:1px solid #47617e!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
 text-align:center!important;
}
#exerciseCard .actual-value-panel .counterhead,
#exerciseCard .actual-value-panel .counterhead h3,
#exerciseCard .actual-value-panel .metrics-unit-label,
#exerciseCard .actual-value-panel .countertools,
#exerciseCard .actual-value-panel .countertools .mini{justify-content:center!important;text-align:center!important;color:#e2edfc!important}
#exerciseCard .actual-value-panel .actual-slider-top{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:5px!important;margin:5px 0 4px!important;
}
#exerciseCard .actual-slider-top .mini{font-size:9px!important;white-space:normal;text-align:center}
#exerciseCard .actual-slider-value{font-size:24px!important}
#exerciseCard .actual-slider-wrap{
 width:78%!important;max-width:145px!important;min-width:0!important;
 margin:4px auto 7px!important;padding:7px 1px 13px!important;
}
#exerciseCard .actual-graduated-slider{height:9px!important;border-color:#667e9e!important}
#exerciseCard .actual-graduated-slider::-webkit-slider-thumb{
 width:19px!important;height:19px!important;border-width:3px!important;
}
#exerciseCard .actual-graduated-slider::-moz-range-thumb{
 width:13px!important;height:13px!important;border-width:3px!important;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-next-arrows{
 display:inline-block;width:.78em;height:1.12em;margin-inline-end:.25em;
 vertical-align:-.20em;color:var(--accent);
}
/* Scale the ENTIRE timer interface with its dial, rather than the viewport.
   cqw is measured from the ring itself; overrides obsolete fixed pixel/media rules. */
#exerciseCard .inline-timer .timer-main-area .timer-ring{
 container-type:inline-size;
}
#exerciseCard .inline-timer .timer-ring-inner{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:2.4cqw!important;
 padding:5cqw 3cqw!important;min-width:0!important;
}
#exerciseCard .inline-timer .timer-inside-label{
 font-size:4.5cqw!important;line-height:1.2!important;
 letter-spacing:.075em!important;margin:0!important;white-space:nowrap!important;
}
#exerciseCard .exercise-metrics .inline-timer .timer-value,
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-value{
 font-size:18cqw!important;line-height:1!important;
 letter-spacing:-.065em!important;margin:0!important;white-space:nowrap!important;
}
#exerciseCard .inline-timer .timer-caption{
 font-size:3.2cqw!important;line-height:1.2!important;
 letter-spacing:.025em!important;max-width:86%!important;margin:0!important;
 overflow-wrap:normal!important;white-space:normal!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls{
 width:max-content!important;max-width:91%!important;min-width:0!important;
 display:flex!important;justify-content:center!important;align-items:center!important;
 gap:1.6cqw!important;padding:0!important;margin:2.5cqw 0 0!important;
 transform:none!important;flex-wrap:nowrap!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-step-btn{
 flex:0 0 12cqw!important;width:12cqw!important;min-width:12cqw!important;
 max-width:12cqw!important;height:12cqw!important;min-height:12cqw!important;
 border-radius:50%!important;padding:0!important;font-size:4cqw!important;
 line-height:1!important;letter-spacing:-.035em!important;
}
#exerciseCard .inline-timer .timer-ring-inner .timer-controls .btn.timer-play-pause{
 flex:0 0 28cqw!important;width:28cqw!important;min-width:28cqw!important;
 max-width:28cqw!important;height:12cqw!important;min-height:12cqw!important;
 border-radius:8cqw!important;padding:0 2cqw!important;
 font-size:3.65cqw!important;gap:1.5cqw!important;line-height:1!important;
}
#exerciseCard .timer-pause-glyph{gap:1cqw!important}
#exerciseCard .timer-pause-glyph i{width:1.15cqw!important;height:4cqw!important;border-radius:.6cqw!important}
#exerciseCard .timer-play-glyph{font-size:4cqw!important}
#exerciseCard .inline-timer .timer-controls.prep-controls .mini{font-size:3.5cqw!important}


/* V181 — clean exercise notes + compact metrics without redundant labels. */
#exerciseCard .notes:empty{display:none!important}
#exerciseCard .exercise-metrics .actual-value-panel .counterhead{margin-bottom:2px!important}
#exerciseCard .exercise-metrics .actual-value-panel .actual-slider-top{margin-top:3px!important}
#exerciseCard .exercise-metrics .rest-value-with-unit{
 position:relative;display:flex;align-items:center;min-width:0;width:100%;
}
#exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit{
 width:100%!important;min-width:0!important;
 padding-left:1px!important;padding-right:24px!important;
 text-align:center!important;
}
#exerciseCard .exercise-metrics .rest-value-unit{
 position:absolute;right:3px;top:50%;transform:translateY(-50%);
 font-size:9px;line-height:1;color:#c4d1df;pointer-events:none;
 user-select:none;font-weight:650;white-space:nowrap;
}
@media(max-width:370px){
 #exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit{padding-right:19px!important;font-size:19px!important}
 #exerciseCard .exercise-metrics .rest-value-unit{font-size:8px;right:2px}
}

/* V182: centred preferences gear and accessible compact metrics values. */
.settings-gear{display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important;padding:0!important}
.settings-gear svg{display:block!important;position:static!important;flex:0 0 22px!important;margin:0!important;vertical-align:middle!important;transform:none!important}
#exerciseCard .actual-slider-top{margin-bottom:0!important}
#exerciseCard .actual-slider-value{display:inline-flex;align-items:baseline;justify-content:center;gap:5px;white-space:nowrap}
#exerciseCard .actual-value-edit{box-sizing:content-box;width:3.5ch;min-width:2.5ch;max-width:5ch;border:0!important;border-bottom:1px dashed transparent!important;border-radius:3px!important;background:transparent!important;color:#f5faff!important;font:inherit!important;font-size:24px!important;font-weight:900!important;line-height:1.15!important;text-align:right!important;font-variant-numeric:tabular-nums;outline-offset:2px;padding:0 1px!important;appearance:textfield;-moz-appearance:textfield;cursor:text}
#exerciseCard .actual-value-edit:focus{border-bottom-color:var(--accent)!important;background:#243b55!important;outline:1px solid var(--accent)}
#exerciseCard .actual-value-edit::-webkit-inner-spin-button,#exerciseCard .actual-value-edit::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#exerciseCard .actual-slider-hint{display:block!important;text-align:center!important;font-size:9px!important;color:#b8c8dc!important;margin:0 auto 5px!important;line-height:1.2!important}
#exerciseCard .actual-slider-wrap{margin-bottom:2px!important}
#exerciseCard .exercise-metrics .rest-value-with-unit{position:relative;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;min-width:0!important;gap:4px!important;margin:auto!important}
#exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit{box-sizing:border-box!important;width:3.1ch!important;min-width:3.1ch!important;max-width:3.6ch!important;padding:4px 0!important;text-align:right!important;font-variant-numeric:tabular-nums!important;appearance:textfield;-moz-appearance:textfield;flex:0 0 auto!important}
#exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit::-webkit-inner-spin-button,#exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#exerciseCard .exercise-metrics .rest-value-unit{position:static!important;right:auto!important;top:auto!important;transform:none!important;font-size:12px!important;font-weight:650!important;line-height:1!important;color:#dce9f9!important;white-space:nowrap!important;flex:0 0 auto!important}

/* V183 — optical centring of editable metrics values. */
#exerciseCard .actual-slider-top,
#exerciseCard .actual-slider-value{width:100%!important;display:flex!important;justify-content:center!important;align-items:baseline!important}
#exerciseCard .actual-value-edit{text-align:center!important;box-sizing:border-box!important;padding:0!important;letter-spacing:0!important}
#exerciseCard .exercise-metrics .rest-value-with-unit{justify-content:center!important;gap:3px!important}
#exerciseCard .exercise-metrics .rest-value-with-unit .rest-edit{text-align:center!important;letter-spacing:0!important;padding:4px 0!important}

/* V184: single meaningful phase label, centred clock glyphs, always-adjacent responsive data rail. */
#exerciseCard .inline-timer .timer-ring-inner{
  justify-content:center!important;
  gap:3.3cqw!important;
  padding:7cqw 3cqw 5cqw!important;
}
#exerciseCard .inline-timer .timer-caption{display:none!important}
#exerciseCard .exercise-metrics .inline-timer .timer-value,
#exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-value{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;gap:0!important;font-variant-numeric:tabular-nums!important;
 letter-spacing:-.065em!important;font-feature-settings:"tnum" 1!important;
}
#exerciseCard .timer-clock-part{display:inline-block;text-align:center;min-width:1.85ch;line-height:1}
#exerciseCard .timer-clock-colon{display:inline-flex;align-items:center;justify-content:center;align-self:center;line-height:1;transform:translateY(-.035em);margin:0 .015em}
#exerciseCard .exercise-metrics>.actions>.btn{
 min-width:0!important;overflow-wrap:normal!important;white-space:normal!important;
 font-size:clamp(10px,1.75vw,14px)!important;
 line-height:1.2!important;min-height:36px!important;padding:8px 5px!important;
}
@media(max-width:760px){
 #exerciseCard .counterbox-with-series>.exercise-metrics,
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  display:grid!important;grid-template-rows:auto auto!important;
  grid-template-columns:minmax(0,1fr) minmax(0,clamp(100px,30%,143px))!important;
  column-gap:7px!important;row-gap:5px!important;
  align-items:start!important;width:100%!important;min-width:0!important;
  transition:grid-template-columns .7s cubic-bezier(.22,1,.36,1),column-gap .7s cubic-bezier(.22,1,.36,1)!important;
 }
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  grid-template-columns:minmax(0,1fr) minmax(0,0fr)!important;
  column-gap:0!important;
 }
 #exerciseCard .exercise-metrics>.inline-timer{
  display:flex!important;grid-column:1!important;grid-row:1!important;
  order:initial!important;min-width:0!important;width:100%!important;
  padding:7px 1px 6px!important;
 }
 #exerciseCard .exercise-metrics>.metrics-left{
  display:flex!important;flex-direction:column!important;grid-column:2!important;
  grid-row:1!important;order:initial!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:500px!important;
  overflow:hidden!important;opacity:1!important;transform:none!important;
  padding:2px 0!important;gap:5px!important;
  transition:opacity .35s ease,max-height .7s cubic-bezier(.22,1,.36,1),padding .7s ease!important;
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed>.metrics-left{
  min-width:0!important;width:100%!important;max-height:0!important;
  opacity:0!important;padding:0!important;visibility:hidden!important;pointer-events:none!important;
 }
 #exerciseCard .exercise-metrics>.actions{
  display:grid!important;grid-column:1/-1!important;grid-row:2!important;
  order:initial!important;width:100%!important;min-width:0!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;
  margin:3px 0 0!important;
 }
 #exerciseCard .inline-timer .timer-main-area{
  padding:2px 21px 2px 2px!important;min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;
 }
 #exerciseCard .exercise-metrics .inline-timer .timer-main-area .timer-ring,
 #exerciseCard .exercise-metrics:not(.metrics-rail-closed) .inline-timer .timer-main-area .timer-ring,
 #exerciseCard .exercise-metrics.metrics-rail-closed .inline-timer .timer-main-area .timer-ring{
  box-sizing:border-box!important;min-width:0!important;
  width:min(100%,320px)!important;max-width:320px!important;
  flex:0 1 320px!important;height:auto!important;aspect-ratio:1!important;
  margin:2px auto!important;
  transition:width .7s cubic-bezier(.22,1,.36,1),max-width .7s cubic-bezier(.22,1,.36,1)!important;
 }
 #exerciseCard .metrics-rail-toggle{
  right:0!important;width:18px!important;min-width:18px!important;
  height:68px!important;min-height:68px!important;border-radius:9px 3px 3px 9px!important;
 }
 #exerciseCard .metrics-rail-toggle .metrics-toggle-icon svg{width:13px!important;height:13px!important}
 #exerciseCard .timer-quick-info{padding:0 1px 3px!important;gap:2px!important}
 #exerciseCard .timer-quick-name{font-size:clamp(12px,1.85vw,16px)!important;min-width:0!important}
 :is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts{font-size:clamp(8px,1.15vw,10px)!important;gap:3px 5px!important}
 #exerciseCard .exercise-metrics .metrics-left .actual-value-panel,
 #exerciseCard .exercise-metrics .metrics-left .recovery-inside{
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:8px 3px!important;
 }
 #exerciseCard .actual-slider-top{margin:1px 0!important}
 #exerciseCard .actual-slider-wrap{width:90%!important;margin:2px auto 4px!important}
 #exerciseCard .exercise-metrics .metrics-left .counterhead h3,
 #exerciseCard .exercise-metrics .metrics-left .recovery-inside label{
  font-size:clamp(9px,1.45vw,12px)!important;overflow-wrap:anywhere;line-height:1.2!important;
 }
 #exerciseCard .actual-value-edit{font-size:clamp(16px,3.3vw,23px)!important}
 #exerciseCard .actual-slider-value small{font-size:9px!important}
 #exerciseCard .exercise-metrics .rest-counter{
  display:grid!important;grid-template-columns:23px minmax(0,1fr) 23px!important;
  gap:2px!important;
 }
 #exerciseCard .exercise-metrics .rest-counter .countbtn{width:23px!important;height:29px!important;min-height:29px!important}
 #exerciseCard .exercise-metrics .rest-counter .rest-edit{font-size:clamp(15px,3vw,20px)!important}
 #exerciseCard .exercise-metrics .rest-value-unit{font-size:8px!important}
}
@media(max-width:390px){
 #exerciseCard .counterbox-with-series>.exercise-metrics{
  grid-template-columns:minmax(0,1fr) minmax(0,104px)!important;column-gap:4px!important;
 }
 #exerciseCard .counterbox-with-series>.exercise-metrics.metrics-rail-closed{
  grid-template-columns:minmax(0,1fr) minmax(0,0fr)!important;column-gap:0!important;
 }
 #exerciseCard .exercise-metrics>.inline-timer{padding:5px 0!important}
 #exerciseCard .inline-timer .timer-main-area{padding:0 19px 0 0!important}
 #exerciseCard .exercise-metrics>.actions>.btn{font-size:10px!important;padding:7px 3px!important;letter-spacing:-.02em!important}
  :is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts{font-size:8px!important}
 #exerciseCard .actual-slider-top .mini{font-size:8px!important}
 #exerciseCard .metrics-left .actual-value-panel,
 #exerciseCard .metrics-left .recovery-inside{padding:6px 2px!important}
}

/* V184 mobile: explicit open-state selector outranks legacy single-column rule. */
@media(max-width:760px){
 #exerciseCard .counterbox-with-series>.exercise-metrics:not(.metrics-rail-closed){
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,clamp(100px,30%,143px))!important;
  column-gap:7px!important;row-gap:5px!important;
 }
}
@media(max-width:390px){
 #exerciseCard .counterbox-with-series>.exercise-metrics:not(.metrics-rail-closed){
  grid-template-columns:minmax(0,1fr) 104px!important;column-gap:4px!important;
 }
}

/* Keep the chevron fully in the gutter, not over the shrinking dial. */
@media(max-width:760px){
 #exerciseCard .exercise-metrics>.inline-timer{overflow:visible!important}
 #exerciseCard .inline-timer .timer-main-area{overflow:visible!important}
 #exerciseCard .inline-timer .metrics-rail-toggle{right:-4px!important}
}

/* V185 — recap toolbar anchored to the upper-right at every screen width. */
.overview.overview-hero{position:relative!important;}
.overview-hero .overview-toolbar{
 position:absolute!important;top:12px!important;right:14px!important;
 width:auto!important;max-width:calc(100% - 28px)!important;
 margin:0!important;padding:0!important;z-index:6!important;
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
}
.overview-hero .overview-toolbar .main-header-buttons{
 display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end!important;
 gap:6px!important;width:max-content!important;max-width:100%!important;
}
.overview-hero .overview-toolbar .main-studio-button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;white-space:nowrap!important;box-sizing:border-box!important;
 min-height:35px!important;min-width:0!important;padding:7px 9px!important;
}
/* Keep the toolbar clear of workout details when the layout stacks. */
@media(max-width:1040px){
 .overview.overview-hero{padding-top:56px!important;}
 .overview-hero .overview-toolbar .main-studio-button{
  width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;
  padding:0!important;gap:0!important;border-radius:9px!important;
 }
 .overview-hero .overview-toolbar .main-studio-button span{display:none!important;}
 .overview-hero .overview-toolbar .main-studio-button svg{width:17px!important;height:17px!important;flex:0 0 17px!important;}
}
@media(max-width:390px){
 .overview.overview-hero{padding-top:53px!important;}
 .overview-hero .overview-toolbar{top:10px!important;right:10px!important;}
 .overview-hero .overview-toolbar .main-header-buttons{gap:4px!important;}
 .overview-hero .overview-toolbar .main-studio-button{
  width:31px!important;min-width:31px!important;height:31px!important;min-height:31px!important;
 }
}
/* V185 — compact, readable preference labels and matching monochrome icons. */
.preferences-dropdown .pref-icon-label{display:inline-flex!important;align-items:center!important;gap:9px!important;min-width:0!important;cursor:pointer;}
.preferences-dropdown .pref-icon-label svg{width:18px!important;height:18px!important;flex:0 0 18px!important;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;}
.preferences-dropdown .pref-hint{margin:5px 0 0!important;color:#a9bfd8;font-size:11px;line-height:1.35;}


/* V186 — consistent workout lifecycle and compact actual-count controls. */
#exerciseCard .exercise-metrics .metrics-left .actual-value-panel .actual-counter{
 display:grid!important;grid-template-columns:clamp(20px,2.4vw,31px) minmax(0,1fr) clamp(20px,2.4vw,31px)!important;
 align-items:center!important;justify-content:stretch!important;gap:3px!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:5px auto 0!important;
}
#exerciseCard .exercise-metrics .metrics-left .actual-counter>.countbtn{
 width:100%!important;min-width:0!important;height:clamp(27px,3vw,33px)!important;
 min-height:27px!important;padding:0!important;
 display:grid!important;place-items:center!important;
 font-size:clamp(14px,1.65vw,20px)!important;line-height:1!important;
}
#exerciseCard .exercise-metrics .actual-value-with-unit{
 display:flex!important;justify-content:center!important;align-items:center!important;
 min-width:0!important;max-width:100%!important;gap:2px!important;
}
#exerciseCard .exercise-metrics .actual-value-with-unit .actual-value-edit{
 width:3.2ch!important;min-width:0!important;max-width:4.6ch!important;
 flex:0 1 4.6ch!important;font-size:clamp(15px,2.1vw,24px)!important;
 padding:0!important;margin:0!important;text-align:center!important;
}
#exerciseCard .exercise-metrics .actual-value-unit{
 display:inline-block!important;flex:0 0 auto!important;
 font-size:clamp(8px,.9vw,12px)!important;line-height:1!important;
 font-weight:650!important;color:#dce9f9!important;white-space:nowrap!important;
}
#exerciseCard .exercise-metrics .actual-slider-wrap{
 margin:5px auto 1px!important;padding-top:5px!important;padding-bottom:11px!important;
}
:is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions){
 margin-top:12px!important;gap:12px!important;
}
:is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions)>.btn{
 min-height:44px!important;padding:11px 7px!important;
 line-height:1.22!important;--timer-action-font-size:clamp(11px,1.4vw,14px);font-size:var(--timer-action-font-size)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
@media(max-width:760px){
 :is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions){margin-top:12px!important;gap:12px!important;}
 :is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions)>.btn{
  min-height:42px!important;padding:9px 5px!important;
  --timer-action-font-size:clamp(10px,2.7vw,13px);font-size:var(--timer-action-font-size)!important;
 }
 #exerciseCard .exercise-metrics .metrics-left .actual-value-panel .actual-counter{
  grid-template-columns:21px minmax(0,1fr) 21px!important;gap:1px!important;
 }
 #exerciseCard .exercise-metrics .metrics-left .actual-counter>.countbtn{
  min-height:28px!important;height:28px!important;font-size:15px!important;
 }
 #exerciseCard .exercise-metrics .actual-value-with-unit .actual-value-edit{font-size:clamp(14px,3.25vw,19px)!important;width:2.8ch!important;flex:0 1 3ch!important;}
 #exerciseCard .exercise-metrics .actual-value-unit{font-size:8px!important;}
}
@media(max-width:390px){
 :is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions){margin-top:12px!important;gap:12px!important;}
 :is(#exerciseCard .exercise-metrics>.actions,#focusTimerActions)>.btn{min-height:42px!important;padding:9px 4px!important;--timer-action-font-size:10px;font-size:var(--timer-action-font-size)!important;}
 #exerciseCard .exercise-metrics .metrics-left .actual-value-panel .actual-counter{grid-template-columns:19px minmax(0,1fr) 19px!important;gap:1px!important;}
 #exerciseCard .exercise-metrics .metrics-left .actual-counter>.countbtn{min-height:27px!important;height:27px!important;font-size:14px!important;}
 #exerciseCard .exercise-metrics .actual-value-with-unit .actual-value-edit{font-size:15px!important;width:2.8ch!important;flex:0 1 3ch!important;}
}

/* V187 — navigation and workout recap controls. */
/* Progressi shares the home header with Preferenze; studio actions stay in the recap. */
.top .main-header-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 0 auto!important;min-width:0!important;margin-left:auto!important;}
.top .main-header-tools>.main-header-buttons{display:none!important;}
.top .header-progress-action{display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.top .header-progress-action [data-header-progress]{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 height:38px;min-height:38px;min-width:38px;padding:7px 10px;
 background:#1c2b40;border:1px solid #435873;border-radius:10px;
 color:#dceaff;white-space:nowrap;cursor:pointer;
}
.top .header-progress-action [data-header-progress] svg{width:18px;height:18px;flex:0 0 18px;}
.top .header-progress-action [data-header-progress]:hover{background:#30445f;border-color:var(--accent);}
@media(max-width:680px){
 .top .header-progress-action [data-header-progress]{height:34px;min-height:34px;}
 .top .main-header-tools{gap:6px!important;}
 .top .main-header-tools .badge{display:none!important;}
}
@media(max-width:360px){
 .top .header-progress-action [data-header-progress]{width:34px;min-width:34px;padding:0;gap:0;}
 .top .header-progress-action [data-header-progress] span{display:none!important;}
}
/* Visualizza and Modifica fill the exact same track as the stats and session actions. */
.overview-hero .overview-toolbar{
 position:static!important;top:auto!important;right:auto!important;
 display:flex!important;align-items:stretch!important;justify-content:stretch!important;
 width:100%!important;max-width:none!important;box-sizing:border-box!important;
 margin:0!important;padding:0!important;z-index:6!important;
}
.overview-hero .overview-toolbar .main-header-buttons{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;max-width:none!important;gap:8px!important;
}
.overview-hero .overview-toolbar .main-studio-button{
 width:100%!important;min-width:0!important;max-width:none!important;
 min-height:42px!important;height:42px!important;padding:7px 6px!important;
 display:flex!important;gap:6px!important;flex:1 1 0!important;
 font-weight:850!important;font-size:12px!important;letter-spacing:0!important;
 border-radius:10px!important;box-sizing:border-box!important;
}
.overview-hero .overview-toolbar .main-studio-button svg{width:17px!important;height:17px!important;flex:0 0 17px!important;}
/* The existing primary red/theme-coloured treatment is shared by Avvia/Termina. */
.overview-hero .overview-reset .btn[data-action="start"]{
 background:color-mix(in srgb,var(--accent) 90%,#808080 10%)!important;
 border:1px solid color-mix(in srgb,var(--accent) 90%,#808080 10%)!important;
 color:#081421!important;font-size:12px!important;font-weight:950!important;
 letter-spacing:.015em!important;border-radius:10px!important;
 box-shadow:0 4px 16px color-mix(in srgb,var(--accent),transparent 78%)!important;
 transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.overview-hero .overview-reset .btn[data-action="start"]:hover:not(:disabled){
 background:color-mix(in srgb,var(--accent) 90%,#a0a0a0 10%)!important;
 box-shadow:0 6px 20px color-mix(in srgb,var(--accent),transparent 65%)!important;
 transform:translateY(-1px);
}
/* On narrower viewports keep the two workout commands at the recap's upper-right. */
@media(max-width:1040px){
 .overview.overview-hero{padding-top:57px!important;}
 .overview-hero .overview-toolbar{
  position:absolute!important;top:10px!important;right:14px!important;
  width:calc(100% - 28px)!important;max-width:none!important;
 }
 .overview-hero .overview-toolbar .main-studio-button{
  width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;
  padding:5px!important;gap:0!important;
 }
 .overview-hero .overview-toolbar .main-studio-button span{display:none!important;}
}
@media(max-width:390px){
 .overview.overview-hero{padding-top:53px!important;}
 .overview-hero .overview-toolbar{right:10px!important;top:10px!important;width:calc(100% - 20px)!important;}
 .overview-hero .overview-toolbar .main-studio-button{height:31px!important;min-height:31px!important;}
}
/* Longer descriptive timer headings remain inside the dial. */
#exerciseCard .timer-inside-label{letter-spacing:.02em!important;white-space:nowrap!important;}
@media(max-width:490px){
 #exerciseCard .timer-inside-label{font-size:clamp(7px,1.8vw,10px)!important;letter-spacing:0!important;}
}

/* V187 precise alignment: equal tracks for studio controls and session actions. */
@media (min-width:681px) and (max-width:1040px){
 .overview-hero .overview-toolbar{right:22px!important;width:calc(100% - 44px)!important;}
 .overview-hero .overview-toolbar .main-studio-button{height:42px!important;min-height:42px!important;gap:6px!important;}
 .overview-hero .overview-toolbar .main-studio-button span{display:inline!important;}
}
@media (max-width:680px){
 .overview-hero .overview-toolbar{right:16px!important;width:calc(100% - 32px)!important;}
 .overview-hero .overview-toolbar .main-studio-button span{display:none!important;}
}

/* V188 — homepage picker: four columns until muscle labels exceed two lines.
   The switch is measured from actual muscle text, not from a fixed viewport. */
#tabs.tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important}
#tabs .tab-wrap .tab{min-width:0!important}
#tabs .tab-wrap .tab b{
 white-space:nowrap!important;max-width:100%!important;min-width:0!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
}
@media(min-width:701px){
 #tabs.home-tabs-compact{gap:5px!important;margin-bottom:12px!important;grid-auto-rows:minmax(0,auto)!important}
 #tabs.home-tabs-compact .tab-wrap{
   position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;
   justify-content:space-between!important;min-width:0!important;gap:3px!important;
   padding:4px!important;border:1px solid #2d3a50!important;border-top:3px solid var(--tab-accent)!important;
   background:#111b2c!important;border-radius:10px!important;
 }
 #tabs.home-tabs-compact .tab-wrap:has(.tab[aria-selected="true"]){border-color:var(--tab-accent)!important;background:color-mix(in srgb,var(--tab-accent),#101b2d 84%)!important}
 #tabs.home-tabs-compact .tab-wrap .tab{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:1 1 auto!important;min-height:26px!important;height:auto!important;min-width:0!important;
  width:auto!important;padding:2px 0 2px 2px!important;text-align:left!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
 }
 #tabs.home-tabs-compact .tab-wrap .tab b{font-size:clamp(11px,1.3vw,13px)!important;line-height:1.1!important}
 #tabs.home-tabs-compact .tab-wrap .tab small{display:none!important}
 #tabs.home-tabs-compact .tab-session-btn{
  position:relative!important;top:auto!important;right:auto!important;left:auto!important;
  transform:none!important;flex:0 0 27px!important;align-self:center!important;
  width:27px!important;min-width:27px!important;height:25px!important;min-height:25px!important;
  padding:2px!important;margin:0!important;border-radius:6px!important;
 }
 #tabs.home-tabs-compact .tab-session-btn svg{width:14px!important;height:14px!important}
}
@media(max-width:700px){
 /* Keep the regular four-column layout when two lines still fit; V170–V172
    compact rules are active only when the measured class is present. */
 #tabs.tabs:not(.home-tabs-compact){
  grid-template-rows:none!important;grid-auto-rows:auto!important;grid-auto-columns:auto!important;
  gap:7px!important;overflow:visible!important;padding-bottom:0!important;
 }
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap{
  position:relative!important;display:block!important;min-width:0!important;
  padding:0!important;gap:0!important;border:0!important;background:transparent!important;border-radius:0!important;
 }
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab{
  display:block!important;width:100%!important;height:100%!important;min-height:77px!important;
  padding:10px 35px 10px 10px!important;text-align:left!important;
  border:1px solid #2d3a50!important;border-top:3px solid var(--tab-accent)!important;
  background:#111b2c!important;border-radius:13px!important;
  box-shadow:none!important;
 }
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab[aria-selected="true"]{
  border-color:var(--tab-accent)!important;
  background:color-mix(in srgb,var(--tab-accent),#101b2d 84%)!important;
 }
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab small{
  display:block!important;font-size:10px!important;font-weight:700!important;
  line-height:1.35!important;white-space:normal!important;overflow:visible!important;
 }
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab b{font-size:clamp(11px,2vw,15px)!important}
 #tabs.tabs:not(.home-tabs-compact) .tab-session-btn{
  position:absolute!important;top:50%!important;right:5px!important;left:auto!important;
  transform:translateY(-50%)!important;flex:none!important;align-self:auto!important;
  width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;
  margin:0!important;border-radius:7px!important;
 }
}

/* V189 — recap actions + statistics + session controls act as ONE responsive block.
   The toolbar must remain directly above the 3 stats rather than absolutely
   positioned at the hero's upper-right corner. */
.overview.overview-hero{
  padding-top:27px!important;
}
.overview-hero .overview-right{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  align-self:start!important;
  width:100%!important;
  min-width:0!important;
  gap:9px!important;
  margin:0!important;
  position:relative!important;
}
.overview-hero .overview-toolbar{
  position:static!important;
  inset:auto!important;
  top:auto!important;right:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  box-sizing:border-box!important;
}
.overview-hero .overview-toolbar .main-header-buttons{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
}
.overview-hero .overview-toolbar .main-studio-button{
  width:100%!important;max-width:none!important;min-width:0!important;
  height:var(--overview-workout-action-height,37px)!important;
  min-height:var(--overview-workout-action-height,37px)!important;
  padding:7px 6px!important;gap:6px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.overview-hero .overview-toolbar .main-studio-button span{
  display:inline!important;
}
.overview-hero .stats{
  margin:0!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.overview-hero .overview-reset{
  margin:0!important;
  width:100%!important;
  min-width:0!important;
}
@media(max-width:1040px){
  .overview.overview-hero{padding-top:23px!important;}
  .overview-hero .overview-right{width:100%!important;}
}
@media(max-width:680px){
  .overview-hero .overview-toolbar{--overview-workout-action-height:36px}
  .overview-hero .overview-toolbar .main-studio-button{padding:4px!important;gap:5px!important;}
}
@media(max-width:420px){
  .overview-hero .overview-toolbar .main-studio-button{font-size:11px!important;}
}
@media(max-width:360px){
  .overview-hero .overview-toolbar .main-studio-button{gap:0!important;}
  .overview-hero .overview-toolbar .main-studio-button span{display:none!important;}
}
@media(max-width:580px){
  .overview.overview-hero{padding-top:20px!important;}
}
@media(max-width:390px){
  .overview-hero .overview-toolbar{--overview-workout-action-height:34px}
}

/* V190 — coordinated overview layout across intermediate and small widths. */
/* Original wide layout is preserved above 1000px. */
@media (min-width:701px) and (max-width:1000px){
  .overview.overview-hero{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(315px, 43%)!important;
    align-items:start!important;
    gap:18px!important;
    padding:23px 20px!important;
  }
  .overview-hero .overview-heading{grid-column:1!important;min-width:0!important}
  .overview-hero .overview-right{
    grid-column:2!important;grid-row:1!important;
    align-self:start!important;min-width:0!important;width:100%!important;
  }
  .overview-hero .overview-details{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:15px!important;margin-top:20px!important;
  }
  .overview-hero .overview-details .overview-detail{
    width:100%!important;max-width:100%!important;min-width:0!important;
    border:0!important;padding:0!important;margin:0!important;
  }
  .overview-hero .overview-details .overview-detail+.overview-detail{
    border-left:0!important;padding-left:0!important;
  }
  .overview-hero .overview-details .muscle-summary,
  .overview-hero .overview-details .equipment-summary{
    max-width:100%!important;overflow-wrap:anywhere!important;
  }
  .overview-hero .overview-full-progress{grid-column:1/-1!important}
}
@media (max-width:700px){
  .overview.overview-hero{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:9px!important;
  }
  .overview-hero .overview-heading,
  .overview-hero .overview-right{
    grid-column:1!important;grid-row:auto!important;
    width:100%!important;min-width:0!important;
  }
  .overview-hero .overview-details{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:start!important;
    column-gap:12px!important;row-gap:10px!important;
    margin-top:16px!important;
  }
  .overview-hero .overview-details .overview-detail{
    min-width:0!important;max-width:100%!important;
    margin:0!important;padding:0!important;border:0!important;
  }
  .overview-hero .overview-details .overview-detail+.overview-detail{
    margin:0!important;padding:0!important;border:0!important;
  }
  .overview-hero .overview-details .muscle-summary,
  .overview-hero .overview-details .equipment-summary{
    max-width:100%!important;min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  .overview-hero .overview-right{align-self:start!important}
  .overview-hero .overview-full-progress{grid-column:1!important;margin-top:8px}
}

/* V191 — immersive, distraction-free workout timer. */
#exerciseCard .inline-timer{position:relative!important}
.focus-timer-overlay[hidden]{display:none!important}
.focus-timer-overlay{
 --focus-min-diameter:min(210px,calc(100vw - 40px));
 --focus-base-diameter:clamp(var(--focus-min-diameter),61vmin,420px);
 position:fixed;z-index:99990;inset:0;display:flex;align-items:safe center;justify-content:center;
 background:radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--accent),#08111f 92%),#070e19 67%);
 color:#f0f6ff;overflow-y:auto;overscroll-behavior:contain;
 animation:focus-appear .26s ease both;
}
body.timer-focus-open{overflow:hidden!important}
@keyframes focus-appear{from{opacity:0}to{opacity:1}}
.timer-chrome-button{
 --timer-chrome-size:38px;
 display:grid;place-items:center;width:var(--timer-chrome-size);height:var(--timer-chrome-size);
 padding:0;border-radius:10px;cursor:pointer;
}
.timer-chrome-button svg{display:block;width:21px;height:21px}
.focus-timer-corner{position:fixed;top:max(16px,env(safe-area-inset-top));z-index:5}
.focus-timer-preferences{left:max(16px,env(safe-area-inset-left))}
.focus-timer-close{right:max(16px,env(safe-area-inset-right))}
@media(max-width:650px){
 .timer-chrome-button{--timer-chrome-size:34px;border-radius:9px}
}
.focus-timer-content{
 --focus-header-gap:14px;
 width:100%;min-height:min-content;padding:55px 15px 22px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.focus-timer-heading{
 grid-column:2;grid-row:1;width:100%;min-width:0;margin-bottom:var(--focus-header-gap);
 display:flex;flex-direction:column;align-items:center;gap:var(--focus-header-gap);
}
.focus-brand{
 position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:5;
 height:38px;display:flex;align-items:center;font-size:15px;font-weight:1000;letter-spacing:.12em;color:#e9f1ff;
 pointer-events:none;
}
@media(max-width:650px){.focus-brand{height:34px}}
.focus-brand span{color:var(--accent)}
.focus-timer-meta{width:min(560px,100%);text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}
.focus-timer-meta .focus-exercise{font-size:clamp(15px,3.8vw,24px);font-weight:950;line-height:1.2;text-wrap:balance}
#focusTimerOverlay .timer-quick-facts{gap:6px 8px!important;font-size:12px!important}
.focus-timer-meta .focus-series{color:var(--accent);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.09em}
.focus-timer-dial{flex:none;position:relative;width:var(--focus-diameter);height:var(--focus-diameter);
 border-radius:50%;display:grid;place-items:center;padding:var(--focus-ring-width,10px);
 box-shadow:0 0 36px color-mix(in srgb,var(--accent),transparent 85%),0 15px 46px #0005;transition:background .15s linear}
.focus-timer-inner{width:100%;height:100%;border-radius:50%;background:radial-gradient(circle at 40% 25%,#182840,#0c1628 72%);
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(5px,1.5vmin,12px);padding:7%}
.focus-timer-type{font-size:clamp(10px,1.9vmin,15px);font-weight:950;text-align:center;letter-spacing:.06em;line-height:1.15}
.focus-timer-value{display:flex;align-items:center;justify-content:center;line-height:1;font-size:clamp(50px,12vmin,93px);font-weight:1000;letter-spacing:-.06em;font-variant-numeric:tabular-nums;white-space:nowrap}
.focus-timer-value .timer-clock-colon{align-self:center;line-height:1}
.focus-timer-controls{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}
.focus-timer-controls .btn{
 box-sizing:border-box;flex:none;height:36px;min-height:36px;font-size:12px;font-weight:900;
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 padding:0;border-radius:22px;cursor:pointer;
}
.focus-timer-controls .btn.timer-step-btn{width:36px;border-radius:50%}
.focus-timer-controls .btn.timer-play-pause{width:82px}
:is(#exerciseCard .timer-ring-inner .timer-controls,#focusTimerControls) .btn:is(.timer-step-btn,.timer-play-pause){
 background:#24334a!important;color:#ecf5ff!important;border:1px solid #536781!important;box-shadow:none!important;
}
:is(#exerciseCard .timer-ring-inner .timer-controls,#focusTimerControls) .btn.timer-play-pause{
 background:color-mix(in srgb,var(--accent),#17263c 20%)!important;border-color:var(--accent)!important;color:#fff!important;
}
.focus-timer-controls .timer-pause-glyph{display:inline-flex;gap:3px;height:12px;align-items:stretch}
.focus-timer-controls .timer-pause-glyph i{display:block;width:4px;height:12px;border-radius:1px;background:currentColor}
.focus-timer-controls .timer-play-glyph{font-size:13px}
.focus-timer-shell{
 --focus-plan-width:0px;
 --focus-metrics-width:0px;
 --focus-diameter:min(var(--focus-base-diameter),calc(100vw - 74px - var(--focus-plan-width) - var(--focus-metrics-width)));
 --focus-actions-width:calc(var(--focus-diameter) + 44px);
 display:grid;grid-template-columns:var(--focus-plan-width) minmax(0,var(--focus-actions-width)) var(--focus-metrics-width);
 max-width:100%;align-items:center;justify-items:center;container-type:inline-size;
 width:min(100%,calc(var(--focus-actions-width) + var(--focus-plan-width) + var(--focus-metrics-width)));
}
.focus-timer-dial-frame{
 position:relative;grid-column:2;grid-row:2;width:100%;display:grid;place-items:center;
}
.focus-timer-actions{
 grid-column:2;grid-row:4;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));
}
.focus-timer-metrics,.focus-timer-plan{
 border:0;border-radius:14px;
 background:var(--timer-accent-fill);
}
.focus-timer-metrics{grid-column:2;grid-row:3;margin-top:10px}
.focus-timer-plan{
 grid-column:2;grid-row:5;width:100%;min-width:0;
 margin-top:12px;padding:6px 4px;overflow:hidden;
}
.focus-timer-plan>.card{
 width:100%;max-height:min(55vh,418px);margin:0;padding:4px 8px;
 border:0;border-radius:8px;background:transparent;box-shadow:none;
 overflow:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#536b88 transparent;
}
.focus-timer-plan .ahead{flex-wrap:wrap;gap:2px 5px;margin-bottom:4px}
.focus-timer-plan .ahead h3{font-size:13px}
.focus-timer-plan .ahead .mini{font-size:10px}
.focus-timer-plan details.block{padding-block:6px;border-color:#30445c}
.focus-timer-plan .plan-buffer-block{margin:4px 0;padding-inline:0;border:0;background:transparent}
.focus-timer-plan details.block>summary{gap:4px;font-size:11px;line-height:1.25}
.focus-timer-plan details.block>summary:after{flex-basis:14px;font-size:15px}
.focus-plan-block-heading{display:grid;gap:2px;overflow-wrap:anywhere}
.focus-timer-plan .focus-plan-block-heading .blockinfo{margin:0;text-align:left;font-size:10px;white-space:normal}
.focus-timer-plan .grouptitle{margin:7px 0 3px;font-size:10px}
.focus-timer-plan .exercise-list{gap:4px;margin-top:4px}
.focus-timer-plan .exercise-list li{gap:6px;font-size:11px}
.focus-timer-plan .exercise-list li.current{padding:4px 5px}
.focus-timer-plan .exercise-list li small{font-size:10px}
.focus-timer-plan .exercise-list li>span:last-child{min-width:0;overflow-wrap:anywhere}
.focus-timer-metrics[hidden],.focus-timer-plan[hidden],#focusMetricsToggle[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){
 .focus-timer-metrics:not([hidden]),.focus-timer-plan:not([hidden]){
  animation:focus-drawer-enter .28s cubic-bezier(.22,1,.36,1) both;
 }
 .focus-timer-metrics{--focus-drawer-entry:18px}
 .focus-timer-plan{--focus-drawer-entry:-18px}
}
@keyframes focus-drawer-enter{
 from{opacity:0;transform:translateX(var(--focus-drawer-entry))}
 to{opacity:1;transform:translateX(0)}
}
@media(min-width:600px){
 .focus-timer-shell:has(.focus-timer-metrics:not([hidden])){--focus-metrics-width:146px}
 .focus-timer-metrics{grid-column:3;grid-row:2;margin-top:0}
 .focus-timer-actions{grid-row:3}
}
@media(min-width:800px){
 .focus-timer-shell:has(.focus-timer-plan:not([hidden])){--focus-plan-width:236px}
 .focus-timer-plan{grid-column:1;grid-row:2;justify-self:start;width:calc(100% - 12px);margin-top:0}
}
@media(max-width:500px){
 .focus-timer-overlay{--focus-base-diameter:clamp(var(--focus-min-diameter),min(85vw,48vh),360px)}
 .focus-timer-content{--focus-header-gap:12px;padding:64px 10px 22px}
}
@media(max-height:600px){.focus-timer-overlay{--focus-base-diameter:clamp(var(--focus-min-diameter),min(52vh,54vw),320px)}.focus-timer-content{--focus-header-gap:8px}.focus-timer-corner,.focus-brand{top:max(8px,env(safe-area-inset-top))}}

/* V192 — keep overview statistics/actions beside metadata until <=700px.
   Earlier 1040px breakpoint forced one column in the 1001–1040px gap. */
@media (min-width:701px) and (max-width:1040px){
 .overview.overview-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(315px,43%)!important;
  align-items:start!important;
  gap:18px!important;
  padding:23px 20px!important;
 }
 .overview-hero .overview-heading{grid-column:1!important;grid-row:1!important;min-width:0!important}
 .overview-hero .overview-right{
  grid-column:2!important;grid-row:1!important;
  align-self:start!important;width:100%!important;min-width:0!important;
 }
 .overview-hero .overview-details{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:15px!important;margin-top:20px!important;
 }
 .overview-hero .overview-details .overview-detail{
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:0!important;margin:0!important;border:0!important;
 }
 .overview-hero .overview-details .overview-detail + .overview-detail{
  padding:0!important;margin:0!important;border-left:0!important;
 }
 .overview-hero .overview-full-progress{grid-column:1/-1!important}
}
/* Mobile: side-by-side metadata with the SAME vertical divider as on desktop. */
@media (max-width:700px){
 .overview-hero .overview-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0!important;
  align-items:stretch!important;
 }
 .overview-hero .overview-details .overview-detail{
  min-width:0!important;max-width:100%!important;
  padding:1px 14px 1px 0!important;
  border:0!important;margin:0!important;
 }
 .overview-hero .overview-details .overview-detail + .overview-detail{
  padding:1px 0 1px 18px!important;
  border-left:1px solid #42536a!important;
  margin:0!important;
 }
}

/* V193 — equal metadata columns, aligned headings, and at most two text lines. */
.overview-hero .overview-details .overview-detail{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:none!important;
  align-self:stretch!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  row-gap:5px!important;
}
.overview-hero .overview-details .overview-field-label{
  display:block!important;
  flex:0 0 auto!important;
  margin:0!important;
  line-height:1.25!important;
}
.overview-hero .overview-details .muscle-summary,
.overview-hero .overview-details .equipment-summary{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
  text-overflow:ellipsis!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:calc(1.45em * 2)!important;
  line-height:1.45!important;
  margin:0!important;
}
/* Equal width only where the two blocks appear alongside each other. */
@media(min-width:1041px), (max-width:700px){
  .overview-hero .overview-details{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    align-items:stretch!important;
  }
  .overview-hero .overview-details .overview-detail{
    width:100%!important;
    flex:initial!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    padding:1px 14px 1px 0!important;
  }
  .overview-hero .overview-details .overview-detail + .overview-detail{
    border-left:1px solid #42536a!important;
    padding:1px 0 1px 18px!important;
  }
}
/* Middle widths keep the two equally sized blocks stacked at full width. */
@media(min-width:701px) and (max-width:1040px){
  .overview-hero .overview-details .overview-detail{
    width:100%!important;
    padding:0!important;
  }
}

/* V194 — metadata stays in a stable, evenly-spaced two-column track until
   the actual stacked breakpoint; stacked items sit closer together. */
@media(min-width:1041px){
 .overview-hero .overview-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0!important;
  align-items:start!important;
 }
 .overview-hero .overview-details .overview-detail{
  width:100%!important;min-width:0!important;max-width:none!important;
  margin:0!important;
 }
 .overview-hero .overview-details .overview-detail:first-child{
  padding:1px 14px 1px 0!important;
 }
 .overview-hero .overview-details .overview-detail + .overview-detail{
  padding:1px 0 1px 18px!important;
  border-left:1px solid #42536a!important;
 }
}
@media(min-width:701px) and (max-width:1040px){
 .overview-hero .overview-details{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
 }
 .overview-hero .overview-details .overview-detail,
 .overview-hero .overview-details .overview-detail + .overview-detail{
  width:100%!important;max-width:100%!important;
  padding:0!important;margin:0!important;border:0!important;
 }
 .overview-hero .overview-details .muscle-summary,
 .overview-hero .overview-details .equipment-summary{
  min-height:0!important;
 }
}

/* Preferences opens from the timer in both session states. */
.top #preferencesMenu{width:0!important;height:0!important;min-width:0!important;flex:0 0 0!important;margin:0!important;padding:0!important;overflow:visible!important}
.top #preferencesGear{display:none!important}
#preferencesDropdown{position:fixed!important;z-index:100050!important;right:auto;overflow-y:auto;overscroll-behavior:contain}
.timer-pref-intro{position:relative;padding-inline:48px}

/* V199 — progressive workout tile layout. 4 columns, no horizontal scroller. */
#tabs.tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row!important;overflow-x:visible!important;min-width:0!important}
#tabs .tab-wrap .tab b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important;min-width:0!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
/* Stage 1: the musical-group description still fits in two lines with smaller play/stop. */
#tabs.home-tabs-smallplay .tab-session-btn{
 width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;
 flex:0 0 24px!important;padding:3px!important;border-radius:6px!important;
}
#tabs.home-tabs-smallplay .tab-session-btn svg{width:13px!important;height:13px!important}
#tabs.home-tabs-smallplay .tab-wrap .tab{padding-right:29px!important}
/* Stage 2: remove muscle groups; keep name and reduced Play/Stop on one line. */
#tabs.home-tabs-compact .tab-wrap{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:space-between!important;gap:3px!important;padding:4px!important;
 min-width:0!important;border:1px solid #2d3a50!important;
 border-top:3px solid var(--tab-accent)!important;border-radius:10px!important;
 background:#111b2c!important;
}
#tabs.home-tabs-compact .tab-wrap:has(.tab[aria-selected="true"]){border-color:var(--tab-accent)!important;background:color-mix(in srgb,var(--tab-accent),#101b2d 84%)!important}
#tabs.home-tabs-compact .tab-wrap .tab{
 display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;
 height:auto!important;min-height:27px!important;align-items:center!important;
 justify-content:flex-start!important;text-align:left!important;
 padding:2px 0 2px 2px!important;border:0!important;background:transparent!important;
}
#tabs.home-tabs-compact .tab-wrap .tab small{display:none!important}
#tabs.home-tabs-compact .tab-session-btn{
 display:grid!important;position:relative!important;top:auto!important;right:auto!important;left:auto!important;
 transform:none!important;align-self:center!important;margin:0!important;
 width:23px!important;min-width:23px!important;height:23px!important;min-height:23px!important;
 flex:0 0 23px!important;border-radius:6px!important;padding:3px!important;
}
#tabs.home-tabs-compact .tab-session-btn svg{width:13px!important;height:13px!important}
/* Stage 3: only the single-line workout title on very small tiles. */
#tabs.home-tabs-name-only .tab-wrap{padding:4px 3px!important;min-height:35px!important}
#tabs.home-tabs-name-only .tab-session-btn{display:none!important}
#tabs.home-tabs-name-only .tab-wrap .tab{width:100%!important;justify-content:center!important;text-align:center!important;padding:3px 0!important;min-height:24px!important}
#tabs.home-tabs-name-only .tab-wrap .tab b{width:100%!important;font-size:clamp(10px,2.65vw,12px)!important}
@media(max-width:700px){
 #tabs.home-tabs-smallplay .tab-wrap{position:relative!important}
 #tabs.home-tabs-smallplay .tab-session-btn{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important}
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab b{white-space:nowrap!important;text-overflow:ellipsis!important}
}

/* V200 — hard limit of two lines of muscle groups (never a third). */
#tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab small{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;line-clamp:2!important;
 max-height:2.7em!important;overflow:hidden!important;
}

/* V201 — consistent selectors at narrow widths; no wrap/flicker or clipped buttons. */
/* Never interpolate dimensions when moving between responsive stages. */
#tabs .tab-wrap,#tabs .tab-wrap .tab,#tabs .tab-wrap .tab small,#tabs .tab-session-btn{transition-property:background-color,border-color,box-shadow,color,opacity!important;transition-duration:.16s!important}

#tabs.tabs{min-width:0!important;overflow:visible!important}
#tabs .tab-wrap{min-width:0!important;box-sizing:border-box!important}
#tabs .tab-wrap .tab b{min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
#tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab small{max-width:100%!important;line-height:1.35!important;max-height:2.7em!important;-webkit-line-clamp:2!important;overflow:hidden!important}
#tabs.home-tabs-smallplay .tab-wrap{min-width:0!important}
#tabs.home-tabs-smallplay .tab-wrap .tab{padding-right:32px!important}
#tabs.home-tabs-smallplay .tab-session-btn{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;flex:0 0 23px!important}
#tabs.home-tabs-compact .tab-wrap{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;gap:3px!important;padding:4px!important}
#tabs.home-tabs-compact .tab-wrap .tab{display:flex!important;min-width:0!important;max-width:100%!important;flex:1 1 0!important;align-items:center!important;justify-content:flex-start!important;min-height:27px!important;height:auto!important;width:auto!important; padding:2px 0 2px 2px!important;border:0!important;background:transparent!important;box-shadow:none!important}
#tabs.home-tabs-compact .tab-wrap .tab small{display:none!important}
#tabs.home-tabs-compact .tab-session-btn{position:relative!important;flex:0 0 23px!important;min-width:23px!important;width:23px!important;min-height:23px!important;height:23px!important;top:auto!important;right:auto!important;transform:none!important;align-self:center!important;margin:0!important}
#tabs.home-tabs-name-only .tab-wrap .tab{justify-content:center!important;flex:1 1 100%!important;width:100%!important;text-align:center!important}
#tabs.home-tabs-name-only .tab-wrap .tab b{width:100%!important}
#tabs.home-tabs-name-only .tab-session-btn{display:none!important}
@media(max-width:700px){
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab{min-height:66px!important;padding:9px 35px 8px 8px!important;height:100%!important;display:block!important}
 #tabs.tabs:not(.home-tabs-compact) .tab-wrap .tab small{display:-webkit-box!important}
 #tabs.home-tabs-compact .tab-wrap{min-height:35px!important}
 #tabs.home-tabs-compact .tab-wrap .tab b{font-size:clamp(10px,2.55vw,12px)!important}
}

/* V202 — shared Preferences gear and recognizable session-control icons. */
#preferencesGear{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
#preferencesGear .preferences-gear-symbol{display:block!important;width:21px!important;height:21px!important;flex:0 0 21px;stroke:currentColor!important;stroke-width:1.9!important;margin:0!important}
:is(#exerciseCard .actions,#focusTimerActions)>.btn{
 display:inline-flex;align-items:center;justify-content:center;
 gap:clamp(4px,.6vw,8px);min-width:0;
}
:is(#exerciseCard .actions,#focusTimerActions)>.btn>.nextime-action-icon{
 width:clamp(14px,1.5vw,19px);height:clamp(14px,1.5vw,19px);
 flex:0 0 auto;display:block;fill:none;stroke:currentColor;
 stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;
}
:is(#exerciseCard .actions,#focusTimerActions)>.btn>span{min-width:0;white-space:normal;text-align:center;line-height:1.15}
@media(max-width:550px){
 :is(#exerciseCard .actions,#focusTimerActions)>.btn{gap:3px!important;padding-left:3px!important;padding-right:3px!important}
 :is(#exerciseCard .actions,#focusTimerActions)>.btn>.nextime-action-icon{width:13px;height:13px}
}

/* V203 — consistent preference sliders; distinct recovery/series navigation; complete check. */
#preferencesGear .preferences-gear-symbol{
 width:21px!important;height:21px!important;display:block!important;flex:0 0 21px!important;
 stroke-width:2!important;stroke:currentColor!important;fill:none!important;
 transform:none!important;transform-origin:center!important;
}
:is(#exerciseCard .actions,#focusTimerActions)>.btn>.nextime-finish-icon{
 stroke-width:2.15!important;
}

/* NEXTIME V204 — supersets, buffer and performance insight. */
.nextime-results-panel{margin:16px 0 12px;padding:15px;border-radius:12px;border:1px solid #354760;background:#0f1b2e;text-align:left}
.nextime-results-panel h3{font-size:16px;color:#eff5ff;margin-bottom:10px}
.nextime-results-panel h3 small{font-size:11px;color:#9eb3cb;font-weight:500}
.nextime-results-panel p{color:#b5c7dc;font-size:12px}
.nextime-deviation-list{display:grid;gap:12px;margin:10px 0}
.nextime-dev-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;line-height:1.3}
.nextime-dev-heading strong{overflow-wrap:anywhere}
.nextime-dev-heading span{white-space:nowrap;font-size:11px;font-weight:800}
.nextime-dev-heading .up{color:#70dda1}.nextime-dev-heading .down{color:#ff9191}
.nextime-dev-bars{height:14px;position:relative;border-radius:4px;background:#1d3049;overflow:hidden;margin:5px 0 3px}
.nextime-dev-goal{position:absolute;left:0;top:0;height:100%;background:#64758e;opacity:.6}
.nextime-dev-actual{position:absolute;left:0;top:3px;height:8px;background:var(--accent);border-radius:3px}
.nextime-deviation-item small{font-size:10px;color:#a9bed5}
.nextime-adaptive-preview{max-height:190px;overflow:auto;display:grid;gap:6px;margin:9px 0 12px;color:#dbe8f5;font-size:12px}
.nextime-adaptive-preview b{color:var(--accent)}
@media(max-width:420px){.nextime-results-panel{padding:10px}.nextime-dev-heading{font-size:11px}.nextime-dev-heading span{font-size:10px}}

/* NEXTIME V205 — buffer blocks, compact superset explorer and timer hierarchy. */
#editorDialog .studio-buffer-block,.sheet-buffer-section{border:1px solid #66788d!important;border-left:4px solid #a4b0bd!important;background:linear-gradient(110deg,#202c3d,#142033)!important;border-radius:12px;padding:15px;margin:11px 0}
.studio-buffer-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}
.studio-buffer-heading strong{font-size:19px;color:#e8edf5}.studio-buffer-heading p{color:#aebaca;font-size:11px;margin:4px 0 0}
.studio-buffer-eyebrow{font-size:10px;font-weight:800;letter-spacing:.11em;color:#a4b0bd}
.studio-buffer-controls{display:flex;align-items:center;gap:10px}.studio-buffer-controls label{display:flex;flex-direction:column;gap:4px;color:#c8d2df;font-size:11px;font-weight:750}
.studio-buffer-input{display:flex;align-items:center;gap:5px;color:#bdc7d1}.studio-buffer-input input{width:72px!important;max-width:72px!important;padding:7px 9px!important;background:#111b2c;color:#f5f8ff;border:1px solid #6c7e90;border-radius:8px;font-size:16px;text-align:center}
.studio-buffer-delete{background:transparent;border:1px solid #52667b;border-radius:8px;color:#c3cfdf;padding:8px;cursor:pointer}
.studio-add-buffer{border-color:#7b8b9f!important;background:#263142!important;color:#edf2fb!important}
#exerciseCard .current-exercise-status{margin-bottom:5px;letter-spacing:.12em}
#exerciseCard .current-name-line{margin-bottom:4px}
#exerciseCard .current-block-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}
#exerciseCard .current-block-title>.sectiontitle{margin:0;min-width:0}
#exerciseCard .current-block-title>.current-superset-badge{flex:none}
#exerciseCard .current-title{font-size:clamp(23px,4vw,35px);letter-spacing:-.035em;line-height:1.13;overflow-wrap:anywhere}
#exerciseCard .current-exercise-details{
 display:flex;align-items:stretch;gap:12px;margin:12px 0 14px;
 container:exercise-notes / inline-size;
}
@container exercise-notes (max-width:470px){
 #exerciseCard .current-notes{
  align-self:start;max-height:2.9em;max-height:2lh;overflow-y:auto;
  padding-inline-end:6px;scrollbar-width:thin;
 }
}
#exerciseCard .current-notes{flex:1;min-width:0;font-size:13px;line-height:1.45;color:#b8cde3;margin:0;overflow-wrap:anywhere}
#exerciseCard .current-exercise-type{
 flex:0 1 auto;min-width:0;max-width:38%;margin:0;overflow-wrap:anywhere;
}
#exerciseCard .current-exercise-type + .current-notes{border-inline-start:1px solid #42536a;padding-inline-start:12px}
#exerciseCard .current-exercise-type dt{font-size:10px;color:#adc1d8}
#exerciseCard .current-exercise-type dd{margin:2px 0 0;font-size:13px;font-weight:800;color:#f0f6ff}
:is(#exerciseCard,#focusTimerOverlay) .current-superset-badge{display:inline-flex;align-items:center;gap:6px;font:800 10px/1.2 system-ui,sans-serif;letter-spacing:.045em;text-transform:uppercase;padding:4px 8px;border:1px solid color-mix(in srgb,var(--accent),#304663 48%);border-radius:20px;background:color-mix(in srgb,var(--accent),#142238 88%);color:var(--accent);white-space:nowrap}
#exerciseCard .timer-quick-heading{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 6px;width:100%;min-width:0;padding-inline:35px}
#exerciseCard .timer-quick-heading .timer-quick-name{width:auto}
:is(#exerciseCard,#focusTimerOverlay){--timer-accent-fill:color-mix(in srgb,var(--accent) 18%,#142137)}
#exerciseCard .timer-exercise-summary{display:flex;align-items:stretch;gap:6px;min-width:0}
#exerciseCard .timer-exercise-facts{
 display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,auto);
 gap:6px;min-width:0;margin:0;
}
#exerciseCard .timer-exercise-summary .series-focus{
 flex:1 1 auto;flex-wrap:nowrap;justify-content:space-between;gap:10px;min-width:0;margin:0;
}
#exerciseCard .timer-exercise-summary :is(.series-focus,.timer-fact-objective,.timer-fact-recovery,.timer-fact-cadence,.timer-fact-superset){
 padding:6px 9px;border:0;border-radius:8px;
 background:var(--timer-accent-fill);
}
#exerciseCard .timer-quick-info .timer-quick-facts{gap:4px 6px!important;font-size:11px!important}

:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts .timer-fact-objective{
 color:color-mix(in srgb,var(--summary-accent,var(--accent)),#ecf4ff 32%);
 font-weight:850;
}

:is(#exerciseCard,#focusTimerOverlay) :is(.timer-fact-recovery,.series-focus){
 --summary-accent:#9aa9bc;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-fact-cadence{
 --summary-accent:#a8a8a8;
}
:is(#exerciseCard,#focusTimerOverlay) :is(.timer-fact-recovery,.timer-fact-cadence,.series-focus){
 --timer-accent-fill:color-mix(in srgb,var(--summary-accent) 18%,#142137);
}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts :is(.timer-fact-objective,.timer-fact-cadence,.timer-fact-recovery,.timer-fact-superset){
 padding:7px 10px;border:0;border-radius:8px;font-size:inherit;white-space:nowrap;text-align:center;
 background:var(--timer-accent-fill);
}
.timer-quick-recovery{display:inline-flex;align-items:stretch;gap:5px}
:is(#exerciseCard,#focusTimerOverlay) .timer-quick-facts .timer-fact-superset{
 display:grid;place-items:center;padding-inline:8px;
 color:color-mix(in srgb,var(--accent),#ecf4ff 32%);
}
.timer-fact-superset svg{display:block;width:1.25em;height:1.25em}
:is(
 #exerciseCard .exercise-metrics>.actions>.btn.ghost,
 #focusTimerActions>.btn.ghost,
 .main-header-buttons .main-studio-button:is([data-header-view],[data-header-edit]),
 .overview-hero .overview-reset .btn[data-action="reset"]
){
 border:0!important;background:var(--workout-edit-fill,#1b2a42)!important;color:#d4e1f3!important;box-shadow:none!important;
}
:is(
 #exerciseCard .exercise-metrics>.actions>.btn.ghost,
 #focusTimerActions>.btn.ghost,
 .main-header-buttons .main-studio-button:is([data-header-view],[data-header-edit]),
 .overview-hero .overview-reset .btn[data-action="reset"]
):hover:not(:disabled){background:var(--workout-edit-fill,#293b56)!important}
.main-header-buttons .main-studio-button[data-header-edit]{
 --workout-edit-fill:color-mix(in srgb,var(--accent) 32%,#101b2d);
}
.main-header-buttons .main-studio-button[data-header-edit]:is(:hover,:focus-visible){
 --workout-edit-fill:color-mix(in srgb,var(--accent) 42%,#101b2d);
}
.timer-chrome-button{border:0;background:#24354f;color:#d4e1f3}
.timer-chrome-button:is(:hover,[aria-expanded="true"]){background:#30455f}
#exerciseCard .series-focus .series-eyebrow,
#exerciseCard .timer-exercise-facts :is(.timer-fact-objective,.timer-fact-recovery,.timer-fact-cadence,.timer-fact-superset) dt{
 color:var(--summary-accent,var(--accent));font-size:9px;line-height:1.2;
 font-weight:1000;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;
}
#exerciseCard .series-focus .series-eyebrow{text-align:left}
#exerciseCard .series-progress{display:flex;align-items:center;min-width:0;gap:12px}
#exerciseCard .series-progress strong{flex:none;font-size:12px;line-height:1.15;white-space:nowrap}
#exerciseCard .series-progress .series-pips{
 flex-wrap:nowrap;min-width:0;max-width:100%;gap:clamp(3px,.55vw,7px);
 overflow-x:auto;scrollbar-width:none;padding:6px 4px;
}
#exerciseCard .series-progress .series-pips span{flex:none;width:13px;height:13px}
#exerciseCard .timer-exercise-facts>div{
 display:grid;align-content:center;justify-items:center;text-align:center;
 min-width:0;
}
#exerciseCard .timer-exercise-facts dt{font-size:10px;color:#adc1d8}
#exerciseCard .timer-exercise-facts dd{margin:2px 0 0;font-size:13px;font-weight:800;color:#f0f6ff;overflow-wrap:anywhere}
#exerciseCard .timer-fact-short-label{display:none}
#exerciseCard .exercise-metrics>.actions>.btn.primary,#focusTimerActions>.btn.primary{min-height:68px!important;padding-block:13px!important;font-size:calc(var(--timer-action-font-size,14px) + 2px)!important;font-weight:850}
#exerciseCard .actions>.btn[data-action="skip"]:disabled,
#focusTimerActions>.btn[data-action="skip"]:disabled{opacity:.32;cursor:not-allowed}
#exerciseCard .actual-value-panel .nextime-metric-heading{justify-content:center;min-width:0}
:is(#exerciseCard,#focusTimerOverlay) .superset-result-switch{display:grid;grid-template-columns:26px minmax(0,1fr) 26px;align-items:center;gap:5px;width:100%;margin:3px 0 7px;text-align:center}
:is(#exerciseCard,#focusTimerOverlay) .superset-result-switch button{display:grid;place-items:center;width:26px;height:28px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--accent);font:600 21px/1 system-ui,sans-serif;cursor:pointer}
:is(#exerciseCard,#focusTimerOverlay) .superset-result-switch button:hover{color:#fff}
:is(#exerciseCard,#focusTimerOverlay) .superset-result-switch>span,:is(#exerciseCard,#focusTimerOverlay) .actual-exercise-name{min-width:0;font-size:11px;font-weight:750;line-height:1.25;color:#dce8f6;overflow-wrap:anywhere;text-align:center}
:is(#exerciseCard,#focusTimerOverlay) .actual-exercise-name{width:100%;margin:3px 0 5px}
:is(#exerciseCard,#focusTimerOverlay) .superset-result-switch small{
 display:block;margin-top:2px;font-size:10px;color:var(--accent);white-space:nowrap;
}
.plan-buffer-block{border-color:#758494;background:#202c3d}
.plan-buffer-block .blockinfo{color:#cfd7e2}
@media(max-width:470px){
 .studio-buffer-heading{align-items:flex-start}
 .studio-buffer-controls{width:100%;justify-content:space-between}
 #exerciseCard .timer-exercise-summary{
  --timer-fact-columns:calc(2 + var(--has-cadence,0) + var(--has-superset,0));
  display:grid;grid-template-columns:repeat(calc(var(--timer-fact-columns) + 1),minmax(0,1fr));gap:4px;
 }
 #exerciseCard .timer-exercise-summary:has(.timer-fact-cadence){--has-cadence:1}
 #exerciseCard .timer-exercise-summary:has(.timer-fact-superset){--has-superset:1}
 #exerciseCard .timer-exercise-facts{
  grid-column:span var(--timer-fact-columns);
  grid-template-columns:repeat(var(--timer-fact-columns),minmax(0,1fr));gap:4px;
 }
 #exerciseCard .timer-exercise-summary .series-focus{justify-content:center;padding:6px 5px}
 #exerciseCard .series-focus .series-eyebrow{display:none}
 #exerciseCard .series-progress{width:100%;flex-wrap:wrap;justify-content:center;gap:2px 5px}
 #exerciseCard .series-progress strong{font-size:11px}
 #exerciseCard .series-progress .series-pips{gap:3px}
 #exerciseCard .timer-exercise-summary .timer-exercise-facts>div{padding:6px 5px}
 #exerciseCard .timer-exercise-summary .timer-exercise-facts>div:not(.timer-fact-superset) dt{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
 }
 #exerciseCard .timer-exercise-facts dd{margin:0;font-size:11px}
 #exerciseCard .timer-exercise-facts .timer-fact-superset dt{font-size:8px;letter-spacing:.03em;white-space:normal;overflow-wrap:anywhere}
 #exerciseCard .timer-fact-short-label{display:inline;color:#c4d2e5;font-weight:650}
 :is(#exerciseCard,#focusTimerOverlay) .superset-result-switch{grid-template-columns:22px minmax(0,1fr) 22px;gap:2px}
 :is(#exerciseCard,#focusTimerOverlay) .superset-result-switch button{width:22px}
}


@media(max-width:380px){
 #exerciseCard .series-progress{flex-direction:column;flex-wrap:nowrap}
}
@media(max-width:350px){
 #exerciseCard .timer-ring .timer-inside-label{display:none!important}
}
@container (max-width:145px){
 #exerciseCard .timer-ring .timer-inside-label{display:none!important}
}

/* The timer and actual-value drawer share the same rounded frame. */
#exerciseCard .counterbox-with-series>#currentExerciseMetrics{
 grid-template-columns:minmax(0,1fr)!important;column-gap:0!important;
}
#exerciseCard .timer-shell,.focus-timer-shell{
 --drawer-edge:#42536a;
 --drawer-line:#a8bdd533;
 --drawer-motion:.42s cubic-bezier(.22,1,.36,1);
}
#exerciseCard .timer-shell{
 grid-column:1/-1;grid-row:1;display:grid;container-type:inline-size;
 grid-template-columns:minmax(0,1fr) clamp(108px,27%,144px);
 min-width:0;overflow:hidden;border:0;border-radius:15px;
 background:#19283e;
 transition:grid-template-columns var(--drawer-motion);
}
#exerciseCard .metrics-rail-closed .timer-shell{grid-template-columns:minmax(0,1fr) 0px}
#exerciseCard .exercise-metrics .timer-shell>.inline-timer{
 display:flex;flex-direction:column;align-items:center;align-self:stretch!important;
 box-sizing:border-box;min-width:0;width:100%;border:0!important;
 background:transparent;isolation:isolate;z-index:1;
}
#exerciseCard .timer-shell>.inline-timer::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 border-radius:14px;background:linear-gradient(150deg,#1b2b43,#0d192b);
}
#exerciseCard .timer-shell .timer-main-area{
 --timer-side-toggle-width:28px;
 padding-inline:calc(var(--timer-side-toggle-width) + 5px)!important;
}
/* Size the dial from its available track, including when the drawer opens. */
#exerciseCard .exercise-metrics .timer-shell .inline-timer .timer-main-area .timer-ring{
 width:100%!important;max-width:420px!important;flex:0 1 420px!important;
}
@media(max-width:980px){
 .main:has(#exerciseCard){grid-template-columns:minmax(0,1fr)}
}
@media(width > 980px){
 .main:has(#exerciseCard){grid-template-columns:minmax(0,1fr) clamp(250px,25vw,300px)}
}
#exerciseCard .timer-shell .inline-timer{--timer-toolbar-inset:48px}
#exerciseCard .timer-shell .inline-timer .timer-quick-info{
 padding-inline:var(--timer-toolbar-inset)!important;
 padding-bottom:10px!important;gap:2px!important;
}
#exerciseCard .timer-shell .timer-quick-heading{min-height:38px;padding-inline:0}
:is(.timer-pref-intro,#exerciseCard .inline-timer)>.timer-chrome-button{
 position:absolute;inset-block-start:14px;z-index:8;
}
:is(.timer-pref-intro,#exerciseCard .inline-timer)>.timer-preferences-trigger{inset-inline-start:15px}
:is(.timer-pref-intro,#exerciseCard .inline-timer)>.timer-focus-trigger{inset-inline-end:15px}
:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle{
 position:absolute;z-index:3;top:50%;right:0;transform:translateY(-50%);
 display:grid;align-items:center;justify-items:end;width:32px;height:44px;padding:0 8px 0 0;
 border:0;border-radius:12px;background:transparent;color:var(--accent);
 cursor:pointer;transition:color .18s ease;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle::after{
 content:"";width:7px;height:7px;border-top:2.5px solid;border-right:2.5px solid;
 transform:rotate(45deg);
}
:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle[aria-expanded="false"]::after{transform:rotate(225deg)}
:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle:hover{color:color-mix(in srgb,var(--accent) 74%,#fff)}
:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual{
 display:flex;flex-direction:column;justify-content:center;min-width:0;overflow:hidden;
 background:transparent;color:#e4edf8;transition:visibility 0s;
}
#exerciseCard .metrics-rail-closed .timer-actual{visibility:hidden;transition-delay:.42s}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-content{
 /* Size to the open drawer, even while the grid track clips its entrance. */
 box-sizing:border-box;width:clamp(108px,27cqi,144px);
 padding:7px 5px 7px 6px;text-align:center;
 transform:translateX(0);transition:transform var(--drawer-motion);
}
#exerciseCard .metrics-rail-closed .timer-actual-content{transform:translateX(-105%)}
#exerciseCard #metricsRailToggle{width:var(--timer-side-toggle-width);height:44px;padding:0;place-items:center}
#focusTimerOverlay #focusMetricsToggle{right:0;width:25px;padding-right:4px}
#focusMetricsToggle::after{rotate:180deg}
#focusTimerOverlay #focusPlanToggle{left:0;right:auto;width:25px;justify-items:start;padding:0 0 0 4px}
@media(max-width:799px){
 #focusPlanToggle::after{rotate:-90deg}
}
@media(max-width:599px){
 #focusMetricsToggle::after{rotate:-90deg}
}
@media(max-width:380px){
 #focusTimerOverlay #focusMetricsToggle{right:-5px}
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual :is(.actual-exercise-name,.superset-result-switch){margin-block:0}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual :is(.actual-exercise-name,.superset-result-switch)+.timer-actual-controls{
 margin-top:7px;padding-top:7px;border-top:1px solid var(--drawer-line);
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-controls{
 display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;
 gap:3px;width:100%;margin-inline:auto;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider{
 --actual-thumb-height:12px;
 --actual-fill-end:calc(var(--actual-thumb-height) / 2 + (100% - var(--actual-thumb-height)) * var(--actual-progress,0));
 --actual-track-fill:color-mix(in srgb,var(--accent) 82%,#aabbce);
 grid-column:1;grid-row:1;appearance:none;writing-mode:vertical-lr;direction:rtl;
 width:20px;height:clamp(72px,13vw,109px);margin:0;padding:0;
 border:0;border-radius:10px;
 background:
  repeating-linear-gradient(to top,#e1efff85 0 1px,transparent 1px 10%) center / 7px calc(100% - 12px) no-repeat,
  linear-gradient(to top,var(--actual-track-fill) var(--actual-fill-end),#293950 var(--actual-fill-end)) center / 9px 100% no-repeat;
 cursor:ns-resize;touch-action:none;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider::-webkit-slider-runnable-track{background:transparent}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider::-moz-range-track,
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider::-moz-range-progress{background:transparent}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider::-webkit-slider-thumb{
 appearance:none;box-sizing:border-box;width:18px;height:var(--actual-thumb-height);
 border:1px solid var(--actual-track-fill);border-radius:5px;
 background:linear-gradient(to bottom,#f1f6fd,#c3d4e8);box-shadow:0 1px 4px #0009;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider::-moz-range-thumb{
 box-sizing:border-box;width:18px;height:var(--actual-thumb-height);
 border:1px solid var(--actual-track-fill);border-radius:5px;
 background:linear-gradient(to bottom,#f1f6fd,#c3d4e8);box-shadow:0 1px 4px #0009;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-slider:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-reading{grid-column:2;grid-row:1;display:grid;min-width:0;gap:4px}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-reading h3{
 margin:0;color:#bbccdf;font-size:clamp(10px,1.3vw,12px);font-weight:700;line-height:1.15;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-counter{
 display:grid;grid-template-columns:clamp(17px,4.5cqi,22px) minmax(0,1fr) clamp(17px,4.5cqi,22px);
 align-items:stretch;min-width:0;
 border:1px solid var(--drawer-edge);border-radius:7px;background:#ffffff08;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-value{display:flex;justify-content:center;align-items:baseline;align-self:center;min-width:0;gap:2px}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-value input{
 width:2.4ch;min-width:1ch;max-width:100%;padding:0;margin:0;border:0;border-radius:3px;background:transparent;
 color:#f5f8ff;font:800 clamp(14px,2vw,20px)/1.15 system-ui,sans-serif;
 font-variant-numeric:tabular-nums;text-align:right;appearance:textfield;
}
@supports (field-sizing:content){
 :is(#exerciseCard,#focusTimerOverlay) .timer-actual-value input{width:auto;field-sizing:content}
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-value input::-webkit-inner-spin-button,
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-value input::-webkit-outer-spin-button{appearance:none;margin:0}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-value span{color:#aebfd5;font-size:clamp(8px,1vw,10px)}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-counter button{
 min-width:0;min-height:30px;padding:0;
 border:0;border-radius:6px;background:transparent;
 color:#eef4ff;font:700 15px/1 system-ui,sans-serif;cursor:pointer;
}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-counter button:hover{background:var(--accentsoft)}
:is(#exerciseCard,#focusTimerOverlay) .timer-actual-counter button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(width < 450px){
 #exerciseCard .exercise-metrics .timer-shell{
  grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
  transition:grid-template-rows var(--drawer-motion);
 }
 #exerciseCard .exercise-metrics.metrics-rail-closed .timer-shell{grid-template-rows:auto minmax(0,0fr)}
 #exerciseCard .exercise-metrics .timer-shell>.inline-timer{padding-bottom:30px!important}
 #exerciseCard .timer-shell .timer-main-area{padding-inline:12px!important}
 #exerciseCard #metricsRailToggle{
  top:auto;right:auto;bottom:-28px;left:50%;transform:translateX(-50%);
  width:44px;height:28px;padding:0;place-items:center;
 }
 #exerciseCard #metricsRailToggle::after{rotate:-90deg}
 #exerciseCard .timer-shell>.timer-actual{
  min-height:0;align-items:center;justify-content:start;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-content{
  width:min(100%,174px);padding:5px 8px 8px;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-controls{
  grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:3px;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-reading{
  grid-column:1;grid-row:1;justify-items:center;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-counter{
  width:min(100%,108px);grid-template-columns:24px minmax(0,1fr) 24px;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-counter button{min-height:27px}
 #exerciseCard .timer-shell>.timer-actual .timer-actual-slider{
  grid-column:1;grid-row:2;writing-mode:horizontal-tb;direction:ltr;
  width:100%;height:20px;cursor:ew-resize;
  background:
   repeating-linear-gradient(to right,#e1efff85 0 1px,transparent 1px 10%) center / calc(100% - 12px) 7px no-repeat,
   linear-gradient(to right,var(--actual-track-fill) var(--actual-fill-end),#293950 var(--actual-fill-end)) center / 100% 9px no-repeat;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-slider::-webkit-slider-thumb{
  width:var(--actual-thumb-height);height:18px;
 }
 #exerciseCard .timer-shell>.timer-actual .timer-actual-slider::-moz-range-thumb{
  width:var(--actual-thumb-height);height:18px;
 }
 #exerciseCard .metrics-rail-closed .timer-shell>.timer-actual .timer-actual-content{
  transform:translateY(-12px);
 }
 #exerciseCard .timer-quick-info .timer-quick-facts :is(.timer-fact-objective,.timer-fact-cadence,.timer-fact-recovery,.timer-fact-superset){
  padding:6px 7px;
 }
}
@media(prefers-reduced-motion:reduce){
 #exerciseCard .exercise-metrics .timer-shell,:is(#exerciseCard,#focusTimerOverlay) .timer-drawer-toggle,
 :is(#exerciseCard,#focusTimerOverlay) .timer-actual,:is(#exerciseCard,#focusTimerOverlay) .timer-actual-content{transition:none}
}

/* V205 editor: add-block chooser. */
.studio-add-block-menu{position:relative;display:inline-block;align-self:center}
.studio-add-block-menu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.studio-add-block-menu>summary::-webkit-details-marker{display:none}
.studio-add-block-choices{position:absolute;bottom:calc(100% + 7px);left:0;z-index:100;min-width:185px;display:grid;gap:6px;padding:8px;border:1px solid #4d6178;border-radius:12px;background:#16273c;box-shadow:0 12px 29px rgba(0,0,0,.45)}
.studio-add-block-choices .editor-small{width:100%;justify-content:flex-start;white-space:nowrap}

/* Account e sincronizzazione */
#cloudAccount form label {
 display: grid;
 gap: .3rem;
 margin-block: .65rem;
}

#cloudAccount input {
 width: 100%;
 padding: .6rem .75rem;
 color: inherit;
 background: #101725;
 border: 1px solid #526684;
 border-radius: .45rem;
 font: inherit;
}

.cloud-actions {
 display: flex;
 flex-wrap: wrap;
 gap: .5rem;
 margin-top: .75rem;
}

#cloudAccount [hidden] {
 display: none;
}
