/* Pagina Signal Provider (public/signal.html), dal mockup A "Investor report" approvato da Steve il 14/10/2026 */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500 800;font-display:swap;
  src:url(/fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:500 800;font-display:swap;
  src:url(/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --bg:#0a0e18; --bar:#0c111e; --card:#111726; --card2:#131a2b; --line:#1e2637; --line2:#2a3548; --line3:#171e2d;
  --ink:#e9edf5; --ink2:#a5aec0; --dim:#8d97ac; --mute:#5c6680;
  --teal:#2dd4c8; --gold:#e8b94a; --violet:#a99bff; --blue:#5b9dff;
  --up:#3ecf8e; --dn:#f2716f;
  --d:"Bricolage Grotesque",ui-sans-serif,system-ui,sans-serif;
  --t:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--t);-webkit-font-smoothing:antialiased}
a{color:var(--teal)}a:hover{color:#7ce9df}
.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.up{color:var(--up)}.dn{color:var(--dn)}
.sg-w{max-width:1240px;margin:0 auto;padding:0 32px}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:6px}

.sg-top{border-bottom:1px solid var(--line)}
.sg-top__in{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
.sg-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}
.sg-brand:hover{color:var(--ink)}
.sg-brand svg{width:28px;height:28px}
.sg-brand__name{font-family:var(--d);font-weight:700;font-size:17px}
.sg-brand__sep{color:var(--mute)}
.sg-brand__sub{color:var(--dim);font-size:15px}
.sg-top__right{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.sg-live{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--dim)}
.sg-live__dot{width:8px;height:8px;border-radius:50%;background:var(--mute)}
.sg-live.is-on .sg-live__dot{background:var(--up);box-shadow:0 0 0 4px rgba(62,207,142,.18);animation:sgPulse 2.4s ease-in-out infinite}
@keyframes sgPulse{50%{box-shadow:0 0 0 7px rgba(62,207,142,.04)}}
@media (prefers-reduced-motion:reduce){.sg-live.is-on .sg-live__dot{animation:none}}

.sg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:999px;font:600 15px var(--t);text-decoration:none;border:0;cursor:pointer}
.sg-btn--gold{background:var(--gold);color:#1a1406}.sg-btn--gold:hover{background:#f2c862;color:#1a1406}
.sg-btn--ghost{background:transparent;color:var(--ink);border:1px solid var(--line2)}.sg-btn--ghost:hover{border-color:var(--dim);color:var(--ink)}

.sg-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px}
.sg-lbl{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);font-weight:600}
.sg-lbl--sp{margin:26px 0 4px}
.sg-h2{margin:0;font-family:var(--d);font-size:22px;font-weight:700}
.sg-h2--lg{font-size:26px}
.sg-hint{margin:4px 0 0;font-size:14px;color:var(--dim)}

