body { font-family: 'Inter', system-ui, sans-serif; background: #020617; }
.tabular-nums { font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: #6366f1; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { opacity: .35; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.35); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.55); }

/* Bilgi kutusu (tooltip) */
#tip {
  position: fixed; z-index: 70; max-width: 360px; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; white-space: pre-line;
}
#tip.show { opacity: 1; transform: translateY(0); }
.tip-i {
  display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 9999px;
  font-size: 10px; font-weight: 800; font-style: normal; line-height: 1; cursor: help; flex-shrink: 0;
  color: #a5b4fc; background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.4); vertical-align: middle;
}
.tip-i:hover, .tip-i:focus { background: rgba(99,102,241,.35); color: #fff; outline: none; }
[data-tip]:not(.tip-i) { cursor: help; }

/* Oran çubuğu */
.rbar {
  position: relative; height: 30px; border-radius: 10px; display: flex; background: #0f172a;
  border: 1px solid #1e293b; user-select: none; touch-action: none;
}
.rseg {
  height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 10.5px; font-weight: 800; color: #020617; white-space: nowrap; transition: width .08s linear;
}
.rseg:first-child { border-radius: 9px 0 0 9px; }
.rseg:last-child { border-radius: 0 9px 9px 0; }
.rhandle {
  position: absolute; top: -5px; bottom: -5px; width: 14px; margin-left: -7px;
  cursor: ew-resize; z-index: 2; display: flex; justify-content: center;
}
.rhandle::before {
  content: ''; width: 4px; height: 100%; border-radius: 4px; background: #f8fafc;
  box-shadow: 0 0 0 2px #020617, 0 0 10px rgba(255,255,255,.35);
}
.rhandle:hover::before, .rhandle.dragging::before { background: #a5b4fc; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .chev { transform: rotate(90deg); }
.chev { transition: transform .15s; }

.fld {
  width: 100%; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; padding: 5px 8px;
  border-radius: 8px; background: #0f172a; border: 1px solid #334155; color: #f8fafc; font-variant-numeric: tabular-nums;
}
.fld:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.25); }
.fld:disabled { opacity: .4; cursor: not-allowed; }
select.fld { font-family: 'Inter', sans-serif; font-weight: 600; }
.lbl { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: #94a3b8; margin-bottom: 3px; }
.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background-color: rgba(99,102,241,.35); } to { background-color: transparent; } }
.util-track { position: relative; height: 8px; border-radius: 9999px; overflow: hidden; }
.util-marker {
  position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 3px;
  background: #f8fafc; box-shadow: 0 0 0 1px #020617;
}
@media print { #leftPanel, header, #exportBar { display: none !important; } }
