:root {
  --bg: #070b10;
  --panel: #0d131b;
  --panel-2: #101923;
  --panel-3: #151f2b;
  --line: #202c3a;
  --line-soft: rgba(116, 137, 160, .16);
  --text: #e8eef5;
  --muted: #8291a2;
  --muted-2: #5f6d7c;
  --green: #28d17c;
  --green-soft: rgba(40, 209, 124, .12);
  --amber: #f6b94a;
  --amber-soft: rgba(246, 185, 74, .12);
  --red: #ff6e68;
  --red-soft: rgba(255, 110, 104, .12);
  --blue: #5aa7ff;
  --blue-soft: rgba(90, 167, 255, .12);
  --shell: 1560px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

button, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell {
  width: min(calc(100% - 28px), var(--shell));
  margin-inline: auto;
}

.demo-banner {
  padding: 7px 14px;
  background: var(--amber);
  color: #17120a;
  text-align: center;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.terminal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 16, .94);
  backdrop-filter: blur(14px);
}

.terminal-header-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-symbol {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 209, 124, .46);
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font: 800 14px/1 var(--mono);
  box-shadow: inset 0 0 18px rgba(40, 209, 124, .08);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .035em;
}
.brand-name span { color: var(--green); }
.brand-product {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 700 10px/1 var(--mono);
  letter-spacing: .13em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freshness {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  font: 700 10px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.freshness i,
.data-quality i,
.auto-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.freshness-fresh { color: var(--green); }
.freshness-late { color: var(--amber); }
.freshness-stale,
.freshness-error { color: var(--red); }
.freshness-loading { color: var(--blue); }

.refresh-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  cursor: pointer;
}
.refresh-button:hover { border-color: #3b4c60; background: var(--panel-2); }
.refresh-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.refresh-button.is-spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.main-shell { padding: 14px 0 22px; }

.topline {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 18px;
}

.topline-title { min-width: 0; text-align: center; }
.topline h1 {
  margin: 0;
  overflow: hidden;
  color: #f1f5f9;
  font-size: clamp(17px, 2.15vw, 31px);
  font-weight: 710;
  letter-spacing: -.03em;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.update-card {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(16,25,35,.96), rgba(12,18,26,.96));
}
.update-card > div:not(.auto-state) { min-width: 0; }
.update-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font: 700 9px/1 var(--mono);
  letter-spacing: .06em;
}
.update-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font: 700 11px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auto-state {
  height: 29px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(40, 209, 124, .26);
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font: 800 9px/1 var(--mono);
  letter-spacing: .05em;
  white-space: nowrap;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}
.kpi-strip article {
  min-height: 58px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-right: 1px solid var(--line);
}
.kpi-strip article:last-child { border-right: 0; }
.kpi-strip span {
  color: var(--muted);
  font: 700 9px/1.25 var(--mono);
  letter-spacing: .065em;
}
.kpi-strip strong {
  color: #edf3f9;
  font: 800 clamp(19px, 2.2vw, 29px)/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.kpi-strip .kpi-emphasis { background: var(--green-soft); }
.kpi-strip .kpi-emphasis strong { color: var(--green); }

.monitor {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(13, 19, 27, .97);
}

.monitor-toolbar {
  min-height: 58px;
  padding: 7px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #0a1017;
}

.preset-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(215px, 1fr));
  gap: 6px;
}

.preset-button {
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}
.preset-button:hover { border-color: #3a4a5c; }
.preset-button.is-active {
  border-color: rgba(90, 167, 255, .52);
  background: var(--blue-soft);
  box-shadow: inset 2px 0 0 var(--blue);
}
.preset-dot { width: 7px; height: 7px; border-radius: 50%; }
.preset-dot-hot { background: var(--red); box-shadow: 0 0 9px rgba(255,110,104,.65); }
.preset-dot-warm { background: var(--amber); box-shadow: 0 0 9px rgba(246,185,74,.65); }
.preset-button small,
.preset-button strong { display: block; }
.preset-button small {
  margin-bottom: 3px;
  color: var(--text);
  font: 800 10px/1 var(--mono);
  letter-spacing: .06em;
}
.preset-button strong {
  overflow: hidden;
  color: var(--muted);
  font: 600 10px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-button b {
  min-width: 30px;
  text-align: right;
  font: 800 21px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.toolbar-right {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.fixed-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fixed-filters span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  font: 700 8px/1 var(--mono);
  white-space: nowrap;
}
.sort-control {
  min-width: 177px;
  padding: 5px 7px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.sort-control span {
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .06em;
}
.sort-control select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 700 10px/1.2 var(--mono);
  cursor: pointer;
}
.sort-control option { background: var(--panel-2); }

.monitor-heading {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.monitor-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .08em;
}
.monitor-heading h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.data-quality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font: 800 9px/1 var(--mono);
  letter-spacing: .05em;
  white-space: nowrap;
}
.data-quality.is-warning { color: var(--amber); }
.data-quality.is-error { color: var(--red); }

.error-box {
  margin: 12px;
  padding: 12px;
  border: 1px solid rgba(255,110,104,.35);
  border-radius: 5px;
  background: var(--red-soft);
  color: var(--red);
  font: 700 11px/1.5 var(--mono);
}
.error-box strong { display: block; margin-bottom: 3px; }

.empty-terminal {
  min-height: 210px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.008), transparent),
    #0c1219;
}
.empty-grid {
  width: 138px;
  height: 112px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(90,167,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,167,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 58% 42%, rgba(90,167,255,.3) 0 2px, transparent 3px);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  box-shadow: inset 0 0 30px rgba(90,167,255,.04);
}
.empty-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font: 800 12px/1 var(--mono);
  letter-spacing: .06em;
}
.empty-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.empty-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.empty-stats div {
  min-height: 62px;
  padding: 9px;
  display: grid;
  place-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}
.empty-stats div:last-child { border-right: 0; }
.empty-stats b {
  margin-bottom: 5px;
  font: 800 18px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.empty-stats span {
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .05em;
}

.market-table-wrap { overflow: auto; }
.market-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.market-table th,
.market-table td {
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  white-space: nowrap;
}
.market-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 9px;
  background: #0b1118;
  color: var(--muted-2);
  font: 800 8px/1 var(--mono);
  letter-spacing: .06em;
}
.market-table td {
  height: 54px;
  padding: 7px 9px;
  color: #dfe7ef;
  font: 700 11px/1.2 var(--mono);
}
.market-table tbody tr { cursor: pointer; transition: background .12s ease; }
.market-table tbody tr:hover { background: rgba(90,167,255,.055); }
.market-table tbody tr:last-child td { border-bottom: 0; }
.market-table .col-market {
  width: 39%;
  text-align: left;
}
.market-cell {
  overflow: hidden;
  text-align: left;
}
.market-cell strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-cell span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font: 700 9px/1 var(--mono);
  text-overflow: ellipsis;
}
.outcome-chip {
  max-width: 90px;
  padding: 2px 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-3);
  color: var(--blue);
  text-overflow: ellipsis;
}
.prob-hot { color: var(--red) !important; }
.prob-warm { color: var(--amber) !important; }
.value-positive { color: var(--green) !important; }
.concentration-high { color: var(--amber) !important; }
.wallet-age-new { color: var(--blue) !important; }
.row-action {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--muted);
  font: 800 14px/1 var(--mono);
}
.market-table tbody tr:hover .row-action { color: var(--blue); border-color: rgba(90,167,255,.45); }

