/* Cosmo Charts · docked trading terminal (v0.11.59) */
.ct59-dock[hidden],.ct59-dock [hidden]{display:none!important}
.ct59-dock{--ct-border:#2a333f;--ct-bg:#10141a;--ct-panel:#141a22;position:fixed;left:0;right:0;bottom:0;height:340px;max-height:82vh;min-height:240px;z-index:2147482000;background:var(--ct-bg);color:#e6edf7;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;box-shadow:0 -15px 65px #0009;border-top:1px solid #3c4857;display:flex;flex-direction:column;animation:ct59-rise .23s cubic-bezier(.15,.8,.2,1) both;font-size:12px}
@keyframes ct59-rise{from{transform:translateY(18px);opacity:.65}to{transform:none;opacity:1}}
.ct59-dock button,.ct59-dock input,.ct59-dock select{font-family:inherit;font-size:12px}
.ct59-dock button{cursor:pointer}.ct59-dock button:disabled{opacity:.4;cursor:not-allowed}.ct59-dock button:focus-visible,.ct59-dock input:focus-visible,.ct59-dock select:focus-visible{outline:2px solid #6c9eda;outline-offset:2px}
.ct59-grip{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:2;display:flex;justify-content:center;align-items:flex-start;touch-action:none}.ct59-grip span{width:54px;height:3px;background:#64768b;border-radius:0 0 5px 5px;opacity:.75}
.ct59-head{min-height:54px;display:flex;gap:16px;align-items:center;padding:8px 17px;border-bottom:1px solid var(--ct-border);box-sizing:border-box}
.ct59-brand{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:12px;letter-spacing:.06em}.ct59-brand-dot{width:7px;height:7px;background:#dbe6f4;border-radius:2px}.ct59-readonly{font-size:9px;color:#8595a8;letter-spacing:.05em;border:1px solid #374153;border-radius:4px;padding:4px 6px}
.ct59-accounts{display:flex;flex:1;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#343d49 transparent;padding:3px 0}
.ct59-none{white-space:nowrap;color:#8393a5}.ct59-exchange{white-space:nowrap;border:1px solid transparent;border-radius:8px;padding:7px 9px;display:flex;align-items:center;gap:7px;background:transparent;color:#a1afc1;max-width:230px;transition:.15s}.ct59-exchange:hover{background:#1d2632;color:white}.ct59-exchange.selected{background:#1e2a38;border-color:#415368;color:#f5f8ff}.ct59-exchange-name{font-weight:650}.ct59-exchange small{max-width:95px;text-overflow:ellipsis;overflow:hidden;color:#8297af}
.ct59-icon{height:23px;width:23px;min-width:23px;border-radius:7px;background:color-mix(in srgb,var(--brand,#7888ac) 18%,#101620);color:var(--brand);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;position:relative;overflow:hidden}.ct59-icon img{display:block;width:19px;height:19px;object-fit:contain;position:absolute;inset:2px}
.ct59-dot{height:6px;width:6px;min-width:6px;border-radius:100%;background:#697689}.ct59-dot.ok{background:#45c995;box-shadow:0 0 8px #45c99566}.ct59-dot.bad{background:#dd9b70}
.ct59-actions{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap}.ct59-updated{color:#78899d;font-size:10px}.ct59-icon-btn{height:29px;min-width:30px;border:1px solid var(--ct-border);background:#18212b;color:#b5c5d7;border-radius:7px;font-size:20px!important;line-height:1}.ct59-icon-btn:hover{background:#243041}.ct59-connect-btn{height:30px;border:1px solid #55759b;border-radius:8px;padding:0 11px;color:#e7f1ff;background:#243d5e;font-weight:650;white-space:nowrap}.ct59-connect-btn:hover{background:#30527b}
.ct59-notice{padding:6px 18px;background:#1d2d3c;border-bottom:1px solid #314458;color:#a6d3fb}.ct59-notice[data-kind=error]{color:#ffb4c1;background:#45232b}.ct59-notice[data-kind=ok]{color:#9cefc2;background:#183b2e}
.ct59-dashboard{display:flex;flex-direction:column;flex:1;min-height:0}.ct59-toolbar{display:flex;align-items:center;gap:18px;min-height:45px;padding:0 18px;border-bottom:1px solid var(--ct-border)}.ct59-selected{display:flex;gap:8px;align-items:center;min-width:135px;font-size:13px}.ct59-selected strong{font-size:13px}.ct59-selected small{color:#8090a6;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}.ct59-categories{display:flex;align-items:stretch;gap:15px;height:45px}.ct59-categories button{border:0;border-bottom:2px solid transparent;background:transparent;color:#899aad;padding:0 5px;font-weight:560}.ct59-categories button.active{border-bottom-color:#d2e1f2;color:#f7faff}.ct59-counter{color:#6f8398;font-variant-numeric:tabular-nums;margin-left:3px}.ct59-logout{margin-left:auto;color:#778da5;background:transparent;border:0;font-size:11px!important}.ct59-logout:hover{color:#c7d8ec}
.ct59-rows{padding:10px 16px;flex:1;min-height:0;overflow-y:auto;display:grid;align-content:start;gap:7px;scrollbar-width:thin;scrollbar-color:#364452 transparent}.ct59-record{border:1px solid #283443;background:#161d26;border-radius:9px;padding:9px 13px;display:grid;grid-template-columns:190px 1fr;align-items:center;gap:15px;animation:ct59-card .18s ease both}@keyframes ct59-card{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ct59-record-head{display:flex;align-items:center;gap:8px;min-width:0}.ct59-symbol{display:flex;flex-direction:column;gap:4px;min-width:0}.ct59-symbol strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ct59-symbol small{font-size:10px;color:#778ca6}.ct59-side{font-size:10px;border-radius:5px;padding:5px 7px;background:#3b2a31;color:#ff9aa9;font-weight:750}.ct59-side.long{background:#1c4133;color:#77dbae}.ct59-metrics{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.ct59-metric{display:flex;flex-direction:column;gap:3px;min-width:0}.ct59-metric small{font-size:9px;color:#8391a7;white-space:nowrap}.ct59-metric strong{font-size:11px;font-weight:620;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ct59-metric strong.positive{color:#52d49a}.ct59-metric strong.negative{color:#f47e93}
.ct59-empty{padding:46px 10px;text-align:center;color:#7d91a8;font-size:12px}.ct59-errors{margin:10px 16px 0;background:#462830;border:1px solid #61333d;border-radius:6px;color:#f6a3b1;padding:9px;font-size:11px}.ct59-foot{height:24px;min-height:24px;display:flex;align-items:center;justify-content:center;color:#5d6d80;border-top:1px solid var(--ct-border);font-size:9px;letter-spacing:.08em}
.ct59-login{align-self:center;max-width:470px;width:calc(100% - 40px);padding:24px 10px;margin:auto}.ct59-login h3{font-size:16px;margin:0 0 5px}.ct59-login p{color:#8e9caf}.ct59-login div{display:flex;gap:8px}.ct59-login input{flex:1;min-width:0}.ct59-login button,.ct59-save{background:#2f639e;color:white;border:1px solid #4d83be;border-radius:8px;padding:10px 15px;font-weight:650}
.ct59-dock input,.ct59-dock select{background:#111821;color:#ecf2f9;border:1px solid #344457;border-radius:7px;padding:9px;outline:none;box-sizing:border-box;min-width:0}
.ct59-connect{position:absolute;z-index:10;top:49px;right:14px;bottom:14px;width:min(450px,calc(100vw - 28px));overflow-y:auto;border:1px solid #3e536e;border-radius:12px;background:#171f2b;box-shadow:0 18px 60px #000b;animation:ct59-pop .18s ease both;padding:17px;box-sizing:border-box}@keyframes ct59-pop{from{transform:translateY(-8px);opacity:.4}to{transform:none;opacity:1}}
.ct59-connect-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ct59-connect-head h3{margin:0 0 6px;font-size:15px}.ct59-connect-head p{margin:0;color:#8ea2b9;line-height:1.5;font-size:11px}.ct59-connected{margin-top:12px;max-height:120px;overflow-y:auto}.ct59-empty-conns{color:#8394a8;font-size:11px}.ct59-connection{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #2b3848}.ct59-connection-identity{display:flex;align-items:center;gap:7px;min-width:0}.ct59-connection-identity span:not(.ct59-icon){color:#8d9fb5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ct59-disconnect{border:1px solid #4a3940;color:#e9a9b7;background:#302129;border-radius:6px;padding:5px 9px}
.ct59-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:12px}.ct59-fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#a3b5c9}.ct59-hint{color:#8395aa;line-height:1.55;font-size:11px}.ct59-save{width:100%}
@media(max-width:1100px){.ct59-readonly,.ct59-updated{display:none}.ct59-metrics{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:8px}.ct59-record{grid-template-columns:180px 1fr}}
@media(max-width:660px){.ct59-dock{height:min(66vh,500px)}.ct59-head{gap:8px;padding:7px}.ct59-brand{display:none}.ct59-actions{gap:4px}.ct59-connect-btn{font-size:11px!important;padding:0 7px}.ct59-accounts{gap:3px}.ct59-exchange small{display:none}.ct59-toolbar{gap:6px;padding:0 9px;flex-wrap:wrap;min-height:58px}.ct59-selected{min-width:0}.ct59-categories{gap:6px;height:35px}.ct59-categories button{padding:0 3px;font-size:10px}.ct59-rows{padding:8px}.ct59-record{grid-template-columns:1fr;padding:10px}.ct59-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ct59-fields{grid-template-columns:1fr}.ct59-foot{font-size:8px}}
@media(prefers-reduced-motion:reduce){.ct59-dock,.ct59-connect,.ct59-record{animation:none}}
/* v0.11.60: live market badge, margin metric, per-position actions. */
.ct60-feed{white-space:nowrap;font-size:9px;letter-spacing:.04em;color:#9eacbb;border:1px solid #364455;border-radius:5px;padding:5px 7px;font-weight:700;font-variant-numeric:tabular-nums}
.ct60-feed[data-state="live"]{color:#68dab0;background:#153b2d;border-color:#255a45}
.ct60-feed[data-state="rest"]{color:#adbbca}.ct60-feed[data-state="offline"],.ct60-feed[data-state="stale"]{color:#e9a68f;border-color:#71443a;background:#35221f}
.ct59-record:has(.ct60-record-actions){grid-template-columns:minmax(130px,170px) minmax(0,1fr) 77px;gap:12px}
.ct59-record:has(.ct60-record-actions) .ct59-metrics{grid-template-columns:repeat(9,minmax(0,1fr));column-gap:6px}
.ct59-metric strong{font-variant-numeric:tabular-nums}
.ct60-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;align-self:center;flex-shrink:0}
.ct60-action{width:32px;height:30px;border:1px solid #354657;border-radius:7px;background:#1d2834;color:#c0cedd;font-size:17px!important;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s,color .15s}
.ct60-action:hover{background:#2c4156;color:white;border-color:#7091b5}
.ct60-action.is-on{color:#79c2ff;background:#1c3b55;border-color:#467ca5}
.ct60-share{font-size:19px!important}
.ct59-icon-btn.is-loading{animation:ct60-spin 1s linear infinite}@keyframes ct60-spin{to{transform:rotate(360deg)}}
.ct60-chart-overlays{position:absolute;inset:0;pointer-events:none;z-index:25;overflow:hidden}
.ct60-price-line{position:absolute;height:0;border-top:1px solid var(--level-color);box-sizing:border-box;opacity:.92;pointer-events:none}
.ct60-price-line[data-style="dashed"]{border-top-style:dashed}.ct60-price-line[data-style="dotted"]{border-top-style:dotted}
.ct60-price-tag{position:absolute;top:-12px;right:0;white-space:nowrap;background:#121a22f0;color:var(--level-color);border:1px solid color-mix(in srgb,var(--level-color) 50%,#111820);padding:3px 6px;border-radius:5px;font:700 9px/14px Inter,system-ui,sans-serif;letter-spacing:.02em;font-variant-numeric:tabular-nums;box-shadow:0 2px 8px #0009}
@media(max-width:1500px){.ct59-record:has(.ct60-record-actions){grid-template-columns:130px minmax(0,1fr) 74px}.ct59-record:has(.ct60-record-actions) .ct59-metrics{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:9px}}
@media(max-width:1050px){.ct60-feed{display:none}.ct59-record:has(.ct60-record-actions){grid-template-columns:1fr 76px}.ct59-record:has(.ct60-record-actions) .ct59-record-head{grid-column:1}.ct59-record:has(.ct60-record-actions) .ct59-metrics{grid-column:1;grid-template-columns:repeat(4,minmax(0,1fr))}.ct59-record:has(.ct60-record-actions) .ct60-record-actions{grid-column:2;grid-row:1 / span 2;align-self:center}}
@media(max-width:660px){.ct59-record:has(.ct60-record-actions) .ct59-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ct59-record:has(.ct60-record-actions){grid-template-columns:minmax(0,1fr) 76px}.ct60-price-tag{font-size:8px;padding:2px 4px}}
