/* Screen 12 — Agent activity. Every class is prefixed .act- so this file cannot reach any other
   screen, and every colour comes from the --co- tokens defined at the end of operations.css rather
   than from a value read off a screenshot: the prototype captures are two-times renders, so sizes
   and weights taken by eye come out doubled. The one rule the layout follows is that a withheld
   panel is visibly quieter than a measured one but never smaller, because its reason is the longest
   text on the page and the reason is the point. */

.act-page{max-width:1120px!important}
.act-page .ph-row{align-items:flex-start;gap:12px}
.act-page .ph .sub{max-width:74ch;line-height:1.8}
.act-page .ph .sub b{color:var(--co-night,#0D1318);font-weight:650}
.act-page .co-card{padding:0;overflow:hidden}
.act-page .co-section-title{margin:28px 0 10px}
.act-page .co-section-title h2{display:flex;align-items:center;gap:10px}
.act-page .co-footnote{color:var(--co-text-muted);font-size:12px;line-height:1.7;margin:12px 2px 0;max-width:92ch}
.act-page .co-footnote svg{color:var(--co-text-muted)}

/* The run-state badge. Green when a ledger says the run completed, dashed and grey when none does —
   a grey badge that names its absence is honest; an empty green tick is not. */
.act-pill{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px;border-radius:16px;border:1px solid var(--co-line);background:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;color:var(--co-text-2)}
.act-pill-green{border-color:#B7E3CF;background:#ECF8F2;color:var(--co-green-deep)}
.act-pill-amber{border-color:#F0DDB6;background:#FDF4E3;color:var(--co-amber-deep)}
.act-pill-red{border-color:#F3C9CB;background:#FDEFEF;color:var(--co-red-deep)}
.act-pill-blue{border-color:#C6D7FF;background:#EEF4FF;color:var(--co-blue)}
.act-pill-grey,.act-pill-off{border-style:dashed;background:var(--co-surface-3);color:var(--co-text-muted);font-weight:500}

.act-source{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between;margin:0 2px 18px;font-size:11.5px;color:var(--co-text-muted)}
.act-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--co-green-deep);margin-right:8px;vertical-align:middle}

/* The three header claims. Each keeps its slot whether or not a store can fill it. */
.act-claims{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 6px}
.act-claim{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--co-line);border-radius:12px;background:#fff}
.act-claim.act-off{border-style:dashed;background:var(--co-surface-3)}
.act-claim-label{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--co-text-muted)}
.act-claim-value{font-size:24px;letter-spacing:-.4px;color:var(--co-night,#0D1318);font-variant-numeric:tabular-nums}

/* One row of the morning run, one decision type, one decision, one job: the same three-part shape
   throughout, so the eye reads down a single column of sentences rather than across four layouts. */
.act-entry,.act-type,.act-row,.act-task{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:flex-start;gap:14px;padding:16px 22px;border-bottom:1px solid #EFF0F4}
.act-entry:last-child,.act-type:last-child,.act-row:last-child,.act-task:last-child{border-bottom:0}
.act-page .act-entry.act-off,.act-page .act-type.act-off{background:var(--co-surface-3)}
.act-body{min-width:0}
.act-ico{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--co-surface-3);color:var(--co-text-muted);margin-top:1px}
.act-blue{background:#EEF4FF;color:var(--co-blue)}
.act-green{background:#ECF8F2;color:var(--co-green-deep)}
.act-amber{background:#FDF4E3;color:var(--co-amber-deep)}
.act-red{background:#FDEFEF;color:var(--co-red-deep)}
.act-grey{background:var(--co-surface-3);color:var(--co-text-muted)}

.act-page .act-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;font-size:14px;line-height:1.6;color:var(--co-night,#0D1318);font-weight:550;overflow-wrap:anywhere}
.act-page .act-off .act-line{color:var(--co-text-2);font-weight:500}
.act-page .act-row-title{margin:0;font-size:14px;line-height:1.6;font-weight:650;color:var(--co-night,#0D1318);overflow-wrap:anywhere}
.act-page .act-meta{margin:5px 0 0;font-size:12px;line-height:1.65;color:var(--co-text-2);overflow-wrap:anywhere}
.act-page .act-row-meta{margin:6px 0 0;font-size:11.5px;line-height:1.6;color:var(--co-text-muted);overflow-wrap:anywhere}
.act-page .act-note{margin:9px 0 0;font-size:11.5px;line-height:1.7;color:var(--co-text-muted);border-left:2px solid var(--co-line);padding-left:11px;max-width:92ch}
.act-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 7px;border-radius:10px;background:var(--co-surface-3);color:var(--co-text-2);font-size:11px;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums}
.act-open{flex:none;white-space:nowrap}
.act-noroute{flex:none;font-size:11px;color:var(--co-text-muted);white-space:nowrap;padding-top:6px}

/* A withheld panel: the reason, then the single change that would close it. The left rule marks it
   as a statement about the source rather than a statement about the book. */
.act-why{margin:8px 0 0;border-left:3px solid var(--co-line);padding-left:13px;max-width:92ch}
.act-page .act-why p{margin:0;font-size:12.5px;line-height:1.75;color:var(--co-text-2)}
.act-page .act-why .co-withheld-closes{margin:8px 0 0;font-size:11.5px;line-height:1.65;color:var(--co-text-muted)}
.act-nested{margin:12px 0 0;padding:12px 14px;border:1px dashed var(--co-line);border-radius:9px;background:#fff}
.act-nested-label{display:block;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--co-text-muted)}
.act-page .act-nested .act-why{margin-top:7px;border-left-width:0;padding-left:0}

/* Supporting figures. Zeros are rendered here, so the chips are deliberately plain: a measured zero
   should look like a count, not like a warning. */
.act-facts{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:10px 0 0!important}
.act-facts-label{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--co-text-muted);margin-right:2px}
.act-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border:1px solid var(--co-line);border-radius:13px;background:#fff;font-size:11.5px;line-height:1.5;color:var(--co-text-muted);white-space:nowrap}
.act-chip b{color:var(--co-text-2);font-weight:650;font-variant-numeric:tabular-nums}

.act-page .act-guarantee{display:flex;gap:10px;align-items:flex-start;margin:0;padding:16px 22px;border-bottom:1px solid #EFF0F4;background:#EEF4FF;font-size:12.5px;line-height:1.7;color:var(--co-blue)}
.act-page .act-guarantee svg{flex:none;margin-top:3px}
.act-page .act-tasks>.act-facts{margin:0!important;padding:14px 22px;border-bottom:1px solid #EFF0F4}
.act-page .act-types>.act-facts{margin:0!important;padding:14px 22px;border-bottom:1px solid #EFF0F4}
.act-page .act-tasks>.act-note,.act-page .act-types>.act-note,.act-page .act-decisions>.act-note{margin:0!important;padding:14px 22px;border-top:1px solid #EFF0F4;border-left:0;max-width:none}
.act-page .act-decisions>.act-why{margin:0;padding:18px 22px 18px 19px;border-left-width:3px}
.act-page .act-tasks>.act-why{margin:0;padding:18px 22px 18px 19px;border-left-width:3px}
.act-page .act-decisions>.act-meta{margin:0!important;padding:18px 22px}
.act-page .act-tasks>.act-meta{margin:0!important;padding:18px 22px}
.act-page .act-decisions>.act-nested{margin:0;border:0;border-top:1px solid #EFF0F4;border-radius:0;padding:14px 22px;background:var(--co-surface-3)}

.act-page .act-error{margin:8px 0 0;font-size:12px;line-height:1.65;color:var(--co-red-deep);overflow-wrap:anywhere}
/* The UUID and the saved payload stay inside the expander, where an engineer needs them and where
   they cost a reader nothing. */
.act-result{margin:10px 0 0}
.act-page .act-result>summary{cursor:pointer;font-size:12px;font-weight:650;color:var(--co-blue);list-style-position:outside}
.act-page .act-result .act-id{margin:9px 0 0;font-size:11px;color:var(--co-text-muted)}
.act-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.act-page pre.act-mono{margin:8px 0 0;padding:13px 15px;max-height:340px;overflow:auto;border:1px solid var(--co-line);border-radius:9px;background:var(--co-surface-3);font-size:11.5px;line-height:1.6;color:var(--co-text-2);white-space:pre-wrap}

@media(max-width:900px){
 .act-claims{grid-template-columns:1fr}
 .act-entry,.act-type,.act-row,.act-task{grid-template-columns:28px minmax(0,1fr);gap:12px;padding:15px 18px}
 .act-open,.act-noroute{grid-column:2;justify-self:start;margin-top:10px}
 .act-page .act-guarantee,.act-page .act-tasks>.act-facts,.act-page .act-types>.act-facts{padding:14px 18px}
}
@media(max-width:650px){
 .act-page .ph-row{flex-wrap:wrap}
 .act-source{flex-direction:column;gap:4px}
}