.mobile-signal-list { display: none; }
.mobile-card {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.mobile-card:last-child { border-bottom: 0; }
.mobile-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mobile-card-title { min-width: 0; }
.mobile-card-title strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-card-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 700 9px/1 var(--mono);
}
.mobile-card-prob { font: 800 16px/1 var(--mono); }
.mobile-card-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mobile-card-grid div {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.mobile-card-grid span,
.mobile-card-grid strong { display: block; }
.mobile-card-grid span {
  margin-bottom: 4px;
  color: var(--muted-2);
  font: 700 7px/1 var(--mono);
}
.mobile-card-grid strong { font: 800 10px/1 var(--mono); }

.terminal-footer {
  padding: 10px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-2);
  font: 700 9px/1.2 var(--mono);
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.detail-drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.56);
  opacity: 0;
  transition: opacity .18s ease;
}
.detail-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 94vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
  background: #0b1118;
  box-shadow: -30px 0 80px rgba(0,0,0,.45);
  transform: translateX(100%);
  transition: transform .18s ease;
}
.detail-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  min-height: 72px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.drawer-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font: 800 9px/1 var(--mono);
  letter-spacing: .06em;
}
.drawer-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.drawer-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: 400 22px/1 var(--sans);
}
.drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}
.detail-section {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.detail-section-title {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font: 800 8px/1 var(--mono);
  letter-spacing: .07em;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.detail-field {
  min-height: 61px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-field:nth-child(2n) { border-right: 0; }
.detail-field:nth-last-child(-n+2) { border-bottom: 0; }
.detail-field span,
.detail-field strong { display: block; }
.detail-field span {
  margin-bottom: 6px;
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .04em;
}
.detail-field strong {
  overflow-wrap: anywhere;
  font: 800 12px/1.35 var(--mono);
}
.detail-link {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(90,167,255,.35);
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
  text-decoration: none;
  font: 800 10px/1 var(--mono);
  letter-spacing: .04em;
}

@media (max-width: 1180px) {
  .topline { grid-template-columns: 1fr 385px; }
  .fixed-filters span:nth-child(2),
  .fixed-filters span:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
  .topline {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px 0;
  }
  .update-card { width: 100%; }
  .monitor-toolbar { flex-direction: column; }
  .toolbar-right { justify-content: space-between; }
  .preset-switch { width: 100%; }
  .market-table-wrap { display: none !important; }
  .mobile-signal-list { display: block; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 14px), var(--shell)); }
  .brand-product { display: none; }
  .freshness span { display: none; }
  .freshness { width: 30px; padding: 0; justify-content: center; }
  .topline h1 { font-size: clamp(12px, 3.6vw, 19px); }
  .update-card {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .auto-state { grid-column: 1 / -1; justify-content: center; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi-strip article:nth-child(2) { border-right: 0; }
  .kpi-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .preset-switch { grid-template-columns: 1fr 1fr; }
  .preset-button { padding: 7px; grid-template-columns: auto minmax(0,1fr); }
  .preset-button b { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .preset-button strong { display: none; }
  .fixed-filters { display: none; }
  .sort-control { width: 100%; }
  .toolbar-right { display: block; }
  .empty-terminal { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .empty-grid { display: none; }
  .empty-stats { width: 100%; }
  .mobile-card-grid { grid-template-columns: repeat(2, 1fr); }
  .terminal-footer { flex-direction: column; gap: 4px; }
}


/* POLYalert Trader UI v3.1 */

.topline {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 66px;
}

.topline-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.topline h1 {
  font-size: clamp(18px, 2vw, 30px);
}

.update-card {
  grid-column: 3;
  width: min(100%, 400px);
  justify-self: end;
}

.kpi-information {
  align-items: flex-start !important;
  flex-direction: column;
  justify-content: center !important;
  gap: 5px !important;
  background: rgba(90, 167, 255, .045);
}

.kpi-information > span {
  color: var(--blue);
}

.kpi-information > strong {
  max-width: 100%;
  color: var(--text) !important;
  font: 800 10px/1.35 var(--mono) !important;
  letter-spacing: .025em;
  text-wrap: balance;
}

.preset-button small {
  letter-spacing: .035em;
}

@media (max-width: 1180px) {
  .topline {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .update-card {
    width: min(100%, 350px);
  }

  .preset-button small {
    font-size: 9px;
  }
}

@media (max-width: 900px) {
  .topline {
    grid-template-columns: 1fr;
  }

  .topline-title {
    grid-column: 1;
  }

  .update-card {
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .kpi-information > strong {
    font-size: 9px !important;
  }
}


/* POLYalert Trader UI v3.2 */

/*
  Il titolo resta realmente centrato rispetto alla pagina.
  La card degli aggiornamenti è ancorata a destra e non occupa
  una riga propria sui monitor desktop.
*/
.topline {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 420px;
}

.topline-title {
  grid-column: auto;
  width: 100%;
  min-width: 0;
  justify-self: auto;
  text-align: center;
}

.topline h1 {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.update-card {
  position: absolute;
  top: 50%;
  right: 0;
  grid-column: auto;
  width: 400px;
  min-height: 48px;
  transform: translateY(-50%);
  justify-self: auto;
}

/* La precedente intestazione lunga viene rimossa.
   La card comunica direttamente l'esclusione dello sport. */
.kpi-information {
  position: relative;
  min-width: 0;
  align-items: flex-start !important;
  flex-direction: column;
  justify-content: center !important;
  gap: 2px !important;
  overflow: hidden;
}

.kpi-information > span {
  color: var(--blue);
  font: 800 9px/1 var(--mono);
  letter-spacing: .08em;
}

.kpi-information > strong {
  color: var(--text) !important;
  font: 800 clamp(13px, 1.15vw, 18px)/1 var(--mono) !important;
  letter-spacing: .02em;
  white-space: nowrap;
}

.kpi-information > small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font: 600 9px/1.25 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .topline {
    padding-right: 365px;
  }

  .update-card {
    width: 350px;
  }

  .update-card span {
    font-size: 8px;
  }

  .update-card strong {
    font-size: 10px;
  }
}

@media (max-width: 920px) {
  .topline {
    min-height: 128px;
    padding: 0 0 62px;
  }

  .update-card {
    top: auto;
    right: 0;
    bottom: 5px;
    left: 0;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 680px) {
  .topline {
    min-height: 136px;
  }

  .topline h1 {
    font-size: clamp(17px, 5.5vw, 25px);
  }

  .kpi-information > strong {
    font-size: 12px !important;
  }

  .kpi-information > small {
    white-space: normal;
  }
}


/* POLYalert Trader UI v3.3 */

.topline {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 245px;
}

.topline-title {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.topline h1 {
  margin: 0;
  overflow: hidden;
  color: #f1f5f9;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 710;
  letter-spacing: -.03em;
  line-height: 1;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.update-card.update-card-compact {
  position: absolute;
  top: 50%;
  right: 0;
  width: 218px;
  min-height: 48px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(16,25,35,.97), rgba(12,18,26,.97));
}

.update-card.update-card-compact > span {
  display: block;
  margin: 0;
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .07em;
}

.update-card.update-card-compact > strong {
  display: block;
  margin: 1px 0 2px;
  color: var(--text);
  font: 750 12px/1.15 var(--mono);
  white-space: nowrap;
}

.update-card.update-card-compact > small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font: 750 9px/1 var(--mono);
  letter-spacing: .025em;
  white-space: nowrap;
}

.update-card.update-card-compact > small i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(40,209,124,.09);
}

@media (max-width: 1180px) {
  .topline {
    padding-inline: 220px;
  }

  .topline h1 {
    font-size: clamp(16px, 1.8vw, 25px);
  }

  .update-card.update-card-compact {
    width: 205px;
  }
}

@media (max-width: 900px) {
  .topline {
    min-height: 126px;
    padding: 0 0 58px;
  }

  .topline h1 {
    font-size: clamp(16px, 4.7vw, 25px);
  }

  .update-card.update-card-compact {
    top: auto;
    right: 0;
    bottom: 4px;
    width: 218px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .topline {
    min-height: 132px;
  }

  .topline h1 {
    font-size: clamp(13px, 4.1vw, 20px);
  }

  .update-card.update-card-compact {
    left: auto;
    width: 205px;
  }
}


/* POLYalert Trader UI v3.4 */

/* La card aggiornamenti sostituisce il precedente badge "DATI AGGIORNATI"
   nell'angolo superiore destro dell'header. */
.terminal-header-inner {
  min-height: 58px;
}

.header-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-update-card {
  min-width: 205px;
  min-height: 42px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(16,25,35,.98), rgba(11,17,24,.98));
}

.header-update-card > span {
  grid-column: 1;
  color: var(--muted-2);
  font: 700 8px/1 var(--mono);
  letter-spacing: .065em;
  white-space: nowrap;
}

.header-update-card > strong {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: var(--text);
  font: 750 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-update-card > small {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--green);
  font: 750 8px/1 var(--mono);
  letter-spacing: .025em;
  white-space: nowrap;
}

.header-update-card > small i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(40, 209, 124, .9);
}

.header-update-card.is-error > strong,
.header-update-card.is-error > small {
  color: var(--red);
}

.header-update-card.is-error > small i {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 110, 104, .8);
}

/* Il titolo torna a occupare da solo la propria riga. */
.topline {
  min-height: 66px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topline-title {
  width: 100%;
  text-align: center;
}

.topline h1 {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

/* Disattiva definitivamente la vecchia card nel corpo pagina. */
.update-card.update-card-compact {
  display: none !important;
}

@media (max-width: 760px) {
  .brand-product {
    display: none;
  }

  .header-update-card {
    min-width: 188px;
  }

  .header-update-card > span,
  .header-update-card > small {
    font-size: 7px;
  }

  .header-update-card > strong {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .terminal-header-inner {
    min-height: 64px;
    gap: 8px;
  }

  .brand-name {
    display: none;
  }

  .header-update-card {
    min-width: 170px;
    padding-inline: 8px;
  }

  .topline {
    min-height: 58px;
  }

  .topline h1 {
    font-size: clamp(13px, 4.2vw, 20px);
  }
}


/* POLYalert Trader UI v3.5 */

/* Nessun controllo di aggiornamento manuale:
   il dashboard viene aggiornato dal sistema e riletto automaticamente. */
.header-status {
  margin-left: auto;
}

.header-update-card {
  min-width: 205px;
}

.header-update-card > small {
  justify-content: flex-end;
  gap: 0;
}

.header-update-card > small i {
  display: none !important;
}

.refresh-button {
  display: none !important;
}


/* POLYALERT_PARTIAL_NOTICE_V1 */
.polyalert-partial-warning {
    grid-column: 1 / -1;
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(240, 190, 70, 0.55);
    border-radius: 6px;
    background: rgba(240, 190, 70, 0.09);
    color: inherit;
}

.polyalert-partial-warning__title {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.polyalert-partial-warning__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.92;
}
/* POLYALERT_PROBABILITY_VALUE_CHART_V1 */

.pv-panel {
  margin: 18px 0 20px;
  border: 1px solid rgba(163, 181, 205, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(20, 27, 38, 0.96),
      rgba(12, 17, 25, 0.96)
    );
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.pv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pv-toggle:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pv-toggle:focus-visible {
  outline: 2px solid rgba(231, 203, 104, 0.8);
  outline-offset: -3px;
}

.pv-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pv-kicker,
.pv-dialog-kicker {
  color: #d8bd62;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pv-heading strong {
  color: #f3f6fa;
  font-size: clamp(0.93rem, 1.7vw, 1.16rem);
  letter-spacing: 0.045em;
}

.pv-subtitle {
  color: #8996a8;
  font-size: 0.75rem;
  line-height: 1.45;
}

.pv-toggle-side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #aab5c4;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.pv-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.pv-panel.is-collapsed .pv-chevron {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.pv-content {
  padding: 0 20px 20px;
}

.pv-content[hidden],
.pv-modal[hidden],
.pv-empty[hidden],
.pv-chart[hidden] {
  display: none !important;
}

.pv-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 13px;
  border-top: 1px solid rgba(163, 181, 205, 0.14);
}

.pv-status,
.pv-coverage {
  color: #8794a5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pv-status.is-stale {
  color: #e2b76c;
}

.pv-status.is-error {
  color: #e28787;
}

.pv-chart-shell {
  border: 1px solid rgba(163, 181, 205, 0.14);
  border-radius: 11px;
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(215, 191, 93, 0.055),
      transparent 32%
    ),
    rgba(5, 9, 15, 0.7);
  overflow: hidden;
}

.pv-chart {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.pv-chart svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  min-height: 390px;
}

.pv-grid-line {
  stroke: rgba(159, 175, 197, 0.11);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.pv-grid-line-major {
  stroke: rgba(159, 175, 197, 0.19);
}

.pv-axis-line {
  stroke: rgba(183, 197, 216, 0.35);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.pv-axis-text {
  fill: #7f8b9b;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 12px;
  letter-spacing: 0.025em;
}

.pv-threshold-line {
  stroke: rgba(224, 192, 87, 0.42);
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.pv-threshold-text {
  fill: #baa35a;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.pv-candle {
  cursor: pointer;
  outline: none;
}

.pv-candle-stem {
  stroke: #7899b8;
  stroke-width: 3;
  opacity: 0.72;
  transition:
    opacity 140ms ease,
    stroke-width 140ms ease;
}

.pv-candle-cap {
  fill: #9cb9d2;
  stroke: rgba(231, 241, 250, 0.75);
  stroke-width: 1;
  transition:
    transform 140ms ease,
    filter 140ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.pv-candle-hot .pv-candle-stem {
  stroke: #d6ba5a;
}

.pv-candle-hot .pv-candle-cap {
  fill: #e0c668;
  stroke: #fff0a9;
}

.pv-candle:hover .pv-candle-stem,
.pv-candle:focus .pv-candle-stem {
  opacity: 1;
  stroke-width: 5;
}

.pv-candle:hover .pv-candle-cap,
.pv-candle:focus .pv-candle-cap {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(230, 209, 124, 0.5));
}

.pv-axis-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(163, 181, 205, 0.11);
  color: #707d8d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.pv-empty {
  margin-top: 13px;
  padding: 22px;
  border: 1px dashed rgba(163, 181, 205, 0.19);
  border-radius: 10px;
  color: #8d99a8;
  text-align: center;
  font-size: 0.82rem;
}

.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(5px);
}

.pv-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid rgba(182, 199, 222, 0.23);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #171e2a,
      #0c1119
    );
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.pv-dialog h2 {
  margin: 7px 42px 5px 0;
  color: #f3f6fa;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.35;
}

.pv-dialog-outcome {
  margin: 0 0 20px;
  color: #9aa7b7;
  font-size: 0.79rem;
}

.pv-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(174, 190, 211, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #cad4e1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pv-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pv-dialog-metrics {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 9px;
  margin-bottom: 19px;
}

.pv-dialog-metric {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(163, 181, 205, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.pv-dialog-metric span {
  display: block;
  margin-bottom: 5px;
  color: #778496;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.075em;
}

.pv-dialog-metric strong {
  display: block;
  color: #e7edf5;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.pv-market-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid rgba(224, 197, 100, 0.37);
  border-radius: 9px;
  background: rgba(214, 186, 90, 0.075);
  color: #e3ca72;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.pv-market-link:hover {
  background: rgba(214, 186, 90, 0.13);
}

body.pv-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .pv-panel {
    margin-top: 14px;
  }

  .pv-toggle {
    align-items: flex-start;
    padding: 15px;
  }

  .pv-content {
    padding: 0 12px 13px;
  }

  .pv-subtitle {
    max-width: 39ch;
  }

  .pv-toggle-side {
    padding-top: 3px;
  }

  .pv-axis-note {
    flex-direction: column;
    gap: 5px;
  }

  .pv-dialog {
    padding: 21px 16px 17px;
  }

  .pv-dialog-metrics {
    grid-template-columns: 1fr;
  }
}
/*
 * POLYALERT_PROBABILITY_VALUE_DIALOG_SINGLE_CARD_V1
 *
 * Tutti i parametri del popup sono presentati
 * in una sola card verticale.
 */

.pv-dialog-metrics {
  display: block;
  margin-bottom: 19px;
  border: 1px solid rgba(163, 181, 205, 0.17);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.pv-dialog-metric {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pv-dialog-metric + .pv-dialog-metric {
  border-top: 1px solid rgba(163, 181, 205, 0.105);
}

.pv-dialog-metric span {
  flex: 1 1 auto;
  margin: 0;
  color: #7f8c9d;
  font-size: 0.64rem;
  line-height: 1.35;
}

.pv-dialog-metric strong {
  flex: 0 0 auto;
  max-width: 55%;
  color: #eef3f9;
  text-align: right;
  white-space: nowrap;
}

/*
 * Inizio del gruppo dei cinque wallet.
 * I primi tre parametri sono:
 * probabilità, valore e wallet totali.
 */

.pv-dialog-metric:nth-child(4) {
  border-top-color: rgba(224, 197, 100, 0.28);
  background: rgba(214, 186, 90, 0.027);
}

.pv-dialog-metric:nth-child(n + 4):nth-child(-n + 8) {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(214, 186, 90, 0.027);
}

.pv-dialog-metric:nth-child(n + 4):nth-child(-n + 8) span {
  padding-left: 10px;
  color: #9c8e61;
}

.pv-dialog-metric:nth-child(n + 4):nth-child(-n + 8) strong {
  color: #e5ce7b;
}

/* La data chiude il gruppo dei wallet. */

.pv-dialog-metric:nth-child(9) {
  border-top-color: rgba(224, 197, 100, 0.23);
}

@media (max-width: 520px) {
  .pv-dialog-metric {
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
  }

  .pv-dialog-metric span {
    max-width: 58%;
  }

  .pv-dialog-metric strong {
    max-width: 42%;
    white-space: normal;
  }
}
/*
 * POLYALERT_MARKET_VOLUME_PANORAMA_FRONTEND_V1
 */

.mv-panorama-panel {
  --mv-grid: rgba(160, 179, 204, 0.13);
  --mv-axis: rgba(200, 211, 225, 0.35);
  --mv-muted: #748194;
  --mv-stem: #c7b15f;
  --mv-highlight: #f0d878;

  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(160, 179, 204, 0.15);
  border-radius: 13px;
  background:
    linear-gradient(
      180deg,
      rgba(11, 16, 24, 0.97),
      rgba(6, 10, 16, 0.98)
    );
}

.mv-panorama-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.mv-panorama-kicker {
  margin: 0 0 4px;
  color: #c7b15f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mv-panorama-header h2 {
  margin: 0;
  color: #e5ebf2;
  font-size: clamp(
    0.9rem,
    1.8vw,
    1.2rem
  );
  letter-spacing: 0.035em;
}

.mv-panorama-description {
  margin: 6px 0 0;
  color: #8190a3;
  font-size: 0.69rem;
}

.mv-panorama-plot {
  position: relative;
  width: 100%;
  height: 430px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(160, 179, 204, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(199, 177, 95, 0.035),
      transparent 55%
    ),
    rgba(4, 8, 13, 0.72);
}

#marketVolumePanoramaCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.mv-panorama-tooltip {
  position: absolute;
  z-index: 4;
  max-width: min(
    420px,
    calc(100% - 16px)
  );
  padding: 8px 10px;
  pointer-events: none;
  border: 1px solid rgba(224, 204, 126, 0.35);
  border-radius: 7px;
  background: rgba(5, 8, 13, 0.97);
  color: #eef2f6;
  box-shadow:
    0 10px 28px
    rgba(0, 0, 0, 0.42);
  font-size: 0.7rem;
  line-height: 1.35;
}

.mv-panorama-axis-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #667487;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

@media (max-width: 640px) {
  .mv-panorama-panel {
    padding: 12px;
  }

  .mv-panorama-plot {
    height: 370px;
  }

  .mv-panorama-axis-note {
    flex-direction: column;
    gap: 3px;
  }
}
/*
 * POLYALERT_EXPANDABLE_CHART_CARDS_V1
 */

.pa-chart-card-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.pa-expandable-chart-card {
  position: relative;
  min-width: 0;
  margin-top: 0 !important;
  overflow: hidden;
}

.pa-expandable-chart-card:not(.is-expanded) {
  height: 340px;
  cursor: zoom-in;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.pa-expandable-chart-card:not(.is-expanded):hover {
  border-color:
    rgba(221, 197, 105, 0.36);
  box-shadow:
    0 15px 38px
    rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.pa-chart-card-launch {
  position: absolute;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(3, 7, 12, 0.45) 100%
    );
  color: inherit;
  cursor: zoom-in;
}

.pa-chart-card-launch:focus-visible {
  outline:
    2px solid
    rgba(235, 211, 119, 0.86);
  outline-offset: -4px;
}

.pa-chart-card-launch-badge {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid
    rgba(222, 198, 108, 0.36);
  border-radius: 6px;
  background:
    rgba(5, 9, 14, 0.88);
  color: #d7c16e;
  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.3);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  pointer-events: none;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-question-panel {
  display: none;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-workspace {
  grid-template-columns:
    minmax(0, 1fr);
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  height: 205px !important;
  min-height: 205px !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-axis-note {
  display: none;
}

#marketVolumePanoramaPanel.pa-expandable-chart-card:not(.is-expanded)
  .mv-panorama-plot {
  height: 210px;
  min-height: 210px;
}

#marketVolumePanoramaPanel.pa-expandable-chart-card:not(.is-expanded)
  .mv-panorama-axis-note {
  display: none;
}

body.pa-chart-modal-open {
  overflow: hidden;
}

.pa-chart-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    rgba(1, 4, 8, 0.93);
  backdrop-filter:
    blur(8px);
}

.pa-chart-modal-shell {
  width:
    min(
      1680px,
      calc(100vw - 20px)
    );
  height:
    calc(100vh - 20px);
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr);
  overflow: hidden;
  border:
    1px solid
    rgba(187, 202, 221, 0.2);
  border-radius: 14px;
  background: #070b11;
  box-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.65);
}

.pa-chart-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border-bottom:
    1px solid
    rgba(173, 190, 212, 0.14);
  background:
    rgba(10, 15, 23, 0.97);
}

.pa-chart-modal-title {
  min-width: 0;
  overflow: hidden;
  color: #e4ebf3;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-chart-modal-close {
  flex: 0 0 auto;
  padding: 7px 10px;
  border:
    1px solid
    rgba(220, 197, 109, 0.38);
  border-radius: 6px;
  background:
    rgba(220, 197, 109, 0.08);
  color: #dfc86f;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.pa-chart-modal-close:hover,
.pa-chart-modal-close:focus-visible {
  background:
    rgba(220, 197, 109, 0.15);
  outline: none;
}

.pa-chart-modal-shell
  .pa-expandable-chart-card.is-expanded {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

#probabilityValuePanel.is-expanded
  .pv-workspace {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(290px, 370px);
  align-items: stretch;
}

#probabilityValuePanel.is-expanded
  #pvChart {
  height:
    calc(100vh - 235px) !important;
  min-height: 540px !important;
}

#probabilityValuePanel.is-expanded
  .pv-question-panel {
  max-height:
    calc(100vh - 235px);
}

#marketVolumePanoramaPanel.is-expanded
  .mv-panorama-plot {
  height:
    calc(100vh - 190px);
  min-height: 560px;
}

@media (max-width: 980px) {
  .pa-chart-card-grid {
    grid-template-columns: 1fr;
  }

  .pa-expandable-chart-card:not(.is-expanded) {
    height: 330px;
  }

  #probabilityValuePanel.is-expanded
    .pv-workspace {
    grid-template-columns: 1fr;
  }

  #probabilityValuePanel.is-expanded
    .pv-question-panel {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  .pa-chart-modal-backdrop {
    padding: 0;
  }

  .pa-chart-modal-shell {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .pa-expandable-chart-card:not(.is-expanded) {
    height: 315px;
  }

  #probabilityValuePanel.is-expanded
    #pvChart {
    height: 62vh !important;
    min-height: 420px !important;
  }

  #marketVolumePanoramaPanel.is-expanded
    .mv-panorama-plot {
    height: 76vh;
    min-height: 460px;
  }
}
/*
 * POLYALERT_PROBABILITY_VALUE_LEGEND_TOP_V2
 */

#probabilityValuePanel
  .pv-axis-note-top {
  display: grid;
  grid-template-columns:
    minmax(185px, 0.55fr)
    minmax(0, 1.9fr);
  gap: 8px 18px;
  align-items: start;
  margin: 0 0 7px;
  padding: 6px 9px;
  border:
    1px solid
    rgba(160, 179, 204, 0.1);
  border-radius: 7px;
  background:
    rgba(5, 9, 14, 0.42);
  color: #7d8a9b;
  font-size: 0.56rem;
  font-weight: 680;
  line-height: 1.38;
  letter-spacing: 0.035em;
}

#probabilityValuePanel
  .pv-axis-note-top span {
  display: block;
  min-width: 0;
}

#probabilityValuePanel
  .pv-axis-note-top strong {
  color: #cfba69;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

/*
 * Anteprima della card:
 * legenda nascosta e altezza utile maggiore.
 */

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-axis-note-top {
  display: none;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  height: 228px !important;
  min-height: 228px !important;
}

/*
 * Vista estesa:
 * la sezione e il contenitore del grafico diventano
 * flessibili e utilizzano tutto lo spazio residuo.
 */

#probabilityValuePanel.is-expanded {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#probabilityValuePanel.is-expanded
  .pv-chart-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#probabilityValuePanel.is-expanded
  .pv-axis-note-top {
  flex: 0 0 auto;
}

#probabilityValuePanel.is-expanded
  #pvChart {
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

/*
 * Eventuale elenco laterale:
 * mantiene la stessa altezza utile del grafico.
 */

#probabilityValuePanel.is-expanded
  .pv-workspace {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-items: stretch;
}

#probabilityValuePanel.is-expanded
  .pv-question-panel {
  height: 100%;
  min-height: 0;
  max-height: none;
}

@media (max-width: 980px) {
  #probabilityValuePanel
    .pv-axis-note-top {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #probabilityValuePanel.is-expanded {
    overflow: auto;
  }

  #probabilityValuePanel.is-expanded
    .pv-chart-shell {
    flex: 0 0 auto;
    height: auto;
  }

  #probabilityValuePanel.is-expanded
    #pvChart {
    flex: none;
    height: 60vh !important;
    min-height: 420px !important;
  }

  #probabilityValuePanel.is-expanded
    .pv-question-panel {
    height: auto;
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  #probabilityValuePanel
    .pv-axis-note-top {
    font-size: 0.53rem;
  }

  #probabilityValuePanel.is-expanded
    #pvChart {
    height: 56vh !important;
    min-height: 380px !important;
  }
}
/*
 * POLYALERT_PROBABILITY_VALUE_STATIC_HEADER_V4
 */

#probabilityValuePanel
  .pv-static-header {
  display: block;
  width: 100%;
  padding: 14px 15px 12px;
  border: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 18, 27, 0.94),
      rgba(8, 13, 20, 0.88)
    );
  color: inherit;
  cursor: default;
  text-align: left;
  pointer-events: auto;
}

#probabilityValuePanel
  .pv-static-header:hover {
  background:
    linear-gradient(
      180deg,
      rgba(12, 18, 27, 0.94),
      rgba(8, 13, 20, 0.88)
    );
}

#probabilityValuePanel
  .pv-static-header:focus {
  outline: none;
}

#probabilityValuePanel
  .pv-static-header
  .pv-heading {
  display: block;
  width: 100%;
}

#probabilityValuePanel
  .pv-static-header
  #pvPanelTitle {
  display: block;
  margin-top: 2px;
}

#probabilityValuePanel
  .pv-static-header
  .pv-subtitle {
  display: block;
  margin-top: 5px;
}

/*
 * Il precedente comando MOSTRA/NASCONDI
 * non deve più comparire.
 */

#probabilityValuePanel
  .pv-toggle-side,
#probabilityValuePanel
  #pvToggleLabel,
#probabilityValuePanel
  .pv-chevron {
  display: none !important;
}

/*
 * La sezione rimane sempre aperta anche qualora
 * nel browser esista una vecchia preferenza
 * memorizzata.
 */

#probabilityValuePanel
  #pvContent[hidden] {
  display: block !important;
}

#probabilityValuePanel.is-collapsed
  #pvContent {
  display: block !important;
}

#probabilityValuePanel.is-collapsed
  .pv-content {
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/*
 * Definizione degli assi nella testata superiore.
 */

#probabilityValuePanel
  .pv-axis-note-header {
  display: grid;
  grid-template-columns:
    minmax(210px, 0.62fr)
    minmax(0, 1.75fr);
  gap: 12px 28px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  border:
    1px solid
    rgba(169, 188, 212, 0.16);
  border-radius: 9px;
  background:
    rgba(4, 8, 13, 0.52);
  color: #b5c0ce;
  font-size: 0.78rem;
  font-weight: 570;
  line-height: 1.52;
  letter-spacing: 0.012em;
}

#probabilityValuePanel
  .pv-axis-definition {
  display: grid;
  grid-template-columns:
    auto
    minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

#probabilityValuePanel
  .pv-axis-definition
  > strong {
  padding-top: 1px;
  color: #dec66d;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

#probabilityValuePanel
  .pv-axis-definition
  > span {
  min-width: 0;
  color: #b8c3d0;
}

#probabilityValuePanel
  .pv-axis-definition
  b {
  color: #d8e0e9;
  font-weight: 760;
}

/*
 * Nella piccola anteprima della card la legenda
 * rimane nascosta per lasciare più spazio al grafico.
 */

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-axis-note-header {
  display: none;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-static-header {
  padding-bottom: 10px;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  height: 228px !important;
  min-height: 228px !important;
}

/*
 * Vista estesa: testata in alto e grafico nello
 * spazio verticale restante.
 */

#probabilityValuePanel.is-expanded {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#probabilityValuePanel.is-expanded
  .pv-static-header {
  flex: 0 0 auto;
}

#probabilityValuePanel.is-expanded
  .pv-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#probabilityValuePanel.is-expanded
  .pv-status-row {
  flex: 0 0 auto;
}

#probabilityValuePanel.is-expanded
  .pv-chart-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

#probabilityValuePanel.is-expanded
  #pvChart {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}

@media (max-width: 980px) {
  #probabilityValuePanel
    .pv-axis-note-header {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.73rem;
  }

  #probabilityValuePanel.is-expanded {
    overflow: auto;
  }

  #probabilityValuePanel.is-expanded
    .pv-content {
    flex: 0 0 auto;
    overflow: visible;
  }

  #probabilityValuePanel.is-expanded
    .pv-chart-shell {
    flex: none;
    height: auto;
  }

  #probabilityValuePanel.is-expanded
    #pvChart {
    flex: none;
    height: 58vh !important;
    min-height: 410px !important;
  }
}

@media (max-width: 600px) {
  #probabilityValuePanel
    .pv-static-header {
    padding:
      12px
      11px
      10px;
  }

  #probabilityValuePanel
    .pv-axis-note-header {
    padding: 10px;
    font-size: 0.7rem;
  }

  #probabilityValuePanel
    .pv-axis-definition {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  #probabilityValuePanel.is-expanded
    #pvChart {
    height: 54vh !important;
    min-height: 370px !important;
  }
}
/*
 * POLYALERT_SINGLE_PRESET_7PCT_FRONTEND_V1
 */

.single-preset-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 320px;
  padding: 10px 13px;
  border:
    1px solid
    rgba(220, 194, 100, 0.27);
  border-radius: 9px;
  background:
    linear-gradient(
      135deg,
      rgba(214, 183, 79, 0.085),
      rgba(8, 13, 20, 0.7)
    );
}

.single-preset-summary
  .preset-dot {
  flex: 0 0 auto;
}

.single-preset-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.single-preset-copy small {
  color: #d8c16b;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.085em;
}

.single-preset-copy strong {
  color: #d7e0ea;
  font-size: 0.75rem;
  font-weight: 680;
}

#singlePresetCount {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 6px 8px;
  border:
    1px solid
    rgba(215, 190, 99, 0.22);
  border-radius: 7px;
  background:
    rgba(4, 8, 13, 0.58);
  color: #e0c96f;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 760px) {
  .single-preset-summary {
    width: 100%;
    min-width: 0;
  }
}
/*
 * POLYALERT_COMPACT_CHART_NO_SCROLLBAR_V1
 *
 * La card compatta del grafico 0–16% deve essere
 * una semplice anteprima, priva di scorrimento.
 * La vista estesa non viene modificata.
 */

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded) {
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-content {
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-chart-shell {
  min-height: 0 !important;
  max-height: 194px !important;
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  width: 100%;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  overflow: hidden !important;
}

/*
 * Protezione aggiuntiva contro barre generate
 * dal browser nei contenitori interni della preview.
 */

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-content,
#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-chart-shell,
#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-content::-webkit-scrollbar,
#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-chart-shell::-webkit-scrollbar,
#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
/*
 * POLYALERT_MATRIX_RAIN_BACKGROUND_V1
 */

body {
  position: relative;
  isolation: isolate;
}

.matrix-rain-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.27;
  pointer-events: none;
  user-select: none;
  filter:
    saturate(0.88)
    brightness(0.82);
}

/*
 * Un velo scuro mantiene leggibili testi, grafici
 * e tabelle senza nascondere l'animazione.
 */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 35%,
      transparent 0,
      rgba(2, 6, 9, 0.08) 48%,
      rgba(2, 5, 8, 0.3) 100%
    );
}

@media (max-width: 700px) {
  .matrix-rain-background {
    opacity: 0.17;
    filter:
      saturate(0.78)
      brightness(0.74);
  }
}

@media (prefers-reduced-motion: reduce) {
  .matrix-rain-background {
    display: none !important;
  }
}
/*
 * POLYALERT_REMOVE_LEGACY_GRID_V1
 *
 * Rimuove esclusivamente la precedente trama
 * geometrica. Il canvas Matrix e la vignettatura
 * body::after restano attivi.
 */

html,
body {
  background-image: none !important;
}

/*
 * Neutralizza eventuali livelli della vecchia
 * griglia realizzati con pseudo-elementi.
 * body::after non è incluso perché appartiene
 * al nuovo sfondo Matrix.
 */

body::before,
.main-shell::before,
.shell::before,
.monitor::before {
  background-image: none !important;
}

/*
 * Neutralizza eventuali gradienti ripetuti
 * applicati direttamente ai contenitori esterni,
 * senza alterare le superfici delle card.
 */

.main-shell,
body > .shell {
  background-image: none !important;
}
/*
 * POLYALERT_READABLE_COPY_REMOVE_DETAILED_METRIC_V1
 */

/*
 * Dopo la rimozione di LETTURE DETTAGLIATE,
 * le tre statistiche residue occupano tutta
 * la larghezza disponibile.
 */

.pa-summary-three-metrics {
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    ) !important;
}

/*
 * Incremento moderato dei microtesti.
 * Titoli, valori principali e dati numerici
 * mantengono le proprie dimensioni originali.
 */

:root {
  --pa-readable-microcopy:
    clamp(
      0.72rem,
      0.68rem + 0.11vw,
      0.82rem
    );
}

main small,
main [class*="kicker"],
main [class*="subtitle"],
main [class*="status"],
main [class*="coverage"],
main .data-quality,
main .sort-control > span,
main .filter-chip,
main .single-preset-copy small,
main .single-preset-copy strong,
main .detail-section-title,
main .drawer-kicker,
main .mobile-card span,
main th,
footer,
.brand-subtitle,
.update-card {
  font-size:
    var(
      --pa-readable-microcopy
    ) !important;

  line-height: 1.46;
}

.pa-summary-three-metrics {
  font-size:
    var(
      --pa-readable-microcopy
    );
}

#probabilityValuePanel
  .pv-axis-note-header {
  font-size:
    clamp(
      0.76rem,
      0.72rem + 0.1vw,
      0.84rem
    ) !important;
}

#probabilityValuePanel
  .pv-axis-definition
  > strong {
  font-size:
    clamp(
      0.74rem,
      0.7rem + 0.1vw,
      0.82rem
    ) !important;
}

.pv-axis-label,
.pv-threshold-text {
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .pa-summary-three-metrics {
    grid-template-columns: 1fr !important;
  }

  :root {
    --pa-readable-microcopy: 0.74rem;
  }
}
/*
 * POLYALERT_MATRIX_NEWS_VISIBLE_GLOW_V2
 *
 * Il canvas non viene più attenuato nel suo insieme.
 * Le lettere normali sono state rese più trasparenti
 * direttamente nel JavaScript, mentre N E W S possono
 * conservare il loro vero bagliore.
 */

.matrix-rain-background {
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 700px) {
  .matrix-rain-background {
    opacity: 1 !important;
    filter: none !important;
  }
}
/*
 * POLYALERT_PROBABILITY_RESPONSIVE_LAYOUT_V1
 *
 * Titolo a sinistra, criteri a destra.
 * Il grafico usa dinamicamente tutto lo spazio
 * verticale residuo, senza barre di scorrimento.
 */

/* -------------------------------------------------
 * TESTATA ORIZZONTALE
 * ------------------------------------------------- */

#probabilityValuePanel
  .pv-static-header
  .pv-heading {
  display: grid !important;
  grid-template-columns:
    minmax(230px, 0.82fr)
    minmax(320px, 1.18fr);
  grid-template-areas:
    "kicker subtitle"
    "title  subtitle"
    "legend legend";
  column-gap: 24px;
  row-gap: 3px;
  align-items: center;
  width: 100%;
}

#probabilityValuePanel
  .pv-static-header
  .pv-kicker {
  grid-area: kicker;
  align-self: end;
}

#probabilityValuePanel
  .pv-static-header
  #pvPanelTitle {
  grid-area: title;
  align-self: start;
  min-width: 0;
  margin: 0 !important;
}

