:root {
  --brand-primary: #2f5bff;
  --brand-secondary: #ff6b35;
  --brand-background: #f5f5f2;
  --brand-surface: #ffffff;
  --brand-text: #17202a;
  --brand-muted: #66717d;
  --brand-line: #dfe3e7;
  --brand-on-primary: #ffffff;
  --brand-on-secondary: #111111;
}

.brand-profile-launcher {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  max-width: min(220px, calc(100vw - 36px));
  min-height: 42px;
  padding: 0 15px;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  background: #15171a;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  font: 750 12px/1 Arial, Helvetica, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.brand-profile-launcher::before {
  content: "";
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, var(--brand-primary) 0 50%, var(--brand-secondary) 50%);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.brand-profile-callout {
  display: grid;
  max-width: 720px;
  margin-top: 18px;
  padding: 18px;
  grid-template-columns: 1fr auto;
  gap: 12px 22px;
  align-items: center;
  color: #17202a;
  background: #ffffff;
  border: 1px solid #dfe3e7;
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

.brand-profile-callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.brand-profile-callout p {
  margin: 0;
  color: #66717d;
  font-size: 13px;
  line-height: 1.45;
}

.brand-profile-callout button,
.brand-profile-drawer button {
  font: inherit;
  cursor: pointer;
}

.brand-profile-callout button {
  padding: 11px 14px;
  color: #ffffff;
  background: #17202a;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.brand-profile-swatches {
  display: flex;
  gap: 5px;
  grid-column: 1 / -1;
}

.brand-profile-swatches i {
  width: 42px;
  height: 7px;
  background: var(--swatch);
  border-radius: 999px;
}

.brand-profile-backdrop {
  position: fixed;
  z-index: 990;
  inset: 0;
  visibility: hidden;
  background: rgba(8, 10, 13, .52);
  opacity: 0;
  transition: opacity .2s ease, visibility .2s;
}

.brand-profile-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.brand-profile-drawer {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  display: flex;
  width: min(430px, 100%);
  height: 100%;
  padding: 24px;
  flex-direction: column;
  color: #17202a;
  background: #f7f7f4;
  border-left: 1px solid #d9dde1;
  box-shadow: -24px 0 60px rgba(8, 10, 13, .18);
  font-family: Arial, Helvetica, sans-serif;
  transform: translateX(102%);
  transition: transform .25s ease;
}

.brand-profile-drawer.is-open { transform: translateX(0); }

.brand-profile-head {
  display: flex;
  padding-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d9dde1;
}

.brand-profile-head small {
  display: block;
  margin-bottom: 7px;
  color: #66717d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-profile-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.brand-profile-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #17202a;
  background: #ffffff;
  border: 1px solid #d9dde1;
  border-radius: 50%;
  font-size: 20px;
}

.brand-profile-intro {
  margin: 18px 0 20px;
  color: #66717d;
  font-size: 13px;
  line-height: 1.5;
}

.brand-profile-form {
  display: grid;
  gap: 14px;
  overflow-y: auto;
}

.brand-field {
  display: grid;
  gap: 7px;
}

.brand-field > span {
  font-size: 11px;
  font-weight: 800;
}

.brand-field input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #17202a;
  background: #ffffff;
  border: 1px solid #ccd2d7;
  border-radius: 7px;
}

.brand-colour-input {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
}

.brand-colour-input input[type="color"] {
  width: 48px;
  height: 44px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid #ccd2d7;
  border-radius: 7px;
  cursor: pointer;
}

