/* STO Trading : styles de l'espace membre, de la connexion et des offres. */
:root {
  --sto-bg: #F4F2EC; --sto-surface: #FFFFFF; --sto-soft: #FBFAF7; --sto-line: #E2DED4; --sto-line2: #ECE8DF;
  --sto-ink: #14171F; --sto-ink2: #3D424E; --sto-muted: #5B6170; --sto-faint: #9A968C;
  --sto-blue: #1F4FD1; --sto-blue-d: #163A9C; --sto-blue-bg: #E6ECFC; --sto-blue-l: #7FA2FF;
  --sto-orange: #B9480F; --sto-orange-d: #8F360A; --sto-orange-bg: #FBEBE2;
  --sto-grey: #6B6F7A; --sto-grey-bg: #EFECE4;
  --sto-ok: #1E7F4F; --sto-ok-bg: #E3F3EA; --sto-near: #B07A00; --sto-near-bg: #FBF1D9;
  --sto-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sto-serif: 'Source Serif 4', Georgia, serif;
  --sto-mono-f: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sto-r: 12px;
}
html { -webkit-text-size-adjust: 100%; }
body.sto-body { margin: 0; background: var(--sto-bg); color: var(--sto-ink); font: 15px/1.5 var(--sto-sans); }
.sto-body *, .sto-body *::before, .sto-body *::after { box-sizing: border-box; }
.sto-body a { color: var(--sto-blue); }
.sto-body h1, .sto-body h2, .sto-body h3 { margin: 0; line-height: 1.2; color: var(--sto-ink); }
.sto-body small { display: block; color: var(--sto-muted); font-size: 12px; }
.sto-body :focus-visible { outline: 2px solid var(--sto-blue); outline-offset: 2px; }
.sto-mono { font-family: var(--sto-mono-f); font-variant-numeric: tabular-nums; }
.sto-muted { color: var(--sto-muted); }
.up { color: var(--sto-blue); } .down { color: var(--sto-orange); } .flat { color: var(--sto-grey); }
.sto-kicker { font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .08em; text-transform: uppercase; color: var(--sto-blue); }

/* ---------- Boutons, logo ---------- */
.sto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--sto-sans); text-decoration: none; cursor: pointer; }
.sto-body .sto-btn-primary { background: var(--sto-blue); color: #fff; }
.sto-body .sto-btn-primary:hover { background: var(--sto-blue-d); }
.sto-body .sto-btn-ghost { background: transparent; color: var(--sto-ink); border-color: var(--sto-line); }
.sto-body .sto-btn-ghost:hover { border-color: var(--sto-ink2); }
.sto-body .sto-btn-dark { background: var(--sto-ink); color: #fff; }
.sto-body .sto-btn-light { background: #fff; color: var(--sto-ink); }
.sto-body .sto-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--sto-sans); color: inherit; text-decoration: none; letter-spacing: -.01em; }

/* ---------- Connexion ---------- */
.sto-login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.sto-login-photo { position: relative; overflow: hidden; background: var(--sto-ink); }
.sto-login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sto-login-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,31,0) 45%, rgba(20,23,31,.85)); }
.sto-login-tagline { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 1; color: #fff; }
.sto-login-tagline .sto-kicker { color: var(--sto-blue-l); }
.sto-login-title { margin-top: 8px; font: 600 clamp(24px, 3vw, 34px)/1.15 var(--sto-serif); max-width: 520px; }
.sto-login-panel { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px clamp(16px, 6vw, 80px); background: var(--sto-surface); color: var(--sto-ink); }
.sto-login-form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; width: 100%; }
.sto-login-form h1 { font: 600 30px/1.15 var(--sto-serif); }
.sto-login-form label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.sto-login-form input[type=text], .sto-login-form input[type=password] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--sto-line); border-radius: 10px; font: 16px var(--sto-sans); background: var(--sto-soft); color: var(--sto-ink); }
.sto-login-form input:focus { border-color: var(--sto-blue); outline: 2px solid var(--sto-blue-bg); }
.sto-login-form .sto-row { margin-top: 6px; }
.sto-login-form .sto-row label { margin: 0; }
.sto-login-form .sto-row a { font-size: 13px; }
.sto-login-form .sto-btn { width: 100%; margin-top: 8px; }
.sto-check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.sto-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--sto-orange-bg); color: var(--sto-orange-d); font-weight: 600; }
.sto-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--sto-faint); font-size: 13px; }
.sto-sep::before, .sto-sep::after { content: ''; flex: 1; height: 1px; background: var(--sto-line); }
.sto-login-legal { max-width: 400px; margin: 0; font-size: 12px; color: var(--sto-faint); }

/* ---------- Offres ---------- */
.sto-top { background: var(--sto-ink); color: #fff; }
.sto-top-in, .sto-hero-in, .sto-steps, .sto-plans, .sto-free { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sto-top-in { display: flex; justify-content: space-between; align-items: center; min-height: 68px; }
.sto-top .sto-logo { color: #fff; }
.sto-hero { background: var(--sto-ink); color: #fff; padding: 56px 0 72px; }
.sto-hero .sto-kicker { color: var(--sto-blue-l); }
.sto-hero h1 { color: #fff; font: 600 clamp(30px, 5vw, 48px)/1.1 var(--sto-serif); margin: 12px 0 16px; max-width: 760px; }
.sto-hero p { color: #C9C6BE; font-size: 17px; max-width: 640px; margin: 0; }
.sto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; }
.sto-card { background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); padding: 20px; }
.sto-card h3 { font-size: 17px; margin: 6px 0; }
.sto-card p { margin: 0; color: var(--sto-muted); font-size: 14px; }
.sto-num { font: 600 13px var(--sto-mono-f); color: var(--sto-blue); }
.sto-plans { padding-top: 56px; padding-bottom: 24px; }
.sto-plans h2 { font: 600 30px var(--sto-serif); }
.sto-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.sto-plan { display: flex; flex-direction: column; gap: 12px; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); padding: 24px; }
.sto-plan.is-featured { border: 2px solid var(--sto-blue); box-shadow: 0 10px 30px rgba(31,79,209,.12); }
.sto-plan h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sto-plan p { margin: 0; color: var(--sto-muted); }
.sto-plan ul { margin: 0; padding: 0; list-style: none; flex: 1; }
.sto-plan li { padding: 6px 0 6px 24px; position: relative; border-top: 1px solid var(--sto-line2); font-size: 14px; }
.sto-plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--sto-blue); font-weight: 700; }
.sto-price { font: 600 30px var(--sto-mono-f); }
.sto-price span { font: 400 14px var(--sto-sans); color: var(--sto-muted); }
.sto-pill { font: 600 11px var(--sto-sans); background: var(--sto-blue-bg); color: var(--sto-blue-d); padding: 3px 8px; border-radius: 99px; }
.sto-free { padding-top: 24px; }

/* ---------- Coque de l'espace membre ---------- */
.sto-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sto-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; background: var(--sto-ink); color: #fff; overflow-y: auto; }
.admin-bar .sto-side { top: 32px; height: calc(100vh - 32px); }
.sto-side .sto-logo { color: #fff; padding: 0 8px; }
.sto-nav { display: flex; flex-direction: column; gap: 2px; }
.sto-body .sto-nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 8px; color: #C9C6BE; text-decoration: none; font-weight: 500; font-size: 14px; }
.sto-body .sto-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sto-body .sto-nav a.is-active { background: var(--sto-blue); color: #fff; }
.sto-nav-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); font: 600 12px var(--sto-mono-f); flex: none; }
.sto-nav a.is-active .sto-nav-num { background: rgba(255,255,255,.2); }
.sto-account { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.sto-account strong { display: block; color: #fff; }
.sto-body .sto-account a { color: var(--sto-blue-l); font-size: 13px; }
.sto-main { min-width: 0; }
.sto-wrap { max-width: 1320px; margin: 0 auto; padding: 32px 32px 48px; }
#sto-app { display: flex; flex-direction: column; gap: 20px; }
#sto-app > section, #sto-app > div { min-width: 0; }
.sto-loading, .sto-note { color: var(--sto-muted); font-size: 14px; margin: 0; }
.sto-disclaimer { margin-top: 32px; padding: 14px 16px; border-left: 3px solid var(--sto-faint); background: var(--sto-soft); color: var(--sto-muted); font-size: 12.5px; border-radius: 0 8px 8px 0; }

/* ---------- Titres ---------- */
.sto-head h1 { font: 600 clamp(26px, 3.4vw, 34px)/1.15 var(--sto-serif); margin: 6px 0 8px; }
.sto-head p { margin: 0; color: var(--sto-muted); max-width: 760px; }
.sto-panel { background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); padding: 18px 20px; }
.sto-panel > h2, .sto-h2 { font-size: 16px; margin: 0 0 14px; }
.sto-h2 { margin: 4px 0 -6px; }
.sto-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sto-panel.sto-scroll { padding: 6px 0; }
.sto-sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sto-sechead h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sto-sechead h2 i { font: 600 12px var(--sto-mono-f); font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sto-ink); color: #fff; }
.sto-body .sto-more { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sto-sub { display: flex; align-items: baseline; gap: 12px; }
.sto-sub h2 { font: 600 24px var(--sto-serif); }
.sto-sub span { color: var(--sto-muted); font-size: 14px; }
.sto-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sto-small { font-size: 13px; }
.sto-reftag { display: inline-block; font: 600 10px var(--sto-mono-f); letter-spacing: .06em; color: var(--sto-muted); background: var(--sto-grey-bg); padding: 2px 6px; border-radius: 4px; font-style: normal; vertical-align: middle; }

/* ---------- Badges et tendances ---------- */
.sto-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; font: 700 12px var(--sto-mono-f); letter-spacing: .04em; white-space: nowrap; width: max-content; }
.sto-badge.is-small { padding: 2px 7px; font-size: 11px; }
.sto-badge.sto-long { background: var(--sto-blue); color: #fff; }
.sto-badge.sto-court { background: var(--sto-orange); color: #fff; }
.sto-badge.sto-wait { background: var(--sto-grey-bg); color: var(--sto-grey); }
.sto-tr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-size: 12px; }
.sto-tr-up { background: var(--sto-blue-bg); color: var(--sto-blue); }
.sto-tr-down { background: var(--sto-orange-bg); color: var(--sto-orange); }
.sto-tr-flat { background: var(--sto-grey-bg); color: var(--sto-grey); }
.sto-cell { display: grid; place-items: center; height: 30px; border-radius: 5px; font: 500 12.5px var(--sto-mono-f); color: var(--sto-ink); font-variant-numeric: tabular-nums; }
.sto-mini { font-size: 11px; }
.sto-mini.sto-long, .sto-secpos.sto-long { color: var(--sto-blue); }
.sto-mini.sto-court, .sto-secpos.sto-court { color: var(--sto-orange); }
.sto-mini.sto-wait, .sto-secpos.sto-wait { color: var(--sto-grey); }
.sto-secpos { font: 600 11.5px var(--sto-mono-f); white-space: nowrap; }

/* ---------- Compteurs, légende ---------- */
.sto-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.sto-count { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: 10px; }
.sto-count strong { font: 600 22px var(--sto-mono-f); }
.sto-count span { color: var(--sto-muted); font-size: 13px; }
.sto-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--sto-muted); }
.sto-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sto-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }

