/* Story #0 | 2026-09-06 | George | Scoped execution workspace presentation; no global shell selector leakage. */
.execution-loop{min-width:0;overflow-wrap:anywhere}.execution-loop .execution-stack{grid-template-columns:minmax(0,1fr)}.execution-loop .execution-card,.execution-loop .execution-gate,.execution-loop .execution-facts dd{min-width:0}.execution-loop code{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.execution-loop .execution-gate small{min-width:0}.execution-loop .execution-card h2{overflow-wrap:anywhere}
.execution-loop{max-width:1220px;margin:0 auto;padding:8px 0 48px;color:#17212b}.execution-loop .execution-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.execution-loop .execution-header h1{margin:4px 0 8px;font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.035em}.execution-loop .execution-header p{max-width:700px;color:#607080}.execution-loop .execution-project{display:grid;gap:6px;min-width:220px;font-size:.76rem;font-weight:700;color:#607080}.execution-loop .execution-project select,.execution-loop .execution-form input:not([type="checkbox"]),.execution-loop .execution-form textarea{width:100%;border:1px solid #cfd8e3;border-radius:8px;padding:10px 12px;background:#fff;color:#17212b;font:inherit}.execution-loop .execution-tabs{display:flex;gap:4px;border-bottom:1px solid #dbe3ec;margin-bottom:18px}.execution-loop .execution-tabs button{border:0;border-bottom:3px solid transparent;background:none;padding:11px 14px;color:#607080;font-weight:700;cursor:pointer}.execution-loop .execution-tabs button.active{border-color:#1264a3;color:#1264a3}.execution-loop .execution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.execution-loop .execution-card{background:#fff;border:1px solid #dbe3ec;border-radius:12px;padding:20px;box-shadow:0 3px 12px rgba(31,52,73,.05)}.execution-loop .execution-card-wide{grid-column:span 2}.execution-loop .execution-card h2{margin:3px 0 12px;font-size:1.18rem}.execution-loop .card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.execution-loop .eyebrow{margin:0;text-transform:uppercase;letter-spacing:.1em;font-size:.7rem;font-weight:800;color:#688096}.execution-loop .muted{color:#6a7b8a}.execution-loop .status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:800;white-space:nowrap}.execution-loop .status-good{background:#e4f5ec;color:#166a43}.execution-loop .status-warn{background:#fff1d9;color:#925d00}.execution-loop .status-neutral{background:#edf2f6;color:#536474}.execution-loop .execution-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.execution-loop .button{border:1px solid #bdcbd8;border-radius:8px;padding:9px 13px;background:#fff;color:#1b4f78;font:inherit;font-weight:700;cursor:pointer}.execution-loop .button.primary{border-color:#1264a3;background:#1264a3;color:#fff}.execution-loop .button:disabled{opacity:.5;cursor:not-allowed}.execution-loop .execution-form{display:grid;gap:14px;max-width:860px}.execution-loop .execution-form label{display:grid;gap:6px;font-weight:700;color:#34495a}.execution-loop .execution-form fieldset{display:grid;gap:8px;border:1px solid #dbe3ec;border-radius:8px;padding:12px}.execution-loop .execution-form legend{padding:0 5px;font-weight:800}.execution-loop .execution-form .execution-check{display:flex!important;align-items:flex-start;justify-content:flex-start;width:100%;text-align:left}.execution-loop .execution-form .execution-check input[type="checkbox"]{display:block;flex:0 0 18px;width:18px!important;min-width:18px;height:18px!important;min-height:18px;margin:2px 0 0;padding:0;accent-color:#1264a3}.execution-loop .execution-check span{display:block;flex:1 1 auto;text-align:left}.execution-loop .execution-check small{display:block;color:#6a7b8a;font-weight:400}.execution-loop .execution-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;border-top:1px solid #e4eaf0;padding:15px 0}.execution-loop .execution-row:first-of-type{border-top:0}.execution-loop .execution-row p{margin:5px 0;color:#607080}.execution-loop .execution-events{display:grid;gap:11px;padding:0;margin:0;list-style:none}.execution-loop .execution-events li{display:flex;gap:10px;border-left:2px solid #cbd9e5;padding-left:10px}.execution-loop .execution-events time{font-size:.75rem;color:#738595;white-space:nowrap}.execution-loop .execution-stage-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;list-style:none;padding:18px 0 3px;margin:0}.execution-loop .execution-stage-strip li{text-align:center;color:#8b9aa7;font-size:.7rem}.execution-loop .execution-stage-strip span{display:grid;place-items:center;width:25px;height:25px;margin:0 auto 5px;border:1px solid #cbd8e4;border-radius:50%;background:#fff}.execution-loop .execution-stage-strip li.current{color:#1264a3;font-weight:800}.execution-loop .execution-stage-strip li.current span{border-color:#1264a3;background:#eaf4fb}.execution-loop .execution-stage-strip li.complete{color:#166a43}.execution-loop .execution-stage-strip li.complete span{border-color:#2c9b68;background:#e4f5ec}.execution-loop .execution-stage-strip small{text-transform:capitalize}.execution-loop .execution-evidence{overflow:auto;background:#f5f8fa;border-radius:8px;padding:12px;font-size:.75rem;max-height:260px}.execution-loop .execution-loading,.execution-loop .execution-empty,.execution-loop .execution-error{display:grid;place-items:center;gap:10px;min-height:260px;text-align:center;padding:30px}.execution-loop .execution-error{border:1px solid #ecc7c7;border-radius:12px;background:#fff7f7;color:#842b2b}.execution-loop .execution-inline-error{border:1px solid #ecc7c7;border-radius:8px;background:#fff7f7;color:#842b2b;padding:10px 12px;margin:12px 0}.execution-loop .spinner{width:25px;height:25px;border:3px solid #dbe3ec;border-top-color:#1264a3;border-radius:50%;animation:execution-spin .8s linear infinite}@keyframes execution-spin{to{transform:rotate(360deg)}}.execution-loop .execution-scope-hash{font-size:.72rem;color:#607080;align-self:center;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.execution-loop .execution-stack{display:grid;gap:16px}
@media (max-width:760px){.execution-loop .execution-header{display:grid;align-items:stretch}.execution-loop .execution-project{min-width:0}.execution-loop .execution-grid{grid-template-columns:1fr}.execution-loop .execution-card-wide{grid-column:auto}.execution-loop .execution-tabs{overflow:auto}.execution-loop .execution-tabs button{white-space:nowrap}.execution-loop .execution-stage-strip{min-width:650px}.execution-loop .execution-card:has(.execution-stage-strip){overflow:auto}.execution-loop .execution-row{grid-template-columns:1fr}.execution-loop .execution-row>.status{justify-self:start}}
.execution-loop .execution-details{margin:12px 0}.execution-loop .execution-details summary{cursor:pointer;color:#1b4f78;font-weight:700}.execution-loop .execution-details dl{display:grid;grid-template-columns:minmax(150px,auto) 1fr;gap:8px 14px;margin:12px 0 0;padding:12px;background:#f7f9fb;border-radius:8px}.execution-loop .execution-details dt{font-weight:800;color:#536474}.execution-loop .execution-details dd{margin:0;color:#34495a}.execution-loop .execution-details ul{margin:0;padding-left:18px}.execution-loop .execution-facts{display:grid;grid-template-columns:minmax(130px,auto) minmax(0,1fr);gap:8px 14px;margin:12px 0}.execution-loop .execution-facts dt{font-weight:800;color:#536474}.execution-loop .execution-facts dd{margin:0;overflow-wrap:anywhere;min-width:0}.execution-loop .execution-review-story,.execution-loop .execution-evidence-story{border-top:1px solid #e4eaf0;padding:14px 0;min-width:0}.execution-loop .execution-gate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:9px 0;min-width:0}.execution-loop .execution-gate strong,.execution-loop .execution-gate small{min-width:0;overflow-wrap:anywhere}.execution-loop .execution-gate small{grid-column:1 / -1;color:#6a7b8a}.execution-loop code{overflow-wrap:anywhere;word-break:break-word}.execution-loop .execution-criterion{display:flex;align-items:flex-start;gap:9px;margin:9px 0}.execution-loop .execution-criterion input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;margin:2px 0;accent-color:#1264a3}.execution-loop .execution-decision-note{display:grid;gap:6px;margin-top:16px;font-weight:700;color:#34495a}.execution-loop .execution-decision-note textarea{width:100%;border:1px solid #cfd8e3;border-radius:8px;padding:10px 12px;font:inherit;resize:vertical}
@media (max-width:760px){.execution-loop .execution-facts{grid-template-columns:1fr}.execution-loop .execution-facts dt{margin-top:5px}}
/* Story #0 | 2026-09-06 | George | Keep stacked review cards within narrow viewports. */
.execution-loop .execution-stack{grid-template-columns:minmax(0,1fr)}.execution-loop .execution-card{min-width:0}
/* Story #0 | 2026-09-08 | George | Keep durable acceptance contracts readable, accessible and usable at 390px. */
.execution-loop .execution-form small{font-weight:400;color:#6a7b8a}.execution-loop .execution-story-choice{padding:10px 0;border-top:1px solid #e4eaf0}.execution-loop .execution-story-choice:first-of-type{border-top:0}.execution-loop .execution-story-criteria{display:block;margin-top:8px;padding:10px 12px;border-left:3px solid #9eb7ca;background:#f7f9fb;color:#34495a}.execution-loop .execution-story-criteria ul,.execution-loop .execution-story-scope ul{margin:7px 0 0;padding-left:20px}.execution-loop .execution-story-scope{margin:8px 0;padding:10px 12px;border:1px solid #dbe3ec;border-radius:8px}.execution-loop .execution-story-scope p{margin:6px 0 0}.execution-loop .execution-requirement-proposals{gap:14px}.execution-loop .execution-requirement-proposal{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(190px,.8fr);gap:10px 16px;padding:14px;border:1px solid #dbe3ec;border-radius:10px;background:#fbfcfd}.execution-loop .execution-requirement-proposal>div:first-child{grid-column:1 / -1}.execution-loop .execution-requirement-proposal strong{display:inline;margin-left:8px}.execution-loop .execution-requirement-proposal p{margin:7px 0 0}.execution-loop .execution-requirement-proposal select,.execution-loop .execution-requirement-proposal textarea{width:100%;border:1px solid #cfd8e3;border-radius:8px;padding:9px 11px;background:#fff;color:#17212b;font:inherit}.execution-loop .execution-contract-unavailable{padding:12px;border:1px solid #e2c98d;border-radius:8px;background:#fff9eb;color:#6e5107}.execution-loop .execution-contract-unavailable p{margin:6px 0 0;color:inherit}.execution-loop .execution-permission-note{padding:10px 12px;border-left:3px solid #688096;background:#f2f5f8}.execution-loop .execution-contract-text{font-size:1.02rem;line-height:1.55}.execution-loop .execution-contract-history{display:grid;gap:12px;margin:12px 0 0;padding-left:22px}.execution-loop .execution-contract-history li{padding-left:4px}.execution-loop .execution-contract-history p{margin:5px 0}.execution-loop .execution-proposal-summary{display:grid;gap:9px}.execution-loop .execution-proposal-summary>p{margin:0}.execution-loop .execution-proposal-summary article{padding:10px 12px;border:1px solid #dbe3ec;border-radius:8px}.execution-loop .execution-proposal-summary article p{margin:6px 0}.execution-loop button:focus-visible,.execution-loop input:focus-visible,.execution-loop textarea:focus-visible,.execution-loop select:focus-visible,.execution-loop summary:focus-visible{outline:3px solid rgba(18,100,163,.3);outline-offset:2px}
@media (max-width:760px){.execution-loop .execution-requirement-proposal{grid-template-columns:minmax(0,1fr)}.execution-loop .execution-requirement-proposal>div:first-child{grid-column:auto}.execution-loop .execution-requirement-proposal strong{display:block;margin:7px 0 0}.execution-loop .execution-story-criteria,.execution-loop .execution-story-scope{padding:9px 10px}.execution-loop .execution-contract .execution-facts{gap:5px}}