/* hero */
.sg-hero{display:flex;gap:40px;align-items:stretch;padding-top:56px;padding-bottom:40px}
.sg-hero__main{flex:1 1 auto;min-width:0}
.sg-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;min-height:26px}
.sg-chip{padding:5px 12px;border-radius:999px;background:var(--card2);color:#c3cad8;font-size:12px;font-weight:500}
.sg-chip--gold{background:rgba(232,185,74,.14);color:var(--gold);font-weight:600;letter-spacing:.06em}
.sg-chip--blue{background:rgba(91,157,255,.14);color:var(--blue);font-weight:600;letter-spacing:.06em}
.sg-title{margin:0;font-family:var(--d);font-size:56px;font-weight:800;letter-spacing:-.025em;line-height:1.02}
.sg-lede{margin:14px 0 0;max-width:620px;font-size:17px;line-height:1.6;color:var(--ink2)}
.sg-hero__nums{display:flex;align-items:flex-end;gap:48px;flex-wrap:wrap;margin-top:36px}
.sg-big{font-size:88px;font-weight:600;letter-spacing:-.04em;line-height:1}
.sg-sub{font-size:14px;color:var(--dim);margin-top:6px}
.sg-hero__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 40px;padding-bottom:8px}
.sg-mid{font-size:24px;margin-top:4px}
.sg-verify{flex:0 0 340px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,var(--card2),var(--card));padding:24px}
.sg-verify__head{display:flex;align-items:center;gap:10px;font-weight:600}
.sg-verify__head svg{width:22px;height:22px;fill:none;stroke:var(--teal);stroke-width:1.8}
.sg-verify p{margin:0;font-size:14px;line-height:1.55;color:var(--ink2)}
.sg-dl{margin:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.sg-dl div{display:flex;justify-content:space-between;gap:12px}
.sg-dl dt{color:var(--dim)}.sg-dl dd{margin:0;text-align:right}

/* chart */
.sg-chart{padding:28px;margin-bottom:18px}
.sg-chart__head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.sg-segs{display:flex;gap:12px;flex-wrap:wrap}
.sg-seg{display:flex;gap:2px;background:var(--bar);border:1px solid var(--line);border-radius:10px;padding:3px}
.sg-seg button{background:transparent;border:0;color:var(--dim);font:500 13px var(--t);padding:8px 12px;border-radius:8px;min-height:36px;cursor:pointer}
.sg-seg button:hover{color:var(--ink)}
.sg-seg button[aria-pressed="true"]{background:rgba(45,212,200,.12);color:var(--teal)}
.sg-plot{position:relative;display:flex;gap:12px;user-select:none}
.sg-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:var(--mute);height:260px;padding:2px 0;min-width:52px;text-align:right}
.sg-plot__area{flex:1;min-width:0;position:relative}
.sg-plot svg{display:block;width:100%;height:260px;overflow:visible}
.sg-xaxis{display:flex;justify-content:space-between;font-size:11px;color:var(--mute);margin-top:8px}
.sg-tip{position:absolute;top:8px;pointer-events:none;background:var(--bar);border:1px solid var(--line2);border-radius:10px;padding:10px 12px;font-size:13px;box-shadow:0 12px 30px rgba(0,0,0,.4);white-space:nowrap;transform:translateX(-50%)}
.sg-tip__d{color:var(--dim)}
.sg-tip__v{margin-top:3px}
.sg-ddplot{display:flex;gap:12px;margin-top:22px;align-items:flex-start}
.sg-ddplot__lbl{font-size:11px;color:var(--mute);min-width:52px;text-align:right}
.sg-ddplot__body{flex:1;min-width:0}
.sg-ddplot svg{display:block;width:100%;height:70px}
.sg-ddplot__foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--dim);margin-top:6px}
.sg-nodata{display:flex;align-items:center;justify-content:center;height:260px;color:var(--dim);font-size:15px;border:1px dashed var(--line2);border-radius:12px;text-align:center;padding:0 16px}

/* kpi */
.sg-livehead{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:8px auto 16px}
.sg-livehead__badge{display:inline-flex;align-items:center;gap:12px;padding:10px 22px;border-radius:999px;border:1px solid rgba(62,207,142,.5);background:rgba(62,207,142,.12);font-family:var(--d);font-size:26px;font-weight:800;letter-spacing:.08em;color:var(--up);line-height:1}
.sg-livehead__dot{width:12px;height:12px;border-radius:50%;background:var(--up);box-shadow:0 0 0 5px rgba(62,207,142,.2);animation:sgPulse 2.4s ease-in-out infinite}
.sg-livehead__s{font-size:14px;color:var(--dim)}
@media (prefers-reduced-motion:reduce){.sg-livehead__dot{animation:none}}
@media (max-width:640px){.sg-livehead__badge{font-size:20px;padding:8px 16px}}
.sg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.sg-kpi{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px}
.sg-kpi__v{font-family:var(--mono);font-size:30px;font-weight:500;margin-top:8px}
.sg-kpi__n{font-size:13px;color:var(--dim);margin-top:6px}

