/* ==========================================================================
   BULLDER · workout (registro en vivo, edición, cierre). Prefijo: wk-
   Pantalla completa (chrome 'none'): cabecera propia, lista de ejercicios y barra de descanso.
   ========================================================================== */
.wk { --wk-cn: 34px; --wk-cf: 68px; --wk-cr: 40px; --wk-cc: 44px; --wk-head-h: 104px; min-height: 100dvh; background: var(--bg); }

/* ------------------------------------------------------------------ cabecera */
.wk-head {
  position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t);
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.wk-head-bar { height: 56px; display: flex; align-items: center; gap: 2px; padding: 0 8px; max-width: 1180px; margin: 0 auto; }
.wk-head-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4px 8px; border-radius: 10px; text-align: left; }
button.wk-head-mid:hover { background: var(--surface); }
.wk-head-title { display: block; max-width: 100%; font: 700 16px/1.2 var(--font-display); }
.wk-clock { font: 650 12.5px/1.3 var(--font); color: var(--accent); }
.wk-head-go { margin-left: 4px; min-width: 88px; }
.wk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 16px 10px; max-width: 1180px; margin: 0 auto; }
.wk-sum > div { min-width: 0; }
.wk-sum span { display: block; font: 600 11px/1.2 var(--font); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.wk-sum b { display: block; font: 700 17px/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-progress { height: 3px; background: transparent; }
.wk-progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); border-radius: 0 2px 2px 0; }

/* ------------------------------------------------------------------ estructura */
.wk-body { padding: 12px 12px calc(var(--safe-b) + 120px); }
.wk-main { width: 100%; max-width: 720px; margin: 0 auto; min-width: 0; }
.wk-side { display: none; }
@media (min-width: 960px) {
  .wk-body { display: grid; grid-template-columns: minmax(0, 720px) 360px; justify-content: center; gap: 28px; padding: 24px 32px 80px; align-items: start; }
  .wk-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--wk-head-h) + 20px); max-height: calc(100dvh - var(--wk-head-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
  .wk-side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
  .wk-only-phone { display: none; }
  .wk-restbar { display: none !important; }
  .wk-head-bar { padding: 0 24px; height: 60px; }
  .wk-sum { padding: 0 32px 12px; grid-template-columns: repeat(3, minmax(0, 160px)); }
  .wk-edit .wk-body, .wk-none .wk-body { grid-template-columns: minmax(0, 720px); }
}

/* ------------------------------------------------------------------ tarjeta de ejercicio */
.wk-list { display: flex; flex-direction: column; gap: 12px; }
.wk-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 6px; transition: border-color .2s; }
.wk-card.is-ss { border-left: 0; padding-left: 16px; overflow: hidden; }
.wk-card.is-ss::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ss); }
.wk-card.is-complete { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.wk-ss-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ss); margin: 2px 0 10px; }
.wk-card-head { display: flex; align-items: center; gap: 12px; }
.wk-card-thumb { position: relative; flex: none; border-radius: 12px; }
.wk-card-thumb .ex-thumb { width: 52px; height: 52px; object-fit: contain; }
.wk-play { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; border: 2px solid var(--surface); }
.wk-play .ic { width: 10px; height: 10px; margin-left: 1px; }
.wk-thumb-empty { display: grid; place-items: center; color: var(--silver); }
.wk-card-name { display: block; max-width: 100%; text-align: left; font: 700 16px/1.25 var(--font-display); color: var(--text); }
.wk-card-name:hover { color: var(--accent); }
.wk-card-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.wk-rest-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 9px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-2); font: 650 12.5px/1 var(--font); }
.wk-rest-pill:hover { color: var(--text); background: var(--surface-3); }
.wk-card-count { font: 650 12.5px/1 var(--font); color: var(--text-3); }
.wk-card.is-complete .wk-card-count { color: var(--accent); }
.wk-note { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: 13.5px; line-height: 1.35; }
.wk-note .ic { color: var(--warn); margin-top: 1px; }
.wk-sug { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 8px 12px; min-height: 40px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--info) 55%, transparent); color: var(--text-2); font-size: 13.5px; text-align: left; }
.wk-sug .ic { color: var(--info); }
.wk-sug b { color: var(--text); }
.wk-sug-note { margin-left: auto; font-size: 12px; color: var(--text-3); max-width: 45%; }
.wk-sug:hover { background: var(--info-soft); }
.wk-nosets { padding: 14px 2px 4px; }

