/* Creation screen layout only. Keep page identity in the shared top bar and
   use the remaining viewport for the complete two-by-four tool grid. */
.topbar {
  justify-content: space-between !important;
}

.topbar > .topbar-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.topbar-title-copy,
.topbar #pageTitle {
  display: block !important;
}

.topbar #pageEyebrow {
  display: none !important;
}

.topbar #pageTitle {
  margin: 0 !important;
  text-align: left !important;
}

.topbar-title-copy {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.product-signature {
  margin-left: auto !important;
}

/* The top bar is the sole title for the creation screen. */
#toolkitView .toolkit-header {
  display: none !important;
}

body:has(#toolkitView.active) #installGuide {
  display: none !important;
}

@media (max-width: 680px) {
  #toolkitView {
    min-height: 0 !important;
    margin-top: 12px !important;
  }

  #toolkitView .toolkit-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
    height: calc(100dvh - 208px) !important;
    gap: 8px !important;
  }

  #toolkitView .tool-card,
  #toolkitView .tool-card.brand-ad-tool {
    min-height: 0 !important;
    height: auto !important;
    padding: 11px !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr auto !important;
    column-gap: 8px !important;
  }

  #toolkitView .tool-card .tool-index {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 20px !important;
  }

  #toolkitView .tool-card i {
    right: 10px !important;
    top: 10px !important;
    font-size: 16px !important;
  }

  #toolkitView .tool-card strong {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: end !important;
    margin: 0 !important;
    padding-right: 20px !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
  }

  #toolkitView .tool-card small {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    min-height: 0 !important;
    margin-top: 4px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 380px) {
  #toolkitView .toolkit-grid {
    height: calc(100dvh - 194px) !important;
    gap: 6px !important;
  }

  #toolkitView .tool-card,
  #toolkitView .tool-card.brand-ad-tool {
    padding: 9px !important;
  }

  #toolkitView .tool-card strong {
    font-size: 12px !important;
  }

  #toolkitView .tool-card small {
    font-size: 8px !important;
  }
}


/* workbench-v230-mobile */
@media (max-width:680px){
  #toolkitView .toolkit-grid{height:min(58dvh,calc(100dvh - 246px))!important}
  #toolkitView .tool-card strong{font-size:clamp(11px,3.35vw,13px)!important}
  #toolkitView .tool-card small{display:-webkit-box!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
  #toolkitView .tool-card-rank{top:11px!important;right:31px!important;bottom:auto!important;font-size:11px!important;line-height:1!important;pointer-events:none}
}
@media (max-width:380px){
  #toolkitView .toolkit-grid{height:calc(100dvh - 216px)!important}
  #toolkitView .tool-card small{font-size:11px!important}
  #toolkitView .tool-card-rank{right:28px!important;font-size:11px!important}
}
