/* Heatmap, transition, reverse, waterfall ve geo map özellik stilleri. */

/* İleri Grafik / Sunburst */
.advanced-chart-type-groups {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.advanced-chart-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  padding: 12px;
}
.advanced-chart-group-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.advanced-chart-group-head h3 {
  margin: 0 !important;
  font-size: 0.92rem !important;
}
.advanced-chart-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.advanced-chart-radio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.advanced-chart-radio {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px;
  cursor: pointer;
  min-height: 106px;
}
.advanced-chart-radio.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.advanced-chart-radio input {
  margin-top: 2px;
  accent-color: var(--accent);
}
.advanced-chart-radio span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.advanced-chart-radio b {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.22;
}
.advanced-chart-radio small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.advanced-chart-radio em {
  justify-self: start;
  border-radius: 999px;
  background: var(--amberbg);
  color: var(--amber);
  padding: 2px 7px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}
.advanced-chart-radio em.ready {
  background: var(--greenbg);
  color: var(--green);
}
.advanced-chart-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.advanced-chart-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.advanced-chart-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sunburst-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.sunburst-toggle input {
  accent-color: var(--accent);
}
.advanced-sunburst-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.advanced-sunburst-layout.is-expanded {
  grid-template-columns: minmax(0, 1fr);
}
.advanced-sunburst-layout.is-expanded .advanced-sunburst-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.advanced-sunburst-canvas {
  min-height: 620px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: radial-gradient(circle at center, var(--surface), var(--surface2));
  overflow: hidden;
  padding: 10px;
}
.advanced-chart-placeholder {
  max-width: 680px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.advanced-chart-placeholder h3 {
  margin: 0 !important;
  font-size: 1.15rem !important;
}
.advanced-chart-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.advanced-sunburst-canvas svg {
  display: block;
  width: min(100%, 920px);
  height: auto;
  max-height: 82vh;
}
.advanced-sunburst-layout.is-expanded .advanced-sunburst-canvas {
  min-height: 760px;
}
.advanced-sunburst-layout.is-expanded .advanced-sunburst-canvas svg {
  width: min(100%, 1120px);
  max-height: none;
}
.hex-cartogram-svg {
  overflow: visible;
}
.hex-cartogram-kicker {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hex-cartogram-cell polygon {
  stroke: var(--surface);
  stroke-width: 3;
  cursor: pointer;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.11));
  transition:
    filter 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.hex-cartogram-cell:hover polygon {
  filter: brightness(0.94) saturate(1.12) drop-shadow(0 12px 18px rgba(15, 23, 42, 0.18));
  opacity: 0.94;
  transform: scale(1.035);
}
.hex-cartogram-cell text {
  pointer-events: none;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.52);
  stroke-width: 3.4px;
  font-size: 10.5px;
  font-weight: 900;
}
.dymap-svg {
  overflow: visible;
}
.dymap-node circle {
  stroke: var(--surface);
  stroke-width: 3;
  cursor: pointer;
  opacity: 0.88;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
  transition:
    filter 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.dymap-node:hover circle {
  opacity: 0.96;
  filter: brightness(0.96) saturate(1.16) drop-shadow(0 15px 24px rgba(15, 23, 42, 0.22));
  transform: scale(1.04);
}
.dymap-node text {
  pointer-events: none;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.56);
  stroke-width: 3.6px;
  font-size: 10px;
  font-weight: 900;
}
.layered-3d-svg {
  overflow: visible;
}
.layered-3d-ground {
  fill: url(#layered3dGround);
  stroke: color-mix(in srgb, var(--accent) 18%, var(--border));
  stroke-width: 1.5;
}
.layered-3d-grid-line {
  fill: none;
  stroke: rgba(100, 116, 139, 0.2);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}
.layered-3d-shadow {
  fill: rgba(15, 23, 42, 0.18);
  filter: blur(1px);
}
.layered-3d-front,
.layered-3d-side,
.layered-3d-top {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.2;
  transition:
    filter 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.layered-3d-front {
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.16));
}
.layered-3d-side {
  opacity: 0.72;
}
.layered-3d-top {
  opacity: 0.9;
}
.layered-3d-bar:hover .layered-3d-front,
.layered-3d-bar:hover .layered-3d-side,
.layered-3d-bar:hover .layered-3d-top {
  filter: brightness(0.96) saturate(1.18) drop-shadow(0 16px 20px rgba(15, 23, 42, 0.24));
  transform: translateY(-2px);
}
.layered-3d-bar text {
  pointer-events: none;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  font-size: 10px;
  font-weight: 900;
}
.bar-race-visual {
  position: relative;
  width: min(100%, 940px);
  min-height: 560px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 42%, transparent), transparent),
    var(--surface);
  overflow: hidden;
  padding: 24px;
}
.bar-race-frame {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  opacity: 0;
  animation: barRaceFrame var(--race-duration) linear infinite;
  animation-delay: calc((var(--race-duration) / var(--frame-count)) * var(--frame-index));
}
.bar-race-year {
  justify-self: end;
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
  font-family: var(--mono);
  font-size: clamp(34px, 8vw, 82px);
  font-weight: 900;
  line-height: 0.92;
  opacity: 0.22;
}
.bar-race-bars {
  display: grid;
  align-content: start;
  gap: 10px;
}
.bar-race-row {
  display: grid;
  grid-template-columns: 34px minmax(92px, 150px) minmax(0, 1fr) minmax(96px, auto);
  gap: 10px;
  align-items: center;
}
.bar-race-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}
.bar-race-party {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-race-track {
  height: 30px;
  border-radius: 8px;
  background: var(--surface2);
  overflow: hidden;
}
.bar-race-bar {
  height: 100%;
  min-width: 3px;
  border-radius: 8px;
  box-shadow: inset 0 -9px 16px rgba(15, 23, 42, 0.13);
}
.bar-race-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.sankey-svg {
  overflow: visible;
}
.sankey-title {
  fill: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.sankey-kicker {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}
.sankey-flow {
  fill: none;
  stroke-linecap: round;
  opacity: 0.42;
  mix-blend-mode: multiply;
  transition:
    opacity 0.16s ease,
    filter 0.16s ease;
}
.sankey-flow:hover {
  opacity: 0.78;
  filter: saturate(1.18);
}
.sankey-retained {
  opacity: 0.28;
}
.sankey-shift {
  opacity: 0.5;
}
.sankey-external {
  opacity: 0.3;
  stroke-dasharray: 8 7;
}
.sankey-node rect {
  stroke: var(--surface);
  stroke-width: 2;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.13));
}
.sankey-node text {
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  font-size: 11px;
  font-weight: 900;
}
.sankey-node tspan + tspan {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}
.slopegraph-svg {
  overflow: visible;
}
.slopegraph-axis {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}
.slopegraph-line path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.78;
  transition:
    opacity 0.16s ease,
    stroke-width 0.16s ease,
    filter 0.16s ease;
}
.slopegraph-line:hover path {
  opacity: 1;
  stroke-width: 5;
  filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.18));
}
.slopegraph-line circle {
  stroke: var(--surface);
  stroke-width: 2;
}
.slopegraph-line text {
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  font-size: 11px;
  font-weight: 900;
  dominant-baseline: middle;
}
.slopegraph-line tspan {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.slopegraph-diff {
  fill: var(--muted) !important;
  font-family: var(--mono);
  font-size: 9px !important;
  font-weight: 900;
}
.slopegraph-up .slopegraph-diff {
  fill: var(--ok) !important;
}
.slopegraph-down .slopegraph-diff {
  fill: var(--err) !important;
}
.waffle-visual {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(220px, 320px);
  gap: 24px;
  align-items: start;
  width: min(100%, 860px);
}
.waffle-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.waffle-cell {
  border-radius: 5px;
  box-shadow: inset 0 -8px 12px rgba(15, 23, 42, 0.13);
  transition:
    filter 0.14s ease,
    transform 0.14s ease;
}
.waffle-cell:hover {
  filter: brightness(0.94) saturate(1.15);
  transform: scale(1.08);
}
.waffle-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.waffle-total {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
}
.waffle-total b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 900;
}
.waffle-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.waffle-legend {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.waffle-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 10px;
  font-size: 12px;
}
.waffle-legend-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-weight: 900;
}
.waffle-legend-row span i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.waffle-legend-row b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.radar-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
  width: min(100%, 940px);
}
.radar-svg {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.radar-grid-ring {
  fill: none;
  stroke: rgba(100, 116, 139, 0.22);
  stroke-width: 1;
}
.radar-axis {
  stroke: rgba(100, 116, 139, 0.24);
  stroke-width: 1.2;
}
.radar-axis-label {
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  font-size: 12px;
  font-weight: 900;
}
.radar-party-area {
  stroke-width: 2.4;
  transition:
    opacity 0.16s ease,
    filter 0.16s ease;
}
.radar-party-area:hover {
  opacity: 0.92;
  filter: saturate(1.18) drop-shadow(0 8px 14px rgba(15, 23, 42, 0.16));
}
.radar-legend {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.radar-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px 10px;
  font-size: 12px;
}
.radar-legend-row span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--text);
  font-weight: 900;
}
.radar-legend-row span i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.radar-legend-row b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}
.boxplot-visual {
  width: min(100%, 980px);
  overflow-x: auto;
  padding-bottom: 6px;
}
.boxplot-svg {
  width: 100%;
  min-width: 720px;
  overflow: visible;
}
.boxplot-axis,
.boxplot-grid,
.boxplot-whisker,
.boxplot-cap {
  fill: none;
  stroke: rgba(100, 116, 139, 0.28);
  stroke-width: 1.2;
}
.boxplot-axis {
  stroke-width: 1.6;
}
.boxplot-grid {
  stroke-dasharray: 4 7;
}
.boxplot-party-label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.boxplot-sample-label,
.boxplot-axis-label,
.boxplot-value-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}
.boxplot-box {
  stroke-width: 2;
  transition:
    filter 0.16s ease,
    opacity 0.16s ease;
}
.boxplot-row:hover .boxplot-box {
  filter: saturate(1.15) drop-shadow(0 8px 14px rgba(15, 23, 42, 0.14));
}
.boxplot-median {
  stroke-width: 3.2;
  stroke-linecap: round;
}
.boxplot-outlier {
  stroke: var(--surface);
  stroke-width: 2;
}
.story-tooltip-visual {
  width: min(100%, 980px);
}
.story-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  align-items: start;
}
.story-tooltip-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.story-tooltip-card:hover,
.story-tooltip-card:focus {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.story-tooltip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.story-tooltip-head b {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}
.story-tooltip-chip {
  max-width: 150px;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-tooltip-main {
  display: grid;
  gap: 4px;
}
.story-tooltip-main span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.story-tooltip-main strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.story-tooltip-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface2);
}
.story-tooltip-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.story-tooltip-panel {
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  transition:
    max-height 0.2s ease,
    opacity 0.16s ease,
    border-color 0.16s ease,
    padding-top 0.16s ease;
}
.story-tooltip-card:hover .story-tooltip-panel,
.story-tooltip-card:focus .story-tooltip-panel {
  max-height: 360px;
  opacity: 1;
  border-top-color: var(--border);
  padding-top: 10px;
}
.story-tooltip-panel h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.story-tooltip-panel p {
  margin: 0;
}
.story-tooltip-party-list {
  display: grid;
  gap: 5px;
}
.story-tooltip-party {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: var(--surface2);
  padding: 6px 8px;
}
.story-tooltip-party span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}
.story-tooltip-party span i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.story-tooltip-party b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.drilldown-visual {
  display: grid;
  gap: 14px;
  width: min(100%, 1000px);
}
.drill-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 10px;
}
.drill-breadcrumb button,
.drill-breadcrumb span {
  border: 0;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  padding: 6px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
.drill-breadcrumb button {
  cursor: pointer;
}
.drill-breadcrumb button:hover {
  color: var(--accent);
}
.drill-breadcrumb i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}
.drill-level-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}
.drill-level-title h3 {
  margin: 0 !important;
  color: var(--text);
  font-size: 1rem !important;
}
.drill-level-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.drill-card {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.drill-card:hover,
.drill-card:focus {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  outline: none;
  transform: translateY(-2px);
}
.drill-card.is-terminal {
  cursor: default;
}
.drill-card.is-terminal:hover {
  transform: none;
}
.drill-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.drill-card-head span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.drill-card-head b {
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}
.drill-card-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}
.drill-card-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface2);
}
.drill-card-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.drill-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drill-card-meta span {
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
}
.drill-party-list {
  display: grid;
  gap: 5px;
}
.drill-party-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.drill-party-row span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}
.drill-party-row span i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.drill-party-row b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}
.drill-party-row small {
  color: var(--muted);
  font-size: 9px;
}
@keyframes barRaceFrame {
  0%,
  18% {
    opacity: 1;
    transform: translateY(0);
  }
  23%,
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
.sunburst-core {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 2;
}
.sunburst-segment {
  stroke: var(--surface);
  stroke-width: 1.4;
  cursor: pointer;
  transition:
    opacity 0.16s ease,
    filter 0.16s ease,
    transform 0.16s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.sunburst-segment:hover {
  filter: brightness(0.9) saturate(1.15);
  opacity: 0.92;
  transform: scale(1.01);
}
.sunburst-labels {
  pointer-events: none;
}
.sunburst-labels text {
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(15, 23, 42, 0.45);
  stroke-width: 3px;
  font-size: 10px;
  font-weight: 800;
}
.sunburst-center-title {
  fill: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.sunburst-center-value {
  fill: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 800;
}
.advanced-sunburst-details {
  display: grid;
  gap: 12px;
}
.sunburst-info-card {
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-soft), var(--surface));
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.sunburst-detail-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}
.sunburst-info-card h3 {
  margin: 0 !important;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 0.9rem !important;
}
.sunburst-detail-card h3 {
  margin: 0 0 10px !important;
  font-size: 0.9rem !important;
}
.sunburst-detail-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.sunburst-detail-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}
.sunburst-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.sunburst-detail-row:first-of-type {
  border-top: 0;
}
.sunburst-detail-row span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}
.sunburst-detail-row span i {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}
.sunburst-detail-row b {
  font-family: var(--mono);
  white-space: nowrap;
}
.sunburst-detail-row small {
  color: var(--muted);
  font-size: 0.68rem;
}
@media (max-width: 980px) {
  .advanced-chart-radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-chart-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-sunburst-layout {
    grid-template-columns: 1fr;
  }
  .advanced-sunburst-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-sunburst-layout.is-expanded .advanced-sunburst-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-chart-title-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .advanced-chart-radio-grid,
  .advanced-chart-filter-grid,
  .advanced-sunburst-details {
    grid-template-columns: 1fr;
  }
  .advanced-sunburst-canvas {
    min-height: 420px;
    padding: 6px;
  }
  .advanced-sunburst-layout.is-expanded .advanced-sunburst-canvas {
    min-height: 460px;
  }
  .sunburst-labels text {
    font-size: 9px;
  }
  .hex-cartogram-cell text {
    font-size: 9px;
  }
  .dymap-node text {
    font-size: 8.8px;
  }
  .layered-3d-bar text {
    font-size: 8.6px;
  }
  .bar-race-visual {
    min-height: 500px;
    padding: 14px;
  }
  .bar-race-frame {
    inset: 14px;
  }
  .bar-race-row {
    grid-template-columns: 26px minmax(74px, 96px) minmax(0, 1fr);
    gap: 7px;
  }
  .bar-race-value {
    grid-column: 3;
    text-align: left;
    font-size: 10px;
  }
  .bar-race-party {
    font-size: 11px;
  }
  .bar-race-track {
    height: 24px;
  }
  .sankey-node text {
    font-size: 9px;
  }
  .sankey-node tspan + tspan {
    font-size: 8px;
  }
  .slopegraph-line text {
    font-size: 9px;
  }
  .slopegraph-line tspan,
  .slopegraph-diff {
    font-size: 8px !important;
  }
  .waffle-visual {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .waffle-grid {
    gap: 4px;
    padding: 8px;
  }
  .waffle-cell {
    border-radius: 3px;
  }
  .radar-visual {
    grid-template-columns: 1fr;
  }
  .radar-axis-label {
    font-size: 10px;
  }
  .hex-cartogram-kicker {
    font-size: 11px;
  }
}

/* Yıllara Göre Isı Haritası */
.heatmap-shell .filter-footer {
  margin-top: 16px;
}
.heatmap-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.heatmap-legend-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.heatmap-legend-bar i {
  display: block;
  width: 160px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.88));
  border: 1px solid rgba(220, 38, 38, 0.18);
}
.heatmap-result {
  margin-top: 8px;
}
.heatmap-explain {
  display: grid;
  gap: 7px;
  flex: 1 1 100%;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.88), #fff);
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.5;
}
.heatmap-explain b {
  color: #991b1b;
}
.heatmap-explain span {
  display: block;
}
.heatmap-table-wrap {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  max-height: none;
}
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
}
.heatmap-table th {
  position: static;
  background: #f8fafc;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(9px, 0.85vw, 11px);
  font-weight: 900;
  border-bottom: 1px solid var(--line);
  padding: 9px 6px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.heatmap-table th:first-child,
.heatmap-table td:first-child {
  position: static;
  background: #fff;
  box-shadow: none;
  width: 22%;
}
.heatmap-table th:first-child {
  background: #f8fafc;
}
.heatmap-table th:nth-child(2),
.heatmap-table td:nth-child(2) {
  width: 12%;
}
.heatmap-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eef2f7;
  font-size: clamp(11px, 0.95vw, 13px);
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}
.heatmap-cell {
  text-align: center;
  font-family: var(--mono);
  font-weight: 900;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  min-width: 0;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.heatmap-cell:hover {
  filter: brightness(0.92);
  transform: scale(1.015);
}
@media (max-width: 900px) {
  .heatmap-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .heatmap-table th:first-child,
  .heatmap-table td:first-child {
    width: 28%;
  }
  .heatmap-table th:nth-child(2),
  .heatmap-table td:nth-child(2) {
    width: 14%;
  }
}
@media (max-width: 640px) {
  .heatmap-filter-grid {
    grid-template-columns: 1fr;
  }
  .heatmap-legend {
    align-items: flex-start;
  }
  .heatmap-legend-bar i {
    width: 110px;
  }
  .heatmap-table th,
  .heatmap-table td {
    padding: 6px 4px;
  }
  .heatmap-table th:first-child,
  .heatmap-table td:first-child {
    width: 32%;
  }
  .heatmap-table th:nth-child(2),
  .heatmap-table td:nth-child(2) {
    width: 16%;
  }
}

/* Oy Geçişkenliği */
.transition-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.transition-filter-grid input[type='number'] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  min-height: 38px;
}
.transition-explanation {
  margin-bottom: 12px;
}
.transition-explain-box {
  display: grid;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-soft) 86%, var(--surface)),
    var(--surface)
  );
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}
.transition-explain-box b {
  color: var(--text);
}
.transition-summary {
  margin-bottom: 12px;
}
.transition-metrics .text-ok {
  color: var(--ok);
}
.transition-metrics .text-bad {
  color: var(--err);
}
.transition-table-wrap {
  overflow: visible !important;
}
.transition-table-wrap table {
  min-width: 0 !important;
  width: 100%;
  table-layout: auto;
}
.transition-table-wrap th,
.transition-table-wrap td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.transition-high {
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}
.transition-low {
  background: color-mix(in srgb, var(--err) 6%, transparent);
}
.transition-neutral {
  background: color-mix(in srgb, var(--muted) 5%, transparent);
}
.transition-table-wrap .th-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}
.transition-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.transition-pill.ok {
  color: #065f46;
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.transition-pill.bad {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.transition-pill.neutral {
  color: #475569;
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.dark .transition-pill.neutral {
  color: #cbd5e1;
  background: #0f172a;
  border-color: #334155;
}
body.dark .transition-pill.ok {
  color: #bbf7d0;
  background: #052e16;
  border-color: #15803d;
}
body.dark .transition-pill.bad {
  color: #fecaca;
  background: #450a0a;
  border-color: #991b1b;
}
@media (max-width: 720px) {
  .transition-table-wrap {
    overflow-x: auto !important;
  }
  .transition-table-wrap table {
    min-width: 720px !important;
  }
}

/* İki Parti Ters Analizi */
.reverse-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.reverse-explanation {
  margin-bottom: 12px;
}
.reverse-summary {
  margin-bottom: 12px;
}
.reverse-table-wrap {
  overflow: visible !important;
}
.reverse-table-wrap table {
  min-width: 0 !important;
  width: 100%;
  table-layout: auto;
}
.reverse-table-wrap th,
.reverse-table-wrap td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.reverse-table-wrap .th-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}
.reverse-ok {
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}
.reverse-bad {
  background: color-mix(in srgb, var(--err) 6%, transparent);
}
.reverse-diff {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 900;
}
.reverse-diff.pos {
  color: var(--ok);
}
.reverse-diff.neg {
  color: var(--err);
}
.reverse-explain-box span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .reverse-table-wrap {
    overflow-x: auto !important;
  }
  .reverse-table-wrap table {
    min-width: 860px !important;
  }
}

/* Şelale Analizi ve Coğrafi Harita */
.waterfall-chart-wrap {
  height: 380px;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  padding: 14px;
  margin-top: 14px;
}
.waterfall-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.geo-map-canvas {
  height: 72vh;
  min-height: 620px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface2);
  display: grid;
  place-items: center;
}
.geo-map-canvas.leaflet-container {
  display: block;
  font-family: var(--font);
}
.geo-map-filter-grid,
.waterfall-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.map-popup.compact-popup {
  font-family: var(--font);
  min-width: 220px;
  max-width: 320px;
}
.map-popup .popup-title {
  font-weight: 900;
  font-size: 14px;
  color: #111827;
  margin-bottom: 3px;
}
.map-popup .popup-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.map-popup .popup-note {
  font-size: 12px;
  line-height: 1.4;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 7px 8px;
  color: #1e3a8a;
}
@media (max-width: 720px) {
  .waterfall-chart-wrap {
    height: 320px;
    padding: 10px;
  }
  .geo-map-canvas {
    height: 62vh;
    min-height: 430px;
    border-radius: 12px;
  }
}

