.f15-brand-tool,
.f15-brand-guide {
  --f15-blue: #2563eb;
  --f15-blue-hover: #1d4ed8;
  --f15-blue-soft: #eef4ff;
  --f15-text: #1f2937;
  --f15-heading: #111827;
  --f15-muted: #6b7280;
  --f15-border: #dcdcde;
  --f15-field-border: #cfd7e3;
  --f15-soft: #f6f7f7;
  --f15-success-bg: #edfaef;
  --f15-success-text: #116329;
  --f15-warn-bg: #fff7e6;
  --f15-warn-text: #8a5a00;
  --f15-danger-bg: #fdecec;
  --f15-danger-text: #8a1f11;
  color: var(--f15-text);
  font: inherit;
}

.f15-brand-tool *,
.f15-brand-guide * { box-sizing: border-box; }

.f15-brand-tool {
  width: 100%;
  max-width: 1400px;
  margin: 34px auto 72px;
  padding: 0 18px;
}

.f15-brand-tool [hidden] { display: none !important; }

.f15-brand-hero {
  margin: 0 0 22px;
  max-width: 980px;
}

.f15-brand-eyebrow,
.f15-brand-step-kicker,
.f15-brand-label {
  display: block;
  color: #50575e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.f15-brand-eyebrow { margin-bottom: 9px; }

.f15-brand-hero h1 {
  margin: 0 0 10px !important;
  max-width: 920px;
  color: var(--f15-heading) !important;
  font-size: clamp(34px, 4vw, 43px) !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
  line-height: 1.08 !important;
}

.f15-brand-hero-copy {
  max-width: 820px;
  margin: 0 !important;
  color: #5f6b7a;
  font-size: 16px;
  line-height: 1.62;
}

.f15-brand-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  max-width: 920px;
}

.f15-brand-flow-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a828e;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

.f15-brand-flow-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #d8dee8;
  border-radius: 50%;
  background: #fff;
  color: #68707d;
  font-size: 11px;
  font-weight: 700;
}

.f15-brand-flow-item strong { font-weight: 600; }