#probabilityValuePanel
  .pv-static-header
  .pv-subtitle {
  grid-area: subtitle;
  justify-self: end;
  align-self: center;
  max-width: 680px;
  margin: 0 !important;
  color: #9eabb9;
  font-size:
    clamp(
      0.7rem,
      0.66rem + 0.1vw,
      0.79rem
    ) !important;
  font-weight: 590;
  line-height: 1.42;
  text-align: right;
}

#probabilityValuePanel
  .pv-static-header
  .pv-axis-note-header {
  grid-area: legend;
}

/* -------------------------------------------------
 * CARD COMPATTA
 * ------------------------------------------------- */

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-static-header {
  flex: 0 0 auto;
  padding:
    12px
    14px
    9px;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-axis-note-header {
  display: none !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-content {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  width: 100%;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-status-row {
  flex: 0 0 auto;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  .pv-chart-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

#probabilityValuePanel.pa-expandable-chart-card:not(.is-expanded)
  #pvChart {
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

/* -------------------------------------------------
 * VISUALIZZAZIONE A TUTTO SCHERMO
 * ------------------------------------------------- */

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
}

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded
  .pv-static-header {
  flex: 0 0 auto;
  padding:
    12px
    16px
    10px;
}

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded
  .pv-content {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  width: 100%;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded
  .pv-status-row {
  flex: 0 0 auto;
}

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded
  .pv-chart-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.pa-chart-modal-shell
  #probabilityValuePanel.is-expanded
  #pvChart {
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

/*
 * Impedisce al contenitore generale della card
 * estesa di introdurre una barra verticale.
 */

.pa-chart-modal-shell
  .pa-expandable-chart-card.is-expanded {
  min-height: 0;
  overflow: hidden !important;
}

/*
 * Nessuna barra nei contenitori del grafico.
 */

#probabilityValuePanel
  .pv-content,
#probabilityValuePanel
  .pv-chart-shell,
#probabilityValuePanel
  #pvChart {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#probabilityValuePanel
  .pv-content::-webkit-scrollbar,
#probabilityValuePanel
  .pv-chart-shell::-webkit-scrollbar,
#probabilityValuePanel
  #pvChart::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* -------------------------------------------------
 * SCHERMI INTERMEDI E MOBILE
 * ------------------------------------------------- */

@media (max-width: 900px) {
  #probabilityValuePanel
    .pv-static-header
    .pv-heading {
    grid-template-columns:
      minmax(190px, 0.72fr)
      minmax(280px, 1.28fr);
    column-gap: 16px;
  }

  #probabilityValuePanel
    .pv-static-header
    .pv-subtitle {
    font-size: 0.69rem !important;
  }
}

@media (max-width: 700px) {
  #probabilityValuePanel
    .pv-static-header
    .pv-heading {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "subtitle"
      "legend";
    row-gap: 4px;
  }

  #probabilityValuePanel
    .pv-static-header
    .pv-subtitle {
    justify-self: start;
    max-width: none;
    margin-top: 3px !important;
    text-align: left;
  }

  /*
   * Su mobile la finestra estesa conserva comunque
   * il grafico nello spazio disponibile, senza
   * obbligare la pagina a scorrere.
   */

  .pa-chart-modal-shell
    #probabilityValuePanel.is-expanded
    #pvChart {
    height: 100% !important;
    min-height: 0 !important;
  }
}
/*
 * POLYALERT_CHART_ZOOM_CONTROLS_V1
 */

#probabilityValuePanel
  .pv-chart-shell {
  position: relative;
}

.pa-chart-zoom-controls {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 12;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border:
    1px solid
    rgba(220, 198, 108, 0.28);
  border-radius: 8px;
  background:
    rgba(4, 8, 13, 0.91);
  box-shadow:
    0 8px 25px
    rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(7px);
}

#probabilityValuePanel.is-expanded
  .pa-chart-zoom-controls,
#marketVolumePanoramaPanel.is-expanded
  .pa-chart-zoom-controls {
  display: flex;
}

.pa-chart-zoom-controls button {
  min-width: 29px;
  height: 27px;
  padding: 0 7px;
  border:
    1px solid
    rgba(190, 204, 222, 0.2);
  border-radius: 5px;
  background:
    rgba(255, 255, 255, 0.035);
  color: #d7e0e9;
  font: 800 0.66rem/1
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  cursor: pointer;
}

.pa-chart-zoom-controls button:hover,
.pa-chart-zoom-controls button:focus-visible {
  border-color:
    rgba(222, 199, 108, 0.55);
  background:
    rgba(222, 199, 108, 0.1);
  color: #efd77c;
  outline: none;
}

.pa-chart-zoom-range {
  min-width: 74px;
  color: #e1ca70;
  font: 800 0.64rem/1
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  text-align: center;
  white-space: nowrap;
}

.pa-chart-zoom-hint {
  padding: 0 5px;
  color: #8290a1;
  font: 750 0.55rem/1
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

#probabilityValuePanel.is-expanded
  #pvChart,
#marketVolumePanoramaPanel.is-expanded
  #marketVolumePanoramaCanvas {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#probabilityValuePanel.is-expanded
  #pvChart.is-panning,
#marketVolumePanoramaPanel.is-expanded
  #marketVolumePanoramaCanvas.is-panning {
  cursor: grabbing;
}

#probabilityValuePanel.is-expanded
  #pvChart {
  overflow: hidden !important;
}

#probabilityValuePanel.is-expanded
  #pvChart svg {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#marketVolumePanoramaPanel.is-expanded
  .mv-panorama-plot {
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .pa-chart-zoom-hint {
    display: none;
  }

  .pa-chart-zoom-controls {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .pa-chart-zoom-range {
    min-width: 63px;
    font-size: 0.59rem;
  }

  .pa-chart-zoom-controls button {
    min-width: 27px;
    padding: 0 5px;
  }
}
/*
 * POLYALERT_STATIC_THREE_COLUMN_HEADER_V1
 *
 * Logo a sinistra, titolo realmente centrato,
 * aggiornamento a destra.
 */

.terminal-header-inner.pa-terminal-header-three {
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns:
    minmax(290px, 1fr)
    minmax(430px, 1.55fr)
    minmax(290px, 1fr) !important;
  align-items: center !important;
  gap: 18px 24px !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Logo */

.pa-terminal-header-three
  .brand {
  justify-self: start;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
}

.pa-terminal-header-three
  .brand-symbol {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.86rem !important;
}

.pa-terminal-header-three
  .brand-name {
  font-size:
    clamp(
      1rem,
      0.93rem + 0.22vw,
      1.18rem
    ) !important;
  line-height: 1 !important;
}

.pa-terminal-header-three
  .brand-product {
  margin-left: 3px;
  padding-left: 12px;
  border-left:
    1px solid
    rgba(158, 176, 199, 0.2);
  font-size: 0.67rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0.13em !important;
}

/* Titolo centrale */

.pa-header-title {
  justify-self: stretch;
  min-width: 0;
  text-align: center;
}

.pa-header-title h1 {
  margin: 0 !important;
  color: var(--text);
  font-size:
    clamp(
      1.18rem,
      0.95rem + 0.55vw,
      1.65rem
    ) !important;
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: center;
  white-space: nowrap;
}

/* Aggiornamento a destra */

.pa-terminal-header-three
  .pa-header-status {
  justify-self: end;
  width: auto;
  margin-left: 0 !important;
}

.pa-terminal-header-three
  .header-update-card {
  min-width: 300px !important;
  min-height: 53px !important;
  padding: 9px 12px !important;
  gap: 4px 12px !important;
}

.pa-terminal-header-three
  .header-update-card
  > span {
  font-size: 0.7rem !important;
  line-height: 1 !important;
  letter-spacing: 0.075em !important;
}

.pa-terminal-header-three
  .header-update-card
  > strong {
  font-size: 0.84rem !important;
  line-height: 1.1 !important;
}

.pa-terminal-header-three
  .header-update-card
  > small {
  font-size: 0.73rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.035em !important;
}

/*
 * Il titolo è ora nella testata:
 * la vecchia fascia non deve occupare spazio.
 */

.main-shell
  > .topline {
  display: none !important;
}

@media (max-width: 1120px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns:
      minmax(220px, 1fr)
      minmax(330px, 1.45fr)
      minmax(245px, 1fr) !important;
    gap: 12px 16px !important;
  }

  .pa-header-title h1 {
    font-size: 1.13rem !important;
    white-space: normal;
    text-wrap: balance;
  }

  .pa-terminal-header-three
    .header-update-card {
    min-width: 245px !important;
  }
}

@media (max-width: 820px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 12px !important;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .pa-terminal-header-three
    .brand,
  .pa-header-title,
  .pa-terminal-header-three
    .pa-header-status {
    justify-self: center;
  }

  .pa-header-title h1 {
    max-width: 680px;
    font-size: 1.15rem !important;
  }

  .pa-terminal-header-three
    .header-update-card {
    min-width: min(
      300px,
      calc(100vw - 32px)
    ) !important;
  }
}
/* POLYALERT_HEADER_PREMIUM_NO_KPI_V3_START */

/* Tre card superiori eliminate dalla vista. */

.kpi-strip,
.kpi-strip[hidden] {
  display: none !important;
}

/* ==================================================
 * TESTATA MAGGIORATA DI CIRCA IL 20%
 * ================================================== */

.terminal-header-inner.pa-terminal-header-three {
  min-height: 100px !important;

  grid-template-columns:
    minmax(330px, 1fr)
    minmax(500px, 1.55fr)
    minmax(330px, 1fr) !important;

  gap: 20px 28px !important;

  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* ==================================================
 * LOGO SINISTRO STATICO
 * ================================================== */

.pa-terminal-header-three
  > .brand {
  position: relative;
  z-index: 5;
  isolation: isolate;
  gap: 12px !important;
}

/*
 * Disabilita esplicitamente qualsiasi effetto
 * dinamico sul logo e sui suoi discendenti.
 */

.pa-terminal-header-three
  > .brand,
.pa-terminal-header-three
  > .brand *,
.pa-terminal-header-three
  > .brand::before,
.pa-terminal-header-three
  > .brand::after,
.pa-terminal-header-three
  > .brand
  *::before,
.pa-terminal-header-three
  > .brand
  *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip:
    border-box !important;
  -webkit-text-fill-color:
    currentColor !important;
}

.pa-terminal-header-three
  > .brand::before,
.pa-terminal-header-three
  > .brand::after,
.pa-terminal-header-three
  > .brand
  *::before,
.pa-terminal-header-three
  > .brand
  *::after {
  content: none !important;
  display: none !important;
}

/* Simbolo P statico. */

.pa-terminal-header-three
  > .brand
  .brand-symbol {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px;

  border:
    1px solid
    rgba(72, 224, 149, 0.34) !important;

  border-radius: 6px;

  background:
    rgba(12, 38, 29, 0.96) !important;

  color: #4be49a !important;

  font-size: 1rem !important;
  font-weight: 850 !important;

  box-shadow:
    inset 0 0 0 1px
      rgba(83, 237, 162, 0.04),
    0 0 9px
      rgba(83, 237, 162, 0.045) !important;
}

/* POLYalert statico. */

.pa-terminal-header-three
  > .brand
  .brand-name {
  color: #f0f4f7 !important;

  font-size:
    clamp(
      1.2rem,
      1.11rem + 0.25vw,
      1.42rem
    ) !important;

  font-weight: 850 !important;
  line-height: 1 !important;
}

.pa-terminal-header-three
  > .brand
  .brand-name
  span {
  color: #42df92 !important;
}

/* MARKET MONITOR statico. */

.pa-terminal-header-three
  > .brand
  .brand-product {
  margin-left: 5px;
  padding-left: 14px;

  color: #8998aa !important;

  font-size: 0.8rem !important;
  font-weight: 760 !important;
  line-height: 1.34 !important;
  letter-spacing: 0.14em !important;
}

/* ==================================================
 * AREA EFFETTO DEL SOLO TITOLO
 * ================================================== */

.pa-header-title {
  position: relative;
  z-index: 1;
  isolation: isolate;
  contain: paint;
  overflow: hidden;

  min-width: 0;

  margin: -12px -22px;
  padding: 12px 22px;

  text-align: center;
}

/* ==================================================
 * TITOLO ARGENTO SPAZZOLATO E VERDE
 * ================================================== */

.pa-header-title
  > #pageTitle {
  position: relative;
  z-index: 1;
  display: inline-block;

  margin: 0 !important;

  color: transparent !important;

  -webkit-text-fill-color:
    transparent !important;

  font-size:
    clamp(
      1.42rem,
      1.16rem + 0.68vw,
      1.98rem
    ) !important;

  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.027em;
  white-space: nowrap;

  background-image:
    linear-gradient(
      108deg,
      #87939f 0%,
      #d4dce4 8%,
      #ffffff 16%,
      #a3adb8 25%,
      #eef3f7 35%,
      #77e7b0 43%,
      #fbfdff 51%,
      #b7c1cb 61%,
      #4ed999 69%,
      #e5ebf0 78%,
      #ffffff 89%,
      #8c97a3 100%
    ) !important;

  background-size:
    285% 100% !important;

  background-position:
    0% 50%;

  background-clip:
    text !important;

  -webkit-background-clip:
    text !important;

  text-shadow:
    0 0 1px
      rgba(255, 255, 255, 0.22),
    0 0 10px
      rgba(87, 226, 158, 0.085),
    0 0 24px
      rgba(87, 226, 158, 0.038);

  filter:
    drop-shadow(
      0 1px 0
      rgba(255, 255, 255, 0.11)
    )
    drop-shadow(
      0 0 11px
      rgba(72, 220, 150, 0.075)
    );

  animation:
    polyalertPremiumMetalFlowV3
      14s
      ease-in-out
      infinite,
    polyalertPremiumPulseV3
      7.8s
      ease-in-out
      infinite;
}

/* Riflesso argenteo mobile. */

.pa-header-title
  > #pageTitle::after {
  content: "";
  position: absolute;
  z-index: 2;

  top: -18%;
  bottom: -18%;
  left: -25%;
  width: 18%;

  pointer-events: none;
  opacity: 0;

  background:
    linear-gradient(
      104deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.58) 48%,
      rgba(172, 255, 214, 0.27) 58%,
      transparent 100%
    );

  transform:
    translateX(-135%)
    skewX(-18deg);

  mix-blend-mode: screen;

  animation:
    polyalertSilverReflectionV3
      9.2s
      ease-in-out
      infinite;
}