/* monthly + risk */
.sg-two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;margin-bottom:18px}
.sg-two--eq{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sg-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px}
.sg-mo{border-radius:12px;padding:14px;border:1px solid}
.sg-mo__n{font-size:13px;color:var(--ink2)}
.sg-mo__v{font-family:var(--mono);font-size:22px;margin-top:6px}
.sg-mo__t{font-family:var(--mono);font-size:12px;color:var(--dim);margin-top:2px}
.sg-msum{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--dim)}
.sg-msum b{font-family:var(--mono);font-weight:600;color:var(--ink)}
.sg-msum b.up{color:var(--up)}.sg-msum b.dn{color:var(--dn)}
.sg-risk{display:flex;flex-direction:column;gap:20px}
.sg-score{display:flex;align-items:center;gap:18px}
.sg-score svg{width:96px;height:96px;flex:0 0 96px}
.sg-score__t{font-weight:600;font-size:17px}
.sg-score__n{font-size:14px;color:var(--dim);margin-top:4px;line-height:1.5}
.sg-bars{display:flex;flex-direction:column;gap:18px}
.sg-bar__h{display:flex;justify-content:space-between;font-size:14px}
.sg-bar__h span:first-child{color:var(--ink2)}
.sg-bar__t{height:6px;background:var(--line);border-radius:99px;margin-top:8px;overflow:hidden}
.sg-bar__t i{display:block;height:6px;border-radius:99px}

/* EAs */
.sg-sec{padding-top:22px;margin-bottom:18px}
.sg-sec__head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.sg-share{display:flex;height:10px;width:320px;max-width:100%;border-radius:99px;overflow:hidden;gap:2px}
.sg-eas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sg-ea{display:flex;flex-direction:column;gap:16px;padding:24px}
.sg-ea__top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.sg-ea__name{display:flex;align-items:center;gap:8px;font-family:var(--d);font-weight:700;font-size:19px}
.sg-ea__sw{width:10px;height:10px;border-radius:3px;flex:0 0 10px}
.sg-ea__sym{font-family:var(--mono);font-size:13px;color:var(--dim);margin-top:6px}
.sg-tag{padding:4px 10px;border-radius:999px;border:1px solid rgba(62,207,142,.4);color:var(--up);font-size:12px;white-space:nowrap}
.sg-tag--off{border-color:var(--line2);color:var(--dim)}
.sg-ea svg{width:100%;height:60px;display:block}
.sg-ea__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.sg-ea__grid div div:first-child{font-size:12px;color:var(--dim)}
.sg-ea__grid div div:last-child{font-family:var(--mono);font-size:17px;margin-top:3px}
.sg-ea__wait{font-size:14px;color:var(--dim);line-height:1.5}