.f15-brand-flow-item.is-active { color: #1f2937; }
.f15-brand-flow-item.is-active span {
  border-color: var(--f15-blue);
  background: var(--f15-blue);
  color: #fff;
}
.f15-brand-flow-item.is-complete { color: #116329; }
.f15-brand-flow-item.is-complete span {
  border-color: #9fd6ab;
  background: var(--f15-success-bg);
  color: var(--f15-success-text);
}

.f15-brand-flow-line {
  height: 1px;
  min-width: 28px;
  flex: 1 1 70px;
  background: #e0e4ea;
}

.f15-brand-step,
.f15-brand-guide section,
.f15-brand-guide-hero {
  background: #fff;
  border: 1px solid var(--f15-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.f15-brand-step {
  padding: 24px;
  margin: 0 0 20px;
}

.f15-brand-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.f15-brand-step-header > div { max-width: 820px; }

.f15-brand-step-kicker { margin-bottom: 5px; }

.f15-brand-step h2,
.f15-brand-panel h3,
.f15-brand-guide h1,
.f15-brand-guide h2,
.f15-brand-guide h3,
.f15-brand-guide h4 {
  color: var(--f15-heading) !important;
}

.f15-brand-step h2 {
  margin: 0 0 7px !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.015em !important;
}

.f15-brand-step-header p,
.f15-brand-panel-heading p {
  margin: 0 !important;
  color: var(--f15-muted);
  font-size: 14px;
  line-height: 1.5;
}

.f15-brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #dcdcde;
  border-radius: 5px;
  background: #f1f2f4;
  color: #3c434a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.f15-brand-pill-blue {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #315bc6;
}

.f15-brand-grid {
  display: grid;
  gap: 16px;
}

.f15-brand-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f15-brand-span-2 { grid-column: 1 / -1; }
.f15-brand-input-grid { margin-top: 4px; }

.f15-brand-field,
.f15-brand-detect-row,
.f15-brand-color-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-weight: 400;
}

.f15-brand-label em {
  margin-left: 5px;
  color: #9aa1aa;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.f15-brand-field small,
.f15-brand-color-card small,
.f15-brand-detect-row small,
.f15-brand-help,
.f15-brand-preview span {
  color: var(--f15-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.f15-brand-tool input[type="text"],
.f15-brand-tool input[type="url"],
.f15-brand-tool input[type="file"],
.f15-brand-tool select,
.f15-brand-tool textarea {
  width: 100% !important;
  border: 1px solid var(--f15-field-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--f15-text) !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.f15-brand-tool input[type="text"],
.f15-brand-tool input[type="url"],
.f15-brand-tool select,
.f15-brand-tool input[type="file"] {
  min-height: 44px !important;
  padding: 8px 12px !important;
}

.f15-brand-tool textarea {
  min-height: 112px;
  padding: 11px 12px !important;
  resize: vertical;
}

.f15-brand-tool input::placeholder,
.f15-brand-tool textarea::placeholder { color: #9aa1aa; opacity: 1; }

.f15-brand-tool input:focus,
.f15-brand-tool select:focus,
.f15-brand-tool textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
}

.f15-brand-tool input[readonly] {
  background: #f8fafc !important;
  color: #596273 !important;
}

.f15-brand-file { padding: 8px !important; }
.f15-brand-file::file-selector-button {
  margin-right: 10px;
  padding: 6px 11px;
  border: 1px solid #cfd4dc;
  border-radius: 7px;
  background: #f8fafc;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.f15-brand-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.f15-brand-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.f15-brand-actions-start { justify-content: flex-end; margin-top: 18px; }

.f15-brand-primary,
.f15-brand-secondary,
.f15-brand-output-links a {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.f15-brand-primary {
  border: 1px solid var(--f15-blue) !important;
  background: var(--f15-blue) !important;
  color: #fff !important;
}
.f15-brand-primary:hover,
.f15-brand-primary:focus {
  border-color: var(--f15-blue-hover) !important;
  background: var(--f15-blue-hover) !important;
  color: #fff !important;
}

.f15-brand-secondary,
.f15-brand-output-links a {
  border: 1px solid #cfd4dc !important;
  background: #fff !important;
  color: #1f2937 !important;
}
.f15-brand-secondary:hover,
.f15-brand-secondary:focus,
.f15-brand-output-links a:hover,
.f15-brand-output-links a:focus {
  background: #f8fafc !important;
  border-color: #b9c0ca !important;
  color: #111827 !important;
}

.f15-brand-primary:disabled,
.f15-brand-secondary:disabled {
  opacity: .62;
  cursor: wait;
}

.f15-brand-primary.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: f15-brand-spin .7s linear infinite;
}

.f15-brand-status {
  min-height: 0;
  margin-top: 12px;
  color: #596273;
  font-size: 13px;
  line-height: 1.5;
}
.f15-brand-status:empty { margin-top: 0; }
.f15-brand-status.is-loading {
  position: relative;
  padding-left: 23px;
}
.f15-brand-status.is-loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid #cbd5e1;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: f15-brand-spin .7s linear infinite;
}
.f15-brand-status.is-error { color: #b32d2e; }
.f15-brand-status.is-success { color: #116329; }

@keyframes f15-brand-spin { to { transform: rotate(360deg); } }

.f15-brand-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.f15-brand-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 11px 14px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #f6f7f7;
}

.f15-brand-summary-card span {
  color: #50575e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.f15-brand-summary-card strong {
  color: #111827;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.f15-brand-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #e1e5ea;
  scrollbar-width: thin;
}

.f15-brand-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #68707d !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.f15-brand-tabs button:hover { color: #111827 !important; }
.f15-brand-tabs button.is-active { color: var(--f15-blue) !important; }
.f15-brand-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -1px;
  height: 2px;
  background: var(--f15-blue);
  border-radius: 2px 2px 0 0;
}

.f15-brand-panel { display: none; }
.f15-brand-panel.is-active { display: block; }

.f15-brand-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.f15-brand-panel-heading h3 {
  margin: 0 0 4px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.f15-brand-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 88px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #f8fafc;
}
.f15-brand-preview img {
  display: block;
  max-width: 280px;
  max-height: 90px;
  object-fit: contain;
}

.f15-brand-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.f15-brand-color-card {
  display: grid !important;
  grid-template-columns: auto 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  padding: 11px 12px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}
.f15-brand-color-card input[type="checkbox"],
.f15-brand-detect-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  accent-color: var(--f15-blue);
}
.f15-brand-color-card select { grid-column: 1 / -1; }
.f15-brand-color-chip {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17,24,39,.12);
  border-radius: 8px;
}
.f15-brand-color-card strong {
  display: block;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
}

.f15-brand-detect-list { display: grid; gap: 9px; }
.f15-brand-detect-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(140px, 190px);
  align-items: center;
  gap: 12px !important;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}
.f15-brand-detect-row strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f15-brand-subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
}
.f15-brand-subsection-title h4 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.f15-brand-subsection-title span {
  color: #7a828e;
  font-size: 12px;
}

.f15-brand-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.f15-brand-image-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}
.f15-brand-image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f6f7f7;
}
.f15-brand-image-grid figcaption {
  min-height: 42px;
  padding: 8px 10px;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.f15-brand-info-note,
.f15-brand-rule-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #dcdcde;
  border-left: 4px solid #72aee6;
  border-radius: 8px;
  background: #f6f7f7;
  color: #3c434a;
  font-size: 13px;
  line-height: 1.5;
}

