
/* v5.4.7 · promote the proven Archetype Overview controller into the persistent desktop left rail.
   Legacy sidebar/body stay in DOM (hidden) because existing authoritative handlers still use their IDs. */
@media(min-width:761px){
  .workspace{grid-template-columns:306px minmax(0,1fr)!important;gap:16px!important;align-items:start!important}
  .left-stack{display:block!important;width:306px!important;min-width:306px!important;max-width:306px!important;position:sticky!important;top:18px!important;max-height:calc(100dvh - 36px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:2px!important;transform:none!important;opacity:1!important;pointer-events:auto!important}
  .left-stack>.sidebar,.left-stack>#bodyPanel{display:none!important}
  body.build-overview-active .workspace{grid-template-columns:306px minmax(0,1fr)!important;gap:16px!important}
  body.build-overview-active .left-stack{display:block!important;width:306px!important;min-width:306px!important;max-width:306px!important;transform:none!important;opacity:1!important;pointer-events:auto!important}

  .global-archetype-overview-card{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;margin:0!important;box-sizing:border-box!important}
  .global-archetype-overview-card .ovc-scroll{height:auto!important;min-height:0!important;overflow:visible!important;padding:13px 12px 12px!important}
  .global-archetype-overview-card .ovc-section{padding:10px 0!important}
  .global-archetype-overview-card .ovc-section:first-child{padding-top:0!important}

  .global-archetype-overview-card .ovc-model-trigger{grid-template-columns:38px minmax(0,1fr) auto!important;gap:7px!important;min-height:48px!important;margin:-2px -4px!important;width:calc(100% + 8px)!important;padding:6px 4px!important;border-radius:12px!important}
  .global-archetype-overview-card .ovc-model-logo{width:36px!important;height:36px!important}
  .global-archetype-overview-card .ovc-model-logo img{width:33px!important;height:33px!important}
  .global-archetype-overview-card .ovc-model-copy{gap:6px!important}
  .global-archetype-overview-card .ovc-model-copy strong{font-size:21px!important}
  .global-archetype-overview-card .ovc-model-copy span{font-size:8px!important}
  .global-archetype-overview-card .ovc-model-action{height:27px!important;padding:0 7px 0 8px!important;gap:4px!important}
  .global-archetype-overview-card .ovc-model-action-label{font-size:7.5px!important}
  .global-archetype-overview-card .ovc-model-action .ovc-chevron{width:10px!important;height:10px!important;flex-basis:10px!important}
  .global-archetype-overview-card .ovc-model-menu{top:52px!important;padding:7px!important;border-radius:13px!important}
  .global-archetype-overview-card .ovc-model-options{gap:4px!important}
  .global-archetype-overview-card .ovc-model-option{min-height:39px!important;grid-template-columns:24px minmax(0,1fr)!important;padding:4px 6px!important;gap:6px!important}
  .global-archetype-overview-card .ovc-model-option img{width:22px!important;height:22px!important}

  .global-archetype-overview-card .ovc-level-section{padding-top:11px!important;padding-bottom:12px!important}
  .global-archetype-overview-card .ovc-dual-bars{gap:12px!important}
  .global-archetype-overview-card .ovc-meter-row{grid-template-columns:minmax(0,1fr) 72px!important;gap:8px!important}
  .global-archetype-overview-card .ovc-meter-label{margin-bottom:6px!important;font-size:7px!important}
  .global-archetype-overview-card .ovc-meter-meta span{font-size:7px!important}
  .global-archetype-overview-card .ovc-meter-meta strong{font-size:11px!important}
  .global-archetype-overview-card .ovc-meter-track{height:8px!important}
  .global-archetype-overview-card .ovc-level-console{margin-top:7px!important}
  .global-archetype-overview-card .ovc-level-float{width:48px!important;height:26px!important;font-size:8px!important;border-radius:5px!important}
  .global-archetype-overview-card #overviewLevelSlider::-webkit-slider-thumb{width:48px!important;height:26px!important}
  .global-archetype-overview-card #overviewLevelSlider::-moz-range-thumb{width:48px!important;height:26px!important}

  .global-archetype-overview-card .ovc-stars-section{padding:8px 0!important}
  .global-archetype-overview-card .ovc-star-list{gap:5px!important}
  .global-archetype-overview-card .ovc-star-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;min-height:25px!important}
  .global-archetype-overview-card .ovc-star-label{font-size:9px!important}
  .global-archetype-overview-card .ovc-star-track{gap:3px!important;min-height:27px!important;justify-content:flex-end!important}
  .global-archetype-overview-card .ovc-star{width:24px!important;height:27px!important}
  .global-archetype-overview-card .ovc-star svg{width:21px!important;height:21px!important}

  .global-archetype-overview-card .ovc-body-layout{grid-template-columns:minmax(0,1fr) auto!important;column-gap:9px!important;row-gap:8px!important}
  .global-archetype-overview-card .ovc-body-summary{gap:10px!important;padding-left:0!important}
  .global-archetype-overview-card .ovc-body-chip{gap:5px!important;font-size:10px!important}
  .global-archetype-overview-card .ovc-body-chip b{font-size:15px!important}
  .global-archetype-overview-card .ovc-body-quick{gap:5px!important}
  .global-archetype-overview-card .ovc-body-actions{gap:6px!important}
  .global-archetype-overview-card .ovc-body-toggle,.global-archetype-overview-card .ovc-body-reset{height:29px!important;padding:0 9px!important}
  .global-archetype-overview-card .ovc-body-toggle{padding-left:10px!important}
  .global-archetype-overview-card .ovc-body-toggle-label,.global-archetype-overview-card .ovc-body-reset-label{font-size:8px!important}
  .global-archetype-overview-card .ovc-pill-switch{min-width:58px!important;height:27px!important;padding:3px!important}
  .global-archetype-overview-card .ovc-pill-switch[data-size="sm"]{min-width:50px!important}
  .global-archetype-overview-card .ovc-pill-switch .opt{padding:0 6px!important;font-size:8px!important}
  .global-archetype-overview-card .ovc-accelerate strong{min-width:78px!important;height:29px!important;padding:0 10px!important;font-size:10px!important}
  .global-archetype-overview-card .ovc-body-expanded{grid-template-columns:1fr!important;gap:9px!important;margin-top:8px!important}
  .global-archetype-overview-card .ovc-body-section.expanded .ovc-body-expanded{max-height:760px!important;padding-top:9px!important}
  .global-archetype-overview-card .ovc-body-plot{aspect-ratio:1.45 / 1!important;border-radius:11px!important}
  .global-archetype-overview-card .ovc-body-dot{width:18px!important;height:18px!important;border-width:2px!important}
  .global-archetype-overview-card .ovc-body-mods{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  .global-archetype-overview-card .ovc-body-mod{padding:6px 8px!important;border-radius:9px!important}
  .global-archetype-overview-card .ovc-body-mod span{font-size:8px!important}
  .global-archetype-overview-card .ovc-body-mod strong{font-size:11px!important}

  .global-archetype-overview-card .ovc-playstyle-section{padding:6px 0 0!important}
  .global-archetype-overview-card .ovc-ps-row{grid-template-columns:58px minmax(0,1fr)!important;gap:4px!important;min-height:37px!important}
  .global-archetype-overview-card .ovc-ps-row+.ovc-ps-row{margin-top:5px!important}
  .global-archetype-overview-card .ovc-ps-label{font-size:8px!important}
  .global-archetype-overview-card .ovc-ps-badges,.global-archetype-overview-card .ovc-ps-prefix,.global-archetype-overview-card .ovc-ps-track,.global-archetype-overview-card .ovc-ps-extra,.global-archetype-overview-card .ovc-ps-amp{gap:3px!important}
  .global-archetype-overview-card .ovc-ps-track{margin-left:-1px!important}
  .global-archetype-overview-card .ovc-ps-badge{width:36px!important;height:36px!important;flex-basis:36px!important}
  .global-archetype-overview-card .ovc-ps-badge .overview-badge-shell{--badge-h:29px;--badge-w:29px;--icon-box:16px;width:36px!important;height:36px!important}
  .global-archetype-overview-card .ovc-ps-row.gold .ovc-ps-badge .overview-badge-shell.plus{--badge-h:29px;--badge-w:34px;--icon-box:16px;--gold-lift:1.6px;width:36px!important;height:36px!important}
  .global-archetype-overview-card .ovc-ps-slot,.global-archetype-overview-card .ovc-ps-add{width:31px!important;height:31px!important;flex-basis:31px!important}
  .global-archetype-overview-card .ovc-ps-slot .overview-badge-shell{--badge-h:28px;--badge-w:28px;--icon-box:15px;width:31px!important;height:31px!important}
  .global-archetype-overview-card .ovc-ps-slot-shell,.global-archetype-overview-card .ovc-ps-add-shell{width:26px!important;height:26px!important;border-radius:4px!important}
  .global-archetype-overview-card .ovc-ps-slot-lock{width:11px!important;height:11px!important}
  .global-archetype-overview-card .ovc-ps-add-plus{font-size:15px!important}
  .global-archetype-overview-card .ovc-ps-separator{height:19px!important;margin:0 2px!important}
  .global-archetype-overview-card .ovc-signature-upgrade-hint{font-size:6.5px!important}

  /* The global rail already owns Archetype Overview, so Build Overview only needs stats + showcase. */
  body.build-overview-active .overview-middle-column{display:none!important}
  body.build-overview-active .build-overview-grid{grid-template-columns:minmax(0,1fr) minmax(270px,330px)!important;grid-template-areas:"stats showcase"!important;gap:12px!important}
  body.build-overview-active .overview-stats-card{grid-area:stats!important}
  body.build-overview-active .overview-showcase-column{grid-area:showcase!important}
}
@media(min-width:1051px) and (max-width:1380px){
  .workspace,body.build-overview-active .workspace{grid-template-columns:286px minmax(0,1fr)!important;gap:14px!important}
  .left-stack,body.build-overview-active .left-stack{width:286px!important;min-width:286px!important;max-width:286px!important}
  body.build-overview-active .build-overview-grid{grid-template-columns:minmax(0,1fr) minmax(245px,300px)!important;gap:10px!important}
}
@media(min-width:761px) and (max-width:1050px){
  .workspace,body.build-overview-active .workspace{grid-template-columns:260px minmax(0,1fr)!important;gap:10px!important}
  .left-stack,body.build-overview-active .left-stack{width:260px!important;min-width:260px!important;max-width:260px!important}
  .global-archetype-overview-card .ovc-scroll{padding:11px 10px 10px!important}
  .global-archetype-overview-card .ovc-model-action-label{display:none!important}
  .global-archetype-overview-card .ovc-ps-row{grid-template-columns:52px minmax(0,1fr)!important}
  .global-archetype-overview-card .ovc-ps-badge{width:33px!important;height:33px!important;flex-basis:33px!important}
  .global-archetype-overview-card .ovc-ps-badge .overview-badge-shell{width:33px!important;height:33px!important}
  body.build-overview-active .build-overview-grid{grid-template-columns:minmax(0,1fr) minmax(215px,260px)!important;gap:9px!important}
}
/* Mobile keeps the pre-existing mobile layout and Build Overview behavior. */
