/* Branding Works Studio 1 productisation layer. Loaded after studio0.css. */
:root {
  --bw-ready: #2f6b55;
  --bw-review: #a56524;
  --bw-blocked: #a33c35;
  --bw-blue: #315f78;
}

.bw-studio1-hero { position: relative; overflow: hidden; }
.bw-studio1-hero:after {
  content: "ABW-STUDIO1";
  position: absolute;
  right: 22px;
  bottom: 14px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
}
.bw-hero-quality {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(16,47,44,.15);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.bw-onboarding-card,
.bw-journey-strip,
.bw-authority-note,
.bw-commerce-bridge {
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius);
  background: var(--bw-paper);
  box-shadow: 0 12px 34px rgba(16,47,44,.06);
  margin: 0 0 22px;
}
.bw-onboarding-card {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.bw-onboarding-card.guest { background: #fbf5ea; border-color: #e9d5b8; }
.bw-onboarding-card.claim { background: #edf5ef; border-color: #c7ddcd; }
.bw-onboarding-card small,
.bw-settings-card > small,
.bw-commerce-bridge > div > small {
  display: block;
  margin-bottom: 6px;
  color: var(--bw-copper);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.bw-onboarding-card h2,
.bw-settings-card h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.bw-onboarding-card p { margin: 0; max-width: 720px; color: var(--bw-muted); font-size: 11px; line-height: 1.65; }
.bw-inline-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bw-inline-form input,
.bw-inline-form select,
.bw-list-toolbar select,
.bw-modal-form input,
.bw-modal-form select,
.bw-modal-form textarea,
.bw-settings-card input,
.bw-settings-card select {
  min-height: 42px;
  border: 1px solid var(--bw-line);
  border-radius: 11px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  font-size: 11px;
}
.bw-modal-form textarea { min-height: 90px; padding-top: 11px; resize: vertical; }
.bw-inline-form input:focus,
.bw-inline-form select:focus,
.bw-list-toolbar select:focus,
.bw-modal-form input:focus,
.bw-modal-form select:focus,
.bw-modal-form textarea:focus,
.bw-settings-card input:focus,
.bw-settings-card select:focus { border-color: var(--bw-copper); box-shadow: 0 0 0 3px rgba(212,138,70,.12); }

.bw-journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(260px, 2fr);
  padding: 16px 20px;
  align-items: center;
  gap: 10px;
}
.bw-journey-strip > span { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 850; }
.bw-journey-strip > span b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bw-soft); }
.bw-journey-strip > span.done b { background: var(--bw-ink); color: #fff; }
.bw-journey-strip p { margin: 0; color: var(--bw-muted); font-size: 10px; line-height: 1.5; }

.bw-project-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-project-filters { align-items: center; }
.bw-project-filters .bw-search { flex: 1 1 320px; }
.bw-checkbox { display: inline-flex !important; align-items: center; gap: 8px; font-size: 10px; font-weight: 750; cursor: pointer; }
.bw-checkbox input { width: 17px !important; height: 17px !important; min-height: 0 !important; accent-color: var(--bw-ink); }
.bw-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.bw-pagination button { border: 1px solid var(--bw-line); background: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: 10px; font-weight: 800; }
.bw-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.bw-pagination span { font-size: 9px; color: var(--bw-muted); }

.bw-quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bw-soft);
  color: var(--bw-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.bw-quality-badge.ready { background: #e5f3e9; color: var(--bw-ready); }
.bw-quality-badge.needs_review { background: #fbefdd; color: var(--bw-review); }
.bw-quality-badge.blocked { background: #f8e4e2; color: var(--bw-blocked); }

.bw-brand-kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bw-brand-kit-card {
  padding: 18px;
  border: 1px solid var(--bw-line);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
.bw-brand-kit-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.bw-brand-kit-head small { color: var(--bw-copper); font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.bw-brand-kit-head h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.bw-brand-kit-head > span { color: var(--bw-muted); font-size: 8px; }
.bw-swatch-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 16px 0 12px; min-height: 28px; }
.bw-swatch-row i,
.bw-swatch-row button,
.bw-brand-swatches button {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--bw-line);
  border-radius: 9px;
  cursor: pointer;
}
.bw-swatch-row em { color: var(--bw-muted); font-size: 9px; }
.bw-brand-kit-card > p { min-height: 34px; color: var(--bw-muted); font-size: 10px; line-height: 1.6; }
.bw-brand-assets { display: flex; gap: 8px; min-height: 58px; align-items: center; margin: 12px 0; }
.bw-brand-assets > img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--bw-line); border-radius: 10px; background: #fafafa; }
.bw-brand-assets > span { color: var(--bw-muted); font-size: 9px; }
.bw-brand-assets.manage { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.bw-brand-assets.manage figure { margin: 0; border: 1px solid var(--bw-line); border-radius: 12px; padding: 8px; }
.bw-brand-assets.manage img { display: block; width: 100%; height: 84px; object-fit: contain; }
.bw-brand-assets.manage figcaption { display: grid; gap: 5px; font-size: 8px; }
.bw-brand-assets.manage button { border: 0; background: none; color: var(--bw-danger); text-align: left; padding: 0; cursor: pointer; }

.bw-modal-backdrop.bw-studio1-modal-backdrop { padding: 22px; overflow-y: auto; align-items: flex-start; }
.bw-studio1-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: none;
  margin: 5vh auto;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(16,47,44,.32);
}
.bw-studio1-modal.wide { width: min(820px, 100%); }
.bw-studio1-modal h2 { margin: 7px 0 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.bw-studio1-modal h3 { margin: 18px 0 10px; font-size: 13px; }
.bw-studio1-modal p { color: var(--bw-muted); font-size: 11px; line-height: 1.65; }
.bw-studio1-modal hr { border: 0; border-top: 1px solid var(--bw-line); margin: 24px 0; }
.bw-modal-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bw-soft); cursor: pointer; font-weight: 900; }
.bw-modal-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bw-ink); color: #fff; font-size: 11px; font-weight: 900; }
.bw-modal-form { display: grid; gap: 13px; margin-top: 18px; }
.bw-modal-form label,
.bw-settings-card label { display: grid; gap: 6px; font-size: 9px; font-weight: 850; }
.bw-modal-form label small { color: var(--bw-muted); font-weight: 500; }
.bw-checkbox-grid { display: flex; gap: 14px; flex-wrap: wrap; padding: 11px; border-radius: 11px; background: var(--bw-bg); }
.bw-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.bw-modal-footnote { display: block; color: var(--bw-muted); font-size: 8px; margin-top: 16px; }

.bw-table-wrap { overflow-x: auto; border: 1px solid var(--bw-line); border-radius: 16px; background: #fff; }
.bw-data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.bw-data-table th { padding: 11px 14px; text-align: left; font-size: 7px; text-transform: uppercase; letter-spacing: .13em; color: var(--bw-muted); background: #faf9f6; }
.bw-data-table td { padding: 13px 14px; border-top: 1px solid var(--bw-line); font-size: 10px; }
.bw-data-table td:first-child { display: flex; align-items: center; gap: 9px; }
.bw-data-table td:first-child strong,
.bw-data-table td:first-child small { display: block; }
.bw-data-table td:first-child small { color: var(--bw-muted); font-size: 7px; margin-top: 3px; }
.bw-data-table button { border: 0; background: none; color: var(--bw-danger); cursor: pointer; font-size: 9px; font-weight: 800; }
.bw-data-table a { color: var(--bw-ink); font-weight: 850; }
.bw-format-badge { display: inline-grid; place-items: center; min-width: 42px; min-height: 26px; border-radius: 8px; background: var(--bw-ink); color: #fff; font-size: 8px; font-weight: 900; }
.bw-avatar.small { width: 30px; height: 30px; border-radius: 10px; color: #fff; }

.bw-settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 28px; }
.bw-settings-card { padding: 22px; border: 1px solid var(--bw-line); border-radius: 16px; background: #fff; display: grid; gap: 12px; }
.bw-usage-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bw-line); font-size: 10px; }
.bw-usage-line span { color: var(--bw-muted); }
.bw-member-form { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--bw-line); border-radius: 14px; }

.bw-authority-note { padding: 18px 20px; margin-top: 22px; background: #f8f6f0; }
.bw-authority-note strong { font-size: 11px; }
.bw-authority-note p { margin: 5px 0 0; color: var(--bw-muted); font-size: 10px; line-height: 1.6; }
.bw-commerce-bridge { padding: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; }
.bw-commerce-bridge h1 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 62px); font-weight: 500; line-height: .98; }
.bw-commerce-bridge p { max-width: 650px; color: var(--bw-muted); font-size: 12px; line-height: 1.7; }
.bw-commerce-bridge ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bw-commerce-bridge li { display: flex; gap: 12px; align-items: center; padding: 13px; border-radius: 13px; background: var(--bw-bg); font-size: 10px; font-weight: 800; }
.bw-commerce-bridge li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--bw-ink); color: #fff; }

.bw-studio1-designer-head { gap: 6px; padding-left: 12px; padding-right: 12px; }
.bw-studio1-designer-head .bw-button-ghost,
.bw-studio1-designer-head .bw-button,
.bw-studio1-designer-head .bw-icon-button { min-height: 34px; padding: 0 10px; font-size: 8px; }
.bw-designer-head-offset { padding-top: 74px; }
.bw-studio1-designer-head #bw-quality-badge { display: inline-flex; }
.bw-designer-tabs { overflow-x: auto; }
.bw-designer-tabs button { min-width: 54px; }
.bw-brand-swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bw-brand-swatches small { width: 100%; color: var(--bw-muted); font-size: 8px; }
.bw-kit-summary { margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--bw-bg); }
.bw-kit-summary p { color: var(--bw-muted); font-size: 9px; line-height: 1.5; }
.bw-kit-assets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.bw-kit-assets button { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--bw-line); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; font-size: 8px; }
.bw-kit-assets img { width: 34px; height: 34px; object-fit: contain; }
.bw-inline-link { display: inline-block; margin-top: 12px; color: var(--bw-ink); font-size: 9px; font-weight: 850; }
.bw-muted { color: var(--bw-muted); font-size: 9px; line-height: 1.5; }
.bw-product-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.bw-product-specs span { border-radius: 999px; background: var(--bw-bg); padding: 6px 8px; font-size: 7px; font-weight: 800; }