/* Bagliore verde inferiore discreto. */

.pa-header-title
  > #pageTitle::before {
  content: "";
  position: absolute;
  z-index: -1;

  left: 12%;
  right: 12%;
  bottom: -7px;
  height: 8px;

  pointer-events: none;

  opacity: 0.15;
  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(65, 224, 148, 0.4),
      transparent 68%
    );

  filter: blur(7px);

  animation:
    polyalertUnderglowV3
      7.8s
      ease-in-out
      infinite;
}

@keyframes polyalertPremiumMetalFlowV3 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes polyalertPremiumPulseV3 {
  0%,
  100% {
    text-shadow:
      0 0 1px
        rgba(255, 255, 255, 0.17),
      0 0 8px
        rgba(87, 226, 158, 0.05),
      0 0 17px
        rgba(87, 226, 158, 0.022);
  }

  50% {
    text-shadow:
      0 0 1px
        rgba(255, 255, 255, 0.29),
      0 0 14px
        rgba(87, 226, 158, 0.12),
      0 0 30px
        rgba(87, 226, 158, 0.05);
  }
}

@keyframes polyalertSilverReflectionV3 {
  0%,
  13% {
    left: -25%;
    opacity: 0;
  }

  19% {
    opacity: 0.72;
  }

  31% {
    left: 108%;
    opacity: 0;
  }

  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes polyalertUnderglowV3 {
  0%,
  100% {
    opacity: 0.1;
    transform: scaleX(0.86);
  }

  50% {
    opacity: 0.23;
    transform: scaleX(1);
  }
}

/* ==================================================
 * AGGIORNAMENTO MAGGIORATO
 * ================================================== */

.pa-terminal-header-three
  .header-update-card {
  min-width: 350px !important;
  min-height: 64px !important;

  padding: 11px 15px !important;
  gap: 6px 14px !important;
}

.pa-terminal-header-three
  .header-update-card
  > span {
  font-size: 0.84rem !important;
  line-height: 1.05 !important;
  letter-spacing: 0.075em !important;
}

.pa-terminal-header-three
  .header-update-card
  > strong {
  font-size: 1rem !important;
  line-height: 1.08 !important;
}

.pa-terminal-header-three
  .header-update-card
  > small {
  font-size: 0.88rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0.03em !important;
}

/* ==================================================
 * RESPONSIVE
 * ================================================== */

@media (max-width: 1180px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns:
      minmax(245px, 1fr)
      minmax(350px, 1.5fr)
      minmax(275px, 1fr) !important;

    gap: 14px 18px !important;
  }

  .pa-terminal-header-three
    > .brand
    .brand-product {
    font-size: 0.7rem !important;
  }

  .pa-header-title
    > #pageTitle {
    font-size: 1.38rem !important;
    white-space: normal;
    text-wrap: balance;
  }

  .pa-terminal-header-three
    .header-update-card {
    min-width: 275px !important;
  }
}

