/* iBlogger v144 — profile image quality, readable locked labels and contained circular brand avatars.
   Scoped to the blogger profile page; does not change other site pages. */

@media (min-width: 901px) {
  #desktopProfileRedesign .ibd-review-card {
    overflow: hidden !important;
  }
  #desktopProfileRedesign .ibd-review-top {
    align-items: center !important;
    min-height: 48px !important;
    gap: 8px !important;
  }
  #desktopProfileRedesign .ibd-review-brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 8px !important;
    max-width: calc(100% - 64px) !important;
    align-items: center !important;
  }
  #desktopProfileRedesign .ibd-review-brand img {
    display: block !important;
    box-sizing: border-box !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex: 0 0 46px !important;
    padding: 2px !important;
    border: 1px solid #e6e9f1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    object-fit: contain !important;
    object-position: center !important;
    box-shadow: 0 2px 7px rgba(32, 43, 75, .10) !important;
    overflow: hidden !important;
  }
  #desktopProfileRedesign .ibd-review-brand > div {
    min-width: 0 !important;
  }
  #desktopProfileRedesign .ibd-work-item img {
    width: 100% !important;
    height: 123px !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 1px solid rgba(225, 229, 240, .9) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 7px rgba(28, 34, 51, .12) !important;
    image-rendering: auto !important;
  }
  #desktopProfileRedesign .ibd-chart-label {
    right: 8px !important;
    left: 8px !important;
    bottom: 16px !important;
    color: #24233f !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 17px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.95) !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
  }
  #desktopProfileRedesign .ibd-summary-label {
    max-width: calc(100% - 34px) !important;
    color: #292642 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.95) !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
  }
}

@media (max-width: 900px) {
  /* Restore live HTML text and vector locks instead of using flattened, low-resolution chart screenshots. */
  #mobileImportedProfile .ibm-chart-card {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #e0e5f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(52,67,110,.05) !important;
  }
  #mobileImportedProfile .ibm-chart-card:first-child,
  #mobileImportedProfile .ibm-chart-card:nth-child(2) {
    background: #fff !important;
    background-image: none !important;
  }
  #mobileImportedProfile .ibm-chart-card > :not(.ibm-chart-hit) {
    opacity: 1 !important;
  }
  #mobileImportedProfile .ibm-chart-heading {
    position: relative !important;
    z-index: 2 !important;
    opacity: 1 !important;
  }
  #mobileImportedProfile .ibm-chart-surface {
    opacity: .48 !important;
    filter: blur(2.5px) !important;
  }
  #mobileImportedProfile .ibm-chart-lock {
    z-index: 3 !important;
    opacity: 1 !important;
  }
  #mobileImportedProfile .ibm-chart-locked-label {
    z-index: 4 !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }
  #mobileImportedProfile .ibm-chart-hit {
    z-index: 5 !important;
    opacity: 0 !important;
  }
  #mobileImportedProfile .ibm-performance-summary {
    background: #fff !important;
    border: 1px solid #e0e5f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(52,67,110,.05) !important;
  }
  #mobileImportedProfile .ibm-performance-summary > * {
    opacity: 1 !important;
  }
  #mobileImportedProfile .ibm-performance-summary h2 {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    overflow: visible !important;
  }
  #mobileImportedProfile .ibm-performance-summary h2 span {
    display: inline-block !important;
    width: auto !important;
    transform: none !important;
    transform-origin: center !important;
    white-space: nowrap !important;
  }
  #mobileImportedProfile .ibm-performance-summary h2 .ibm-summary-bars-icon {
    display: block !important;
    position: static !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 7px !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
  }
  #mobileImportedProfile .ibm-summary-ghosts {
    opacity: .52 !important;
    filter: blur(4px) !important;
  }
  #mobileImportedProfile .ibm-summary-lock {
    opacity: 1 !important;
    z-index: 2 !important;
  }
  #mobileImportedProfile .ibm-summary-label {
    opacity: 1 !important;
    z-index: 3 !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    text-align: center !important;
  }

  /* Keep mobile brand marks inside the review card's first grid column. */
  #mobileImportedProfile .ibm-review {
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    align-items: center !important;
    grid-template-columns: 56px minmax(0, 1fr) 66px !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
  #mobileImportedProfile .ibm-review:nth-child(n+1) .ibm-brand-icon {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 1px solid #e4e8f1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(32, 43, 75, .09) !important;
    overflow: hidden !important;
    transform: none !important;
  }
  #mobileImportedProfile .ibm-review:nth-child(n+1) .ibm-brand-icon img {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    padding: 1px !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  #mobileImportedProfile .ibm-work-item img {
    image-rendering: auto !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  #mobileImportedProfile .ibm-chart-locked-label {
    right: 5px !important;
    left: 5px !important;
    bottom: 6px !important;
    max-width: calc(100% - 10px) !important;
    box-sizing: border-box !important;
    padding: 3px 4px !important;
    border-radius: 6px !important;
    background: rgba(255,255,255,.88) !important;
    color: #433b60 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: clamp(8.8px, 2.5vw, 9.8px) !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.95) !important;
    -webkit-font-smoothing: antialiased !important;
    transform: none !important;
  }
  #mobileImportedProfile .ibm-summary-label {
    right: 8px !important;
    left: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    background: rgba(255,255,255,.82) !important;
    color: #403957 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: clamp(9.2px, 2.6vw, 10.2px) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
  }
}

@media (max-width: 360px) {
  #mobileImportedProfile .ibm-review {
    grid-template-columns: 52px minmax(0, 1fr) 62px !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
  #mobileImportedProfile .ibm-review:nth-child(n+1) .ibm-brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  #mobileImportedProfile .ibm-chart-locked-label {
    font-size: 8.8px !important;
    line-height: 11px !important;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  #desktopProfileRedesign .ibd-review-card { overflow: hidden !important; }
  #desktopProfileRedesign .ibd-review-brand img {
    width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important;
    flex: 0 0 40px !important; padding: 2px !important; border: 1px solid #e6e9f1 !important;
    border-radius: 50% !important; background: #fff !important; object-fit: contain !important;
    box-shadow: 0 2px 6px rgba(32,43,75,.09) !important; overflow: hidden !important;
  }
  #desktopProfileRedesign .ibd-chart-label {
    font-size: 11.2px !important; line-height: 15px !important; font-weight: 800 !important;
    color: #24233f !important; white-space: nowrap !important; text-shadow: 0 1px 0 #fff !important;
  }
  #desktopProfileRedesign .ibd-summary-label {
    font-size: 11.5px !important; line-height: 15px !important; font-weight: 800 !important;
    color: #292642 !important; white-space: nowrap !important;
  }
}
