/* Pressroom Studio v4.5 — canvas-first adaptive workspace. Additive styles only. */
#pd-studio.pd-adaptive-designer{
  --pd-floating-width:322px;
}
#pd-studio.pd-adaptive-designer .pd-body,
#pd-studio.pd-adaptive-designer.pd-right-hidden .pd-body{
  grid-template-columns:76px 298px minmax(0,1fr)!important;
}
#pd-studio.pd-adaptive-designer.pd-left-hidden .pd-body,
#pd-studio.pd-adaptive-designer.pd-left-hidden.pd-right-hidden .pd-body{
  grid-template-columns:76px minmax(0,1fr)!important;
}
#pd-studio.pd-adaptive-designer .pd-workspace{
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
}
#pd-studio.pd-adaptive-designer .pd-right{
  position:absolute!important;
  z-index:52!important;
  right:auto!important;bottom:auto!important;
  top:16px;
  width:var(--pd-floating-width)!important;
  max-width:calc(100% - 90px)!important;
  min-width:240px!important;
  height:min(580px,calc(100% - 22px))!important;
  min-height:260px!important;
  max-height:calc(100% - 16px)!important;
  display:flex!important;
  background:#fff!important;
  border:1px solid #cddedb!important;
  border-radius:15px!important;
  box-shadow:0 16px 48px #14333a3d!important;
  overflow:hidden!important;
  padding:0!important;
}
#pd-studio.pd-adaptive-designer.pd-adaptive-inspector-closed .pd-right{display:none!important}
#pd-studio.pd-adaptive-designer .pd-right .pd-panel-title{
  cursor:move;
  flex:none!important;
  background:#f7fbfa!important;
  min-height:49px;
  border-bottom:1px solid #deebe6;
}
#pd-studio.pd-adaptive-designer .pd-right .pd-panel-title button[data-act="collapse-right"]{display:none!important}
#pd-studio.pd-adaptive-designer .pd-adaptive-inspector-controls{display:flex;align-items:center;gap:9px}
#pd-studio.pd-adaptive-designer .pd-adaptive-move-hint{font-size:10px;color:#748b88;white-space:nowrap;font-weight:600}
#pd-studio.pd-adaptive-designer .pd-adaptive-close{
  background:#e9f2ef!important;color:#1a5760!important;
  border:1px solid #d4e4df!important;border-radius:8px!important;
  width:32px!important;height:32px!important;min-width:32px!important;
  padding:0!important;display:grid;place-items:center;
  font-size:24px!important;line-height:1!important;cursor:pointer!important;
}
#pd-studio.pd-adaptive-designer .pd-adaptive-close:hover{background:#d7ece7!important}
#pd-studio.pd-adaptive-designer .pd-panel-edge-right,
#pd-studio.pd-adaptive-designer .pd-inspector-reopen{display:none!important}
#pd-studio.pd-adaptive-designer .pd-work-controls{
  padding-left:8px!important;padding-right:9px!important;
  margin:0!important;width:100%!important;
}
#pd-studio.pd-adaptive-designer .pd-adaptive-properties-toggle{
  flex:0 0 auto;display:inline-flex!important;align-items:center;gap:6px;
  border:1px solid #97c8bd!important;
  background:#e7f8f2!important;color:#085c55!important;
  font-size:11px!important;font-weight:800!important;
  padding:5px 10px!important;white-space:nowrap;
}
#pd-studio.pd-adaptive-designer .pd-adaptive-properties-toggle.is-open{
  background:#16695e!important;border-color:#16695e!important;color:white!important;
}
#pd-studio.pd-adaptive-designer .pd-adaptive-properties-toggle span:first-child{font-size:15px;line-height:1}
#pd-studio.pd-adaptive-designer .pd-work-scroll{
  width:100%!important;min-width:0!important;
  margin:0!important;
}
#pd-studio.pd-adaptive-designer .pd-ruler-overlay{left:0!important;right:0!important}
#pd-studio.pd-adaptive-designer .pd-right #pd-properties{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
}
#pd-studio.pd-adaptive-designer .pd-preflight{flex:none!important;max-height:105px!important;padding:8px 12px!important}
#pd-studio.pd-adaptive-designer .pd-preflight small{display:none}
@media(max-width:1350px){
  #pd-studio.pd-adaptive-designer .pd-body,
  #pd-studio.pd-adaptive-designer.pd-right-hidden .pd-body{grid-template-columns:66px 260px minmax(0,1fr)!important}
  #pd-studio.pd-adaptive-designer.pd-left-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden.pd-right-hidden .pd-body{grid-template-columns:66px minmax(0,1fr)!important}
}
@media(max-width:1030px){
  #pd-studio.pd-adaptive-designer .pd-body,
  #pd-studio.pd-adaptive-designer.pd-right-hidden .pd-body{grid-template-columns:62px 250px minmax(0,1fr)!important}
  #pd-studio.pd-adaptive-designer.pd-left-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden.pd-right-hidden .pd-body{grid-template-columns:62px minmax(0,1fr)!important}
}
@media(max-width:840px){
  #pd-studio.pd-adaptive-designer .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-right-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden.pd-right-hidden .pd-body{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  #pd-studio.pd-adaptive-designer .pd-rail{z-index:15!important}
  #pd-studio.pd-adaptive-designer .pd-left{
    position:absolute!important;z-index:42!important;
    top:0!important;bottom:0!important;left:54px!important;
    width:min(286px,calc(100vw - 61px))!important;
    max-height:100%!important;box-shadow:7px 0 23px #10333b3d!important;
  }
  #pd-studio.pd-adaptive-designer.pd-left-hidden .pd-left{display:none!important}
  #pd-studio.pd-adaptive-designer .pd-panel-edge-left{z-index:46!important}
  #pd-studio.pd-adaptive-designer .pd-right{
    position:fixed!important;z-index:1000!important;
    left:0!important;right:0!important;top:auto!important;bottom:0!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;
    height:min(54dvh,520px)!important;max-height:calc(100dvh - 90px)!important;
    min-height:280px!important;
    border-radius:17px 17px 0 0!important;
    border:1px solid #bdd6d1!important;border-bottom:0!important;
    box-shadow:0 -14px 48px #102d3c56!important;
  }
  #pd-studio.pd-adaptive-designer .pd-right .pd-panel-title{
    cursor:default;height:54px!important;padding-left:18px!important;
  }
  #pd-studio.pd-adaptive-designer .pd-right .pd-panel-title::before{
    content:'';position:absolute;top:5px;left:calc(50% - 20px);
    width:40px;height:4px;border-radius:4px;background:#aac3bf;
  }
  #pd-studio.pd-adaptive-designer .pd-adaptive-move-hint{display:none!important}
  #pd-studio.pd-adaptive-designer .pd-right #pd-properties{padding:12px 16px 18px!important}
  #pd-studio.pd-adaptive-designer .pd-preflight{max-height:75px!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls{gap:5px!important;padding:2px 5px!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls>div{gap:5px!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls>div:first-child>span{display:none}
  #pd-studio.pd-adaptive-designer .pd-work-controls select{width:59px!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls .pd-mini{padding:4px 5px!important}
  #pd-studio.pd-adaptive-designer .pd-adaptive-properties-toggle{padding:5px 7px!important}
  #pd-studio.pd-adaptive-designer .pd-ruler-overlay{left:0!important}
}
@media(max-width:480px){
  #pd-studio.pd-adaptive-designer .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-right-hidden .pd-body,
  #pd-studio.pd-adaptive-designer.pd-left-hidden.pd-right-hidden .pd-body{grid-template-columns:51px minmax(0,1fr)!important}
  #pd-studio.pd-adaptive-designer .pd-left{left:51px!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls label{display:none!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls{height:42px!important;overflow:hidden;flex-wrap:nowrap!important}
  #pd-studio.pd-adaptive-designer .pd-work-controls>div:first-child button{display:none}
  #pd-studio.pd-adaptive-designer .pd-adaptive-properties-toggle span:last-child{display:inline!important}
  #pd-studio.pd-adaptive-designer .pd-bottom{height:74px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  #pd-studio.pd-adaptive-designer .pd-bottom .pd-page-tabs canvas{width:46px!important;height:31px!important}
  #pd-studio.pd-adaptive-designer .pd-bottom .pd-zoom input{max-width:60px!important}
  #pd-studio.pd-adaptive-designer .pd-topbar{padding:5px 7px!important}
  #pd-studio.pd-adaptive-designer .pd-top-product strong{max-width:110px!important}
  #pd-studio.pd-adaptive-designer .pd-top-actions{gap:4px!important}
}
/* Keep the page at the top of the scrollable canvas on short phone screens. */
#pd-studio.pd-adaptive-designer #pd-art-wrapper.pd-canvas-grid{
  align-self:flex-start!important;
  margin-top:0!important;margin-bottom:0!important;
  margin-left:auto!important;margin-right:auto!important;
}
/* Keep essential Save/Preview actions available on touch screens. */
@media(max-width:840px){
  #pd-studio.pd-adaptive-designer{--pd-rail-edge-width:54px;--pd-tools-edge-width:min(286px,calc(100vw - 61px))}
  #pd-studio.pd-adaptive-designer .pd-top-actions .pd-button.secondary{
    display:inline-flex!important;padding:7px 8px!important;font-size:11px!important;
  }
  #pd-studio.pd-adaptive-designer .pd-top-actions .pd-button.primary{
    padding:8px 9px!important;font-size:11px!important;
  }
  #pd-studio.pd-adaptive-designer .pd-top-actions{gap:4px!important}
  #pd-studio.pd-adaptive-designer .pd-save-state{display:none!important}
  #pd-studio.pd-adaptive-designer .pd-top-product strong{max-width:135px!important}
}
@media(max-width:480px){
  #pd-studio.pd-adaptive-designer{--pd-rail-edge-width:51px;--pd-tools-edge-width:min(286px,calc(100vw - 61px))}
  #pd-studio.pd-adaptive-designer .pd-top-actions .pd-button.secondary{
    padding:7px 5px!important;font-size:10px!important;
  }
  #pd-studio.pd-adaptive-designer .pd-top-actions .pd-button.primary{
    padding:8px 6px!important;font-size:10px!important;
  }
  #pd-studio.pd-adaptive-designer .pd-top-product{gap:5px!important}
  #pd-studio.pd-adaptive-designer .pd-back{padding:4px 6px!important}
  #pd-studio.pd-adaptive-designer .pd-top-product strong{max-width:86px!important}
  #pd-studio.pd-adaptive-designer .pd-top-product small{max-width:100px!important}
}
