/* ---------- Preferências ---------- */
.pref-pagina{display:grid;gap:16px;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
.pref-secao{display:grid;gap:4px;padding:18px;border-radius:16px;background:var(--n-surface,#0f1512);border:1px solid var(--n-line,rgba(134,227,189,.14));min-width:0}
.pref-cab{display:flex;gap:12px;align-items:flex-start;margin-bottom:8px}
.pref-cab>div{display:grid;gap:3px;min-width:0;align-self:center}
.pref-cab h2{margin:0!important;padding:0!important;line-height:1.25;font-size:17px;color:var(--n-text,#e6f4ec)}
.pref-cab p{margin:0!important;padding:0!important;font-size:13px;line-height:1.45;color:var(--n-muted,#9ab8a8)}
.pref-icone{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--n-jade-soft,rgba(134,227,189,.12));font-size:19px}
.pref-linha{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--n-line,rgba(134,227,189,.1));cursor:pointer;margin:0!important;min-width:0}
.pref-cab+.pref-linha{border-top:0}
.pref-textos{display:grid;gap:2px;min-width:0}
.pref-textos strong{font-size:14.5px;font-weight:600;color:var(--n-text,#e6f4ec)}
.pref-textos small{font-weight:400;font-size:12.5px;line-height:1.4;color:var(--n-muted,#9ab8a8)}
.pref-desligado{opacity:.45}
.pref-desligado,.pref-desligado *{cursor:default}

/* interruptor */
.pref-switch{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:46px!important;height:26px!important;margin:0!important;padding:0!important;border-radius:99px!important;border:1px solid var(--n-line-strong,rgba(134,227,189,.25))!important;background:var(--n-surface-3,#1a241f)!important;cursor:pointer;transition:background .2s,border-color .2s}
.pref-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--n-muted,#9ab8a8);transition:transform .2s,background .2s}
.pref-switch:checked{background:var(--n-jade,#86e3bd)!important;border-color:var(--n-jade,#86e3bd)!important}
.pref-switch:checked::after{transform:translateX(20px);background:var(--n-jade-ink,#0b2a20)}
.pref-switch:focus-visible{outline:2px solid var(--n-jade,#86e3bd);outline-offset:3px}

/* volume */
.pref-volume{display:grid!important;grid-template-columns:minmax(0,auto) minmax(120px,240px);cursor:default}
.pref-volume .pref-textos{grid-auto-flow:column;justify-content:start;align-items:baseline;gap:8px}
.pref-volume input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:6px;margin:0;padding:0;border:0;border-radius:99px;background:linear-gradient(90deg,var(--n-jade,#86e3bd) var(--p,50%),var(--n-surface-3,#1a241f) var(--p,50%));cursor:pointer}
.pref-volume input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--n-jade,#86e3bd);box-shadow:0 2px 6px rgba(0,0,0,.4)}
.pref-volume input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--n-jade,#86e3bd)}
.pref-volume input:disabled{cursor:default}

.pref-botao{justify-self:start;margin-top:6px;padding:9px 16px;border-radius:10px;font-weight:600;font-size:13.5px}

/* estilos de ambiente */
.pref-estilos{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;padding:4px 0 8px}
.pref-estilo{display:grid!important;justify-items:start!important;justify-content:stretch!important;align-items:start!important;gap:3px;align-content:start;text-align:left;padding:12px!important;border-radius:12px!important;border:1px solid var(--n-line,rgba(134,227,189,.14))!important;background:var(--n-surface-2,#141c18)!important;color:inherit;min-width:0;min-height:0!important;height:auto!important;white-space:normal!important}
.pref-estilo>*{text-align:left;width:100%}
.pref-estilo strong{font-size:13.5px;color:var(--n-text,#e6f4ec)}
.pref-estilo small{font-size:12px;line-height:1.35;color:var(--n-muted,#9ab8a8);font-weight:400}
.pref-estilo[aria-checked=true]{border-color:var(--n-jade,#86e3bd)!important;background:var(--n-jade-soft,rgba(134,227,189,.12))!important;box-shadow:inset 0 0 0 1px var(--n-jade,#86e3bd)}
.pref-estilos.pref-desligado .pref-estilo{cursor:pointer}

/* Spotify */
.pref-spotify{display:flex;gap:8px;margin:2px 0 6px;min-width:0}
.pref-spotify input{flex:1;min-width:0;margin:0!important}
.pref-spotify .pref-botao{margin:0;flex:none}
.pref-status{margin:0;font-size:13px;color:var(--n-jade,#86e3bd);min-height:0}
.pref-status:empty{display:none}
.pref-nota{margin:6px 0 0;font-size:12.5px;line-height:1.45;color:var(--n-faint,#6f8a7d)}
.pref-select{margin:0!important;width:auto!important;min-width:110px}

@media (max-width:560px){
  .pref-secao{padding:14px}
  .pref-estilos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pref-estilo{padding:10px!important}
  .pref-estilo small{font-size:11.5px}
  .pref-volume{grid-template-columns:1fr;gap:10px}
}
@media (max-width:360px){
  .pref-spotify{flex-direction:column}
  .pref-spotify .pref-botao{align-self:stretch}
}

/* ---------- animações reduzidas ---------- */
html.anim-reduzidas *,html.anim-reduzidas *::before,html.anim-reduzidas *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
