/* ============================================================
   Tingler Advisory — Sektor-Allokation V2 · Blueprint-Design
   Vollständig auf .ta-sector-allocation-v2 gescopt.
   Selektoren & JS-Kontrakt unverändert — nur Optik.
   Erbt --ta-* vom Theme; dunkle Fallbacks für Standalone/Editor.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

.ta-sector-allocation-v2 {
  --accent: var(--ta-accent, #14B8A6);
  --accent-rgb: var(--ta-accent-rgb, 20,184,166);
  --accent-dark: var(--ta-accent-dark, #0D9488);
  --accent-bright: var(--ta-accent-bright, #5EEAD4);
  --on-accent: var(--ta-on-accent, #06231F);
  --bg: var(--ta-bg, #0C0E11);
  --card: var(--ta-bg-card, #161B22);
  --border: var(--ta-border, rgba(var(--accent-rgb), .16));
  --border-subtle: var(--ta-border-subtle, rgba(255,255,255,.07));
  --tx: var(--ta-text-primary, #E8EDF2);
  --tx2: var(--ta-text-secondary, #B4BFCC);
  --mut: var(--ta-text-muted, #9AA6B6);
  --pos: var(--ta-pos, #4FD18B);
  --neg: var(--ta-neg, #F08079);
  --font-body: var(--ta-font-body, 'DM Sans', system-ui, sans-serif);
  --font-mono: var(--ta-font-mono, 'JetBrains Mono', ui-monospace, Menlo, monospace);
  --font-display: var(--ta-font-display, 'Playfair Display', Georgia, serif);
  --r-card: var(--ta-radius-card, 14px);
  --r-ctl: var(--ta-radius-control, 6px);

  /* Alt-Namen (vom JS-generierten Markup referenzierte Semantik) */
  --positive: var(--pos);
  --negative: var(--neg);
  --pos-strong: rgba(79, 209, 139, 0.26);
  --pos-mid:    rgba(79, 209, 139, 0.13);
  --neg-strong: rgba(240, 128, 121, 0.26);
  --neg-mid:    rgba(240, 128, 121, 0.13);

  font-family: var(--font-body);
  font-size: calc(var(--ta-size-base,16px) * var(--ta-font-scale,1));
  background: transparent;
  color: var(--tx);
  padding: 24px 18px 50px;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .ta-sector-allocation-v2 {
    --pos-strong: color-mix(in srgb, var(--pos) 26%, transparent);
    --pos-mid:    color-mix(in srgb, var(--pos) 13%, transparent);
    --neg-strong: color-mix(in srgb, var(--neg) 26%, transparent);
    --neg-mid:    color-mix(in srgb, var(--neg) 13%, transparent);
  }
}
.ta-sector-allocation-v2 *,
.ta-sector-allocation-v2 *::before,
.ta-sector-allocation-v2 *::after { box-sizing: border-box; }

/* ── Sektionen = Blueprint-Karten mit Streifen ── */
.ta-sector-allocation-v2 .section {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 10px 30px rgba(0,0,0,.34);
  padding: 20px 22px 20px;
  margin-bottom: 18px;
}
.ta-sector-allocation-v2 .section::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1em; bottom: 1.1em;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.ta-sector-allocation-v2 .section:first-child { margin-top: 0; }
.ta-sector-allocation-v2 .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ta-sector-allocation-v2 .section-number {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.6875em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx2);
}
.ta-sector-allocation-v2 .section-number::before {
  content: "";
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.ta-sector-allocation-v2 .section-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size:1.0625em;
  line-height: 1.25;
  color: var(--tx);
  margin-top: 5px;
}
.ta-sector-allocation-v2 .section-hint {
  font-family: var(--font-body);
  font-size:0.75em;
  color: var(--mut);
  text-align: right;
}

