.custom-workout-dialog{width:min(800px,calc(100% - 24px));max-width:800px;padding:0;max-height:calc(100dvh - 24px);overflow:hidden;border-radius:20px}.custom-workout-dialog[open]{display:flex;flex-direction:column}.custom-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px;border-top:3px solid var(--orange);border-bottom:1px solid var(--line);flex-shrink:0}.custom-header h2{font-size:25px}.custom-header>.icon-button{position:static;flex-shrink:0;width:44px;height:44px}.custom-body{padding:22px;overflow:auto;overscroll-behavior:contain;min-height:0}.custom-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.custom-editor-heading h3{font-size:17px}.custom-meta{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px}.custom-meta label{margin-top:0}.custom-help{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.custom-blocks{display:grid;gap:13px;margin:18px 0}.custom-block{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff}.custom-block.is-repeat{border-left:3px solid var(--intervals-brand);background:#fcf7f8}.custom-block-heading{display:flex;align-items:center;gap:12px;font-size:12px}.custom-block-heading>div{margin-left:auto;display:flex;gap:3px}.custom-block-heading button,.custom-remove{min-width:32px;min-height:36px;border-radius:6px;color:var(--muted);font-size:17px}.custom-block-heading button:hover,.custom-remove:hover{background:#e9ede2}.custom-block-heading>label{margin:0;display:flex;align-items:center;gap:7px;font-size:10px}.custom-block-heading>label input{width:59px;height:34px}.custom-step{display:grid;grid-template-columns:1fr 1.1fr .8fr 1.8fr 32px;gap:9px;align-items:end;padding-top:9px}.custom-step label{font-size:10px;margin:0;min-width:0}.custom-step input,.custom-step select{font-size:12px;margin-top:5px;padding-left:8px}.custom-step+.custom-step{border-top:1px solid var(--line);margin-top:12px;padding-top:13px}.custom-add{display:flex;gap:10px}.custom-summary{font-size:12px;font-weight:650;color:var(--green);margin:19px 0 13px}.custom-preview,.custom-library{border:1px solid var(--line);border-radius:9px;padding:13px;background:#f7f8f2;font-size:12px}.custom-preview summary,.custom-library summary{font-weight:600}.custom-preview .shared-profile{margin-top:20px}.custom-library-item{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:44px;border-bottom:1px solid var(--line);font-size:12px;padding:8px 0;gap:12px}.custom-library-item:first-child{margin-top:10px}.custom-library-item>span:first-child{overflow-wrap:anywhere}.custom-confirmation,.custom-link-result{padding:17px;margin-top:20px;border:1px solid #bdd0af;border-radius:11px;background:#edf3e7}.custom-confirmation>strong{font-size:14px}.custom-confirmation>div{margin-top:12px}.custom-confirmation p{font-size:12px;line-height:1.7;margin-top:8px}.custom-confirmation>div:last-child{display:flex;gap:9px}.custom-footer{display:flex;gap:10px;justify-content:flex-end;padding:15px 22px;border-top:1px solid var(--line);flex-shrink:0;background:#fcfcf8}.custom-footer .button{font-size:11px;min-height:45px}.custom-link-result .button{margin-top:9px}.custom-workout-dialog .is-error{color:#a03c2e}
@media(max-width:600px){.custom-workout-dialog{position:fixed;inset:8px 0 auto;margin:0 auto;width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:15px}.custom-header{padding:16px}.custom-header h2{font-size:21px}.custom-header .eyebrow{font-size:8px}.custom-body{padding:16px}.custom-meta{grid-template-columns:1fr}.custom-meta input,.custom-step input,.custom-step select,.custom-block-heading input{font-size:16px}.custom-step{grid-template-columns:1fr 1fr;gap:10px;position:relative;padding-right:31px}.custom-remove{position:absolute;right:-4px;top:8px}.custom-step label:last-of-type{grid-column:1/-1}.custom-block{padding:12px}.custom-block-heading{gap:7px}.custom-block-heading>label{gap:4px}.custom-block-heading button{min-width:28px}.custom-footer{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.custom-footer .intervals-button{grid-column:1/-1}.custom-footer .button{font-size:11px;padding:9px}.custom-confirmation>div:last-child{flex-wrap:wrap}}

@media(max-width:600px){.custom-step label:first-of-type{grid-column:1/-1}.custom-block-heading{flex-wrap:wrap}.custom-block-heading>label input{width:52px}}