/* Grup İlçe Karşılaştırması */
.group-comparison-counts {
  align-items: stretch;
}
.group-election-pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.group-compare-pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.group-compare-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}
.group-compare-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.group-compare-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}
.compact-field input,
.compact-field select {
  min-height: 42px;
}
.district-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.district-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  font-size: 13px;
  font-weight: 700;
}
.district-check input {
  min-height: 16px;
}
.group-summary-card .comparison-card-election {
  line-height: 1.45;
}
.group-summary-stats {
  grid-template-columns: 1fr;
}
.report-subtitle {
  margin: 18px 0 10px;
  font-size: 18px;
}
@media (max-width: 720px) {
  .group-compare-pickers {
    grid-template-columns: 1fr;
  }
  .district-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.geo-map-canvas {
  background: #f8fafc;
}
.geo-map-canvas .leaflet-marker-icon,
.geo-map-canvas .leaflet-marker-shadow {
  display: none !important;
}
.geo-info-popup .leaflet-popup-content {
  margin: 0;
}
.geo-info-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  overflow: hidden;
}
.map-info-card {
  max-width: 340px;
  padding: 12px;
}
.map-popup-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.map-popup-stats span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  font-size: 12px;
}
.map-popup-stats b {
  color: var(--muted);
  font-size: 11px;
}
.map-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.map-popup-table th,
.map-popup-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}
.map-popup-table th:first-child,
.map-popup-table td:first-child {
  text-align: left;
  white-space: normal;
}