/* ── Toolbar / Portfoliowert ── */
.ta-sector-allocation-v2 .toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ta-sector-allocation-v2 .toolbar .field { display: flex; align-items: baseline; gap: 10px; }
.ta-sector-allocation-v2 .toolbar label,
.ta-sector-allocation-v2 .field-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.6875em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mut);
  white-space: nowrap;
}
.ta-sector-allocation-v2 .field-value {
  font-family: var(--font-mono);
  font-size:1.0625em;
  font-weight: 600;
  color: var(--tx);
}
.ta-sector-allocation-v2 .toolbar input[type="text"] {
  font-family: var(--font-body);
  font-size:0.9375em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  padding: 8px 11px;
  color: var(--tx);
  width: 130px;
  transition: border-color .15s, box-shadow .15s;
}
.ta-sector-allocation-v2 .toolbar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15);
}
.ta-sector-allocation-v2 .file-import-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size:0.75em;
  letter-spacing: .04em;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  cursor: pointer;
  color: var(--accent);
  background: transparent;
  user-select: none;
  transition: background .15s, border-color .15s;
}
.ta-sector-allocation-v2 .file-import-btn:hover {
  background: rgba(var(--accent-rgb), .10);
  border-color: var(--accent);
  color: var(--accent);
}
.ta-sector-allocation-v2 .import-feedback {
  font-family: var(--font-mono);
  font-size:0.6875em;
  color: var(--mut);
}

/* ── Sensitivitäten-Toggle ── */
.ta-sector-allocation-v2 .sens-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ta-sector-allocation-v2 .sens-toggle-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.6875em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mut);
  white-space: nowrap;
}
.ta-sector-allocation-v2 .toggle-segmented {
  display: inline-flex;
  gap: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  padding: 3px;
}
.ta-sector-allocation-v2 .toggle-segmented button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size:0.7812em;
  padding: 7px 13px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--tx2);
  transition: background .15s, color .15s;
}
.ta-sector-allocation-v2 .toggle-segmented button.active {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  color: var(--on-accent);
}
.ta-sector-allocation-v2 .toggle-segmented button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ta-sector-allocation-v2 .sens-source-note {
  font-family: var(--font-body);
  font-size:0.75em;
  color: var(--mut);
}

/* ── Horizontale Balken (JS-generiert) ── */
.ta-sector-allocation-v2 .h-chart { display: flex; flex-direction: column; gap: 7px; }
.ta-sector-allocation-v2 .h-row {
  display: grid;
  grid-template-columns: 200px 1fr 96px;
  align-items: center;
  gap: 10px;
}
.ta-sector-allocation-v2 .h-label {
  font-family: var(--font-body);
  font-size:0.9375em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tx);
}
.ta-sector-allocation-v2 .h-bar-track {
  height: 22px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-ctl);
  position: relative;
  overflow: visible;
}
.ta-sector-allocation-v2 .h-bar-fill {
  height: 100%;
  background: var(--tx2);
  border-radius: 4px;
  transition: width .18s ease;
  min-width: 1px;
}
.ta-sector-allocation-v2 .h-bar-fill.suggested {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

/* Min/Max-Marker (ziehbar) */
.ta-sector-allocation-v2 .h-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 4px;
  margin-left: -2px;
  z-index: 3;
  cursor: ew-resize;
  touch-action: none;
  border-radius: 2px;
}
.ta-sector-allocation-v2 .h-marker::before {
  content: '';
  position: absolute;
  top: -4px; bottom: -4px;
  left: -6px; right: -6px;
}
.ta-sector-allocation-v2 .h-marker.min { background: var(--tx); }
.ta-sector-allocation-v2 .h-marker.max { background: var(--neg); }
.ta-sector-allocation-v2 .h-marker.max::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 1px dashed var(--bg);
  border-right: 1px dashed var(--bg);
}
.ta-sector-allocation-v2 .h-marker:hover,
.ta-sector-allocation-v2 .h-marker.dragging { background: var(--accent-bright); }

