/* =====================================================================
 * settings.css — PIXEL F v18: หน้าตั้งค่าแบบหมวด (หน้าแรก → เข้าไปข้างใน)
 * ===================================================================== */
.st-home { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px; }
.st-cat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 14px 30px 14px 14px; text-align: left; border-radius: 14px; cursor: pointer; color: #fff; font: inherit;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 26%, #16122a), #120e22 70%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .12s, box-shadow .12s, border-color .12s; }
.st-cat:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.st-cat:last-child { grid-column: 1 / -1; min-height: 74px; }
.st-cat > i { font-style: normal; font-size: 30px; width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.st-cat b { display: block; font-size: 15px; } .st-cat small { display: block; font-size: 9.5px; letter-spacing: 1.6px; color: var(--c); font-weight: 800; margin-top: 1px; }
.st-cat p { margin: 5px 0 0; font-size: 11px; color: rgba(255, 255, 255, .6); line-height: 1.35; }
.st-cat > em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; color: rgba(255, 255, 255, .35); }
.st-num { position: absolute; top: 8px; right: 10px; font: 800 10px/1 system-ui, sans-serif; color: rgba(255, 255, 255, .3); }
.st-foot { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); margin-top: 12px; }

.st-top { position: sticky; top: -8px; z-index: 2; display: flex; align-items: center; gap: 10px; margin: -8px -8px 10px; padding: 10px 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, #140f26), #140f26); border-bottom: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.st-back { flex: none; height: 32px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: 800 13px/1 inherit; cursor: pointer; }
.st-back:hover { background: rgba(255, 255, 255, .2); }
.st-h { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; } .st-h i { font-style: normal; font-size: 20px; }
.st-tabs { display: flex; gap: 4px; flex: none; }
.st-tabs button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); cursor: pointer; font-size: 15px; padding: 0; opacity: .6; }
.st-tabs button.on { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); }
.st-tabs button:hover { opacity: 1; }

.st-page { display: grid; gap: 10px; }
.st-card { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.st-card > h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .3px; color: #fff; }
.st-card .sub-title { display: none; }
.st-card .row { margin: 6px 0; } .st-card .opt { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.st-det summary { cursor: pointer; font-weight: 800; font-size: 13px; list-style: none; } .st-det summary::before { content: "▸ "; } .st-det[open] summary::before { content: "▾ "; }
.st-det[open] summary { margin-bottom: 8px; }
.st-info { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(0, 0, 0, .25); font-size: 11.5px; color: rgba(255, 255, 255, .75); } .st-warn { color: #ffc93d; }

/* ---------- slider เสียง / ขนาด ---------- */
.st-vol { display: flex; align-items: center; gap: 12px; padding: 8px 0; } .st-vol + .st-vol { border-top: 1px dashed rgba(255, 255, 255, .08); }
.st-vic { font-size: 20px; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.st-vt { flex: 1; min-width: 0; } .st-vh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.st-vh b { font-size: 12.5px; } .st-vh em { font-style: normal; font: 800 13px/1 system-ui, sans-serif; color: #ffd166; min-width: 42px; text-align: right; }
.st-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; outline: none; cursor: pointer; margin: 0;
  background: linear-gradient(90deg, #ff4fa3, #7b61ff) 0 0 / var(--p, 50%) 100% no-repeat, rgba(255, 255, 255, .14); }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #ff4fa3; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.st-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #ff4fa3; }
.st-sw { position: relative; flex: none; width: 42px; height: 24px; cursor: pointer; } .st-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.st-sw i { position: absolute; inset: 0; border-radius: 12px; background: rgba(255, 255, 255, .18); transition: background .15s; }
.st-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.st-sw input:checked + i { background: #3ee08f; } .st-sw input:checked + i::after { transform: translateX(18px); }

body.m-mobile .st-cat { min-height: 76px; padding: 10px 26px 10px 10px; } body.m-mobile .st-cat > i { width: 40px; height: 40px; font-size: 24px; }
body.m-mobile .st-range::-webkit-slider-thumb { width: 26px; height: 26px; }
@media (max-width: 520px) { .st-home { grid-template-columns: 1fr; } .st-tabs { display: none; } }
/* v19: แถวสวิตช์ */
.ss-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; cursor: pointer; } .ss-row + .ss-row, .hint + .ss-row { border-top: 1px dashed rgba(255, 255, 255, .08); }
.ss-row b { display: block; font-size: 12.5px; } .ss-row small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.ss-row > div { flex: 1; min-width: 0; }
.st-cat:last-child { grid-column: auto; min-height: 0; } /* v150: เหลือ 4 หมวด = ตาราง 2×2 */