#groupComparisonTable tbody tr:hover {
  background: #eef6ff;
}
#groupComparisonTable tbody tr:hover td {
  background: #eef6ff;
}
.group-total-vote {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}
.group-total-vote b {
  font-size: 14px;
}
.group-total-vote span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.group-district-breakdown {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.group-district-breakdown span {
  display: block;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface2);
}
#groupComparisonTable tbody tr:hover .group-district-breakdown span {
  background: #dbeafe;
}

/* Oy Geçişkenliği Haritası */
.transition-map-canvas {
  height: 78vh;
  min-height: 760px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
  margin: 12px 0 0;
}
.transition-map-canvas.leaflet-container {
  display: block;
  font-family: var(--font);
}
.transition-map-popup {
  max-width: 340px;
  padding: 12px;
}
.transition-popup-diff {
  padding: 9px 10px;
  margin: 8px 0;
  border-radius: 8px;
  background: var(--surface2);
  font-weight: 900;
}
@media (max-width: 720px) {
  .transition-map-canvas {
    height: 72vh;
    min-height: 620px;
  }
}

.transition-map-legend {
  line-height: 1.45;
}

.strategic-map-controls {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.map-layer-field {
  min-width: 220px;
}
.map-layer-grid {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.map-layer-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.map-layer-help {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.map-label-marker {
  display: block;
  max-width: 120px;
  padding: 3px 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.geo-map-canvas .leaflet-marker-icon {
  display: block !important;
}
.popup-winner {
  margin: 8px 0;
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
}
.map-popup-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}
.map-popup-table th,
.map-popup-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 5px 4px;
  text-align: left;
}
.map-popup-table th:last-child,
.map-popup-table td:last-child {
  text-align: right;
}

/* Stratejik Harita düzen iyileştirmeleri */
.strategic-map-shell .section-title {
  align-items: flex-start;
  gap: 16px;
}
.strategic-map-shell .section-title > div {
  min-width: 0;
}
.strategic-map-controls {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  align-items: stretch;
  gap: 14px;
}
.strategic-map-controls .filter-card {
  min-width: 0;
}
.strategic-map-controls .filter-card select {
  min-height: 44px;
}
.strategic-map-shell .filter-footer {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.strategic-map-shell .filter-footer .muted {
  max-width: 760px;
  line-height: 1.45;
}
.map-popup.compact-popup {
  max-width: 390px;
}
.map-popup-change-table th,
.map-popup-change-table td {
  white-space: nowrap;
}
.map-popup-change-table th:first-child,
.map-popup-change-table td:first-child {
  white-space: normal;
}
.map-popup-change-table .change-up {
  color: #15803d;
  font-weight: 900;
}
.map-popup-change-table .change-down {
  color: #dc2626;
  font-weight: 900;
}
.map-popup-change-table .change-flat {
  color: #64748b;
  font-weight: 800;
}
@media (min-width: 980px) {
  .strategic-map-controls .map-layer-field {
    grid-column: span 2;
  }
}

.map-popup .change-up {
  color: #15803d;
  font-weight: 900;
}
.map-popup .change-down {
  color: #dc2626;
  font-weight: 900;
}
.map-popup .change-flat {
  color: #64748b;
  font-weight: 800;
}

.map-popup-change-table .change-flow {
  display: block;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.map-popup-change-table td.change-up .change-flow,
.map-popup-change-table td.change-down .change-flow {
  color: inherit;
  opacity: 0.9;
}
.map-popup-change-table td b {
  display: block;
  margin-top: 2px;
}

.map-popup-table-scroll {
  max-height: 260px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.map-popup-table-scroll .map-popup-table {
  margin-top: 0;
}
.map-popup-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}
.popup-vote-count {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

/* İleri Grafik sadeleştirilmiş seçim paneli */
.advanced-chart-guide {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    var(--surface2);
  padding: 16px;
}
.advanced-chart-guide h3 {
  margin: 4px 0 6px !important;
  font-size: 1.05rem !important;
}
.advanced-chart-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}
.advanced-selected-pill {
  min-width: 190px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}
.advanced-selected-pill span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.advanced-selected-pill b {
  color: var(--text);
  font-size: 0.92rem;
}
.advanced-chart-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.advanced-chart-choice {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.advanced-chart-choice:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.advanced-chart-choice.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent), 0 16px 34px rgba(15, 23, 42, 0.1);
}
.advanced-chart-choice input {
  position: absolute;
  top: 14px;
  right: 14px;
  accent-color: var(--accent);
}
.advanced-choice-badge {
  justify-self: start;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface2));
  color: var(--accent);
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 900;
}
.advanced-chart-choice strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
  padding-right: 26px;
}
.advanced-chart-choice small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.advanced-chart-more {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  overflow: hidden;
}
.advanced-chart-more summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--text);
  font-weight: 900;
  list-style-position: inside;
}
.advanced-chart-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.advanced-chart-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
  cursor: pointer;
}
.advanced-chart-compact.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
}
.advanced-chart-compact input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.advanced-chart-compact span {
  display: grid;
  gap: 4px;
}
.advanced-chart-compact b {
  color: var(--text);
  font-size: 0.82rem;
}
.advanced-chart-compact small {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.74rem;
}
@media (max-width: 980px) {
  .advanced-chart-guide,
  .advanced-chart-quick-grid,
  .advanced-chart-compact-grid {
    grid-template-columns: 1fr;
  }
  .advanced-chart-guide {
    display: grid;
  }
  .advanced-selected-pill {
    min-width: 0;
  }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .advanced-chart-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
