.eg-workspace{--eg-ink:var(--de-ink,#252733);--eg-muted:var(--de-muted,#626571);--eg-line:var(--de-line,#e4e5eb);color:var(--eg-ink);background:#f7f8fa;padding:24px;font:14px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;min-width:0}
.eg-workspace [hidden]{display:none!important}.eg-heading,.eg-title-row,.eg-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.eg-heading{margin-bottom:24px}.eg-heading h1{font-size:24px;line-height:1.4;margin:0;font-weight:650}.eg-scope{font-size:12px;color:var(--eg-muted);margin:0 0 4px}.eg-muted{color:var(--eg-muted);margin:6px 0 12px}.eg-actions{justify-content:flex-start;gap:8px}.eg-sheet{background:#fff;border:1px solid var(--eg-line);border-radius:12px;padding:24px;margin-bottom:16px;min-width:0}.eg-sheet h2,.eg-confirm h2{font-size:18px;font-weight:600;line-height:1.6;margin:0 0 16px}.eg-sheet h3{font-size:14px;font-weight:600;margin:0}.eg-workspace button,.eg-confirm button{font:inherit;line-height:1.4;color:var(--eg-ink,#252733);padding:8px 12px;min-height:36px;border:1px solid #c8cbd2;background:white;border-radius:6px;cursor:pointer;box-shadow:none}.eg-workspace button:hover,.eg-confirm button:hover{border-color:#6d707b}.eg-workspace :focus-visible,.eg-confirm :focus-visible{outline:2px solid #252733;outline-offset:3px}.eg-workspace button:disabled{color:#626571;background:#f1f2f4;cursor:wait}.eg-workspace .eg-primary{background:#252733;border-color:#252733;color:white}.eg-workspace button.eg-primary:disabled{background:#626571;color:white}.eg-tabs{display:flex;gap:8px;border-bottom:1px solid var(--eg-line);max-width:100%;overflow:auto}.eg-tabs button{white-space:nowrap;border:0;border-radius:0;background:transparent;padding:10px 8px;border-bottom:2px solid transparent}.eg-tabs button[aria-pressed=true]{border-bottom-color:#252733}.eg-goals{margin-top:16px}.eg-workspace .eg-goal-row{display:flex;text-align:left;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:20px 0;border:0;border-bottom:1px solid var(--eg-line);border-radius:0;background:white}.eg-goal-row strong{display:block;white-space:normal;font-weight:550;overflow-wrap:anywhere}.eg-goal-row small{display:block;color:var(--eg-muted);font-size:12px;margin-top:4px}.eg-status{flex:none;white-space:nowrap;font-size:12px;background:#f0f1f4;color:#535660;padding:2px 8px;border-radius:4px}.eg-status[data-state=needs_approval],.eg-status[data-state=needs_user],.eg-status[data-state=blocked]{color:#824100;background:#fff3d5}.eg-status[data-state=succeeded],.eg-status[data-state=completed]{color:#205f42;background:#e7f2ec}.eg-empty{padding:24px 0;color:var(--eg-muted);margin:0}.eg-message{padding:12px 0;color:#8c2529}.eg-message button{margin-left:12px}.eg-workspace label{display:block;font-weight:550;margin-bottom:16px}.eg-workspace input,.eg-workspace select,.eg-workspace textarea{display:block;font:inherit;font-weight:400;color:var(--eg-ink);width:100%;box-sizing:border-box;margin-top:8px;padding:10px 12px;border:1px solid #c8cbd2;border-radius:6px;background:white;min-height:40px;max-width:100%}.eg-workspace ::placeholder{color:#626571}.eg-workspace textarea{resize:vertical;min-height:96px}.eg-budget{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:16px;max-width:480px}.eg-images{display:flex;gap:16px;flex-wrap:wrap}.eg-images figure{margin:0 0 16px;width:140px}.eg-images img{display:block;width:140px;height:100px;object-fit:contain;margin-bottom:8px}.eg-goal-text{white-space:pre-wrap;overflow-wrap:anywhere}.eg-progress{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:16px 0;color:var(--eg-muted);font-size:12px;font-variant-numeric:tabular-nums}.eg-progress progress{width:100%;height:8px;accent-color:#626571}.eg-reason{padding:8px 0;margin:8px 0;color:#824100}.eg-proposal{border-top:1px solid var(--eg-line);padding:20px 0}.eg-proposal:last-child{padding-bottom:0}.eg-proposal h3{margin-bottom:12px}.eg-facts{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 16px;margin:16px 0}.eg-facts dt{color:var(--eg-muted)}.eg-facts dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.eg-caption,.eg-answer{white-space:pre-wrap;overflow-wrap:anywhere}.eg-media{margin:12px 0;max-width:460px}.eg-media video{width:100%;max-height:360px;background:#111;border-radius:6px}.eg-media figcaption{margin-top:4px}.eg-workspace a{color:var(--eg-ink);text-underline-offset:3px}.eg-steps{list-style:none;margin:16px 0;padding:0}.eg-steps li{border-bottom:1px solid var(--eg-line);padding:16px 0}.eg-steps details{margin-top:8px;color:var(--eg-muted)}.eg-steps summary{cursor:pointer}.eg-notifications ul{list-style:none;margin:0;padding:0}.eg-notifications button{border:0;text-align:left;padding:8px 0}.eg-confirm{box-sizing:border-box;max-width:480px;width:calc(100% - 32px);padding:24px;border:1px solid #c8cbd2;border-radius:12px;font:14px/1.6 system-ui,sans-serif;color:#252733}.eg-confirm::backdrop{background:rgba(0,0,0,.35)}
/* The host app supplies the navigation frame. The sheet uses its full inner width. */
@media(max-width:760px){.eg-workspace{padding:16px}.eg-heading{gap:12px}.eg-sheet{padding:16px}.eg-heading h1{font-size:22px}.eg-workspace button,.eg-confirm button{min-height:44px}.eg-title-row{gap:8px}.eg-tabs{order:2;width:100%}.eg-goal-row{align-items:flex-start!important}.eg-goal-row .eg-status{margin-top:2px}.eg-facts{grid-template-columns:82px minmax(0,1fr);gap:8px}.eg-goal-row strong{font-size:14px}.eg-progress span{width:100%}}

.eg-artifact{border-top:1px solid #d8ded3;padding:18px 0;margin-top:12px;overflow-wrap:anywhere}.eg-artifact header{display:flex;gap:16px;justify-content:space-between}.eg-artifact p{white-space:pre-wrap}.eg-artifact ul{padding-left:20px}.eg-artifact-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}.eg-artifact-media figure{margin:0}.eg-artifact-media img{display:block;max-width:100%;max-height:420px;object-fit:contain}.eg-artifact-media audio{max-width:100%;width:100%}.eg-artifact-media .eg-media{margin:0}.eg-artifact-media figcaption{margin-top:8px;font-size:13px}.eg-quality{font-weight:600}