@media (max-width: 820px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns: 1fr !important;
    min-height: auto !important;

    padding-top: 17px !important;
    padding-bottom: 17px !important;
  }

  .pa-terminal-header-three
    > .brand,
  .pa-header-title,
  .pa-terminal-header-three
    .pa-header-status {
    justify-self: center;
  }

  .pa-header-title
    > #pageTitle {
    max-width: 680px;
    font-size: 1.35rem !important;
  }

  .pa-terminal-header-three
    .header-update-card {
    min-width:
      min(
        350px,
        calc(100vw - 32px)
      ) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-header-title
    > #pageTitle,
  .pa-header-title
    > #pageTitle::before,
  .pa-header-title
    > #pageTitle::after {
    animation: none !important;
  }
}

/* POLYALERT_HEADER_PREMIUM_NO_KPI_V3_END */

/* POLYALERT_HEADER_TITLE_AUTOFIT_V6_START */

/*
 * Distribuzione della testata:
 * logo e aggiornamento mantengono una larghezza
 * controllata; il titolo riceve tutto lo spazio
 * centrale rimanente.
 */

.terminal-header-inner.pa-terminal-header-three {
  grid-template-columns:
    minmax(245px, 300px)
    minmax(0, 1fr)
    minmax(320px, 350px) !important;

  gap: 18px 24px !important;
}

