/* PPC — หน้าตู้อินเวอร์เตอร์: เหล็กพ่นสีเทา · ป้ายแกะสลัก 2 ชั้นยึดหมุด · สาย DC สีส้ม · ราง DIN */

:root {
  --steel: #cfd3cf;
  --steel-hi: #dde0dc;
  --steel-lo: #b6bbb6;
  --steel-edge: #9aa09a;
  --ink: #15181a;
  --ink-soft: #3b4246;
  --muted: #4a5155;

  --plate: #f5f4ee;
  --plate-edge: #c9c8bf;
  --plate-core: #141516;
  --red: #b8231c;
  --red-edge: #8d1913;
  --yellow: #f1c21b;
  --yellow-edge: #c79c06;
  --black: #1c1f21;
  --black-edge: #050607;

  --dc: #e2611b;
  --dc-deep: #b9480d;
  --plan: #2d5d8b;
  --good: #1f6b45;

  --gasket: #1f2325;
  --screen: #ffffff;

  --engrave: "Chakra Petch", "Anuphan", system-ui, sans-serif;
  --prose: "Anuphan", "Noto Sans Thai", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r: 3px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 17px/1.7 var(--prose);
  color: var(--ink);
  background-color: var(--steel);
  /* ผิวพ่นสีฝุ่น: เกรนละเอียดบนเทา RAL 7035 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--steel-hi), var(--steel) 40%, var(--steel));
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--dc); outline-offset: 3px; border-radius: 2px; }
a { color: var(--ink); text-decoration-color: var(--dc); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--dc-deep); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--engrave); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 68ch; }
.num, table { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--steel-edge) var(--steel-lo); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- ป้ายแกะสลัก ---------- */
/* แผ่นลามิเนต 2 ชั้น: ผิวหน้าสี · แกะลึกถึงแกนสีตัด · สกรูหัวผ่าซ้าย-ขวา */
.plate {
  --face: var(--plate);
  --edge: var(--plate-edge);
  --core: var(--plate-core);
  position: relative;
  display: inline-block;
  padding: .42em 1.6em .38em;
  background: var(--face);
  color: var(--core);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  font-family: var(--engrave);
  font-weight: 600;
  letter-spacing: .02em;
  /* ตัวอักษรแกะ: ขอบล่างรับแสง */
  text-shadow: 0 1px 0 color-mix(in srgb, var(--face) 55%, white);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--face) 50%, white),
    inset 0 -1px 0 color-mix(in srgb, var(--face) 80%, black),
    0 1px 1px rgba(0, 0, 0, .28),
    0 3px 6px -2px rgba(0, 0, 0, .25);
}
.plate.screws::before, .plate.screws::after {
  content: "";
  position: absolute;
  top: 50%;
  width: .62em; height: .62em;
  margin-top: -.31em;
  border-radius: 50%;
  background:
    linear-gradient(35deg, transparent 44%, rgba(0, 0, 0, .55) 45% 55%, transparent 56%),
    radial-gradient(circle at 35% 30%, #fbfbf8, #a9aca8 60%, #6f726f);
  box-shadow: 0 .5px 1px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(0, 0, 0, .25);
}
.plate.screws::before { left: .45em; }
.plate.screws::after { right: .45em; transform: rotate(70deg); }
.plate.red { --face: var(--red); --edge: var(--red-edge); --core: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); }
.plate.yellow { --face: var(--yellow); --edge: var(--yellow-edge); --core: var(--ink); }
.plate.black { --face: var(--black); --edge: var(--black-edge); --core: #f3f3ee; text-shadow: 0 -1px 0 #000; }
.plate.small { font-size: .82rem; padding: .3em 1.4em .26em; }

a.plate, button.plate {
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: transform .12s cubic-bezier(.25, 1, .5, 1), box-shadow .12s;
}
button.plate { appearance: none; }
a.plate:hover, button.plate:hover { color: var(--core); transform: translateY(-1px); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--face) 50%, white), 0 2px 2px rgba(0, 0, 0, .3), 0 8px 14px -6px rgba(0, 0, 0, .35); }
a.plate:active, button.plate:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .4); }
button.plate:disabled { cursor: not-allowed; filter: saturate(.2); opacity: .6; transform: none; }
.cta { font-size: 1.12rem !important; padding: .7em 2.2em .64em !important; font-weight: 700 !important; }