/* ---------- Zones ---------- */
.sto-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sto-zone { display: flex; flex-direction: column; gap: 10px; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); padding: 16px; min-width: 0; }
.sto-zone.is-ref { background: var(--sto-soft); border-style: dashed; }
.sto-zone-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.sto-zone h2 { font: 600 20px var(--sto-serif); }
.sto-bigpos { font: 700 22px var(--sto-mono-f); letter-spacing: .02em; }
.sto-bigpos.sto-long { color: var(--sto-blue); } .sto-bigpos.sto-court { color: var(--sto-orange); } .sto-bigpos.sto-wait { color: var(--sto-grey); }
.sto-trbig { display: flex; gap: 6px; }
.sto-trbig .sto-tr { width: 34px; height: 30px; font-size: 14px; }
.sto-zone-perf { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--sto-line2); font-size: 13px; color: var(--sto-muted); }
.sto-zone-perf strong { color: var(--sto-ink); font-size: 16px; }
.sto-cells5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.sto-cells5 .sto-cell { font-size: 11px; height: 26px; }
.sto-zones-sm .sto-zone { padding: 12px 14px; gap: 6px; }
.sto-zones-sm .sto-bigpos { font-size: 18px; }
.sto-sparks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sto-sparks svg { width: 100%; height: auto; }

/* ---------- Tableau à chaleur ---------- */
.sto-hrow { display: grid; grid-template-columns: minmax(200px, 1.6fr) 104px repeat(5, 62px) repeat(3, 30px) 116px; gap: 6px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--sto-line2); }
.sto-hrow.no-tr { grid-template-columns: minmax(200px, 1.6fr) 104px repeat(5, 62px) 116px; }
.sto-hrow.has-extra { grid-template-columns: minmax(200px, 1.6fr) 104px 104px repeat(5, 62px) repeat(3, 30px) 116px; }
.sto-hhead { border-top: 0; font: 600 11px var(--sto-mono-f); letter-spacing: .04em; text-transform: uppercase; color: var(--sto-muted); padding-top: 10px; padding-bottom: 10px; }
.sto-hhead .c, .sto-prow .c { text-align: center; }
.sto-prow .r { text-align: right; }
.sto-name { min-width: 0; }
.sto-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.sto-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-spark { display: block; }

/* ---------- Barres indices ---------- */
.sto-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px 92px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.sto-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-bar-track { display: grid; grid-template-columns: 1fr 1fr; height: 16px; }
.sto-bar-track > span { display: flex; position: relative; }
.sto-bar-track .neg { justify-content: flex-end; border-right: 1px solid var(--sto-ink2); }
.sto-bar-track i { display: block; height: 100%; }
.sto-bar-track .neg i { background: var(--sto-orange); border-radius: 3px 0 0 3px; }
.sto-bar-track .pos i { background: var(--sto-blue); border-radius: 0 3px 3px 0; }
.sto-bar .sto-mono { text-align: right; font-size: 13px; }

/* ---------- Onglets et puces ---------- */
.sto-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--sto-line); }
.sto-tabs button { flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 15px var(--sto-sans); color: var(--sto-muted); cursor: pointer; }
.sto-tabs button[aria-selected=true] { color: var(--sto-ink); border-bottom-color: var(--sto-blue); }
.sto-tabs button:hover { color: var(--sto-ink); }
.sto-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sto-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--sto-line); border-radius: 99px; background: var(--sto-surface); font: 500 13px var(--sto-sans); color: var(--sto-ink2); cursor: pointer; }
.sto-chips button[aria-pressed=true] { background: var(--sto-ink); color: #fff; border-color: var(--sto-ink); }
.sto-chips i, .sto-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
i.sto-long { background: var(--sto-blue); } i.sto-court { background: var(--sto-orange); } i.sto-wait { background: var(--sto-faint); }
.sto-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; margin: 0 4px 4px 0; border-radius: 6px; background: var(--sto-surface); border: 1px solid var(--sto-line); font-size: 12.5px; }

/* ---------- Matrice passé / présent ---------- */
.sto-matrix { display: grid; grid-template-columns: 150px minmax(240px, 1fr) minmax(240px, 1fr); gap: 6px; min-width: 640px; }
.sto-matrix > b { font: 600 12px var(--sto-mono-f); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; }
.sto-mlabel { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.sto-mcell { min-height: 76px; padding: 10px; border-radius: 8px; background: var(--sto-soft); border: 1px solid var(--sto-line2); }
.sto-mcell small { font-weight: 600; margin-bottom: 6px; }
.sto-mcell.m1true { background: var(--sto-blue-bg); }
.sto-mcell.mn1false { background: var(--sto-orange-bg); }
.sto-mcell.m1false { background: #F0F3FB; }
.sto-mcell.mn1true { background: #FBF3EE; }

/* ---------- Valeurs alignées ---------- */
.sto-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sto-aligned { padding: 14px 16px; border-radius: var(--sto-r); border: 1px solid var(--sto-line); background: var(--sto-surface); min-width: 0; }
.sto-aligned > strong { display: block; margin-bottom: 8px; }
.sto-aligned p { margin: 0; color: var(--sto-ink2); }
.sto-al-long { border-left: 4px solid var(--sto-blue); } .sto-al-long > strong { color: var(--sto-blue); }
.sto-al-court { border-left: 4px solid var(--sto-orange); } .sto-al-court > strong { color: var(--sto-orange); }
.sto-alrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px 56px; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--sto-line2); font-size: 14px; }
.sto-alrow > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-alrow small { display: inline; }
.sto-alrow .sto-mono { text-align: right; }

/* ---------- Tableau de bord ---------- */
.sto-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sto-crow { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--sto-line2); align-items: baseline; }
.sto-crow small { display: inline; }
.sto-tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 500; }
.sto-tag-long { background: var(--sto-blue-bg); color: var(--sto-blue-d); }
.sto-tag-court { background: var(--sto-orange-bg); color: var(--sto-orange-d); }

/* ---------- Position ---------- */
.sto-pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sto-pcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); min-width: 0; }
.sto-pcard strong { display: block; }
.sto-pcard > small { color: var(--sto-ink2); }
.sto-pcard .sto-row { flex-wrap: wrap; }
.sto-pcard .sto-row > span { white-space: nowrap; }
.sto-pcard-top { display: flex; gap: 14px; align-items: center; }
.sto-pcard-top > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sto-ring { --c: var(--sto-grey); flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) var(--deg), var(--sto-line2) 0); }
.sto-ring.sto-long { --c: var(--sto-blue); } .sto-ring.sto-court { --c: var(--sto-orange); }
.sto-ring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--sto-surface); display: grid; place-items: center; align-content: center; font: 500 11px var(--sto-mono-f); color: var(--sto-muted); line-height: 1; }
.sto-ring b { font-size: 19px; color: var(--sto-ink); }
.sto-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sto-levels4 { grid-template-columns: repeat(4, 1fr); }
.sto-levels > div { padding: 8px; border-radius: 8px; background: var(--sto-soft); border: 1px solid var(--sto-line2); min-width: 0; }
.sto-levels b { font: 600 14px var(--sto-mono-f); }
.sto-st { font: 600 12.5px var(--sto-sans); white-space: nowrap; }
.sto-st-ok { color: var(--sto-ok); } .sto-st-near { color: var(--sto-near); } .sto-st-wait { color: var(--sto-grey); }
.sto-stbar { display: inline-block; width: 6px; height: 28px; border-radius: 3px; }
.sto-stbar.sto-st-ok { background: var(--sto-ok); } .sto-stbar.sto-st-near { background: var(--sto-near); } .sto-stbar.sto-st-wait { background: var(--sto-faint); }
.sto-prow { display: grid; grid-template-columns: minmax(170px, 1.4fr) 84px 96px repeat(15, 26px) repeat(4, 72px) 50px 136px; gap: 6px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--sto-line2); font-size: 13.5px; }
.sto-prow.sto-hhead { border-top: 0; font-size: 10.5px; }
.sto-dot { justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--sto-line2); border: 1px solid var(--sto-line); }
.sto-dot.sto-long { background: var(--sto-blue); border-color: var(--sto-blue); }
.sto-dot.sto-court { background: var(--sto-orange); border-color: var(--sto-orange); }
.sto-score { display: flex; align-items: center; gap: 6px; }
.sto-score b { font: 600 15px var(--sto-mono-f); width: 22px; text-align: right; }
.sto-score > span { flex: 1; height: 6px; border-radius: 3px; background: var(--sto-line2); overflow: hidden; }
.sto-score i { display: block; height: 100%; }
.sto-score i.sto-long { background: var(--sto-blue); } .sto-score i.sto-court { background: var(--sto-orange); }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1200px) {
  .sto-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sto-sparks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sto-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sto-shell { grid-template-columns: minmax(0, 1fr); }
  .sto-side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; overflow: visible; }
  .admin-bar .sto-side { top: 0; height: auto; }
  .sto-side .sto-logo { padding: 0; flex: none; }
  .sto-nav { flex-direction: row; overflow-x: auto; flex: 1; min-width: 0; gap: 4px; scrollbar-width: none; }
  .sto-body .sto-nav a { flex: none; white-space: nowrap; min-height: 40px; }
  .sto-account { margin: 0; padding: 0; border: 0; flex: none; }
  .sto-account strong { display: none; }
  .sto-wrap { padding: 20px 16px 40px; }
  .sto-login { grid-template-columns: 1fr; }
  .sto-login-photo { min-height: 260px; }
  .sto-login-tagline { left: 16px; right: 16px; bottom: 20px; }
  .sto-steps { grid-template-columns: repeat(2, 1fr); }
  .sto-plans-grid { grid-template-columns: 1fr; }
  .sto-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sto-side .sto-logo { font-size: 0; gap: 0; }
  .sto-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sto-sparks { grid-template-columns: 1fr; }
  .sto-steps { grid-template-columns: 1fr; }
  .sto-bar { grid-template-columns: 84px minmax(0, 1fr) 56px; }
  .sto-bar .sto-badge { display: none; }
  .sto-panel { padding: 14px; }
  .sto-hrow, .sto-prow { padding-left: 14px; padding-right: 14px; }
  .sto-levels4 { grid-template-columns: repeat(2, 1fr); }
  .sto-sechead { flex-wrap: wrap; }
}

