/* Forum R6: one record-driven prefix palette. Only color properties, never badge geometry. */
.vcc-prefix-colored,
#forum-home .f01-prefix.vcc-prefix-colored[data-prefix-id],
.f01.screen-home .f01-home-approved .f01-prefix-grid .f01-prefix.vcc-prefix-colored,
html body .f01-sidebar .f01-prefix.vcc-prefix-colored[data-prefix-id],
#forum-topic .t28-prefix.vcc-prefix-colored[data-prefix-id],
.fv-prefix.vcc-prefix-colored[data-prefix-id],
.badge.vcc-prefix-colored[data-prefix-id],
.f07-prefix.vcc-prefix-colored[data-prefix-id],
.f08-prefix.vcc-prefix-colored[data-prefix-id],
.f02-prefix.vcc-prefix-colored[data-prefix-id],
.f04-badge.vcc-prefix-colored[data-prefix-id],
.fc28-prefix.vcc-prefix-colored[data-prefix-id],
.fs28-badge.vcc-prefix-colored[data-prefix-id] {
  background:var(--topic-prefix-bg,#245484)!important;
  background-color:var(--topic-prefix-bg,#245484)!important;
  color:var(--topic-prefix-fg,#FFFFFF)!important;
  border-color:var(--topic-prefix-border,#54799B)!important;
  border-style:solid;
  border-width:1px;
  box-shadow:none;
}
.vcc-prefix-colored:focus-visible {outline:2px solid #FFFFFF;outline-offset:2px}
.fv-admin-live-prefix.vcc-prefix-colored {background:var(--topic-prefix-bg)!important;color:var(--topic-prefix-fg)!important;border:1px solid var(--topic-prefix-border)!important}
/* Existing links keep their natural hover; keyboard focus remains clearly visible. */
a:focus-visible > .vcc-prefix-colored[data-prefix-id] {outline:2px solid #FFFFFF;outline-offset:2px}

/* F01 colors for default prefixes. Explicit record colors remain inline. */
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="question"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-question-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-question-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-question-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="discussion"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-discussion-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-discussion-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-discussion-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="experience"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-experience-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-experience-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-experience-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="important"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-important-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-important-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-important-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="job"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-job-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-job-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-job-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="problem"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-problem-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-problem-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-problem-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="solved"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-solved-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-solved-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-solved-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="news"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-news-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-news-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-news-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="payment"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-payment-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-payment-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-payment-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="studio"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-studio-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-studio-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-studio-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="security"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-security-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-security-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-security-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="offtopic"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-offtopic-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-offtopic-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-offtopic-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="idea"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-idea-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-idea-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-idea-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="other"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-other-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-other-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-other-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="webcam-sites"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-webcam-sites-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-webcam-sites-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-webcam-sites-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="complaint"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-complaint-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-complaint-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-complaint-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="platform"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-platform-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-platform-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-platform-border)!important;
}
html:not([data-vcc-palette="v4.1"]) .vcc-prefix-colored[data-prefix-tone="rules"] {
  --topic-prefix-bg:var(--vcc-ui-prefix-rules-bg)!important;
  --topic-prefix-fg:var(--vcc-ui-prefix-rules-fg)!important;
  --topic-prefix-border:var(--vcc-ui-prefix-rules-border)!important;
}