.ta-sector-allocation-v2 .h-value {
  font-family: var(--font-mono);
  font-size:0.875em;
  text-align: right;
  color: var(--tx);
}
.ta-sector-allocation-v2 .h-value .pct { font-weight: 500; outline: none; padding: 1px 2px; }
.ta-sector-allocation-v2 .h-value .pct[contenteditable="true"] {
  border-bottom: 1px dotted var(--border-subtle);
  cursor: text;
}
.ta-sector-allocation-v2 .h-value .pct[contenteditable="true"]:hover,
.ta-sector-allocation-v2 .h-value .pct[contenteditable="true"]:focus {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.ta-sector-allocation-v2 .h-value .abs {
  display: block;
  color: var(--mut);
  font-size:0.8125em;
  margin-top: 1px;
}

/* Live-%-Label am gezogenen Marker */
.ta-sector-allocation-v2 .marker-readout {
  position: absolute;
  top: 50%;
  z-index: 6;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size:0.6875em;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.ta-sector-allocation-v2 .marker-readout.max { background: var(--neg); color: #2A0E0C; }
.ta-sector-allocation-v2 .marker-readout.min { background: var(--tx); color: var(--bg); }

/* Legende */
.ta-sector-allocation-v2 .bar-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size:0.75em;
  color: var(--tx2);
  flex-wrap: wrap;
}
.ta-sector-allocation-v2 .bar-legend .item { display: flex; align-items: center; gap: 6px; }
.ta-sector-allocation-v2 .bar-legend .swatch { width: 4px; height: 14px; border-radius: 2px; }
.ta-sector-allocation-v2 .bar-legend .swatch.min { background: var(--tx); }
.ta-sector-allocation-v2 .bar-legend .swatch.max { background: var(--neg); }
.ta-sector-allocation-v2 .bar-legend .swatch.fill {
  width: 16px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

/* ── Faktor-Wirkung (Kacheln) ── */
.ta-sector-allocation-v2 .impact-block { margin-top: 18px; }
.ta-sector-allocation-v2 .impact-title,
.ta-sector-allocation-v2 .sliders-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.6875em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mut);
  margin-bottom: 9px;
}
.ta-sector-allocation-v2 .impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ta-sector-allocation-v2 .impact-cell {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-ctl);
  padding: 12px 10px 11px;
  text-align: center;
  background: var(--bg);
}
.ta-sector-allocation-v2 .impact-cell.pos-strong { background: var(--pos-strong); }
.ta-sector-allocation-v2 .impact-cell.pos-mid    { background: var(--pos-mid); }
.ta-sector-allocation-v2 .impact-cell.neg-strong { background: var(--neg-strong); }
.ta-sector-allocation-v2 .impact-cell.neg-mid    { background: var(--neg-mid); }
.ta-sector-allocation-v2 .impact-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.625em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mut);
  margin-bottom: 6px;
}
.ta-sector-allocation-v2 .impact-value {
  font-family: var(--font-mono);
  font-size:1.3125em;
  font-weight: 600;
  color: var(--tx);
}
.ta-sector-allocation-v2 .impact-note {
  font-family: var(--font-body);
  font-size:0.75em;
  color: var(--mut);
  margin-top: 8px;
}

/* ── Faktor-Ziel-Slider ── */
.ta-sector-allocation-v2 .sliders-block { margin-top: 20px; }
.ta-sector-allocation-v2 .sliders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ta-sector-allocation-v2 .slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-ctl);
  background: var(--bg);
}
.ta-sector-allocation-v2 .slider-group .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ta-sector-allocation-v2 .slider-group .label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.625em;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mut);
}
.ta-sector-allocation-v2 .slider-group .readout {
  font-family: var(--font-mono);
  font-size:1.1875em;
  font-weight: 600;
  color: var(--tx);
}
.ta-sector-allocation-v2 .slider-group .readout.pos { color: var(--positive); }
.ta-sector-allocation-v2 .slider-group .readout.neg { color: var(--negative); }
.ta-sector-allocation-v2 input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--negative) 0%, var(--mut) 50%, var(--positive) 100%);
  outline: none;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.ta-sector-allocation-v2 input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: var(--accent-bright);
  cursor: grab;
  border-radius: 50%;
  border: 2px solid var(--on-accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), .5);
}
.ta-sector-allocation-v2 input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--accent-bright);
  cursor: grab;
  border-radius: 50%;
  border: 2px solid var(--on-accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), .5);
}
.ta-sector-allocation-v2 input[type="range"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2);
}
.ta-sector-allocation-v2 .slider-bounds {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size:0.625em;
  color: var(--mut);
}

