
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.settings-panel {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 22px 24px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: fadeIn 0.2s ease-out;
  font-family: 'DM Sans', sans-serif;
}

[data-theme="midnight"] .settings-panel {
  background: #0d1f2d;
  color: #c0cfe6;
  border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="library"] .settings-panel,
[data-theme="studio"] .settings-panel {
  background: #fff;
  color: #111;
  border: 1px solid #e0e0e0;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.settings-title {
  font-weight: 800;
  font-size: 18px;
}

.close-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-section {
  margin-bottom: 20px;
}

.settings-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

[data-theme="midnight"] .settings-label {
  color: #3e5670;
}

[data-theme="library"] .settings-label,
[data-theme="studio"] .settings-label {
  color: #aaa;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.option-btn {
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.option-btn.active {
  background: var(--accent);
  color: #fff;
}

[data-theme="midnight"] .option-btn:not(.active) {
  background: rgba(255,255,255,0.07);
  color: #c0cfe6;
}

[data-theme="library"] .option-btn:not(.active),
[data-theme="studio"] .option-btn:not(.active) {
  background: #f5f5f5;
  color: #111;
}

.font-grid {
  grid-template-columns: repeat(2, 1fr);
}

.size-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.size-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="midnight"] .size-btn {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
}

input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}