/* My Football — Editor de Exercícios workspace layout */
:root{
  --workspace-rail-w:64px;
  --workspace-left-w:232px;
  --workspace-right-w:276px;
  --workspace-topbar-h:72px;
  --workspace-line:#253945;
  --workspace-text:#f3f7f9;
  --workspace-accent:#22c55e;
  --workspace-accent-dark:#16a34a;
  --workspace-accent-rgb:34,197,94;
  --workspace-accent-surface:#173d2b;
  --workspace-accent-text:#dcffe8;
}

html,body{width:100%;height:100%;}
body.workspace-redesign{
  --topbar-h:var(--workspace-topbar-h);
  --sidebar-w:var(--workspace-left-w);
  overflow:hidden;
  background:#07110d;
}
body.workspace-redesign.workspace-left-collapsed{--workspace-left-w:0px;}
body.workspace-redesign.workspace-right-collapsed{--workspace-right-w:0px;}

/* Header */
body.workspace-redesign #topbar{
  left:var(--workspace-rail-w);
  height:var(--workspace-topbar-h);
  min-height:var(--workspace-topbar-h);
  padding:0 14px;
  overflow:visible!important;
  white-space:normal;
  background:linear-gradient(180deg,#111d27 0%,#0a141c 100%);
  border-bottom:1px solid var(--workspace-line);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  z-index:60;
}
body.workspace-redesign #topbar>.bar-section.workspace-source-controls{display:none!important;}
.workspace-header{
  width:100%;height:100%;min-width:0;
  display:grid;
  grid-template-columns:minmax(172px,.62fr) auto minmax(430px,1.38fr);
  align-items:center;
  gap:14px;
}
.workspace-header-brand{display:flex;align-items:center;gap:10px;min-width:0;}
.workspace-header-title-wrap{min-width:0;}
.workspace-header-title{font-size:15px;line-height:1.15;font-weight:900;color:var(--workspace-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.workspace-header-status{margin-top:4px;display:flex;align-items:center;gap:6px;font-size:10px;color:var(--workspace-accent);white-space:nowrap;}
.workspace-header-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--workspace-accent);box-shadow:0 0 0 4px rgba(var(--workspace-accent-rgb),.12);}
.workspace-header-nav{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #21343f;border-radius:12px;background:#08121a;}
.workspace-nav-btn{height:36px!important;padding:0 11px!important;border-radius:9px!important;border:1px solid transparent!important;background:transparent!important;color:#91a4b1!important;font-size:12px!important;font-weight:850!important;white-space:nowrap;}
.workspace-nav-btn:hover,.workspace-nav-btn.active{background:var(--workspace-accent-surface)!important;border-color:rgba(var(--workspace-accent-rgb),.28)!important;color:var(--workspace-accent-text)!important;transform:none!important;}
.workspace-save-exercise-btn{color:var(--workspace-accent-text)!important;overflow:visible!important;}
.workspace-save-exercise-btn:hover{background:var(--workspace-accent-surface)!important;border-color:rgba(var(--workspace-accent-rgb),.28)!important;color:var(--workspace-accent-text)!important;}
.workspace-save-exercise-btn.locked-feature::after{
  top:-6px;
  right:-6px;
  transform:none;
  z-index:2;
  padding:2px;
  border:1px solid #2a3a5a;
  border-radius:999px;
  background:#0b1220;
}
.workspace-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;overflow:visible;}
.workspace-header-actions #upgradeBtn{
  flex:0 0 auto;
  width:auto;
  min-width:max-content;
  padding-left:16px!important;
  padding-right:16px!important;
  justify-content:center;
  white-space:nowrap;
  overflow:hidden;
}
.workspace-header-actions>.icon-btn,
.workspace-header-actions>button,
.workspace-header-actions .view-trigger,
.workspace-header-actions .project-trigger,
.workspace-header-actions .export-trigger{
  height:36px;min-width:36px;border-radius:10px;padding:0 11px;white-space:nowrap;
}
.workspace-header-actions>.icon-btn{width:36px;padding:0;}
.workspace-header-actions .view-menu,
.workspace-header-actions .project-menu,
.workspace-header-actions .export-menu{position:relative;flex:0 0 auto;}
.workspace-header-actions .view-dropdown,
.workspace-header-actions .project-dropdown,
.workspace-header-actions .export-dropdown{
  top:calc(100% + 8px)!important;
  left:auto!important;
  right:0!important;
  min-width:190px;
  padding:8px;
  border-radius:12px;
  border:1px solid #29404c;
  background:#0b1720;
  box-shadow:0 18px 38px rgba(0,0,0,.4);
  z-index:10050;
}
.workspace-header-actions .view-dropdown button,
.workspace-header-actions .project-dropdown button,
.workspace-header-actions .export-dropdown button{width:100%;height:36px;border-radius:9px;}
.workspace-header-actions .view-dropdown button{display:flex;align-items:center;justify-content:center;text-align:center;}
.workspace-header-actions .project-dropdown button,
.workspace-header-actions .export-dropdown button{display:flex;align-items:center;justify-content:center;text-align:center;}
.workspace-header-actions .lang-switch{margin-left:2px;}
.workspace-dashboard-btn{font-size:13px!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;flex:0 0 auto;}
.workspace-dashboard-btn::before{content:none!important;}.workspace-dashboard-btn i{font-size:13px;}
.workspace-dashboard-btn[hidden]{display:none!important;}


