/* Reflection-blocker panel — a RIGHT-slot sidebar since 2026-08-14.
   Header chrome reuses the shared .chat-panel-header / .chat-panel-close
   classes, and now so does everything else about its box: it is a `.chat-panel`
   (styles/chat.css, styles/panel-rail.css), so the dock, the width, the offset
   that keeps it clear of the panel rail and the closed-state transform are NOT
   restated here. Right-slot panels are mutually exclusive via the
   `delta-sidebar-panel-open` document event (js/sidebar/sidebar_panel_events.js).

   It was a left drawer with its own copy of all of that — and its own
   `--reflection-blocker-width`, which the two rails then had to outrank in two
   more places. Same move My calendars made on 2026-08-09 and forced planning on
   2026-08-10, for the same reason each time: the row you press is on the rail at
   the RIGHT edge, and a press there that opens a drawer on the far left is the
   worse trade every time. What is left below is the body, which is the only part
   that was ever specific to this panel. */

.reflection-blocker-panel {
  overflow: hidden;
}

.reflection-blocker-topbar-button[hidden],
.reflection-blocker-submit[hidden] {
  display: none;
}

.reflection-blocker-topbar-button {
  color: var(--accent);
  border-color: var(--accent);
}

.reflection-blocker-topbar-button:hover,
.reflection-blocker-topbar-button.is-active {
  color: #0b0f16;
  background: var(--accent);
  border-color: var(--accent);
}

.reflection-blocker-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.reflection-blocker-lock {
  font-size: 20px;
}

.reflection-blocker-progress {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

.reflection-blocker-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 6px;
}

.reflection-blocker-section + .reflection-blocker-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
}

.reflection-blocker-section-title {
  margin: 0 4px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.reflection-blocker-requirement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 5px 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: var(--utility-surface);
  font-size: 12px;
  line-height: 1.35;
}

.reflection-blocker-check {
  flex: 0 0 auto;
  width: 18px;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
}

.reflection-blocker-requirement.is-met {
  color: var(--text-secondary);
}

.reflection-blocker-requirement.is-met .reflection-blocker-check {
  color: var(--accent);
}

.reflection-blocker-footer {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-subtle);
}

.reflection-blocker-message {
  min-height: 16px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.reflection-blocker-message.is-ready {
  color: var(--accent);
}

.reflection-blocker-message.is-error {
  color: #f0a24b;
}

.reflection-blocker-submit {
  width: 100%;
}

/* Brain-dump clearing section (React island `BrainDumpSection`). A due brain
   dump card locks the app independently of every reflection condition, so the
   panel lists them here — otherwise it can read "All requirements met" beside
   an app that still refuses to change tabs. Renders nothing when nothing is
   due, which is the normal case. */
.reflection-blocker-dump-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 11px;
  border: 1px solid var(--pbd-due, #e57373);
  border-radius: 6px;
}

.reflection-blocker-dump-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reflection-blocker-dump-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.reflection-blocker-dump-btn,
.reflection-blocker-dump-open {
  padding: 2px 8px;
  font-size: 10px;
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.reflection-blocker-dump-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.reflection-blocker-dump-open {
  width: 100%;
  margin-top: 2px;
}

.reflection-blocker-dump-error {
  margin: 6px 0 0;
  font-size: 10px;
  color: #f0a24b;
}