/* ── Umschichtungstabelle ── */
.ta-sector-allocation-v2 .table-wrap { overflow: visible; }
.ta-sector-allocation-v2 .rebal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size:0.9375em;
  min-width: 280px;
  color: var(--tx);
}
.ta-sector-allocation-v2 .rebal-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size:0.6875em;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mut);
  padding: 9px 8px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.ta-sector-allocation-v2 .rebal-table th.num,
.ta-sector-allocation-v2 .rebal-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.ta-sector-allocation-v2 .rebal-table th:not(.num),
.ta-sector-allocation-v2 .rebal-table td:not(.num) { text-align: left; }
.ta-sector-allocation-v2 .rebal-table td {
  padding: 11px 8px;
  border-bottom: 1px dashed var(--border-subtle);
}
.ta-sector-allocation-v2 .rebal-table tr:last-child td { border-bottom: none; }
.ta-sector-allocation-v2 .rebal-table td.action { font-weight: 600; padding-right: 16px; }
.ta-sector-allocation-v2 .rebal-table th.num { padding-right: 16px; }
.ta-sector-allocation-v2 .buy  { color: var(--positive); font-weight: 600; }
.ta-sector-allocation-v2 .sell { color: var(--negative); font-weight: 600; }
.ta-sector-allocation-v2 .hold { color: var(--mut); }
.ta-sector-allocation-v2 .rebal-table td.act-pos-strong { background: var(--pos-strong); color: var(--tx); border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.ta-sector-allocation-v2 .rebal-table td.act-pos-mid    { background: var(--pos-mid);    color: var(--tx); border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.ta-sector-allocation-v2 .rebal-table td.act-neg-strong { background: var(--neg-strong); color: var(--tx); border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.ta-sector-allocation-v2 .rebal-table td.act-neg-mid    { background: var(--neg-mid);    color: var(--tx); border-radius: var(--r-ctl) 0 0 var(--r-ctl); }

/* Klickbare Sektorzeilen + Positionsliste */
.ta-sector-allocation-v2 .sector-row { cursor: pointer; }
.ta-sector-allocation-v2 .sector-row:hover td { background: rgba(var(--accent-rgb), .06); }
.ta-sector-allocation-v2 .row-caret {
  display: inline-block;
  font-size:0.625em;
  color: var(--mut);
  transition: transform .15s ease;
  margin-left: 4px;
}
.ta-sector-allocation-v2 .sector-row.expanded .row-caret {
  transform: rotate(90deg);
  color: var(--accent);
}
.ta-sector-allocation-v2 .positions-cell {
  text-align: left;
  padding: 6px 14px 12px;
  background: var(--bg);
  border-bottom: 1px dashed var(--border-subtle);
}
.ta-sector-allocation-v2 .positions-list { display: flex; flex-direction: column; }
.ta-sector-allocation-v2 .position-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  padding: 6px 2px;
  border-bottom: 1px dashed var(--border-subtle);
}
.ta-sector-allocation-v2 .position-row:last-child { border-bottom: none; }
.ta-sector-allocation-v2 .pos-figures {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-end;
}
.ta-sector-allocation-v2 .pos-eur {
  font-family: var(--font-mono);
  font-size:0.875em;
  color: var(--tx);
  text-align: right;
  min-width: 78px;
  white-space: nowrap;
}
.ta-sector-allocation-v2 .pos-pct {
  font-family: var(--font-mono);
  font-size:0.75em;
  color: var(--tx2);
  text-align: right;
  min-width: 46px;
  white-space: nowrap;
}
.ta-sector-allocation-v2 .pos-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size:0.875em;
  color: var(--tx);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ta-sector-allocation-v2 .pos-ticker {
  font-family: var(--font-mono);
  font-size:0.6875em;
  color: var(--mut);
  margin-left: 6px;
}
.ta-sector-allocation-v2 .pos-val {
  font-family: var(--font-mono);
  font-size:0.8125em;
  color: var(--tx);
  white-space: nowrap;
  flex: 0 0 auto;
}
.ta-sector-allocation-v2 .positions-empty {
  font-family: var(--font-body);
  font-size:0.75em;
  color: var(--mut);
  padding: 6px 2px;
}

/* ── Info-Icon & Tooltip ── */
.ta-sector-allocation-v2 .info-wrap { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.ta-sector-allocation-v2 .sektor-name { white-space: nowrap; }
.ta-sector-allocation-v2 .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-style: normal;
  font-size:0.625em;
  font-weight: 600;
  line-height: 1;
  color: var(--mut);
  cursor: help;
  user-select: none;
  flex: 0 0 auto;
}
.ta-sector-allocation-v2 .info-icon:hover,
.ta-sector-allocation-v2 .info-icon:focus {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  outline: none;
}
.ta-sector-allocation-v2 .info-tip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 190px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-family: var(--font-mono);
  font-size:0.875em;
  color: var(--tx);
  white-space: nowrap;
  text-align: left;
}
.ta-sector-allocation-v2 .info-icon:hover + .info-tip,
.ta-sector-allocation-v2 .info-icon:focus + .info-tip { display: block; }
.ta-sector-allocation-v2 .info-tip.info-tip-left {
  left: 0;
  transform: none;
  white-space: normal;
  width: 260px;
  max-width: 80vw;
}
.ta-sector-allocation-v2 .info-tip .tip-text {
  display: block;
  font-family: var(--font-body);
  font-size:0.875em;
  line-height: 1.5;
  color: var(--tx2);
}
.ta-sector-allocation-v2 .tip-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 3px 0;
  white-space: nowrap;
  font-size:0.875em;
  color: var(--tx2);
}
.ta-sector-allocation-v2 .tip-row strong { color: var(--tx); font-weight: 600; }
.ta-sector-allocation-v2 .tip-row strong.tip-pos { color: var(--positive); }
.ta-sector-allocation-v2 .tip-row strong.tip-neg { color: var(--negative); }

