/* pn-theme-2026: โหมดมืด/สว่าง — ส่วนนี้ดูแลแค่ปุ่มสลับ + พื้นหลังก่อนสคริปต์ทำงาน (สีหลักแปลงโดย theme.js) */
html[data-theme="dark"]{color-scheme:dark;background:#0b1220;}
html[data-theme="dark"]:not(.pn-ready) body{opacity:0;}
html[data-theme="dark"] body{transition:opacity .12s ease;}
.pn-theme-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid #e6e9ee;background:#fff;color:#334155;border-radius:50%;font-size:17px;line-height:1;cursor:pointer;flex:0 0 auto;transition:border-color .15s,background-color .15s;}
.pn-theme-btn .pn-theme-txt{display:none !important;}
.pn-theme-btn:hover{border-color:#14b8a6;}
html[data-theme="dark"] .pn-theme-btn{background:#16213a;color:#e2e8f0;border-color:#2b3b5a;}
html[data-theme="dark"] .pn-theme-btn:hover{border-color:#14b8a6;}
.pn-theme-li{display:flex;align-items:center;margin:0 .35rem;}
.pn-theme-mobile{display:none;margin-left:auto;margin-right:8px;}
.pn-theme-float{position:fixed;left:16px;bottom:16px;z-index:1050;box-shadow:0 6px 18px rgba(15,23,42,.15);}
@media (max-width:991px){ .pn-theme-li{display:none !important;} .pn-theme-mobile{display:inline-flex;} }
/* เฟส 2: จุดที่สคริปต์แปลงอัตโนมัติไม่ถึง (pseudo-element / สีกลางๆ) */
html[data-theme="dark"] .hp-mark{background:linear-gradient(transparent 62%,rgba(20,184,166,.45) 62%) !important;}
html[data-theme="dark"] .social-btn::after{color:#e2e8f0 !important;}