/* ---------- Indicateurs boursiers ---------- */
.sto-ind-rule { margin: 0 0 20px; }
.sto-ind-rule p { margin: 0; color: var(--sto-ink2); max-width: 900px; }
.sto-ind-n { font: 500 12px var(--sto-mono-f); color: var(--sto-faint); }
.sto-ind-sec { margin-top: 28px; }
.sto-ind-intro { margin: -4px 0 16px; color: var(--sto-muted); max-width: 820px; }
.sto-ind-sub { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 22px 0 12px; }
.sto-ind-sub small { display: inline; font: 500 12px var(--sto-mono-f); color: var(--sto-faint); }
.sto-ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sto-ind { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); min-width: 0; }
.sto-ind > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sto-ind h3 { font-size: 16px; }
.sto-ind-abbr { flex: none; font: 600 12px var(--sto-mono-f); color: var(--sto-blue-d); background: var(--sto-blue-bg); padding: 2px 8px; border-radius: 6px; }
.sto-ind-set { margin: 0; font-size: 13px; color: var(--sto-muted); }
.sto-ind-set strong { color: var(--sto-ink); font-weight: 600; }
.sto-ind dl { margin: 0; display: grid; gap: 4px; }
.sto-ind dt { font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; color: var(--sto-faint); margin-top: 6px; }
.sto-ind dd { margin: 0; font-size: 14px; color: var(--sto-ink2); }
.sto-cdl-fig { display: flex; justify-content: center; align-items: center; min-height: 126px; background: var(--sto-soft); border: 1px solid var(--sto-line2); border-radius: 8px; padding: 6px; }
.sto-candle-svg { max-width: 100%; height: auto; }
.sto-rel { display: inline-flex; align-items: center; gap: 4px; }
.sto-rel i { width: 8px; height: 8px; border-radius: 50%; background: var(--sto-line); }
.sto-rel i.on { background: var(--sto-ink2); }
.sto-rel small { display: inline; margin-left: 4px; }
.sto-ind-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 4px; font-size: 13px; color: var(--sto-muted); }
.sto-ind-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sto-ind-legend .sw { width: 10px; height: 14px; border-radius: 2px; border: 1.6px solid; }
.sto-ind-legend .sw.up { border-color: var(--sto-blue); background: var(--sto-surface); }
.sto-ind-legend .sw.down { border-color: var(--sto-orange); background: var(--sto-orange); }
.sto-ind-legend .sw.ctx { border-color: var(--sto-faint); background: var(--sto-faint); }
@media (max-width: 600px) { .sto-ind-grid { grid-template-columns: 1fr; } }

/* ---------- Bibliothèque d'indicateurs ---------- */
.sto-ind-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 16px 0 4px; }
.sto-ind-tools label { display: flex; flex-direction: column; gap: 4px; font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; color: var(--sto-muted); }
.sto-ind-tools input, .sto-ind-tools select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--sto-line); border-radius: 10px; background: var(--sto-surface); color: var(--sto-ink); font: 15px var(--sto-sans); text-transform: none; letter-spacing: 0; }
.sto-ind-search { flex: 1 1 260px; }
.sto-ind-tools input:focus, .sto-ind-tools select:focus { border-color: var(--sto-blue); outline: 2px solid var(--sto-blue-bg); }
.sto-ind-res { margin: 8px 0 0; font-size: 13px; color: var(--sto-muted); }
.sto-lib { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; }
.sto-lib th, .sto-lib td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--sto-line2); }
.sto-lib thead th { font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; color: var(--sto-muted); background: var(--sto-soft); position: sticky; top: 0; }
.sto-lib tbody tr:last-child > * { border-bottom: 0; }
.sto-lib tbody th { width: 22%; font-weight: 400; }
.sto-lib tbody th strong { font-weight: 600; color: var(--sto-ink); }
.sto-lib td { color: var(--sto-ink2); }
.sto-lib td:nth-child(5) { width: 150px; }
.sto-lib td:nth-child(6) { width: 120px; }
.sto-lib tbody tr:hover { background: var(--sto-soft); }
.sto-pop { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.sto-pop-bar { height: 6px; border-radius: 3px; background: var(--sto-line2); overflow: hidden; }
.sto-pop-bar i { display: block; height: 100%; background: var(--sto-blue); border-radius: 3px; }
.sto-pop b { font-weight: 600; font-size: 13px; color: var(--sto-ink); }
.sto-pop small { grid-column: 1 / -1; font-size: 11px; }
.sto-us { display: inline-block; font: 600 10px/1.6 var(--sto-mono-f); padding: 0 5px; border-radius: 4px; background: var(--sto-near-bg); color: var(--sto-near); vertical-align: 1px; }
.sto-eu { margin-top: 4px; font-size: 12px; color: var(--sto-muted); }
.sto-fiche { display: block; width: fit-content; margin-top: 6px; font-size: 12px; font-weight: 600; text-decoration: none; }
.sto-fiche:hover { text-decoration: underline; }
.sto-ind-sub4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 18px 0 10px; color: var(--sto-ink2); }
.sto-ind-sub4 small { display: inline; font: 500 12px var(--sto-mono-f); color: var(--sto-faint); }
.sto-ind.is-flash { border-color: var(--sto-blue); box-shadow: 0 0 0 3px var(--sto-blue-bg); transition: box-shadow .3s; }
.sto-ind-foot { margin-top: 32px; }
.sto-ind-foot p, .sto-ind-foot li { color: var(--sto-ink2); font-size: 14px; max-width: 900px; }
.sto-ind-foot ul { margin: 10px 0; padding-left: 20px; }
.sto-ind-foot p:last-child { margin-bottom: 0; }
.sto-ind-sec .sto-panel.sto-scroll { padding: 0; overflow-x: auto; }

/* ---------- Graphiques ---------- */
.sto-graph-studies { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-height: 44px; margin: 0; padding: 6px 12px; border: 1px solid var(--sto-line); border-radius: 10px; background: var(--sto-surface); }
.sto-graph-studies legend { padding: 0 4px; font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; color: var(--sto-muted); }
.sto-graph-studies label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font: 400 14px var(--sto-sans); text-transform: none; letter-spacing: 0; color: var(--sto-ink); }
.sto-graph-sub { margin: 14px 0 8px; font-size: 14px; color: var(--sto-ink2); }
.sto-graph-box { padding: 0; overflow: hidden; }
.sto-graph-chart { height: min(82vh, 820px); min-height: 560px; }
.sto-graph-box + .sto-note { margin-top: 10px; }

/* ---------- Graphique (bougies Yahoo) ---------- */
.sto-g-find { flex: 1 1 260px; }
.sto-g-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 4px 0 0; }
.sto-g-bar .sto-chips button i { width: 12px; height: 4px; border-radius: 2px; box-shadow: 0 0 0 1px #fff; }
.sto-g-head { padding: 14px 20px; }
.sto-g-head .sto-error, .sto-g-head .sto-loading { margin: 0; }
.sto-g-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sto-g-title strong { display: block; font: 600 22px/1.2 var(--sto-serif); }
.sto-g-price { display: flex; align-items: baseline; gap: 12px; }
.sto-g-price b { font-size: 26px; font-weight: 600; }
.sto-g-price span { font-size: 15px; font-weight: 600; }
.sto-graph-chart { position: relative; }
.sto-g-vp { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.sto-g-legend { position: absolute; top: 8px; left: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 90px); padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.88); font: 12px var(--sto-mono-f); color: var(--sto-muted); pointer-events: none; }
.sto-g-legend b { color: var(--sto-ink); font-weight: 600; }
.sto-g-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.sto-g-score { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sto-g-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sto-g-sig { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--sto-line2); border-radius: 10px; background: var(--sto-soft); }
.sto-g-sig strong { display: block; font-size: 14px; }
.sto-g-sig.sto-g-up { border-left: 3px solid var(--sto-blue); }
.sto-g-sig.sto-g-down { border-left: 3px solid var(--sto-orange); }
@media (max-width: 600px) { .sto-graph-chart { height: 520px; min-height: 0; } .sto-g-legend { max-width: calc(100% - 70px); font-size: 11px; } }

/* Scanner des signaux (Idées de la semaine) */
.sto-scan { display: grid; gap: 14px; margin-bottom: 24px; }
.sto-scan .sto-sechead h2 { font-size: 18px; }
.sto-scan-m { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 12px 14px; border: 1px solid var(--sto-line); border-radius: 10px; }
.sto-scan-m legend { padding: 0 6px; font: 600 12px var(--sto-mono-f); text-transform: uppercase; letter-spacing: .06em; color: var(--sto-muted); }
.sto-scan-m label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.sto-scan-m input { width: 18px; height: 18px; accent-color: var(--sto-blue); }
.sto-scan-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sto-scan-go .sto-btn[disabled] { opacity: .6; cursor: progress; }
.sto-scan-meta { margin: 0 0 8px; font: 500 12px var(--sto-mono-f); color: var(--sto-muted); }
.sto-scan-col h3 { font-size: 15px; margin: 0 0 8px; }
.sto-scan-col-a h3 { color: var(--sto-blue); } .sto-scan-col-v h3 { color: var(--sto-orange); }
.sto-scan-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sto-scan-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px; gap: 4px 12px; align-items: center; padding: 10px 12px; background: var(--sto-soft); border: 1px solid var(--sto-line2); border-radius: 10px; }
.sto-scan-rk { font: 600 14px var(--sto-mono-f); color: var(--sto-faint); grid-row: span 2; align-self: start; }
.sto-scan-nm strong { display: block; overflow-wrap: anywhere; }
.sto-scan-cf { text-align: right; }
.sto-scan-cf b { font-size: 18px; }
.sto-scan-bar { display: block; height: 5px; margin: 3px 0 2px; background: var(--sto-line2); border-radius: 3px; overflow: hidden; }
.sto-scan-bar i { display: block; height: 100%; }
.sto-scan-a { background: var(--sto-blue); } .sto-scan-v { background: var(--sto-orange); }
.sto-scan-ct { grid-column: 2 / 4; display: flex; align-items: baseline; gap: 8px; }
.sto-scan-ct small { display: inline; }
.sto-scan-dt { grid-column: 2 / 4; font-size: 13px; color: var(--sto-ink2); }
.sto-scan-dt summary { cursor: pointer; color: var(--sto-blue); font-size: 13px; min-height: 28px; }
.sto-scan-dt p { margin: 4px 0; }
#sto-scan-res[aria-busy=true] { opacity: .5; }
@media (max-width: 600px) { .sto-scan-row { grid-template-columns: 22px minmax(0, 1fr) 92px; padding: 10px; } .sto-scan-cf b { font-size: 16px; } }
.sto-scan-cols { margin-top: 12px; }

/* Bouton Actualiser */
.sto-refresh { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin: 0 0 16px; }
.sto-refresh-info { font: 500 12px var(--sto-mono-f); color: var(--sto-muted); }
.sto-refresh-btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.sto-refresh-btn[disabled] { opacity: .6; cursor: progress; }
.sto-refresh-msg { flex-basis: 100%; text-align: right; font-size: 13px; color: var(--sto-muted); }
.sto-refresh-msg:empty { display: none; }
@media (max-width: 600px) { .sto-refresh { justify-content: space-between; } .sto-refresh-msg { text-align: left; } }
.sto-scan-abs { font-size: 13px; color: var(--sto-ink2); }
.sto-scan-abs summary { cursor: pointer; color: var(--sto-blue); min-height: 28px; }
.sto-scan-abs ul { margin: 6px 0 0; padding-left: 18px; columns: 2 280px; column-gap: 24px; }
.sto-scan-abs li { break-inside: avoid; margin-bottom: 2px; }

