:root {
  --bg: #1e1f22;
  --bg-2: #26282c;
  --bg-3: #2b2d31;
  --panel: #26282c;
  --border: #34363b;
  --border-2: #3c3f44;
  --text: #e4e6e9;
  --muted: #9aa0a6;
  --pos: #4ade80;
  --neg: #f87171;
  --flat: #9aa0a6;
  --accent: #5b9bd5;
  --accent-2: #2dd4bf;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.flat { color: var(--flat); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 12.5px; }

/* Topbar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: var(--bg-2);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.brand .sub { font-size: 12.5px; margin-top: 3px; }
.actions { display: flex; align-items: center; gap: 14px; }
.unit-toggle { display: inline-flex; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; overflow: hidden; }
.unit-btn { background: transparent; border: 0; color: var(--muted); padding: 7px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.unit-btn:hover { color: var(--text); }
.unit-btn.active { background: var(--accent); color: #0d1117; }
.top-sel { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 7px; padding: 7px 10px; font-size: 13px; outline: none; cursor: pointer; }
.top-sel:focus { border-color: var(--accent); }
.top-sel:disabled { opacity: .55; cursor: default; }
.card-gauge .cg-text { flex: 1 1 auto; min-width: 0; }
.card-gauge .card-label { white-space: nowrap; }
.import-status { font-size: 12.5px; }
.import-status.ok { color: var(--pos); }
.import-status.err { color: var(--neg); }

.btn-import {
  background: var(--accent); color: #0d1117; border: 0; border-radius: 7px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn-import:hover { background: #6fb0e6; }
.btn-import:disabled { opacity: .55; cursor: default; }

main { max-width: 1500px; margin: 0 auto; padding: 22px 24px 60px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.card-gauge { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-gauge .cg-text { min-width: 0; }
.cg-vis { flex: 0 0 auto; }
.cg-vis.semi { align-self: flex-end; }
.wl-bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin: 8px 0 6px; background: var(--bg-3); }
.wl-win { background: var(--pos); }
.wl-loss { background: var(--neg); }
.wl-labels { display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; }
.cnt-badge { background: var(--bg-3); border-radius: 10px; padding: 1px 7px; font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.gauge-legend { display: flex; gap: 9px; justify-content: center; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: -8px; }
@media (max-width: 1100px) { .cards-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 15px 16px; box-shadow: var(--shadow); }
.card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.card-value { font-size: 22px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card-value .ccy { font-size: 13px; color: var(--muted); font-weight: 400; }
.card-foot { font-size: 12px; margin-top: 4px; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.chart-wrap { padding: 16px 18px; height: 320px; }

/* Filtri */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none;
}
.filters input:focus, .filters select:focus { border-color: var(--accent); }
.filters .count { margin-left: 4px; font-size: 12.5px; }

/* Tabelle */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; background: var(--bg-3); color: var(--muted);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600;
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
thead th.r { text-align: right; }
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-3); }
.sym { font-weight: 600; }

.symtable { padding: 6px 0; }
.symtable table { max-width: 560px; }

/* Badge & type */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.badge-closed { background: rgba(74,222,128,.14); color: var(--pos); }
.badge-canceled { background: rgba(154,160,166,.16); color: var(--muted); }
.type { font-size: 12px; text-transform: capitalize; }
.type-buy { color: var(--pos); }
.type-sell { color: var(--neg); }

/* Ordinamento colonne */
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--text); }
thead th.sort-asc::after { content: " \25B2"; color: var(--accent); font-size: 9px; }
thead th.sort-desc::after { content: " \25BC"; color: var(--accent); font-size: 9px; }

/* Toggle annullati */
.filters .toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 10px; }
.filters .toggle input { accent-color: var(--accent); cursor: pointer; margin: 0; }

.accent { color: var(--accent); }
.sml { font-size: 12px; }