/* ------------------------------------------------------------------ tabla de series */
.wk-table { margin: 12px -6px 0; }
.wk-row { position: relative; border-radius: 10px; overflow: hidden; touch-action: pan-y; }
.wk-row + .wk-row { margin-top: 3px; }
.wk-row-in { position: relative; z-index: 1; display: grid; grid-template-columns: var(--cols); gap: 6px; align-items: center; min-height: 48px; padding: 4px 6px; background: var(--surface); border-radius: 10px; transition: background .2s, transform .18s var(--ease); }
.wk-row.is-swiping .wk-row-in { transition: background .2s; }
.wk-row-head .wk-row-in { min-height: 26px; padding-top: 0; padding-bottom: 0; }
.wk-row-head span { font: 700 10.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-row-head span:nth-child(2) { text-align: left; padding-left: 2px; }
.wk-row-head .ic { margin: 0 auto; }
.wk-row-del { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 18px; background: var(--danger); color: #fff; font: 700 13px/1 var(--font); border-radius: 10px; opacity: 0; }
.wk-row.is-swiping .wk-row-del { opacity: .75; }
.wk-row.is-armed .wk-row-del { opacity: 1; }

.wk-set-n { height: 40px; border-radius: 10px; display: grid; place-items: center; font: 750 15px/1 var(--font); background: var(--surface-2); }
.wk-set-n:hover { background: var(--surface-3); }
.wk-prev { height: 40px; min-width: 0; padding: 0 2px; text-align: left; color: var(--text-3); font: 550 13.5px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; }
.wk-prev:not(:disabled):hover { color: var(--text); }
.wk-prev:not(:disabled):active { background: var(--surface-2); }
.wk-prev.is-empty { cursor: default; }
.wk-cell { position: relative; min-width: 0; }
.wk-in {
  width: 100%; height: 40px; padding: 0 4px; border-radius: 10px; border: 1.5px solid transparent; background: var(--surface-2);
  color: var(--text); text-align: center; font: 700 16px/1 var(--font); appearance: none; -webkit-appearance: none; transition: border-color .15s, background .15s;
}
.wk-in::placeholder { color: var(--text-3); font-weight: 550; opacity: 1; }
.wk-in:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }
.wk-cell.has-timer .wk-in { padding-right: 24px; font-size: 15px; }
.wk-tbtn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 26px; height: 32px; display: grid; place-items: center; color: var(--text-2); border-radius: 8px; }
.wk-tbtn:hover { color: var(--accent); }
.wk-cell.is-timing .wk-in { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.wk-cell.is-timing .wk-tbtn { color: var(--danger); }
.wk-rpe { height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--text-3); font: 650 11.5px/1 var(--font); }
.wk-rpe.has-v { color: var(--text); font-size: 14px; }
.wk-check { width: 44px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); transition: background .15s, color .15s, transform .12s var(--ease); }
.wk-check:hover { color: var(--text); background: var(--surface-3); }
.wk-check:active { transform: scale(.9); }
.wk-row.is-done .wk-row-in { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.wk-row.is-done .wk-check { background: var(--accent); color: var(--on-accent); }
.wk-row.is-done .wk-in { background: transparent; }
.wk-row.is-done .wk-set-n { background: transparent; }
.wk-row.is-done .wk-prev { color: var(--text-2); }
.wk-row.is-pr .wk-row-in { box-shadow: inset 3px 0 0 var(--pr); }
.wk-prline { display: flex; align-items: center; gap: 6px; padding: 3px 10px 5px 46px; color: var(--pr); font: 650 12px/1.2 var(--font); }
.wk-prline[hidden] { display: none; }
.wk-row.is-pr-new .wk-prline { animation: wk-pr-in .5s var(--ease); }
.wk-row.is-pr-new .wk-check { animation: wk-pop .35s var(--ease); }
.wk-row.is-done:not(.is-pr-new) .wk-check { animation: none; }
@keyframes wk-pr-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes wk-pop { 50% { transform: scale(1.18); } }
.wk-row.is-shake .wk-row-in { animation: wk-shake .35s; }
@keyframes wk-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.wk-row.is-next .wk-row-in { box-shadow: inset 0 0 0 2px var(--accent); }

.wk-addset { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 6px; border-radius: 10px; color: var(--text-2); font: 650 14px/1 var(--font); }
.wk-addset:hover { background: var(--surface-2); color: var(--text); }

.wk-foot { margin-top: 16px; }
.wk-discard { color: var(--danger); }
.wk-discard:hover { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------------ barra sobre el teclado */
.wk-acc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bg-elev); border-top: 1px solid var(--line-strong); padding: 6px 8px calc(6px + var(--safe-b)); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.wk-acc-in { display: flex; align-items: center; gap: 6px; max-width: 720px; margin: 0 auto; }
.wk-acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 64px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); font: 700 14px/1 var(--font); user-select: none; }
.wk-acc-btn:active { transform: scale(.95); background: var(--surface-3); }
.wk-acc-btn.is-check { background: var(--accent-soft); color: var(--accent); }
.wk-acc-btn.is-next { background: var(--accent); color: var(--on-accent); }
@media (min-width: 960px) { .wk-acc { display: none; } }