/* style + weekday */
.sg-style{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.sg-style .num{font-size:20px;margin-top:6px}
.sg-sym{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:14px}
.sg-sym__n{width:90px;font-family:var(--mono)}
.sg-sym__t{flex:1;height:8px;background:var(--line);border-radius:99px;overflow:hidden}
.sg-sym__t i{display:block;height:8px;background:#5b6b8a}
.sg-sym__p{width:48px;text-align:right;color:var(--dim);font-family:var(--mono)}
.sg-week{display:flex;align-items:stretch;gap:14px;height:220px;margin-top:22px}
.sg-day{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.sg-day__plot{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;position:relative}
.sg-day__half{flex:1;width:100%;display:flex;justify-content:center}
.sg-day__half--up{align-items:flex-end;border-bottom:1px solid var(--line2)}
.sg-day__half--dn{align-items:flex-start}
.sg-day__bar{width:100%;max-width:56px}
.sg-day__half--up .sg-day__bar{border-radius:6px 6px 0 0;background:var(--teal);opacity:.85}
.sg-day__half--dn .sg-day__bar{border-radius:0 0 6px 6px;background:var(--dn);opacity:.8}
.sg-day__v{font-family:var(--mono);font-size:12px;color:var(--ink2);white-space:nowrap}
.sg-day__n{font-size:13px;color:var(--dim)}

/* trades */
.sg-scroll{overflow-x:auto}
.sg-tbl{width:100%;min-width:720px;border-collapse:collapse;font-size:14px}
.sg-tbl th{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);font-weight:600;text-align:right;padding:10px 8px;border-bottom:1px solid var(--line)}
.sg-tbl td{padding:11px 8px;border-bottom:1px solid var(--line3);text-align:right}
.sg-tbl th:first-child,.sg-tbl td:first-child,.sg-tbl .l{text-align:left}
.sg-tbl td.m{font-family:var(--mono)}
.sg-tbl td.d{color:var(--ink2)}

/* cta */
.sg-cta{margin-top:22px;border-radius:22px;padding:40px;border:1px solid var(--line2);display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;
  background:radial-gradient(120% 140% at 0% 0%,rgba(45,212,200,.16),transparent 55%),radial-gradient(120% 140% at 100% 100%,rgba(232,185,74,.16),transparent 55%),var(--card)}
.sg-cta{align-items:flex-start}
.sg-cta__txt{flex:1 1 300px;max-width:440px}
.sg-form{flex:1 1 460px;display:flex;flex-direction:column;gap:14px}
.sg-form__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sg-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink2)}
.sg-field input,.sg-field textarea{background:rgba(10,14,24,.7);border:1px solid var(--line2);border-radius:12px;color:var(--ink);font:400 15px var(--t);padding:12px 14px;min-height:46px;resize:vertical}
.sg-field input:focus,.sg-field textarea:focus{outline:none;border-color:var(--gold)}
.sg-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sg-form__foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sg-form__msg{margin:0;font-size:14px;color:var(--ink2)}
.sg-form__msg.is-ok{color:var(--up)}.sg-form__msg.is-err{color:var(--dn)}
.sg-btn[disabled]{opacity:.6;cursor:default}
.sg-cta__t{margin:0;font-family:var(--d);font-size:32px;font-weight:800;letter-spacing:-.02em}
.sg-cta p.sg-cta__ask{margin:14px 0 0;font-family:var(--d);font-size:22px;font-weight:700;color:var(--gold);line-height:1.3}
.sg-cta p{margin:10px 0 0;font-size:16px;line-height:1.6;color:var(--ink2)}
.sg-cta__btns{display:flex;gap:12px;flex-wrap:wrap}
.sg-disc{margin:28px 0 48px;font-size:12px;line-height:1.6;color:#6b7590;max-width:900px}

.sg-empty{max-width:560px;margin:120px auto;padding:0 16px;text-align:center}
.sg-empty h1{font-family:var(--d)}
.sg-empty p{color:var(--dim);margin-bottom:28px}

@media (max-width:1000px){
  .sg-hero{flex-direction:column}
  .sg-verify{flex-basis:auto}
  .sg-eas{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .sg-w{padding-left:16px;padding-right:16px}
  .sg-hero{padding-top:32px}
  .sg-title{font-size:40px}
  .sg-big{font-size:64px}
  .sg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sg-two,.sg-two--eq,.sg-eas{grid-template-columns:minmax(0,1fr)}
  .sg-months{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sg-card{padding:20px}
  .sg-cta{padding:26px}
  .sg-cta__t{font-size:26px}
  .sg-form__row{grid-template-columns:minmax(0,1fr)}
  .sg-axis,.sg-ddplot__lbl{min-width:40px}
  .sg-brand__sub{display:none}
}
.sg-open-link{color:inherit;text-decoration:none;border-bottom:1px dashed var(--line)}
.sg-open-link:hover{border-bottom-color:currentColor}

/* card cliccabili e scheda dell'EA (Steve, 18/10/2026): pannello a destra da 720px, a tutto schermo sul telefono */
.sg-ea--link{cursor:pointer;transition:border-color .15s ease,transform .15s ease,background-color .15s ease,box-shadow .15s ease}
.sg-ea--link:hover{border-color:rgba(45,212,200,.55);background:var(--card2);transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.sg-ea--link:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.sg-ea__more{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:12px;
  border:1px solid rgba(45,212,200,.45);background:rgba(45,212,200,.1);color:var(--teal);font-size:14px;font-weight:600;transition:background-color .15s ease,border-color .15s ease}
.sg-ea__arr{transition:transform .15s ease}
.sg-ea--link:hover .sg-ea__more{background:rgba(45,212,200,.2);border-color:var(--teal);color:#7ce9df}
.sg-ea--link:hover .sg-ea__arr{transform:translateX(3px)}
.sg-tap{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:14px;font-weight:600;color:var(--teal)}
.sg-tap svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.sg-ea--link,.sg-ea--link:hover,.sg-ea__arr{transition:none;transform:none}}

html.sg-dx-open,html.sg-dx-open body{overflow:hidden}
.sg-dx{position:fixed;inset:0;z-index:100}
.sg-dx__back{position:absolute;inset:0;background:rgba(5,8,14,.62);opacity:0;transition:opacity .2s ease}
.sg-dx__panel{position:absolute;top:0;right:0;bottom:0;width:min(720px,100%);overflow-y:auto;overscroll-behavior:contain;background:var(--bg);border-left:1px solid var(--line2);
  box-shadow:-24px 0 60px rgba(0,0,0,.45);padding:28px 32px 40px;transform:translateX(24px);opacity:0;transition:transform .22s ease,opacity .22s ease;outline:none}
.sg-dx.is-on .sg-dx__back{opacity:1}
.sg-dx.is-on .sg-dx__panel{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){.sg-dx__back,.sg-dx__panel{transition:none}}
.sg-dx__x{position:sticky;top:0;float:right;margin:-8px -12px 0 12px;width:44px;height:44px;border-radius:12px;border:1px solid var(--line2);background:var(--card);color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.sg-dx__x:hover{border-color:var(--dim)}
.sg-dx__x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sg-dx__loading{display:flex;align-items:center;justify-content:center;min-height:240px;color:var(--dim);font-size:15px;text-align:center;padding:0 24px}
.sg-dx__head{padding-bottom:22px;border-bottom:1px solid var(--line)}
.sg-dx__name{gap:12px;flex-wrap:wrap}
.sg-dx__name .sg-ea__sw{width:14px;height:14px;flex-basis:14px;border-radius:4px}
.sg-dx__name h2{margin:0;font-family:var(--d);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.sg-dx__meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}
.sg-dx__meta .sg-ea__sym{margin:0;font-size:14px}
.sg-dx__sec{padding-top:26px}
.sg-dx__sec>.sg-h2{margin-bottom:12px}
.sg-md{font-size:15px;line-height:1.65;color:var(--ink2)}
.sg-md p{margin:0 0 10px}
.sg-md ul{margin:6px 0 10px;padding-left:20px}
.sg-md li{margin:6px 0}
.sg-md li::marker{color:var(--teal)}
.sg-md strong{color:var(--ink);font-weight:600}
.sg-md h4{margin:14px 0 6px;font-size:15px;color:var(--ink)}
.sg-md code{font-family:var(--mono);font-size:13px;background:var(--card2);padding:1px 5px;border-radius:5px}
.sg-dx__risk{border:1px solid rgba(232,185,74,.55);background:rgba(232,185,74,.07);border-radius:16px;padding:18px 20px}
.sg-dx__risk .sg-h2{color:var(--gold);font-size:18px;margin-bottom:8px}
.sg-dx__risk .sg-md li::marker{color:var(--gold)}
.sg-dx__sub{margin:22px 0 10px}
.sg-dx__row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.sg-dx__row .sg-dx__sub{margin-bottom:0}
.sg-dx__row .sg-seg{margin:16px 0 10px}
.sg-dx .sg-plot{gap:10px}
.sg-dx .sg-axis{min-width:58px}
.sg-dx .sg-ddplot{margin-top:14px}
.sg-dx .sg-ddplot__lbl{min-width:58px}
.sg-dx .sg-tip__v div{margin-top:2px}
.sg-mt{width:100%;min-width:600px;table-layout:fixed;border-collapse:separate;border-spacing:3px;font-family:var(--mono);font-size:11.5px}
.sg-mt thead th:first-child{width:40px}
.sg-mt thead th:last-child{width:56px}
.sg-mt th{color:var(--dim);font-weight:500;font-family:var(--t);font-size:11px;padding:4px 2px;text-align:center}
.sg-mt tbody th{text-align:left;color:var(--ink2);font-size:12px;padding-right:6px}
.sg-mt td{text-align:center;padding:7px 1px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:clip}
.sg-mt td.sg-mt__e{background:rgba(141,151,172,.04)}
.sg-mt td.sg-mt__y{font-weight:600;background:var(--card2)}
.sg-dx__tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sg-dx__tile{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;min-width:0}
.sg-dx__tile .sg-lbl{font-size:11px}
.sg-dx__tv{font-size:20px;margin-top:6px;overflow-wrap:anywhere}
.sg-dx__tile .sg-kpi__n{font-size:12px;margin-top:4px}
.sg-dx__legend{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--ink2);margin-bottom:12px}
.sg-dx__legend span{display:inline-flex;align-items:center;gap:8px}
.sg-dx__legend i{display:inline-block;width:18px;height:3px;border-radius:2px}
.sg-dx__note{margin-top:12px}
.sg-dx__disc{margin:30px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:#6b7590}
@media (max-width:760px){
  .sg-dx__panel{width:100%;border-left:0;padding:18px 16px 32px}
  .sg-dx__name h2{font-size:24px}
  .sg-dx__tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sg-dx .sg-axis,.sg-dx .sg-ddplot__lbl{min-width:44px}
  .sg-dx__x{margin-right:-4px}
}

/* "Backtest vs live" nella scheda (come la finestra del backtest della public page) */
.sg-vs__lead{margin:0 0 12px}
.sg-vs__warn{margin:0 0 12px;padding:10px 14px;border-radius:10px;border:1px solid rgba(232,185,74,.45);background:rgba(232,185,74,.07);color:var(--gold);font-size:13px;line-height:1.5}
.sg-vs{width:100%;min-width:360px;border-collapse:collapse;font-size:14px}
.sg-vs th,.sg-vs td{padding:11px 10px;border-bottom:1px solid var(--line3);text-align:right}
.sg-vs tbody th{text-align:left;font-weight:400;color:var(--ink2)}
.sg-vs thead th{font-size:12px;font-weight:600;color:var(--dim);border-bottom:1px solid var(--line)}
.sg-vs td{font-family:var(--mono)}
.sg-vs .sg-vs__lv{color:var(--teal)}
.sg-vs__chart{display:block;width:100%;height:auto}
.sg-vs__axis{font:11px var(--mono);fill:var(--mute)}

/* riquadro del backtest nella scheda: periodo in evidenza, poi deposito / lotto / modalità / broker (Steve 18/10) */
.sg-dx__bt{margin:0 0 22px;background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sg-dx__per{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line)}
.sg-dx__perv{margin-top:6px;font-family:var(--d);font-size:20px;font-weight:700;color:var(--ink)}
.sg-dx__to{color:var(--gold);margin:0 6px}
.sg-dx__kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.sg-dx__kv div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line3)}
.sg-dx__kv div:nth-child(odd){border-right:1px solid var(--line3)}
.sg-dx__kv div:nth-last-child(-n+2){border-bottom:0}
.sg-dx__kv dt{font-size:13px;color:var(--dim)}
.sg-dx__kv dd{margin:0;font-size:14px;font-weight:600;color:var(--ink);text-align:right}
@media (max-width:760px){
  .sg-dx__kv{grid-template-columns:minmax(0,1fr)}
  .sg-dx__kv div:nth-child(odd){border-right:0}
  .sg-dx__kv div:nth-last-child(2){border-bottom:1px solid var(--line3)}
  .sg-dx__perv{font-size:18px}
}

/* risultati attesi dai backtest (Steve 18/10) */
.sg-exp{padding:28px;margin-bottom:18px}
.sg-exp__tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.sg-exp__tiles .sg-kpi{padding:16px 18px;background:var(--card2)}
.sg-exp__tiles .sg-kpi__v{font-size:24px}
.sg-exp__live{margin-top:16px;padding:22px 24px;border-radius:14px;border:1px solid var(--line);background:var(--bar)}
.sg-exp__live:empty{display:none}
.sg-live2__top{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
.sg-live2__title{margin:0;font-family:var(--d);font-size:20px;font-weight:700;color:var(--ink)}
.sg-live2__facts{display:flex;gap:10px;flex-wrap:wrap}
.sg-live2__fact{padding:9px 16px;border-radius:12px;background:var(--card2);border:1px solid var(--line2);min-width:108px}
.sg-live2__fact:first-child{border-color:rgba(45,212,200,.45);background:rgba(45,212,200,.08)}
.sg-live2__fk{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--dim)}
.sg-live2__fv{margin-top:3px;font-family:var(--d);font-size:20px;font-weight:700;color:var(--ink);white-space:nowrap}
.sg-live2__fv small{font-family:var(--t);font-size:12px;font-weight:500;color:var(--dim)}
.sg-live2__fact:first-child .sg-live2__fv{color:var(--teal)}
.sg-live2__dot{width:8px;height:8px;border-radius:50%;background:var(--up);box-shadow:0 0 0 4px rgba(62,207,142,.18);animation:sgPulse 2.4s ease-in-out infinite}
.sg-live2__warn{margin-top:14px;padding:10px 14px;border-radius:10px;border:1px solid rgba(232,185,74,.35);background:rgba(232,185,74,.08);font-size:14px;line-height:1.5;color:var(--ink2)}
.sg-live2__warn b{color:var(--gold)}
.sg-live2__body{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:28px;margin-top:18px;align-items:start}
.sg-live2__nums{display:flex;flex-direction:column;gap:14px}
.sg-live2__k{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--dim)}
.sg-live2__sw{display:inline-block;width:14px;height:3px;border-radius:2px}
.sg-live2__sw--dash{background:repeating-linear-gradient(90deg,var(--gold) 0 5px,transparent 5px 8px)}
.sg-live2__v{margin-top:2px;font-size:26px;font-weight:600;color:var(--ink)}
.sg-live2__v--sm{font-size:18px}
.sg-live2__v.up{color:var(--up)}.sg-live2__v.dn{color:var(--dn)}
.sg-live2__track{position:relative;height:10px;border-radius:999px;background:var(--line)}
.sg-live2__track i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--gold)}
.sg-live2__track i.up{background:var(--up)}.sg-live2__track i.dn{background:var(--dn)}
.sg-live2__track b{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--ink2);border-radius:1px}
.sg-live2__ratio{margin-top:8px;font-size:13px;color:var(--dim)}
.sg-live2__ratio .num{font-weight:600}.sg-live2__ratio .gold{color:var(--gold)}
.sg-live2__how{margin:0;font-size:12px;line-height:1.5;color:var(--mute)}
.sg-live2__chart{min-width:0}
@media (max-width:860px){.sg-live2__body{grid-template-columns:1fr}}
@media (max-width:560px){.sg-exp__live{padding:18px 16px}.sg-live2__v{font-size:22px}.sg-live2__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}.sg-live2__fact{min-width:0;padding:8px 10px}.sg-live2__fk{font-size:10px;letter-spacing:.05em}.sg-live2__fv{font-size:16px}}
.sg-exp__sub{margin:24px 0 10px}
.sg-exp__tbl{min-width:560px}
.sg-exp__sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:8px;vertical-align:-1px}
@media (max-width:1000px){.sg-exp__tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.sg-exp{padding:20px}.sg-exp__tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
