/* TradingSignals Research Tools v0.2.0. Scoped, local, theme-independent. */
.tscc-lab,
.tscc-lab * { box-sizing: border-box; }
.tscc-lab { --ts-bg:#081321; --ts-panel:#10263a; --ts-border:#27445b; --ts-ink:#eff7ff; --ts-muted:#bed0df; --ts-aqua:#50e6d0; --ts-warn:#ffc993; --ts-error:#ffacb4; width:100%; max-width:1190px; margin:0 auto 2.5rem; border:1px solid var(--ts-border); border-radius:20px; overflow:hidden; background:var(--ts-bg); color:var(--ts-ink); font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif; font-size:16px; line-height:1.5; }
.tscc-lab h2,.tscc-lab h3,.tscc-lab p,.tscc-lab label,.tscc-lab input,.tscc-lab select,.tscc-lab button,.tscc-lab textarea,.tscc-lab output { font-family:inherit!important; }
.tscc-lab h2,.tscc-lab h3 { color:var(--ts-ink)!important; font-weight:760; letter-spacing:-.035em; line-height:1.14; }
.tscc-lab__mast { padding:clamp(22px,5vw,56px); background:radial-gradient(ellipse at 90% -5%,#15465a 0%,#081321 53%); }
.tscc-lab__eyebrow { display:flex; align-items:center; gap:9px; color:var(--ts-aqua); letter-spacing:.14em; font-size:12px; font-weight:800; }
.tscc-lab__dot {display:inline-block;width:8px;height:8px;border-radius:100%;background:var(--ts-aqua);box-shadow:0 0 12px #50e6d08c;}
.tscc-lab__mast h2 { margin:16px 0 14px!important; font-size:clamp(32px,4.8vw,60px)!important; max-width:920px; }
.tscc-lab__mast h2 span {color:var(--ts-aqua)}
.tscc-lab__mast p {margin:0;max-width:760px;color:var(--ts-muted)!important;font-size:clamp(15px,1.7vw,18px)!important;line-height:1.65;}
.tscc-lab__status {display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;}
.tscc-lab__status span {border:1px solid var(--ts-border);border-radius:30px;padding:6px 11px;color:var(--ts-aqua);font-size:10px;font-weight:700;line-height:1.4;letter-spacing:.08em;}
.tscc-lab__tabs {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:#06101a;border-block:1px solid var(--ts-border);padding:8px;}
.tscc-lab__tabs button {border:0;background:transparent;color:var(--ts-muted);text-align:left;padding:17px 20px;font-size:12px;font-weight:800;cursor:pointer;border-radius:10px;transition:background-color .15s,color .15s;}
.tscc-lab__tabs button span {display:block;font-size:17px;font-weight:750;margin-top:4px;letter-spacing:-.02em;}
.tscc-lab__tabs button[aria-selected="true"] {background:var(--ts-panel);color:var(--ts-aqua);box-shadow:inset 0 2px 0 var(--ts-aqua);}
.tscc-lab__tabs button:hover {background:#1a344c;}
.tscc-lab button:focus-visible,.tscc-lab input:focus-visible,.tscc-lab select:focus-visible,.tscc-lab textarea:focus-visible {outline:3px solid var(--ts-aqua);outline-offset:2px;}
.tscc-lab__panel {padding:clamp(20px,4.2vw,48px);background:var(--ts-bg);}
.tscc-lab[data-ready="true"] .tscc-lab__panel[hidden] {display:none!important;}
.tscc-lab__panel-head {display:flex;align-items:flex-start;gap:16px;justify-content:space-between;}
.tscc-lab__overline {display:block;font-size:12px;letter-spacing:.13em;color:var(--ts-aqua);font-weight:800;}
.tscc-lab__panel h3 {font-size:clamp(25px,3vw,36px)!important;margin:8px 0 14px!important;}
.tscc-lab__indicator {font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--ts-muted);border:1px solid var(--ts-border);padding:8px 10px;border-radius:6px;white-space:nowrap;}
.tscc-lab__hint {color:var(--ts-muted)!important;font-size:15px!important;max-width:940px;margin-bottom:24px!important;line-height:1.6;}
.tscc-lab__fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:16px;}
.tscc-field {min-width:0;display:flex;flex-direction:column;gap:7px;}
.tscc-field label {font-size:13px;color:var(--ts-muted);font-weight:650;line-height:1.5;}
.tscc-field input,.tscc-field select,.tscc-field textarea {appearance:auto;width:100%;max-width:100%;padding:13px 14px;border:1px solid #416078;border-radius:8px;background:#11283c!important;color:#eff7ff!important;font-size:17px!important;line-height:1.3;box-shadow:none!important;margin:0;}
.tscc-field textarea {min-height:134px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;}
.tscc-field input:focus,.tscc-field select:focus,.tscc-field textarea:focus {border-color:var(--ts-aqua);background:#143248!important;}
.tscc-field select option {color:#eff7ff;background:#11283c;}
.tscc-field--wide {margin-top:18px;}
.tscc-lab__actions {display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 20px;}
.tscc-lab__button {padding:14px 22px!important;border-radius:8px!important;border:1px solid var(--ts-aqua)!important;background:var(--ts-aqua)!important;color:#071521!important;font-size:15px!important;line-height:1.4!important;font-weight:800!important;cursor:pointer;min-height:48px;}
.tscc-lab__button:hover {background:#a4f7e7!important;}
.tscc-lab__button--quiet {background:transparent!important;color:var(--ts-muted)!important;border:1px solid var(--ts-border)!important;}
.tscc-lab__button--quiet:hover {background:var(--ts-panel)!important;color:#fff!important;}
.tscc-lab__result {display:block;min-height:64px;border-radius:10px;border:1px dashed #46728a;background:#0c2032;padding:19px 21px;color:var(--ts-muted);font-size:15px;line-height:1.55;font-variant-numeric:tabular-nums;}
.tscc-lab__result strong {font-size:clamp(20px,2.6vw,31px);color:var(--ts-aqua);display:block;margin-bottom:10px;font-weight:800;letter-spacing:-.03em;}
.tscc-lab__result .tscc-result-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.tscc-lab__result .tscc-result-grid span {font-weight:750;color:#eef7ff;}
.tscc-lab__result .tscc-result-grid small {display:block;color:var(--ts-muted);font-size:12px;margin-bottom:2px;}
.tscc-lab__result[data-error="true"] {border-color:#a85e65;color:var(--ts-error);}
.tscc-lab__fine {color:var(--ts-muted)!important;font-size:12px!important;line-height:1.65;margin:18px 0 0!important;}
.tscc-lab__footer {background:#050e19;border-top:1px solid var(--ts-border);color:var(--ts-muted);padding:18px clamp(20px,4.2vw,48px);font-size:12px;line-height:1.7;}
.tscc-lab__footer span {color:var(--ts-aqua);margin-right:8px;}
@media (max-width:740px) { .tscc-lab {border-radius:12px;} .tscc-lab__tabs button {padding:12px 10px;font-size:10px;} .tscc-lab__tabs button span {font-size:13px;} .tscc-lab__indicator {display:none;} .tscc-lab__fields {grid-template-columns:1fr;} .tscc-lab__result .tscc-result-grid {grid-template-columns:1fr;} .tscc-lab__button {width:100%;} .tscc-lab__mast,.tscc-lab__panel {padding-inline:20px;} }
@media (prefers-reduced-motion:reduce) { .tscc-lab * {scroll-behavior:auto!important;transition:none!important;} }

.tscc-lab__tabs[data-single-tool] {display:none!important;}
.tscc-lab__panel[hidden] {display:none!important;}
@media (max-width:920px) and (min-width:741px) { .tscc-lab__tabs button{padding:12px 9px;font-size:11px} .tscc-lab__tabs button span{font-size:14px;} }
@media (max-width:740px) { .tscc-lab__tabs{grid-template-columns:repeat(2,minmax(0,1fr));} .tscc-lab__tabs button {min-height:60px;} }