/* ---------- Onglet News ---------- */
.sto-nw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.sto-nw-bar .sto-note { margin: 0; }
.sto-nw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.sto-nw-kpi { display: grid; gap: 10px; align-content: start; }
.sto-nw-kpi > small { margin-top: -6px; }
.sto-nw-big { display: flex; align-items: center; gap: 14px; }
.sto-nw-big b { font-size: 46px; font-weight: 600; line-height: 1; }
.sto-nw-big span { color: var(--sto-muted); font-size: 14px; line-height: 1.35; }
.sto-nw-big strong { display: block; font-size: 15px; }
.sto-nw-stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--sto-line2); gap: 2px; }
.sto-nw-stack i { display: block; height: 100%; min-width: 0; }
.sto-nw-stack .p, .sto-nw-weeks .p { background: var(--sto-blue); fill: var(--sto-blue); }
.sto-nw-stack .n, .sto-nw-weeks .n { background: var(--sto-orange); fill: var(--sto-orange); }
.sto-nw-stack .z { background: #CFCAC0; }
.sto-nw-cnt { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 13px var(--sto-mono-f); }
.sto-nw-weeks { margin: 4px 0 0; }
.sto-nw-weeks svg { display: block; width: 100%; height: 72px; }
.sto-nw-weeks figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--sto-muted); }
.sto-nw-weeks figcaption i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sto-nw-rank { display: grid; gap: 14px; margin-bottom: 18px; }
.sto-nw-rank .sto-sechead { margin: 0; }
.sto-nw-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.sto-nw-col h3 { font-size: 15px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--sto-blue); }
.sto-nw-col-n h3 { border-bottom-color: var(--sto-orange); }
.sto-nw-col ol { list-style: none; margin: 0; padding: 0; }
.sto-nw-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sto-line2); }
.sto-nw-rk { font: 600 13px var(--sto-mono-f); color: var(--sto-faint); }
.sto-nw-nm strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-nw-n { text-align: right; }
.sto-nw-n b { font-size: 20px; }
.sto-nw-mix, .sto-nw-dt { grid-column: 2 / -1; }
.sto-nw-mix { display: grid; gap: 4px; }
.sto-nw-mix .sto-nw-stack { height: 6px; }
.sto-nw-dt summary { cursor: pointer; font-size: 13px; color: var(--sto-blue); min-height: 28px; display: flex; align-items: center; }
.sto-nw-titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sto-nw-titles li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--sto-line2); font-size: 14px; }
.sto-nw-titles li:last-child { border-bottom: 0; }
.sto-nw-titles a { color: var(--sto-ink); text-decoration: none; }
.sto-nw-titles a:hover { color: var(--sto-blue); text-decoration: underline; }
.sto-nw-meth { margin-bottom: 18px; }
.sto-nw-meth summary { cursor: pointer; font-weight: 600; }
.sto-nw-meth p { color: var(--sto-ink2); font-size: 14px; max-width: 820px; }
@media (max-width: 560px) { .sto-nw-big b { font-size: 38px; } .sto-nw-two, .sto-nw-kpis { grid-template-columns: minmax(0, 1fr); } }
.sto-nw-src { margin-bottom: 18px; }
.sto-nw-top { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.sto-nw-top li { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.sto-nw-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-nw-top i { display: block; height: 8px; border-radius: 99px; background: var(--sto-ink2); }
.sto-nw-top b { text-align: right; font-size: 13px; }

/* ---------- Onglet Dirigeants ---------- */
.sto-dd-pays { margin: 0 0 16px; }
.sto-dd-file { position: relative; overflow: hidden; }
.sto-dd-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sto-dd-months svg { height: 84px; }
.sto-dd-mlab { display: grid; font: 500 11px var(--sto-mono-f); color: var(--sto-faint); text-align: center; margin-top: 2px; }
.sto-dd-last { display: grid; gap: 12px; margin-bottom: 18px; }
.sto-dd-last .sto-sechead { margin: 0; }
.sto-dd-ops { list-style: none; margin: 0; padding: 0; }
.sto-dd-op { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--sto-line2); font-size: 14px; }
.sto-dd-op:last-child { border-bottom: 0; }
.sto-dd-who strong { display: block; font-size: 14.5px; }
.sto-dd-who > span { display: block; overflow-wrap: anywhere; }
.sto-dd-amt { text-align: right; }
.sto-dd-amt b { font-size: 15px; }
@media (max-width: 560px) { .sto-dd-op { grid-template-columns: 18px minmax(0, 1fr); } .sto-dd-amt { grid-column: 2; text-align: left; } }

/* ---------- Portefeuille virtuel ---------- */
.sto-pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.sto-pf-kpi { background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: var(--sto-r); padding: 14px 16px; display: grid; gap: 4px; }
.sto-pf-kpi b { font-size: 22px; line-height: 1.2; }
.sto-pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-bottom: 16px; }
.sto-pf-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.sto-pf-order { position: sticky; top: 16px; display: grid; gap: 12px; }
.sto-pf-order .sto-sechead { margin: 0; }
.sto-pf-f { display: grid; gap: 4px; min-width: 0; }
.sto-pf-f > span { font-size: 12.5px; font-weight: 600; color: var(--sto-ink2); }
.sto-pf-f input, .sto-pf-f select, .sto-pf-f textarea, .sto-pf-lv input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid var(--sto-line); border-radius: 8px; background: var(--sto-surface); font: 15px var(--sto-sans); color: var(--sto-ink); }
.sto-pf-f > span select { min-height: 0; padding: 0; border: 0; background: none; font: 600 12.5px var(--sto-sans); color: var(--sto-ink2); width: auto; }
.sto-pf-f.is-off { opacity: .45; }
.sto-pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sto-pf-quote { min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--sto-soft); border: 1px solid var(--sto-line2); }
.sto-pf-quote b { font-size: 18px; }
.sto-pf-seg { display: grid; grid-template-columns: 1fr 1fr; }
.sto-pf-seg button { justify-content: center; min-height: 40px; font-weight: 600; }
.sto-pf-seg button[data-sens=achat][aria-pressed=true] { background: var(--sto-blue); border-color: var(--sto-blue); }
.sto-pf-seg button[data-sens=vente][aria-pressed=true] { background: var(--sto-orange); border-color: var(--sto-orange); }
.sto-pf-row.sto-pf-qrow { grid-template-columns: 1fr; }
.sto-pf-quick { display: flex; flex-wrap: wrap; gap: 4px; }
.sto-pf-quick button, .sto-pf-mini { min-height: 32px; padding: 4px 8px; border: 1px solid var(--sto-line); border-radius: 6px; background: var(--sto-surface); font: 500 12.5px var(--sto-sans); color: var(--sto-ink2); cursor: pointer; }
.sto-pf-quick button:hover, .sto-pf-mini:hover { border-color: var(--sto-ink2); }
.sto-pf-prev:empty { display: none; }
.sto-pf-prev { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--sto-blue-bg); font-size: 14px; }
.sto-pf-prev > div:not(.sto-note) { display: flex; justify-content: space-between; gap: 10px; }
.sto-pf-go { width: 100%; }
.sto-pf-chart { height: 300px; }
.sto-pf-legend { display: flex; gap: 16px; font-size: 13px; color: var(--sto-muted); margin-top: 6px; }
.sto-pf-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--sto-blue); }
.sto-pf-legend i.b { background: repeating-linear-gradient(90deg, var(--sto-faint) 0 4px, transparent 4px 7px); }
.sto-pf-body { padding-top: 6px; }
.sto-pf-tabs { margin: 0 -4px 14px; }
.sto-pf-empty { padding: 18px 0; }
.sto-pf-tbl { display: grid; font-size: 14px; }
.sto-pf-tr { display: grid; grid-template-columns: minmax(130px, 1.7fr) .6fr 1.2fr .9fr .9fr minmax(170px, 1.6fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sto-line2); }
.sto-pf-th { font-size: 12px; font-weight: 600; color: var(--sto-muted); padding-top: 0; }
.sto-pf-tr strong { display: block; }
.sto-pf-grp .sto-pf-tr { grid-template-columns: minmax(150px, 2fr) repeat(4, 1fr); }
.sto-pf-lv { display: flex; gap: 4px; }
.sto-pf-lv input { min-height: 32px; padding: 4px 6px; font-size: 13px; min-width: 0; }
.sto-pf-close { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.sto-pf-h3 { font-size: 16px !important; margin: 18px 0 10px !important; }
.sto-pf-h3:first-child { margin-top: 0 !important; }
.sto-pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sto-pf-st { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--sto-line2); border-radius: 10px; background: var(--sto-soft); }
.sto-pf-st > span { font-size: 12.5px; font-weight: 600; color: var(--sto-ink2); }
.sto-pf-st b { font-size: 20px; }
.sto-pf-list { list-style: none; margin: 0; padding: 0; }
.sto-pf-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--sto-line2); font-size: 14px; }
.sto-pf-list li:last-child { border-bottom: 0; }
.sto-pf-list b { text-align: right; }
.sto-pf-note { margin: 4px 0 0; font-style: italic; color: var(--sto-ink2); }
.sto-pf-set { display: grid; gap: 12px; max-width: 560px; }
.sto-pf-set hr { border: 0; border-top: 1px solid var(--sto-line2); margin: 8px 0 0; width: 100%; }
.sto-pf-chk { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.sto-body .sto-pf-danger { color: var(--sto-orange); border-color: var(--sto-orange); }
@media (max-width: 1000px) { .sto-pf-grid { grid-template-columns: minmax(0, 1fr); } .sto-pf-order { position: static; order: -1; } }
@media (max-width: 760px) {
  .sto-pf-th { display: none; }
  .sto-pf-tr, .sto-pf-grp .sto-pf-tr { grid-template-columns: 1fr 1fr; }
  .sto-pf-tr > span:first-child { grid-column: 1 / -1; }
  .sto-pf-lv { grid-column: 1 / -1; }
  .sto-pf-row { grid-template-columns: 1fr; }
  .sto-pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sto-pf-kpi b { font-size: 19px; }
  .sto-pf-chart { height: 230px; }
}

/* ---------- Assistant Claude ---------- */
.sto-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sto-ai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 900px; }
.sto-ai-log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-height: 62vh; min-height: 120px; overflow-y: auto; padding: 4px 2px; }
.sto-ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.sto-ai-msg p { margin: 0 0 6px; } .sto-ai-msg p:last-child { margin-bottom: 0; }
.sto-ai-msg ul, .sto-ai-msg ol { margin: 4px 0 8px; padding-left: 20px; }
.sto-ai-msg h3 { font-size: 15px !important; margin: 8px 0 4px !important; }
.sto-ai-msg code { font: 13px var(--sto-mono-f); background: var(--sto-grey-bg); padding: 1px 4px; border-radius: 4px; }
.sto-ai-user { justify-self: end; background: var(--sto-blue); color: #fff; border-bottom-right-radius: 4px; }
.sto-ai-user code { background: rgba(255,255,255,.15); }
.sto-ai-bot { justify-self: start; background: var(--sto-soft); border: 1px solid var(--sto-line2); border-bottom-left-radius: 4px; }
.sto-ai-bot.is-err { background: var(--sto-orange-bg); border-color: var(--sto-orange-bg); color: var(--sto-orange-d); }
.sto-ai-bot.is-think { color: var(--sto-muted); font-size: 14px; }
.sto-ai-dots { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: middle; }
.sto-ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sto-faint); animation: sto-ai-b 1.2s infinite ease-in-out; }
.sto-ai-dots i:nth-child(2) { animation-delay: .15s; } .sto-ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sto-ai-b { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sto-ai-dots i { animation: none; } }
.sto-ai-tw { overflow-x: auto; margin: 6px 0; }
.sto-ai-tw table { border-collapse: collapse; font-size: 13.5px; }
.sto-ai-tw th, .sto-ai-tw td { padding: 5px 9px; border-bottom: 1px solid var(--sto-line2); text-align: left; white-space: nowrap; }
.sto-ai-tw th { font-size: 12px; color: var(--sto-muted); }
.sto-ai-card { display: grid; gap: 6px; }
.sto-ai-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sto-ai-done { font-weight: 600; color: var(--sto-ok); } .sto-ai-done.is-err { color: var(--sto-orange); }
.sto-ai-bar { height: 6px; border-radius: 3px; background: var(--sto-line2); overflow: hidden; }
.sto-ai-bar i { display: block; height: 100%; width: 0; background: var(--sto-blue); transition: width .3s; }
.sto-ai-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.sto-ai-ex button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--sto-line); border-radius: 99px; background: var(--sto-surface); font: 500 13px var(--sto-sans); color: var(--sto-ink2); cursor: pointer; text-align: left; }
.sto-ai-ex button:hover { border-color: var(--sto-ink2); }
.sto-ai-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.sto-ai-form textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border: 1px solid var(--sto-line); border-radius: 10px; font: 15px var(--sto-sans); resize: vertical; background: var(--sto-surface); color: var(--sto-ink); }
.sto-ai-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sto-ai-foot .sto-note { margin: 0 auto 0 0; }
.sto-ai-link { border: 0; background: none; padding: 6px 0; font: 500 13px var(--sto-sans); color: var(--sto-blue); cursor: pointer; text-decoration: underline; }
.sto-ai-set { display: grid; gap: 10px; max-width: 900px; margin-top: 16px; }
.sto-ai-set .sto-pf-f { max-width: 460px; }
@media (max-width: 560px) { .sto-ai-msg { max-width: 100%; } .sto-ai-form { grid-template-columns: 1fr; } }
.sto-ai-ex[hidden], .sto-ai-set[hidden] { display: none; }

