/* ===== SETTINGS, MORE VISUAL (tools/65-settings-visual.js) ===== */
.settings-panel.sv .sv-hide { display: none !important; }

/* the board of tiles */
.sv-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
@media (max-width: 520px) { .sv-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sv-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 10px 9px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #4ade80) 14%, transparent), rgba(255,255,255,.03));
  border: 1px solid color-mix(in srgb, var(--accent, #4ade80) 22%, transparent); color: inherit; font: inherit; transition: transform .15s, border-color .15s; }
.sv-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent, #4ade80) 60%, transparent); }
.sv-tile .sv-ic { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.sv-tile b { font-size: .86rem; }
.sv-tile small { font-size: .72rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: flex; align-items: center; gap: 4px; }
.sv-tile[data-k="lock"] small, .sv-tile[data-k="notif"] small { font-weight: 600; }
.sv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* cards flash when a tile brings you there */
.sv-flash { animation: svFlash 1.1s ease-out; }
@keyframes svFlash { 0% { box-shadow: 0 0 0 3px var(--accent, #4ade80); } 100% { box-shadow: 0 0 0 0 transparent; } }
.settings-panel.sv .sv-card { border-radius: 14px; }

/* blocks inside Appearance */
.sv-block { margin: 8px 0 12px; }
.sv-h { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 6px; }

/* theme cards with a little preview */
.sv-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-theme { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; background: rgba(255,255,255,.04); color: inherit; font: inherit; }
.sv-theme.on { border-color: var(--accent, #4ade80); }
.sv-prev { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 54px; padding: 6px; border-radius: 8px; }
.sv-prev i { border-radius: 4px; }
.sv-prev i:first-child { grid-row: span 2; }
.sv-theme.dark .sv-prev { background: #0f1115; }
.sv-theme.dark .sv-prev i { background: #262a33; }
.sv-theme.light .sv-prev { background: #f3f4f6; }
.sv-theme.light .sv-prev i { background: #d6d9df; }
.sv-prev i:nth-child(2) { background: var(--accent, #4ade80) !important; opacity: .85; }
.sv-theme b { font-size: .82rem; }

/* color swatches */
.sv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; background: var(--c); border: 3px solid transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.15); padding: 0; transition: transform .12s; display: grid; place-items: center; }
.sv-sw:hover { transform: scale(1.12); }
.sv-sw.on { border-color: var(--text, #fff); }
.sv-sw.custom { background: transparent; border: 2px dashed var(--muted, #888); box-shadow: none; display: grid; place-items: center; }   /* (17/11) sólo un «+», sin colores */
.sv-sw.custom span { font-size: 1rem; font-weight: 800; color: var(--text, #eee); text-shadow: none; line-height: 1; }
.sv-sw.custom.on { border-style: solid; border-color: var(--text, #fff); background: var(--c); }
.sv-sw.custom.on span { color: #fff; text-shadow: 0 0 3px #0008; }

/* size preview */
.sv-size { position: relative; }
.sv-aa { min-width: 44px; text-align: center; font-weight: 700; color: var(--accent, #4ade80); transition: font-size .2s; }

/* language buttons */
.sv-langgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.sv-lang { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; cursor: pointer; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: inherit; font: inherit; min-width: 0; }
.sv-lang span { font-size: 1.1rem; }
.sv-lang b { font-size: .76rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-lang.on { border-color: var(--accent, #4ade80); background: color-mix(in srgb, var(--accent, #4ade80) 16%, transparent); }
.sv-lang.on b { font-weight: 700; }

/* light theme */
body.theme-light .sv-tile { background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #4ade80) 16%, #fff), #fff); }
body.theme-light .sv-theme, body.theme-light .sv-lang { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
body.theme-light .sv-theme.on, body.theme-light .sv-lang.on { border-color: var(--accent, #4ade80); }
body.theme-light .sv-sw.on { border-color: #111; }

/* account as a little profile card */
.settings-panel.sv .acc-logged { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.settings-panel.sv .acc-email { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.settings-panel.sv .logout-forget { grid-column: 1 / -1; font-size: .8rem; opacity: .75; }
.sv-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #0b0d10;
  background: linear-gradient(135deg, var(--accent, #4ade80), color-mix(in srgb, var(--accent, #4ade80) 50%, #22d3ee)); }
/* help buttons as a row of tiles */
.settings-panel.sv .sv-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.settings-panel.sv .sv-help > * { margin: 0 !important; }
.settings-panel.sv .sv-help .theme-btn { padding: 14px 10px; border-radius: 12px; }
body.theme-light .settings-panel.sv .acc-logged { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
