/* Visual27 corrections adapted to deployed design system 2bbfbabb.
   Screen only. Preserve current theme script, layout, words and access controls. */
@media screen {
  :root {
    --mfi-field-bg:var(--wv-surface); --mfi-field-boundary:#7486a3;
    --mfi-elev-bg:#2a170b; --mfi-elev-fg:#f4b184; --mfi-elev-bd:#6e3d1c;
  }
  html[data-theme="light"] {
    --mfi-field-bg:var(--wv-card); --mfi-field-boundary:#6e7b8f;
    --mfi-elev-bg:#fdeee2; --mfi-elev-fg:#8a3a00; --mfi-elev-bd:#e0a374;
  }
  .tag.sev-orange,.tag.sev-elevated {
    background:var(--mfi-elev-bg);color:var(--mfi-elev-fg);border-color:var(--mfi-elev-bd);
  }
  input[type="text"],input[type="number"],select,textarea {
    background:var(--mfi-field-bg);color:var(--wv-text);
    border-color:var(--mfi-field-boundary);border-radius:8px;
  }
  input[type="text"][aria-invalid="true"],input[type="number"][aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"] {
    border-color:var(--severe);
  }
  html[data-theme="light"] .refusal .code {color:var(--wv-error-text);}
  html[data-theme="light"] .rvstatus,
  html[data-theme="light"] .state[data-state="blocked"],html[data-theme="light"] .state[data-state="not_permitted"] {color:var(--wv-warning-text);}
  html[data-theme="light"] .state[data-state="done"] {color:var(--wv-ok-text);}
  /* Human-work sheet may be linked after this sheet. Preserve its field geometry. */
  html[data-theme="light"] .hwp-draftbar--on,html[data-theme="light"] .hwp-stale {background:var(--wv-warning-bg);}
  html[data-theme="light"] .hwp-pre {background:var(--wv-surface);}
  html[data-theme="light"] .hwp-conflict:not(.hwp-conflict--held) {background:var(--wv-error-bg);border-color:var(--wv-error-text);}
  html[data-theme="light"] .hwp-cal__cell--selected {background:var(--wv-selected);}
  html[data-theme="light"] .hwp input,html[data-theme="light"] .hwp select,html[data-theme="light"] .hwp textarea {color-scheme:light;}
  html[data-theme="light"] .hwp button:focus-visible,html[data-theme="light"] .hwp input:focus-visible,html[data-theme="light"] .hwp select:focus-visible,html[data-theme="light"] .hwp textarea:focus-visible,html[data-theme="light"] .hwp summary:focus-visible,html[data-theme="light"] .hwp [tabindex]:focus-visible {outline-color:var(--focus);}
}

@media screen {
html[data-theme="light"] .tag.sev-red,html[data-theme="light"] .tag.sev-breached,html[data-theme="light"] .tag.sev-variance,html[data-theme="light"] .tag.st-variance,html[data-theme="light"] .tag.sev-high,html[data-theme="light"] .tag.st-denied,html[data-theme="light"] .tag.st-revoked,html[data-theme="light"] .tag.st-error {color:var(--wv-error-text);border-color:var(--wv-error-text);}
html[data-theme="light"] .tag.sev-amber,html[data-theme="light"] .tag.sev-trigger,html[data-theme="light"] .tag.sev-data_gap,html[data-theme="light"] .tag.st-unverified,html[data-theme="light"] .tag.st-DRAFT,html[data-theme="light"] .tag.st-not_generated,html[data-theme="light"] .tag.st-requested,html[data-theme="light"] .tag.st-pending,html[data-theme="light"] .tag.st-draft,html[data-theme="light"] .tag.st-warning,html[data-theme="light"] .tag.st-synthetic_only,html[data-theme="light"] .tag.st-external_dependency {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.st-matched,html[data-theme="light"] .tag.st-REVIEWED,html[data-theme="light"] .tag.st-active,html[data-theme="light"] .tag.st-closed,html[data-theme="light"] .tag.st-implemented,html[data-theme="light"] .tag.st-approved,html[data-theme="light"] .tag.st-accepted {color:var(--wv-ok-text);border-color:var(--wv-ok-text);}
html[data-theme="light"] .tag.st-published,html[data-theme="light"] .tag.st-publishable,html[data-theme="light"] .tag.st-complete,html[data-theme="light"] .tag.st-checked {color:var(--wv-ok-text);border-color:var(--wv-ok-text);}
html[data-theme="light"] .tag.st-not_published,html[data-theme="light"] .tag.st-awaiting_checker,html[data-theme="light"] .tag.st-submitted,html[data-theme="light"] .tag.st-incomplete,html[data-theme="light"] .tag.st-unreconciled,html[data-theme="light"] .tag.st-not_routed,html[data-theme="light"] .tag.st-no_period,html[data-theme="light"] .tag.st-superseded,html[data-theme="light"] .tag.st-withdrawn,html[data-theme="light"] .tag.st-computed_total_rounded,html[data-theme="light"] .tag.st-computed_total_unavailable,html[data-theme="light"] .tag.st-exact_arithmetic_unavailable {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.st-blocked,html[data-theme="light"] .tag.st-rejected,html[data-theme="light"] .tag.st-amount_above_limit,html[data-theme="light"] .tag.st-amount_not_exact {color:var(--wv-error-text);border-color:var(--wv-error-text);}
html[data-theme="light"] .tag.lg-status {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.st-provisional,html[data-theme="light"] .tag.st-partial,html[data-theme="light"] .tag.st-withheld,html[data-theme="light"] .tag.st-written_off,html[data-theme="light"] .tag.st-not_reviewed,html[data-theme="light"] .tag.st-branch_scope,html[data-theme="light"] .tag.st-accounts_not_stored,html[data-theme="light"] .tag.st-nothing_in_scope,html[data-theme="light"] .tag.st-snapshot_not_validated,html[data-theme="light"] .tag.st-rollup_withheld,html[data-theme="light"] .tag.st-stale,html[data-theme="light"] .tag.st-absent {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.st-scored,html[data-theme="light"] .tag.st-computed,html[data-theme="light"] .tag.st-current {color:var(--wv-ok-text);border-color:var(--wv-ok-text);}
html[data-theme="light"] .tag.st-block_unreadable {color:var(--wv-error-text);border-color:var(--wv-error-text);}
html[data-theme="light"] .tag.sev-warning,html[data-theme="light"] .tag.st-preview,html[data-theme="light"] .tag.st-none,html[data-theme="light"] .tag.st-NOT_GENERATED {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.st-generated {color:var(--wv-ok-text);border-color:var(--wv-ok-text);}
html[data-theme="light"] .tag.sev-yellow,html[data-theme="light"] .tag.sev-medium,html[data-theme="light"] .tag.sev-near,html[data-theme="light"] .tag.sev-no_data {color:var(--wv-warning-text);border-color:var(--wv-warning-text);}
html[data-theme="light"] .tag.sev-within,html[data-theme="light"] .tag.sev-low,html[data-theme="light"] .tag.sev-green {color:var(--wv-ok-text);border-color:var(--wv-ok-text);}
}