/* Rail */
.workspace-rail{
  position:fixed;inset:0 auto 0 0;width:var(--workspace-rail-w);z-index:65;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:12px 8px;background:#09131b;border-right:1px solid var(--workspace-line);
}
.workspace-rail-logo{width:40px;height:40px;object-fit:contain;border-radius:11px;background:#fff;padding:4px;margin-bottom:12px;}
.workspace-rail-btn{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;border-radius:12px!important;background:#101f29!important;border:1px solid #273c48!important;color:#91a5b2!important;font-size:15px!important;}
.workspace-rail-btn:hover,.workspace-rail-btn.active{background:var(--workspace-accent-surface)!important;color:var(--workspace-accent-text)!important;border-color:var(--workspace-accent)!important;box-shadow:0 0 0 3px rgba(var(--workspace-accent-rgb),.08)!important;transform:none!important;}
.workspace-rail-spacer{flex:1;}

/* Sidebars */
body.workspace-redesign #leftbar,
body.workspace-redesign #rightbar{
  top:var(--workspace-topbar-h);
  bottom:0;
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:rgba(11,23,32,.97);
  border-color:var(--workspace-line);
  backdrop-filter:blur(14px);
  z-index:45;
}
body.workspace-redesign #leftbar{left:var(--workspace-rail-w);width:var(--workspace-left-w);box-shadow:12px 0 26px rgba(0,0,0,.2);}
body.workspace-redesign #rightbar{right:0;width:var(--workspace-right-w);box-shadow:-12px 0 26px rgba(0,0,0,.2);}
body.workspace-redesign.workspace-left-collapsed #leftbar,
body.workspace-redesign.workspace-right-collapsed #rightbar{display:none!important;}
.workspace-sidebar-head{height:52px;min-height:52px;padding:8px 10px 8px 12px;border-bottom:1px solid #21343f;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.workspace-sidebar-kicker{font-size:9px;font-weight:900;color:var(--workspace-accent);letter-spacing:.12em;text-transform:uppercase;}
.workspace-sidebar-title{margin-top:3px;font-size:14px;font-weight:900;color:#f4f8fa;}
.workspace-sidebar-collapse{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;border-radius:9px!important;}
.workspace-sidebar-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:9px;}
body.workspace-redesign #leftbar .workspace-sidebar-scroll{overflow:hidden;padding:0;}
.workspace-tool-panels{height:100%;min-height:0;}
.workspace-tool-panel{display:none;height:100%;min-height:0;overflow:auto;padding:9px;}
.workspace-tool-panel.active{display:block;}
.workspace-tool-panel,.workspace-sidebar-scroll{scrollbar-width:thin;scrollbar-color:var(--workspace-accent) rgba(var(--workspace-accent-rgb),.08);}
.workspace-tool-panel::-webkit-scrollbar,.workspace-sidebar-scroll::-webkit-scrollbar{width:8px;height:8px;}
.workspace-tool-panel::-webkit-scrollbar-track,.workspace-sidebar-scroll::-webkit-scrollbar-track{background:rgba(var(--workspace-accent-rgb),.08);border-radius:999px;}
.workspace-tool-panel::-webkit-scrollbar-thumb,.workspace-sidebar-scroll::-webkit-scrollbar-thumb{background:var(--workspace-accent);border:2px solid transparent;border-radius:999px;background-clip:padding-box;}
.workspace-tool-panel::-webkit-scrollbar-thumb:hover,.workspace-sidebar-scroll::-webkit-scrollbar-thumb:hover{background:var(--workspace-accent-dark);background-clip:padding-box;}
.workspace-sidebar-scroll>.workspace-inspector{margin-bottom:14px;}
body.workspace-redesign #leftbar .panel-group{margin:0 0 8px;padding:9px;border:1px solid #223640;border-radius:14px;background:linear-gradient(180deg,#101f29,#0c1820);}
body.workspace-redesign #leftbar .panel-group .panel-group{margin:8px 0 0;background:#0d1a23;border-color:#20333d;}
body.workspace-redesign .panel-title{margin-bottom:7px;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--workspace-accent);}
body.workspace-redesign .library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
body.workspace-redesign #leftbar .workspace-tool-panel[data-workspace-category="field"] > .panel-group:first-of-type .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.workspace-redesign #leftbar .workspace-tool-panel[data-workspace-category="field"] > .panel-group:first-of-type .drag-item.field-btn{aspect-ratio:1 / 1;min-height:54px;}
body.workspace-redesign #leftbar .workspace-tool-panel[data-workspace-category="field"] > .panel-group:first-of-type .drag-item.field-btn::before{width:calc(100% - 16px);height:calc(100% - 16px);margin:0;border-radius:12px;}
body.workspace-redesign .drag-item{min-height:54px;padding:5px;border-radius:12px;background:#13232d;border-color:#2a404b;overflow:hidden;}
body.workspace-redesign .drag-item:hover{transform:none;background:#173029;border-color:var(--workspace-accent);}
body.workspace-redesign .drag-item img{max-width:42px;max-height:40px;}
body.workspace-redesign .drag-item[data-type="coneHurdle"] img{max-width:52px;max-height:34px;}
body.workspace-redesign .drag-item[data-type="resistanceSled"] img,
body.workspace-redesign .drag-item[data-type="speedParachute"] img{max-width:64px;max-height:40px;}
body.workspace-redesign .drag-item>span,body.workspace-redesign .drag-item>.style-name{display:none!important;}
body.workspace-redesign #leftbar .workspace-compact-tool-button{
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  margin:0!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;
  text-align:center!important;font-size:14px!important;border-radius:10px!important;
}
body.workspace-redesign #leftbar .workspace-text-controls{display:flex;flex-direction:column;gap:8px;}
body.workspace-redesign #leftbar .workspace-text-label{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--workspace-accent);}
body.workspace-redesign #leftbar #textInsertValue{width:100%;margin:0!important;padding:0 11px!important;border:1px solid #29414d!important;background:#0a1520!important;color:#f3f7f5!important;font-size:12px!important;font-weight:700!important;}
body.workspace-redesign #leftbar #textInsertValue:focus{outline:none!important;border-color:var(--workspace-accent)!important;box-shadow:0 0 0 3px rgba(var(--workspace-accent-rgb),.1)!important;}
body.workspace-redesign #leftbar .workspace-text-add-button{width:100%!important;min-height:40px!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center;justify-content:center;gap:8px;text-align:center!important;border-radius:10px!important;font-size:12px!important;font-weight:900!important;}
body.workspace-redesign #leftbar .workspace-text-add-button i{font-size:13px;}
body.workspace-redesign #leftbar .workspace-field-control-group{padding:9px!important;}
body.workspace-redesign #leftbar .workspace-field-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
body.workspace-redesign #leftbar .workspace-field-toggle-grid .workspace-field-option-wide{grid-column:1 / -1;}
body.workspace-redesign #leftbar .workspace-field-option{
  width:100%!important;height:68px!important;min-width:0!important;min-height:68px!important;
  margin:0!important;padding:7px 5px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border-radius:12px!important;background:#13232d!important;border:1px solid #2a404b!important;color:#d8e5e9!important;
  font-size:10px!important;font-weight:900!important;line-height:1.05!important;text-align:center!important;
}
body.workspace-redesign #leftbar .workspace-field-choice-icon{width:42px;height:30px;display:flex;align-items:center;justify-content:center;pointer-events:none;}
body.workspace-redesign #leftbar .workspace-field-choice-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible;}
body.workspace-redesign #leftbar .workspace-field-choice-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;}
body.workspace-redesign #leftbar .workspace-field-option:hover,
body.workspace-redesign #leftbar .workspace-field-option.active{transform:none!important;background:#173029!important;border-color:var(--workspace-accent)!important;color:var(--workspace-accent-text)!important;}
body.workspace-redesign #leftbar .workspace-field-option.active{box-shadow:0 0 0 2px rgba(var(--workspace-accent-rgb),.13),inset 0 0 0 1px rgba(var(--workspace-accent-rgb),.16)!important;}
body.workspace-redesign #leftbar .workspace-field-option.locked-feature{opacity:.58;}
.workspace-half-field-tip{position:fixed;z-index:240;box-sizing:border-box;padding:11px 13px;border:1px solid rgba(var(--workspace-accent-rgb),.48);border-radius:12px;background:#0d1b27;color:#f8fafc;box-shadow:0 14px 32px rgba(0,0,0,.3);pointer-events:none;font-size:12px;line-height:1.35;}
.workspace-half-field-tip strong{display:block;margin-bottom:3px;color:var(--workspace-accent);font-size:11px;letter-spacing:.08em;text-transform:uppercase;}
.workspace-half-field-tip span{display:block;}
html[data-mfe-theme="light"] .workspace-half-field-tip{background:#ffffff;color:#172033;border-color:rgba(var(--workspace-accent-rgb),.38);box-shadow:0 14px 30px rgba(15,23,42,.16);}
html[data-mfe-theme="gray"] .workspace-half-field-tip{background:#1b1d21;color:#f8fafc;}
body.workspace-redesign #leftbar .player-preview{transform:scale(.84);transform-origin:center;}
.workspace-inspector-heading-card{padding-top:11px;padding-bottom:11px;}
body.workspace-redesign #leftbar button,
body.workspace-redesign #rightbar button,
body.workspace-redesign #leftbar input,
body.workspace-redesign #rightbar input,
body.workspace-redesign #leftbar select,
body.workspace-redesign #rightbar select{min-height:36px;border-radius:10px;}
body.workspace-redesign input.workspace-native-color-input{
  position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;padding:0!important;border:0!important;
}
.workspace-color-control{position:relative;display:block;margin:0 0 7px;}
.workspace-color-label{margin-bottom:5px;}
.workspace-color-current{width:100%!important;height:34px!important;min-height:34px!important;display:grid!important;grid-template-columns:22px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:0 10px!important;border:1px solid #29414d!important;border-radius:10px!important;background:#0a1520!important;color:#dce7ec!important;text-align:left!important;font-size:11px!important;font-weight:800!important;}
.workspace-color-current:hover{border-color:var(--workspace-accent)!important;background:#10241c!important;transform:none!important;}
.workspace-color-current-swatch{width:20px;height:20px;border-radius:7px;border:2px solid rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(0,0,0,.45);}
.workspace-color-current i{justify-self:end;color:var(--workspace-accent);font-size:11px;}
.workspace-color-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:6px;}
.workspace-color-swatch{width:100%!important;height:24px!important;min-width:0!important;min-height:24px!important;padding:0!important;border:2px solid rgba(255,255,255,.38)!important;border-radius:9px!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);}
.workspace-color-swatch:hover,.workspace-color-swatch.is-active{transform:none!important;border-color:#ffffff!important;box-shadow:0 0 0 2px var(--workspace-accent),inset 0 0 0 1px rgba(0,0,0,.18)!important;}
body.workspace-redesign #formationSelect{width:100%;}
.workspace-player-quick-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:7px;}
body.workspace-redesign .workspace-player-quick-controls>button{width:100%!important;height:36px!important;min-width:0!important;padding:0 6px!important;white-space:nowrap;font-size:10.5px!important;}
.workspace-player-name-size{height:36px;min-width:0;display:flex;align-items:center;padding:0 6px;border:1px solid #29414d;border-radius:10px;background:#0a1520;color:#dce7ec;font-size:10px;font-weight:900;}
body.workspace-redesign .workspace-player-name-size input{width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0 2px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:inherit!important;text-align:center;font-size:11px!important;font-weight:900!important;box-shadow:none!important;}
body.workspace-redesign .workspace-player-name-size input:focus{outline:1px solid var(--workspace-accent);outline-offset:1px;}
.workspace-player-formation{margin-bottom:8px;}
body.workspace-redesign .color-palette{gap:7px;}
body.workspace-redesign .color-swatch{min-height:30px!important;}

.workspace-sidebar-reopen{position:fixed;top:calc(var(--workspace-topbar-h) + 12px);z-index:58;width:42px!important;height:136px!important;min-width:42px!important;padding:10px 0!important;background:#13232d!important;border:1px solid #2b424e!important;color:var(--workspace-accent)!important;display:none;align-items:center;justify-content:center;flex-direction:column;gap:9px;}
.workspace-sidebar-reopen.left{left:var(--workspace-rail-w);border-radius:0 11px 11px 0!important;}
.workspace-sidebar-reopen.right{right:0;border-radius:11px 0 0 11px!important;}
.workspace-sidebar-reopen-label{writing-mode:vertical-rl;transform:rotate(180deg);font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;line-height:1;color:var(--workspace-accent-text);}
.workspace-sidebar-reopen i{font-size:13px;flex:0 0 auto;}
body.workspace-left-collapsed .workspace-sidebar-reopen.left,
body.workspace-right-collapsed .workspace-sidebar-reopen.right{display:flex;}

/* Canvas occupies the complete remaining workspace */
body.workspace-redesign #container{
  position:fixed;
  top:var(--workspace-topbar-h);
  left:calc(var(--workspace-rail-w) + var(--workspace-left-w));
  right:var(--workspace-right-w);
  bottom:0;
  width:auto;height:auto;
  background:radial-gradient(circle at 50% 10%,#11251b 0%,#07110d 67%);
  transition:left .18s ease,right .18s ease;
  z-index:1;
  pointer-events:auto!important;
}
body.workspace-redesign.presentation #topbar,
body.workspace-redesign.presentation #leftbar,
body.workspace-redesign.presentation #rightbar,
body.workspace-redesign.presentation .workspace-rail,
body.workspace-redesign.presentation .workspace-sidebar-reopen{display:none!important;}
body.workspace-redesign.presentation #container{inset:0!important;}

/* Inspector and horizontal controls */
.workspace-inspector-empty{padding:18px 12px;text-align:center;border:1px dashed #2c424d;border-radius:13px;color:#7f94a1;font-size:12px;line-height:1.55;}
.workspace-inspector-card{padding:10px;border:1px solid #243a45;border-radius:13px;background:#101f29;margin-bottom:10px;}
.workspace-inspector-title{font-size:14px;font-weight:900;color:#fff;}
.workspace-inspector-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--workspace-accent);}
.workspace-slider-row{display:grid;grid-template-columns:minmax(0,1fr) 50px;align-items:center;gap:9px;margin-bottom:11px;}
.workspace-slider-row input[type="range"]{display:block!important;width:100%;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;accent-color:var(--workspace-accent);appearance:none;-webkit-appearance:none;cursor:pointer;}
.workspace-slider-row input[type="range"]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:#29414d;border:1px solid #385361;box-shadow:inset 0 1px 2px rgba(0,0,0,.45);}
.workspace-slider-row input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border-radius:50%;border:2px solid var(--workspace-accent-text);background:var(--workspace-accent);box-shadow:0 0 0 3px rgba(var(--workspace-accent-rgb),.14),0 2px 5px rgba(0,0,0,.35);}
.workspace-slider-row input[type="range"]::-moz-range-track{height:6px;border-radius:999px;background:#29414d;border:1px solid #385361;box-shadow:inset 0 1px 2px rgba(0,0,0,.45);}
.workspace-slider-row input[type="range"]::-moz-range-progress{height:6px;border-radius:999px;background:var(--workspace-accent);}
.workspace-slider-row input[type="range"]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:2px solid var(--workspace-accent-text);background:var(--workspace-accent);box-shadow:0 0 0 3px rgba(var(--workspace-accent-rgb),.14),0 2px 5px rgba(0,0,0,.35);}
.workspace-slider-value{height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #2a404b;border-radius:8px;background:#0b1720;color:#dce7ec;font-size:11px;font-weight:800;}
.workspace-inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.workspace-inspector-actions .full{grid-column:1/-1;}
.workspace-inspector-actions .primary{background:var(--workspace-accent-surface)!important;border-color:var(--workspace-accent)!important;color:var(--workspace-accent-text)!important;}

/* Exercise details: compact metadata and larger multiline content areas */
body.workspace-redesign #exerciseModal{padding:12px!important;overflow:hidden!important;align-items:center!important;justify-content:center!important;}
body.workspace-redesign #exerciseModal .mfe-exercise-card{
  width:min(900px,calc(100vw - 24px))!important;
  height:min(760px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  padding:18px 20px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#0f1d27 0%,#09131b 100%)!important;
  border:1px solid #29404c!important;
}
body.workspace-redesign #exerciseModal .mfe-exercise-badge{min-height:24px;padding:0 10px;font-size:10px;}
body.workspace-redesign #exerciseModal .mfe-exercise-title{margin:9px 0 4px;font-size:21px;}
body.workspace-redesign #exerciseModal .mfe-exercise-subtitle{margin:0 0 12px;font-size:12px;line-height:1.35;}
body.workspace-redesign #exerciseModal .mfe-exercise-grid{flex:1 1 auto;min-height:0;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto auto minmax(110px,.85fr) minmax(150px,1.15fr);gap:9px 12px!important;overflow:hidden!important;}
body.workspace-redesign #exerciseModal .mfe-exercise-field{gap:4px;min-height:0;}
body.workspace-redesign #exerciseModal .mfe-exercise-label{font-size:10px;}
body.workspace-redesign #exerciseModal input{height:36px!important;padding:0 11px!important;font-size:12px!important;}
body.workspace-redesign #exerciseModal textarea{height:100%!important;min-height:88px!important;resize:none!important;padding:10px 11px!important;font-size:12px!important;scrollbar-width:thin;scrollbar-color:var(--workspace-accent) var(--workspace-modal-track-bg);}
body.workspace-redesign #exerciseModal textarea::-webkit-scrollbar{width:9px;height:9px;}
body.workspace-redesign #exerciseModal textarea::-webkit-scrollbar-track{background:var(--workspace-modal-track-bg);border-radius:999px;}
body.workspace-redesign #exerciseModal textarea::-webkit-scrollbar-thumb{background:var(--workspace-accent);border:2px solid transparent;border-radius:999px;background-clip:padding-box;}
body.workspace-redesign #exerciseModal textarea::-webkit-scrollbar-thumb:hover{background:var(--workspace-accent-dark);background-clip:padding-box;}
body.workspace-redesign #exerciseModal textarea::-webkit-scrollbar-button{display:none;width:0;height:0;}
body.workspace-redesign #exerciseModal .mfe-exercise-actions{margin-top:12px;justify-content:flex-end;flex:0 0 auto;}
body.workspace-redesign #exerciseModal .mfe-exercise-actions button{height:38px;min-width:120px;font-size:12px;}

/* Training plan layout and click reliability */
body.workspace-redesign #trainingPlanModal{padding:12px!important;overflow:hidden!important;z-index:10020!important;pointer-events:auto!important;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-card{
  width:calc(100vw - 24px)!important;
  height:calc(100dvh - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  grid-template-columns:minmax(320px,400px) minmax(0,1fr)!important;
  border-radius:18px!important;
  border:1px solid #29404c!important;
  background:#0c1821!important;
  pointer-events:auto!important;
}
body.workspace-redesign #trainingPlanModal button,
body.workspace-redesign #trainingPlanModal input,
body.workspace-redesign #trainingPlanModal select,
body.workspace-redesign #trainingPlanModal textarea{pointer-events:auto!important;position:relative;z-index:1;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-primary-actions,
body.workspace-redesign #trainingPlanModal .mfe-training-plan-meta-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-meta-row input{width:100%!important;height:44px!important;min-height:44px!important;line-height:normal!important;box-sizing:border-box!important;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-club-card{border-color:var(--workspace-modal-soft-border)!important;border-radius:16px!important;background:var(--workspace-modal-panel-bg)!important;padding:14px!important;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-sidebar{min-width:0;background:#0e1b24;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-main{min-width:0;background:#09141c;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-workspace{min-width:0;min-height:0;overflow:hidden;}
body.workspace-redesign #trainingPlanModal .mfe-training-plan-exercises-panel{height:100%;min-height:0;overflow:auto;}
body.workspace-redesign #trainingPlanModal #trainingPlanList{min-width:0;}

@media(max-width:900px){
  body.workspace-redesign #trainingPlanModal{
    padding:6px!important;
    align-items:stretch!important;
    justify-content:stretch!important;
  }
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-card{
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    display:flex!important;
    flex-direction:column!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-main{
    order:1;
    flex:0 0 auto;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-workspace,
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-exercises-panel{
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-sidebar{
    order:2;
    flex:0 0 auto;
    min-height:0!important;
    max-height:none!important;
  }
  body.workspace-redesign #trainingPlanModal #trainingPlanList{
    height:auto!important;
    overflow:visible!important;
  }
}
@media(max-width:520px){
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-primary-actions,
  body.workspace-redesign #trainingPlanModal .mfe-training-plan-meta-row{grid-template-columns:1fr;}
}

/* Generic modal layering above the workspace chrome */
body.workspace-redesign .mfe-modal-anim,
body.workspace-redesign .modal,
body.workspace-redesign [id$="Modal"]{isolation:isolate;}
body.workspace-redesign .continuous-placement-overlay{z-index:80!important;}
body.workspace-redesign .zone-opacity-popover,
body.workspace-redesign .selection-delete-popover,
body.workspace-redesign .animation-order-popover{z-index:90!important;}

body.theme-light.workspace-redesign{background:#e8f0ea;}
body.theme-light.workspace-redesign #topbar,
body.theme-light.workspace-redesign .workspace-rail,
body.theme-light.workspace-redesign #leftbar,
body.theme-light.workspace-redesign #rightbar{background:#f8fbf9;color:#0f172a;border-color:#cedbd2;}
body.theme-light.workspace-redesign .workspace-header-title,
body.theme-light.workspace-redesign .workspace-sidebar-title,
body.theme-light.workspace-redesign .workspace-inspector-title{color:#0f172a;}
body.theme-light.workspace-redesign #leftbar .panel-group,
body.theme-light.workspace-redesign .workspace-inspector-card{background:#fff;border-color:#d5e1d8;}

@media(max-width:1380px){
  :root{--workspace-left-w:216px;--workspace-right-w:252px;}
  .workspace-header{grid-template-columns:minmax(165px,.55fr) auto minmax(390px,1.25fr);gap:8px;}
  .workspace-header-brand .workspace-header-status{display:none;}
  .workspace-nav-btn{padding:0 10px!important;font-size:11px!important;}
  .workspace-header-actions{gap:4px;}
}
@media(max-width:1120px){
  .workspace-header-nav{display:none;}
  .workspace-header{grid-template-columns:minmax(170px,1fr) minmax(0,2fr);}
  .workspace-header-actions{overflow-x:auto;scrollbar-width:none;justify-content:flex-start;}
  .workspace-header-actions::-webkit-scrollbar{display:none;}
}
@media(max-width:767px){
  :root{--workspace-rail-w:0px;--workspace-left-w:0px;--workspace-right-w:0px;--workspace-topbar-h:60px;}
  .workspace-rail,.workspace-sidebar-reopen{display:none!important;}
  body.workspace-redesign #topbar{left:0;}
  .workspace-header{grid-template-columns:minmax(140px,.8fr) minmax(0,1.2fr);gap:6px;}
  .workspace-header-title{font-size:13px;}
  body.workspace-redesign #leftbar,body.workspace-redesign #rightbar{display:none!important;}
  body.workspace-redesign #container{left:0;right:0;}
  body.workspace-redesign #exerciseModal{padding:6px!important;}
  body.workspace-redesign #exerciseModal .mfe-exercise-card{width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:12px!important;}
  body.workspace-redesign #exerciseModal .mfe-exercise-grid{grid-template-columns:1fr!important;grid-template-rows:repeat(6,auto) minmax(96px,.9fr) minmax(126px,1.1fr);gap:6px!important;}
  body.workspace-redesign #exerciseModal .mfe-exercise-field.full{grid-column:auto!important;}
  body.workspace-redesign #exerciseModal .mfe-exercise-subtitle{display:none;}
}

/* Complete access to the original controls without crowding the header */
.workspace-nav-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px!important;}
.workspace-nav-btn i{font-size:12px;}
.workspace-more-menu{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;}
.workspace-more-trigger{height:36px!important;min-width:64px!important;padding:0 11px!important;border-radius:10px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;white-space:nowrap;}
.workspace-more-dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;width:max-content;min-width:0;max-width:min(330px,calc(100vw - 24px));max-height:calc(100dvh - var(--workspace-topbar-h) - 24px);overflow:auto;overflow-x:hidden;padding:10px;border:1px solid #29404c;border-radius:14px;background:#0b1720;box-shadow:0 18px 38px rgba(0,0,0,.42);z-index:10050;}
.workspace-more-menu.open .workspace-more-dropdown{display:grid;gap:8px;}
.workspace-more-section{width:100%;max-width:100%;min-width:0;padding:9px;border:1px solid #213640;border-radius:11px;background:#0e1c25;margin:0;}
.workspace-more-heading{margin-bottom:7px;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--workspace-accent);}
.workspace-more-controls{width:100%;max-width:100%;display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.workspace-more-controls button{height:34px!important;min-width:34px!important;border-radius:9px!important;}
.workspace-more-controls select{display:block!important;height:34px!important;min-width:126px!important;max-width:100%;border-radius:9px!important;}
.workspace-more-controls #perfBadge{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;height:30px;border-radius:8px;}
body.workspace-redesign .workspace-inspector-card select{width:100%;height:36px;border-radius:10px;}

@media(max-width:1120px){
  .workspace-more-dropdown{position:fixed;top:calc(var(--workspace-topbar-h) - 2px);right:10px;}
}

/* v11 — stable previews, equipment rail icon and overlay editors */
.workspace-rail-tool-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;pointer-events:none;color:currentColor;}
.workspace-rail-tool-icon svg{display:block;width:24px;height:24px;}
.workspace-tool-panel:not(.workspace-visuals-ready) .action-preview,
.workspace-tool-panel:not(.workspace-visuals-ready) .shape-preview,
.workspace-tool-panel:not(.workspace-visuals-ready) .player-preview{opacity:.98;}
body.workspace-redesign .player-preview.pro{width:44px;height:46px;background-size:contain;background-position:center;background-repeat:no-repeat;}
.editor-overlay-modal{display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;padding:12px;background:var(--workspace-modal-backdrop);backdrop-filter:blur(4px);}
.editor-overlay-card{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:var(--workspace-modal-text);background:var(--workspace-modal-card-bg);border:1px solid var(--workspace-modal-border);border-radius:18px;padding:16px;box-shadow:var(--workspace-modal-shadow);}
.editor-overlay-card.compact{width:min(520px,calc(100vw - 24px));}
.editor-overlay-title{font-size:16px;font-weight:900;margin-bottom:12px;color:var(--workspace-modal-title);}
.editor-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;}
.editor-edit-field{min-width:0;}.editor-edit-grid>.full{grid-column:1/-1;min-width:0;}
.editor-edit-field label,.editor-range-label{display:block;margin:0 0 5px;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:var(--workspace-accent);}
.editor-edit-field input[type="text"],.editor-edit-field select{width:100%;height:36px;border-radius:10px;border:1px solid var(--workspace-modal-border);background:var(--workspace-modal-input-bg);color:var(--workspace-modal-text);padding:0 10px;}
.editor-edit-hint{font-size:11px;color:var(--workspace-modal-muted);line-height:1.35;margin-top:5px;}.editor-range-field{min-width:0;}
.editor-range-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;gap:9px;}
.editor-range-row input[type="range"]{width:100%;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;appearance:none;-webkit-appearance:none;accent-color:var(--workspace-accent);cursor:pointer;}
.editor-range-row input[type="range"]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:#29414d;border:1px solid #385361;box-shadow:inset 0 1px 2px rgba(0,0,0,.45);}
.editor-range-row input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border-radius:50%;border:2px solid var(--workspace-accent-text);background:var(--workspace-accent);box-shadow:0 0 0 3px rgba(var(--workspace-accent-rgb),.14),0 2px 5px rgba(0,0,0,.35);}
.editor-range-row input[type="range"]::-moz-range-track{height:6px;border-radius:999px;background:#29414d;border:1px solid #385361;}.editor-range-row input[type="range"]::-moz-range-progress{height:6px;border-radius:999px;background:var(--workspace-accent);}.editor-range-row input[type="range"]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:2px solid var(--workspace-accent-text);background:var(--workspace-accent);}
.editor-range-output{height:28px;display:flex;align-items:center;justify-content:center;border:1px solid var(--workspace-modal-border);border-radius:8px;background:var(--workspace-modal-input-bg);color:var(--workspace-modal-text);font-size:11px;font-weight:850;}
.editor-color-group{padding:9px;border:1px solid var(--workspace-modal-border);border-radius:12px;background:var(--workspace-modal-panel-bg);}.editor-color-group input[type="color"]{width:100%;height:32px;border-radius:9px;border:1px solid var(--workspace-modal-border);background:var(--workspace-modal-input-bg);}
.editor-color-group .color-palette{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:7px 0 0!important;}.editor-color-group .color-swatch{width:100%!important;height:24px!important;min-height:24px!important;border-radius:8px!important;}
.editor-overlay-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;}.editor-overlay-actions button{height:36px;padding:0 14px;border-radius:10px;}.editor-overlay-actions .primary{background:var(--workspace-accent-dark)!important;border-color:var(--workspace-accent)!important;color:#fff!important;}
.editor-overlay-section[hidden],#sharedColorEditColorSection[hidden],#sharedEditStrokeSection[hidden]{display:none!important;}
.editor-layer-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;}
.editor-layer-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:40px;padding:8px 6px;font-size:12px;line-height:1.15;text-align:center;}
.editor-layer-actions button span{min-width:0;}
.editor-layer-actions button i{flex:0 0 auto;font-size:12px;}
.editor-layer-actions button:disabled{opacity:.42;cursor:not-allowed;}
@media(max-width:420px){.editor-layer-actions{gap:5px;}.editor-layer-actions button{gap:4px;padding:7px 3px;font-size:10px;}}
#sharedZoneLineSolid.active,#sharedZoneLineDashed.active{background:var(--workspace-accent-dark)!important;border-color:var(--workspace-accent)!important;color:#fff!important;}
.zone-opacity-popover-row .editor-range-row{min-width:190px;}#zoneOpacityValue{width:52px;}
@media(max-width:720px){.editor-edit-grid{grid-template-columns:1fr;}.editor-overlay-card{padding:12px;}}


/* Default player colours */
.workspace-menu-action{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--button-bg);color:var(--text);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.workspace-menu-action:hover{border-color:var(--accent);color:var(--accent)}
.workspace-default-colors-modal{position:fixed;inset:0;z-index:12050;display:none;align-items:center;justify-content:center;padding:20px;background:var(--workspace-modal-backdrop);backdrop-filter:blur(7px)}
.workspace-default-colors-modal.is-visible{display:flex}
.workspace-default-colors-card{width:min(760px,calc(100vw - 32px));border:1px solid var(--workspace-modal-soft-border);border-radius:18px;background:var(--workspace-modal-card-bg);color:var(--workspace-modal-text);box-shadow:var(--workspace-modal-shadow);padding:20px;display:grid;gap:18px}
.workspace-default-colors-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.workspace-default-colors-heading h3{margin:3px 0 6px;font-size:21px;line-height:1.2}
.workspace-default-colors-heading p{margin:0;color:var(--workspace-modal-muted);font-size:13px;line-height:1.5}
.workspace-default-colors-kicker{font-size:10px;letter-spacing:.16em;font-weight:900;color:var(--workspace-accent)}
.workspace-default-colors-close{flex:0 0 34px;width:34px;height:34px;border:1px solid var(--workspace-modal-border);border-radius:10px;background:var(--workspace-modal-input-bg);color:var(--workspace-modal-subtle);cursor:pointer}
.workspace-default-colors-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.workspace-default-colors-grid label{display:grid;grid-template-columns:1fr 54px;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--workspace-modal-border);border-radius:12px;background:var(--workspace-modal-panel-bg);font-size:13px;font-weight:800}
.workspace-default-colors-grid input[type="color"]{width:54px;height:38px;padding:3px;border:1px solid var(--workspace-modal-border-strong);border-radius:9px;background:var(--workspace-modal-input-bg);cursor:pointer}
.workspace-default-colors-note{padding:10px 12px;border-radius:10px;background:var(--workspace-modal-panel-bg);color:var(--workspace-modal-subtle);font-size:12px}
.workspace-default-colors-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.workspace-default-colors-actions-right{display:flex;align-items:center;gap:8px}
.workspace-default-colors-actions button{min-height:38px;padding:8px 13px;border-radius:10px;border:1px solid var(--workspace-modal-border);background:var(--workspace-modal-input-bg);color:var(--workspace-modal-text);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.workspace-default-colors-actions .workspace-default-colors-save{border-color:var(--workspace-accent-dark);background:var(--workspace-accent);color:#fff}
.workspace-default-colors-actions .workspace-default-colors-reset{color:var(--workspace-accent)}
.workspace-default-colors-actions button:disabled{opacity:.6;cursor:wait}
.workspace-feedback-toast{position:fixed;left:50%;bottom:24px;z-index:12100;max-width:min(520px,calc(100vw - 32px));transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 15px;border:1px solid var(--workspace-modal-soft-border);border-radius:12px;background:var(--workspace-modal-card-bg);color:var(--workspace-modal-title);box-shadow:0 14px 40px rgba(0,0,0,.4);font-size:13px;font-weight:800;transition:opacity .18s ease,transform .18s ease}
.workspace-feedback-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.workspace-default-colors-grid{grid-template-columns:1fr}.workspace-default-colors-actions{align-items:stretch;flex-direction:column}.workspace-default-colors-actions-right{width:100%}.workspace-default-colors-actions button{flex:1;width:100%}}


/* Platform theme bridge — editor chrome only; the pitch/canvas keeps its own visual mode. */
html[data-mfe-theme]{
  --accent:var(--workspace-accent);
  --accent-dark:var(--workspace-accent-dark);
  --workspace-modal-backdrop:rgba(2,6,23,.72);
  --workspace-modal-card-bg:linear-gradient(180deg,#0f172a 0%,#020617 100%);
  --workspace-modal-panel-bg:rgba(2,6,23,.55);
  --workspace-modal-input-bg:linear-gradient(180deg,#07111f,#020617);
  --workspace-modal-preview-bg:linear-gradient(180deg,#07101d,#020617);
  --workspace-modal-hover-bg:#162033;
  --workspace-modal-border:#223047;
  --workspace-modal-border-strong:#334155;
  --workspace-modal-soft-border:rgba(255,255,255,.08);
  --workspace-modal-text:#e5e7eb;
  --workspace-modal-title:#f8fafc;
  --workspace-modal-muted:#94a3b8;
  --workspace-modal-subtle:#cbd5e1;
  --workspace-modal-placeholder:#64748b;
  --workspace-modal-track-bg:rgba(255,255,255,.06);
  --workspace-modal-shadow:0 24px 60px rgba(0,0,0,.45);
  --workspace-accent-contrast:#ffffff;
}
html[data-mfe-theme="base"]{
  --workspace-accent:#22c55e;
  --workspace-accent-dark:#16a34a;
  --workspace-accent-rgb:34,197,94;
  --workspace-accent-surface:#173d2b;
  --workspace-accent-text:#dcffe8;
}
html[data-mfe-theme="light"]{
  --workspace-accent:#16a34a;
  --workspace-accent-dark:#15803d;
  --workspace-accent-rgb:22,163,74;
  --workspace-accent-surface:rgba(22,163,74,.12);
  --workspace-accent-text:#14532d;
  --workspace-modal-backdrop:rgba(15,23,42,.38);
  --workspace-modal-card-bg:linear-gradient(180deg,#ffffff 0%,#eef4ef 100%);
  --workspace-modal-panel-bg:rgba(248,250,252,.96);
  --workspace-modal-input-bg:linear-gradient(180deg,#ffffff,#f2f7f3);
  --workspace-modal-preview-bg:linear-gradient(180deg,#f8fafc,#edf4ef);
  --workspace-modal-hover-bg:#e8f2ec;
  --workspace-modal-border:#cbd5e1;
  --workspace-modal-border-strong:#94a3b8;
  --workspace-modal-soft-border:rgba(15,23,42,.10);
  --workspace-modal-text:#0f172a;
  --workspace-modal-title:#0f172a;
  --workspace-modal-muted:#475569;
  --workspace-modal-subtle:#334155;
  --workspace-modal-placeholder:#64748b;
  --workspace-modal-track-bg:rgba(15,23,42,.08);
  --workspace-modal-shadow:0 20px 42px rgba(15,23,42,.16);
  --workspace-accent-contrast:#ffffff;
  --workspace-line:#d5e1da;
  --workspace-text:#142033;
}
html[data-mfe-theme="gray"]{
  --workspace-accent:#d1d5db;
  --workspace-accent-dark:#9ca3af;
  --workspace-accent-rgb:209,213,219;
  --workspace-accent-surface:rgba(209,213,219,.13);
  --workspace-accent-text:#f9fafb;
  --workspace-modal-backdrop:rgba(0,0,0,.72);
  --workspace-modal-card-bg:linear-gradient(180deg,#20242a 0%,#111315 100%);
  --workspace-modal-panel-bg:#171a1f;
  --workspace-modal-input-bg:linear-gradient(180deg,#1b1f24,#111315);
  --workspace-modal-preview-bg:linear-gradient(180deg,#1d2126,#111315);
  --workspace-modal-hover-bg:#2a3037;
  --workspace-modal-border:#3f4650;
  --workspace-modal-border-strong:#59616c;
  --workspace-modal-soft-border:rgba(255,255,255,.10);
  --workspace-modal-text:#f3f4f6;
  --workspace-modal-title:#ffffff;
  --workspace-modal-muted:#aeb4bd;
  --workspace-modal-subtle:#d1d5db;
  --workspace-modal-placeholder:#8b949e;
  --workspace-modal-track-bg:rgba(255,255,255,.08);
  --workspace-modal-shadow:0 24px 60px rgba(0,0,0,.48);
  --workspace-accent-contrast:#111827;
  --workspace-line:#343a43;
  --workspace-text:#f3f4f6;
}
html[data-mfe-theme="custom"]{
  --workspace-accent:var(--mfe-custom-primary,#22c55e);
  --workspace-accent-dark:var(--mfe-custom-primary-dark,#16a34a);
  --workspace-accent-rgb:var(--mfe-custom-primary-rgb,34,197,94);
  --workspace-accent-surface:rgba(var(--mfe-custom-primary-rgb,34,197,94),.16);
  --workspace-accent-text:#ffffff;
  --workspace-modal-backdrop:rgba(2,8,16,.74);
  --workspace-modal-card-bg:linear-gradient(180deg,#0a1627 0%,#04101a 100%);
  --workspace-modal-panel-bg:rgba(7,22,40,.94);
  --workspace-modal-input-bg:linear-gradient(180deg,#081827,#04101a);
  --workspace-modal-preview-bg:linear-gradient(180deg,#091a2b,#04101a);
  --workspace-modal-hover-bg:#10243a;
  --workspace-modal-border:rgba(var(--workspace-accent-rgb),.26);
  --workspace-modal-border-strong:rgba(var(--workspace-accent-rgb),.42);
  --workspace-modal-soft-border:rgba(var(--workspace-accent-rgb),.16);
  --workspace-modal-text:#eef3f9;
  --workspace-modal-title:#ffffff;
  --workspace-modal-muted:#9fb0c3;
  --workspace-modal-subtle:#c9d4e2;
  --workspace-modal-placeholder:#718399;
  --workspace-modal-track-bg:rgba(255,255,255,.07);
  --workspace-modal-shadow:0 24px 64px rgba(0,0,0,.48);
  --workspace-accent-contrast:#ffffff;
}

/* Shared accent behaviour */
html[data-mfe-theme] .workspace-header-status::before,
html[data-mfe-theme] .workspace-slider-row input[type="range"]::-webkit-slider-thumb,
html[data-mfe-theme] .editor-range-row input[type="range"]::-webkit-slider-thumb{
  background:var(--workspace-accent)!important;
}
html[data-mfe-theme] .workspace-slider-row input[type="range"],
html[data-mfe-theme] .editor-range-row input[type="range"]{accent-color:var(--workspace-accent)!important;}
html[data-mfe-theme] .workspace-color-swatch:hover,
html[data-mfe-theme] .workspace-color-swatch.is-active{
  box-shadow:0 0 0 2px var(--workspace-accent),inset 0 0 0 1px rgba(0,0,0,.18)!important;
}
html[data-mfe-theme] .workspace-default-colors-actions .workspace-default-colors-save,
html[data-mfe-theme] .editor-overlay-actions .primary,
html[data-mfe-theme] #sharedZoneLineSolid.active,
html[data-mfe-theme] #sharedZoneLineDashed.active{
  background:var(--workspace-accent)!important;
  border-color:var(--workspace-accent-dark)!important;
  color:#fff!important;
}
html[data-mfe-theme="gray"] .workspace-default-colors-actions .workspace-default-colors-save,
html[data-mfe-theme="gray"] .editor-overlay-actions .primary,
html[data-mfe-theme="gray"] #sharedZoneLineSolid.active,
html[data-mfe-theme="gray"] #sharedZoneLineDashed.active{color:#111827!important;}

/* Light platform theme */
html[data-mfe-theme="light"] body.workspace-redesign{background:#eef4f1;color:#142033;}
html[data-mfe-theme="light"] body.workspace-redesign #topbar{
  background:linear-gradient(180deg,#ffffff 0%,#f3f7f5 100%);
  border-bottom-color:#d5e1da;
  box-shadow:0 10px 26px rgba(15,23,42,.10);
}
html[data-mfe-theme="light"] .workspace-header-title,
html[data-mfe-theme="light"] .workspace-sidebar-title,
html[data-mfe-theme="light"] .workspace-inspector-title,
html[data-mfe-theme="light"] .editor-overlay-title{color:#142033;}
html[data-mfe-theme="light"] .workspace-header-nav,
html[data-mfe-theme="light"] .workspace-header-actions .view-dropdown,
html[data-mfe-theme="light"] .workspace-header-actions .project-dropdown,
html[data-mfe-theme="light"] .workspace-header-actions .export-dropdown,
html[data-mfe-theme="light"] .workspace-more-dropdown{
  background:#ffffff;
  border-color:#d5e1da;
  box-shadow:0 18px 38px rgba(15,23,42,.14);
}
html[data-mfe-theme="light"] .workspace-nav-btn{color:#64748b!important;}
html[data-mfe-theme="light"] .workspace-nav-btn:hover,
html[data-mfe-theme="light"] .workspace-nav-btn.active,
html[data-mfe-theme="light"] .workspace-save-exercise-btn:hover{
  background:var(--workspace-accent-surface)!important;
  border-color:rgba(var(--workspace-accent-rgb),.34)!important;
  color:var(--workspace-accent-text)!important;
}
html[data-mfe-theme="light"] .workspace-save-exercise-btn{color:var(--workspace-accent-dark)!important;}
html[data-mfe-theme="light"] .workspace-rail{background:#f8fafc;border-right-color:#d5e1da;}
html[data-mfe-theme="light"] .workspace-rail-btn,
html[data-mfe-theme="light"] .workspace-sidebar-reopen{
  background:#ffffff!important;
  border-color:#d5e1da!important;
  color:#64748b!important;
}
html[data-mfe-theme="light"] .workspace-rail-btn:hover,
html[data-mfe-theme="light"] .workspace-rail-btn.active{
  background:var(--workspace-accent-surface)!important;
  color:var(--workspace-accent-text)!important;
  border-color:var(--workspace-accent)!important;
}
html[data-mfe-theme="light"] body.workspace-redesign #leftbar,
html[data-mfe-theme="light"] body.workspace-redesign #rightbar{background:rgba(248,250,252,.98);border-color:#d5e1da;}
html[data-mfe-theme="light"] .workspace-sidebar-head{border-bottom-color:#d5e1da;}
html[data-mfe-theme="light"] body.workspace-redesign #leftbar .panel-group,
html[data-mfe-theme="light"] body.workspace-redesign #leftbar .panel-group .panel-group,
html[data-mfe-theme="light"] .workspace-inspector-card,
html[data-mfe-theme="light"] .workspace-more-section,
html[data-mfe-theme="light"] .editor-color-group{
  background:#ffffff;
  border-color:#d5e1da;
}
html[data-mfe-theme="light"] body.workspace-redesign .drag-item,
html[data-mfe-theme="light"] body.workspace-redesign #leftbar .workspace-field-option,
html[data-mfe-theme="light"] .workspace-slider-value,
html[data-mfe-theme="light"] .editor-range-output{
  background:#f1f5f9!important;
  border-color:#cbd5e1!important;
  color:#142033;
}
html[data-mfe-theme="light"] body.workspace-redesign .drag-item:hover,
html[data-mfe-theme="light"] body.workspace-redesign #leftbar .workspace-field-option:hover,
html[data-mfe-theme="light"] body.workspace-redesign #leftbar .workspace-field-option.active{
  background:var(--workspace-accent-surface)!important;
  border-color:var(--workspace-accent)!important;
  color:var(--workspace-accent-text)!important;
}
html[data-mfe-theme="light"] body.workspace-redesign #container{
  background:radial-gradient(circle at 50% 10%,#dce9e1 0%,#eef4f1 67%);
}
html[data-mfe-theme="light"] .editor-overlay-card,
html[data-mfe-theme="light"] .workspace-default-colors-card{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-color:#cbd5e1;
  color:#142033;
  box-shadow:0 24px 64px rgba(15,23,42,.18);
}
html[data-mfe-theme="light"] .editor-edit-field input[type="text"],
html[data-mfe-theme="light"] .editor-edit-field select,
html[data-mfe-theme="light"] .editor-color-group input[type="color"],
html[data-mfe-theme="light"] .workspace-default-colors-close,
html[data-mfe-theme="light"] .workspace-default-colors-actions button,
html[data-mfe-theme="light"] .workspace-default-colors-grid label,
html[data-mfe-theme="light"] .workspace-default-colors-grid input[type="color"]{
  background:#ffffff;
  border-color:#cbd5e1;
  color:#142033;
}
html[data-mfe-theme="light"] .workspace-default-colors-heading p,
html[data-mfe-theme="light"] .editor-edit-hint{color:#64748b;}
html[data-mfe-theme="light"] .workspace-default-colors-note{background:rgba(var(--workspace-accent-rgb),.10);color:#334155;}
html[data-mfe-theme="light"] .workspace-feedback-toast{background:#ffffff;color:#142033;border-color:#cbd5e1;}

/* Gray platform theme */
html[data-mfe-theme="gray"] body.workspace-redesign{background:#111315;}
html[data-mfe-theme="gray"] body.workspace-redesign #topbar{background:linear-gradient(180deg,#20242a,#171a1f);border-bottom-color:#343a43;}
html[data-mfe-theme="gray"] .workspace-header-nav,
html[data-mfe-theme="gray"] .workspace-header-actions .view-dropdown,
html[data-mfe-theme="gray"] .workspace-header-actions .project-dropdown,
html[data-mfe-theme="gray"] .workspace-header-actions .export-dropdown,
html[data-mfe-theme="gray"] .workspace-more-dropdown,
html[data-mfe-theme="gray"] .workspace-rail{background:#181b20;border-color:#343a43;}
html[data-mfe-theme="gray"] body.workspace-redesign #leftbar,
html[data-mfe-theme="gray"] body.workspace-redesign #rightbar{background:rgba(24,27,32,.98);border-color:#343a43;}
html[data-mfe-theme="gray"] body.workspace-redesign #leftbar .panel-group,
html[data-mfe-theme="gray"] body.workspace-redesign #leftbar .panel-group .panel-group,
html[data-mfe-theme="gray"] .workspace-inspector-card,
html[data-mfe-theme="gray"] .workspace-more-section,
html[data-mfe-theme="gray"] .editor-color-group,
html[data-mfe-theme="gray"] .editor-overlay-card,
html[data-mfe-theme="gray"] .workspace-default-colors-card{background:#20242a;border-color:#3f4650;}
html[data-mfe-theme="gray"] body.workspace-redesign .drag-item,
html[data-mfe-theme="gray"] body.workspace-redesign #leftbar .workspace-field-option,
html[data-mfe-theme="gray"] .workspace-slider-value,
html[data-mfe-theme="gray"] .editor-range-output,
html[data-mfe-theme="gray"] .workspace-default-colors-actions button,
html[data-mfe-theme="gray"] .workspace-default-colors-close,
html[data-mfe-theme="gray"] .workspace-default-colors-grid label,
html[data-mfe-theme="gray"] .workspace-default-colors-grid input[type="color"]{background:#272c33!important;border-color:#454d58!important;color:#f3f4f6;}
html[data-mfe-theme="gray"] body.workspace-redesign #container{background:radial-gradient(circle at 50% 10%,#252a30 0%,#111315 67%);}

/* Page loading gate: keeps the editor covered until theme, access, assets and workspace are ready. */
body.is-app-loading{overflow:hidden!important}
.editor-page-loading-overlay{position:fixed;inset:0;z-index:130000;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 20% 12%,rgba(var(--workspace-accent-rgb),.12),transparent 28%),radial-gradient(circle at 82% 8%,rgba(59,130,246,.10),transparent 26%),linear-gradient(145deg,rgba(4,16,26,.985) 0%,rgba(7,22,40,.992) 60%,rgba(2,8,20,.997) 100%);backdrop-filter:blur(10px);opacity:1;visibility:visible;transition:opacity .28s ease,visibility .28s ease}
.editor-page-loading-overlay.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.editor-page-loading-card{width:min(430px,calc(100vw - 32px));padding:28px 24px 24px;border-radius:28px;border:1px solid rgba(255,255,255,.08);background:radial-gradient(circle at top,rgba(var(--workspace-accent-rgb),.17),transparent 36%),linear-gradient(180deg,rgba(15,23,42,.97),rgba(2,6,23,.99));box-shadow:0 30px 80px rgba(0,0,0,.46);text-align:center;display:grid;justify-items:center;color:#f8fafc}
.editor-page-loading-logo-wrap{width:84px;height:84px;margin:0 auto 16px;padding:10px;border-radius:24px;background:linear-gradient(135deg,rgba(var(--workspace-accent-rgb),.20),rgba(var(--workspace-accent-rgb),.08));border:1px solid rgba(var(--workspace-accent-rgb),.32);box-shadow:0 16px 34px rgba(var(--workspace-accent-rgb),.18);display:flex;align-items:center;justify-content:center}
.editor-page-loading-logo{width:100%;height:100%;object-fit:contain;display:block;border-radius:18px}
.editor-page-loading-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;margin-bottom:14px;border-radius:999px;border:1px solid rgba(var(--workspace-accent-rgb),.32);background:rgba(var(--workspace-accent-rgb),.10);color:var(--workspace-accent);font-size:11px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.editor-page-loading-title{width:100%;margin:0;text-align:center;font-size:clamp(24px,3vw,28px);line-height:1.05;font-weight:900;color:#f8fafc}
.editor-page-loading-copy{width:100%;margin:10px 0 0;text-align:center;color:#cbd5e1;font-size:14px;line-height:1.55}
.editor-page-loading-progress-wrap{width:100%;margin-top:22px;display:grid;gap:12px}
.editor-page-loading-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.editor-page-loading-status{min-width:0;color:#e2e8f0;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-page-loading-percent{color:var(--workspace-accent);font-size:13px;font-weight:900;letter-spacing:.04em}
.editor-page-loading-bar{position:relative;height:14px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.22)}
.editor-page-loading-bar-fill{position:absolute;inset:0 auto 0 0;width:0%;border-radius:inherit;background:linear-gradient(90deg,var(--workspace-accent) 0%,var(--workspace-accent-dark) 55%,var(--workspace-accent) 100%);box-shadow:0 0 24px rgba(var(--workspace-accent-rgb),.28);transition:width .22s ease;overflow:hidden}
.editor-page-loading-bar-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.28) 45%,transparent 100%);transform:translateX(-100%);animation:editorPageLoadingShine 1.15s linear infinite}
.editor-page-loading-foot{width:100%;margin:14px 0 0;text-align:center;color:#94a3b8;font-size:12px}
@keyframes editorPageLoadingShine{to{transform:translateX(100%)}}
html[data-mfe-theme="light"] .editor-page-loading-overlay{background:rgba(238,244,241,.96)}
html[data-mfe-theme="light"] .editor-page-loading-card{border-color:rgba(15,23,42,.12);background:linear-gradient(180deg,#fff,#f8fafc);color:#142033;box-shadow:0 24px 70px rgba(15,23,42,.16)}
html[data-mfe-theme="light"] :is(.editor-page-loading-title,.editor-page-loading-copy,.editor-page-loading-status,.editor-page-loading-foot){color:#142033}
html[data-mfe-theme="light"] .editor-page-loading-copy,html[data-mfe-theme="light"] .editor-page-loading-foot{opacity:.72}
html[data-mfe-theme="light"] .editor-page-loading-bar{background:rgba(15,23,42,.08);border-color:rgba(15,23,42,.10)}
html[data-mfe-theme="gray"] .editor-page-loading-card{background:linear-gradient(180deg,#fff,#e5e7eb);border-color:rgba(17,24,39,.16);color:#111827}
html[data-mfe-theme="gray"] :is(.editor-page-loading-title,.editor-page-loading-copy,.editor-page-loading-status,.editor-page-loading-percent,.editor-page-loading-foot){color:#111827}
html[data-mfe-theme="gray"] .editor-page-loading-bar{background:rgba(17,24,39,.10);border-color:rgba(17,24,39,.16)}
html[data-mfe-theme="gray"] .editor-page-loading-bar-fill{background:linear-gradient(90deg,#111827,#000);box-shadow:0 0 20px rgba(17,24,39,.18)}
@media(max-width:640px){.editor-page-loading-card{padding:24px 18px 20px;border-radius:24px}.editor-page-loading-logo-wrap{width:74px;height:74px;border-radius:22px}.editor-page-loading-title{font-size:22px}.editor-page-loading-progress-head{flex-wrap:wrap}.editor-page-loading-status,.editor-page-loading-percent{width:100%;text-align:left}}