.f15-brand-success {
  padding: 34px 28px;
  text-align: center;
}
.f15-brand-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 1px solid #9fd6ab;
  border-radius: 50%;
  background: var(--f15-success-bg);
  color: var(--f15-success-text);
  font-size: 22px;
  font-weight: 700;
}
.f15-brand-success .f15-brand-step-kicker { margin-bottom: 6px; }
.f15-brand-success p {
  max-width: 660px;
  margin: 0 auto !important;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}
.f15-brand-output-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.f15-brand-output-links a:first-child {
  border-color: var(--f15-blue) !important;
  background: var(--f15-blue) !important;
  color: #fff !important;
}
.f15-brand-output-links a:first-child:hover {
  border-color: var(--f15-blue-hover) !important;
  background: var(--f15-blue-hover) !important;
  color: #fff !important;
}

/* Brand guide output */
.f15-brand-guide {
  width: 100%;
  max-width: 1200px;
  margin: 34px auto 70px;
  padding: 0 18px;
}
.f15-brand-guide-hero,
.f15-brand-guide section {
  margin-bottom: 16px;
  padding: 24px;
}
.f15-brand-guide-hero h1 {
  margin: 4px 0 8px !important;
  font-size: clamp(32px, 4vw, 44px) !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
  line-height: 1.08 !important;
}
.f15-brand-guide section h2 {
  margin: 0 0 16px !important;
  font-size: 21px !important;
  font-weight: 600 !important;
}
.f15-brand-guide section h3 {
  margin: 18px 0 7px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.f15-brand-guide p,
.f15-brand-guide li { color: #4f5968; line-height: 1.6; }
.f15-brand-guide .f15-brand-swatch {
  padding: 11px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}
.f15-brand-guide .f15-brand-swatch > span {
  display: block;
  width: 100%;
  height: 76px;
  margin-bottom: 9px;
  border-radius: 7px;
}
.f15-brand-guide .f15-brand-swatch code,
.f15-brand-guide .f15-brand-swatch small { display: block; }
.f15-brand-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.f15-brand-asset {
  padding: 16px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.f15-brand-asset img {
  display: block;
  width: 100%;
  height: 110px;
  margin-bottom: 10px;
  object-fit: contain;
}
.f15-brand-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e7e9ed;
}

@media (max-width: 980px) {
  .f15-brand-flow-item strong { display: none; }
  .f15-brand-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f15-brand-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f15-brand-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .f15-brand-tool,
  .f15-brand-guide { margin-top: 24px; padding: 0 14px; }
  .f15-brand-hero h1 { font-size: 34px !important; }
  .f15-brand-flow { gap: 6px; }
  .f15-brand-flow-line { min-width: 10px; }
  .f15-brand-grid-2,
  .f15-brand-color-grid,
  .f15-brand-summary-grid { grid-template-columns: 1fr; }
  .f15-brand-span-2 { grid-column: auto; }
  .f15-brand-step { padding: 20px; }
  .f15-brand-step-header { flex-direction: column; gap: 12px; }
  .f15-brand-step-header .f15-brand-pill { align-self: flex-start; }
  .f15-brand-detect-row { grid-template-columns: auto minmax(0, 1fr); }
  .f15-brand-detect-row small { grid-column: 2; }
  .f15-brand-detect-row select { grid-column: 1 / -1; }
  .f15-brand-image-grid,
  .f15-brand-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f15-brand-actions { justify-content: stretch; }
  .f15-brand-actions .f15-brand-primary,
  .f15-brand-actions .f15-brand-secondary { flex: 1 1 160px; }
}

@media (max-width: 520px) {
  .f15-brand-flow { display: grid; grid-template-columns: repeat(4, 1fr); }
  .f15-brand-flow-line { display: none; }
  .f15-brand-flow-item { justify-content: center; }
  .f15-brand-image-grid,
  .f15-brand-asset-grid { grid-template-columns: 1fr; }
  .f15-brand-output-links { flex-direction: column; }
  .f15-brand-output-links a { width: 100%; }
}

/* v0.2.2 review controls */
.f15-brand-pill-green {
  border-color: #9fd6ab;
  background: var(--f15-success-bg);
  color: var(--f15-success-text);
}

.f15-brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.f15-brand-logo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--f15-border);
  border-radius: 10px;
  background: #fff;
}
.f15-brand-logo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 8px;
  background: #f8f9fb;
}
.f15-brand-logo-image img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 92px;
  object-fit: contain;
}
.f15-brand-logo-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.f15-brand-logo-controls > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.f15-brand-logo-controls input[type="checkbox"],
.f15-brand-choice input[type="checkbox"],
.f15-brand-image-controls input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  accent-color: var(--f15-blue);
}
.f15-brand-logo-url-field { margin-top: 16px; }