/*
 * Area centrale ritagliata esclusivamente
 * per contenere titolo, riflessi e bagliori.
 */

.pa-header-title {
  position: relative;
  min-width: 0 !important;
  width: 100% !important;

  margin: -12px -14px !important;
  padding: 12px 14px !important;

  overflow: hidden !important;
  contain: paint;
  isolation: isolate;

  text-align: center !important;
}

/*
 * La dimensione è fornita dinamicamente
 * dallo script tramite --pa-title-fit-size.
 */

.pa-header-title
  > #pageTitle {
  display: inline-block !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;

  white-space: nowrap !important;
  overflow: visible !important;

  font-size:
    var(
      --pa-title-fit-size,
      24px
    ) !important;

  line-height: 1.08 !important;
  letter-spacing: -0.032em !important;

  text-align: center !important;
}

/*
 * Il logo continua a essere completamente
 * escluso da animazioni e riflessi.
 */

.pa-terminal-header-three
  > .brand,
.pa-terminal-header-three
  > .brand *,
.pa-terminal-header-three
  > .brand::before,
.pa-terminal-header-three
  > .brand::after,
.pa-terminal-header-three
  > .brand
  *::before,
.pa-terminal-header-three
  > .brand
  *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

/*
 * Testata intermedia.
 */

@media (max-width: 1120px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns:
      minmax(205px, 245px)
      minmax(0, 1fr)
      minmax(270px, 290px) !important;

    gap: 14px 17px !important;
  }

  .pa-terminal-header-three
    .header-update-card {
    min-width: 270px !important;
  }
}

/*
 * Su telefono la testata diventa verticale
 * e il titolo può disporsi su più righe.
 */

@media (max-width: 820px) {
  .terminal-header-inner.pa-terminal-header-three {
    grid-template-columns: 1fr !important;
  }

  .pa-header-title {
    margin: 0 !important;
    padding: 6px 12px !important;
    overflow: visible !important;
    contain: none;
  }

  .pa-header-title
    > #pageTitle {
    max-width: 100% !important;

    white-space: normal !important;
    text-wrap: balance;

    font-size:
      clamp(
        1.25rem,
        5.3vw,
        1.72rem
      ) !important;
  }
}

/* POLYALERT_HEADER_TITLE_AUTOFIT_V6_END */

/* POLYALERT_LIST_HEADING_GREEN_FILL_V1_START */

/*
 * Fascia descrittiva semplice:
 * nessuna barra laterale e nessun effetto animato.
 */

.monitor-heading {
  min-height: 60px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 22px !important;

  padding:
    11px
    18px
    11px
    20px !important;

  border-left: 0 !important;

  background:
    linear-gradient(
      90deg,
      rgba(42, 198, 126, 0.025),
      rgba(255, 255, 255, 0.008) 60%,
      transparent 92%
    ) !important;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.022),
    inset 0 -1px 0
      rgba(62, 218, 147, 0.028) !important;
}

.monitor-heading::before,
.monitor-heading::after {
  content: none !important;
  display: none !important;
}

/*
 * Ripristina il contenitore del testo dopo
 * le precedenti trasformazioni.
 */

.monitor-heading
  > div:first-child {
  position: static !important;

  flex: 1 1 auto !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  clip: auto !important;
  clip-path: none !important;

  white-space: normal !important;
}

/* La vecchia etichetta tecnica resta nascosta. */

#presetKicker,
.monitor-kicker {
  display: none !important;
}

/*
 * Una sola riga.
 * Dimensione e spazio tra le parole vengono
 * calcolati dinamicamente dallo script.
 */

#monitorTitle {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;

  color: #58dda0 !important;

  -webkit-text-fill-color:
    #58dda0 !important;

  background: none !important;
  background-image: none !important;

  background-clip:
    border-box !important;

  -webkit-background-clip:
    border-box !important;

  font-family:
    var(--font-sans, sans-serif) !important;

  font-size:
    var(
      --pa-list-heading-size,
      16px
    ) !important;

  font-weight: 720 !important;

  line-height: 1.2 !important;

  letter-spacing:
    -0.012em !important;

  word-spacing:
    var(
      --pa-list-heading-word-spacing,
      0px
    ) !important;

  text-align: left !important;
  text-transform: none !important;

  text-shadow:
    0 0 8px
      rgba(67, 222, 151, 0.075) !important;

  filter: none !important;
  animation: none !important;
}

#monitorTitle::before,
#monitorTitle::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Stato sulla destra. */

.monitor-heading
  > :last-child {
  flex: 0 0 auto !important;

  margin-left: auto !important;

  white-space: nowrap !important;
}

/*
 * Anche su finestre strette resta una sola riga:
 * lo script riduce progressivamente il carattere.
 */

@media (max-width: 700px) {
  .monitor-heading {
    gap: 10px !important;

    padding:
      10px
      11px !important;
  }

  .monitor-heading
    > :last-child {
    font-size: 0.6rem !important;
  }
}

/* POLYALERT_LIST_HEADING_GREEN_FILL_V1_END */

/* POLYALERT_REMOVE_FILTER_TOOLBAR_V1_START */

/*
 * La barra tecnica rimane invisibile nel DOM
 * per compatibilità con il frontend.
 */

.monitor-toolbar,
.monitor-toolbar[hidden] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
important;
   border: 0 !important;
  overflow: hidden !important;
}

/* POLYALERT_REMOVE_FILTER_TOOLBAR_V1_END */

/* POLYALERT_REMOVE_EMPTY_GRID_V1_START */

/*
 * Elimina il quadrato decorativo presente
 * soltanto quando la lista è vuota.
 */

#emptyState .empty-grid,
.empty-terminal .empty-grid {
  display: none !important;
}

/*
 * Recupera lo spazio precedentemente occupato
 * dal quadrato e riallinea testo e statistiche.
 */

#emptyState.empty-terminal,
.empty-terminal {
  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  column-gap: 32px !important;
}

: 32px !important;
}

#emptyState .empty-copy,
.empty-terminal .empty-copy {
  grid-column: 1 !important;
  margin-left: 0 !important;
}

#emptyState .empty-stats,
.empty-terminal .empty-stats {
  grid-column: 2 !important;
  justify-self: end !important;
}

@media (max-width: 760px) {
  #emptyState.empty-terminal,
  .empty-terminal {
    grid-template-columns: 1fr !important;
    row-gap: 20px !important;
  }

  #emptyState .empty-copy,
  #emptyState .empty-stats,
  .empty-terminal .empty-copy,
  .empty-terminal .empty-stats {
    grid-column: 1 !important;
  }

  #emptyState .empty-stats,
  .empty-terminal .empty-stats {
    justify-self: start !important;
  }
}

/* POLYALERT_REMOVE_EMPTY_GRID_V1_END */

/* POLYALERT_LIST_SECTION_SEPARATION_V1_START */

/*
 * Stacco tra area grafici e sezione dei risultati.
 */

.monitor-heading {
  position: relative !important;

  min-height: 58px !important;

  margin-top: 22px !important;

  padding:
    11px
    18px
    11px
    18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 22px !important;

  border-top:
    1px solid
    rgba(137, 157, 176, 0.17) !important;

  border-bottom:
    1px solid
    rgba(137, 157, 176, 0.12) !important;

  border-left: 0 !important;

  background:
    linear-gradient(
      90deg,
      rgba(19, 30, 39, 0.96),
      rgba(15, 24, 32, 0.94) 58%,
      rgba(12, 20, 27, 0.92)
    ) !important;

  box-shadow:
    0 -11px 20px
      rgba(0, 0, 0, 0.2),
    inset 0 1px 0
      rgba(255, 255, 255, 0.018),
    inset 0 -1px 0
      rgba(255, 255, 255, 0.012) !important;
}

/*
 * Il margine superiore produce una separazione
 * scura visibile tra grafici e lista.
 */

.monitor-heading::before {
  content: "" !important;

  display: block !important;

  position: absolute !important;

  left: -1px;
  right: -1px;
  top: -22px;

  height: 21px;

  pointer-events: none;

  background:
    rgba(4, 10, 15, 0.88);

  border-top:
    1px solid
    rgba(255, 255, 255, 0.018);

  border-bottom:
    1px solid
    rgba(71, 93, 109, 0.09);
}

.monitor-heading::after {
  content: none !important;
  display: none !important;
}

/*
 * Contenitore della frase.
 */

.monitor-heading
  > div:first-child {
  position: static !important;

  flex: 1 1 auto !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  clip: auto !important;
  clip-path: none !important;

  white-space: normal !important;
}

/*
 * Sottotitolo tenue.
 *
 * Conserva l'adattamento automatico e la
 * distribuzione nello spazio disponibile,
 * ma senza competere con il titolo principale.
 */

#monitorTitle {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin: 0 !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;

  color: #8fb7a5 !important;

  -webkit-text-fill-color:
    #8fb7a5 !important;

  background: none !important;
  background-image: none !important;

  background-clip:
    border-box !important;

  -webkit-background-clip:
    border-box !important;

  font-family:
    var(--font-sans, sans-serif) !important;

  font-size:
    min(
      var(
        --pa-list-heading-size,
        16px
      ),
      17px
    ) !important;

  font-weight: 620 !important;

  line-height: 1.22 !important;

  letter-spacing:
    -0.008em !important;

  word-spacing:
    var(
      --pa-list-heading-word-spacing,
      0px
    ) !important;

  text-align: left !important;
  text-transform: none !important;

  text-shadow:
    0 0 7px
      rgba(91, 176, 137, 0.025) !important;

  filter: none !important;
  animation: none !important;
}

#monitorTitle::before,
#monitorTitle::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/*
 * Stato dati sulla destra, più discreto.
 */

.monitor-heading
  > :last-child {
  flex: 0 0 auto !important;

  margin-left: auto !important;

  color: #62c995 !important;

  font-size: 0.64rem !important;
  font-weight: 700 !important;

  white-space: nowrap !important;
}

/*
 * Anche il corpo vuoto appare chiaramente
 * appartenente alla nuova sezione inferiore.
 */

#emptyState,
.empty-terminal {
  background:
    linear-gradient(
      180deg,
      rgba(13, 22, 29, 0.97),
      rgba(11, 19, 26, 0.94)
    ) !important;
}

/* Responsive */

@media (max-width: 760px) {
  .monitor-heading {
    min-height: auto !important;

    margin-top: 18px !important;

    padding:
      11px
      12px !important;

    gap: 10px !important;
  }

  .monitor-heading::before {
    top: -18px;
    height: 17px;
  }

  #monitorTitle {
    font-size:
      min(
        var(
          --pa-list-heading-size,
          13px
        ),
        14px
      ) !important;
  }

  .monitor-heading
    > :last-child {
    font-size: 0.57rem !important;
  }
}

/* POLYALERT_LIST_SECTION_SEPARATION_V1_END */

/* POLYALERT_PANORAMA_HEADING_HIERARCHY_V2_START */

/*
 * PANORAMA GENERALE:
 * titolo principale giallo, nettamente più grande.
 */

#marketVolumePanoramaPanel
  > .mv-panorama-header
  > div
  > .mv-panorama-kicker {
  display: block !important;

  margin:
    0
    0
    6px !important;

  color: #ddc75c !important;

  font-size: 18px !important;
  font-weight: 880 !important;

  line-height: 1.05 !important;
  letter-spacing: 0.105em !important;

  text-shadow:
    0 0 10px
      rgba(221, 199, 92, 0.11) !important;
}

/*
 * Titolo bianco:
 * informazione secondaria e più piccola.
 */

#marketVolumePanoramaPanel
  > .mv-panorama-header
  > div
  > h2#marketVolumePanoramaTitle {
  display: block !important;

  margin:
    0
    0
    6px !important;

  color: #e3e9ed !important;

  font-size: 13px !important;
  font-weight: 690 !important;

  line-height: 1.18 !important;
  letter-spacing: 0.015em !important;

  text-shadow: none !important;
}