/* ------------------------------------------------------------------ barra de descanso (teléfono) */
.wk-restbar {
  position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; border-radius: 18px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: wk-up .28s var(--ease);
}
@keyframes wk-up { from { transform: translateY(24px); opacity: 0; } }
.wk-restbar-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; transition: transform .25s linear; }
.wk-restbar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 2px 10px; text-align: left; }
.wk-restbar-l { display: flex; max-width: 100%; font: 600 11.5px/1.2 var(--font); color: var(--text-2); white-space: nowrap; overflow: hidden; }
.wk-restbar-main b { font: 750 26px/1.1 var(--font-display); }
.wk-restbar .btn-sm { min-width: 52px; min-height: 44px; }
.wk-restbar.is-done { background: color-mix(in srgb, var(--accent) 22%, var(--surface-3)); }
.wk-restbar.is-done .wk-restbar-main b { font-size: 17px; }
.wk-restbar-ok { width: 40px; height: 40px; margin-left: 4px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); animation: wk-pop .45s var(--ease) 2; }

/* ------------------------------------------------------------------ panel de descanso */
.wk-restp { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wk-ring { --p: 100; position: relative; width: 190px; height: 190px; }
.wk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wk-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.wk-ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .3s linear; }
.wk-restp.is-idle .wk-ring-fg { stroke: var(--surface-3); }
.wk-restp.is-done .wk-ring-bg { stroke: var(--accent); }
.wk-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wk-ring-time { font: 750 44px/1 var(--font-display); }
.wk-restp.is-idle .wk-ring-time { font-size: 32px; color: var(--text-2); }
.wk-restp.is-done .wk-ring-time { font-size: 34px; color: var(--accent); }
.wk-ring-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.wk-restp-ctl { display: flex; gap: 8px; width: 100%; justify-content: center; }
.wk-restp-ctl .btn { flex: 1; max-width: 140px; }
.wk-restp-ex { width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.wk-rest-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-rest-opts .chip { height: 38px; }

/* ------------------------------------------------------------------ opciones en hojas */
.wk-opts { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.wk-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border-radius: var(--r-sm); text-align: left; }
.wk-opt:hover { background: var(--surface); }
.wk-opt.is-active { background: var(--accent-soft); }
.wk-opt b { display: block; font-weight: 650; }
.wk-opt .small { display: block; margin-top: 2px; }
.wk-opt.is-danger { color: var(--danger); }
.wk-opt-badge { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font: 750 15px/1 var(--font); }
.wk-opt-check { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: transparent; }
.wk-opt.is-active .wk-opt-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ------------------------------------------------------------------ cómo se hace */
.wk-info-media { border-radius: var(--r); overflow: hidden; background: var(--media-bg); aspect-ratio: 1 / 1; max-height: 52vh; margin: 0 auto; display: grid; place-items: center; }
.wk-info-media video, .wk-info-media img { width: 100%; height: 100%; object-fit: contain; }
.wk-info-nomedia { color: var(--silver); }
.wk-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.wk-steps li::marker { color: var(--accent); font-weight: 700; }
.wk-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.wk-tips li { display: flex; gap: 8px; }
.wk-tips .ic { color: var(--accent); margin-top: 3px; }

/* ------------------------------------------------------------------ reordenar */
.wk-reorder { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.wk-reorder-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); transition: transform .18s var(--ease), box-shadow .15s; position: relative; }
.wk-reorder-item[style*="--ss"] { box-shadow: inset 4px 0 0 var(--ss); }
.wk-reorder-item b { display: block; font-weight: 650; }
.wk-reorder-item .small { display: block; }
.wk-reorder-item.is-dragging { z-index: 2; transition: none; box-shadow: var(--shadow); border-color: var(--accent); }
.wk-reorder-n { width: 20px; text-align: center; color: var(--text-3); font: 700 13px/1 var(--font); }
.wk-reorder-grip { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--text-3); cursor: grab; touch-action: none; border-radius: 10px; }
.wk-reorder-grip:hover { color: var(--text); background: var(--surface-2); }

