/* ===== SIDE PANEL ===== */
#panel { position: fixed; top: 50px; right: -380px; bottom: 0; width: 380px; background: var(--panel);
  border-left: 1px solid var(--border); z-index: 900; overflow-y: auto; transition: right .3s ease; }
#panel.open { right: 0; }
#panel::-webkit-scrollbar { width: 3px; }
#panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.ph { padding: 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.ph-t { font-size: 18px; font-weight: 700; }
.ph-s { font-size: 11px; color: var(--t2); margin-top: 2px; }
.ph-x { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 4px;
  background: var(--card); border: 1px solid var(--border); color: var(--t3); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ph-x:hover { color: var(--t1); }
.ph-back { position: absolute; top: 10px; right: 40px; width: 24px; height: 24px; border-radius: 4px;
  background: var(--card); border: 1px solid var(--border); color: var(--t3); font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ph-back:hover { color: var(--t1); }
.ps { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.psl { font-size: 8px; color: var(--t3); font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.sg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc { background: var(--card); border-radius: 5px; padding: 8px; border: 1px solid var(--border); }
.sv { font-family: 'Space Mono', monospace; font-size: 16px; font-weight: 700; }
.sv.pos { color: var(--green); } .sv.neg { color: var(--red); } .sv.neu { color: var(--gold); }
.sl { font-size: 9px; color: var(--t3); margin-top: 1px; }

/* Region list */
.rl { max-height: 300px; overflow-y: auto; }
.ri { display: flex; align-items: center; padding: 7px 8px; border-radius: 4px; cursor: pointer; gap: 8px; }
.ri:hover { background: var(--hover); }
.rn { font-size: 11px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv { font-family: 'Space Mono', monospace; font-size: 10px; flex: 0 0 50px; text-align: right; }
.r-nps { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 9px; font-family: 'Space Mono', monospace; font-weight: 700; }
.r-votes { font-size: 8px; color: var(--t3); font-family: 'Space Mono', monospace; flex: 0 0 55px; text-align: right; }

/* ===== RATING FORM ===== */
.rf-q { font-size: 12px; color: var(--t2); line-height: 1.5; margin-bottom: 12px; font-style: italic; }
.rf-slider-wrap { position: relative; padding: 8px 0; }
.rf-slider-wrap input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--nps-dred), var(--nps-orange), var(--nps-yellow), var(--nps-lgreen), var(--nps-dgreen));
  border-radius: 3px; outline: none; cursor: pointer;
}
.rf-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--t1); border: 2px solid var(--gold); cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.rf-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--t1); border: 2px solid var(--gold); cursor: pointer;
}
.rf-labels { display: flex; justify-content: space-between; font-size: 8px; color: var(--t3); font-family: 'Space Mono', monospace; margin-top: 4px; }
.rf-ticks { display: flex; justify-content: space-between; padding: 0 2px; margin-top: 2px; }
.rf-tick { width: 1px; height: 6px; background: var(--t3); opacity: 0.4; }
.rf-val { text-align: center; font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700; color: var(--gold); margin: 8px 0; }
.rf-submit {
  width: 100%; padding: 10px; background: var(--gold); color: var(--bg); border: none; border-radius: 6px;
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; letter-spacing: 0.5px;
}
.rf-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,0.3); }
.rf-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.rf-status { text-align: center; font-size: 11px; margin-top: 8px; min-height: 16px; }

/* ===== TACTICAL MOVES ===== */
.tm-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tm-item:last-child { border-bottom: none; }
.tm-num { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.tm-body { flex: 1; }
.tm-title { font-size: 12px; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.tm-desc { font-size: 10px; color: var(--t2); line-height: 1.4; }
.tm-source { font-size: 8px; color: var(--t3); font-family: 'Space Mono', monospace; margin-top: 2px; }
.tm-disclaimer { font-size: 8px; color: var(--t3); margin-top: 8px; font-style: italic; }
