/* Workspace identity follows the verified company; the generic profile is Smarta. */
:root {
  --brand-canvas: light-dark(#f4f5f0, #141a16);
  --brand-surface: light-dark(#fff, #1c251f);
  --brand-field: light-dark(#fcfcfa, #16201a);
  --brand-ink: light-dark(#1b2420, #edf4ed);
  --brand-muted: light-dark(#4f5d54, #b6c4b9);
  --brand-line: light-dark(#d5dcd4, #39473b);
  --brand-control: light-dark(#7d897e, #819585);
  --brand-action: light-dark(#1f553f, #477960);
  --brand-action-hover: light-dark(#164332, #417258);
  --brand-action-text: #fff;
  --brand-focus: light-dark(#32664e, #a9d4ba);
  --brand-error: light-dark(#9b3329, #ffc4bb);
  --brand-error-bg: light-dark(#fff2ee, #412721);
  --workspace-avatar: url('/static/marta.jpg');
}

[data-company-brand="swiss-trade"] {
  --company-canvas: #f4f2ed;
  --brand-action: #b64700;
  --brand-action-hover: #9c3b00;
  --brand-focus: light-dark(#ab4400, #ffb471);
  --company-selection: #92c02e;
}

[data-company-brand="jud"] {
  --workspace-avatar: url('/static/jud/brand/mucki-avatar.webp');
  --jud-chat-action: #ffcc00;
  --jud-chat-hover: #ffda43;
  --jud-chat-action-text: #1b1a17;
}

body.partner-workspace #sharedComposer .ib.go {
  background: var(--jud-chat-action, var(--brand-action));
  color: var(--jud-chat-action-text, var(--brand-action-text));
}
body.partner-workspace #sharedComposer .ib.go:hover:not(:disabled) {
  background: var(--jud-chat-hover, var(--brand-action-hover));
}
body.partner-workspace #sharedComposer .ib.go:focus-visible {
  outline-color: var(--partner-accent-ink, var(--brand-focus));
}

body.partner-workspace[data-company-brand="jud"] #tabs .tab[aria-current="page"] .ico {
  color: #12588c;
}

body.partner-workspace[data-company-brand="jud"] {
  --partner-accent-ink: light-dark(#12588c, #a5cdeb);
}

body.partner-workspace .chat-sources li a {
  color: var(--partner-accent-ink, var(--brand-focus));
}

/* Staff uses the neutral Smarta identity until the tenant configuration arrives. */
body.smarta-workspace:not([data-company-brand="swiss-trade"]) {
  --company-canvas: #f4f5f0;
  --company-selection: #477960;
}
.staff-brand-row:has([data-company-logos]:empty), .staff-entry-logos:empty { display: none !important; }
.staff-entry-logos { display: flex; justify-content: center; gap: 14px; margin: 0 auto 12px; }
.staff-entry-logos img, [data-company-brand="custom"] .staff-brand-lockup img {
  max-width: min(38vw, 160px);
  height: 26px;
  object-fit: contain;
}
body.smarta-workspace[data-company-brand="custom"] #chatPanel #go:not(:disabled) { color: var(--brand-action-text); }

body.smarta-workspace[data-staff-chat-only]:not([data-company-brand="swiss-trade"]) .profile-menu .profile-avatar {
  background: var(--brand-action);
  color: var(--brand-action-text);
}
