:root{
  --bg0:#040814;
  --bg1:#0a1326;

  --surface: rgba(255,255,255,0.045);
  --surface2: rgba(255,255,255,0.028);

  --stroke: rgba(148,163,184,0.16);
  --stroke2: rgba(255,255,255,0.18);

  --text: rgba(255,255,255,0.94);
  --muted: rgba(226,232,240,0.68);

  --shadow-sm: 0 8px 18px rgba(0,0,0,0.34);
  --shadow-md: 0 18px 42px rgba(0,0,0,0.42);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 14px;

  --gap: 16px;

  --mapGrey: #42526b;

  /* kompakt kart ayarları */
  --pc-pad-y: 7px;
  --pc-pad-x: 10px;
  --pc-gap: 6px;
  --pc-title: 12px;
  --pc-sub: 11px;
  --pc-percent: 13px;
  --pc-bar-h: 6px;
  --pc-seat: 12px;

  /* yeni yardımcı renkler */
  --panel-glow: rgba(59,130,246,0.10);
  --panel-glow-red: rgba(239,68,68,0.08);
  --accent: #60a5fa;
  --accent-soft: rgba(96,165,250,0.16);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }



body {
  background: linear-gradient(
    to bottom,
    #9CA0A5 0%,
    #B8BABD 18%,
    #D5D6D7 40%,
    #EAE9E7 65%,
    #FAF9F6 100%
  ) !important;
  background-attachment: fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(35, 40, 48, 0.18) 0%,
    rgba(35, 40, 48, 0.06) 35%,
    transparent 75%
  );
}

body > * {
  position: relative;
  z-index: 1;
}



/* ===== GRID ===== */
.app{
  width: min(1500px, calc(100vw - 28px));
  height: min(700px, calc(100vh - 28px));

  display:grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "top top top"
    "left map right";
  column-gap: 10px;
row-gap: 8px;
}
@media (min-width: 1200px){
  .app{ grid-template-columns: 240px minmax(0,1fr) 240px; }
}

.panel-left, .panel-right{ min-width:0; }

/* ===== PANELS ===== */
.panel{
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(15,23,42,0.82), rgba(8,15,30,0.90));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.panel-head{
  padding: 10px 14px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-head-row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:12px;
}

.panel-head-row > div:first-child{
  grid-column: 2;
  text-align:center;
}

.add-alliance-btn{
  grid-column: 3;
  justify-self:end;
}

.panel-title{
  font-size: 13px;
  font-weight: 900;
  letter-spacing:.2px;
  text-align:center;
}

.panel-sub{
  margin-top:4px;
  font-size: 12px;
  color: var(--muted);
}

.panel-body{
  padding: 10px;
  overflow:auto;
  min-height:0;
}

.panel-left{ grid-area:left; }
.panel-right{ grid-area:right; }

.hint{
  margin-top:auto;
  padding: 10px 14px 12px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== BRAND SLOT (LEFT STICKY HEADER) ===== */
.panel-left{
  position: relative;
  padding-top: 0;
}

.brand-slot{
  position: sticky;
  top: 0;

  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;

  z-index: 10;

  background:
    linear-gradient(180deg, rgba(12,20,38,0.96), rgba(12,20,38,0.78));
  border-bottom: 1px solid rgba(255,255,255,0.07);

  backdrop-filter: blur(10px);

  overflow:hidden;
  isolation:isolate;
}

.brand-slot::before{
  content:"";
  position:absolute;
  inset:-30px;
  z-index:0;
  background:
    radial-gradient(220px 120px at 15% 30%, rgba(59,130,246,.32), transparent 60%),
    radial-gradient(220px 120px at 85% 25%, rgba(239,68,68,.20), transparent 60%);
  filter: blur(16px);
  opacity:.9;
  pointer-events:none;
}

.brand-slot > *{
  position:relative;
  z-index:1;
}

.brand-logo{
  width:38px;
  height:38px;
  border-radius:12px;
  overflow:hidden;
  flex: 0 0 auto;
}
.brand-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter:
    drop-shadow(0 0 5px rgba(59,130,246,.40))
    drop-shadow(0 0 8px rgba(239,68,68,.20));
}

.brand-text{ min-width:0; }
.brand-name{
  font-weight:950;
  font-size:13px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-tag{
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== BUTTONS ===== */
.btn{
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.03));
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  white-space:nowrap;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.34);
  background: linear-gradient(180deg, rgba(96,165,250,0.12), rgba(255,255,255,0.04));
  box-shadow: 0 0 0 1px rgba(96,165,250,0.08) inset;
}

.btn.ghost{
  background: rgba(255,255,255,0.025);
}

.btn.danger{ background:#7f1d1d; }
.btn.danger:hover{ background:#991b1b; }

.icon-btn{
  width:34px;
  height:34px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  color: var(--text);
  cursor:pointer;
  transition: .14s ease;
}

.icon-btn:hover{
  border-color: rgba(96,165,250,0.34);
  background: rgba(96,165,250,0.08);
}

/* ===== MAP ===== */
.map-panel{ grid-area:map; min-height:0; }

.map-shell{
  grid-area: map;
  height:100%;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at top, rgba(59,130,246,0.08), transparent 34%),
    linear-gradient(180deg, rgba(8,15,30,0.96), rgba(5,10,22,0.98));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
#mapMount{ width:100%; height:100%; }
#mapMount svg{ width:100%; height:100%; display:block; }

#mapMount svg #features path{
  cursor:pointer;
  transition: fill .16s ease, transform .16s ease, stroke .16s ease, filter .16s ease;
  transform-box: fill-box;
  transform-origin: center;
  stroke: rgba(203,213,225,0.26);
  stroke-width: 0.9;
  fill: var(--mapGrey);
}

#mapMount svg #features path:hover{
  transform: scale(1.015);
  stroke: rgba(255,255,255,0.78);
  stroke-width: 1.05;
  filter: brightness(1.06);
}

#mapMount svg #features path.is-selected{
  stroke: rgba(255,255,255,0.92);
  stroke-width: 1.25;
}


/* ===== PARTY CARD (COMPACT PREMIUM) ===== */
.party-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:4px;

  border-radius:12px;
  padding:8px 10px;

  background:
    linear-gradient(180deg, rgba(17,24,39,0.95), rgba(11,18,32,0.90));
  border: 1px solid rgba(148,163,184,0.12);

  box-shadow:
    0 6px 16px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.025);

  overflow:hidden;
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;

  margin-bottom: 8px;
}

.party-card::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background: var(--c);
  opacity:.96;
  pointer-events:none;
}

.party-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--c) 12%, transparent), transparent 42%);
  opacity:.8;
  pointer-events:none;
}

.party-top,
.party-sub,
.party-percent,
.progress,
.party-seat{
  position:relative;
  z-index:1;
}

.party-top{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.party-logo{
  width:24px;
  height:24px;
  border-radius:6px;
  flex:0 0 24px;
  overflow:hidden;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
}

.party-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.party-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.party-title{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15px;
  line-height: 1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.party-sub{
  margin-top: 0;
  font-size: 10px;
  color: var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--c);
  flex:0 0 auto;
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 35%, transparent);
}

.party-percent{
  margin-top: 2px;
  font-size:14px;
  font-weight:800;
  line-height: 1;
  letter-spacing: -.2px;
}

.progress{
  margin-top: 6px;
  height:4px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  overflow:hidden;
}

.progress > span{
  display:block;
  height:100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 68%, white));
  border-radius:999px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 32%, transparent);
}

.party-seat{
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:10px;
  color: rgba(255,255,255,0.82);
  white-space:nowrap;
}

.party-seat span{
  color: var(--muted);
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
}

.party-seat strong{
  font-size: 12px;
  font-weight:900;
}

.party-card:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.035);
  background:
    linear-gradient(180deg, rgba(21,30,49,0.97), rgba(13,20,36,0.93));
}

.party-card.selected{
  border-color: color-mix(in srgb, var(--c) 30%, rgba(255,255,255,0.16));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent),
    0 12px 26px rgba(0,0,0,0.30);
}
/* ===== ALLIANCE (RIGHT) ===== */
.alliance{
  position:relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(10,20,44,0.96), rgba(9,16,32,0.92));
  box-shadow:
    0 10px 24px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 12px;
  margin-bottom: 12px;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.alliance::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background: linear-gradient(
    135deg,
    rgba(80,140,255,0.16) 0%,
    rgba(80,140,255,0.05) 22%,
    transparent 48%
  );
}

.alliance::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:0;
  height:1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.22),
    transparent
  );
  pointer-events:none;
}

.alliance:hover{
  transform: translateY(-2px);
  border-color: rgba(120,160,255,0.18);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.alliance-head{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-bottom: 4px;
  position:relative;
  z-index:1;
}

.alliance-head-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
  min-width:0;
  width:100%;
}

.alliance-name{
  font-weight:950;
  font-size:14px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:.2px;
  color:#ffffff;
  text-shadow: 0 1px 8px rgba(80,140,255,0.12);
}

.alliance-meta{
  font-size:12px;
  color: rgba(255,255,255,0.72);
  white-space:nowrap;
}

.alliance-members{
  margin-top:10px;
  display:grid;
  gap:10px;
  position:relative;
  z-index:1;
}

.member-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.025);
}
.member-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.member-logo{
  width:16px;
  height:16px;
  flex:0 0 16px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:4px;
  overflow:hidden;
  background: rgba(255,255,255,0.03);
}

.member-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.member-name{
  font-weight:850;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.member-val{ font-size:12px; color: rgba(255,255,255,0.86); white-space:nowrap; }

/* ===== TOP STATS ===== */
.bottom-bar{
  grid-area:top;
  border-radius: var(--r-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
    background:none;
  border:none;
  box-shadow:none;
}

.bottom-head{
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
}

.bottom-title{ font-size:13px; font-weight:950; }
.bottom-sub{ font-size:12px; color:var(--muted); }

.bottom-stats{
  padding: 10px 14px 12px;
  display:grid;

  grid-template-columns:
    220px
    minmax(0,1fr)
    minmax(0,1fr)
    minmax(0,1fr)
    220px;

  column-gap: 16px;
  align-items:stretch;
}
.download-slot{
  justify-self: end;
  width: 220px;

  display:flex;
  align-items:center;
  gap:12px;

  padding:10px 14px;

  border-radius: var(--r-md);
  border:1px solid rgba(96,165,250,0.18);

  background: linear-gradient(180deg, rgba(37,99,235,0.16), rgba(29,78,216,0.08));

  cursor:pointer;
  transition: 0.15s;
}

.download-slot:hover{
  border-color: rgba(96,165,250,0.34);
  background: linear-gradient(180deg, rgba(59,130,246,0.22), rgba(37,99,235,0.10));
}

.download-icon-box{
  width:36px;
  height:36px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:10px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

.download-icon-box svg{

  width:18px;
  height:18px;

}

.download-title{

  font-size:12px;
  color:var(--muted);

}

.download-sub{

  font-size:15px;
  font-weight:900;

}

.bottom-stats .brand-slot{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(18,27,46,0.92), rgba(14,22,38,0.78));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  min-width:0;
  position: relative;
  top: unset;
  backdrop-filter: none;
  overflow:hidden;
  isolation:isolate;
}

.bottom-stats .brand-slot::before{
  content:"";
  position:absolute;
  inset:-30px;
  z-index:0;
  background:
    radial-gradient(220px 120px at 15% 30%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(220px 120px at 85% 25%, rgba(239,68,68,.14), transparent 60%);
  filter: blur(14px);
  opacity:.82;
  pointer-events:none;
}

.bottom-stats .brand-slot > *{
  position:relative;
  z-index:1;
}
.bottom-stats .brand-logo{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  flex: 0 0 auto;
  overflow:hidden;
}

.bottom-stats .brand-text{ min-width:0; }
.bottom-stats .brand-name{
  font-weight:950;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bottom-stats .brand-tag{
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.stat-mini{
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(18,27,46,0.92), rgba(14,22,38,0.78));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  min-width:0;
}

.stat-mini-label{
  font-size:11px;
  color: var(--muted);
}

.stat-mini-value{
  margin-top:6px;
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
  color: rgba(255,255,255,0.98);
}

@media (max-width: 1100px){
  .bottom-stats{
    grid-template-columns: 160px repeat(3, minmax(0,1fr));
  }
  .stat-mini-value{ font-size:16px; }
}

/* ===== Hover card ===== */
.hover-card{
  position: fixed;
  z-index: 9999;

  min-width: 220px;
  max-width: 280px;

  border-radius: 18px;

  background: rgba(8,14,26,0.55);      /* daha transparent */
  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(16px);         /* glass effect */

  box-shadow:
    0 10px 28px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.06);

  padding: 12px;

  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.hover-card.show{
  opacity: 1;
  transform: translateY(0);
}
.hc-title{ font-weight:950; font-size:13px; }
.hc-sub{ margin-top:4px; font-size:12px; color: var(--muted); }
.hc-list{ margin-top:10px; display:grid; gap:8px; }
.hc-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.hc-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.hc-logo{
  width:16px;
  height:16px;
  flex:0 0 16px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:4px;
  overflow:hidden;
  background: rgba(255,255,255,0.03);
}

.hc-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.hc-name{ font-weight:850; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hc-val{ font-size:12px; color: rgba(255,255,255,0.86); white-space:nowrap; }

/* ===== Modal ===== */
.backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
  z-index: 9000;
}
.backdrop.show{ opacity: 1; pointer-events: auto; }

.modal{
  position: fixed;
  left: 50%;
  top: 50%;
  width: 560px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  transform: translate(-50%,-48%);
  opacity: 0;
  pointer-events:none;
  z-index: 9100;

  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(9, 15, 28, 0.96);
  box-shadow: 0 24px 60px rgba(0,0,0,0.58);
  overflow:hidden;

  display:flex;
  flex-direction:column;
}
.modal.show{
  opacity: 1;
  pointer-events:auto;
  transform: translate(-50%,-50%);
  transition: opacity .14s ease, transform .14s ease;
}
.modal-head{
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items:center;
}
.modal-title{ font-weight: 950; font-size: 14px; }
.modal-sub{ font-size: 12px; color: var(--muted); grid-column: 1 / 2; }
.modal-head .icon-btn{ grid-column: 2 / 3; grid-row: 1 / 3; justify-self:end; }

.modal-body{
  padding: 12px 14px 14px 14px;
  overflow:auto;
  min-height:0;
}
.modal-foot{
  padding: 12px 14px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  gap: 10px;
}

.modal-note{
  font-size:12px;
  color: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 10px 10px;
  margin-bottom: 12px;
}

.vote-list{ display:grid; gap:10px; }
.vote-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.vote-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.vote-dot{ width:10px;height:10px;border-radius:999px;background:var(--c); }
.vote-name{ font-weight:900; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.vote-row input{
  width: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--text);
  padding: 9px 10px;
  font-weight: 850;
  outline: none;
}
.vote-row input:focus{
  border-color: rgba(96,165,250,0.42);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.10);
}
.field{ display:grid; gap:6px; margin-bottom: 12px; }
.field span{ font-size:12px; color: var(--muted); font-weight:700; }
.field input{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 850;
  outline:none;
}
.field input:focus{
  border-color: rgba(96,165,250,0.42);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.10);
}

.checks{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; }
.check{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  cursor:pointer;
  user-select:none;
}
.check input{ transform: translateY(1px); }
.check b{ font-size:12px; font-weight:950; }
.check.disabled{ opacity: .45; cursor:not-allowed; }
.check.disabled input{ pointer-events:none; }

/* ===== Scrollbar ===== */
.panel-body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar{ width:8px; }
.panel-body::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track{ background: rgba(255,255,255,0.04); }
.panel-body::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.16);
  border-radius:10px;
  border:2px solid rgba(255,255,255,0.04);
}
.panel-body::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.22); }

/* ===== RESPONSIVE ===== */
@media (max-width:1100px){
  body{ align-items:flex-start; padding:16px; overflow:auto; }

  .app{
    width:100%;
    height:auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 70vh auto;
    grid-template-areas:
      "top"
      "left"
      "map"
      "right";
      
  }

  .bottom-stats{ grid-template-columns: 1fr; }
  .checks{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* =========================
   CANDIDATES UI (FULL UPDATE)
   - Tabs çakışma fix
   - "Aday ekle" küçük + kırmızı + tab altında
   - Çöp kutusu tıklama fix (z-index + pointer-events)
   ========================= */

/* 1) Tabs alanı */
.left-tabs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:nowrap;
}

.left-tabs .tabs{
  width:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  min-width:0;
}

.left-tabs .tabs .tab{
  flex:0 0 auto;
}

#btnAddCandidate{
  flex:0 0 auto;
  margin-left:0;
  padding:6px 10px;
  border-radius:10px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  height:28px;

  border:1px solid rgba(255,255,255,0.10);
  background:#7f1d1d;
  color:rgba(255,255,255,0.92);

  cursor:pointer;
  transition:transform .14s ease, background .14s ease, border-color .14s ease;
  white-space:nowrap;
}

#btnAddCandidate:hover{
  transform: translateY(-1px);
  background:#991b1b;
  border-color: rgba(255,255,255,0.18);
}

#btnAddCandidate:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:none;
}

/* genel disabled görünümü (map butonları dahil) */
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none !important;
}

/* 3) Candidate cards (eski candidate-card yapın varsa) */
.candidate-card{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;

  padding: 10px 10px;
  margin-bottom: 8px;

  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg,var(--surface),var(--surface2));
  box-shadow: var(--shadow-sm);

  color: var(--text);
  font-weight: 900;
  font-size: 12px;

  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
  text-align:left;
}

.candidate-card:hover{
  transform: translateY(-1px);
  border-color: var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.03));
}

.candidate-card.is-active{
  border-color: rgba(255,255,255,0.22);
  box-shadow: var(--shadow-md);
}

/* renk noktası */
.cand-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background: var(--c, rgba(255,255,255,0.6));
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.cand-name{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.1;
}

/* 4) Candidate modal: color input */
#candidateModal input[type="color"]{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 6px;
  cursor:pointer;
}

/* modal-foot tek buton olunca sağa yaslansın */
#candidateModal .modal-foot{
  justify-content:flex-end;
}

/* =========================
   DELETE ICON (cand-del)
   - cand-card (party-card) üzerinde kullanıyorsun
   - tıklama fix: z-index + pointer-events + overlay engeli
   ========================= */
.cand-card{ position:relative; }

.cand-del{
  position:absolute;
  top:10px;
  right:10px;

  width:30px;
  height:30px;
  border-radius:10px;

  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.85);

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  z-index: 50;               /* en üste */
  pointer-events: auto;      /* tıklanabilir */
}

.cand-del:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
}

/* olası overlay/progress tıklamayı yemesin */
.cand-card .progress,
.cand-card .progress *{
  pointer-events:none;
}
.map-buttons{
  position:absolute;
  top:18px;
  right:18px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  z-index:60;
}
/* tıklanabilir kutu */
.download-text{ cursor:pointer; user-select:none; }
.download-text:focus{ outline:none; }
.download-text:focus-visible{
  box-shadow: 0 0 0 3px rgba(231, 7, 7, 0.12);
  border-radius: 14px;
}

/* modal */
.dl-modal{
  position: fixed; inset:0;
  display:none;
  z-index: 9999;
}
.dl-modal.is-open{ display:block; }

.dl-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.dl-card{
  position: relative;
  width: min(560px, calc(100vw - 28px));
  margin: 10vh auto 0;
  border-radius: 22px;
  background: rgba(9,15,28,0.96);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  overflow: hidden;
}

.dl-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dl-kicker{ font-size:11px; color: rgba(255,255,255,0.60); }
.dl-title{ font-size:15px; font-weight:900; color: rgba(255,255,255,0.92); }

.dl-x{
  width:36px; height:36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  cursor:pointer;
}
.dl-x:hover{ background: rgba(255,255,255,0.07); }

/* tabs */
.dl-tabs{
  padding: 12px 16px;
  display:flex; align-items:center; gap: 10px;
}
.dl-tab{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
  font-weight: 850;
  cursor:pointer;
}
.dl-tab.is-active{
  background: linear-gradient(180deg, rgba(59,130,246,0.18), rgba(59,130,246,0.08));
  border-color: rgba(96,165,250,0.28);
}
.dl-tab-hint{
  margin-left:auto;
  font-size:12px;
  color: rgba(255,255,255,0.60);
}
#dlFormatText{ color: rgba(255,255,255,0.86); font-weight: 850; }

/* list rows */
.dl-list{
  padding: 6px 16px 14px;
  display:flex; flex-direction:column; gap: 10px;
}
.dl-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.dl-row-title{
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  display:flex; align-items:center; gap: 8px;
}
.dl-row-sub{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}
.dl-badge{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
}

.dl-btn{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(96,165,250,0.16);
  background: rgba(59,130,246,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  cursor:pointer;
  min-width: 92px;
}
.dl-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(25%);
}

.dl-foot{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dl-foot-note{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.copyright{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  padding: 4px 14px;
  font-size: 11px;
  color: rgba(226,232,240,0.42);
  background: rgba(8,14,26,0.62);
  border-top: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.add-candidate-btn{
  width:30px;
  height:30px;
  padding:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:18px;
  font-weight:900;

  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);

  background:#7f1d1d;
  color:white;

  cursor:pointer;
  transition:transform .15s ease, background .15s ease;
}

.add-candidate-btn:hover{
  background:#991b1b;
  transform:translateY(-1px);
}

.add-candidate-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:none;
}
.add-alliance-btn{
  width:26px;
  height:26px;
  padding:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:16px;
  font-weight:900;

  border-radius:8px;
  border:1px solid rgba(255,255,255,0.12);

  background:#1d4ed8;
  color:white;

  cursor:pointer;
  transition:transform .15s ease, background .15s ease;
}

.add-alliance-btn:hover{
  background:#2563eb;
  transform:translateY(-1px);
}
/* ===== KEY GATE ===== */

.party-mv-badge{
  position:absolute;
  top:8px;
  right:10px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width: 52px;
  height: 22px;
  padding: 0 8px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.88);

  z-index: 2;
}
/* ===== MAP SHELL ===== */
.map-shell{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 14px;
  gap: 14px;
}

/* üst kısım: harita + butonlar */
.map-top{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
}

/* haritanın kapladığı alan */
#mapMount{
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* sağ üst butonlar */
.map-buttons{
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 12px;
  z-index: 5;
  padding: 4px;
}

/* ===== SPONSORS ===== */
.sponsor-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  width:100%;
  flex:0 0 auto;
}

/* sponsor kutusu */
.sponsor-box{
  display:flex;
  flex-direction:column;
  gap:8px;

  padding:10px; /* küçültüldü */
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 18px rgba(0,0,0,0.28);
}

/* banner alanı */
.sponsor-link{
  width:100%;
  height:70px; /* 96px -> 70px */
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;

  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.03);
}

/* banner */
.sponsor-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* yazı */
.sponsor-text{
  font-size:11px; /* küçültüldü */
  line-height:1.4;
  text-align:center;
  color:rgba(255,255,255,0.75);
}

