/* One unobtrusive in-chat lifecycle card, not another product dashboard. */
.yb-chat-flow{box-sizing:border-box;width:min(calc(100% - 32px),860px);margin:0 auto 8px;
 padding:12px 15px;background:var(--panel);border:1px solid var(--border);
 border-radius:16px;color:var(--fg);box-shadow:0 6px 20px #0000000c}
.yb-chat-flow[hidden],.yb-chat-flow [hidden]{display:none!important}
.yb-chat-top{display:flex;gap:10px;align-items:center;min-height:37px}
.yb-chat-mark{display:grid;place-items:center;width:32px;height:32px;flex:none;
 border-radius:11px;background:#246748;color:white;font-weight:800;font-size:17px}
.yb-chat-copy{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.yb-chat-copy strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.yb-chat-copy small{font-size:12px;opacity:.72;line-height:1.35}
.yb-chat-close{flex:none;min-width:32px;min-height:32px;padding:2px;font-size:22px;
 background:transparent!important;border:none!important;color:var(--fg)}
.yb-chat-status{font-size:13px;line-height:1.45;margin:6px 0 8px;opacity:.85}
.yb-chat-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.yb-chat-actions button,.yb-chat-actions a{font:600 12px/1.4 system-ui;min-height:34px;
 padding:7px 12px;border:1px solid var(--border);border-radius:10px;text-decoration:none;
 background:var(--btn);color:var(--fg)}
.yb-chat-actions button.yb-chat-primary{background:#1f6a42;border-color:#1f6a42;color:#fff}
.yb-chat-actions button:disabled{opacity:.55;cursor:wait}
.yb-chat-advanced{margin-top:8px;font-size:12px;color:var(--fg)}
.yb-chat-advanced summary{cursor:pointer;opacity:.78;line-height:1.5;font-size:12px}
.yb-chat-advanced p{margin:6px 0;opacity:.72}
.yb-chat-confirm{margin-top:10px;padding:9px 10px;border:1px solid var(--border);
 border-radius:12px;background:var(--page)}
.yb-chat-confirm p{font-size:13px;margin:0 0 8px;line-height:1.5}
@media(max-width:650px){
 .yb-chat-flow{width:calc(100% - 20px);padding:11px 12px;margin-bottom:5px;
  max-height:40dvh;overflow-y:auto}
 .yb-chat-copy strong{font-size:13px}
 .yb-chat-actions button,.yb-chat-actions a{min-height:38px;font-size:12px}
}

/* YapCode-inspired compact progress and calm workspace polish. */
.yb-chat-flow{
 position:relative;isolation:isolate;
 background:var(--panel,#fff);border:1px solid var(--border,#dce6dc);
 box-shadow:0 10px 35px #061a130f;border-radius:18px;
 padding:16px clamp(14px,2.4vw,22px);color:var(--fg,#233a2d)
}
.yb-chat-top{align-items:center;gap:12px}
.yb-chat-mark{width:38px;height:38px;border-radius:13px;
 background:linear-gradient(135deg,#2d8b57,#22553f);
 box-shadow:0 5px 14px #1b62302e;font-size:20px}
.yb-chat-eyebrow{font-size:10px;line-height:1.3;letter-spacing:.1em;font-weight:800;
 color:var(--accent,#4d805b);opacity:.85}
.yb-chat-copy strong{font-size:16px;line-height:1.45;letter-spacing:-.02em}
.yb-chat-state{white-space:nowrap;font:700 11px/1.3 system-ui;
 padding:6px 9px;border-radius:99px;border:1px solid var(--border,#dce6dc);
 background:var(--bubble,#f1f6f2);color:var(--fg,#244)}
.yb-chat-state[data-stage="published"],.yb-chat-state[data-stage="form-shared"]{
 border-color:#6ea581;background:#ebf7ee;color:#1b5a36
}
.yb-chat-steps{display:flex;align-items:center;gap:0;margin:13px 0 10px;
 padding:0;list-style:none;counter-reset:yb-stage}
.yb-chat-steps li{position:relative;flex:1;display:flex;align-items:center;
 gap:7px;min-width:0;font:650 11px/1.45 system-ui;opacity:.63;
 white-space:nowrap;counter-increment:yb-stage}
.yb-chat-steps li::before{content:counter(yb-stage);display:grid;place-items:center;
 flex:none;width:22px;height:22px;border:1px solid var(--border,#dce6dc);
 border-radius:50%;background:var(--bubble,#f0f4f1);font-size:10px}
.yb-chat-steps li:not(:last-child)::after{content:"";height:1px;
 background:var(--border,#dce6dc);flex:1;margin:0 10px}
.yb-chat-steps li.is-done{opacity:1}
.yb-chat-steps li.is-done::before{content:"✓";background:#2b7850;color:white;border-color:#2b7850}
.yb-chat-steps li[aria-current="step"]{opacity:1;color:var(--fg,#244);font-weight:800}
.yb-chat-status{font-size:12px;line-height:1.55;min-height:0;opacity:.76;margin:9px 0 12px}
.yb-chat-actions{gap:9px}
.yb-chat-actions button,.yb-chat-actions a{min-height:39px;border-radius:11px;
 padding:9px 13px;font-size:12px;font-weight:680;
 transition:background .15s ease,transform .15s ease}
.yb-chat-actions button:not(:disabled):hover{transform:translateY(-1px)}
.yb-chat-actions .yb-chat-primary{background:#286346!important;border-color:#286346!important;color:#fff!important}
.yb-chat-actions button:focus-visible,.yb-chat-actions a:focus-visible,
.yb-chat-close:focus-visible,.yb-chat-advanced summary:focus-visible{
 outline:3px solid #75aa84;outline-offset:2px
}
.yb-chat-close{font-size:20px;min-width:34px;min-height:34px;border-radius:10px!important}
.yb-chat-advanced{margin-top:12px;border-top:1px solid var(--border,#dce6dc);padding-top:10px}
.yb-chat-confirm{border-color:#8cb9a0;background:var(--bubble,#f0f5ef);margin-top:12px}
.yb-chat-confirm button:first-of-type{background:#286346;color:#fff;border-color:#286346}
@media(max-width:650px){
 .yb-chat-flow{padding:13px 13px 12px;border-radius:15px;max-height:min(45dvh,390px)}
 .yb-chat-mark{width:34px;height:34px;border-radius:11px}
 .yb-chat-copy strong{font-size:14px}
 .yb-chat-state{font-size:10px;padding:5px 7px}
 .yb-chat-steps{margin:9px 0}
 .yb-chat-steps li{gap:5px;font-size:10px}
 .yb-chat-steps li::before{width:20px;height:20px}
 .yb-chat-steps li:not(:last-child)::after{margin:0 6px}
 .yb-chat-status{font-size:12px;margin:7px 0 10px}
 .yb-chat-actions button,.yb-chat-actions a{min-height:42px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .yb-chat-actions button,.yb-chat-actions a{transition:none!important}
 .yb-chat-actions button:hover{transform:none}
}
