
.kr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
	width: 100%;   
}

.cp-limits-grid .settings-field-control input[type="number"] {
  flex: none;
  width: calc(var(--chars, 5) * 1ch + 40px);
  min-width: 0;
}

.kr-field textarea,
.kr-field select,
.kr-field input[type="text"],
.cp-limits-grid input[type="number"],
.pl-extras input[type="text"] {
  width: 100%;
	min-width: 166px;
  box-sizing: border-box;     
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: linear-gradient(180deg, rgba(20,28,45,0.95), rgba(12,18,32,0.98));
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, height .1s ease;
}

.kr-field textarea {
  overflow: hidden;
	field-sizing: content;
  max-height: 300px; 
}

#spShowDescription {
  field-sizing: fixed;
  resize: vertical;
  overflow: auto;
  height: 70px;
  min-height: 50px;
  max-height: 400px;
}

.kr-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.kr-field textarea:focus,
.kr-field select:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.kr-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.kr-checkbox input {
  accent-color: #7c5cff;
  cursor: pointer;
}



.kw-toolbar {
  position: relative;
}

.ic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: -3px;
}
.ic svg {
  flex-shrink: 0;
}

.kw-tools-btn .kw-icon {
  font-size: 12px;
  line-height: 1;
}

.kw-caret {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.15s ease;
  color: var(--text-dim);
}

.kw-tools-btn.open .kw-caret {
  transform: rotate(180deg);
}

.kw-tools-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: max-content;
  min-width: 200px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: linear-gradient(180deg, rgba(20,28,45,0.98), rgba(10,16,28,0.98));
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 20px rgba(124,92,255,0.1);
  animation: kwMenuIn 0.15s ease;
  transform-origin: top left;
}

@keyframes kwMenuIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.kw-tools-menu.open { display: block; }

.kw-tools-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 2px 0;
  text-align: left;
  padding: 7px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #e6e6e6;
  font-size: 12.5px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.kw-tools-menu button:hover {
  background: rgba(124, 92, 255, 0.15);
  color: #ffffff;
}

.kw-tools-menu .kw-icon {
  flex-shrink: 0;
  width: 15px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

.field-change-info {
  font-size: 11px;
  color: var(--success);
  margin-top: 2px;
  min-height: 14px;
}



.batch-tools-panel {
  position: fixed;
  right: -340px;
  top: 0;
  height: 100%;
  width: 340px;
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.99), rgba(10, 16, 28, 0.99));
  border-left: 1px solid rgba(124, 92, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: right 0.25s ease;
  z-index: 1000;
  padding: 20px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.4) transparent;
}

.batch-tools-panel.open { right: 0; }

.btp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin: -20px -24px 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.12);
}

.btp-header button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.15);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btp-header button:hover {
  background: rgba(255, 92, 122, 0.1);
  border-color: rgba(255, 92, 122, 0.3);
  color: #ff5c7a;
}

.btp-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btp-body:not(.stats-account-body) button:not(.icon-btn) {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btp-body button .kw-icon {
  flex-shrink: 0;
  width: 15px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
}

.btp-body:not(.stats-account-body) button:not(.icon-btn):hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: #ffffff;
  background: rgba(124, 92, 255, 0.12);
}

.btp-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 4px;
}

