/* Negocio Libre brand layer for the OpenClaw Control UI.
 * Kept separate from the upstream bundle so upgrades and rollback stay simple.
 */
:root,
:root[data-theme-mode="dark"] {
  --bg: #061f1e;
  --bg-content: #082927;
  --bg-elevated: #0b302e;
  --bg-muted: #0d3633;
  --bg-hover: #124743;
  --card: #0b302e;
  --card-foreground: #f4f8f7;
  --popover: #0b302e;
  --panel: #082927;
  --border: #1b4f4b;
  --border-strong: #2a6661;
  --text: #f4f8f7;
  --text-strong: #ffffff;
  --muted: #a9c3c0;
  --accent: #ffe600;
  --accent-hover: #ffed4d;
  --accent-muted: #ffe600bf;
  --accent-subtle: #ffe6001f;
  --accent-foreground: #073b3a;
  --primary: #0f6b66;
  --primary-hover: #13817a;
  --primary-foreground: #ffffff;
  --link: #ffe600;
  --ring: #ffe600;
  --focus: #ffe60040;
  --brand-logo-chip-bg: #ffffff;
  --selection-bg: #ffe600;
  --selection-fg: #073b3a;
}

:root[data-theme-mode="light"] {
  --bg: #f4f8f7;
  --bg-content: #f7faf9;
  --bg-elevated: #ffffff;
  --bg-muted: #eaf5f2;
  --bg-hover: #dce9e7;
  --card: #ffffff;
  --card-foreground: #073b3a;
  --popover: #ffffff;
  --panel: #ffffff;
  --border: #dce9e7;
  --border-strong: #b8d1ce;
  --text: #073b3a;
  --text-strong: #043b39;
  --muted: #567572;
  --accent: #0f6b66;
  --accent-hover: #0b5753;
  --accent-muted: #0f6b66bf;
  --accent-subtle: #0f6b6617;
  --accent-foreground: #ffffff;
  --primary: #0f6b66;
  --primary-hover: #0b5753;
  --primary-foreground: #ffffff;
  --link: #0b5753;
  --ring: #0f6b66;
  --focus: #0f6b6633;
  --brand-logo-chip-bg: #ffffff;
  --selection-bg: #ffe600;
  --selection-fg: #073b3a;
}

openclaw-theme-brand-icon {
  box-sizing: border-box;
  display: inline-block !important;
  background: #ffffff url("./negocio-libre-icon-safe-v2.png") center / contain no-repeat !important;
  border: 1px solid color-mix(in srgb, #0f6b66 24%, transparent);
  border-radius: 7px;
}

openclaw-theme-brand-icon > img,
openclaw-theme-brand-icon > svg {
  visibility: hidden !important;
}

.topbar-brand__logo,
.login-gate__logo,
.approval-page__logo {
  background: #ffffff url("./negocio-libre-icon-safe-v2.png") center / contain no-repeat !important;
  border-radius: 7px;
}

img.login-gate__logo,
img.topbar-brand__logo,
img.approval-page__logo {
  content: url("./negocio-libre-icon-safe-v2.png") !important;
  object-fit: contain;
}

.topbar-brand__logo > *,
.login-gate__logo > *,
.approval-page__logo > * {
  visibility: hidden !important;
}

.topbar-brand__title,
.login-gate__brand-name,
.approval-page__brand-name {
  font-size: 0 !important;
}

.topbar-brand__title::after,
.login-gate__brand-name::after,
.approval-page__brand-name::after {
  content: "Negocio Libre";
  font-size: var(--control-ui-text-sm, 14px);
  color: var(--text-strong);
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}