/* ---------- Onglet Marchés : catégories et filtre par secteur ---------- */
.sto-cats { display: flex; width: fit-content; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--sto-grey-bg); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.sto-cats button { flex: none; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 9px; background: none; font: 600 15px var(--sto-sans); color: var(--sto-muted); cursor: pointer; }
.sto-cats button:hover { color: var(--sto-ink); }
.sto-cats button[aria-selected=true] { background: var(--sto-surface); color: var(--sto-ink); box-shadow: 0 1px 3px rgba(20,23,31,.12); }
.sto-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 12px; }
.sto-filter label { font-weight: 600; font-size: 14px; }
.sto-filter select { min-height: 42px; min-width: 260px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--sto-line); border-radius: 10px; background: var(--sto-surface); font: 15px var(--sto-sans); color: var(--sto-ink); }
.sto-filter-x { border: 0; background: none; padding: 6px 0; font: 500 13px var(--sto-sans); color: var(--sto-blue); text-decoration: underline; cursor: pointer; }
.sto-secsum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.sto-secsum > div:first-child { display: grid; gap: 2px; min-width: 200px; flex: 1; }
.sto-secsum strong { font-size: 18px; }
.sto-secsum .sto-cells5 { min-width: 260px; }
@media (max-width: 560px) { .sto-filter select { min-width: 0; width: 100%; } .sto-cats button { padding: 8px 12px; } }

