/* gStockly v4 — Trading System Editor: stessa lingua del resto del sito (si appoggia a ts-editor.html) */
body.editor-shell-v2 .v4-top .btn-theme,.v4-top .btn-theme{display:none!important}
body.editor-shell-v2 .v4-top .tb-sep{display:none}

/* barra strumenti */
body.editor-shell-v2 .script-toolbar{gap:8px!important;padding:10px 20px!important;background:var(--panel)!important;border-bottom:1px solid var(--line)!important;flex-wrap:wrap}
body.editor-shell-v2 .script-toolbar .tb-sep{width:1px!important;height:22px!important;background:var(--line)!important;margin:0 4px!important}
body.editor-shell-v2 .tb-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px!important;border:1px solid var(--line2)!important;border-radius:10px!important;background:var(--panel)!important;color:var(--text)!important;font:600 13px var(--sans)!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer}
body.editor-shell-v2 .tb-btn:hover{border-color:var(--brand)!important}
body.editor-shell-v2 .tb-btn i{color:var(--muted)}
body.editor-shell-v2 .tb-btn.primary{background:var(--text)!important;border-color:var(--text)!important;color:var(--bg)!important}
body.editor-shell-v2 .tb-btn.primary i{color:var(--bg)}
body.editor-shell-v2 .tb-btn.warn{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
body.editor-shell-v2 #tradingConsoleBtn{border-color:color-mix(in srgb,var(--brand) 45%,var(--line2))!important;background:var(--brandSoft)!important;color:var(--brand2)!important}
body.editor-shell-v2 #tradingConsoleBtn i{color:var(--brand2)}
body.editor-shell-v2 .script-toolbar .tb-btn[onclick*="switchTab('easy')"]{border-color:var(--line2)!important;color:var(--text)!important}
body.editor-shell-v2 .script-name-input{height:38px;min-width:220px;max-width:360px;padding:0 12px;border:1px solid transparent!important;border-radius:10px!important;background:var(--panel2)!important;color:var(--text)!important;font:650 15px var(--sans)!important;letter-spacing:-.01em}
body.editor-shell-v2 .script-name-input:hover{border-color:var(--line2)!important}
body.editor-shell-v2 .script-name-input:focus{border-color:var(--brand)!important;background:var(--panel)!important;outline:0}
body.editor-shell-v2 .tb-dropdown-menu{border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel)!important;box-shadow:0 18px 44px rgba(20,23,28,.16)!important;padding:6px!important}
body.editor-shell-v2 .tb-dropdown-item{border-radius:8px;padding:8px 12px}
body.editor-shell-v2 .tb-dropdown-item:hover{background:var(--panel2)}
body.editor-shell-v2 .tb-dropdown-label{font-size:11.5px;color:var(--soft)}

/* schede */
body.editor-shell-v2 .main-tabs{gap:2px!important;padding:6px 20px 0!important;background:var(--panel)!important;border-bottom:1px solid var(--line)!important}
body.editor-shell-v2 .main-tab{position:relative;padding:11px 16px!important;border:0!important;border-radius:0!important;background:none!important;color:var(--muted)!important;font:600 13.5px var(--sans)!important;box-shadow:none!important}
body.editor-shell-v2 .main-tab:hover{color:var(--text)!important}
body.editor-shell-v2 .main-tab.active{color:var(--text)!important}
body.editor-shell-v2 .main-tab.active{box-shadow:inset 0 -2px 0 var(--brand)!important}
body.editor-shell-v2 .main-tab i{opacity:.7}

/* Easy Trading */
body.editor-shell-v2 .easy-trading-panel{max-width:1100px;margin:0 auto;padding:30px 24px 48px!important}
body.editor-shell-v2 .easy-trading-hero{padding:0 0 22px!important;border:0!important;background:none!important;box-shadow:none!important}
body.editor-shell-v2 .easy-trading-hero h2{margin:0;font-size:30px;line-height:1.15;letter-spacing:-.03em;font-weight:650;color:var(--text)}
body.editor-shell-v2 .easy-trading-hero p{margin:8px 0 0;font-size:15.5px;color:var(--muted);max-width:62ch}
body.editor-shell-v2 .easy-trading-card{padding:20px 22px!important;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--panel)!important;box-shadow:none!important}
body.editor-shell-v2 .easy-trading-card>label{display:block;margin-bottom:10px;font-size:13px!important;font-weight:650;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important}
body.editor-shell-v2 .easy-trading-textarea{width:100%;min-height:220px;padding:16px 18px;border:1px solid var(--line2)!important;border-radius:16px!important;background:var(--panel2)!important;color:var(--text)!important;font:500 15.5px/1.6 var(--sans)!important;resize:vertical;outline:0}
body.editor-shell-v2 .easy-trading-textarea:focus{border-color:var(--brand)!important;background:var(--panel)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 14%,transparent)}
body.editor-shell-v2 .easy-trading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
body.editor-shell-v2 #aiProviderSelect{height:38px;padding:0 12px!important;border:1px solid var(--line2)!important;border-radius:10px!important;background:var(--panel)!important;color:var(--text)!important;font:500 13px var(--sans)!important}
body.editor-shell-v2 .ai-option{font-size:13px!important;color:var(--muted)!important;text-transform:none!important;letter-spacing:0!important;display:inline-flex;align-items:center;gap:8px}
body.editor-shell-v2 #aiGenerateBtn{height:42px;padding:0 22px!important;font-size:14px!important}
body.editor-shell-v2 .easy-trading-help{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
body.editor-shell-v2 .easy-tip{display:flex;flex-direction:column;gap:6px;padding:16px 18px!important;border:1px solid var(--line)!important;border-radius:16px!important;background:var(--panel)!important;box-shadow:none!important}
body.editor-shell-v2 .easy-tip strong{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand2)!important}
body.editor-shell-v2 .easy-tip span{font-size:14px;line-height:1.5;color:var(--muted)!important}

/* risultati */
body.editor-shell-v2 .qr-status-bar{border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel)!important}
body.editor-shell-v2 .results-subtabs{display:inline-flex;gap:2px;padding:3px;background:var(--panel2);border-radius:12px;margin:12px 0}
body.editor-shell-v2 .results-subtab{border:0!important;border-radius:9px!important;background:none!important;padding:7px 16px!important;color:var(--muted)!important;font:600 13px var(--sans)!important;box-shadow:none!important}
body.editor-shell-v2 .results-subtab.active{background:var(--panel)!important;color:var(--text)!important;box-shadow:0 0 0 1px var(--line)!important}

/* console */
body.editor-shell-v2 .console-bar{border-top:1px solid var(--line)!important;background:var(--panel)!important}
body.editor-shell-v2 .console-title{font-size:12px;font-weight:650;color:var(--muted)}
@media (max-width:900px){body.editor-shell-v2 .easy-trading-help{grid-template-columns:1fr}body.editor-shell-v2 .script-toolbar{padding:8px 12px!important}body.editor-shell-v2 .script-name-input{min-width:0;flex:1 1 140px}}