.brand-profile-status {
  min-height: 42px;
  margin: 2px 0 0;
  padding: 11px 12px;
  color: #43505d;
  background: #eef1f4;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.brand-profile-actions {
  display: grid;
  margin-top: auto;
  padding-top: 18px;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.brand-profile-apply,
.brand-profile-reset {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
}

.brand-profile-apply {
  color: #ffffff;
  background: #17202a;
  border: 1px solid #17202a;
}

.brand-profile-reset {
  color: #17202a;
  background: #ffffff;
  border: 1px solid #ccd2d7;
}

html[data-brand-active="true"] {
  --accent: var(--brand-primary);
  --accent-2: var(--brand-secondary);
  --bg: var(--brand-background);
  --paper: var(--brand-surface);
  --surface: var(--brand-surface);
  --white: var(--brand-surface);
  --text: var(--brand-text);
  --ink: var(--brand-text);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --section-bg: color-mix(in srgb, var(--brand-secondary) 16%, var(--brand-background));
  --dark: var(--brand-text);
  --light: var(--brand-background);
  --button-text: var(--brand-on-primary);
  --cta-bg: var(--brand-secondary);
  --cta-text: var(--brand-on-secondary);
  --cta-button-bg: var(--brand-primary);
  --cta-button-text: var(--brand-on-primary);
  --back-bg: var(--brand-text);
  --back-text: var(--brand-background);
}

html[data-brand-active="true"] .brand svg,
html[data-brand-active="true"] .kicker,
html[data-brand-active="true"] .eyebrow,
html[data-brand-active="true"] .section-label,
html[data-brand-active="true"] .service-number,
html[data-brand-active="true"] .feature small {
  color: var(--brand-primary) !important;
}

html[data-brand-active="true"] .button.primary,
html[data-brand-active="true"] .nav-cta {
  color: var(--brand-on-primary) !important;
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

html[data-brand-active="true"] .button.secondary {
  border-color: var(--brand-primary) !important;
}

html[data-brand-active="true"] .micro-proof span::before,
html[data-brand-active="true"] .proof-row span::before,
html[data-brand-active="true"] .section-label::before {
  background: var(--brand-primary) !important;
}

html[data-brand-active="true"] .about-stat,
html[data-brand-active="true"] .about-mark {
  color: var(--brand-on-primary) !important;
  background: var(--brand-primary) !important;
}

html[data-brand-active="true"] .cta-box,
html[data-brand-active="true"] .cta-panel {
  color: var(--brand-on-secondary) !important;
  background: var(--brand-secondary) !important;
}

html[data-brand-active="true"] .cta-box .button,
html[data-brand-active="true"] .cta-panel .button {
  color: var(--brand-on-primary) !important;
  background: var(--brand-primary) !important;
}

html[data-brand-active="true"] .hero-art,
html[data-brand-active="true"] .concept-stage,
html[data-brand-active="true"] .showcase,
html[data-brand-active="true"] .showcase-art {
  border-color: var(--brand-primary) !important;
}

html[data-brand-active="true"] .hero-art .one {
  background-color: var(--brand-primary) !important;
}

html[data-brand-active="true"] .card .swatch {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)) !important;
}

html[data-brand-active="true"] .tile-stat,
html[data-brand-active="true"] .new-side,
html[data-brand-active="true"] .os-body aside b,
html[data-brand-active="true"] .timeline-stage i,
html[data-brand-active="true"] .poster.p-b,
html[data-brand-active="true"] .sticker,
html[data-brand-active="true"] .deck article[data-card="0"],
html[data-brand-active="true"] .marker i,
html[data-brand-active="true"] .cover-stage,
html[data-brand-active="true"] .selector-options button.selected {
  color: var(--brand-on-primary) !important;
  background: var(--brand-primary) !important;
}

html[data-brand-active="true"] .tile-cta,
html[data-brand-active="true"] .sun,
html[data-brand-active="true"] .paper-b,
html[data-brand-active="true"] .poster.p-a,
html[data-brand-active="true"] .deck article[data-card="1"] {
  color: var(--brand-on-secondary) !important;
  background: var(--brand-secondary) !important;
}

html[data-brand-active="true"] .calculator-stage input,
html[data-brand-active="true"] input[type="range"] {
  accent-color: var(--brand-primary);
}

@media (max-width: 620px) {
  .brand-profile-launcher {
    right: 10px;
    bottom: 10px;
    min-height: 38px;
    padding: 0 12px;
  }

  .brand-profile-callout {
    grid-template-columns: 1fr;
  }

  .brand-profile-callout button {
    justify-self: start;
  }

  .brand-profile-drawer { padding: 20px; }
}