/*
 * Modalità a tutto schermo.
 */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-header
  > div
  > .mv-panorama-kicker {
  font-size: 21px !important;
}

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-header
  > div
  > h2#marketVolumePanoramaTitle {
  font-size: 15px !important;
}

/* POLYALERT_PANORAMA_HEADING_HIERARCHY_V2_END */

/* POLYALERT_CHART_HEADER_READABILITY_V2_START */

/*
 * Stesso colore e stessa gerarchia
 * per i titoli principali dei due grafici.
 */

#pvToggle .pv-kicker,
#marketVolumePanoramaPanel
  .mv-panorama-kicker {
  display: block !important;

  margin:
    0
    0
    7px !important;

  color: #ddc75c !important;

  font-size: 18px !important;
  font-weight: 860 !important;

  line-height: 1.08 !important;
  letter-spacing: 0.09em !important;

  text-shadow:
    0 0 10px
    rgba(221, 199, 92, 0.11) !important;
}

/*
 * Informazioni bianche superiori
 * del grafico sinistro.
 */

#pvToggle .pv-subtitle {
  display: block !important;

  margin-top: 1px !important;

  color: #c7d0d6 !important;

  font-size: 14px !important;
  font-weight: 520 !important;

  line-height: 1.42 !important;
  letter-spacing: 0.006em !important;

  opacity: 1 !important;
}

/*
 * Definizioni ASSE X e ASSE Y
 * presenti nella testata sinistra.
 */

#pvToggle
  .pv-axis-note-header {
  margin-top: 10px !important;

  font-size: 12.5px !important;
  line-height: 1.42 !important;

  opacity: 1 !important;
}

#pvToggle
  .pv-axis-definition
  strong {
  color: #e3e8eb !important;

  font-size: 12px !important;
  font-weight: 760 !important;

  line-height: 1.3 !important;
}

#pvToggle
  .pv-axis-definition
  span {
  color: #bac4ca !important;

  font-size: 12.5px !important;
  font-weight: 470 !important;

  line-height: 1.42 !important;
}

/*
 * Descrizione leggibile
 * del grafico destro.
 */

#marketVolumePanoramaPanel
  .mv-panorama-description {
  color: #b8c2c9 !important;

  font-size: 14px !important;
  font-weight: 520 !important;

  line-height: 1.38 !important;
  letter-spacing: 0.005em !important;

  opacity: 1 !important;
}

/*
 * Dimensioni leggermente maggiori
 * quando i grafici sono espansi.
 */

.is-expanded
  #pvToggle
  .pv-kicker,
#marketVolumePanoramaPanel.is-expanded
  .mv-panorama-kicker {
  font-size: 21px !important;
}

.is-expanded
  #pvToggle
  .pv-subtitle,
#marketVolumePanoramaPanel.is-expanded
  .mv-panorama-description {
  font-size: 16px !important;
}

.is-expanded
  #pvToggle
  .pv-axis-definition
  strong {
  font-size: 13.5px !important;
}

.is-expanded
  #pvToggle
  .pv-axis-definition
  span {
  font-size: 14px !important;
}

/* POLYALERT_CHART_HEADER_READABILITY_V2_END */

/* POLYALERT_CHART_HEADINGS_V3_START */

/*
 * Identico titolo giallo per entrambi i grafici.
 */

#pvToggle.pv-toggle
  .pv-heading
  > .pv-kicker,
#marketVolumePanoramaPanel
  > .mv-panorama-header
  > div
  > .mv-panorama-kicker {
  display: block !important;

  margin: 0 0 7px !important;

  color: #ddc75c !important;
  -webkit-text-fill-color: #ddc75c !important;

  background: none !important;
  background-image: none !important;

  font-size: 18px !important;
  font-weight: 860 !important;

  line-height: 1.08 !important;
  letter-spacing: 0.09em !important;

  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}

/*
 * Stessa leggibilità per le descrizioni
 * sintetiche dei due grafici.
 */

#pvToggle.pv-toggle
  .pv-heading
  > .pv-subtitle,
#marketVolumePanoramaPanel
  > .mv-panorama-header
  > div
  > .mv-panorama-description {
  display: block !important;

  margin-top: 2px !important;

  max-width: 100% !important;

  color: #b8c2c9 !important;
  -webkit-text-fill-color: #b8c2c9 !important;

  font-size: 14px !important;
  font-weight: 520 !important;

  line-height: 1.38 !important;
  letter-spacing: 0.005em !important;

  white-space: normal !important;

  opacity: 1 !important;
  text-shadow: none !important;
}

/*
 * Modalità espansa.
 */

.is-expanded
  #pvToggle.pv-toggle
  .pv-heading
  > .pv-kicker,
#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-header
  > div
  > .mv-panorama-kicker {
  font-size: 21px !important;
}

.is-expanded
  #pvToggle.pv-toggle
  .pv-heading
  > .pv-subtitle,
#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-header
  > div
  > .mv-panorama-description {
  font-size: 16px !important;
}

/* POLYALERT_CHART_HEADINGS_V3_END */

/* POLYALERT_PV_COMPACT_HEADER_V1_START */

#pvToggle .pv-heading {
  display: block !important;
  position: relative !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* Unico titolo visibile, giallo. */

#pvToggle
  #pvPanelTitle.pv-kicker {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 0 8px !important;

  color: #ddc75c !important;
  -webkit-text-fill-color: #ddc75c !important;

  background: none !important;

  font-size: 18px !important;
  font-weight: 860 !important;

  line-height: 1.08 !important;
  letter-spacing: 0.075em !important;

  white-space: nowrap !important;

  text-align: left !important;
  text-shadow: none !important;

  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
}

/* Criteri collocati sotto al titolo. */

#pvToggle
  .pv-heading
  > .pv-subtitle {
  display: block !important;

  position: static !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #b8c2c9 !important;
  -webkit-text-fill-color: #b8c2c9 !important;

  font-size: 14px !important;
  font-weight: 520 !important;

  line-height: 1.38 !important;
  letter-spacing: 0.005em !important;

  text-align: left !important;
  white-space: normal !important;

  opacity: 1 !important;
  text-shadow: none !important;
}

/* Grafico aperto a tutto schermo. */

.is-expanded
  #pvToggle
  #pvPanelTitle.pv-kicker {
  font-size: 21px !important;
}

.is-expanded
  #pvToggle
  .pv-heading
  > .pv-subtitle {
  font-size: 16px !important;
}

/* POLYALERT_PV_COMPACT_HEADER_V1_END */

/* POLYALERT_PV_SUBTITLE_TWO_LINES_V1_START */

#pvToggle.pv-toggle
  .pv-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: none !important;
}

/* Titolo giallo sempre su una riga propria. */

#pvToggle.pv-toggle
  #pvPanelTitle.pv-kicker {
  display: block !important;

  width: 100% !important;

  margin:
    0
    0
    7px !important;

  white-space: nowrap !important;
}

/* Criteri sotto al titolo, su due righe leggibili. */

#pvToggle.pv-toggle
  .pv-heading
  > .pv-subtitle {
  display: block !important;

  position: static !important;
  float: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #b8c2c9 !important;

  font-size: 13.5px !important;
  font-weight: 520 !important;

  line-height: 1.4 !important;
  letter-spacing: 0.004em !important;

  text-align: left !important;
  white-space: normal !important;

  opacity: 1 !important;
}

#pvToggle
  .pv-subtitle-break {
  display: block !important;

  margin-top: 1px !important;
}

/* Grafico espanso. */

.is-expanded
  #pvToggle.pv-toggle
  .pv-heading
  > .pv-subtitle {
  font-size: 16px !important;
}

/* POLYALERT_PV_SUBTITLE_TWO_LINES_V1_END */

/* POLYALERT_PV_EXPANDED_AXIS_LEGEND_V1_START */

/*
 * La legenda originale resta nascosta
 * nel grafico miniaturizzato.
 */

#pvToggle
  .pv-axis-note-header {
  display: none !important;
}

/*
 * Quando la scheda è espansa, titolo,
 * sottotitolo e legenda condividono
 * la stessa testata.
 */

.is-expanded
  #pvToggle
  .pv-heading,
#pvToggle.is-expanded
  .pv-heading {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  grid-template-areas:
    "title axes"
    "subtitle axes" !important;

  align-items: center !important;

  column-gap: 24px !important;
  row-gap: 5px !important;

  width: 100% !important;
  max-width: none !important;
}

/* Titolo giallo sulla sinistra. */

.is-expanded
  #pvToggle
  #pvPanelTitle,
#pvToggle.is-expanded
  #pvPanelTitle {
  grid-area: title !important;

  min-width: 0 !important;

  margin: 0 !important;

  white-space: nowrap !important;
}

/* Criteri immediatamente sotto il titolo. */

.is-expanded
  #pvToggle
  .pv-heading
  > .pv-subtitle,
#pvToggle.is-expanded
  .pv-heading
  > .pv-subtitle {
  grid-area: subtitle !important;

  position: static !important;
  float: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
}

/*
 * Legenda compatta sulla destra.
 */

.is-expanded
  #pvToggle
  .pv-axis-note-header,
#pvToggle.is-expanded
  .pv-axis-note-header {
  grid-area: axes !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;

  gap: 5px !important;

  position: static !important;

  width: auto !important;
  min-width: 330px !important;
  max-width: 430px !important;

  margin: 0 !important;
  padding: 9px 12px !important;

  border:
    1px solid
    rgba(132, 151, 164, 0.16) !important;

  border-radius: 6px !important;

  background:
    rgba(10, 18, 24, 0.66) !important;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.018) !important;

  opacity: 1 !important;
}

/*
 * Ogni asse diventa una riga compatta.
 */

.is-expanded
  #pvToggle
  .pv-axis-definition,
#pvToggle.is-expanded
  .pv-axis-definition {
  display: flex !important;
  align-items: baseline !important;

  gap: 8px !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: none !important;
}

/* Etichette ASSE X e ASSE Y. */

.is-expanded
  #pvToggle
  .pv-axis-definition
  > strong,
#pvToggle.is-expanded
  .pv-axis-definition
  > strong {
  display: inline-block !important;

  flex: 0 0 auto !important;

  color: #ddc75c !important;

  font-size: 11.5px !important;
  font-weight: 820 !important;

  line-height: 1.25 !important;
  letter-spacing: 0.085em !important;

  white-space: nowrap !important;
}

/*
 * Nasconde visivamente le descrizioni lunghe
 * già presenti nell'HTML.
 */

.is-expanded
  #pvToggle
  .pv-axis-definition
  > span,
#pvToggle.is-expanded
  .pv-axis-definition
  > span {
  display: none !important;
}

/*
 * Descrizioni sintetiche degli assi.
 */

.is-expanded
  #pvToggle
  .pv-axis-definition:nth-child(1)::after,
#pvToggle.is-expanded
  .pv-axis-definition:nth-child(1)::after {
  content:
    "Probabilità corrente del lato raro";

  color: #b9c4ca !important;

  font-size: 12.5px !important;
  font-weight: 540 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;

  white-space: nowrap !important;
}

.is-expanded
  #pvToggle
  .pv-axis-definition:nth-child(2)::after,
#pvToggle.is-expanded
  .pv-axis-definition:nth-child(2)::after {
  content:
    "Capitale corrente lato raro · USD · scala logaritmica";

  color: #b9c4ca !important;

  font-size: 12.5px !important;
  font-weight: 540 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;

  white-space: nowrap !important;
}

/*
 * Su finestre meno larghe la legenda
 * passa sotto titolo e criteri.
 */

@media (max-width: 1120px) {
  .is-expanded
    #pvToggle
    .pv-heading,
  #pvToggle.is-expanded
    .pv-heading {
    grid-template-columns: 1fr !important;

    grid-template-areas:
      "title"
      "subtitle"
      "axes" !important;

    row-gap: 7px !important;
  }

  .is-expanded
    #pvToggle
    .pv-axis-note-header,
  #pvToggle.is-expanded
    .pv-axis-note-header {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    flex-direction: row !important;
    flex-wrap: wrap !important;

    gap: 6px 22px !important;
  }
}

/* POLYALERT_PV_EXPANDED_AXIS_LEGEND_V1_END */

/* POLYALERT_MV_EXPANDED_AXIS_LEGEND_V1_START */

/*
 * Nel riquadro miniaturizzato resta
 * la configurazione attuale.
 *
 * Nel grafico espanso la legenda viene
 * spostata nella testata.
 */

#marketVolumePanoramaPanel.is-expanded {
  position: relative !important;
}

/*
 * Riserva sulla destra della testata lo spazio
 * necessario alla legenda degli assi.
 */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-header {
  position: relative !important;

  min-height: 92px !important;

  padding-right:
    clamp(
      350px,
      42vw,
      490px
    ) !important;
}

