/* Gym Titan 9.0 — compact responsive workout + RepDB visual guide */
:root{--gt9-bg:#0b131c;--gt9-panel:#14232e;--gt9-line:#344a56;--gt9-fg:#eaf6f4;--gt9-mint:#8befc5}
html{overflow-x:hidden;-webkit-text-size-adjust:100%}body{overflow-x:hidden;max-width:100vw}
input,select,textarea{font-size:16px!important;min-width:0;max-width:100%;box-sizing:border-box}button{touch-action:manipulation}
#app,#view,main,.card,.gt9-workout,.gt9-ex-card{min-width:0;max-width:100%}
.gt9-workout{padding-bottom:98px;overflow-x:clip}
.gt9-workout-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 12px;min-height:88px}
.gt9-workout-top>div{flex:1;min-width:0}.gt9-workout-top h1{font-size:clamp(22px,6vw,27px);line-height:1.12;letter-spacing:-.6px;margin:6px 0;color:#f1fbf8}.gt9-workout-top small{font-size:12px;color:#abc4c5}
.gt9-workout-top img{width:76px;height:88px;object-fit:cover;object-position:center top;border-radius:14px;opacity:.96;flex:none}
.gt9-session-options,.gt9-week{border:1px solid #36505c;border-radius:13px;padding:12px;margin:0 0 12px;background:#152532;color:#a9ccc7;font-size:12px}.gt9-session-options summary,.gt9-week summary{cursor:pointer;font-weight:800;color:#afead0}
.gt9-select-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:12px}.gt9-select-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}.gt9-select-grid select,.gt9-select-grid input{min-width:0;width:100%;height:47px;border:1px solid #57717c;background:#0d1924;color:#eef9f6;border-radius:9px;padding:5px 7px;font-size:16px}
.gt9-timer{display:flex;align-items:center;gap:6px;border:1px solid #35515b;border-radius:14px;padding:9px;background:#18303b;margin-bottom:12px;justify-content:space-between}.gt9-timer>div{min-width:0;flex:1}.gt9-timer span{font-size:10px;color:#b1cacb;display:block}.gt9-timer b{font-size:17px;color:#94f1c4}.gt9-timer-btn{padding:7px 9px;min-height:38px;border-radius:8px;background:#25414a;color:#e1f6eb;border:1px solid #4b6973;font-size:12px;font-weight:850;flex:none}
.gt9-week .weekselect{margin-top:10px;max-width:100%}
.gt9-ex-card{background:#14222d;border:1px solid #36505c;border-radius:15px;margin:0 0 13px;padding:13px 11px;color:var(--gt9-fg);box-shadow:0 4px 14px #0002}
.gt9-ex-head{display:flex;align-items:center;gap:10px;min-width:0}.gt9-thumb{height:67px;width:71px;flex:none;border:1px solid #314b52;background:#e7f2f2;overflow:hidden;border-radius:10px;padding:0}.gt9-thumb .gt9-image,.gt9-thumb img,.gt9-thumb .gt9-fallback-art{width:100%;height:100%;display:block}
.gt9-ex-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.gt9-ex-title strong{font-size:15px;line-height:1.26;color:#f3fafa;overflow-wrap:anywhere}.gt9-ex-title small{font-size:11px;color:#aac3cb}.gt9-tag{background:#21483e;border-radius:999px;color:#b5e9d0;font-size:10px;font-weight:800;padding:3px 8px;align-self:flex-start}
.gt9-more{flex:none;min-width:32px;min-height:36px;border:1px solid #47606c;border-radius:9px;background:#1f3540;color:#c0e2dc;font-weight:850;font-size:15px}
.gt9-card-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 8px}.gt9-card-nav>div{display:flex;gap:5px}.gt9-card-nav button{border:1px solid #3a555c;border-radius:8px;background:#233947;color:#e2f7ef;min-height:30px;min-width:36px;font-size:12px}.gt9-card-nav button:disabled{opacity:.35}.gt9-card-nav .gt9-remove{background:#3a2831;border-color:#774d57;color:#ffb4be;font-size:11px;padding:4px 9px}
.gt9-set-table{display:grid;gap:4px}.gt9-set-labels,.gt9-set-row{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 39px;gap:6px;align-items:center;min-width:0}.gt9-set-labels span{font-size:10px;color:#9fb8c1;font-weight:800;text-align:center}.gt9-set-row>b{font-size:14px;color:#a9f3cf;text-align:center}.gt9-set-row input{font-size:16px!important;width:100%;min-width:0;min-height:43px;height:43px;padding:6px 5px;border-radius:9px;text-align:center;background:#0e1d28;border:1px solid #415863;color:#f4fbfc;font-weight:800}.gt9-set-row input::placeholder{color:#8ba5ad;opacity:.7;font-weight:500}.gt9-set-row input:focus{outline:2px solid #73e6b4;outline-offset:1px}.gt9-set-row .gg5-complete{width:38px;height:41px;min-width:38px;margin:0;background:#20313b;border:1px solid #42616a;color:#98d9cc;font-size:20px;border-radius:9px}.gt9-set-row.completed .gg5-complete{background:#65e2ab;color:#083728}.gt9-sides{display:flex;min-width:0;gap:3px}.gt9-sides input{min-width:0;padding:4px 2px}
.gt9-series-control{margin:11px auto 7px;display:flex;gap:0;justify-content:center;align-items:center;width:max-content;max-width:100%;border:1px solid #40646a;background:#102b2d;border-radius:11px;overflow:hidden}.gt9-series-control button{background:#24483f;border:0;color:#8df4c1;font-size:22px;font-weight:900;width:41px;height:39px}.gt9-series-control button:disabled{opacity:.3}.gt9-series-control span{padding:0 13px;color:#d3f1e7;font-size:12px;font-weight:750}.gt9-series-control b{font-size:13px}
.gt9-ex-details{border-top:1px solid #304750;padding:10px 0 0;margin-top:10px}.gt9-ex-details summary{color:#8feabf;font-size:12px;font-weight:800;cursor:pointer}.gt9-ex-details p,.gt9-ex-details li{font-size:12px;line-height:1.5;color:#c5d9d7}.gt9-ex-details ul{padding-left:20px}.gt9-ex-note{font-size:16px!important;width:100%;min-height:39px;background:#0f1c28;border:1px solid #38515b;border-radius:9px;color:#effbf8;padding:8px 10px;margin-top:10px}
.gt9-add-exercise{margin:8px 0 15px;padding:15px;width:100%;border:1px dashed #517b78;border-radius:13px;background:#18343b;color:#94efc7;font-size:14px;font-weight:850}
.gt9-savebar{position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;display:flex;justify-content:center;padding:6px max(16px,env(safe-area-inset-left)) 6px max(16px,env(safe-area-inset-right));background:linear-gradient(0deg,rgba(10,19,29,.98),rgba(10,19,29,.84));z-index:22;pointer-events:none}.gt9-save{width:min(100%,460px);height:43px;background:#7deab7;border:0;border-radius:11px;color:#08362d;font-size:14px;font-weight:900;pointer-events:auto;box-shadow:0 4px 14px #0006}.gt9-save-spacer{height:75px}
.gt9-image{position:relative;display:grid;place-items:center;width:100%;min-height:110px;aspect-ratio:1;background:#eaf1f0;border-radius:10px;overflow:hidden}.gt9-image img{width:100%;height:100%;object-fit:contain;grid-area:1/1}.gt9-image .gt9-end{position:absolute;inset:0;opacity:0;animation:gt9two 2.6s ease-in-out infinite alternate}.gt9-image .gt9-image-caption{position:absolute;bottom:0;right:0;left:0;font-size:10px;font-weight:800;color:#203640;background:#e4f0eccf;padding:2px;text-align:center}.gt9-image-small{min-height:0;aspect-ratio:1}.gt9-image-small .gt9-image-caption{display:none}.gt9-image.image-error:before{content:'Imagen no disponible';color:#334;font-size:10px;position:absolute;inset:0;display:grid;place-items:center}.gt9-fallback-art,.gt9-fallback-art img{width:100%;height:100%;object-fit:contain}.gt9-fallback{width:100%;height:100%;object-fit:contain}
@keyframes gt9two{0%,27%{opacity:0}65%,100%{opacity:1}}
.gt9-guide{max-width:min(94vw,620px)!important;width:94%!important;max-height:min(88dvh,880px)!important;overflow-y:auto!important;padding:18px!important;background:#12222d!important;color:#f3faf9!important}.gt9-guide h2{font-size:21px;margin:2px 38px 8px 0;color:#f3faf9}.gt9-muscle{display:inline-block;color:#8fefc4;background:#1a4139;padding:5px 11px;border-radius:99px;font-size:12px;font-weight:850}.gt9-guide-poses{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.gt9-guide-poses figure{margin:0;background:#e7eeed;border-radius:12px;overflow:hidden;padding:6px}.gt9-guide-poses img{width:100%;aspect-ratio:1;object-fit:contain}.gt9-guide-poses figcaption{text-align:center;color:#21413e;font-weight:800;font-size:11px;padding-bottom:4px}.gt9-guide-poses:not(:has(figure:nth-child(2))){grid-template-columns:1fr;max-width:300px;margin:13px auto}.gt9-fallback-guide{display:block}.gt9-move-preview{border-radius:12px;background:#e7eeed;overflow:hidden;margin:10px auto;max-width:250px}.gt9-move-preview .gt9-image{min-height:200px}.gt9-motion-toggle{display:block;width:100%;min-height:40px;border:0;background:#27493f;color:#dcf7ec;font-size:13px;font-weight:850}.gt9-move-preview.paused .gt9-end{animation-play-state:paused}.gt9-guide h3{margin:16px 0 9px}.gt9-guide li{color:#deebe8;font-size:13px;line-height:1.55;margin-bottom:7px}.gt9-guide details{border:1px solid #395664;border-radius:10px;padding:10px}.gt9-warning{border:1px solid #736e51;color:#e3d4b0;background:#383324;padding:10px;border-radius:10px;font-size:12px;line-height:1.5}.gt9-credit{font-size:11px;color:#a0b5bc;line-height:1.45}.gt9-credit a{color:#85e7bd}
.gt9-switch{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.gt9-switch button{border:1px solid #395963;border-radius:9px;background:#192c35;color:#c8e4dd;font-weight:850;font-size:12px;padding:9px 11px}.gt9-switch button.selected{background:#75e7b1;color:#0f3029}.gt9-source{font-size:12px;color:#b9d9d0;margin:7px 0}.gt9-library-row{display:grid;grid-template-columns:91px minmax(0,1fr);gap:12px;align-items:start;padding:11px 0;border-bottom:1px solid #34505b}.gt9-lib-visual{height:88px;width:91px;border-radius:11px;border:1px solid #3c5558;padding:3px;background:#e8f2f0;overflow:hidden}.gt9-lib-visual img{width:100%;height:100%;object-fit:contain}.gt9-library-row>div{min-width:0}.gt9-library-row strong{font-size:14px;color:#f0faf5;overflow-wrap:anywhere}.gt9-library-row small{display:block;color:#a9c6cb;margin:3px 0 8px;font-size:11px}.gt9-lib-actions{display:flex;gap:6px;flex-wrap:wrap}.gt9-lib-actions .button{min-height:34px!important;padding:5px 12px!important;font-size:12px!important}.gt9-about a{color:#8cefc7}
/* Modal legibility, overflow and date inputs — iPhone Safari */
.gt7-modal,.modal{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 90px);overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.gt7-modal .picker-list,.picker-list{background:#101f2a!important;color:#e7f8f3!important}.gt7-modal .picker-item{background:#172a35!important;color:#e9f8f3!important}.gt7-modal .picker-item b{color:#f1fbfa!important}.gt7-modal .picker-item small{color:#a9c7c9!important}.gt7-modal .picker-item.selected{background:#20483e!important}.field input,.field select,textarea{min-width:0}.controlrow,.settingsgrid,.gt7-controlrow,.gg5-weightform{min-width:0;max-width:100%;overflow-x:clip}.gt7-controlrow>*{min-width:0}.gt7-controlrow input,.gt7-controlrow select,.gg5-weightform input{max-width:100%;width:100%;padding:7px 8px;box-sizing:border-box;min-width:0}
@media(max-width:380px){.gt9-workout-top h1{font-size:21px}.gt9-set-labels,.gt9-set-row{grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) 35px;gap:4px}.gt9-set-row .gg5-complete{width:35px;min-width:35px}.gt9-ex-card{padding:11px 8px}.gt9-select-grid{grid-template-columns:1fr}.gt9-savebar{bottom:calc(61px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.gt9-end{animation:none!important;opacity:0!important}.gt9-motion-toggle{display:none!important}}
