/* ============================================================
 * หน้าตาเว็บงานปกครอง
 * สีหลัก: --b* = น้ำเงิน, --g* = เหลือง (ประกาศไว้ที่ :root ด้านล่าง)
 * ไฟล์นี้เรียงจากส่วนพื้นฐาน > ส่วนต่าง ๆ ของหน้าเว็บ > หน้าผู้ดูแล
 * กฎที่อยู่ด้านล่างจะทับกฎด้านบน (ห้ามสลับลำดับ)
 * ============================================================ */

:root {
  --b9:#0b2058;
  --b7:#14388f;
  --b5:#2a5bd7;
  --b1:#e6edfb;
  --b0:#f3f6fd;
  --g5:#f5b800;
  --g6:#d99f00;
  --g1:#fff4cc;
  --ink:#16203a;
  --mu:#5b6785;
  --ln:#dde3f0;
  --bg:#f7f8fc;
  --card:#fff;
  --sh:0 6px 24px rgba(11,32,88,.08);
  --shl:0 14px 40px rgba(11,32,88,.16);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root {
  --hd:var(--b7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --ink:#e8ecf8;
    --mu:#a3aed0;
    --ln:#2a3763;
    --bg:#0c1330;
    --card:#141d44;
    --b0:#101a40;
    --b1:#1b2858;
    --hd:#9dbaff;
    --g1:#3a3210;
    --sh:0 6px 24px rgba(0,0,0,.35);
    --shl:0 14px 40px rgba(0,0,0,.5);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink:#e8ecf8;
  --mu:#a3aed0;
  --ln:#2a3763;
  --bg:#0c1330;
  --card:#141d44;
  --b0:#101a40;
  --b1:#1b2858;
  --hd:#9dbaff;
  --g1:#3a3210;
  --sh:0 6px 24px rgba(0,0,0,.35);
  --shl:0 14px 40px rgba(0,0,0,.5);
}
:root[data-theme=light] {
  color-scheme: light;
  --hd:var(--b7);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  font:
    17px/1.6 Sarabun,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
h1,
h2,
h3 {
  font-family:
    Prompt,
    Sarabun,
    sans-serif;
  line-height: 1.3;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}
.top {
  background: var(--b9);
  color: #cfd9f5;
  font-size: 14px;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  flex-wrap: wrap;
}
header.s {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--ln);
}
header.s .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      var(--b7),
      var(--b9));
  color: var(--g5);
  box-shadow: inset 0 0 0 2px rgba(245, 184, 0, .55);
  flex: none;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.brand b {
  display: block;
  font: 600 17px Prompt;
  color: var(--hd);
}
.brand span {
  font-size: 13px;
  color: var(--mu);
}
nav {
  display: flex;
  gap: 4px;
}
nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
nav a:hover {
  background: var(--b1);
}
nav a.cta {
  background: var(--g5);
  color: var(--b9);
}
.mb {
  display: none;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.hero {
  color: #fff;
  background:
    radial-gradient(
      900px 420px at 88% -10%,
      rgba(245, 184, 0, .34),
      transparent 60%),
    linear-gradient(
      135deg,
      var(--b9),
      var(--b7));
}
.hero .wrap {
  padding: 64px 0 100px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 36px;
  align-items: center;
}
.eb {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--g1);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  margin: 18px 0 10px;
}
.hero h1 em {
  font-style: normal;
  color: var(--g5);
}
.lead {
  color: #d6e0fb;
  max-width: 34em;
  margin: 0 0 26px;
  font-size: 19px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font: 700 16px Sarabun;
  border: 2px solid transparent;
  cursor: pointer;
}
.bg {
  background: var(--g5);
  color: var(--b9);
}
.bgh {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.bo {
  background: var(--card);
  color: var(--hd);
  border-color: var(--hd);
}
.bd {
  background: #c62828;
  color: #fff;
}
.hp {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  padding: 22px;
}
.hp h3 {
  font-size: 16px;
  color: var(--g1);
  margin-bottom: 12px;
}
.hp ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hp a {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, .1);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.hp a:hover {
  background: rgba(255, 255, 255, .22);
}
section {
  padding: 64px 0;
}
#nPr {
  padding-top: 0;
}
.ctr [hidden] {
  display: none !important;
}
.sh h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--hd);
}
.sh .k {
  font: 700 13px Sarabun;
  letter-spacing: .12em;
  color: var(--g6);
}
.sh p {
  color: var(--mu);
  margin: 6px 0 24px;
}
#docs {
  margin-top: -56px;
  padding-top: 0;
  position: relative;
  z-index: 2;
}
.dc {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shl);
  padding: 32px;
  border: 1px solid var(--ln);
}
.dc .sh p {
  margin-bottom: 18px;
}
.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--ln);
  background: var(--b0);
  transition: .18s;
}
.doc:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
  border-color: var(--b5);
}
.ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--b7);
  color: #fff;
}
.doc:nth-child(even) .ico {
  background: var(--g5);
  color: var(--b9);
}
.doc h3 {
  font-size: 18px;
  color: var(--hd);
}
.doc p {
  margin: 0;
  color: var(--mu);
  font-size: 14.5px;
  flex: 1;
}
.dl {
  font-weight: 700;
  color: var(--b5);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.doc.em {
  opacity: .8;
}
.sys {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(
      150deg,
      var(--b7),
      var(--b9));
  min-height: 210px;
  transition: .18s;
}
.sys:hover {
  transform: translateY(-5px);
  box-shadow: var(--shl);
}
.sys:nth-child(2) {
  background:
    linear-gradient(
      150deg,
      #1d4fc0,
      #0e2a78);
}
.sys:nth-child(3) {
  background:
    linear-gradient(
      150deg,
      #b58200,
      #7a5a00);
}
.sys .ico {
  background: rgba(255, 255, 255, .18);
}
.sys h3 {
  font-size: 21px;
}
.sys p {
  margin: 0;
  color: #dfe7fb;
  flex: 1;
}
.sys .go {
  font-weight: 700;
  color: var(--g5);
}
.soon {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--g5);
  color: var(--b9);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
#systems {
  background:
    linear-gradient(
      180deg,
      transparent,
      var(--b0) 40%);
}
.nh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tab {
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 15px Sarabun;
  cursor: pointer;
}
.tab[aria-selected=true] {
  background: var(--b7);
  color: #fff;
  border-color: var(--hd);
}
.ng {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh);
}
.th {
  height: 140px;
  background:
    linear-gradient(
      135deg,
      var(--b1),
      var(--g1));
  display: grid;
  place-items: center;
  color: var(--hd);
  position: relative;
}
.th img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--g5);
  color: var(--b9);
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  z-index: 1;
}
.nb {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--mu);
}
.chip {
  background: var(--b1);
  color: var(--hd);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.chip.pr {
  background: var(--g1);
  color: #7a5a00;
}
.nb h3 {
  font-size: 17.5px;
}
.nb p {
  margin: 0;
  color: var(--mu);
  font-size: 15px;
}
.more {
  font-weight: 700;
  color: var(--b5);
}
.ctr {
  text-align: center;
  margin-top: 24px;
}
.note {
  grid-column: 1/-1;
  text-align: center;
  color: var(--mu);
  padding: 30px;
}
#contact {
  background: var(--b9);
  color: #fff;
}
#contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
#contact h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
#contact p {
  color: #cfd9f5;
}
.cl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cl li,
.cl a {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cl .ci {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  color: var(--g5);
  flex: none;
}
.cl small {
  display: block;
  color: #b9c8f0;
}
footer {
  background: transparent;
  padding: 8px 0 28px;
  color: #e8eeff;
}
.fc {
  background:
    radial-gradient(
      900px 300px at 100% 100%,
      #0a1233,
      transparent 70%),
    linear-gradient(
      120deg,
      #0b2058,
      #0a1a52 60%,
      #0a1233);
  border: 2px solid #1c2f78;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(11, 32, 88, .28);
  padding: 36px 42px 22px;
}
.fm {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.fb {
  display: flex;
  gap: 22px;
  align-items: center;
}
.fl {
  width: 96px;
  height: 96px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--g5);
}
.fl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fb h3 {
  font-size: 24px;
  color: #fff;
}
.fb p {
  margin: 6px 0 0;
  font: 600 16px Prompt, Sarabun;
  color: #fff;
}
.fb small {
  display: block;
  margin-top: 8px;
  letter-spacing: .06em;
  color: #c3d0f5;
  font-size: 14.5px;
}
.fi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.fi li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}
.fi svg {
  color: var(--g5);
  flex: none;
  margin-top: 4px;
}
.fi a:hover {
  text-decoration: underline;
}
.fmap {
  position: relative;
  display: block;
  height: 178px;
  border-radius: 18px;
  overflow: hidden;
  background: #e9eef4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.fmap svg.mp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fmap .tg {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #fff;
  color: #1a56c4;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.fmap .pn {
  position: absolute;
  left: 46%;
  top: 22%;
  color: #d93025;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
.fmap .bt {
  position: absolute;
  right: 14px;
  bottom: 30px;
  background: #eaa22c;
  color: #0b2058;
  font: 700 17px Prompt, Sarabun;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.ff {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: left;
  font-size: 17px;
}
.ff .ad {
  text-align: center;
  margin-top: 10px;
}
footer button {
  background: none;
  border: 0;
  color: #9fb0e0;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
footer button:hover {
  color: #fff;
}
@media (max-width: 980px) {
  .fm {
    grid-template-columns: 1fr;
  }
  .fc {
    padding: 26px 22px 18px;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--b9);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  border-left: 5px solid var(--g5);
  z-index: 300;
  transition: .25s;
  max-width: calc(100% - 32px);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#ad {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow: auto;
  display: none;
  padding-top: env(safe-area-inset-top, 0px);
}
#ad.on {
  display: block;
}
.ah {
  background: var(--b9);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ah .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.ah h2 {
  font-size: 19px;
}
.at {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.ab {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.ab label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0 4px;
  color: var(--mu);
}
.ab input,
.ab textarea,
.ab select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  font: 16px Sarabun;
  background: var(--bg);
  color: var(--ink);
}
.ab input[type=checkbox] {
  width: auto;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.it {
  border: 1px dashed var(--ln);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--b0);
}
.it .bar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.sm {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 10px;
}
.login {
  max-width: 400px;
  margin: 12vh auto;
  padding: 0 16px;
}
.err {
  color: #c62828;
  font-weight: 600;
  margin: 8px 0;
}
.adm {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 20px;
  align-items: start;
}
.adm > *:not(.at) {
  grid-column: 2;
}
.adm .at {
  grid-column: 1;
  grid-row: 1/12;
  flex-direction: column;
  position: sticky;
  top: 76px;
}
.adm .at .tab {
  text-align: left;
  border-radius: 12px;
  width: 100%;
}
.kg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 16px;
}
.kpi b {
  display: block;
  font: 700 28px Prompt;
  color: var(--hd);
}
.kpi span {
  color: var(--mu);
  font-size: 14px;
}
.bar2 {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.bar2 i {
  display: block;
  height: 14px;
  border-radius: 8px;
  background:
    linear-gradient(
      90deg,
      var(--b5),
      var(--g5));
  min-width: 4px;
}
.ab ul {
  margin: 0;
  padding-left: 20px;
}
.ab li small {
  color: var(--mu);
}
@media (max-width: 820px) {
  .adm {
    display: block;
  }
  .adm .at {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }
  .adm .at .tab {
    width: auto;
    white-space: nowrap;
  }
  .kg {
    grid-template-columns: repeat(2, 1fr);
  }
}
#ad.on {
  display: flex;
  overflow: hidden;
}
#ad .sb {
  width: 250px;
  flex: none;
  background: #0f1a31;
  color: #cfd9ee;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
}
.sbl {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  line-height: 1.3;
}
.sbl .logo {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 10px;
}
.sbl small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #9fb0e0;
}
#ad .sb .at {
  display: flex;
  flex-direction: column;
  margin: 10px 8px;
  gap: 2px;
  position: static;
}
#ad .sb .tab {
  background: transparent;
  border: 0;
  color: #cfd9ee;
  text-align: left;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
}
#ad .sb .tab:hover {
  background: rgba(255, 255, 255, .08);
}
#ad .sb .tab[aria-selected=true] {
  background: var(--b7);
  color: #fff;
}
#ad .am {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#ad .acontent {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 60px;
  background: var(--bg);
}
#ad .ah {
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--ln);
}
#ad .ah .wrap {
  width: 100%;
  margin: 0;
  max-width: none;
  padding: 10px 22px;
}
#ad .ah h2 {
  color: var(--b9);
}
#ad .ah .bgh {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ln);
}
.kpi {
  display: flex;
  gap: 14px;
  align-items: center;
}
.kpi i {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
  color: #fff;
  flex: none;
}
.kg {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
@media (max-width: 820px) {
  #ad.on {
    flex-direction: column;
  }
  #ad .sb {
    width: 100%;
    height: auto;
    flex: none;
  }
  #ad .sb .at {
    flex-direction: row;
    overflow-x: auto;
  }
  #ad .sb .tab {
    width: auto;
    white-space: nowrap;
  }
  .sbl {
    display: none;
  }
}
@media (max-width: 980px) {
  .g4,
  .ng {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero .wrap,
  #contact .wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .mb {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ln);
  }
  nav.open {
    display: flex;
  }
  .g3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .g4,
  .ng,
  .row {
    grid-template-columns: 1fr;
  }
  .dc {
    padding: 20px;
  }
  section {
    padding: 48px 0;
  }
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.fm > *,
.fb > *,
.fi li > * {
  min-width: 0;
}
.fb small,
.fb h3,
.fb p,
.fi li {
  overflow-wrap: break-word;
}
.fb small {
  font-size: clamp(11.5px, 3vw, 14.5px);
}
footer {
  margin-top: 0;
  padding-top: 28px;
}
#contact {
  padding-bottom: 56px;
}
.hero .wrap > div:first-child .btn {
  margin: 0 8px 10px 0;
}
.btn,
.tab,
nav a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: none) {
  .doc:hover,
  .sys:hover {
    transform: none;
  }
}
@media (max-width: 980px) {
  .hero .wrap {
    padding: 48px 0 88px;
  }
  .fb {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .top .wrap {
    font-size: 13px;
  }
  .fb {
    flex-direction: row;
  }
  .fmap {
    height: 190px;
  }
  #ad .acontent {
    padding: 16px 14px 80px;
  }
}
@media (max-width: 600px) {
  .top .wrap {
    padding: 6px 0;
  }
  .top #tb {
    display: block;
    width: 100%;
    text-align: center;
  }
  .hero .wrap {
    padding: 36px 0 80px;
  }
  .hero .btn {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
  .lead {
    font-size: 17px;
  }
  .dc {
    padding: 18px;
    border-radius: 20px;
  }
  .sys {
    min-height: 0;
    padding: 22px;
  }
  .fc {
    padding: 24px 18px 16px;
    border-radius: 22px;
  }
  .fb {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .fl {
    width: 84px;
    height: 84px;
  }
  .fb h3 {
    font-size: 22px;
  }
  .fb small {
    font-size: 13px;
    letter-spacing: .03em;
  }
  .fi li {
    font-size: 16px;
  }
  .fmap .bt {
    font-size: 15px;
    padding: 9px 16px;
    right: 10px;
    bottom: 14px;
  }
  .ff {
    font-size: 15px;
  }
  header.s .wrap {
    padding: 8px 0;
  }
  .brand b {
    font-size: 16px;
  }
  .logo {
    width: 46px;
    height: 46px;
  }
  .sh h2 {
    font-size: 25px;
  }
  .wrap {
    width: min(1140px, 100% - 28px);
  }
}
@media (min-width: 1500px) {
  .wrap {
    width: min(1240px, 100% - 64px);
  }
}
@media (min-width: 821px) and (max-width: 1100px) {
  nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  .fm {
    grid-template-columns: 1fr 1fr;
  }
  .fmap {
    grid-column: 1/-1;
  }
}
@supports (height:100dvh) {
  #ad.on {
    height: 100dvh;
  }
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.logo:has(img) {
  background: transparent;
  box-shadow: none;
}
.logo img {
  background: transparent;
  padding: 1px;
}
header.s .wrap {
  padding: 8px 0;
}
.brand {
  gap: 10px;
}
.fm {
  grid-template-columns: 1.45fr 1.05fr .7fr;
  gap: 28px;
}
.fl {
  width: 76px;
  height: 76px;
}
.fl svg {
  width: 52px;
  height: 52px;
}
.fb {
  gap: 18px;
}
.fb h3 {
  white-space: nowrap;
  font-size: clamp(17px, 1.9vw, 23px);
  word-break: keep-all;
}
.fmap {
  height: 132px;
  border-radius: 16px;
}
.fmap .tg {
  left: 10px;
  top: 10px;
  font-size: 13px;
  padding: 4px 10px;
}
.fmap .pn svg {
  width: 30px;
  height: 30px;
}
.fmap .bt {
  font-size: 14px;
  padding: 7px 14px;
  right: 10px;
  bottom: 12px;
}
@media (min-width: 821px) and (max-width: 1100px) {
  .fm {
    grid-template-columns: 1.4fr 1fr;
  }
  .fmap {
    grid-column: 1/-1;
    height: 120px;
  }
}
@media (max-width: 820px) {
  .fmap {
    height: 130px;
  }
}
@media (max-width: 600px) {
  .fl {
    width: 64px;
    height: 64px;
  }
  .fl svg {
    width: 44px;
    height: 44px;
  }
  .fb h3 {
    font-size: clamp(17px, 5.2vw, 22px);
  }
  .logo {
    width: 42px;
    height: 42px;
  }
  .fmap {
    height: 120px;
  }
}
@media (max-width: 820px) {
  .fm {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fmap {
    grid-column: auto;
  }
}
header.s .wrap {
  padding: 10px 0;
  gap: 16px;
}
.brand {
  gap: 14px;
  min-width: 0;
}
.logo,
.logo:has(img) {
  width: auto;
  height: auto;
  min-width: 56px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: block;
  color: var(--g5);
}
.logo img {
  width: auto;
  height: 60px;
  max-width: 84px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  display: block;
}
.logo svg {
  width: 44px;
  height: 44px;
  margin: 8px;
}
.bn {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.bn b {
  font:
    700 20px Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
}
.bn strong {
  font:
    600 17px Prompt,
    Sarabun,
    sans-serif;
  color: var(--ink);
}
.bn span {
  font-size: 13.5px;
  color: var(--mu);
  letter-spacing: .02em;
  margin-top: 1px;
}
.ha {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: none;
}
.tg2 {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.tg2:hover {
  background: var(--b1);
}
.ba {
  background: var(--b7);
  color: #fff;
  border-color: var(--b7);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 16px;
  white-space: nowrap;
}
.ba:hover {
  filter: brightness(1.12);
}
:root[data-theme=dark] .ba {
  background: #2a5bd7;
  border-color: #2a5bd7;
}
.sn {
  background: var(--card);
  border-bottom: 1px solid var(--ln);
}
.sn nav {
  display: flex !important;
  position: static;
  flex-direction: row;
  padding: 4px 0;
  border: 0;
  background: none;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.sn nav::-webkit-scrollbar {
  display: none;
}
.sn nav a {
  white-space: nowrap;
  font-size: 14.5px;
  padding: 7px 14px;
  color: var(--mu);
}
.sn nav a:hover {
  color: var(--hd);
}
@media (max-width: 700px) {
  .bn span {
    display: none;
  }
  .bn b {
    font-size: 17px;
  }
  .bn strong {
    font-size: 14.5px;
  }
  .logo img {
    height: 46px;
    max-width: 60px;
  }
  .logo,
  .logo:has(img) {
    min-width: 46px;
  }
  .logo svg {
    width: 34px;
    height: 34px;
    margin: 6px;
  }
  .ba span {
    display: none;
  }
  .ba {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .sn nav {
    justify-content: flex-start;
  }
}
:root[data-theme=dark] .doc:nth-child(even) .ico {
  color: #0b2058;
}
:root[data-theme=dark] .chip.pr {
  color: #ffd966;
}
:root[data-theme=dark] .tab[aria-selected=true] {
  background: #2a5bd7;
  border-color: #2a5bd7;
}
:root[data-theme=dark] .bo {
  color: #cfe0ff;
  border-color: #4a6fd0;
}
:root[data-theme=dark] .th {
  background:
    linear-gradient(
      135deg,
      #1b2858,
      #2b2a14);
}
.eb,
.hp h3 {
  color: #fff4cc !important;
}
.pin,
.soon {
  color: #0b2058;
}
.fm {
  grid-template-columns: 1.1fr 1.3fr .8fr;
  gap: 36px;
  align-items: center;
}
.fb {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.fl {
  width: 72px;
  height: 72px;
}
.fl img {
  object-position: left center;
}
.fb p {
  margin: 0;
  font:
    700 15px Prompt,
    Sarabun,
    sans-serif;
  color: var(--g5);
  letter-spacing: .02em;
}
.fb h3 {
  margin: 0;
  white-space: nowrap;
}
.fb small {
  margin-top: 4px;
}
.fi li {
  align-items: flex-start;
}
.fi li small {
  display: block;
  font-size: 13px;
  color: #a9bbea;
  margin-bottom: 1px;
}
.fi li div {
  font-size: 16.5px;
}
@media (min-width: 821px) and (max-width: 1100px) {
  .fm {
    grid-template-columns: 1fr 1fr;
  }
  .fmap {
    grid-column: 1/-1;
  }
}
@media (max-width: 820px) {
  .fm {
    grid-template-columns: 1fr;
  }
}
.fl {
  place-items: center start !important;
}
.fm {
  grid-template-columns: 1.45fr 1.15fr .75fr;
}
.fb,
.fb {
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px;
}
.fl {
  width: 80px;
  height: 80px;
  place-items: center !important;
}
.fl svg {
  width: 56px;
  height: 56px;
}
.fb h3 {
  font-size: clamp(17px, 1.7vw, 22px);
}
@media (min-width: 821px) and (max-width: 1100px) {
  .fm {
    grid-template-columns: 1fr 1fr;
  }
  .fmap {
    grid-column: 1/-1;
  }
}
@media (max-width: 820px) {
  .fm {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .fb {
    gap: 14px;
  }
  .fl {
    width: 58px;
    height: 58px;
  }
  .fl svg {
    width: 42px;
    height: 42px;
  }
  .fb h3 {
    font-size: clamp(16px, 4.9vw, 20px);
  }
  .fb small {
    font-size: 12px;
  }
}
.stk {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
}
header.s {
  position: static;
}
html {
  scroll-padding-top: calc(150px + env(safe-area-inset-top, 0px));
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: calc(118px + env(safe-area-inset-top, 0px));
  }
}
.fi li div {
  font-size: 14.5px;
}
.fi li small {
  font-size: 12px;
}
.fi {
  gap: 12px;
}
.fi li {
  gap: 12px;
}
.fi svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.ff,
.ff #ft {
  font-size: 13.5px !important;
}
.ff {
  padding-top: 14px;
  margin-top: 20px;
}
.ff .ad button {
  font-size: 13px;
}
.gw {
  position: relative;
}
.gx {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.gx::-webkit-scrollbar {
  display: none;
}
.gcard {
  flex: 0 0 calc((100% - 56px)/5);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
a.gcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shl);
}
.gi {
  position: relative;
  aspect-ratio: 4/3;
  background:
    linear-gradient(
      135deg,
      var(--b1),
      var(--g1));
  display: grid;
  place-items: center;
  color: var(--hd);
}
.gi img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gt {
  padding: 12px 10px 14px;
  text-align: center;
  font:
    600 15.5px/1.4 Prompt,
    Sarabun,
    sans-serif;
  color: var(--ink);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
}
.gar {
  position: absolute;
  top: calc(50% - 40px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(120, 128, 140, .82);
  color: #fff;
  font: 400 30px/1 Arial, sans-serif;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding: 0 0 4px;
  backdrop-filter: blur(2px);
  transition: background .15s;
}
.gar:hover {
  background: var(--b7);
}
.gar.gl {
  left: -14px;
}
.gar.gr {
  right: -14px;
}
@media (max-width: 1100px) {
  .gcard {
    flex-basis: calc((100% - 28px)/3);
  }
}
@media (max-width: 600px) {
  .gcard {
    flex-basis: calc((100% - 14px)/2);
  }
  .gt {
    font-size: 14px;
    min-height: 62px;
  }
  .gar {
    width: 38px;
    height: 38px;
    font-size: 26px;
    top: calc(50% - 36px);
  }
  .gar.gl {
    left: -6px;
  }
  .gar.gr {
    right: -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gx {
    scroll-behavior: auto;
  }
}
.gt {
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
}
.gt small {
  font: 500 13px Sarabun, sans-serif;
  color: var(--mu);
}
@media (max-width: 600px) {
  .gt {
    min-height: 78px;
  }
  .gt small {
    font-size: 12px;
  }
}
.icp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: var(--bg);
}
.icp button {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icp button:hover {
  border-color: var(--b5);
}
.icp button.on {
  background: var(--b7);
  color: #fff;
  border-color: var(--b7);
}
#calendar {
  padding-bottom: 24px;
}
.cal2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: stretch;
}
.cup,
.cmo {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 20px;
  box-shadow: var(--sh);
  padding: 18px;
}
.cup h3 {
  font-size: 17px;
  color: var(--hd);
  margin-bottom: 10px;
}
.cul {
  display: grid;
  gap: 8px;
}
.cev {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  background: var(--b0);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  min-height: 64px;
}
.cev:hover {
  border-color: var(--b5);
  background: var(--b1);
}
.cdb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--b7);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.cdb b {
  font:
    700 20px Prompt,
    Sarabun,
    sans-serif;
}
.cdb small {
  font-size: 12px;
  color: var(--g5);
  font-weight: 700;
}
.cev:nth-child(even) .cdb {
  background: var(--g5);
  color: #0b2058;
}
.cev:nth-child(even) .cdb small {
  color: #0b2058;
}
.cet {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cet b {
  font:
    600 16px/1.35 Prompt,
    Sarabun,
    sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cet small {
  font-size: 13.5px;
  color: var(--mu);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmo {
  display: flex;
  flex-direction: column;
}
.cmh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cmh b {
  font:
    700 17px Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
}
.cmh button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  font: 400 22px/1 Arial;
  cursor: pointer;
  padding: 0 0 3px;
}
.cmh button:hover {
  background: var(--b1);
}
.cwd,
.cgd {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cwd span {
  font-size: 13px;
  font-weight: 700;
  color: var(--mu);
  padding: 4px 0;
}
.cwd span:first-child,
.cd:nth-child(7n+1) {
  color: #d64545;
}
.cgd {
  flex: 1;
  grid-template-rows: repeat(var(--r,5), minmax(40px, 1fr));
  gap: 3px;
}
.cd {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
}
.cd.o {
  visibility: hidden;
}
.cd.td {
  border: 2px solid var(--b5);
  font-weight: 700;
}
.cd.ev {
  background: var(--g5);
  color: #0b2058;
  font-weight: 700;
}
.cd.ev i {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0b2058;
}
@media (max-width: 820px) {
  .cal2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .cup,
  .cmo {
    padding: 14px;
  }
  .cdb {
    width: 46px;
    height: 46px;
  }
}
.cal2 > *,
.cul,
.cev {
  min-width: 0;
}
.cal2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}
@media (max-width: 820px) {
  .cal2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .cet b {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.cd.ev {
  background: var(--g5);
}
.cd.ev em {
  position: absolute;
  bottom: 3px;
  display: flex;
  gap: 3px;
}
.cd.ev i {
  position: static !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50%;
  display: block;
}
.cev:nth-child(even) .cdb {
  background: inherit;
}
.icp.cp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: none;
}
.icp.cp button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
}
.icp.cp button.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--card) inset;
}
.icp.cp button:hover {
  transform: scale(1.08);
}
.sw {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  vertical-align: middle;
}
.cprow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cpk {
  width: 64px !important;
  height: 44px;
  padding: 3px !important;
  border-radius: 10px;
  cursor: pointer;
  background: var(--card) !important;
}
.chex {
  font:
    600 15px ui-monospace,
    Menlo,
    monospace;
  color: var(--mu);
}
.chint {
  font-size: 13px;
  color: var(--mu);
}
.cet .cdt {
  color: var(--ink);
  opacity: .85;
  font-size: 14px;
}
@media (max-width: 600px) {
  .cet .cdt {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.abt {
  margin-top: 34px;
}
.abt:first-of-type {
  margin-top: 6px;
}
.abt[hidden] {
  display: none;
}
.sb3 {
  font-size: 21px;
  color: var(--hd);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 5px solid var(--g5);
}
.rg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rl {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--sh);
  transition: .18s;
}
.rl:hover {
  transform: translateY(-3px);
  border-color: var(--b5);
  box-shadow: var(--shl);
}
.rl .ico {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
}
.rl:nth-child(even) .ico {
  background: var(--g5);
  color: #0b2058;
}
.rb {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rb b {
  font:
    600 16.5px/1.35 Prompt,
    Sarabun,
    sans-serif;
}
.rb small {
  color: var(--mu);
  font-size: 14px;
}
.ra {
  flex: none;
  font-weight: 700;
  color: var(--b5);
  font-size: 14px;
  white-space: nowrap;
}
.rl.em {
  opacity: .8;
}
.stg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.scd {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 18px;
  box-shadow: var(--sh);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sph {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--b1),
      var(--g1));
  display: grid;
  place-items: center;
  color: var(--hd);
  border: 3px solid var(--g5);
  margin-bottom: 8px;
}
.sph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scd b {
  font:
    600 16.5px/1.35 Prompt,
    Sarabun,
    sans-serif;
}
.scd span {
  color: var(--mu);
  font-size: 14.5px;
}
.scd a {
  margin-top: 4px;
  font-size: 14px;
  color: var(--b5);
  font-weight: 600;
}
.shw {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 12px;
  font-weight: 600;
}
.shw input {
  width: 20px;
  height: 20px;
}
.shw small {
  color: var(--mu);
  font-weight: 400;
}
@media (max-width: 1000px) {
  .stg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .rg {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .stg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .sph {
    width: 84px;
    height: 84px;
  }
  .sb3 {
    font-size: 19px;
  }
  .ra {
    display: none;
  }
}
.sn nav a.dd::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .15s;
}
.sn nav a.dd[aria-expanded=true] {
  color: var(--hd);
  background: var(--b1);
}
.sn nav a.dd[aria-expanded=true]::after {
  transform: translateY(0) rotate(225deg);
}
#ddm {
  position: fixed;
  z-index: 80;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 14px;
  box-shadow: var(--shl);
  padding: 6px;
  animation: ddin .14s ease-out;
}
#ddm a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
#ddm a:hover,
#ddm a:focus-visible {
  background: var(--b1);
  color: var(--hd);
}
@keyframes ddin {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rsp {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 18px;
  align-items: start;
}
.rlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(10 * 72px - 8px);
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}
.rli {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  min-height: 64px;
  background: var(--card);
  border: 1px solid var(--ln);
  border-left: 5px solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  transition: .15s;
}
.rli:hover {
  border-color: var(--b5);
  background: var(--b0);
}
.rli.on {
  border-left-color: var(--g5);
  border-color: var(--b5);
  background: var(--b1);
  box-shadow: var(--sh);
}
.rli .ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
}
.rli:nth-child(even) .ico {
  background: var(--g5);
  color: #0b2058;
}
.rli .rb b {
  font:
    600 15.5px/1.35 Prompt,
    Sarabun,
    sans-serif;
}
.rli .rb small {
  font-size: 13px;
  color: var(--mu);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rst {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mu);
  background: var(--b0);
  border: 1px solid var(--ln);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.rst.ok {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}
:root[data-theme=dark] .rst.ok {
  color: #86efac;
  background: #14391f;
  border-color: #1f5c33;
}
.rprev {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 18px;
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(10 * 72px - 8px);
  min-height: 440px;
}
.rph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ln);
  background: var(--b0);
}
.rph b {
  font:
    600 16px/1.3 Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
  min-width: 0;
}
.rph .btn {
  flex: none;
}
.rfr {
  flex: 1;
  min-height: 0;
  background: #fff;
  display: grid;
}
.rfr iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rfr img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}
.rnote {
  font-size: 12.5px;
  color: var(--mu);
  padding: 6px 14px;
  border-top: 1px solid var(--ln);
  text-align: center;
}
.rempty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mu);
  text-align: center;
  padding: 30px;
}
@media (max-width: 820px) {
  .rsp {
    grid-template-columns: minmax(0, 1fr);
  }
  .rprev {
    height: 70vh;
    min-height: 420px;
  }
  .rlist {
    max-height: calc(10 * 72px - 8px);
  }
}
@media (max-width: 480px) {
  .rst {
    display: none;
  }
}
.rprev[hidden] {
  display: none;
}
#sg {
  gap: 18px;
}
#sg .sys {
  min-height: 0;
  padding: 20px 20px 18px;
  gap: 8px;
  border-radius: 20px;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
  box-shadow: 0 8px 22px rgba(11, 32, 88, .18);
}
#sg .sys:hover {
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 32, 88, .32);
}
#sg .sys::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -46px;
  top: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, .22),
      rgba(255, 255, 255, 0) 70%);
  transition: transform .5s ease;
}
#sg .sys:hover::before {
  transform: scale(1.5) translate(-8px, 8px);
}
#sg .sys .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 2px;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .2s;
  background: rgba(255, 255, 255, .2);
}
#sg .sys:hover .ico {
  transform: rotate(-8deg) scale(1.12);
  background: rgba(255, 255, 255, .3);
}
#sg .sys h3 {
  font-size: 18px;
  line-height: 1.3;
}
#sg .sys p {
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
#sg .sys .go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(245, 184, 0, .16);
  border: 1px solid rgba(245, 184, 0, .55);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background .2s,
    color .2s,
    gap .2s;
}
#sg .sys:hover .go {
  background: var(--g5);
  color: #0b2058;
  gap: 10px;
}
#sg .sys .soon {
  right: 14px;
  top: 14px;
  font-size: 12px;
  padding: 2px 9px;
  animation: pls 2.4s ease-in-out infinite;
}
@keyframes pls {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 184, 0, .55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(245, 184, 0, 0);
  }
}
#sg .sys.rv {
  opacity: 0;
  transform: translateY(26px) scale(.97);
  transition:
    opacity .55s ease var(--d,0ms),
    transform .55s cubic-bezier(.2, .8, .2, 1) var(--d,0ms),
    box-shadow .25s;
}
#sg .sys.rv.in {
  opacity: 1;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    opacity .3s;
}
#sg .sys.rv.in:hover {
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px);
}
@media (max-width: 820px) {
  #sg {
    gap: 14px;
  }
  #sg .sys {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sg .sys,
  #sg .sys * {
    animation: none !important;
    transition: none !important;
  }
  #sg .sys.rv {
    opacity: 1;
    transform: none;
  }
}
@keyframes shine {
  0% {
    transform: translateX(-140%) skewX(-20deg);
  }
  100% {
    transform: translateX(320%) skewX(-20deg);
  }
}
@keyframes nudge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}
#sg .sys {
  overflow: hidden;
}
#sg .sys::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, .38),
      rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateX(-140%) skewX(-20deg);
}
#sg .sys:hover::after {
  opacity: 1;
  animation: shine 1.5s ease-in-out infinite;
}
#sg .sys > *:not(.soon) {
  position: relative;
  z-index: 1;
}
#sg .sys > .soon {
  z-index: 2;
}
#sg .sys .go .ar {
  font-style: normal;
  display: inline-block;
}
#sg .sys:hover .go .ar {
  animation: nudge .9s ease-in-out infinite;
}
.btn.bg,
.ba {
  position: relative;
  overflow: hidden;
}
.btn.bg::after,
.ba::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, .4),
      rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateX(-140%) skewX(-20deg);
}
.btn.bg:hover::after,
.ba:hover::after {
  opacity: 1;
  animation: shine 1.3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  #sg .sys::after,
  .btn.bg::after,
  .ba::after {
    display: none;
  }
}
.al {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.anr {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  background: var(--card);
  border: 1.5px solid var(--ln);
  border-radius: 20px;
  padding: 16px 18px 16px 22px;
  box-shadow: var(--sh);
  transition:
    border-color .2s,
    box-shadow .2s,
    transform .2s;
}
.abar {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(var(--g5), var(--b5));
}
.anr:hover {
  border-color: var(--g5);
  box-shadow: 0 14px 36px rgba(217, 159, 0, .22);
  transform: translateY(-2px);
}
.anr:hover .att {
  color: var(--g6);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--g5);
}
:root[data-theme=dark] .anr:hover .att {
  color: var(--g5);
}
.at2 {
  position: relative;
  width: 128px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(
      150deg,
      var(--g1),
      var(--b1));
  border: 1.5px solid var(--ln);
  align-self: center;
}
.at2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp {
  position: absolute;
  inset: 14px 22px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(11, 32, 88, .18);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pp i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #c9d3ea;
}
.pp i:first-child {
  width: 40%;
  height: 7px;
  margin: 0 auto 4px;
  background: #9fb1d9;
}
.pp i:nth-child(4) {
  width: 70%;
}
.fx {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font:
    800 12px Prompt,
    Sarabun,
    sans-serif;
  padding: 3px 9px;
  border-radius: 6px;
  background: #c62828;
  letter-spacing: .04em;
}
.fxDOC {
  background: #2563eb;
}
.fxXLS {
  background: #15803d;
}
.fxPPT {
  background: #c2410c;
}
.fxIMG {
  background: #7c3aed;
}
.ab2 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.ach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tg,
.tn,
.tp {
  display: inline-flex;
  align-items: center;
  font: 700 13.5px Sarabun;
  padding: 4px 12px;
  border-radius: 999px;
}
.tg {
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.tn {
  background: #16a34a;
  color: #fff;
}
.tp {
  background: var(--b1);
  color: var(--hd);
}
.att {
  margin: 0;
  font:
    700 22px/1.35 Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
  transition: color .2s;
  overflow-wrap: anywhere;
}
.ad2 {
  margin: 0;
  color: var(--mu);
  font-size: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ast {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--mu);
  font-size: 15px;
}
.ast span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ast b {
  color: var(--ink);
}
.ast svg {
  color: var(--g6);
}
.aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}
.adt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 14px Sarabun;
  color: var(--g6);
  border: 1px solid var(--g5);
  background: color-mix(in srgb, var(--g5) 10%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.acts2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ab3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--b1);
  background: var(--card);
  color: var(--hd);
  font: 700 15px Sarabun;
  cursor: pointer;
  text-decoration: none;
  transition:
    background .15s,
    border-color .15s,
    transform .15s;
}
.ab3:hover:not(:disabled) {
  background: var(--b1);
  border-color: var(--b5);
}
.ab3:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.ab3.pri {
  background: var(--b5);
  color: #fff;
  border-color: var(--b5);
}
.ab3.pri:hover:not(:disabled) {
  background: var(--b7);
  border-color: var(--b7);
}
.ab3.ic {
  padding: 9px 11px;
}
@media (max-width: 980px) {
  .anr {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .at2 {
    width: 104px;
    height: 124px;
  }
  .aside {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .att {
    font-size: 19px;
  }
}
@media (max-width: 560px) {
  .anr {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .at2 {
    width: 100%;
    height: 150px;
  }
  .acts2 {
    justify-content: flex-start;
  }
  .aside {
    flex-direction: column;
    align-items: flex-start;
  }
}
.pm {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 16, 40, .6);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
}
.pmb {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shl);
}
.pmb.wide {
  width: min(1000px, 100%);
}
.pmx {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
}
.pmb h3 {
  margin: 10px 40px 10px 0;
  font:
    700 22px/1.35 Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
}
.pmb h3 small {
  font: 500 14px Sarabun;
  color: var(--mu);
}
.pmh {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-right: 44px;
}
.pmt {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink);
}
.pmf {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fr {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 10px 12px;
}
.fr .fx {
  position: static;
}
.fn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.fn small {
  font-weight: 400;
  color: var(--mu);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pvf {
  width: 100%;
  height: 68vh;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: #fff;
}
.pvi {
  max-width: 100%;
  border-radius: 12px;
}
.pvb {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .fr {
    flex-wrap: wrap;
  }
  .fr .fn {
    flex-basis: calc(100% - 60px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .anr,
  .anr:hover {
    transition: none;
    transform: none;
  }
}
.doc h3,
.news h3,
.gt span,
.rli b,
.cet b,
.pc .pt b {
  transition: color .2s, text-decoration-color .2s;
}
.doc:hover h3,
.news:hover h3,
.gcard:hover .gt span,
.rli:hover b,
.cev:hover .cet b {
  color: var(--g6);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--g5);
}
:root[data-theme=dark] .doc:hover h3,
:root[data-theme=dark] .news:hover h3,
:root[data-theme=dark] .gcard:hover .gt span,
:root[data-theme=dark] .rli:hover b,
:root[data-theme=dark] .cev:hover .cet b {
  color: var(--g5);
}
.sys:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-color: var(--g5);
}
.pc:hover .pt b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--g5);
}
.rpa {
  display: flex;
  gap: 8px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rdl {
  background: var(--b5);
  color: #fff;
  border-color: var(--b5);
}
.rdl:hover {
  background: var(--b7);
}
.rlk {
  background: none;
  border: 0;
  padding: 0;
  font: 700 inherit Sarabun;
  color: var(--b5);
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 560px) {
  .rph {
    flex-wrap: wrap;
  }
  .rpa {
    width: 100%;
    justify-content: flex-start;
  }
}
.fbk {
  margin: auto;
  text-align: center;
  padding: 30px 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.fbk .fbi {
  font-size: 44px;
}
.fbk p {
  margin: 0;
  color: var(--mu);
}
.fba {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.fbw {
  background: var(--b0);
  border: 1px solid var(--ln);
  border-radius: 12px;
  min-height: 240px;
  display: grid;
}
.upr {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ups {
  color: var(--mu);
  font-size: 13.5px;
}
.dbh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dbh h2 {
  font-size: 24px;
  color: var(--hd);
  margin: 0;
}
.dbh p {
  margin: 2px 0 0;
  color: var(--mu);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px Sarabun;
  color: var(--mu);
  background: var(--card);
  border: 1px solid var(--ln);
  padding: 5px 12px;
  border-radius: 999px;
}
.live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  animation: lv 1.8s infinite;
}
.live.off i {
  background: #94a3b8;
  animation: none;
}
@keyframes lv {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .55);
  }
  70%, 100% {
    box-shadow: 0 0 0 9px rgba(22, 163, 74, 0);
  }
}
.kg2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.k2 {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--sh);
  transition:
    transform .2s,
    box-shadow .2s,
    border-color .2s;
}
.k2[data-gt] {
  cursor: pointer;
}
.k2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shl);
  border-color: var(--g5);
}
.k2 .ki {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}
.k2 b {
  display: block;
  font:
    700 30px/1.1 Prompt,
    Sarabun,
    sans-serif;
  color: var(--ink);
}
.k2 span {
  color: var(--mu);
  font-size: 14.5px;
}
.cg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.cg2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 1180px) {
  .cg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .cg,
  .cg2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cc {
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--sh);
}
.cc h3 {
  margin: 0 0 12px;
  font:
    600 17px Prompt,
    Sarabun,
    sans-serif;
  color: var(--hd);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cc > svg {
  width: 100%;
  height: auto;
  display: block;
}
.cn {
  display: block;
  color: var(--mu);
  margin-top: 6px;
  font-size: 12.5px;
}
.gl {
  stroke: var(--ln);
  stroke-width: 1;
}
.gt {
  fill: var(--mu);
  font: 13px Sarabun, sans-serif;
}
.ln0 {
  fill: none;
  stroke: var(--b5);
  stroke-width: 3;
  stroke-linecap: round;
}
.ar0 {
  fill: var(--b5);
  opacity: .13;
}
.pt0 {
  fill: var(--card);
  stroke: var(--b5);
  stroke-width: 2.5;
}
.lg {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  color: var(--mu);
  font-size: 13.5px;
}
.lg i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -1px;
}
.hbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.hb {
  display: grid;
  grid-template-columns: 104px 1fr 32px;
  gap: 10px;
  align-items: center;
  font-size: 14.5px;
}
.hb > div {
  height: 14px;
  background: var(--b1);
  border-radius: 8px;
  overflow: hidden;
}
.hb i {
  display: block;
  height: 100%;
  border-radius: 8px;
  transition: width .6s;
}
.hb b {
  text-align: right;
}
.dlu {
  margin: 0;
  padding-left: 20px;
  display: block;
}
.dlu li {
  margin: 6px 0;
}
.dlu small {
  color: var(--mu);
}
.cpd {
  margin-bottom: 18px;
  border-color: color-mix(in srgb, var(--g5) 55%, var(--ln));
}
.cph {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cph h3 {
  margin: 0;
}
.cpkp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.cpkp .k2 {
  box-shadow: none;
  padding: 12px 14px;
}
.cpkp .k2 b {
  font-size: 26px;
}
.cpkp .ki {
  width: 46px;
  height: 46px;
}
.cpbar {
  display: flex;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--b1);
  margin: 14px 0;
}
.cpbar i {
  display: block;
  transition: width .6s;
}
.cpl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpl li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  animation: cpin .4s;
}
.cpl li.em {
  display: block;
  color: var(--mu);
  text-align: center;
}
.cpl b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cpl small {
  color: var(--mu);
}
@keyframes cpin {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.cps {
  font: 700 12.5px Sarabun;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.cps2 {
  width: auto !important;
  color: var(--c);
  font-weight: 700;
  border-color: var(--c) !important;
}
.cpt {
  align-items: center;
}
.cpfm {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--sh);
}
.cpfm label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}
.cpfm input,
.cpfm textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ln);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.cpfm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.cfa {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
@media (max-width: 560px) {
  .cpfm .row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .kg2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .k2 {
    padding: 12px;
    gap: 10px;
  }
  .k2 .ki {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .k2 .ki svg {
    width: 22px;
    height: 22px;
  }
  .k2 b {
    font-size: 24px;
  }
  .k2 span {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live i,
  .cpl li {
    animation: none;
  }
}
.stg {
  display: block;
}
.org {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.orow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.pc {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--ln);
  border-radius: 16px;
  box-shadow: var(--sh);
  padding: 12px 18px 12px 12px;
  min-width: 0;
  transition:
    transform .2s,
    box-shadow .2s,
    border-color .2s;
}
.pc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shl);
  border-color: var(--b5);
}
.orow > .pc {
  min-width: min(340px, 100%);
}
.pph {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--b1),
      var(--g1));
  display: grid;
  place-items: center;
  color: var(--hd);
  border: 3px solid var(--g5);
}
.pph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt b {
  font:
    600 16.5px/1.35 Prompt,
    Sarabun,
    sans-serif;
  overflow-wrap: break-word;
}
.pt span {
  font-size: 14px;
  color: var(--mu);
  line-height: 1.4;
}
.oln {
  height: 22px;
}
.obr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  width: 100%;
  position: relative;
  justify-items: center;
}
.obr.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
}
.ocol {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.ohd {
  display: block;
  text-align: center;
  font:
    600 16px Prompt,
    Sarabun,
    sans-serif;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--b7),
      var(--b9));
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--sh);
}
:root[data-theme=dark] .ohd {
  background:
    linear-gradient(
      135deg,
      #2a5bd7,
      #14388f);
}
.orail {
  margin: 0;
  padding: 2px 0;
}
.orail > .pc {
  position: relative;
  margin-top: 14px;
}
.orow.oth {
  margin-top: 26px;
}
.orail > .pc {
  padding: 9px 14px 9px 10px;
  gap: 12px;
  border-radius: 14px;
}
.orail > .pc .pph {
  width: 64px;
  height: 64px;
  border-width: 2.5px;
}
.orail > .pc .pt b {
  font-size: 15px;
}
.orail > .pc .pt span {
  font-size: 13px;
}
.ohd {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  padding: 10px 26px;
}
.orail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.orail > .pc {
  width: 100%;
  max-width: 310px;
}
@media (max-width: 820px) {
  .obr.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .ocol {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .pph {
    width: 62px;
    height: 62px;
  }
  .pc {
    padding: 10px 12px 10px 10px;
    gap: 10px;
  }
  .pt b {
    font-size: 15px;
  }
  .orail > .pc .pph {
    width: 54px;
    height: 54px;
  }
  .orail > .pc .pt b {
    font-size: 14px;
  }
}
.hlp {
  color: var(--mu);
  font-size: 14.5px;
  margin: 0 0 12px;
}
.pmb.help form label.hl {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 5px;
  color: var(--hd);
}
.hl em {
  color: #dc2626;
  font-style: normal;
}
.pmb.help input:not([type=radio]),
.pmb.help select,
.pmb.help textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.hcs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hch input {
  position: absolute;
  opacity: 0;
}
.hch span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--ln);
  border-radius: 99px;
  cursor: pointer;
  font-size: 14px;
}
.hch input:checked + span {
  background: var(--b6,#1d4ed8);
  border-color: transparent;
  color: #fff;
}
.hch input:focus-visible + span {
  outline: 2px solid #facc15;
}
.hem {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 14px;
}
.hct {
  margin-top: 12px;
}
.hct summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.hrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hfa {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.hok {
  text-align: center;
  padding: 10px 0;
}
.hok > div {
  font-size: 46px;
}
.hok h3 {
  margin: 6px 0;
}
.hok p {
  color: var(--mu);
}
@media (max-width: 560px) {
  .hrow {
    grid-template-columns: 1fr;
  }
}
#ad .sb .tab.sbo {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-radius: 0 0 10px 10px;
  padding-top: 14px;
  color: #fecaca;
}
#ad .sb .tab.sbo:hover {
  background: rgba(239, 68, 68, .18);
}
.login {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.lgc {
  width: 100%;
  padding: 28px 28px 22px;
  border-radius: 22px;
  box-shadow: var(--shl);
  margin: 0;
}
.lgh {
  text-align: center;
  margin-bottom: 18px;
}
.lgi {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background:
    linear-gradient(
      135deg,
      var(--b6,#1d4ed8),
      var(--b7,#1e3a8a));
}
.lgh h2 {
  margin: 0;
  font-size: 22px;
  color: var(--hd);
}
.lgh p {
  margin: 4px 0 0;
  color: var(--mu);
  font-size: 14px;
}
.fld {
  margin-bottom: 14px;
}
.fld label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 5px;
  color: var(--hd);
}
.fld small {
  display: block;
  margin-top: 4px;
  color: var(--mu);
  font-size: 12.5px;
}
.lgc input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 16px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.lgc input:focus {
  outline: 2px solid #2a5bd7;
  outline-offset: 1px;
}
.pwr {
  position: relative;
}
.pwr input {
  padding-right: 46px;
}
.eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 10px;
  opacity: .55;
}
.lgc .err {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  margin: 0 0 12px;
}
.lgb,
.lgs {
  justify-content: center;
}
.lgs {
  background: transparent;
  color: var(--hd);
  border-color: var(--ln);
}
.lgb {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 2px;
}
.lgs {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
}
.sn {
  background:
    linear-gradient(
      120deg,
      #0b2058,
      #0a1a52 60%,
      #0a1233);
  border-bottom: 1px solid #1c2f78;
  box-shadow: 0 4px 14px rgba(11, 32, 88, .25);
}
.sn nav a {
  color: #dbe5ff;
  border-radius: 10px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.sn nav a:hover,
.sn nav a:focus-visible {
  color: #ffd54a;
  background: rgba(255, 255, 255, .09);
}
.sn nav a.dd[aria-expanded=true],
.sn nav a.on,
.sn nav a[aria-current] {
  color: #ffd54a;
  background: rgba(255, 255, 255, .14);
}
#ddm {
  background: #0e1c52;
  border: 1px solid #2a3f8f;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
#ddm a {
  color: #e8eeff;
}
#ddm a:hover,
#ddm a:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: #ffd54a;
}
:root[data-theme=dark] .sn {
  border-bottom-color: #22358a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
:root[data-theme=dark] #ddm {
  background: #0a1233;
  border-color: #22358a;
}
.btt {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #0b2058;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 32, 88, .35);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity .2s,
    transform .2s,
    visibility .2s,
    background .15s;
}
.btt.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.btt:hover {
  background: #14388f;
}
.btt:focus-visible {
  outline: 3px solid #f5b800;
  outline-offset: 2px;
}
.btt svg {
  width: 26px;
  height: 26px;
}
:root[data-theme=dark] .btt {
  background: #2a5bd7;
}
@media (max-width: 700px) {
  .btt {
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btt {
    transition: none;
  }
}
.tw {
  overflow: auto;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: var(--card);
}
table.tb {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.tb th {
  background: var(--b0);
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
}
table.tb td {
  padding: 9px 12px;
  border-top: 1px solid var(--ln);
}
.clip {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tth {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.act {
  text-align: right;
  white-space: nowrap;
}
.sechead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sechead h2 {
  font-size: 22px;
  color: var(--b9);
}
.acontent > input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  font: 16px Sarabun;
  background: var(--card);
  color: var(--ink);
}
.pgr {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--mu);
}
.who {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.md-o {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, .6);
  z-index: 250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 12px;
  overflow: auto;
}
.md {
  background: var(--card);
  border-radius: 14px;
  width: min(720px, 100%);
}
.mb2 {
  padding: 20px;
}
.mb2 h3 {
  margin-bottom: 6px;
}
.mb2 label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 10px 0 4px;
  color: var(--mu);
}
.mb2 input,
.mb2 textarea,
.mb2 select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ln);
  border-radius: 10px;
  font: 16px Sarabun;
  background: var(--bg);
  color: var(--ink);
}
.mb2 input[type=checkbox] {
  width: auto;
}
.mf2 {
  padding: 12px 20px;
  border-top: 1px solid var(--ln);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.imgb {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.imgb img {
  width: 110px;
  height: 80px;
  object-fit: contain;
  border: 1px dashed var(--ln);
  border-radius: 10px;
  background: var(--b0);
}
.gs {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 10px;
}
.gs > .news {
  flex: 0 0 calc((100% - 40px)/3);
  scroll-snap-align: start;
}
@media (max-width: 820px) {
  .gs > .news {
    flex-basis: 82%;
  }
}
.gcnt {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 32, 88, .85);
  color: #fff;
  font: 700 13px Sarabun, sans-serif;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 1;
}
.alb {
  position: relative;
  background: #0b1020;
  border-radius: 14px;
  display: grid;
  place-items: center;
  height: min(62vh, 640px);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.abi {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.abn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .88);
  color: #0b2058;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
  padding: 0 0 4px;
  z-index: 1;
}
.abn:hover {
  background: #f5b800;
}
.ap {
  left: 10px;
}
.an {
  right: 10px;
}
.abc {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 13px Sarabun, sans-serif;
  padding: 3px 12px;
  border-radius: 999px;
}
.albt {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 4px;
}
.albt button {
  flex: none;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--b1);
  opacity: .65;
}
.albt button.on {
  border-color: var(--g5);
  opacity: 1;
}
.albt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gth {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border: 1px dashed var(--ln);
  border-radius: 12px;
  background: var(--b0);
}
.gtb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--b1);
}
.gtb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gtb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(198, 40, 40, .92);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.gtb i {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 11px Sarabun, sans-serif;
  font-style: normal;
  padding: 1px 6px;
  border-radius: 6px;
}
.gmx {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gmx input {
  width: 90px !important;
  padding: 6px 10px;
  border: 1px solid var(--ln);
  border-radius: 8px;
  font: 600 15px Sarabun, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
@media (max-width: 600px) {
  .alb {
    height: 52vh;
  }
  .abn {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* ============================================================
 * ส่วนเพิ่มเติม: ปุ่มแชร์ข่าว, ไฮไลต์ข่าวจากลิงก์, ข้อความ PDPA
 * ============================================================ */
.news .meta .nsh {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ln);
  background: var(--card);
  color: var(--hd);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.news .meta .nsh:hover {
  background: var(--b1);
  border-color: var(--b5);
}
.flash {
  animation: flash 1.3s ease-in-out 2;
}
@keyframes flash {
  0%, 100% { box-shadow: var(--sh); }
  50% { box-shadow: 0 0 0 4px var(--g5), 0 14px 40px rgba(217, 159, 0, .35); }
}
.pdpa {
  margin: 16px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--b0);
  border: 1px solid var(--ln);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.pdpa b {
  color: var(--hd);
}
.pdpa ul {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--mu);
}
.pdok {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 15px;
  margin: 4px 0 14px;
  cursor: pointer;
}
.pmb.help .pdok input[type=checkbox] {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--b5);
}
.pdok span {
  flex: 1;
  min-width: 0;
}
.pdz {
  border-color: color-mix(in srgb, #c62828 35%, var(--ln));
}
@media (prefers-reduced-motion: reduce) {
  .flash { animation: none; outline: 3px solid var(--g5); }
}

/* ============================================================
 * หน้าผู้ดูแลบนมือถือ: เมนูด้านล่าง (bnav) + แผ่นเมนูทั้งหมด (msh)
 * ============================================================ */
.bnav, .ah .bs { display: none; }
@media (max-width: 820px) {
  #ad .sb { display: none !important; }
  #ad .ah .wrap { padding: 8px 14px; gap: 8px; flex-wrap: nowrap; }
  #ad .ah h2 { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #ad .ah .who { flex: none; }
  #ad .ah .who .wn, #ad .ah .dk, #ad .ah .bl { display: none; }
  #ad .ah .bs { display: inline; }
  #ad .acontent { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .bnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto; /* กันกฎ nav ของเมนูหน้าเว็บ (top:100%) มาทับ */
    flex-direction: row;
    z-index: 20;
    background: var(--card);
    border-bottom: 0;
    border-top: 1px solid var(--ln);
    box-shadow: 0 -6px 20px rgba(11, 32, 88, .10);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bnav button {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--mu);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 12px;
    font: 600 12px Sarabun, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bnav button i { font-style: normal; font-size: 21px; line-height: 1.1; }
  .bnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav button[aria-current="page"] { color: var(--hd); background: var(--b1); }
  #ad .toast, .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
.msh-o {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(8, 12, 22, .5);
  display: flex;
  align-items: flex-end;
  animation: mshf .18s ease-out;
}
.msh {
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  animation: mshu .22s cubic-bezier(.2, .8, .2, 1);
}
.msh::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--ln); margin: 0 auto 10px; }
.msh-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.msh-h b { font: 700 17px Prompt, Sarabun, sans-serif; color: var(--hd); }
.msh-h small { color: var(--mu); }
.msh-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ln); background: var(--card); color: var(--ink); cursor: pointer; }
.msh-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.msh-g button, .msh-a button {
  text-align: left;
  border: 1px solid var(--ln);
  background: var(--b0);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 12px;
  font: 600 15px Sarabun, sans-serif;
  cursor: pointer;
  min-height: 50px;
}
.msh-g button.on { border-color: var(--b5); background: var(--b1); color: var(--hd); }
.msh-a { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ln); }
.msh-a .out { color: #c62828; }
@keyframes mshf { from { opacity: 0; } to { opacity: 1; } }
@keyframes mshu { from { transform: translateY(40px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .msh-o, .msh { animation: none; } }
@media (min-width: 821px) { .msh-o { display: none; } }

/* โลโก้ใหญ่ขึ้น (v3) */
.logo img{height:84px;max-width:120px}
.logo:has(img){min-width:84px}
.logo svg{width:80px;height:80px;margin:4px}
.fl{width:112px;height:112px}
.fl svg{width:80px;height:80px}
@media (max-width:820px){.logo img{height:62px;max-width:84px}.logo:has(img){min-width:62px}.logo svg{width:62px;height:62px;margin:3px}.fl{width:92px;height:92px}.fl svg{width:68px;height:68px}}

/* บุคลากร (v4): การ์ดขนาดเท่ากันทุกใบ รูปใหญ่และสวยขึ้น */
.pc,.orail>.pc{width:min(420px,100%);max-width:420px;box-sizing:border-box;gap:18px;padding:14px 20px 14px 14px;border-radius:20px;position:relative;overflow:hidden}
.orow>.pc{min-width:0}
.pc::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,var(--g5),var(--b7))}
.pc .pph,.orail>.pc .pph{width:112px;height:112px;border-width:4px;margin-left:6px;box-shadow:0 0 0 4px var(--card),0 0 0 6px var(--g5),0 10px 22px rgba(11,32,88,.22)}
.pc .pph img{transition:transform .35s}
.pc:hover .pph img{transform:scale(1.06)}
.pc .pt b,.orail>.pc .pt b{font-size:17.5px}
.pc .pt span,.orail>.pc .pt span{font-size:14.5px}
.orail>.pc{margin-top:16px}
.ocol{max-width:560px}
@media (max-width:480px){.pc,.orail>.pc{padding:12px 14px 12px 12px;gap:14px}.pc .pph,.orail>.pc .pph{width:84px;height:84px;margin-left:4px}.pc .pt b,.orail>.pc .pt b{font-size:16px}.pc .pt span,.orail>.pc .pt span{font-size:13.5px}}
.pc .pph svg{width:56px;height:56px}
@media (max-width:480px){.pc .pph svg{width:42px;height:42px}}

.hct .hcth{font-weight:600;font-size:14px;color:var(--hd);margin:14px 0 2px;cursor:default}

/* ============================================================
 * ปฏิทินกิจกรรมแบบตารางเต็มช่อง (แถบกิจกรรมสีซ้อนกันในวันเดียวกัน
 * และต่อเนื่องข้ามวันสำหรับกิจกรรมหลายวัน)
 * ============================================================ */
.cal2 {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
}
@media (max-width: 900px) {
  .cal2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cgd.cg2 {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--ln);
  border-left: 1px solid var(--ln);
  border-radius: 14px;
  overflow: hidden;
}
.cwk {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 2px;
  min-height: 86px;
}
.cdy {
  appearance: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 2px 0;
  margin: 0;
  background: var(--card);
  border: 0;
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.cdy:hover {
  background: var(--b0);
}
.cdy .dn {
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  padding: 0 4px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}
.cdy.su .dn {
  color: #d64545;
}
.cdy.o {
  background: var(--b0);
}
.cdy.o .dn {
  color: var(--mu);
  opacity: .55;
}
.cdy.td .dn {
  background: var(--b5);
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.cbr {
  appearance: none;
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  margin: 0 3px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  font: 600 12.5px/22px Prompt, Sarabun, sans-serif;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 32, 88, .18);
}
.cbr span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbr.cs {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cbr.ce {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.cbr:hover {
  filter: brightness(1.08);
}
.cmr {
  appearance: none;
  position: relative;
  z-index: 1;
  margin: 0 3px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--mu);
  font: 600 12px/22px Prompt, Sarabun, sans-serif;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmr:hover {
  color: var(--b5);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .cwk {
    min-height: 76px;
  }
  .cdy .dn {
    font-size: 13px;
  }
  .cbr {
    font-size: 11px;
    padding: 0 3px;
    margin: 0 1px;
  }
  .cmr {
    font-size: 11px;
    margin: 0 1px;
    padding: 0 2px;
  }
  .cmr .cmt {
    display: none;
  }
}
/* หน้าต่างรายละเอียดกิจกรรมของวัน */
.pmb.cdp {
  max-width: 460px;
}
.cdh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--hd);
  margin: 0 28px 12px 0;
}
.cdl {
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow: auto;
}
.cdi {
  background: var(--b0);
  border: 1px solid var(--ln);
  border-left: 6px solid var(--b5);
  border-radius: 12px;
  padding: 10px 12px;
}
.cdi b {
  display: block;
  font: 600 16px/1.4 Prompt, Sarabun, sans-serif;
  color: var(--ink);
}
.cdi p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 14.5px;
  white-space: pre-line;
}
.cdi small {
  display: block;
  margin-top: 4px;
  color: var(--mu);
  font-size: 13.5px;
}
/* ช่องพิมพ์โค้ดสีในหลังบ้าน */
.chx {
  width: 120px !important;
  height: 44px;
  font: 600 15px ui-monospace, Menlo, monospace !important;
  text-transform: lowercase;
}
.chx.bad {
  border-color: #d64545 !important;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .18);
}

/* สติ๊กเกอร์ปฏิทิน */
.cbr {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cbr span {
  flex: 1 1 auto;
}
.cst {
  flex: none;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.cdi b .cst,
.cet b .cst {
  margin-right: 6px;
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .cbr .cst {
    display: none;
  }
}
.stg .stcur {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.stg .stv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--ln);
  border-radius: 14px;
  background: var(--b0);
  font-size: 30px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.stgl {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mu);
}
.stp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stp button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--b0);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.stp button:hover {
  transform: scale(1.08);
}
.stp button.on {
  border-color: var(--b5);
  background: var(--card);
}

/* วันหยุดราชการ (อัตโนมัติ) */
.cbr.hol {
  background: rgba(214, 69, 69, .14);
  color: #b4232a;
  box-shadow: none;
  font-weight: 600;
}
.cbr.hol.bk {
  background: rgba(120, 130, 150, .16);
  color: var(--mu);
  font-weight: 500;
}
:root[data-theme=dark] .cbr.hol {
  background: rgba(255, 120, 120, .2);
  color: #ffb3b3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .cbr.hol {
    background: rgba(255, 120, 120, .2);
    color: #ffb3b3;
  }
}
.cdi.hol {
  background: rgba(214, 69, 69, .08);
}
/* รูปสติ๊กเกอร์ (ภาพวาด SVG / รูปที่อัปโหลด) */
.cst svg,
.cst img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.cdi b .cst,
.cet b .cst {
  display: inline-block;
  vertical-align: -3px;
}
.cdi b .cst svg,
.cdi b .cst img,
.cet b .cst svg,
.cet b .cst img {
  width: 20px;
  height: 20px;
}
.stv svg,
.stv img,
.stp button svg,
.stp button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.stv {
  padding: 6px;
}
.stp button {
  padding: 5px;
}
.stw {
  position: relative;
  display: inline-block;
}
.stw i {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: #d64545;
  color: #fff;
  font-style: normal;
  font-size: 14px;
  cursor: pointer;
}
.stg .chint {
  display: block;
  margin-top: 6px;
}