/* ---------- Assistant en bulle flottante ---------- */
.sto-ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: var(--sto-blue); color: #fff; font: 600 15px var(--sto-sans); box-shadow: 0 6px 20px rgba(20,23,31,.25); cursor: pointer; }
.sto-ai-fab:hover { background: var(--sto-blue-d); }
.sto-ai-fab.is-open { background: var(--sto-ink); }
.sto-ai-w { position: fixed; right: 20px; bottom: 84px; z-index: 9999; width: 420px; height: min(680px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--sto-surface); border: 1px solid var(--sto-line); border-radius: 16px; box-shadow: 0 16px 48px rgba(20,23,31,.22); overflow: hidden; color: var(--sto-ink); font: 15px/1.5 var(--sto-sans); }
.sto-ai-w[hidden] { display: none; }
.sto-ai-top { display: flex; align-items: center; gap: 6px; padding: 12px 10px 12px 16px; background: var(--sto-ink); color: #fff; }
.sto-ai-top > div { flex: 1; min-width: 0; display: grid; }
.sto-ai-top strong { font-size: 15px; }
.sto-ai-top small { color: rgba(255,255,255,.65); font-size: 12px; }
.sto-ai-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.sto-ai-ic:hover { background: rgba(255,255,255,.12); }
.sto-ai-w .sto-ai { flex: 1; max-width: none; min-height: 0; padding: 12px 14px; grid-template-rows: minmax(0, 1fr) auto auto auto; }
.sto-ai-w .sto-ai-log { max-height: none; min-height: 0; }
.sto-ai-w .sto-ai-msg { max-width: 92%; font-size: 14.5px; }
.sto-ai-w .sto-ai-ex { max-height: 140px; overflow-y: auto; }
.sto-ai-w .sto-ai-form { grid-template-columns: minmax(0, 1fr) auto; }
.sto-ai-w .sto-ai-form .sto-btn { min-height: 48px; padding: 8px 14px; }
.sto-ai-w .sto-ai-set { margin: 0; max-width: none; padding: 12px 16px; border-bottom: 1px solid var(--sto-line); background: var(--sto-soft); max-height: 50vh; overflow-y: auto; }
.sto-ai-w .sto-ai-set .sto-pf-f { max-width: none; }
@media (max-width: 560px) {
  .sto-ai-fab { right: 14px; bottom: 14px; }
  .sto-ai-w { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .sto-ai-w .sto-ai-form { grid-template-columns: minmax(0, 1fr) auto; }
  body.sto-body .sto-ai-w:not([hidden]) ~ .sto-ai-fab { display: none; }
}

/* ---------- Onglet Carnet d'ordres ---------- */
.sto-cb-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 16px; }
.sto-cb-bar label { display: grid; gap: 4px; font-size: 13px; color: var(--sto-muted); min-width: 0; }
.sto-cb-bar select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--sto-line); border-radius: 10px; background: var(--sto-surface); font: 500 15px var(--sto-sans); color: var(--sto-ink); max-width: 100%; }
#cb-res[aria-busy=true] { opacity: .5; }
#cb-res > * + * { margin-top: 16px; }
.sto-cb-warn { background: var(--sto-near-bg); color: var(--sto-ink2); padding: 10px 14px; border-radius: 10px; }
.sto-cb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sto-cb-card { display: grid; gap: 8px; align-content: start; }
.sto-cb-card > b { font-size: 22px; line-height: 1.2; }
.sto-cb-card small { color: var(--sto-muted); font-size: 13px; line-height: 1.45; }
.sto-cb-gauge svg { width: 100%; max-width: 260px; justify-self: center; }
.sto-cb-gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.sto-cb-gauge .tr { stroke: var(--sto-line2); }
.sto-cb-gauge .fl { stroke: var(--sto-blue); }
.sto-cb-gauge .md { stroke: var(--sto-ink2); stroke-width: 2; }
.sto-cb-gauge .nd { stroke: var(--sto-ink); stroke-width: 3; stroke-linecap: round; }
.sto-cb-gauge .ndc { fill: var(--sto-ink); }
.sto-cb-gauge .cur { fill: var(--sto-surface); stroke: var(--sto-blue-d); stroke-width: 3; }
.sto-cb-gauge text { font: 500 10px var(--sto-sans); fill: var(--sto-muted); }
.sto-cb-pbar { height: 12px; border-radius: 6px; background: var(--sto-orange); overflow: hidden; }
.sto-cb-pbar i { display: block; height: 100%; background: var(--sto-blue); }
.sto-cb-pleg { display: flex; justify-content: space-between; font: 600 13px var(--sto-mono-f); }
.sto-cb-pleg span:first-child { color: var(--sto-blue); } .sto-cb-pleg span:last-child { color: var(--sto-orange); }
.sto-cb-dl { display: grid; grid-template-columns: auto auto; gap: 4px 12px; margin: 0; font-size: 14px; }
.sto-cb-dl dt { color: var(--sto-muted); } .sto-cb-dl dd { margin: 0; text-align: right; font-family: var(--sto-mono-f); }
.sto-cb-chart { height: 420px; }
.sto-pf-legend i.v { background: var(--sto-ink); height: 2px; }
.sto-pf-legend i.p { background: repeating-linear-gradient(90deg, var(--sto-near) 0 4px, transparent 4px 7px); }
.sto-cb-lead { margin: 0 0 12px; color: var(--sto-ink2); line-height: 1.5; }
.sto-cb-prof { display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.sto-cb-pr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 12px; padding: 1px 4px; border-radius: 4px; }
.sto-cb-pr .b { height: 12px; }
.sto-cb-pr .b i { display: block; height: 100%; background: var(--sto-line); border-radius: 2px; }
.sto-cb-pr.va .b i { background: var(--sto-blue-l); }
.sto-cb-pr.poc { background: var(--sto-near-bg); font-weight: 600; }
.sto-cb-pr.poc .b i { background: var(--sto-near); }
.sto-cb-al { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.sto-cb-al li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--sto-soft); border-left: 4px solid var(--sto-faint); }
.sto-cb-al li.g2 { border-left-color: var(--sto-orange); background: var(--sto-orange-bg); }
.sto-cb-al p { margin: 4px 0 0; font-size: 14px; color: var(--sto-ink2); line-height: 1.45; }
.sto-cb-tw { max-height: 460px; overflow: auto; border: 1px solid var(--sto-line2); border-radius: 10px; }
.sto-cb-tb { width: 100%; border-collapse: collapse; font: 13px var(--sto-mono-f); }
.sto-cb-tb th { position: sticky; top: 0; background: var(--sto-soft); font: 600 12px var(--sto-sans); color: var(--sto-muted); text-align: right; padding: 8px 10px; }
.sto-cb-tb td { text-align: right; padding: 5px 10px; border-top: 1px solid var(--sto-line2); white-space: nowrap; }
.sto-cb-tb th:first-child, .sto-cb-tb td:first-child { text-align: left; }
@media (max-width: 900px) { .sto-cb-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sto-cb-chart { height: 320px; } .sto-cb-pr { grid-template-columns: 56px minmax(0, 1fr) 84px; } .sto-cb-bar label, .sto-cb-bar select { width: 100%; } }
/* Carnet d'ordres · lecture de séance et niveaux du jour */
.sto-cb-biais { font: 700 13px var(--sto-mono-f); padding: 5px 10px; border-radius: 8px; background: var(--sto-grey-bg); }
.sto-cb-biais.up { background: var(--sto-blue-bg); } .sto-cb-biais.down { background: var(--sto-orange-bg); }
.sto-cb-pts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.sto-cb-pts li { padding: 2px 0 2px 12px; border-left: 3px solid var(--sto-line); }
.sto-cb-pts li.tp { border-left-color: var(--sto-blue); } .sto-cb-pts li.tn { border-left-color: var(--sto-orange); }
.sto-cb-pts p { margin: 3px 0 0; font-size: 14px; color: var(--sto-ink2); line-height: 1.45; }
.sto-cb-cons { background: var(--sto-soft); border: 1px solid var(--sto-line2); border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.45; }
.sto-cb-cons ul { margin: 6px 0 0; padding-left: 18px; } .sto-cb-cons li + li { margin-top: 4px; }
.sto-cb-lvt .sto-cb-tb td { white-space: normal; vertical-align: top; font-family: var(--sto-sans); text-align: left; }
.sto-cb-lvt .sto-cb-tb th { text-align: left; }
.sto-cb-lvt .sto-cb-tb td.sto-mono { font-family: var(--sto-mono-f); white-space: nowrap; }
.sto-cb-lvt td small { display: block; color: var(--sto-muted); font: 12px var(--sto-sans); margin-top: 2px; }
.sto-cb-lvt tr.sup td:first-child { color: var(--sto-blue); } .sto-cb-lvt tr.res td:first-child { color: var(--sto-orange); }
.sto-cb-lvt tr.cl td { background: var(--sto-near-bg); font-weight: 600; }
.sto-cb-force { font: 600 12px var(--sto-sans); padding: 3px 8px; border-radius: 999px; background: var(--sto-grey-bg); color: var(--sto-grey); white-space: nowrap; }
.sto-cb-force.f-forte { background: var(--sto-ink); color: #fff; } .sto-cb-force.f-moyenne { background: var(--sto-near-bg); color: var(--sto-near); }
.sto-cb-lvt { max-height: none; }
.sto-sy-tests { margin-bottom: 14px; } .sto-sy-tests p { margin: 4px 0 0; }
.sto-sy-sect { max-height: none; margin-bottom: 8px; }
@media (max-width: 760px) { .sto-cb-pts { grid-template-columns: minmax(0, 1fr); } }
/* Carnet d'ordres · synthèse */
.sto-cb-tabs { margin: 0 0 16px; }
.sto-sy-verdict { border-top: 6px solid var(--sto-grey); }
.sto-sy-verdict.v-long { border-top-color: var(--sto-blue); } .sto-sy-verdict.v-short { border-top-color: var(--sto-orange); } .sto-sy-verdict.v-watch { border-top-color: var(--sto-near); }
.sto-sy-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 16px; }
.sto-sy-title { margin: 6px 0 0; font: 600 24px/1.25 var(--sto-sans); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sto-sy-badge { font: 700 13px var(--sto-mono-f); letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; background: var(--sto-grey-bg); color: var(--sto-grey); }
.v-long .sto-sy-badge { background: var(--sto-blue-bg); color: var(--sto-blue-d); } .v-short .sto-sy-badge { background: var(--sto-orange-bg); color: var(--sto-orange-d); } .v-watch .sto-sy-badge { background: var(--sto-near-bg); color: var(--sto-near); }
.sto-sy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.sto-sy-conf { display: grid; gap: 6px; margin-bottom: 14px; }
.sto-sy-conf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--sto-muted); }
.sto-sy-conf-h b { font-size: 22px; color: var(--sto-ink); } .sto-sy-conf-h .lab { font-weight: 600; color: var(--sto-ink2); }
.sto-sy-meter { position: relative; height: 12px; border-radius: 6px; background: var(--sto-line2); overflow: hidden; }
.sto-sy-meter i { display: block; height: 100%; background: var(--sto-grey); }
.v-long .sto-sy-meter i { background: var(--sto-blue); } .v-short .sto-sy-meter i { background: var(--sto-orange); } .v-watch .sto-sy-meter i { background: var(--sto-near); }
.sto-sy-meter s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--sto-surface); }
.sto-sy-ticks { position: relative; height: 14px; font: 11px var(--sto-mono-f); color: var(--sto-faint); }
.sto-sy-ticks span { position: absolute; transform: translateX(-50%); }
.sto-sy-conf small { color: var(--sto-muted); font-size: 13px; line-height: 1.45; }
.sto-sy-rs { padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.sto-sy-rs ul { margin: 6px 0 0; padding-left: 18px; } .sto-sy-rs li + li { margin-top: 4px; }
.sto-sy-rs.bl { background: var(--sto-orange-bg); } .sto-sy-rs.rv { background: var(--sto-near-bg); } .sto-sy-rs.okk { background: var(--sto-ok-bg); color: var(--sto-ok); }
.sto-sy-plan { background: var(--sto-soft); border: 1px solid var(--sto-line2); border-radius: 10px; padding: 14px 16px; align-self: start; }
.sto-sy-plan.off dd { color: var(--sto-muted); }
.sto-sy-plan dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 10px 0 0; font-size: 14px; }
.sto-sy-plan dt { color: var(--sto-muted); } .sto-sy-plan dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sto-sy-plan small { color: var(--sto-muted); font-weight: 400; }
.sto-sy-sl { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--sto-line2); font-size: 14px; color: var(--sto-ink2); line-height: 1.5; }
.sto-sy-sl .sto-btn { margin-left: 6px; min-height: 36px; padding: 6px 12px; }
.sto-sy-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sto-sy-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.sto-sy-steps .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--sto-mono-f); background: var(--sto-grey-bg); color: var(--sto-grey); }
.sto-sy-steps .ok .ic { background: var(--sto-ok-bg); color: var(--sto-ok); } .sto-sy-steps .non .ic { background: var(--sto-orange-bg); color: var(--sto-orange); } .sto-sy-steps .att .ic { background: var(--sto-near-bg); color: var(--sto-near); }
.sto-sy-steps p { margin: 3px 0 0; font-size: 14px; color: var(--sto-ink2); line-height: 1.45; }
.sto-sy-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sto-sy-k { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--sto-line2); border-radius: 10px; background: var(--sto-soft); }
.sto-sy-k span { font-size: 12px; color: var(--sto-muted); } .sto-sy-k b { font-size: 18px; } .sto-sy-k small { font-size: 12px; color: var(--sto-muted); }
.sto-sy-fams { display: grid; gap: 6px; margin-bottom: 10px; }
.sto-sy-fam { border: 1px solid var(--sto-line2); border-radius: 10px; }
.sto-sy-fam summary { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; min-height: 44px; }
.sto-sy-fam summary::-webkit-details-marker { display: none; }
.sto-sy-fam summary .nm { font-weight: 600; font-size: 14px; } .sto-sy-fam summary .nm::before { content: '▸'; display: inline-block; width: 16px; color: var(--sto-faint); transition: transform .15s; }
.sto-sy-fam[open] summary .nm::before { transform: rotate(90deg); }
.sto-sy-fam .bar { display: flex; height: 10px; border-radius: 5px; background: var(--sto-line2); overflow: hidden; }
.sto-sy-fam .bar .a { background: var(--sto-blue); } .sto-sy-fam .bar .v { background: var(--sto-orange); margin-left: auto; }
.sto-sy-fam .ct { font-size: 13px; color: var(--sto-muted); white-space: nowrap; }
.sto-sy-fam .bd { padding: 0 12px 12px; }
.sto-sy-gl { margin: 8px 0 6px; font-size: 12px; font-weight: 600; color: var(--sto-muted); text-transform: uppercase; letter-spacing: .04em; }
.sto-sy-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sto-sy-chips li { font-size: 13px; padding: 4px 9px; border-radius: 999px; background: var(--sto-grey-bg); color: var(--sto-ink2); }
.sto-sy-chips li.a { background: var(--sto-blue-bg); color: var(--sto-blue-d); } .sto-sy-chips li.v { background: var(--sto-orange-bg); color: var(--sto-orange-d); } .sto-sy-chips li.x { background: transparent; border: 1px dashed var(--sto-line); color: var(--sto-faint); }
.sto-sy-chips small { opacity: .7; }
.sto-sy-lv summary { cursor: pointer; list-style: none; } .sto-sy-lv summary::-webkit-details-marker { display: none; }
.sto-sy-lv summary h2 { display: inline; font-size: 16px; margin: 0; } .sto-sy-lv summary::before { content: '▸ '; color: var(--sto-faint); } .sto-sy-lv[open] summary::before { content: '▾ '; }
.sto-sy-lv[open] summary { margin-bottom: 12px; }
.sto-sy-lvg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sto-sy-lvg h3 { margin: 0 0 8px; font-size: 14px; color: var(--sto-muted); }
.sto-sy-lvg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sto-sy-lvg li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--sto-line2); }
.sto-sy-lvg li small { grid-column: 1 / -1; color: var(--sto-muted); font-size: 12px; }
.sto-sy-disc { margin-top: 4px; }
@media (max-width: 900px) { .sto-sy-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sto-sy-title { font-size: 20px; } .sto-sy-top .sto-btn { width: 100%; } .sto-sy-fam summary { grid-template-columns: minmax(0, 1fr) auto; } .sto-sy-fam .bar { grid-column: 1 / -1; grid-row: 2; } .sto-sy-lvg { grid-template-columns: minmax(0, 1fr); } .sto-sy-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Navigation à deux niveaux (1.20.0) : 3 onglets dans le menu, sous-onglets en haut de page ---------- */
.sto-nav-txt { display: flex; flex-direction: column; min-width: 0; }
.sto-body .sto-nav-txt small { color: #8E8B84; font-size: 12px; font-weight: 400; line-height: 1.35; }
.sto-body .sto-nav a.is-active .sto-nav-txt small { color: rgba(255,255,255,.78); }
.sto-body .sto-nav a { min-height: 52px; }
.sto-subnav { display: flex; align-items: flex-end; gap: 4px 20px; margin: -8px 0 18px; border-bottom: 1px solid var(--sto-line); }
.sto-subnav-title { flex: none; padding: 0 0 12px; font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .08em; text-transform: uppercase; color: var(--sto-muted); }
.sto-subnav-tabs { position: relative; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sto-subnav-tabs::-webkit-scrollbar { display: none; }
.sto-body .sto-subnav-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--sto-muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sto-body .sto-subnav-tabs a:hover { color: var(--sto-ink); }
.sto-body .sto-subnav-tabs a.is-active { color: var(--sto-ink); border-bottom-color: var(--sto-blue); }
@media (max-width: 900px) {
  .sto-body .sto-nav a { min-height: 40px; }
  .sto-body .sto-nav-txt small { display: none; }
  .sto-subnav { margin: -4px -16px 16px; padding: 0 16px; }
  .sto-subnav-title { display: none; }
  .sto-body .sto-subnav-tabs a { padding: 8px 12px; font-size: 14px; }
}
.sto-body .sto-logout { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .sto-shell { align-content: start; } }
@media (max-width: 600px) {
  .sto-nav-num { display: none; }
  .sto-body .sto-nav a { padding: 8px 10px; }
  .sto-body .sto-logout { min-width: 40px; min-height: 40px; justify-content: center; }
  .sto-body .sto-logout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 900px) { .sto-subnav-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 20px; } }

/* ---------- Icône « graphique » à côté des indices, secteurs et valeurs (1.21.0) ---------- */
.sto-body a.sto-gi { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -4px 0 -4px 2px; border-radius: 6px; color: var(--sto-blue); vertical-align: middle; text-decoration: none; }
.sto-body a.sto-gi:hover { background: var(--sto-blue-bg); }
.sto-body a.sto-gi svg { display: block; }
.sto-tag a.sto-gi { width: 18px; height: 18px; color: inherit; }

/* ---------- Graphique pro (1.21.0) ---------- */
.sto-g-pro { padding: 0; overflow: hidden; }
.sto-g-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-bottom: 1px solid var(--sto-line2); background: var(--sto-soft); }
.sto-g-seg { display: flex; gap: 2px; padding: 3px; background: var(--sto-grey-bg); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sto-g-seg button, .sto-g-tg, .sto-g-menu summary { flex: none; min-height: 34px; padding: 5px 11px; border: 0; border-radius: 8px; background: none; font: 600 13px var(--sto-sans); color: var(--sto-ink2); cursor: pointer; white-space: nowrap; }
.sto-g-seg button:hover, .sto-g-tg:hover, .sto-g-menu summary:hover { color: var(--sto-ink); }
.sto-g-seg button[aria-pressed=true] { background: var(--sto-surface); color: var(--sto-ink); box-shadow: 0 1px 3px rgba(20,23,31,.14); }
.sto-g-seg button:disabled, .sto-g-tg:disabled { opacity: .4; cursor: not-allowed; }
.sto-g-tg { border: 1px solid var(--sto-line); background: var(--sto-surface); }
.sto-g-tg[aria-pressed=true] { background: var(--sto-ink); color: #fff; border-color: var(--sto-ink); }
.sto-g-mini select { min-height: 36px; padding: 5px 10px; border: 1px solid var(--sto-line); border-radius: 8px; background: var(--sto-surface); font: 600 13px var(--sto-sans); color: var(--sto-ink); }
.sto-g-menu { position: relative; }
.sto-g-menu summary { list-style: none; border: 1px solid var(--sto-line); background: var(--sto-surface); }
.sto-g-menu summary::-webkit-details-marker { display: none; }
.sto-g-menu summary::after { content: ' ▾'; color: var(--sto-muted); }
.sto-g-menu[open] summary { border-color: var(--sto-blue); }
.sto-g-menu-in { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; width: max-content; max-width: min(560px, calc(100vw - 48px)); padding: 14px; border: 1px solid var(--sto-line); border-radius: 12px; background: var(--sto-surface); box-shadow: 0 12px 32px rgba(20,23,31,.16); }
.sto-g-menu fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; }
.sto-g-menu legend { margin-bottom: 4px; font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; color: var(--sto-muted); }
.sto-g-menu label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--sto-ink); cursor: pointer; }
.sto-g-menu label i { width: 12px; height: 4px; border-radius: 2px; flex: none; }
.sto-g-menu input { width: 16px; height: 16px; accent-color: var(--sto-blue); }
.sto-g-cmps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 12px; }
.sto-g-cmps:not(:empty) { padding: 8px 12px; border-bottom: 1px solid var(--sto-line2); }
.sto-g-cmp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--sto-line); border-radius: 99px; font-size: 13px; }
.sto-g-cmp i { width: 12px; height: 4px; border-radius: 2px; }
.sto-g-cmp button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--sto-muted); }
.sto-g-cmp button:hover { background: var(--sto-grey-bg); color: var(--sto-ink); }
.sto-g-hint { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 0; font-size: 13px; font-weight: 600; color: #fff; pointer-events: none; white-space: nowrap; }
.sto-g-hint:not(:empty) { padding: 8px 14px; border-radius: 99px; background: var(--sto-blue); box-shadow: 0 4px 14px rgba(31,79,209,.3); }
.sto-g-pro .sto-graph-chart { border-top: 0; }
.sto-g-pro:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; background: var(--sto-surface); }
.sto-g-pro:fullscreen .sto-graph-chart { flex: 1; height: auto; min-height: 0; }
.sto-g-perf { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.sto-g-perf span { display: flex; flex-direction: column; min-width: 74px; padding: 6px 10px; border-radius: 8px; background: var(--sto-soft); border: 1px solid var(--sto-line2); }
.sto-g-perf small { font-size: 11px; }
.sto-g-perf b { font-size: 14px; font-weight: 600; }
.sto-g-src { margin: 8px 0 0; font-size: 12px; }
.sto-g-ld { color: var(--sto-muted); }
.sto-g-carnet > .sto-sechead h2 { font-size: 18px; }
.sto-g-carnet .sto-cb-bar { box-shadow: none; }
.sto-g-score small { align-self: center; margin-left: auto; }
@media (max-width: 600px) {
  .sto-g-tb { padding: 8px; gap: 6px; }
  .sto-g-seg { width: 100%; }
  .sto-g-menu-in { grid-template-columns: 1fr; left: 0; max-width: calc(100vw - 48px); }
  .sto-g-perf span { min-width: 0; flex: 1 1 calc(33% - 4px); }
}

/* ---------- Idées de la semaine : opportunités à 50 % et plus (1.22.0) ---------- */
.sto-op-n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--sto-grey-bg); font: 600 12px var(--sto-mono-f); vertical-align: middle; }
.sto-op-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sto-op { padding: 12px 14px; border: 1px solid var(--sto-line2); border-radius: 12px; background: var(--sto-surface); }
.sto-scan-col-a .sto-op { border-left: 3px solid var(--sto-blue); }
.sto-scan-col-v .sto-op { border-left: 3px solid var(--sto-orange); }
.sto-op-id { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sto-op-id strong { font-size: 15px; }
.sto-op-cf { text-align: right; }
.sto-op-cf b { font-size: 20px; }
.sto-op-lv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0 0; }
.sto-op-lv > div { padding: 8px 10px; border-radius: 8px; background: var(--sto-soft); }
.sto-op-lv dt { font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .04em; text-transform: uppercase; color: var(--sto-muted); }
.sto-op-lv dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.sto-op-lv small.up { color: var(--sto-blue); } .sto-op-lv small.down { color: var(--sto-orange); }
.sto-op-low { color: var(--sto-orange); }
.sto-op .sto-scan-dt { margin-top: 8px; }
.sto-op-near { margin: 10px 0 6px; font-weight: 600; font-size: 14px; }

