/* Coinvest rules from the released dashboard; no unrelated widgets. */
.cw-widget,.cw-dialog{--cw-ink:#182947;--cw-muted:#51627d;--cw-line:#dbe4f2;--cw-blue:#2453ff;--cw-bg:#fff;color:var(--cw-ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.cw-widget{display:flex;flex-direction:column;gap:4px;min-width:0;height:100%}.cw-widget[hidden]{display:none}.cw-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.cw-heading h3{margin:0!important;font-size:1rem!important;line-height:1.5!important;font-weight:600}.cw-info{background:transparent!important;color:var(--cw-blue)!important;border:0!important;min-width:44px;min-height:44px;padding:0!important;font-size:1.35rem!important;box-shadow:none!important}
.dw-board .cw-open{display:flex;flex-direction:column;flex:1;min-width:0;width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:0;box-shadow:none;font:inherit}.cw-summary{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.cw-summary strong{font-size:2.3rem;line-height:1.2;letter-spacing:-.04em}.cw-summary>span,.cw-state{font-size:.8rem;color:var(--cw-muted);line-height:1.5}.cw-plot{display:block;width:100%;margin:auto 0}.cw-chart{display:block;width:100%;height:auto;max-height:230px;color:var(--cw-muted);overflow:visible}.cw-chart text{fill:currentColor;font:11px system-ui}.cw-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;font-size:.85rem;color:var(--cw-blue)}.cw-state{margin:4px 0 0}.cw-state:empty{display:none}.cw-retry{align-self:flex-start}
.cw-dialog{box-sizing:border-box;width:min(1060px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:90dvh;padding:24px;background:var(--cw-bg);border:1px solid var(--cw-line);border-radius:24px;box-shadow:0 24px 80px #14254430;overflow:auto}.cw-dialog::backdrop{background:#12234870}.cw-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cw-dialog h2{font-size:1.5rem;margin:0;line-height:1.3}.cw-dialog button,.cw-dialog input,.cw-dialog summary{min-height:44px;font:inherit}.cw-dialog button{min-width:44px}.cw-dialog :is(button,input,summary):focus-visible,.cw-widget :is(button):focus-visible{outline:3px solid var(--cw-blue);outline-offset:3px}.cw-dialog input{box-sizing:border-box;width:100%;margin:8px 0;border-radius:10px;padding:8px 12px;border:1px solid var(--cw-line);background:var(--cw-bg);color:var(--cw-ink)}.cw-period{color:var(--cw-muted);font-size:.9rem;margin:8px 0 24px}.cw-detail-layout{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.5fr);gap:28px}.cw-picker{min-width:0}.cw-picker label{display:block;font-size:.85rem;color:var(--cw-muted)}.cw-products{max-height:380px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:4px}.cw-products button{display:flex;align-items:center;gap:12px;background:transparent;color:var(--cw-ink);border:1px solid transparent;border-radius:14px;padding:8px;text-align:left;width:100%;box-sizing:border-box}.cw-products button[aria-pressed=true]{border-color:var(--cw-blue);background:#2453ff0c}.cw-products small{display:block;color:var(--cw-muted);font-size:.75rem}.cw-dialog .product-identity{display:flex;align-items:center;gap:12px;min-width:0}.cw-dialog .product-label{min-width:0;overflow-wrap:anywhere;display:block;font-size:.9rem}.cw-dialog .product-label>span{display:block;white-space:normal}.cw-dialog :is(.ad-product-photo,.product-photo){display:block;position:relative;flex:0 0 52px;width:52px;height:60px;padding:0;margin:0;border:0;border-radius:10px;overflow:hidden;background:#edf2fa}.cw-dialog :is(.ad-product-photo,.product-photo) img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;padding:0;margin:0;border:0}.cw-cabinet-icon{display:grid;place-items:center;flex:0 0 52px;height:60px;background:#edf2fa;border-radius:10px;color:#2453ff;font-size:2rem}.cw-selected{min-height:60px;display:flex;align-items:center}.cw-detail-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.cw-detail-summary>strong{font-size:2.8rem;line-height:1.1;letter-spacing:-.04em}.cw-detail-summary>span{font-size:.8rem;line-height:1.6;color:var(--cw-muted)}.cw-detail-plot{background:linear-gradient(180deg,#2453ff00,#2453ff06);border-radius:16px}.cw-detail-chart{min-width:0}.cw-dialog input[type=range]{padding:0;accent-color:var(--cw-blue);cursor:pointer}.cw-day-label{display:block;font-size:.8rem;color:var(--cw-muted)}.cw-day{display:block;min-height:3em;font-size:.85rem;line-height:1.5}.cw-method,.cw-table{margin-top:16px;font-size:.85rem;line-height:1.6}.cw-dialog summary{display:flex;align-items:center;cursor:pointer;color:var(--cw-blue)}.cw-table>div{max-height:250px;overflow:auto}.cw-table table{width:100%;border-collapse:collapse;font-size:.8rem}.cw-table th,.cw-table td{padding:8px;border-bottom:1px solid var(--cw-line);text-align:left}.cw-dialog p{line-height:1.6}
@media(max-width:700px){.cw-dialog{padding:16px}.cw-detail-layout{grid-template-columns:minmax(0,1fr);gap:20px}.cw-products{max-height:170px}.cw-period{margin-bottom:16px}.cw-detail-summary{margin:12px 0}.cw-dialog h2{font-size:1.25rem}}
@media(prefers-color-scheme:dark){.cw-widget,.cw-dialog{--cw-ink:#e3eafa;--cw-muted:#b5c4dc;--cw-line:#3e526f;--cw-blue:#abc4ff;--cw-bg:#162137}.cw-cabinet-icon,.cw-dialog :is(.ad-product-photo,.product-photo){background:#293d60;color:#abc4ff}.cw-products button[aria-pressed=true]{background:#abc4ff12}}
@media(prefers-contrast:more){.cw-widget,.cw-dialog{--cw-muted:var(--cw-ink)}.cw-products button{border-color:var(--cw-line)}}
.cw-daily-change{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:8px;font-size:.8rem;line-height:1.5;color:var(--cw-muted)}.cw-change{display:inline-block;white-space:normal;overflow-wrap:anywhere;font-weight:600;color:var(--cw-muted)}.cw-change[data-direction=up],.cw-direction[data-direction=up]{color:#13714e;fill:#13714e}.cw-change[data-direction=down],.cw-direction[data-direction=down]{color:#b3394d;fill:#b3394d}.cw-day>span{display:block}.cw-day .cw-change{margin:4px 0}.cw-table td{overflow-wrap:anywhere}.cw-table table{table-layout:fixed}.cw-table th:nth-child(3){width:35%}@media(prefers-color-scheme:dark){.cw-change[data-direction=up],.cw-direction[data-direction=up]{color:#7bdfb6;fill:#7bdfb6}.cw-change[data-direction=down],.cw-direction[data-direction=down]{color:#ff9eae;fill:#ff9eae}}
.dw-board .cw-open{min-height:0;gap:6px}.cw-open>.cw-plot{flex:1;min-height:60px;display:flex;align-items:center}.cw-open .cw-chart{height:100%;max-height:230px}.cw-open>.cw-summary,.cw-open>.cw-daily-change,.cw-open>.cw-footer{flex-shrink:0}.cw-open>.cw-daily-change{margin-top:0}
.dw-grid .dw-widget[data-widget=coinvest]:is([data-size="0.5"],[data-size="1"])[data-height="1"] .cw-widget{gap:0}
.cw-title-text{min-width:0;overflow-wrap:anywhere}
.dw-grid .cw-heading h3.dw-title{min-width:0;width:100%}
.cw-clean{width:min(820px,calc(100vw - 32px));padding:28px}.cw-clean .cw-dialog-heading{margin-bottom:18px}.cw-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.cw-clean .cw-period{margin:0;font-size:.875rem}.cw-periods{display:flex;gap:4px;padding:3px;border-radius:13px;background:#819bc714}.cw-periods button{min-width:64px;border:0;border-radius:10px;background:transparent;color:var(--cw-muted);padding:6px 10px;font-size:.875rem;box-shadow:none}.cw-periods button[aria-pressed=true]{background:var(--cw-bg);color:var(--cw-blue);box-shadow:0 2px 7px #14254414}.cw-select-product{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 14px!important;border:1px solid var(--cw-line)!important;border-radius:14px!important;background:var(--cw-bg)!important;color:var(--cw-ink)!important;text-align:left;box-shadow:none!important}.cw-select-product>span:last-child{flex-shrink:0;color:var(--cw-muted)}.cw-clean .cw-selected{display:flex;align-items:center;gap:12px;min-width:0;min-height:48px}.cw-selected small{display:block;color:var(--cw-muted);font-size:.8125rem;font-weight:400;margin-top:3px}.cw-clean :is(.ad-product-photo,.photo-placeholder,.cw-cabinet-icon){flex:0 0 42px;width:42px;height:52px;min-height:0;border-radius:9px}.cw-clean .cw-selected .product-label>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cw-clean .product-label{font-size:.9375rem}.cw-clean .cw-picker{margin:10px 0 16px;padding:12px;border:1px solid var(--cw-line);border-radius:14px;background:var(--cw-bg)}.cw-clean .cw-picker[hidden]{display:none}.cw-clean .cw-products{max-height:230px}.cw-clean .cw-detail-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:24px 0 12px}.cw-detail-summary>div{display:flex;flex-direction:column;gap:6px}.cw-detail-summary>div>small{color:var(--cw-muted);font-size:.875rem}.cw-detail-summary>div>strong{font-size:2.6rem;letter-spacing:-.045em;line-height:1.1}.cw-clean .cw-detail-plot{min-height:170px;border-radius:12px;background:linear-gradient(180deg,#2453ff00,#2453ff04);outline-offset:3px}.cw-clean .cw-detail-plot .cw-chart{max-height:none;width:100%;height:auto}.cw-clean .cw-day-strip{display:flex;align-items:center;gap:12px;padding:12px 0 16px;border-bottom:1px solid var(--cw-line)}.cw-day-strip>button{flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-bg);color:var(--cw-blue);box-shadow:none}.cw-day-strip>button:disabled{opacity:.35}.cw-clean .cw-day{flex:1;min-width:0;min-height:0;text-align:center;font-size:.875rem;line-height:1.5}.cw-clean .cw-day-value{display:flex;justify-content:center;align-items:baseline;gap:12px;color:var(--cw-muted)}.cw-day-value strong{color:var(--cw-ink);font-size:1.15rem}.cw-clean .cw-day .cw-change{font-weight:500;font-size:.8125rem}.cw-clean .cw-method{margin:4px 0 0;font-size:.875rem}.cw-clean .cw-method>summary{display:list-item;min-height:44px;padding-top:12px;box-sizing:border-box;color:var(--cw-muted)}.cw-detail-status{font-size:.875rem;color:var(--cw-muted);margin:0}.cw-detail-status:empty{display:none}.cw-empty{display:grid;place-items:center;min-height:150px;padding:16px;box-sizing:border-box;text-align:center;width:100%;font-size:.9375rem;line-height:1.6;color:var(--cw-muted)}.cw-plot>.cw-empty{min-height:60px}.cw-bar-selected>rect{stroke:var(--cw-blue);stroke-width:1.5}.cw-clean .cw-table{overflow:auto;max-height:280px}.cw-clean .cw-table th:nth-child(3){width:45%}.cw-clean .cw-table table{font-size:.8125rem}.cw-clean .cw-detail-plot:focus-visible{outline:3px solid var(--cw-blue)}
@media(max-width:600px){.cw-clean{padding:16px;width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.cw-topline{gap:8px;margin-bottom:12px}.cw-clean .cw-period{font-size:.8125rem}.cw-clean .cw-detail-summary{margin-top:20px}.cw-day-strip{gap:6px!important}.cw-clean .cw-detail-plot{min-height:100px}.cw-clean .cw-day-value{flex-wrap:wrap;gap:2px 8px}.cw-clean .cw-day .cw-change{font-size:.75rem}.cw-clean .cw-products{max-height:200px}}
.dw-grid .dw-widget[data-widget=coinvest] .dw-content{display:flex;min-height:0;padding-bottom:12px}.dw-grid .cw-widget{flex:1;min-height:0;gap:4px}.dw-grid .cw-heading{flex:none;justify-content:flex-start}.dw-grid .cw-heading h3.dw-title{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--dw-muted)}.dw-grid .cw-info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;margin:0;order:-1;font-size:0!important;color:var(--dw-blue)!important;border-radius:10px}.dw-grid .cw-info::before{content:'';width:20px;height:20px;box-sizing:border-box;border:1.7px solid currentColor;border-radius:50%;pointer-events:none}.dw-grid .cw-info::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:20px;height:20px;background:radial-gradient(circle,currentColor 1px,transparent 1.2px) center 4px/4px 4px no-repeat,linear-gradient(currentColor,currentColor) center 9px/2px 6px no-repeat;pointer-events:none}.dw-grid .cw-info:hover{background:#819bc714!important}.dw-grid .cw-open{flex:1;min-height:90px;margin:0;gap:0}.dw-grid .cw-open>.cw-plot{position:relative;display:block;flex:1;min-height:0;margin:0;height:100%;width:100%}.dw-grid .cw-open .cw-chart{position:absolute;inset:0;width:100%;height:100%;max-height:none}.dw-grid .cw-plot>.cw-empty{height:100%}
.cw-product-control{position:relative;min-width:0;isolation:isolate;z-index:3}.cw-clean .cw-product-control>.cw-picker{position:absolute;z-index:5;top:calc(100% + 8px);left:0;right:0;margin:0;box-sizing:border-box;box-shadow:0 14px 40px #14254425;border-color:var(--cw-line);max-height:min(360px,45dvh);overflow:hidden;display:flex;flex-direction:column;gap:4px}.cw-clean .cw-product-control>.cw-picker[hidden]{display:none}.cw-clean .cw-picker>label{flex:none;min-width:0}.cw-clean .cw-picker input{margin-bottom:4px}.cw-clean .cw-products{flex:1;min-height:0;max-height:260px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none;padding:4px;gap:4px}.cw-clean .cw-products>button{flex:none;min-height:72px;width:100%;max-width:100%;padding:8px;align-items:center;margin:0}.cw-clean .cw-products .product-identity{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;width:100%;min-width:0}.cw-clean .cw-products .product-label{width:100%;min-width:0;overflow:hidden}.cw-clean .cw-products .product-label>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.4}.cw-clean .cw-products .product-label small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-clean .cw-products :is(.ad-product-photo,.photo-placeholder,.cw-cabinet-icon){width:42px;height:52px;min-width:42px;min-height:52px;max-width:42px;max-height:52px}.cw-clean .cw-products .photo-placeholder{font-size:.65rem}.cw-clean .cw-products img{width:100%;height:100%;object-fit:cover}.cw-clean .cw-picker p{margin:8px 4px}
.ds-dialog{max-height:90dvh;overflow:auto}.ds-dialog summary{min-height:44px;cursor:pointer}.ds-dialog .cw-table{max-height:280px;overflow:auto}
.cw-dialog .cw-detail-summary>span{white-space:normal;overflow-wrap:anywhere;min-width:0}
.cw-dialog .cw-detail-summary>div{min-width:0;overflow-wrap:anywhere}
.cw-photo-section{min-width:0;margin:12px 0}.cw-photo-date{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cw-photo-date input{min-height:44px;max-width:100%}.cw-photo-period{font-size:.85rem;margin:4px 0 8px}.cw-photo-list{display:flex;gap:10px;overflow-x:auto;padding:4px 4px 10px;touch-action:auto;max-width:100%}.cw-photo-list .cw-photo{position:relative;isolation:isolate;flex:0 0 144px;width:144px;height:192px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#edf1f7;color:#142544}.cw-photo-list .cw-photo[aria-pressed=true]{border-color:#2453ff;box-shadow:0 0 0 2px #2453ff}.cw-photo:focus-visible{outline:3px solid #2453ff;outline-offset:2px}.cw-photo-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.cw-photo-image img{width:100%;height:100%;object-fit:cover}.cw-photo-values{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;gap:3px;padding:7px;background:#fff;color:#142544;font-size:.85rem;line-height:1.25}.cw-photo-values strong{font-size:1rem}.cw-photo-values[data-direction=up]{color:#17653b}.cw-photo-values[data-direction=down]{color:#a52738}.cw-photo-values small{font-size:.75rem}
@media(prefers-color-scheme:dark){.cw-photo-values{background:#162137;color:#e3eafa}.cw-photo-values[data-direction=up]{color:#8ce4af}.cw-photo-values[data-direction=down]{color:#ffacb5}}