*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:JetBrains Mono,ui-monospace,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.right-0{right:0}.top-0{top:0}.top-3{top:.75rem}.z-30{z-index:30}.z-50{z-index:50}.z-\[999\]{z-index:999}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-20{width:5rem}.w-8{width:2rem}.w-80{width:20rem}.w-px{width:1px}.min-w-0{min-width:0}.max-w-\[1600px\]{max-width:1600px}.max-w-\[250px\]{max-width:250px}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.scroll-mt-24{scroll-margin-top:6rem}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem*var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-border{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.bg-bg{--tw-bg-opacity:1;background-color:rgb(10 14 20/var(--tw-bg-opacity,1))}.bg-border{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-card{--tw-bg-opacity:1;background-color:rgb(18 24 33/var(--tw-bg-opacity,1))}.bg-card2{--tw-bg-opacity:1;background-color:rgb(22 30 41/var(--tw-bg-opacity,1))}.bg-gray-900\/95{background-color:rgba(17,24,39,.95)}.bg-panel{--tw-bg-opacity:1;background-color:rgb(15 20 27/var(--tw-bg-opacity,1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-red-500{--tw-gradient-from:#ef4444 var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,68,68,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-yellow-500{--tw-gradient-to:#eab308 var(--tw-gradient-to-position)}.\!p-2\.5{padding:.625rem!important}.\!p-3{padding:.75rem!important}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\!py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pt-2{padding-top:.5rem}.pt-2\.5{padding-top:.625rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.tracking-wider{letter-spacing:.05em}.text-accent{--tw-text-opacity:1;color:rgb(34 211 238/var(--tw-text-opacity,1))}.text-dim{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-fg{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-muted{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{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)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.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)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:\!border-yellow-500:hover{--tw-border-opacity:1!important;border-color:rgb(234 179 8/var(--tw-border-opacity,1))!important}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-accent:focus{--tw-border-opacity:1;border-color:rgb(34 211 238/var(--tw-border-opacity,1))}

  html, body {
    background:#0a0e14; color:#e5e7eb;
    font-family:Inter, system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
  }
  .mono, .tabnum {
    font-family:'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }

  ::-webkit-scrollbar { width:8px; height:8px; }
  ::-webkit-scrollbar-track { background:#0a0e14; }
  ::-webkit-scrollbar-thumb { background:#1f2937; border-radius:4px; }
  ::-webkit-scrollbar-thumb:hover { background:#374151; }

  /* ========= КАРТОЧКА ========= */
  .coin-card { background:#121821; border:1px solid #1f2937; border-radius:14px; overflow:visible; }
  .sec { padding:12px 16px; border-bottom:1px solid #1f2937; position:relative; }
  .sec:last-child { border-bottom:0; }

  /* ========= ЗАГОЛОВКИ ========= */
  .panel-title {
    font-size:10px; text-transform:uppercase; letter-spacing:.08em;
    color:#6b7280; font-weight:600;
    display:inline-flex; align-items:center; gap:6px;
  }
  .panel-title .wid {
    color:#22d3ee; font-family:'JetBrains Mono',monospace; font-size:9px;
    background:rgba(34,211,238,.12); padding:1px 5px; border-radius:3px;
  }
  .panel-title .q {
    display:inline-flex; align-items:center; justify-content:center;
    width:14px; height:14px; border-radius:50%;
    border:1px solid #2a3441; color:#6b7280; font-size:9px; cursor:help;
    font-family:'JetBrains Mono',monospace;
  }
  .panel-title .q:hover { color:#22d3ee; border-color:#22d3ee; }

  .block-h {
    font-size:11px; text-transform:uppercase; letter-spacing:.12em;
    color:#9ca3af; font-weight:700;
    background:linear-gradient(90deg, #1a222d 0%, transparent 70%);
    padding:5px 10px; border-radius:4px;
    display:inline-flex; align-items:center; gap:8px;
    margin-bottom:8px;
  }
  .block-h .num {
    width:18px; height:18px; border-radius:4px;
    background:#22d3ee; color:#0a0e14;
    display:inline-flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:700;
  }

  /* ========= СЕГМЕНТНЫЙ TIMELINE ========= */
  .seg-timeline { display:grid; grid-template-columns:repeat(5,1fr); gap:3px; }
  .seg { height:10px; border-radius:3px; position:relative; z-index:1; }
  .seg.r { background:linear-gradient(90deg,#991b1b,#ef4444); }
  .seg.r2 { background:linear-gradient(90deg,#7f1d1d,#dc2626); }
  .seg.y { background:linear-gradient(90deg,#92400e,#f59e0b); }
  .seg.g { background:linear-gradient(90deg,#065f46,#10b981); }
  .seg-labels {
    display:grid; grid-template-columns:repeat(5,1fr); gap:3px;
    font-family:'JetBrains Mono',monospace; font-size:10px; color:#6b7280;
    margin-bottom:4px;
  }

  /* ========= КОЛЬЦА Score / Verdict ========= */
  .ring-svg { width:110px; height:110px; }
  .ring-label {
    font-size:10px; letter-spacing:.16em; font-weight:800;
    font-family:'JetBrains Mono',monospace;
    text-align:center;
  }

  /* ========= BENTO ========= */
  .bento {
    background:#161e29; border:1px solid #1f2937; border-radius:8px;
    padding:10px 12px; transition:border-color .15s, z-index 0s;
    position:relative; z-index:1;
  }
  .bento:hover { border-color:#2a3441; z-index:20; }
  .bento.r { border-left:3px solid #ef4444; }
  .bento.y { border-left:3px solid #f59e0b; }
  .bento.g { border-left:3px solid #10b981; }
  .bento .b-lbl {
    font-size:10px; color:#6b7280; text-transform:uppercase;
    letter-spacing:.06em; display:flex; align-items:center; gap:4px;
    margin-bottom:4px;
  }
  .bento .b-val {
    font-family:'JetBrains Mono',monospace; font-size:18px; font-weight:700;
    line-height:1.1; display:inline-flex; align-items:center; gap:6px;
    font-variant-numeric: tabular-nums;
  }
  .bento .b-sub { font-size:10px; color:#9ca3af; margin-top:2px; }
  .bento .b-row { display:flex; align-items:center; justify-content:space-between; gap:6px; }
  .bento .spark { width:60px; height:22px; flex-shrink:0; }

  /* ========= ИКОНКИ ========= */
  .ico { width:12px; height:12px; flex-shrink:0; }
  .ico-lg { width:14px; height:14px; flex-shrink:0; }
  .ico-xl { width:16px; height:16px; flex-shrink:0; }

  /* ========= PILLS ========= */
  .pill {
    display:inline-flex; align-items:center; gap:4px;
    padding:2px 8px; border-radius:999px;
    font-size:11px; font-family:'JetBrains Mono',monospace;
    color:#9ca3af; border:1px solid #1f2937; background:#161e29;
    font-variant-numeric: tabular-nums;
  }
  .pill.r { color:#ef4444; border-color:rgba(239,68,68,.35); background:rgba(239,68,68,.08); }
  .pill.y { color:#f59e0b; border-color:rgba(245,158,11,.35); background:rgba(245,158,11,.08); }
  .pill.g { color:#10b981; border-color:rgba(16,185,129,.35); background:rgba(16,185,129,.08); }

  /* ========= ПЛЮСЫ/РИСКИ ========= */
  .pl-item {
    display:flex; gap:8px; align-items:flex-start;
    padding:5px 0; border-bottom:1px solid #161e29;
    font-size:12px; line-height:1.35;
  }
  .pl-item:last-child { border-bottom:0; }
  .pl-icon { flex-shrink:0; width:14px; height:14px; margin-top:2px; }

  /* ========= MINI-PANEL ========= */
  .mp {
    background:#161e29; border:1px solid #1f2937; border-radius:8px; padding:10px 12px;
    transition:border-color .15s;
    position:relative; z-index:1;
  }
  .mp:hover { border-color:#2a3441; z-index:20; }
  .mp-row { display:flex; justify-content:space-between; align-items:center; padding:3px 0; font-size:11px; font-family:'JetBrains Mono',monospace; font-variant-numeric: tabular-nums; }
  .mp-lbl { color:#6b7280; }
  .mp-bar { height:4px; border-radius:2px; background:#1a222d; overflow:hidden; }

  /* ========= УРОВНИ (Entry/TP/Stop) ========= */
  .lvl {
    background:#161e29; border:1px solid #1f2937; border-radius:8px;
    padding:10px 12px; position:relative;
  }
  .lvl-lbl { font-size:10px; color:#9ca3af; text-transform:uppercase; letter-spacing:.06em; display:flex; align-items:center; gap:5px; }
  .lvl-val { font-family:'JetBrains Mono',monospace; font-size:17px; font-weight:800; margin-top:2px; font-variant-numeric: tabular-nums; text-align:right; }
  .lvl-pnl { font-family:'JetBrains Mono',monospace; font-size:14px; font-weight:700; text-align:right; font-variant-numeric: tabular-nums; }
  .lvl-pct { font-family:'JetBrains Mono',monospace; font-size:10px; color:#9ca3af; text-align:right; font-variant-numeric: tabular-nums; }
  .lvl.entry { border-left:3px solid #58a6ff; }
  .lvl.tp1, .lvl.tp2, .lvl.tp3 { border-left:3px solid #10b981; }
  .lvl.sl { border-left:3px solid #ef4444; }

  /* ========= TF Score компактная полоса ========= */
  .tf-line {
    display:grid; grid-template-columns:repeat(6,1fr); gap:6px;
  }
  .tf-line .cell {
    background:#161e29; border:1px solid #1f2937; border-radius:6px;
    padding:6px 8px;
    transition: border-color .15s, transform .15s;
    display:grid; grid-template-rows:auto auto; gap:4px;
  }
  .tf-line .cell:hover { border-color:#2a3441; transform:translateY(-1px); }
  .tf-line .cell .top {
    display:flex; align-items:center; justify-content:space-between;
  }
  .tf-line .cell .tf {
    font-size:10px; color:#9ca3af; font-family:'JetBrains Mono',monospace;
    letter-spacing:.04em; font-weight:600;
  }
  .tf-line .cell .score {
    font-size:16px; font-weight:800; font-family:'JetBrains Mono',monospace; line-height:1;
    font-variant-numeric: tabular-nums;
  }
  .tf-line .cell .bar {
    height:14px; background:#1a222d; border-radius:4px;
    position:relative; overflow:hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  }
  .tf-line .cell .bar > i {
    display:block; height:100%; border-radius:4px;
    box-shadow: 0 0 8px currentColor;
  }
  .tf-line .cell .bar > i.short { background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 40%, #ef4444 100%); }
  .tf-line .cell .bar > i.neut  { background: linear-gradient(90deg, #78350f 0%, #d97706 40%, #f59e0b 100%); }
  .tf-line .cell .bar > i.long  { background: linear-gradient(90deg, #064e3b 0%, #059669 40%, #10b981 100%); }
  .tf-line .cell .bar .lbl {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono',monospace;
    font-size:9px; font-weight:800; letter-spacing:.08em;
    color:#fff;
    text-shadow: 0 0 4px rgba(0,0,0,.9), 0 0 1px rgba(0,0,0,1);
    z-index:2;
  }

  /* ========= ШАПКА ========= */
  .hbar { background:linear-gradient(180deg,#0f141b 0%,#0a0e14 100%); }
  .chip {
    background:#161e29; border:1px solid #1f2937; color:#9ca3af;
    padding:5px 10px; border-radius:6px; font-size:11px; cursor:pointer; transition:all .12s;
  }
  .chip:hover { border-color:#2a3441; color:#e5e7eb; }
  .chip.on { border-color:#22d3ee; color:#22d3ee; background:rgba(34,211,238,.1); }

  /* ========= HISTORY DROPDOWN (выделенный в шапке) ========= */
  .history-box {
    display:flex; align-items:center; gap:8px;
    background:linear-gradient(90deg, rgba(34,211,238,.08) 0%, transparent 100%);
    border:1px solid rgba(34,211,238,.3);
    border-radius:8px;
    padding:4px 10px;
  }
  .history-box .hist-ico {
    font-size:13px; filter: drop-shadow(0 0 6px rgba(34,211,238,.4));
  }
  .history-box .hist-lbl {
    font-size:9px; text-transform:uppercase; letter-spacing:.1em;
    color:#22d3ee; font-weight:700; font-family:'JetBrains Mono',monospace;
  }
  .history-box select {
    background:#0a0e14; border:1px solid #1f2937; border-radius:5px;
    padding:4px 8px; font-size:11px;
    font-family:'JetBrains Mono',monospace; color:#e5e7eb;
    outline:none; cursor:pointer; min-width:200px;
  }
  .history-box select:focus { border-color:#22d3ee; }
  .history-box .arrow-btn {
    width:22px; height:22px; border-radius:4px;
    background:#0a0e14; border:1px solid #1f2937;
    color:#9ca3af; font-size:11px; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
  }
  .history-box .arrow-btn:hover { border-color:#22d3ee; color:#22d3ee; }

  /* ========= ТУЛТИПЫ ПРОСТЫЕ (data-tip) ========= */
  [data-tip] { position:relative; }
  [data-tip]:hover::after {
    content:attr(data-tip); position:absolute; bottom:calc(100% + 10px); left:50%;
    transform:translateX(-50%); background:#0a0e14; color:#e5e7eb;
    padding:11px 13px; border-radius:10px; border:1px solid #2a3441;
    font-size:11.5px; line-height:1.55;
    white-space:pre-wrap; max-width:340px; min-width:180px; width:max-content;
    z-index:200; pointer-events:none;
    box-shadow:0 12px 40px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.04);
    text-align:left; font-family:Inter, system-ui, sans-serif;
  }
  [data-tip]:hover::before {
    content:''; position:absolute; bottom:calc(100% + 3px); left:50%;
    transform:translateX(-50%);
    border:7px solid transparent; border-top-color:#2a3441;
    z-index:200;
  }
  g[data-tip] { cursor:help; }

  /* ========= RICH TOOLTIPS (HTML внутри, для ключевых виджетов) ========= */
  .tipw { position:relative; }
  .tipw > .tipp {
    position:absolute;
    bottom:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%) translateY(6px);
    /* user-spec: bg-gray-900/95 + backdrop-blur-md */
    background: rgba(17,24,39,0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border:1px solid #374151;
    border-radius:10px;
    padding:0;
    /* user-spec: max-w-[250px] + whitespace-normal */
    width: 250px;
    max-width: min(250px, 92vw);
    white-space: normal;
    word-wrap: break-word;
    box-shadow:0 20px 50px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.06);
    opacity:0; pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
    /* user-spec: z-[999]+ — поверх всего */
    z-index: 999;
    text-align:left;
  }
  .tipw:hover > .tipp { z-index: 9999 !important; }
  .tipw > .tipp::after {
    content:''; position:absolute;
    top:100%; left:50%; transform:translateX(-50%);
    border:7px solid transparent; border-top-color:#374151;
  }
  .tipw:hover > .tipp {
    opacity:1;
    transform:translateX(-50%) translateY(0);
    pointer-events:auto;
  }

  .tipp .tipp-head {
    display:flex; align-items:center; gap:8px;
    padding:10px 14px;
    border-bottom:1px solid #1f2937;
    background:linear-gradient(90deg, rgba(34,211,238,.06) 0%, transparent 100%);
  }
  .tipp .tipp-ico { font-size:16px; line-height:1; flex-shrink:0; }
  .tipp .tipp-title {
    font-size:12px; font-weight:700; letter-spacing:.05em;
    text-transform:uppercase; color:#e5e7eb;
    font-family:'JetBrains Mono',monospace;
  }
  .tipp .tipp-score {
    margin-left:auto; font-size:13px; font-weight:800;
    font-family:'JetBrains Mono',monospace;
    padding:1px 7px; border-radius:4px;
    font-variant-numeric: tabular-nums;
  }
  .tipp .tipp-score.r { color:#ef4444; background:rgba(239,68,68,.14); }
  .tipp .tipp-score.y { color:#f59e0b; background:rgba(245,158,11,.14); }
  .tipp .tipp-score.g { color:#10b981; background:rgba(16,185,129,.14); }
  .tipp .tipp-body {
    padding:10px 14px;
    font-size:12px; line-height:1.55; color:#cbd5e1;
    font-family:Inter, system-ui, sans-serif;
  }
  .tipp .tipp-body b { color:#e5e7eb; }
  .tipp .tipp-body .t-r { color:#ef4444; font-weight:700; }
  .tipp .tipp-body .t-y { color:#f59e0b; font-weight:700; }
  .tipp .tipp-body .t-g { color:#10b981; font-weight:700; }
  .tipp .tipp-body .t-a { color:#22d3ee; font-weight:700; }
  .tipp .tipp-body .t-d { color:#9ca3af; }
  .tipp .tipp-body .rule { height:1px; background:#1f2937; margin:8px 0; }
  .tipp .tipp-body ul { margin:4px 0 0 0; padding:0; list-style:none; }
  .tipp .tipp-body li {
    padding:2px 0; display:flex; gap:6px;
    font-family:'JetBrains Mono',monospace; font-size:11px;
  }
  .tipp .tipp-body li .tmarker { min-width:14px; }
  .tipp .tipp-footer {
    padding:8px 14px;
    border-top:1px solid #1f2937;
    display:flex; justify-content:space-between; align-items:center;
    font-size:11px; font-family:'JetBrains Mono',monospace;
    background:rgba(10,14,20,.6);
    border-radius: 0 0 10px 10px;
  }
  .tipp .tipp-footer .f-lbl { color:#6b7280; text-transform:uppercase; letter-spacing:.08em; font-size:10px; }
  .tipp .tipp-footer .f-dir {
    font-weight:800; letter-spacing:.08em; padding:2px 8px; border-radius:4px;
  }
  .tipp .tipp-footer .f-dir.r { color:#ef4444; background:rgba(239,68,68,.12); }
  .tipp .tipp-footer .f-dir.y { color:#f59e0b; background:rgba(245,158,11,.12); }
  .tipp .tipp-footer .f-dir.g { color:#10b981; background:rgba(16,185,129,.12); }

  /* ========= COLLAPSIBLES ========= */
  details.coll { background:#161e29; border:1px solid #1f2937; border-radius:8px; overflow:hidden; }
  details.coll[open] { border-color:#2a3441; }
  details.coll > summary {
    list-style:none; cursor:pointer; padding:8px 12px;
    display:flex; align-items:center; gap:10px;
    font-size:12px;
  }
  details.coll > summary::-webkit-details-marker { display:none; }
  details.coll > summary .chev { transition:transform .15s; color:#6b7280; font-family:'JetBrains Mono',monospace; }
  details.coll[open] > summary .chev { transform:rotate(90deg); color:#22d3ee; }
  details.coll > summary:hover { background:#1a222d; }
  details.coll .coll-body { padding:12px; border-top:1px solid #1f2937; font-size:12px; color:#9ca3af; }

  /* ========= ТРИГГЕР ========= */
  .trigger {
    background: radial-gradient(circle at 0% 0%, rgba(239,68,68,.10) 0%, transparent 60%),
                linear-gradient(180deg, #1a1115 0%, #121821 100%);
    border-bottom:1px solid #2a3441;
  }
  .verdict-stamp {
    font-family:'JetBrains Mono',monospace; font-weight:800;
    letter-spacing:.16em; padding:3px 10px; border-radius:5px;
    font-size:11px; border:2px solid;
  }
  .verdict-stamp.r { color:#ef4444; border-color:#ef4444; background:rgba(239,68,68,.08); }

  /* ========= PATTERN PILLS с z-index fix ========= */
  .pat-pill {
    display:inline-flex; align-items:center; gap:4px;
    padding:3px 10px; border-radius:6px;
    font-size:10px; font-family:'JetBrains Mono',monospace; font-weight:700;
    border:1px solid;
    position:relative; z-index:1;
    transition: transform .12s, z-index 0s;
  }
  .pat-pill:hover {
    z-index:150;
    transform: translateY(-2px);
  }
  .pat-pill.mega { color:#ef4444; border-color:rgba(239,68,68,.4); background:rgba(239,68,68,.1); }
  .pat-pill.trap { color:#f59e0b; border-color:rgba(245,158,11,.4); background:rgba(245,158,11,.1); }
  .pat-pill.rej  { color:#e91e63; border-color:rgba(233,30,99,.4); background:rgba(233,30,99,.1); }
  .pat-pill.dist { color:#9c27b0; border-color:rgba(156,39,176,.4); background:rgba(156,39,176,.1); }

  /* ========= Divergence bars ========= */
  .div-bar { display:flex; height:8px; border-radius:4px; overflow:hidden; }
  .div-bar > i { display:block; height:100%; }

  /* Глубокий блок */
  .deep-grid { display:grid; grid-template-columns: 7fr 5fr; gap:14px; }

  /* ========= МИКРО-АНИМАЦИИ ========= */
  @keyframes ring-pulse-r {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
    50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  }
  .pulse-r { animation: ring-pulse-r 1.6s ease-out infinite; }

  @keyframes dot-pulse {
    0%, 100% { opacity:1; transform:scale(1); }
    50% { opacity:.55; transform:scale(1.15); }
  }
  .dot-pulse { animation: dot-pulse 1.2s ease-in-out infinite; display:inline-block; }

  @keyframes soft-pulse {
    0%, 100% { opacity:1; }
    50% { opacity:.7; }
  }
  .soft-pulse { animation: soft-pulse 1.8s ease-in-out infinite; }

  /* Pulsing red circle (для MEGA SHORT marker etc.) */
  .pulse-dot {
    display:inline-block; width:8px; height:8px; border-radius:50%;
    background:#ef4444;
    box-shadow:0 0 0 0 rgba(239,68,68,.6);
    animation: ring-pulse-r 1.6s ease-out infinite;
  }

  /* ========= TEXT SUMMARY PLATE (Вердикт текстом под цифрами) ========= */
  .summary-plate {
    background: linear-gradient(90deg, rgba(31,41,55,0.5) 0%, rgba(31,41,55,0.25) 100%);
    border: 1px solid #1f2937;
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .summary-plate.r { border-left-color: #ef4444; }
  .summary-plate.y { border-left-color: #f59e0b; }
  .summary-plate.g { border-left-color: #10b981; }
  .summary-plate .sp-emoji {
    font-size: 20px; flex-shrink: 0; line-height: 1;
    letter-spacing: -2px;
  }
  .summary-plate .sp-text { color: #cbd5e1; flex: 1; }
  .summary-plate .sp-text b { color: #e5e7eb; }
  .summary-plate .sp-text .t-g { color: #10b981; font-weight: 600; }
  .summary-plate .sp-text .t-r { color: #ef4444; font-weight: 600; }
  .summary-plate .sp-text .t-y { color: #f59e0b; font-weight: 600; }
  .summary-plate .sp-text .t-a { color: #22d3ee; font-weight: 600; }
  .summary-plate .sp-tag {
    flex-shrink: 0;
    padding: 3px 10px; border-radius: 4px;
    font-size: 10px; font-weight: 800; letter-spacing: .08em;
    font-family: 'JetBrains Mono', monospace;
  }
  .summary-plate .sp-tag.g { color: #10b981; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3); }
  .summary-plate .sp-tag.r { color: #ef4444; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); }

  /* ========= EXPECTED DROP PLATE ========= */
  .expected-plate {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(239,68,68,.08) 0%, rgba(239,68,68,0) 70%);
    border: 1px solid rgba(239,68,68,.25);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
  }
  .expected-plate .ep-ico { font-size: 22px; line-height: 1; }
  .expected-plate .ep-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .expected-plate .ep-val-lbl {
    font-size: 10px; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .1em; margin-top: 2px;
  }
  .expected-plate .ep-note {
    font-size: 11px; color: #9ca3af; line-height: 1.4;
  }
  .expected-plate .ep-note b { color: #e5e7eb; }
  .expected-plate .ep-note .mono { font-variant-numeric: tabular-nums; }
  .expected-plate .ep-rr {
    text-align: right;
    padding-left: 14px;
    border-left: 1px solid #1f2937;
  }

  /* ========= ARCHIVE HISTORY WIDGET (история конкретной монеты) ========= */
  .arch-list { display: flex; flex-direction: column; gap: 6px; }
  .arch-row {
    display: grid;
    grid-template-columns: 20px 110px 90px 70px 36px 80px auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    background: #161e29;
    border: 1px solid #1f2937;
    border-left-width: 4px;
    border-radius: 6px;
    transition: background .12s, transform .12s;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
  }
  .arch-row:hover { background: #1a222d; transform: translateX(2px); }
  .arch-row.r { border-left-color: #ef4444; }
  .arch-row.y { border-left-color: #f59e0b; }
  .arch-row.g { border-left-color: #10b981; }
  .arch-ico { font-size: 14px; opacity: .85; }
  .arch-date { font-size: 12px; color: #9ca3af; }
  .arch-price { font-size: 13px; color: #e5e7eb; font-weight: 600; }
  .arch-pct { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
  .arch-pct.r { color: #ef4444; }
  .arch-pct.g { color: #10b981; }
  .arch-pct.d { color: #9ca3af; }
  .arch-score-b {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
    border: 2px solid;
    font-variant-numeric: tabular-nums;
    justify-self: center;
  }
  .arch-score-b.r { color: #ef4444; background: rgba(239,68,68,.14); border-color: #ef4444; }
  .arch-score-b.y { color: #f59e0b; background: rgba(245,158,11,.14); border-color: #f59e0b; }
  .arch-score-b.g { color: #10b981; background: rgba(16,185,129,.14); border-color: #10b981; }
  .arch-status-b {
    padding: 4px 12px; border-radius: 4px;
    font-weight: 800; font-size: 11px; letter-spacing: .08em;
    text-align: center; min-width: 70px;
    font-family: 'JetBrains Mono', monospace;
  }
  .arch-status-b.short { color: #ef4444; background: rgba(239,68,68,.18); }
  .arch-status-b.watch { color: #f59e0b; background: rgba(245,158,11,.18); }
  .arch-status-b.long  { color: #10b981; background: rgba(16,185,129,.18); }
  .arch-pat-b {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 4px;
    font-weight: 800; font-size: 11px; letter-spacing: .08em;
    color: #c084fc; background: rgba(156,39,176,.25);
    border: 1px solid rgba(168,85,247,.4);
    font-family: 'JetBrains Mono', monospace;
  }
  .arch-empty { color: #4b5563; font-size: 11px; font-style: italic; }

  /* Summary line sparkline wrapper */
  .arch-spark-wrap {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px; border-radius: 5px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    font-size: 10px; font-family: 'JetBrains Mono', monospace;
    color: #9ca3af;
  }
  .arch-spark-wrap .arch-spark-score {
    color: #ef4444; font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  /* ========= БАГФИКС Z-INDEX (тултипы поверх sticky header и всех слоёв) ========= */
  .tipw { position: relative; z-index: 1; }
  .tipw:hover { z-index: 9999 !important; }
  .tipw:hover > .tipp { z-index: 99999 !important; }
  [data-tip] { position: relative; }
  [data-tip]:hover { z-index: 9999 !important; }
  [data-tip]:hover::after { z-index: 99999 !important; }
  [data-tip]:hover::before { z-index: 99999 !important; }
  /* Убираем overflow:hidden там где есть тултипы внутри */
  details.coll { overflow: visible !important; }
  details.coll[open] > summary { border-bottom: 1px solid #1f2937; }
  /* Trigger секция должна позволять тултипам выходить наружу */
  .trigger { overflow: visible; }
  .sec { overflow: visible; }
  /* При hover bento — поднимаем z-index очень высоко */
  .bento.tipw:hover, .mp.tipw:hover { z-index: 9999 !important; }

  /* ========= HTML-OVERLAY ТУЛТИПЫ ДЛЯ SVG-РАДАРОВ ========= */
  .radar-wrap { position: relative; }
  .axis-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    cursor: help;
    z-index: 5;
    pointer-events: auto;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background .12s, transform .12s;
    line-height: 1.1;
  }
  .axis-overlay:hover {
    background: rgba(34,211,238,.08);
    z-index: 100;
  }
  .axis-overlay .ax-name {
    font-size: 10px; color: #9ca3af; font-weight: 600;
    margin-bottom: 1px;
  }
  .axis-overlay .ax-val {
    font-size: 12px; font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .axis-overlay.r .ax-val { color: #ef4444; }
  .axis-overlay.y .ax-val { color: #f59e0b; }
  .axis-overlay.g .ax-val { color: #10b981; }
  .axis-overlay.a .ax-name { color: #22d3ee; }

  /* ========= СУПЕР-БЛОК ТОРГОВЫЙ СЕТАП ========= */
  .setup-super {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .setup-col {
    background: #161e29;
    border: 1px solid #1f2937;
    border-radius: 10px;
    overflow: hidden;
  }
  .setup-col-head {
    padding: 8px 12px;
    border-bottom: 1px solid #1f2937;
    background: linear-gradient(90deg, rgba(34,211,238,.05) 0%, transparent 60%);
    display: flex; align-items: center; justify-content: space-between;
  }
  .setup-col-body { padding: 10px; }
  .lvl-mini {
    background: #0f141b;
    border: 1px solid #1f2937;
    border-left-width: 3px;
    border-radius: 6px;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    transition: background .12s;
  }
  .lvl-mini:hover { background: #131a24; }
  .lvl-mini.entry { border-left-color: #58a6ff; }
  .lvl-mini.tp { border-left-color: #10b981; }
  .lvl-mini.sl { border-left-color: #ef4444; }
  .lvl-mini .lm-tag {
    font-size: 10px; color: #9ca3af; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 2px 7px; border-radius: 3px;
    background: rgba(31,41,55,.6);
    min-width: 60px; text-align: center;
  }
  .lvl-mini .lm-tag.entry { color: #58a6ff; }
  .lvl-mini .lm-tag.tp { color: #10b981; }
  .lvl-mini .lm-tag.sl { color: #ef4444; }
  .lvl-mini .lm-price { font-size: 14px; font-weight: 700; color: #e5e7eb; }
  .lvl-mini .lm-pct { font-size: 11px; color: #9ca3af; }
  .lvl-mini .lm-pnl { font-size: 13px; font-weight: 800; min-width: 60px; text-align: right; }
  .lvl-mini .lm-pnl.r { color: #ef4444; }
  .lvl-mini .lm-pnl.g { color: #10b981; }
  .lvl-mini .lm-pnl.d { color: #9ca3af; }

  .pos-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
  }
  .pos-row > div {
    display: flex; justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(31,41,55,.5);
  }
  .pos-row > div .ml { color: #6b7280; font-size: 11px; }

  .expect-mini {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(239,68,68,.10), rgba(239,68,68,0));
    border: 1px solid rgba(239,68,68,.3);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .expect-mini .em-ico { font-size: 22px; }
  .expect-mini .em-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px; font-weight: 800;
    color: #ef4444;
    font-variant-numeric: tabular-nums; line-height: 1;
  }
  .expect-mini .em-lbl {
    font-size: 10px; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .1em;
    margin-top: 2px;
  }
  .expect-mini .em-rr {
    text-align: right;
    border-left: 1px solid #1f2937;
    padding-left: 12px;
  }

  /* ========= СТРЕЛКИ DELTA В АРХИВЕ ========= */
  .arch-delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    justify-content: center;
  }
  .arch-delta.up { color: #10b981; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3); }
  .arch-delta.dn { color: #ef4444; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); }
  .arch-delta.eq { color: #6b7280; background: rgba(107,114,128,.10); border: 1px solid rgba(107,114,128,.2); }
  .arch-delta.up-soft { color: #10b981; background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); }
  .arch-delta.dn-soft { color: #f59e0b; background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.25); }

  /* Архив с новой колонкой delta */
  .arch-row { grid-template-columns: 18px 100px 80px 60px 36px auto 76px auto 1fr !important; gap: 12px !important; }

  /* ========= V9: НЕОНОВОЕ СВЕЧЕНИЕ ДЛЯ КРИТИЧЕСКИХ SCORE (>85) ========= */
  @keyframes neon-glow-r {
    0%, 100% {
      filter: drop-shadow(0 0 6px rgba(239,68,68,.55)) drop-shadow(0 0 12px rgba(239,68,68,.3));
    }
    50% {
      filter: drop-shadow(0 0 10px rgba(239,68,68,.85)) drop-shadow(0 0 22px rgba(239,68,68,.5));
    }
  }
  .glow-critical { animation: neon-glow-r 2.2s ease-in-out infinite; }
  .glow-critical-static {
    filter: drop-shadow(0 0 6px rgba(239,68,68,.55)) drop-shadow(0 0 14px rgba(239,68,68,.32));
  }

  /* ========= V9: СТАТУСНЫЕ ПИЛЮЛИ ========= */
  .stp {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 999px;
    font-size: 9px; font-weight: 800; letter-spacing: .1em;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid;
    text-transform: uppercase;
    line-height: 1.4;
  }
  .stp.extreme { color: #fff; background: linear-gradient(90deg, #b91c1c, #ef4444); border-color: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.4); }
  .stp.danger  { color: #ef4444; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.5); }
  .stp.warn    { color: #f59e0b; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.5); }
  .stp.norm    { color: #9ca3af; background: rgba(107,114,128,.12); border-color: rgba(107,114,128,.4); }
  .stp.good    { color: #10b981; background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.5); }
  .stp.opp     { color: #fff; background: linear-gradient(90deg, #047857, #10b981); border-color: #10b981; box-shadow: 0 0 10px rgba(16,185,129,.4); }

  /* ========= V9: DIRECTIONAL ИНДИКАТОРЫ ========= */
  .dir-ind {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
  }
  .dir-ind.r { color: #ef4444; background: rgba(239,68,68,.14); }
  .dir-ind.g { color: #10b981; background: rgba(16,185,129,.14); }
  .dir-ind.y { color: #f59e0b; background: rgba(245,158,11,.14); }
  .dir-ind .arrow {
    font-size: 13px; line-height: 1;
    text-shadow: 0 0 4px currentColor;
  }

  /* ========= V9: ГРАДИЕНТНЫЕ ПЛАШКИ ========= */
  .grad-plate-r {
    background: linear-gradient(135deg, rgba(239,68,68,.14) 0%, rgba(239,68,68,.04) 60%, transparent 100%);
    border: 1px solid rgba(239,68,68,.25);
  }
  .grad-plate-g {
    background: linear-gradient(135deg, rgba(16,185,129,.14) 0%, rgba(16,185,129,.04) 60%, transparent 100%);
    border: 1px solid rgba(16,185,129,.25);
  }
  .grad-plate-y {
    background: linear-gradient(135deg, rgba(245,158,11,.14) 0%, rgba(245,158,11,.04) 60%, transparent 100%);
    border: 1px solid rgba(245,158,11,.25);
  }
  .grad-plate-a {
    background: linear-gradient(135deg, rgba(34,211,238,.10) 0%, rgba(34,211,238,.03) 60%, transparent 100%);
    border: 1px solid rgba(34,211,238,.25);
  }

  /* ========= V9: ОБЪЕДИНЁННЫЙ ТАЙМЛАЙН СОБЫТИЙ ========= */
  .events-bar {
    background: linear-gradient(90deg, rgba(31,41,55,.5) 0%, rgba(31,41,55,.25) 100%);
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px 14px;
    overflow: visible;
  }
  .events-track {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0 8px 0;
    margin-top: 4px;
  }
  .events-track::before {
    content: '';
    position: absolute;
    left: 12px; right: 12px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, #ef4444 0%, #ef4444 30%, #f59e0b 60%, #6b7280 100%);
    border-radius: 2px;
    z-index: 0;
  }
  .ev-dot {
    position: relative;
    z-index: 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: help;
    border: 2px solid;
    background: #0f141b;
    transition: transform .15s, box-shadow .15s;
    font-family: 'JetBrains Mono', monospace;
  }
  .ev-dot:hover { transform: scale(1.18); z-index: 100; }
  .ev-dot.mega { color: #ef4444; border-color: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  .ev-dot.dist { color: #c084fc; border-color: #a855f7; box-shadow: 0 0 0 0 rgba(168,85,247,.4); }
  .ev-dot.trap { color: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  .ev-dot.rej  { color: #f472b6; border-color: #ec4899; box-shadow: 0 0 0 0 rgba(236,72,153,.4); }
  .ev-dot.fresh {
    box-shadow: 0 0 12px currentColor, 0 0 22px rgba(239,68,68,.4);
    animation: ev-fresh-pulse 1.6s ease-in-out infinite;
  }
  @keyframes ev-fresh-pulse {
    0%, 100% { box-shadow: 0 0 8px currentColor, 0 0 14px rgba(239,68,68,.3); }
    50% { box-shadow: 0 0 18px currentColor, 0 0 32px rgba(239,68,68,.6); }
  }
  .ev-time {
    position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 4px;
    font-size: 9px; font-family: 'JetBrains Mono', monospace;
    color: #9ca3af; white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .ev-name {
    position: absolute;
    bottom: 100%; left: 50%; transform: translateX(-50%);
    margin-bottom: 4px;
    font-size: 9px; font-weight: 800; letter-spacing: .04em;
    font-family: 'JetBrains Mono', monospace;
    color: currentColor; white-space: nowrap;
  }

  /* ========= V9: ГЛАВНЫЙ РИСК СЕЙЧАС (в hero) ========= */
  .main-risk-bar {
    background: linear-gradient(90deg, rgba(245,158,11,.14) 0%, rgba(245,158,11,.04) 50%, transparent 100%);
    border: 1px solid rgba(245,158,11,.3);
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }
  .main-risk-bar .mrb-icon { font-size: 16px; flex-shrink: 0; }
  .main-risk-bar .mrb-lbl {
    font-size: 9px; font-weight: 800; letter-spacing: .12em;
    color: #f59e0b; text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
  }
  .main-risk-bar .mrb-text { color: #cbd5e1; flex: 1; }
  .main-risk-bar .mrb-text b { color: #e5e7eb; }
  .main-risk-bar a { color: #22d3ee; text-decoration: none; }
  .main-risk-bar a:hover { text-decoration: underline; }

  /* ========= V9: УЛУЧШЕНИЯ ZINDEX TIPP ========= */
  .tipp { z-index: 99999 !important; }
  .axis-overlay:hover { z-index: 9999 !important; }

  /* Tabular-nums везде где есть числа */
  .tabnum, .mono, td, th { font-variant-numeric: tabular-nums !important; }

  /* ========= V9: КОМПАКТНОСТЬ — сжатые отступы ========= */
  .sec { padding: 10px 16px !important; }
  .block-h { padding: 4px 9px; margin-bottom: 7px; font-size: 10.5px; }
  .bento { padding: 8px 11px; }
  .mp { padding: 8px 11px; }

  /* ============================================================ */
  /* ====== V10: БАГФИКС УПОЛЗАЮЩИХ ТУЛТИПОВ (viewport overflow) */
  /* ============================================================ */

  /* По умолчанию data-tip с переносом текста + макс. ширина */
  [data-tip]:hover::after {
    max-width: 320px !important;
    white-space: pre-wrap !important;
    word-wrap: break-word;
  }

  /* Якорь СПРАВА (для элементов на ЛЕВОМ крае страницы — тултип уходит вправо) */
  [data-tip].tip-anchor-l:hover::after {
    left: 0 !important;
    transform: none !important;
  }
  [data-tip].tip-anchor-l:hover::before {
    left: 18px !important;
    transform: none !important;
  }

  /* Якорь СЛЕВА (для элементов на ПРАВОМ крае страницы — тултип уходит влево) */
  [data-tip].tip-anchor-r:hover::after {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
  [data-tip].tip-anchor-r:hover::before {
    left: auto !important;
    right: 18px !important;
    transform: none !important;
  }

  /* Якорь ВНИЗ (если элемент в самом верху страницы — sticky header) */
  [data-tip].tip-anchor-bottom:hover::after {
    bottom: auto !important;
    top: calc(100% + 10px) !important;
  }
  [data-tip].tip-anchor-bottom:hover::before {
    bottom: auto !important;
    top: calc(100% + 3px) !important;
    border-top-color: transparent !important;
    border-bottom-color: #2a3441 !important;
  }

  /* Rich tooltip (.tipp) тоже с anchoring */
  .tipw.tip-anchor-l > .tipp {
    left: 0 !important;
    transform: translateY(6px) !important;
  }
  .tipw.tip-anchor-l:hover > .tipp {
    transform: translateY(0) !important;
  }
  .tipw.tip-anchor-l > .tipp::after {
    left: 22px !important;
    transform: none !important;
  }

  .tipw.tip-anchor-r > .tipp {
    left: auto !important;
    right: 0 !important;
    transform: translateY(6px) !important;
  }
  .tipw.tip-anchor-r:hover > .tipp {
    transform: translateY(0) !important;
  }
  .tipw.tip-anchor-r > .tipp::after {
    left: auto !important;
    right: 22px !important;
    transform: none !important;
  }

  .tipw.tip-anchor-bottom > .tipp {
    bottom: auto !important;
    top: calc(100% + 10px) !important;
    transform: translateX(-50%) translateY(-6px) !important;
  }
  .tipw.tip-anchor-bottom:hover > .tipp {
    transform: translateX(-50%) translateY(0) !important;
  }
  .tipw.tip-anchor-bottom > .tipp::after {
    top: auto !important;
    bottom: 100% !important;
    border-top-color: transparent !important;
    border-bottom-color: #374151 !important;
  }

  /* Премиум-фон для всех тултипов */
  [data-tip]:hover::after {
    background: rgba(10, 14, 20, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #374151 !important;
    box-shadow: 0 14px 50px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.06), inset 0 1px 0 rgba(255,255,255,.04) !important;
  }
  .tipp {
    background: rgba(15, 20, 27, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #374151 !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.08), inset 0 1px 0 rgba(255,255,255,.04) !important;
    max-width: 360px;
  }
  .tipp .tipp-body { word-wrap: break-word; }

  /* ============================================================ */
  /* ====== V10: ШКАЛА БАЛАНСА СИЛ (Power Balance) ============== */
  /* ============================================================ */
  .power-balance {
    background: linear-gradient(180deg, #161e29 0%, #121821 100%);
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  .power-balance .pb-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
  }
  .power-balance .pb-bar {
    height: 22px; border-radius: 6px;
    overflow: hidden;
    display: flex; align-items: stretch;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
    background: #0a0e14;
    position: relative;
  }
  .power-balance .pb-side {
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800; font-size: 11px; letter-spacing: .05em;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,1);
    transition: width .35s ease;
    position: relative;
  }
  .power-balance .pb-short {
    background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 60%, #ef4444 100%);
    box-shadow: 0 0 12px rgba(239,68,68,.4) inset;
  }
  .power-balance .pb-long {
    background: linear-gradient(90deg, #064e3b 0%, #059669 40%, #10b981 100%);
    box-shadow: 0 0 12px rgba(16,185,129,.3) inset;
  }
  .power-balance .pb-divider {
    width: 2px;
    background: rgba(255,255,255,.4);
    box-shadow: 0 0 8px rgba(255,255,255,.4);
    z-index: 2;
  }
  .power-balance .pb-legend {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 6px;
    font-size: 10px; font-family: 'JetBrains Mono', monospace; color: #9ca3af;
  }

  /* ============================================================ */
  /* ====== V10: LIQUIDITY HEATMAP (Тепловая карта ликвидности) */
  /* ============================================================ */
  .heatmap {
    background: #0f141b;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 12px 14px;
  }
  .heatmap .hm-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
  }
  .heatmap-bar {
    position: relative;
    height: 38px;
    /* v2.11: место сверху для двухстрочных labels маркеров (имя + цена,
       чередуются на двух уровнях чтобы не пересекаться) */
    margin-top: 56px;
    border-radius: 8px;
    background: linear-gradient(90deg,
      rgba(239,68,68,0.06) 0%,
      rgba(239,68,68,0.32) 8%,
      rgba(245,158,11,0.18) 22%,
      rgba(31,41,55,0.6) 42%,
      rgba(31,41,55,0.7) 50%,
      rgba(31,41,55,0.6) 58%,
      rgba(245,158,11,0.18) 78%,
      rgba(255,152,0,0.32) 92%,
      rgba(255,152,0,0.06) 100%
    );
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
    border: 1px solid #1f2937;
  }
  .hm-zone {
    position: absolute; top: 0; bottom: 0;
    cursor: help;
    border-radius: 4px;
    transition: filter .15s, transform .15s;
  }
  .hm-zone:hover { filter: brightness(1.4); transform: scaleY(1.1); z-index: 10; }
  .hm-zone.long-magnet {
    background: radial-gradient(ellipse at center, rgba(239,68,68,.6) 0%, rgba(239,68,68,.15) 70%, transparent 100%);
    box-shadow: 0 0 16px rgba(239,68,68,.5), inset 0 0 8px rgba(239,68,68,.4);
    animation: hm-pulse-r 2s ease-in-out infinite;
  }
  .hm-zone.short-magnet {
    background: radial-gradient(ellipse at center, rgba(255,152,0,.55) 0%, rgba(255,152,0,.12) 70%, transparent 100%);
    box-shadow: 0 0 14px rgba(255,152,0,.4), inset 0 0 8px rgba(255,152,0,.3);
  }
  @keyframes hm-pulse-r {
    0%, 100% { box-shadow: 0 0 14px rgba(239,68,68,.4), inset 0 0 8px rgba(239,68,68,.3); }
    50% { box-shadow: 0 0 24px rgba(239,68,68,.7), inset 0 0 16px rgba(239,68,68,.5); }
  }
  .hm-marker {
    position: absolute; top: -4px; bottom: -4px;
    width: 2px; background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee, 0 0 18px rgba(34,211,238,.4);
    z-index: 5;
  }
  .hm-marker::before {
    content: ''; position: absolute;
    top: -4px; left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #22d3ee;
    filter: drop-shadow(0 0 4px #22d3ee);
  }
  .hm-marker::after {
    content: 'СЕЙЧАС';
    position: absolute;
    top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 8px; font-weight: 800; letter-spacing: .12em;
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(34,211,238,.5);
  }
  .hm-tag {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px; font-weight: 800; letter-spacing: .04em;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap; pointer-events: none;
    background: rgba(10, 14, 20, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 4;
  }
  .hm-tag.r { color: #ef4444; text-shadow: 0 0 4px rgba(239,68,68,.6); border: 1px solid rgba(239,68,68,.4); }
  .hm-tag.o { color: #ff9800; text-shadow: 0 0 4px rgba(255,152,0,.6); border: 1px solid rgba(255,152,0,.4); }

  /* v2.11: Зона входа (entry_low..entry_high) — голубая полоска */
  .hm-entry-zone {
    position: absolute;
    top: 0; bottom: 0;
    background: rgba(34, 211, 238, 0.12);
    border: 1px dashed rgba(34, 211, 238, 0.6);
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
  }
  /* v2.11: вертикальные маркеры TP/STOP/ВХОД (linии с label сверху) */
  .hm-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    pointer-events: auto;
    z-index: 6;
    cursor: help;
  }
  .hm-line:hover { width: 3px; }
  .hm-line-lbl {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    background: rgba(10, 14, 20, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 4px;
    border-radius: 3px;
  }
  .hm-line-lbl .hm-line-name {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
  }
  .hm-line-lbl .hm-line-px {
    font-size: 8px;
    font-weight: 600;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
  }

  .hm-price-axis {
    display: flex; justify-content: space-between;
    margin-top: 6px;
    font-size: 9px; font-family: 'JetBrains Mono', monospace;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
  }

  /* ============================================================ */
  /* ====== V10: СВЕТОФОР ТАЙМИНГА ВХОДА ======================== */
  /* ============================================================ */
  .entry-light {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 800; letter-spacing: .08em;
    border: 2px solid;
    cursor: help;
    transition: transform .12s;
  }
  .entry-light:hover { transform: scale(1.04); }
  .entry-light .light-dot {
    width: 9px; height: 9px; border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: light-blink 1.4s ease-in-out infinite;
  }
  @keyframes light-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px currentColor; }
    50% { opacity: .65; box-shadow: 0 0 6px currentColor; }
  }
  .entry-light.green {
    color: #10b981;
    background: rgba(16,185,129,.12);
    border-color: rgba(16,185,129,.5);
    box-shadow: 0 0 14px rgba(16,185,129,.25);
  }
  .entry-light.green .light-dot { background: #10b981; }
  .entry-light.yellow {
    color: #f59e0b;
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.5);
  }
  .entry-light.yellow .light-dot { background: #f59e0b; }
  .entry-light.red {
    color: #ef4444;
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.5);
  }
  .entry-light.red .light-dot { background: #ef4444; }

  /* ============================================================ */
  /* ============================================================ */
  /* === V11: SCALPER TOOLBOX (Скальп-инструменты) ============== */
  /* ============================================================ */
  .scalp-toolbox {
    background: linear-gradient(180deg, #11171f 0%, #0d121a 100%);
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .scalp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 8px;
  }
  .scalp-cell {
    background: #161e29;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 8px 10px;
    transition: border-color .15s, transform .12s;
    position: relative;
  }
  .scalp-cell:hover { border-color: #2a3441; transform: translateY(-1px); }
  .scalp-cell.r { border-left: 3px solid #ef4444; }
  .scalp-cell.y { border-left: 3px solid #f59e0b; }
  .scalp-cell.g { border-left: 3px solid #10b981; }
  .scalp-cell.a { border-left: 3px solid #22d3ee; }
  .scalp-cell .sc-ico { font-size: 14px; line-height: 1; }
  .scalp-cell .sc-lbl {
    font-size: 9px; color: #6b7280; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 3px;
  }
  .scalp-cell .sc-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .scalp-cell .sc-sub {
    font-size: 9px; color: #9ca3af; margin-top: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
  }
  .scalp-cell .sc-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 6px;
  }

  /* Whale tape rows */
  .whale-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 6px; align-items: center;
    padding: 1px 0;
    font-size: 10px; font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
  }
  .whale-row .wr-time { color: #6b7280; }
  .whale-row .wr-side { font-weight: 800; padding: 0 4px; border-radius: 2px; font-size: 9px; }
  .whale-row .wr-side.buy { color: #10b981; background: rgba(16,185,129,.14); }
  .whale-row .wr-side.sell { color: #ef4444; background: rgba(239,68,68,.14); }
  .whale-row .wr-amt { text-align: right; font-weight: 700; }
  .whale-row .wr-amt.buy { color: #10b981; }
  .whale-row .wr-amt.sell { color: #ef4444; }

  /* Funding countdown ring */
  .fnd-ring {
    width: 36px; height: 36px; flex-shrink: 0;
  }
  .fnd-ring text { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

  /* === V11: УЛЬТИМАТИВНЫЙ РЕФАКТОРИНГ ТУЛТИПОВ ================ */
  /* ============================================================ */

  /* Снимаем все потенциальные overflow:hidden у родителей */
  .coin-card, .sec, .trigger, .events-bar, .heatmap, .power-balance,
  .bento, .mp, .setup-col, .setup-col-body, .lvl-mini,
  details.coll, details.coll[open], details.coll > summary,
  .mp-widget, .pat-pill, .ev-dot, .axis-overlay, .radar-wrap, .signal-gauge,
  .quant-panel, .group-radar, .market-pulse, .dashboard-row, .dashboard-stats,
  .heatmap-bar, .hm-zone, .arch-row, .arch-list, .arch-spark-wrap,
  .summary-plate, .main-risk-bar, .verdict-block, .rr-bar,
  .global-calc-group, .archive-controls, .global-tf-group,
  .lvl-strip, .lvl, .tf-line, .tf-line .cell, .tf-changes-bar,
  main, header, body, html, [data-tip], .tipw {
    overflow: visible !important;
  }
  /* Кроме графика — ему overflow:hidden нужно */
  .chart-wrapper > .relative { overflow: hidden !important; }

  /* === УЛЬТИМАТИВНЫЙ СТИЛЬ ВСЕХ data-tip ТУЛТИПОВ === */
  /* НЕ ставим !important на position — это ломает absolute/fixed элементы */
  [data-tip]:not([style*="position"]):not(.hm-zone):not(.axis-overlay):not(.ev-dot):not(.hm-marker) {
    position: relative;
  }
  /* Явно фиксируем absolute для элементов которые позиционируются абсолютно */
  .hm-zone, .axis-overlay, .hm-marker, .hm-tag {
    position: absolute !important;
  }
  [data-tip]:hover::after {
    /* Премиум-фон */
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid #374151 !important;
    border-radius: 10px !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.05) !important;

    /* Текст и переносы */
    color: #e5e7eb !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    padding: 10px 12px !important;
    text-align: left !important;

    /* КРИТИЧНО: переносы и фиксированная ширина */
    max-width: 280px !important;
    width: max-content !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;

    /* Z-index верхний слой */
    z-index: 999 !important;

    /* Курсор не блокирует tooltip */
    pointer-events: none !important;
  }
  [data-tip]:hover::before {
    z-index: 999 !important;
    pointer-events: none !important;
  }

  /* === V11: ИЗОЛЯЦИЯ — если курсор на дочернем data-tip, скрыть родительский tipp === */
  .tipw:has([data-tip]:hover) > .tipp,
  .tipw:has(.tipw:hover) > .tipp {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  /* И наоборот: внутри активного [data-tip]:hover отключить bubbling */
  [data-tip]:hover [data-tip]:not(:hover)::after,
  [data-tip]:hover [data-tip]:not(:hover)::before { display: none !important; }

  /* === Rich-tooltips .tipp — те же правила === */
  .tipp {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid #374151 !important;
    border-radius: 10px !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(34,211,238,.05) !important;
    max-width: 320px !important;
    width: max-content !important;
    z-index: 999 !important;
    pointer-events: none !important;
  }
  .tipw:hover > .tipp { pointer-events: auto !important; }
  .tipp .tipp-body { white-space: normal !important; word-wrap: break-word !important; }

  /* === ИЗОЛЯЦИЯ — только прямой hover показывает свой tooltip === */
  /* Запрещаем bubble: тултип не показывается при hover на дочерних */
  .bento [data-tip]:hover::after,
  .mp [data-tip]:hover::after { z-index: 1000 !important; }

  /* === ЯКОРНЫЕ КЛАССЫ (left/center/right) — переопределяем с !important === */
  /* По умолчанию: центрированный */
  [data-tip]:not(.tip-anchor-l):not(.tip-anchor-r):not(.tip-anchor-bottom):hover::after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(100% + 10px) !important;
    top: auto !important;
  }

  /* tip-anchor-l: для элементов на ЛЕВОМ крае страницы (тултип растёт ВПРАВО) */
  [data-tip].tip-anchor-l:hover::after {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
  [data-tip].tip-anchor-l:hover::before {
    left: 22px !important;
    right: auto !important;
    transform: none !important;
  }

  /* tip-anchor-r: для элементов на ПРАВОМ крае (тултип растёт ВЛЕВО) */
  [data-tip].tip-anchor-r:hover::after {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
  [data-tip].tip-anchor-r:hover::before {
    left: auto !important;
    right: 22px !important;
    transform: none !important;
  }

  /* tip-anchor-bottom: тултип появляется СНИЗУ (для sticky header) */
  [data-tip].tip-anchor-bottom:hover::after {
    top: calc(100% + 10px) !important;
    bottom: auto !important;
  }
  [data-tip].tip-anchor-bottom:hover::before {
    top: calc(100% + 3px) !important;
    bottom: auto !important;
    border-top-color: transparent !important;
    border-bottom-color: #374151 !important;
  }

  /* То же для .tipw .tipp */
  .tipw.tip-anchor-l > .tipp {
    left: 0 !important;
    right: auto !important;
    transform: translateY(6px) !important;
  }
  .tipw.tip-anchor-l:hover > .tipp { transform: translateY(0) !important; }
  .tipw.tip-anchor-l > .tipp::after { left: 22px !important; right: auto !important; transform: none !important; }

  .tipw.tip-anchor-r > .tipp {
    left: auto !important;
    right: 0 !important;
    transform: translateY(6px) !important;
  }
  .tipw.tip-anchor-r:hover > .tipp { transform: translateY(0) !important; }
  .tipw.tip-anchor-r > .tipp::after { left: auto !important; right: 22px !important; transform: none !important; }

  .tipw.tip-anchor-bottom > .tipp {
    bottom: auto !important;
    top: calc(100% + 10px) !important;
    transform: translateX(-50%) translateY(-6px) !important;
  }
  .tipw.tip-anchor-bottom:hover > .tipp { transform: translateX(-50%) translateY(0) !important; }
  .tipw.tip-anchor-bottom > .tipp::after {
    top: auto !important;
    bottom: 100% !important;
    border-top-color: transparent !important;
    border-bottom-color: #374151 !important;
  }


/* === v11 mobile breakpoints === */
@media (max-width: 1280px) {
  .dashboard-stats.grid-cols-6 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 1024px) {
  /* Hero — стэк (vertical) на planshet */
  [data-wid="29"] { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .setup-super { grid-template-columns: 1fr !important; }
  .grid-cols-5 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  /* Phone */
  body { font-size: 13px; }
  .coin-card { padding: 0 !important; }
  .dashboard-stats.grid-cols-6 { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .grid-cols-2, .grid-cols-3, .grid-cols-5, .grid-cols-6 { grid-template-columns: 1fr !important; }
  .max-w-\[1600px\] { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .panel-title { font-size: 12px !important; }
  .ring-svg { width: 80px; height: 80px; }
  .seg-timeline { flex-wrap: wrap !important; }
  .global-calc-group { flex-wrap: wrap !important; gap: 0.25rem !important; }
  .global-calc-group input { width: 60px !important; }
  /* Tooltips: dock to bottom on phone */
  .tipw .tipp { position: fixed !important; left: 4% !important; right: 4% !important;
    top: auto !important; bottom: 1rem !important; width: 92% !important;
    transform: none !important; max-width: none !important; }
  .tipw .tipp::after { display: none !important; }
  /* Whale rows / Slippage rows compact */
  .whale-row { font-size: 10px !important; padding: 1px 0 !important; }
  /* Hide decorative SVG mini-charts on phones */
  svg[width="40"][height="22"], svg[width="60"][height="22"] { display: none !important; }
}
@media (max-width: 480px) {
  /* Compact phone */
  .text-3xl { font-size: 1.4rem !important; }
  .text-2xl { font-size: 1.2rem !important; }
  .px-4 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .py-2\.5 { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }
}


/* === v11 ws flash on price update === */
@keyframes v11-flash-up-anim {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0); background-color: rgba(16,185,129,0); }
  30%  { box-shadow: 0 0 12px 2px rgba(16,185,129,.6); background-color: rgba(16,185,129,.18); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); background-color: rgba(16,185,129,0); }
}
@keyframes v11-flash-down-anim {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0); background-color: rgba(239,68,68,0); }
  30%  { box-shadow: 0 0 12px 2px rgba(239,68,68,.6); background-color: rgba(239,68,68,.18); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); background-color: rgba(239,68,68,0); }
}
.v11-flash-up   { animation: v11-flash-up-anim   .4s ease-out; border-radius: 4px; }
.v11-flash-down { animation: v11-flash-down-anim .4s ease-out; border-radius: 4px; }


/* === v11 dashboard+nav (восстановление из v10) === */
.v11-dashboard {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.v11-dashboard {
  overflow-x: auto;  /* horizontal scroll если ширины не хватает */
}
.v11-dashboard .dash-header,
.v11-dashboard .dash-row {
  min-width: 1260px;  /* минимум для 17 колонок (Phase 6: PUMP 15M + PUMP 1h) */
}
.v11-dashboard .dash-header {
  display: grid;
  /* v2.11: 15 колонок: # SYM SC VRD VERD 24h PUMP4h PUMP4d EXP TP1 TP2 TP3 SL FND RSI
     Порядок: сначала 24h, потом PUMP4h, потом PUMP4d (добавлен в v2.11).
     Каждая TP/SL колонка — 2 строки (% сверху, $ снизу). EXP — Ожидание ↓X%. */
  /* Phase 6: 17 колонок (добавлены PUMP 1h + PUMP 15M между 24h и PUMP 4h) */
  grid-template-columns: 38px minmax(80px,1fr) 50px 50px 56px 50px 50px 50px 56px 56px 56px 64px 64px 64px 64px 36px 36px;
  gap: 8px;
  padding: 6px 10px;
  background: #0f141b;
  border: 1px solid #1f2937;
  border-radius: 6px;
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.v11-dashboard .dash-header .sort-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: flex;
  align-items: center;
  gap: 3px;
}
.v11-dashboard .dash-header .sort-btn:hover { color: #e5e7eb; }
.v11-dashboard .dash-header .sort-btn.active { color: #22d3ee; font-weight: 700; }
.v11-dashboard .dash-header .sort-arrow { opacity: 0.5; font-size: 9px; }
.v11-dashboard .dash-header .sort-btn.active .sort-arrow { opacity: 1; }

.v11-dashboard .dash-row {
  display: grid;
  /* v2.11: 15 колонок (см. .dash-header) */
  /* Phase 6: 17 колонок (добавлены PUMP 1h + PUMP 15M между 24h и PUMP 4h) */
  grid-template-columns: 38px minmax(80px,1fr) 50px 50px 56px 50px 50px 50px 56px 56px 56px 64px 64px 64px 64px 36px 36px;
  gap: 8px;
  padding: 6px 10px;
  background: #121821;
  border: 1px solid #1f2937;
  border-radius: 6px;
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: none;
  align-items: center;
  transition: background 100ms, border-color 100ms;
}
.v11-dashboard .dash-row:hover { background: #161e29; border-color: #22d3ee; }
.v11-dashboard .dash-row.short    { border-left: 3px solid #ef4444; }
.v11-dashboard .dash-row.watch    { border-left: 3px solid #f59e0b; }
.v11-dashboard .dash-row.wait     { border-left: 3px solid #6b7280; }
.v11-dashboard .dash-row .rank    { color: #6b7280; font-weight: 600; }
.v11-dashboard .dash-row .sym     { font-weight: 700; }
.v11-dashboard .dash-row .badge   {
  padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700;
  text-align: center; white-space: nowrap;
}
.v11-dashboard .dash-row .badge.r { background: rgba(239,68,68,.15);  color: #ef4444; }
.v11-dashboard .dash-row .badge.y { background: rgba(245,158,11,.15); color: #f59e0b; }
.v11-dashboard .dash-row .badge.g { background: rgba(16,185,129,.15); color: #10b981; }
.v11-dashboard .dash-row .pump    { font-weight: 600; }
.v11-dashboard .dash-row .pump.neg{ color: #10b981; }
.v11-dashboard .dash-row .pump.pos{ color: #ef4444; }
.v11-dashboard .dash-row .rsi-val { color: #9ca3af; }
.v11-dashboard .dash-row .rsi-val.hot { color: #ef4444; font-weight: 700; }
.v11-dashboard .dash-row .rsi-val.cold{ color: #10b981; font-weight: 700; }

/* v2.11: TP/SL/EXP колонки — 2-строчные ячейки (% сверху, $ снизу) */
.v11-dashboard .dash-col-tp,
.v11-dashboard .dash-col-sl-cell,
.v11-dashboard .dash-col-exp-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}
.v11-dashboard .dash-col-tp .pct,
.v11-dashboard .dash-col-sl-cell .pct,
.v11-dashboard .dash-col-exp-cell .pct {
  font-weight: 700;
  font-size: 11px;
}
.v11-dashboard .dash-col-tp .usd,
.v11-dashboard .dash-col-sl-cell .usd {
  color: #6b7280;
  font-size: 9px;
}
.v11-dashboard .dash-col-tp .pct { color: #10b981; }            /* TP — зелёный */
.v11-dashboard .dash-col-sl-cell .pct { color: #ef4444; }       /* SL — красный */
.v11-dashboard .dash-col-exp-cell .pct { color: #22d3ee; }      /* EXP — циан */
.v11-dashboard .dash-col-exp-cell .lbl { font-size: 8px; color: #6b7280; text-transform: uppercase; }

.v11-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
  padding: 6px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
}
.v11-nav a {
  padding: 3px 8px;
  background: #121821;
  border: 1px solid #1f2937;
  border-radius: 999px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 100ms;
  white-space: nowrap;
}
.v11-nav a:hover { color: #22d3ee; border-color: #22d3ee; }

/* v2.11: 4-уровневая адаптивность дэшборда (15 колонок default) */

/* Tablet (≤1280px): -3 колонки = скрываем PUMP 4h, TP1, TP2 (12 видимых) */
@media (max-width: 1280px) {
  .v11-dashboard .dash-header,
  .v11-dashboard .dash-row {
    min-width: 880px;
    /* 12 колонок: # SYM SC VRD VERD 24h PUMP4d EXP TP3 SL FND RSI */
    grid-template-columns: 38px minmax(80px,1fr) 50px 50px 56px 50px 56px 56px 64px 64px 36px 36px;
  }
  .v11-dashboard .dash-col-pump-4h,
  .v11-dashboard .dash-col-tp-1,
  .v11-dashboard .dash-col-tp-2 {
    display: none;
  }
}

/* Large mobile / phablet (≤900px): -4 колонки = скрываем VRD, VERD label, FND, RSI (8 видимых) */
@media (max-width: 900px) {
  .v11-dashboard .dash-header,
  .v11-dashboard .dash-row {
    min-width: 580px;
    /* 8 колонок: # SYM SC 24h PUMP4d EXP TP3 SL */
    grid-template-columns: 32px minmax(80px,1fr) 50px 50px 56px 56px 64px 64px;
    font-size: 10px;
  }
  .v11-dashboard .dash-col-vrdct,
  .v11-dashboard .dash-col-verd-label,
  .v11-dashboard .dash-col-fund,
  .v11-dashboard .dash-col-rsi {
    display: none;
  }
}

/* Phone (≤640px): card layout с explicit CSS grid (явные row/col).
   Каждая ячейка имеет ЯВНУЮ позицию — никакого overlap. */
@media (max-width: 640px) {
  .v11-dashboard {
    overflow-x: visible;
  }
  .v11-dashboard .dash-header { display: none; }
  .v11-dashboard .dash-row,
  .v11-dashboard .dash-header {
    min-width: 0 !important;
  }
  .v11-dashboard .dash-row {
    /* Перебиваем default 15-column layout явным 3-column для мобиле */
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-auto-rows: auto;
    gap: 4px 8px;
    padding: 10px 12px;
    font-size: 11px;
    align-items: baseline;
  }

  /* v2.11: ВЕРНУТЬ ячейки скрытые на 1280/900 breakpoint'ах — на mobile они нужны */
  .v11-dashboard .dash-row > .dash-col-pump-4h,
  .v11-dashboard .dash-row > .dash-col-tp-1,
  .v11-dashboard .dash-row > .dash-col-tp-2,
  .v11-dashboard .dash-row > .dash-col-vrdct,
  .v11-dashboard .dash-row > .dash-col-verd-label {
    display: flex !important;
  }
  /* SC и VERD-label оба .dash-col-verdict — flex на оба */
  .v11-dashboard .dash-row > .dash-col-verdict {
    display: flex !important;
  }

  /* Скрываем редко-нужные колонки */
  .v11-dashboard .dash-row > .rank,
  .v11-dashboard .dash-row > .dash-col-fund,
  .v11-dashboard .dash-row > .dash-col-rsi {
    display: none !important;
  }

  /* === ROW 1: SYMBOL — full width === */
  .v11-dashboard .dash-row > .dash-col-sym {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 15px;
    font-weight: 800;
    padding-bottom: 2px;
  }

  /* === ROW 2: SC / VRD / VERD badges === */
  .v11-dashboard .dash-row > .dash-col-verdict:not(.dash-col-verd-label) {
    grid-column: 1;
    grid-row: 2;
  }
  .v11-dashboard .dash-row > .dash-col-vrdct {
    grid-column: 2;
    grid-row: 2;
  }
  .v11-dashboard .dash-row > .dash-col-verd-label {
    grid-column: 3;
    grid-row: 2;
  }

  /* === ROW 3: 24h / PUMP 4h / PUMP 4d === */
  .v11-dashboard .dash-row > .dash-col-24h {
    grid-column: 1;
    grid-row: 3;
  }
  .v11-dashboard .dash-row > .dash-col-pump-4h {
    grid-column: 2;
    grid-row: 3;
  }
  .v11-dashboard .dash-row > .dash-col-pump-4d {
    grid-column: 3;
    grid-row: 3;
  }

  /* === ROW 4: EXP — full width === */
  .v11-dashboard .dash-row > .dash-col-exp-cell {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(31,41,55,0.5);
  }

  /* === ROW 5: TP1 / TP2 / TP3 === */
  .v11-dashboard .dash-row > .dash-col-tp-1 {
    grid-column: 1;
    grid-row: 5;
  }
  .v11-dashboard .dash-row > .dash-col-tp-2 {
    grid-column: 2;
    grid-row: 5;
  }
  .v11-dashboard .dash-row > .dash-col-tp-3 {
    grid-column: 3;
    grid-row: 5;
  }
  .v11-dashboard .dash-row > .dash-col-tp {
    align-items: flex-start;
    padding-top: 6px;
    border-top: 1px solid rgba(31,41,55,0.5);
  }

  /* === ROW 6: SL — full width === */
  .v11-dashboard .dash-row > .dash-col-sl-cell {
    grid-column: 1 / -1;
    grid-row: 6;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(31,41,55,0.5);
  }

  /* === Inline label ::before для всех data-mlbl === */
  .v11-dashboard .dash-row > [data-mlbl]::before {
    content: attr(data-mlbl) " ";
    color: #6b7280;
    font-size: 9px;
    font-weight: 600;
    margin-right: 2px;
    text-transform: uppercase;
  }
  .v11-dashboard .dash-row > .dash-col-tp::before {
    content: attr(data-mlbl) " ";
    color: #6b7280;
    font-size: 9px;
    font-weight: 600;
    margin-right: 2px;
  }
  .v11-dashboard .dash-row > .dash-col-sl-cell::before {
    content: "SL";
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    margin-right: 4px;
  }

  /* Inner spans inside TP/SL/EXP — компактный шрифт */
  .v11-dashboard .dash-row > .dash-col-tp .pct,
  .v11-dashboard .dash-row > .dash-col-tp .usd {
    font-size: 10px;
    line-height: 1.2;
  }
  .v11-dashboard .dash-row > .dash-col-exp-cell .pct {
    font-size: 12px;
    font-weight: 700;
  }
  .v11-dashboard .dash-row > .dash-col-exp-cell .lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7280;
  }

  .v11-nav a { font-size: 9px; padding: 2px 6px; }
}

/* Очень узкие экраны (≤380px): TPs стакаются вертикально */
@media (max-width: 380px) {
  .v11-dashboard .dash-row > .dash-col-tp-1 { grid-column: 1 / -1; grid-row: 5; }
  .v11-dashboard .dash-row > .dash-col-tp-2 { grid-column: 1 / -1; grid-row: 6; border-top: none !important; padding-top: 2px !important; }
  .v11-dashboard .dash-row > .dash-col-tp-3 { grid-column: 1 / -1; grid-row: 7; border-top: none !important; padding-top: 2px !important; }
  .v11-dashboard .dash-row > .dash-col-sl-cell { grid-row: 8; }
}



/* ── Demo standalone-tab fullscreen mode (?demo=1) ─────────────── */
/* Phase 7.12: добавил .auth-modal-overlay и .auth-modal-overlay.show в whitelist.
   Edit/Notes/Settings модалки имеют класс auth-modal-overlay (НЕ .auth-modal),
   и без этого исключения display: none !important перекрывал .show.
   eb2.36 FIX: добавил #live-overlay в whitelist — HYHI Live Trading панель
   тоже должна работать в demo-only-mode (user мог открыть `?demo=1` URL). */
body.demo-only-mode > *:not(.demo-panel):not(.auth-modal):not(.auth-modal-overlay):not(.demo-modal):not(#auth-widget):not(#toast-container):not(#live-overlay) {
  display: none !important;
}
body.demo-only-mode .demo-panel {
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 1 !important;
}
/* В fullscreen-режиме X-кнопка закрывает вкладку, поэтому подсвечиваем её */
body.demo-only-mode .demo-panel #demo-close-btn {
  background: rgba(239,68,68,.15) !important;
  border: 1px solid rgba(239,68,68,.4) !important;
  color: #f87171 !important;
}
body.demo-only-mode .demo-panel #demo-close-btn:hover {
  background: rgba(239,68,68,.3) !important;
}
body.demo-only-mode .demo-panel #demo-close-btn::after {
  content: " закрыть вкладку";
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

/* ── Reset statistics buttons ──────────────────────────────────── */
.da-reset-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #2a3441;
}
.da-reset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.da-reset-grid.single { grid-template-columns: 1fr; }

/* History tab toolbar (top of История) */
.dh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 14px 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid #1f2937;
}
.dh-count {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.dh-count b { color: #e5e7eb; }
.da-reset-btn {
  padding: 10px 16px;
  border: 1px solid #2a3441;
  background: #0a0e14;
  color: #e5e7eb;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.da-reset-btn:hover { filter: brightness(1.15); }
.da-reset-btn:active { transform: translateY(1px); }
.da-reset-btn.warn {
  border-color: rgba(245,158,11,.5);
  color: #fbbf24;
  background: rgba(245,158,11,.06);
}
.da-reset-btn.warn:hover { background: rgba(245,158,11,.14); }
.da-reset-btn.danger {
  border-color: rgba(239,68,68,.5);
  color: #f87171;
  background: rgba(239,68,68,.08);
}
.da-reset-btn.danger:hover { background: rgba(239,68,68,.18); }

/* ── Dashboard row: бейджи режима и левая граница ─────────────── */
.dash-row.scan-mode-scalping { border-left: 3px solid #f59e0b; }
.dash-row.scan-mode-daily { border-left: 3px solid #38bdf8; }
.dash-mode-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.5));
}
.dash-mode-badge.mode-scalp { color: #fbbf24; }
.dash-mode-badge.mode-daily { color: #7dd3fc; }

/* ── Nav list (sidebar): иконка режима ─────────────────────────── */
#nav a.scan-mode-scalping {
  border-left: 2px solid #f59e0b;
  padding-left: 6px;
}
#nav a.scan-mode-daily {
  border-left: 2px solid #38bdf8;
  padding-left: 6px;
}

/* ── Scan mode: цветная левая граница карточки (3px solid) ─────── */
.coin-card.scan-mode-scalping {
  border-left: 3px solid #f59e0b !important;
}
.coin-card.scan-mode-daily {
  border-left: 3px solid #38bdf8 !important;
}

/* ── Scan mode badge (внутри demo-bar, реальный DOM-элемент) ───── */
.coin-mode-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  margin-right: 8px;
}
.coin-mode-badge.mode-scalp {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1a1410;
  box-shadow: 0 1px 4px rgba(245,158,11,.4);
}
.coin-mode-badge.mode-daily {
  background: rgba(56,189,248,.18);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.35);
}

.dc-mode {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
}
.dc-mode-scalp {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1a1410;
}
.dc-mode-daily {
  background: rgba(56,189,248,.18);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.3);
}

/* ── Demo summary cards (Active tab top-row) ──────────────────── */
.demo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 4px;
  margin-bottom: 14px;
}
@media (max-width: 700px){ .demo-summary { grid-template-columns: repeat(2, 1fr); } }
.ds-card {
  background: linear-gradient(180deg, #131a23, #0f141b);
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 12px;
}
.ds-lbl { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ds-val { font-size: 18px; font-weight: 700; color: #e5e7eb; margin-top: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.ds-val.pos { color: #34d399; }
.ds-val.neg { color: #f87171; }

/* ── Liquidation level card (Active position) ─────────────────── */
.lvl-card.lvl-liq {
  background: rgba(239,68,68,.08) !important;
  border: 1px solid rgba(239,68,68,.4) !important;
}
.lvl-card.lvl-liq .lvl-name { color: #f87171; font-weight: 700; }
.lvl-card.lvl-liq .lvl-price { color: #fca5a5; }

/* ── Demo modal: presets, summary row ─────────────────────────── */
.dm-presets { display: inline-flex; gap: 4px; margin-left: 8px; }
.dm-presets button[data-preset] {
  background: #1f2937;
  border: 1px solid #374151;
  color: #cbd5e1;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.dm-presets button[data-preset]:hover { background: #374151; color: #fff; }
.dm-summary-row {
  background: #0a0e14;
  border: 1px dashed #2a3441;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0 4px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.dm-summary-row .dm-tag { font-size: 10px; color: #94a3b8; margin-right: 4px; }
.dm-summary-row b { color: #e5e7eb; }
.dm-summary-row .pos { color: #34d399; }
.dm-summary-row .neg { color: #f87171; }

/* ── Demo refresh button (heavy refresh trigger) ───────────────── */
.demo-refresh-now {
  background: linear-gradient(90deg, #0d9488, #22d3ee) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 6px 12px !important;
  box-shadow: 0 1px 6px rgba(13,148,136,.35);
  transition: filter .15s;
}
.demo-refresh-now:hover:not(:disabled) { filter: brightness(1.15); }
.demo-refresh-now:disabled { opacity: .6; cursor: wait; }
.demo-refresh-status {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── TradingView click-through на символе монеты ───────────────── */
.tv-link {
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  border-bottom: 1px dashed rgba(56,189,248,.4);
  transition: color .15s, border-color .15s;
  cursor: pointer;
}
.tv-link:hover {
  color: #7dd3fc !important;
  border-bottom-color: #7dd3fc;
}
.tv-link::after {
  content: " ↗";
  font-size: .85em;
  opacity: .55;
}

/* ── Auth header widget ────────────────────────────────────────── */
.auth-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
}
.auth-widget .auth-email {
  color: #9ca3af;
  font-size: 10px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-widget .auth-btn {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #2a3441;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
}
.auth-widget .auth-btn:hover { background:#2a3441; border-color:#3b4655; }
.auth-widget .auth-btn.primary { background: linear-gradient(90deg,#dc2626,#f59e0b); border:none; color:#fff; }
.auth-widget .auth-btn.primary:hover { filter:brightness(1.15); }
.auth-widget .auth-btn.fav-toggle.on {
  background: rgba(245,158,11,.15);
  color: #f59e0b;
  border-color: #f59e0b;
}
.auth-widget .demo-btn {
  background: linear-gradient(90deg,#0d9488,#22d3ee);
  color: #fff;
  border: none;
  font-weight: 600;
}
.auth-widget .demo-btn:hover { filter: brightness(1.15); background: linear-gradient(90deg,#0d9488,#22d3ee); }
.auth-widget .settings-btn { padding: 3px 7px; }

/* ── Modal (shared for auth/demo/settings) ─────────────────────── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.auth-modal-overlay.show { display: flex; }
.auth-modal {
  background: #121821;
  border: 1px solid #2a3441;
  border-radius: 10px;
  width: min(420px, 90vw);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  max-height: 92vh;
  overflow-y: auto;
}
.auth-modal h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #e5e7eb;
  font-weight: 700;
}
.auth-modal .auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid #1f2937;
}
.auth-modal .auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  padding: 8px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
}
.auth-modal .auth-tab.active { color: #f59e0b; border-bottom-color: #f59e0b; }
.auth-modal label {
  display: block;
  font-size: 10px;
  color: #6b7280;
  margin: 10px 0 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-modal input[type="email"],
.auth-modal input[type="password"],
.auth-modal input[type="number"],
.auth-modal input[type="text"],
.auth-modal select {
  width: 100%;
  background: #0a0e14;
  border: 1px solid #2a3441;
  border-radius: 5px;
  padding: 8px 10px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.auth-modal input:focus, .auth-modal select:focus { border-color: #22d3ee; }
.auth-modal .auth-error {
  color: #ef4444;
  font-size: 11px;
  margin-top: 8px;
  min-height: 14px;
}
.auth-modal .auth-success {
  color: #10b981;
  font-size: 11px;
  margin-top: 8px;
  min-height: 14px;
}
.auth-modal .auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.auth-modal .auth-submit {
  flex: 1;
  background: linear-gradient(90deg,#dc2626,#f59e0b);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: filter .15s;
}
.auth-modal .auth-submit:hover { filter: brightness(1.15); }
.auth-modal .auth-submit:disabled { opacity:.5; cursor:not-allowed; }
.auth-modal .auth-cancel {
  background: #1f2937;
  border: 1px solid #2a3441;
  color: #e5e7eb;
  padding: 10px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.auth-modal .auth-hint {
  font-size: 10px;
  color: #6b7280;
  margin-top: 10px;
  line-height: 1.4;
}
.auth-modal .dm-hint {
  font-size: 11px;
  color: #9ca3af;
  margin: 0 0 12px;
  line-height: 1.4;
}
.auth-modal .dm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 10px;
}
.auth-modal .dm-grid > div { min-width: 0; }
.auth-modal .dm-tag {
  font-size: 9px;
  background: rgba(34,211,238,.15);
  color: #22d3ee;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: none;
  letter-spacing: 0;
}
.auth-modal .dm-strategy {
  margin-top: 10px;
  padding: 6px 8px;
  background: #0a0e14;
  border: 1px solid #1f2937;
  border-radius: 4px;
  font-size: 11px;
  color: #e5e7eb;
}
.auth-modal .set-row { margin-bottom: 14px; }
.auth-modal .set-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e5e7eb;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  margin: 0 0 6px;
}
.auth-modal .set-toggle input { width: 18px; height: 18px; cursor: pointer; }
.auth-modal .set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

/* ── Star button ───────────────────────────────────────────────── */
.fav-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #4b5563;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: all .15s;
  vertical-align: middle;
}
.fav-star:hover { color: #f59e0b; background: rgba(245,158,11,.1); }
.fav-star.on { color: #f59e0b; }
.fav-star.on:hover { color: #fbbf24; }
.fav-star[disabled] { opacity:.4; cursor:not-allowed; }

.v11-dashboard .dash-row .fav-star.dash-fav-star {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 12px;
  z-index: 2;
  background: rgba(15,20,27,.6);
}
.v11-dashboard .dash-row .fav-star.dash-fav-star:hover {
  background: rgba(245,158,11,.2);
}
.coin-card-fav { margin-left: 8px; vertical-align: middle; }

.dash-row.fav-hidden { display: none !important; }
.coin-card.fav-hidden { display: none !important; }

/* ── Demo button on coin card (надёжное расположение) ──────────── */
.coin-card { position: relative !important; }
.coin-demo-bar {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, rgba(13,148,136,.12), rgba(34,211,238,.12));
  border-bottom: 1px solid #1f2937;
  border-radius: 14px 14px 0 0;
  position: relative;
  z-index: 4;
}
.coin-demo-bar .coin-demo-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
  margin-right: auto;
  letter-spacing: .04em;
}
.coin-demo-btn {
  background: linear-gradient(90deg,#0d9488,#22d3ee) !important;
  border: none !important;
  color: #fff !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  transition: filter .15s, transform .15s !important;
  box-shadow: 0 2px 10px rgba(13,148,136,.45) !important;
  letter-spacing: .03em;
}
.coin-demo-btn:hover { filter: brightness(1.18) !important; transform: translateY(-1px); }
.coin-demo-btn:active { transform: translateY(0); }

/* ── Demo Panel (slide-over) ───────────────────────────────────── */
.demo-panel {
  position: fixed;
  top: 60px;
  right: 12px;
  width: min(900px, 96vw);
  max-height: calc(100vh - 80px);
  background: #0f141b;
  border: 1px solid #2a3441;
  border-radius: 10px;
  z-index: 90;
  display: none;
  flex-direction: column;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
.demo-panel.show { display: flex; }
.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #1f2937;
}
.demo-panel-header h4 {
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 700;
}
.demo-panel-header .demo-panel-sub {
  font-size: 10px;
  color: #6b7280;
}
.demo-panel-header .close {
  margin-left: auto;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.demo-panel-header .close:hover { color: #e5e7eb; }

.demo-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid #1f2937;
  background: #0a0e14;
}
.demo-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-tab:hover { color: #e5e7eb; }
.demo-tab.active { color: #22d3ee; border-bottom-color: #22d3ee; }
.demo-tab .badge {
  background: rgba(34,211,238,.2);
  color: #22d3ee;
  border-radius: 9px;
  padding: 1px 6px;
  font-size: 10px;
  min-width: 18px;
  text-align: center;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #1f2937;
}
.demo-toolbar .auth-btn {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #2a3441;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.demo-toolbar .auth-btn:hover { background: #2a3441; }
.demo-toolbar .demo-disclaimer {
  margin-left: auto;
  font-size: 10px;
  color: #f59e0b;
  background: rgba(245,158,11,.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245,158,11,.3);
  cursor: help;
}

.demo-content {
  overflow-y: auto;
  flex: 1;
  padding: 12px 14px;
  max-height: calc(100vh - 200px);
}
.demo-empty {
  text-align: center;
  padding: 40px 16px;
  color: #6b7280;
  font-size: 12px;
}
.demo-empty > div:first-child { font-size: 28px; margin-bottom: 8px; }

/* ── Demo card (active position) ───────────────────────────────── */
.demo-card {
  background: #121821;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 11px;
}
.demo-card.status-PENDING { border-left: 3px solid #6b7280; }
.demo-card.status-TP1_HIT { border-left: 3px solid #84cc16; background: rgba(132,204,22,.04); }
.demo-card.status-TP2_HIT { border-left: 3px solid #10b981; background: rgba(16,185,129,.06); }

.demo-card .dc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.demo-card .dc-sym { font-size: 14px; font-weight: 700; color: #e5e7eb; }
.demo-card .dc-side { font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 6px; font-weight: 700; }
.demo-card .dc-LONG  { background: rgba(16,185,129,.15); color: #10b981; }
.demo-card .dc-SHORT { background: rgba(239,68,68,.15);  color: #ef4444; }
.demo-card .dc-strat {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  background: #2a3441;
  color: #9ca3af;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: .3px;
}
.demo-card .dc-source { font-size: 10px; color: #9ca3af; }
.demo-card .dc-cmp {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 8px;
  line-height: 1.5;
}
.demo-card .dc-cmp .pos { color: #10b981; font-weight: 600; }
.demo-card .dc-cmp .neg { color: #ef4444; font-weight: 600; }

.demo-card .dc-prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: #e5e7eb;
}
.demo-card .dc-pnl { font-weight: 700; font-size: 14px; }
.demo-card .dc-pnl.pos { color: #10b981; }
.demo-card .dc-pnl.neg { color: #ef4444; }
.demo-card .dc-pnl-usd { font-size: 11px; opacity: .8; margin-left: 4px; }

.demo-card .dc-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.demo-card .dc-levels .lvl {
  font-size: 10px;
  background: #0a0e14;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 4px 6px;
  color: #9ca3af;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.demo-card .dc-levels .lvl-hit {
  background: rgba(16,185,129,.12);
  color: #10b981;
  border-color: rgba(16,185,129,.4);
}
.demo-card .dc-levels .lvl-sl {
  background: rgba(239,68,68,.08);
  color: #fca5a5;
  border-color: rgba(239,68,68,.3);
}
.demo-card .dc-levels .lvl-be {
  background: rgba(245,158,11,.12);
  color: #f59e0b;
  border-color: rgba(245,158,11,.4);
  font-weight: 600;
}

.demo-card .dc-partials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.demo-card .dc-partial {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #0a0e14;
  border: 1px solid #1f2937;
  color: #9ca3af;
}
.demo-card .dc-partial.pos { background: rgba(16,185,129,.08); color: #10b981; border-color: rgba(16,185,129,.3); }
.demo-card .dc-partial.neg { background: rgba(239,68,68,.08); color: #ef4444; border-color: rgba(239,68,68,.3); }

/* ── Signal badges (Score / RSI / Verdict) ────────────────────── */
.dc-signal-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 4px 0 8px 0;
}
.sig-badge {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
  border: 1px solid #2a3441;
  background: #0a0e14;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .02em;
}
.sig-badge.sb-strong { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(16,185,129,.45); }
.sig-badge.sb-mid    { background: rgba(245,158,11,.10); color: #fbbf24; border-color: rgba(245,158,11,.4); }
.sig-badge.sb-weak   { background: rgba(107,114,128,.12); color: #9ca3af; border-color: #1f2937; }
.sig-badge.sb-verdict{ background: rgba(56,189,248,.10); color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.sig-badge.sb-mini   { font-size: 9px; padding: 1px 5px; }

/* ── Levels grid (TP/SL detailed cells) ───────────────────────── */
.demo-card .dc-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.lvl-cell {
  border: 1px solid #1f2937;
  border-radius: 5px;
  padding: 6px 8px;
  background: #0a0e14;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  display: flex; flex-direction: column; gap: 2px;
}
.lvl-cell .lvl-name { font-size: 10px; color: #6b7280; letter-spacing: .04em; font-weight: 700; }
.lvl-cell .lvl-price{ font-size: 12px; color: #e5e7eb; font-weight: 700; }
.lvl-cell .lvl-pct  { font-size: 10px; }
.lvl-cell .lvl-usd  { font-size: 10px; }
.lvl-cell.lvl-tp    { border-color: rgba(34,211,238,.25); }
.lvl-cell.lvl-hit   { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.45); }
.lvl-cell.lvl-sl    { background: rgba(127,29,29,.18); border-color: rgba(220,38,38,.4); }
.lvl-cell.lvl-be    { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.4); }
.lvl-cell .pos      { color: #10b981; }
.lvl-cell .neg      { color: #ef4444; }

/* ── History table — extended cells ───────────────────────────── */
.demo-history .dh-sym-cell { min-width: 130px; }
.demo-history .dh-badges { margin-top: 4px; display: flex; gap: 3px; flex-wrap: wrap; }
.demo-history .dh-verdict { margin-top: 4px; font-size: 10px; color: #7dd3fc; }
.demo-history .dh-levels-cell { min-width: 180px; }
.demo-history .dh-lvl {
  display: grid;
  grid-template-columns: 30px 1fr 60px;
  gap: 6px;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  padding: 2px 0;
  border-bottom: 1px dashed #161e29;
}
.demo-history .dh-lvl:last-child { border-bottom: none; }
.demo-history .dh-lvl-name  { color: #6b7280; font-weight: 700; }
.demo-history .dh-lvl-price { color: #e5e7eb; }
.demo-history .dh-lvl-move  { text-align: right; }
.demo-history .dh-lvl-move.pos { color: #10b981; }
.demo-history .dh-lvl-move.neg { color: #ef4444; }
.demo-history .dh-lvl-hit { grid-column: 1 / -1; padding-left: 36px; font-size: 10px; font-weight: 600; }
.demo-history .dh-lvl-hit.pos { color: #10b981; }
.demo-history .dh-lvl-hit.neg { color: #ef4444; }
.demo-history .dh-lvl-empty { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: #6b7280; }

.demo-card .dc-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.demo-card .dc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #1f2937;
  flex-wrap: wrap;
}
.demo-card .dc-stale { font-size: 10px; color: #6b7280; }
.demo-card .dc-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-card .dc-action-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.dc-action-btn {
  background: #1f2937;
  border: 1px solid #2a3441;
  color: #e5e7eb;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
}
.dc-action-btn:hover { background: #2a3441; }
.dc-action-btn.danger:hover { background: #7f1d1d; border-color: #dc2626; }

/* ===== Sprint 1: Active toolbar + status color-bar + compact view ===== */
.dc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px;
  background: #0a0e14;
  border: 1px solid #1f2937;
  border-radius: 6px;
}
.dc-tb-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-tb-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dc-chip {
  background: #1f2937;
  color: #cbd5e1;
  border: 1px solid #2a3441;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.dc-chip:hover { background: #2a3441; }
.dc-chip.on { background: rgba(245,158,11,.18); border-color: #f59e0b; color: #fbbf24; }
.dc-chip-clear { background: rgba(239,68,68,.12); border-color: #7f1d1d; color: #f87171; }
.dc-search, .dc-sort {
  background: #0a0e14;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  font-family: inherit;
}
.dc-search { min-width: 130px; }
.dc-sort-dir, .dc-view-toggle {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #2a3441;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.dc-sort-dir:hover, .dc-view-toggle:hover { background: #2a3441; }

/* Status color-bar — 3px полоса слева карточки */
.demo-card { position: relative; }
.demo-card .dc-status-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 4px 0 0 4px;
}
.demo-card.st-profit  .dc-status-bar { background: #10b981; }
.demo-card.st-loss    .dc-status-bar { background: #ef4444; }
.demo-card.st-neutral .dc-status-bar { background: #6b7280; }
.demo-card.st-dca     .dc-status-bar { background: #94a3b8; }
.demo-card.st-trailing .dc-status-bar { background: #a78bfa; animation: pulse-trailing 2s ease-in-out infinite; }
@keyframes pulse-trailing {
  0%, 100% { opacity: 0.5; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 8px #a78bfa; }
}

/* Compact list view */
.dc-compact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dc-compact-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 70px 90px 90px 90px 60px auto;
  gap: 8px;
  align-items: center;
  background: #0f141b;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 8px 10px 8px 13px;
  font-size: 12px;
}
.dc-compact-row .dc-status-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 4px 0 0 4px;
}
.dc-compact-row.st-profit  .dc-status-bar { background: #10b981; }
.dc-compact-row.st-loss    .dc-status-bar { background: #ef4444; }
.dc-compact-row.st-neutral .dc-status-bar { background: #6b7280; }
.dc-compact-row.st-dca     .dc-status-bar { background: #94a3b8; }
.dc-compact-row.st-trailing .dc-status-bar { background: #a78bfa; }
.dc-compact-row .dc-cmp-sym { font-weight: 600; color: #e5e7eb; }
.dc-compact-row .dc-cmp-actions { display: flex; gap: 4px; }
.dc-compact-row .dc-action-btn { padding: 3px 7px; font-size: 11px; }
@media (max-width: 640px) {
  .dc-compact-row {
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto;
  }
  .dc-compact-row > *:not(.dc-cmp-sym):not(.dc-cmp-actions):not(.dc-status-bar) {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 11px;
  }
}

/* ===== Sprint 2: History filter bar + groups ===== */
.dh-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px;
  background: #0a0e14;
  border: 1px solid #1f2937;
  border-radius: 6px;
}
.dh-fb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; }
.dh-fb-label { color: #9ca3af; min-width: 56px; font-size: 10px; text-transform: uppercase; }
.dh-fb-row .dc-chip { padding: 3px 9px; font-size: 10px; }
.dh-fb-input {
  background: #0a0e14; color: #e5e7eb; border: 1px solid #1f2937;
  border-radius: 4px; padding: 4px 7px; font-size: 11px; font-family: inherit;
}
.dh-fb-period { display: flex; gap: 0; }
.dh-fb-period button {
  background: #1f2937; color: #cbd5e1; border: 1px solid #2a3441;
  padding: 4px 12px; font-size: 11px; cursor: pointer; font-family: inherit;
}
.dh-fb-period button:first-child { border-radius: 4px 0 0 4px; }
.dh-fb-period button:last-child { border-radius: 0 4px 4px 0; }
.dh-fb-period button:not(:last-child) { border-right: none; }
.dh-fb-period button.on { background: rgba(245,158,11,.2); color: #f59e0b; border-color: #f59e0b; z-index: 1; }
.dh-group-header {
  background: #1a1f28;
  padding: 8px 12px;
  margin: 12px 0 4px;
  border-left: 3px solid #f59e0b;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dh-group-header .dh-grp-name { font-weight: 600; color: #e5e7eb; }
.dh-group-header .dh-grp-stats { color: #94a3b8; font-size: 11px; font-family: 'JetBrains Mono', monospace; }

/* ===== Sprint 3: Analytics 3-tier hierarchy ===== */
.da-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 700px) { .da-hero { grid-template-columns: repeat(2, 1fr); } }
.da-hero .da-card {
  background: linear-gradient(180deg, #1a2230, #0f141b);
  border: 1px solid #2a3441;
  border-radius: 10px;
  padding: 14px 16px;
}
.da-hero .da-lbl { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; }
.da-hero .da-val { font-size: 24px; font-weight: 700; margin-top: 4px; }
.da-hero .da-trend { font-size: 11px; margin-top: 4px; }
.da-period-bar {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  align-items: center;
  font-size: 11px;
}
.da-period-bar .dh-fb-label { margin-right: 8px; }
.da-bench { font-size: 10px; margin-top: 2px; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.da-bench.good { background: rgba(16,185,129,.12); color: #10b981; }
.da-bench.ok   { background: rgba(245,158,11,.12); color: #f59e0b; }
.da-bench.bad  { background: rgba(239,68,68,.12); color: #ef4444; }

/* ===== Sprint 6: Toasts ===== */
#toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
  max-width: 360px;
}
.toast {
  background: #1a2230;
  color: #e5e7eb;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 4px solid #6b7280;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s, transform .25s;
  pointer-events: auto;
  word-wrap: break-word;
}
.toast-show { opacity: 1; transform: translateX(0); }
.toast-success { border-left-color: #10b981; }
.toast-error   { border-left-color: #ef4444; }
.toast-info    { border-left-color: #22d3ee; }
.toast-warn    { border-left-color: #f59e0b; }

/* ===== Sprint 5: Tooltips on metrics ===== */
.da-card[title], .dc-chip[title] { cursor: help; }
.da-card.has-help { position: relative; }
.da-card.has-help::after {
  content: '?';
  position: absolute;
  top: 6px; right: 8px;
  font-size: 10px;
  color: #6b7280;
  background: #1f2937;
  border-radius: 50%;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Settings tab in Demo panel */
.ds-tab {
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 4px 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.ds-tab-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 12px;
  position: sticky; top: 0; background: #0a0e14; z-index: 5;
}
.ds-tab-save-bar {
  display: flex; gap: 10px; align-items: center;
}
.ds-section {
  margin-bottom: 10px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 6px;
}
.ds-section[open] { border-color: #2a3441; }
.ds-section-title {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.ds-section-title::before { content: "▶ "; color: #6b7280; transition: transform .2s; display: inline-block; margin-right: 4px; }
.ds-section[open] .ds-section-title::before { transform: rotate(90deg); }
.ds-section-body {
  padding: 6px 14px 14px;
  border-top: 1px solid #1f2937;
}
.ds-section-body input[type="number"],
.ds-section-body input[type="text"],
.ds-section-body select {
  width: 100%;
  padding: 6px 8px;
  background: #0a0e14;
  border: 1px solid #2a3441;
  border-radius: 4px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 12px;
}
.ds-section-body label:not(.set-toggle) {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 3px;
}
.ds-section-body .set-toggle {
  display: flex; gap: 8px; align-items: center;
  margin: 6px 0;
  cursor: pointer;
  font-size: 12px;
  color: #e5e7eb;
}
.ds-section-body .dm-hint {
  font-size: 10.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 6px 0 4px;
  background: rgba(15, 23, 42, .5);
  padding: 8px 10px;
  border-left: 2px solid #2a3441;
  border-radius: 0 4px 4px 0;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .ds-tab { padding: 4px 0 24px; }
  .ds-tab-header { padding: 8px 4px; }
  .ds-section-title { padding: 10px 12px; font-size: 12px; }
  .ds-section-body { padding: 4px 10px 12px; }
  .ds-section-body .dm-hint { font-size: 10px; }
}

/* Phase 7: Settings sub-tabs (no-scroll layout) */
.ds-subtabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 12px;
  position: sticky; top: 56px; background: #0a0e14; z-index: 4;
}
.ds-subtab {
  padding: 6px 12px;
  background: rgba(31, 41, 55, .4);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s;
}
.ds-subtab:hover { background: rgba(31, 41, 55, .8); color: #e5e7eb; }
.ds-subtab.active {
  background: rgba(251, 191, 36, .15);
  border-color: #fbbf24;
  color: #fbbf24;
}
.ds-section-title-static {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #fbbf24;
  font-weight: 700;
}
@media (max-width: 700px) {
  .ds-subtabs { gap: 3px; }
  .ds-subtab { padding: 5px 8px; font-size: 10px; }
}

/* Phase 7: Compact Active Table — high-density rows (5+ coins на screen) */
.dc-compact-tbl {
  display: flex; flex-direction: column;
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: auto;
}
.dc-tbl-head, .dc-tbl-row {
  display: grid;
  grid-template-columns:
    minmax(195px, 1.3fr)   /* SYM (3 rows: name / chips+S/RSI / verdict) */
    minmax(170px, 1fr)     /* SPARK 12h */
    minmax(185px, 1.3fr)   /* ENTRY → NOW (3 строки) */
    minmax(185px, 1.3fr)   /* MIN MAX (2 строки) */
    minmax(345px, 2.5fr)   /* TP1/TP2/TP3 */
    minmax(170px, 1.3fr)   /* SL + LIQ */
    minmax(95px,  0.85fr)  /* PNL */
    minmax(80px,  0.65fr)  /* META */
    minmax(105px, 0.85fr); /* ACT */
  gap: 6px;
  padding: 6px 10px;
  align-items: center;       /* Phase 7.10: центрируем по вертикали — нет пустых мест */
  font-size: 12px;
  min-width: 1620px;
}
.dc-tbl-head {
  background: #0f141b;
  color: #6b7280; text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em;
  border-bottom: 1px solid #1f2937;
  position: sticky; top: 0; z-index: 5;
}
.dc-tbl-row {
  border-bottom: 1px solid rgba(31, 41, 55, .4);
  position: relative;
  padding-left: 14px;  /* room для status bar */
  transition: background .15s;
}
.dc-tbl-row:hover { background: rgba(31, 41, 55, .25); }
.dc-tbl-row:last-child { border-bottom: none; }
.dc-tbl-row .dc-status-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: #6b7280;
}
.dc-tbl-row.st-profit .dc-status-bar { background: #10b981; }
.dc-tbl-row.st-loss .dc-status-bar { background: #ef4444; }
.dc-tbl-row.st-neutral .dc-status-bar { background: #6b7280; }
.dc-tbl-row.st-dca .dc-status-bar { background: #94a3b8; }
.dc-tbl-row.st-trailing .dc-status-bar { background: #a855f7; animation: trailPulse 2s ease-in-out infinite; }
@keyframes trailPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Phase 7.1: Цветовая подсветка всей строки по live PnL.
   Row-pos / row-neg — заливка фона + усиленный цвет status-bar для
   моментального сканирования без чтения цифр. */
.dc-tbl-row.row-pos    { background: rgba(16, 185, 129, .07); }
.dc-tbl-row.row-pos:hover { background: rgba(16, 185, 129, .12); }
.dc-tbl-row.row-pos    .dc-status-bar { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,.5); }
.dc-tbl-row.row-neg    { background: rgba(239, 68, 68, .07); }
.dc-tbl-row.row-neg:hover { background: rgba(239, 68, 68, .12); }
.dc-tbl-row.row-neg    .dc-status-bar { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.5); }
.dc-tbl-row.row-flat   { background: rgba(107, 114, 128, .04); }
.dc-tbl-row.row-flat   .dc-status-bar { background: #6b7280; }

/* Phase 7.9: SYMBOL — 4-row компактный блок:
     row-name:    SYMBOL (large, prominent) + side
     row-pills:   mode + source (AUTO/MANUAL) + DCA
     row-verdict: 🔥 verdict text
     row-signals: S 83  RSI 76.9 */
.dc-tbl-c-sym {
  display: flex; flex-direction: column; gap: 3px;
  font-weight: 600; font-size: 12px;
  min-width: 0;
}
.dc-tbl-c-sym .sym-row-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; line-height: 1.15;
}
.dc-tbl-c-sym .sym-row-pills {
  display: flex; gap: 3px; flex-wrap: wrap; align-items: center;
}
.dc-tbl-c-sym .sym-row-verdict {
  display: block; line-height: 1.25;
  min-width: 0; overflow: hidden;
}
.dc-tbl-c-sym .sym-row-signals {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.dc-tbl-c-sym .sym-link {
  color: #93c5fd; text-decoration: none;
}
.dc-tbl-c-sym .sym-link.sym-big {
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.dc-tbl-c-sym .dc-side {
  font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 700;
}
.dc-tbl-c-sym .dc-side.dc-SHORT { background: rgba(239,68,68,.20); color: #fca5a5; }
.dc-tbl-c-sym .dc-side.dc-LONG  { background: rgba(16,185,129,.20); color: #6ee7b7; }

/* Source pills (AUTO / MANUAL / DCA) */
.src-pill {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  white-space: nowrap;
}
.src-pill.src-auto   { background: rgba(34,211,238,.15);  color: #22d3ee; }
.src-pill.src-manual { background: rgba(148,163,184,.15); color: #cbd5e1; }
.src-pill.src-dca    { background: rgba(168,85,247,.15);  color: #c4b5fd; }
/* Phase 7.7: signal-entry mini-row — "сиг $X · ↑+0.13%" (теперь в ENTRY cell) */
.sym-sig-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 600; line-height: 1.2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  cursor: help;
}
.sym-sig-row .muted { color: #6b7280; font-weight: 500; }
.sym-sig-row .pos   { color: #10b981; }
.sym-sig-row .neg   { color: #ef4444; }

.dc-tbl-c-spark {
  display: flex; align-items: center; gap: 4px;
  /* Phase 7.6: высоту row под крупный 105×45 SVG */
  min-height: 45px;
}
.dc-spark-ph { display: inline-flex; align-items: center; gap: 4px; }
.dc-spark-ph svg.coin-spark { display: block; flex-shrink: 0; }

/* Phase 7.2/7.9: ENTRY → NOW — info-pill, 3 строки.
   Phase 7.9: укрупнение шрифтов для удобства чтения. */
.dc-tbl-c-entry {
  display: flex; flex-direction: column; gap: 2px; font-size: 11px;
}
.dc-entry-cell {
  padding: 4px 7px; border-radius: 4px;
  border-left: 3px solid #6b7280;
  background: rgba(107,114,128,.06);
}
.dc-entry-cell.pos {
  border-left-color: #10b981;
  background: rgba(16,185,129,.10);
}
.dc-entry-cell.neg {
  border-left-color: #ef4444;
  background: rgba(239,68,68,.10);
}
/* entry-row0 — signal price → user entry delta */
.dc-entry-cell .entry-row0 {
  display: block;
  font-size: 11px; line-height: 1.25;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(107, 114, 128, .4);
  margin-bottom: 3px;
}
.dc-entry-cell .entry-row1 {
  display: flex; align-items: center; gap: 5px; font-size: 12px;
}
.dc-entry-cell .arrow { color: #6b7280; font-size: 11px; }
.dc-entry-cell .entry-row2 {
  font-size: 13px; font-weight: 700; line-height: 1.2; margin-top: 2px;
}
/* sym-sig-row внутри entry-row0 (Phase 7.7) — крупнее */
.sym-sig-row {
  font-size: 11px;
}
.dc-entry-cell .entry-row2.pos { color: #10b981; }
.dc-entry-cell .entry-row2.neg { color: #ef4444; }
.dc-entry-cell .entry-row2.muted { color: #94a3b8; }

/* MIN ⇕ MAX — две info-pill с ценой + %/$. Phase 7.9: укрупнение шрифта. */
.dc-tbl-c-extreme {
  display: flex; flex-direction: column; gap: 3px; font-size: 11px;
}
.dc-extreme-best, .dc-extreme-worst {
  display: grid;
  grid-template-columns: 16px auto 1fr auto;
  gap: 5px; align-items: baseline;
  padding: 3px 7px; border-radius: 4px;
  font-size: 11px; line-height: 1.3; white-space: nowrap;
}
.dc-extreme-best {
  background: rgba(16,185,129,.10);
  border-left: 2px solid #10b981;
  color: #6ee7b7;
}
.dc-extreme-worst {
  background: rgba(239,68,68,.10);
  border-left: 2px solid #ef4444;
  color: #fca5a5;
}
.dc-extreme-best .ex-px, .dc-extreme-worst .ex-px {
  color: #cbd5e1; font-family: 'JetBrains Mono', monospace;
}
.dc-extreme-best .ex-pct, .dc-extreme-best .ex-usd { color: #10b981; font-weight: 700; }
.dc-extreme-worst .ex-pct, .dc-extreme-worst .ex-usd { color: #ef4444; font-weight: 700; }
.dc-extreme-best .ex-usd, .dc-extreme-worst .ex-usd { justify-self: end; }

/* Phase 7.1/7.9: TP-колонка — три info-pill, у каждой 3 строки.
   Hit-ячейка теперь МНОГО ярче: насыщенная заливка, glow, жирный шрифт. */
.dc-tbl-c-tp {
  display: flex; align-items: stretch; gap: 4px; flex-wrap: nowrap;
}
.dc-tp-cell {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 6px; border-radius: 4px;
  background: rgba(34, 211, 238, .07);
  border-left: 2px solid rgba(34, 211, 238, .4);
  font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden;
}
.dc-tp-cell .tp-lbl { font-weight: 700; color: #67e8f9; font-size: 11px; }
.dc-tp-cell .tp-px  { color: #cbd5e1; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.dc-tp-cell .tp-pot { color: #10b981; font-weight: 600; font-size: 11px; }
/* Phase 7.9: успешная TP-ячейка — яркая зелёная заливка + glow */
.dc-tp-cell.hit {
  background: linear-gradient(135deg, rgba(16,185,129,.45), rgba(16,185,129,.30));
  border-left: 3px solid #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,.45), inset 0 0 1px rgba(16,185,129,.6);
  color: #d1fae5;
}
.dc-tp-cell.hit .tp-lbl { color: #ffffff; font-weight: 800; font-size: 12px; }
.dc-tp-cell.hit .tp-px  { color: #ecfdf5; }
.dc-tp-cell.hit .tp-pot { color: #6ee7b7; font-weight: 700; }
.dc-tp-cell.empty {
  background: transparent; border-left-color: #374151;
  color: #6b7280; padding: 4px 6px; font-size: 11px;
  align-items: center; justify-content: center;
}

/* SL-колонка — info-pill с red-tint, цена + потенциальный убыток.
   Phase 7.9: укрупнение шрифта; защищённые SL (breakeven/trailing) — ярче. */
.dc-tbl-c-sl {
  display: flex; flex-direction: column; gap: 3px; font-size: 11px;
}
.dc-sl-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 6px; border-radius: 4px;
  background: rgba(239, 68, 68, .10);
  border-left: 3px solid rgba(239, 68, 68, .55);
  font-size: 11px; line-height: 1.3; white-space: nowrap;
}
.dc-sl-cell .sl-lbl { font-weight: 700; color: #fca5a5; font-size: 11px; }
.dc-sl-cell .sl-px  { color: #cbd5e1; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.dc-sl-cell .sl-pot { color: #ef4444; font-weight: 600; font-size: 11px; }
/* Phase 7.9: SL в безубытке — ярко зелёный (защита прибыли активна) */
.dc-sl-cell.be {
  background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(16,185,129,.15));
  border-left: 3px solid #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,.30);
}
.dc-sl-cell.be .sl-lbl { color: #6ee7b7; font-weight: 800; }
.dc-sl-cell.be .sl-px  { color: #ecfdf5; }
.dc-sl-cell.be .sl-pot { color: #10b981; font-weight: 700; }
/* Phase 7.9: SL trailing — ярко фиолетовый (защита прибыли в движении) */
.dc-sl-cell.trail {
  background: linear-gradient(135deg, rgba(168,85,247,.30), rgba(168,85,247,.18));
  border-left: 3px solid #a855f7;
  box-shadow: 0 0 6px rgba(168,85,247,.35);
}
.dc-sl-cell.trail .sl-lbl { color: #ddd6fe; font-weight: 800; }
.dc-sl-cell.trail .sl-px  { color: #f5f3ff; }
.dc-sl-cell.trail .sl-pot { color: #c4b5fd; font-weight: 700; }
/* Liquidation info-pill (под SL): метка + цена + %/$. Phase 7.9: укрупнение */
.liq-mini-cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 6px; border-radius: 4px;
  background: rgba(251, 191, 36, .10);
  border-left: 3px solid #fbbf24;
  font-size: 11px; line-height: 1.3; white-space: nowrap;
  margin-top: 3px;
}
.liq-mini-cell .liq-lbl { font-weight: 700; color: #fbbf24; font-size: 11px; }
.liq-mini-cell .liq-px  { color: #cbd5e1; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.liq-mini-cell .liq-pot { color: #f59e0b; font-weight: 600; font-size: 11px; }
/* Legacy .liq-mini (если где-то ещё используется) */
.liq-mini {
  font-size: 9px; color: #fbbf24; opacity: 0.85;
  padding: 2px 4px; border-radius: 3px; background: rgba(251, 191, 36, .08);
  border-left: 2px solid rgba(251, 191, 36, .4);
  white-space: nowrap;
}

/* LIVE PnL — крупно, с цветовой заливкой по знаку для быстрого скана */
.dc-tbl-c-pnl {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  padding: 4px 7px; border-radius: 4px;
  border-right: 3px solid transparent;
}
.dc-tbl-c-pnl b { font-size: 14px; line-height: 1.1; }
.dc-tbl-c-pnl.pos {
  background: linear-gradient(90deg, rgba(16,185,129,.06), rgba(16,185,129,.20));
  border-right-color: #10b981;
  color: #10b981;
}
.dc-tbl-c-pnl.pos > span { color: #6ee7b7; }
.dc-tbl-c-pnl.pos > span:first-child { color: #10b981; }
.dc-tbl-c-pnl.neg {
  background: linear-gradient(90deg, rgba(239,68,68,.06), rgba(239,68,68,.20));
  border-right-color: #ef4444;
  color: #ef4444;
}
.dc-tbl-c-pnl.neg > span { color: #fca5a5; }
.dc-tbl-c-pnl.neg > span:first-child { color: #ef4444; }
.dc-tbl-c-pnl.muted {
  background: rgba(107,114,128,.08);
  border-right-color: #6b7280;
  color: #94a3b8;
}

/* Phase 7.4: SIGNAL-колонка — mode + verdict + S/RSI badges */
.dc-tbl-c-signal {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 9px; line-height: 1.25;
}
.sig-mode {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  width: fit-content;
}
.sig-mode.mode-scalp { background: rgba(168,85,247,.18); color: #c4b5fd; }
.sig-mode.mode-daily { background: rgba(34,211,238,.15); color: #67e8f9; }
.sig-verdict {
  display: inline-block; padding: 2px 5px; border-radius: 3px;
  background: rgba(245,158,11,.10); color: #fbbf24;
  font-size: 10px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; cursor: help;
}
.sig-pills {
  display: flex; gap: 3px; flex-wrap: wrap;
}
.sig-pill {
  padding: 1px 5px; border-radius: 2px; font-size: 9px; font-weight: 700;
  white-space: nowrap;
}
.sig-pill.sb-strong  { background: rgba(16,185,129,.20); color: #10b981; }
.sig-pill.sb-mid     { background: rgba(245,158,11,.15); color: #fbbf24; }
.sig-pill.sb-weak    { background: rgba(107,114,128,.15); color: #94a3b8; }
.sig-pill.rsi-hot    { background: rgba(239,68,68,.18); color: #ef4444; }   /* RSI ≥70 — overbought */
.sig-pill.rsi-cold   { background: rgba(34,211,238,.18); color: #22d3ee; }  /* RSI ≤30 — oversold */
.sig-pill.rsi-neutral{ background: rgba(107,114,128,.12); color: #cbd5e1; }

/* META — возраст + маржа×плечо. Phase 7.9: укрупнение */
.dc-tbl-c-meta {
  display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #cbd5e1;
  align-items: flex-end; line-height: 1.3; font-weight: 600;
}
.dc-tbl-c-meta .muted { font-size: 11px; color: #cbd5e1; }

.dc-tbl-c-act {
  display: flex; gap: 3px; justify-content: flex-end;
}
.dc-tbl-c-act .dc-action-btn {
  padding: 3px 6px;
  font-size: 11px;
  background: rgba(31,41,55,.6);
  border: 1px solid #2a3441;
  border-radius: 3px;
  cursor: pointer;
  color: #e5e7eb;
  transition: all .15s;
}
.dc-tbl-c-act .dc-action-btn:hover { background: #374151; transform: scale(1.05); }

@media (max-width: 1100px) {
  .dc-compact-tbl { font-size: 10px; }
  .dc-tbl-head, .dc-tbl-row { padding: 5px 8px; gap: 4px; }
  .dc-tbl-c-extreme small, .dc-tbl-c-entry small { font-size: 8px; }
}

/* Phase 7: Compact History Table — single-line rows */
.dh-compact-tbl {
  display: flex; flex-direction: column;
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: auto;
  margin-top: 8px;
}
.dh-tbl-head, .dh-row-compact {
  display: grid;
  grid-template-columns:
    minmax(195px, 1.4fr)   /* SYM (stacked) */
    minmax(195px, 1.4fr)   /* TRADE — 3-row entry-cell (Phase 7.19) */
    minmax(180px, 1.3fr)   /* MIN ⇕ MAX */
    minmax(345px, 2.5fr)   /* LEVELS TP1/TP2/TP3/SL */
    minmax(75px,  0.55fr)  /* STATUS */
    minmax(95px,  0.75fr)  /* PNL */
    minmax(95px,  0.85fr)  /* TIME */
    minmax(110px, 0.9fr)   /* STRAT */
    minmax(70px,  0.55fr); /* ACT */
  gap: 6px;
  padding: 6px 10px;
  align-items: center;
  font-size: 12px;
  min-width: 1535px;
}
.dh-tbl-head {
  background: #0f141b;
  color: #6b7280; text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em;
  border-bottom: 1px solid #1f2937;
  position: sticky; top: 0; z-index: 5;
}
.dh-row-compact {
  border-bottom: 1px solid rgba(31, 41, 55, .4);
  border-left: 3px solid #6b7280;
  transition: background .15s;
}
.dh-row-compact:hover { background: rgba(31, 41, 55, .25); }
.dh-row-compact.pos { border-left-color: #10b981; }
.dh-row-compact.neg { border-left-color: #ef4444; }
/* Phase 7.1: row-tint by net PnL */
.dh-row-compact.row-pos    { background: rgba(16, 185, 129, .07); }
.dh-row-compact.row-pos:hover { background: rgba(16, 185, 129, .12); }
.dh-row-compact.row-neg    { background: rgba(239, 68, 68, .07); }
.dh-row-compact.row-neg:hover { background: rgba(239, 68, 68, .12); }
.dh-row-compact.row-flat   { background: rgba(107, 114, 128, .04); }

/* TP/SL info-pills для history (4 в ряд: TP1 TP2 TP3 SL) */
.dh-c-levels {
  display: flex; align-items: stretch; gap: 4px; flex-wrap: nowrap;
}
.dh-tp-cell {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
  padding: 3px 5px; border-radius: 4px;
  background: rgba(34, 211, 238, .06);
  border-left: 2px solid rgba(34, 211, 238, .35);
  font-size: 9px; line-height: 1.2; white-space: nowrap; overflow: hidden;
}
.dh-tp-cell .tp-lbl { font-weight: 700; color: #67e8f9; font-size: 9px; }
.dh-tp-cell .tp-px  { color: #cbd5e1; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.dh-tp-cell .tp-pot { color: #94a3b8; font-weight: 600; font-size: 9px; }
.dh-tp-cell.hit {
  background: rgba(16,185,129,.18); border-left-color: #10b981;
}
.dh-tp-cell.hit .tp-lbl, .dh-tp-cell.hit .tp-pot { color: #10b981; }
.dh-tp-cell.exit-pos {
  background: rgba(16,185,129,.28); border-left-color: #10b981;
  outline: 1px solid rgba(16,185,129,.5);
}
.dh-tp-cell.exit-pos .tp-lbl { color: #d1fae5; }
.dh-tp-cell.exit-pos .tp-px, .dh-tp-cell.exit-pos .tp-pot { color: #6ee7b7; font-weight: 700; }
.dh-tp-cell.exit-neg {
  background: rgba(239,68,68,.28); border-left-color: #ef4444;
  outline: 1px solid rgba(239,68,68,.5);
}
.dh-tp-cell.exit-neg .tp-lbl { color: #fee2e2; }
.dh-tp-cell.exit-neg .tp-px, .dh-tp-cell.exit-neg .tp-pot { color: #fca5a5; font-weight: 700; }
.dh-tp-cell.pending {
  background: rgba(34,211,238,.04); border-left-color: rgba(34,211,238,.25);
  opacity: 0.65;
}
.dh-tp-cell.sl-pending {
  background: rgba(239,68,68,.06); border-left-color: rgba(239,68,68,.4);
}
.dh-tp-cell.sl-pending .tp-lbl { color: #fca5a5; }
.dh-tp-cell.sl-pending .tp-pot { color: #f87171; }
.dh-tp-cell.empty {
  background: transparent; border-left-color: #374151;
  color: #6b7280; align-items: center; justify-content: center; padding: 3px;
}

.dh-c-sym {
  display: flex; align-items: center; gap: 4px;
  font-weight: 600;
}
/* Phase 7.15: stacked variant — symbol name + pills (как в Active SYM cell).
   Имеет более высокую specificity (две класса) чтобы перекрыть базовый .dh-c-sym. */
.dh-c-sym.dh-c-sym-stacked {
  display: flex; flex-direction: column; gap: 3px;
  align-items: flex-start; min-width: 0;
}
.dh-c-sym-stacked .sym-row-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; line-height: 1.15;
}
.dh-c-sym-stacked .sym-row-pills {
  display: flex; gap: 3px; flex-wrap: wrap; align-items: center;
}
.dh-c-sym-stacked .sym-link.sym-big {
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: #93c5fd; text-decoration: none;
}
.dh-c-sym-stacked .dc-side {
  font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 700;
}
.dh-c-sym-stacked .dc-side.dc-SHORT { background: rgba(239,68,68,.20); color: #fca5a5; }
.dh-c-sym-stacked .dc-side.dc-LONG  { background: rgba(16,185,129,.20); color: #6ee7b7; }
.dh-c-sym .sym-link { color: #93c5fd; text-decoration: none; }
.dh-c-sym .dc-side {
  font-size: 9px; padding: 1px 4px; border-radius: 2px; font-weight: 700;
}
.dh-c-sym .dc-side.dc-SHORT { background: rgba(239,68,68,.15); color: #fca5a5; }
.dh-c-sym .dc-side.dc-LONG  { background: rgba(16,185,129,.15); color: #6ee7b7; }
.dh-c-sym .score-mini, .dh-c-sym .src-ico {
  background: rgba(34,211,238,.15); color: #67e8f9;
  font-size: 9px; padding: 1px 4px; border-radius: 2px; font-weight: 700;
}
.dh-c-sym .src-ico { background: transparent; padding: 0; }
.dh-c-sym .modeico { font-size: 11px; opacity: 0.8; }

.dh-c-trade {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.dh-c-trade .arrow { color: #6b7280; }

.dh-status-mini {
  font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700;
  white-space: nowrap;
}
.dh-status-mini.status-WIN { background: rgba(16,185,129,.2); color: #10b981; }
.dh-status-mini.status-LOSS { background: rgba(239,68,68,.2); color: #ef4444; }
.dh-status-mini.status-EXPIRED { background: rgba(107,114,128,.2); color: #9ca3af; }
.dh-status-mini.status-CLOSED_MANUAL { background: rgba(245,158,11,.15); color: #f59e0b; }

.dh-c-pnl { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.dh-c-pnl b { font-size: 12px; }
.dh-c-pnl small { font-size: 9px; opacity: 0.85; }

.dh-c-time { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; }

.dh-c-strat {
  font-size: 10px; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dh-c-act { display: flex; gap: 3px; justify-content: flex-end; }
.dh-c-act .dc-action-btn {
  padding: 3px 6px; font-size: 11px;
  background: rgba(31,41,55,.6); border: 1px solid #2a3441; border-radius: 3px;
  cursor: pointer; color: #e5e7eb; transition: all .15s;
}
.dh-c-act .dc-action-btn:hover { background: #374151; }
.dh-c-act .dc-action-btn.danger:hover { background: rgba(239,68,68,.2); color: #ef4444; }

@media (max-width: 900px) {
  .dh-compact-tbl { font-size: 10px; }
  .dh-tbl-head, .dh-row-compact { padding: 5px 8px; gap: 4px; }
}

/* PUMP 15M reversal highlight — pulsing when 15M направление противоположно 4h */
.v11-dashboard .dash-row .pump-reversal {
  animation: pumpReversalPulse 2s ease-in-out infinite;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
@keyframes pumpReversalPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}

/* Coin sparkline (24h price history) — injected рядом с symbol heading в .coin-hero */
.coin-spark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(42, 52, 65, .5);
  border-radius: 4px;
  vertical-align: middle;
}
.coin-spark-wrap .coin-spark { display: block; }
.coin-spark-pct {
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}
.coin-spark-pct.pos { color: #10b981; }
.coin-spark-pct.neg { color: #ef4444; }
@media (max-width: 700px) {
  .coin-spark-wrap { margin-left: 6px; padding: 2px 4px; gap: 3px; }
  .coin-spark-wrap svg { width: 50px !important; height: 16px !important; }
  .coin-spark-pct { font-size: 9px; }
}

/* Compact sparkline для dashboard table rows (.dash-col-sym → injected) */
.dash-spark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 4px;
  background: rgba(15, 23, 42, .5);
  border-radius: 3px;
  vertical-align: middle;
}
.dash-spark-wrap .coin-spark { display: block; }
.dash-spark-pct {
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}
.dash-spark-pct.pos { color: #10b981; }
.dash-spark-pct.neg { color: #ef4444; }
.dash-col-sym { display: flex !important; align-items: center; gap: 4px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .dash-spark-wrap { margin-left: 4px; padding: 1px 3px; gap: 2px; }
  .dash-spark-wrap svg { width: 36px !important; height: 12px !important; }
  .dash-spark-pct { font-size: 8px; }
}

/* Blocked Signals: collapsible help */
.blk-help {
  margin: 8px 0 12px;
  background: rgba(34, 211, 238, .06);
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 6px;
  overflow: hidden;
}
.blk-help summary {
  padding: 10px 14px;
  font-size: 12px;
  color: #67e8f9;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}
.blk-help summary:hover { background: rgba(34, 211, 238, .1); }
.blk-help-body {
  padding: 8px 16px 14px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.6;
  border-top: 1px solid rgba(34, 211, 238, .15);
}
.blk-help-body p { margin: 6px 0; }
.blk-help-body ol { margin: 6px 0 6px 20px; padding: 0; }
.blk-help-body li { margin: 3px 0; }
.blk-help-body code {
  background: rgba(15, 23, 42, .8);
  padding: 1px 5px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #fbbf24;
}
.blk-help-section {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, .4);
  border-radius: 5px;
}
.blk-help-section.blk-help-highlight {
  background: rgba(251, 191, 36, .06);
  border: 1px solid rgba(251, 191, 36, .25);
}
.blk-help-h {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.blk-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.blk-help-cell {
  background: rgba(10, 14, 20, .6);
  padding: 6px 9px;
  border-radius: 4px;
  border-left: 2px solid #2a3441;
  font-size: 11px;
  color: #cbd5e1;
}
.blk-help-cell small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.5;
}
.blk-help-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.blk-help-steps li {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  padding: 6px 10px;
  background: rgba(10, 14, 20, .6);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
}
.blk-help-num {
  flex: 0 0 24px;
  height: 24px;
  background: #fbbf24;
  color: #0a0e14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.blk-help-example {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(10, 14, 20, .8);
  border-left: 3px solid #fbbf24;
  border-radius: 0 4px 4px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #cbd5e1;
}
@media (max-width: 700px) {
  .blk-help-grid { grid-template-columns: 1fr; }
  .blk-help-cell { font-size: 10px; }
  .blk-help-example { font-size: 10px; }
}

/* Blocked Signals tab */
.blk-summary {
  display: flex; gap: 18px; padding: 8px 4px;
  font-size: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.blk-clear-btn {
  padding: 5px 10px;
  background: #1f2937;
  border: 1px solid #2a3441;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.blk-clear-btn:hover {
  background: #2a3441;
  color: #e5e7eb;
}
.blk-clear-all-btn {
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.blk-clear-all-btn:hover {
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border-color: #ef4444;
}
.blk-toolbar {
  background: #0f172a; border: 1px solid #1f2937; border-radius: 6px;
  padding: 8px 10px; margin-bottom: 10px;
}
.blk-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.blk-row:last-child { margin-bottom: 0; }
.blk-row-lbl { color: #6b7280; font-size: 10px; min-width: 60px; }
.dc-chip-badge {
  display: inline-block; min-width: 16px; padding: 0 4px;
  background: rgba(31,41,55,.6); border-radius: 8px;
  font-size: 9px; line-height: 14px; text-align: center; margin-left: 4px;
}
.blk-card {
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 6px;
  padding: 8px 10px; margin-top: 8px;
}
.blk-card-title { font-size: 11px; color: #fbbf24; font-weight: 600; margin-bottom: 6px; }
.blk-top-syms { display: flex; gap: 4px; flex-wrap: wrap; }

/* Phase 7.13: Blocked — компактный single-row toolbar
   Заменяет старый разнесённый blk-toolbar с тремя стопками rows. */
.blk-summary-compact {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 10px;
  background: #0f172a; border: 1px solid #1f2937; border-radius: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}
.blk-summary-compact .blk-stat { white-space: nowrap; }
.blk-summary-compact .blk-stat b { font-size: 14px; font-weight: 700; }
.blk-summary-compact .blk-summary-sep { width: 1px; height: 18px; background: #1f2937; }
.blk-summary-compact .blk-period-inline { display: inline-flex; gap: 3px; }
.blk-summary-compact .blk-summary-actions { margin-left: auto; display: flex; gap: 6px; }

.blk-toolbar-compact {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px;
  background: #0f172a; border: 1px solid #1f2937; border-radius: 6px;
  margin-bottom: 8px;
}
.blk-search-input {
  flex: 0 0 220px;
  padding: 5px 9px; font-size: 12px;
  background: #0a0e14; border: 1px solid #2a3441; border-radius: 4px;
  color: #e5e7eb; font-family: inherit;
}
.blk-details-inline {
  display: inline-block;
}
.blk-details-inline > summary {
  cursor: pointer; user-select: none;
  padding: 5px 10px; font-size: 12px;
  background: rgba(31,41,55,.6); border: 1px solid #2a3441; border-radius: 4px;
  color: #cbd5e1; font-weight: 600;
  list-style: none;
}
.blk-details-inline > summary::-webkit-details-marker { display: none; }
.blk-details-inline > summary::before {
  content: '▶'; display: inline-block; margin-right: 5px;
  font-size: 9px; transition: transform .15s;
}
.blk-details-inline[open] > summary::before { transform: rotate(90deg); }
.blk-details-inline > summary:hover { background: #2a3441; color: #fff; }
.blk-details-inline > div, .blk-details-inline > .blk-help-body {
  margin-top: 6px; padding: 8px;
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 4px;
}
.blk-reason-grid {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.blk-filter-active {
  display: inline-block; margin-left: 6px;
  color: #f59e0b; font-size: 10px; font-weight: 700;
}

/* Phase 7.13: sortable arrows в compact-history headers */
.dh-sortable {
  cursor: pointer; user-select: none;
  transition: color .12s;
}
.dh-sortable:hover { color: #f59e0b; }
.dh-sort-arrow {
  display: inline-block; margin-left: 3px;
  font-size: 9px; opacity: 0.55; color: #94a3b8;
}
.dh-sort-arrow.active { opacity: 1; color: #f59e0b; font-size: 11px; }

/* Phase 7.1: Blocked Signals — компактная таблица (как Active/History) */
.blk-compact-tbl {
  display: flex; flex-direction: column;
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: auto;
  margin-top: 8px;
}
.blk-tbl-head, .blk-row {
  display: grid;
  grid-template-columns:
    minmax(60px,  0.5fr)   /* TIME */
    minmax(150px, 1.2fr)   /* SYM + side + mode */
    minmax(70px,  0.6fr)   /* SCORE */
    minmax(180px, 1.4fr)   /* REASON */
    minmax(280px, 3fr);    /* DETAILS */
  gap: 8px;
  padding: 6px 10px;
  align-items: center;
  font-size: 11px;
  min-width: 920px;
}
.blk-tbl-head {
  background: #0f141b;
  color: #6b7280; text-transform: uppercase; font-size: 9px; letter-spacing: 0.04em;
  border-bottom: 1px solid #1f2937;
  position: sticky; top: 0; z-index: 5;
}
.blk-row {
  border-bottom: 1px solid rgba(31, 41, 55, .4);
  border-left: 3px solid #6b7280;
  transition: background .15s;
}
.blk-row:hover { background: rgba(31, 41, 55, .25); }
/* Color-code by reason group: info (cyan) / warn (amber) / cap (gray) / crit (red) */
.blk-row.row-info { border-left-color: #22d3ee; background: rgba(34,211,238,.04); }
.blk-row.row-info:hover { background: rgba(34,211,238,.08); }
.blk-row.row-warn { border-left-color: #f59e0b; background: rgba(245,158,11,.05); }
.blk-row.row-warn:hover { background: rgba(245,158,11,.1); }
.blk-row.row-cap  { border-left-color: #94a3b8; background: rgba(148,163,184,.04); }
.blk-row.row-crit { border-left-color: #ef4444; background: rgba(239,68,68,.07); }
.blk-row.row-crit:hover { background: rgba(239,68,68,.13); }

.blk-c-time   { color: #94a3b8; font-size: 10px; white-space: nowrap; }
.blk-c-sym    { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.blk-c-sym .sym-link { color: #93c5fd; text-decoration: none; }
.blk-side     { font-weight: 700; font-size: 9px; padding: 1px 4px; border-radius: 2px; }
.blk-side.neg { background: rgba(239,68,68,.15); color: #fca5a5; }
.blk-side.pos { background: rgba(16,185,129,.15); color: #6ee7b7; }
.blk-mode     { font-size: 11px; opacity: .8; }

.blk-score-pill {
  display: inline-block; min-width: 28px; text-align: center;
  padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 11px;
  background: rgba(31,41,55,.6); color: #cbd5e1;
}
.blk-score-pill.pos   { background: rgba(16,185,129,.18); color: #6ee7b7; }
.blk-score-pill.mid   { background: rgba(245,158,11,.15); color: #fbbf24; }
.blk-score-pill.muted { background: rgba(107,114,128,.12); color: #9ca3af; }

.blk-c-reason {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; cursor: help;
  padding: 3px 6px; border-radius: 3px;
}
.row-info-text { background: rgba(34,211,238,.08); color: #67e8f9; }
.row-warn-text { background: rgba(245,158,11,.1); color: #fbbf24; }
.row-cap-text  { background: rgba(148,163,184,.1); color: #cbd5e1; }
.row-crit-text { background: rgba(239,68,68,.12); color: #fca5a5; }
.blk-reason-ico { font-size: 12px; }

.blk-c-details {
  font-size: 10px; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

@media (max-width: 1100px) {
  .blk-compact-tbl { font-size: 10px; }
  .blk-tbl-head, .blk-row { padding: 5px 8px; gap: 6px; }
}
@media (max-width: 700px) {
  .blk-row-lbl { min-width: auto; }
}

/* ML Insights cards (Settings → Decision Engine) */
.ins-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px;
  background: #0f172a; border: 1px solid #1f2937; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 10px;
  font-size: 11px;
}
.ins-summary .muted { font-size: 10px; }
.ins-summary b { font-size: 13px; }
.ins-card {
  background: #0a0e14; border: 1px solid #1f2937; border-radius: 6px;
  padding: 10px 12px; margin-bottom: 10px;
}
.ins-card-title { font-size: 12px; color: #fbbf24; font-weight: 600; margin-bottom: 4px; }
.ins-card-hint { font-size: 10px; color: #94a3b8; margin-bottom: 6px; line-height: 1.5; }
.ins-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ins-table th { text-align: left; color: #6b7280; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #1f2937; font-size: 10px; }
.ins-table td { padding: 4px 6px; border-bottom: 1px solid rgba(31, 41, 55, .5); }
.ins-table tr:last-child td { border-bottom: none; }
.ins-table code { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #93c5fd; }
@media (max-width: 700px) {
  .ins-table { font-size: 10px; }
  .ins-table th, .ins-table td { padding: 3px 4px; }
  .ins-summary { font-size: 10px; }
}

/* DCA grid block in active card */
.demo-card .dc-dca-block {
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(34, 211, 238, 0.08);
  border-left: 3px solid #22d3ee;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  color: #67e8f9;
}

/* CB banner */
.da-cb-banner {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #fbbf24;
  font-size: 12px;
}

/* History: sortable headers */
.demo-history th.dh-sortable, .demo-history span.dh-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.demo-history th.dh-sortable:hover, .demo-history span.dh-sortable:hover { color: #f59e0b; }
.demo-history .dh-sort-arrow { color: #6b7280; font-size: 9px; margin-left: 2px; }
.demo-history .dh-sort-arrow.active { color: #f59e0b; font-weight: 700; }
.demo-history td.dh-time { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Trade journal: tags + notes display in card */
.demo-card .dc-journal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #1f2937;
  font-size: 11px;
}
.demo-card .dc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.demo-card .dc-tag {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.demo-card .dc-notes {
  color: #94a3b8;
  font-style: italic;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── History table ─────────────────────────────────────────────── */
.demo-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.demo-history th {
  text-align: left;
  padding: 6px 8px;
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid #1f2937;
  font-weight: 600;
}
.demo-history td {
  padding: 8px;
  border-bottom: 1px solid #161e29;
  vertical-align: top;
  color: #e5e7eb;
}
.demo-history td.muted, .demo-history .muted { color: #6b7280; font-size: 10px; }
.demo-history td.pos { color: #10b981; font-weight: 600; }
.demo-history td.neg { color: #ef4444; font-weight: 600; }
.demo-history .dc-LONG  { color: #10b981; font-size: 9px; }
.demo-history .dc-SHORT { color: #ef4444; font-size: 9px; }
.demo-history .dh-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}
.demo-history .dh-status.status-WIN { background: rgba(16,185,129,.15); color: #10b981; }
.demo-history .dh-status.status-LOSS { background: rgba(239,68,68,.15); color: #ef4444; }
.demo-history .dh-status.status-EXPIRED { background: rgba(107,114,128,.15); color: #9ca3af; }
.demo-history .dh-status.status-CLOSED_MANUAL { background: rgba(245,158,11,.12); color: #f59e0b; }

/* ── Analytics dashboard ───────────────────────────────────────── */
.da-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.da-card {
  background: #121821;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 10px 12px;
}
.da-card .da-lbl {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.da-card .da-val {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
  font-family: 'JetBrains Mono', monospace;
}
.da-card .da-val.pos { color: #10b981; }
.da-card .da-val.neg { color: #ef4444; }
.da-card .muted { font-size: 10px; color: #6b7280; margin-top: 2px; }

.da-section {
  background: #121821;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}
.da-section h5 {
  margin: 0 0 10px;
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 700;
}
.da-cmp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.da-cmp.da-cmp-4 { grid-template-columns: repeat(4, 1fr); }
.da-cmp > div { text-align: center; }
.da-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.da-table th, .da-table td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid #161e29;
  color: #e5e7eb;
}
.da-table th {
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
}
.da-table td.pos, .da-table .pos { color: #10b981; font-weight: 600; }
.da-table td.neg, .da-table .neg { color: #ef4444; font-weight: 600; }

/* v2.12: Pivot stats table */
.da-pivot-section { overflow-x: auto; }
.da-pivot-table {
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}
.da-pivot-table th {
  background: #0f1419;
  border-bottom: 2px solid #1f2937;
  text-align: center;
  padding: 6px 10px;
  white-space: nowrap;
}
.da-pivot-table th:first-child { text-align: left; }
.da-pivot-table td {
  border-bottom: 1px solid #161e29;
  border-right: 1px solid #161e29;
  vertical-align: top;
  padding: 4px 8px;
}
.da-pivot-table td:last-child { border-right: none; }
.da-pivot-table tr:hover td { background: rgba(56,189,248,.04); }
.da-pivot-cell { cursor: help; }

/* v2.12: Unified compare table — best/worst row highlighting */
.da-uc-table { border-collapse: separate; border-spacing: 0; font-size: 11px; }
.da-uc-table thead .da-uc-group-header th {
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: .6px;
}
.da-uc-table tbody tr:nth-child(even) td { background: rgba(15,23,42,.35); }
.da-uc-table tbody tr:hover td { background: rgba(56,189,248,.05); }
.da-uc-table td.da-uc-best  { box-shadow: inset 3px 0 0 0 #10b981; background: rgba(16,185,129,.08) !important; }
.da-uc-table td.da-uc-worst { box-shadow: inset 3px 0 0 0 #ef4444; background: rgba(239,68,68,.08) !important; }
.da-uc-best-legend  { color: #10b981; }
.da-uc-worst-legend { color: #ef4444; }

/* v2.12: Grade badge (A+/A/B/C/D/F) */
.da-grade-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .3px;
  line-height: 1.4;
}

/* v2.12: Heatmap weekday × hour */
.da-heatmap { border-spacing: 1px; }
.da-heatmap td { padding: 0; }
.da-heatmap th { border: none; }

/* v2.12: Best/Worst summary cards */
.da-bw-card { padding: 8px 10px; }
.da-bw-card.pos { border-left: 3px solid #10b981; }
.da-bw-card.neg { border-left: 3px solid #ef4444; }
.da-bw-card .da-val { font-size: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* v2.12: Compare table (full metrics) */
.da-compare-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  margin-top: 4px;
}
.da-compare-table thead th {
  background: #0f1419;
  border-bottom: 2px solid;
  position: sticky; top: 0;
}
.da-compare-table tr:nth-child(even) td { background: rgba(15,23,42,.4); }
.da-compare-table td { white-space: nowrap; }

.da-equity {
  width: 100%;
  height: 160px;
  background: #0a0e14;
  border-radius: 4px;
  border: 1px solid #1f2937;
}

/* ── Mobile (<=640px) ───────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Compact header: hide non-critical bits, keep auth visible */
  header.hbar .global-calc-group,
  header.hbar details[data-wid="02"],     /* Легенда */
  header.hbar .global-tf-group,
  header.hbar .h-7.w-px {                  /* vertical dividers */
    display: none !important;
  }
  header.hbar .history-box .hist-lbl { display: none; } /* compact archive */
  header.hbar { gap: 6px !important; padding: 6px 8px !important; }

  /* Status pills: hide all but BTC change for compactness */
  header.hbar .text-\[11px\] > span:not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }

  /* Auth widget pinned right — always visible at top right of header */
  .auth-widget {
    margin-left: auto !important;     /* push right inside header */
    gap: 6px;
    z-index: 35;
  }
  .auth-widget .auth-email { display: none; }
  /* Touch targets: 38x38 minimum, larger font for finger taps */
  .auth-widget .auth-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    min-height: 38px;
    min-width: 44px;
  }
  .auth-widget .auth-btn.primary {
    /* Make login button highly visible: gradient stays */
    box-shadow: 0 2px 6px rgba(220,38,38,.4);
  }

  /* Login modal: nearly full-screen on mobile, larger inputs (no zoom on iOS — 16px font) */
  .auth-modal {
    padding: 18px 16px;
    width: 95vw;
    max-width: 420px;
    border-radius: 12px;
  }
  .auth-modal h3 { font-size: 18px; }
  .auth-modal input[type="email"],
  .auth-modal input[type="password"],
  .auth-modal input[type="number"],
  .auth-modal input[type="text"],
  .auth-modal select {
    font-size: 16px !important;        /* prevents iOS zoom */
    padding: 10px 12px;
    min-height: 44px;
  }
  .auth-modal .auth-tab { padding: 12px 0; font-size: 14px; min-height: 44px; }
  .auth-modal .auth-submit,
  .auth-modal .auth-cancel { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .auth-modal .auth-actions { gap: 8px; }

  /* Demo modal grid -> 2 cols */
  .auth-modal .dm-grid { grid-template-columns: 1fr 1fr; }

  /* Demo panel — full-screen takeover on mobile */
  .demo-panel { right: 6px; left: 6px; width: auto; top: 56px; }
  .demo-card .dc-levels { grid-template-columns: repeat(2, 1fr); }
  .da-summary { grid-template-columns: 1fr 1fr; }
  .da-cmp { grid-template-columns: 1fr; gap: 8px; }
  .demo-history { font-size: 10px; display: block; overflow-x: auto; white-space: nowrap; }
  .demo-history th, .demo-history td { padding: 4px; }
  /* Уменьшаем кнопки в active card на мобильных — иначе wrap криво */
  .demo-card .dc-action-btn { padding: 6px 8px; font-size: 11px; }
  .demo-card .dc-actions { gap: 4px; }
  /* DCA block compact */
  .demo-card .dc-dca-block { font-size: 10px; padding: 5px 7px; }
  /* Settings collapsibles — больше padding для удобного клика */
  .auth-modal .set-pw-summary { padding: 10px 0; min-height: 36px; font-size: 13px; }
  .auth-modal .set-pw-section { padding: 10px; }
  /* CB banner на мобильных */
  .da-cb-banner { font-size: 11px; padding: 8px 10px; }
}

/* Settings: divider before "Сменить пароль" section */
.auth-modal .set-divider {
  border-top: 1px solid #1f2937;
  margin: 18px 0 12px;
}
.auth-modal .set-pw-section {
  background: #0a0e14;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 10px 12px;
}
.auth-modal .set-pw-summary {
  cursor: pointer;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  user-select: none;
  padding: 4px 0;
}
.auth-modal .set-pw-summary::-webkit-details-marker { display: none; }
.auth-modal .set-pw-summary:before {
  content: '▶';
  display: inline-block;
  margin-right: 6px;
  color: #6b7280;
  transition: transform .15s;
  font-size: 9px;
}
.auth-modal .set-pw-section[open] .set-pw-summary:before { transform: rotate(90deg); }

/* Forgot password link — used in auth modal */
.auth-modal .auth-forgot {
  display: block;
  margin-top: 8px;
  text-align: right;
  background: none;
  border: none;
  color: #22d3ee;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.auth-modal .auth-forgot:hover { color: #67e8f9; text-decoration: underline; }
@media (max-width: 640px) {
  .auth-modal .auth-forgot { font-size: 13px; padding: 8px 0; min-height: 36px; }
}


/* ===== HYHI Live Trading UI — STANDALONE PANEL ========================== */

/* Trigger button в auth-widget (рядом с 🎯 Демо) */
.auth-btn.live-trigger-btn {
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(124,58,237,0.22));
  border: 1px solid rgba(34,211,238,0.5);
  color: #e9f5ff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.auth-btn.live-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(34,211,238,0.35), rgba(124,58,237,0.35));
  border-color: rgba(34,211,238,0.9);
}
.live-trigger-badge {
  display: inline-block;
  background: rgba(34,211,238,0.3);
  color: #67e8f9;
  padding: 2px 7px;
  border-radius: 9px;
  font-size: 10px;
  margin-left: 4px;
  font-weight: 700;
}

/* Backwards-compatibility (badge класс используется внутри панели тоже) */
.live-badge {
  display: inline-block;
  background: rgba(34,211,238,0.25);
  color: #67e8f9;
  padding: 2px 7px;
  border-radius: 9px;
  font-size: 10px;
  margin-left: 4px;
}

/* Full-screen overlay (выше demo-panel z=90, ниже auth modals z=100) */
.live-overlay {
  position: fixed;
  inset: 0;
  background: #0a0e14;
  z-index: 95;  /* above demo-panel (90), below auth-modal (100) */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.live-panel-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #e9f5ff;
  background: #0a0e14;
}

.live-panel-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34,211,238,0.2);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.live-panel-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-panel-sub {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}
.live-panel-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #e9f5ff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.live-panel-close:hover {
  border-color: rgba(239,68,68,0.7);
  color: #fda4af;
}

/* Body padding */
.live-panel-root > .live-subtabs,
.live-panel-root > .live-warn,
.live-panel-root > .live-toolbar,
.live-panel-root > .live-content {
  margin-left: 24px;
  margin-right: 24px;
}
.live-panel-root > .live-subtabs { margin-top: 12px; }

/* Body lock пока panel открыт */
body.live-panel-open { overflow: hidden; }

/* ===== Live позиции — КОМПАКТНАЯ таблица ===== */
.live-positions-table {
  font-size: 11px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
}
.live-positions-table th {
  padding: 6px 6px;
  background: rgba(34,211,238,0.08);
  border-bottom: 2px solid rgba(34,211,238,0.3);
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #67e8f9;
  font-weight: 700;
  white-space: nowrap;
}
.live-th-sub {
  font-size: 9px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
  margin-left: 2px;
}
.live-positions-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
  line-height: 1.25;
}
/* Фиксированные ширины колонок — оптимизация под viewport */
.live-positions-table .lp-col-sym     { width: 16%; min-width: 140px; }
.live-positions-table .lp-col-side    { width: 7%; min-width: 70px; }
.live-positions-table .lp-col-size    { width: 8%; min-width: 80px; }
.live-positions-table .lp-col-prices  { width: 7%; min-width: 75px; }
.live-positions-table .lp-col-pnl     { width: 7%; min-width: 80px; }
.live-positions-table .lp-col-age     { width: 5%; min-width: 60px; font-size: 11px; font-weight: 600; }
.live-positions-table .lp-col-sl      { width: 9%; min-width: 95px; }
.live-positions-table .lp-col-tp      { width: 9%; min-width: 95px; }
.live-positions-table .lp-col-liq     { width: 5%; min-width: 60px; font-size: 10px; color: #94a3b8; }
.live-positions-table .lp-col-actions { width: 5%; min-width: 55px; }
.live-positions-table tbody tr.row-profit {
  background: linear-gradient(90deg, rgba(34,197,94,0.04), transparent 70%);
}
.live-positions-table tbody tr.row-loss {
  background: linear-gradient(90deg, rgba(239,68,68,0.04), transparent 70%);
}
.live-positions-table tbody tr:hover {
  background: rgba(34,211,238,0.06);
}

/* Symbol cell — компактно: иконка + символ + спарк в одну строку */
.live-cell-symbol-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.live-symbol-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
  padding: 1px 0;
  transition: opacity 0.15s ease;
}
.live-symbol-link:hover {
  opacity: 0.85;
}
.live-symbol-link:hover .live-cell-symbol {
  color: #67e8f9;
  text-decoration: underline;
}
.live-cell-symbol {
  font-size: 12px;
  font-weight: 700;
  color: #e9f5ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}
.live-cell-strat-row { display: flex; }
/* Чипы-переключатели сортировки (вкладка Данные рынка, 2026-07-11) */
.live-chip {
  display: inline-block;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.28);
  color: #cbd5e1;
  padding: 2px 9px;
  margin: 0 3px 0 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.live-chip:hover { background: rgba(148,163,184,0.2); }
.live-chip-on {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.55);
  color: #93c5fd;
}

.live-strat-chip {
  display: inline-block;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  color: #c4b5fd;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  line-height: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Coin icon — CDN image with letter fallback (compact 18px) */
.live-coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  color: white;
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.live-coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-coin-icon.has-img {
  background: transparent !important;
}
.live-coin-icon.has-img .live-coin-letter {
  display: none;
}
.live-coin-letter {
  user-select: none;
  letter-spacing: -0.5px;
}
.live-spark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.live-spark-wrap svg {
  display: block;
}
.live-spark-pct {
  font-size: 10px;
  font-weight: 600;
}
.live-strat-badge {
  display: inline-block;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

/* LONG/SHORT side pills — компактнее */
.live-side-long, .live-side-short {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.live-side-long {
  background: rgba(34,197,94,0.18);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.4);
}
.live-side-short {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.4);
}

/* Prices column: arrow from entry to mark */
.live-prices { line-height: 1.4; }

/* PnL cell — крупно но компактно */
.live-cell-pnl { line-height: 1.2; }
.live-pnl-amt {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.live-pnl-pct {
  font-size: 11px;
  font-weight: 700;
}
/* Зелёный для прибыли, красный для убытка — высокий контраст */
.live-cell-pnl.live-tp-good .live-pnl-amt,
.live-cell-pnl.live-tp-good .live-pnl-pct {
  color: #10b981;
  text-shadow: 0 0 8px rgba(16,185,129,0.3);
}
.live-cell-pnl.live-tp-bad .live-pnl-amt,
.live-cell-pnl.live-tp-bad .live-pnl-pct {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239,68,68,0.3);
}

/* Размер позиции — qty + notional + margin */
.live-size-amt { font-size: 13px; line-height: 1.4; }
.live-size-notional {
  font-size: 11px;
  font-weight: 600;
  color: #c4b5fd;
}

/* SL/TP cells — компактные 2-строчные ячейки */
.live-tp-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: help;
}
.live-tp-cell.live-tp-good {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}
.live-tp-cell.live-tp-bad {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
}
/* 2026-07-09 (запрос пользователя): ЖЁЛТЫЙ = ожидание (цель не достигнута,
   SL в безубытке); зелёный остаётся для свершившегося (цель достигнута /
   исполнена / профит зафиксирован) */
.live-tp-cell.live-tp-wait {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.30);
}
.live-tp-price {
  font-size: 11px;
  color: #e9f5ff;
  font-family: monospace;
}
.live-tp-out {
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
}
.live-tp-good .live-tp-out { color: #10b981; }
.live-tp-bad .live-tp-out { color: #ef4444; }
.live-tp-wait .live-tp-out { color: #fbbf24; }

/* Мягкий сброс + тепловые карты симуляции (2026-07-09) */
.sim-reset-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 10px; margin: 8px 0 4px;
  background: rgba(148,163,184,.06);
  border: 1px solid rgba(148,163,184,.18); border-radius: 8px;
}
.sim-reset-label { font-size: 12px; font-weight: 600; color: #cbd5e1; margin-right: 4px; }
.sim-reset-info { margin-left: auto; font-size: 11px; }
.sim-hm-scroll { overflow-x: auto; border-radius: 8px; }
table.sim-heatmap { border-collapse: separate; border-spacing: 2px; font-family: 'JetBrains Mono', monospace; }
table.sim-heatmap th, table.sim-heatmap td { padding: 3px 5px; text-align: center; font-size: 10px; white-space: nowrap; }
.sim-hm-corner { text-align: left !important; color: #8b98a5; font-weight: 600; position: sticky; left: 0; background: #0d1117; z-index: 2; }
.sim-hm-col { color: #8b98a5; font-weight: 500; }
.sim-hm-row { text-align: left !important; position: sticky; left: 0; background: #0d1117; z-index: 1; }
.sim-hm-cell { border-radius: 3px; color: #e5e7eb; min-width: 30px; cursor: help; }
.sim-hm-tot { font-weight: 700; padding-left: 8px !important; }

/* Фильтр «Причина закрытия» в Истории — выделен, чтобы был заметен (2026-07-09) */
.live-hist-reason-sel {
  border-color: rgba(56,189,248,.6) !important;
  color: #e9f5ff !important;
}
/* КРИТИЧНО: опции нативного дропдауна рендерятся системным фоном — без явного
   тёмного фона был белый текст на белом (видны только иконки). Задаём тёмный
   фон + светлый текст ВСЕМ селектам тулбара истории. */
.live-positions-toolbar select option,
.live-positions-toolbar select optgroup,
.live-hist-reason-sel option,
.live-hist-reason-sel optgroup {
  background-color: #0d1117 !important;
  color: #e9f5ff !important;
}
.live-hist-reason-sel optgroup {
  font-style: normal;
  color: #8b98a5 !important;
}

/* Actions column — компактные иконки */
.live-actions-cell, .lp-col-actions {
  display: flex;
  gap: 3px;
  align-items: center;
}
.lp-col-actions .live-btn-icon {
  padding: 2px 5px;
  font-size: 11px;
  min-width: 22px;
  height: 22px;
}
.live-btn-icon[disabled] { opacity: 0.3; cursor: not-allowed; }

/* Sparkline компактнее в новой таблице */
.live-positions-table .live-spark-wrap svg {
  width: 40px !important;
  height: 12px !important;
}
.live-positions-table .live-spark-pct {
  font-size: 9px;
}

/* Edit SL/TP modal */
.live-edit-info {
  padding: 10px 14px;
  background: rgba(34,211,238,0.06);
  border-left: 3px solid rgba(34,211,238,0.5);
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}
.live-edit-field { margin-bottom: 12px; }
.live-edit-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #e9f5ff;
  font-size: 13px;
}
.live-edit-field input {
  width: 100%;
  padding: 8px 10px;
  background: #0f141b;
  border: 1px solid rgba(34,211,238,0.3);
  color: #e9f5ff;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}
.live-edit-field input:focus {
  outline: none;
  border-color: rgba(34,211,238,0.7);
}

/* Статистика — grid of metric cards */
.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.live-stat-card {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-stat-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.live-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #e9f5ff;
}
.live-stat-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* История сделок — summary bar */
.live-hist-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #cbd5e1;
}
.live-hist-summary b { color: #67e8f9; }

/* Sub-tabs row */
.live-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 8px;
}
.live-subtab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c2e9ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.live-subtab:hover:not(:disabled) {
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.4);
}
.live-subtab.active {
  background: rgba(34,211,238,0.22);
  border-color: rgba(34,211,238,0.7);
  color: #fff;
}
.live-subtab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Warning banner */
.live-warn {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #fde68a;
}
.live-warn code {
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #67e8f9;
}

/* Toolbar */
.live-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

/* Section titles within Strategies tab */
.live-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Available strategies card grid (Phase 5) */
.live-strat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.live-strat-card {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.15s ease;
}
.live-strat-card:hover {
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.5);
}
/* Карточка стратегии с уже созданной настройкой — зеленоватая, кнопка «Изменить» */
.live-strat-card.live-strat-card-configured {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.35);
}
.live-strat-card.live-strat-card-configured:hover {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.6);
}
.live-strat-card.live-strat-card-configured .live-strat-card-add {
  background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(16,185,129,0.3));
  border-color: rgba(34,197,94,0.5);
}
.live-strat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.live-strat-card-label {
  font-size: 14px;
  font-weight: 600;
  color: #e9f5ff;
}
.live-strat-card-badge {
  background: rgba(34,197,94,0.22);
  color: #86efac;
  padding: 2px 7px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 600;
}
.live-strat-card-name {
  font-family: monospace;
  font-size: 10px;
  color: #67e8f9;
  margin-bottom: 6px;
}
.live-strat-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 30px;
}
.live-strat-card-add {
  background: linear-gradient(135deg, rgba(34,211,238,0.3), rgba(124,58,237,0.3));
  border: 1px solid rgba(34,211,238,0.4);
  color: #e9f5ff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}
.live-strat-card-add:hover {
  filter: brightness(1.15);
  border-color: rgba(34,211,238,0.8);
}
/* 2026-07-10: живой статус-бар на карточке стратегии (сигналы/твины/PnL или
   «ждёт: гейт»). */
.live-strat-card-status {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 6px;
  padding: 4px 6px;
  background: rgba(148,163,184,0.08);
  border-radius: 5px;
}
/* Панель фильтров вкладки Стратегии */
.strat-filter-bar { flex-wrap: wrap; gap: 8px; align-items: center; }
.strat-filter-group { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.strat-fam-btn.active, .strat-st-btn.active {
  background: rgba(34,211,238,0.28) !important;
  border-color: rgba(34,211,238,0.6) !important;
  color: #e9f5ff !important;
}
.strat-howto { margin-bottom: 10px; }
.strat-howto summary { color: #93c5fd; }
/* Ростер стратегий на вкладке Симуляция */
.sim-roster { margin: 6px 0 14px; }
.sim-roster > summary { list-style: none; }
.sim-roster > summary::-webkit-details-marker { display: none; }
.sim-roster-table th { white-space: nowrap; }
.sim-roster-table tr.sim-roster-idle td { opacity: 0.72; }
.sim-roster-table tr.sim-roster-idle:hover td { opacity: 1; }

/* ===== Редизайн вкладки Симуляция (2026-07-10): KPI-полоса + под-вкладки ===== */
.sim-topbar { align-items: center; gap: 10px; flex-wrap: wrap; }
.sim-reset-menu { margin-left: auto; position: relative; }
.sim-reset-menu > summary {
  cursor: pointer; list-style: none; font-size: 11px; color: #93c5fd;
  padding: 4px 8px; border: 1px solid rgba(148,163,184,0.25); border-radius: 6px;
}
.sim-reset-menu > summary::-webkit-details-marker { display: none; }
.sim-reset-pop {
  position: absolute; right: 0; top: 30px; z-index: 20; width: 250px;
  background: #0f1729; border: 1px solid rgba(148,163,184,0.3);
  border-radius: 8px; padding: 10px; display: flex; flex-wrap: wrap; gap: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
/* KPI-полоса: компактные тайлы, скроллятся на узком экране */
.sim-kpi-strip {
  display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px; margin: 10px 0 12px;
}
.sim-kpi-tile {
  background: rgba(34,211,238,0.05); border: 1px solid rgba(148,163,184,0.16);
  border-radius: 8px; padding: 8px 10px;
}
.sim-kpi-label { font-size: 10px; color: #94a3b8; margin-bottom: 2px; white-space: nowrap; }
.sim-kpi-val { font-size: 18px; font-weight: 700; line-height: 1.15; }
.sim-kpi-sub { font-size: 10px; color: #8ba0b6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-kpi-sub .live-strat-chip { font-size: 9px; }
/* Под-вкладки Симуляции */
.sim-view-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid rgba(148,163,184,0.18); }
.sim-view-btn {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: #94a3b8; padding: 7px 14px; cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.sim-view-btn:hover { color: #e9f5ff; }
.sim-view-btn.active { color: #22d3ee; border-bottom-color: #22d3ee; }
/* Разбивки в 3 колонки (обзор) */
.sim-break-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 720px) {
  .sim-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .sim-reset-menu { margin-left: 0; }
}

/* Positions toolbar (Phase 2) */
.live-positions-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.live-positions-toolbar select {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e9f5ff;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  min-width: 200px;
}
.live-add-btn {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: white;
  font-weight: 600;
  border: none;
}
.live-add-btn:hover { filter: brightness(1.1); }

/* Loading / empty / error states */
.live-loading, .live-empty, .live-error {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: #a5b4fc;
}
.live-empty p { line-height: 1.7; }
.live-error { color: #fda4af; }

/* Accounts table */
.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.live-table thead {
  background: rgba(255,255,255,0.04);
}
.live-table th,
.live-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.live-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #94a3b8;
}
.live-table tbody tr:hover {
  background: rgba(34,211,238,0.05);
}
.live-perms {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
  font-size: 10px;
}
.live-test-ts {
  font-size: 11px;
  color: #94a3b8;
}

/* Network badge */
.live-net {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.live-net.testnet { background: rgba(34,197,94,0.18); color: #86efac; }
.live-net.mainnet { background: rgba(239,68,68,0.22); color: #fda4af; }

/* Enabled toggle button (in-row) */
.live-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
}
.live-on { color: #86efac; font-weight: 600; }
.live-off { color: #94a3b8; }

/* Row action icons */
.live-btn-icon {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: inherit;
  margin-right: 2px;
}
.live-btn-icon:hover { border-color: rgba(34,211,238,0.6); }
.live-btn-danger:hover { border-color: rgba(239,68,68,0.7); }

/* Modal — reuses auth-modal-overlay */
.live-modal {
  width: min(640px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
}
.live-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.live-form-grid > div { display: flex; flex-direction: column; gap: 4px; }
.live-form-grid label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.live-form-grid input,
.live-form-grid select {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e9f5ff;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.live-form-grid input:focus,
.live-form-grid select:focus {
  outline: none;
  border-color: rgba(34,211,238,0.7);
}
.live-add-warn {
  background: rgba(245,158,11,0.1);
  border-left: 3px solid rgba(245,158,11,0.6);
  padding: 8px 12px;
  font-size: 11px;
  margin-bottom: 12px;
  color: #fde68a;
  border-radius: 0 6px 6px 0;
}
.live-add-warn.live-add-warn-strong {
  background: rgba(239,68,68,0.14);
  border-left-color: rgba(239,68,68,0.85);
  color: #fecaca;
}
.live-add-warn a {
  color: #67e8f9;
  text-decoration: underline;
}
.live-form-totp {
  grid-column: 1 / -1;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 8px 12px;
  border-radius: 8px;
}
.live-form-totp input {
  letter-spacing: 6px;
  font-family: monospace;
  text-align: center;
  font-size: 16px;
}
.live-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
}
.live-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.live-add-status {
  margin-top: 10px;
  font-size: 12px;
  min-height: 1.4em;
  line-height: 1.5;
}
.live-add-status small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 4px;
}
.live-spin {
  display: inline-block;
  animation: live-spin-anim 1.2s linear infinite;
}
@keyframes live-spin-anim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.live-confirm-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== Массовый выбор / закрытие позиций ===== */
.live-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 8px;
}
.live-bulk-count {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}
.live-bulk-bar .live-btn-danger {
  margin-left: auto;
}
.live-bulk-bar .auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lp-col-check {
  width: 34px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.lp-col-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ef4444;
  vertical-align: middle;
}
.live-bulk-list {
  max-height: 180px;
  overflow-y: auto;
  margin: 4px 0 12px;
  padding-left: 20px;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.7;
  columns: 2;
}

/* ===== Equity-кривая + PnL по дням (Статистика) ===== */
.live-equity-wrap {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.live-equity-svg {
  width: 100%;
  height: 140px;
  display: block;
}
.live-daily-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  max-height: 320px;
  overflow-y: auto;
}
.live-daily-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.live-daily-date {
  flex: 0 0 84px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.live-daily-bar {
  flex: 1 1 auto;
  height: 12px;
  background: rgba(148,163,184,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.live-daily-bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.live-daily-val {
  flex: 0 0 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (max-width: 600px) {
  .live-form-grid { grid-template-columns: 1fr; }
  .live-table { font-size: 11px; }
  .live-table .live-test-ts { display: none; }
  .live-bulk-list { columns: 1; }
  .live-daily-date { flex-basis: 64px; }
}