/* ---------- ราง DIN · รางเดินสาย ---------- */
.din {
  height: 26px;
  margin: 0;
  border: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(0, 0, 0, .55) 22px 27px, transparent 27px 34px) center / 100% 7px no-repeat,
    linear-gradient(180deg, #eef0ee 0, #c7cbc7 18%, #e6e8e5 22%, #b4b9b4 50%, #dfe2df 80%, #8f948f 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.tray {
  background: color-mix(in srgb, var(--steel) 90%, black);
}

/* ---------- หัวเว็บ ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--steel-hi) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--steel-edge);
}
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 72px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand .plate { font-size: 1.15rem; letter-spacing: .14em; padding-inline: 1.5em; }
.brand span.sub { font: 500 .78rem/1.2 var(--engrave); color: var(--muted); letter-spacing: .04em; max-width: 14ch; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a.plate { font-size: .86rem; padding: .32em 1.3em .28em; font-weight: 600; }
.nav a[aria-current="page"] { --face: #e7e3d2; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .22); transform: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .brand span.sub { display: none; }
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; padding-bottom: 6px; }
  .nav.open { display: flex; }
}

/* ---------- ตัวหนังสือ ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- หน้าตู้: ส่วนแรก ---------- */
.cabinet {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) clamp(36px, 5vw, 72px);
}
.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.headline-plate {
  display: block;
  padding: clamp(18px, 2.6vw, 34px) clamp(26px, 3.4vw, 52px);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  font-weight: 700;
}
.headline-plate.screws::before, .headline-plate.screws::after { top: 16px; margin-top: 0; width: 14px; height: 14px; }
.headline-plate.screws::before { left: 14px; }
.headline-plate.screws::after { right: 14px; }
.headline-plate .accent { color: var(--dc-deep); }
.cabinet .lead { margin: 22px 4px 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cabinet .facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }

/* หน้าต่างตรวจดู: ยางขอบดำ · กระจกโพลีคาร์บอเนต */
.window {
  position: relative;
  background: var(--gasket);
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 0 0 2px #2f3437, 0 2px 0 rgba(255, 255, 255, .45), 0 18px 30px -18px rgba(0, 0, 0, .55);
}
.window .glass {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--screen);
}
.window .glass::after {
  /* แสงสะท้อนบนกระจก — แถบเดียว ไม่บังข้อมูล */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .0) 30%, rgba(255, 255, 255, .22) 38%, rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.window .tag { position: absolute; left: 22px; top: -14px; z-index: 2; }