/* Layout app: sidebar + area principale (stile Tradezella) */
.app { display: flex; min-height: 100vh; }
/* Rail primario (icone) */
.railbar { flex: 0 0 56px; width: 56px; background: #17181b; border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.rail-logo { color: var(--accent); font-size: 20px; margin-bottom: 8px; }
.rail-logo-img { width: 36px; height: 36px; border-radius: 9px; display: block; margin-bottom: 8px; }
.rail-item { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.rail-item:hover { background: var(--bg-3); color: var(--text); }
.rail-item.active { background: var(--accent); color: #0d1117; }

/* Seconda sidebar (sotto-menu di sezione) */
.subbar { flex: 0 0 208px; width: 208px; background: var(--bg-2); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 0; }
.subbar-logo { padding: 2px 12px 14px; }
.subbar-logo img { width: 100%; border-radius: 8px; display: block; }
.subbar-pane { display: none; padding: 0 10px; }
.subbar-pane.active { display: block; }
.subbar-title { font-size: 16px; font-weight: 700; padding: 4px 12px 14px; }
.nav-sep { height: 1px; background: var(--border); margin: 8px 8px; }
.subbar-foot { margin-top: auto; padding: 14px 18px 2px; border-top: 1px solid var(--border); line-height: 1.5; }
.nav { display: flex; flex-direction: column; gap: 3px; padding: 0 10px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--muted);
  text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-3); color: var(--text); }
.nav-item.active { background: var(--accent); color: #0d1117; font-weight: 600; }
.nav-ic { font-size: 13px; width: 16px; text-align: center; }
.nav-foot { margin-top: auto; padding: 14px 18px 4px; border-top: 1px solid var(--border); line-height: 1.5; }
.main-area { flex: 1; min-width: 0; }
.view { display: none; }
.view.active { display: block; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .railbar { flex: none; width: auto; height: auto; position: static; flex-direction: row; gap: 6px; padding: 8px 10px; }
  .rail-logo { margin: 0 8px 0 0; }
  .subbar { flex: none; width: auto; height: auto; position: static; padding: 6px 10px; }
  .subbar-pane.active { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
  .subbar-title { display: none; }
  .subbar .nav { flex-direction: row; padding: 0; gap: 4px; }
  .nav-sep { display: none; }
  .subbar-foot { display: none; }
}

/* Barra impostazioni */
.settingsbar {
  max-width: 1500px; margin: 0 auto; padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.risk-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.risk-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.risk-form input {
  width: 84px; background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 6px 8px; font-size: 13px; outline: none;
}
.risk-form input:focus { border-color: var(--accent); }
.btn-sm {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }

/* Griglia a due colonne per i grafici affiancati */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-2 .panel { margin-bottom: 22px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Griglia a tre colonne (stile widget Tradezella) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3 .panel { margin-bottom: 22px; }
.grid-3 .chart-wrap { height: 240px; }
.grid-3 .score-chart { height: 200px; }
@media (max-width: 1200px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

/* Recent trades widget */
.recent-list { padding: 8px 0; max-height: 280px; overflow-y: auto; }
.recent-row { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.recent-row:last-child { border-bottom: 0; }
.recent-row .sym { flex: 0 0 auto; font-weight: 600; }
.recent-row .type { flex: 0 0 auto; }
.recent-row .r-date { flex: 1 1 auto; text-align: left; }
.recent-row .r-pl { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Badge trend */
.badge-up { background: rgba(74,222,128,.14); color: var(--pos); }
.badge-down { background: rgba(248,113,113,.14); color: var(--neg); }

/* Flag SIZE di default + footer pannello */
.def-flag { color: var(--accent); font-weight: 700; margin-left: 2px; cursor: help; }
.panel-foot { padding: 10px 18px; border-top: 1px solid var(--border); }

/* Sidebar: voce padre Journal + figli annidati */
.nav-parent { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; color: var(--text); font-family: inherit; font-size: 14.5px; font-weight: 700; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; }
.nav-parent:hover { background: var(--bg-3); }
.nav-children { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0 16px; padding-left: 8px; border-left: 1px solid var(--border); }
.nav-children .nav-item { font-size: 13.5px; padding: 8px 12px; }

/* Sotto-barra filtri + day stats */
.panel-sub { padding: 10px 18px 0; }
.day-stats { font-size: 12.5px; }

/* Placeholder viste in arrivo */
.placeholder { padding: 50px 24px; text-align: center; }
.placeholder .ph-icon { font-size: 40px; opacity: .35; }
.placeholder h3 { margin: 12px 0 6px; font-size: 16px; }
.placeholder p { max-width: 520px; margin: 0 auto; font-size: 13.5px; }

/* Trade View dettaglio */
.trade-detail { padding: 0; }
.td-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.td-pl { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); }
.td-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--panel); }
.td-k { color: var(--muted); font-size: 12.5px; }
.td-v { font-variant-numeric: tabular-nums; font-size: 13px; }

/* Heatmap attività */
.heatwrap { padding: 16px 18px; }
.heatmap { display: flex; flex-direction: column; gap: 4px; }
.heatmap .hrow { display: flex; gap: 3px; flex-wrap: nowrap; overflow-x: auto; }
.heatmap .hrow-months { padding-left: 0; }
.hcol { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.hcol-label { width: 30px; }
.hcol-mo { font-size: 9px; color: var(--muted); width: 13px; text-align: left; height: 12px; white-space: nowrap; overflow: visible; flex: 0 0 13px; }
.hdow-lbl { font-size: 9px; color: var(--muted); height: 13px; line-height: 13px; text-align: right; padding-right: 4px; }
.hcell { width: 13px; height: 13px; border-radius: 3px; background: var(--bg-3); display: inline-block; }
.hp1 { background: rgba(74,222,128,.30); } .hp2 { background: rgba(74,222,128,.60); } .hp3 { background: rgba(74,222,128,.95); }
.hn1 { background: rgba(248,113,113,.30); } .hn2 { background: rgba(248,113,113,.60); } .hn3 { background: rgba(248,113,113,.95); }
.heatleg { margin-top: 12px; display: flex; align-items: center; gap: 4px; }
.heatleg .hcell { width: 12px; height: 12px; }
.hl0 { background: var(--bg-3); } .hl1 { background: rgba(74,222,128,.30); } .hl2 { background: rgba(74,222,128,.60); } .hl3 { background: rgba(74,222,128,.95); }

/* Resources */
.res-list { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.res-item { display: block; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px 14px; }
.res-item b { display: block; margin-bottom: 3px; }
a.res-item:hover { border-color: var(--accent); }

/* Score di trading */
.score-wrap { display: flex; gap: 18px; padding: 16px 18px; align-items: center; flex-wrap: wrap; }
.score-box { flex: 0 0 200px; text-align: center; }
.score-num { font-size: 64px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score-num .score-max { font-size: 20px; color: var(--muted); font-weight: 400; }
.score-chart { flex: 1 1 320px; height: 300px; min-width: 0; }
@media (max-width: 640px) { .score-box { flex-basis: 100%; } }

/* Calendario P&L */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; padding: 16px 18px; }
.cal-month { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cal-mhead { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: var(--bg-3); border-bottom: 1px solid var(--border); }
.cal-mtitle { font-weight: 600; font-size: 13.5px; }
.cal-mpl { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table thead th { position: static; background: transparent; color: var(--muted); font-size: 10.5px; text-transform: uppercase; padding: 6px 2px; text-align: center; border: 0; }
.cal-table td { height: 46px; border: 1px solid var(--border); text-align: center; vertical-align: top; padding: 3px 2px; }
.cal-empty { background: transparent; border-color: transparent !important; }
.cal-day { position: relative; }
.cal-dnum { display: block; font-size: 10px; color: var(--muted); line-height: 1.1; }
.cal-dpl { display: block; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cal-dn { display: block; font-size: 9px; color: var(--muted); }
.cal-day.pos { background: rgba(74,222,128,.13); }
.cal-day.neg { background: rgba(248,113,113,.13); }
.cal-day.pos .cal-dpl { color: var(--pos); }
.cal-day.neg .cal-dpl { color: var(--neg); }
.cal-day.flat .cal-dpl { color: var(--muted); }
.cal-none { background: transparent; }
.cal-wk { background: var(--bg-3); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; width: 78px; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .settingsbar { flex-direction: column; align-items: flex-start; }
  main { padding: 16px 12px 50px; }
  .cal-wrap { grid-template-columns: 1fr; }
}

/* Disciplina no-trade */
.discipline-wrap { padding: 18px 18px 16px; }
.disc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.disc-cell { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px 14px; }
.disc-num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.disc-lab { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.disc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.disc-foot { margin-top: 12px; }
@media (max-width: 720px) { .disc-row { grid-template-columns: repeat(2, 1fr); } }

/* Confidence meter */
.conf-wrap { padding: 16px 18px; }
.conf-state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px; }
.conf-state .conf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.conf-state-neutro { color: var(--muted); background: rgba(154,160,166,.15); }
.conf-state-caldo { color: #fbbf24; background: rgba(251,191,36,.13); }
.conf-state-recovery { color: var(--neg); background: rgba(248,113,113,.13); }
.conf-state-alert { color: var(--neg); background: rgba(248,113,113,.2); }
.conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.conf-cell { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 12px 14px; }
.conf-num { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.conf-side { font-size: 14px; color: var(--muted); margin-left: 4px; }
.conf-lab { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.conf-advice { background: var(--bg-3); border-left: 3px solid var(--accent); border-radius: 4px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; line-height: 1.5; }

/* Modal Sizer */
.btn-sizer { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); padding: 8px 12px; font-size: 13px; cursor: pointer; }
.btn-sizer:hover { border-color: var(--accent); color: var(--accent); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px; width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.modal-close { background: transparent; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 6px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px 20px 22px; }
.sizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 18px; }
.sizer-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.sizer-grid input, .sizer-grid select { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; outline: none; font-family: inherit; }
.sizer-grid input:focus, .sizer-grid select:focus { border-color: var(--accent); }
.sizer-out { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 4px 0; margin-bottom: 12px; }
.sz-row { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.sz-row:last-child { border-bottom: 0; }
.sz-row span { color: var(--muted); }
.sz-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
#sz-note { margin: 0; line-height: 1.5; }
@media (max-width: 540px) { .sizer-grid { grid-template-columns: 1fr; } }

/* Chart più alto per il Reports hourly */
.chart-wrap.chart-tall { height: 380px; }

/* ========== Cluster B: Playbook & Tag management ========== */

/* Filter badge in topbar */
.filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; background: var(--accent); color: #0d1117; border-radius: 9px; font-size: 11px; font-weight: 700; }

/* Playbook grid */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 16px 18px; }
.pb-card { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 14px; border-left: 4px solid var(--pb-c, var(--accent)); }
.pb-card-arch { opacity: .55; }
.pb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.pb-name { font-weight: 700; font-size: 14px; color: var(--text); }
.pb-actions { display: flex; gap: 4px; }
.pb-actions button { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.pb-actions button:hover { background: var(--panel); color: var(--text); }
.pb-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 10px; min-height: 18px; }
.pb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.pb-stat { text-align: center; padding: 6px 4px; background: var(--panel); border-radius: 6px; }
.pb-stat-v { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-stat-l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 1px; }
.pb-archived { padding: 8px 18px 16px; }
.pb-archived summary { font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 6px 0; }
.pb-archived summary:hover { color: var(--text); }
.pb-archived .pb-grid { padding: 8px 0 0; }

/* Tag management */
.tag-manage { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.tag-cat { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--cat-c, var(--muted)); }
.tag-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag-cat-dot { width: 10px; height: 10px; border-radius: 50%; }
.tag-cat-name { font-weight: 700; font-size: 13.5px; }
.tag-cat-actions { margin-left: auto; display: flex; gap: 4px; }
.tag-cat-actions button { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.tag-cat-actions button:hover { background: var(--panel); color: var(--text); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid; border-radius: 14px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tag-chip button { background: transparent; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; font-size: 10.5px; }
.tag-chip button:hover { opacity: 1; }

/* Playbook chip nella Trade View */
.pb-chip { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid; border-radius: 14px; font-size: 12px; font-weight: 600; line-height: 1.4; }

/* Trade View: riga tag + editor */
.td-tag-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.td-tag-chips { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; }
.td-tag-editor { padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-3); }
.te-section { margin-bottom: 12px; }
.te-section-head { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.te-list { display: flex; flex-wrap: wrap; gap: 6px; }
.te-opt { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--border-2); border-radius: 14px; font-size: 12px; cursor: pointer; user-select: none; transition: background .12s; --c: var(--accent); }
.te-opt input { display: none; }
.te-opt:hover { border-color: var(--c); color: var(--c); }
.te-opt.on { border-color: var(--c); color: var(--c); font-weight: 600; }
.te-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Modal Filtri */
.modal-wide { max-width: 720px; }
.filter-section { margin-bottom: 18px; }
.filter-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filter-section-head h4 { margin: 0; font-size: 13px; font-weight: 600; }
.filter-section-head .sml label { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; color: var(--muted); cursor: pointer; }
.filter-cat { margin-bottom: 10px; }
.filter-cat-name { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: .5px; margin-bottom: 4px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--c, var(--accent)); border-radius: 14px; font-size: 12px; cursor: pointer; user-select: none; transition: background .12s; --c: var(--accent); }
.fchip input { display: none; }
.fchip:hover { background: var(--bg-3); }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Modal Playbook: textarea labels */
.pb-textarea-lab { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.pb-textarea-lab textarea { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 8px 10px; font-size: 13px; outline: none; font-family: inherit; resize: vertical; min-height: 50px; }
.pb-textarea-lab textarea:focus { border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ===================== Cluster C1: Notebook ===================== */
.nb-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; min-height: 600px; }
.nb-list { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.nb-list-head { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg-3); }
.nb-list-scroll { overflow-y: auto; max-height: 700px; }
.nb-empty { padding: 24px 14px; text-align: center; font-size: 13px; line-height: 1.5; }
.nb-item { padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.nb-item:hover { background: var(--bg-3); }
.nb-item.selected { background: rgba(91, 155, 213, .15); border-left: 3px solid var(--accent); padding-left: 9px; }
.nb-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; }
.nb-item-date { color: var(--muted); }
.nb-item-tpl { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 10px; padding: 1px 8px; font-size: 10px; color: var(--text); text-transform: uppercase; letter-spacing: .3px; }
.nb-item-mood { margin-left: auto; font-size: 14px; }
.nb-item-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-item-snip { font-size: 11px; line-height: 1.4; max-height: 32px; overflow: hidden; }
.nb-editor { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; }
.nb-empty-state { text-align: center; padding: 60px 20px; }
.nb-empty-state h3 { margin: 12px 0 8px; color: var(--text); }
.nb-toolbar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.nb-toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.nb-toolbar input[type=date], .nb-toolbar select { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 8px; font-size: 13px; outline: none; font-family: inherit; }
.nb-toolbar input[type=date]:focus, .nb-toolbar select:focus { border-color: var(--accent); }
#nb-title { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 10px 12px; font-size: 16px; font-weight: 500; outline: none; font-family: inherit; margin-bottom: 10px; }
#nb-title:focus { border-color: var(--accent); }
#nb-body { background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.55; outline: none; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; min-height: 360px; flex: 1; }
#nb-body:focus { border-color: var(--accent); }
.nb-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.nb-actions #nb-delete { color: var(--neg, #e74c3c); border-color: var(--neg, #e74c3c); }
@media (max-width: 900px) { .nb-layout { grid-template-columns: 1fr; } .nb-list-scroll { max-height: 240px; } }

/* ===================== Cluster C2: Progress Tracker — regole + checklist + heatmap ===================== */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 14px; }
.rule-card { background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--rc, var(--accent)); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rule-card.archived { opacity: .55; }
.rule-head { display: flex; align-items: center; gap: 8px; }
.rule-head h3 { margin: 0; font-size: 14px; color: var(--text); }
.rule-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rule-meta { font-size: 11px; }
.rule-desc { color: var(--text); opacity: .85; font-size: 12px; line-height: 1.4; }
.rule-stats { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; border-top: 1px solid var(--border); }
.rule-stat { display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
.rule-pct { font-size: 18px; font-weight: 600; font-family: ui-monospace, Menlo, monospace; }
.rule-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.rule-actions .btn-sm { padding: 4px 10px; font-size: 11px; }

.checklist { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.cl-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; }
.cl-item.kept { border-left: 3px solid var(--pos, #27c281); }
.cl-item.broken { border-left: 3px solid var(--neg, #e74c3c); }
.cl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cl-body { flex: 1; }
.cl-name { font-size: 13px; color: var(--text); margin-bottom: 2px; }
.cl-meta { font-size: 11px; }
.cl-badge { font-size: 11px; padding: 4px 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border-2); font-family: ui-monospace, Menlo, monospace; }
.cl-badge.pos { background: rgba(39, 194, 129, .15); color: var(--pos, #27c281); border-color: rgba(39, 194, 129, .35); }
.cl-badge.neg { background: rgba(231, 76, 60, .15); color: var(--neg, #e74c3c); border-color: rgba(231, 76, 60, .35); }
.cl-buttons { display: flex; gap: 4px; }
.cl-btn { background: var(--bg-3); color: var(--muted); border: 1px solid var(--border-2); border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; font-family: inherit; transition: all .12s; }
.cl-btn:hover { color: var(--text); border-color: var(--accent); }
.cl-btn.cl-kept.active { background: rgba(39, 194, 129, .2); color: var(--pos, #27c281); border-color: var(--pos, #27c281); }
.cl-btn.cl-broken.active { background: rgba(231, 76, 60, .2); color: var(--neg, #e74c3c); border-color: var(--neg, #e74c3c); }

.heatmap-wrap { padding: 14px; overflow-x: auto; }

/* ===================== Heatmap GitHub-style (aderenza) ===================== */
.heatmap-gh { display: flex; flex-direction: column; gap: 3px; padding: 4px; font-size: 11px; }
.hmgh-row { display: grid; grid-template-columns: 44px repeat(16, 14px); gap: 3px; align-items: center; }
.hmgh-row.hmgh-months { color: var(--muted); font-size: 10px; height: 14px; }
.hmgh-dowlbl { color: var(--muted); text-align: right; padding-right: 6px; font-size: 10px; line-height: 14px; }
.hmgh-mo-lbl { text-align: left; white-space: nowrap; overflow: visible; }
.hmgh-cell { width: 14px; height: 14px; border-radius: 3px; background: #1e2530; border: 1px solid var(--border); }
/* scala 5 livelli stile GitHub */
.hmgh-cell.hmgh-na { background: #1e2530; opacity: .4; }
.hmgh-cell.hmgh-l0 { background: rgba(231, 76, 60, .35); border-color: rgba(231, 76, 60, .55); }
.hmgh-cell.hmgh-l1 { background: rgba(231, 145, 76, .35); border-color: rgba(231, 145, 76, .55); }
.hmgh-cell.hmgh-l2 { background: rgba(245, 158, 11, .40); border-color: rgba(245, 158, 11, .6); }
.hmgh-cell.hmgh-l3 { background: rgba(39, 194, 129, .45); border-color: rgba(39, 194, 129, .65); }
.hmgh-cell.hmgh-l4 { background: rgba(39, 194, 129, .80); border-color: rgba(39, 194, 129, 1); }
.hmgh-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; padding-right: 4px; }

/* Note per singolo trade (Trade View) */
.td-notes-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.td-notes-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
#td-notes { width: 100%; min-height: 110px; background: var(--bg-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 6px; padding: 10px 12px; font-size: 13px; line-height: 1.55; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; outline: none; resize: vertical; }
#td-notes:focus { border-color: var(--accent); }
.td-notes-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.trade-note-icon { margin-right: 4px; opacity: .9; }

/* Reports drill-down: hover row */
.rep-table tr.rep-row { cursor: pointer; transition: background .1s; }
.rep-table tr.rep-row:hover { background: rgba(91, 155, 213, .12); }
.rep-table tr.rep-row:hover td.sym { color: var(--accent); }

/* Upload modal tabs */
.upload-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; padding-bottom: 0; }
.upl-tab { background: transparent; color: var(--muted); border: none; padding: 8px 14px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; transition: all .12s; font-family: inherit; }
.upl-tab:hover { color: var(--text); }
.upl-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
#uc-csv, #us-body { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
#uc-preview-out table { font-size: 11px; }

/* Confronto periodi: badge delta + banner periodo precedente */
.prev-banner { background: rgba(91, 155, 213, .12); border: 1px solid rgba(91, 155, 213, .4); border-radius: 6px; padding: 6px 12px; margin-bottom: 14px; font-size: 12px; }
.delta { display: inline-block; padding: 1px 6px; border-radius: 10px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.pos { background: rgba(39, 194, 129, .18); color: var(--pos, #27c281); }
.delta.neg { background: rgba(231, 76, 60, .18); color: var(--neg, #e74c3c); }
.delta.flat { background: var(--bg-3); color: var(--muted); }

/* Streak alert badge */
.alert-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: help; }
.alert-badge.alert-loss { background: rgba(231, 76, 60, .18); color: var(--neg, #e74c3c); border: 1px solid rgba(231, 76, 60, .5); animation: pulse-warn 2s ease-in-out infinite; }
.alert-badge.alert-win { background: rgba(39, 194, 129, .15); color: var(--pos, #27c281); border: 1px solid rgba(39, 194, 129, .45); }
.alert-badge .ab-ic { font-size: 13px; }
@keyframes pulse-warn { 0%, 100% { opacity: 1 } 50% { opacity: .65 } }

/* ===================== Privacy mode ===================== */
/* Oscura tutti i numeri sensibili (€, %, R, conteggi) per condividere screenshot */
body.privacy .amt,
body.privacy .card-value,
body.privacy .cnt-badge,
body.privacy .cal-dpl,
body.privacy .cal-mpl,
body.privacy .r-pl,
body.privacy .mono,
body.privacy .rule-pct,
body.privacy .nb-item-snip,
body.privacy .cl-badge,
body.privacy canvas {
  filter: blur(6px);
  transition: filter .15s;
  user-select: none;
}
body.privacy .amt:hover,
body.privacy .card-value:hover,
body.privacy .cal-dpl:hover,
body.privacy .mono:hover,
body.privacy canvas:hover {
  filter: blur(0); /* hover momentaneo per ispezione veloce */
}
#btn-privacy.active { background: rgba(245, 158, 11, .25); border-color: rgba(245, 158, 11, .6); color: #f59e0b; }

/* ===================== Calendar drill-down ===================== */
.cal-day.cal-clickable { cursor: pointer; position: relative; transition: outline .12s; }
.cal-day.cal-clickable:hover { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
.cal-day.cal-tilt { box-shadow: inset 3px 0 0 #ff6b35; }
.cal-day.cal-tilt::after { content: '🔥'; position: absolute; top: 2px; right: 3px; font-size: 9px; opacity: .8; }
.day-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 0 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.day-stat { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: var(--bg-3); border-radius: 6px; }
.day-stat b { font-size: 16px; }
.day-trades { max-height: 420px; overflow-y: auto; }
.day-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.day-tbl th { position: sticky; top: 0; background: var(--bg-3); padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.day-tbl th.r, .day-tbl td.r { text-align: right; }
.day-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.day-tbl tr:hover { background: rgba(91, 155, 213, .08); }

/* Section heading (separator tra gruppi di cards) */
.section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 10px 2px; font-weight: 600; }
.view > .section-h:not(:first-of-type) { margin-top: 14px; }

/* ===================== Trade Replay Pro ===================== */
.td-head-right { display: flex; align-items: center; gap: 12px; }
.btn-replay {
  background: linear-gradient(180deg, #3a4660, #2a3144);
  border: 1px solid #4a5670;
  color: #d0e0ff;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn-replay:hover { background: linear-gradient(180deg, #4a5680, #3a4154); border-color: #6a7690; }
.btn-replay:disabled { cursor: not-allowed; opacity: 0.4; }

.replay-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.replay-box {
  background: #1e1f22;
  border: 1px solid #3a3c40;
  border-radius: 8px;
  width: min(1100px, 95vw);
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.replay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #3a3c40;
  background: #26282c;
}
.replay-title { font-weight: 600; font-size: 14px; color: #d0d0d0; }
.replay-close {
  background: transparent; border: 0; color: #d0d0d0;
  font-size: 28px; cursor: pointer; line-height: 1; padding: 0 6px;
}
.replay-close:hover { color: #fff; }
.replay-body { padding: 14px 16px 16px; overflow: auto; }
.replay-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; gap: 14px;
  color: #aaa;
}
.replay-loading .spinner {
  width: 36px; height: 36px;
  border: 3px solid #3a3c40;
  border-top-color: #5b9bd5;
  border-radius: 50%;
  animation: replay-spin 0.9s linear infinite;
}
@keyframes replay-spin { to { transform: rotate(360deg); } }
.replay-chart {
  display: none;
  width: 100%;
  min-height: 420px;
  background: #1e1f22;
}
.replay-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 12px 4px 4px;
  font-size: 13px;
  color: #c0c0c0;
}
.replay-meta b { color: #aaa; font-weight: 500; margin-right: 4px; }
.replay-meta .pos { color: #26a69a; }
.replay-meta .neg { color: #ef5350; }

/* Replay player controls */
.replay-controls {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 10px;
  background: #26282c;
  border: 1px solid #3a3c40;
  border-radius: 6px;
  flex-wrap: wrap;
}
.rc-btn {
  background: linear-gradient(180deg, #2a2c30, #1f2123);
  border: 1px solid #3a3c40;
  color: #d0d0d0;
  font-size: 14px;
  width: 32px; height: 30px;
  border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.rc-btn:hover { background: linear-gradient(180deg, #3a3c40, #2a2c30); border-color: #5b9bd5; }
.rc-btn:active { transform: translateY(1px); }
.rc-btn.rc-play {
  background: linear-gradient(180deg, #2e7a6e, #1e5a4e);
  border-color: #3a9b8e;
  color: #d8f0ea;
  width: 42px;
}
.rc-btn.rc-play:hover { background: linear-gradient(180deg, #3e8a7e, #2e6a5e); }
.rc-speed { display: flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 12px; color: #aaa; }
.rc-speed select {
  background: #1e1f22; color: #d0d0d0;
  border: 1px solid #3a3c40; border-radius: 4px;
  padding: 4px 6px; font-size: 12px;
}
.rc-progress {
  margin-left: auto;
  font-size: 12px;
  color: #c0c0c0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  padding: 4px 8px;
  background: #1e1f22;
  border-radius: 4px;
  border: 1px solid #3a3c40;
}
