/* Bizgora Market Report surfaces in the desktop app: the listing-page report
   card (bz-report-card) and Brand Studio at /pro/brand (bz-brand-studio__*).
   Everything else reuses app.css primitives. */

/* ---- Listing detail: Market Report card ---- */
.bz-report-card { display: grid; gap: 14px; padding: 16px; scroll-margin-top: 96px; transition: box-shadow .2s ease; }
.bz-report-card.is-highlight { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bz-accent1) 35%, transparent); }
.bz-report-card:focus { outline: none; }
.bz-report-card__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.bz-report-card__thumb {
  width: 96px; aspect-ratio: 8.5 / 11; border-radius: 6px; overflow: hidden;
  background: var(--bz-bg-grouped); border: 1px solid var(--bz-separator);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(17, 24, 39, .12);
}
.bz-report-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-report-card__thumb-icon { color: var(--bz-text-tertiary); }
.bz-report-card__body { min-width: 0; display: grid; gap: 4px; }
.bz-report-card__body .bz-section-card__lede { margin: 0; }
.bz-report-card__note { margin: 0; font-size: 12px; color: var(--bz-text-tertiary); }
.bz-report-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bz-report-card__cta .bz-spinner { width: 16px; height: 16px; border-width: 2px; }
.bz-report-card__cta:disabled { opacity: .75; cursor: progress; }

.bz-report-kicker {
  margin-left: auto; background: none; border: 0; padding: 4px 0; cursor: pointer;
  white-space: nowrap; align-self: center;
}
.bz-report-kicker:hover { text-decoration: underline; }

/* ---- /pro dashboard ---- */
.bz-pro-listing-pill--report {
  background: #fff; color: #2b2f36; box-shadow: inset 0 0 0 1.5px #2b2f36;
  display: inline-flex; align-items: center; gap: 5px;
}
.bz-pro-listing-pill--report:hover:not(:disabled) { background: #f3f4f6; }
.bz-pro-listing-pill--report:disabled { opacity: .6; cursor: progress; }
.bz-pro-listing-meta { font-size: 12px; color: var(--bz-text-tertiary); margin-top: 6px; }
.bz-brand-swatches { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 6px; }
.bz-brand-swatches > span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* ---- Brand Studio (/pro/brand) ---- */
.bz-brand-studio { max-width: 1240px; margin: 0 auto; padding: 0 24px 120px; }
.bz-brand-studio__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.bz-brand-studio__controls { display: grid; gap: 16px; }
.bz-brand-studio__controls .bz-section-card { padding: 18px; display: grid; gap: 14px; }

.bz-brand-studio__notice { padding: 12px 14px; border-radius: 10px; background: var(--bz-bg-grouped); font-size: 13px; }

.bz-brand-studio__logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bz-brand-studio__drop {
  position: relative; display: grid; place-items: center; gap: 6px; min-height: 108px; padding: 12px;
  border: 1.5px dashed rgba(0,0,0,.18); border-radius: 12px; cursor: pointer;
  text-align: center; font-size: 12px; color: var(--bz-text-tertiary); background: #fff;
}
.bz-brand-studio__drop.is-dark { background: #1f2329; color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }
.bz-brand-studio__drop.is-over { border-color: var(--bz-accent1); }
.bz-brand-studio__drop img { max-width: 100%; max-height: 56px; object-fit: contain; }
.bz-brand-studio__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bz-brand-studio__drop img[hidden], .bz-brand-studio__drop-clear[hidden] { display: none; }
.bz-brand-studio__drop-clear { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.06); border: 0; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; z-index: 1; }
.bz-brand-studio__hint { margin: 0; font-size: 12px; color: var(--bz-text-tertiary); }

.bz-brand-studio__palettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bz-brand-studio__palette { display: grid; gap: 6px; justify-items: center; padding: 8px 4px; font-size: 11px; line-height: 1.2; text-align: center; border-radius: 12px; height: auto; }
.bz-chip.bz-brand-studio__palette.is-selected {
  background: color-mix(in srgb, var(--bz-accent1) 8%, #fff); color: inherit;
  border-color: var(--bz-accent1); box-shadow: 0 0 0 2px var(--bz-accent1);
}
.bz-brand-studio__palette-dots { display: inline-flex; }
.bz-brand-studio__palette-dots > span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.bz-brand-studio__palette-dots > span + span { margin-left: -7px; }

.bz-brand-studio__hex-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bz-brand-studio__hex-row label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.bz-brand-studio__hex-swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.12); flex: none; }
.bz-brand-studio__warning { margin: 0; font-size: 12px; color: #9a5b00; }

.bz-brand-studio__covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bz-brand-studio__cover {
  display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1.5px solid var(--bz-separator);
  background: #fff; cursor: pointer; text-align: left; font-size: 12px; font-weight: 600;
}
.bz-brand-studio__cover svg { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bz-brand-studio__cover.is-selected { border-color: var(--brand-accent, #e8a33d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent, #e8a33d) 30%, transparent); }
.bz-brand-studio__cover:focus-visible { outline: 2px solid var(--bz-accent1); outline-offset: 2px; }

.bz-brand-studio__preview { position: sticky; top: 88px; display: grid; gap: 12px; }
.bz-brand-studio__preview-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bz-brand-studio__preview-bar .bz-select { max-width: 280px; }
.bz-brand-studio__paper {
  position: relative; width: 100%; max-width: calc((100vh - 300px) * 8.5 / 11); justify-self: center;
  aspect-ratio: 8.5 / 11; overflow: hidden; border-radius: 6px;
  background: #fff; box-shadow: 0 18px 50px rgba(17, 24, 39, .18), 0 2px 6px rgba(17, 24, 39, .08);
}
.bz-brand-studio__paper iframe { position: absolute; top: 0; left: 0; width: 816px; height: 4224px; border: 0; transform-origin: 0 0; }
.bz-brand-studio__paper.is-loading::after {
  content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55);
}

.bz-brand-studio__footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96);
  border-top: 1px solid var(--bz-separator); backdrop-filter: blur(8px);
}
.bz-brand-studio__footer-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.bz-brand-studio__footer-status { margin-right: auto; font-size: 13px; color: var(--bz-text-tertiary); display: flex; align-items: center; gap: 10px; min-width: 0; }
.bz-brand-studio__footer-status .bz-meter { width: 160px; }