/*
 * Legenda degli assi nella parte alta destra.
 */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;

  gap: 7px !important;

  position: absolute !important;

  top: 22px !important;
  right: 28px !important;

  z-index: 8 !important;

  width:
    clamp(
      330px,
      38vw,
      450px
    ) !important;

  margin: 0 !important;

  padding:
    10px
    13px !important;

  border:
    1px solid
    rgba(132, 151, 164, 0.17) !important;

  border-radius: 6px !important;

  background:
    rgba(10, 18, 24, 0.72) !important;

  box-shadow:
    inset 0 1px 0
      rgba(255, 255, 255, 0.02) !important;

  opacity: 1 !important;
}

/*
 * Trasforma le due righe originali
 * in legenda leggibile e uniforme.
 */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span {
  display: flex !important;
  align-items: baseline !important;

  gap: 9px !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  color: transparent !important;

  font-size: 0 !important;
  line-height: 1.3 !important;

  white-space: nowrap !important;
}

/* ASSE X */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(1)::before {
  content: "ASSE X";

  flex: 0 0 auto;

  color: #ddc75c !important;

  font-size: 12px !important;
  font-weight: 820 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.085em !important;
}

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(1)::after {
  content: "Probabilità corrente dell'esito YES";

  color: #bac5cb !important;

  font-size: 14px !important;
  font-weight: 540 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;
}

/* ASSE Y */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(2)::before {
  content: "ASSE Y";

  flex: 0 0 auto;

  color: #ddc75c !important;

  font-size: 12px !important;
  font-weight: 820 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.085em !important;
}

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(2)::after {
  content: "Volume storico USD · scala logaritmica";

  color: #bac5cb !important;

  font-size: 14px !important;
  font-weight: 540 !important;

  line-height: 1.3 !important;
  letter-spacing: 0.005em !important;
}

/*
 * Su schermi meno larghi riduce leggermente
 * la dimensione senza tornare illeggibile.
 */

@media (max-width: 1150px) {
  #marketVolumePanoramaPanel.is-expanded
    > .mv-panorama-header {
    padding-right: 365px !important;
  }

  #marketVolumePanoramaPanel.is-expanded
    > .mv-panorama-axis-note {
    right: 18px !important;
    width: 335px !important;
  }

  #marketVolumePanoramaPanel.is-expanded
    > .mv-panorama-axis-note
    > span:nth-child(1)::after,
  #marketVolumePanoramaPanel.is-expanded
    > .mv-panorama-axis-note
    > span:nth-child(2)::after {
    font-size: 12.5px !important;
  }
}

/* POLYALERT_MV_EXPANDED_AXIS_LEGEND_V1_END */

/* POLYALERT_MV_ALL_TRADES_COPY_V1_START */

/*
 * Precisa che il volume storico rappresenta
 * l'insieme cumulato degli scambi avvenuti,
 * non il capitale corrente ancora aperto.
 */

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(2) {
  align-items: flex-start !important;
  white-space: normal !important;
}

#marketVolumePanoramaPanel.is-expanded
  > .mv-panorama-axis-note
  > span:nth-child(2)::after {
  content:
    "Volume storico cumulato di tutti gli scambi avvenuti" !important;

  color: #bac5cb !important;

  font-size: 14px !important;
  font-weight: 590 !important;

  line-height: 1.35 !important;
  letter-spacing: 0.005em !important;

  white-space: pre-line !important;
}

/* POLYALERT_MV_ALL_TRADES_COPY_V1_END */


/* POLYALERT_SHARED_CHART_CATEGORY_FILTER_V1
 *
 * Filtro tematico condiviso esclusivamente dai due grafici.
 * La ricerca sottostante mantiene stato e criteri autonomi.
 */
.pa-chart-category-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(153, 175, 204, 0.15);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      rgba(20, 27, 37, 0.88),
      rgba(12, 17, 24, 0.9)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.pa-chart-category-filter-title {
  color: rgba(203, 215, 229, 0.64);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.pa-chart-category-filter-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.pa-chart-category-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(158, 177, 201, 0.22);
  border-radius: 999px;
  background: rgba(11, 16, 23, 0.76);
  color: rgba(207, 218, 231, 0.68);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.pa-chart-category-button:hover {
  border-color: rgba(214, 194, 111, 0.48);
  color: rgba(242, 231, 185, 0.92);
}

.pa-chart-category-button:focus-visible {
  outline: 2px solid rgba(224, 204, 113, 0.88);
  outline-offset: 2px;
}

.pa-chart-category-button:active {
  transform: translateY(1px);
}

.pa-chart-category-button.is-active {
  border-color: rgba(224, 202, 104, 0.76);
  background:
    linear-gradient(
      180deg,
      rgba(104, 91, 37, 0.52),
      rgba(55, 48, 22, 0.56)
    );
  color: #f1dda0;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 192, 0.09),
    0 0 13px rgba(210, 185, 72, 0.08);
}

@media (max-width: 780px) {
  .pa-chart-category-filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-inline: 9px;
  }

  .pa-chart-category-filter-title {
    padding-inline: 2px;
  }

  .pa-chart-category-filter-buttons {
    width: 100%;
  }
}


/* POLYALERT_DYNAMIC_CHART_COUNTERS_V1
 *
 * Conteggi dei mercati realmente visualizzati
 * dopo l'applicazione dei filtri tematici.
 */
.pv-coverage,
.mv-panorama-coverage {
  color: #f1dda0;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: clamp(
    0.9rem,
    1.05vw,
    1.02rem
  );
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 12px
    rgba(218, 191, 82, 0.13);
}

.pv-coverage {
  text-align: right;
  white-space: nowrap;
}

.mv-panorama-coverage {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid
    rgba(224, 202, 104, 0.24);
  border-radius: 7px;
  background:
    rgba(47, 42, 21, 0.28);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .pv-coverage,
  .mv-panorama-coverage {
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }

  .pv-coverage {
    white-space: normal;
  }
}


/* POLYALERT_MARKET_DETAIL_POPUP_V1 */

body.mv-detail-open {
  overflow: hidden;
}

.mv-detail-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mv-detail-modal[hidden] {
  display: none;
}

.mv-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.84);
  backdrop-filter: blur(6px);
}

.mv-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid
    rgba(192, 205, 224, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #171e2a,
      #0c1119
    );
  box-shadow:
    0 30px 100px
    rgba(0, 0, 0, 0.66);
}

.mv-detail-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 1px solid
    rgba(183, 199, 220, 0.18);
  border-radius: 8px;
  background:
    rgba(255, 255, 255, 0.025);
  color: #aab5c3;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mv-detail-close:hover {
  background:
    rgba(255, 255, 255, 0.08);
  color: #eef3f8;
}

.mv-detail-close:focus-visible,
.mv-detail-button:focus-visible {
  outline: 2px solid
    rgba(226, 204, 111, 0.9);
  outline-offset: 2px;
}

.mv-detail-kicker {
  display: block;
  color: #d8bd62;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.mv-detail-dialog h2 {
  margin:
    7px
    44px
    5px
    0;
  color: #f3f6fa;
  font-size:
    clamp(
      1rem,
      2.2vw,
      1.35rem
    );
  line-height: 1.35;
}

.mv-detail-subtitle {
  margin: 0 0 19px;
  color: #929fb0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mv-detail-message,
.mv-detail-note,
.mv-detail-warning,
.mv-detail-error p {
  color: #b5c0ce;
  font-size: 0.86rem;
  line-height: 1.6;
}

.mv-detail-message {
  margin: 0 0 15px;
}

.mv-detail-note {
  margin: 14px 0 0;
  color: #7f8b9b;
  font-size: 0.75rem;
}

.mv-detail-metrics {
  display: block;
  margin-bottom: 16px;
  border: 1px solid
    rgba(163, 181, 205, 0.17);
  border-radius: 10px;
  background:
    rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.mv-detail-metric {
  display: flex;
  align-items: center;
  justify-content:
    space-between;
  gap: 22px;
  padding: 12px 14px;
}

.mv-detail-metric
+ .mv-detail-metric {
  border-top: 1px solid
    rgba(163, 181, 205, 0.105);
}

.mv-detail-metric > span {
  flex: 1 1 auto;
  color: #7f8c9d;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.075em;
}

.mv-detail-metric > div {
  flex: 0 1 62%;
  min-width: 0;
  text-align: right;
}

.mv-detail-metric strong {
  display: block;
  color: #edf2f8;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.mv-detail-metric small {
  display: block;
  margin-top: 3px;
  color: #687586;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.57rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mv-detail-metric.is-emphasis {
  background:
    rgba(214, 186, 90, 0.035);
}

.mv-detail-metric.is-emphasis strong {
  color: #ead27e;
}

.mv-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 4px;
}

.mv-detail-tags span {
  padding: 4px 7px;
  border: 1px solid
    rgba(165, 182, 205, 0.16);
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.025);
  color: #8794a5;
  font-size: 0.63rem;
}

.mv-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.mv-detail-button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.mv-detail-button-secondary {
  border: 1px solid
    rgba(165, 182, 204, 0.2);
  background:
    rgba(255, 255, 255, 0.025);
  color: #9ba8b7;
}

.mv-detail-button-primary {
  border: 1px solid
    rgba(225, 201, 102, 0.55);
  background:
    linear-gradient(
      180deg,
      rgba(104, 91, 37, 0.62),
      rgba(55, 48, 22, 0.62)
    );
  color: #f1dda0;
}

.mv-detail-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid
    rgba(163, 181, 205, 0.13);
  border-radius: 10px;
  background:
    rgba(255, 255, 255, 0.02);
}

.mv-detail-loading strong,
.mv-detail-loading small {
  display: block;
}

.mv-detail-loading strong {
  color: #e9eef5;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.mv-detail-loading small {
  margin-top: 5px;
  color: #7b8797;
  font-size: 0.72rem;
  line-height: 1.45;
}

.mv-detail-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 3px solid
    rgba(205, 218, 234, 0.13);
  border-top-color: #d8bd62;
  border-radius: 50%;
  animation:
    mv-detail-spin
    0.85s
    linear
    infinite;
}

@keyframes mv-detail-spin {
  to {
    transform:
      rotate(360deg);
  }
}

.mv-detail-error,
.mv-detail-warning {
  padding: 13px 14px;
  border-radius: 9px;
}

.mv-detail-error {
  border: 1px solid
    rgba(211, 101, 101, 0.28);
  background:
    rgba(128, 44, 44, 0.12);
}

.mv-detail-error strong {
  color: #e9aaaa;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}

.mv-detail-error p {
  margin: 7px 0 0;
}

.mv-detail-warning {
  margin: 0 0 15px;
  border: 1px solid
    rgba(220, 188, 82, 0.25);
  background:
    rgba(113, 89, 24, 0.11);
  color: #cdbd84;
  font-size: 0.75rem;
}

.mv-detail-result-footer {
  display: flex;
  align-items: center;
  justify-content:
    space-between;
  gap: 12px;
  margin-top: 4px;
}

.mv-detail-result-footer small {
  color: #6f7c8d;
  font-size: 0.65rem;
}

.mv-detail-result-footer a {
  color: #dfc86f;
  font-size: 0.71rem;
  font-weight: 800;
  text-decoration: none;
}

.mv-detail-result-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .mv-detail-modal {
    padding: 10px;
  }

  .mv-detail-dialog {
    max-height:
      calc(100vh - 20px);
    padding:
      21px
      15px
      17px;
  }

  .mv-detail-metric {
    align-items:
      flex-start;
    gap: 12px;
    padding: 11px 12px;
  }

  .mv-detail-metric > span {
    max-width: 47%;
  }

  .mv-detail-metric > div {
    max-width: 53%;
  }

  .mv-detail-actions {
    display: grid;
    grid-template-columns:
      1fr
      1fr;
  }

  .mv-detail-result-footer {
    align-items:
      flex-start;
    flex-direction:
      column;
  }
}


/* POLYALERT_MARKET_DETAIL_STATIC_SUMMARY_V1 */

.mv-detail-dialog {
  width: min(560px, 100%);
}

.mv-static-summary-tags-section {
  margin-top: 15px;
}

.mv-static-summary-label {
  display: block;
  margin-bottom: 8px;
  color: #788596;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.mv-static-summary-note {
  margin: 17px 0 0;
  padding-top: 13px;
  border-top: 1px solid
    rgba(163, 181, 205, 0.11);
  color: #748193;
  font-size: 0.7rem;
  line-height: 1.55;
}

.mv-static-summary-tags-section
.mv-detail-tags {
  margin: 0;
}

@media (max-width: 560px) {
  .mv-detail-dialog {
    width: 100%;
  }
}
