/* Wire shares the RookBase product look in both themes; only its logo badge is its own. */
.wire-shell .accordion-body { background: var(--wire-panel); }
.wire-shell .wire-prompt-text-block { background: var(--wire-panel); }
.wire-shell .wire-prompt-picker-item { background: var(--wire-panel); }
.wire-shell .wire-linked-prompt-item { background: var(--wire-panel); }
.wire-shell .wire-card,
.wire-shell .wire-form,
.wire-shell .wire-panel { background: var(--wire-panel); }
.wire-shell .wire-badge { background: var(--wire-panel); }
.wire-shell .wire-danger { background: var(--wire-panel); }
.wire-shell .wire-tag-admin-item { background: var(--wire-panel); }
.wire-shell input[type="checkbox"],
.wire-shell input[type="radio"] { background: var(--bg-well) !important; }
.wire-shell .wire-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]),
.wire-shell .wire-form textarea,
.wire-shell .wire-form select { background-color: var(--bg-well) !important; }
.wire-shell .wire-select-wrap--traditional select option { background: var(--wire-panel); }
.wire-shell .wire-select-wrap:not(.wire-select-wrap--traditional) select option { background: var(--wire-panel); }
.wire-shell .wire-message { background: var(--wire-panel); }
.wire-shell .wire-comment-bubble { background: var(--wire-panel); }
.wire-shell .wire-empty { background: var(--wire-panel); }
.wire-shell .wire-identity-panel { background: var(--wire-panel); }
.wire-shell .wire-stat { background: var(--wire-panel); }
.wire-shell .wire-composer-box { background: var(--wire-panel); }
.wire-shell .wire-richtext-wrap { background: var(--wire-panel); }
.wire-shell .wire-richtext-wrap .ql-toolbar.ql-snow { background: var(--wire-panel); }
.wire-shell .wire-image-thumb { background: var(--wire-panel); }
.wire-shell .wire-image-modal-panel { background: var(--wire-panel); }
.wire-shell .wire-image-stage { background: var(--wire-panel); }
.wire-shell .wire-zoom-icon { background: var(--wire-panel); }
.wire-shell .wire-mini-post { background: var(--wire-panel); }
.wire-shell .wire-help-emoji { background: var(--wire-panel); }
.wire-shell .wire-notification-comment { background: var(--wire-panel); }
.wire-badge { color: var(--link-color); }
.wire-shell .wire-richtext-wrap .ql-stroke { stroke: var(--wire-text); }
.wire-shell .wire-richtext-wrap .ql-fill { fill: var(--wire-text); }
.wire-shell .wire-richtext-wrap .ql-picker { color: var(--wire-text); }

.wire-shell :is(.wire-card, .wire-form, .wire-panel, .wire-stat, .wire-composer-box, .wire-comment-bubble, .wire-identity-panel, .wire-message, .wire-empty, .wire-prompt-picker-item, .wire-linked-prompt-item, .wire-richtext-wrap) { border-color: var(--wire-border); box-shadow: var(--rs-panel-shadow); }

/* Wire branding, with shared keyboard/menu behavior but its own destinations. */
.wire-header.rb-workspace-nav { min-height: 88px; --link-color: var(--wire-accent-text); }
.wire-header.rb-workspace-nav .wire-header-brand {
  background: linear-gradient(180deg, #91b9d3 0%, #b6d1e2 62%, #dae8ef 100%);
  border-radius: 10px; padding: 0 8px;
}
.wire-header.rb-workspace-nav .wire-header-brand img { width: 132px; height: 72px; }
.wire-header.rb-workspace-nav .rb-workspace-count { background: var(--rs-accent-face); color: var(--rs-accent-ink); }
.wire-header.rb-workspace-nav .rb-workspace-dropdown { max-height: calc(100dvh - var(--workspace-nav-height) - 16px); }
@media (max-width: 1200px) {
  .wire-header .rb-workspace-destinations { max-height: calc(100dvh - var(--workspace-nav-height)); }
}

/* Foregrounds and surfaces are separate: a gradient is not a valid color in
   option backgrounds or the final layer of a composite background. */
:root { --wire-accent-text: var(--link-color); --wire-success-text: var(--status-success); }
.wire-shell a:hover, .wire-shell .wire-kicker,
.wire-shell .wire-dropdown-item:hover, .wire-shell .wire-dropdown-item:focus-visible { color: var(--wire-accent-text); }
.wire-shell .wire-course-completed { color: var(--wire-success-text); }
.wire-shell .btn-danger, .wire-shell .btn-danger:hover { color: var(--status-error) !important; }
html[data-theme="dark"] .wire-shell .accordion-button::after { filter: brightness(0) invert(1); }
.wire-shell .wire-form .errorlist { color: var(--status-error); }
.wire-shell :is(input, textarea)::placeholder { color: var(--wire-muted); opacity: 1; }
.wire-shell :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wire-accent-text); outline-offset: 3px; }

/* Wire selects use the shared well, caret and option colors. */
.wire-shell select option { background: var(--bg-well); color: var(--text-primary); }

/* Quill loads after the page stylesheet. Specificity must cover its picker,
   tooltip and placeholder defaults as well as the editor's text. */
.wire-shell .wire-richtext-wrap .ql-editor.ql-blank::before { color: var(--wire-muted); }
.wire-shell .wire-richtext-wrap .ql-picker-options,
.wire-shell .wire-richtext-wrap .ql-tooltip { background: var(--wire-panel); color: var(--wire-text); border-color: var(--wire-border); }
.wire-shell .wire-richtext-wrap .ql-tooltip input[type="text"] { color: var(--wire-text); background: var(--wire-panel); }
.wire-shell .wire-richtext-wrap .ql-tooltip a { color: var(--wire-accent-text); }
/* Keep the link editor inside the card on narrow screens, including Save. */
.wire-shell .wire-richtext-wrap .ql-tooltip {
  position: relative; left: 0 !important; top: 0 !important; transform: none;
  margin: 8px; width: calc(100% - 16px); white-space: normal; border-radius: 8px;
}
.wire-shell .wire-richtext-wrap .ql-tooltip:not(.ql-hidden) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wire-shell .wire-richtext-wrap .ql-tooltip input[type="text"] { flex: 1 1 120px; min-width: 0; max-width: 100%; }
.wire-shell .wire-richtext-wrap .ql-picker-item:hover,
.wire-shell .wire-richtext-wrap .ql-picker-item.ql-selected,
.wire-shell .wire-richtext-wrap .ql-picker-label:hover,
.wire-shell .wire-richtext-wrap .ql-picker-label.ql-active { color: var(--wire-accent-text); }
.wire-shell .wire-richtext-wrap :is(button:hover, button.ql-active, .ql-picker-label:hover) .ql-stroke { stroke: var(--wire-accent-text); }
.wire-shell .wire-richtext-wrap :is(button:hover, button.ql-active, .ql-picker-label:hover) .ql-fill { fill: var(--wire-accent-text); }
