/* Operational Clarity: Preferences only. Keep this sidecar inside the desktop console. */
@media (min-width: 901px) {
  body.fh-console-nav.fh-clarity #preferencesPage {
    --pref-surface: #ffffff;
    --pref-canvas: #f4f7fa;
    --pref-inset: #f7f9fb;
    --pref-ink: #172633;
    --pref-muted: #536572;
    --pref-line: #dce3eb;
    --pref-cyan: #087f9c;
    --pref-cyan-soft: #e8f5f8;
    box-sizing: border-box;
    min-height: 100%;
    height: auto !important;
    overflow: visible !important;
    color: var(--pref-ink) !important;
    background: var(--pref-canvas) !important;
    padding: 0 !important;
    font-size: 13px;
  }

  body.fh-console-nav.fh-clarity #preferencesPage,
  body.fh-console-nav.fh-clarity #preferencesPage * {
    box-sizing: border-box;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preference-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(.preferences-console-card, .preferences-profile-body, .preferences-status-body) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    color: var(--pref-ink) !important;
    background: var(--pref-surface) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-console-card {
    border: 1px solid var(--pref-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px #1726330a !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-card-head {
    border-bottom: 1px solid var(--pref-line) !important;
    background: var(--pref-surface) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(.preferences-card-head h2, .preferences-workspace-options h3, .preferences-alert-groups-head h3, .preferences-form-group legend) {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(.preferences-card-head p, .preferences-autosave-note-v114, .preferences-security p, .preferences-alert-groups-head p, .preferences-form-group legend, .preference-field > span) {
    color: var(--pref-muted) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(.preferences-profile-body, .preferences-status-body) {
    background: var(--pref-surface) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-workspace-options {
    border-top: 1px solid var(--pref-line) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-security {
    border-color: var(--pref-line) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-security summary {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-security summary:focus-visible,
  body.fh-console-nav.fh-clarity #preferencesPage :is(input, select, button):focus-visible {
    outline: 2px solid var(--pref-cyan) !important;
    outline-offset: 2px;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preference-field :is(input, select) {
    border: 1px solid #b9c7d2 !important;
    border-radius: 5px !important;
    color: var(--pref-ink) !important;
    background: var(--pref-surface) !important;
    font-size: 13px !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preference-field :is(input, select)::placeholder {
    color: var(--pref-muted) !important;
    opacity: 1;
  }

  body.fh-console-nav.fh-clarity #preferencesPage input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--pref-surface) inset !important;
    -webkit-text-fill-color: var(--pref-ink) !important;
    caret-color: var(--pref-ink);
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-option-list label {
    color: var(--pref-ink) !important;
    font-size: 13px !important;
  }
  body.fh-console-nav.fh-clarity #preferencesPage button { font-size: 13px !important; }
  body.fh-console-nav.fh-clarity #preferencesPage .preference-field > span { font-size: 12px !important; }

  body.fh-console-nav.fh-clarity #preferencesPage input[type="checkbox"] {
    accent-color: var(--pref-cyan) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-actions .preferences-primary-action {
    border: 1px solid #066a82 !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    background: var(--pref-cyan) !important;
    box-shadow: none !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-actions .preferences-secondary-action,
  body.fh-console-nav.fh-clarity #preferencesPage .preferences-alert-groups-head button {
    border: 1px solid #a8bbc8 !important;
    border-radius: 5px !important;
    color: #075f78 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(.preferences-primary-action, .preferences-secondary-action, .preferences-alert-groups-head button):hover:not(:disabled) {
    filter: brightness(.96);
  }

  body.fh-console-nav.fh-clarity #preferencesPage :is(button, input, select):disabled {
    cursor: not-allowed;
    opacity: .62;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-grid {
    gap: 10px !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-card {
    min-width: 0;
    border: 1px solid var(--pref-line) !important;
    border-radius: 6px !important;
    color: var(--pref-ink) !important;
    background: #ffffff !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-card :is(small, span) {
    color: var(--pref-muted) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-card b:not(.success):not(.warning) {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-card b.success {
    color: #087f9c !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-card b.warning {
    color: #8a5200 !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-ready-card {
    border-color: var(--pref-line) !important;
    background: #ffffff !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-ready-card #preferencesReadyTitle {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-ready-card #preferencesReadyTitle.success {
    color: #087f9c !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-status-ready-card #preferencesReadyTitle.warning {
    color: #8a5200 !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-alert-groups-v114 {
    border-top-color: var(--pref-line) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-alert-option {
    border-bottom-color: var(--pref-line) !important;
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-alert-option :is(b, strong) {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .preferences-alert-option :is(small, p) {
    color: var(--pref-muted) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage #preferencesSaveStatus {
    color: var(--pref-ink) !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage [hidden] {
    display: none !important;
  }

  body.fh-console-nav.fh-clarity #preferencesPage .console-page-footer {
    color: var(--pref-muted) !important;
  }
}
