@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2) format("woff2-variations");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--font-weight-medium:500;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer base,components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.right-2{right:calc(var(--spacing) * 2)}.z-50{z-index:50}.z-\[calc\(var\(--z-dialog\)\+2\)\]{z-index:calc(var(--z-dialog) + 2)}.order-1{order:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.my-1{margin-block:var(--spacing)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-px{height:1px}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.w-fit{width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.shrink-0{flex-shrink:0}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-my-1{scroll-margin-block:var(--spacing)}.appearance-none{appearance:none}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-border,.border-input{border-color:var(--border)}.border-transparent{border-color:#0000}.bg-background{background-color:var(--background)}.bg-border{background-color:var(--border)}.bg-destructive{background-color:var(--danger)}.bg-popover{background-color:var(--surface-raised)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--surface-control)}.bg-transparent{background-color:#0000}.p-1{padding:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pl-2{padding-left:calc(var(--spacing) * 2)}.font-\[inherit\]{font-family:inherit}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-nowrap{white-space:nowrap}.text-current{color:currentColor}.text-muted-foreground{color:var(--muted)}.text-popover-foreground{color:var(--text)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--background)}.text-secondary-foreground{color:var(--text)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-\[color\,background-color\,border-color\,box-shadow\]{transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-data-\[size\=default\]\/switch\:size-4:is(:where(.group\/switch)[data-size=default] *){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/switch\:size-3:is(:where(.group\/switch)[data-size=sm] *){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--background)}.selection\:text-primary-foreground::selection{color:var(--background)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--text)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted)}@media(hover:hover){.hover\:bg-accent:hover{background-color:var(--surface-control)}.hover\:bg-destructive\/90:hover{background-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--danger) 90%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--surface-control)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--surface-control) 80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--text)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:bg-accent:focus{background-color:var(--surface-control)}.focus\:text-accent-foreground:focus{color:var(--text)}.focus-visible\:border-ring:focus-visible{border-color:var(--primary)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--danger) 20%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--primary) 50%, transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-\[\>svg\]\:px-1\.5:has(>svg){padding-inline:calc(var(--spacing) * 1.5)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--danger)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--danger) 20%, transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=default\]\:h-\[1\.15rem\][data-size=default]{height:1.15rem}.data-\[size\=default\]\:w-8[data-size=default]{width:calc(var(--spacing) * 8)}.data-\[size\=sm\]\:h-3\.5[data-size=sm]{height:calc(var(--spacing) * 3.5)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}.data-\[size\=sm\]\:w-6[data-size=sm]{width:calc(var(--spacing) * 6)}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--background)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--border)}@media(min-width:48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media(prefers-color-scheme:dark){.dark\:border-input{border-color:var(--border)}.dark\:bg-destructive\/60{background-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60{background-color:color-mix(in oklab,var(--danger) 60%,transparent)}}.dark\:bg-input\/30{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30{background-color:color-mix(in oklab,var(--border) 30%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:hover{background-color:var(--surface-control)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:hover{background-color:color-mix(in oklab,var(--surface-control) 50%,transparent)}}.dark\:hover\:bg-input\/50:hover{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:hover{background-color:color-mix(in oklab,var(--border) 50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:focus-visible{--tw-ring-color:color-mix(in oklab, var(--danger) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--danger)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--danger) 40%, transparent)}}.dark\:data-\[state\=checked\]\:bg-primary-foreground[data-state=checked]{background-color:var(--background)}.dark\:data-\[state\=unchecked\]\:bg-foreground[data-state=unchecked]{background-color:var(--text)}.dark\:data-\[state\=unchecked\]\:bg-input\/80[data-state=unchecked]{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80[data-state=unchecked]{background-color:color-mix(in oklab,var(--border) 80%,transparent)}}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Avenor Manrope;src:url(/assets/Manrope-Variable-FzEoaBTQ.ttf) format("truetype");font-weight:200 800;font-display:swap}:root{color:light-dark(#17212b,#edf2f7);background:light-dark(#e9edf1,#070b10);font-family:Inter Variable,Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,sans-serif;font-synthesis:none;--font-sans: "Inter Variable", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;--font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;--background: light-dark(#e9edf1, #070b10);--surface: light-dark(#f7f9fb, #0b1118);--surface-raised: light-dark(#ffffff, #101721);--surface-soft: light-dark(#f2f5f7, #091017);--surface-control: light-dark(#eef2f5, #0d151e);--border: light-dark(#c8d1da, #1b2532);--border-subtle: light-dark(#d9e0e6, #151f2a);--text: light-dark(#17212b, #edf2f7);--text-secondary: light-dark(#4e5b68, #aab5c2);--muted: light-dark(#5f6b77, #6f7c8f);--primary: light-dark(#057a63, #18d6ad);--danger: light-dark(#c43f55, #f05b72);--warning: light-dark(#7c5400, #f0b83f);--status-running-background: light-dark(#e7f3ef, #0d2a22);--status-running-border: light-dark(#8dbdaf, #2b725f);--status-waiting-background: light-dark(#fff4d6, #31250e);--status-waiting-border: light-dark(#d2b15f, #765b23);--status-paused-foreground: light-dark(#465467, #d2dae5);--status-paused-background: light-dark(#eef1f5, #293442);--status-paused-border: light-dark(#a7b0bc, #64748b);--status-paused-accent: light-dark(#657487, #8b9aac);--status-error-background: light-dark(#fdecee, #35141b);--status-error-border: light-dark(#e4a1ad, #7a3440);--chart-drawing: light-dark(#526f89, #8aa2b8);--chart-drawing-fill: light-dark( rgb(82 111 137 / 10%), rgb(138 162 184 / 12%) );--trade-primary-row-height: 39px;--chart-title-row-height: 30px;--topbar-height: 46px;--topbar-primary-row-height: 46px;--topbar-nav-row-height: 44px;--statusbar-height: 24px;--financial-table-edge-inset: 24px;--financial-table-cell-inset: 6px;--financial-table-column-gap: 12px;--z-sticky: 100;--z-backdrop: 500;--z-dialog: 600;--z-toast: 900;color-scheme:light dark}html[data-theme=light]{color-scheme:light}html[data-theme=dark]{color-scheme:dark}*{box-sizing:border-box}html{min-width:320px;min-height:100%;scroll-padding:calc(var(--topbar-height) + 8px) 0 calc(var(--statusbar-height) + 8px);scrollbar-gutter:stable}body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow-y:scroll;background:var(--background);font-size:12px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--primary);outline-offset:2px}[data-pointer-restored-focus]:focus-visible{outline:none}::selection{color:#06120f;background:var(--primary)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}*{scrollbar-color:light-dark(#b3b7bc,#344353) var(--background);scrollbar-width:thin}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:var(--background)}*::-webkit-scrollbar-thumb{border:2px solid var(--background);border-radius:5px;background:light-dark(#b3b7bc,#344353)}*::-webkit-scrollbar-thumb:hover{background:light-dark(#737980,#45576a)}*::-webkit-scrollbar-thumb:active{background:light-dark(#676c72,#587087)}.app-shell{min-height:100vh;padding:var(--topbar-height) 0 var(--statusbar-height)}.topbar{position:fixed;z-index:var(--z-sticky);inset:0 0 auto;height:var(--topbar-height);display:flex;align-items:center;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--background) 96%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand{align-self:stretch;flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:0 14px 0 22px}.brand:hover{background:light-dark(#f4f5f5,#0a1017)}.brand-symbol{width:22px;height:22px;flex:0 0 auto;color:var(--text)}.brand-symbol .avenor-mark{width:100%;height:100%;display:block}.brand-copy{min-width:0;display:flex;align-items:baseline;gap:8px;white-space:nowrap}.brand-copy strong{color:var(--text);font-family:"Avenor Manrope",var(--font-sans);font-size:14px;font-weight:740;line-height:1.1;letter-spacing:.08em}.topbar-nav{align-self:stretch;flex:1 1 auto;min-width:0;display:flex;align-items:center;padding:0 8px 0 0}.topbar-nav-workspaces,.topbar-nav-management{align-self:stretch;display:flex;align-items:stretch;gap:2px}.topbar-nav-management{margin-left:auto}.topbar-nav a{position:relative;align-self:stretch;display:flex;align-items:center;padding:0 13px;color:light-dark(#55585b,#8591a2);font-size:13px;font-weight:600;white-space:nowrap}.topbar-nav a:hover{color:light-dark(#37393d,#cbd3dd);background:light-dark(#f4f5f5,#0a1017)}.topbar-nav a:focus-visible,.brand:focus-visible{outline:2px solid var(--primary);outline-offset:-4px}.topbar-nav a.active{color:light-dark(#23272b,#f5f8fb)}.topbar-nav a.active:after{position:absolute;right:13px;bottom:-1px;left:13px;height:2px;background:var(--primary);content:""}.top-actions{margin-left:0;display:flex;align-items:center;gap:8px;padding-right:14px}.theme-toggle{height:32px;display:grid;grid-template-columns:repeat(2,28px);align-items:center;padding:2px;border:1px solid var(--border);border-radius:7px;background:var(--surface-control)}.theme-toggle button{width:28px;height:26px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:5px;color:light-dark(#606367,#6f7d90);background:transparent;cursor:pointer}.theme-toggle button:hover{color:var(--text-secondary);background:var(--surface-raised)}.theme-toggle button[aria-pressed=true]{border-color:color-mix(in srgb,var(--primary) 64%,var(--border));color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,var(--surface-raised))}.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.65}.notification-center{position:relative}.notification-trigger{position:relative;width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:6px;color:light-dark(#5b5e62,#78869a);background:transparent;cursor:pointer}.notification-trigger:hover,.notification-trigger[aria-expanded=true]{border-color:var(--border);color:light-dark(#303337,#d7dee8);background:light-dark(#f3f4f6,#0c131b)}.notification-trigger.has-attention{color:light-dark(#36393c,#cbd3de)}.notification-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.notification-count{position:absolute;top:-4px;right:-5px;min-width:16px;height:16px;display:grid;place-items:center;padding:0 4px;border:2px solid light-dark(#e9edf1,#070b10);border-radius:9px;color:#fff;background:var(--danger);font-family:var(--font-mono);font-size:8px;font-weight:750;line-height:1}.notification-popover{position:absolute;z-index:var(--z-dialog);top:calc(100% + 14px);right:0;width:min(380px,calc(100vw - 18px));max-height:min(560px,calc(100vh - 76px));overflow:hidden;border:1px solid light-dark(#bec1c6,#293647);border-radius:8px;background:light-dark(#f7f9fb,#0b1118);box-shadow:0 18px 44px #00000070}.notification-popover>header{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 14px;border-bottom:1px solid var(--border)}.notification-popover>header>div{display:flex;align-items:baseline;gap:8px}.notification-popover>header>.notification-header-actions{align-items:center;gap:2px}.notification-popover>header strong{color:var(--text);font-size:13px}.notification-popover>header span{color:var(--muted);font-size:10px}.notification-popover>header button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:5px;color:light-dark(#5e6165,#718095);background:transparent;cursor:pointer}.notification-popover>header button:hover{color:light-dark(#303337,#d8dfe8);background:light-dark(#fafafa,#141c26)}.notification-popover>header .notification-read-all{width:auto;padding:0 7px;color:light-dark(#56595d,#8190a3);font-size:10px;font-weight:650}.notification-popover>header .notification-read-all:hover:not(:disabled){color:var(--primary)}.notification-popover>header .notification-read-all:disabled{color:light-dark(#74797f,#485567);cursor:default}.notification-popover>header button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.notification-list{max-height:min(513px,calc(100vh - 123px));overflow-y:auto}.notification-item{display:grid;grid-template-columns:8px minmax(0,1fr);gap:10px;padding:12px 14px;border-bottom:1px solid light-dark(#d1d4d8,#18222e)}.notification-item:last-child{border-bottom:0}.notification-item>i{width:6px;height:6px;margin-top:5px;border-radius:50%;background:transparent}.notification-item.unread>i{background:var(--warning)}.notification-item.severity-critical.unread>i,.notification-item.delivery-failed.unread>i{background:var(--danger)}.notification-item>div,.notification-item header strong{min-width:0}.notification-item header{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.notification-item header strong{overflow:hidden;color:light-dark(#2e3135,#dce3ec);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.notification-item time{flex:0 0 auto;color:light-dark(#6b6f74,#59677a);font-family:var(--font-mono);font-size:9px}.notification-item p{margin:5px 0 0;overflow-wrap:anywhere;color:light-dark(#4d4f53,#9ba7b7);font-size:10px;line-height:1.5}.notification-item small{display:block;margin-top:6px;overflow:hidden;color:light-dark(#686c70,#5f6d80);font-family:var(--font-mono);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.notification-empty{min-height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:24px;text-align:center}.notification-empty svg{width:22px;height:22px;margin-bottom:2px;fill:none;stroke:light-dark(#6e7277,#536175);stroke-width:1.5}.notification-empty strong{color:light-dark(#404246,#b6c0ce);font-size:11px}.notification-empty span{color:light-dark(#65686d,#657286);font-size:10px}.workspace{min-height:calc(100vh - var(--topbar-height) - var(--statusbar-height))}.position-value-preview-page{padding:20px}.trade-workspace{display:flex;flex-direction:column}.trade-page{flex:1 0 auto;display:flex;flex-direction:column}.system-banner{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 18px;border-bottom:1px solid light-dark(#c0b2b5,#5d2732);color:light-dark(#382e2f,#ffc2cb);background:light-dark(#faf9fa,#231016)}.system-banner>div{display:flex;align-items:baseline;gap:10px}.system-banner strong{font-size:12px}.system-banner span{color:light-dark(#57494b,#c88994)}.system-banner button{padding:6px 11px;border:1px solid light-dark(#806e71,#78404b);border-radius:5px;color:light-dark(#32292b,#ffd6dc);background:light-dark(#d9d0d2,#32151d);cursor:pointer}.system-banner button:hover{border-color:var(--danger)}.market-header{height:var(--trade-primary-row-height);min-height:var(--trade-primary-row-height);display:flex;align-items:center;gap:12px;padding:0 12px;overflow:hidden;border-bottom:1px solid var(--border);background:light-dark(#f1f2f3,#0a1017)}.page-heading p{margin:0;color:light-dark(#686c70,#5f6d80);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.market-stats{min-width:0;flex:1 1 auto;display:flex;align-items:center;justify-content:space-between;gap:clamp(10px,.9vw,18px);margin:0;overflow-x:auto;padding:3px 0}.market-stats div{min-width:max-content;flex:0 0 auto;display:grid;gap:2px}.market-stats dt{color:light-dark(#686c70,#5f6d80);font-size:10px;white-space:nowrap}.market-stats dd{margin:0;color:light-dark(#373a3d,#cbd3dc);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.market-stats dd.positive{color:var(--primary)}.market-stats dd.negative{color:var(--danger)}.market-stats.stale dd{opacity:.58}.page-meta{margin-left:auto;color:var(--warning);font-size:11px}.market-picker-trigger{width:fit-content;min-width:0;max-width:min(286px,100%);height:32px;flex:0 0 auto;display:flex;align-items:center;gap:5px;padding:0 7px 0 5px;overflow:hidden;border:1px solid light-dark(#c0c3c8,#283544);border-radius:7px;color:light-dark(#2f3235,#dce3ea);background:light-dark(#f3f4f6,#0c131b);cursor:pointer}.market-picker-trigger:hover:not(:disabled),.market-picker-trigger[aria-expanded=true]{border-color:light-dark(#767e85,#3c5264);background:light-dark(#f7f8f9,#0f1720)}.market-picker-trigger[aria-expanded=true]{box-shadow:inset 0 -2px 0 var(--primary)}.market-picker-trigger:disabled{color:light-dark(#64676b,#687588);cursor:not-allowed}.market-trigger-contract{min-width:0;flex:0 0 auto;display:flex;align-items:baseline;gap:4px;white-space:nowrap}.market-trigger-contract strong{flex:0 0 auto;overflow:hidden;font-size:11px;font-weight:720;letter-spacing:.015em;text-overflow:ellipsis;white-space:nowrap}.market-trigger-contract strong{max-width:132px}.market-contract-quote{flex:0 0 auto;color:light-dark(#5e6164,#738094);font-size:8px;font-weight:680;letter-spacing:.025em}.market-trigger-divider{width:1px;height:18px;flex:0 0 auto;margin-inline:1px;background:light-dark(#bec2c6,#2a3746)}.market-trigger-venue{max-width:58px;flex:0 1 auto;min-width:0;overflow:hidden;color:light-dark(#404346,#b8c2cd);font-size:9px;font-weight:700;letter-spacing:.045em;text-overflow:ellipsis;white-space:nowrap}.market-trigger-chevron{width:13px;height:13px;flex:0 0 auto;fill:none;stroke:light-dark(#5e6164,#738094);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease-out}.market-picker-trigger[aria-expanded=true] .market-trigger-chevron{transform:rotate(180deg)}.market-asset-icon,.market-venue-icon{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;border:1px solid light-dark(#b5babe,#304052);border-radius:50%;color:light-dark(#2d3034,#dfe6ed);background:light-dark(#d4d7db,#15202b);font-family:var(--font-mono);font-size:10px;font-weight:800;letter-spacing:-.02em}.market-asset-icon[data-asset=BTC]{border-color:light-dark(#d6bc9a,#744d18);color:#fff;background:#f7931a;font-family:inherit;font-size:17px}.market-asset-icon[data-asset=ETH]{border-color:light-dark(#2d4080,#4a5c9a);color:#eff2ff;background:#627eea}.market-asset-icon[data-asset=SOL]{border-color:light-dark(#a0cfcb,#286f69);color:light-dark(#228c6d,#9cf3da);background:light-dark(#d4dcdc,#132b2c)}.market-asset-icon[data-tone="0"]{border-color:light-dark(#b0bbbb,#315a58);color:light-dark(#3e4c4a,#9fded7);background:light-dark(#f9fafa,#122322)}.market-asset-icon[data-tone="1"]{border-color:light-dark(#6e6e7a,#4d4f76);color:light-dark(#31323c,#c6c8ee);background:light-dark(#cfd0d5,#1d1e2f)}.market-asset-icon[data-tone="2"]{border-color:light-dark(#878076,#63523a);color:light-dark(#80632d,#e2c897);background:light-dark(#dad8d5,#292217)}.market-asset-icon[data-tone="3"]{border-color:light-dark(#737c87,#374f6b);color:light-dark(#2d5c80,#a8cce8);background:light-dark(#d1d5d9,#152331)}.market-asset-icon[data-tone="4"]{border-color:light-dark(#83767e,#624255);color:light-dark(#463940,#e0b0ca);background:light-dark(#d8d4d7,#291a23)}.market-asset-icon[data-tone="5"]{border-color:light-dark(#7a8377,#486041);color:light-dark(#40483d,#bad7af);background:light-dark(#d6dad5,#1b2818)}.market-asset-icon.compact,.market-venue-icon.compact{width:25px;height:25px;font-size:9px}.market-asset-icon.compact[data-asset=BTC]{font-size:14px}.market-asset-icon.has-image{overflow:hidden;border-color:light-dark(#b5babe,#304052);background:light-dark(#f8f9fa,#101821)}.market-asset-icon.has-image img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover;-webkit-user-select:none;user-select:none}.market-venue-icon{width:26px;height:26px;border-radius:6px;color:light-dark(#17212b,#edf2f7);font-size:12px}.market-venue-icon.compact{width:24px;height:24px;border-radius:5px}.market-venue-icon.binance{border-color:light-dark(#d6c89a,#6b591a);color:light-dark(#93701a,#f3ba2f);background:light-dark(#f7f7f6,#1d1a0e)}.market-venue-icon img{display:block;width:16px;height:16px;object-fit:contain;-webkit-user-select:none;user-select:none}.market-venue-icon.compact img{width:14px;height:14px}.market-venue-icon.gate{border-color:light-dark(#9dc3d2,#225a70);color:light-dark(#20728e,#22b7e8);background:light-dark(#f8f9f9,#0d1b23)}.market-venue-icon.lighter{border-color:light-dark(#79797f,#4b4d5c);color:light-dark(#28282b,#f1f1f4);background:light-dark(#fafafa,#1a1b22)}.market-venue-icon.lighter img,.market-venue-icon.rhc img{width:10px;height:18px}.market-venue-icon.lighter.compact img,.market-venue-icon.rhc.compact img{width:9px;height:16px}.market-venue-icon.rhc{border-color:light-dark(#adb8b6,#345f57);color:light-dark(#2d806d,#8fe3d0);background:light-dark(#f8f9f9,#10201d)}.market-venue-icon.hyperliquid{border-color:light-dark(#7dc2b6,#315d53);background:#132a26}.market-venue-icon.omni{border-color:light-dark(#a3b8d8,#294369);background:light-dark(#f4f7fc,#101c31)}.market-venue-icon.omni img{width:18px}.market-venue-icon.arcus{border-color:light-dark(#c7b998,#625943);background:#1a1916}html[data-theme=light] .market-venue-icon.lighter img,html[data-theme=light] .market-venue-icon.rhc img{filter:brightness(0) saturate(100%);opacity:.78}.market-picker-trigger>.market-asset-icon.compact{width:22px;height:22px;font-size:8px}.market-picker-trigger>.market-asset-icon.compact[data-asset=BTC]{font-size:12px}.market-picker-trigger>.market-venue-icon.compact{width:21px;height:21px;font-size:10px}.market-picker-trigger>.market-venue-icon.compact img{width:12px;height:12px}.market-picker-trigger>.market-venue-icon.lighter.compact img,.market-picker-trigger>.market-venue-icon.rhc.compact img{width:8px;height:14px}.market-picker-layer{position:fixed;z-index:var(--z-dialog);inset:0}.modal-dialog:has(>.market-picker-layer){overflow:visible}.market-picker-backdrop{position:absolute;z-index:var(--z-backdrop);inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:default}.market-picker-dialog{position:absolute;z-index:var(--z-dialog);display:grid;grid-template-rows:48px 40px 36px minmax(0,1fr) 30px;overflow:hidden;border:1px solid light-dark(#b5b8bb,#364250);border-radius:8px;background:light-dark(#f2f3f4,#0d1117);box-shadow:0 18px 48px #00000094}.market-search-row{display:flex;align-items:center;gap:8px;padding:0 10px 0 13px;border-bottom:1px solid light-dark(#c8cacd,#272d36)}.market-search-icon{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:light-dark(#555759,#8c94a0);stroke-width:1.7;stroke-linecap:round}.market-search-row input{min-width:0;height:100%;flex:1 1 auto;padding:0;border:0;outline:0;color:light-dark(#272a2e,#edf1f5);background:transparent;font-size:13px}.market-search-row input::placeholder{color:light-dark(#66676a,#6f7580)}.market-search-row input::-webkit-search-cancel-button{display:none}.market-search-clear,.market-picker-close,.market-favorite-button{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:0;border-radius:5px;color:light-dark(#5e5f61,#7d8590);background:transparent;cursor:pointer}.market-search-clear:hover,.market-picker-close:hover,.market-favorite-button:hover{color:light-dark(#2e3134,#dfe4ea);background:light-dark(#d5d7d9,#191f28)}.market-search-clear svg,.market-picker-close svg,.market-favorite-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.market-picker-close{margin-left:2px}.market-primary-tabs,.market-venue-tabs{display:flex;align-items:end;border-bottom:1px solid light-dark(#c8cacd,#272d36)}.market-primary-tabs{justify-content:space-between;padding:0 13px}.market-primary-tabs>div{align-self:stretch;display:flex;align-items:flex-end;gap:18px}.market-primary-tabs button,.market-venue-tabs button{position:relative;height:100%;padding:0;border:0;color:light-dark(#565759,#8d939d);background:transparent;font-size:11px;cursor:pointer}.market-primary-tabs button:hover,.market-venue-tabs button:hover{color:light-dark(#323437,#d8dde3)}.market-primary-tabs button.active{color:light-dark(#26282a,#f3f5f7);font-weight:700}.market-primary-tabs button.active:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--primary);content:""}.market-primary-tabs>span{align-self:center;color:light-dark(#636467,#737b87);font-family:var(--font-mono);font-size:9px;letter-spacing:.05em}.market-venue-tabs{align-items:center;gap:6px;padding:0 13px;overflow-x:auto}.market-venue-tabs button{height:26px;flex:0 0 auto;padding:0 10px;border:1px solid transparent;border-radius:5px;white-space:nowrap}.market-venue-tabs button.active{border-color:light-dark(#b6b8bb,#39414c);color:light-dark(#272a2e,#edf1f5);background:light-dark(#fafafa,#171c24)}.market-table-scroll{min-height:0;overflow:auto}.market-picker-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}.market-picker-table th,.market-picker-table td{height:36px;padding:0 10px;border-bottom:1px solid light-dark(#cccdd0,#242a32);color:light-dark(#4a4c4f,#a7aeb8);text-align:left;white-space:nowrap}.market-picker-table th{position:sticky;z-index:4;top:0;height:32px;color:light-dark(#626466,#747c88);background:light-dark(#f6f7f7,#11151b);font-size:10px;font-weight:650;letter-spacing:.04em}.market-picker-table th:first-child,.market-picker-table td:first-child{width:40px;padding-inline:8px 0}.market-picker-table th:nth-child(2),.market-picker-table td:nth-child(2){width:160px}.market-picker-table th:nth-child(3),.market-picker-table td:nth-child(3){width:92px}.market-picker-table th:nth-child(4),.market-picker-table td:nth-child(4){width:110px}.market-picker-table th:nth-child(5),.market-picker-table td:nth-child(5){width:78px}.market-picker-table th:nth-child(6),.market-picker-table td:nth-child(6),.market-picker-table th:nth-child(7),.market-picker-table td:nth-child(7){width:94px}.market-picker-table th:nth-child(8),.market-picker-table td:nth-child(8){width:92px}.market-picker-table th.numeric,.market-picker-table td.numeric{text-align:right}.market-picker-table th button{display:inline-flex;align-items:center;gap:4px;padding:4px 0;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}.market-picker-table th.numeric button{justify-content:flex-end}.market-picker-table th button:hover{color:light-dark(#333538,#d5dbe2)}.market-picker-table th button svg{width:12px;height:12px;fill:none;stroke:var(--primary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.market-table-row{position:relative}.market-table-row:hover td{background:light-dark(#fafafa,#141920)}.market-table-row.selected td{background:light-dark(#f7f8f8,#111d1c)}.market-table-row.selected td:first-child{box-shadow:inset 2px 0 0 var(--primary)}.market-table-row>td{position:relative;pointer-events:none}.market-table-spacer>td{border:0;padding:0}.market-table-row .market-favorite-cell{z-index:3;pointer-events:auto}.market-table-row .market-row-select-cell{position:static}.market-row-select{position:absolute;z-index:2;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;pointer-events:auto}.market-row-select:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.market-favorite-button{position:relative;z-index:3;width:32px;height:32px}.market-favorite-button[aria-pressed=true]{color:light-dark(#94731a,#f6c84c)}.market-table-identity,.market-table-venue{display:flex;align-items:center;gap:9px}.market-picker-table .market-asset-icon.compact{width:20px;height:20px;font-size:7px}.market-picker-table .market-asset-icon.compact[data-asset=BTC]{font-size:11px}.market-picker-table .market-venue-icon.compact{width:19px;height:19px;border-radius:4px}.market-picker-table .market-venue-icon.compact img{width:11px;height:11px}.market-picker-table .market-venue-icon.lighter.compact img,.market-picker-table .market-venue-icon.rhc.compact img{width:7px;height:13px}.market-contract-name{min-width:0;display:inline-flex;align-items:baseline}.market-table-identity strong{max-width:130px;overflow:hidden;color:light-dark(#2d2f31,#e4e8ed);font-family:var(--font-mono);font-size:11px;font-weight:620;letter-spacing:-.015em;text-overflow:ellipsis}.market-table-identity .market-contract-quote{font-weight:560;letter-spacing:0}.market-product-badge{padding:1px 4px;border:1px solid light-dark(#c4b8d8,#594772);border-radius:4px;color:light-dark(#67527f,#baa4d5);font-family:var(--font-mono);font-size:8px;font-weight:650;letter-spacing:.04em}.market-table-identity>small{padding:2px 5px;border:1px solid light-dark(#b5c2bf,#28564d);border-radius:4px;color:var(--primary);font-size:8px}.market-table-venue{color:light-dark(#4b4d50,#a4acb7);font-size:11px}.market-picker-table td.numeric{color:light-dark(#333537,#d7dce2);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums}.market-picker-table td.positive{color:var(--primary)}.market-picker-table td.negative{color:var(--danger)}.market-picker-empty{height:132px;display:grid;place-content:center;justify-items:center;gap:7px;color:light-dark(#595b5d,#858d98)}.market-picker-empty strong{color:light-dark(#3a3c3e,#c8ced5);font-size:12px}.market-picker-empty span{font-size:11px}.market-picker-hints{display:flex;align-items:center;gap:16px;padding:0 13px;border-top:1px solid light-dark(#c8cacd,#272d36);color:light-dark(#686a6d,#69717d);background:light-dark(#f5f6f6,#10141a);font-family:var(--font-mono);font-size:8px}.terminal-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(250px,280px) minmax(292px,318px);grid-template-rows:624px;gap:4px;padding:4px;background:var(--background)}.terminal-panel{min-width:0;min-height:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.market-workspace-panel{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.market-workspace-panel .chart-panel{height:auto;border:0;border-radius:0}.panel-tabs{height:39px;display:flex;align-items:stretch;gap:18px;padding:0 12px;border-bottom:1px solid var(--border)}.panel-tabs h2,.panel-tabs span{position:relative;margin:0;display:flex;align-items:center;color:light-dark(#5e6064,#758194);font-size:12px;font-weight:650}.panel-tabs h2{color:light-dark(#2f3235,#dce3ea)}.chart-panel>.panel-tabs{height:var(--chart-title-row-height);padding-inline:12px}.chart-panel>.panel-tabs h2{font-size:10px}.chart-toolbar{height:35px;display:flex;align-items:center;gap:2px;overflow-x:auto;padding:0 12px;border-bottom:1px solid light-dark(#f9fafa,#111b26);scrollbar-width:thin}.chart-toolbar button{flex:0 0 auto;min-width:27px;min-height:24px;padding:0 6px;border:0;border-radius:3px;color:light-dark(#65686c,#667386);background:transparent;font-size:10px;cursor:pointer}.chart-toolbar button:hover:not(:disabled),.chart-toolbar button:focus-visible,.chart-toolbar button[data-state=on]{color:light-dark(#313437,#d6dee7);background:light-dark(#c8d1da,#1b2532)}.chart-toolbar button:disabled{color:light-dark(#8b9299,#4d5968);background:transparent;cursor:not-allowed;opacity:.58}.chart-source-toggle{flex:0 0 auto;display:flex;align-items:center;gap:1px;margin-left:5px;padding-left:7px;border-left:1px solid light-dark(#c2c6ca,#263241)}.chart-source-toggle button{min-width:43px;padding-inline:7px}.chart-live-state{flex:0 0 auto;display:flex;align-items:center;gap:5px;margin-left:auto;color:light-dark(#64676b,#687588);font-size:10px}.chart-live-state i{width:5px;height:5px;border-radius:50%;background:var(--primary);box-shadow:0 0 8px var(--primary)}.chart-live-state.retrying i{background:var(--warning);box-shadow:none}.chart-ohlc{height:28px;display:flex;align-items:center;gap:11px;overflow:hidden;padding:0 14px;color:light-dark(#64676b,#687588);background:var(--surface);font-family:var(--font-mono);font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}.chart-stage{position:relative;height:auto;min-height:0}.chart-panel{display:grid;grid-template-rows:var(--chart-title-row-height) 35px 28px minmax(0,1fr)}.chart-drawing-workspace{position:absolute;inset:0}.chart-host{position:absolute;inset:0 0 0 42px}.chart-drawing-rail{position:absolute;z-index:4;inset:0 auto 0 0;width:42px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 4px;background:transparent}.chart-tool-button{position:relative;width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;color:var(--muted);background:transparent;cursor:pointer}.chart-tool-icon{width:22px;height:22px;display:block;vector-effect:non-scaling-stroke}.chart-tool-button:hover,.chart-tool-button:focus-visible{color:var(--text-secondary);background:color-mix(in srgb,var(--surface-control) 88%,transparent)}.chart-tool-button[aria-pressed=true]{color:var(--primary);background:color-mix(in srgb,var(--primary) 11%,var(--surface-control))}.chart-tool-button:disabled{color:color-mix(in srgb,var(--muted) 48%,transparent);cursor:default}.chart-tool-button:after{position:absolute;z-index:8;top:50%;left:calc(100% + 7px);width:max-content;max-width:170px;padding:4px 6px;border:1px solid var(--border);border-radius:4px;color:var(--text-secondary);background:var(--surface-raised);box-shadow:0 6px 18px #0000002e;content:attr(data-tooltip);font-size:9px;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(2px,-50%)}.chart-tool-button:hover:after,.chart-tool-button:focus-visible:after{opacity:1}.chart-tool-button:disabled:after{display:none}.chart-tool-separator{width:24px;height:1px;flex:0 0 1px;margin:4px 0;background:var(--border-subtle)}.chart-drawing-overlay{position:absolute;z-index:2;inset:0 0 0 42px;width:calc(100% - 42px);height:100%;overflow:visible;pointer-events:none;touch-action:none}.chart-drawing-overlay[data-armed=true]{pointer-events:auto;cursor:crosshair}.chart-drawing-overlay:focus{outline:none}.chart-drawing-shape{color:var(--chart-drawing);outline:none;pointer-events:none}.chart-drawing-shape:not(.draft){cursor:grab}.chart-drawing-shape:not(.draft):active{cursor:grabbing}.chart-drawing-visible{fill:none;stroke:currentColor;stroke-width:1.25;vector-effect:non-scaling-stroke;pointer-events:none}.chart-drawing-hit{fill:none;stroke:transparent;stroke-width:12;vector-effect:non-scaling-stroke;pointer-events:stroke}.chart-drawing-rectangle-hit{fill:transparent;stroke:transparent;stroke-width:12;vector-effect:non-scaling-stroke;pointer-events:all}.chart-drawing-rectangle{fill:var(--chart-drawing-fill);stroke:currentColor;stroke-width:1.25;vector-effect:non-scaling-stroke;pointer-events:none}.chart-drawing-shape.selected,.chart-drawing-shape:focus-visible{color:var(--primary)}.chart-drawing-shape.selected .chart-drawing-visible,.chart-drawing-shape.selected .chart-drawing-rectangle,.chart-drawing-shape:focus-visible .chart-drawing-visible,.chart-drawing-shape:focus-visible .chart-drawing-rectangle{stroke-width:1.7}.chart-drawing-shape.draft{opacity:.78}.chart-drawing-shape.draft .chart-drawing-visible,.chart-drawing-shape.draft .chart-drawing-rectangle{stroke-dasharray:4 4}.chart-drawing-shape.locked:not(.draft){cursor:default}.chart-drawing-anchor{fill:var(--surface-raised);stroke:var(--primary);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:move}.chart-measure-line{stroke-dasharray:4 3}.chart-measure-label rect{fill:var(--surface-raised);stroke:var(--border);stroke-width:1}.chart-measure-label text,.chart-drawing-label{fill:currentColor;font-family:var(--font-mono);font-size:9px;font-variant-numeric:tabular-nums;pointer-events:none}.chart-fibonacci-line{opacity:.82}.chart-fibonacci-label{opacity:.88}.chart-loading-skeleton{position:absolute;inset:0;overflow:hidden;background:var(--surface)}.chart-loading-skeleton svg{width:100%;height:100%;display:block}.chart-loading-grid line{stroke:light-dark(#d0d3d7,#182431);stroke-width:1;vector-effect:non-scaling-stroke}.chart-loading-candles line{stroke:light-dark(#bcbfc2,#313a45);stroke-width:1;vector-effect:non-scaling-stroke}.chart-loading-candles rect{fill:light-dark(#caccce,#252c34)}.chart-loading-candles .soft{opacity:.62}.chart-loading-axis rect{fill:light-dark(#d2d4d7,#1b222b)}.chart-stage .empty-panel{min-height:100%}.trade-side-tabs{height:var(--trade-primary-row-height);display:flex;align-items:center;padding:0 14px;border-bottom:1px solid var(--border)}.trade-side-tabs h2{margin:0;color:light-dark(#2f3235,#dce3ea);font-size:14px}.trade-side-tabs>span{margin-left:auto;color:light-dark(#606367,#6f7d90);font-family:var(--font-mono);font-size:10px;font-weight:750;letter-spacing:.1em}.book-head,.table-head{display:grid;align-items:center;color:light-dark(#6d7075,#576477);font-size:11px}.book-head{height:28px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.9fr);column-gap:8px;padding:0 10px;text-align:right}.book-head span:first-child{text-align:left}.book-body{padding:3px 0 6px;font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums}.book-row{position:relative;width:100%;height:23px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.9fr);column-gap:8px;align-items:center;padding:0 10px;border:0;border-radius:0;background:transparent;color:light-dark(#54575a,#8794a5);font:inherit;text-align:right;cursor:pointer}.book-row:before{position:absolute;inset:0 auto 0 0;width:var(--book-depth-width, 0%);background:light-dark(#c43f551c,#f05b7221);content:"";pointer-events:none}.book-row.bid:before{background:light-dark(#057a631c,#18d6ad21)}.book-row>span{position:relative}.book-price{display:inline-flex;align-items:center;gap:5px;min-width:0}.book-own-order{flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:var(--warning)}.book-row span:first-child{text-align:left}.book-row.ask span:first-child{color:light-dark(#882534,#e86c7e)}.book-row.bid span:first-child{color:light-dark(#298472,#28cbaa)}.book-row:hover{background:light-dark(#f9fafa,#111923)}.book-row:focus-visible{z-index:1;outline:2px solid light-dark(#2d8d7b,#2bc7aa);outline-offset:-2px;background:light-dark(#eef6f4,#0d1d20)}.book-row:active{background:light-dark(#e6f0ee,#102529)}.book-row:disabled{cursor:default}.book-row:disabled:hover{background:transparent}.book-mid{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-block:1px solid light-dark(#d0d4d7,#182330);background:light-dark(#f2f5f7,#091017)}.book-mid strong{color:light-dark(#2c3034,#dfe7ee);font-size:13px}.book-mid span{color:light-dark(#65696d,#647286);font-size:10px}.empty-panel{min-height:180px;display:grid;align-content:center;justify-items:center;padding:28px;text-align:center}.empty-panel>span{width:28px;height:1px;margin-bottom:16px;background:light-dark(#b4b8bc,#354251)}.empty-panel strong{color:light-dark(#474a4d,#a9b3bf);font-size:12px}.empty-panel p{max-width:390px;margin:7px 0 0;color:light-dark(#686b70,#606e81);line-height:1.65}.chart-panel .empty-panel,.orderbook-panel .empty-panel{min-height:100%}.order-panel .empty-panel{min-height:340px}.order-panel{overflow-y:auto}.primary-action{min-height:38px;border:0;border-radius:6px;color:#06120f;background:var(--primary);font-weight:750;cursor:pointer}.primary-action:hover:not(:disabled){background:light-dark(#238a74,#31e3bd)}.primary-action:disabled{color:light-dark(#6d7075,#596676);background:light-dark(#d5d8db,#161f29);cursor:not-allowed}.order-panel>.primary-action{width:calc(100% - 28px);margin:0 14px}.primary-action.compact{min-height:34px;padding:0 16px}.trade-activity-grid{min-width:0;flex:1 0 270px;display:grid;grid-template-columns:minmax(0,1fr) clamp(200px,24vw,318px);gap:4px;margin:0 4px 4px}.trade-activity-panel,.trade-account-summary{min-width:0;min-height:0;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.trade-activity-panel{display:flex;flex-direction:column}.trade-activity-header{min-height:39px;display:flex;align-items:stretch;gap:12px;padding-inline:var(--financial-table-edge-inset);border-bottom:1px solid var(--border)}.trade-activity-tabs{min-width:0;flex:1;display:flex;align-items:stretch;gap:20px;overflow-x:auto}.trade-activity-tabs-root{min-width:0;flex:1}.trade-activity-tabs button{position:relative;display:inline-flex;align-items:center;gap:5px;padding:0;border:0;color:light-dark(#5c5e62,#798697);background:transparent;font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer}.trade-activity-tabs button:hover,.trade-activity-tabs button:focus-visible,.trade-activity-tabs button[aria-selected=true]{color:light-dark(#2c2f32,#e2e8ee)}.trade-activity-tabs button[aria-selected=true]:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--primary);content:""}.trade-activity-tabs button .tab-count{color:var(--muted);font-family:var(--font-mono);font-size:10px;font-weight:500;font-variant-numeric:tabular-nums;line-height:inherit}.trade-activity-tabs button[aria-selected=true] .tab-count{color:var(--muted)}.trade-activity-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto}.activity-account-filter{display:flex;align-items:center;gap:7px;color:light-dark(#686c70,#5f6d80);font-size:9px;font-weight:650;white-space:nowrap}.activity-account-filter .activity-account-select{width:174px;height:27px;min-width:0;padding:0 6px;border:1px solid light-dark(#c0c4c8,#283644);border-radius:4px;color:light-dark(#373a3d,#cbd4dd);background:light-dark(#f1f2f4,#0a1118);color-scheme:inherit;font-family:var(--font-mono);font-size:9px;cursor:pointer}.activity-account-filter .activity-account-select:hover,.activity-account-filter .activity-account-select[data-state=open]{border-color:light-dark(#767c83,#405064)}.activity-account-select-content{width:min(260px,calc(100vw - 16px));max-width:min(260px,calc(100vw - 16px));font-family:var(--font-mono)}.activity-account-select-content [data-slot=select-item]{min-height:29px;padding-block:4px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.activity-account-select-content [data-slot=select-item]>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trade-activity-header .batch-cancel-action{align-self:center;min-width:86px;min-height:26px;padding:0 9px;border:1px solid light-dark(#b7aaac,#65323b);border-radius:4px;color:light-dark(#802d3a,#e59aa6);background:light-dark(#f6f5f6,#1a1014);font-size:9px;font-weight:700;cursor:pointer}.trade-activity-header .batch-cancel-action:hover:not(:disabled){border-color:light-dark(#802d3c,#95505c);color:light-dark(#392e30,#ffc0ca)}.trade-activity-header .batch-cancel-action:disabled{border-color:light-dark(#c1c3c6,#2c3440);color:light-dark(#6f7277,#566171);background:light-dark(#f9f9f9,#111820);cursor:not-allowed}.trade-activity-content{min-width:0;min-height:0;flex:1;overflow:hidden}.trade-activity-content>.order-table-wrap{height:100%;max-height:none}.trade-activity-empty{height:100%;min-height:108px;display:grid;place-items:center;color:light-dark(#6c6f74,#596678);font-size:10px}.trade-account-summary{display:grid;grid-template-rows:39px minmax(0,1fr)}.trade-account-summary>header{display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--border)}.trade-account-summary>header>div{min-width:0;display:grid;gap:1px}.trade-account-summary>header span{color:light-dark(#6a6d72,#5d6a7c);font-size:9px;font-weight:700;letter-spacing:.08em}.trade-account-summary>header strong{overflow:hidden;color:light-dark(#313438,#d6dee6);font-family:var(--font-mono);font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.status-indicator{width:7px;height:7px;margin-left:auto;flex:0 0 auto;border-radius:50%;background:light-dark(#6d6f73,#5d6775)}.status-indicator[data-tone=healthy]{background:var(--primary);box-shadow:0 0 8px #19d3aa6b}.trade-account-summary .stat-list-shell{min-height:0;display:flex;flex-direction:column}.trade-account-summary .stat-list{margin:0;padding:9px 14px 12px}.trade-account-summary .stat-list>div{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid light-dark(#d4d7db,#16202a)}.trade-account-summary .stat-list>div:last-child{border-bottom:0}.trade-account-summary dt{color:light-dark(#64666a,#697689);font-size:10px}.trade-account-summary dd{max-width:190px;margin:0;overflow:hidden;color:light-dark(#373a3d,#cbd4dd);font-family:var(--font-mono);font-size:11px;font-weight:550;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.trade-account-summary dd[data-tone=gain]{color:var(--primary)}.trade-account-summary dd[data-tone=loss]{color:var(--danger)}.trade-account-summary .stat-list-footer{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:7px 14px;border-top:1px solid light-dark(#d4d7db,#16202a);color:light-dark(#6a6d72,#647286);font-family:var(--font-mono);font-size:9px;white-space:nowrap}.order-form{min-height:calc(100% - 39px);display:flex;flex-direction:column;gap:9px;padding:12px 14px 10px}.side-switch{height:34px;display:grid;grid-template-columns:1fr 1fr;border:1px solid light-dark(#c2c6ca,#263341);border-radius:5px;overflow:hidden}.side-switch button{border:0;color:light-dark(#5c5f62,#778598);background:light-dark(#f1f2f4,#0a1118);font-weight:700;font-size:12.5px;cursor:pointer}.side-switch button+button{border-left:1px solid light-dark(#c2c6ca,#263341)}.side-switch button:hover{color:light-dark(#323538,#d5dde5);background:light-dark(#f9fafa,#111a24)}.side-switch .buy[data-state=on]{color:#06120f;background:var(--primary)}.side-switch .sell[data-state=on]{color:#17070a;background:var(--danger)}.order-field{min-width:0;display:grid;gap:4px}.order-field>span{color:light-dark(#626569,#6c798c);font-size:10px;font-weight:650}.order-account-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:start;gap:8px}.order-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.order-field .trading-select-trigger{height:34px;padding:0 9px;border-radius:5px;background:var(--surface-control);font-size:12.5px;font-weight:600}.trading-select-content{font-size:12px}.order-readonly-control{width:100%;height:34px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 9px;border:1px solid light-dark(#d0d3d7,#202c38);border-radius:5px;color:light-dark(#4f5358,#aab5c1);background:light-dark(#eef1f3,#0c141c);font-size:12.5px;font-weight:600}.order-readonly-control small{overflow:hidden;color:var(--muted);font-size:9px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.order-readonly-control.is-empty{justify-content:flex-start;color:var(--muted);font-weight:500}.order-account-context{display:grid;gap:3px;margin:0;padding:1px 0}.order-account-context>div,.order-estimate-summary>div{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.order-account-context>div{min-height:17px}.order-account-context dt,.order-account-context dd,.order-estimate-summary dt,.order-estimate-summary dd{margin:0}.order-account-context dt{color:var(--muted);font-size:10px}.order-account-context dd{overflow:hidden;color:var(--text);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.order-account-context dd.positive,.order-estimate-summary dd.positive{color:var(--primary)}.order-account-context dd.negative,.order-estimate-summary dd.negative{color:var(--danger)}.order-field input,.order-field select{width:100%;height:34px;min-width:0;padding:0 9px;border:1px solid light-dark(#c0c4c8,#283644);border-radius:5px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#f2f5f7,#091017);font-size:12.5px}.order-field input:hover:not(:disabled),.order-field select:hover:not(:disabled){border-color:light-dark(#767c83,#405064)}.order-field input:disabled,.order-field select:disabled{color:light-dark(#6d7075,#596676);cursor:not-allowed}.order-field input[aria-invalid=true]{border-color:var(--danger)}.price-input{position:relative}.price-input input{padding-right:54px;font-family:var(--font-mono);font-variant-numeric:tabular-nums}.price-input>span{position:absolute;top:0;right:9px;height:34px;display:flex;align-items:center;color:light-dark(#666a6e,#627084);font-family:var(--font-mono);font-size:10px;pointer-events:none}.quantity-input{display:flex;align-items:center;min-width:0;border:1px solid var(--border);border-radius:5px;background:var(--surface-control)}.quantity-input:focus-within{border-color:var(--primary)}.quantity-input:has(input[aria-invalid=true]){border-color:var(--danger)}.order-field .quantity-input input{min-width:0;border:0;background:transparent;box-shadow:none;font-family:var(--font-mono);font-variant-numeric:tabular-nums}.order-field .quantity-input input:focus-visible{border:0;box-shadow:none}.quantity-input>span{flex-shrink:0;padding:0 9px 0 4px;color:var(--muted);font-family:var(--font-mono);font-size:11px}.leverage-control{display:grid;gap:4px}.leverage-control>span{color:light-dark(#626569,#6c798c);font-size:10px;font-weight:650}.leverage-control>button{min-width:0;display:flex;justify-content:center;align-items:center;height:34px;padding:0 9px;border:1px solid var(--border);border-radius:5px;color:var(--text-secondary);background:var(--surface-control);cursor:pointer}.leverage-control>button strong{color:var(--text);font-family:var(--font-mono);font-size:13px;font-variant-numeric:tabular-nums}.leverage-control>button:hover:not(:disabled){border-color:var(--primary)}.leverage-control>button:disabled{opacity:.6;cursor:not-allowed}.leverage-control>small,.quantity-slider-block>small{color:var(--muted);font-size:10px}.leverage-adjustment-form{display:grid;gap:10px;padding:28px 20px 22px}.leverage-adjustment-form input{font-family:var(--font-mono)}.leverage-adjustment-form input[aria-invalid=true]{border-color:var(--danger)}.leverage-slider-control{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:start;gap:14px}.leverage-slider-track{min-width:0}.leverage-slider-ticks{display:flex;justify-content:space-between;color:var(--muted);font:10px var(--font-mono)}.leverage-value-input{position:relative}.leverage-value-input input{width:100%;height:36px;padding:0 22px 0 9px;border:1px solid var(--border);border-radius:4px;background:var(--surface-control);color:var(--text);font-size:14px}.leverage-value-input>span{position:absolute;top:0;right:9px;height:36px;display:flex;align-items:center;color:var(--muted);pointer-events:none}.leverage-adjustment-form>small{color:var(--muted);font-size:11px}.quantity-slider-block{display:grid;gap:4px}.quantity-slider-control{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:10px}.quantity-slider-control output{display:flex;justify-content:space-between;align-items:center;min-height:28px;padding:0 7px;border:1px solid var(--border);border-radius:4px;color:var(--text);font-family:var(--font-mono);font-size:12px;font-variant-numeric:tabular-nums}.quantity-slider-control output span{color:var(--muted);font-size:10px}.percentage-slider{width:100%;min-width:0;height:28px;margin:0;padding:0;appearance:none;background:transparent;accent-color:var(--primary);cursor:pointer}.percentage-slider::-webkit-slider-runnable-track{height:5px;border-radius:3px;background:linear-gradient(to right,var(--primary) var(--range-percentage, 0%),var(--border) var(--range-percentage, 0%))}.percentage-slider::-moz-range-track{height:5px;border-radius:3px;background:linear-gradient(to right,var(--primary) var(--range-percentage, 0%),var(--border) var(--range-percentage, 0%))}.percentage-slider::-webkit-slider-thumb{width:14px;height:20px;margin-top:-7.5px;border:1px solid var(--primary);border-radius:5px;appearance:none;background:var(--primary)}.percentage-slider::-moz-range-thumb{width:14px;height:20px;border:1px solid var(--primary);border-radius:5px;background:var(--primary)}.percentage-slider:disabled{opacity:.45;cursor:not-allowed}.quantity-slider-ticks{display:flex;justify-content:space-between;margin-right:62px;padding:0 5px;color:var(--muted);font-family:var(--font-mono);font-size:9px}.order-options{min-height:24px;display:flex;align-items:center;justify-content:flex-start;gap:10px;color:light-dark(#5b5e61,#7a8798);font-size:10px}.order-options label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}.order-checkbox-option [data-slot=checkbox]{width:16px;height:16px;display:inline-grid;place-items:center;padding:0;border-color:light-dark(#8f969d,#506071);cursor:pointer}.order-checkbox-option [data-slot=checkbox][data-state=checked]{border-color:var(--primary);background:var(--primary);color:#06120f}.order-checkbox-option [data-slot=checkbox]:disabled{cursor:not-allowed}.order-options label:has([data-slot=checkbox]:disabled){color:light-dark(#72767a,#505c6b);cursor:not-allowed}.order-action-zone{display:grid;gap:8px;margin-top:auto;padding-top:8px}.order-estimate-summary{display:grid;gap:2px;margin:0;padding:6px 0 0;border-top:1px solid var(--border)}.order-estimate-summary>div{min-height:14px}.order-estimate-summary dt{color:var(--muted);font-size:10px}.order-estimate-summary dd{max-width:62%;overflow:hidden;color:var(--text-secondary);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums;text-align:right;text-overflow:ellipsis;white-space:nowrap}.order-gate{min-height:34px;display:flex;align-items:center;padding:6px 8px;border:1px solid light-dark(#bdc0c4,#2b3948);border-radius:4px;color:light-dark(#56595d,#8290a1);background:light-dark(#f1f2f4,#0a1118);line-height:1.45}.order-gate.available{border-color:light-dark(#c0cbc8,#21473e);color:light-dark(#4f5c59,#7bb7a9);background:light-dark(#f1f3f3,#0a1715)}.order-gate.blocked{border-color:light-dark(#beb5b8,#52303a);color:light-dark(#802d3b,#d48e9a);background:light-dark(#f6f5f5,#1a0f13)}.primary-action.order-submit{width:100%;margin:0;font-size:12.5px}.primary-action.order-submit.sell{color:#17070a;background:var(--danger)}.primary-action.order-submit.sell:hover:not(:disabled){background:light-dark(#95182b,#fa7488)}.primary-action.order-submit:disabled{color:light-dark(#6d7075,#596676);background:light-dark(#d5d8db,#161f29);box-shadow:none}.order-result{min-height:34px;display:flex;align-items:center;padding:7px 12px;border-bottom:1px solid light-dark(#c5cfcd,#1d4138);color:light-dark(#4d5856,#84b8ac);background:light-dark(#f0f3f2,#0a1614)}.batch-cancel-result{min-height:32px;display:grid;gap:6px;padding:6px 12px;border-bottom:1px solid light-dark(#c5c8cb,#26303c);color:light-dark(#575a5e,#7f8da0);background:light-dark(#f2f4f5,#0b121a);font-family:var(--font-mono);font-size:9px}.batch-cancel-result>div{display:flex;flex-wrap:wrap;gap:6px 14px}.batch-cancel-result>strong{color:light-dark(#802d3a,#e59aa6);font-family:var(--font-sans);font-weight:600;line-height:1.45}.order-table.account-order-table{--activity-order-columns: minmax(150px, 205px) minmax(185px, 225px) minmax(55px, 75px) minmax(140px, 180px) minmax(90px, 115px) minmax(95px, 115px) minmax(95px, 130px) minmax(80px, 95px);min-width:1080px}.order-table.account-order-table tr:not(.activity-order-detail-row)>th,.order-table.account-order-table tr:not(.activity-order-detail-row)>td{justify-content:flex-start;text-align:left}.order-table.position-table{min-width:1060px;table-layout:fixed;font-family:var(--font-sans);font-variant-numeric:tabular-nums}.position-col-market{width:210px}.position-col-venue{width:200px}.position-col-quantity,.position-col-value,.position-col-entry,.position-col-mark,.position-col-liquidation,.position-col-pnl{width:auto}.position-col-actions{width:100px}.trade-activity-content .position-table th{height:26px;padding-inline:var(--financial-table-cell-inset);font-size:11px;letter-spacing:.01em}.trade-activity-content .position-table td{height:34px;padding:1px var(--financial-table-cell-inset);font-size:11px}.trade-activity-content .position-table th:first-child,.trade-activity-content .position-table td:first-child{padding-left:var(--financial-table-edge-inset)}.trade-activity-content .position-table th:last-child,.trade-activity-content .position-table td:last-child{padding-right:var(--financial-table-edge-inset)}.trade-activity-content .position-table td>strong,.trade-activity-content .position-table .position-market-line,.trade-activity-content .position-table .activity-identity>strong{font-size:11px;font-weight:580;line-height:1.1;letter-spacing:-.015em}.trade-activity-content .position-table .numeric-cell>strong{font-family:var(--font-mono);font-weight:520;letter-spacing:-.025em}.position-row-interactive{cursor:pointer}.position-market-button{display:inline-flex;padding:0;border:0;color:inherit;background:transparent;cursor:pointer}.position-market-button:focus-visible{border-radius:2px;outline:2px solid var(--primary);outline-offset:2px}.position-action-cell,.position-action-heading{text-align:left}.position-action-heading-label{display:block;width:62px;margin-left:auto;text-align:left}.position-action-group{display:flex;width:62px;align-items:center;justify-content:flex-start;gap:18px;margin-left:auto;white-space:nowrap}.position-action-button{font-size:11px}.position-action-button:disabled{color:var(--text-muted);cursor:not-allowed}.position-action-button:disabled:hover{text-decoration:none}.order-market-warning{margin:0;padding:9px 11px;border:1px solid color-mix(in srgb,var(--danger) 35%,var(--border));border-radius:5px;color:var(--text-muted);background:color-mix(in srgb,var(--danger) 5%,var(--surface-control));font-size:11px;line-height:1.45}.position-market-button .position-market-line{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap}.trade-activity-content .activity-identity{min-width:0;display:inline-flex;align-items:center;gap:6px;vertical-align:middle;white-space:nowrap}.trade-activity-content .activity-identity>.market-asset-icon.compact,.trade-activity-content .activity-identity>.market-venue-icon.compact{width:18px;height:18px;font-size:7px}.trade-activity-content .activity-identity>.market-asset-icon.compact[data-asset=BTC]{font-size:10px}.trade-activity-content .activity-identity>.market-venue-icon.compact{border-radius:4px}.trade-activity-content .activity-identity>.market-venue-icon.compact img{width:12px;height:12px}.trade-activity-content .activity-identity>.market-venue-icon.lighter.compact img,.trade-activity-content .activity-identity>.market-venue-icon.rhc.compact img{width:7px;height:13px}.trade-activity-content .activity-identity>.activity-order-market{min-width:0}.position-leverage-inline{color:light-dark(#5e6064,#748194);font-size:9px;font-weight:500}.order-table.history-order-table{--activity-order-columns: minmax(100px, 125px) minmax(150px, 200px) minmax(185px, 225px) minmax(100px, 125px) minmax(130px, 170px) minmax(90px, 120px) minmax(90px, 115px) minmax(80px, 95px);min-width:1080px}.activity-order-table,.activity-order-table thead,.activity-order-table tbody{display:block}.activity-order-table thead{position:sticky;z-index:2;top:0;background:var(--surface)}.activity-order-table tr:not(.activity-order-detail-row){display:grid;grid-template-columns:var(--activity-order-columns);justify-content:space-between;column-gap:var(--financial-table-column-gap);width:100%}.activity-order-table tr:not(.activity-order-detail-row)>th,.activity-order-table tr:not(.activity-order-detail-row)>td{min-width:0;display:flex;align-items:center;padding-inline:var(--financial-table-cell-inset)}.activity-order-table tr:not(.activity-order-detail-row)>:first-child{padding-left:var(--financial-table-edge-inset)}.activity-order-table tr:not(.activity-order-detail-row)>:last-child{justify-content:flex-end;padding-right:var(--financial-table-edge-inset)}.activity-order-table .activity-order-main-row{border-bottom:1px solid light-dark(#d5d8dc,#151f29)}.activity-order-table thead tr{border-bottom:1px solid var(--border)}.activity-order-table thead th{border-bottom:0}.activity-order-table .activity-order-main-row>td{border-bottom:0}.activity-order-table .activity-order-detail-row,.activity-order-table .activity-order-detail-row>td{display:block;width:100%}.order-table .activity-order-main-row td{height:40px;padding:5px var(--financial-table-cell-inset);overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.activity-order-table th:first-child,.activity-order-table .activity-order-main-row td:first-child{padding-left:var(--financial-table-edge-inset)}.activity-order-table th:last-child,.activity-order-table .activity-order-main-row td:last-child{padding-right:var(--financial-table-edge-inset);text-align:right}.order-table .activity-order-main-row.is-expanded{background:light-dark(#f4f6f7,#121c25)}.order-table .activity-order-main-row td>time,.order-table .activity-order-main-row td>strong{font-size:11px}.order-table .activity-order-main-row .state-chip,.order-table .activity-order-main-row .row-action{font-size:11px}.activity-order-market,.activity-order-inline{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-order-venue-text{min-width:0;overflow:hidden;text-overflow:ellipsis}.activity-order-muted{color:light-dark(#777d83,#718093)}.activity-order-side{font-weight:700}.activity-order-number{color:light-dark(#383b3e,#c7d0da);font-family:var(--font-mono);font-variant-numeric:tabular-nums}.activity-order-actions{white-space:nowrap}.activity-order-detail-toggle{min-height:24px;display:inline-flex;align-items:center;padding:3px 0;border:0;color:var(--primary);background:transparent;font:inherit;font-weight:650;cursor:pointer}.activity-order-detail-toggle:hover{text-decoration:underline}.activity-order-detail-toggle+.activity-order-detail-toggle{margin-left:12px}.activity-order-cancel-action{color:var(--danger)}.activity-order-unavailable-action{display:inline-flex;min-height:24px;align-items:center;margin-left:12px;color:var(--muted);font-weight:600;cursor:help}.activity-order-detail-toggle:disabled{color:var(--muted);cursor:wait;text-decoration:none}.activity-order-detail-toggle:focus-visible,.activity-order-detail-grid .copy-order-id:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.activity-order-actions .row-action{margin-left:12px}.trade-history-pagination{min-height:32px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:4px var(--financial-table-edge-inset) 3px;border-top:1px solid var(--border);color:var(--muted);background:var(--surface);font-family:var(--font-mono);font-size:10px;line-height:24px;font-variant-numeric:tabular-nums}.trade-history-pagination>span{min-height:24px;display:inline-flex;align-items:center}.trade-history-pagination .trade-history-load-more{min-width:0;height:24px;padding:0;border:0;border-radius:2px;color:var(--primary);background:transparent;font-family:var(--font-sans);font-size:10px;font-weight:650;line-height:24px;box-shadow:none}.trade-history-pagination .trade-history-load-more:hover:not(:disabled){color:var(--primary);background:transparent;text-decoration:underline;text-underline-offset:2px}.trade-history-pagination .trade-history-load-more:focus-visible{outline:2px solid var(--primary);outline-offset:2px;box-shadow:none}.trade-history-pagination .trade-history-load-more:disabled{color:var(--muted);background:transparent;cursor:wait}.activity-order-table .activity-order-detail-row td{height:auto;padding:12px var(--financial-table-edge-inset) 14px;background:light-dark(#f4f6f7,#121c25);border-bottom:1px solid var(--border)}.activity-order-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;margin:0}.activity-order-detail-grid>div{min-width:0}.activity-order-detail-grid dt{margin-bottom:4px;color:light-dark(#777d83,#718093);font-size:9px}.activity-order-detail-grid dd{margin:0;overflow-wrap:anywhere;color:light-dark(#383b3e,#c7d0da);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums}.activity-order-id-field,.activity-order-error-field{grid-column:span 2}.activity-order-detail-grid .copy-order-id{display:inline;margin:0 0 0 8px;color:var(--primary);font-family:inherit;font-size:10px}.batch-exclusion-reason{display:block;max-width:240px;margin-top:4px;color:light-dark(#616367,#6f7d8f);line-height:1.4;white-space:normal}.order-table-wrap{width:100%;min-width:0;max-height:370px;overflow:auto;scrollbar-gutter:stable}.order-table-wrap:focus-visible,.strategy-table-scroll:focus-visible,.portfolio-table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.order-table{width:100%;min-width:980px;border-collapse:collapse;color:light-dark(#535659,#8996a7);text-align:left}.order-table th{position:sticky;z-index:1;top:0;height:32px;padding:0 10px;border-bottom:1px solid var(--border);color:light-dark(#6c6f75,#586579);background:var(--surface);font-size:11px;font-weight:650}.order-table td{height:52px;padding:7px 10px;border-bottom:1px solid light-dark(#d5d8dc,#151f29);vertical-align:middle}.order-table tr:last-child td{border-bottom:0}.order-table tbody tr:hover{background:light-dark(#f7f8f9,#0f1720)}.order-table tbody tr.position-row-long td:first-child{box-shadow:inset 3px 0 0 var(--primary);background:linear-gradient(90deg,color-mix(in srgb,var(--primary) 13%,transparent),color-mix(in srgb,var(--primary) 4%,transparent) 42%,transparent 100%)}.order-table tbody tr.position-row-short td:first-child{box-shadow:inset 3px 0 0 var(--danger);background:linear-gradient(90deg,color-mix(in srgb,var(--danger) 15%,transparent),color-mix(in srgb,var(--danger) 5%,transparent) 42%,transparent 100%)}.order-table td>strong,.order-table td>time,.order-table td>small{display:block}.copy-order-id{display:block;max-width:180px;margin-top:4px;padding:0;overflow:hidden;border:0;color:light-dark(#65686d,#657386);background:transparent;font-family:var(--font-mono);font-size:8px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.copy-order-id:hover{color:var(--primary)}.order-table td>strong,.order-table td>time{color:light-dark(#383b3e,#c7d0da);font-size:10px}.order-table td>small{max-width:180px;margin-top:4px;overflow:hidden;color:light-dark(#696c71,#5f6c7e);font-family:var(--font-mono);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.order-table .buy{color:var(--primary)}.order-table .sell{color:var(--danger)}.state-chip.waiting{border-color:light-dark(#c3beb5,#5b4822);color:var(--warning);background:light-dark(#f7f6f5,#1d180d)}.state-chip.error{border-color:light-dark(#bfb3b5,#592b35);color:var(--danger);background:light-dark(#f8f7f7,#1d1014)}.order-action-state{color:light-dark(#72767b,#4f5b6b);font-size:9px}.dialog-layer{position:fixed;z-index:var(--z-dialog);inset:0}.dialog-backdrop{position:fixed;z-index:var(--z-backdrop);inset:0;background:#000000ad}.confirm-dialog-layer .dialog-backdrop{z-index:calc(var(--z-dialog) + 10)}.confirm-dialog-layer .confirm-dialog{z-index:calc(var(--z-dialog) + 11)}.modal-dialog{position:fixed;z-index:var(--z-dialog);top:50%;left:50%;width:min(1180px,calc(100vw - 64px));height:min(820px,calc(100dvh - 64px));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);transform:translate(-50%,-50%);overflow:hidden;border:1px solid light-dark(#b3b7bb,#344354);border-radius:10px;background:var(--surface-raised);box-shadow:0 28px 90px #000000a6}.modal-dialog-header{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--border);background:light-dark(#f5f6f7,#0d141d)}.modal-dialog-heading{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 10px}.modal-dialog-heading>p{grid-column:1 / -1;margin:0;color:var(--primary);font-family:var(--font-mono);font-size:8px;font-weight:750;letter-spacing:.12em}.modal-dialog-heading>h2{margin:0;overflow:hidden;color:light-dark(#292c30,#e8edf3);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.modal-dialog-heading>div{min-width:0;display:flex;align-items:center;gap:9px;overflow:hidden;color:light-dark(#5e6164,#738094);font-size:9px;white-space:nowrap}.modal-dialog-heading>div>span:not(.state-chip),.modal-dialog-heading>div>time{overflow:hidden;text-overflow:ellipsis}.modal-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.modal-dialog-close{width:34px;height:34px;display:inline-grid;flex:0 0 auto;place-items:center;padding:0;border:1px solid transparent;border-radius:5px;color:light-dark(#5d5f63,#778596);background:transparent;cursor:pointer}.modal-dialog-close:hover{border-color:light-dark(#b3b7bb,#344354);color:light-dark(#2a2e32,#e4ebf2);background:light-dark(#f9fafa,#121b25)}.modal-dialog-close svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.5}.modal-dialog-body{min-height:0;overflow:hidden}.confirm-dialog{position:fixed;z-index:var(--z-dialog);top:50%;left:50%;width:min(470px,calc(100vw - 28px));max-height:calc(100dvh - 28px);display:grid;transform:translate(-50%,-50%);overflow:auto;border:1px solid light-dark(#b3b7bb,#344354);border-radius:10px;background:var(--surface-raised);box-shadow:0 28px 90px #000000a6}.confirm-dialog>header{padding:18px 20px 15px;border-bottom:1px solid var(--border)}.confirm-dialog>header p{margin:0 0 7px;color:var(--primary);font-family:var(--font-mono);font-size:8px;font-weight:750;letter-spacing:.12em}.confirm-dialog>header h2{margin:0;color:light-dark(#292c30,#e8edf3);font-size:16px}.confirm-dialog>header span{display:block;margin-top:8px;color:light-dark(#56585c,#8491a2);line-height:1.55}.confirm-dialog>footer{min-height:62px;display:flex;justify-content:flex-end;gap:9px;padding:12px 20px;border-top:1px solid var(--border);background:light-dark(#f5f6f7,#0d141d)}.confirm-dialog>footer button{min-width:108px;min-height:36px;padding:0 14px}.confirm-dialog-leverage>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px}.confirm-dialog-leverage>header .modal-dialog-close{flex-shrink:0;width:30px;height:30px}.confirm-dialog-leverage>header .modal-dialog-close:disabled{opacity:.6;cursor:not-allowed}.confirm-dialog-leverage .leverage-slider{--primary: var(--warning)}.leverage-risk-copy{margin:0;padding:16px 20px;border-top:1px solid var(--border);color:var(--text-secondary);font-size:13px;line-height:1.6}.confirm-dialog-leverage>footer .leverage-confirm-action{width:100%}.secondary-action,.danger-action{border:1px solid light-dark(#b2b6ba,#354355);border-radius:6px;color:light-dark(#404346,#b7c1cc);background:light-dark(#f9fafa,#111923);font-weight:700;cursor:pointer}.secondary-action:hover:not(:disabled){border-color:light-dark(#6b7075,#57687b);color:light-dark(#272a2d,#eef2f6)}.danger-action{border-color:transparent;color:light-dark(#f2eff0,#18070a);background:var(--danger)}.danger-action:hover:not(:disabled){background:light-dark(#95182b,#fa7488)}.secondary-action:disabled,.danger-action:disabled{opacity:.5;cursor:not-allowed}.order-confirmation-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;padding:5px 20px}.order-confirmation-grid>div{min-width:0;padding:11px 0;border-bottom:1px solid light-dark(#cccfd3,#1d2835)}.order-confirmation-grid>div:nth-child(odd){padding-right:14px}.order-confirmation-grid dt{color:light-dark(#696d71,#5e6c7e);font-size:9px}.order-confirmation-grid dd{margin:5px 0 0;overflow-wrap:anywhere;color:light-dark(#383b3e,#c8d1db);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums}.dialog-error{margin:10px 20px;padding:9px 10px;border:1px solid light-dark(#c0b4b7,#572a34);border-radius:5px;color:light-dark(#802d3c,#e9a5b1);background:light-dark(#f8f7f7,#1d1014);line-height:1.5}.position-adjustment-form{padding:0 20px 16px}.adjustment-context{display:grid;gap:5px;padding:14px 0 12px;border-bottom:1px solid light-dark(#cccfd3,#1d2835)}.adjustment-context strong{color:light-dark(#36393c,#cbd4de);font-size:11px}.adjustment-context span{color:light-dark(#616367,#6f7d8f);font-size:10px;line-height:1.5}.position-adjustment-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px;padding-top:14px}.position-adjustment-grid .form-field{min-width:0;display:grid;align-content:start;gap:7px;color:light-dark(#5c5f63,#778497);font-size:10px;font-weight:650}.position-adjustment-grid input{width:100%;height:38px;padding:0 11px;border:1px solid light-dark(#c0c4c8,#283644);border-radius:5px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#f1f2f4,#0a1118);font-family:var(--font-mono);font-variant-numeric:tabular-nums}.position-adjustment-grid input:hover{border-color:light-dark(#abb0b4,#3b4b5d)}.position-adjustment-grid input[aria-invalid=true]{border-color:light-dark(#897175,#71323e)}.position-adjustment-grid .field-error{color:light-dark(#8a2431,#ef8e9b);font-size:9px;font-weight:500;line-height:1.45}.page{min-height:calc(100vh - var(--topbar-height) - var(--statusbar-height));padding:0 18px 30px}.pairs-page{display:flex;flex-direction:column}.page-heading{height:90px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border)}.page-heading>div{display:grid;gap:7px}.page-heading h1{margin:0;color:var(--text);font-size:24px;letter-spacing:-.02em}.strategy-panel,.portfolio-table{min-width:0;min-height:410px;margin-top:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.pairs-page>.strategy-panel{flex:1 0 auto}.strategy-panel .empty-panel,.portfolio-table .empty-panel{min-height:330px}.strategy-create-dialog{width:min(680px,calc(100vw - 40px));height:auto;max-height:min(900px,calc(100dvh - 40px))}.strategy-create-dialog .modal-dialog-header{min-height:62px;padding-inline:24px 18px;border-bottom-color:light-dark(#dce3e8,#1d2b38);background:light-dark(#ffffff,#101923)}.strategy-create-dialog .modal-dialog-heading>h2{font-size:17px;font-weight:700;letter-spacing:-.02em}.strategy-create-dialog .modal-dialog-body{overflow-x:hidden;overflow-y:auto;background:light-dark(#edf2f5,#0a1119);scrollbar-gutter:stable}.strategy-create{margin:0;overflow:visible;border:0;border-radius:0;background:transparent}.strategy-pair-route{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);align-items:stretch;gap:0;margin:14px 24px 9px;padding:14px 16px 15px;border:1px solid light-dark(#dce4e8,#233443);border-radius:10px;background:light-dark(#ffffff,#111c27)}.strategy-pair-route>header{grid-column:1 / -1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-right:7px;margin-bottom:11px;padding-bottom:10px;border-bottom:1px solid light-dark(#e1e7eb,#23313f)}.strategy-pair-venues{display:inline-flex;align-items:center;gap:12px}.strategy-pair-venues>span{width:18px;height:18px;display:grid;place-items:center;color:var(--text-muted);font-family:var(--font-mono);font-size:10px}.strategy-pair-venues .market-venue-icon.compact{width:18px;height:18px;border-radius:4px}.strategy-pair-venues .market-venue-icon.compact img{width:11px;height:11px}.strategy-pair-venues .market-venue-icon.lighter.compact img,.strategy-pair-venues .market-venue-icon.rhc.compact img{width:7px;height:12px}.strategy-leg-card{min-width:0;padding:0 7px 0 0}.strategy-side-chip{width:fit-content;min-height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;border:1px solid light-dark(#b5b9bd,#344150);border-radius:4px;font-size:9px;font-weight:750;white-space:nowrap}.strategy-side-chip.long{border-color:light-dark(#b4c2bf,#245b4e);color:var(--primary);background:light-dark(#f5f7f7,#0b201b)}.strategy-side-chip.short{border-color:light-dark(#b8abae,#63313b);color:light-dark(#8d2131,#f07b8d);background:light-dark(#faf9fa,#221117)}.strategy-leg-market-choice{min-width:0;display:flex;align-items:center;gap:7px}.strategy-leg-leverage{width:62px;flex:0 0 auto}.strategy-leg-leverage-trigger,.strategy-leg-leverage-editor{width:100%;height:42px;display:grid;align-content:center;justify-items:center;border:1px solid light-dark(#bfc3c7,#283746);border-radius:8px;color:var(--text);background:light-dark(#eff0f2,#080f16)}.strategy-leg-leverage-trigger{cursor:pointer}.strategy-leg-leverage-trigger:hover{border-color:light-dark(#757c83,#405165);background:light-dark(#f7f8f9,#101922)}.strategy-leg-leverage-trigger:focus-visible,.strategy-leg-leverage-editor:focus-within{outline:2px solid var(--primary);outline-offset:1px}.strategy-leg-leverage-trigger strong,.strategy-leg-leverage-editor>div{color:var(--text);font-family:var(--font-mono);font-size:13px;font-weight:650;line-height:15px}.strategy-leg-leverage-editor>div{display:flex;align-items:center}.strategy-leg-leverage-editor>div>span{color:var(--text-secondary)}.strategy-form-grid .form-field>span{color:light-dark(#5b5e62,#78869a);font-size:10px;font-weight:650}.strategy-leg-card input,.strategy-leg-card select,.strategy-form-grid input,.strategy-form-grid select,.strategy-model-field select{width:100%;height:38px;padding:0 10px;border:1px solid light-dark(#bfc3c7,#283746);border-radius:5px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#eff0f2,#080f16)}.strategy-create-dialog .strategy-form-grid input,.strategy-create-dialog .strategy-form-grid select,.strategy-create-dialog .strategy-model-field select{font-size:11px;font-weight:400}.strategy-leg-card .market-picker-trigger{width:auto;height:42px;min-width:0;max-width:none;flex:1 1 auto;justify-content:flex-start;gap:9px;padding:0 10px;border-radius:8px;background:light-dark(#f5f8fa,#0d1720)}.strategy-leg-card .market-picker-trigger>.market-asset-icon.compact{width:28px;height:28px;font-size:10px}.strategy-leg-direction{flex:0 0 auto;font-size:10px;font-weight:750}.strategy-leg-card .market-trigger-direction.long,.strategy-leg-direction.long{color:var(--primary)}.strategy-leg-card .market-trigger-direction.short,.strategy-leg-direction.short{color:light-dark(#8d2131,#f07b8d)}.strategy-locked-market{height:42px;min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid light-dark(#bfc3c7,#283746);border-radius:8px;background:light-dark(#f3f4f6,#0c131b)}.strategy-locked-market input{min-width:0;height:100%;padding:0;border:0;background:transparent}.strategy-leg-card .strategy-leg-leverage-editor input{width:48px;height:16px;padding:0;border:0;outline:0;color:var(--text);background:transparent;font-family:var(--font-mono);font-size:11px;text-align:right}.strategy-leg-leverage-editor input::placeholder{color:var(--text-muted)}.strategy-leg-card .market-trigger-identity{min-width:0;flex:1 1 auto;display:flex;align-items:baseline}.strategy-leg-card .market-trigger-contract{min-width:0;flex:0 1 auto;overflow:hidden}.strategy-leg-card .market-trigger-contract strong{min-width:0;max-width:100%;flex:0 1 auto;font-size:14px;line-height:18px}.strategy-leg-card .market-trigger-chevron{width:16px;height:16px;margin-left:0}.strategy-leg-card input:hover,.strategy-leg-card select:hover,.strategy-form-grid input:hover,.strategy-form-grid select:hover,.strategy-model-field select:hover{border-color:light-dark(#757c83,#405165)}.strategy-leg-card input[readonly],.strategy-form-grid input[readonly]{color:light-dark(#5c5f62,#778598);background:light-dark(#f3f4f6,#0c131b);cursor:default}.strategy-leg-card .strategy-locked-market input[readonly]{width:100%;height:100%;padding:0;border:0;background:transparent}.strategy-pair-axis{display:grid;place-items:center;align-items:center;justify-content:center;padding:0 7px}.strategy-market-swap{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:6px;color:light-dark(#515457,#8c9aaa);background:transparent;cursor:pointer}.strategy-market-swap:hover:not(:disabled){border-color:light-dark(#a4cbc1,#347765);color:var(--primary);background:light-dark(#f3f6f5,#0b1c1a)}.strategy-market-swap:disabled{opacity:.42;cursor:default}.strategy-market-swap svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.4}.strategy-workbench-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}.strategy-config-stack{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:9px;padding:0 24px 14px}.strategy-config-section{min-width:0;padding:14px 16px 15px;border:1px solid light-dark(#dce4e8,#233443);border-radius:10px;background:light-dark(#ffffff,#111c27)}.strategy-config-section+.strategy-config-section{border-top:1px solid light-dark(#dce4e8,#233443)}.strategy-config-section>header{margin-bottom:11px}.strategy-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.strategy-rule-heading-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.strategy-config-section>.strategy-rule-heading{margin-bottom:9px}.strategy-pair-route h2,.strategy-config-section h2{margin:0;color:light-dark(#2e3135,#dce4ec);font-size:15px;font-weight:700}.strategy-model-field{width:min(180px,32vw);display:flex;align-items:center}.strategy-model-field .select-control-trigger{height:34px}.strategy-form-grid{display:grid;gap:11px}.strategy-form-grid.trigger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-threshold-fields{margin-top:11px}.strategy-form-grid .form-field{display:grid;align-content:start;gap:6px}.strategy-form-grid .form-field>input{width:min(100%,180px);font-family:var(--font-mono);font-variant-numeric:tabular-nums}.strategy-execution-layout{max-width:660px;display:grid;gap:10px}.strategy-execution-layout>.strategy-maker-leg{max-width:320px}.strategy-execution-data{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}.strategy-order-range-fields{max-width:660px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px}.strategy-order-range-fields .form-field>input{width:100%;height:34px;font-family:var(--font-mono);font-variant-numeric:tabular-nums}.strategy-order-range-fields .form-field>input[aria-invalid=true]{border-color:var(--danger)}.strategy-order-range-error{margin:6px 0 0;color:var(--danger);font-size:10px}.strategy-threshold-lane{min-height:48px;display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:9px;margin-top:12px;padding:0 12px;border:1px solid light-dark(#cbcfd2,#1d2b37);border-radius:6px;background:var(--surface-soft)}.strategy-threshold-lane span{display:grid;gap:2px;color:light-dark(#383c3f,#c6d0da);font-family:var(--font-mono);font-size:10px}.strategy-threshold-lane span:last-child{color:var(--primary);text-align:right}.strategy-threshold-lane small{color:light-dark(#6c6f74,#596779);font-family:inherit;font-size:8px}.strategy-threshold-lane i{height:1px;background:light-dark(#cad0ce,#22352f)}.strategy-threshold-lane strong{color:light-dark(#5f6266,#718092);font-size:8px;font-weight:650;white-space:nowrap}.strategy-threshold-lane.low span:first-child{color:var(--primary)}.strategy-threshold-lane.low span:last-child{color:light-dark(#383c3f,#c6d0da)}.strategy-price-parameters{min-width:0}.strategy-price-parameters>.strategy-form-grid.trigger-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.strategy-price-parameters .form-field>input{width:100%}.spread-grid-editor{display:grid;max-width:590px;margin-top:9px;border-top:1px solid light-dark(#cfd6dc,#22313e);background:transparent}.spread-grid-generator{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;gap:7px 8px;padding:10px 0;border-bottom:1px solid light-dark(#cdd1d4,#1c2933)}.spread-grid-generator.is-action-in-heading{grid-template-columns:repeat(4,minmax(0,1fr))}.spread-grid-generator label{min-width:0;display:grid;gap:4px}.spread-grid-generator label>span{overflow:hidden;color:light-dark(#65696d,#647286);font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.spread-grid-generator input,.spread-grid-generator select{width:100%;height:34px;min-width:0;padding:0 8px;border:1px solid light-dark(#bfc3c7,#283746);border-radius:4px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#ffffff,#0c151e);font-family:var(--font-mono);font-size:11px}.spread-grid-generator input[aria-invalid=true]{border-color:light-dark(#c43f55,#f05b72)}.spread-grid-generator-action{display:flex;align-items:center;justify-content:flex-end;min-width:0}.spread-grid-generator-feedback{grid-column:1 / -1;min-width:0;margin:0;font-size:10px;line-height:1.4}.spread-grid-generator-feedback.is-error{color:light-dark(#a52e41,#f08994)}.spread-grid-generator-feedback.is-success{color:var(--primary)}.spread-grid-generate{height:34px;padding:0 10px;border:1px solid light-dark(#aebdba,#276457);border-radius:4px;color:var(--primary);background:light-dark(#f5f7f7,#0b201b);font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer;flex:none}.spread-grid-generate:disabled,.spread-grid-inline-action:disabled,.spread-grid-action-trigger:disabled,.spread-grid-row-actions button:disabled{opacity:.36;cursor:default}.spread-grid-table-wrap{max-height:265px;overflow:auto}.spread-grid-table{width:100%;min-width:650px;border-collapse:collapse;table-layout:fixed}.spread-grid-table th:first-child{width:6%}.spread-grid-table th:nth-child(2),.spread-grid-table th:nth-child(3){width:22%}.spread-grid-table th:nth-child(4){width:21%}.spread-grid-table th:nth-child(5){width:13%}.spread-grid-table th:last-child{width:16%}.spread-grid-table th,.spread-grid-table td{height:34px;padding:3px 7px;border-bottom:1px solid light-dark(#cfd3d7,#192631);color:light-dark(#525458,#8c99a9);font-size:10px;text-align:left}.spread-grid-table thead th{position:sticky;top:0;z-index:1;height:27px;color:light-dark(#696c71,#5f6d7e);background:light-dark(#edf2f4,#111c27);font-weight:650}.spread-grid-table th:first-child{padding-left:11px;font-family:var(--font-mono)}.spread-grid-table tbody tr:last-child>*{border-bottom:0}.spread-grid-table input{width:100%;height:25px;padding:0 7px;border:1px solid transparent;border-radius:3px;color:light-dark(#373a3d,#c9d3dd);background:light-dark(#f4f7f8,#111b25);font-family:var(--font-mono);font-size:11px}.spread-grid-table input:hover:not(:disabled),.spread-grid-table input:focus-visible{border-color:light-dark(#777e85,#3d4e60)}.spread-grid-table code{color:var(--primary);font-family:var(--font-mono);font-size:10px}.spread-grid-inline-actions{display:inline-flex;align-items:center;gap:3px}.spread-grid-inline-action{width:28px;height:28px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:5px;color:light-dark(#5c646b,#8291a1);background:transparent;cursor:pointer}.spread-grid-inline-action.is-add{color:var(--primary)}.spread-grid-inline-action:hover:not(:disabled),.spread-grid-action-trigger[aria-expanded=true]{color:light-dark(#225d52,#47cbb5);background:light-dark(#e5f0ec,#102a28)}.spread-grid-inline-action.is-delete:hover:not(:disabled){color:light-dark(#9d4d54,#dc8991);background:light-dark(#f4e7e8,#3c252c)}.spread-grid-action-row td{height:32px;padding:2px 9px 5px 42px;background:light-dark(#edf4f1,#0b211e)}.spread-grid-row-actions{display:flex;align-items:center;gap:5px}.spread-grid-row-actions button{min-height:24px;padding:0 8px;border:0;border-radius:3px;color:light-dark(#465c55,#a3c8bc);background:transparent;font-size:10px;font-weight:600;white-space:nowrap;cursor:pointer}.spread-grid-row-actions button:hover:not(:disabled){background:light-dark(#d9e9e3,#1a3a31)}.spread-grid-inline-action:focus-visible,.spread-grid-action-trigger:focus-visible,.spread-grid-row-actions button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}.spread-grid-editor>footer{min-height:30px;display:flex;align-items:center;gap:12px;padding:0 4px;border-top:1px solid light-dark(#cdd1d4,#1c2933);color:light-dark(#65686d,#657386);font-size:9px}.spread-grid-editor>footer strong{color:light-dark(#3f4245,#b9c4ce);font-family:var(--font-mono);font-size:10px}.strategy-permission-block{min-width:0;max-width:660px;margin:9px 0 0;padding:9px 0 0;border:0;border-top:1px solid var(--border-subtle)}.strategy-permission-block legend{float:left;width:100%;padding:0 0 7px;color:light-dark(#5d6064,#748296);font-size:10px;font-weight:650}.strategy-permission-options{clear:both}.strategy-form-error{margin:0 16px 12px;padding:9px 11px;border:1px solid rgb(239 90 104 / 32%);border-radius:5px;color:light-dark(#8b222e,#f08994);background:#ef5a6812;font-size:11px}.strategy-create-actions{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;border-top:1px solid var(--border);background:light-dark(#ffffff,#101923)}.strategy-create-context{min-width:0}.strategy-create-context .strategy-leverage-change-note{display:block;margin-top:4px;color:var(--warning);font-size:9px;line-height:1.4}.strategy-submit-block{flex:0 0 auto;display:flex;align-items:center;margin-left:auto;gap:10px}.strategy-submit-block small{color:light-dark(#676a6e,#627083);font-size:8px;white-space:nowrap}.strategy-submit-block .primary-action{min-width:96px}.strategy-edit-dialog{width:min(820px,calc(100vw - 32px));max-height:min(900px,calc(100dvh - 32px))}.strategy-edit-dialog .modal-dialog-header{min-height:60px;padding-inline:20px 16px}.strategy-edit-dialog .modal-dialog-body{background:var(--surface)}.strategy-edit-dialog .strategy-pair-route{margin:14px 18px 10px;padding:13px 16px 16px;border-color:var(--border);background:var(--surface-raised)}.strategy-edit-dialog .strategy-config-stack{gap:10px;padding:0 18px}.strategy-edit-dialog .strategy-config-section{padding:15px 16px 16px;border-color:var(--border);background:var(--surface-raised)}.strategy-edit-dialog .strategy-config-section>header{margin-bottom:13px}.strategy-edit-dialog .strategy-execution-layout,.strategy-edit-dialog .strategy-execution-data,.strategy-edit-dialog .strategy-order-range-fields,.strategy-edit-dialog .strategy-permission-block,.strategy-edit-dialog .spread-grid-editor{max-width:none}.strategy-edit-dialog .strategy-execution-layout{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"mode amounts" "maker amounts";gap:10px 8px}.strategy-edit-dialog .strategy-execution-layout>.segmented-choice{grid-area:mode}.strategy-edit-dialog .strategy-execution-layout>.strategy-maker-leg{grid-area:maker;max-width:none}.strategy-edit-dialog .strategy-maker-leg .select-control-trigger{height:34px}.strategy-edit-dialog .strategy-execution-layout>.strategy-execution-data{grid-area:amounts}.strategy-edit-dialog .strategy-execution-layout>.form-field:not(.strategy-maker-leg){grid-column:2}.strategy-edit-dialog .segmented-choice-options{width:100%;height:34px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:2px;border-color:var(--border);border-radius:8px;background:var(--surface-control)}.strategy-edit-dialog .segmented-choice legend{padding-bottom:6px}.strategy-edit-dialog .segmented-choice .choice-card+.choice-card{border:0}.strategy-edit-dialog .segmented-choice .choice-card-face{min-height:28px;height:28px;padding:0 10px;border-radius:5px}.strategy-edit-dialog .segmented-choice .choice-card-copy{display:flex;align-items:center}.strategy-edit-dialog .segmented-choice .choice-card-copy strong{font-size:11px}.strategy-edit-dialog .segmented-choice .choice-card input:checked+.choice-card-face{background:var(--surface-raised);box-shadow:0 1px 3px #0000001f}.strategy-edit-dialog .segmented-choice .choice-card input:checked+.choice-card-face strong{color:var(--primary)}.strategy-edit-dialog .strategy-execution-data{grid-template-columns:1fr;gap:10px}.strategy-edit-dialog .strategy-order-range-fields,.strategy-edit-dialog .strategy-price-parameters>.strategy-form-grid.trigger-grid{gap:8px}.strategy-edit-dialog .strategy-form-grid .form-field>input,.strategy-edit-dialog .strategy-order-range-fields .form-field>input{width:100%}.strategy-edit-dialog [data-slot=input]{height:34px;border-color:var(--border);border-radius:6px;color:var(--text);background:var(--surface-control);box-shadow:none;font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums}.strategy-edit-dialog [data-slot=input]:focus-visible{border-color:var(--primary);outline:2px solid var(--primary);outline-offset:1px;box-shadow:none}.strategy-edit-dialog .strategy-permission-block{margin-top:14px;padding-top:11px}.strategy-edit-dialog .strategy-permission-options{gap:8px;overflow:visible;border:0;background:transparent}.strategy-edit-dialog .strategy-permission-switch{min-height:36px;background:var(--surface-control)}.strategy-edit-dialog .strategy-permission-switch strong{display:block;color:var(--text);font-size:11px;font-weight:650}.strategy-edit-dialog [data-slot=switch-thumb]{background:#fff}.strategy-edit-dialog .spread-grid-editor{border-top-color:var(--border-subtle)}.strategy-edit-dialog .spread-grid-generator{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.strategy-edit-dialog .spread-grid-table-wrap{max-height:225px}.strategy-edit-dialog .strategy-create-actions{position:sticky;z-index:2;bottom:0;min-height:58px;padding:10px 18px;background:var(--surface-raised)}.strategy-edit-dialog .strategy-shadcn-save{min-width:96px;height:34px;border-radius:6px;font-size:11px;font-weight:700;cursor:pointer}.strategy-edit-dialog .strategy-shadcn-save:disabled{cursor:not-allowed}@media(max-width:700px){.strategy-edit-dialog{width:min(620px,calc(100vw - 16px));max-height:calc(100dvh - 16px)}.strategy-edit-dialog .strategy-execution-data{grid-template-columns:1fr;gap:10px}.strategy-edit-dialog .strategy-execution-layout{grid-template-columns:1fr;grid-template-areas:"mode" "maker" "amounts"}.strategy-edit-dialog .strategy-execution-layout>.form-field:not(.strategy-maker-leg){grid-column:1}.strategy-edit-dialog .segmented-choice-options{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-edit-dialog .spread-grid-generator{grid-template-columns:repeat(2,minmax(0,1fr))}}.strategy-tablist{display:flex;align-items:stretch;gap:8px}.strategy-tabs-root{min-width:0;min-height:0;display:flex;flex:1 1 auto;flex-direction:column}.strategy-tabpanel{min-width:0;min-height:0;display:flex;flex:1 1 auto;flex-direction:column;margin:0;outline:none}.strategy-tabs{flex:0 0 auto;padding-inline:var(--financial-table-edge-inset)}.strategy-tablist button{position:relative;padding:0 13px;border:0;border-radius:4px 4px 0 0;color:light-dark(#5e6064,#758194);background:transparent;font-size:13px;font-weight:650;cursor:pointer}.strategy-tablist button:first-child{margin-left:-13px}.strategy-tablist button:hover{color:light-dark(#37393d,#cbd3dd);background:light-dark(#e9eeef,#111b24)}.strategy-tablist button[data-state=active]{color:light-dark(#262a2e,#edf3f8);background:light-dark(#e6eeeb,#10211d);font-weight:700}.strategy-tablist button[data-state=active]:after{position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--primary);content:""}.strategy-tablist button:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}.strategy-list-tools{min-width:0;display:flex;align-items:center;gap:9px;margin-left:auto}.strategy-status-filter .strategy-status-filter-trigger{width:104px;height:28px;padding:0 7px;border:1px solid light-dark(#c0c4c9,#263444);border-radius:5px;color:light-dark(#4b5055,#b8c4d0);background:light-dark(#f4f5f6,#0a1118);color-scheme:inherit;font-size:10px;font-weight:600;cursor:pointer}.strategy-status-filter .strategy-status-filter-trigger:hover,.strategy-status-filter .strategy-status-filter-trigger[data-state=open]{border-color:light-dark(#8d969f,#46596d)}.strategy-status-filter-content{min-width:var(--radix-select-trigger-width);font-size:10px}.strategy-create-trigger[data-slot=button]{height:28px;margin-left:6px;padding-inline:12px;border-radius:4px;font-size:10px;font-weight:700;cursor:pointer}.strategy-view-switch{height:28px;display:inline-flex;align-items:stretch;padding:2px;border:1px solid light-dark(#c0c4c9,#263444);border-radius:5px;background:light-dark(#eef0f1,#080e14)}.strategy-view-switch button{width:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:3px;color:light-dark(#65686c,#667487);background:transparent;font-size:9px;font-weight:650;cursor:pointer}.strategy-view-switch button:hover{color:light-dark(#36393c,#cbd4de);background:light-dark(#f9f9fa,#101822)}.strategy-view-switch button[data-state=on]{color:light-dark(#2c3135,#dce5ee);background:light-dark(#d0d3d7,#182331)}.strategy-view-switch svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.25px}.strategy-table-wrap{--strategy-table-columns: minmax(190px, 230px) minmax(145px, 180px) minmax(280px, 350px) minmax(125px, 150px) minmax(95px, 125px) minmax(105px, 135px) minmax(105px, 135px) 128px;--strategy-action-content-width: 128px;min-width:1305px}.strategy-table-wrap.history-strategies{--strategy-action-content-width: 32px}.strategy-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),350px));align-items:start;justify-content:start;gap:8px;padding:9px}.account-rows{min-width:900px}.strategy-panel{display:flex;flex-direction:column;min-width:0}.horizontal-scroll-area{display:flex;flex:1 1 0;flex-direction:column;min-width:0;min-height:0}.horizontal-scroll-rail{position:relative;flex:0 0 14px;height:14px;margin:0 var(--financial-table-edge-inset) 2px;cursor:grab;touch-action:none}.horizontal-scroll-rail:before{position:absolute;inset:5px 0;border-radius:4px;background:light-dark(#d9e0e6,#1b2532);content:""}.horizontal-scroll-rail:active{cursor:grabbing}.horizontal-scroll-rail:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.horizontal-scroll-thumb{position:absolute;top:4px;height:6px;border-radius:3px;background:light-dark(#8997a3,#52677a)}.horizontal-scroll-rail:hover .horizontal-scroll-thumb,.horizontal-scroll-rail:focus-visible .horizontal-scroll-thumb{background:light-dark(#657786,#7992a7)}.strategy-table-scroll{flex:1 1 auto;width:100%;min-width:0;min-height:0;overflow:auto;scrollbar-gutter:stable}.strategy-table-head,.strategy-row{min-height:38px;display:grid;grid-template-columns:minmax(150px,1.05fr) minmax(210px,1.3fr) minmax(205px,1.2fr) minmax(155px,.95fr) minmax(115px,.72fr) minmax(112px,.68fr) 180px;align-items:center;gap:12px;padding:0 14px}.strategy-table-wrap .strategy-table-head,.strategy-table-wrap .strategy-row{grid-template-columns:var(--strategy-table-columns);justify-content:space-between;column-gap:var(--financial-table-column-gap);padding-inline:var(--financial-table-edge-inset)}.strategy-table-wrap .strategy-table-head{min-height:32px;font-size:11px;font-weight:600}.strategy-table-wrap .strategy-table-head>:last-child{width:var(--strategy-action-content-width);justify-self:end;text-align:left}.strategy-table-wrap .strategy-row{min-height:38px}.strategy-table-wrap .strategy-row>div{display:flex;align-items:center;gap:7px}.strategy-table-wrap .strategy-row strong{font-size:11px;white-space:nowrap}.strategy-table-wrap .strategy-row>.strategy-identity-cell{gap:8px;white-space:nowrap}.strategy-list-pair{min-width:0;display:flex;flex:0 1 auto;align-items:center;gap:7px}.strategy-list-pair-arrow{flex:0 0 auto;color:light-dark(#7c858a,#68798b);font-size:12px}.strategy-table-wrap .strategy-model-chip{flex:0 0 auto;padding:0;border:0;background:transparent;font-size:10px}.strategy-table-wrap .strategy-list-leg{display:flex;flex:0 1 auto;min-width:0;align-items:center;gap:4px;white-space:nowrap}.strategy-table-wrap .strategy-list-leg>strong{flex:0 0 auto}.strategy-table-wrap .strategy-side-chip{min-height:0;padding:0;border:0;background:transparent;font-size:10px}.strategy-table-wrap .strategy-venue-cell{gap:7px;white-space:nowrap}.strategy-list-venue-name{min-width:0;overflow:hidden;color:light-dark(#56595d,#8290a2);font-family:var(--font-sans);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.strategy-table-wrap .strategy-rule-cell{gap:13px;white-space:nowrap}.strategy-table-wrap .strategy-spread-row{display:inline-flex;align-items:center;gap:5px}.strategy-table-wrap .strategy-spread-row>span{width:16px;height:16px}.strategy-table-wrap .strategy-spread-row>small{font-size:10px}.strategy-table-wrap .strategy-position-cell{gap:12px;justify-content:flex-start;text-align:left}.strategy-table-wrap .strategy-position-heading-row{display:none}.strategy-table-wrap .strategy-position-leg{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.strategy-table-wrap .strategy-flat-position{color:light-dark(#666a6e,#8290a2);font-family:var(--font-ui);font-size:11px}.strategy-table-wrap .strategy-position-leg b{width:16px;height:16px;flex:0 0 auto}.strategy-table-wrap .strategy-position-leg strong,.strategy-table-wrap .strategy-position-leg>span{font-size:11px}.strategy-table-wrap .strategy-position-leg>span{justify-self:auto}.strategy-table-wrap .strategy-pnl{gap:5px;white-space:nowrap}.strategy-table-wrap .strategy-pnl>span:last-child{font-size:10px}.strategy-table-wrap .strategy-state-cell{gap:7px;white-space:nowrap}.strategy-table-wrap .strategy-state-chip{font-size:10px}.strategy-table-wrap .strategy-time-cell{justify-content:flex-start;white-space:nowrap}.strategy-table-wrap .strategy-time-cell time{color:light-dark(#666a6e,#8290a2);font-size:10px}.strategy-table-wrap .strategy-state-reason{min-width:0;overflow:hidden;color:light-dark(#666a6e,#8290a2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.strategy-table-wrap .strategy-row>.strategy-actions{width:var(--strategy-action-content-width);justify-self:end;justify-content:flex-start;gap:14px}.strategy-table-wrap .strategy-actions .strategy-list-action{min-width:0;min-height:26px;padding:3px 0;font-size:11px}.strategy-table-wrap .strategy-actions .strategy-edit-action,.strategy-table-wrap .strategy-actions .strategy-control-action.pause{color:light-dark(#5c666b,#91a0ae)}.strategy-table-wrap .strategy-actions .strategy-control-action.start{color:var(--primary)}.strategy-table-wrap .strategy-actions .strategy-list-action:active:not(:disabled){opacity:.72}.strategy-table-head{color:light-dark(#6d7075,#576477);font-size:10px;border-bottom:1px solid var(--border)}.strategy-row{position:relative;min-height:82px;border-bottom:1px solid light-dark(#d5d8dc,#151f29)}.strategy-row.strategy-execution-feedback:after{position:absolute;z-index:3;inset:0;border-radius:inherit;opacity:0;pointer-events:none;content:"";animation-duration:.95s;animation-timing-function:ease-out;animation-fill-mode:both}.strategy-row.strategy-execution-feedback.open:after{background:color-mix(in srgb,var(--primary) 10%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 58%,transparent)}.strategy-row.strategy-execution-feedback.close:after{background:color-mix(in srgb,var(--warning) 11%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--warning) 62%,transparent)}.strategy-row.strategy-execution-feedback.open.feedback-0:after{animation-name:strategy-execution-open-0}.strategy-row.strategy-execution-feedback.open.feedback-1:after{animation-name:strategy-execution-open-1}.strategy-row.strategy-execution-feedback.close.feedback-0:after{animation-name:strategy-execution-close-0}.strategy-row.strategy-execution-feedback.close.feedback-1:after{animation-name:strategy-execution-close-1}@keyframes strategy-execution-open-0{0%,to{opacity:0}22%{opacity:.9}}@keyframes strategy-execution-open-1{0%,to{opacity:0}22%{opacity:.9}}@keyframes strategy-execution-close-0{0%,to{opacity:0}22%{opacity:.9}}@keyframes strategy-execution-close-1{0%,to{opacity:0}22%{opacity:.9}}.strategy-row:hover{background:light-dark(#eef2f5,#0d151e)}.strategy-table-wrap .strategy-row:last-child{border-bottom:0}.strategy-row>div{min-width:0;display:grid;gap:5px}.strategy-row strong,.account-row strong{min-width:0;overflow:hidden;color:light-dark(#36393c,#cbd4de);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.strategy-row small,.strategy-row time,.account-row span{color:light-dark(#666a6e,#627084);font-family:var(--font-mono);font-size:9px}.strategy-identity-cell strong{line-height:1.4;white-space:normal}.strategy-model-chip{width:fit-content;padding:2px 5px;border:1px solid light-dark(#c7cbcf,#293745);border-radius:3px;color:light-dark(#596168,#8e9eaf);background:light-dark(#f4f6f7,#101923);font-family:var(--font-ui);font-size:9px;font-weight:650;white-space:nowrap}.strategy-legs-cell{gap:6px!important}.strategy-leg-link{min-width:0;display:grid;grid-template-columns:36px minmax(0,auto) minmax(0,1fr);align-items:center;gap:6px;border-radius:4px;color:inherit;text-decoration:none;cursor:pointer}.strategy-leg-link:hover{background:light-dark(#f9fafa,#111a24)}.strategy-leg-link:active{background:light-dark(#d4d7db,#15212c)}.strategy-leg-link:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.strategy-legs-cell .strategy-side-chip{min-height:18px;padding-inline:5px}.strategy-leg-venue{min-width:0;display:inline-flex;align-items:center;gap:5px;color:light-dark(#56595d,#8290a2);font-family:var(--font-sans);font-size:9px;font-weight:650}.strategy-leg-venue .market-venue-icon.compact{width:18px;height:18px;border-radius:4px}.strategy-leg-venue .market-venue-icon.compact img{max-width:12px;max-height:13px}.strategy-leg-venue>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-rule-cell strong{color:light-dark(#34373a,#d0d9e2);font-family:var(--font-mono);font-size:10px}.strategy-rule-cell span{color:light-dark(#535659,#8996a7);font-size:9px}.strategy-rule-cell small{color:light-dark(#6c6f74,#596779)}.strategy-spread-row{display:grid;grid-template-columns:18px minmax(52px,auto) 1fr;align-items:baseline;gap:7px;font-variant-numeric:tabular-nums}.strategy-spread-row>span{width:18px;height:18px;display:inline-grid;place-items:center;border:1px solid light-dark(#b8c5c1,#245446);border-radius:3px;color:var(--primary);background:light-dark(#f2f5f4,#0a1b17);font-size:8px;font-weight:800}.strategy-spread-row.close>span{border-color:light-dark(#737880,#465469);color:light-dark(#44474c,#a9b7c8);background:light-dark(#f9fafa,#111923)}.strategy-spread-row>strong{overflow:visible;color:light-dark(#2f3337,#d8e0e9);font-size:11px}.strategy-spread-row>small{color:light-dark(#666a6e,#627084);font-size:9px;white-space:nowrap}.strategy-position-heading{display:none}.strategy-position-leg{min-width:0;display:grid;grid-template-columns:18px minmax(0,auto) minmax(0,1fr);align-items:center;gap:2px 5px}.strategy-position-leg b{width:18px;height:18px;display:inline-grid;place-items:center;border:1px solid light-dark(#b8c5c1,#245446);border-radius:3px;color:var(--primary);background:light-dark(#f2f5f4,#0a1b17);font-family:var(--font-sans);font-size:8px}.strategy-position-leg.short b{border-color:light-dark(#8b7378,#6a303b);color:var(--danger);background:light-dark(#f7f6f6,#1b1014)}.strategy-position-leg strong,.strategy-position-leg>span,.strategy-position-leg small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-position-leg strong{color:light-dark(#535659,#8996a7);font-size:9px}.strategy-position-leg>span{justify-self:end;color:light-dark(#36393c,#cbd4de);font-size:10px}.strategy-position-leg small{grid-column:2 / -1;justify-self:end;color:light-dark(#666a6e,#627084)}.numeric-cell{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.strategy-pnl.positive strong{color:var(--primary)}.strategy-pnl.negative strong{color:var(--danger)}.strategy-pnl-heading{display:none}.state-chip{width:fit-content;min-height:21px;display:inline-flex;align-items:center;padding:0 7px;border:1px solid light-dark(#adb0b4,#3e4958);border-radius:4px;color:light-dark(#525457,#8d99a8);background:light-dark(#fafafa,#131a23);font-size:9px;font-weight:700}.state-chip.running{border-color:light-dark(#b8c5c1,#245446);color:var(--primary);background:light-dark(#f2f5f4,#0a1b17)}.state-chip.waiting{border-color:light-dark(#c2beb5,#5e4a20);color:light-dark(#81672c,#d7ad51);background:light-dark(#f5f4f3,#18150e)}.state-chip.archived{border-color:light-dark(#b2b5b9,#394452);color:light-dark(#5b5e61,#7b8797);background:light-dark(#f8f8f9,#101720)}.state-chip.simulated{border-color:light-dark(#b0b3b7,#3b4655);color:light-dark(#474a4e,#a7b2c0)}.strategy-state-chip{gap:5px;border-color:var(--status-paused-border);color:var(--status-paused-foreground);background:var(--status-paused-background)}.strategy-state-chip:before{width:5px;height:5px;flex:0 0 auto;border-radius:50%;background:currentColor;content:""}.strategy-state-chip.running{border-color:var(--status-running-border);color:var(--primary);background:var(--status-running-background)}.strategy-state-chip.waiting{border-color:var(--status-waiting-border);color:var(--warning);background:var(--status-waiting-background)}.strategy-state-chip.paused{border-color:var(--status-paused-border);color:var(--status-paused-foreground);background:var(--status-paused-background)}.strategy-state-chip.error{border-color:var(--status-error-border);color:var(--danger);background:var(--status-error-background)}.row-action{min-width:62px;min-height:28px;border:1px solid light-dark(#b5b8bc,#344151);border-radius:4px;color:light-dark(#45474b,#acb7c5);background:light-dark(#f9fafa,#111923);cursor:pointer}.row-action:hover:not(:disabled){border-color:light-dark(#6c7075,#56677a);color:light-dark(#2c2f32,#e2e8ef)}.row-action:disabled{color:light-dark(#73777c,#4e5a69);cursor:not-allowed}.strategy-row>.strategy-actions{display:flex;justify-content:flex-end;gap:6px}.strategy-row>.strategy-actions .strategy-detail-action,.strategy-row>.strategy-actions .strategy-edit-action{min-width:44px}.strategy-row>.strategy-actions .strategy-control-action{min-width:68px}.strategy-table-wrap .strategy-row>.strategy-actions .strategy-list-action{min-width:0}.strategy-state-cell time{color:light-dark(#6e7278,#536174)}.strategy-actions .row-action{min-width:56px}.strategy-card{--strategy-state-accent: var(--status-paused-accent);min-height:0;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity state" "rule rule" "position position" "statistics statistics" "pnl pnl" "actions actions";align-items:start;gap:11px 10px;padding:11px 12px 10px;overflow:hidden;border:1px solid light-dark(#ccd0d3,#1c2835);border-radius:6px;background:light-dark(#f7f9fb,#091118);box-shadow:inset 0 2px 0 var(--strategy-state-accent)}.strategy-card:hover{border-color:light-dark(#b9bdc1,#2d3d4e);background:light-dark(#ffffff,#0b141c)}.strategy-card.running{--strategy-state-accent: var(--primary)}.strategy-card.waiting{--strategy-state-accent: var(--warning)}.strategy-card.paused{--strategy-state-accent: var(--status-paused-accent)}.strategy-card.abnormal-paused{--strategy-state-accent: var(--danger)}.strategy-card:before{grid-column:1 / -1;grid-row:1;align-self:stretch;margin:-9px -12px -1px;background:light-dark(#edf3f2,#0e1e20);content:""}.strategy-card .strategy-identity-cell{grid-area:identity;position:relative;z-index:1;min-width:0;align-self:stretch;display:flex;align-items:center;gap:6px;padding:0 0 10px 4px;border-bottom:1px solid light-dark(#c7cecc,#21352f)}.strategy-card .strategy-identity-cell:before{position:absolute;right:-10px;bottom:-1px;width:10px;height:1px;background:light-dark(#c7cecc,#21352f);content:""}.strategy-card .strategy-identity-cell:after{position:absolute;bottom:-1px;left:0;width:34px;height:2px;background:var(--strategy-state-accent);content:""}.strategy-card .strategy-pair-route{min-width:0;width:100%;display:flex;align-items:center;gap:4px;padding:0;overflow:visible;border:0;background:transparent}.strategy-pair-leg-route{min-width:0;display:inline-flex;align-items:center;gap:4px;overflow:hidden;color:inherit;background:transparent;text-decoration:none}.strategy-pair-leg-route:hover strong{color:var(--primary)}.strategy-pair-leg-route:focus-visible{border-radius:3px;outline:2px solid var(--primary);outline-offset:2px}.strategy-pair-leg-route strong{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-card .strategy-pair-leg-route{display:inline-flex;flex:0 1 auto;align-items:center;gap:4px;overflow:visible}.strategy-pair-route-arrow{width:14px;flex:0 0 14px;color:var(--text-secondary);font-size:11px;text-align:center}.strategy-card .strategy-identity-cell strong{color:light-dark(#2c3033,#e0e7ee);font-size:12px;font-weight:650;line-height:1.35}.strategy-card .strategy-state-cell{grid-area:state;position:relative;z-index:1;align-self:stretch;align-content:center;justify-items:end;padding-bottom:10px;border-bottom:1px solid light-dark(#c7cecc,#21352f);text-align:right}.strategy-card .strategy-state-cell small,.strategy-card .strategy-state-cell time{max-width:136px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-card .strategy-legs-cell{grid-area:legs;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;padding:1px 0}.strategy-card .strategy-leg-link{grid-template-columns:minmax(28px,1fr) auto;gap:6px;min-height:36px;padding:5px 7px;border:1px solid light-dark(#d1d5d8,#172530);background:light-dark(#eff0f2,#080f15)}.strategy-card .strategy-leg-link.long{border-left-color:light-dark(#b1bfbb,#25604f)}.strategy-card .strategy-leg-link.short{border-left-color:light-dark(#cca4ab,#75323e)}.strategy-card .strategy-leg-link+.strategy-leg-link{padding-left:8px}.strategy-card .strategy-leg-venue{display:inline-flex;justify-self:end}.strategy-card .strategy-leg-venue>span:last-child{align-self:center}.strategy-card .strategy-leg-link:hover{border-color:light-dark(#afb4b9,#34475a)}.strategy-card .strategy-legs-cell strong,.strategy-card .strategy-leg-venue{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-card .strategy-rule-cell{grid-area:rule;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}.strategy-card .strategy-rule-cell>.strategy-card-meta{grid-column:1 / -1;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;padding-inline:3px;color:var(--text-secondary);font-family:var(--font-sans);font-size:10px}.strategy-card-venues{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-card-model{flex:0 0 auto;white-space:nowrap}.strategy-spread-strip{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border-radius:4px;background:light-dark(#e8ebed,#0b151d)}.strategy-spread-strip>div{min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;padding:4px 7px;font-variant-numeric:tabular-nums}.strategy-spread-strip>div+div{border-left:1px solid light-dark(#cdd1d4,#22303d)}.strategy-spread-strip>div>span:first-child{color:var(--text-secondary);font-size:9px;font-weight:700}.strategy-spread-strip>div.close>span:first-child{color:var(--text-secondary)}.strategy-spread-strip strong{justify-self:end;overflow:hidden;color:light-dark(#2f3337,#d8e0e9);font-family:var(--font-mono);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.strategy-spread-strip small{color:light-dark(#72767a,#617084);font-size:8px;white-space:nowrap}.strategy-card .strategy-rule-cell>span{grid-column:1;margin-top:2px;color:light-dark(#54575a,#8794a5)}.strategy-card .strategy-rule-cell>small{grid-column:2;justify-self:end;align-self:center}.strategy-grid-progress{padding:10px;border-bottom:1px solid light-dark(#c8cccf,#202d3a)}.strategy-grid-progress.compact{grid-column:1 / -1;padding:12px 1px 2px;border-top:1px solid light-dark(#d1d4d8,#172330);border-bottom:0}.strategy-grid-progress-heading,.strategy-grid-next-actions>div{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:10px}.strategy-grid-progress-heading strong{color:light-dark(#285d51,#55d4be);font-family:var(--font-ui);font-size:11px}.strategy-grid-progress-heading span,.strategy-grid-next-actions span{color:light-dark(#666a6e,#718195);font-family:var(--font-ui);font-size:9px;white-space:nowrap}.strategy-grid-progress-heading>span,.strategy-grid-next-actions strong{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.strategy-grid-progress progress{width:100%;height:4px;display:block;margin:8px 0;appearance:none;border:0;border-radius:2px;overflow:hidden;background:light-dark(#d7dddf,#263342)}.strategy-grid-progress progress::-webkit-progress-bar{background:light-dark(#d7dddf,#263342)}.strategy-grid-progress progress::-webkit-progress-value{background:var(--primary)}.strategy-grid-progress progress::-moz-progress-bar{background:var(--primary)}.strategy-grid-next-actions{display:grid;gap:5px}.strategy-grid-next-actions strong{min-width:0;color:light-dark(#394147,#c3d0dc);font-size:10px;font-weight:600;text-align:right}.strategy-grid-progress.compact .strategy-grid-progress-heading strong,.strategy-grid-progress.compact .strategy-grid-next-actions strong{font-size:9px}.strategy-grid-progress.compact .strategy-grid-progress-heading strong{color:var(--text-secondary)}.strategy-grid-progress-note{margin:7px 0 0;color:light-dark(#666a6e,#718195);font-size:10px;line-height:1.4}.strategy-card .strategy-position-cell{grid-area:position;grid-template-columns:minmax(0,1fr);gap:5px;padding:0;border:0;background:transparent}.strategy-card .strategy-position-heading{display:block;color:var(--text-secondary);font-family:var(--font-sans);font-size:9px;font-weight:600}.strategy-position-ledger{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0}.strategy-position-heading-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.strategy-position-cost-spread{color:var(--text-secondary);font-family:var(--font-mono);font-size:8px}.strategy-trade-statistics{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.strategy-trade-statistics-label{flex:0 0 auto;color:var(--text-secondary);font-family:var(--font-sans);font-size:9px}.strategy-trade-statistics dl{min-width:0;display:flex;align-items:baseline;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0}.strategy-trade-statistics dl>div{min-width:0;display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}.strategy-trade-statistics dt{color:var(--text-secondary);font-family:var(--font-sans);font-size:9px}.strategy-trade-statistics dd{margin:0;color:var(--text-secondary);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums}.strategy-card .strategy-trade-statistics{grid-area:statistics;display:flex;margin-top:-4px}.strategy-card .strategy-position-leg{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr) auto;align-items:end;gap:8px;min-height:26px;padding:4px 0 2px;border:0}.strategy-card .strategy-position-leg.short{border-top:1px solid light-dark(#e0e4e6,#1b2834)}.strategy-card .strategy-position-identity{min-width:0;display:inline-flex;align-items:baseline;gap:4px;overflow:hidden;justify-self:start}.strategy-card .strategy-position-identity b{width:auto;height:auto;display:inline;flex:0 0 auto;border:0;border-radius:0;color:color-mix(in srgb,var(--primary) 62%,var(--text-secondary));background:transparent;font-size:9px;font-weight:650}.strategy-card .strategy-position-leg.short .strategy-position-identity b{color:color-mix(in srgb,var(--danger) 62%,var(--text-secondary));background:transparent}.strategy-card .strategy-position-leg strong{color:var(--text);font-size:10px;font-weight:650}.strategy-card .strategy-position-holding{min-width:0;justify-self:start;color:var(--text);font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}.strategy-card .strategy-position-holding.empty{color:var(--text-secondary);font-size:9px;font-weight:500}.strategy-card .strategy-position-leg small{justify-self:end;font-weight:500;font-size:9px}.strategy-card .strategy-funding-rate{grid-column:3;color:var(--text-secondary);text-align:right}.strategy-funding-summary{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:6px;margin-top:0;padding-top:5px;border-top:1px solid light-dark(#d0d4d7,#1b2834);color:var(--text-secondary);font-family:var(--font-sans);font-size:9px}.strategy-funding-summary>strong{min-width:0;color:var(--text);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.strategy-funding-annualized{color:var(--muted);font-size:9px;white-space:nowrap}.strategy-funding-annualized b{color:var(--text-secondary);font-family:var(--font-mono);font-size:9px;font-variant-numeric:tabular-nums;font-weight:550}.strategy-card .strategy-pnl{grid-area:pnl;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;justify-items:end;align-content:start;row-gap:2px;padding:0;text-align:right}.strategy-card .strategy-pnl-heading{grid-column:1;grid-row:1;justify-self:start;align-self:baseline;display:block;color:light-dark(#666a6e,#627084);font-family:var(--font-sans);font-size:9px}.strategy-card .strategy-pnl strong{grid-column:2;grid-row:1;font-size:12px}.strategy-card .strategy-pnl>span:last-child{grid-column:2;grid-row:2}.strategy-card .strategy-pnl.positive strong,.strategy-card .strategy-pnl.positive>span:last-child{color:var(--primary)}.strategy-card .strategy-pnl.negative strong,.strategy-card .strategy-pnl.negative>span:last-child{color:var(--danger)}.strategy-card>.strategy-actions{grid-area:actions;align-items:center;justify-content:flex-start;gap:6px;padding-top:7px;border-top:1px solid light-dark(#d1d4d8,#172330)}.strategy-card .strategy-actions .row-action{min-width:0;min-height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;color:light-dark(#56595d,#8290a2);background:transparent;font-family:var(--font-sans);font-size:12px;font-weight:600;line-height:1}.strategy-card .strategy-actions .row-action:hover:not(:disabled){border-color:transparent;color:light-dark(#313438,#d5dde6);background:transparent}.strategy-card .strategy-actions .strategy-detail-action,.strategy-card .strategy-actions .strategy-edit-action{padding:0 10px;color:light-dark(#56595d,#8290a2);background:transparent}.strategy-card .strategy-actions .strategy-detail-action{padding-left:0}.strategy-card .strategy-actions .strategy-edit-action:disabled{color:light-dark(#777d83,#596778)}.strategy-card .strategy-actions .strategy-control-action{min-width:0;justify-content:flex-end;margin-left:auto;padding:0 0 0 8px}.strategy-card .strategy-actions .strategy-control-action.start{border-color:transparent;color:light-dark(#176652,#70cbb5);background:transparent}.strategy-card .strategy-actions .strategy-control-action.start:hover:not(:disabled){border-color:transparent;color:light-dark(#0c5a47,#8bdbc8);background:transparent}.strategy-card .strategy-actions .strategy-control-action.pause{border-color:transparent;color:var(--warning);background:transparent}.strategy-card .strategy-actions .strategy-control-action.pause:hover:not(:disabled){border-color:transparent;color:var(--warning);background:transparent}.strategy-card .strategy-actions .strategy-control-action:disabled{border-color:transparent;color:light-dark(#777d83,#596778);background:transparent}.strategy-result{margin-top:14px;border:1px solid light-dark(#c5cfcd,#1d4138);border-radius:6px}.danger-row-action{border-color:light-dark(#beb3b5,#582d36);color:light-dark(#832b39,#e997a4);background:light-dark(#f7f6f6,#1b1014)}.danger-row-action:hover:not(:disabled){border-color:var(--danger);color:light-dark(#382d2f,#ffc4cd)}.strategy-detail-dialog{width:min(720px,calc(100vw - 36px));height:min(880px,calc(100dvh - 32px))}.strategy-detail-dialog .modal-dialog-header{min-height:56px;padding-inline:16px}.strategy-detail-dialog .modal-dialog-heading>h2{font-size:16px}.strategy-detail-dialog .modal-dialog-actions .state-chip{white-space:nowrap}.strategy-detail-dialog .modal-dialog-body{display:grid;grid-template-rows:42px minmax(0,1fr);background:var(--surface-raised)}.strategy-detail-actions{min-width:0;display:flex;align-items:center}.strategy-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.strategy-detail-actions .row-action{min-height:42px;padding-inline:12px;font-size:12px}.strategy-detail-actions .danger-row-action{grid-column:1 / -1;margin-top:14px}.strategy-management{padding:16px 0}.strategy-management header{margin-bottom:18px}.strategy-management h3{margin:0 0 5px;color:var(--text);font-size:13px}.strategy-management p{margin:0;color:var(--text-secondary);font-size:11px}.strategy-detail-tabs{display:flex;align-items:stretch;gap:0;padding:0 12px;overflow-x:auto;border-bottom:1px solid light-dark(#c9ccd0,#202c39);background:var(--surface-raised);scrollbar-gutter:stable}.strategy-detail-tabs button{position:relative;min-width:72px;padding:0 9px;border:0;color:var(--text-secondary);background:transparent;font-size:11px;font-weight:650;white-space:nowrap;cursor:pointer}.strategy-detail-tabs button:after{position:absolute;right:10px;bottom:0;left:10px;height:2px;background:transparent;content:""}.strategy-detail-tabs button:hover{color:light-dark(#3b3e41,#c1cbd6)}.strategy-detail-tabs button.active{color:light-dark(#2c2f32,#e2e8ee)}.strategy-detail-tabs button.active:after{background:var(--primary)}.strategy-record-tabs{display:flex;width:100%;gap:0;margin:8px 0 10px;overflow-x:auto;border-bottom:1px solid var(--border)}.strategy-record-tabs button{position:relative;min-height:36px;flex:0 0 auto;padding:0 14px;border:0;color:var(--text-secondary);background:transparent;font-size:11px;font-weight:600;cursor:pointer}.strategy-record-tabs button:first-child{padding-left:var(--financial-table-edge-inset)}.strategy-record-tabs button:after{position:absolute;right:14px;bottom:0;left:14px;height:2px;background:transparent;content:""}.strategy-record-tabs button:first-child:after{left:var(--financial-table-edge-inset)}.strategy-record-tabs button:hover{color:var(--text)}.strategy-record-tabs button[aria-pressed=true]{color:var(--text);font-weight:700}.strategy-record-tabs button[aria-pressed=true]:after{background:var(--primary)}.strategy-record-tabs button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.strategy-detail-tabpanel{min-width:0;min-height:0;padding:4px 16px 20px;overflow:auto;outline:none;scrollbar-gutter:stable}.strategy-detail-tabpanel:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.strategy-attention-strip{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 16px;padding:10px 12px;border:1px solid light-dark(#b8c5c1,#245446);border-left:3px solid var(--primary);border-radius:5px;background:light-dark(#f1f3f3,#0a1716)}.strategy-attention-strip.danger{border-color:light-dark(#beb3b6,#572d36);border-left-color:var(--danger);background:light-dark(#f5f4f5,#171014)}.strategy-attention-strip.waiting{border-color:var(--status-waiting-border);border-left-color:var(--warning);background:var(--status-waiting-background)}.strategy-attention-strip>div{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:3px 10px}.strategy-attention-strip span{color:var(--primary);font-size:9px;font-weight:750}.strategy-attention-strip.danger span{color:var(--danger)}.strategy-attention-strip.waiting span{color:var(--warning)}.strategy-attention-strip strong{color:light-dark(#303437,#d8e1e8);font-size:12px;line-height:1.45;overflow-wrap:anywhere}.strategy-attention-strip small{grid-column:2;color:light-dark(#5e6165,#728195);font-family:var(--font-mono);font-size:9px}.strategy-attention-strip button{min-height:28px;flex:0 0 auto;padding:0 10px;border:1px solid light-dark(#b0bdba,#2d5c50);border-radius:4px;color:var(--primary);background:light-dark(#f6f8f8,#0d201b);font-size:9px;cursor:pointer}.strategy-position-route{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--border-subtle);background:var(--surface-soft)}.strategy-position-route:after{position:absolute;top:50%;left:50%;width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--border-subtle);border-radius:50%;color:var(--text-secondary);background:var(--surface-raised);font-size:13px;content:"↔";transform:translate(-50%,-50%)}.strategy-overview-leg{min-width:0;padding:16px 18px 14px}.strategy-overview-leg+.strategy-overview-leg{border-left:1px solid var(--border-subtle)}.strategy-leg-venue{min-width:0;display:flex;align-items:center;gap:9px;padding-bottom:14px;border-bottom:1px solid var(--border-subtle)}.strategy-leg-venue>div{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}.strategy-leg-venue strong{color:var(--text);font-size:12px}.strategy-leg-venue span:not(.market-venue-icon){color:var(--text-secondary);font-family:var(--font-mono);font-size:9px;overflow-wrap:anywhere}.strategy-leg-position{min-height:96px;display:flex;justify-content:space-between;align-items:center;gap:12px}.strategy-leg-market,.strategy-leg-quantity{min-width:0;display:flex;flex-direction:column;gap:3px}.strategy-leg-market>span,.strategy-leg-quantity>span,.strategy-leg-cost>span{color:var(--text-secondary);font-size:9px}.strategy-leg-market>strong{color:var(--text);font-family:var(--font-mono);font-size:20px;line-height:1.1;overflow-wrap:anywhere}.strategy-leg-market>small{color:var(--text-muted);font-family:var(--font-mono);font-size:9px;overflow-wrap:anywhere}.strategy-leg-quantity{align-items:flex-end;text-align:right}.strategy-leg-quantity>strong{color:var(--text);font-family:var(--font-mono);font-size:16px;font-variant-numeric:tabular-nums;font-weight:650;overflow-wrap:anywhere}.strategy-leg-quantity>strong.empty{color:var(--text-muted);font-family:var(--font-sans);font-size:12px}.strategy-leg-cost{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding-top:9px;border-top:1px solid var(--border-subtle)}.strategy-leg-cost>strong{color:var(--text-secondary);font-family:var(--font-mono);font-size:10px;font-weight:550;overflow-wrap:anywhere;text-align:right}.strategy-position-outcome{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:13px 0 9px}.strategy-cycle-pnl{display:flex;align-items:baseline;gap:8px}.strategy-cycle-pnl>span{color:var(--text-secondary);font-size:11px}.strategy-cycle-pnl strong{color:var(--text);font-family:var(--font-mono);font-size:16px;font-variant-numeric:tabular-nums}.strategy-cycle-pnl small{color:var(--text-secondary);font-family:var(--font-mono);font-size:10px}.strategy-cycle-pnl .positive{color:var(--primary)}.strategy-cycle-pnl .negative{color:var(--danger)}.strategy-position-footnote{display:flex;gap:8px;color:var(--text-secondary);font-size:10px}.strategy-position-footnote strong{color:var(--text);font-family:var(--font-mono);font-weight:600}.strategy-holdings-overview .strategy-trade-statistics{min-height:39px;padding:10px 0;border-top:0;color:var(--text-secondary)}.strategy-holdings-overview .strategy-trade-statistics-label,.strategy-holdings-overview .strategy-trade-statistics dt,.strategy-holdings-overview .strategy-trade-statistics dd{font-size:11px}.strategy-detail-dialog .strategy-grid-progress{padding:8px 0 12px}.strategy-detail-dialog .strategy-grid-progress-heading strong{color:var(--text);font-size:12px}.strategy-detail-dialog .strategy-grid-progress-heading span,.strategy-detail-dialog .strategy-grid-next-actions span,.strategy-detail-dialog .strategy-grid-next-actions strong{font-size:11px}.strategy-overview-section{min-width:0;margin-top:16px;border-top:1px solid var(--border)}.strategy-grid-disclosure,.strategy-config-disclosure{padding-top:6px}.strategy-grid-disclosure summary,.strategy-config-disclosure summary{width:fit-content;min-height:28px;display:flex;align-items:center;color:var(--text-secondary);font-size:11px;font-weight:600;cursor:pointer}.strategy-grid-disclosure summary:hover,.strategy-config-disclosure summary:hover{color:var(--text)}.strategy-grid-disclosure summary:focus-visible,.strategy-config-disclosure summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.strategy-grid-disclosure[open] summary,.strategy-config-disclosure[open] summary{margin-bottom:8px}.strategy-overview-section>header{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0}.strategy-overview-section>header h3{margin:0;color:var(--text);font-size:12px;font-weight:700}.strategy-overview-section>header time,.strategy-overview-section>header span{color:var(--text-secondary);font-family:var(--font-mono);font-size:10px}.strategy-signal-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.strategy-signal-detail>div{min-width:0;display:grid;align-content:start;gap:4px;padding:12px;border:1px solid var(--border-subtle);border-radius:5px}.strategy-signal-detail span,.strategy-signal-detail small{color:var(--text-secondary);font-size:11px}.strategy-signal-detail strong,.strategy-signal-detail code{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.strategy-signal-detail strong{color:var(--text);font-size:18px}.strategy-signal-detail code{color:var(--text-secondary);font-size:10px;overflow-wrap:anywhere}.strategy-signal-explanation{margin:0;padding:3px 0 0;color:var(--text-secondary);font-size:10px;line-height:1.5}.strategy-signal-method{padding:8px 0 0;border-top:1px solid var(--border-subtle)}.strategy-signal-method summary{width:fit-content;color:var(--text-secondary);font-size:10px;cursor:pointer}.strategy-signal-method summary:hover{color:var(--text)}.strategy-signal-method summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.strategy-detail-summary{display:grid;grid-template-columns:1fr;margin:0}.strategy-detail-summary>div{min-width:0;display:grid;grid-template-columns:158px minmax(0,1fr);align-items:baseline;gap:10px;padding:10px 0;border-bottom:1px solid var(--border-subtle)}.strategy-detail-summary>div:last-child{border-bottom:0}.strategy-detail-summary dt{color:var(--text-secondary);font-size:11px}.strategy-detail-summary dd{margin:0;color:var(--text);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.strategy-grid-levels{max-height:346px;margin:0;padding:0;overflow-y:auto;list-style:none;border-top:1px solid var(--border-subtle);scrollbar-gutter:stable}.strategy-grid-level{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:9px 4px 9px 0;border-bottom:1px solid var(--border-subtle)}.strategy-grid-level.next{background:light-dark(#edf0f2,#14202b)}.strategy-grid-level-index{padding-top:1px;color:var(--text-muted);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums;font-weight:650}.strategy-grid-level.next .strategy-grid-level-index{color:var(--text)}.strategy-grid-level-body{min-width:0;display:grid;gap:6px}.strategy-grid-level-heading,.strategy-grid-level-values{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.strategy-grid-level-heading strong{color:var(--text);font-size:12px;font-weight:650}.strategy-grid-level-heading>span,.strategy-grid-level-values{color:var(--text-secondary);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums}.strategy-grid-level-heading>span,.strategy-grid-level-values>span:last-child{text-align:right}.strategy-grid-level-values{flex-wrap:wrap;justify-content:space-between}.strategy-detail-error{margin-top:10px}.strategy-detail-tabpanel>.data-notice{min-height:90px}.strategy-detail-sections{border:1px solid light-dark(#cbcfd3,#1d2936);border-radius:5px;overflow:hidden}.strategy-unknown-order-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border-bottom:1px solid light-dark(#d6c5aa,#5b4831);background:light-dark(#faf5e9,#1d1a16)}.strategy-unknown-order-notice>div,.strategy-resolution-checks{display:grid;gap:7px}.strategy-unknown-order-notice strong{color:light-dark(#6b4a13,#dfbc81)}.strategy-unknown-order-notice span,.strategy-unknown-order-notice small{color:light-dark(#5f5a50,#a9a097);overflow-wrap:anywhere}.strategy-unknown-order-notice button{flex:none;min-height:30px;padding:0 11px;border:1px solid light-dark(#ad8952,#907044);border-radius:4px;background:transparent;color:light-dark(#6b4a13,#dfbc81);cursor:pointer}.strategy-resolution-checks{padding:14px 18px;color:light-dark(#4f5357,#a9b4c1)}.strategy-resolution-checks p{margin:0 0 4px;overflow-wrap:anywhere}.strategy-resolution-checks label{display:flex;align-items:flex-start;gap:9px;cursor:pointer}.strategy-resolution-checks input{margin-top:3px;accent-color:var(--accent)}.strategy-history-pagination{min-height:40px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:6px var(--financial-table-edge-inset);border-top:1px solid var(--border-subtle)}.strategy-history-pagination span{color:var(--text-muted);font-family:var(--font-mono);font-size:10px}.strategy-history-pagination button{min-height:24px;padding:0 8px;border:1px solid var(--border);border-radius:3px;background:var(--surface-soft);color:var(--text-secondary);font-size:10px;cursor:pointer}.strategy-history-pagination button:hover:not(:disabled){color:var(--text)}.strategy-history-pagination button:disabled{cursor:wait;opacity:.6}.strategy-page-error{padding:9px 10px;border-top:1px solid light-dark(#c4b8bb,#522630);color:var(--danger);font-size:10px}.strategy-detail-dialog .strategy-history-section{padding:0}.strategy-detail-dialog .strategy-history-empty{padding-inline:var(--financial-table-edge-inset)}.strategy-record-table-scroll{overflow-x:auto}.strategy-record-table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.strategy-record-table{width:100%;min-width:660px;border-collapse:collapse;color:var(--text-secondary);font-size:11px;font-variant-numeric:tabular-nums}.strategy-record-table-orders,.strategy-record-table-fills{min-width:850px}.strategy-record-table-cycles,.strategy-record-table-adjustments{--record-detail-action-column-width: calc( var(--financial-table-edge-inset) + var(--financial-table-cell-inset) + 23px );table-layout:fixed}.strategy-record-table-cycles{min-width:560px}.strategy-record-table-adjustments{min-width:620px}.strategy-record-table-cycles th,.strategy-record-table-cycles td,.strategy-record-table-adjustments th,.strategy-record-table-adjustments td{padding-inline:var(--financial-table-cell-inset)}.strategy-record-table-cycles th:first-child,.strategy-record-table-adjustments th:first-child{width:20%}.strategy-record-table-cycles th:nth-child(2),.strategy-record-table-cycles th:nth-child(3),.strategy-record-table-cycles th:nth-child(4){width:calc((80% - var(--record-detail-action-column-width)) / 3)}.strategy-record-table-cycles th:last-child{width:var(--record-detail-action-column-width)}.strategy-record-table-adjustments th:nth-child(2),.strategy-record-table-adjustments th:nth-child(3){width:calc((80% - var(--record-detail-action-column-width)) / 2)}.strategy-record-table-adjustments th:last-child{width:var(--record-detail-action-column-width)}.strategy-record-table-cycles td:last-child .strategy-record-concept-link,.strategy-record-table-adjustments td:last-child .strategy-record-concept-link{min-width:23px}.strategy-record-table th,.strategy-record-table td{height:38px;padding:6px var(--financial-table-cell-inset);border-bottom:1px solid var(--border-subtle);text-align:left;vertical-align:middle;white-space:nowrap}.strategy-record-table th:first-child,.strategy-record-table td:first-child{padding-left:var(--financial-table-edge-inset)}.strategy-record-table th:last-child,.strategy-record-table td:last-child{padding-right:var(--financial-table-edge-inset)}.strategy-record-table th{height:32px;background:var(--surface-soft);color:var(--text-muted);font-size:11px;font-weight:650}.strategy-record-table tbody tr:last-child td{border-bottom:0}.strategy-record-table tbody tr:hover td{background:var(--surface-soft)}.strategy-record-table .numeric-cell{color:var(--text);font-family:var(--font-mono);text-align:left}.strategy-record-table th.numeric-cell{color:var(--text-muted);font-family:inherit;text-align:left}.strategy-record-table time,.strategy-record-table .record-id{font-family:var(--font-mono)}.strategy-record-table .record-emphasis,.strategy-record-table td strong{color:var(--text);font-weight:650}.strategy-record-table .record-denominator,.strategy-record-table .record-secondary,.strategy-record-table .record-arrow{color:var(--text-muted)}.strategy-record-table .record-secondary{display:block;margin-top:3px;font-size:10px}.strategy-record-table .record-buy{color:var(--primary);font-weight:700}.strategy-record-table .record-sell{color:var(--danger);font-weight:700}.strategy-record-status{color:var(--text-secondary);font-weight:600}.strategy-record-status.waiting{color:var(--warning)}.strategy-record-status.error{color:var(--danger)}.strategy-record-table .positive{color:var(--primary)}.strategy-record-table .negative{color:var(--danger)}.strategy-record-table .record-net{font-weight:700}.strategy-record-table .record-id{font-size:9px;overflow-wrap:anywhere;white-space:normal}.strategy-record-table-cycles tr.selected td,.strategy-record-table-adjustments tr.selected td,.strategy-record-table-cycles .strategy-record-expand-row td,.strategy-record-table-adjustments .strategy-record-expand-row td{background:var(--surface-soft)}.strategy-record-table .strategy-record-expand-row td{height:auto;padding:0;white-space:normal}.strategy-record-cycle-detail,.strategy-record-adjustment-detail{margin:0;padding:12px 0}.strategy-record-cycle-legs{display:grid;grid-template-columns:calc(20% + (80% - var(--record-detail-action-column-width)) / 3) minmax(0,1fr)}.strategy-record-cycle-legs .cycle-leg-result+.cycle-leg-result{padding-inline:var(--financial-table-cell-inset) var(--financial-table-edge-inset);border-left:1px solid var(--border-subtle)}.strategy-record-cycle-legs .cycle-leg-result:first-child{padding-inline:var(--financial-table-edge-inset) 12px}.strategy-record-cycle-summary{display:grid;grid-template-columns:20% repeat(3,minmax(0,1fr)) var( --record-detail-action-column-width );margin:10px 0 0;padding-top:10px;border-top:1px solid var(--border-subtle)}.strategy-record-cycle-summary>div{padding-inline:var(--financial-table-cell-inset)}.strategy-record-cycle-summary>div:first-child{padding-left:var(--financial-table-edge-inset)}.strategy-record-cycle-summary div,.strategy-record-adjustment-detail div{min-width:0}.strategy-record-cycle-summary dt,.strategy-record-adjustment-detail dt{color:var(--text-muted);font-size:9px}.strategy-record-cycle-summary dd,.strategy-record-adjustment-detail dd{margin:4px 0 0;color:var(--text);font-family:var(--font-mono);font-size:10px;overflow-wrap:anywhere}.strategy-record-adjustment-detail{display:grid;grid-template-columns:20% repeat(2,minmax(0,1fr)) var( --record-detail-action-column-width )}.strategy-record-adjustment-detail>div{padding-inline:var(--financial-table-cell-inset)}.strategy-record-adjustment-detail>div:first-child{padding-left:var(--financial-table-edge-inset)}.strategy-record-adjustment-detail>div:nth-child(2){grid-column:3}.strategy-record-concept{--record-leading-inset: var(--financial-table-cell-inset)}.strategy-record-concept .strategy-record-table-tasks,.strategy-record-concept .strategy-record-table-orders{min-width:660px;table-layout:fixed}.strategy-record-concept .strategy-record-table-tasks th:first-child{width:20%}.strategy-record-concept .strategy-record-table-tasks th:nth-child(2){width:12%}.strategy-record-concept .strategy-record-table-tasks th:nth-child(3){width:14%}.strategy-record-concept .strategy-record-table-tasks th:last-child{width:75px}.strategy-record-concept .strategy-record-table-orders th:first-child{width:120px}.strategy-record-concept .strategy-record-table-orders th:nth-child(2){width:80px}.strategy-record-concept .strategy-record-table-orders th:nth-child(3){width:175px}.strategy-record-concept .strategy-record-table-orders th:last-child{width:160px}.strategy-record-concept .strategy-record-table th,.strategy-record-concept .strategy-record-table td{padding-inline:var(--record-leading-inset)}.strategy-record-concept .strategy-record-table th:first-child,.strategy-record-concept .strategy-record-table td:first-child{padding-left:var(--financial-table-edge-inset)}.strategy-record-concept .strategy-record-table th:last-child,.strategy-record-concept .strategy-record-table td:last-child{padding-right:var(--financial-table-edge-inset)}.strategy-record-concept .strategy-record-table-orders td:not(:only-child){white-space:nowrap}.strategy-record-concept .strategy-record-table .numeric-cell{white-space:nowrap}.strategy-record-quantity:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.strategy-record-quantity{position:relative}.strategy-record-quantity-full{display:none;position:absolute;z-index:2;top:calc(100% + 5px);right:0;padding:5px 7px;border:1px solid var(--border);border-radius:4px;background:var(--surface-raised);color:var(--text);box-shadow:0 4px 12px #0000001f;white-space:nowrap}.strategy-record-quantity:hover .strategy-record-quantity-full,.strategy-record-quantity:focus-visible .strategy-record-quantity-full{display:block}.strategy-record-concept .strategy-record-table tr.selected td{background:var(--surface-soft)}.strategy-record-concept .strategy-record-table .strategy-record-concept-detail-row td{height:auto;padding:0;background:var(--surface-soft);white-space:normal}.strategy-record-concept-identity strong{display:inline-block}.strategy-record-concept-venue{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}.strategy-record-concept-venue .market-venue-icon.compact{flex:0 0 16px;width:16px;height:16px;border-radius:4px}.strategy-record-concept-venue .market-venue-icon.compact img{width:12px;height:12px}.strategy-record-concept-venue>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis}.strategy-record-concept-operation{flex:none;color:var(--muted)}.strategy-record-concept-operation:before{content:"·";margin-right:5px}.strategy-record-concept-state-action{display:flex;align-items:center;justify-content:space-between;gap:6px;white-space:nowrap}.strategy-record-concept-order-state{color:var(--text-secondary)}.strategy-record-concept-link{min-height:20px;padding:0;border:0;background:transparent;color:var(--primary);font-size:11px;font-weight:650;cursor:pointer}.strategy-record-concept-link:hover{text-decoration:underline}.strategy-record-concept-link:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.strategy-record-concept-legs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.strategy-record-concept-leg{min-width:0;padding:13px var(--financial-table-edge-inset)}.strategy-record-concept-leg+.strategy-record-concept-leg{border-left:1px solid var(--border-subtle)}.strategy-record-concept-leg-heading,.strategy-record-concept-order>div:first-child{display:flex;justify-content:space-between;gap:8px}.strategy-record-concept-leg-heading strong,.strategy-record-concept-order strong{color:var(--text)}.strategy-record-concept-leg-heading span,.strategy-record-concept-order span,.strategy-record-concept-order small{color:var(--muted)}.strategy-record-concept-order{display:grid;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border-subtle);font-variant-numeric:tabular-nums}.strategy-record-concept-order small,.strategy-record-concept-fill{font-family:var(--font-mono);font-size:9px}.strategy-record-concept-fill{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px;color:var(--text-secondary)}.strategy-record-concept-fill time{color:var(--muted);white-space:nowrap}.strategy-record-event-time{position:relative;display:inline-block}.strategy-record-event-time:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.strategy-record-event-time-exact{display:none;position:absolute;z-index:2;top:calc(100% + 5px);left:0;padding:5px 7px;border:1px solid var(--border);border-radius:4px;background:var(--surface-raised);color:var(--text);box-shadow:0 4px 12px #0000001f;white-space:nowrap}.strategy-record-event-time:hover .strategy-record-event-time-exact,.strategy-record-event-time:focus-visible .strategy-record-event-time-exact{display:block}.strategy-record-concept-fill-facts{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px}.strategy-record-concept-fill-facts>span{display:inline-flex;gap:4px;white-space:nowrap}.strategy-record-concept-fill-facts strong{color:var(--text);font-weight:600}.strategy-record-concept-fill-list>.strategy-record-concept-fill{padding:8px var(--financial-table-edge-inset);border-bottom:1px solid var(--border-subtle)}.strategy-record-concept-fill-list>.strategy-record-concept-fill:last-child{border-bottom:0}.strategy-record-concept-fill-list p{padding:10px var(--financial-table-edge-inset)}.strategy-record-linked-notice{grid-column:1 / -1;margin:0;padding:14px var(--financial-table-edge-inset);color:var(--text-secondary)}.strategy-record-linked-more{min-height:32px;margin:0 var(--financial-table-edge-inset) 8px;padding:4px 8px;border:1px solid var(--border);border-radius:4px;color:var(--text-secondary);background:var(--surface);font-size:10px;cursor:pointer}.strategy-record-linked-more:hover:not(:disabled){color:var(--text);border-color:var(--primary)}.strategy-record-linked-more:focus-visible{outline:2px solid var(--primary);outline-offset:2px}@media(max-width:520px){.strategy-record-concept{--record-leading-inset: 10px}.strategy-record-concept .strategy-record-table-tasks,.strategy-record-concept .strategy-record-table-tasks tbody,.strategy-record-concept .strategy-record-table-orders,.strategy-record-concept .strategy-record-table-orders tbody{display:block;width:100%;min-width:0}.strategy-record-concept .strategy-record-table-tasks thead,.strategy-record-concept .strategy-record-table-orders thead{display:none}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row),.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row){display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:7px 9px;padding:10px;border-bottom:1px solid var(--border-subtle)}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row){grid-template-columns:76px 40px minmax(0,1fr) 70px}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row) td,.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td{padding:0;border:0}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row) td:nth-child(3){grid-column:3}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row) td:nth-child(4){grid-column:1 / 3;grid-row:2}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row) td:nth-child(5){grid-column:3 / 5;grid-row:2;text-align:left}.strategy-record-concept .strategy-record-table-tasks tr:not(.strategy-record-concept-detail-row) td:nth-child(6){grid-column:4;grid-row:1}.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(2){grid-column:2;grid-row:1}.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(3){grid-column:1 / 3;grid-row:2}.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(4){grid-column:3;grid-row:2;text-align:left}.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(5){grid-column:3;grid-row:1}.strategy-record-concept .strategy-record-table-tasks .strategy-record-concept-detail-row,.strategy-record-concept .strategy-record-table-orders .strategy-record-concept-detail-row{display:block}.strategy-record-concept .strategy-record-table-tasks .strategy-record-concept-detail-row td,.strategy-record-concept .strategy-record-table-orders .strategy-record-concept-detail-row td{display:block;width:100%}.strategy-record-concept-legs{grid-template-columns:1fr}.strategy-record-concept-leg+.strategy-record-concept-leg{border-top:1px solid var(--border-subtle);border-left:0}.strategy-record-concept-leg{padding-inline:10px}.strategy-record-concept-fill-list>.strategy-record-concept-fill{padding-inline:10px}.strategy-record-concept-fill-list p,.strategy-record-linked-notice{padding-inline:10px}.strategy-record-linked-more{margin-inline:10px}}@media(max-width:560px){.strategy-record-table-cycles,.strategy-record-table-cycles tbody,.strategy-record-table-adjustments,.strategy-record-table-adjustments tbody{display:block;width:100%;min-width:0}.strategy-record-table-cycles thead,.strategy-record-table-adjustments thead{display:none}.strategy-record-table-cycles tr:not(.strategy-record-expand-row),.strategy-record-table-adjustments tr:not(.strategy-record-expand-row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:10px;border-bottom:1px solid var(--border-subtle)}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td,.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td{display:block;padding:0;border:0}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:before,.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td:before{content:attr(data-label);display:block;margin-bottom:2px;color:var(--text-muted);font-family:var(--font-sans);font-size:9px;font-weight:600}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:first-child,.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td:first-child{grid-column:1;grid-row:1}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:last-child,.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td:last-child{grid-column:2;grid-row:1}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:nth-child(2),.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:nth-child(3),.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td:nth-child(2),.strategy-record-table-adjustments tr:not(.strategy-record-expand-row) td:nth-child(3){grid-row:2}.strategy-record-table-cycles tr:not(.strategy-record-expand-row) td:nth-child(4){grid-column:1 / -1;grid-row:3}.strategy-record-table-cycles .strategy-record-expand-row,.strategy-record-table-adjustments .strategy-record-expand-row,.strategy-record-table-cycles .strategy-record-expand-row td,.strategy-record-table-adjustments .strategy-record-expand-row td{display:block;width:100%}.strategy-record-cycle-legs{grid-template-columns:1fr}.strategy-record-cycle-detail{padding-inline:10px}.strategy-record-cycle-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.strategy-record-cycle-summary>div,.strategy-record-cycle-summary>div:first-child{padding-inline:0}.strategy-record-adjustment-detail{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-inline:10px}.strategy-record-adjustment-detail>div{padding-inline:0}.strategy-record-adjustment-detail>div:first-child{padding-left:0}.strategy-record-adjustment-detail>div:nth-child(2){grid-column:2}.strategy-record-cycle-legs .cycle-leg-result+.cycle-leg-result{padding:10px 0 0;border-top:1px solid var(--border-subtle);border-left:0}.strategy-record-cycle-legs .cycle-leg-result:first-child{padding:0 0 10px}}@media(max-width:380px){.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(3){grid-column:1 / 4}.strategy-record-concept .strategy-record-table-orders tr:not(.strategy-record-concept-detail-row) td:nth-child(4){grid-column:1 / 4;grid-row:3;text-align:left}}.cycle-leg-result{display:grid;gap:7px;min-width:0}.cycle-leg-heading{display:flex;justify-content:space-between;gap:8px;color:var(--text);overflow-wrap:anywhere}.cycle-leg-heading strong{font-weight:650}.cycle-leg-heading span{font-family:var(--font-mono);white-space:nowrap}.cycle-leg-executions{display:grid;gap:5px;margin:0}.cycle-leg-executions div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:3px 8px}.cycle-leg-executions dt{color:var(--text-muted);font-size:9px}.cycle-leg-executions dd{display:flex;flex-wrap:wrap;gap:4px 10px;margin:0;color:var(--text);font-family:var(--font-mono);font-size:9px}.cycle-leg-executions dd>span{color:var(--text-secondary)}.strategy-history-empty{min-height:42px;display:flex;align-items:center;margin:0;padding:0 10px;color:light-dark(#6d7176,#566477);font-size:10px}.repair-context{display:grid;gap:5px;padding:14px 20px;border-bottom:1px solid var(--border)}.repair-context strong{color:light-dark(#36393c,#cbd5df);font-size:11px}.repair-context span{color:light-dark(#606367,#6f7d90);font-family:var(--font-mono);font-size:9px}.inline-error{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:8px 12px;border:1px solid light-dark(#c5b9bc,#512630);border-radius:6px;color:light-dark(#802d3a,#eaaab4);background:light-dark(#f7f6f7,#1d0f14)}.inline-error button{border:0;color:light-dark(#372d2f,#ffc5ce);background:transparent;cursor:pointer}.data-notice{min-height:240px;display:grid;place-items:center;color:light-dark(#64676b,#687589)}.health-strip{min-height:64px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--border)}.health-strip>div{min-width:0;display:grid;align-content:center;gap:5px;padding:0 18px;border-right:1px solid var(--border)}.health-strip>div:last-child{border-right:0}.health-strip small{color:light-dark(#686c70,#5f6d80);font-size:9px}.health-strip strong{overflow:hidden;color:light-dark(#4b4e51,#9fabb9);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.account-row{min-height:64px;display:grid;grid-template-columns:1.25fr 1fr 1.2fr .8fr 1fr .7fr;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid light-dark(#d5d8dc,#151f29)}.account-row>div{min-width:0;display:grid;gap:5px}.mono{font-family:var(--font-mono)}.portfolio-overview{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.6fr);gap:4px;margin-top:8px}.portfolio-page>.page-heading{height:58px}.portfolio-page>.page-heading h1{font-size:21px}.portfolio-balance-overview,.portfolio-chart-overview{min-width:0;min-height:260px;display:grid;align-content:start;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.portfolio-balance-overview>header,.portfolio-chart-overview>header{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 16px;border-bottom:1px solid var(--border-subtle)}.portfolio-balance-overview header strong,.portfolio-chart-overview header strong{color:var(--text);font-size:13px}.portfolio-chart-overview>header{align-items:stretch}.portfolio-chart-tabs{gap:24px}.portfolio-chart-overview .performance-range-control{flex-shrink:0;align-self:center}.portfolio-chart-tabpanel{min-height:215px}.portfolio-chart-tabpanel:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.portfolio-chart-tabpanel .portfolio-performance-empty{min-height:145px}.portfolio-balance-overview header small{padding:3px 6px;border:1px solid var(--border);border-radius:4px;color:var(--text-secondary);font-size:9px}.portfolio-balance-overview dl{margin:0;padding:8px 16px}.portfolio-balance-overview dl>div{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border-subtle)}.portfolio-balance-overview dl>div:last-child{border-bottom:0}.portfolio-balance-overview dt{color:var(--text-secondary);font-size:11px}.portfolio-balance-overview dd{margin:0;color:var(--text);font-family:var(--font-mono);font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}.portfolio-balance-overview dd.positive,.portfolio-accounts-view td.positive,.portfolio-profits-view td.positive{color:var(--primary)}.portfolio-balance-overview dd.negative,.portfolio-accounts-view td.negative,.portfolio-profits-view td.negative{color:var(--danger)}.performance-range-control{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--border);border-radius:5px;background:var(--surface-soft)}.performance-range-control button{min-width:38px;height:25px;padding:0 7px;border:0;border-radius:3px;color:var(--muted);background:transparent;font-family:var(--font-mono);font-size:9px;cursor:pointer}.performance-range-control button:hover{color:var(--text-secondary)}.performance-range-control button[aria-pressed=true]{color:var(--text);background:var(--surface-control)}.portfolio-equity-chart,.strategy-performance-chart{min-height:215px;margin:0;padding:4px 8px 6px}.portfolio-financial-line-chart{position:relative;min-width:0;height:205px;cursor:crosshair}.portfolio-financial-chart-loading{height:205px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,var(--border-subtle) 48px,transparent 49px)}.portfolio-financial-line-chart:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.portfolio-financial-line-chart .interactive-chart-plot,.portfolio-financial-line-chart svg{width:100%;height:100%}.portfolio-financial-line-chart svg{overflow:visible}.portfolio-financial-grid text{fill:var(--muted);font-family:var(--font-mono);font-size:9px;font-variant-numeric:tabular-nums}.portfolio-financial-area{pointer-events:none}.financial-area-start.is-positive{stop-color:var(--primary);stop-opacity:.2}.financial-area-end.is-positive{stop-color:var(--primary);stop-opacity:.015}.financial-area-start.is-negative{stop-color:var(--danger);stop-opacity:.18}.financial-area-end.is-negative{stop-color:var(--danger);stop-opacity:.012}.portfolio-financial-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}.portfolio-financial-line.is-positive{stroke:var(--primary)}.portfolio-financial-line.is-negative{stroke:var(--danger)}.portfolio-financial-zero-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}.portfolio-financial-latest{color:var(--primary);pointer-events:none}.portfolio-financial-latest.is-negative{color:var(--danger)}.portfolio-financial-latest circle:not(.portfolio-financial-latest-halo){fill:currentColor;stroke:var(--surface);stroke-width:2;vector-effect:non-scaling-stroke}.portfolio-financial-latest-halo{fill:currentColor;opacity:.14}.portfolio-financial-line-chart .chart-inspection-marker{color:var(--primary)}.portfolio-financial-line-chart .chart-inspection-tooltip{z-index:1;box-shadow:0 8px 24px color-mix(in srgb,var(--text) 9%,transparent)}.portfolio-performance-line-chart .chart-inspection-tooltip span{color:var(--text-secondary);font-size:10px}.interactive-chart-plot{position:relative;min-width:0;cursor:crosshair}.interactive-chart-plot svg{display:block}.chart-inspection-marker{pointer-events:none}.chart-inspection-marker line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}.chart-inspection-marker circle{fill:currentColor}.chart-inspection-tooltip{position:absolute;top:6px;width:176px;max-width:calc(100% - 16px);display:grid;gap:6px;padding:9px 11px;border:1px solid var(--border);border-radius:4px;background:var(--surface-raised);color:var(--text);font-family:var(--font-mono);font-variant-numeric:tabular-nums;pointer-events:none}.chart-inspection-tooltip time{color:var(--text-secondary);font-size:10px}.chart-inspection-tooltip strong{overflow-wrap:anywhere;font-size:12px}.portfolio-performance-empty{min-height:175px;display:grid;place-items:center;padding:20px;color:var(--muted)}.portfolio-data-panel{min-width:0;margin-top:12px;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.portfolio-data-panel .empty-panel{min-height:180px}.portfolio-data-header{min-height:39px;display:flex;align-items:stretch;padding-inline:var(--financial-table-edge-inset);border-bottom:1px solid var(--border)}.portfolio-data-tabs{flex:1}.portfolio-data-tabpanel{min-height:240px}.portfolio-data-tabpanel:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.portfolio-table-scroll{width:100%;min-width:0;overflow-x:auto;scrollbar-gutter:stable}.portfolio-table-scroll table{width:100%;display:block;border-collapse:collapse;font-variant-numeric:tabular-nums}.portfolio-table-scroll thead,.portfolio-table-scroll tbody{display:block}.portfolio-table-scroll tr{display:grid;grid-template-columns:var(--portfolio-table-columns);justify-content:space-between;column-gap:var(--financial-table-column-gap);padding-inline:var(--financial-table-edge-inset);border-bottom:1px solid var(--border-subtle)}.portfolio-table-scroll thead tr{background:var(--surface-soft)}.portfolio-accounts-view{--portfolio-table-columns: minmax(150px, 220px) minmax(150px, 210px) minmax(85px, 115px) minmax(125px, 180px) minmax(145px, 200px) minmax(125px, 180px) minmax(80px, 95px)}.portfolio-profits-view{--portfolio-table-columns: minmax(110px, 140px) minmax(175px, 230px) minmax(145px, 190px) minmax(110px, 145px) minmax(125px, 170px) minmax(115px, 155px) minmax(125px, 170px) minmax(85px, 100px)}.portfolio-accounts-view table{min-width:1020px}.portfolio-profits-view table{min-width:1180px}.portfolio-table-scroll .portfolio-identity-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portfolio-table-scroll .portfolio-identity-cell:focus-visible,.portfolio-table-scroll .portfolio-exact-value:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.portfolio-table-scroll th,.portfolio-table-scroll td{height:38px;min-width:0;display:flex;align-items:center;padding:4px var(--financial-table-cell-inset);border-bottom:0;color:var(--text-secondary);font-size:11px;text-align:left;vertical-align:middle;white-space:nowrap}.portfolio-table-scroll th{height:30px;color:var(--muted);background:transparent;font-weight:600}.portfolio-table-scroll th:first-child,.portfolio-table-scroll td:first-child{padding-left:0}.portfolio-table-scroll th:last-child,.portfolio-table-scroll td:last-child{padding-right:0}.portfolio-table-scroll tbody tr:last-child{border-bottom:0}.portfolio-table-scroll tbody tr:hover{background:var(--surface-soft)}.portfolio-table-scroll td>strong{color:var(--text);font-size:11px;font-weight:600}.portfolio-table-scroll .portfolio-inline-meta{margin-left:8px;color:var(--muted);font-size:9px}.portfolio-table-scroll .omni-credential-expiry{display:inline-flex;align-items:center;margin-left:8px;padding:2px 4px;border:1px solid transparent;border-radius:4px;color:var(--muted);font-family:var(--font-mono);font-size:9px;line-height:1;white-space:nowrap}.portfolio-table-scroll .omni-credential-expiry.warning{border-color:color-mix(in srgb,var(--warning) 35%,transparent);background:color-mix(in srgb,var(--warning) 9%,transparent);color:var(--warning)}.portfolio-table-scroll .omni-credential-expiry.expired{border-color:color-mix(in srgb,var(--danger) 35%,transparent);background:color-mix(in srgb,var(--danger) 9%,transparent);color:var(--danger)}.portfolio-table-scroll .portfolio-exact-value{display:inline-block}.portfolio-table-scroll .numeric-cell{justify-content:flex-end;text-align:right}.portfolio-accounts-view th:last-child,.portfolio-accounts-view td:last-child{justify-content:flex-end;text-align:right}.portfolio-pair-separator{margin:0 5px;color:var(--muted)}.portfolio-load-more{min-height:42px;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:0 14px;border-top:1px solid var(--border-subtle);color:var(--muted);font-size:9px}.portfolio-refresh-action{min-width:56px}.statusbar{position:fixed;z-index:var(--z-sticky);inset:auto 0 0;height:var(--statusbar-height);min-height:var(--statusbar-height);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 14px;border-top:1px solid var(--border);color:light-dark(#696c71,#5f6c7e);background:light-dark(#eeeff1,#080d13);font-family:var(--font-mono);font-size:9px;letter-spacing:.02em}.statusbar>div{display:flex;align-items:center;gap:16px}.statusbar span{display:flex;align-items:center;gap:5px;white-space:nowrap}.statusbar i{width:4px;height:4px;border-radius:50%;background:light-dark(#6f7479,#526071)}.statusbar .connected{color:light-dark(#5b6361,#739b91)}.statusbar .connected i{background:var(--primary)}.statusbar .disconnected{color:light-dark(#675c5e,#a06670)}.statusbar .disconnected i{background:var(--danger)}.control-page{min-height:calc(100vh - var(--topbar-height) - var(--statusbar-height));padding:0 18px 36px}.control-heading{height:auto;min-height:104px}.control-heading .eyebrow{color:var(--primary);font-size:9px;font-weight:750;letter-spacing:.14em}.control-heading p{max-width:720px;color:light-dark(#5d5f63,#758397);font-size:11px;font-weight:500;letter-spacing:0;line-height:1.55;text-transform:none}.control-heading .secondary-action{min-height:34px;min-width:52px;padding:0 14px;white-space:nowrap}.control-page>.data-notice{min-height:52px;margin-top:14px;padding:12px 14px;border:1px solid var(--border);border-radius:6px;place-items:center start;background:light-dark(#f1f2f4,#0a1118)}.control-page>.danger-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;border-color:light-dark(#c0b3b6,#5a2934);color:light-dark(#802d3b,#e5a2ad);background:light-dark(#f6f5f5,#1b0e13)}.control-page>.danger-notice .danger-link{flex:none}.credential-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:18px}.credential-card,.settings-section{border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 10px 30px #0000001f}.credential-card>header,.settings-section>header{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--border)}.credential-card>header>div,.settings-section>header>div{display:grid;gap:4px}.credential-card>header span{color:light-dark(#63666b,#68768a);font-size:9px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.credential-card h2,.settings-section h2{margin:0;color:light-dark(#2e3135,#dce4ec);font-size:14px}.status-pill{min-height:24px;display:inline-flex;align-items:center;padding:0 9px;border:1px solid light-dark(#b5b9bd,#344150);border-radius:999px;font-size:9px!important;letter-spacing:0!important}.status-pill.ok{border-color:light-dark(#b8c5c2,#245448);color:var(--primary)!important;background:light-dark(#f3f5f5,#0b1b17)}.status-pill.idle{color:light-dark(#56595c,#8491a1)!important;background:light-dark(#f9f9fa,#111821)}.credential-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-bottom:1px solid var(--border)}.credential-meta>div{min-width:0;display:grid;gap:5px;padding:11px 16px;border-right:1px solid var(--border)}.credential-meta>div:last-child{border-right:0}.credential-meta dt{color:light-dark(#6b6f74,#59677a);font-size:9px}.credential-meta dd{min-width:0;margin:0;overflow:hidden;color:light-dark(#4e5b68,#aab5c2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.credential-guidance{margin:0;padding:10px 16px;border-bottom:1px solid var(--border);color:light-dark(#5e646b,#7f8d9e);background:light-dark(#f8f9f9,#0d141b);font-size:10px;line-height:1.55}.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.credential-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.form-field{min-width:0;display:grid;align-content:start;gap:6px;color:light-dark(#5d6064,#748296);font-size:10px;font-weight:650}.segmented-choice{min-width:0;margin:0;padding:0;border:0}.segmented-choice legend{padding:0 0 7px;color:light-dark(#5d6064,#748296);font-size:10px;font-weight:650}.segmented-choice-options,.strategy-permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid light-dark(#bfc3c7,#283746);border-radius:7px;background:light-dark(#f5f7f8,#0b141d)}.choice-card{position:relative;min-width:0;cursor:pointer}.choice-card+.choice-card{border-left:1px solid light-dark(#cfd6dc,#283746)}.choice-card input{position:absolute;width:1px;height:1px;opacity:0}.choice-card-face{min-height:38px;display:grid;align-content:center;padding:6px 10px;color:light-dark(#5d6064,#8b98a8);background:transparent}.choice-card-copy{min-width:0;display:flex;align-items:baseline;gap:8px}.choice-card-copy strong{color:light-dark(#353a3e,#d3dde6);font-size:12px;font-weight:650}.choice-card-copy small{font-size:10px;white-space:nowrap}.choice-card:hover .choice-card-face{background:light-dark(#edf1f3,#142330)}.choice-card input:checked+.choice-card-face{background:light-dark(#e7f5ef,#123027)}.choice-card input:checked+.choice-card-face strong{color:light-dark(#126d58,#a9e7d7);font-weight:700}.choice-card input:focus-visible+.choice-card-face{outline:2px solid var(--primary);outline-offset:-2px}.segmented-choice:disabled .choice-card,.choice-card:has(input:disabled){cursor:not-allowed}.choice-card input:disabled+.choice-card-face{opacity:.55}.form-field input,.form-field select{width:100%;height:36px;min-width:0;padding:0 10px;border:1px solid light-dark(#c0c4c8,#283644);border-radius:5px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#f2f5f7,#091017)}.form-field input:hover:not(:disabled),.form-field select:hover:not(:disabled){border-color:light-dark(#767c83,#405064)}.form-field input:disabled,.form-field select:disabled{color:light-dark(#6e7176,#576474);background:light-dark(#f3f4f5,#0c1219);cursor:not-allowed}.select-control-trigger{width:100%;min-width:0;height:36px;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border:1px solid light-dark(#c0c4c8,#283644);border-radius:5px;color:light-dark(#2e3135,#dce4ec);background:light-dark(#f2f5f7,#091017);font:inherit;font-size:12px;font-weight:600;text-align:left;cursor:pointer}.select-control-trigger:hover:not([data-disabled]),.select-control-trigger[data-state=open]{border-color:light-dark(#767c83,#405064)}.select-control-trigger:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.select-control-trigger[data-disabled]{color:light-dark(#6e7176,#576474);background:light-dark(#f3f4f5,#0c1219);cursor:not-allowed}.select-control-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-control-icon{width:14px;height:14px;flex:0 0 auto;display:grid;place-items:center;color:light-dark(#5f6b77,#aab5c2)}.select-control-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.select-control-content{z-index:calc(var(--z-dialog) + 2);width:var(--radix-select-trigger-width);max-height:min(280px,var(--radix-select-content-available-height));overflow:hidden;border:1px solid light-dark(#bfc3c7,#344354);border-radius:7px;background:var(--surface-raised);box-shadow:0 12px 28px #00000038}.select-control-viewport{padding:4px}.select-control-item{position:relative;min-height:34px;display:flex;align-items:center;padding:6px 28px 6px 10px;border-radius:4px;color:var(--text);font-size:12px;font-weight:600;outline:0;cursor:pointer}.select-control-item[data-highlighted]{background:var(--surface-soft)}.select-control-item[data-state=checked]{color:var(--primary)}.select-control-item[data-disabled]{opacity:.45;cursor:not-allowed}.select-control-indicator{position:absolute;right:10px;color:var(--primary);font-size:12px}.secret-input{position:relative;display:block}.secret-input input{padding-right:48px}.secret-input button{position:absolute;top:1px;right:1px;height:34px;padding:0 10px;border:0;border-left:1px solid light-dark(#c0c4c8,#283644);color:light-dark(#5d6064,#738297);background:light-dark(#eef2f5,#0d151e);cursor:pointer}.secret-input button:hover:not(:disabled){color:light-dark(#393c3f,#c5cfda)}.secret-input button:disabled{color:light-dark(#73777b,#4f5b69);cursor:not-allowed}.credential-form>footer{grid-column:1 / -1;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding-top:4px}.credential-form .primary-action,.settings-actions .primary-action{min-width:130px;padding:0 16px}.danger-link{border:0;color:light-dark(#802d3c,#d97d8d);background:transparent;cursor:pointer}.danger-link:hover:not(:disabled){color:light-dark(#95182e,#ff9cad)}.danger-link:disabled{color:light-dark(#827a7e,#5a4550);cursor:not-allowed}.credential-form .inline-error,.credential-form .inline-success{grid-column:1 / -1;margin:0}.inline-success{min-height:42px;display:flex;align-items:center;padding:8px 12px;border:1px solid light-dark(#b8c5c2,#245448);border-radius:6px;color:light-dark(#2d806b,#84cfbc);background:light-dark(#f3f5f5,#0b1b17)}.settings-form{display:grid;gap:14px;padding-top:18px}.recovery-section{margin-top:18px}.recovery-section>header .status-pill.recovery-blocked{border-color:light-dark(#8b7378,#6b303c);color:light-dark(#832b3a,#e998a6);background:light-dark(#f8f7f7,#1d1014)}.recovery-empty{min-height:54px;display:flex;align-items:center;padding:12px 16px;color:light-dark(#63666b,#68768a);font-size:10px}.recovery-list{display:grid}.recovery-row{display:grid;grid-template-columns:minmax(230px,1.25fr) minmax(280px,1fr) auto;align-items:center;gap:16px;padding:13px 16px}.recovery-row+.recovery-row{border-top:1px solid var(--border)}.recovery-scope{min-width:0;display:grid;gap:4px}.recovery-kind{color:light-dark(#802d3c,#c87080);font-family:var(--font-mono);font-size:8px;font-weight:750;letter-spacing:.12em}.recovery-scope strong{overflow-wrap:anywhere;color:light-dark(#313437,#d6dee7);font-family:var(--font-mono);font-size:10px;font-variant-numeric:tabular-nums}.recovery-scope small,.recovery-row>footer>span{color:light-dark(#5a5d60,#7d8999);font-size:9px;line-height:1.5}.recovery-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.recovery-facts>div{min-width:0;display:grid;gap:4px;padding:0 10px;border-left:1px solid var(--border)}.recovery-facts dt{color:light-dark(#686c70,#5f6d80);font-size:8px}.recovery-facts dd{margin:0;color:light-dark(#3f4245,#b9c3ce);font-family:var(--font-mono);font-size:9px;font-variant-numeric:tabular-nums}.recovery-evidence{grid-column:1 / -1;padding-top:2px}.recovery-evidence summary{width:max-content;color:light-dark(#5d5f63,#758397);font-size:9px;cursor:pointer}.recovery-evidence>div{display:grid;gap:7px;margin-top:9px;padding:10px;border:1px solid light-dark(#c4c8cb,#25313e);border-radius:5px;background:light-dark(#f1f2f4,#0a1118)}.recovery-evidence p{min-width:0;display:grid;grid-template-columns:minmax(120px,.7fr) minmax(220px,1.5fr) minmax(160px,1fr);gap:12px;margin:0;color:light-dark(#5e6165,#718095);font-size:9px}.recovery-evidence code{overflow-wrap:anywhere;color:light-dark(#44474a,#aeb9c6)}.recovery-evidence small{color:light-dark(#65686d,#657286)}.recovery-row>footer{display:grid;justify-items:end;gap:5px}.recovery-row>footer .danger-action{min-height:34px;padding:0 12px;white-space:nowrap}.settings-section>header p{margin:0;color:light-dark(#65686d,#657286);font-size:10px}.settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}.switch-stack{border-top:1px solid var(--border)}.switch-row{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 16px;color:light-dark(#45474a,#aeb8c4);cursor:pointer}.switch-row+.switch-row{border-top:1px solid var(--border)}.switch-row>span{display:grid;gap:3px}.switch-row strong{font-size:11px}.switch-row small{color:light-dark(#66696d,#647185);font-size:9px;line-height:1.5}.switch-row input{width:34px;height:18px;flex:0 0 auto;accent-color:var(--primary);cursor:pointer}.settings-form>.inline-error,.settings-form>.inline-success{margin:0}.settings-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px}.settings-actions>span{color:light-dark(#676a6f,#617084);font-size:9px}.fatal-error{min-height:100vh;display:grid;place-items:center;padding:24px;color:var(--text);background:var(--background)}.fatal-error>div{width:min(560px,100%);padding:30px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 24px 80px #0008}.fatal-error p{margin:0 0 9px;color:var(--primary);font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.fatal-error h1{margin:0 0 14px;font-size:24px}.fatal-error span{display:block;color:light-dark(#4d5053,#9ca8b6);line-height:1.65}.fatal-error button{margin-top:22px;padding:10px 16px;border:0;border-radius:5px;color:#06100d;background:var(--primary);font-weight:700;cursor:pointer}@media(max-width:900px){.portfolio-overview{grid-template-columns:1fr}}@media(max-width:1080px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-row{grid-template-columns:minmax(220px,1fr) minmax(260px,1fr)}.recovery-row>footer{grid-column:1 / -1}.terminal-grid{grid-template-columns:minmax(420px,1fr) 260px;grid-template-rows:624px auto}.order-panel{grid-column:1 / -1}.order-panel .empty-panel{min-height:230px}.order-form{width:min(460px,100%)}.strategy-pair-route{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)}.strategy-form-grid.trigger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.modal-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.strategy-detail-dialog{width:min(600px,calc(100vw - 24px));height:min(880px,calc(100dvh - 24px));border:1px solid var(--border);border-radius:10px}}@media(max-width:720px){:root{--topbar-height: calc( var(--topbar-primary-row-height) + var(--topbar-nav-row-height) )}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:var(--topbar-primary-row-height) var(--topbar-nav-row-height)}.brand{grid-row:1;min-width:0;padding-left:16px}.top-actions{grid-row:1;padding-right:9px}.notification-popover{position:fixed;top:var(--topbar-primary-row-height);right:9px;left:9px;width:auto;max-height:calc(100vh - var(--topbar-primary-row-height) - 10px)}.notification-list{max-height:calc(100vh - var(--topbar-primary-row-height) - 57px)}.engine-badge{padding:0 8px}.engine-badge svg{display:none}.topbar-nav{grid-column:1 / -1;grid-row:2;overflow-x:auto;padding:0 8px;border-top:1px solid var(--border)}.topbar-nav-workspaces,.topbar-nav-management{flex:0 0 auto}.topbar-nav-management{margin-left:12px}.topbar-nav a{justify-content:center;padding:0 12px}.system-banner{align-items:start}.system-banner>div{display:grid;gap:4px}.market-header{height:var(--trade-primary-row-height);min-height:var(--trade-primary-row-height);flex-wrap:nowrap;gap:10px;padding-block:0}.market-picker-trigger{width:fit-content;min-width:0;max-width:100%;flex:0 1 auto}.market-stats{order:initial;width:auto;overflow-x:auto;justify-content:flex-start;gap:16px;padding-block:3px}.market-stat-volume,.market-stat-open-interest{display:grid!important}.market-picker-dialog{min-height:0}.market-search-row{padding-inline:13px 9px}.market-primary-tabs,.market-venue-tabs{padding-inline:13px}.market-picker-hints{gap:14px;padding-inline:13px}.terminal-grid{display:block}.terminal-grid>*+*{margin-top:4px}.terminal-panel{min-height:330px}.market-workspace-panel{display:block}.chart-panel{height:360px}.chart-stage{height:258px}.chart-host{left:0}.chart-drawing-overlay{inset:0;width:100%}.chart-drawing-rail{inset:5px auto auto 6px;width:calc(100% - 12px);height:38px;flex-direction:row;justify-content:flex-start;gap:2px;overflow-x:auto;overflow-y:hidden;padding:2px;border:0;border-radius:7px;background:color-mix(in srgb,var(--surface) 90%,transparent);scrollbar-width:none}.chart-drawing-rail::-webkit-scrollbar{display:none}.chart-tool-button{width:34px;height:34px;flex-basis:34px}.chart-tool-button:after{display:none}.chart-tool-separator{width:1px;height:18px;flex-basis:1px;margin:0 3px}.order-form{width:100%}.orderbook-panel .empty-panel{min-height:280px}.trade-activity-grid{flex:none;grid-template-columns:minmax(0,1fr) clamp(160px,28vw,200px)}.trade-activity-panel{height:338px}.trade-activity-header{min-height:77px;flex-wrap:wrap;align-content:center;gap:2px 8px;padding:4px var(--financial-table-edge-inset) 7px}.trade-activity-tabs{flex:1 0 100%;min-height:32px;gap:16px}.trade-activity-actions{width:100%;margin-left:0}.activity-account-filter{min-width:0;flex:1}.activity-account-filter .activity-account-select{width:auto;flex:1}.trade-account-summary{height:338px}.trade-account-summary>header,.trade-account-summary .stat-list{padding-inline:9px}.trade-account-summary .stat-list{overflow-y:auto}.trade-account-summary .stat-list>div{gap:6px}.trade-account-summary .stat-list-footer{padding-inline:9px}.page,.control-page{padding-inline:12px}.control-heading{align-items:flex-start;padding-block:18px}.credential-grid,.credential-form,.settings-grid,.recovery-row{grid-template-columns:1fr}.recovery-facts>div:first-child{padding-left:0;border-left:0}.recovery-evidence,.recovery-row>footer{grid-column:auto}.recovery-evidence p{grid-template-columns:1fr;gap:4px}.recovery-row>footer{justify-items:stretch}.recovery-row>footer .danger-action{width:100%;white-space:normal}.credential-meta{grid-template-columns:1fr}.credential-meta>div{border-right:0;border-bottom:1px solid var(--border)}.credential-meta>div:last-child{border-bottom:0}.settings-actions{align-items:stretch;flex-direction:column}.settings-actions .primary-action{width:100%}.page-heading h1{font-size:21px}.strategy-pair-route{grid-template-columns:1fr;gap:10px}.strategy-pair-axis{min-height:46px;flex-direction:row;padding:2px 4px}.strategy-market-swap{width:38px;height:38px}.strategy-workbench-grid{grid-template-columns:1fr}.strategy-config-stack{border-right:0}.strategy-submit-block{justify-content:space-between}.portfolio-chart-overview>header{flex-wrap:wrap;gap:0;padding-bottom:8px}.portfolio-chart-tabs{min-height:40px}.portfolio-chart-tabpanel{min-height:251px}.performance-range-control{width:100%}.performance-range-control button{flex:1}.strategy-form-grid.trigger-grid{grid-template-columns:1fr}.spread-grid-editor>footer{align-items:flex-start;flex-wrap:wrap;padding-block:8px}.strategy-threshold-lane{grid-template-columns:auto 1fr auto}.strategy-threshold-lane i:last-of-type,.strategy-threshold-lane strong{display:none}.strategy-tabs{height:auto;min-height:39px;flex-wrap:wrap;gap:0}.strategy-tablist{height:39px}.strategy-list-tools{width:100%;height:38px;justify-content:flex-end;margin-left:0;border-top:1px solid var(--border-subtle)}.strategy-view-switch{display:none}.strategy-card-grid{grid-template-columns:minmax(0,1fr);padding:7px}.position-adjustment-grid{grid-template-columns:1fr}.strategy-create-actions{align-items:stretch;flex-direction:column}.strategy-create-actions .primary-action{width:100%}.health-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.health-strip>div{min-height:58px;border-bottom:1px solid var(--border)}.health-strip>div:nth-child(2){border-right:0}.table-head{min-width:760px}.statusbar{overflow-x:auto}.statusbar>div:first-child span:nth-child(n+3){display:none}}@media(max-width:640px){.strategy-detail-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.strategy-detail-dialog .modal-dialog-header,.strategy-detail-tabpanel{padding-inline:12px}.strategy-detail-actions .row-action{min-width:0}.strategy-detail-summary>div{grid-template-columns:1fr;gap:4px}.strategy-detail-summary dd{text-align:left}}@media(max-width:420px){.strategy-position-route{grid-template-columns:1fr}.strategy-overview-leg+.strategy-overview-leg{border-left:0;border-top:1px solid var(--border-subtle)}.strategy-position-route:after{content:"↕"}.strategy-position-outcome{align-items:flex-start;flex-direction:column;gap:6px}.strategy-signal-detail{grid-template-columns:1fr}}@media(max-width:620px){.strategy-rule-heading{flex-wrap:wrap}.strategy-execution-data{grid-template-columns:1fr;gap:10px}.spread-grid-generator,.spread-grid-generator.is-action-in-heading{grid-template-columns:repeat(2,minmax(0,1fr))}.spread-grid-generator-action{grid-column:2}}@media(max-width:520px){.segmented-choice-options,.strategy-permission-options{grid-template-columns:1fr}.choice-card+.choice-card{border-top:1px solid light-dark(#cfd6dc,#283746);border-left:0}.choice-card-face{min-height:44px}.strategy-price-parameters>.strategy-form-grid.trigger-grid{grid-template-columns:1fr}.strategy-model-field{width:min(142px,40vw)}.spread-grid-generator-action{grid-column:1 / -1}}@media(forced-colors:active){*{scrollbar-color:auto}.state-chip,.order-gate,.side-switch button{forced-color-adjust:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.strategy-row.strategy-execution-feedback:after{opacity:.72;animation:none!important}}.authentication-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(var(--border-subtle) 1px,transparent 1px),linear-gradient(90deg,var(--border-subtle) 1px,transparent 1px),var(--background);background-size:48px 48px}.authentication-panel{width:min(100%,420px);padding:28px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.authentication-brand{display:flex;align-items:center;gap:10px;color:var(--text);font-family:"Avenor Manrope",var(--font-sans);font-size:13px;font-weight:700;letter-spacing:.09em}.authentication-brand .avenor-mark{width:24px;height:24px}.authentication-copy{margin-top:64px}.authentication-copy p{margin:0 0 8px;color:var(--primary);font:600 11px/1.4 var(--font-mono);letter-spacing:.08em}.authentication-copy h1{margin:0;color:var(--text);font-size:24px;line-height:1.25}.authentication-copy span{display:block;margin-top:10px;color:var(--text-secondary);font-size:13px;line-height:1.6}.authentication-action{min-height:44px;margin-top:28px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--primary);border-radius:6px;color:var(--background);background:var(--primary);font-size:13px;font-weight:650;text-decoration:none;cursor:pointer}.authentication-action:hover{filter:brightness(1.08)}.authentication-action:active{filter:brightness(.94)}.authentication-action:focus-visible,.topbar-sign-out:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.authentication-action svg{width:17px;height:17px}.authentication-note{margin:16px 0 0;color:var(--muted);font-size:11px;line-height:1.65}.topbar-sign-out{min-height:32px;display:inline-flex;align-items:center;padding:0 8px;border-radius:4px;color:var(--muted);font-size:12px;text-decoration:none;white-space:nowrap;cursor:pointer}.topbar-sign-out:hover{color:var(--text);background:var(--surface-control)}