.bw-studio1-preflight { display: grid; gap: 9px; }
.bw-studio1-preflight > span:not(.bw-quality-badge) { color: inherit; font-size: 9px; line-height: 1.55; }
.bw-studio1-preflight button { border: 0; border-radius: 9px; padding: 9px; background: rgba(255,255,255,.78); cursor: pointer; font-size: 8px; font-weight: 900; }
.bw-studio1-preflight.ready { background: #e5f3e9; color: var(--bw-ready); }
.bw-studio1-preflight.needs_review { background: #fbefdd; color: var(--bw-review); }
.bw-studio1-preflight.blocked { background: #f8e4e2; color: var(--bw-blocked); }
.bw-preflight-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.bw-preflight-summary-grid span { padding: 13px; border-radius: 12px; background: var(--bw-bg); font-size: 8px; }
.bw-preflight-summary-grid b { display: block; font-size: 16px; margin-bottom: 3px; }
.bw-issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bw-issue-list li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; border-radius: 12px; padding: 11px; background: var(--bw-bg); font-size: 9px; line-height: 1.5; }
.bw-issue-list li.blocker { background: #f8e4e2; color: var(--bw-blocked); }
.bw-issue-list li.warning { background: #fbefdd; color: var(--bw-review); }
.bw-issue-list li.ready { background: #e5f3e9; color: var(--bw-ready); }

.bw-version-list,
.bw-share-list { display: grid; gap: 8px; margin-top: 16px; max-height: 390px; overflow-y: auto; }
.bw-version-list article,
.bw-share-list article { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--bw-line); border-radius: 12px; }
.bw-version-list article.current { border-color: var(--bw-ready); background: #f0f7f2; }
.bw-version-list article > span { width: 42px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--bw-ink); color: #fff; font-size: 9px; font-weight: 900; }
.bw-version-list article > div,
.bw-share-list article > div { flex: 1; min-width: 0; }
.bw-version-list strong,
.bw-version-list small,
.bw-share-list strong,
.bw-share-list small { display: block; }
.bw-version-list small,
.bw-share-list small { color: var(--bw-muted); font-size: 8px; margin-top: 3px; }
.bw-version-list button,
.bw-share-list button { border: 0; border-radius: 8px; padding: 7px 9px; background: var(--bw-soft); cursor: pointer; font-size: 8px; font-weight: 850; }

.bw-export-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.bw-export-option { display: grid; gap: 5px; min-height: 130px; align-content: center; text-align: left; border: 1px solid var(--bw-line); border-radius: 14px; background: #fff; padding: 15px; cursor: pointer; }
.bw-export-option:hover { border-color: var(--bw-copper); box-shadow: 0 9px 25px rgba(16,47,44,.08); }
.bw-export-option:disabled { opacity: .45; cursor: not-allowed; }
.bw-export-option b { font-size: 18px; }
.bw-export-option span { font-size: 10px; }
.bw-export-option small { color: var(--bw-muted); font-size: 8px; }
.bw-authority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.bw-authority-grid span { padding: 13px; border-radius: 12px; background: #edf5ef; color: var(--bw-ready); font-size: 9px; }
.bw-authority-grid b { display: block; font-size: 15px; }

.bw-review-page { min-height: 100vh; background: #ede9df; color: var(--bw-ink); }
.bw-review-page > header { height: 78px; padding: 0 4vw; background: var(--bw-ink); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.bw-review-page > header .bw-sidebar-brand { padding: 0; }
.bw-review-page > header > span { color: #abc1bd; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.bw-review-layout { width: min(1280px, 94vw); margin: 0 auto; padding: 36px 0 50px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.65fr); gap: 24px; align-items: start; }
.bw-review-art,
.bw-review-panel { border: 1px solid var(--bw-line); border-radius: 20px; background: #fff; box-shadow: 0 16px 45px rgba(16,47,44,.08); }
.bw-review-art { padding: 24px; }
.bw-review-title small { color: var(--bw-copper); font-size: 8px; text-transform: uppercase; font-weight: 900; letter-spacing: .14em; }
.bw-review-title h1 { margin: 5px 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 50px); font-weight: 500; }
.bw-review-title p { color: var(--bw-muted); font-size: 9px; }
.bw-review-art figure { margin: 20px 0; min-height: 400px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: var(--bw-bg); }
.bw-review-art figure img { max-width: 100%; max-height: 72vh; display: block; object-fit: contain; }
.bw-review-panel { padding: 22px; display: grid; gap: 22px; }
.bw-review-panel > section { border-bottom: 1px solid var(--bw-line); padding-bottom: 18px; }
.bw-review-panel h2 { margin: 4px 0; font-family: Georgia, serif; font-weight: 500; }
.bw-review-comments { display: grid; gap: 8px; }
.bw-review-comments article { padding: 11px; border-radius: 12px; background: var(--bw-bg); }
.bw-review-comments article p { margin: 5px 0; font-size: 10px; line-height: 1.5; }
.bw-review-comments article small { color: var(--bw-muted); font-size: 7px; }
.bw-review-page > footer { padding: 20px; background: var(--bw-ink); color: #8ca8a3; text-align: center; font-size: 8px; letter-spacing: .1em; }
.bw-review-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px; }
.bw-review-error > span { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--bw-ink); color: #fff; font-weight: 900; }
.bw-review-error h1 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.bw-review-error p { max-width: 520px; color: var(--bw-muted); }

@media (max-width: 1180px) {
  .bw-studio1-designer-head #bw-quality-badge,
  .bw-studio1-designer-head #bw-versions,
  .bw-studio1-designer-head #bw-share { display: none; }
  .bw-brand-kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-journey-strip { grid-template-columns: repeat(4, 1fr); }
  .bw-journey-strip p { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .bw-onboarding-card { align-items: stretch; flex-direction: column; }
  .bw-onboarding-card .bw-inline-form { display: grid; grid-template-columns: 1fr; width: 100%; }
  .bw-journey-strip { grid-template-columns: repeat(2, 1fr); }
  .bw-project-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-brand-kit-grid { grid-template-columns: 1fr; }
  .bw-settings-grid,
  .bw-commerce-bridge,
  .bw-review-layout { grid-template-columns: 1fr; }
  .bw-export-options,
  .bw-authority-grid { grid-template-columns: 1fr; }
  .bw-brand-assets.manage { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bw-review-layout { width: min(94vw, 760px); }
  .bw-review-art figure { min-height: 260px; }
  .bw-studio1-designer-head #bw-preflight-run,
  .bw-studio1-designer-head #bw-quote { display: none; }
}

@media (max-width: 560px) {
  .bw-project-grid.compact { grid-template-columns: 1fr; }
  .bw-onboarding-card,
  .bw-commerce-bridge,
  .bw-studio1-modal { padding: 18px; }
  .bw-journey-strip { grid-template-columns: 1fr 1fr; padding: 14px; }
  .bw-form-pair { grid-template-columns: 1fr; }
  .bw-preflight-summary-grid { grid-template-columns: 1fr; }
  .bw-issue-list li { grid-template-columns: 1fr; }
  .bw-brand-assets.manage { grid-template-columns: 1fr 1fr; }
  .bw-review-page > header > span { display: none; }
  .bw-review-layout { padding-top: 18px; }
  .bw-review-art,
  .bw-review-panel { border-radius: 14px; padding: 15px; }
  .bw-studio1-designer-head .bw-title-input { max-width: 38vw; }
  .bw-studio1-designer-head #bw-export { display: none; }
  .bw-studio1-designer-head .bw-icon-button { display: none; }
}