/* ------------------------------------------------------------------ herramientas */
.wk-tools .segmented { margin-bottom: 16px; }
.wk-stepper { display: flex; align-items: center; justify-content: center; gap: 10px; }
.wk-stepper .icon-btn { width: 48px; height: 48px; background: var(--surface-2); }
.wk-stepper-in { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); }
.wk-stepper-in:focus-within { border-color: var(--accent); }
.wk-stepper-in input { width: 112px; border: 0; background: none; text-align: center; font: 750 34px/1.1 var(--font-display); color: var(--text); }
.wk-stepper-in input:focus { outline: none; }
.wk-stepper-in span { color: var(--text-2); font-weight: 650; }
.wk-bar { display: flex; align-items: center; justify-content: center; height: 120px; margin: 18px 0 4px; }
.wk-bar-end { width: 14px; height: 14px; border-radius: 3px; background: var(--silver); flex: none; }
.wk-bar-mid { flex: 1; max-width: 120px; min-width: 64px; height: 12px; background: var(--silver); display: grid; place-items: center; position: relative; }
.wk-bar-mid b { position: absolute; top: 18px; font: 650 11.5px/1 var(--font); color: var(--text-3); white-space: nowrap; }
.wk-bar-side { display: flex; align-items: center; gap: 2px; min-width: 6px; height: 100%; }
.wk-bar-side::after { content: ""; width: 6px; height: 22px; border-radius: 2px; background: var(--silver); }
.wk-bar-side.is-left { flex-direction: row; }
.wk-bar-side.is-left::after { order: 99; }
.wk-bar-side:not(.is-left) { flex-direction: row-reverse; }
.wk-bar-side i { width: 15px; height: var(--h); background: var(--c); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: none; }
.wk-bar-side i b { display: none; }
.wk-pl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.wk-pl-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface-2); font: 700 15px/1 var(--font); }
.wk-pl-chip i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.wk-bar-opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wk-bar-opts .chip { height: 34px; padding: 0 12px; }
.wk-warm-row { min-height: 56px; }
.wk-warm-row .wk-set-n { width: 34px; height: 34px; color: var(--set-warmup); flex: none; }
.wk-sw { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0; }
.wk-sw-time { font: 750 54px/1 var(--font-display); letter-spacing: -.01em; }

