.ajuste-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ajuste-row:last-child { border-bottom: none; }
.ajuste-info { flex: 1; }
.ajuste-label { font-size: 0.933rem; font-weight: 500; }
.ajuste-sub { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }
.ajuste-section-sep { height: 1px; background: var(--border); margin: 16px 0; }

.toggle-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 13px; cursor: pointer; transition: all 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: var(--text3); border-radius: 50%; transition: all 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(200,240,90,0.2); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { background: var(--accent); transform: translateX(18px); }

.tema-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.tema-preview-card {
  border-radius: 12px; border: 2px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.tema-preview-card:active { transform: scale(0.97); }
.tema-preview-card.selected { border-color: var(--accent); }
.tema-preview-card.selected::after {
  content: '✓'; position: absolute; top: 6px; right: 8px;
  font-size: 0.733rem; font-weight: 700; color: var(--accent);
}
.tema-mockup { padding: 10px 10px 8px; height: 90px; }
.tema-mockup-oscuro { background: #0f1117; }
.tema-mockup-claro  { background: #f5f5f0; }
.tm-kcal { font-family: 'DM Mono', monospace; font-size: 1.333rem; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.tm-label { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; opacity: 0.5; }
.tm-bars { display: flex; gap: 4px; }
.tm-bar { flex: 1; border-radius: 4px; padding: 4px 5px; }
.tm-bar-label { font-size: 7px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; }
.tm-bar-val { font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; margin-top: 1px; }
.tema-preview-nombre {
  font-size: 0.733rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; text-align: center; padding: 7px 0;
  border-top: 1px solid var(--border); color: var(--text2);
}
.tema-preview-card.selected .tema-preview-nombre { color: var(--accent); }

.acento-presets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.acento-dot {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s;
  -webkit-tap-highlight-color: transparent; flex-shrink: 0;
}
.acento-dot:active { transform: scale(0.88); }
.acento-dot.selected { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.acento-custom-wrap {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
}
.acento-custom-wrap.selected { border-color: var(--accent); }
.acento-custom-label { font-size: 0.8rem; color: var(--text2); flex: 1; }
.acento-custom-swatch {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--border2); overflow: hidden;
  position: relative; flex-shrink: 0;
}
.acento-custom-swatch input[type="color"] {
  position: absolute; inset: -6px;
  width: calc(100% + 12px); height: calc(100% + 12px);
  border: none; padding: 0; cursor: pointer; background: none; opacity: 0;
}

.font-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.font-card {
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 8px 10px;
  cursor: pointer; text-align: center; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.font-card:active { transform: scale(0.95); }
.font-card.selected { border-color: var(--accent); background: rgba(200,240,90,0.07); }
.font-card-preview { font-size: 1.467rem; font-weight: 600; line-height: 1; color: var(--text); margin-bottom: 6px; }
.font-card-name { font-size: 9px; color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; }
.font-card.selected .font-card-name { color: var(--accent); }

.font-preview-bar { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; transition: font-family 0.25s ease; }
.font-preview-line1 { font-size: 1.067rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.font-preview-line2 { font-size: 0.8rem; color: var(--text2); }

.size-slider-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.size-slider-a { font-size: 0.8rem; color: var(--text3); font-weight: 600; flex-shrink: 0; line-height: 1; }
.size-slider-a.grande { font-size: 1.2rem; }
#size-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--border2); border-radius: 2px;
  outline: none; border: none; padding: 0; cursor: pointer;
}
#size-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  border: 3px solid var(--bg2); box-shadow: 0 0 0 1px var(--accent);
  transition: transform 0.15s;
}
#size-slider::-webkit-slider-thumb:active { transform: scale(1.2); }
#size-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--bg2);
}
.size-preview-bar { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text2); transition: font-size 0.15s ease; }

.notif-expand-panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s cubic-bezier(0.32,0.72,0,1), opacity 0.3s ease; }
.notif-expand-panel.visible { max-height: 1400px; opacity: 1; }

.notif-tiempo-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; transition: opacity 0.2s; }
.notif-tiempo-card.inactivo { opacity: 0.4; }
.notif-tiempo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.notif-tiempo-emoji { font-size: 1.2rem; }
.notif-tiempo-nombre { flex: 1; font-size: 0.933rem; font-weight: 500; text-transform: capitalize; }
.notif-tiempo-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notif-tiempo-body .field { margin-bottom: 0; }
.notif-tiempo-body label.field-label { font-size: 0.733rem; }
.notif-tiempo-body select,
.notif-tiempo-body input[type="time"] { font-size: 0.867rem; padding: 8px 10px; }

.permiso-banner {
  background: rgba(240,168,90,0.1); border: 1px solid rgba(240,168,90,0.3);
  border-radius: 10px; padding: 12px 14px;
  font-size: 0.867rem; color: var(--amber);
  display: none; margin-bottom: 12px;
}
.permiso-banner.show { display: block; }

.nav-config-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav-config-row:last-child { border-bottom: none; }
.nav-config-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}
.nav-checkbox { display: none; }
.nav-check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.nav-checkbox:checked + .nav-check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.nav-checkbox:checked + .nav-check-box::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.733rem;
  color: #0f1117;
  font-weight: 700;
}
.nav-config-tab-label { font-size: 0.933rem; color: var(--text); }