.sponsor-text strong{
  color:#fff;
  font-weight:700;
}

.sponsor-text strong{
  color:#fff;
  font-weight:800;
}

/* ===== MAP BUTTONS küçültme ===== */
.map-buttons{
  gap:8px;
}

.map-buttons .btn{
  padding:6px 12px;
  font-size:12px;
  border-radius:10px;
  font-weight:600;
  min-height:30px;
}

.map-buttons .btn.danger{
  padding:6px 12px;
}

/* ===== MOBIL ===== */
@media (max-width:900px){
  .sponsor-row{
    grid-template-columns:1fr;
  }

  .sponsor-link{
    height:88px;
  }

  .map-buttons{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

/* ===========================================================
   SECIMLAB / EDITORIAL UI REFINEMENT — 2026
   Existing app selectors and functionality are preserved.
   =========================================================== */
:root {
  --bg0:#0b1018; --bg1:#101722;
  --surface:#151d28; --surface2:#111923;
  --stroke:rgba(180,193,210,.13); --stroke2:rgba(180,193,210,.23);
  --text:#eef2f6; --muted:#96a3b3;
  --shadow-sm:0 3px 12px rgba(0,0,0,.12);
  --shadow-md:0 12px 35px rgba(0,0,0,.16);
  --r-lg:14px; --r-md:10px; --r-sm:8px; --gap:12px;
  --accent:#b5c7db; --accent-soft:rgba(181,199,219,.10);
  --panel-glow:transparent; --panel-glow-red:transparent;
}
html { color-scheme:dark; }
body { padding:18px; background:#0b1018; font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif; letter-spacing:-.012em; }
.app { width:min(1680px,calc(100vw - 36px)); height:min(880px,calc(100dvh - 36px)); grid-template-columns:260px minmax(0,1fr) 260px; gap:12px; }
@media(min-width:1200px){.app{grid-template-columns:260px minmax(0,1fr) 260px}}
.panel { background:#131b26; border:1px solid #27313d; border-radius:14px; box-shadow:none; }
.panel-head { padding:15px 14px 12px; border-bottom:1px solid #26303b; }
.panel-title { font-size:13px; font-weight:700; letter-spacing:.015em; }
.panel-body { scrollbar-color:#354252 transparent; }
.bottom-bar { border-radius:12px; background:#131b26; border:1px solid #27313d; }
.bottom-stats { padding:12px 16px; column-gap:12px; grid-template-columns:220px repeat(3,minmax(0,1fr)) 190px; align-items:center; }
.brand-name { letter-spacing:-.045em; }
.brand-tag,.stat-mini-label,.download-sub { color:#94a2b2; }
.download-slot { width:190px; border:1px solid #334152; background:#1a2532; border-radius:9px; box-shadow:none; }
.download-slot:hover { background:#223142; border-color:#53667c; }
.download-icon-box { background:#263545; }
.map-shell { padding:0; gap:10px; }
.map-top { background:#131b26; border:1px solid #27313d; border-radius:14px; padding:12px; }
#mapMount { min-height:0; }
.map-buttons { top:12px; right:12px; gap:6px; padding:0; }
.map-buttons .btn { padding:8px 10px; min-height:34px; border-radius:7px; font-size:11px; font-weight:650; }
.btn,.icon-btn,.dl-btn { transition:background-color .15s ease,border-color .15s ease,transform .15s ease; }
.btn:focus-visible,.icon-btn:focus-visible,.download-slot:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid #b8cadf; outline-offset:2px; }
button:active { transform:translateY(1px); }
.modal,.dl-card { box-shadow:0 24px 75px rgba(0,0,0,.45); }
@media(max-width:1100px){
  body { overflow:auto; padding:12px; align-items:flex-start; }
  .app { width:100%; height:auto; min-height:calc(100dvh - 24px); grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto minmax(400px,55vh) auto; grid-template-areas:'top top' 'map map' 'left right'; }
  .panel { min-height:320px; max-height:540px; }
  .bottom-stats { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:12px; }
  .brand-slot { grid-column:1 / 3; }
  .download-slot { grid-column:3; grid-row:1; }
  .map-top { min-height:400px; }
}
@media(max-width:640px){
  .app { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 420px auto auto; grid-template-areas:'top' 'map' 'left' 'right'; }
  .bottom-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px; }
  .brand-slot { grid-column:1 / -1; }
  .download-slot { grid-column:1 / -1; grid-row:auto; width:100%; justify-self:stretch; }
  .stat-mini { min-width:0; }
  .stat-mini-value { font-size:clamp(13px,3.5vw,19px); }
  .map-top { min-height:420px; padding:8px; }
  .map-buttons { left:8px; right:8px; top:8px; justify-content:center; flex-wrap:wrap; }
  .map-buttons .btn { font-size:10px; padding:6px 7px; }
  .panel { max-height:460px; }
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* SECIMLAB — LIGHT EDITORIAL / NOVEMBER 2026 */
:root {
  --bg0:#f4f5f6; --bg1:#f8f9fa;
  --surface:rgba(255,255,255,.64); --surface2:rgba(255,255,255,.42);
  --stroke:rgba(38,48,61,.11); --stroke2:rgba(38,48,61,.2);
  --text:#202831; --muted:#747e88;
  --shadow-sm:0 3px 12px rgba(33,43,53,.035);
  --shadow-md:0 14px 36px rgba(33,43,53,.045);
  --mapGrey:#444c56; --accent:#394858; --accent-soft:rgba(57,72,88,.08);
  --panel-glow:transparent; --panel-glow-red:transparent;
}
html{color-scheme:light}
body{background:#f5f6f7;color:var(--text);padding:22px;overflow:hidden;align-items:center}
.app{width:min(1700px,calc(100vw - 44px));height:min(930px,calc(100dvh - 44px));display:grid;grid-template-columns:245px minmax(0,1fr) 245px;grid-template-rows:62px minmax(0,1fr);grid-template-areas:'header header header' 'left map right';gap:14px 16px}
.site-header{grid-area:header;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e5e8;padding:0 4px 12px;min-width:0}
.site-header .brand-slot{position:static;background:none;border:0;padding:0;backdrop-filter:none;isolation:auto;overflow:visible;gap:11px}
.site-header .brand-slot::before{display:none}
.site-header .brand-logo{width:46px;height:46px;border-radius:0;overflow:visible}
.site-header .brand-logo img{filter:none;object-fit:contain}
.site-header .brand-name{font-size:21px;font-weight:800;letter-spacing:-.055em;color:#242c34}
.site-header .brand-tag{font-size:11px;color:#8b929a;margin-top:4px}
.header-caption{font-size:10px;font-weight:750;letter-spacing:.16em;color:#9aa2aa}
.panel{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.panel-head{border-bottom:1px solid #e0e4e7;padding:10px 5px 14px}
.panel-title{font-size:14px;color:#303942}
.panel-body{padding:12px 3px;scrollbar-color:#cbd0d5 transparent}
.map-shell{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;gap:13px;min-height:0;justify-content:stretch;align-items:stretch;overflow:visible}
.map-top{flex:1 1 auto;background:transparent;border:0;border-radius:0;padding:0;overflow:hidden;min-height:0}
#mapMount{height:100%;min-height:0;width:100%}
#mapMount svg #features path{stroke:#e4e8eb!important;stroke-width:1.55!important;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#mapMount svg #features path:hover{stroke:#ffffff!important;stroke-width:2.2!important;filter:brightness(1.13)}
#mapMount svg #features path.is-selected{stroke:#fff!important;stroke-width:2.5!important}
.map-buttons{top:8px;right:8px;gap:6px}
.btn,.icon-btn,.dl-btn{color:#35404a;background:rgba(255,255,255,.7);border:1px solid #dce1e5;box-shadow:none;border-radius:8px}
.btn:hover,.icon-btn:hover,.dl-btn:hover{background:#fff;border-color:#bac4cc;color:#1e2933}
.btn.active,.tab.active{background:#343e48;color:#fff;border-color:#343e48}
.btn.danger{background:#fff5f5;color:#ae5050;border-color:#f0dada}
.map-buttons .btn{background:rgba(255,255,255,.89);border-color:#d9dee3;box-shadow:0 3px 14px rgba(28,40,52,.05);color:#34404b}
.map-buttons .btn.danger{color:#ad5151;background:#fff7f7}
.bottom-bar{grid-area:auto;flex:0 0 auto;background:transparent;border:0;border-top:1px solid #dfe3e6;border-radius:0;overflow:visible;padding-top:12px}
.bottom-stats{padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(135px,1.12fr);gap:10px;align-items:stretch}
.stat-mini{background:rgba(255,255,255,.55);border:1px solid rgba(50,60,70,.09);border-radius:10px;min-width:0;padding:12px 13px;box-shadow:none}
.stat-mini-label{color:#8a939b;font-size:11px}
.stat-mini-value{color:#27313a;font-size:clamp(13px,1.35vw,19px);font-weight:750}
.download-slot{width:auto;min-width:0;justify-self:stretch;background:#343f49;border:1px solid #343f49;border-radius:10px;box-shadow:none;padding:10px 12px;gap:8px}
.download-slot:hover{background:#485662;border-color:#485662}
.download-icon-box{background:rgba(255,255,255,.13);border:0;color:#fff;flex:0 0 34px}
.download-title{color:#d3dbe1;font-size:10px}
.download-sub{color:#fff;font-size:15px}
.party-card,.alliance-card,.candidate-card{background:rgba(255,255,255,.58)!important;border:1px solid rgba(43,54,65,.10)!important;box-shadow:none!important;border-radius:10px!important;color:#2a333c}
.party-card:hover,.alliance-card:hover,.candidate-card:hover{background:#fff!important;border-color:#c9d1d8!important}
.member-val{color:#4e5b66}
.modal,.dl-card{background:#fff;color:#27313a;border:1px solid #dce1e5;box-shadow:0 24px 70px rgba(30,41,52,.16)}
.backdrop,.dl-backdrop{background:rgba(29,39,49,.45)}
input,select,textarea{color:#25313c}
.copyright{color:#a0a8ae}
@media(max-width:1100px){body{overflow:auto;padding:14px;align-items:flex-start}.app{width:100%;height:auto;min-height:calc(100dvh - 28px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:60px minmax(460px,60vh) auto;grid-template-areas:'header header' 'map map' 'left right'}.panel{min-height:320px;max-height:520px}.map-top{min-height:320px}.bottom-stats{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(130px,1fr)} }
@media(max-width:640px){.app{grid-template-columns:minmax(0,1fr);grid-template-rows:60px auto auto auto;grid-template-areas:'header' 'map' 'left' 'right';gap:12px}.header-caption{display:none}.map-shell{min-height:0;height:auto}.map-top{min-height:340px;height:340px}.map-buttons{top:5px;left:5px;right:5px;justify-content:center;flex-wrap:wrap}.map-buttons .btn{font-size:10px;padding:6px 8px}.bottom-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat-mini{padding:10px 7px}.stat-mini-value{font-size:clamp(11px,3vw,15px)}.download-slot{grid-column:1/-1;grid-row:auto;width:100%;justify-self:stretch}.panel{max-height:480px}}


/* LIGHT THEME V2 — deliberately final in cascade */
html,body{color-scheme:light!important}
body{background:#f7f8f9!important;color:#28323a!important;position:relative;isolation:isolate}
body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:contain;opacity:.52}
body::before{width:min(34vw,490px);height:min(34vw,490px);top:6%;left:-8%;background-image:url('../img/turkic-motif.svg')}
body::after{width:min(28vw,400px);height:min(28vw,400px);right:-7%;bottom:-10%;background-image:url('../img/turkic-motif.svg');transform:rotate(32deg);opacity:.35}
.app{background:transparent!important}
.site-header{background:transparent!important;border-bottom-color:#dce1e5!important}
.panel,.panel-left,.panel-right,.map-shell,.map-top,.bottom-bar{background:transparent!important;box-shadow:none!important}
.panel-head{background:transparent!important}
.panel-body{background:transparent!important}
.party-card,.candidate-card,.alliance-card{background:rgba(255,255,255,.55)!important;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);color:#28323a!important;border:1px solid rgba(86,102,117,.16)!important;box-shadow:0 4px 18px rgba(45,58,69,.035)!important}
.party-card::before{opacity:.12!important}
.party-card:hover,.alliance-card:hover,.candidate-card:hover{background:rgba(255,255,255,.88)!important}
.party-card *, .alliance-card *, .candidate-card *{text-shadow:none!important}
.party-name,.candidate-name,.alliance-name,.party-pct,.party-votes,.party-mv,.member-val{color:#29343d!important}
.stat-mini{background:rgba(255,255,255,.6)!important;backdrop-filter:blur(8px)}
.download-slot{background:rgba(255,255,255,.7)!important;border-color:#cbd3d9!important;backdrop-filter:blur(8px)}
.download-title{color:#75818b!important}.download-sub,.download-icon-box{color:#27343e!important}
.download-icon-box{background:rgba(37,52,66,.06)!important}
#mapMount svg #features path{stroke:#f9fafb!important;stroke-width:1.75!important;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#mapMount svg #features path:hover{stroke:#ffffff!important;stroke-width:2.5!important}
.copyright{color:#818b94!important}
@media(max-width:640px){body::before{width:230px;height:230px;left:-90px}body::after{width:190px;height:190px;right:-80px}}

/* SECIMLAB V3 — CLEAN HORIZONTAL ELECTION WORKSPACE */
html,body{min-height:100%;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;color-scheme:light!important}
body{display:block!important;margin:0!important;padding:0!important;background:#f7f8fa!important;color:#27313c!important;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
body::before{opacity:.18!important;width:320px!important;height:320px!important}
body::after{opacity:.12!important}
.app{display:block!important;width:min(1540px,calc(100% - 64px))!important;height:auto!important;min-height:100vh!important;margin:0 auto!important;background:transparent!important}
.site-header{height:80px!important;display:flex!important;border-bottom:1.5px solid #cdd4da!important;padding:0 3px!important;margin-bottom:0!important}
.brand-slot{display:flex!important;align-items:center!important}
.workspace{display:flex;flex-direction:column;gap:0;min-width:0}
.workspace-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 2px 14px;border-bottom:1.5px solid #d1d8de;flex-wrap:wrap}
.workspace-toolbar .tabs,.workspace-toolbar .map-buttons{position:static!important;display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;padding:0!important;background:transparent!important}
.workspace-toolbar .btn{min-height:35px;padding:8px 14px;font-size:12px;font-weight:650;background:rgba(255,255,255,.55)!important;color:#35414c!important;border:1px solid #cbd3d9!important;box-shadow:none!important}
.workspace-toolbar .btn.active{background:#36424e!important;color:white!important;border-color:#36424e!important}
.workspace-toolbar .btn.danger{color:#b64b4b!important;background:#fff6f6!important;border-color:#e8cece!important}
.workspace-toolbar .btn.alliance-add{background:#34424e!important;color:#fff!important;border-color:#34424e!important}
.map-shell{display:block!important;height:auto!important;min-height:0!important;padding:20px 0 12px!important;margin:0!important;border-bottom:1.5px solid #cdd5dc!important;overflow:visible!important}
.map-top{height:clamp(310px,36vw,520px)!important;min-height:0!important;position:relative!important;overflow:hidden!important}
#mapMount{height:100%!important;min-height:0!important;display:flex;align-items:center;justify-content:center}
#mapMount svg{max-height:100%!important;max-width:100%!important}
#mapMount svg #features path{stroke:#fff!important;stroke-width:1.85!important;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.party-section,.alliances-section{padding:20px 0 22px;border-bottom:1.5px solid #cdd5dc;min-width:0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}
.section-heading h2{font-size:18px;letter-spacing:-.03em;margin:3px 0 0;color:#26313b;font-weight:750}
.eyebrow{font-size:9px;letter-spacing:.17em;font-weight:800;color:#89949d}
.rail-controls{display:flex;gap:7px}
.rail-arrow{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1.5px solid #bfc9d1;background:#fff;color:#394650;font-size:25px;cursor:pointer;line-height:1}
.rail-arrow:hover{background:#edf1f4}
.party-rail{display:flex!important;flex-wrap:nowrap!important;gap:18px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c5cdd4 transparent;padding:5px 3px 14px!important;min-height:172px;max-height:none!important;background:transparent!important}
.party-orb-item{position:relative;flex:0 0 118px;min-width:0;display:flex;align-items:center;flex-direction:column;gap:4px;text-align:center;scroll-snap-align:start;color:#26313b;cursor:default}
.party-orb{width:76px;height:76px;flex:0 0 76px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--party-color,#9ba7b2);background:rgba(255,255,255,.68);box-shadow:0 0 0 5px rgba(255,255,255,.6),0 2px 10px rgba(31,46,59,.05);overflow:hidden;transition:transform .2s,border-color .2s}
.party-orb-item:hover .party-orb{transform:translateY(-3px)}
.party-orb img{width:60%;height:60%;object-fit:contain}
.orb-name{font-weight:800;font-size:12px;white-space:nowrap;max-width:116px;overflow:hidden;text-overflow:ellipsis;margin-top:8px}
.orb-pct{font-weight:850;font-size:17px;letter-spacing:-.04em;color:#27323d}
.orb-detail{font-size:10px;color:#74818c;line-height:1.4}
.orb-detail b{color:#4b5863}
.candidate-orb span{font-size:23px;font-weight:800;color:#3c4853}
.candidate-orb-item .cand-del{position:absolute;right:9px;top:0;z-index:2;background:#fff;border:1px solid #d6dce1;border-radius:50%;width:24px;height:24px;color:#ad4b4b;cursor:pointer}
.alliance-rail{display:flex;gap:18px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 12px;min-height:110px}
.alliance-group{flex:0 0 auto;min-width:205px;padding:12px 20px 14px;border:1.5px solid #d0d8de;border-radius:13px;background:rgba(255,255,255,.5);text-align:center}
.alliance-group-name{font-size:13px;font-weight:800;color:#283540}
.alliance-group-meta{font-size:11px;color:#77848e;margin-top:4px}
.alliance-chain{display:flex;align-items:start;justify-content:center;gap:17px;margin-top:14px}
.alliance-member{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:52px;font-size:10px;font-weight:700;color:#4d5a65}
.alliance-member+.alliance-member::before{content:"";position:absolute;top:26px;right:calc(100% + 1px);width:17px;height:2px;background:#a8b3bc}
.alliance-orb{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;border:2px solid var(--party-color,#aab3ba);background:#fff;overflow:hidden}
.alliance-orb img{width:65%;height:65%;object-fit:contain}
.alliance-empty{font-size:12px;color:#8b959e;padding:8px 2px}
.bottom-bar{display:block!important;border:0!important;padding:18px 0 22px!important}
.bottom-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(150px,1fr)!important;gap:12px!important}
.stat-mini,.download-slot{border:1.5px solid #d0d8de!important;border-radius:12px!important;background:rgba(255,255,255,.63)!important;box-shadow:none!important;min-height:66px}
.copyright{position:static!important;text-align:center!important;padding:12px!important;border-top:1px solid #e0e5e9;color:#89949d!important}
@media(max-width:900px){.app{width:calc(100% - 32px)!important}.workspace-toolbar{align-items:flex-start}.map-top{height:clamp(250px,50vw,400px)!important}.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.app{width:calc(100% - 24px)!important}.site-header{height:70px!important}.workspace-toolbar{padding:12px 0;gap:12px}.workspace-toolbar .map-buttons{gap:5px}.workspace-toolbar .btn{padding:7px 9px;font-size:10px}.map-shell{padding:10px 0!important}.map-top{height:260px!important}.party-section,.alliances-section{padding:15px 0}.party-orb-item{flex-basis:98px}.party-orb{width:65px;height:65px;flex-basis:65px}.bottom-stats{gap:8px!important}.stat-mini{padding:10px!important}.download-slot{grid-column:auto!important;grid-row:auto!important;width:auto!important}.section-heading h2{font-size:16px}}

/* SECIMLAB V4 — CREAM, SINGLE-SCREEN WORKSPACE */
:root{color-scheme:light}
html,body{height:100%!important;min-height:100%!important;overflow:hidden!important}
body{background:#FAF9F6!important}
.app{height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.site-header{height:65px!important;min-height:65px!important;flex:0 0 65px!important}
.workspace{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.workspace-toolbar{flex:0 0 auto!important;padding:10px 2px!important}
.bottom-bar{order:1!important;flex:0 0 auto!important;padding:10px 0!important;border-bottom:1.5px solid #bdc4c8!important}
.bottom-stats{gap:9px!important}
.stat-mini,.download-slot{min-height:52px!important;padding:7px 12px!important}
.map-shell{order:2!important;flex:1 1 auto!important;min-height:100px!important;padding:8px 0!important;overflow:hidden!important}
.map-top{height:100%!important;min-height:0!important}
.party-section{order:3!important;flex:0 0 auto!important;min-height:0!important;padding:9px 0 7px!important;border-bottom:0!important}
.section-heading{margin-bottom:6px!important}
.section-heading h2{font-size:15px!important}
.party-rail-wrap{position:relative;min-width:0}
.party-rail{min-height:0!important;height:clamp(138px,19vh,176px)!important;padding:5px 6px!important;gap:14px!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
.party-rail::-webkit-scrollbar,.alliance-rail::-webkit-scrollbar{display:none!important}
.party-orb-item{flex-basis:100px!important;gap:2px!important}
.party-orb{width:clamp(49px,7vh,69px)!important;height:clamp(49px,7vh,69px)!important;flex-basis:auto!important}
.orb-name{margin-top:3px!important}.orb-pct{font-size:15px!important}.orb-detail{font-size:10px!important}
.rail-arrow{position:absolute;top:30%;z-index:5;width:36px;height:36px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;background:#fff!important;box-shadow:0 3px 15px #0002}
.rail-arrow-prev{left:2px;transform:translateX(-6px)}
.rail-arrow-next{right:2px;transform:translateX(6px)}
.party-rail-wrap:hover .rail-arrow,.party-rail-wrap:focus-within .rail-arrow{opacity:1;pointer-events:auto;transform:translateX(0)}
.party-alliance-group{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:7px;padding:4px 13px 5px;border:1.5px solid #c4c8c9;border-radius:12px;background:rgba(255,255,255,.4);min-width:0}
.party-alliance-heading{display:flex;flex-direction:column;align-items:center;gap:2px;color:#2b343b;font-size:11px;white-space:nowrap}
.party-alliance-heading strong{font-size:12px}
.party-alliance-heading span{font-size:10px;color:#58636b}
.party-alliance-members{display:flex;align-items:flex-start;gap:10px;position:relative}
.party-alliance-members>.party-orb-item:not(:first-child)::before{content:'';position:absolute;top:31px;left:-12px;width:14px;height:2px;background:#87939b}
.party-alliance-members .party-orb-item{flex-basis:92px!important}
.copyright{flex:0 0 auto!important;padding:4px!important;font-size:9px!important}
@media(max-width:700px){html,body{overflow:hidden!important}.app{width:calc(100% - 20px)!important}.site-header{height:56px!important;min-height:56px!important;flex-basis:56px!important}.workspace-toolbar{gap:5px!important;padding:6px 0!important}.workspace-toolbar .btn{padding:5px 7px!important;font-size:9px!important;min-height:28px!important}.bottom-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.stat-mini{padding:5px!important;min-height:43px!important}.download-slot{grid-column:1/-1!important;min-height:30px!important;padding:3px 9px!important}.map-shell{min-height:85px!important}.party-rail{height:150px!important}.rail-arrow{opacity:.85;pointer-events:auto}.party-section{padding:5px 0!important}.party-alliance-group{padding:4px 8px}.copyright{display:none!important}}
@media(max-height:680px){.site-header{height:48px!important;min-height:48px!important;flex-basis:48px!important}.party-rail{height:130px!important}.party-orb{height:47px!important;width:47px!important}.workspace-toolbar{padding:5px 0!important}.bottom-bar{padding:5px 0!important}}

/* V5: matched party/alliance grid, improved hierarchy and toolbar download */
.workspace-toolbar .map-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.workspace-toolbar .download-slot{display:flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:105px!important;min-height:35px!important;padding:6px 13px!important;background:#fff!important;border:1.5px solid #b9c2c9!important;border-radius:9px!important;cursor:pointer}
.workspace-toolbar .download-icon-box{width:19px!important;height:19px!important;flex:0 0 19px!important;background:transparent!important;padding:0!important}
.workspace-toolbar .download-icon-box svg{width:18px;height:18px}
.workspace-toolbar .download-title{display:none!important}
.workspace-toolbar .download-sub{font-size:12px!important;font-weight:800!important;color:#25313a!important}
.bottom-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.party-rail{align-items:stretch!important;gap:16px!important;height:clamp(155px,22vh,190px)!important}
.party-rail>.party-orb-item{padding-top:43px!important;box-sizing:border-box;flex:0 0 100px!important}
.party-alliance-group{box-sizing:border-box!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:8px!important;padding:6px 13px 8px!important;border:1.5px solid #b5c0c9!important;border-radius:12px!important;background:rgba(255,255,255,.65)!important}
.party-alliance-heading{height:37px!important;min-height:37px!important;gap:3px!important;justify-content:flex-start!important;white-space:nowrap!important}
.party-alliance-heading strong{font-size:13px!important;font-weight:850!important;line-height:15px!important;color:#202c35!important}
.alliance-totals{display:flex;gap:9px;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;font-weight:800;color:#26333e;font-variant-numeric:tabular-nums}
.alliance-totals small{font-size:9px;font-weight:650;color:#66737d}
.alliance-percent{color:#1c526d}.alliance-seats{color:#25313a}
.party-alliance-members{gap:13px!important;align-items:flex-start!important;position:relative!important}
.party-alliance-members .party-orb-item{flex:0 0 92px!important;gap:3px!important}
.party-alliance-members>.party-orb-item:not(:first-child)::before{content:none!important}
.party-alliance-members .party-orb-item+.party-orb-item:after{content:'';position:absolute;left:-13px;top:calc(clamp(49px,7vh,69px) / 2);height:2px;width:13px;background:#a6b1ba;pointer-events:none}
.party-orb-item .orb-name{font-size:12px!important;color:#26313a!important;font-weight:850!important;margin-top:5px!important}
.party-orb-item .orb-pct{font-size:16px!important;font-weight:900!important;color:#17232d!important;letter-spacing:-.025em!important}
.party-orb-item .orb-detail{font-size:11px!important;color:#42515d!important;font-weight:650!important;font-variant-numeric:tabular-nums;line-height:1.25!important}
.party-orb-item .orb-detail b{color:#1c2832!important;font-weight:850!important}
@media(max-width:700px){.workspace-toolbar .download-slot{min-height:28px!important;padding:4px 8px!important}.workspace-toolbar .download-sub{font-size:10px!important}.party-rail{height:160px!important}.party-rail>.party-orb-item{padding-top:43px!important}.party-alliance-group{padding:5px 9px!important}.party-alliance-members{gap:10px!important}.party-alliance-members .party-orb-item{flex-basis:83px!important}.alliance-totals{gap:5px;font-size:10px}}
@media(max-height:680px){.party-rail{height:145px!important}.party-rail>.party-orb-item{padding-top:41px!important}}

/* V6 — Consistent alliance cards, readable party names, no clipped edges */
:root { --v6-rail-height: 208px; }
.party-section { min-height:0!important; padding:7px 0 3px!important; }
.party-rail-wrap { overflow:visible!important; isolation:isolate; }
.party-rail { box-sizing:border-box!important; height:var(--v6-rail-height)!important; min-height:var(--v6-rail-height)!important; padding:8px 18px 10px!important; gap:18px!important; align-items:flex-start!important; scroll-padding-inline:18px; scroll-snap-type:x proximity!important; }
.party-rail>.party-orb-item { padding-top:48px!important; flex:0 0 108px!important; }
.party-orb-item { box-sizing:border-box!important; min-width:0!important; gap:4px!important; overflow:visible!important; }
.party-orb-item .orb-name { display:block!important; position:relative!important; width:100%!important; max-width:100%!important; min-height:17px!important; height:auto!important; overflow:visible!important; white-space:nowrap!important; text-overflow:clip!important; line-height:17px!important; font-size:12px!important; font-weight:850!important; margin:4px 0 0!important; color:#1d2933!important; z-index:1; }
.party-orb-item .orb-pct { line-height:21px!important; margin:0!important; font-size:17px!important; font-weight:900!important; color:#18242e!important; }
.party-orb-item .orb-detail { display:block!important; font-size:10.5px!important; line-height:1.35!important; color:#354451!important; white-space:nowrap!important; }
.party-alliance-group { flex:0 0 auto!important; align-self:flex-start!important; box-sizing:border-box!important; min-width:max-content!important; height:198px!important; margin:0!important; padding:9px 15px 10px!important; border:1.5px solid #b7c2c9!important; border-radius:15px!important; background:rgba(255,255,255,.78)!important; box-shadow:0 3px 15px rgba(37,49,60,.055)!important; scroll-snap-align:start; }
.party-alliance-heading { height:42px!important; min-height:42px!important; width:100%; border-bottom:1px solid #e0e5e9; padding-bottom:6px; margin-bottom:2px; }
.party-alliance-heading strong { font-size:13px!important; line-height:17px!important; color:#1e2a34!important; }
.alliance-totals { gap:11px!important; font-size:11px!important; font-weight:850!important; }
.alliance-totals small { font-size:9px!important; }
.party-alliance-members { gap:15px!important; align-items:flex-start!important; padding:1px 0 0!important; }
.party-alliance-members .party-orb-item { flex:0 0 99px!important; width:99px!important; }
.party-alliance-members .party-orb-item+.party-orb-item::after { top:calc(clamp(49px,7vh,69px) / 2)!important; left:-15px!important; width:15px!important; background:#a6b2ba!important; }
.map-shell { padding:4px 0!important; }
.copyright { display:block!important; flex:0 0 19px!important; min-height:19px!important; padding:2px 0!important; font-size:10px!important; color:#6b7780!important; border-top:1px solid #d6dadd!important; }
@media(max-width:700px){ :root{--v6-rail-height:190px} .party-alliance-group{height:180px!important;padding:7px 11px!important} .party-rail{padding:6px 14px 8px!important;scroll-padding-inline:14px}.party-rail>.party-orb-item{padding-top:47px!important}.party-alliance-members .party-orb-item{flex-basis:87px!important;width:87px!important}.copyright{display:block!important;font-size:9px!important} }
@media(max-height:740px) and (min-width:701px){ :root{--v6-rail-height:185px} .party-alliance-group{height:175px!important}.party-rail>.party-orb-item{padding-top:47px!important}.party-orb-item .orb-detail{font-size:9.5px!important} }


/* SECIMLAB V7 — Refined single-screen dashboard */
:root{--v6-rail-height:165px}
body{background:#FAF9F6!important}
.app{background:transparent!important}
.workspace{gap:0!important}
.bottom-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.stat-mini{background:rgba(255,255,255,.68)!important;border:1px solid #cbd2d7!important;min-width:0!important}
.stat-mini-value{color:#1e2935!important;font-size:clamp(14px,1.3vw,20px)!important;font-weight:850!important;font-variant-numeric:tabular-nums}
.map-shell{min-height:0!important;padding:4px 0 10px!important}
.map-top{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(230px,25vw,360px)!important;gap:clamp(12px,2vw,28px)!important;align-items:center!important;min-height:0!important}
#mapMount{min-width:0!important;min-height:0!important;height:100%!important;overflow:hidden!important}
#mapMount svg{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.assembly-panel{align-self:center;min-width:0;padding:17px 15px 14px;border:1px solid #cbd2d7;border-radius:16px;background:rgba(255,255,255,.62);box-shadow:0 8px 24px rgba(35,48,60,.04);color:#25313c}
.assembly-eyebrow{font-size:9px;font-weight:800;letter-spacing:.16em;color:#77838e}
.assembly-title{font-size:17px;font-weight:850;margin-top:5px}
.assembly-subtitle{font-size:11px;color:#64717d;margin-top:4px}
.assembly-chart{margin:14px 0 3px;min-height:100px}
.assembly-chart svg{display:block;width:100%;height:auto;overflow:visible}
.assembly-seat{stroke:rgba(255,255,255,.9);stroke-width:.45;transition:stroke-width .12s,opacity .12s;cursor:help}
.assembly-seat:hover{stroke:#152433;stroke-width:1.8;opacity:.85}
.assembly-hint{font-size:10px;color:#7b8790;text-align:center}
.assembly-empty{padding:35px 5px;font-size:12px;color:#66717c;text-align:center}
.party-section{padding:8px 0 19px!important;margin-bottom:8px!important;flex-shrink:0!important}
.party-rail{height:166px!important;min-height:166px!important;padding:8px 20px 16px!important;align-items:flex-start!important}
.party-rail>.party-orb-item{padding-top:47px!important}
.party-orb-item .orb-name{font-size:12px!important;line-height:19px!important;min-height:19px!important;white-space:nowrap!important;overflow:visible!important;color:#17242e!important}
.party-orb-item .orb-pct{font-size:17px!important;line-height:22px!important;font-weight:850!important}
.party-orb-item .orb-detail{font-size:11px!important;font-weight:750!important;line-height:18px!important}
.party-alliance-group{height:158px!important;min-height:158px!important;padding:9px 14px!important;background:rgba(255,255,255,.72)!important;border:1px solid #b8c4cd!important;border-radius:14px!important}
.party-alliance-heading{height:36px!important;min-height:36px!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;padding-bottom:5px!important}
.party-alliance-heading strong{font-size:12px!important}
.alliance-totals{font-size:11px!important;gap:9px!important}
.party-alliance-members .party-orb-item{flex-basis:96px!important;width:96px!important}
.copyright{flex:0 0 22px!important;min-height:22px!important;padding:4px 0!important;color:#74808b!important;font-size:10px!important}
/* Map hover info */
.hover-card{background:rgba(255,255,255,.98)!important;color:#25313c!important;border:1px solid #c7d0d8!important;border-radius:15px!important;box-shadow:0 16px 45px rgba(30,43,55,.16)!important;padding:14px!important;min-width:210px!important;max-width:270px!important;backdrop-filter:blur(15px)}
.hc-title{font-size:16px!important;font-weight:850!important;color:#1c2935!important}
.hc-sub{font-size:11px!important;color:#73808b!important;padding-bottom:9px!important;margin-bottom:7px!important;border-bottom:1px solid #e4e8eb!important}
.hc-row{padding:5px 0!important;border-bottom:1px solid #eef0f2!important;gap:12px!important}
.hc-row:last-child{border-bottom:0!important}
.hc-name{font-weight:750!important;color:#33404a!important}
.hc-val{font-weight:850!important;color:#1c2935!important;font-variant-numeric:tabular-nums}
/* Province input dialog */
#provinceModal{width:min(540px,calc(100vw - 30px))!important;max-height:min(80dvh,730px)!important;overflow:hidden!important;border-radius:18px!important;background:#FAF9F6!important;border:1px solid #c9d1d8!important;box-shadow:0 30px 85px rgba(27,39,51,.25)!important;color:#24313b!important}
#provinceModal .modal-head{background:rgba(255,255,255,.72)!important;border-bottom:1px solid #dce1e5!important;padding:17px 20px!important}
#provinceModal .modal-title{font-size:20px!important;font-weight:850!important;color:#1c2935!important}
#provinceModal .modal-sub{font-size:11px!important;color:#78838e!important}
#provinceModal .modal-body{overflow-y:auto!important;max-height:calc(80dvh - 160px)!important;padding:16px 20px!important}
#provinceModal .modal-note{background:#edf1f3!important;border:1px solid #d7dfe4!important;border-radius:10px!important;padding:11px!important;color:#52616c!important;font-size:12px!important;line-height:1.5!important;margin-bottom:12px!important}
#provinceModal .vote-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#provinceModal .vote-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;padding:9px 10px!important;background:rgba(255,255,255,.82)!important;border:1px solid #e0e5e9!important;border-radius:10px!important}
#provinceModal .vote-name{font-size:12px!important;font-weight:750!important;color:#27343e!important}
#provinceModal .vote-row input{width:76px!important;min-width:0!important;max-width:76px!important;padding:8px 7px!important;background:#fff!important;border:1px solid #cbd4dc!important;border-radius:8px!important;color:#1c2935!important;text-align:right!important;font-size:13px!important;font-weight:750!important}
#provinceModal .modal-foot{padding:12px 20px!important;background:#fff!important;border-top:1px solid #dce1e5!important}
@media(max-width:850px){.map-top{grid-template-columns:minmax(0,1fr)!important;overflow-y:auto!important;align-content:start!important}.assembly-panel{width:min(100%,420px);justify-self:center}.map-shell{overflow:auto!important}.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.party-rail{height:158px!important;min-height:158px!important}}
@media(max-width:520px){#provinceModal .vote-list{grid-template-columns:1fr!important}.assembly-panel{padding:12px!important}.party-section{padding-bottom:12px!important}.bottom-stats{gap:5px!important}.stat-mini{padding:7px!important}.stat-mini-value{font-size:14px!important}}

/* V8 — clear party labels, complete alliance cards and full-height assembly */
:root { --v6-rail-height: 192px; }
.party-section {padding: 8px 0 13px!important; margin-bottom:0!important;}
.party-rail {height:192px!important;min-height:192px!important;padding:10px 22px 14px!important;align-items:flex-start!important;}
.party-rail>.party-orb-item {padding-top:43px!important;}
.party-orb-item {gap:2px!important;}
.party-orb {width:54px!important;height:54px!important;flex:0 0 54px!important;}
.party-orb img {width:63%!important;height:63%!important;}
.party-orb-item .orb-name {font-size:11px!important;line-height:16px!important;min-height:16px!important;margin-top:3px!important;}
.party-orb-item .orb-pct {color:#bd3439!important;font-size:14px!important;line-height:19px!important;font-weight:850!important;}
.party-orb-item .orb-detail {display:block!important;visibility:visible!important;opacity:1!important;font-size:12px!important;line-height:17px!important;font-weight:800!important;color:#29343d!important;}
.party-orb-item .orb-detail b {color:#29343d!important;}
.party-alliance-group {height:174px!important;min-height:174px!important;padding:10px 14px 12px!important;overflow:visible!important;}
.party-alliance-heading {height:37px!important;min-height:37px!important;}
.party-alliance-members {gap:8px!important;}
.party-alliance-members .party-orb-item {flex:0 0 76px!important;width:76px!important;}
.party-alliance-members .party-orb-item+.party-orb-item::after {left:-9px!important;width:9px!important;top:27px!important;}
.alliance-percent {color:#bd3439!important;}
.map-top {grid-template-columns:minmax(0,1fr) clamp(260px,29vw,440px)!important;gap:0!important;align-items:stretch!important;}
.assembly-panel {height:100%!important;min-height:0!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px 4px 8px 18px!important;margin-left:16px!important;border:0!important;border-left:1.5px solid #bfc8cf!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.assembly-chart {width:100%!important;height:100%!important;min-height:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.assembly-chart svg {width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;}
@media(max-width:850px) { .map-top {grid-template-columns:minmax(0,1fr)!important;} .assembly-panel {height:230px!important;margin:8px 0 0!important;padding:10px!important;border-left:0!important;border-top:1px solid #bfc8cf!important;} .party-rail {height:190px!important;min-height:190px!important;} }
@media(max-height:760px) and (min-width:851px) { .party-rail {height:174px!important;min-height:174px!important;} .party-alliance-group {height:163px!important;min-height:163px!important;} .party-orb {width:47px!important;height:47px!important;flex-basis:47px!important;} }

/* SecimLab V9 — larger semicircle, dynamic legend and translucent province UI */
.party-orb-item .orb-pct { color:#202b35!important; }
.party-orb-item .orb-detail, .party-orb-item .orb-detail b { color:#c4313d!important; }
.assembly-panel { flex-direction:column!important; gap:5px!important; padding:3px 5px 4px 15px!important; }
.assembly-chart { flex:1 1 auto!important; min-height:0!important; }
.assembly-chart svg { width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; }
.assembly-seat { stroke:rgba(255,255,255,.85)!important; stroke-width:.65!important; }
.assembly-seat:hover { stroke:#17232d!important; stroke-width:2!important; }
.assembly-legend { flex:0 0 auto; width:100%; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:5px 11px; padding:3px 4px 1px; box-sizing:border-box; }
.assembly-legend-item { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:750; color:#4b5661; white-space:nowrap; }
.assembly-legend-item i { display:inline-block; width:9px; height:9px; border-radius:50%; border:1px solid rgba(0,0,0,.08); flex:none; }
.hover-card { background:rgba(250,249,246,.87)!important; backdrop-filter:blur(18px) saturate(130%)!important; -webkit-backdrop-filter:blur(18px) saturate(130%)!important; }
#provinceModal { background:rgba(250,249,246,.91)!important; backdrop-filter:blur(22px) saturate(120%)!important; -webkit-backdrop-filter:blur(22px) saturate(120%)!important; }
#provinceModal .modal-head, #provinceModal .modal-foot { background:rgba(255,255,255,.48)!important; }
#provinceModal .vote-row { background:rgba(255,255,255,.64)!important; }
@media(max-width:850px){.assembly-panel{min-height:255px!important;height:255px!important;padding:8px!important}.assembly-legend-item{font-size:9px}}

/* V10 — compact alliances, readable color key and editorial semicircle */
.party-alliance-group {padding:9px 10px 10px!important;}
.party-alliance-members {gap:5px!important;}
.party-alliance-members .party-orb-item {flex:0 0 67px!important;width:67px!important;min-width:67px!important;}
.party-alliance-members .party-orb {width:43px!important;height:43px!important;flex:0 0 43px!important;}
.party-alliance-members .party-orb img {width:61%!important;height:61%!important;object-fit:contain!important;}
.party-alliance-members .orb-name {font-size:10px!important;line-height:15px!important;}
.party-alliance-members .orb-pct {font-size:13px!important;line-height:17px!important;}
.party-alliance-members .orb-detail {font-size:11px!important;line-height:15px!important;}
.party-alliance-members .party-orb-item+.party-orb-item::after {top:21px!important;left:-7px!important;width:7px!important;}
.assembly-panel {justify-content:space-between!important;gap:0!important;padding:8px 8px 9px 18px!important;}
.assembly-chart {flex:1 1 auto!important;min-height:0!important;max-height:calc(100% - 104px)!important;}
.assembly-chart svg {width:100%!important;height:100%!important;overflow:visible!important;}
.assembly-arc {transition:stroke-width .18s,opacity .18s;cursor:help;}
.assembly-arc:hover {stroke-width:43;opacity:.82;}
.assembly-total {font-size:57px;font-weight:850;fill:#263442;letter-spacing:-2px;font-family:ui-sans-serif,system-ui,sans-serif;}
.assembly-total-caption {font-size:11px;font-weight:750;fill:#7b8791;letter-spacing:2px;font-family:ui-sans-serif,system-ui,sans-serif;}
.assembly-legend {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-content:center!important;justify-content:stretch!important;gap:5px 8px!important;flex:0 0 auto!important;max-height:103px!important;overflow-y:auto!important;padding:8px 3px 1px!important;border-top:1px solid #d8dee3;scrollbar-width:thin;}
.assembly-legend-item {display:flex!important;min-width:0!important;gap:5px!important;font-size:10px!important;line-height:17px!important;color:#34424e!important;}
.assembly-legend-item i {width:10px!important;height:10px!important;flex:0 0 10px!important;border-radius:3px!important;}
.assembly-legend-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.assembly-legend-item b {margin-left:auto;font-size:10px;font-weight:850;font-variant-numeric:tabular-nums;}
.assembly-no-data {grid-column:1/-1;font-size:11px;color:#87929b;text-align:center;}
@media(max-width:1100px){.assembly-legend{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:850px){.assembly-chart{max-height:calc(100% - 80px)!important;}.assembly-legend{max-height:80px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}}

/* V11 — Translucent province overlays and individual seats */
.hover-card { background:rgba(250,249,246,.76)!important; backdrop-filter:blur(20px) saturate(125%)!important; -webkit-backdrop-filter:blur(20px) saturate(125%)!important; }
#provinceModal { background:rgba(250,249,246,.80)!important; backdrop-filter:blur(24px) saturate(125%)!important; -webkit-backdrop-filter:blur(24px) saturate(125%)!important; }
#provinceModal .modal-head, #provinceModal .modal-foot { background:rgba(255,255,255,.35)!important; }
#provinceModal .vote-row { background:rgba(255,255,255,.48)!important; }
.assembly-chart { width:100%; margin:0!important; }
.assembly-chart svg { width:100%; height:auto; display:block; }
.assembly-seat { stroke:rgba(250,249,246,.9)!important; stroke-width:.6!important; cursor:help; }
.assembly-seat:hover { stroke:#182733!important; stroke-width:1.6!important; }

/* SecimLab V12 — clean, distinct parliamentary party buttons */
.assembly-panel{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;}
.assembly-chart{flex:1 1 auto!important;min-height:0!important;max-height:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:3px 2px!important;}
.assembly-chart svg{width:100%!important;height:100%!important;max-height:100%!important;overflow:visible!important;}
.assembly-segment{fill:none;stroke-width:49;stroke-linecap:butt;transition:opacity .18s,stroke-width .18s;cursor:help;}
.assembly-segment:hover{opacity:.8;stroke-width:54;}
.assembly-v12-total{fill:#24313e;font-size:48px;font-weight:850;font-family:system-ui,sans-serif;}
.assembly-v12-caption{fill:#7b8791;font-size:10px;font-weight:750;letter-spacing:1.5px;font-family:system-ui,sans-serif;}
.assembly-legend{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;max-height:42%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px 2px 3px!important;align-content:start!important;scrollbar-width:none!important;border-top:1px solid #d9dfe3!important;}
.assembly-legend::-webkit-scrollbar{display:none!important;}
.assembly-legend-item{display:flex!important;align-items:center!important;gap:7px!important;padding:7px 9px!important;min-width:0!important;min-height:29px!important;background:rgba(255,255,255,.72)!important;border:1px solid #cbd4db!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(25,38,52,.025)!important;color:#263441!important;font-size:11px!important;line-height:1.15!important;box-sizing:border-box!important;}
.assembly-legend-item i{width:7px!important;height:17px!important;flex:0 0 7px!important;border-radius:3px!important;border:0!important;}
.assembly-legend-name{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:750!important;}
.assembly-legend-item b{flex:0 0 auto!important;margin-left:auto!important;font-size:11px!important;white-space:nowrap!important;font-weight:850!important;font-variant-numeric:tabular-nums!important;}
.assembly-no-data{grid-column:1/-1!important;text-align:center!important;padding:10px!important;}
@media(max-width:850px){.assembly-legend{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:40%!important}.assembly-chart{max-height:none!important;}}

/* V13: Compact, individually separated parliamentary bars */
.assembly-panel{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;overflow:hidden!important;padding:12px 10px 12px 18px!important;}
.assembly-chart{flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;display:block!important;}
.assembly-v13-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 11px;border-bottom:1px solid #d3d8dc;color:#34414b;font-size:10px;font-weight:800;letter-spacing:1.1px;}
.assembly-v13-heading strong{font-size:17px;letter-spacing:0;color:#1f2e3a;font-variant-numeric:tabular-nums;white-space:nowrap;}
.assembly-v13-heading small{font-size:10px;color:#76828b;font-weight:650;}
.assembly-legend{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;width:100%!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;gap:5px!important;padding:9px 2px 4px!important;border:0!important;scrollbar-width:none!important;align-content:initial!important;}
.assembly-legend::-webkit-scrollbar{display:none!important;}
.assembly-v13-row{display:grid;grid-template-columns:46px minmax(0,1fr) 49px;align-items:center;gap:9px;min-height:29px;padding:5px 8px;border:1px solid rgba(151,162,171,.42);background:rgba(255,255,255,.54);border-radius:8px;box-sizing:border-box;transition:background .15s,border-color .15s;}
.assembly-v13-row:hover{background:rgba(255,255,255,.92);border-color:#aeb9c2;}
.assembly-v13-name{font-size:11px;font-weight:800;color:#263440;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.assembly-v13-track{height:11px;background:#e0e3e5;border-radius:3px;overflow:hidden;}
.assembly-v13-fill{height:100%;min-width:0;border-radius:3px;transition:width .3s ease;}
.assembly-v13-count{text-align:right;font-size:12px;color:#253442;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap;}
.assembly-v13-count small{font-size:9px;color:#7a8790;}
.party-orb-item .orb-detail{display:none!important;}
.party-alliance-heading .alliance-seats{display:none!important;}
@media(max-width:850px){.assembly-panel{height:260px!important;min-height:260px!important;padding:10px!important;}.assembly-legend{max-height:none!important;}}

/* V14: restore party and alliance MV; keep compact horizontal bars visible */
.party-orb-item .orb-detail{display:block!important;visibility:visible!important;opacity:1!important;font-size:11px!important;line-height:15px!important;color:#c4313d!important;font-weight:800!important;}
.party-alliance-heading .alliance-seats{display:inline!important;color:#c4313d!important;font-weight:850!important;}
.assembly-legend .assembly-v13-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) 47px!important;gap:7px!important;align-items:center!important;width:100%!important;flex:0 0 auto!important;}
.assembly-legend .assembly-v13-track{display:block!important;width:100%!important;max-width:100px!important;height:11px!important;background:#e0e3e5!important;overflow:hidden!important;border-radius:3px!important;}
.assembly-legend .assembly-v13-fill{display:block!important;height:100%!important;min-height:11px!important;}

/* V15 — legible party vote totals, prominent alliance metrics and proportional seat bars */
.assembly-legend .assembly-v13-track{max-width:none!important;width:100%!important;height:12px!important;}
.assembly-legend .assembly-v13-fill{min-height:12px!important;border-radius:3px!important;}
.party-rail>.party-orb-item .orb-detail{display:none!important;}
.party-orb-item .orb-pct{font-family:Inter,system-ui,sans-serif!important;font-size:13px!important;font-weight:650!important;line-height:19px!important;letter-spacing:.12px!important;color:#243541!important;font-variant-numeric:tabular-nums!important;}
.party-orb-item .orb-votes{font-family:Inter,system-ui,sans-serif;font-size:10px;font-weight:500;line-height:15px;letter-spacing:0;color:#687580;white-space:nowrap;font-variant-numeric:tabular-nums;}
.party-orb-item .orb-name{font-weight:700!important;letter-spacing:.1px!important;}
.party-alliance-group .orb-pct{font-size:12px!important;line-height:16px!important;}
.party-alliance-group .orb-votes{font-size:9px;line-height:13px;}
.party-alliance-group .orb-detail{font-size:10px!important;line-height:14px!important;}
.party-alliance-heading{height:auto!important;min-height:43px!important;gap:8px!important;}
.party-alliance-heading strong{font-size:14px!important;font-weight:800!important;}
.party-alliance-heading .alliance-totals{gap:10px!important;}
.party-alliance-heading .alliance-percent{font-size:15px!important;line-height:20px!important;font-weight:800!important;font-variant-numeric:tabular-nums;}
.party-alliance-heading .alliance-seats{display:inline!important;font-size:13px!important;line-height:19px!important;font-weight:800!important;font-variant-numeric:tabular-nums;}

/* V16 — alliance member seats and scrollable full parliamentary list */
.party-alliance-members .orb-votes{display:none!important;}
.party-alliance-members .orb-detail{display:block!important;margin-top:3px!important;}
.assembly-panel{min-height:0!important;}
.assembly-legend{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:none!important;-ms-overflow-style:none!important;}
.assembly-legend::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
.assembly-legend .assembly-v13-row{flex-shrink:0!important;}

/* V17: scroll all parties without visible scrollbar; party logos; neutral alliance totals */
.assembly-panel{height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;}
.assembly-legend{display:flex!important;flex-direction:column!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important;overscroll-behavior:contain!important;touch-action:pan-y;}
.assembly-legend::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
.assembly-legend .assembly-v13-row{grid-template-columns:70px minmax(0,1fr) 48px!important;flex:0 0 auto!important;}
.assembly-v13-party{display:flex;align-items:center;gap:6px;min-width:0;}
.assembly-v17-logo{width:20px;height:20px;flex:0 0 20px;object-fit:contain;border-radius:50%;background:#fff;border:1px solid #d8dfe5;padding:2px;box-sizing:border-box;}
.assembly-v13-name{min-width:0;}
.party-alliance-heading .alliance-percent,.party-alliance-heading .alliance-seats{color:#202a34!important;}

/* V19 — restrained modern palette: neutral surfaces with burgundy accents */
body{background:#FAF9F6!important;color:#263340!important;}
.site-header{border-bottom-color:#d7d9da!important;}
.workspace-toolbar{border-bottom-color:#d9dbdc!important;}
.workspace-toolbar .btn.active,.workspace-toolbar .btn.alliance-add{background:#800000!important;border-color:#800000!important;color:#fff!important;}
.workspace-toolbar .btn:not(.active):not(.alliance-add):not(.danger):hover{border-color:#982B1C!important;color:#800000!important;background:#fff!important;}
.workspace-toolbar .btn.danger{color:#982B1C!important;background:#fffafa!important;border-color:#e8d2d0!important;}
.stat-mini,.download-slot{background:rgba(255,255,255,.86)!important;border-color:#d7dcdf!important;}
.party-orb-item:not(.party-alliance-group){background:rgba(255,255,255,.45)!important;border:1px solid rgba(152,161,169,.23)!important;border-radius:12px!important;box-shadow:none!important;}
.party-orb-item:not(.party-alliance-group):hover{background:rgba(255,255,255,.78)!important;border-color:rgba(152,161,169,.4)!important;}
.party-alliance-group{background:rgba(255,255,255,.66)!important;border-color:#d5dce0!important;}
.party-alliance-heading .alliance-percent,.party-alliance-heading .alliance-seats{color:#263340!important;}
.party-section{border-bottom-color:#d7dcdf!important;}
.assembly-v13-row{background:rgba(255,255,255,.7)!important;border-color:#d8dde1!important;}
.assembly-v13-row:hover{background:#fff!important;}
.map-hint{font:500 11px/1.4 Inter,system-ui,sans-serif;text-align:center;color:#687680;padding:4px 0 0;letter-spacing:.05px;}
.map-hint span{color:#982B1C;margin-right:5px;font-size:13px;}

/* V20 — readable seat winners and visible refined scrollbar */
.assembly-panel{min-height:0!important;overflow:hidden!important;}
.assembly-legend{overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#b9c0c6 transparent!important;padding-right:7px!important;gap:7px!important;}
.assembly-legend::-webkit-scrollbar{display:block!important;width:6px!important;height:auto!important;}
.assembly-legend::-webkit-scrollbar-track{background:transparent!important;}
.assembly-legend::-webkit-scrollbar-thumb{background:#b9c0c6!important;border-radius:20px!important;}
.assembly-legend:hover::-webkit-scrollbar-thumb{background:#800000!important;}
.assembly-legend .assembly-v13-row{grid-template-columns:91px minmax(0,1fr) 54px!important;min-height:39px!important;padding:7px 8px!important;gap:8px!important;border-radius:9px!important;}
.assembly-v17-logo{width:26px!important;height:26px!important;flex-basis:26px!important;padding:3px!important;}
.assembly-v13-party{gap:7px!important;}
.assembly-v13-name{font-size:12px!important;font-weight:750!important;}
.assembly-legend .assembly-v13-track{height:15px!important;border-radius:5px!important;}
.assembly-legend .assembly-v13-fill{height:15px!important;min-height:15px!important;border-radius:5px!important;}
.assembly-v13-count{font-size:13px!important;}
.assembly-v13-count small{font-size:10px!important;}
.assembly-v20-empty{padding:18px 8px;color:#75818a;font-size:12px;text-align:center;}

/* V21 — reliably scroll the seat list inside the fixed-height map panel */
.assembly-panel{position:relative!important;min-height:0!important;overflow:hidden!important;}
.assembly-chart{flex:0 0 auto!important;}
.assembly-legend{
  position:absolute!important;top:52px!important;bottom:9px!important;
  left:18px!important;right:9px!important;width:auto!important;height:auto!important;
  flex:none!important;min-height:0!important;max-height:none!important;
  overflow-y:scroll!important;overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;touch-action:pan-y!important;
  scrollbar-width:thin!important;scrollbar-color:#a9afb7 #e9ebed!important;
  padding:4px 7px 5px 0!important;
}
.assembly-legend::-webkit-scrollbar{display:block!important;width:7px!important;height:auto!important;}
.assembly-legend::-webkit-scrollbar-track{background:#e9ebed!important;border-radius:10px!important;}
.assembly-legend::-webkit-scrollbar-thumb{background:#a9afb7!important;border-radius:10px!important;border:1px solid #e9ebed!important;}
.assembly-legend:hover::-webkit-scrollbar-thumb{background:#800000!important;}
/* Neutral black outlines, logos sized to the inside of the circles */
.party-orb,.party-alliance-members .party-orb,.alliance-orb{border-color:#24282d!important;}
.party-orb img,.party-alliance-members .party-orb img,.alliance-orb img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;box-sizing:border-box!important;
  padding:2px!important;border-radius:50%!important;
}
@media(max-width:850px){.assembly-legend{top:49px!important;left:10px!important;right:8px!important;bottom:8px!important;}}

/* V23: Only standalone party labels move above the logo.
   Card dimensions, rail spacing, and alliance-member layout remain unchanged. */
.party-rail > .party-orb-item { position:relative!important; }
.party-rail > .party-orb-item > .orb-name {
  position:absolute!important;
  top:15px!important;
  left:0!important;
  right:0!important;
  margin:0!important;
  text-align:center!important;
}
.party-rail > .party-orb-item > .party-orb {
  margin-bottom:19px!important;
}

/* V24 — discreet party-color accent on standalone cards only.
   Pseudo-element overlays the existing card without affecting dimensions. */
.party-rail > .party-orb-item:not(.party-alliance-group)::before {
  content:""!important;
  position:absolute!important;
  left:0!important;top:9px!important;bottom:9px!important;
  width:3px!important;
  border-radius:0 4px 4px 0!important;
  background:var(--party-accent, #66717c)!important;
  opacity:.88!important;
  pointer-events:none!important;
  z-index:2!important;
  box-shadow:none!important;
}

/* V25 — softly fading party-color outline following the rounded left edge */
.party-rail > .party-orb-item:not(.party-alliance-group)::before{
  content:""!important;position:absolute!important;inset:0!important;
  width:auto!important;height:auto!important;bottom:0!important;top:0!important;left:0!important;
  border-radius:inherit!important;pointer-events:none!important;z-index:2!important;
  background:linear-gradient(to bottom,transparent 0%,var(--party-accent,#66717c) 24%,var(--party-accent,#66717c) 76%,transparent 100%)!important;
  padding:2px!important;box-sizing:border-box!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
  -webkit-mask-composite:xor!important;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
  mask-composite:exclude!important;
  opacity:.65!important;box-shadow:none!important;
}
/* V25 — isolate the scroll viewport from legacy flex/grid sizing rules */
.assembly-panel{position:relative!important;display:block!important;align-self:stretch!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
.assembly-chart{display:block!important;position:relative!important;flex:none!important;height:auto!important;min-height:0!important;}
#assemblyLegend.assembly-legend{
  position:absolute!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  align-items:stretch!important;justify-content:flex-start!important;align-content:initial!important;
  top:54px!important;bottom:8px!important;left:16px!important;right:7px!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow-y:scroll!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important;
  padding:4px 9px 5px 0!important;box-sizing:border-box!important;
  scrollbar-width:thin!important;scrollbar-color:#aeb5bd #eef0f1!important;
}
#assemblyLegend.assembly-legend > .assembly-v13-row{flex:0 0 auto!important;min-height:39px!important;}
#assemblyLegend.assembly-legend::-webkit-scrollbar{display:block!important;width:7px!important;}
#assemblyLegend.assembly-legend::-webkit-scrollbar-track{background:#eef0f1!important;border-radius:20px!important;}
#assemblyLegend.assembly-legend::-webkit-scrollbar-thumb{background:#aeb5bd!important;border-radius:20px!important;}
#assemblyLegend.assembly-legend:hover::-webkit-scrollbar-thumb{background:#800000!important;}
@media(max-width:850px){#assemblyLegend.assembly-legend{top:51px!important;left:10px!important;right:7px!important;}}

/* V26 — neutral card outlines, compact party-color dot and equal card heights. */
.party-rail > .party-orb-item:not(.party-alliance-group){
  height:174px!important;min-height:174px!important;max-height:174px!important;
  box-sizing:border-box!important;
  border:1px solid #d9dfe3!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.55)!important;
}
.party-rail > .party-orb-item:not(.party-alliance-group)::before{
  content:""!important;
  position:absolute!important;
  top:10px!important;left:10px!important;right:auto!important;bottom:auto!important;
  inset:auto!important;
  width:8px!important;height:8px!important;padding:0!important;
  border:0!important;border-radius:50%!important;
  background:var(--party-accent,#66717c)!important;
  opacity:1!important;box-shadow:none!important;
  -webkit-mask:none!important;mask:none!important;
  pointer-events:none!important;z-index:2!important;
}
@media(max-width:700px){
  .party-rail > .party-orb-item:not(.party-alliance-group){height:180px!important;min-height:180px!important;max-height:180px!important;}
}
@media(max-height:760px) and (min-width:851px){
  .party-rail > .party-orb-item:not(.party-alliance-group){height:163px!important;min-height:163px!important;max-height:163px!important;}
}

/* V27 — party-color marker belongs to the rectangular card, not the logo. */
.party-rail > .party-orb-item:not(.party-alliance-group)::before {
  inset:10px auto auto 10px!important;
  top:10px!important;
  left:10px!important;
  right:auto!important;
  bottom:auto!important;
  width:10px!important;
  height:10px!important;
  border-radius:50%!important;
  background:var(--party-accent,#66717c)!important;
  opacity:1!important;
  transform:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}

/* V28 — refined alliance header, preserving the card's original dimensions */
.party-alliance-group .party-alliance-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:10px!important;
  height:37px!important;
  min-height:37px!important;
  padding:0 0 7px!important;
  margin:0 0 5px!important;
  border-bottom:1px solid rgba(160,170,178,.32)!important;
  box-sizing:border-box!important;
}
.party-alliance-group .party-alliance-heading > strong{
  display:block!important;min-width:0!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  font-family:Inter,system-ui,sans-serif!important;font-size:12px!important;
  font-weight:650!important;letter-spacing:.05px!important;
  line-height:18px!important;color:#24313c!important;
}
.party-alliance-group .alliance-totals{
  display:flex!important;align-items:baseline!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;gap:9px!important;white-space:nowrap!important;
  font-family:Inter,system-ui,sans-serif!important;
}
.party-alliance-group .party-alliance-heading .alliance-percent,
.party-alliance-group .party-alliance-heading .alliance-seats{
  color:#25313b!important;font-size:12px!important;font-weight:650!important;
  line-height:18px!important;letter-spacing:0!important;
  font-variant-numeric:tabular-nums!important;
}

/* V29 - aday ekle ve il oy girişi */
.workspace-toolbar .tabs{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;}
.workspace-toolbar #btnAddCandidate{box-sizing:border-box!important;width:auto!important;min-width:105px!important;height:35px!important;min-height:35px!important;padding:0 13px!important;margin:0!important;display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap!important;font-size:12px!important;font-weight:650!important;line-height:1.2!important;border-radius:8px!important;border:1px solid #800000!important;background:#800000!important;color:white!important;overflow:visible!important;}
.workspace-toolbar #btnAddCandidate:disabled{opacity:.55!important;cursor:not-allowed!important;}
.workspace-toolbar #btnAddCandidate:not(:disabled):hover{background:#982b1c!important;}
#provinceModal .vote-party-logo{display:block!important;width:23px!important;height:23px!important;min-width:23px!important;object-fit:contain!important;border-radius:50%!important;border:1px solid #263340!important;background:white!important;padding:1px!important;box-sizing:border-box!important;}
#provinceModal .vote-left{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;}

/* V30: Candidate mode gives the map the full width; party mode restores assembly. */
.map-top{transition:grid-template-columns .42s cubic-bezier(.22,1,.36,1),gap .42s ease!important;}
.map-top .assembly-panel{transition:opacity .25s ease,transform .42s cubic-bezier(.22,1,.36,1),padding .42s ease,margin .42s ease,border-width .42s ease!important;}
.map-shell.is-candidate-view .map-top{grid-template-columns:minmax(0,1fr) 0px!important;gap:0!important;}
.map-shell.is-candidate-view .assembly-panel{opacity:0!important;transform:translateX(18px)!important;pointer-events:none!important;visibility:hidden!important;width:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;}
.map-shell.is-candidate-view #mapMount{width:100%!important;justify-content:center!important;}
@media(prefers-reduced-motion:reduce){.map-top,.map-top .assembly-panel{transition:none!important;}}

/* V31 — Centered candidate rail, accurate candidate colors and optional portraits. */
.map-shell.is-candidate-view #leftParties{justify-content:center!important;scroll-snap-type:none!important;}
.map-shell.is-candidate-view #leftParties>.candidate-orb-item{flex-shrink:0!important;scroll-snap-align:none!important;}
.map-shell.is-candidate-view .candidate-orb-item .candidate-orb{border-color:var(--candidate-color)!important;box-shadow:0 0 0 4px rgba(255,255,255,.7)!important;}
.map-shell.is-candidate-view .candidate-orb-item::before{background:var(--candidate-color)!important;}
.candidate-photo{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%;display:block;}
.candidate-photo-picker{display:flex;align-items:center;gap:12px;}
.candidate-photo-picker input{min-width:0;max-width:100%;font-size:12px;}
#candidatePhotoPreview{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1px solid #c9d1d8;}
#candidatePhotoPreview[hidden]{display:none!important;}
.candidate-photo-field small{font-size:11px;color:#77838c;}

/* V32: candidate cards are centered in the actual rail (outside .map-shell). */
body.candidate-mode #leftParties.party-rail {
  justify-content: safe center !important;
  scroll-snap-type: none !important;
}
body.candidate-mode #leftParties > .candidate-orb-item {
  flex-shrink: 0 !important;
  scroll-snap-align: none !important;
}
/* V27's generic grey marker previously overrode the selected candidate color. */
body.candidate-mode #leftParties > .candidate-orb-item::before {
  background: var(--candidate-color, #66717c) !important;
}
/* Preserve the black avatar outline; color belongs on the card marker. */
body.candidate-mode #leftParties .candidate-orb {
  border-color: #263340 !important;
}

/* V33 — Aday kartı: yumuşak renkli kontur, portre ve oy sayısı */
body.candidate-mode #leftParties > .candidate-orb-item {
  position:relative!important; box-sizing:border-box!important; min-height:190px!important;
  padding:14px 8px 12px!important; gap:5px!important; border:1px solid #d6dfe5!important;
  border-radius:13px!important; background:rgba(255,255,255,.65)!important; isolation:isolate;
}
body.candidate-mode #leftParties > .candidate-orb-item::before {
  content:""!important; position:absolute!important; inset:-1px!important; width:auto!important;height:auto!important;
  border-radius:13px!important; background:linear-gradient(90deg,var(--candidate-color) 0%,transparent 100%)!important;
  opacity:.0!important; pointer-events:none!important;
}
body.candidate-mode #leftParties > .candidate-orb-item::after {
  content:"";position:absolute;inset:-1px;border-radius:13px;pointer-events:none;
  background:linear-gradient(to bottom,transparent 0%,var(--candidate-color) 48%,transparent 100%);
  padding:2px; -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  /* Restrict the gradient to the left edge and its rounded corners */
  clip-path:polygon(0 0,24% 0,24% 13%,8% 13%,8% 87%,24% 87%,24% 100%,0 100%);
}
body.candidate-mode #leftParties .candidate-orb {
  width:76px!important;height:90px!important;flex:0 0 90px!important;
  border-radius:9px!important;border:1px solid #c7d0d8!important;
  background:#f1f3f5!important;box-shadow:none!important;
}
body.candidate-mode #leftParties .candidate-photo {border-radius:8px!important;object-fit:cover!important;}
body.candidate-mode #leftParties .candidate-orb span {font-size:21px!important;}
body.candidate-mode #leftParties .orb-name {order:-1;margin:0 17px 3px!important;max-width:94px!important;font-size:11px!important;}
body.candidate-mode #leftParties .orb-pct {font-size:14px!important;letter-spacing:0!important;margin-top:2px!important;}
body.candidate-mode #leftParties .candidate-votes {font-size:10px;color:#6c7884;white-space:nowrap;}
body.candidate-mode #leftParties .cand-del {
  position:absolute!important;top:7px!important;right:7px!important;width:23px!important;height:23px!important;
  border:1px solid transparent!important;border-radius:7px!important;
  display:grid!important;place-items:center!important;background:transparent!important;color:#89949e!important;
  opacity:.55;transition:background .18s,color .18s,opacity .18s,border-color .18s;
}
body.candidate-mode #leftParties .candidate-orb-item:hover .cand-del,
body.candidate-mode #leftParties .cand-del:focus-visible {opacity:1;background:#fff4f4!important;color:#a42d36!important;border-color:#f0d4d7!important;}
body.candidate-mode #leftParties .cand-del:focus-visible {outline:2px solid #a42d36;outline-offset:2px;}

/* V34 — candidate layout, symmetric fading edges and hover hint */
.hc-hint{font-size:11px;line-height:1.5;color:#566472;margin-top:5px;}
body.candidate-mode #leftParties > .candidate-orb-item{
  padding:35px 8px 12px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;gap:5px!important;
}
body.candidate-mode #leftParties > .candidate-orb-item::before{
  content:none!important;display:none!important;
}
body.candidate-mode #leftParties > .candidate-orb-item::after{
  content:""!important;display:block!important;position:absolute!important;inset:-1px!important;
  border-radius:13px!important;pointer-events:none!important;
  background:linear-gradient(to bottom,transparent 0%,var(--candidate-color) 45%,var(--candidate-color) 55%,transparent 100%)!important;
  padding:2px!important;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;
  -webkit-mask-composite:xor!important;mask-composite:exclude!important;
  clip-path:polygon(0 0,14% 0,14% 100%,0 100%,0 0,86% 0,100% 0,100% 100%,86% 100%,86% 0)!important;
}
body.candidate-mode #leftParties .candidate-orb{order:0!important;margin:0 auto!important;}
body.candidate-mode #leftParties .orb-name{
  order:1!important;position:static!important;margin:3px 0 0!important;
  width:100%!important;max-width:100%!important;text-align:center!important;
  font-size:11px!important;line-height:16px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
body.candidate-mode #leftParties .orb-pct{order:2!important;margin:1px 0 0!important;}
body.candidate-mode #leftParties .candidate-votes{order:3!important;}
body.candidate-mode #leftParties .cand-del{
  top:7px!important;right:7px!important;z-index:5!important;
  width:23px!important;height:23px!important;opacity:1!important;
  background:rgba(255,255,255,.95)!important;border:1px solid #dbe1e6!important;
  color:#65717c!important;box-shadow:0 1px 3px rgba(20,30,40,.05)!important;
}

/* V35 — candidate name emphasis and discreet remove control */
body.candidate-mode #leftParties > .candidate-orb-item .orb-name {
  color:var(--candidate-color, #344454)!important;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", sans-serif!important;
  font-size:14px!important;
  font-weight:750!important;
  letter-spacing:-.25px!important;
  line-height:19px!important;
  min-height:19px!important;
  margin-top:5px!important;
  padding:0 2px!important;
}
body.candidate-mode #leftParties > .candidate-orb-item .cand-del {
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(-3px)!important;
  pointer-events:none!important;
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease!important;
}
body.candidate-mode #leftParties > .candidate-orb-item:hover .cand-del,
body.candidate-mode #leftParties > .candidate-orb-item:focus-within .cand-del {
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(0)!important;
  pointer-events:auto!important;
}
@media (hover:none) {
  body.candidate-mode #leftParties > .candidate-orb-item .cand-del {
    opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;
  }
}

/* V36 — Aday adı iki satır, oy sayısı görünür; kart ölçüsü sabit */
body.candidate-mode #leftParties > .candidate-orb-item {
  height:190px!important;min-height:190px!important;max-height:190px!important;
  padding:29px 7px 8px!important;gap:2px!important;
  overflow:hidden!important;
}
body.candidate-mode #leftParties > .candidate-orb-item .candidate-orb {
  width:70px!important;height:76px!important;flex:0 0 76px!important;
}
body.candidate-mode #leftParties > .candidate-orb-item .orb-name {
  flex:0 0 32px!important;height:32px!important;min-height:32px!important;
  margin:2px 0 0!important;padding:0 1px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
  line-height:15px!important;font-size:12px!important;letter-spacing:-.35px!important;
}
body.candidate-mode #leftParties > .candidate-orb-item .orb-pct {
  flex:0 0 17px!important;line-height:17px!important;margin:0!important;font-size:13px!important;
}
body.candidate-mode #leftParties > .candidate-orb-item .candidate-votes {
  display:block!important;visibility:visible!important;opacity:1!important;
  flex:0 0 14px!important;line-height:14px!important;margin:0!important;
  font-size:9px!important;white-space:nowrap!important;color:#64717d!important;
}

/* V37 — Başkanlık sekmesi: sol aday paneli ve kesintisiz 81 il kartları */
.v37-candidate-panel,.v37-province-strip{display:none}
body.candidate-mode .v37-candidate-panel{display:flex;flex-direction:column;grid-column:1;grid-row:1;min-width:0;max-height:100%;padding:10px 12px 10px 0;gap:10px;overflow:hidden;animation:v37Slide .42s ease both}
body.candidate-mode .map-shell{display:grid!important;grid-template-columns:clamp(245px,25%,330px) minmax(0,1fr)!important;column-gap:16px!important;align-items:stretch!important}
body.candidate-mode .map-shell .map-top{grid-column:2!important;grid-row:1!important;min-width:0!important;display:block!important}
body.candidate-mode .map-shell .map-hint{grid-column:2!important;grid-row:2!important}
body.candidate-mode .map-shell #mapMount{width:100%!important;max-width:100%!important}
body.candidate-mode .map-shell .assembly-panel{display:none!important}
body.candidate-mode .party-section{display:none!important}
body.candidate-mode #btnAddCandidate{display:block!important;position:static!important;min-width:0!important;flex:1!important;white-space:nowrap!important;opacity:1!important;background:#8b0000!important;color:white!important;border:1px solid #8b0000!important;border-radius:9px!important;font-size:12px!important;font-weight:700!important;padding:11px 9px!important;cursor:pointer!important}
.v37-candidate-controls{display:flex;align-items:stretch;gap:7px;flex-shrink:0}
.v37-toggle-button{border:1px solid #d4dce2;background:rgba(255,255,255,.8);border-radius:9px;padding:0 11px;color:#65717d;font-size:11px;font-weight:650;cursor:pointer}
.v37-toggle-button:hover{color:#8b0000;border-color:#c9a5a5}
.v37-add-hidden #btnAddCandidate{display:none!important}
.v37-add-hidden .v37-toggle-button{width:100%;padding:10px}
.v37-candidate-list{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;display:flex;flex-direction:column;gap:8px;padding:2px 5px 8px 0;scrollbar-width:thin;scrollbar-color:#cbd1d6 transparent}
.v37-candidate-row{position:relative;display:flex;align-items:center;gap:9px;min-height:76px;padding:10px 12px 10px 14px;border:1px solid #dbe0e5;border-radius:12px;background:rgba(255,255,255,.76);box-shadow:0 3px 12px rgba(33,44,56,.035);isolation:isolate;transition:background .2s,border-color .2s}
.v37-candidate-row::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:4px;background:linear-gradient(to bottom,transparent,var(--candidate-color),transparent)}
.v37-candidate-row:hover{background:white;border-color:#c8d1d9}
.v37-avatar{width:49px;height:55px;flex:0 0 49px;border-radius:8px;border:1px solid #d4dbe1;overflow:hidden;display:grid;place-items:center;background:#eef1f3}
.v37-portrait{width:100%;height:100%;object-fit:cover}
.v37-initials{font-weight:800;color:#344150;font-size:17px}
.v37-candidate-info{flex:1;min-width:0}
.v37-candidate-name{font-size:12px;font-weight:750;line-height:1.28;color:var(--candidate-color);overflow-wrap:anywhere}
.v37-votes{font-size:10px;color:#77828c;margin-top:5px;white-space:nowrap}
.v37-percent{font-size:11px;font-weight:750;color:var(--candidate-color);white-space:nowrap;border-radius:7px;background:color-mix(in srgb,var(--candidate-color) 11%,white);padding:7px 5px}
.v37-remove{position:absolute;right:5px;top:2px;border:0;background:white;color:#b22b38;font-size:16px;line-height:18px;width:21px;height:21px;border-radius:6px;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s}
.v37-candidate-row:hover .v37-remove,.v37-remove:focus-visible{opacity:1;pointer-events:auto}
.v37-empty{font-size:12px;color:#7b858e;text-align:center;padding:28px 8px}
body.candidate-mode .v37-province-strip{display:block!important;overflow:hidden!important;position:relative!important;flex:0 0 auto!important;min-width:0!important;padding:10px 0 8px!important;border-top:1px solid #d8dfe5;mask-image:linear-gradient(to right,transparent,black 3%,black 97%,transparent)}
.v37-province-track{display:flex;width:max-content;animation:v37Marquee 220s linear infinite;will-change:transform}
.v37-province-strip:hover .v37-province-track,.v37-province-strip:focus-within .v37-province-track{animation-play-state:paused}
.v37-province-set{display:flex;gap:11px;padding-right:11px;flex-shrink:0}
.v37-city-card{width:210px;height:134px;flex:0 0 210px;background:rgba(255,255,255,.77);border:1px solid #dbe0e5;border-radius:12px;padding:11px 12px;box-shadow:0 3px 12px rgba(35,45,60,.035)}
.v37-city-title{font-size:13px;font-weight:800;color:#28343f;border-bottom:1px solid #edf0f2;padding-bottom:7px;margin-bottom:7px}
.v37-city-rows{display:flex;flex-direction:column;gap:6px}
.v37-city-result{display:flex;align-items:center;gap:5px;font-size:10px;min-width:0;color:#364350}
.v37-city-rank{font-size:9px;color:#9aa3ab;width:10px}
.v37-city-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.v37-city-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.v37-city-result strong{font-size:10px;color:#26313c;white-space:nowrap}
.v37-city-empty{color:#929ba4;font-size:11px;padding:18px 0;text-align:center}
@keyframes v37Marquee{to{transform:translateX(-50%)}}
@keyframes v37Slide{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:800px){body.candidate-mode .map-shell{grid-template-columns:minmax(0,1fr)!important}body.candidate-mode .v37-candidate-panel{grid-column:1;grid-row:1;max-height:230px;padding:8px 0}body.candidate-mode .map-shell .map-top{grid-column:1!important;grid-row:2!important}body.candidate-mode .map-shell .map-hint{grid-column:1!important;grid-row:3!important}.v37-city-card{width:190px;flex-basis:190px}}
@media(hover:none){.v37-remove{opacity:1;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.v37-province-track{animation:none;max-width:100vw;overflow-x:auto}.v37-candidate-panel{animation:none!important}}

/* V38 — clean candidate add control and manually navigated province results */
body.candidate-mode .v37-candidate-controls{display:block!important;padding:0 3px 3px!important}
body.candidate-mode #btnAddCandidate{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:38px!important;background:#8b0000!important;color:#fff!important;border:1px solid #8b0000!important;border-radius:10px!important;font-size:12px!important;font-weight:750!important;box-shadow:0 3px 9px rgba(139,0,0,.12)!important;transition:background .2s,box-shadow .2s,transform .2s!important}
body.candidate-mode #btnAddCandidate:hover{background:#a01318!important;box-shadow:0 5px 14px rgba(139,0,0,.18)!important;transform:translateY(-1px)!important}
.v37-toggle-button{display:none!important}
body.candidate-mode .v37-province-strip{display:flex!important;align-items:center!important;position:relative!important;order:3!important;flex:0 0 168px!important;height:168px!important;padding:10px 0!important;overflow:visible!important;mask-image:none!important;border-top:1px solid #d8dfe5!important}
body.candidate-mode .v37-province-track{display:flex!important;align-items:stretch!important;gap:12px!important;width:100%!important;height:148px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-behavior:smooth!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;animation:none!important;will-change:auto!important;padding:2px 3px!important}
.v37-province-track::-webkit-scrollbar{display:none!important}
body.candidate-mode .v37-city-card{box-sizing:border-box!important;width:250px!important;min-width:250px!important;flex:0 0 250px!important;height:140px!important;padding:10px 12px!important;scroll-snap-align:start!important;background:rgba(255,255,255,.85)!important;border:1px solid #d9e0e5!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(35,45,60,.035)!important}
.v37-city-title{font-size:13px!important;font-weight:800!important;padding-bottom:6px!important;margin-bottom:6px!important}
.v37-city-rows{gap:5px!important}
.v38-city-result{display:flex;align-items:center;gap:9px;min-width:0;height:29px}
.v38-city-avatar{width:27px;height:27px;flex:0 0 27px;border-radius:7px;overflow:hidden;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--candidate-color) 48%,#d6dce2);background:#f0f2f4}
.v38-city-photo{width:100%;height:100%;object-fit:cover}
.v38-city-initials{font-size:10px;font-weight:800;color:var(--candidate-color)}
.v38-city-name{font-size:11px;font-weight:750;line-height:1.15;color:#263440;min-width:0;flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.v38-city-result strong{font-size:12px;font-weight:800;color:var(--candidate-color);white-space:nowrap}
.v38-arrow{position:absolute;z-index:8;top:50%;transform:translateY(-50%) scale(.94);width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #cbd4dd;box-shadow:0 4px 12px #192a3a20;color:#2b3845;font-size:24px;line-height:1;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.v38-prev{left:-15px}.v38-next{right:-15px}
.v37-province-strip:hover .v38-arrow,.v37-province-strip:focus-within .v38-arrow{opacity:1;pointer-events:auto;transform:translateY(-50%) scale(1)}
.v38-arrow:hover{background:#8b0000;color:#fff;border-color:#8b0000}
@media(hover:none){body.candidate-mode .v38-arrow{opacity:1;pointer-events:auto}}
@media(max-width:800px){body.candidate-mode .v37-province-strip{flex-basis:168px!important}.v37-city-card{width:230px!important;min-width:230px!important}}

/* V39 — net oy yüzdesi ve il arama navigasyonu */
body.candidate-mode .v37-percent{background:transparent!important;border:0!important;border-radius:0!important;padding:0 3px!important;color:#202a34!important;font-size:17px!important;font-weight:850!important;letter-spacing:-.45px!important;box-shadow:none!important}
body.candidate-mode .v37-province-strip{gap:9px!important}
.v39-city-search{display:none;box-sizing:border-box;flex:0 0 144px;align-self:stretch;border:1px solid #d9e0e5;border-radius:12px;background:rgba(255,255,255,.88);padding:13px 10px;justify-content:center;flex-direction:column;gap:10px;box-shadow:0 3px 12px rgba(35,45,60,.035)}
body.candidate-mode .v39-city-search{display:flex}
.v39-search-label{font-size:12px;font-weight:800;color:#273440}
.v39-search-field{display:flex;align-items:center;gap:4px;background:#f8f9fa;border:1px solid #d6dfe6;border-radius:8px;padding:5px 6px}
.v39-search-field span{font-size:20px;color:#73808d;line-height:1}
.v39-search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#263440;font:600 11px inherit;font-size:11px}
.v39-search-field:focus-within{border-color:#8b0000;box-shadow:0 0 0 2px #8b000014}
body.candidate-mode .v37-city-card.v39-city-found{border-color:#9b3232!important;box-shadow:0 0 0 2px #8b000016,0 3px 12px rgba(35,45,60,.05)!important;transition:border-color .25s,box-shadow .25s}
@media(max-width:800px){.v39-city-search{flex-basis:116px;padding:9px 7px}}

/* V40 — fixed search panel, independently scrolling province carousel */
body.candidate-mode .v37-province-strip{display:flex!important;gap:12px!important;overflow:hidden!important;isolation:isolate!important;}
body.candidate-mode .v39-city-search{display:flex!important;position:relative!important;z-index:3!important;flex:0 0 156px!important;width:156px!important;min-width:156px!important;max-width:156px!important;align-self:center!important;height:140px!important;background:#850808!important;border:1px solid #850808!important;border-radius:12px!important;padding:13px!important;box-shadow:0 4px 14px rgba(99,8,8,.13)!important;}
body.candidate-mode .v39-search-label{color:#fff!important;font-size:13px!important;}
body.candidate-mode .v39-search-field{background:#fff!important;border-color:rgba(255,255,255,.7)!important;}
body.candidate-mode .v39-search-field input{color:#25313d!important;}
body.candidate-mode .v37-province-track{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;}
body.candidate-mode .v38-prev{left:156px!important;}
body.candidate-mode .v38-next{right:3px!important;}
@media(max-width:800px){body.candidate-mode .v39-city-search{flex-basis:126px!important;width:126px!important;min-width:126px!important;max-width:126px!important;padding:9px!important;}body.candidate-mode .v38-prev{left:126px!important;}}

/* V41 — province search card integrated into the existing light UI */
body.candidate-mode .v39-city-search{background:rgba(255,255,255,.9)!important;border:1px solid #d5dde5!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(35,45,60,.045)!important;padding:13px!important;gap:9px!important;justify-content:center!important;}
body.candidate-mode .v39-search-label{color:#263440!important;font-size:14px!important;font-weight:800!important;display:flex;align-items:center;gap:8px;}
.v41-pin{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#8b0000;color:transparent;font-size:0;flex-shrink:0;}
.v41-pin::after{content:'';width:6px;height:6px;border-radius:50%;background:#fff;display:block;}
body.candidate-mode .v39-search-field{background:#f8f9fb!important;border:1px solid #d5dde5!important;border-radius:9px!important;padding:8px!important;transition:border-color .2s,box-shadow .2s;}
body.candidate-mode .v39-search-field:focus-within{border-color:#8b0000!important;box-shadow:0 0 0 3px rgba(139,0,0,.08)!important;}
body.candidate-mode .v39-search-field input{font-size:12px!important;font-weight:500!important;}
.v41-search-hint{display:block;color:#7b8794;font-size:10px;line-height:1.2;}

/* V45: Parti kartlarında köşe noktaları yok; renkler haritanın altında. */
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group)::before {content:none!important;display:none!important;}
.secim-color-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px 17px;padding:7px 12px 9px;margin:0 auto;max-width:100%;font:600 11px/1.35 Inter,system-ui,sans-serif;color:#36414b;}
.secim-legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.secim-legend-item i{display:inline-block;width:11px;height:11px;flex:0 0 11px;border-radius:3px;border:1px solid rgba(0,0,0,.12);}
body.candidate-mode .secim-color-legend{display:none!important;}

/* V46 — map legend between map and party cards, never in toolbar */
.workspace > #secimColorLegend.secim-color-legend{
  order:3!important;
  flex:0 0 auto!important;
  width:100%;
  box-sizing:border-box;
  padding:7px 8px 5px;
  margin:0;
  border-bottom:1px solid #e2e5e8;
}
.workspace > .party-section{order:4!important;}
body.candidate-mode .workspace > #secimColorLegend{display:none!important;}
/* Candidate names are neutral black; the side stripe keeps the selected color. */
body.candidate-mode .v37-candidate-row .v37-candidate-name{
  color:#20252b!important;
}

/* V48 Türkiye geneli oy girişi */
.secim-national-modal{width:min(560px,calc(100vw - 30px));max-height:85vh;overflow:hidden;display:none;flex-direction:column;z-index:10005}
.secim-national-modal.show{display:flex}
.secim-national-modal .modal-body{overflow:auto;min-height:0}
.secim-national-note{font-size:12px;line-height:1.5;color:#667085;margin:0 0 12px}
.secim-national-rows{display:grid;gap:5px}
.secim-national-row{display:flex;align-items:center;gap:12px;padding:7px 8px;border:1px solid #e5e7eb;border-radius:8px}
.secim-national-row img{width:25px;height:25px;object-fit:contain}
.secim-national-row span{flex:1;font-size:13px;font-weight:600;color:#20242c}
.secim-national-row input{width:85px;min-width:70px;border:1px solid #d4d7dc;border-radius:6px;padding:7px;color:#20242c;background:white}
.secim-national-total{padding:12px 3px 4px;font-weight:700;font-size:13px}
.secim-national-error{font-size:12px;color:#ad1457;min-height:18px}

/* V51 — İttifak kartı sağ üst silme butonu */
.party-alliance-heading{position:relative;padding-right:34px!important}
.party-alliance-heading .alliance-remove{position:absolute;right:5px;top:4px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid #d5dce0;border-radius:7px;background:#fff;color:#697580;font-size:21px;line-height:1;cursor:pointer;z-index:5;transition:background .15s,color .15s}
.party-alliance-heading .alliance-remove:hover{background:#fee2e2;color:#b91c1c;border-color:#fecaca}
.party-alliance-heading .alliance-remove:focus-visible{outline:2px solid #b91c1c;outline-offset:2px}

/* V52: İttifak silme düğmesi kartın üzerine gelince görünür. */
.party-alliance-group .alliance-remove {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .15s, color .15s;
}
.party-alliance-group:hover .alliance-remove,
.party-alliance-group:focus-within .alliance-remove {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: none) {
  .party-alliance-group .alliance-remove {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

/* V53 — information dialog */
.sl-info-open{overflow:hidden}
.sl-info-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(14,19,27,.64);backdrop-filter:blur(7px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s}
.sl-info-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}
.sl-info-dialog{width:min(900px,100%);max-height:min(88vh,880px);display:flex;flex-direction:column;overflow:hidden;border-radius:23px;background:#faf9f6;box-shadow:0 30px 100px rgba(0,0,0,.3);color:#252b33;outline:none;border:1px solid rgba(255,255,255,.5)}
.sl-info-top{display:flex;align-items:center;justify-content:space-between;padding:19px 29px;border-bottom:1px solid #e7e5df}
.sl-info-kicker{font-size:10px;font-weight:800;letter-spacing:2px;color:#8b8279}
.sl-info-close{width:33px;height:33px;border:1px solid #e4e2db;background:#fff;border-radius:50%;cursor:pointer;color:#52555b}
.sl-info-scroll{overflow:auto;padding:0 29px 24px;overscroll-behavior:contain}
.sl-info-hero{text-align:center;padding:27px 18px 25px;border-bottom:1px solid #e8e5de}
.sl-info-symbol{margin:auto auto 12px;width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#e8e5df;color:#7d5543;font-size:23px}
.sl-info-hero h2{margin:0 0 9px;font-size:clamp(24px,3vw,34px);font-weight:800;letter-spacing:-1.3px;color:#222a31}
.sl-info-hero p{margin:0 auto;max-width:550px;font-size:13px;line-height:1.75;color:#72777c}
.sl-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.sl-info-item{background:#fff;border:1px solid #e9e7e0;border-radius:13px;padding:17px 19px}
.sl-info-num{display:inline-block;font-size:10px;letter-spacing:1px;font-weight:800;color:#a7836d;margin-bottom:7px}
.sl-info-item h3{margin:0 0 7px;font-size:14px;color:#242a30}
.sl-info-item p{font-size:12px;line-height:1.65;color:#687078;margin:0}
.sl-info-warning{background:#f2eee7;border:1px solid #e7ded2;border-radius:13px;margin-top:16px;padding:18px 21px;font-size:12px;line-height:1.7;color:#645e57}
.sl-info-warning strong{font-size:13px;color:#55493e}
.sl-info-warning ul{margin:8px 0 0;padding-left:19px}
.sl-info-bottom{padding:16px 29px;border-top:1px solid #e7e5df;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff}
.sl-info-bottom>span{font-size:11px;color:#858585}
#slInfoStart{flex-shrink:0;border:0;border-radius:9px;background:#242d36;color:#fff;padding:13px 21px;font-size:12px;font-weight:700;cursor:pointer}
#slInfoStart:hover{background:#414b55}
.secim-info-trigger{white-space:nowrap}
@media(max-width:650px){.sl-info-overlay{padding:9px}.sl-info-dialog{max-height:94dvh;border-radius:16px}.sl-info-top,.sl-info-bottom{padding:13px 16px}.sl-info-scroll{padding:0 16px 16px}.sl-info-grid{grid-template-columns:1fr}.sl-info-hero{padding:21px 0}.sl-info-bottom>span{display:none}#slInfoStart{width:100%}}

/* V54 — bilgilendirme butonu ve sade, okunabilir rehber */
.secim-info-trigger{background:#142d53!important;color:#fff!important;border-color:#142d53!important;white-space:nowrap;transition:background .2s ease,transform .2s ease}
.secim-info-trigger:hover{background:#254979!important;border-color:#254979!important}
.sl-info-dialog{width:min(740px,100%)}
.sl-info-kicker{font-size:12px;letter-spacing:.7px;color:#233b5d}
.sl-info-hero{text-align:left;padding:23px 0 20px}
.sl-info-hero h2{font-size:clamp(23px,3vw,29px);letter-spacing:-.6px}
.sl-info-hero p{max-width:none;margin:0;font-size:15px;line-height:1.7;color:#58616c}
.sl-info-grid{grid-template-columns:1fr;gap:10px;margin-top:18px}
.sl-info-item{position:relative;padding:18px 21px 18px 66px}
.sl-info-num{position:absolute;top:20px;left:20px;font-size:14px;color:#28476e}
.sl-info-item h3{font-size:17px;margin-bottom:8px}
.sl-info-item p{font-size:15px;line-height:1.75;color:#525e6a}
.sl-info-warning{font-size:14px;line-height:1.75}
.sl-info-warning strong{font-size:16px}
.sl-info-warning li{margin:5px 0}
@media(max-width:650px){.sl-info-item{padding:16px 15px 16px 52px}.sl-info-num{left:15px;top:18px}.sl-info-item p{font-size:14px}.sl-info-hero p{font-size:14px}}

/* V55: accessible export dialog, override legacy dark-on-white cascade */
#dlModal .dl-card{background:#fff!important;color:#172638!important;border:1px solid #d8e0e9!important}
#dlModal .dl-title,#dlModal .dl-row-title{color:#172638!important;font-size:16px!important}
#dlModal .dl-kicker,#dlModal .dl-row-sub,#dlModal .dl-foot-note,#dlModal .dl-tab-hint{color:#506177!important}
#dlModal .dl-row{background:#f3f6fa!important;border:1px solid #e0e7f0!important}
#dlModal .dl-tab{color:#1c304b!important;background:#f1f5fa!important;border:1px solid #cbd5e1!important}
#dlModal .dl-tab.is-active{background:#17375d!important;color:#fff!important;border-color:#17375d!important}
#dlModal .dl-btn{background:#17375d!important;color:#fff!important;border:1px solid #17375d!important;opacity:1!important;min-width:90px!important}
#dlModal .dl-btn:hover{background:#254c7c!important}
#dlModal .dl-btn:disabled{opacity:.55!important}
#dlModal .dl-x{background:#f1f5f9!important;color:#1c304b!important;border:1px solid #cbd5e1!important}
#dlModal #dlFormatText{color:#17375d!important}
#dlModal .dl-head,#dlModal .dl-foot{border-color:#e3e8ef!important}

/* V60: Party card seat counts */
.party-orb-item .orb-mv-count,.party-alliance-members .party-orb-item .orb-mv-count{display:block!important;margin-top:2px!important;color:#c4313d!important;font-family:Inter,system-ui,sans-serif!important;font-size:13px!important;font-weight:750!important;line-height:19px!important;letter-spacing:.1px!important;font-variant-numeric:tabular-nums;white-space:nowrap;}

/* V61 — kart oranı, MV ve oy adedi */
.party-orb-item .orb-results{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;margin-top:2px!important}
.party-orb-item .orb-result-divider{height:15px;width:1px;background:#cbd3dc;flex:none}
.party-orb-item .orb-mv-count{display:inline!important;margin:0!important;color:#c4313d!important;font-size:13px!important;line-height:19px!important;font-weight:800!important}
.party-orb-item .orb-votes{display:block!important;margin-top:3px!important;font-size:10px!important;line-height:14px!important;color:#64748b!important;font-variant-numeric:tabular-nums!important;text-align:center!important}
.party-alliance-members .party-orb-item .orb-results{gap:5px!important}
.party-alliance-members .party-orb-item .orb-mv-count{font-size:12px!important}
/* V61 — noktalı meclis grafiği */
.assembly-panel{display:flex!important;flex-direction:column!important;min-height:0!important}
#assemblyChart.assembly-chart{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;width:100%!important}
.assembly-hemicycle-wrap{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:0;width:100%;overflow:hidden}
.assembly-hemicycle{width:100%;height:100%;max-height:100%;display:block;overflow:visible}
#assemblyLegend.assembly-legend{display:none!important}

/* V62: parti kartlarında MV, oy oranıyla aynı ağırlıkta */
.party-orb-item .orb-mv-count,
.party-alliance-members .party-orb-item .orb-mv-count {
  font-size:12px!important;
  font-weight:600!important;
  line-height:16px!important;
  letter-spacing:0!important;
}
.party-orb-item .orb-results{gap:4px!important}
.party-orb-item .orb-result-divider{height:12px!important}
/* V62: sağ panelde büyük, ortalanmış tam daire */
.assembly-hemicycle-wrap{width:100%!important;min-height:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px 2px!important;box-sizing:border-box!important}
.assembly-hemicycle{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;overflow:visible!important}

/* V63 — parti renklerini kartın üst kenarında göster */
body:not(.candidate-mode) #secimColorLegend {display:none!important}
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group){
  position:relative!important;
  overflow:hidden!important;
}
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group)::after{
  content:""!important;
  position:absolute!important;
  display:block!important;
  top:0!important;
  left:11px!important;
  right:11px!important;
  width:auto!important;
  height:3px!important;
  border-radius:0 0 5px 5px!important;
  background:var(--party-accent,#64748b)!important;
  opacity:1!important;
  box-shadow:none!important;
  pointer-events:none!important;
  z-index:3!important;
}
/* MV sayısı belirgin, birim küçük ve ince */
.party-orb-item .orb-mv-count,
.party-alliance-members .party-orb-item .orb-mv-count{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:2px!important;
  color:#c4313d!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:16px!important;
  white-space:nowrap!important;
}
.party-orb-item .orb-mv-count strong{
  font-size:12px!important;
  font-weight:800!important;
  color:#c4313d!important;
}
.party-orb-item .orb-mv-count small{
  font-size:9px!important;
  font-weight:400!important;
  color:#c4313d!important;
  text-transform:none!important;
}

/* V64: İttifak içindeki kartlar — oran tek satır, MV alt satır */
.party-alliance-members .party-orb-item .alliance-orb-percent{
 display:flex!important;justify-content:center!important;align-items:center!important;
 width:100%!important;margin-top:2px!important;white-space:nowrap!important;
}
.party-alliance-members .party-orb-item .alliance-orb-percent .orb-pct{
 font-size:12px!important;font-weight:700!important;line-height:16px!important;
}
.party-alliance-members .party-orb-item .alliance-orb-seats{
 display:flex!important;align-items:baseline!important;justify-content:center!important;
 gap:3px!important;width:100%!important;margin-top:2px!important;
 color:#c4313d!important;white-space:nowrap!important;line-height:15px!important;
}
.party-alliance-members .party-orb-item .alliance-orb-seats strong{font-size:12px!important;font-weight:800!important}
.party-alliance-members .party-orb-item .alliance-orb-seats small{font-size:9px!important;font-weight:400!important}
.party-alliance-members .party-orb-item .orb-votes{display:none!important}

/* V65: Üst renk vurgusu kartın oval köşelerine uzanır ve uçlarda kaybolur. */
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group)::after{
  left:0!important;right:0!important;top:0!important;width:100%!important;
  height:3px!important;border-radius:inherit!important;
  background:linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb,var(--party-accent,#64748b) 45%,transparent) 9%,
    var(--party-accent,#64748b) 26%,
    var(--party-accent,#64748b) 74%,
    color-mix(in srgb,var(--party-accent,#64748b) 45%,transparent) 91%,
    transparent 100%)!important;
}
/* Meclis grafiğini sağ panelde büyük ve merkezde tut. */
#assemblyChart.assembly-chart{min-height:0!important;flex:1 1 auto!important;}
.assembly-hemicycle-wrap{flex:1 1 auto!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.assembly-hemicycle{width:100%!important;height:auto!important;max-height:100%!important;aspect-ratio:440/236!important;display:block!important;}

/* V66 — MV bilgisi yalnızca meclis grafiği altındaki kartlarda */
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group)::after{display:none!important;content:none!important}
.party-alliance-heading .alliance-seats,.party-orb-item .orb-mv-count,.party-alliance-members .alliance-orb-seats{display:none!important}
.party-orb-item .orb-result-divider{display:none!important}
/* Meclis paneli: büyük toplam, grafik ve bağlantılı ittifak kartları */
.assembly-panel{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
#assemblyChart.assembly-chart{flex:1 1 auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important}
.assembly-v13-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:4px!important}
.assembly-v13-heading strong{font-size:25px!important;font-weight:850!important;letter-spacing:-.7px!important}
.assembly-v13-heading strong small{font-size:13px!important;font-weight:600!important;letter-spacing:0!important}
.assembly-hemicycle-wrap{flex:1 1 auto!important;min-height:0!important;padding:3px 0!important}
.assembly-hemicycle{width:100%!important;height:auto!important;max-height:100%!important;aspect-ratio:440/236!important}
#assemblyLegend.assembly-legend{position:static!important;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;box-sizing:border-box!important;width:100%!important;height:auto!important;max-height:210px!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px 3px 4px!important;margin:0!important;gap:9px!important;border-top:1px solid #dce2e8!important;scrollbar-width:thin!important}
.assembly-alliance{width:100%;min-width:0;}
.assembly-alliance-name{font-size:11px;font-weight:750;color:#40516a;margin:0 0 6px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.assembly-alliance-members,.assembly-solo-parties{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch}
.assembly-alliance-members{position:relative;padding:0 3px 3px 3px;}
.assembly-alliance-members:before{content:'';position:absolute;left:15px;right:15px;top:28px;height:2px;background:#cbd5df;z-index:0}
.assembly-party-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:62px;flex:1 1 62px;max-width:92px;min-height:87px;padding:7px 5px;background:#fff;border:1px solid #dbe2e9;border-radius:10px;box-sizing:border-box;text-align:center}
.assembly-party-card:before{content:'';position:absolute;left:9px;right:9px;top:0;height:3px;background:var(--seat-color);border-radius:0 0 4px 4px}
.assembly-party-logo{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid #e0e5eb;border-radius:50%;background:#fff;overflow:hidden}
.assembly-party-logo img{max-width:90%;max-height:90%;object-fit:contain}
.assembly-party-name{font-size:11px;font-weight:750;color:#243245;white-space:nowrap}
.assembly-party-seats{font-size:15px;font-weight:850;color:#1b2b40;white-space:nowrap;font-variant-numeric:tabular-nums}
.assembly-party-seats small{font-size:9px;font-weight:500;color:#64748b}
@media(max-width:900px){#assemblyLegend.assembly-legend{max-height:160px!important}.assembly-party-card{min-width:54px;flex-basis:54px;min-height:76px}}

/* V67 — yalnızca parti kartları, pastel parti renkleri, görünmez scrollbar */
#assemblyLegend.assembly-legend{scrollbar-width:none!important;-ms-overflow-style:none!important}
#assemblyLegend.assembly-legend::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#assemblyLegend .assembly-solo-parties{display:flex!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important}
#assemblyLegend .assembly-party-card{
  background:color-mix(in srgb,var(--seat-color) 13%,white)!important;
  border:1px solid color-mix(in srgb,var(--seat-color) 25%,#dbe2e9)!important;
  box-shadow:0 1px 3px rgba(20,35,55,.035)!important;
}
#assemblyLegend .assembly-party-card:before{display:none!important;content:none!important}
#assemblyLegend .assembly-party-name{color:#243245!important}
#assemblyLegend .assembly-party-seats{color:#17263b!important}


/* V68 — meclis altı uyarlanabilir yatay çubuk grafikleri */
.assembly-v13-heading strong,
.assembly-v13-heading strong small{font-size:11px!important;font-weight:750!important;letter-spacing:.35px!important;line-height:1.4!important}
#assemblyLegend.assembly-legend{
  display:block!important;flex:0 0 auto!important;overflow:hidden!important;
  max-height:none!important;height:auto!important;padding:11px 0 3px!important;
  margin:0!important;border-top:1px solid #dce2e8!important;
}
#assemblyLegend .assembly-seat-columns{display:grid!important;grid-template-columns:minmax(0,1fr);gap:0!important;width:100%!important}
#assemblyLegend .assembly-seat-columns.is-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
#assemblyLegend .assembly-seat-column{min-width:0;display:flex;flex-direction:column;gap:7px;padding:0 7px 0 0}
#assemblyLegend .assembly-seat-columns.is-two .assembly-seat-column+ .assembly-seat-column{border-left:1px solid #d5dce4;padding:0 0 0 9px}
#assemblyLegend .assembly-seat-row{display:grid;grid-template-columns:23px 31px minmax(0,1fr) 42px;align-items:center;gap:5px;min-width:0;height:31px}
#assemblyLegend .assembly-seat-logo{display:flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid #e2e7ec;border-radius:50%;background:#fff;overflow:hidden}
#assemblyLegend .assembly-seat-logo img{width:90%;height:90%;object-fit:contain}
#assemblyLegend .assembly-seat-name{font-size:10px;font-weight:750;color:#223249;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#assemblyLegend .assembly-seat-track{height:12px;min-width:0;background:#e8ecf1;border-radius:4px;overflow:hidden}
#assemblyLegend .assembly-seat-fill{display:block;height:100%;border-radius:4px;min-width:2px}
#assemblyLegend .assembly-seat-value{font-size:11px;font-weight:800;text-align:right;color:#223249;white-space:nowrap;font-variant-numeric:tabular-nums}
#assemblyLegend .assembly-seat-value small{font-size:8px;font-weight:500;color:#66758a}
#assemblyLegend .assembly-seat-columns.is-one .assembly-seat-row{grid-template-columns:25px 44px minmax(0,1fr) 52px;height:36px;gap:8px}
#assemblyLegend .assembly-seat-columns.is-one .assembly-seat-name{font-size:11px}
#assemblyLegend .assembly-seat-columns.is-one .assembly-seat-track{height:15px}
#assemblyLegend .assembly-seat-columns.is-one .assembly-seat-value{font-size:12px}
@media(max-width:900px){#assemblyLegend .assembly-seat-row{gap:3px;grid-template-columns:20px 27px minmax(0,1fr) 36px;height:27px}#assemblyLegend .assembly-seat-logo{width:20px;height:20px}#assemblyLegend .assembly-seat-columns.is-two .assembly-seat-column+.assembly-seat-column{padding-left:5px}}

/* V69: istatistik satırına taşınan marka ve slogan */
.site-header{display:none!important;height:0!important;min-height:0!important;flex:0 0 0!important;border:0!important}
.bottom-stats{display:grid!important;grid-template-columns:minmax(155px,1.3fr) repeat(4,minmax(105px,1fr)) minmax(145px,1.1fr)!important;gap:9px!important;align-items:center!important}
.bottom-stats .stats-brand{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;padding:0 6px!important}
.stats-brand .brand-logo{width:42px!important;height:42px!important;flex:0 0 42px!important}
.stats-brand .brand-logo img{width:100%!important;height:100%!important;object-fit:contain!important}
.stats-brand .brand-name{font-size:18px!important;line-height:1.1!important;font-weight:850!important;white-space:nowrap!important}
.stats-brand .brand-tag{font-size:9px!important;white-space:nowrap!important;margin-top:4px!important}
.bottom-stats .stats-caption{display:block!important;font-size:9px!important;line-height:1.5!important;letter-spacing:.15em!important;text-align:right!important;white-space:nowrap!important;padding-right:5px!important;color:#84909c!important}
/* Haritanın hemen altında çizgisiz renk açıklaması */
body:not(.candidate-mode) #secimColorLegend.secim-color-legend{display:flex!important}
.workspace > #secimColorLegend.secim-color-legend{order:3!important;flex:0 0 auto!important;border:0!important;border-bottom:0!important;background:transparent!important;padding:3px 8px 8px!important;margin:0!important;gap:6px 16px!important;min-height:22px!important}
.secim-legend-item{font-size:11px!important;font-weight:600!important}
.secim-legend-item i{width:10px!important;height:10px!important;flex-basis:10px!important}
.workspace > .party-section{order:4!important;border-top:1px solid #cdd4da!important;padding-top:10px!important}
@media(max-width:1180px){.bottom-stats{grid-template-columns:minmax(130px,1fr) repeat(4,minmax(85px,1fr))!important}.bottom-stats .stats-caption{display:none!important}.stats-brand .brand-tag{white-space:normal!important}}
@media(max-width:780px){.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bottom-stats .stats-brand{grid-column:1/-1!important}.bottom-stats .stats-caption{display:none!important}.stats-brand .brand-tag{white-space:nowrap!important}}

/* V70: Logo ve sloganı yeniden üst başlığa taşı */
.site-header{display:flex!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;border-bottom:1px solid #d2d9df!important}
.bottom-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
/* Meclis toplamı baraj başlığının altında, grafiğin hemen üzerinde */
.assembly-v13-heading{justify-content:center!important;text-align:center!important}
.assembly-total-above{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:6px!important;padding:5px 0 0!important;color:#203246!important;font-variant-numeric:tabular-nums}
.assembly-total-above strong{font-size:26px!important;font-weight:850!important;line-height:1.15!important}
.assembly-total-above span{font-size:13px!important;font-weight:600!important;color:#64748b!important}
@media(max-width:780px){.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V71 — animasyonlu, ortalanmış marka başlığı */
.site-header.secim-animated-header{
 display:flex!important;justify-content:center!important;align-items:center!important;
 min-height:62px!important;position:relative!important;overflow:hidden!important;
 padding:4px 12px!important;box-sizing:border-box!important;
}
.secim-animated-brand{
 display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);
 align-items:center;gap:18px;width:min(790px,100%);height:52px;isolation:isolate;
}
.secim-animated-word{
 display:block;white-space:nowrap;min-width:0;overflow:visible;
 color:#182a3d;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
 font-size:clamp(11px,1.15vw,16px);font-weight:650;letter-spacing:-.025em;
 will-change:transform,opacity;animation-duration:9s;
 animation-timing-function:cubic-bezier(.55,.05,.25,1);
 animation-iteration-count:infinite;animation-fill-mode:both;
}
.secim-word-left{text-align:right;animation-name:secim-word-in-left}
.secim-word-right{text-align:left;font-weight:450;color:#667789;animation-name:secim-word-in-right}
.secim-logo-stage{display:flex;align-items:center;justify-content:center;z-index:2;position:relative}
.secim-logo-stage img{
 width:49px;height:49px;object-fit:contain;display:block;
 transform-origin:center;will-change:transform,filter;
 animation:secim-logo-pulse 9s ease-in-out infinite;
}
@keyframes secim-word-in-left{
 0%,12%,68%,100%{transform:translateX(0);opacity:1;filter:blur(0)}
 30%,55%{transform:translateX(145px) scale(.72);opacity:0;filter:blur(3px)}
 64%{transform:translateX(-9px);opacity:1;filter:blur(0)}
}
@keyframes secim-word-in-right{
 0%,12%,68%,100%{transform:translateX(0);opacity:1;filter:blur(0)}
 30%,55%{transform:translateX(-145px) scale(.72);opacity:0;filter:blur(3px)}
 64%{transform:translateX(9px);opacity:1;filter:blur(0)}
}
@keyframes secim-logo-pulse{
 0%,20%,67%,100%{transform:scale(1) rotate(0);filter:drop-shadow(0 0 0 transparent)}
 32%{transform:scale(1.20) rotate(-2deg)}
 36%{transform:scale(1.33) rotate(2deg)}
 40%{transform:scale(1.42) rotate(-1.5deg);filter:drop-shadow(0 3px 7px rgba(19,42,63,.16))}
 44%{transform:scale(1.39) rotate(1.5deg)}
 48%,54%{transform:scale(1.40) rotate(0);filter:drop-shadow(0 3px 7px rgba(19,42,63,.16))}
 61%{transform:scale(.96) rotate(0)}
}
@media(max-width:600px){
 .secim-animated-brand{grid-template-columns:minmax(0,1fr) 45px minmax(0,1fr);gap:8px}
 .secim-animated-word{font-size:10px;white-space:normal;line-height:1.15}
 .secim-logo-stage img{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){
 .secim-animated-word,.secim-logo-stage img{animation:none!important}
}

/* V73: il oy girişi toplam sınırı */
.secim-province-total{padding:10px 12px;margin-top:10px;border:1px solid #dbe2eb;border-radius:9px;background:#f8fafc;color:#263b50;font-size:13px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.secim-province-total.is-invalid{border-color:#ef9a9a;background:#fff1f1;color:#b4232c}
.secim-province-error:not([hidden]){display:block;margin-top:8px;padding:12px 14px;border:1px solid #efb4b4;border-left:4px solid #c62828;border-radius:9px;background:#fff1f1;color:#a51d25;font-size:13px;font-weight:650;line-height:1.5}
#btnSaveProvince:disabled{opacity:.45;cursor:not-allowed}

/* V74: üç bölgeli üst araç çubuğu */
.workspace-toolbar.secim-toolbar-v74{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important;flex-wrap:nowrap!important}
.secim-toolbar-v74 .toolbar-zone{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important;position:static!important;padding:0!important;margin:0!important;background:transparent!important}
.secim-toolbar-v74 .toolbar-zone-left{justify-content:flex-start!important}
.secim-toolbar-v74 .toolbar-zone-center{justify-content:center!important}
.secim-toolbar-v74 .toolbar-zone-right{justify-content:flex-end!important}
.secim-toolbar-v74 .toolbar-zone .btn{white-space:nowrap!important}
@media(max-width:1200px){.workspace-toolbar.secim-toolbar-v74{grid-template-columns:1fr 1fr!important;row-gap:10px!important}.secim-toolbar-v74 .toolbar-zone-center{grid-column:1/-1;grid-row:2;justify-content:center!important}.secim-toolbar-v74 .toolbar-zone-right{grid-column:2;grid-row:1}}
@media(max-width:700px){.workspace-toolbar.secim-toolbar-v74{grid-template-columns:1fr!important;gap:7px!important}.secim-toolbar-v74 .toolbar-zone{justify-content:center!important;flex-wrap:wrap!important;grid-column:1!important;grid-row:auto!important}.secim-toolbar-v74 .toolbar-zone-left{justify-content:flex-start!important}.secim-toolbar-v74 .toolbar-zone-right{justify-content:flex-end!important}}

/* V76 — bordo butonlarla uyumlu, soluk arka plan motifleri */
body::before{opacity:.105!important;filter:none!important}
body::after{opacity:.075!important;filter:none!important}

/* V77 — İttifak yönetimi */
.party-alliance-group .alliance-remove{display:none!important}
#allianceModal .modal-body{max-height:min(68vh,640px)!important;overflow-y:auto!important}
#alliancePartyChecks.checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#alliancePartyChecks .alliance-pick{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #dce3e9;background:#fff;border-radius:10px;min-width:0;color:#253449;font-size:12px;font-weight:650}
.alliance-pick-logo{width:28px;height:28px;object-fit:contain;flex-shrink:0}
.alliance-pick span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alliance-manager{margin-top:18px;border-top:1px solid #dfe5eb;padding-top:13px}
.alliance-manager h3{font-size:14px;color:#1e2a3a;margin:0 0 4px}
.alliance-manager-hint,.alliance-empty{font-size:12px;color:#64748b;margin:0 0 12px}
.alliance-existing-list{display:grid;gap:10px}
.alliance-manage-card{border:1px solid #d8e0e7;border-radius:12px;background:#f8fafc;padding:12px}
.alliance-manage-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:#243447;font-size:13px}
.alliance-delete-one{border:1px solid #e7b8bb;border-radius:8px;padding:6px 10px;background:#fff7f7;color:#ae2931;font-weight:700;font-size:11px;cursor:pointer}
.alliance-manage-members{display:flex;flex-wrap:wrap;gap:7px}
.alliance-manage-member{display:flex;align-items:center;gap:6px;padding:5px 7px;background:#fff;border:1px solid #d7e0e8;border-radius:9px;cursor:pointer;color:#243447;font-size:11px;font-weight:700}
.alliance-manage-member:hover{border-color:#dc8e95;background:#fff3f3}
.alliance-manage-member img{width:25px;height:25px;object-fit:contain}
.alliance-member-cross{color:#b72832;font-size:16px;font-weight:500}
@media(max-width:680px){#alliancePartyChecks.checks{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V78 — ittifak onayı, ittifak penceresinin içinde */
#allianceModal{isolation:isolate!important}
#allianceModal .alliance-local-confirm{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:rgba(19,30,43,.40);backdrop-filter:blur(3px)}
#allianceModal .alliance-local-confirm-card{width:min(420px,100%);background:#fff;color:#263443;border:1px solid #d9e0e8;border-radius:15px;box-shadow:0 14px 40px #13202c36;padding:20px;box-sizing:border-box}
#allianceModal .alliance-local-confirm-card strong{font-size:16px;font-weight:750}
#allianceModal .alliance-local-confirm-text{font-size:14px;line-height:1.5;margin:14px 0 18px}
#allianceModal .alliance-local-confirm-actions{display:flex;justify-content:space-between;gap:12px}
/* V78 — il üzerine gelince oran | kırmızı MV */
.hover-card .hc-val{display:flex!important;align-items:center!important;gap:7px!important;font-variant-numeric:tabular-nums}
.hover-card .hc-mv-divider{display:inline-block;width:1px;height:13px;background:#c9d2dd;flex:none}
.hover-card .hc-mv{color:#c4313d;font-weight:800;white-space:nowrap}

/* V84: concise onboarding information */
.sl-info-warning p{margin:8px 0 0;font-size:14px;line-height:1.65}
.sl-info-item strong,.sl-info-hero strong{font-weight:700;color:#1d334c}

/* V85: tam parti adı, kısa ad ile logo arasında */
.party-orb-item{gap:2px!important}
.party-orb-item .orb-name{order:0!important;margin:0!important;line-height:15px!important;font-size:11px!important;white-space:normal!important;overflow:visible!important}
.party-orb-item .orb-fullname{order:1!important;width:100%;max-width:110px;min-height:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;font-size:9px;line-height:12px;font-weight:450;color:#66717d;overflow-wrap:break-word}
.party-orb-item .party-orb{order:2!important;margin:2px auto!important}
.party-orb-item .orb-results,.party-orb-item .alliance-orb-percent{order:3!important}
.party-orb-item .orb-votes,.party-orb-item .alliance-orb-seats{order:4!important}
.party-rail>.party-orb-item{padding-top:8px!important}
.party-alliance-members .party-orb-item{padding-top:4px!important}
@media(max-width:700px){.party-orb-item .orb-fullname{font-size:8px;line-height:11px;min-height:22px}.party-rail>.party-orb-item{padding-top:6px!important}}

/* V86 — kart başlıkları: kısa ad üstte, tam ad altında; taşma yok */
body:not(.candidate-mode) .party-rail > .party-orb-item:not(.party-alliance-group){
  padding:10px 5px 8px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;gap:3px!important;
  overflow:hidden!important;
}
body:not(.candidate-mode) .party-orb-item .orb-name{
  position:static!important;order:0!important;flex:0 0 auto!important;
  width:100%!important;min-height:16px!important;margin:0!important;
  font-size:11px!important;line-height:16px!important;white-space:normal!important;
  text-align:center!important;z-index:auto!important;
}
body:not(.candidate-mode) .party-orb-item .orb-fullname{
  position:static!important;order:1!important;flex:0 0 28px!important;
  width:100%!important;max-width:100%!important;min-height:28px!important;
  margin:0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;line-clamp:2;overflow:hidden!important;
  font-size:9px!important;line-height:13px!important;font-weight:500!important;
  text-align:center!important;color:#697580!important;overflow-wrap:anywhere!important;
}
body:not(.candidate-mode) .party-orb-item .party-orb{order:2!important;flex-shrink:0!important;margin:2px auto 4px!important;}
body:not(.candidate-mode) .party-orb-item .orb-results{order:3!important;flex-shrink:0!important;margin-top:auto!important;}
body:not(.candidate-mode) .party-orb-item .orb-votes{order:4!important;flex-shrink:0!important;}
body:not(.candidate-mode) .party-rail{height:205px!important;min-height:205px!important;}

/* V87 — Soft circular logo medallions; no black outer ring */
body:not(.candidate-mode) .party-orb-item .party-orb,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb,
body:not(.candidate-mode) .alliance-orb {
  border:1px solid rgba(116,132,148,.20)!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#ffffff 10%,#f6f8fa 100%)!important;
  box-shadow:0 3px 11px rgba(30,45,65,.12), inset 0 1px 0 #fff!important;
  overflow:hidden!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
body:not(.candidate-mode) .party-orb-item:hover .party-orb {
  transform:translateY(-2px) scale(1.045)!important;
  box-shadow:0 6px 16px rgba(30,45,65,.16), inset 0 1px 0 #fff!important;
}
body:not(.candidate-mode) .party-orb img,
body:not(.candidate-mode) .party-alliance-members .party-orb img,
body:not(.candidate-mode) .alliance-orb img {
  width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;
  padding:0!important;object-fit:contain!important;border-radius:50%!important;
}

/* V91 — Logo yuvalari: kaynak PNG'lere dokunmadan tam dairesel gosterim. */
body:not(.candidate-mode) .party-orb-item .party-orb,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb,
body:not(.candidate-mode) .alliance-orb {
  padding:0!important;
  overflow:hidden!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
}
body:not(.candidate-mode) .party-orb-item .party-orb > img,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb > img,
body:not(.candidate-mode) .alliance-orb > img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  flex-shrink:0!important;
}

/* V92: Show complete original logos without stretching or cropping. */
body:not(.candidate-mode) .party-orb-item .party-orb > img,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb > img,
body:not(.candidate-mode) .alliance-orb > img {
  width:86%!important;
  height:86%!important;
  max-width:86%!important;
  max-height:86%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  margin:auto!important;
}

/* V93: Square logo holders, original images preserved without cropping. */
body:not(.candidate-mode) .party-orb-item .party-orb,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb,
body:not(.candidate-mode) .alliance-orb {
  border-radius:10px!important;
  background:#fff!important;
  overflow:hidden!important;
}
body:not(.candidate-mode) .party-orb-item .party-orb > img,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb > img,
body:not(.candidate-mode) .alliance-orb > img {
  border-radius:0!important;
  width:90%!important;height:90%!important;
  max-width:90%!important;max-height:90%!important;
  object-fit:contain!important;
}

/* V94: Standardized square logo presentation; normalized transparent PNG margins. */
body:not(.candidate-mode) .party-orb-item .party-orb > img,
body:not(.candidate-mode) .party-alliance-members .party-orb-item .party-orb > img,
body:not(.candidate-mode) .alliance-orb > img {
  width:94%!important;height:94%!important;max-width:94%!important;max-height:94%!important;
  object-fit:contain!important;object-position:center!important;
}

/* ChatGPT senaryo düğmesi — mevcut araç çubuğu düzenini korur */
#btnLoad2023.sl-chatgpt-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:39px;padding:5px 13px 5px 7px;border:1px solid #168c76;border-radius:10px;background:linear-gradient(120deg,#103d38 0%,#146657 65%,#1b826b 100%);color:#fff;box-shadow:0 2px 7px rgba(10,76,65,.13);font-family:inherit;line-height:1.1;white-space:nowrap;overflow:hidden;transition:transform .18s,box-shadow .18s,filter .18s}
#btnLoad2023.sl-chatgpt-trigger::before{content:"";position:absolute;inset:-60% auto -60% -80%;width:40%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent);transition:left .5s;pointer-events:none}
#btnLoad2023.sl-chatgpt-trigger:hover::before{left:130%}
#btnLoad2023.sl-chatgpt-trigger:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(10,76,65,.23);filter:brightness(1.06)}
#btnLoad2023.sl-chatgpt-trigger:focus-visible{outline:3px solid #76c9b8;outline-offset:3px}
#btnLoad2023.sl-chatgpt-trigger:disabled{opacity:.5;filter:grayscale(.5);cursor:not-allowed;transform:none}
.sl-chatgpt-mark{display:block;width:28px;height:28px;flex:none;border-radius:8px;padding:4px;background:rgba(255,255,255,.13);object-fit:contain}
.sl-chatgpt-label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
.sl-chatgpt-label strong{font-size:12px;letter-spacing:.1px;font-weight:800}
.sl-chatgpt-label small{font-size:9px;letter-spacing:.1px;font-weight:500;color:#d3f4e8}
.sl-chatgpt-spark{font-size:13px;color:#a5f0cf;align-self:flex-start;margin-top:1px}
@media(max-width:900px){#btnLoad2023.sl-chatgpt-trigger{padding:5px 9px;gap:6px}.sl-chatgpt-mark{width:25px;height:25px}.sl-chatgpt-spark{display:none}}
@media(prefers-reduced-motion:reduce){#btnLoad2023.sl-chatgpt-trigger,#btnLoad2023.sl-chatgpt-trigger::before{transition:none}}

/* V96: Açık renkli senaryo düğmesi ve okunabilir siyah alt başlık */
#btnLoad2023.sl-chatgpt-trigger{background:linear-gradient(120deg,#effcf7,#d9f5e9);border-color:#42a88c;color:#153e35}
#btnLoad2023.sl-chatgpt-trigger .sl-chatgpt-label small{color:#111!important;font-weight:700}
#btnLoad2023.sl-chatgpt-trigger .sl-chatgpt-label strong{color:#153e35}
#btnLoad2023.sl-chatgpt-trigger .sl-chatgpt-spark{color:#13745e}

/* V97 — Üç yapay zekâ senaryosu: mevcut üst menüyle uyumlu */
.sl-ai-scenarios{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.sl-ai-button{display:inline-flex!important;align-items:center;gap:7px;padding:5px 9px!important;min-height:39px;border-radius:10px!important;box-shadow:0 2px 6px rgba(20,35,50,.07);transition:transform .15s,box-shadow .15s;white-space:nowrap}
.sl-ai-button:hover{transform:translateY(-2px);box-shadow:0 5px 12px rgba(20,35,50,.13)}
.sl-ai-button img{width:25px;height:25px;object-fit:contain;flex-shrink:0}
.sl-ai-button>span:not(.sl-ai-symbol){display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.sl-ai-button strong{font-size:11px;font-weight:800;color:#202c35}
.sl-ai-button small{font-size:9px;font-weight:650;color:#222}
.sl-ai-symbol{font-size:23px;line-height:1;min-width:25px;text-align:center}
#btnLoad2023.sl-ai-chatgpt{background:#fff!important;border:1px solid #cbd5df!important;color:#263641!important}
.sl-ai-gemini{background:#eef2ff!important;border:1px solid #a9b9e8!important;color:#4a5dc4!important}
.sl-ai-claude{background:#fff0e7!important;border:1px solid #dfb99e!important;color:#b76b42!important}
.sl-ai-button.sl-ai-active{outline:2px solid currentColor;outline-offset:1px}
.sl-ai-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
@media(max-width:1100px){.sl-ai-scenarios{gap:4px}.sl-ai-button{padding:5px 6px!important}}

/* V98: Tüm yapay zekâ butonlarında eşit, sade görünüm */
.sl-ai-button, #btnLoad2023.sl-ai-chatgpt, .sl-ai-gemini, .sl-ai-claude {background:#fff!important;border:1px solid #cbd5df!important;color:#202c35!important;box-shadow:none!important;}
.sl-ai-button.sl-ai-active {outline:2px solid #64748b;outline-offset:1px;}
.sl-ai-button:hover {background:#f6f8fa!important;box-shadow:0 2px 6px rgba(20,35,50,.08)!important;}
.sl-ai-button img {width:25px;height:25px;object-fit:contain;}

/* V102: subtle SecimLab AI selection */
.sl-ai-secimlab img{width:25px;height:25px;object-fit:contain}
.sl-ai-secimlab.sl-ai-active{background:#eef4f8!important;border-color:#8ba4b6!important;outline:2px solid #4a6478;outline-offset:1px}

/* V109: aday potansiyeli ve hazır adaylar */
.v37-candidate-controls{display:flex;gap:8px;align-items:stretch}.v37-candidate-controls .v37-add-button{flex:1;min-width:0}
.sl-pot-edit{border:1px solid #d6dee5;border-radius:7px;background:#fff;color:#253544;font-size:10px;padding:5px 7px;cursor:pointer}.sl-pot-edit:hover{background:#eff5fa}
.sl-mode-hidden{display:none!important}
#candidateModal{max-height:90vh;overflow:hidden;display:none;flex-direction:column}#candidateModal.show{display:flex}#candidateModal .modal-body{overflow-y:auto;min-height:0}
.sl-pot-head{display:flex;flex-direction:column;gap:4px;margin:18px 0 9px}.sl-pot-head strong{font-size:13px}.sl-pot-head small{font-size:11px;color:#64748b}.sl-pot-actions{margin-bottom:8px}
.sl-potential-rows{border:1px solid #e0e6ec;border-radius:11px;padding:5px 12px;max-height:255px;overflow-y:auto;background:#fafcfe}
.sl-pot-row{display:grid;grid-template-columns:110px minmax(80px,1fr) 28px;gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid #edf1f5;font-size:11px}.sl-pot-row:last-child{border-bottom:0}.sl-pot-row input{width:100%;accent-color:#850b0b}.sl-pot-row output{text-align:right;font-weight:700}
.sl-special-modal{max-width:520px;max-height:85vh;overflow:auto}.sl-ready-list{display:grid;gap:10px}.sl-ready-card{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #e1e7ec;border-radius:12px}.sl-ready-avatar{width:44px;height:44px;border-radius:12px;color:#fff;display:grid;place-items:center;font-weight:800}.sl-ready-card>div{flex:1;display:flex;flex-direction:column;gap:3px}.sl-ready-card small{color:#64748b;font-size:11px}.sl-vote-rows{display:grid;gap:9px}.sl-vote-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #e1e7ec;border-radius:10px}.sl-vote-row strong{flex:1}.sl-vote-dot{width:12px;height:12px;border-radius:50%}.sl-vote-row input{width:92px;padding:7px;border:1px solid #cbd5e1;border-radius:7px;text-align:right}.sl-vote-total{margin-top:13px;font-weight:700;text-align:right}.sl-vote-error{color:#b91c1c;font-size:12px;margin-top:8px}

/* V111 — yatay, fotoğraftan içeri doğru yumuşayan aday kartları */
body.candidate-mode .v37-candidate-row{
  min-height:96px; padding:12px 12px 12px 15px; gap:8px;
  overflow:hidden; border-radius:14px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--candidate-color) 28%,white) 0%,color-mix(in srgb,var(--candidate-color) 13%,white) 35%,rgba(255,255,255,.96) 75%)!important;
}
body.candidate-mode .v37-candidate-row::before{top:0;bottom:0;width:4px;border-radius:0;background:var(--candidate-color)}
body.candidate-mode .v37-avatar{
  position:absolute;inset:0 auto 0 0;width:55%;height:100%;border:0;border-radius:0;
  background:transparent;overflow:hidden;display:flex;align-items:center;justify-content:flex-start;
  pointer-events:none;z-index:0;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 22%,rgba(0,0,0,.65) 45%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,#000 22%,rgba(0,0,0,.65) 45%,transparent 100%);
}
body.candidate-mode .v37-portrait{height:100%;width:100%;object-fit:cover;object-position:left center}
body.candidate-mode .v37-initials{margin-left:14px;font-size:26px;color:var(--candidate-color);opacity:.5}
body.candidate-mode .v37-candidate-info{position:relative;z-index:1;margin-left:35%;flex:1;min-width:0;text-align:right}
body.candidate-mode .v37-candidate-name{font-size:12px;font-weight:800;color:#20252b!important}
body.candidate-mode .v37-votes{font-size:10px;color:#46515e;font-weight:600}
body.candidate-mode .v37-percent{position:relative;z-index:1;background:transparent;padding:0;font-size:17px;color:#1c2733;min-width:63px;text-align:right}
body.candidate-mode .v37-candidate-row .sl-pot-edit{position:relative;z-index:1;flex:0 0 auto;font-size:9px;padding:6px 7px}
body.candidate-mode .v37-remove{z-index:3}
@media(max-width:1100px){body.candidate-mode .v37-candidate-info{margin-left:24%}body.candidate-mode .v37-percent{font-size:14px;min-width:52px}}

/* V112 — Fotoğraf, isim ve oyları birbirinden ayıran aday kartı */
body.candidate-mode .v37-candidate-row{
  height:104px;min-height:104px;padding:0!important;
  display:block!important;position:relative;overflow:hidden;
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--candidate-color) 24%,white) 0%,
    color-mix(in srgb,var(--candidate-color) 10%,white) 43%,
    #fff 79%)!important;
}
body.candidate-mode .v37-candidate-row::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;
  background:var(--candidate-color)!important;z-index:5;border-radius:0;
}
body.candidate-mode .v37-avatar{
  position:absolute!important;left:5px!important;top:0!important;
  width:64%!important;height:100%!important;z-index:0!important;
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 26%,rgba(0,0,0,.78) 53%,transparent 100%)!important;
  mask-image:linear-gradient(to right,#000 0%,#000 26%,rgba(0,0,0,.78) 53%,transparent 100%)!important;
}
body.candidate-mode .v37-portrait{width:100%!important;height:100%!important;object-fit:cover!important;object-position:left center!important}
body.candidate-mode .v37-candidate-info{
  position:absolute!important;left:13px!important;bottom:9px!important;
  margin:0!important;width:52%!important;max-width:52%!important;
  text-align:left!important;z-index:2!important;
  transition:opacity .24s ease,transform .24s ease!important;
}
body.candidate-mode .v37-candidate-name{
  display:inline-block;max-width:100%;padding:3px 7px!important;
  border-radius:6px;background:rgba(255,255,255,.87)!important;
  font-family:"Trebuchet MS","Segoe UI",sans-serif!important;
  font-size:13px!important;font-weight:800!important;letter-spacing:.1px;
  line-height:1.2;overflow-wrap:anywhere;color:#24313b!important;
  box-shadow:0 1px 5px rgba(0,0,0,.06);
}
body.candidate-mode .v112-candidate-stats{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:flex-end;gap:5px;
  z-index:2;transition:opacity .24s ease,transform .24s ease;
}
body.candidate-mode .v112-candidate-stats .v37-percent{
  font-size:24px!important;line-height:1.1!important;min-width:0!important;
  color:#1b2734!important;font-weight:850!important;
}
body.candidate-mode .v112-candidate-stats .v37-votes{
  font-size:11px!important;color:#5e6b77!important;font-weight:600!important;
  white-space:nowrap;
}
body.candidate-mode .v37-candidate-row .sl-pot-edit{
  position:absolute!important;left:50%;top:50%;z-index:4!important;
  transform:translate(-50%,-40%) scale(.96);
  opacity:0;visibility:hidden;pointer-events:none;
  border:1px solid color-mix(in srgb,var(--candidate-color) 35%,#cbd5e1)!important;
  border-radius:10px!important;background:rgba(255,255,255,.96)!important;
  padding:11px 17px!important;font-size:12px!important;font-weight:750!important;
  box-shadow:0 5px 18px rgba(20,30,40,.13);
  transition:opacity .23s ease,transform .23s ease,visibility .23s;
}
body.candidate-mode .v37-candidate-row:hover .v37-candidate-info,
body.candidate-mode .v37-candidate-row:focus-within .v37-candidate-info{
  opacity:0;transform:translateY(6px);pointer-events:none;
}
body.candidate-mode .v37-candidate-row:hover .v112-candidate-stats,
body.candidate-mode .v37-candidate-row:focus-within .v112-candidate-stats{
  opacity:0;transform:translateY(calc(-50% + 6px));pointer-events:none;
}
body.candidate-mode .v37-candidate-row:hover .sl-pot-edit,
body.candidate-mode .v37-candidate-row:focus-within .sl-pot-edit{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}
body.candidate-mode .v37-candidate-row .v37-remove{z-index:6}
@media(hover:none){
 body.candidate-mode .v37-candidate-row .sl-pot-edit{
  opacity:1;visibility:visible;pointer-events:auto;left:auto;right:8px;top:7px;
  transform:none!important;padding:5px 7px!important;font-size:10px!important;
 }
 body.candidate-mode .v37-candidate-row .v37-candidate-info,
 body.candidate-mode .v37-candidate-row .v112-candidate-stats{opacity:1!important;transform:none}
 body.candidate-mode .v37-candidate-row .v112-candidate-stats{transform:translateY(-50%)!important}
}
@media(prefers-reduced-motion:reduce){
 body.candidate-mode .v37-candidate-row .sl-pot-edit,
 body.candidate-mode .v37-candidate-row .v37-candidate-info,
 body.candidate-mode .v37-candidate-row .v112-candidate-stats{transition:none!important}
}

/* V113: Aday adı oy oranının üzerinde, fotoğraftan ayrı */
body.candidate-mode .v37-candidate-row .v112-candidate-stats{
 right:15px!important;top:50%!important;width:52%!important;
 align-items:flex-end!important;gap:5px!important;
 transform:translateY(-50%)!important;
}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-candidate-name{
 display:block!important;max-width:100%!important;
 padding:0!important;margin:0 0 2px!important;
 background:transparent!important;box-shadow:none!important;
 border-radius:0!important;text-align:right!important;
 font-family:"Trebuchet MS","Segoe UI",sans-serif!important;
 font-size:13px!important;font-weight:800!important;line-height:1.2!important;
 color:#24313b!important;overflow-wrap:anywhere;
}
body.candidate-mode .v37-candidate-row:hover .v112-candidate-stats,
body.candidate-mode .v37-candidate-row:focus-within .v112-candidate-stats{
 opacity:0!important;transform:translateY(calc(-50% + 6px))!important;pointer-events:none!important;
}
@media(hover:none){
 body.candidate-mode .v37-candidate-row .v112-candidate-stats{
 opacity:1!important;transform:translateY(-50%)!important;
 }
}
/* V114: Candidate election analytics in place of the province carousel */
.sl-analysis{display:none}
body.candidate-mode .sl-analysis{display:block!important;order:3!important;flex:0 0 auto!important;min-width:0!important;border-top:1px solid #d7dee4;padding:12px 0 6px}
.sl-analysis-head{display:flex;align-items:center;justify-content:space-between;margin:0 1px 10px;gap:12px}
.sl-analysis-eyebrow{display:block;font:700 9px/1.2 'Segoe UI',sans-serif;letter-spacing:1.7px;color:#9d1527}
.sl-analysis-head h2{margin:3px 0 0;color:#24313e;font:800 17px/1.15 'Segoe UI',sans-serif;letter-spacing:-.35px}
.sl-analysis-tag{font:700 10px/1 'Segoe UI',sans-serif;color:#667484;background:#f3f6f8;border:1px solid #e1e7ed;padding:7px 10px;border-radius:20px;white-space:nowrap}
.sl-analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sl-analytic-card{position:relative;min-width:0;min-height:137px;border:1px solid #dce3e9;border-radius:13px;background:linear-gradient(145deg,#fff,#fbfcfd);padding:12px 14px;overflow:hidden;box-shadow:0 3px 14px rgba(30,45,60,.035);display:flex;flex-direction:column;gap:5px}
.sl-analytic-card::after{content:'';position:absolute;right:-25px;top:-40px;width:100px;height:100px;border:1px solid rgba(155,35,47,.055);border-radius:50%;pointer-events:none}
.sl-card-kicker{font:800 9px/1.3 'Segoe UI',sans-serif;letter-spacing:1px;color:#7b8794;display:flex;align-items:center;gap:6px;white-space:nowrap}
.sl-analysis-symbol{font-size:16px;line-height:1;color:#a7192b}
.sl-analysis-main-name{font:750 12px/1.25 'Segoe UI',sans-serif;color:#263440;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.sl-analysis-big{font:850 27px/1.1 'Segoe UI',sans-serif;letter-spacing:-1px;color:#202d39;margin-top:3px}
.sl-analysis-unit{font:650 11px 'Segoe UI',sans-serif;letter-spacing:0;color:#8c98a4}
.sl-analysis-place{font:800 20px/1.15 'Segoe UI',sans-serif;color:#25323d;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-analysis-compact{font-size:21px;margin-top:0}
.sl-analysis-detail{font:650 11px/1.4 'Segoe UI',sans-serif;color:#5c6978;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-card-foot{font:500 10px/1.35 'Segoe UI',sans-serif;color:#7a8794;margin-top:auto}
.sl-card-foot strong{font-weight:800;color:#364655}
.sl-analysis-track,.sl-analysis-mini-track,.sl-analysis-leader-track{height:6px;background:#edf1f4;border-radius:9px;overflow:hidden;margin-top:4px}
.sl-analysis-track span,.sl-analysis-mini-track span,.sl-analysis-leader-track span{height:100%;display:block;border-radius:9px;transition:width .5s ease}
.sl-analysis-race{display:flex;align-items:center;gap:5px;font:650 10px 'Segoe UI',sans-serif;color:#596879;min-width:0}
.sl-analysis-race span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:43%}.sl-analysis-race b{color:#a7192b}
.sl-analysis-comparison{grid-column:1/-1;min-height:110px}
.sl-analysis-bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:7px}
.sl-analysis-bar-row{min-width:0}.sl-analysis-bar-label{display:flex;align-items:center;gap:6px;font:650 10px 'Segoe UI',sans-serif;color:#364350}.sl-analysis-bar-label span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}.sl-analysis-bar-label b{font-weight:850;white-space:nowrap}.sl-analysis-dot{width:7px;height:7px;flex:none;border-radius:50%}.sl-analysis-track{margin-top:8px}.sl-analysis-bar-row small{font:500 10px 'Segoe UI',sans-serif;color:#88939f;display:block;margin-top:5px}
.sl-analysis-empty{grid-column:1/-1;min-height:115px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;border:1px dashed #d8e0e6;border-radius:12px;padding:18px;color:#6a7785;font:500 12px/1.6 'Segoe UI',sans-serif}
@media(max-width:850px){.sl-analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sl-analysis-bars{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.sl-analysis-grid{gap:7px}.sl-analytic-card{padding:10px;min-height:128px}.sl-analysis-big{font-size:22px}.sl-analysis-place{font-size:17px}}

/* V115 — Tek satırlı, haritayı daraltmayan kompakt analiz şeridi */
body.candidate-mode .sl-analysis{
  padding:7px 0 3px!important;flex:0 0 auto!important;
}
body.candidate-mode .sl-analysis-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr 1fr 1.35fr 1.15fr!important;
  gap:7px!important;align-items:stretch;
}
body.candidate-mode .sl-analytic-card{
  min-height:112px!important;height:112px!important;
  padding:9px 10px!important;gap:3px!important;
}
body.candidate-mode .sl-analysis-comparison{
  grid-column:auto!important;min-height:112px!important;
}
body.candidate-mode .sl-analysis-bars{
  display:flex!important;flex-direction:column!important;gap:4px!important;
  overflow-y:auto;min-height:0;margin-top:3px!important;
  scrollbar-width:thin;
}
body.candidate-mode .sl-analysis-bar-row small{display:none!important}
body.candidate-mode .sl-analysis-track{height:4px!important;margin-top:3px!important}
body.candidate-mode .sl-analysis-bar-label{font-size:9px!important}
body.candidate-mode .sl-analysis-big{font-size:22px!important;margin-top:1px!important}
body.candidate-mode .sl-analysis-place{font-size:17px!important;margin-top:3px!important}
body.candidate-mode .sl-analysis-main-name{font-size:11px!important}
body.candidate-mode .sl-card-kicker{font-size:8px!important;letter-spacing:.55px!important}
body.candidate-mode .sl-card-foot{font-size:9px!important}
body.candidate-mode .sl-analysis-close-list{min-width:0}
body.candidate-mode .sl-close-count{margin-left:auto;background:#f5e8e9;color:#a7192b;border-radius:8px;padding:1px 6px}
body.candidate-mode .sl-close-scroll{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;padding-right:3px}
body.candidate-mode .sl-close-item{display:flex;justify-content:space-between;gap:5px;padding:4px 0;border-bottom:1px solid #eef0f2;font:600 10px 'Segoe UI',sans-serif}
body.candidate-mode .sl-close-item b{color:#a7192b;white-space:nowrap}
body.candidate-mode .sl-no-close{font:500 10px/1.5 'Segoe UI',sans-serif;color:#7b8794}
body.candidate-mode .map-shell{flex:1 1 auto!important;min-height:0!important}
@media(max-width:1050px){
 body.candidate-mode .sl-analysis-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.candidate-mode .sl-analytic-card{height:105px!important;min-height:105px!important}
 body.candidate-mode .map-shell{min-height:180px!important}
 body.candidate-mode .sl-analysis{overflow-y:auto;max-height:230px}
}

/* V116: softer candidate typography; remove bottom analysis completely */
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-candidate-name{color:rgba(36,49,59,.74)!important;font-weight:700!important}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-percent{color:rgba(27,39,52,.76)!important;font-weight:750!important}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-votes{color:rgba(94,107,119,.77)!important}
body.candidate-mode .sl-analysis{display:none!important}

/* V117 compact export / save dropdown */
.sl-save-wrap{position:relative;flex-shrink:0}.sl-save-trigger{display:flex!important;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.sl-save-chevron{font-size:16px;opacity:.65}.sl-save-menu{position:absolute;right:0;top:calc(100% + 9px);width:260px;z-index:1100;background:#fff;border:1px solid #dce3eb;border-radius:15px;padding:9px;box-shadow:0 14px 40px rgba(28,40,57,.16)}.sl-save-menu[hidden]{display:none!important}.sl-save-menu-heading{font:750 10px 'Segoe UI',sans-serif;letter-spacing:1.3px;color:#8390a0;padding:8px 10px 9px}.sl-save-menu button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;background:transparent;border:0;border-radius:9px;padding:9px;cursor:pointer;color:#25313f}.sl-save-menu button:hover,.sl-save-menu button:focus-visible{background:#f2f5f9}.sl-save-menu button:disabled{opacity:.5;cursor:wait}.sl-save-menu button span:nth-child(2){display:flex;flex-direction:column;gap:3px}.sl-save-menu strong{font:700 12px 'Segoe UI',sans-serif}.sl-save-menu small{font:400 10px 'Segoe UI',sans-serif;color:#778596}.sl-save-glyph{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:#f3f5f8;color:#9e1724;font-size:19px}.sl-save-separator{height:1px;background:#e8edf2;margin:5px 8px}.sl-save-status{font:500 10px/1.5 'Segoe UI',sans-serif;color:#64748b;padding:0 9px;max-height:48px;overflow:auto}.sl-save-status:empty{display:none}
/* V118 — Kayıt yükleme onay kartı */
.sl-confirm-backdrop[hidden]{display:none!important}
.sl-confirm-backdrop{position:fixed;inset:0;background:rgba(20,30,42,.47);z-index:99999;display:grid;place-items:center;padding:18px;backdrop-filter:blur(4px)}
.sl-confirm-card{width:min(430px,100%);padding:27px 27px 23px;border:1px solid #dfe4eb;border-radius:20px;background:#fff;box-shadow:0 24px 80px rgba(15,24,36,.24);font-family:"Segoe UI",sans-serif}
.sl-confirm-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f9edef;color:#9b1222;font-size:27px;margin-bottom:14px}
.sl-confirm-card h2{font-size:19px!important;color:#1c2936;margin:0 0 9px;font-weight:750}
.sl-confirm-card p{font-size:13px;line-height:1.65;color:#657181;margin:0 0 23px}
.sl-confirm-actions{display:flex;justify-content:flex-end;gap:9px}
.sl-confirm-actions button{border:1px solid #d6dfe8;border-radius:10px;background:white;color:#253444;padding:11px 15px;font-size:12px;font-weight:700;cursor:pointer}
.sl-confirm-actions #slRestoreAccept{background:#900c13;color:white;border-color:#900c13}
.sl-confirm-actions button:hover{filter:brightness(.96)}

/* V121 — Adaylar: ortalanmış harita ve altında dairesel aday galerisi */
.sl-toolbar-add-candidate{
 border:1px solid #9a101d!important;background:#8b0000!important;color:white!important;
 font-weight:750!important;border-radius:9px!important;padding:9px 14px!important;
 transition:opacity .2s,background .2s!important;white-space:nowrap;
}
.sl-toolbar-add-candidate:disabled{background:#f4f5f6!important;border-color:#d8dee5!important;color:#a7afb9!important;opacity:.65;cursor:not-allowed!important}
body.candidate-mode .map-shell{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:space-between!important;gap:4px!important;
 grid-template-columns:none!important;min-height:0!important;
}
body.candidate-mode .map-shell .map-top{
 display:flex!important;flex:1 1 auto!important;grid-column:auto!important;grid-row:auto!important;
 width:100%!important;min-height:0!important;align-items:center!important;justify-content:center!important;
}
body.candidate-mode .map-shell #mapMount{
 width:100%!important;max-width:1200px!important;margin:0 auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
body.candidate-mode .map-shell .map-hint{grid-column:auto!important;grid-row:auto!important;flex:0 0 auto!important}
body.candidate-mode .v37-candidate-panel{
 display:flex!important;grid-column:auto!important;grid-row:auto!important;
 width:100%!important;max-height:none!important;height:auto!important;
 min-height:170px!important;flex:0 0 176px!important;
 padding:4px 0!important;margin:0 auto!important;overflow:visible!important;
 animation:none!important;align-items:center!important;justify-content:center!important;
}
body.candidate-mode .v37-candidate-list{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 justify-content:center!important;align-items:stretch!important;gap:17px!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 flex:0 1 auto!important;width:100%!important;min-height:0!important;
 padding:4px 12px 8px!important;scrollbar-width:thin!important;
}
body.candidate-mode .v37-candidate-row{
 flex:0 0 145px!important;width:145px!important;height:155px!important;min-height:155px!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 padding:9px 8px 7px!important;gap:4px!important;position:relative!important;
 border:1px solid #dce2e8!important;border-radius:15px!important;
 background:#fff!important;box-shadow:0 5px 18px rgba(28,42,58,.055)!important;
 overflow:hidden!important;
}
body.candidate-mode .v37-candidate-row::before{
 content:""!important;position:absolute!important;left:0!important;top:0!important;
 bottom:0!important;width:5px!important;background:var(--candidate-color)!important;
 border-radius:0!important;z-index:5!important;
}
body.candidate-mode .v37-avatar{
 position:relative!important;left:auto!important;top:auto!important;
 width:78px!important;height:78px!important;flex:0 0 78px!important;
 border-radius:50%!important;overflow:hidden!important;z-index:1!important;
 -webkit-mask-image:none!important;mask-image:none!important;
 border:3px solid #fff!important;box-shadow:0 0 0 2px var(--candidate-color),0 3px 12px rgba(0,0,0,.1)!important;
 background:#eef2f5!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
body.candidate-mode .v37-portrait{
 width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;
}
body.candidate-mode .v37-initials{margin:0!important;font-size:21px!important}
body.candidate-mode .v37-candidate-row .v112-candidate-stats{
 position:relative!important;top:auto!important;right:auto!important;left:auto!important;
 width:100%!important;max-width:100%!important;transform:none!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:2px!important;opacity:1!important;z-index:2!important;
 transition:opacity .2s ease,transform .2s ease!important;
}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-candidate-name{
 font:700 11px/1.2 "Trebuchet MS","Segoe UI",sans-serif!important;
 color:rgba(29,42,55,.72)!important;text-align:center!important;
 max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
 white-space:nowrap!important;margin:0!important;
}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-percent{
 font:800 21px/1.05 "Segoe UI",sans-serif!important;color:rgba(24,36,49,.75)!important;
 min-width:0!important;text-align:center!important;
}
body.candidate-mode .v37-candidate-row .v112-candidate-stats .v37-votes{
 font:500 9px/1.2 "Segoe UI",sans-serif!important;color:rgba(70,85,100,.75)!important;
}
body.candidate-mode .v37-candidate-row .sl-pot-edit{
 position:absolute!important;left:50%!important;top:73%!important;right:auto!important;
 transform:translate(-50%,-40%) scale(.97)!important;opacity:0!important;
 visibility:hidden!important;pointer-events:none!important;z-index:7!important;
 padding:8px 9px!important;font-size:10px!important;white-space:nowrap!important;
 border-radius:9px!important;background:rgba(255,255,255,.97)!important;
 border:1px solid #ccd6df!important;box-shadow:0 4px 16px rgba(0,0,0,.12)!important;
}
body.candidate-mode .v37-candidate-row:hover .v112-candidate-stats,
body.candidate-mode .v37-candidate-row:focus-within .v112-candidate-stats{
 opacity:0!important;transform:translateY(5px)!important;
}
body.candidate-mode .v37-candidate-row:hover .sl-pot-edit,
body.candidate-mode .v37-candidate-row:focus-within .sl-pot-edit{
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 transform:translate(-50%,-50%) scale(1)!important;
}
body.candidate-mode .v37-remove{right:6px!important;top:5px!important;z-index:9!important}
@media(hover:none){
 body.candidate-mode .v37-candidate-row .sl-pot-edit{
  top:72%!important;left:50%!important;right:auto!important;opacity:0!important;
  visibility:hidden!important;pointer-events:none!important;
 }
 body.candidate-mode .v37-candidate-row:focus-within .sl-pot-edit{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
}
@media(max-width:760px){
 body.candidate-mode .v37-candidate-panel{flex:0 0 162px!important;min-height:162px!important}
 body.candidate-mode .v37-candidate-row{flex-basis:132px!important;width:132px!important}
 body.candidate-mode .v37-candidate-list{justify-content:flex-start!important}
}

/* V122: aday portrelerinde sade, nötr çerçeve */
body.candidate-mode .v37-avatar{border:3px solid #fff!important;box-shadow:0 0 0 1px #d3dce4,0 3px 11px rgba(30,43,58,.12)!important;background:#f4f6f8!important}

/* V125 — Aday ekranında harita çerçevesi, açıklama haritanın hemen altında */
.sl-toolbar-add-candidate{
 padding:8px 12px!important;min-height:34px!important;
 font-size:11px!important;font-weight:700!important;line-height:1.2!important;
 border-radius:9px!important;box-shadow:none!important;
}
body.candidate-mode .map-shell .map-top{
 border:1px solid #e1e5e9!important;border-radius:17px!important;
 background:rgba(255,255,255,.18)!important;
 padding:5px 9px!important;box-sizing:border-box!important;
}
body.candidate-mode .map-shell .map-hint{
 order:2!important;align-self:center!important;margin:2px auto 3px!important;
 padding:0!important;font-size:10px!important;
}
body.candidate-mode .map-shell .v37-candidate-panel{
 order:3!important;
}
body.candidate-mode .map-shell .map-top{order:1!important}

/* V126: açıklama harita çerçevesinin içinde, haritanın altında */
body.candidate-mode .map-shell .map-top{position:relative!important;padding-bottom:27px!important;}
body.candidate-mode .map-shell .map-top>.map-hint{
 position:absolute!important;bottom:7px!important;left:50%!important;transform:translateX(-50%)!important;
 width:max-content!important;max-width:calc(100% - 24px)!important;
 margin:0!important;text-align:center!important;white-space:normal!important;
 font-size:10px!important;z-index:3!important;pointer-events:none!important;
}
/* Aday Ekle butonu komşu sekmeler kadar kısa */
body.candidate-mode .workspace-toolbar .toolbar-zone-left #btnAddCandidate,
.workspace-toolbar .toolbar-zone-left #btnAddCandidate{
 flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
 min-height:34px!important;height:34px!important;padding:0 12px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 font-size:11px!important;line-height:1!important;box-shadow:none!important;
}

/* V128 — yuvarlak renk paleti */
.sl-candidate-palette{display:flex;flex-wrap:wrap;align-items:center;gap:11px;padding:9px 3px 3px;max-width:490px}
.sl-candidate-swatch,.sl-candidate-custom{appearance:none;border:2px solid transparent;width:34px;height:34px;flex:0 0 34px;border-radius:50%;padding:3px;display:grid;place-items:center;background:transparent;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
.sl-candidate-swatch span{display:block;width:100%;height:100%;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.sl-candidate-swatch:hover,.sl-candidate-custom:hover{transform:translateY(-2px) scale(1.07)}
.sl-candidate-swatch.selected,.sl-candidate-custom.selected{border-color:#29384b;box-shadow:0 0 0 2px #fff,0 0 0 3px #cbd5df}
.sl-candidate-swatch:focus-visible,.sl-candidate-custom:focus-visible{outline:2px solid #253f5b;outline-offset:3px}
.sl-candidate-custom{border:1px dashed #a7b3bf;background:#f8fafc;color:#4a5a6b;font-size:21px;font-weight:400}
.sl-candidate-color-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

/* V129 — Kompakt opsiyonel potansiyel başlığı ve fotoğraf yükleme */
.sl-pot-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.sl-pot-optional{font-size:11px;font-weight:500;color:#8995a3}
.candidate-photo-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sl-photo-upload{position:relative;display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid #cbd5df;border-radius:10px;background:linear-gradient(180deg,#fff,#f7f9fb);color:#27384b;font-size:12px;font-weight:700;box-shadow:0 2px 5px rgba(20,40,60,.04);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.sl-photo-upload:hover{border-color:#8b9eaf;box-shadow:0 3px 10px rgba(20,40,60,.1)}
.sl-photo-upload:focus-within{outline:2px solid #8aa6c7;outline-offset:2px}
.sl-photo-upload-icon{font-size:18px;font-weight:400;line-height:12px;color:#8b1825}
.sl-photo-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;max-width:none}
.sl-photo-filename{font-size:11px;color:#738295;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V134: telif satırı logonun hizasında, sağ altta; harita ipucu daha soluk */
.site-header.secim-animated-header{overflow:visible!important}
.sl-header-copyright{position:absolute;right:2px;bottom:5px;z-index:2;font:400 9px/1.2 Inter,system-ui,sans-serif;letter-spacing:.02em;color:rgba(82,98,112,.46);white-space:nowrap;pointer-events:none}
.map-hint,body.candidate-mode .map-shell .map-top>.map-hint{color:rgba(75,88,103,.48)!important}
.map-hint span,body.candidate-mode .map-shell .map-top>.map-hint span{color:rgba(142,54,57,.5)!important}
@media(max-width:1150px){.sl-header-copyright{font-size:8px;right:1px;bottom:2px}}
@media(max-width:850px){.sl-header-copyright{display:none}}

/* V1.4 UI: AI senaryolari sol ve sag arac gruplarinin ortasinda. */
@media (min-width:1201px) {
  .workspace-toolbar.secim-toolbar-v74 {
    grid-template-columns:max-content minmax(0,1fr) max-content!important;
    column-gap:20px!important;
  }
  .secim-toolbar-v74 .toolbar-zone-center {
    min-width:0!important;
    justify-content:center!important;
  }
  .secim-toolbar-v74 .sl-ai-scenarios {
    flex-wrap:nowrap!important;
    gap:7px!important;
  }
}