/* ------------------------------------------------------------------ cierre */
.wk-fin-body { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px calc(var(--safe-b) + 40px); display: flex; flex-direction: column; gap: 18px; }
.wk-fin-title { font: 700 19px/1.2 var(--font-display); min-height: 54px; }
.wk-fin-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.wk-fin-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; min-width: 0; }
.wk-fin-stats span { display: block; font: 600 11.5px/1.2 var(--font); color: var(--text-3); }
.wk-fin-stats b { display: flex; align-items: center; gap: 4px; margin-top: 4px; font: 700 18px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-fin-stats .is-pr { border-color: color-mix(in srgb, var(--pr) 45%, transparent); background: color-mix(in srgb, var(--pr) 10%, var(--surface)); }
.wk-fin-stats .is-pr b { color: var(--pr); }
.wk-fin-muscles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.wk-fin-muscles .badge { gap: 6px; }
.wk-photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.wk-photo img { width: 100%; max-height: 320px; object-fit: cover; }
.wk-photo-act { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.wk-photo-act .btn { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); }
.wk-photo-add { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); cursor: pointer; color: var(--text-2); }
.wk-photo-add:hover { border-color: var(--accent); color: var(--text); }
.wk-photo-add b { display: block; color: var(--text); }
.wk-photo-add .ic { width: 28px; height: 28px; color: var(--accent); }
.wk-fin-when { align-items: end; }
.wk-fin-when .input[type="datetime-local"] { padding: 0 10px; font-size: 15px; }
.wk-dur { display: flex; gap: 8px; }
.wk-dur label { flex: 1; position: relative; }
.wk-dur .input { padding-right: 38px; text-align: right; }
.wk-dur span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; }
.wk-fin-routine { cursor: pointer; }
@media (max-width: 420px) { .wk-fin-when { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ guardado */
.wk-done { display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--safe-t) + 40px) 16px calc(var(--safe-b) + 32px); }
.wk-done-in { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.wk-done-in h1 { font-size: 26px; }
.wk-done-mark { width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); animation: wk-done-in .5s var(--ease); }
.wk-done-mark.is-pr { background: color-mix(in srgb, var(--pr) 16%, transparent); color: var(--pr); }
@keyframes wk-done-in { from { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
.wk-done-q { text-align: left; width: 100%; }
.wk-done-stats { width: 100%; text-align: left; }
.wk-done-prs { width: 100%; text-align: left; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--pr) 40%, transparent); background: color-mix(in srgb, var(--pr) 7%, var(--surface)); padding: 14px 16px; }
.wk-done-prs-h { display: flex; align-items: center; gap: 8px; color: var(--pr); font: 700 14px/1.2 var(--font); margin-bottom: 10px; }
.wk-done-pr + .wk-done-pr { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.wk-done-pr b { display: block; font-weight: 650; }
.wk-done-pr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wk-done-pr-chips .badge { height: 26px; font-size: 12.5px; }
.wk-done-act { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.wk-done-act .btn { flex: 1; }
.wk-draft { margin-bottom: 12px; align-items: center; }
.wk-none .empty { padding-top: 72px; }

/* ------------------------------------------------------------------ barra acoplada (fuera de /workout) */
.wk-dock { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); animation: wk-up .28s var(--ease); }
:root[data-theme="light"] .wk-dock { background: #272954; }
.wk-dock-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; text-align: left; color: inherit; border-radius: 12px; }
.wk-dock-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.wk-dock-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk-dock-txt b { font: 700 14.5px/1.25 var(--font); }
.wk-dock-txt > span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.wk-dock-rest { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: var(--r-full); background: rgba(255, 255, 255, .12); font: 700 13px/1 var(--font); flex: none; }
.wk-dock-rest[hidden] { display: none; }
.wk-dock .icon-btn { color: rgba(255, 255, 255, .8); }
.wk-dock .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.wk-dock.is-queue .wk-dock-ic { background: var(--warn); color: #1c1300; }
.wk-dock .btn-sm { background: rgba(255, 255, 255, .14); color: #fff; }
.wk-queue-item .banner { font-size: 13px; }
@media (max-width: 959px) { .wk.is-typing .wk-restbar { display: none; } }
@media (max-width: 559px) { .wk-fin-stats.has-4 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-fin-routine .opt-title, .wk-fin-routine .opt-sub { display: block; }
.wk-fin-routine .opt-sub { margin-top: 3px; }
.wk-warm-row b, .wk-warm-row .li-sub { display: block; }
.wk-card, .wk-row, .wk-card [data-a] { scroll-margin-top: calc(var(--wk-head-h) + var(--safe-t) + 12px); scroll-margin-bottom: calc(var(--safe-b) + 96px); }
.wk-sug > span:nth-child(2) { flex: none; white-space: nowrap; }
.wk-sug-note { flex: 1; min-width: 0; text-align: right; max-width: none; }
@media (min-width: 960px) { .wk { --wk-cn: 40px; --wk-cf: 84px; --wk-cc: 48px; } }
.wk-none .empty { padding-bottom: 8px; }
@media (min-width: 960px) { .wk-edit .wk-head-bar, .wk-edit .wk-sum, .wk-fin .wk-head-bar, .wk-none .wk-head-bar { max-width: 784px; } }
