/* IDE.Inbox — waiting-step work-list. PROCESS_ORCHESTRATION §6. */

.ide-inbox-toggle {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 950;
  border: 1px solid var(--border-color, #d0d0d0);
  background: var(--bg-panel, #262637);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ide-inbox-toggle.has-waiting {
  border-color: #e0a800;
  box-shadow: 0 0 0 2px rgba(224, 168, 0, 0.25);
}

.ide-inbox-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 2px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #e0a800;
  border-radius: 8px;
}

.ide-inbox-panel {
  position: fixed;
  bottom: 52px;
  left: 12px;
  z-index: 951;
  width: 340px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-panel, #262637);
  border: 1px solid var(--border-color, #d0d0d0);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-size: 13px;
}

.ide-inbox-header {
  padding: 8px 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color, #eee);
  position: sticky;
  top: 0;
  background: var(--bg-panel, #262637);
}

.ide-inbox-list {
  padding: 4px;
}

.ide-inbox-row {
  padding: 8px;
  border-radius: 6px;
}

.ide-inbox-row:hover {
  /* ⚠ `--hover-bg` is defined NOWHERE in the shell, so this fallback is what
     every hovered row got — and #f5f5f5 under the dark theme's pale text read
     at ~1.1:1 (found by LOOKING at RW-1's walk, 2026-09-19). A translucent
     wash works on either ground, as the other panes' fallbacks do. */
  background: var(--hover-bg, rgba(127, 127, 127, 0.15));
}

.ide-inbox-label {
  font-weight: 500;
}

.ide-inbox-meta {
  font-size: 11px;
  color: var(--muted, #888);
  margin: 2px 0 6px;
}

.ide-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* A field is a LABEL and its control, stacked — not a bare box whose
   placeholder somebody has to remember. The row is `display: flex`, so the
   pair has to be one flex item or the label and the box wrap apart. */
.ide-inbox-fieldrow {
  /* One field to a line: the panel is ~340 px, and two fields side by side
     squeezed a label onto three lines (RW-0's walk, 2026-09-19). */
  flex: 1 1 100%;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ide-inbox-fieldrow > span {
  font-size: 11px;
  /* ⚠ `--text`, never `--text-muted`: this is the sentence somebody needs
     in order to answer, and a hint is not chrome (UL-0's measurement). */
  color: var(--text, #e0e0f0);
}

.ide-inbox-field {
  flex: 1 1 80px;
  min-width: 60px;
  padding: 3px 6px;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
  font-size: 12px;
  /* A <select> and a <textarea> do not inherit the shell's colour: the UA
     sheet gives them `buttontext`, which is BLACK on this dark panel. */
  background: var(--bg-input, #1a1a2a);
  color: var(--text, #e0e0f0);
  font-family: inherit;
}

/* ⚠ The row is a COLUMN, so the control's `flex: 1 1 80px` above was its
   HEIGHT: every box was drawn 80+ px tall, a one-line text field included
   (found by LOOKING at RW-0's walk, 2026-09-19). A control takes its own
   height; only the pick line lays out sideways. */
.ide-inbox-fieldrow > .ide-inbox-field {
  flex: 0 0 auto;
}
.ide-inbox-hint {
  font-size: 11px;
  color: var(--text, #e0e0f0);
  opacity: 0.8;
}
.ide-inbox-fieldrow > input[type="file"] {
  min-height: 44px;
}
.ide-inbox-pickline {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.ide-inbox-pickline > .ide-inbox-field {
  flex: 1 1 auto;
  min-width: 0;
}
.ide-inbox-actions .ide-inbox-choose {
  flex: none;
  min-height: 44px;
  margin: 0;
}

.ide-inbox-empty {
  padding: 16px 12px;
  color: var(--muted, #888);
  text-align: center;
}

/* WF-1 — "Waiting on people": the tabs, the clock and what silence does.
   ⚠ The overdue mark is a LEFT BAR plus the words "overdue" in the meta
   line, never colour alone: a row that is only red says nothing to a person
   who cannot see red, and nothing at all to a screen reader. */
.ide-inbox-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px 0;
  flex-wrap: wrap;
}
.ide-inbox-tabs .btn.is-on {
  background: var(--bg-input, #2a2a3a);
  color: var(--text, #e8e8f0);
  font-weight: 600;
}
.ide-inbox-row.is-overdue {
  border-left: 3px solid var(--warn, #e0a800);
  padding-left: 7px;
}
.ide-inbox-silence {
  font-size: 11px;
  /* ⚠ `--text-muted` is read with twenty different fallbacks in this estate
     (Defer § CSS-TEXT-MUTED-IS-TWENTY-GREYS); this one is measured against
     the panel ground and clears AA. */
  color: var(--text, #e8e8f0);
  opacity: 0.75;
  margin: 2px 0 4px;
}
.ide-inbox-actions .btn {
  /* A question answered by mistake is worse than one answered late, so the
     buttons get room rather than being packed onto one line. */
  margin: 2px 4px 2px 0;
}

/* WF-9 — "Read first: …" on a confirm-read row.
   ⚠ `--text`, never `--text-muted`: this is the one line that says what the
   person is being asked to have read, and a hint is not chrome (UL-0's
   measurement). The panel ground is `--bg-panel` — `--panel-bg` is a token
   NOTHING in this estate defines, and reading it rendered this whole panel
   white in a dark shell at 1.31:1 until 2026-09-10. */
.ide-inbox-readfirst {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text, #e8e8f0);
}

.ide-inbox-readnote {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--text, #e8e8f0);
  opacity: 0.75;
}

/* RW-1 — a work step's "Work on this: 📝 name" and the line saying what to do. */
.ide-inbox-work .ide-inbox-hint {
  flex-basis: 100%;
}
.ide-inbox-work .ide-inbox-open-work {
  min-height: 44px;
}

/* RW-2 — a hand-off: what to copy, and the files to take, in order. */
.ide-ask-shows {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text, #e0e0f0);
}
.ide-ask-shows-label {
  font-size: 12px;
  font-weight: 600;
}
.ide-ask-copytext {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.ide-ask-shows .ide-ask-copy {
  align-self: flex-start;
  min-height: 44px;
}
.ide-ask-files {
  margin: 0;
  padding-left: 22px;
}
.ide-ask-files li {
  min-height: 32px;
  line-height: 32px;
}
.ide-ask-files a {
  color: var(--accent, #8c84ff);
}