.f15-brand-color-card.is-suggested {
  border-color: #bfd0ff;
  box-shadow: 0 0 0 1px rgba(37,99,235,.06);
}
.f15-brand-mini-badge {
  justify-self: end;
  padding: 3px 6px;
  border: 1px solid #c7d2fe;
  border-radius: 5px;
  background: #eef2ff;
  color: #315bc6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.f15-brand-font-name {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.f15-brand-font-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 125px;
  color: var(--f15-muted);
  font-size: 12px;
  white-space: nowrap;
}

.f15-brand-image-card { position: relative; }
.f15-brand-image-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px;
}
.f15-brand-image-controls > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.f15-brand-image-controls select,
.f15-brand-logo-controls select {
  min-height: 36px !important;
  height: 36px !important;
  padding: 5px 9px !important;
  font-size: 12px !important;
}

.f15-brand-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.f15-brand-choice-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f15-brand-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--f15-border);
  border-radius: 9px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.f15-brand-choice span { overflow-wrap: anywhere; }

.f15-brand-reference-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #dce7dc;
  border-radius: 9px;
  background: #f7fbf7;
}
.f15-brand-reference-lock > div { min-width: 0; }
.f15-brand-reference-kicker {
  display: block;
  margin-bottom: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.f15-brand-reference-lock strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .f15-brand-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f15-brand-choice-grid,
  .f15-brand-choice-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .f15-brand-logo-grid,
  .f15-brand-choice-grid,
  .f15-brand-choice-grid-wide { grid-template-columns: 1fr; }
  .f15-brand-reference-lock { align-items: flex-start; flex-direction: column; }
}

.f15-brand-color-card { position: relative; }
.f15-brand-color-card.is-suggested { padding-right: 78px; }
.f15-brand-mini-badge {
  position: absolute;
  top: 9px;
  right: 9px;
}
.f15-brand-detect-row.is-suggested {
  border-color: #bfd0ff;
  background: #fbfdff;
}
.f15-brand-image-grid img {
  object-fit: contain;
  padding: 4px;
}

.f15-brand-guide-note {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-left: 3px solid #72aee6;
  border-radius: 7px;
  background: #f6f7f7;
  color: #5f6b7a !important;
  font-size: 13px;
}
.f15-brand-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f15-brand-guide-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #dcdcde;
  border-radius: 7px;
  background: #f8fafc;
  color: #374151;
  font-size: 12px;
  line-height: 1.3;
}


