:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #dce3ee;
  --text: #1e2a39;
  --muted: #62708a;
  --accent: #2f6de5;
  --soft: #eef4ff;
  --selection-glow-color: rgba(47, 109, 229, 0.45);
  --selection-glow-size: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfdff 0%, #f3f6fb 100%);
}

.floating-panel {
  backdrop-filter: blur(4px);
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
  align-items: center;
  cursor: pointer;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d5deec;
  border: 1px solid #c8d3e4;
  box-shadow: inset 0 1px 2px rgba(16, 32, 58, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 36, 63, 0.26);
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
}

.toggle-checkbox:checked+.toggle-slider {
  background: #2f6de5;
  border-color: #2a61cb;
}

.toggle-checkbox:checked+.toggle-slider::before {
  transform: translate(18px, -50%);
}

.toggle-checkbox:focus-visible+.toggle-slider {
  outline: 2px solid #7fa9ff;
  outline-offset: 2px;
}

.btn-main,
.btn-ghost {
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.btn-main {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.field-toggle>label:first-child {
  margin-right: 10px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

.kv {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}