/* Tool identities use the existing service spectrum and workflow teal.
   Screen-only accents preserve print, native/export guide colours and shared navigation. */
[data-tool-theme] {
  --tool-title-colour: color-mix(in srgb, var(--tool-identity) 40%, white);
  --tool-line-colour: color-mix(in srgb, var(--tool-identity) 65%, white);
}
[data-tool-theme="camera"] {
  --tool-identity: var(--blue);
  --tool-title-colour: #b6d4e9;
  --tool-line-colour: #67b7ec;
}
[data-tool-theme="storage"] { --tool-identity: var(--violet); }
[data-tool-theme="framing"] { --tool-identity: var(--orange); }
[data-tool-theme="renamer"] { --tool-identity: var(--green); }
[data-tool-theme="analyzer"] { --tool-identity: var(--red); }
[data-tool-theme="companion"] { --tool-identity: #32b8c9; }

@media screen {
  body[data-tool-theme] main :is(.cockpit-hero h1 span, .fl-hero h1 span, .rename-hero h1, .la-hero h1 span) {
    color: var(--tool-title-colour);
  }
  body[data-tool-theme] main :is(.cockpit-hero .eyebrow, .cockpit-intro .cockpit-step, .cockpit-catalogue .cockpit-step, .fl-kicker, .fl-small-label, .rename-hero .eyebrow, .rename-step, .la-hero .eyebrow) {
    color: var(--tool-title-colour);
  }
  body[data-tool-theme] main :is(.cockpit-intro h2, .cockpit-next h2, .cockpit-results h2, .cockpit-client-section h3, .storage-start-guide h3, .fl-section-heading h2, .fl-preview-top h2, .fl-notes h2, .rename-workspace h2, .rename-help h2, .panel h2, .limits h2) {
    color: var(--tool-title-colour);
  }
  body[data-tool-theme] main :is(.cockpit-hero, .fl-hero, .rename-hero, .la-hero) {
    border-bottom-color: var(--tool-line-colour);
  }
  body[data-tool-theme] main :is(.cockpit-hero .eyebrow, .rename-hero .eyebrow, .la-hero .eyebrow)::before {
    background: var(--tool-line-colour);
  }
  .vit-tools-directory .tools-card[data-tool-theme] { border-top-color: var(--tool-line-colour); }
  .vit-tools-directory .tools-card[data-tool-theme] :is(h2, .tools-label, .tools-card-header > svg),
  .vit-tools-directory .tools-preview[data-tool-theme] :is(h2, .tools-label) {
    color: var(--tool-title-colour);
  }
  .production-flow .production-lut-preview[data-tool-theme] :is(h4, .production-lut-preview-kicker) {
    color: var(--tool-title-colour);
  }
}


@media screen {
  [data-tool-theme="analyzer"] .tool-beta-notice {
    border-left-color: var(--tool-line-colour);
    background: color-mix(in srgb, var(--tool-title-colour) 8%, transparent);
  }

  [data-tool-theme="analyzer"] .tool-beta-notice :is(strong, a) {
    color: var(--tool-title-colour);
  }

  .production-flow .production-lut-preview[data-tool-theme="analyzer"] {
    border-color: color-mix(in srgb, var(--tool-line-colour) 40%, transparent);
  }
}