/* v0.2.2 review polish */
.f15-brand-review-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 18px;
}
.f15-brand-review-status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e2e5e9;
  border-radius: 999px;
  background: #f8f9fb;
  color: #6b7280;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.f15-brand-review-status span.is-ready {
  border-color: #b7dfc1;
  background: #f1fbf3;
  color: #23743a;
}
.f15-brand-review-status span.needs-review {
  border-color: #e2e5e9;
  background: #f8f9fb;
  color: #6b7280;
}
.f15-brand-logo-card.is-suggested {
  border-color: #bfd0ff;
  box-shadow: 0 0 0 1px rgba(37,99,235,.05);
}
.f15-brand-radius-choice span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.f15-brand-radius-choice span strong {
  color: #374151;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
.f15-brand-radius-choice span small {
  color: #7b8493;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
#f15-brand-ctas.f15-brand-choice-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.f15-brand-cta-choice {
  min-height: 44px !important;
  align-items: flex-start !important;
  padding: 10px 11px !important;
  overflow: visible !important;
}
.f15-brand-cta-choice span {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
  color: #374151 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
@media (max-width: 760px) {
  #f15-brand-ctas.f15-brand-choice-grid-wide { grid-template-columns: 1fr; }
}

/* v0.2.3 explicit review state */
.f15-brand-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.f15-brand-confirm-section {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.f15-brand-confirm-section:hover,
.f15-brand-confirm-section:focus {
  border-color: #3b82f6;
  color: #1d4ed8;
}
.f15-brand-confirm-section.is-confirmed {
  border-color: #9fd6ab;
  background: #edfaef;
  color: #116329;
}
.f15-brand-review-status .is-pending {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #315bc6;
}
.f15-brand-tabs button.is-confirmed::after {
  content: '✓';
  margin-left: 5px;
  color: #16803a;
  font-size: 11px;
}
.f15-brand-primary:disabled {
  border-color: #cbd5e1 !important;
  background: #e5e7eb !important;
  color: #7b8492 !important;
  cursor: not-allowed;
  opacity: 1;
}
@media (max-width: 700px) {
  .f15-brand-panel-heading { flex-direction: column; }
}

/* v0.2.4: keep the high-confidence review surface focused and tuck raw detections away. */
.f15-brand-review-groups {
  display: block;
}
.f15-brand-review-group + .f15-brand-more-group,
.f15-brand-more-group + .f15-brand-review-group {
  margin-top: 18px;
}
.f15-brand-review-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 12px;
}
.f15-brand-review-group-heading h4 {
  margin: 0 0 3px !important;
  color: #1f2937;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.f15-brand-review-group-heading p {
  margin: 0 !important;
  color: #7a828e;
  font-size: 12px;
  line-height: 1.45;
}
.f15-brand-review-group-heading > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #7a828e;
  font-size: 12px;
  white-space: nowrap;
}
.f15-brand-more-group {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fbfcfd;
}
.f15-brand-more-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.f15-brand-more-group summary::-webkit-details-marker { display: none; }
.f15-brand-more-group summary::after {
  content: '+';
  margin-left: 8px;
  color: #68707d;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.f15-brand-more-group[open] summary::after { content: '−'; }
.f15-brand-more-count {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: #fff;
  color: #68707d;
  font-size: 11px;
  font-weight: 600;
}
.f15-brand-more-body {
  padding: 0 14px 14px;
  border-top: 1px solid #e7eaee;
}
.f15-brand-more-copy {
  margin: 12px 0 !important;
  color: #7a828e;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .f15-brand-review-group-heading { align-items: flex-start; }
  .f15-brand-review-group-heading > span { display: none; }
}


/* v0.2.5: isolate primary button states from theme-level hover styles. */
.f15-brand-tool button.f15-brand-primary:hover,
.f15-brand-tool button.f15-brand-primary:focus,
.f15-brand-tool button.f15-brand-primary:focus-visible,
.f15-brand-tool button.f15-brand-primary:active,
.f15-brand-tool a.f15-brand-primary:hover,
.f15-brand-tool a.f15-brand-primary:focus,
.f15-brand-tool a.f15-brand-primary:focus-visible,
.f15-brand-tool a.f15-brand-primary:active {
  background: #0b4fd6 !important;
  border-color: #0b4fd6 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* v0.2.5: keep HEX + confidence copy visually grouped and vertically centered. */
.f15-brand-color-card > span:not(.f15-brand-color-chip):not(.f15-brand-mini-badge) {
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.f15-brand-color-card > span:not(.f15-brand-color-chip):not(.f15-brand-mini-badge) strong,
.f15-brand-color-card > span:not(.f15-brand-color-chip):not(.f15-brand-mini-badge) small {
  margin: 0 !important;
  line-height: 1.2 !important;
}


/* v0.2.9: keep section-confirm hover states inside the F15 blue system. */
.f15-brand-tool button.f15-brand-confirm-section:hover,
.f15-brand-tool button.f15-brand-confirm-section:focus,
.f15-brand-tool button.f15-brand-confirm-section:focus-visible,
.f15-brand-tool button.f15-brand-confirm-section:active,
.f15-brand-tool button.f15-brand-confirm-section.is-confirmed:hover,
.f15-brand-tool button.f15-brand-confirm-section.is-confirmed:focus,
.f15-brand-tool button.f15-brand-confirm-section.is-confirmed:focus-visible,
.f15-brand-tool button.f15-brand-confirm-section.is-confirmed:active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* v0.2.9: Brand Guide uses the same restrained type scale as the onboarding tool. */
.f15-brand-guide {
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--f15-text) !important;
}
.f15-brand-guide h1,
.f15-brand-guide h2,
.f15-brand-guide h3,
.f15-brand-guide h4,
.f15-brand-guide p,
.f15-brand-guide li,
.f15-brand-guide a,
.f15-brand-guide span,
.f15-brand-guide strong,
.f15-brand-guide code,
.f15-brand-guide small {
  font-family: inherit !important;
}
.f15-brand-guide-hero h1 {
  font-size: clamp(30px, 3vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em !important;
}
.f15-brand-guide section h2 {
  margin: 0 0 14px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
.f15-brand-guide section h3 {
  margin: 16px 0 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
.f15-brand-guide p,
.f15-brand-guide li {
  margin-top: 0;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.f15-brand-guide .f15-brand-row {
  min-height: 42px;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.f15-brand-guide .f15-brand-row strong,
.f15-brand-guide .f15-brand-row span,
.f15-brand-guide .f15-brand-row a {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.f15-brand-guide .f15-brand-swatch strong,
.f15-brand-guide .f15-brand-swatch code {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.f15-brand-guide .f15-brand-swatch small,
.f15-brand-guide .f15-brand-guide-tags span,
.f15-brand-guide .f15-brand-asset span,
.f15-brand-guide-note {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.f15-brand-guide .f15-brand-asset {
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}
.f15-brand-guide .f15-brand-asset:hover,
.f15-brand-guide .f15-brand-asset:focus {
  color: var(--f15-blue-hover) !important;
  border-color: #b8c8eb !important;
}

/* v0.3.0: AI-readable Brand Guide asset library + explicit approval states. */
.f15-brand-guide-hero-top,
.f15-brand-guide-section-heading,
.f15-brand-guide-asset-title-row,
.f15-brand-guide-reference-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.f15-brand-guide-section-heading {
  align-items: center;
  margin-bottom: 14px;
}
.f15-brand-guide-section-heading h2 {
  margin-bottom: 0 !important;
}
.f15-brand-guide-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #d7dce4;
  border-radius: 999px;
  background: #f7f8fa;
  color: #5d6674;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
.f15-brand-guide-status.is-confirmed {
  border-color: #b7dfc1;
  background: #f1fbf3;
  color: #23743a;
}
.f15-brand-guide-status.is-official {
  border-color: #b9ccff;
  background: #eef4ff;
  color: #2357c6;
}
.f15-brand-guide-status.is-inferred {
  border-color: #efdba8;
  background: #fff8e8;
  color: #7c5a08;
}
.f15-brand-guide-status.is-reference {
  border-color: #dde1e7;
  background: #f7f8fa;
  color: #667085;
}
.f15-brand-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.f15-brand-guide-actions a,
.f15-brand-guide-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d3d9e2;
  border-radius: 8px;
  background: #fff;
  color: #1f2937 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}
.f15-brand-guide-actions a:hover,
.f15-brand-guide-actions a:focus,
.f15-brand-guide-download:hover,
.f15-brand-guide-download:focus {
  border-color: #9fb5e8;
  background: #f7faff;
  color: #1d4ed8 !important;
}
.f15-brand-guide-actions a.is-primary {
  border-color: var(--f15-blue) !important;
  background: var(--f15-blue) !important;
  color: #fff !important;
}
.f15-brand-guide-actions a.is-primary:hover,
.f15-brand-guide-actions a.is-primary:focus {
  border-color: var(--f15-blue-hover) !important;
  background: var(--f15-blue-hover) !important;
  color: #fff !important;
}
.f15-brand-guide-source-note {
  margin: 13px 0 0 !important;
  color: #687386 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.f15-brand-guide-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.f15-brand-guide-asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #fff;
}
.f15-brand-guide-asset-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
  border-bottom: 1px solid #e4e7eb;
  background: #f8fafc;
}
.f15-brand-guide-asset-preview img {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: contain;
}
.f15-brand-guide-file-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 88px;
  border: 1px solid #ced5df;
  border-radius: 8px;
  background: #fff;
  color: #596273;
}
.f15-brand-guide-file-placeholder span {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}
.f15-brand-guide-asset-body {
  padding: 12px;
}
.f15-brand-guide-asset-title-row {
  align-items: center;
  margin-bottom: 5px;
}
.f15-brand-guide-asset-title-row strong {
  min-width: 0;
  color: #1f2937;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}
.f15-brand-guide-asset-meta {
  display: block;
  margin-bottom: 7px;
  color: #7a8391;
  font-size: 11px !important;
}
.f15-brand-guide-asset-url,
.f15-brand-guide-reference-row code {
  display: block;
  max-width: 100%;
  margin: 0 0 9px;
  padding: 6px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  background: #f6f7f8;
  color: #667085;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  white-space: nowrap;
}
.f15-brand-guide-download {
  width: 100%;
}
.f15-brand-guide-copy-block {
  position: relative;
  margin-bottom: 14px;
  padding-right: 100px;
}
.f15-brand-guide-copy-block > .f15-brand-guide-status {
  position: absolute;
  top: 0;
  right: 0;
}
.f15-brand-guide-reference-row {
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e7e9ed;
}
.f15-brand-guide-reference-row > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.f15-brand-guide-reference-row > div:first-child strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.f15-brand-guide-reference-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.f15-brand-guide-reference-row code {
  margin-bottom: 0;
}
.f15-brand-guide-reference-row a {
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .f15-brand-guide-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .f15-brand-guide-hero-top,
  .f15-brand-guide-reference-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .f15-brand-guide-section-heading { align-items: flex-start; }
  .f15-brand-guide-asset-grid { grid-template-columns: 1fr; }
  .f15-brand-guide-reference-row > div:last-child { flex-wrap: wrap; }
  .f15-brand-guide-copy-block { padding-right: 0; }
  .f15-brand-guide-copy-block > .f15-brand-guide-status {
    position: static;
    margin-bottom: 8px;
  }
}


/* v0.3.5: Generated Brand Guides provide their own title inside the styled hero card.
   Suppress common theme/page-title wrappers so a duplicate title never appears above it. */
body.f15-brand-guide-page .entry-title,
body.f15-brand-guide-page .page-title,
body.f15-brand-guide-page .wp-block-post-title,
body.f15-brand-guide-page .elementor-page-title,
body.f15-brand-guide-page .page-header > h1,
body.f15-brand-guide-page .entry-header > h1 {
  display: none !important;
}
body.f15-brand-guide-page .page-header:has(> h1:only-child),
body.f15-brand-guide-page .entry-header:has(> h1:only-child) {
  display: none !important;
}
/* Hide the theme's page-heading wrapper as well, preventing leftover vertical space. */
body.f15-brand-guide-page .page-header,
body.f15-brand-guide-page .entry-header {
  display: none !important;
}

/* v0.3.7: Keep the native page title hidden while preserving the full title-area
   spacing below the site header across viewport sizes. */
body.f15-brand-guide-page .f15-brand-guide {
  margin-top: 120px !important;
}

/* Make the in-card Brand Guide label feel intentional and distinct from the brand name. */
body.f15-brand-guide-page .f15-brand-guide .f15-brand-eyebrow {
  color: var(--f15-blue) !important;
}

@media (max-width: 760px) {
  body.f15-brand-guide-page .f15-brand-guide {
    margin-top: 120px !important;
  }
}

/* v0.3.12: linear review wizard — one section at a time with optional step navigation. */
.f15-brand-review-header {
  align-items: flex-start;
  margin-bottom: 18px;
}
.f15-brand-wizard-progress {
  width: 100%;
  height: 5px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}
.f15-brand-wizard-progress > span {
  display: block;
  width: 14.2857%;
  height: 100%;
  border-radius: inherit;
  background: var(--f15-blue);
  transition: width .22s ease;
}
.f15-brand-review-status-simple {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 16px;
}
.f15-brand-review-status-simple > span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.f15-brand-review-status-simple .f15-brand-review-current {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #64748b;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.f15-brand-review-status-simple .f15-brand-review-current strong {
  color: #243147;
  font-size: 12px !important;
  font-weight: 650 !important;
}
.f15-brand-review-status-simple > .needs-review {
  display: inline-flex;
  margin-right: 12px;
  color: #9a3412;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.f15-brand-tabs.f15-brand-wizard-nav {
  display: flex;
  gap: 7px;
  margin: 0 0 24px;
  padding: 0 0 4px;
  border-bottom: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.f15-brand-tabs.f15-brand-wizard-nav button {
  display: inline-flex !important;
  flex: 1 0 108px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 10px !important;
  border: 1px solid #dde3eb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.f15-brand-tabs.f15-brand-wizard-nav button::after { display: none !important; }
.f15-brand-tabs.f15-brand-wizard-nav button:hover {
  border-color: #c6d2e3 !important;
  background: #f8fafc !important;
  color: #263449 !important;
}
.f15-brand-tabs.f15-brand-wizard-nav button.is-active {
  border-color: #aebfff !important;
  background: #f3f6ff !important;
  color: var(--f15-blue) !important;
}
.f15-brand-tab-number {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px !important;
  line-height: 1 !important;
}
.f15-brand-wizard-nav button.is-active .f15-brand-tab-number {
  border-color: var(--f15-blue);
  background: var(--f15-blue);
  color: #fff;
}
.f15-brand-wizard-nav button.is-confirmed .f15-brand-tab-number {
  border-color: #a9d7b4;
  background: #eef9f0;
  color: #167139;
}
.f15-brand-wizard-nav button.is-confirmed .f15-brand-tab-number::before {
  content: '✓';
}
.f15-brand-wizard-nav button.is-confirmed .f15-brand-tab-number { font-size: 0 !important; }
.f15-brand-wizard-nav button.is-confirmed .f15-brand-tab-number::before { font-size: 11px !important; }
.f15-brand-wizard-nav button.is-active.is-confirmed .f15-brand-tab-number {
  border-color: var(--f15-blue);
  background: var(--f15-blue);
  color: #fff;
}

.f15-brand-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e6e9ee;
}
.f15-brand-wizard-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.f15-brand-wizard-actions .f15-brand-primary,
.f15-brand-wizard-actions .f15-brand-secondary {
  min-width: 120px;
}
/* The old confirmation class is retained for state logic; visually it now behaves like the primary Continue action. */
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section,
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section.is-confirmed {
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid var(--f15-blue) !important;
  border-radius: 14px !important;
  background: var(--f15-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section:hover,
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section:focus,
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section.is-confirmed:hover,
.f15-brand-tool .f15-brand-wizard-actions button.f15-brand-confirm-section.is-confirmed:focus {
  border-color: var(--f15-blue-hover) !important;
  background: var(--f15-blue-hover) !important;
  color: #fff !important;
}
#f15-brand-keep-rules-suggestions.is-selected {
  border-color: #b9c5d5 !important;
  background: #f3f6f9 !important;
  color: #25344a !important;
}

@media (max-width: 900px) {
  .f15-brand-tabs.f15-brand-wizard-nav button { flex-basis: 116px; }
}
@media (max-width: 700px) {
  .f15-brand-review-header { gap: 12px; }
  .f15-brand-tabs.f15-brand-wizard-nav {
    margin-left: -2px;
    margin-right: -2px;
    padding-bottom: 8px;
  }
  .f15-brand-tabs.f15-brand-wizard-nav button { flex: 0 0 112px; }
  .f15-brand-wizard-actions,
  .f15-brand-wizard-actions-rules {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .f15-brand-wizard-action-group {
    width: 100%;
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .f15-brand-wizard-actions .f15-brand-primary,
  .f15-brand-wizard-actions .f15-brand-secondary,
  .f15-brand-wizard-action-group .f15-brand-primary,
  .f15-brand-wizard-action-group .f15-brand-secondary {
    width: 100%;
  }
  .f15-brand-review-status-simple {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .f15-brand-review-status-simple > .needs-review { margin-right: 0; }
}
