/* A strategy prepares an unsent draft. This card never represents execution approval. */
.strategy-chat-handoff{box-sizing:border-box;position:relative;min-width:0;max-width:100%;margin:12px 0;padding:16px 18px;background:#fff;border:1px solid #c4d4e1;border-inline-start:3px solid #2868a9;border-radius:9px;color:#171b20;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.strategy-chat-handoff *{box-sizing:border-box}
.strategy-chat-handoff [hidden]{display:none!important}
.strategy-chat-handoff .strategy-handoff-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px;position:static;height:auto;min-height:0;border:0;padding:0;margin:0 0 8px;background:transparent}
.strategy-chat-handoff .strategy-handoff-heading :is(p,h3){margin:0}
.strategy-chat-handoff :is(h2,h3){font-size:16px!important;line-height:1.35;letter-spacing:-.25px;margin:0 0 8px;color:#1e4568;font-weight:650}
.strategy-chat-handoff p{margin:6px 0;max-width:100%;font-size:13px;line-height:1.6}
.strategy-chat-handoff .strategy-handoff-meta{font-size:11px;color:#606b72}
.strategy-chat-handoff .strategy-handoff-notice{font-size:12px;line-height:1.6;color:#526477;background:#eef4f8;border-radius:6px;padding:9px 11px;margin:10px 0}
.strategy-chat-handoff [role="alert"]:not(:empty){padding:10px 12px;border:1px solid #e0bdaa;border-radius:6px;background:#fff2e9;color:#873b13;font-size:12px}
.strategy-chat-handoff details{min-width:0;max-width:100%;margin:8px 0}
.strategy-chat-handoff summary{min-height:44px;padding:11px 0;cursor:pointer;color:#235583;font-size:12px;font-weight:600}
.strategy-chat-handoff :is(.strategy-handoff-brief,pre){white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;max-height:280px;overflow:auto;margin:8px 0;padding:12px;border:1px solid #ddd9cf;border-radius:6px;background:#f7f6f2;color:#30382f;font-family:inherit;font-size:12px;line-height:1.65}
.strategy-chat-handoff .strategy-handoff-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 0;min-width:0}
.strategy-chat-handoff button,.strategy-chat-handoff a.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 13px;margin:0;border:1px solid #c4c9c2;border-radius:7px;background:#f7f6f2;color:#293629;font:inherit;font-size:12px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.strategy-chat-handoff button:hover:not(:disabled),.strategy-chat-handoff a.secondary:hover{background:#eaf2f8;border-color:#a9c2d6;color:#235583}
.strategy-chat-handoff button.primary{background:#fc5607;border-color:#fc5607;color:#171b20}
.strategy-chat-handoff button.primary:hover:not(:disabled){background:#ed4e00;border-color:#ed4e00;color:#171b20}
.strategy-chat-handoff button:disabled{opacity:.6;cursor:default}
.strategy-chat-handoff :is(input,select,textarea){min-width:0;width:100%;max-width:100%;min-height:44px;font-size:16px;padding:10px 12px;border:1px solid #bdc9bd;border-radius:6px}
.strategy-chat-handoff :is(a,button,input,select,textarea,summary,[tabindex="0"]):focus-visible{outline:3px solid #2868a9;outline-offset:3px}
@media(max-width:600px){.strategy-chat-handoff{padding:14px 12px;margin:10px 0}.strategy-chat-handoff .strategy-handoff-actions{align-items:stretch}.strategy-chat-handoff .strategy-handoff-actions>:is(button,a){flex:1 1 150px}.strategy-chat-handoff :is(.strategy-handoff-brief,pre){max-height:240px}}
@media(forced-colors:active){.strategy-chat-handoff,.strategy-chat-handoff button,.strategy-chat-handoff .strategy-handoff-notice{border:1px solid CanvasText}}
/* The optional card adds a real row above the composer. Let only that main
   Chat panel grow; its transcript keeps the existing independent scroll. */
.conversation-layout>.studio-chat:has(>.strategy-chat-handoff){position:static;height:auto;max-height:none;overflow:visible}
.conversation-layout>.studio-chat:has(>.strategy-chat-handoff)>.strategy-chat-handoff,
.conversation-layout>.studio-chat:has(>.strategy-chat-handoff)>form{flex-shrink:0}
