/* The Steward's page (steward-panel.js, docs/STEWARD.md §11b): how it thinks, the pause, its limits, and its action
   cards. Flat: hairlines and spacing, no boxed cards; theme tokens only. Phone first; wider screens just get room. */
/* Both stay out of the conversation's way: each scrolls on its own past a share of the height. */
.stw-head { padding: 4px 16px; border-bottom: var(--hair, 1px solid var(--line)); margin: 6px 0 0; flex: none; max-height: 42vh; overflow: auto; }
.stw-head:empty { display: none; }
.stw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; min-height: 40px; }
.stw-line > svg { width: 16px; height: 16px; flex: none; color: var(--canopy); }
.stw-how { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.stw-how .dim { font-size: 12.5px; }
/* Its limits, on the Now tab under its computer: closed to one line (how it thinks, the fullest limit, a meter);
   open, each limit with what it used and the form, whose Save stays in view at the bottom while it is open. */
.stw-limits:empty { display: none; }
.stw-lim > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 40px; }
.stw-lim > summary::-webkit-details-marker { display: none; }
.stw-lim > summary .ag-h { margin: 0; }
.stw-lim-sum { flex: 1 1 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.stw-lim-sum > span { display: inline-flex; align-items: center; min-width: 0; }
.stw-lim-sum .stw-m { margin-right: 8px; }
.stw-lim-sum .near, .stw-used .near b { color: var(--warn); }
.stw-chev { width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin: -4px 4px 0 auto; flex: none; transition: transform var(--dur-1, .12s) var(--ease-out, ease); }
.stw-lim[open] .stw-chev { transform: rotate(-135deg); margin-top: 4px; }
.stw-lim > summary:hover .stw-chev { border-color: var(--text); }
.stw-lim-b { padding: 4px 0 0; }
.stw-m { display: inline-block; flex: none; width: 44px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.stw-m > i { display: block; height: 100%; background: var(--canopy); }
.near .stw-m > i { background: var(--warn); }
.stw-why { margin: 0 0 4px; font-size: 12.5px; max-width: 72ch; }
.stw-stop { color: var(--bad-2, var(--bad)); }
.stw-stop svg { width: 14px; height: 14px; }
.stw-paused { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0 8px 12px; margin: 0 0 6px; box-shadow: inset 2px 0 0 var(--warn); font-size: 13.5px; }
.stw-paused > svg { width: 16px; height: 16px; color: var(--warn); flex: none; }
.stw-paused > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.stw-used { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 18px; }
.stw-used li { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: var(--hair, 1px solid var(--line)); font-size: 12.5px; color: var(--text-2); }
.stw-used li > span:first-child { overflow-wrap: anywhere; }
.stw-used b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stw-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); align-items: end; gap: 12px 16px; padding: 10px 0 0; }
.stw-form .stw-mode { grid-column: 1 / -1; max-width: 420px; }
.stw-save { grid-column: 1 / -1; position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 0; margin-top: 4px;
  background: var(--content-bg); border-top: var(--hair, 1px solid var(--line)); }
.stw-save .btn { min-height: 36px; min-width: 96px; justify-content: center; }
.stw-dirty { margin-right: auto; font-size: 12.5px; color: var(--warn); }
.stw-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.stw-form input, .stw-form select { min-height: 40px; background: var(--ink-2); border: 1px solid var(--control, var(--line)); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 14px var(--sans); min-width: 0; }
.stw-form input:focus, .stw-form select:focus { border-color: var(--canopy); outline: 0; }
.stw-cards:empty { display: none; }
.stw-cards { display: flex; flex-direction: column; margin: 4px 16px 8px; border-top: var(--hair, 1px solid var(--line)); flex: none; max-height: 38vh; overflow: auto; }
.stw-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 10px 12px; border-bottom: var(--hair, 1px solid var(--line)); box-shadow: inset 2px 0 0 var(--warn); font-size: 13.5px; margin: 0; }
.stw-card b { font-weight: 600; overflow-wrap: anywhere; }
.stw-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); }
.stw-k svg { width: 12px; height: 12px; }
.stw-d { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: 13px; max-height: 12em; overflow: auto; }
.stw-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stw-acts .btn { min-height: 36px; }
.stw-card textarea { min-height: 64px; resize: vertical; background: var(--ink-2); border: 1px solid var(--control, var(--line)); border-radius: 4px; padding: 8px 10px; color: var(--text); font: 14px var(--sans); }
.stw-card textarea:focus { border-color: var(--canopy); outline: 0; }
/* The same cards under the conversation in the ⌘K sheet (ask.js, STEWARD §11c): no height of their own, the sheet scrolls. */
.stw-cards.ask-cards { margin: 8px 14px 0; max-height: none; overflow: visible; }
.stw-cards.ask-cards[hidden] { display: none; }
/* Any item in For you (console.js askWarn / askFull, review H1): the taint's warning on its own line, and a long detail
   whole behind a disclosure — flat, a hairline at the left, never clipped. */
.need-warn { margin: 6px 0 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--warn); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.need-full { margin: 6px 0 0; font-size: 13px; }
.need-full > summary { cursor: pointer; color: var(--text-2); }
.need-full > p { margin: 6px 0 0; padding-left: 10px; border-left: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
@media (max-width: 600px) { .stw-head { padding-left: 14px; padding-right: 14px; } .stw-cards { margin-left: 14px; margin-right: 14px; } .stw-acts .btn { flex: 1 1 auto; } .stw-head { max-height: 36vh; } .stw-cards { max-height: 34vh; } }