@media (max-width: 700px) {
  .ta-sector-allocation-v2 { padding: 16px 10px 40px; overflow-x: clip; }
  .ta-sector-allocation-v2 .table-wrap { max-width: 100%; }
  .ta-sector-allocation-v2 .rebal-table { min-width: 0; }
  .ta-sector-allocation-v2 .rebal-table th.num,
  .ta-sector-allocation-v2 .rebal-table td.action { white-space: normal; line-height: 1.35; }
  .ta-sector-allocation-v2 .rebal-table td.action { padding-right: 10px; }
  .ta-sector-allocation-v2 .position-row { flex-wrap: wrap; gap: 6px 14px; }
  .ta-sector-allocation-v2 .section { padding: 16px 14px; }
  .ta-sector-allocation-v2 .h-row { grid-template-columns: 132px 1fr 74px; gap: 6px; }
  .ta-sector-allocation-v2 .h-label { font-size:0.75em; }
  .ta-sector-allocation-v2 .h-value { font-size:0.75em; }
  .ta-sector-allocation-v2 .h-value .abs { font-size:0.6875em; }
  .ta-sector-allocation-v2 .impact-row { grid-template-columns: 1fr; }
  .ta-sector-allocation-v2 .sliders { grid-template-columns: 1fr; }
  .ta-sector-allocation-v2 .section-hint { width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-sector-allocation-v2 * { transition: none !important; }
}
