/* Generated from kitchen v12 stock-workflow.css: scoped to .stock-card, viewport queries use its container. */
.stock-card.stock-workflow{--flow-up:#9e2a22;--flow-down:#15654b;--flow-ink:#293f35;--flow-muted:#7e887d;--flow-border:#e2e7dc;color:var(--flow-ink);font-variant-numeric:tabular-nums}
.stock-card.stock-workflow button,.stock-card.stock-workflow a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.stock-card.stock-workflow button:focus-visible,.stock-card.stock-workflow a:focus-visible,.stock-card.stock-workflow input:focus-visible{outline:2px solid #748a69;outline-offset:3px}
.stock-card .flow-home{display:grid;gap:24px}
.stock-card .flow-hero{display:grid;grid-template-columns:126px 1fr;gap:16px 24px;align-items:center;padding:23px 24px 20px;border:1px solid #dfe6d7;border-radius:28px;background:linear-gradient(135deg,#eef2e8,#fffefa 80%);box-shadow:0 9px 30px #30432a06}
.stock-card .flow-hero.is-clear{background:linear-gradient(135deg,#e8f0de,#f9fbf5);border-color:#d5e2c9}
.stock-card .flow-orbit{width:126px;height:126px;position:relative}
.stock-card .flow-orbit>svg{width:100%;height:100%;transform:rotate(-90deg)}
.stock-card .flow-orbit-track,.stock-card .flow-orbit-progress{fill:none;stroke-width:9}
.stock-card .flow-orbit-track{stroke:#dce3d3}
.stock-card .flow-orbit-progress{stroke:#73945f;stroke-linecap:round;transition:stroke-dasharray 300ms ease}
.stock-card .flow-orbit-center{position:absolute;inset:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fffefa;box-shadow:0 2px 9px #233b2910}
.stock-card .flow-orbit-center strong{font-size:40px;line-height:1.1;letter-spacing:-1px;font-weight:600}
.stock-card .flow-orbit-center span{font-size:12px;color:#76836d;margin-top:4px}
.stock-card .flow-hero-title{font-size:18px;font-weight:600;margin-bottom:11px}
.stock-card .flow-status-counts{display:grid;gap:6px}
.stock-card .flow-status-counts>a,.stock-card .flow-status-counts>button{display:flex;align-items:center;gap:7px;min-height:29px;font-size:13px;text-align:left;padding:0}
.stock-card .flow-status-counts b{margin-left:auto;font-size:16px;font-weight:600}
.stock-card .flow-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;font-weight:700;font-size:16px;line-height:1;color:#668550;background:#e9f0e2}
.stock-card .flow-mark.is-unread{background:#e9eae3;color:#76836d}
.stock-card .flow-mark.is-unread i{display:block;width:7px;height:7px;border-radius:50%;background:currentColor}
.stock-card .flow-mark.is-review{color:#816698;background:#eee8f3}
.stock-card .flow-mark.is-follow{color:#ae7447;background:#f5eadd}
.stock-card .flow-mark.is-syncing,.stock-card .flow-mark.is-empty{background:#ebece6;color:#8c9287}
.stock-card .flow-status-counts .flow-mark{width:20px;height:20px;font-size:14px}
.stock-card .flow-status-counts .flow-mark i{width:5px;height:5px}
.stock-card .flow-primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border-radius:99px;background:#2c453b;color:#fffefa;font-size:15px;font-weight:500;padding:10px 20px;border:0;cursor:pointer}
.stock-card .flow-primary:active{transform:scale(.98)}
.stock-card .flow-primary:disabled{opacity:.5}
.stock-card .flow-hero>.flow-primary{grid-column:1/-1}
.stock-card .flow-history-link{display:flex;gap:6px;align-items:center;font-size:13px;color:#6d8062;min-height:40px}
.stock-card .flow-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding:0 4px}
.stock-card .flow-section-head h2{font-size:16px;font-weight:600;margin:0}
.stock-card .flow-section-head button{min-width:32px;min-height:32px;color:#7b8975;display:grid;place-items:center}
.stock-card .flow-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stock-card .flow-category{display:flex;align-items:center;justify-content:space-between;min-width:0;height:83px;border-radius:23px;padding:14px 17px;border:1px solid #e1e6da;background:#fffefa;box-shadow:0 3px 9px #2d402504;transition:background 150ms ease,transform 150ms ease,border-color 150ms ease;cursor:pointer}
.stock-card .flow-category:hover{border-color:#becdb1}
.stock-card .flow-category:active{transform:scale(.96)}
.stock-card .flow-category.is-done{background:#f7f9f2}
.stock-card .flow-cat-icon{display:grid;place-items:center;width:50px;height:50px;color:var(--category-color);background:var(--category-bg);border-radius:18px 22px 16px 21px}
.stock-card .flow-cat-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6}
.stock-card .flow-category .flow-mark{width:24px;height:24px}
.stock-card .flow-hero{grid-template-columns:110px 1fr;padding:18px 21px;gap:12px 22px}
.stock-card .flow-orbit{width:110px;height:110px}
.stock-card .flow-hero-title{margin-bottom:9px}
.stock-card .flow-orbit-center strong{font-size:36px}
.stock-card .flow-section-head button{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:500}
.stock-card .flow-category{display:grid;grid-template-columns:30px minmax(0,1fr) 24px;gap:6px;height:76px;min-height:76px;padding:12px;border-radius:20px;align-content:center;text-align:left}
.stock-card .flow-cat-icon{width:30px;height:30px;border-radius:10px}
.stock-card .flow-cat-icon svg{width:23px;height:23px}
.stock-card .flow-category-name{font-size:15px;font-weight:550;line-height:1.2;white-space:nowrap;letter-spacing:-.02em}
.stock-card .flow-cat-status{display:grid;place-items:center;justify-self:end;width:24px}
.stock-card .flow-category .flow-mark{width:20px;height:20px;font-size:14px}
.stock-card .flow-mark.is-unread,.stock-card .flow-mark.is-syncing{background:#e9edf2;color:#73849a}
.stock-card .flow-mark.is-syncing i{display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
.stock-card .flow-mark.is-zero,.stock-card .flow-mark.is-attention,.stock-card .flow-category .flow-mark:is(.is-zero,.is-attention,.is-review,.is-follow){background:#fbecdc;color:#92521e}
.stock-card .flow-home{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.stock-card.stock-workflow:not(.is-detail):has(.flow-undo:not([hidden])) .flow-home{padding-bottom:calc(184px + env(safe-area-inset-bottom))}
.stock-card .flow-departments{margin-bottom:14px;border:1px solid #e1e5d8;border-radius:24px;min-height:38px;padding:0 14px;background:#fffefa}
.stock-card .flow-note{font-size:13px;color:#7d8973}
.stock-card.stock-workflow.is-detail>.flow-departments{display:none}
.stock-card.stock-workflow.is-detail .flow-list{border:0;box-shadow:none;border-radius:0;overflow:visible;background:#F3F5F1}
.stock-card .flow-detail-toolbar{position:sticky;top:0;z-index:25;background:#fffefa;border-bottom:1px solid #E2E6DF}
.stock-card .flow-list-head{display:flex;align-items:center;gap:8px;min-height:64px;padding:8px 10px}
.stock-card .flow-list-head>button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;background:transparent;color:#536170}
.stock-card .flow-detail-heading{min-width:0}
.stock-card .flow-detail-heading h2{font-size:20px;font-weight:600;margin:0;white-space:nowrap}
.stock-card .flow-detail-heading>span{display:block;font-size:11px;line-height:1.5;color:#707e76;white-space:nowrap}
.stock-card .flow-detail-tools{margin-left:auto;display:flex;align-items:center;gap:2px;flex-shrink:0}
.stock-card .flow-batch-top{display:flex;align-items:center;gap:4px;min-height:44px;padding:8px 9px;border-radius:14px;background:#edf1f5;color:#3c536a;font-size:12px;font-weight:500;white-space:nowrap}
.stock-card .flow-batch-top b{font-weight:600}
.stock-card .flow-batch-top svg{width:15px;height:15px;flex-shrink:0}
.stock-card .flow-search-toggle{width:36px;min-height:44px;display:grid;place-items:center;color:#64768a}
.stock-card .flow-detail-search{display:flex;align-items:center;gap:8px;margin:0 10px 8px;padding:0 10px;border:1px solid #dce3e9;border-radius:12px;background:#f7f9fa;color:#637487}
.stock-card .flow-detail-search input{flex:1;min-width:0;min-height:44px;border:0;background:none;outline:none;font-size:15px}
.stock-card .flow-detail-search button{display:grid;place-items:center;min-width:36px;min-height:44px}
.stock-card .flow-tabs{display:flex;gap:6px;padding:0 10px 8px;overflow-x:auto;scrollbar-width:none}
.stock-card .flow-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 11px;border-radius:18px;background:#f1f3f5;color:#596875;white-space:nowrap;font-size:13px}
.stock-card .flow-tabs button.is-active{background:#344c63;color:#fff}
.stock-card .flow-tabs span{font-size:12px;opacity:.85}
.stock-card .is-chilled{--temp-surface:#F2F9F7;--temp-head:#DFF0EC;--temp-border:#C6E1DA;--temp-line:#DFEFEA;--temp-accent:#2A8276;--temp-badge-bg:#CBE8E0;--temp-badge-border:#95C9BA;--temp-badge-fg:#14594E}
.stock-card .is-frozen{--temp-surface:#EEF3FC;--temp-head:#DCE7F9;--temp-border:#C3D4F0;--temp-line:#DDE6F6;--temp-accent:#3864B2;--temp-badge-bg:#CADBFA;--temp-badge-border:#96B4EA;--temp-badge-fg:#1E4388}
.stock-card .is-dry{--temp-surface:#FAF7F1;--temp-head:#F1E9D8;--temp-border:#E2D5BB;--temp-line:#EFE7D6;--temp-accent:#9A7A3E;--temp-badge-bg:#E8DEC6;--temp-badge-border:#CBB88F;--temp-badge-fg:#634B1D}
.stock-card .is-station{--temp-surface:#F8F5F3;--temp-head:#ECE5DF;--temp-border:#DBD0C6;--temp-line:#EAE2DB;--temp-accent:#856553;--temp-badge-bg:#E3D8CF;--temp-badge-border:#C5B2A3;--temp-badge-fg:#5C4335}
.stock-card .is-unknown{--temp-surface:#F5F7F8;--temp-head:#E8ECEF;--temp-border:#D2DAE0;--temp-line:#E4E9ED;--temp-accent:#64748B;--temp-badge-bg:#DDE3E8;--temp-badge-border:#B8C4CE;--temp-badge-fg:#334155}
.stock-card .flow-zone-filter{display:flex;gap:5px;padding:0 10px 8px;overflow-x:auto;scrollbar-width:none}
.stock-card .flow-zone-filter button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:4px 8px;flex-shrink:0;border:1px solid transparent;border-radius:12px;background:var(--temp-surface,#f1f3f5);color:var(--temp-badge-fg,#46545e);font-size:12px;white-space:nowrap}
.stock-card .flow-zone-filter button.is-active{background:var(--temp-head,#e4e9ee);border-color:var(--temp-accent,#344c63)}
.stock-card .flow-zone-filter i{width:5px;height:5px;border-radius:50%;background:var(--temp-accent);flex-shrink:0}
.stock-card .flow-zone-filter span{font-size:11px}
.stock-card .flow-list-rows{padding:8px 10px 16px;display:grid;gap:10px}
.stock-card .flow-zone-group{margin:0;border:0;overflow:visible;min-width:0}
.stock-card .flow-zone-head{position:sticky;top:var(--flow-toolbar-height,147px);z-index:20;display:block;width:100%;padding:0;border:0;background:#F3F5F1;text-align:left}
.stock-card .flow-zone-head-bar{display:flex;align-items:center;gap:6px;min-height:38px;padding:5px 10px 5px 9px;background:var(--temp-head);border:1px solid var(--temp-border);border-radius:14px 14px 0 0;color:#18241F}
.stock-card .flow-zone-head[aria-expanded=false] .flow-zone-head-bar{border-radius:14px}
.stock-card .flow-zone-body{background:var(--temp-surface);border:1px solid var(--temp-border);border-top:0;border-left:3px solid var(--temp-accent);border-radius:0 0 14px 14px;overflow:hidden}
.stock-card .flow-zone-badge{display:inline-flex;align-items:center;min-height:22px;padding:1px 6px;border:1px solid var(--temp-badge-border);border-radius:6px;background:var(--temp-badge-bg);color:var(--temp-badge-fg);font-size:11px;font-weight:600;white-space:nowrap}
.stock-card .flow-zone-icon{display:flex;flex-shrink:0;color:var(--temp-badge-fg);opacity:.85}
.stock-card .flow-zone-icon svg{display:block;width:15px;height:15px}
.stock-card .flow-zone-head strong{font-size:13px;font-weight:600;white-space:nowrap}
.stock-card .flow-zone-count{font-size:12px;font-weight:600}
.stock-card .flow-zone-head-bar>svg{margin-left:auto;flex-shrink:0;transition:transform 120ms ease}
.stock-card .flow-zone-head[aria-expanded=false] .flow-zone-head-bar>svg{transform:rotate(-90deg)}
.stock-card .flow-zone-urgent{display:inline-flex;align-items:center;gap:2px;padding:0 5px;border-radius:6px;background:#fff2d9;color:#8a4c16;font-size:11px;font-weight:600;white-space:nowrap}
.stock-card .flow-item{position:relative;background:var(--temp-surface);border-bottom:1px solid var(--temp-line);scroll-margin-top:calc(var(--flow-toolbar-height,147px) + 40px)}
.stock-card .flow-item:last-child{border-bottom:0}
.stock-card .flow-row-line{display:grid;grid-template-columns:32px minmax(0,1fr) 74px 58px 44px;align-items:center;gap:6px;min-height:48px;padding:6px 10px 6px 7px}
.stock-card .flow-item-main{grid-column:1/5;display:grid;grid-template-columns:subgrid;align-items:center;gap:inherit;min-width:0;min-height:44px;padding:0;border:0;background:none;text-align:left;color:#18241F}
.stock-card .flow-item-main,.stock-card .flow-row-control{margin-block:-4px}
.stock-card .flow-item-id{font:12px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;color:#485650;white-space:nowrap}
.stock-card .flow-item-title{display:flex;align-items:center;gap:4px;min-width:0;font-size:15px;font-weight:600;line-height:20px;color:#18241F}
.stock-card .flow-item-title>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.stock-card .flow-item-title .flow-mark{width:17px;height:17px;font-size:12px;flex-shrink:0}
.stock-card .flow-item-title .flow-mark svg{width:12px;height:12px}
.stock-card .flow-stock-now{display:flex;align-items:baseline;justify-content:flex-end;gap:2px;width:58px;min-width:0;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;line-height:22px;color:#18241F}
.stock-card .flow-stock-now strong{font-size:17px;font-weight:650}
.stock-card .flow-stock-now small{font-size:12px;font-weight:450;color:#485650}
.stock-card .flow-stock-now.is-pending,.stock-card .flow-stock-now.is-pending small{color:#5d4370}
.stock-card .flow-stock-now.is-pending strong{font-weight:550}
.stock-card .flow-stock-now sup{font-size:11px;font-weight:600;align-self:flex-start;line-height:1.4}
.stock-card .flow-stock-delta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:1px;width:74px;min-width:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.stock-card .flow-stock-prev{font-size:13px;line-height:15px;font-weight:550;color:#2D3B35}
.stock-card .flow-stock-diff{font-size:11.5px;line-height:13px;font-weight:600}
.stock-card .flow-stock-delta.is-up .flow-stock-diff{color:#9E2A22}
.stock-card .flow-stock-delta.is-down .flow-stock-diff{color:#15654B}
.stock-card .flow-stock-delta.is-pending .flow-stock-diff{color:#5D4370;font-weight:500}
.stock-card .flow-stock-delta.is-muted .flow-stock-diff{color:#5E6B65}
.stock-card .flow-stock-delta:not(.has-baseline) .flow-stock-diff{font-size:12px;line-height:16px;font-weight:450}
.stock-card .flow-row-control{grid-column:5;display:flex;align-items:center;justify-content:center;width:44px;height:44px}
.stock-card .flow-direct-action,.stock-card .flow-row-done{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border-radius:12px;font-size:12px;font-weight:550;white-space:nowrap}
.stock-card .flow-direct-action{border:1px solid #9ab0c4;background:#ffffffde;color:#2f4b66;cursor:pointer;transition:background 120ms ease,transform 120ms ease}
.stock-card .flow-direct-action.is-check{border-radius:14px}
.stock-card .flow-direct-action.is-review{border-color:#b7a2c9;background:#fbf7fe;color:#634875}
.stock-card .flow-direct-action.is-zero,.stock-card .flow-direct-action.is-follow{border-color:#c48845;background:#fffaf2;color:#7d4514}
.stock-card .flow-row-done{border:0;background:none;color:#1e6f3d}
.stock-card .flow-row-done.is-syncing{color:#718091}
.stock-card .flow-direct-action.is-check svg,.stock-card .flow-row-done svg{display:block;width:19px;height:19px;stroke-width:2.1;flex-shrink:0}
.stock-card .flow-direct-action:disabled{opacity:.6}
.stock-card .flow-direct-action:active:not(:disabled){transform:scale(.94);background:#e0e9f2}
.stock-card .flow-item.is-new-zero::before{content:"";position:absolute;left:0;top:10px;height:28px;width:3px;border-radius:99px;background:#c68e43;pointer-events:none}
.stock-card .flow-item-extra{padding:0 10px 10px 39px}
.stock-card .flow-expanded-name{margin:0 0 8px;font-size:14px;font-weight:600;line-height:1.5;color:#18241F;overflow-wrap:anywhere}
.stock-card .flow-item-extra .flow-paper-note{margin:0;padding:0 0 8px;font-size:13px;color:#59675e;overflow-wrap:anywhere}
.stock-card .flow-item-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:4px}
.stock-card .flow-action-secondary{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 10px;border-radius:12px;background:#ffffffa0;border:1px solid var(--temp-line);color:#435d6f;font-size:12px}
.stock-card .flow-trend-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;margin-left:auto;color:#526975;font-size:12px}
.stock-card .flow-follow-date{font-size:12px;color:#6a766d}
.stock-card .flow-follow-kind{font-size:12px;color:#88501f;margin:0 0 8px}
.stock-card .flow-previous-review{display:inline-flex;align-items:center;gap:4px;min-height:36px;margin-bottom:6px;color:#726080;font-size:12px}
.stock-card .flow-resolution-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.stock-card .flow-resolution-actions button,.stock-card .flow-resolution-actions a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 2px;border:1px solid #c8b28f;border-radius:10px;background:#fffdf7;color:#76542b;font-size:12px;white-space:nowrap}
.stock-card .flow-resolution-actions .flow-resolution-primary{background:#8d5d28;color:white;border-color:#8d5d28}
.stock-card .flow-empty{padding:42px 20px;display:flex;align-items:center;flex-direction:column;gap:14px;color:#769364}
.stock-card .flow-empty strong{font-size:16px;color:#425b35;font-weight:500}
.stock-card .flow-empty button{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px}
.stock-card .flow-undo{position:fixed;z-index:45;bottom:calc(112px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;border-radius:30px;background:#2c453bf2;color:#fffefa;box-shadow:0 5px 24px #2032221f;padding:6px 8px 6px 16px;max-width:calc(100% - 24px);white-space:nowrap;font-size:13px}
.stock-card .flow-undo button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:38px}
.stock-card .flow-undo button:last-child{opacity:.65}
.stock-card.stock-workflow.is-detail .flow-undo{bottom:calc(20px + env(safe-area-inset-bottom));background:#344c63f5}
.stock-card .flow-item.is-leaving{overflow:hidden;pointer-events:none;animation:flow-dismiss 190ms cubic-bezier(.2,.7,.3,1) forwards}
@keyframes flow-dismiss{0%{max-height:var(--leave-height);opacity:1;transform:translateX(0)}70%{opacity:0;transform:translateX(12px)}100%{max-height:0;opacity:0;margin-block:0;border-bottom-width:0}}
@media(hover:hover){
.stock-card .flow-direct-action.is-check:hover:not(:disabled){border-color:#acbed0;background:#e9f0f7}
.stock-card .flow-item-main:hover .flow-item-title{color:#18221d}
}
@container stock-widget (max-width:328px){
.stock-card .flow-hero{grid-template-columns:104px 1fr;padding:16px 18px;gap:12px 18px}
.stock-card .flow-orbit{width:104px;height:104px}
.stock-card .flow-category{grid-template-columns:28px minmax(0,1fr) 24px;padding-inline:10px;gap:5px}
.stock-card .flow-cat-icon{width:28px;height:28px}
.stock-card .flow-category .flow-mark{width:18px;height:18px}
.stock-card .flow-list-head{padding-inline:6px;gap:4px}
.stock-card .flow-detail-heading h2{font-size:18px}
.stock-card .flow-batch-top{padding-inline:7px;gap:3px}
.stock-card .flow-search-toggle{width:30px}
.stock-card .flow-list-rows{padding-inline:8px}
.stock-card .flow-row-line{grid-template-columns:28px minmax(0,1fr) 68px 52px 44px;gap:5px;padding-right:8px}
.stock-card .flow-stock-delta{width:68px}
.stock-card .flow-stock-prev{font-size:12px}
.stock-card .flow-stock-now{width:52px}
.stock-card .flow-stock-now strong{font-size:16px}
.stock-card .flow-zone-filter{gap:4px;padding-inline:8px}
.stock-card .flow-zone-filter button{padding-inline:6px;gap:3px}
.stock-card .flow-undo{gap:8px;font-size:12px}
}
@container stock-widget (min-width:848px){
.stock-card .flow-home{grid-template-columns:minmax(300px,.9fr) minmax(360px,1.1fr);gap:32px;align-items:start}
.stock-card .flow-hero{grid-template-columns:150px 1fr;padding:32px;gap:26px}
.stock-card .flow-orbit{width:150px;height:150px}
.stock-card .flow-orbit-center strong{font-size:42px}
.stock-card .flow-category{height:84px;min-height:84px;padding-inline:18px;grid-template-columns:34px minmax(0,1fr) 24px;gap:9px}
.stock-card .flow-cat-icon{width:34px;height:34px}
.stock-card .flow-category-name{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
.stock-card.stock-workflow *{transition:none!important;scroll-behavior:auto!important}
.stock-card .flow-item.is-leaving{animation:none;display:none}
}
.stock-card [hidden]{display:none!important}
.stock-card .flow-follow-shortcut{margin-top:8px}
.stock-card .flow-follow-review-tag{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border-radius:6px;background:#f9e8c9;color:#704414;font-size:11px;font-weight:550;white-space:nowrap}
.stock-card .flow-follow-review-tag svg{flex-shrink:0}
.stock-card .flow-follow-fact{margin:0 0 8px;color:#485650;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.stock-card .flow-follow-fab{position:fixed;right:max(16px,calc((100vw - 1120px)/2 + 16px));bottom:calc(108px + env(safe-area-inset-bottom));z-index:44;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid #ffffff24;border-radius:99px;background:#243830;color:#fffefa;font-size:14px;font-weight:550;box-shadow:0 4px 18px #24383024}
.stock-card .flow-follow-fab svg{color:#ffe6b6}
.stock-card .flow-follow-fab i{width:6px;height:6px;background:#ffe6b6;border-radius:50%}
.stock-card.stock-workflow.has-undo .flow-follow-fab{bottom:calc(180px + env(safe-area-inset-bottom))}
.stock-card.stock-workflow.is-detail .flow-follow-fab{right:max(16px,calc((100vw - 760px)/2 + 16px));bottom:calc(20px + env(safe-area-inset-bottom))}
.stock-card.stock-workflow.is-detail.has-undo .flow-follow-fab{bottom:calc(88px + env(safe-area-inset-bottom))}
.stock-card.stock-workflow.has-follow .flow-home{padding-bottom:calc(172px + env(safe-area-inset-bottom))}
.stock-card.stock-workflow.has-follow:not(.is-detail):has(.flow-undo:not([hidden])) .flow-home{padding-bottom:calc(244px + env(safe-area-inset-bottom))}
.stock-card .flow-follow-sheet{position:fixed;inset:auto 12px calc(12px + env(safe-area-inset-bottom));margin:0 auto;padding:0;width:calc(100% - 24px);max-width:480px;max-height:min(80dvh,660px);border:1px solid #dce4db;border-radius:24px;background:#fffefa;color:#18241f;box-shadow:0 18px 70px #20332c40;overflow:hidden}
.stock-card .flow-follow-sheet::backdrop{background:#23352f60;backdrop-filter:blur(2px)}
.stock-card .flow-follow-panel{display:flex;flex-direction:column;max-height:min(calc(80dvh - 2px),658px);min-height:0}
.stock-card .flow-follow-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 10px;border-bottom:1px solid #e2e6df;flex-shrink:0;background:#fffefa}
.stock-card .flow-follow-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:20px;font-weight:650;line-height:1.4}
.stock-card .flow-follow-head p{margin:4px 0 0;color:#5e6b65;font-size:12px}
.stock-card .flow-follow-head p span{color:#704414}
.stock-card .flow-follow-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:14px;background:#f1f4ef;color:#485650}
.stock-card .flow-follow-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;background:#f3f5f1;scrollbar-gutter:stable}
.stock-card .flow-follow-group{overflow:hidden;border:1px solid var(--temp-border);border-radius:14px;background:var(--temp-surface);margin-bottom:10px}
.stock-card .flow-follow-group:last-child{margin-bottom:0}
.stock-card .flow-follow-group h3{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;background:var(--temp-head);font-size:13px;font-weight:600}
.stock-card .flow-follow-group h3>span:last-child{margin-left:auto}
.stock-card .flow-follow-item{padding:12px 10px;border-top:1px solid var(--temp-line)}
.stock-card .flow-follow-item-title{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.stock-card .flow-follow-item-title strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.stock-card .flow-follow-item-title .flow-follow-review-tag{margin-left:auto;flex-shrink:0}
.stock-card .flow-follow-item .flow-paper-note{margin:0 0 8px;font-size:12px;color:#5e6b65;overflow-wrap:anywhere}
.stock-card .flow-follow-note input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #c9d6ce;border-radius:10px;background:#fffefad9;padding:8px 10px;color:#263d32;font-size:16px;line-height:1.5}
.stock-card .flow-follow-note input::placeholder{color:#65756c;font-size:12px}
.stock-card .flow-follow-note input:focus{outline:2px solid #548a77;outline-offset:1px}
.stock-card .flow-note-presets{display:flex;gap:5px;flex-wrap:wrap;padding:5px 0}
.stock-card .flow-note-presets button{min-height:32px;padding:4px 8px;border:1px solid #d5dfd7;border-radius:9px;background:#fffefa;color:#506259;font-size:12px}
.stock-card .flow-note-presets button[aria-pressed=true]{border-color:#719886;background:#deede5;color:#234a38}
.stock-card .flow-follow-item-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:3px}
.stock-card .flow-follow-item-actions button,.stock-card .flow-follow-item-actions a{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:1;min-height:44px;padding:6px;border:1px solid #bdcfc2;border-radius:10px;color:#355c46;background:#fffefa;font-size:12px;white-space:nowrap}
.stock-card .flow-follow-item-actions .is-finish{color:#fffefa;background:#355c46;border-color:#355c46}
.stock-card .flow-follow-item-actions button:disabled{opacity:.55;cursor:wait}
.stock-card .flow-follow-footer{flex-shrink:0;padding:10px 14px 12px;border-top:1px solid #e2e6df;background:#fffefa}
.stock-card .flow-copy-preview summary{min-height:32px;display:flex;align-items:center;cursor:pointer;color:#53675c;font-size:12px}
.stock-card .flow-copy-preview summary::after{content:'⌄';margin-left:auto}
.stock-card .flow-copy-preview[open] summary::after{content:'⌃'}
.stock-card .flow-copy-preview pre{margin:0 0 8px;padding:10px;max-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dde5de;border-radius:10px;background:#f4f7f2;font:12px/1.7 ui-monospace,monospace;user-select:text}
.stock-card .flow-copy-all{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:46px;border:0;border-radius:14px;background:#243830;color:#fffefa;font-size:14px;font-weight:550}
.stock-card .flow-copy-all:disabled{background:#dce4dd;color:#506259}
.stock-card .flow-copy-error{margin:6px 0 0;font-size:12px;color:#7b4820}
.stock-card .flow-follow-empty{display:flex;flex-direction:column;align-items:center;padding:32px 12px;color:#355c46}
.stock-card .flow-follow-receipt{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#355c46;border-bottom:1px solid #e3e8e1}
.stock-card .flow-follow-receipt button{min-height:44px;padding:6px 12px;color:#355c46;font-weight:600}
@container stock-widget (min-width:848px){
.stock-card .flow-follow-sheet{left:auto;right:24px;bottom:24px;margin:0}
}
@media(prefers-reduced-motion:reduce){
.stock-card .flow-follow-sheet,.stock-card .flow-follow-fab{scroll-behavior:auto}
}
.stock-card .flow-follow-body{padding:8px}
.stock-card .flow-follow-group{margin-bottom:8px}
.stock-card .flow-follow-group h3{padding:5px 8px;min-height:30px}
.stock-card .flow-follow-item{padding:3px 8px}
.stock-card .flow-follow-item-top{display:flex;align-items:center;gap:6px;min-height:44px}
.stock-card .flow-follow-item-title{flex:1;min-width:0;margin:0;gap:4px;flex-wrap:wrap}
.stock-card .flow-follow-item-title strong{font-size:14px;line-height:18px}
.stock-card .flow-follow-item-title .flow-follow-review-tag{font-size:10px;padding:1px 3px;margin-left:0}
.stock-card .flow-follow-item .flow-follow-fact{margin:0;font-size:12px;line-height:16px}
.stock-card .flow-follow-item .flow-paper-note{margin:2px 0;line-height:16px}
.stock-card .flow-follow-item-actions{flex:none;flex-wrap:nowrap;gap:4px;margin:0}
.stock-card .flow-follow-item-actions button,.stock-card .flow-follow-item-actions a{flex:none;min-width:44px;min-height:44px;padding:4px 6px;font-size:12px}
.stock-card .flow-follow-item-actions button:last-child{width:44px;padding:0;font-size:0;gap:0}
.stock-card .flow-follow-item-actions button:last-child svg{width:17px;height:17px}
.stock-card .flow-note-presets{flex-wrap:nowrap;gap:4px;padding:0;min-height:44px;align-items:center}
.stock-card .flow-note-presets button{min-height:44px;padding:4px 7px;white-space:nowrap;font-size:12px}
.stock-card .flow-note-toggle{margin-left:auto}
.stock-card .flow-note-editor{display:flex;gap:4px;margin:4px 0}
.stock-card .flow-note-editor input{flex:1;width:0}
.stock-card .flow-note-editor button{flex:none;min-width:44px;min-height:44px;padding:4px;border:1px solid #d5dfd7;border-radius:9px;background:#fffefa;color:#506259;font-size:12px}
.stock-card .flow-note-value{margin:0 0 4px;font-size:12px;line-height:18px;color:#485650;overflow-wrap:anywhere}
.stock-card .flow-trend{display:grid;gap:10px;min-width:0;padding-bottom:calc(100px + env(safe-area-inset-bottom));color:#18241f;font-variant-numeric:tabular-nums}
.stock-card .flow-trend button,.stock-card .flow-trend a,.stock-card .flow-trend select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.stock-card .flow-trend button:focus-visible,.stock-card .flow-trend a:focus-visible,.stock-card .flow-trend select:focus-visible,.stock-card .flow-trend-scroller:focus-visible{outline:2px solid #748a69;outline-offset:2px}
.stock-card .flow-trend-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.stock-card .flow-trend-back{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:44px;padding:0 13px;border:1px solid #d7dfd2;border-radius:999px;background:#fffefa;color:#243730;font-size:14px;font-weight:550;flex-shrink:0;cursor:pointer;text-decoration:none}
.stock-card .flow-trend-identity{display:flex;align-items:center;gap:6px;min-width:0;flex:1;flex-wrap:nowrap}
.stock-card .flow-trend-identity .flow-item-id{font-size:12.5px;color:#485650;flex-shrink:0}
.stock-card .flow-trend-title{margin:0;font-size:18px;font-weight:650;line-height:1.25;color:#18241f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.stock-card .flow-trend-zone{display:inline-flex;align-items:center;gap:4px;min-height:22px;padding:1px 7px;border:1px solid var(--temp-badge-border,#95c9ba);border-radius:999px;background:var(--temp-badge-bg,#cbe8e0);color:var(--temp-badge-fg,#14594e);font-size:11px;font-weight:600;white-space:nowrap;flex-shrink:0}
.stock-card .flow-trend-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;touch-action:pan-y}
.stock-card .flow-trend-stat{min-width:0;padding:8px 9px;border:1px solid #dfe6da;border-radius:14px;background:#fffefa}
.stock-card .flow-trend-stat>span{display:block;font-size:11px;line-height:1.3;color:#485650;white-space:nowrap}
.stock-card .flow-trend-stat>div{margin-top:3px;display:flex;align-items:baseline;gap:2px;min-width:0;white-space:nowrap;overflow:hidden}
.stock-card .flow-trend-stat strong{font-size:16.5px;font-weight:650;line-height:1.2;color:#18241f}
.stock-card .flow-trend-stat.is-low strong{color:#9e3d1c}
.stock-card .flow-trend-stat.is-high strong{color:#295296}
.stock-card .flow-trend-stat.is-pending strong{color:#5d4370}
.stock-card .flow-trend-stat.is-muted strong{color:#485650}
.stock-card .flow-trend-stat small{font-size:11px;font-weight:450;color:#485650}
.stock-card .flow-trend-card{min-width:0;max-width:100%;border:1px solid #dfe6da;border-radius:20px;background:#fffefa;box-shadow:0 3px 12px #26392808;overflow:clip}
.stock-card .flow-trend-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 8px;border-bottom:1px solid #ecefe8}
.stock-card .flow-trend-picker{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 200px}
.stock-card .flow-trend-select{flex:1;min-width:0;max-width:300px;min-height:44px;padding:0 11px;border:1px solid #cfd8ca;border-radius:12px;background:#f7f9f4;color:#18241f;font-size:14px;font-weight:550}
.stock-card .flow-trend-pager{display:inline-flex;gap:4px;flex-shrink:0}
.stock-card .flow-trend-pager button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #cfd8ca;border-radius:12px;background:#fffefa;color:#243730;font-size:18px;line-height:1;cursor:pointer}
.stock-card .flow-trend-pager button:disabled{opacity:.38;cursor:default}
.stock-card .flow-trend-windows{display:inline-flex;padding:2px;border-radius:12px;background:#edf1e8;gap:2px;flex-shrink:0}
.stock-card .flow-trend-windows button{min-height:44px;min-width:48px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#485650;font-size:13px;font-weight:550;white-space:nowrap;cursor:pointer}
.stock-card .flow-trend-windows button[aria-pressed=true]{background:#243830;color:#fffefa;font-weight:600}
.stock-card .flow-trend-windows button:disabled{opacity:.4;cursor:default}
.stock-card .flow-trend-caption{margin:0;padding:8px 12px 2px;font-size:12px;font-weight:500;color:#485650}
.stock-card .flow-trend-scroller{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;scrollbar-width:thin}
.stock-card .flow-trend-stage{display:block}
.stock-card .flow-trend-stage>svg{display:block}
.stock-card .flow-trend-table{table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;color:#243730}
.stock-card .flow-trend-table th,.stock-card .flow-trend-table td{box-sizing:border-box;height:31px;padding:2px 1px;text-align: center;border-top:1px solid #e6ebe2;white-space:nowrap;font-variant-numeric:tabular-nums;background:#fffefa}
.stock-card .flow-trend-table thead th{height:38px;color:#485650;font-weight:500;font-size:11px;line-height:1.25}
.stock-card .flow-trend-table .is-row-head{position:sticky;left:0;z-index:2;background:#fffefa;text-align:left;padding-left:10px;color:#485650;font-weight:550;font-size:11.5px;border-right:1px solid #edf0e9}
.stock-card .flow-trend-table .is-tonight{font-weight:650;color:#18241f;background:#f2f6ee}
.stock-card .flow-trend-table .is-hover:not(.is-row-head){background:#ecf1e7}
.stock-card .flow-trend-table .is-none,.stock-card .flow-trend-table .is-zero{color:#54635b}
.stock-card .flow-trend-table .is-out{color:#9e3d1c;font-weight:650}
.stock-card .flow-trend-table .is-pending{color:#5d4370;font-weight:550}
.stock-card .flow-trend-table .is-who{font-size:10.5px;color:#485650;overflow:hidden;text-overflow:ellipsis}
.stock-card .flow-trend-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:9px 12px 11px;border-top:1px solid #e6ebe2;background:#fafbf7;font-size:11.5px;color:#485650}
.stock-card .flow-trend-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.stock-card .flow-trend-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.stock-card .flow-legend-bar{width:10px;height:10px;border-radius:2px;background:#3a4a43;display:inline-block}
.stock-card .flow-legend-band{width:12px;height:10px;border-radius:2px;background:#e6ece6;border-block:1px dashed #7d8c83;display:inline-block}
.stock-card .flow-legend-line{width:14px;height:2px;background:#6e7d75;position:relative;display:inline-block}
.stock-card .flow-legend-line::after{content:"";position:absolute;left:4px;top:-2px;width:6px;height:6px;border-radius:50%;background:#52625a;box-sizing:border-box;border:1px solid #fafbf7}
.stock-card .flow-trend-hint{margin:0;font-size:11.5px;color:#485650}
@container stock-widget (max-width:357px){
.stock-card .flow-trend-summary{gap:5px}
.stock-card .flow-trend-stat{padding:7px 6px}
.stock-card .flow-trend-stat strong{font-size:15px}
.stock-card .flow-trend-controls{padding-inline:10px}
.stock-card .flow-trend-windows button{min-width:44px;padding-inline:8px;font-size:12.5px}
}
.stock-card .flow-trend-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 8px}
.stock-card .flow-trend-back{grid-column:1;grid-row:1/3}
.stock-card .flow-trend-identity{grid-column:2;grid-row:1}
.stock-card .flow-trend-zone{grid-column:2;grid-row:2;justify-self:start;max-width:100%;font-size:10.5px}
.stock-card .flow-trend-current{grid-column:3;grid-row:1/3;align-self:center;text-align:right;white-space:nowrap;font-size:22px;font-weight:650;color:#18241f;font-variant-numeric:tabular-nums}
.stock-card .flow-trend-current small{margin-left:3px;font-size:12px;font-weight:450;color:#485650}
