/* Chat hosting only. Component geometry/colors come from the generated v12 stylesheet. */
.stock-card.stock-workflow :where(strong,td){color:inherit}
:where(.stock-card) :where(button,input,select){font:inherit;color:inherit;box-sizing:border-box}
:where(.stock-card) :where(button){border:0;background:none;cursor:pointer}
:where(.stock-card) :where(a){text-decoration:none;color:inherit}
:where(.stock-card) :where(svg){display:block}
.stock-card{container:stock-widget / inline-size;position:relative;min-width:0;width:100%;margin:4px 0 12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5;background:#f7f6f1;color:#293f35;border:0;border-radius:0;box-shadow:none;color-scheme:light}
.msg.assistant:has(>.stock-card){padding:0;background:transparent;box-shadow:none}
.stock-card .flow-home,.stock-card .flow-trend{padding-bottom:0}
.stock-card .flow-trend-head{grid-template-columns:minmax(0,1fr) auto}
.stock-card .flow-trend-identity{grid-column:1}.stock-card .flow-trend-zone{grid-column:1}.stock-card .flow-trend-current{grid-column:2}
.stock-card.is-detail{background:#f3f5f1}
.stock-card .flow-detail-toolbar,.stock-card .flow-zone-head{position:relative;top:auto;z-index:auto}
.stock-card .flow-follow-panel{max-height:none;border:1px solid #dce4db;border-radius:24px;overflow:hidden}
.stock-card .flow-follow-body{overflow:visible}
.stock-card .flow-undo{position:sticky;inset:auto;bottom:12px;z-index:3;transform:none;margin:8px 10px;max-width:calc(100% - 20px);justify-content:space-between}
.stock-card .flow-step-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 4px;margin-top:10px;border-top:1px solid #e2e7dc;font-size:12px;color:#5e6b65}
.stock-card .flow-step-progress{flex:1 1 100%}
.stock-card .flow-step-next{min-height:40px;padding:8px 14px;border-radius:99px;background:#e9f0e2;color:#2c453b;font-size:13px;font-weight:550;text-align:left}
.stock-card .flow-workbench{margin-left:auto;min-height:32px;display:flex;align-items:center;color:#63765e;font-size:11px}
.stock-card .flow-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;color:#6d7c6f;font-size:12px}
.stock-card .flow-pagination>span{margin-right:auto}.stock-card .flow-pagination button{min-height:34px;padding:4px 12px;border-radius:99px;background:#eff2ea}
.stock-card button:disabled{opacity:.5;cursor:default}
.stock-card .flow-review-title{font-size:16px;font-weight:600;color:#293f35;margin:0 4px 12px}
.stock-card .flow-review-list{border-radius:22px;border:1px solid #e3e8dc;background:#fffefa;overflow:hidden}
.stock-card .flow-review-row{padding:18px 16px 16px;border-bottom:1px solid #eef1e8;display:grid;gap:10px}
.stock-card .flow-review-row:last-child{border-bottom:0}
.stock-card .flow-review-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.stock-card .flow-review-name{font-size:16px;font-weight:600;color:#243730}
.stock-card .flow-review-reason{margin:3px 0 0;font-size:13px;color:#788679;line-height:1.5}
.stock-card .flow-review-qty{white-space:nowrap;font-variant-numeric:tabular-nums;color:#253830;line-height:1.4}
.stock-card .flow-review-qty strong{font-size:20px;font-weight:600}.stock-card .flow-review-qty small{font-size:13px;color:#788679;margin-left:3px}
.stock-card .stk-evidence-img{display:block;width:100%;max-width:100%;height:auto;max-height:80px;object-fit:contain;object-position:left center;border-radius:12px;border:1px solid #e5e9df;background:#fff;cursor:zoom-in}
.stock-card .flow-review-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.stock-card .flow-review-primary,.stock-card .flow-review-secondary,.stock-card .flow-review-cancel{min-height:38px;border-radius:999px;padding:0 16px;font-size:13px;font-weight:500;background:#2c453d;color:#fff}
.stock-card .flow-review-secondary{background:#eff2ea;color:#34493b}
.stock-card .flow-review-cancel{background:#fff;color:#556657;box-shadow:0 0 0 1px #dce2d5}
.stock-card .flow-review-form{display:grid;gap:10px;border-radius:16px;border:1px solid #dfe5d8;background:#f8f9f5;padding:12px}
.stock-card .flow-review-fields{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.stock-card .flow-review-fields label{display:flex;gap:8px;align-items:center;flex:1 1 120px;min-width:0;font-size:13px;color:#6d7c6f}
.stock-card .flow-review-fields label:last-of-type{flex:0 1 128px}
.stock-card .flow-review-fields label>span{flex-shrink:0}
.stock-card .flow-review-fields input{min-width:0;width:100%;min-height:40px;border:1px solid #d6ddd0;border-radius:12px;background:#fff;padding:6px 12px;font-size:16px;color:#243730}
.stock-card .flow-review-unit{min-height:32px;border-radius:99px;background:#e8ede2;padding:0 12px;font-size:13px;color:#3b5241}
.stock-card .flow-review-edit-actions,.stock-card .flow-review-edit-actions>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.stock-card .flow-review-blank{min-height:36px;padding:0 8px;font-size:13px;color:#788679}
.stock-card .flow-review-done{font-size:13px;color:#527a3f}
.stock-card .flow-card-error,.stock-card .flow-card-notice{padding:10px 12px;font-size:13px;color:#527a3f}
.stock-card .flow-card-error{color:#b34222}
.stock-card .flow-zone-chevron{margin-left:auto}
.stock-card .flow-trend-ask{min-height:40px;font-size:12px;color:#526975}
.stock-card .flow-trend-table{margin:0}
.stock-card .flow-trend-table :is(td,th){border-bottom:0;border-left:0;border-right:0}
.stock-card .flow-trend-table .is-row-head{border-right:1px solid #edf0e9}
.stock-card .flow-trend-table .flow-axis-gutter{background:#fffefa}
@media(max-width:600px){.msg-row.assistant:has(.stock-card)>.msg-avatar{display:none}.msg-row.assistant:has(.stock-card){display:block}.msg-row.assistant:has(.stock-card)>.msg{width:100%;max-width:100%}}

.stock-card .flow-review-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.stock-card .flow-review-heading .flow-review-title{margin:0}
.stock-card .flow-card-back{display:grid;place-items:center;min-width:36px;min-height:36px;color:#52645a;border-radius:999px}
.stock-card .flow-follow-head{justify-content:flex-start;gap:8px}
.stock-card .flow-collapse-btn{min-height:32px;padding:0 5px;color:#63765e;font-size:11px}
.stock-card .flow-card-loading{padding:6px 10px;color:#63765e;font-size:12px}
.stock-card.is-collapsed{margin-block:4px 10px;background:transparent}
.stock-card .flow-receipt-bar{display:flex;align-items:center;gap:6px;height:38px;padding:0 9px;background:#f4f7f2;border:1px solid #dfe6d7;border-radius:14px;box-sizing:border-box;white-space:nowrap}
.stock-card .flow-receipt-bar .flow-mark{width:18px;height:18px;font-size:12px}
.stock-card .flow-receipt-copy{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#71806e}
.stock-card .flow-receipt-copy strong{font-weight:600;color:#34493b}
.stock-card .flow-receipt-toggle{flex-shrink:0;min-height:34px;padding:0 4px;color:#3c624c;font-size:12px}

.stock-card .flow-step-links{display:flex;align-items:center;gap:8px;margin-left:auto}

.stock-card .flow-undo button:last-child{opacity:1}
