#gymDataNav.ux-nav{position:sticky;top:0;z-index:40;margin:0 auto 1.25rem;max-width:72rem;padding:.65rem 1rem;background:rgba(241,245,249,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(148,163,184,.22)}
.ux-nav>nav{padding:0!important}.ux-nav>nav>div{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;padding:.2rem}.ux-nav>nav>div::-webkit-scrollbar{display:none}
.ux-nav-link{display:inline-flex!important;align-items:center;justify-content:center;gap:.45rem;min-height:42px;padding:.65rem .9rem!important;border:1px solid transparent;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease;touch-action:manipulation}.ux-nav-link:hover{transform:translateY(-1px)}.ux-nav-link:active{transform:scale(.97)}.nav-icon{font-size:1rem;line-height:1;opacity:.72}
#templateEditorDialog{width:min(680px,calc(100vw - 2rem));max-width:680px;border:0;border-radius:1.25rem;padding:0;box-shadow:0 24px 70px rgba(15,23,42,.25)}#templateEditorDialog::backdrop{background:rgba(15,23,42,.42);backdrop-filter:blur(3px)}.template-editor{padding:0;display:flex;flex-direction:column;max-height:min(88vh,760px)}.template-editor-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.25rem;border-bottom:1px solid #e2e8f0}.eyebrow{display:block;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-bottom:.2rem}.template-editor-head h2{font-size:1.2rem;font-weight:700;color:#0f172a}.icon-button{border:0!important;background:transparent!important;color:#64748b!important;font-size:1.5rem!important;padding:.35rem .55rem!important}.icon-button:hover{background:#f1f5f9!important}
#templateEditorBody{padding:1.25rem;overflow:auto}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.editor-grid label,.editor-wide{display:flex;flex-direction:column;gap:.4rem;color:#334155;font-size:.85rem;font-weight:600}.editor-grid input,.editor-wide input,.editor-wide textarea{font:inherit;font-weight:400;border:1px solid #cbd5e1;border-radius:.65rem;padding:.7rem .8rem;outline:0;background:#fff;color:#0f172a}.editor-grid input:focus,.editor-wide input:focus,.editor-wide textarea:focus{border-color:#64748b;box-shadow:0 0 0 3px rgba(100,116,139,.12)}.editor-wide{margin-bottom:1rem}.editor-section{border-top:1px solid #e2e8f0;padding-top:1rem}.editor-section-head{display:flex;justify-content:space-between;margin-bottom:.65rem}.editor-section-head strong{display:block;color:#0f172a}.editor-section-head small{display:block;color:#64748b;font-weight:400;margin-top:.15rem}.editor-exercises{display:flex;flex-direction:column;gap:.5rem}.editor-exercise{display:grid;grid-template-columns:30px 1fr 36px;align-items:center;gap:.5rem}.exercise-order{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.75rem;font-weight:700}.edit-exercise-name{width:100%;border:1px solid #cbd5e1;border-radius:.6rem;padding:.65rem .7rem}.remove-edit-exercise{border:0!important;background:#f8fafc!important;color:#94a3b8!important;padding:.45rem!important}.remove-edit-exercise:hover{color:#dc2626!important;background:#fef2f2!important}.secondary-action{border:1px solid #cbd5e1!important;background:#fff!important;color:#334155!important;padding:.5rem .75rem!important;border-radius:.6rem!important}.secondary-action:hover{background:#f8fafc!important}.editor-section>.secondary-action{margin-top:.7rem}.template-editor-actions{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.25rem;border-top:1px solid #e2e8f0;background:#f8fafc}.template-editor-actions button{border:1px solid #cbd5e1;border-radius:.65rem;padding:.65rem .9rem;background:#fff;color:#334155}.template-editor-actions .primary{border-color:#0f172a;background:#0f172a;color:#fff}.editor-status{min-height:1.2rem;margin:0;padding:0 1.25rem;color:#dc2626;font-size:.85rem}
@media(max-width:640px){#gymDataNav.ux-nav{top:0;margin-left:-.5rem;margin-right:-.5rem;padding:.5rem .65rem;border-radius:0 0 .9rem .9rem}.ux-nav-link{min-width:76px;flex-direction:column;gap:.2rem;font-size:.7rem!important;padding:.5rem .6rem!important;min-height:52px}.nav-icon{font-size:1.05rem}.editor-grid{grid-template-columns:1fr}.template-editor-head{padding:1rem}.template-editor-actions{padding:.85rem 1rem;position:sticky;bottom:0}.template-editor-actions button{flex:1}.editor-exercise{grid-template-columns:26px 1fr 34px}}
@media(prefers-reduced-motion:reduce){.ux-nav-link{transition:none}.ux-nav-link:hover,.ux-nav-link:active{transform:none}}
