/* v1.0.27 - Theme-independent desk contrast. These UI surfaces inherit the
 * theme's actual foreground color instead of relying on a guessed mode. */
.fc-desk,
.fc-account-tools,
.fc-desk .fc-account-tools,
.fc-desk .fc-report-status-card,
.fc-desk .fc-report-privacy,
.fc-desk .fc-reassign-form,
.fc-desk .fc-investigation-card {
  color:inherit!important;
}
.fc-desk :is(h1,h2,h3,h4,h5,h6),
.fc-account-tools :is(h1,h2,h3,h4,h5,h6),
.fc-desk :is(label,.fc-entry,.fc-list-row,.fc-list-row strong,.fc-report-status-line strong,.fc-report-privacy strong,.fc-account-head h3),
.fc-account-tools :is(label,.fc-account-head h3),
.fc-mod-panel :is(h3,h4,label) {
  color:inherit!important;
}
.fc-desk :is(header p,.fc-refresh-caption,.fc-note,.fc-list-row small,.fc-report-head p,.fc-report-status-card p,.fc-report-stage,.fc-member-help,.fc-account-head p,.fc-create-head p,.fc-report-privacy p,.fc-investigation-card dt),
.fc-account-tools .fc-account-head p {
  color:inherit!important;
  opacity:.66;
}
.fc-desk :is(input,textarea,select),
.fc-account-tools :is(input,textarea,select),
.fc-mod-panel :is(input,textarea,select) {
  color:inherit!important;
  background:color-mix(in srgb,currentColor 5%,transparent)!important;
  border:1px solid color-mix(in srgb,currentColor 26%,transparent)!important;
  caret-color:currentColor!important;
}
.fc-desk :is(input,textarea)::placeholder,
.fc-account-tools :is(input,textarea)::placeholder,
.fc-mod-panel :is(input,textarea)::placeholder {
  color:inherit!important;
  opacity:.5;
}
.fc-desk input[readonly] {
  background:color-mix(in srgb,currentColor 9%,transparent)!important;
}
.fc-desk :is(.fc-reassign-form,.fc-report-privacy,.fc-report-status-card,.fc-investigation-card,.fc-account-head,.fc-evidence,.fc-evidence-text),
.fc-account-tools .fc-account-head {
  color:inherit!important;
  background:color-mix(in srgb,currentColor 3%,transparent)!important;
  border-color:color-mix(in srgb,currentColor 16%,transparent)!important;
}
.fc-desk :is(.fc-entry,.fc-list-row,.fc-thread,.fc-filters,.fc-create-head,.fc-account-action) {
  border-color:color-mix(in srgb,currentColor 20%,transparent)!important;
}
.fc-desk .fc-list-row,
.fc-desk .fc-entry { color:inherit!important; }
.fc-desk :is(.fc-filters a:not(.selected),.fc-assignment-filters a:not(.selected)) {
  color:inherit!important;
  opacity:.65;
}
.fc-desk .fc-assignment-filters a:not(.selected) {
  background:transparent!important;
  border-color:color-mix(in srgb,currentColor 40%,transparent)!important;
}
/* Modal dialogs are appended outside the shortcode container. Their colors
 * derive from page text by using native page variables when present; JS sets
 * fc-theme-light on the root as a second, higher-specificity correction. */
.fc-create-dialog {
  color:inherit!important;
  background:var(--fc-dialog-bg,#1d1b23)!important;
}
html.fc-theme-light .fc-create-dialog { --fc-dialog-bg:#fff; }
html.fc-theme-dark .fc-create-dialog { --fc-dialog-bg:#1d1b23; }
html.fc-theme-light .fc-desk :is(h2,h3,h4,label),
html.fc-theme-dark .fc-desk :is(h2,h3,h4,label) { color:inherit!important; }

/* v1.0.28: New-ticket modal has its own solid color scheme. Unlike the desk
   page it must NOT inherit the surrounding light page's dark foreground. */
html .fc-desk dialog.fc-create-dialog,
html.fc-theme-light .fc-desk dialog.fc-create-dialog,
html.fc-theme-dark .fc-desk dialog.fc-create-dialog {
  color:#f7f5fa!important;
  background:#1d1b23!important;
  border-color:#504655!important;
  color-scheme:dark;
}
html .fc-desk .fc-create-dialog :is(.fc-create-head h3,.fc-create-form>label),
html.fc-theme-light .fc-desk .fc-create-dialog :is(.fc-create-head h3,.fc-create-form>label) {
  color:#f7f5fa!important;
  opacity:1!important;
}
html .fc-desk .fc-create-dialog :is(.fc-create-head p,.fc-member-help),
html.fc-theme-light .fc-desk .fc-create-dialog :is(.fc-create-head p,.fc-member-help) {
  color:#bcb5c4!important;
  opacity:1!important;
}
html .fc-desk .fc-create-dialog .fc-create-head {
  border-bottom-color:#403744!important;
}
html .fc-desk .fc-create-dialog :is(input:not([type="hidden"]),textarea),
html.fc-theme-light .fc-desk .fc-create-dialog :is(input:not([type="hidden"]),textarea) {
  color:#fff!important;
  background:#28242f!important;
  border:1px solid #62566a!important;
  caret-color:#fff!important;
  opacity:1!important;
}
html .fc-desk .fc-create-dialog :is(input,textarea)::placeholder,
html.fc-theme-light .fc-desk .fc-create-dialog :is(input,textarea)::placeholder {
  color:#b3aabb!important;
  opacity:1!important;
}
html .fc-desk .fc-create-dialog .fc-member-suggestions,
html.fc-theme-light .fc-desk .fc-create-dialog .fc-member-suggestions {
  background:#29232f!important;
  border-color:#61526a!important;
}
html .fc-desk .fc-create-dialog .fc-member-option,
html.fc-theme-light .fc-desk .fc-create-dialog .fc-member-option {
  color:#f7f5fa!important;
  opacity:1!important;
}
html .fc-desk .fc-create-dialog .fc-member-option:hover,
html .fc-desk .fc-create-dialog .fc-member-option:focus-visible {
  background:#4a344c!important;
  color:#fff!important;
}
html .fc-desk .fc-create-dialog .fc-create-close,
html.fc-theme-light .fc-desk .fc-create-dialog .fc-create-close {
  background:transparent!important;
  color:#ddd5e0!important;
}
html .fc-desk .fc-create-dialog .fc-secondary,
html.fc-theme-light .fc-desk .fc-create-dialog .fc-secondary {
  background:#332e39!important;
  border:1px solid #605365!important;
  color:#f7f5fa!important;
}
html .fc-desk .fc-create-dialog .fc-create-actions button[type="submit"] {
  background:#ff4f9b!important;
  color:#1b1018!important;
  opacity:1!important;
}