/* เครื่องมือทดลอง: S-curve + สวิตช์เลือกสัปดาห์ */
.demo { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.chart { display: block; width: 100%; height: auto; }
.chart text { font: 500 11px var(--engrave); fill: #59615f; }
.chart .grid line { stroke: #e3e6e3; }
.chart .plan { fill: none; stroke: var(--plan); stroke-width: 2.4; stroke-dasharray: 7 5; }
.chart .actual { fill: none; stroke: var(--dc); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .gap { fill: color-mix(in srgb, var(--red) 14%, transparent); }
.chart .cursor { stroke: var(--ink); stroke-width: 1.4; }
.chart .dot { fill: var(--dc); stroke: #fff; stroke-width: 2; }
.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.readout { display: block; padding: .5em .6em .45em; text-align: center; }
.readout small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; opacity: .85; }
.readout b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sample { margin-top: 10px; font-size: .78rem; color: var(--muted); }

.selector { display: grid; justify-items: center; gap: 8px; user-select: none; }
.selector svg { width: clamp(118px, 12vw, 150px); height: auto; overflow: visible; }
.knob { cursor: grab; touch-action: none; outline: none; }
.knob:active { cursor: grabbing; }
.knob:focus-visible .knob-face { stroke: var(--dc); stroke-width: 4; }
.knob-turn { transition: transform .26s cubic-bezier(.3, 1.3, .5, 1); transform-box: view-box; transform-origin: 70px 70px; }
.selector .plate { font-size: .74rem; }

/* ---------- เดินสาย 3 ขั้น ---------- */
.run { position: relative; }
.run-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; z-index: 1; }
.step h3 { font-size: 1.25rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 12px; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.mc4 { display: inline-grid; place-items: center; width: 34px; height: 22px; border-radius: 4px; background: #232628; color: #fff; font: 700 .7rem var(--engrave); box-shadow: inset 0 -3px 0 #000, 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- บอร์ดป้ายฟีเจอร์ (แน่น 2 คอลัมน์) ---------- */
.board { columns: 2 380px; column-gap: clamp(20px, 3vw, 40px); }
.board .item { break-inside: avoid; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--steel-edge) 60%, transparent); }
.board .item .plate { font-size: .82rem; white-space: nowrap; min-width: 13ch; text-align: center; }
.board .item p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- ราคา: ป้ายพิกัดเบรกเกอร์ ---------- */
.ratings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ratings.one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); max-width: 980px; }
.ratings.one .rating { align-content: start; }
.ratings.one .size { font-size: 2.4rem; }
.rating.main .price { font-size: 2rem; }
.rating {
  position: relative; display: grid; gap: 10px; padding: 26px 22px 22px;
  background: var(--plate); color: var(--ink); border-radius: 5px; border: 1px solid var(--plate-edge);
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px rgba(0, 0, 0, .25), 0 12px 20px -14px rgba(0, 0, 0, .55);
  --rivet: radial-gradient(circle at 35% 30%, #fbfbf8, #a9aca8 60%, #6f726f);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-size: 10px 10px; background-repeat: no-repeat;
  background-position: 9px 9px, calc(100% - 9px) 9px, 9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px);
}
.rating .size { font: 700 3rem/1 var(--engrave); color: var(--ink); border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.rating .kw { font: 600 .95rem var(--engrave); letter-spacing: .04em; }
.rating .price { font: 700 1.45rem var(--engrave); font-variant-numeric: tabular-nums; }
.rating .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.rating .terms { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.rating .plate { justify-self: start; }
.rating.picked { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- แผงทั่วไป (หน้าซื้อ/บัญชี) ---------- */
.panel { background: color-mix(in srgb, var(--plate) 92%, var(--steel)); border: 1px solid var(--plate-edge); border-radius: 6px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 26px -20px rgba(0, 0, 0, .55); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 14px; }
label.field { display: grid; gap: 6px; font: 600 .9rem var(--engrave); margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="number"], select {
  font: 500 1rem var(--prose); color: var(--ink);
  padding: .65em .8em; border: 1px solid var(--steel-edge); border-radius: 4px; background: #fff;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .08); width: 100%;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--dc); outline-offset: 1px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--plate-edge); border-radius: 5px; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { font: 700 1.15rem var(--engrave); }
.choice span { font-size: .88rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in srgb, var(--yellow) 18%, #fff); }
.choice:has(input:focus-visible) { outline: 3px solid var(--dc); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--steel-edge); border-radius: 4px; overflow: hidden; background: #fff; }
.stepper button { appearance: none; border: 0; background: var(--plate); width: 42px; height: 42px; font: 700 1.2rem var(--engrave); cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--yellow); }
.stepper output { min-width: 3ch; text-align: center; font: 700 1.1rem var(--engrave); }
.total { font: 700 1.6rem var(--engrave); font-variant-numeric: tabular-nums; }
.msg { margin-top: 12px; padding: 10px 14px; border-radius: 4px; font-size: .95rem; }
.msg.err { background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red-edge); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.msg.ok { background: color-mix(in srgb, var(--good) 10%, #fff); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); }
.msg:empty { display: none; }
.keyline { font: 700 clamp(1.1rem, 3vw, 1.6rem) var(--engrave); letter-spacing: .06em; padding: .6em 1em; background: var(--black); color: var(--yellow); border-radius: 4px; word-break: break-all; }
.qr { width: 240px; height: 240px; background: #fff; padding: 10px; border-radius: 6px; border: 1px solid var(--plate-edge); }
.qr img, .qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.stages { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.stages .plate { font-size: .8rem; opacity: .55; }
.stages .plate[aria-current="step"] { opacity: 1; }
.hide, [hidden] { display: none !important; }

table.seats { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.seats th { text-align: left; font: 600 .82rem var(--engrave); color: var(--muted); padding: 8px; border-bottom: 2px solid var(--ink); }
table.seats td { padding: 10px 8px; border-bottom: 1px solid var(--plate-edge); vertical-align: middle; }

/* ---------- หน้าเนื้อหา ---------- */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.page-head .lead { margin-top: 16px; }
.split > .panel { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 14px 0 14px; }
.split ul, .prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.split li, .prose li { margin-bottom: .35em; }
.prose { max-width: 76ch; }
.nw { white-space: nowrap; }
.bays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.bay ul { padding-left: 1.2em; margin: 22px 0 0; }
.bay li { margin-bottom: .35em; color: var(--ink-soft); }
.window a.zoom { display: block; cursor: zoom-in; }
/* สกรูเฉพาะป้ายใหญ่ — ป้ายเล็กในเมนู/รายการ สกรูเบียดตัวหนังสือ */
.nav .plate::before, .nav .plate::after, .plate.small::before, .plate.small::after,
.board .plate::before, .board .plate::after, .stages .plate::before, .stages .plate::after,
.timeline .plate::before, .timeline .plate::after { content: none; }
.nav .plate, .board .plate, .stages .plate, .timeline .plate { padding-inline: .9em; }
/* ปุ่มเลือกรูปสลิป */
.file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file { display: grid; gap: 10px; margin-bottom: 16px; }
.file .plate { justify-self: start; cursor: pointer; }
.file input:focus-visible + .plate { outline: 3px solid var(--dc); outline-offset: 3px; }
.file img { max-width: 160px; max-height: 200px; border: 1px solid var(--plate-edge); border-radius: 4px; }
.file .name { font-size: .9rem; color: var(--muted); }
.plate[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: grayscale(.6); }
.tag-flat { display: inline-block; font: 600 .8rem var(--engrave); padding: .2em .7em; border-radius: 3px; border: 1px solid var(--steel-edge); color: var(--ink-soft); }
.tag-flat.yellow { background: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 60%, black); color: var(--ink); }
.tag-flat.red { background: var(--red); border-color: var(--red-edge); color: #fff; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose ol { padding-left: 1.3em; }
details.faq { border-bottom: 1px solid var(--steel-edge); padding: 14px 0; }
details.faq summary { cursor: pointer; font: 600 1.05rem var(--engrave); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--dc-deep); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 24px; }
.timeline > div { padding: 0 16px 0 0; }
.timeline .plate { font-size: .82rem; margin-bottom: 12px; }
.timeline p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- ท้ายเว็บ ---------- */
.close { background: var(--black); color: #eceee9; }
.close h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.close .lead { color: #c5c9c4; }
.site-foot { background: #121416; color: #a6aba6; font-size: .88rem; padding-block: 28px 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot a { color: #e1e4df; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- จอแคบ ---------- */
@media (max-width: 1020px) {
  .cabinet-grid, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .ratings, .ratings.one { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-steps { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratings, .ratings.one { grid-template-columns: 1fr; }
  .ratings.one .size { font-size: 1.9rem; }
  .board .item { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .bays { grid-template-columns: 1fr; }
  .actions .plate { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* แถบเว็บตัวอย่าง (config demo: true) — ลายเทปเตือนเหลืองดำ */
.demo-bar {
  background: var(--yellow);
  border-bottom: 4px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--plate-core) 0 10px, var(--yellow) 10px 20px) 4;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.5;
  padding: 8px 0;
}
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.demo-reset {
  margin-left: auto;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  padding: 2px 10px;
  cursor: pointer;
}
.demo-reset:hover { background: rgba(0,0,0,.08); }
.demo-reset:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ตรวจทานคำสั่งซื้อ · ช่อง OTP */
.review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 8px 0 14px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.otp-input { font-family: var(--engrave); font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
@media (max-width: 560px) { .review { grid-template-columns: 1fr; gap: 2px; } .review dd { margin-bottom: 8px; } }
.brand .mark { width: 40px; height: 40px; flex: none; }