/* ---------- Graphique : ce qui est affiché, supprimable un par un (1.22.0) ---------- */
.sto-g-shown { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--sto-line2); }
.sto-g-shown:empty { display: none; }
.sto-g-shown > small { margin-right: 4px; font: 600 11px/1.4 var(--sto-mono-f); letter-spacing: .06em; text-transform: uppercase; }
.sto-g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 2px 2px 10px; border: 1px solid var(--sto-line); border-radius: 99px; background: var(--sto-surface); font-size: 13px; }
.sto-g-chip.is-draw { border-style: dashed; }
.sto-g-chip i { width: 12px; height: 4px; border-radius: 2px; }
.sto-g-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: var(--sto-muted); }
.sto-g-chip button:hover { background: var(--sto-orange-bg); color: var(--sto-orange-d); }
.sto-op-lv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sto-op-lv small { white-space: nowrap; }
.sto-op-lv > div.sto-op-mise { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sto-op-lv > div.sto-op-mise dd { margin: 0; }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 480px) { .sto-op-lv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- R&S : supports, résistances et simulation à 5 séances ---------- */
.sto-rs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sto-rs-kpis > div { background: var(--sto-soft); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.sto-rs-kpis small { display: block; color: var(--sto-muted); font-size: 12px; }
.sto-rs-kpis b { display: block; font-size: 18px; font-weight: 600; margin: 2px 0; white-space: nowrap; }
.sto-rs-kpis span { font-size: 12.5px; color: var(--sto-ink2); }
.sto-rs-kpis span.up { color: var(--sto-blue); } .sto-rs-kpis span.down { color: var(--sto-orange); }
.sto-rs-box { padding: 10px; }
#rs-svg { overflow-x: auto; }
.sto-rs-svg { display: block; width: 100%; min-width: 600px; height: auto; font-family: var(--sto-sans); }
.sto-rs-svg .gr { stroke: var(--sto-line); stroke-width: 1; }
.sto-rs-svg .ax { fill: var(--sto-muted); font-size: 12px; }
.sto-rs-svg .ax.c { text-anchor: middle; } .sto-rs-svg .ax.fu { fill: var(--sto-ink2); font-weight: 600; }
.sto-rs-svg .fz { fill: var(--sto-grey-bg); opacity: .6; }
.sto-rs-svg .lv polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sto-rs-svg .lv .bd { opacity: .28; } .sto-rs-svg .lv:hover .bd { opacity: .5; }
.sto-rs-svg .lv .ct { stroke-width: 1.4; opacity: .9; }
.sto-rs-svg .lv.s polyline { stroke: var(--sto-blue); } .sto-rs-svg .lv.r polyline { stroke: var(--sto-orange); }
.sto-rs-svg .wk { stroke-width: 1; } .sto-rs-svg .wk.u { stroke: var(--sto-blue-d); } .sto-rs-svg .wk.d { stroke: var(--sto-orange-d); }
.sto-rs-svg .cd.u { fill: var(--sto-surface); stroke: var(--sto-blue-d); stroke-width: 1; } .sto-rs-svg .cd.d { fill: var(--sto-orange-d); }
.sto-rs-svg .f1 { fill: var(--sto-ink); opacity: .07; } .sto-rs-svg .f2 { fill: var(--sto-ink); opacity: .1; }
.sto-rs-svg .md { fill: none; stroke: var(--sto-ink); stroke-width: 2; stroke-dasharray: 6 4; }
.sto-rs-svg .mdp { fill: var(--sto-surface); stroke: var(--sto-ink); stroke-width: 2; }
.sto-rs-svg .lc { stroke: var(--sto-ink); stroke-width: 1.5; }
.sto-rs-svg .lcb { fill: var(--sto-ink); } .sto-rs-svg .lct { fill: var(--sto-surface); font-size: 12.5px; font-weight: 600; }
.sto-rs-svg .lbl { font-size: 12px; font-weight: 600; } .sto-rs-svg .lbl.s { fill: var(--sto-blue-d); } .sto-rs-svg .lbl.r { fill: var(--sto-orange-d); }
.sto-rs-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 4px 2px; font-size: 13px; color: var(--sto-ink2); }
.sto-rs-leg span { display: inline-flex; align-items: center; gap: 6px; }
.sto-rs-leg i { display: inline-block; width: 22px; height: 7px; border-radius: 3px; }
.sto-rs-leg i.s { background: var(--sto-blue); opacity: .6; } .sto-rs-leg i.r { background: var(--sto-orange); opacity: .6; }
.sto-rs-leg i.c { height: 2px; background: var(--sto-ink); } .sto-rs-leg i.f { height: 12px; background: var(--sto-ink); opacity: .14; }
.sto-rs-svg .vp rect { fill: #7A4FB0; opacity: .2; } .sto-rs-svg .vp rect.poc { opacity: .5; }
.sto-rs-leg i.v { height: 10px; background: #7A4FB0; opacity: .35; }
.sto-rs-vp { margin: 10px 0 0; }
.sto-rs-leg i.m { height: 0; border-top: 2px dashed var(--sto-ink); border-radius: 0; }
.sto-rs-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.sto-rs-t th, .sto-rs-t td { padding: 8px 10px; border-bottom: 1px solid var(--sto-line); text-align: left; vertical-align: top; }
.sto-rs-t th { font-size: 12px; font-weight: 600; color: var(--sto-muted); white-space: nowrap; }
.sto-rs-t th small, .sto-rs-t td small { display: block; font-weight: 400; color: var(--sto-muted); font-size: 12px; }
.sto-rs-t td small { display: inline; } .sto-rs-t td b + small { display: block; }
.sto-rs-t .r { text-align: right; white-space: nowrap; }
.sto-rs-t tr.s td:first-child b { color: var(--sto-blue-d); } .sto-rs-t tr.r td:first-child b { color: var(--sto-orange-d); }
.sto-rs-t tr.s .sto-rs-f i { background: var(--sto-blue); } .sto-rs-t tr.r .sto-rs-f i { background: var(--sto-orange); }
.sto-rs-f { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; } .sto-rs-f i { display: inline-block; border-radius: 2px; opacity: .7; }
.sto-rs-ind td.up { color: var(--sto-blue-d); } .sto-rs-ind td.down { color: var(--sto-orange-d); }
@media (max-width: 760px) { .sto-rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sto-tip { cursor: help; text-decoration: underline dotted var(--sto-faint); text-underline-offset: 3px; }
.sto-tip-pop { position: fixed; z-index: 9999; max-width: 320px; padding: 8px 11px; border-radius: 6px; background: var(--sto-ink); color: var(--sto-surface); font: 400 13px/1.45 var(--sto-sans); box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; opacity: 0; transition: opacity .12s; left: -999px; top: -999px; }
.sto-tip-pop.on { opacity: 1; }

/* Momentum ou trading range (1.24.0) */
.sto-rg { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 999px; font: 600 13px var(--sto-sans); white-space: nowrap; }
.sto-rg.is-small { margin-top: 4px; padding: 2px 8px; font-size: 11.5px; }
.sto-rg-up { background: var(--sto-blue-bg); color: var(--sto-blue-d); }
.sto-rg-down { background: var(--sto-orange-bg); color: var(--sto-orange-d); }
.sto-rg-flat { background: var(--sto-grey-bg); color: var(--sto-ink2); }
.sto-rg-na { background: var(--sto-soft); color: var(--sto-faint); border: 1px dashed var(--sto-line); }
.sto-rgpanel .sto-note { margin: 4px 0 12px; }
.sto-rgcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sto-rgcard { border: 1px solid var(--sto-line2); border-radius: 10px; padding: 12px; background: var(--sto-soft); display: flex; flex-direction: column; gap: 6px; }
.sto-rgcard .sto-rg { align-self: flex-start; margin-top: 0; }
.sto-rgh { display: flex; flex-wrap: wrap; gap: 4px; }
.sto-rgc { padding: 2px 7px; border-radius: 6px; font-size: 11.5px; cursor: help; }
.sto-rgc b { font: 600 10.5px var(--sto-mono-f); margin-right: 2px; }
.sto-rglist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.sto-rgrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--sto-line2); }
.sto-rgrow .sto-rg { margin-top: 0; }
.sto-vix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid var(--sto-line2); }
.sto-vix > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sto-vix strong { font-size: 22px; }
.sto-vix p { margin: 0; font-size: 14px; }
.sto-vix.is-calm { background: var(--sto-ok-bg); }
.sto-vix.is-agite { background: var(--sto-orange-bg); }
.sto-zone .sto-rg { margin-top: 8px; align-self: flex-start; width: fit-content; }

/* ---------- 1.25.0 : bulle d'info, liens de catégorie, stratégie valeur contre indice ---------- */
.sto-body .sto-linkbtn { background: none; border: 0; padding: 0; color: var(--sto-blue); cursor: pointer; font: 600 13px var(--sto-sans); }
.sto-body .sto-linkbtn:hover { text-decoration: underline; }
.sto-info { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--sto-line); background: var(--sto-soft); color: var(--sto-muted); font: italic 600 12px/1 var(--sto-serif); cursor: help; flex: none; position: relative; }
.sto-info::before { content: ''; position: absolute; inset: -12px; }
.sto-info:hover, .sto-info:focus-visible { border-color: var(--sto-blue); color: var(--sto-blue); }
.sto-alnote { margin-top: 10px; font-size: 12.5px; }
.sto-pos-head { margin: 28px 0 4px; }
.sto-pos-head + .sto-note { margin-bottom: 12px; }
.sto-vi { margin-bottom: 8px; }
.sto-vi > .sto-note { margin: 0 0 14px; }
.sto-vi-sum { font: 600 12.5px var(--sto-mono-f); color: var(--sto-ink2); }
.sto-vi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sto-vi-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--sto-line2); border-left: 4px solid var(--sto-line); border-radius: 10px; background: var(--sto-soft); min-width: 0; }
.sto-vi-card.is-signal { border-left-color: var(--sto-blue); background: var(--sto-surface); }
.sto-vi-card.is-ouverte { border-left-color: var(--sto-ok); background: var(--sto-surface); }
.sto-vi-card.is-obs { border-left-color: var(--sto-near); }
.sto-vi-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sto-vi-top strong { display: block; font-size: 15px; }
.sto-vi-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sto-vi-chip { font: 600 11.5px var(--sto-mono-f); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sto-vi-chip.is-ok { background: var(--sto-ok-bg); color: var(--sto-ok); }
.sto-vi-chip.is-off { background: var(--sto-orange-bg); color: var(--sto-orange-d); }
.sto-vi-what { margin: 0; font-size: 14px; color: var(--sto-ink2); }
.sto-vi-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; font: 600 12px var(--sto-sans); background: var(--sto-grey-bg); color: var(--sto-ink2); }
.is-signal .sto-vi-tag { background: var(--sto-blue); color: #fff; }
.is-ouverte .sto-vi-tag { background: var(--sto-ok); color: #fff; }
.sto-vi-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sto-vi-leg { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--sto-line2); background: var(--sto-surface); min-width: 0; }
.sto-vi-leg b { font-size: 14px; }
.sto-vi-leg.is-long b { color: var(--sto-blue); }
.sto-vi-leg.is-short b { color: var(--sto-orange); }
.sto-vi-card small b { color: var(--sto-ink); }
.sto-vi-obs { margin: 0; padding: 6px 9px; border-radius: 6px; background: var(--sto-near-bg); color: #6E4C00; font-size: 12.5px; }
.sto-vi-foot { border-top: 1px solid var(--sto-line2); padding-top: 8px; margin-top: auto; }
.sto-pf-tabs + #pf-tab .sto-vi { margin-top: 4px; }
@media (max-width: 640px) {
  .sto-vi-cards { grid-template-columns: 1fr; }
  .sto-vi-legs { grid-template-columns: 1fr; }
}
/* Portefeuille › Détection */
.sto-dt > .sto-note:first-child { margin: 0 0 12px; }
.sto-dt-list { display: flex; flex-direction: column; gap: 8px; }
.sto-dt-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--sto-line2); border-left: 4px solid var(--sto-blue); border-radius: 10px; background: var(--sto-surface); }
.sto-dt-row.is-open { border-left-color: var(--sto-ok); background: var(--sto-soft); }
.sto-dt-row > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sto-dt-row b, .sto-dt-row span { font-size: 13.5px; }
.sto-dt-row span { color: var(--sto-muted); }
.sto-dt-name strong { font-size: 15px; }
.sto-dt-row .sto-btn { min-width: 110px; }
.sto-body .sto-dt-sell { background: var(--sto-orange); color: #fff; }
.sto-body .sto-dt-sell:hover { background: var(--sto-orange-d); }
.sto-dt-empty { margin: 0; padding: 18px; border: 1px dashed var(--sto-line); border-radius: 10px; text-align: center; color: var(--sto-muted); }
.sto-body .sto-dt-h { font-size: 15px; margin: 18px 0 8px; }
#pf-dmsg:empty { display: none; }
#pf-dmsg { margin: 10px 0 0; font-weight: 600; color: var(--sto-ink2); }
@media (max-width: 760px) {
  .sto-dt-row { grid-template-columns: 1fr 1fr; }
  .sto-dt-name { grid-column: 1 / -1; }
  .sto-dt-row .sto-btn { grid-column: 1 / -1; width: 100%; }
}
/* Positions › Idées et positions : rapport de force et bouton d'ordre */
.sto-prow2 { display: grid; grid-template-columns: minmax(170px, 1.3fr) 84px minmax(250px, 2fr) repeat(4, 72px) 50px 136px 120px; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--sto-line2); }
.sto-prow2.sto-hhead { border-top: 0; font-size: 10.5px; }
.sto-force { min-width: 0; }
.sto-fbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--sto-line2); }
.sto-fbar i { display: block; height: 100%; }
.sto-fbar i.a { background: var(--sto-blue); }
.sto-fbar i.n { background: #D9D5CB; }
.sto-fbar i.v { background: var(--sto-orange); }
.sto-flab { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font: 500 11.5px var(--sto-mono-f); color: var(--sto-muted); white-space: nowrap; }
.sto-body .sto-pos-go { min-height: 36px; padding: 6px 12px; font-size: 13.5px; color: #fff; }
.sto-body .sto-pos-go.is-buy { background: var(--sto-blue); }
.sto-body .sto-pos-go.is-buy:hover { background: var(--sto-blue-d); }
.sto-body .sto-pos-go.is-sell { background: var(--sto-orange); }
.sto-body .sto-pos-go.is-sell:hover { background: var(--sto-orange-d); }
.sto-body .sto-pos-go.is-done, .sto-body .sto-pos-go.is-done:hover { background: var(--sto-ok); }
.sto-body .sto-pos-go:disabled { cursor: default; opacity: .85; }
#sto-pos-msg:empty { display: none; }
#sto-pos-msg { margin: 10px 0 0; font-weight: 600; color: var(--sto-ink2); }
@media (max-width: 640px) { .sto-prow2 { padding-left: 14px; padding-right: 14px; } }
.sto-body .sto-vi-sell { background: var(--sto-orange); color: #fff; }
.sto-body .sto-vi-sell:hover { background: var(--sto-orange-d); }
.sto-body .sto-vi-go { width: 100%; }
.sto-body .sto-vi-go.is-done { background: var(--sto-ok); color: #fff; }
.sto-pos-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0; padding: 10px 14px; border: 1px solid var(--sto-line); border-radius: 10px; background: var(--sto-surface); font-size: 13.5px; color: var(--sto-ink2); }
.sto-pos-bar .sto-btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.sto-pos-majmsg { font-weight: 600; }
.sto-prow2.is-off { opacity: .6; }
/* Positions › TR Strategy */
.sto-tr-list { display: flex; flex-direction: column; gap: 8px; }
.sto-tr-row { display: grid; grid-template-columns: minmax(140px, 1.1fr) 1.2fr 1.4fr 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--sto-line2); border-left: 4px solid var(--sto-ok); border-radius: 10px; background: var(--sto-surface); }
.sto-tr-row.is-obs { border-left-color: var(--sto-line); opacity: .75; }
.sto-tr-row > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sto-tr-row b, .sto-tr-row span { font-size: 13.5px; }
.sto-tr-row span.sto-mono { color: var(--sto-muted); }
.sto-tr-row .sto-btn { min-width: 150px; }
.sto-tr-couv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sto-tr-couv th, .sto-tr-couv td { padding: 8px 10px; border-top: 1px solid var(--sto-line2); text-align: left; vertical-align: top; }
.sto-tr-couv th { border-top: 0; font-size: 12px; color: var(--sto-muted); font-weight: 600; }
.sto-tr-couv .r { text-align: right; white-space: nowrap; }
.sto-tablewrap { overflow-x: auto; }
.sto-tr-couv td small { color: var(--sto-muted); }
@media (max-width: 760px) {
  .sto-tr-row { grid-template-columns: 1fr 1fr; }
  .sto-tr-row .sto-dt-name { grid-column: 1 / -1; }
  .sto-tr-row .sto-btn { grid-column: 1 / -1; width: 100%; }
  .sto-tr-couv { min-width: 720px; }
}
.sto-tr-row.is-live { border-left-color: var(--sto-blue); background: var(--sto-soft); }
.sto-tr-row.is-obs:has(> .sto-dt-name:only-child) { grid-template-columns: 1fr; }
.sto-tr-jn { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; }
.sto-tr-jn li { margin: 2px 0; }
.sto-tr-row.is-wait { border-left-color: var(--sto-orange); }
.sto-g-majbox { display: flex; flex-direction: column; gap: 4px; align-self: flex-end; }
.sto-g-maj { background: var(--sto-surface); border-color: var(--sto-line); color: var(--sto-ink); }
.sto-g-maj:hover { border-color: var(--sto-ink2); }
#sto-g-majmsg { font: 12px var(--sto-sans); color: var(--sto-muted); min-height: 1em; max-width: 280px; }
.sto-tr-enpf { align-self: center; justify-self: end; }