/* หน้าจัดการวันหยุดราชการ (หลังบ้าน) */
.hlt input,
.hlt select {
  width: 100%;
  min-width: 0;
}
.hlt td:first-child {
  width: 150px;
}
.hlt .hdw {
  width: 44px;
  color: var(--mu);
  font-weight: 600;
  white-space: nowrap;
}
.hlt-add {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 190px auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 720px) {
  .hlt-add {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
 * v7: สิทธิ์การใช้งาน 4 บทบาท + แจ้งเตือนหลายช่องทาง
 * ============================================================ */
.robar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:10px 14px;margin:0 0 14px;font-size:14px}
:root[data-theme=dark] .robar{background:rgba(59,130,246,.12);border-color:rgba(147,197,253,.35);color:#bfdbfe}
.acontent [hidden]{display:none!important}
.acontent input:disabled,.acontent select:disabled,.acontent textarea:disabled,.md input:disabled,.md select:disabled,.md textarea:disabled{opacity:.75;cursor:not-allowed}
/* การ์ดช่องทางแจ้งเตือน */
.ntl{display:grid;gap:10px;margin:4px 0 12px}
.ntc{display:flex;align-items:center;gap:12px;border:1.5px solid var(--ln);border-left:5px solid var(--c);border-radius:14px;padding:10px 12px;background:var(--card)}
.ntc.off{opacity:.62}
.nti{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:22px;background:color-mix(in srgb,var(--c) 14%,transparent)}
.ntm{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.ntm b{font-size:15.5px}.ntm small{color:var(--mu);font-size:12.5px;overflow-wrap:anywhere}
.nta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ntst{font-size:12.5px;color:var(--mu)}
.ntsw{position:relative;display:inline-block;width:42px;height:24px;margin:0 4px 0 0;flex:none}
.ntsw input{opacity:0;width:0;height:0;position:absolute}
.ntsw span{position:absolute;inset:0;border-radius:99px;background:#cbd5e1;transition:background .2s;cursor:pointer}
.ntsw span::before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.ntsw input:checked+span{background:#16a34a}.ntsw input:checked+span::before{transform:translateX(18px)}
.ntsw input:focus-visible+span{outline:2px solid var(--b5);outline-offset:2px}
.ntq{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px}.ntq span{font-size:13px;color:var(--mu);margin-right:2px}
.ntline{border:1px dashed var(--ln);border-radius:12px;padding:10px 14px;margin:0 0 12px;font-size:14px}
.ntline ol{margin:6px 0 4px;padding-left:20px}.ntline li{margin:3px 0}
.ntline code,.ntsn code{font-size:12.5px;background:var(--b1);padding:2px 6px;border-radius:6px;overflow-wrap:anywhere}
:root[data-theme=dark] .ntline code,:root[data-theme=dark] .ntsn code{background:rgba(255,255,255,.08)}
.cpy{cursor:copy;border:1px solid var(--ln)}
.ntsn{margin-top:8px;font-size:13px}
.ntlog summary{cursor:pointer;font-weight:600;font-size:14px;margin:4px 0}
.ntlog .tb td{font-size:12.5px;vertical-align:top}
.nth2{font-size:13px;color:var(--mu);background:var(--b1);border-radius:10px;padding:8px 10px;margin:8px 0 4px;line-height:1.55}
:root[data-theme=dark] .nth2{background:rgba(255,255,255,.06)}
.ntmd .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:640px){.ntc{flex-wrap:wrap}.nta{width:100%;justify-content:flex-start}.ntmd .row{grid-template-columns:1fr}}
/* ตารางสิทธิ์ */
.ptb th{vertical-align:bottom;white-space:nowrap}
.ptb th small{display:block;font-weight:400;color:var(--mu);font-size:12px}
.ptb .pqk{display:flex;gap:4px;margin-top:6px}
.ptb td{vertical-align:middle}
.ptb .psel{min-width:150px;padding:6px 8px;border-radius:9px}
.ptb .psel[data-v="0"]{color:#b91c1c}.ptb .psel[data-v="1"]{color:#1d4ed8}.ptb .psel[data-v="2"]{color:#15803d}
:root[data-theme=dark] .ptb .psel[data-v="0"]{color:#fca5a5}:root[data-theme=dark] .ptb .psel[data-v="1"]{color:#93c5fd}:root[data-theme=dark] .ptb .psel[data-v="2"]{color:#86efac}
.ptb .pfx{color:#15803d;font-weight:600;white-space:nowrap}
.ntwarn{border:1px solid #fdba74;background:#fff7ed;color:#7c2d12}
.ntwarn code{background:rgba(0,0,0,.06)}
:root[data-theme=dark] .ntwarn{background:rgba(251,146,60,.1);border-color:rgba(251,146,60,.45);color:#fed7aa}
.ntbc{font-size:13px;line-height:1.55;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:10px;padding:8px 10px;margin:8px 0 4px}
:root[data-theme=dark] .ntbc{background:rgba(239,68,68,.1);border-color:rgba(248,113,113,.4);color:#fecaca}
