/* widgets/the-brain — THE BRAIN's Rulings segment. Scoped to #brain-modal; no other
   stylesheet touches .brul-. Values are the approved rendering's
   (docs/jarvis-mockups/the-brain-overlay-concept-20260727.html, Craig GO 4:29p 7/27).

   COURT-HONEST ARCHIVAL TREATMENT: this is a room of record. Court-gold marks a fresh
   ruling, mist marks one entering the muscle, solid canopy marks one that got there —
   no red, no amber-as-alarm, nothing on this surface that reads as a thing gone wrong.

   The segment paints on the vault's own cream reading ground (#faf7f2, the same paper
   .brain-read already uses) inside the room's dark chrome — the record reads like a page,
   not like a console. */

#brain-modal .brul-wrap{flex:1;overflow:auto;min-width:0;background:#faf7f2;padding:14px 22px 26px}
#brain-modal .brul-zero{font:400 13px/1.55 Inter;color:#77806f;background:#fff;border:1px solid #f0ede3;
  border-radius:12px;padding:16px 18px;margin:4px 0 12px}

/* filter row — All / Laws / Executing + the today pill + search */
#brain-modal .brul-filters{display:flex;gap:6px;align-items:center;margin:0 0 4px;flex-wrap:wrap}
#brain-modal .brul-f{font:700 10px Inter;letter-spacing:.02em;border:1px solid #e7e2d4;background:#fff;
  color:#6b7669;border-radius:999px;padding:5px 12px;cursor:pointer}
#brain-modal .brul-f:hover{border-color:#c7d4c4;color:#1f4a2d}
#brain-modal .brul-f.on{background:#1f4a2d;border-color:#1f4a2d;color:#f4f1e8}
#brain-modal .brul-today{font:700 10px Inter;letter-spacing:.05em;color:#8a5a0f;background:#fbf3df;
  border:1px solid #ecd9a8;border-radius:999px;padding:5px 12px;white-space:nowrap}
#brain-modal .brul-search{margin-left:auto;width:210px;border:1px solid #e7e2d4;border-radius:9px;
  padding:6px 11px;font:400 11.5px Inter;color:#2c302e;background:#fff;outline:none;box-sizing:border-box}
#brain-modal .brul-search:focus{border-color:#c7d4c4}
#brain-modal .brul-search::placeholder{color:#b3aca0}

/* date groups + the timeline rows */
/* THE RECORD IS MEANT TO BE READ (Craig 8/10, on the Rulings segment: "this is way too small to
   see anything to care about to do anything with it — almost just needs to go away"). It shipped
   at 12.5px asks over 11.5px prose over 10px meta over 9px/8.5px chips: five type sizes, all of
   them under the house body token, on the one surface whose entire job is reading back decisions.
   Sizes now sit on the tokens — --fs-body 13.5px for prose, --fs-label 11px for meta, --fs-micro
   10px for the chips (badges only, never sentences) — and the meta grey moves off #9aa39b, which
   is 2.6:1 on white and fails the contrast floor. Nothing was removed; it is legible instead. */
#brain-modal .brul-dgroup{font:700 var(--fs-label,11px) Inter;letter-spacing:.09em;text-transform:uppercase;color:#6b7669;
  padding:14px 2px 6px;border-bottom:1px solid #f0ede3}
#brain-modal .brul-row{border-bottom:1px solid #f5f2e9;padding:12px 4px 12px 10px;display:flex;gap:10px}
#brain-modal .brul-rail{width:3px;border-radius:3px;background:#e7e2d4;flex:none}
#brain-modal .brul-ruled .brul-rail{background:#e0a92e}
#brain-modal .brul-exec .brul-rail{background:#7fa98c}
#brain-modal .brul-muscle .brul-rail{background:#1f4a2d}
#brain-modal .brul-main{flex:1;min-width:0}
#brain-modal .brul-ask{font:600 14.5px/1.4 Inter;color:#1a1d1c}
#brain-modal .brul-what{font:400 var(--fs-body,13.5px)/1.5 Inter;color:#4a5a4e;margin-top:4px}
#brain-modal .brul-meta{display:flex;align-items:center;gap:7px;margin-top:7px;flex-wrap:wrap;
  font:500 var(--fs-label,11px) Inter;color:#6b7669}

/* lifecycle chips — RULED -> EXECUTING -> IN MUSCLE, plus the quiet slate LAW tag */
#brain-modal .brul-lc{font:700 var(--fs-micro,10px) Inter;letter-spacing:.05em;border-radius:5px;padding:3px 8px;flex:none}
#brain-modal .brul-lc-ruled{background:#fbf3df;color:#7a4f0d}
#brain-modal .brul-lc-exec{background:#eef3ee;color:#2a5c3c}
#brain-modal .brul-lc-muscle{background:#1f4a2d;color:#f4f1e8}
#brain-modal .brul-law{font:700 var(--fs-micro,10px) Inter;letter-spacing:.06em;color:#485663;background:#eef1f4;
  border-radius:5px;padding:3px 7px}

/* every row carries its source as a mono chip; the memory slug is the door into Memories */
#brain-modal .brul-src{font:500 var(--fs-micro,10px) ui-monospace,Menlo,monospace;color:#6f746f;background:#f3f2ec;
  border-radius:5px;padding:3px 6px}
#brain-modal .brul-mem{font:500 var(--fs-micro,10px) ui-monospace,Menlo,monospace;color:#1a5f34;
  background:rgba(48,104,68,.10);border:0;border-radius:5px;padding:3px 7px;cursor:pointer}
#brain-modal .brul-mem:hover{background:rgba(48,104,68,.18)}

/* the re-hosted approval court record renders in the global .abw- cream language, which already
   matches this paper — it only needs room to breathe under the timeline */
#brain-modal .brul-wrap .abw-sec,#brain-modal .brul-wrap .abw-shiprec{margin-top:14px}
