/* NÜXGROW · หน้าแรก ส่วน "บริการของเรา" แบบโชว์รูม v0.7.0 (25 ต.ค. 2569 · 01 R&D กราฟความชื้นพระเอก + แถบคุมสภาพแวดล้อม) · v0.6.0 (01 กราฟความชื้นเต็มวัน แกน VWC) · v0.4.0 (01 R&D 1 วันในห้อง NÜX · Crop Steering) · v0.3.0 (25 ต.ค. 2569 · 01 R&D ห้องปลูกแยก 4 ชั้น) · v0.2.1 (16 ต.ค. 2569 · แผงที่ซ่อนหยุดแอนิเมชัน) · v0.2.0 (ครบ 5 บริการ) · คู่กับ /qp/home-show.js · ต่อจาก home-v.css
   แผงโชว์รูม (.v-show) = ข้อความ ~35% (หัว · ชื่อ · ประโยคเดียว · ป้ายสถานะ · 2 ปุ่ม) + เวที ~65% (ภาพเป็นพระเอก · ตัวเลขใหญ่ชิดล่าง)
   ไฟเวที = สีของบริการ (--svc) · เข้าฉากเบา ๆ ทุกครั้งที่สลับมาบริการนี้ · ลดการเคลื่อนไหว = ไม่ขยับ */

.v-show--fx { --svc: var(--sim-spec-450); }
.v-show--dv { --svc: var(--sim-spec-600); }

/* ── สัดส่วน: ข้อความ 35 · เวที 65 ── */
.v-svc__panel.v-show { grid-template-columns: minmax(0, .54fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .v-svc__panel.v-show { grid-template-columns: minmax(0, 1fr); } }
.v-show__txt { justify-content: flex-start; gap: 14px; }
.v-show__txt .v-col__top { flex-direction: row; align-items: center; justify-content: space-between; }
.v-show__h { font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -.02em; line-height: 1.1; }
.v-show__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--qp-ink-2); }
.v-show__lead b { color: var(--qp-ink); font-weight: 600; }

/* ── เวที ── */
.v-show__stage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 420px; padding: 18px 22px 14px; border-radius: var(--v-r);
  border: 1px solid color-mix(in srgb, var(--svc) 34%, var(--qp-line));
  background:
    radial-gradient(90% 60% at 50% -12%, color-mix(in srgb, var(--svc) 30%, transparent), transparent 62%),
    radial-gradient(70% 26% at 50% 104%, color-mix(in srgb, var(--svc) 22%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--qp-surface) 70%, var(--qp-bg)), var(--qp-bg));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--svc) 45%, transparent), 0 40px 90px -50px var(--svc); }
html[data-qp-theme="light"] .v-show__stage { background:
    radial-gradient(90% 60% at 50% -12%, color-mix(in srgb, var(--svc) 18%, transparent), transparent 62%),
    radial-gradient(70% 26% at 50% 104%, color-mix(in srgb, var(--svc) 12%, transparent), transparent 72%),
    linear-gradient(180deg, var(--qp-surface), var(--qp-surface-2)); }
.v-show__stage::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; z-index: -1; pointer-events: none;   /* พื้นเวทีสะท้อน */
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--svc) 7%, transparent)); }
.v-show__badge { position: absolute; top: 14px; left: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--qp-ink-2);
  border: 1px solid color-mix(in srgb, var(--qp-src-sim) 55%, transparent); background: color-mix(in srgb, var(--qp-bg) 60%, transparent); }
.v-show__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qp-src-sim); }
.v-show__tog { position: absolute; top: 10px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--v-glass-line); background: var(--v-glass); color: var(--qp-ink); font-size: 15px; cursor: pointer; }
.v-show__tog:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 2px; }
.v-show__foot { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--qp-ink-2); text-align: center; }
.v-show__note { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--qp-muted); text-align: center; }

/* ── 02 Factory: 3 จอแนวตั้งเรียงกัน · รุ่นที่เลือกใหญ่/สว่างสุด ── */
.fx-row { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.2vw, 34px); padding-top: 30px; }
.fx-m { --vh: calc(100cqh - 118px); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.fx-m:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 6px; border-radius: 12px; }
.fx-in { display: flex; flex-direction: column; align-items: center; gap: 6px; transform-origin: 50% 100%; transition: transform .7s var(--v-ease), opacity .7s var(--v-ease), filter .7s var(--v-ease); }
.fx-m:not(.is-sel) .fx-in { transform: scale(.8); opacity: .5; filter: saturate(.55); }
.fx-m:not(.is-sel):hover .fx-in { opacity: .75; }
.fx-v { position: relative; display: block; height: var(--vh); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--qp-surface-2);
  border: 1px solid color-mix(in srgb, var(--svc) 30%, var(--qp-line)); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--svc) 80%, transparent); transition: box-shadow .7s var(--v-ease), border-color .7s var(--v-ease); }
.fx-m.is-sel .fx-v { border-color: color-mix(in srgb, var(--svc) 75%, var(--qp-line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--svc) 40%, transparent), 0 34px 80px -26px var(--svc); }
.fx-v video, .fx-v img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-m::before { content: ""; position: absolute; left: 50%; bottom: 30%; width: 200%; height: 220%; z-index: -1; pointer-events: none; transform: translateX(-50%);   /* สปอตไลต์จากเพดาน */
  background: linear-gradient(180deg, color-mix(in srgb, var(--svc) 0%, transparent), color-mix(in srgb, var(--svc) 22%, transparent) 70%, transparent);
  clip-path: polygon(42% 0, 58% 0, 86% 100%, 14% 100%); opacity: 0; transition: opacity .8s var(--v-ease); }
.fx-m.is-sel::before { opacity: 1; }
.fx-tag { font-family: var(--qp-font-mono); font-size: 14px; letter-spacing: .06em; color: var(--qp-ink-2); }
.fx-tag b { color: var(--svc); font-weight: 600; }
.fx-num { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; }
.fx-num b { font-family: var(--qp-font-mono); font-size: clamp(40px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.03em; color: var(--qp-ink); }
.fx-m.is-sel .fx-num b { color: var(--svc); text-shadow: 0 0 28px color-mix(in srgb, var(--svc) 55%, transparent); }
.fx-num small { font-size: 16px; color: var(--qp-ink-2); }
.fx-sub { font-size: 14px; line-height: 1.4; color: var(--qp-ink-2); white-space: nowrap; }

/* ── 03 Device: 6 อุปกรณ์บนแท่น · ไฮไลต์ทีละตัว · เส้นข้อมูลเป็นฉากหลัง ── */
.dv-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.dv-flow path { fill: none; stroke: color-mix(in srgb, var(--svc) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 4 9; animation: dvDash 1.6s linear infinite; }
.dv-flow path.dv-flow__base { stroke: color-mix(in srgb, var(--svc) 16%, transparent); stroke-width: 6; stroke-dasharray: none; animation: none; filter: blur(3px); }
@keyframes dvDash { to { stroke-dashoffset: -26; } }
.dv-dot { position: absolute; left: 0; top: 0; z-index: 1; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--svc); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--svc) 60%, transparent); offset-rotate: 0deg; animation: dvRun 3.2s var(--qp-ease) infinite; opacity: 0; }
.dv-dot.is-go { opacity: 1; }
@keyframes dvRun { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.dv-app { position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; font-size: 14px; color: var(--qp-ink);
  border: 1px solid color-mix(in srgb, var(--svc) 45%, var(--qp-line)); background: var(--v-glass); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--svc) 55%, transparent); }
.dv-app i { width: 12px; height: 18px; border-radius: 3px; border: 1.5px solid var(--svc); }
.dv-app em { font-style: normal; font-size: 14px; color: var(--qp-src-sim); }
.dv-row { position: relative; z-index: 2; flex: 1 1 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 6px; padding-top: 96px; }
.dv-p { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; min-height: 44px; padding: 0 0 4px; border: 0; background: none; color: var(--qp-ink-2); font: inherit; cursor: pointer; }
.dv-p:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 4px; border-radius: 10px; }
.dv-p::before { content: ""; position: absolute; left: 50%; bottom: 26px; width: 150%; height: 260px; z-index: -1; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--svc) 24%, transparent)); clip-path: polygon(44% 0, 56% 0, 92% 100%, 8% 100%); opacity: 0; transition: opacity .6s var(--v-ease); }
.dv-p.is-on::before { opacity: 1; }
.dv-ico { position: relative; display: block; transition: transform .6s var(--v-ease), filter .6s var(--v-ease); filter: saturate(.5) brightness(.85); }
.dv-p.is-on .dv-ico { transform: translateY(-10px); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--svc) 70%, transparent)); }
.dv-base { display: block; width: min(86px, 92%); height: 14px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--qp-ink) 14%, transparent), transparent); transition: background .6s var(--v-ease); }
.dv-p.is-on .dv-base { background: radial-gradient(closest-side, color-mix(in srgb, var(--svc) 70%, transparent), transparent); }
.dv-nm { font-family: var(--qp-font-mono); font-size: 14px; letter-spacing: .06em; white-space: nowrap; transition: color .4s; }
.dv-p.is-on .dv-nm { color: var(--qp-ink); }
/* สัญลักษณ์อุปกรณ์ (ภาพประกอบ ไม่ใช่แบบจริง) · ตัวเครื่อง = พื้นผิว + ขอบสีบริการ + ไฟสถานะ */
.dv-ico { --b: color-mix(in srgb, var(--svc) 55%, var(--qp-line-strong)); border: 1.5px solid var(--b); border-radius: 10px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--qp-ink) 10%, var(--qp-surface)), var(--qp-surface-2)); }
.dv-ico::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--svc); box-shadow: 0 0 8px var(--svc); }
.dv-ico--core { width: 46px; height: 74px; }
.dv-ico--core::after { left: 8px; top: 10px; box-shadow: 0 0 8px var(--svc), 0 12px 0 var(--svc), 0 24px 0 color-mix(in srgb, var(--svc) 40%, transparent); }
.dv-ico--core::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 10px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--b) 0 2px, transparent 2px 6px); opacity: .7; }
.dv-ico--hub { width: 72px; height: 46px; }
.dv-ico--hub::after { left: 10px; top: 10px; }
.dv-ico--hub::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--svc), transparent); opacity: .8; }
.dv-ico--pod { width: 50px; height: 50px; border-radius: 12px; }
.dv-ico--pod::after { right: 9px; top: 9px; }
.dv-ico--pod::before { content: ""; position: absolute; left: 9px; bottom: 9px; width: 22px; height: 10px; border-radius: 5px; background: radial-gradient(circle at 5px 5px, var(--b) 3px, transparent 3.5px), radial-gradient(circle at 17px 5px, var(--b) 3px, transparent 3.5px); }
.dv-ico--sense { width: 32px; height: 60px; border-radius: 16px; }
.dv-ico--sense::after { left: 50%; top: 9px; margin-left: -3px; }
.dv-ico--sense::before { content: ""; position: absolute; left: 7px; right: 7px; top: 24px; bottom: 9px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--b) 0 2px, transparent 2px 6px); opacity: .7; }
.dv-ico--view { width: 78px; height: 50px; border-radius: 8px; }
.dv-ico--view::before { content: ""; position: absolute; inset: 6px; border-radius: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--svc) 35%, transparent), transparent 70%); }
.dv-ico--view::after { right: 9px; bottom: 9px; }
.dv-ico--bus { width: 58px; height: 58px; border-radius: 50%; border-width: 5px; background: none; }
.dv-ico--bus::after { left: 50%; top: -6px; margin-left: -3px; }
.dv-cap { position: relative; z-index: 2; margin-top: 14px; text-align: center; min-height: 72px; }
.dv-cap__n { display: block; font-family: var(--qp-font-mono); font-size: clamp(28px, 2.4vw, 36px); font-weight: 500; letter-spacing: .02em; line-height: 1.15; color: var(--qp-ink); }
.dv-cap__d { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--qp-ink-2); }
.dv-cap.is-swap .dv-cap__n, .dv-cap.is-swap .dv-cap__d { animation: shIn .5s var(--v-ease) backwards; }
.dv-cap.is-swap .dv-cap__d { animation-delay: 60ms; }
.v-show__spec { position: relative; z-index: 2; display: flex; justify-content: center; align-items: baseline; gap: 10px 28px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--svc) 22%, var(--qp-line)); }
.v-show__spec div { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.v-show__spec b { font-family: var(--qp-font-mono); font-size: clamp(40px, 3.2vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--svc); }
.v-show__spec span { font-size: 14px; color: var(--qp-ink-2); }

/* ── เข้าฉากทุกครั้งที่สลับมาบริการนี้ (แผงพ้น is-off = เริ่มแอนิเมชันใหม่) ── */
@keyframes shIn { from { opacity: 0; translate: 0 16px; } }
@keyframes shLight { from { opacity: 0; } }
.v-svc__panel.v-show:not(.is-off) .v-show__stage { animation: shLight .9s var(--v-ease) backwards; }
.v-svc__panel.v-show:not(.is-off) .fx-m, .v-svc__panel.v-show:not(.is-off) .dv-p { animation: shIn .8s var(--v-ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
.v-svc__panel.v-show:not(.is-off) .v-show__h, .v-svc__panel.v-show:not(.is-off) .v-show__lead { animation: shIn .7s var(--v-ease) backwards; }
.v-svc__panel.v-show:not(.is-off) .v-show__lead { animation-delay: 80ms; }

/* ── ความสูงจอน้อย (ช่วงจอ 2 พอดีจอ · คู่กับ home-v.css v0.5.5) ── */
@media (min-width: 1001px) and (max-height: 860px) { .v-show__stage { min-height: 400px; padding: 14px 20px 10px; } .v-show__h { font-size: clamp(32px, 2.8vw, 42px); } .dv-row { padding-top: 84px; } }
@media (min-width: 1001px) and (max-height: 780px) { .v-show__stage { min-height: 380px; } .fx-m { --vh: calc(100cqh - 110px); } .fx-num b { font-size: 40px; } .dv-cap { min-height: 64px; } }

/* ── มือถือ / จอแคบ ── */
@media (max-width: 1000px) {
  .v-show__stage { min-height: 0; }
  .v-show--fx .v-show__stage { height: 560px; }
  .v-show--dv .v-show__stage { padding-bottom: 12px; }
}
@media (max-width: 700px) {
  .v-show__h { font-size: 34px; }
  .v-show__stage { padding: 14px 12px 10px; }
  .v-show--fx .v-show__stage { height: 540px; }
  .fx-row { gap: 6px; padding-top: 40px; }
  .fx-m { --vh: calc(100cqh - 132px); }
  .fx-num b { font-size: 34px; }
  .fx-num small { font-size: 14px; }
  .fx-sub { white-space: normal; max-width: 14ch; }
  .dv-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; padding-top: 84px; }
  .dv-cap__d { font-size: 14px; }
  .v-show__badge { left: 12px; }
}

/* ── ลดการเคลื่อนไหว / ไม่มี JS ── */
.v-still .v-show *, .v-still .v-show *::before { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .v-show *, .v-show *::before, .v-show *::after { animation: none !important; transition: none !important; } .dv-dot { display: none; } }
.dv.is-paused .dv-flow path, .dv.is-paused .dv-dot { animation-play-state: paused; }

/* ── ข้อความ: กลุ่มเดียวกลางแนวตั้ง (ไม่มีช่องโล่งกลางการ์ด) · ชื่อใหญ่ ── */
.v-svc__panel .v-show__txt { justify-content: center; gap: 16px; }
.v-svc__panel .v-show__txt .dt-actions { margin-top: 10px; padding-top: 0; }
.v-svc__panel .v-show__h { font-size: clamp(36px, 3.4vw, 50px); }
@media (min-width: 1001px) and (max-height: 860px) { .v-svc__panel .v-show__h { font-size: clamp(34px, 3vw, 44px); } }

/* ── มือถือ: การ์ดข้อความสูงตามเนื้อหา · เวทีรับที่เหลือ · 3 จอแบ่งความกว้างเท่ากัน ── */
@media (max-width: 1000px) {
  .v-svc__panel.v-show { grid-template-rows: auto minmax(0, 1fr); }
  .v-svc__panel.v-show > .v-col { min-height: 0; height: auto; }
  .v-show--fx .v-show__stage { height: auto; }
  .fx-row { container-type: normal; flex: 0 0 auto; }
  .fx-m { flex: 1 1 0; }
  .fx-in { width: 100%; }
  .fx-v { width: 100%; height: auto; }
  .dv-app { top: 58px; }
  .dv-row { padding-top: 120px; }
}
@media (max-width: 700px) { .fx-row { padding-top: 48px; } .fx-num b { font-size: 30px; } }
.fx-nw { white-space: nowrap; }
.fx-dot { font-style: normal; }
@media (max-width: 1000px) { .v-show__stage { justify-content: center; } }
@media (max-width: 700px) { .fx-sub { display: flex; flex-direction: column; align-items: center; } .fx-dot, .fx-bl { display: none; } }

/* ══ v0.2.0 · ② แผง 01 R&D · 04 App · 05 Test ══ */
.v-show--rd { --svc: var(--sim-spec-500); }
.v-show--ap { --svc: var(--sim-spec-550); }
.v-show--ts { --svc: var(--sim-spec-660); }
.v-show.is-paused *, .v-show__stage.is-paused * { animation-play-state: paused !important; }

/* ── 01 R&D: คลังพืช 209 ชนิด เรียงตามรอบปลูก (1 ช่อง = 1 ชนิด · สี = หมวด) · ไฮไลต์ไล่ทีละหมวด ── */
.rd-legend { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.rd-k { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--qp-line); background: color-mix(in srgb, var(--qp-surface) 70%, transparent); color: var(--qp-ink-2); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .4s, background .4s, color .4s, box-shadow .4s; }
.rd-k i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.rd-k b { font-family: var(--qp-font-mono); font-weight: 500; color: var(--qp-ink); }
.rd-k.is-on { color: var(--qp-ink); border-color: color-mix(in srgb, var(--c) 70%, var(--qp-line)); background: color-mix(in srgb, var(--c) 16%, var(--qp-surface)); box-shadow: 0 0 22px -6px var(--c); }
.rd-k:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 2px; }
.rd-chart { --gap: 3px; position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; container-type: size; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: var(--gap); margin-top: 14px; }
.rd-col { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--gap); }
.rd-gap { justify-content: flex-start; }   /* แกนขาด (ช่วงรอบปลูกที่ไม่มีพืช ≥ 20 วัน ยุบเป็นช่องเดียว) */
.rd-gap::before { content: "≈"; font: 500 16px/1 var(--qp-font-mono); color: var(--qp-ink-2); }
.rd-q { --q: min(calc(100cqh / var(--rows) - var(--gap)), 18px); display: block; width: min(100%, var(--q)); aspect-ratio: 1; border-radius: 3px; background: var(--c); opacity: .9; transition: opacity .5s var(--v-ease), transform .5s var(--v-ease), box-shadow .5s var(--v-ease); }
.rd[data-on] .rd-q { opacity: .16; }
.rd[data-on="0"] .rd-q.c0, .rd[data-on="1"] .rd-q.c1, .rd[data-on="2"] .rd-q.c2, .rd[data-on="3"] .rd-q.c3, .rd[data-on="4"] .rd-q.c4, .rd[data-on="5"] .rd-q.c5 { opacity: 1; transform: translateY(-2px); box-shadow: 0 0 10px -1px var(--c); }
.rd-axis { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--svc) 30%, var(--qp-line)); font-size: 14px; color: var(--qp-ink-2); }
.rd-axis b { font-family: var(--qp-font-mono); font-weight: 500; color: var(--qp-ink); }
.rd-axis a { color: var(--svc); text-decoration: none; }
.rd-axis a:hover { text-decoration: underline; }
.v-show__spec small { font-size: 16px; color: var(--qp-ink-2); }
.v-show__spec .v-show__spec-p b { font-size: clamp(30px, 2.4vw, 36px); }
.v-svc__panel.v-show:not(.is-off) .rd-col { animation: shIn .7s var(--v-ease) backwards; animation-delay: calc(var(--i, 0) * 22ms); }

/* ── 04 App: จอแอปในแล็ปท็อป + มือถือซ้อน · เรืองแสง ── */
.ap-dev { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 40px 0 6px; }
.ap-lap { position: relative; width: min(88%, 640px); margin-right: 9%; filter: drop-shadow(0 30px 50px color-mix(in srgb, var(--svc) 28%, transparent)); }
.ap-scr { position: relative; overflow: hidden; aspect-ratio: 16 / 10; padding: 10px; border-radius: 14px 14px 4px 4px; border: 2px solid color-mix(in srgb, var(--svc) 40%, var(--qp-line-strong)); background: var(--qp-bg);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--qp-ink) 8%, var(--qp-surface)), 0 0 60px -12px color-mix(in srgb, var(--svc) 55%, transparent); }
.ap-base { height: 12px; margin: 6px -7% 0; border-radius: 2px 2px 14px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--qp-ink) 16%, var(--qp-surface)), var(--qp-surface-2)); }
.ap-fit { width: var(--fw, 100%); transform-origin: 0 0; transform: scale(var(--fs, 1)); }
.ap-scr .sim-lv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ap-scr .sim-lv__side, .ap-scr .sim-lv__alerts, .ap-scr .sim-lv__cmds { display: none; }
.ap-scr .sim-lv__app { border-radius: 10px; padding: 10px; gap: 8px; border-color: color-mix(in srgb, var(--svc) 30%, var(--qp-line)); }
.ap-ph { position: absolute; right: 2%; bottom: 0; z-index: 3; width: clamp(150px, 26%, 184px); aspect-ratio: 9 / 18.5; padding: 7px; border-radius: 26px; border: 2px solid color-mix(in srgb, var(--svc) 50%, var(--qp-line-strong)); background: color-mix(in srgb, var(--qp-ink) 8%, var(--qp-surface));
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--qp-bg) 80%, transparent), 0 0 46px -8px color-mix(in srgb, var(--svc) 60%, transparent); }
.ap-ph__scr { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 10px; border-radius: 20px; background: var(--qp-bg); overflow: hidden; }
.ap-ph__bar { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 14px; }
.ap-ph__bar b { font-weight: 600; color: var(--qp-ink); white-space: nowrap; }
.ap-ph__sim { align-self: flex-start; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--qp-src-sim) 55%, transparent); font-size: 14px; color: var(--qp-src-sim); white-space: nowrap; }
.ap-ring { position: relative; width: 74%; margin: 0 auto; aspect-ratio: 1; }
.ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 9; }
.ap-ring .ap-ring__bg { stroke: color-mix(in srgb, var(--svc) 16%, transparent); }
.ap-ring .ap-ring__v { stroke: var(--svc); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px var(--svc)); }
.v-svc__panel.v-show:not(.is-off) .ap-ring__v { animation: apRing 1.6s var(--v-ease) .3s backwards; }
@keyframes apRing { from { stroke-dashoffset: 264; } }
.ap-ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ap-ring b { font-family: var(--qp-font-mono); font-size: 34px; font-weight: 500; color: var(--qp-ink); }
.ap-ring small { font-size: 14px; color: var(--qp-ink-2); }
.ap-lv { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ap-lv li { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; font-size: 14px; color: var(--qp-ink-2); background: color-mix(in srgb, var(--qp-surface) 80%, transparent); }
.ap-lv li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ap-spark { margin-top: auto; }
.ap-spark svg { display: block; width: 100%; height: 34px; }
.ap-spark path { fill: none; stroke: var(--svc); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 0; }
.v-svc__panel.v-show:not(.is-off) .ap-spark path { animation: apSpark 2.2s var(--v-ease) .5s backwards; }
@keyframes apSpark { from { stroke-dashoffset: 400; } }

/* ── จอแคบ / มือถือ (② ) ── */
@media (min-width: 1001px) and (max-height: 860px) { .rd-legend { margin-top: 30px; } .rd-k { min-height: 32px; padding: 2px 10px; } }
@media (max-width: 1000px) { .v-show--rd .v-show__stage { min-height: 520px; } .ap-dev { min-height: 360px; } }
@media (max-width: 700px) {
  .rd-legend { margin-top: 44px; }
  .rd-k { min-height: 44px; }
  .rd-chart { --gap: 2px; min-height: 230px; }
  .ap-dev { padding-top: 52px; min-height: 380px; }
  .ap-lap { width: 96%; margin-right: 0; margin-bottom: 120px; }
  .ap-ph { width: 46%; right: 0; }
  .v-show__spec { gap: 8px 18px; }
}
.rd .c0 { --c: var(--sim-spec-550); } .rd .c1 { --c: var(--sim-spec-500); } .rd .c2 { --c: var(--sim-spec-660); }
.rd .c3 { --c: var(--sim-spec-400); } .rd .c4 { --c: var(--sim-spec-600); } .rd .c5 { --c: var(--sim-spec-450); }

/* ── ② ปรับ: ทุกเวทีสูงเท่ากันตามความสูงจอ (จอ ≥1001) · แถบเลขบรรทัดเดียว · กระเบื้องสาร 5 คอลัมน์ ── */
@media (min-width: 1001px) { .v-show__stage { height: clamp(400px, calc(100svh - 305px), 560px); min-height: 0; } }
.v-show__spec { flex-wrap: nowrap; gap: 10px 22px; }
.v-show__spec div { gap: 6px; }
.v-show__spec b { font-size: clamp(36px, 2.9vw, 44px); }
.v-show__spec .v-show__spec-p b { font-size: clamp(26px, 2vw, 30px); }
.rd[data-on] .rd-q { opacity: .26; }
@media (max-width: 700px) { .v-show__spec { flex-wrap: wrap; } }
.ap-dev { padding-top: 50px; }

/* ── มือถือ: ทุกเวทีสูงเท่ากัน 600 px · ภาพยืดเต็มช่อง (ไม่มีที่ว่างบน-ล่าง) ── */
@media (max-width: 1000px) {
  .v-show__stage, .v-show--fx .v-show__stage, .v-show--rd .v-show__stage { height: 600px; min-height: 0; justify-content: flex-start; }
  .fx-row { container-type: size; flex: 1 1 auto; padding-top: 44px; }
  .fx-m { flex: 0 0 auto; --vh: min(calc(100cqh - 140px), calc((100cqw - 12px) / 3 * 1.7778)); }
  .fx-in { width: auto; }
  .fx-v { height: var(--vh); width: auto; }
  .ap-dev { min-height: 0; }
}
@media (max-width: 700px) {
  .rd-legend { gap: 6px; margin-top: 50px; }
  .rd-k { padding: 4px 10px; }
  .rd-chart { min-height: 0; }
  .rd-axis { flex-wrap: wrap; }
  .rd-axis a { order: 3; flex-basis: 100%; text-align: center; }
  .ap-lap { margin-bottom: 90px; }
}
.v-show__nw { white-space: nowrap; }
@media (max-width: 1000px) { .fx-row { align-items: center; } .dv-row { padding-top: 100px; } }
.ap-ring { width: 82%; } .ap-ring b { font-size: 30px; } .ap-ring small { margin-top: 2px; }
.v-svc__panel.is-off *, .v-svc__panel.is-off *::before, .v-svc__panel.is-off *::after { animation-play-state: paused !important; }   /* แผงที่ซ่อนอยู่ = หยุดแอนิเมชันวนทั้งหมด (รวมจุดกะพริบป้ายสถานะ) */

/* ── 05 Test (17 ต.ค. 69): 3 จอหุ่นหมุน (แบบแผง 02 · .fx-row/.fx-m/.fx-v ชุดเดียวกัน · หุ่น = /qp/wt-show.* ดึงตอนเปิดแผง) + 9 กลุ่มสารในการ์ดซ้าย ── */
.ts-grp { display: flex; flex-direction: column; gap: 6px; }
.ts-grp__h { margin: 0; font-family: var(--qp-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--qp-ink-2); }
.ts-grp__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.ts-grp__l li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 4px; min-width: 0; padding: 4px 7px 5px; border-radius: 9px; border: 1px solid var(--qp-line); background: var(--qp-surface); transition: border-color .4s, background .4s, box-shadow .4s; }
.ts-grp__l span { grid-column: 1 / -1; white-space: nowrap; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--qp-ink); }
.ts-grp__l small { grid-column: 1; font-size: 14px; line-height: 1.35; color: var(--qp-ink-2); }
.ts-grp__l b { grid-column: 2; font-family: var(--qp-font-mono); font-size: 15px; line-height: 1.2; font-weight: 500; color: var(--svc); }
.ts-grp__l li.is-on { border-color: var(--svc); background: color-mix(in srgb, var(--svc) 16%, var(--qp-surface)); box-shadow: 0 0 18px -6px color-mix(in srgb, var(--svc) 70%, transparent); }
.v-svc__panel .v-show__txt.v-col--test { gap: 12px; }
.v-svc__panel .v-col--test .dt-actions { margin-top: 2px; }
.v-show__txt .ts-spec { justify-content: flex-start; margin-top: 0; padding-top: 8px; gap: 6px 20px; }
.v-show__txt .ts-spec b { font-size: clamp(26px, 2vw, 30px); }
.ts-st .v-show__badges { position: absolute; top: 14px; left: 18px; right: 70px; z-index: 4; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; pointer-events: none; }
.ts-st .v-show__badges .v-show__badge { position: static; }
.ts-duo { position: absolute; inset: 52px 18px 12px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.ts-row { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; gap: 6px 14px; }
.ts-scr { display: contents; }
.ts-scr:nth-child(1) .ts-v { grid-area: 1 / 1; } .ts-scr:nth-child(1) .ts-cap { grid-area: 2 / 1; }
.ts-scr:nth-child(2) .ts-v { grid-area: 1 / 2; } .ts-scr:nth-child(2) .ts-cap { grid-area: 2 / 2; }
.ts-v { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--svc) 28%, var(--qp-line)); transition: border-color .6s var(--v-ease), box-shadow .6s var(--v-ease); }
.ts-scr.is-sel .ts-v { border-color: color-mix(in srgb, var(--svc) 75%, var(--qp-line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--svc) 40%, transparent), 0 26px 60px -32px var(--svc); }
.ts-scr.is-swap .ts-v { animation: tsSwap 1s var(--v-ease); }
@keyframes tsSwap { 0% { box-shadow: 0 0 0 2px var(--svc), 0 0 46px color-mix(in srgb, var(--svc) 60%, transparent); } }
.ts-cap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ts-cap .bm-mol { flex: none; width: 92px; height: 66px; margin: 0; padding: 4px; border-radius: 8px; background: var(--scr); }
.ts-cap .bm-mol canvas { width: 100%; height: 100%; }
.ts-cap__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ts-cg { margin: 0; font-family: var(--qp-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--qp-ink-2); }
.ts-cg span + span { margin-left: 6px; font-family: var(--qp-font-sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.ts-nm { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--qp-ink); overflow-wrap: anywhere; }
.ts-nm.is-long { font-size: 15px; }
.ts-scr.is-sel .ts-nm { color: var(--svc); }
.ts-th { margin: 0; font-size: 14px; line-height: 1.35; color: var(--qp-ink-2); }
.ts-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.ts-foot .bm-legend { position: static; pointer-events: none; }
.ts-foot .bm-legend li { color: var(--qp-ink-2); }
.ts-foot .bm-legend .mk { color: var(--qp-muted); }
.ts-foot .bm-legend line { stroke: var(--qp-ink); }
.ts-foot a { font-size: 14px; color: var(--svc); text-decoration: none; white-space: nowrap; }
.ts-foot a:hover { text-decoration: underline; }
.ts-duo:not(.is-ready) .ts-cap { visibility: hidden; }
@media (min-width: 1001px) and (max-height: 800px) {   /* จอแล็ปท็อปเตี้ย: กล่องกลุ่มบรรทัดเดียว = ชื่อไทย + จำนวน (ชื่ออังกฤษอยู่ใน title + ป้ายกลุ่มบนเวที) */
  .ts-grp__l li { padding: 4px 6px; } .ts-grp__l span { display: none; } .ts-grp__l b { font-size: 14px; }
  .v-svc__panel .v-show__txt.v-col--test { gap: 10px; } }
@media (min-width: 1001px) and (max-height: 780px) { .ts-nm { font-size: 16px; } .ts-nm.is-long { font-size: 14px; } .ts-cap .bm-mol { width: 80px; height: 58px; } }
@media (max-width: 1000px) { .v-show--ts .ts-st { height: 410px; } .ts-grp__l { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) {   /* มือถือ: กลุ่มเป็นแถวเดียวเลื่อนข้าง (ไม่ตัดชื่อ) · คำเตือนงานวิจัยย้ายลงใต้ชื่อสาร (ป้ายบนเหลือ "ภาพประกอบ") */
  .ts-grp__l { display: flex; overflow-x: auto; gap: 6px; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
  .ts-grp__l li { flex: none; } .ts-grp__l small { white-space: nowrap; }
  @media (prefers-reduced-motion: no-preference) { .ts-grp__l { scroll-behavior: smooth; } }
  .v-show--ts .ts-st { height: 520px; } .ts-st .v-show__badges { left: 12px; right: 64px; } .ts-duo { inset: 92px 12px 10px; }
  .ts-row { grid-template-columns: minmax(0, 1fr); } .ts-scr + .ts-scr { display: none; }   /* มือถือ: 1 จอสแกนเต็ม */
  .ts-cap .bm-mol { width: 132px; height: 92px; }   /* มือถือ: โครงสร้างใหญ่ขึ้น ตัวอักษรอะตอมไม่ซ้อน */
  .v-svc__panel .v-show__txt.v-col--test { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .ts-grp__l li { transition: none; } }

/* ══ v0.7.0 · 01 R&D: 1 วันในห้อง NÜX (Crop Steering + คุมสภาพแวดล้อม · ภาพจำลอง ค่าจำลอง) ══
   หัวแผง = หน้าปัดย่อ + เวลา/ช่วง P/ไฟ/CO₂ + บันทึก · พระเอก = กราฟความชื้นวัสดุ 3 ถาด แกน 32–56% ทุก 1% · ใต้กราฟ = แถบ P0–P3 + ไฟ + แถบคุมสภาพแวดล้อม 4 แถบ (แกนเวลา + เคอร์เซอร์เดียวกัน)
   ไทยทั้งหมดเป็น HTML (SVG มีแต่เส้น/พื้น) · ไม่มี JS / ลดการเคลื่อนไหว = ภาพนิ่ง 11:00 (P2) ครบทุกชิ้น · เวทีสูงตามเนื้อหา บีบให้ ≤ 800 px ที่ 1512 (ทุกแผงสูงเท่าแผงสูงสุด) · แถวตัวเลขท้ายอยู่คอลัมน์ข้อความ */
.cs { --cl: var(--sim-spec-600); --cc: var(--sim-spec-400); --cw: var(--sim-spec-500); --r1: var(--sim-spec-550); --r2: var(--sim-spec-500); --r3: var(--sim-spec-450); --vc: 104px; --chh: 340px; }
.v-show__stage.cs { height: auto; }
.cs-title { position: absolute; top: 14px; left: 122px; z-index: 4; margin: 0; font-size: 14px; line-height: 1.6; color: var(--qp-ink-2); white-space: nowrap; }
.cs-title span { font-family: var(--qp-font-mono); letter-spacing: .08em; color: var(--svc); }
.cs-box { position: relative; flex: none; margin-top: 36px; display: flex; flex-direction: column; gap: 4px; }
.v-svc__panel .v-show__txt:has(> .v-show__spec) { justify-content: flex-start; }   /* แผง 01: คอลัมน์ข้อความชิดบน */
.v-svc__panel.v-show > .v-show__stage:not(.cs) { align-self: center; }   /* แผง 02–05 (จัดตำแหน่งเท่านั้น): ทุกแผงสูงเท่าแผง 01 → เวทีอยู่กึ่งกลางแนวตั้ง ไม่โหว่ล่าง */
.v-show__txt > .v-show__spec { flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; margin-top: 6px; }   /* แถวตัวเลขท้ายในคอลัมน์ข้อความ (สไตล์เดิม ชิดซ้าย) */
.v-show__txt > .v-show__spec b { font-size: clamp(26px, 2vw, 30px); }
.v-show__txt > .v-show__spec .v-show__spec-p { flex: 1 1 100%; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-start; gap: 6px; }   /* ก้อนราคาเริ่มต้น = ก้อนเดียว บรรทัดของตัวเอง */
.v-show__txt > .v-show__spec .v-show__spec-p b { font-size: 26px; }
/* S7 · บล็อกปิดการขายใต้แถวราคา (คอลัมน์ข้อความแผง 01) */
.v-svc__panel .v-show__txt:has(> .cs-close) { justify-content: flex-start; gap: 10px; }   /* แผง 01 + 02: คอลัมน์ข้อความชิดบน · ระยะแคบลงให้บล็อกปิดการขายอยู่ในความสูงเดิม */   /* แผง 01: ระยะในคอลัมน์ข้อความแคบลง ให้บล็อกปิดการขายอยู่ในความสูงเวทีเดิม */
.cs-close { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--svc) 18%, var(--qp-line)); }
.cs-close p { margin: 0; }
.cs-close__h { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--qp-ink); }
.cs-close__s { font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.cs-close__s span, .cs-close__l span { white-space: nowrap; }
.cs-close__l span { display: inline-block; }   /* กล่องวลีสูงเท่าบรรทัด (ไม่ทับบรรทัดข้างเคียง) */
.cs-close__l { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--qp-ink); }
.cs-close__l li { position: relative; padding-left: 22px; }
.cs-close__l li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--qp-green); }   /* โทนเดียวกับป้าย "เปิดรับแล้ว" */
.cs-close .dt-go { align-self: flex-start; margin-top: 0; font-size: 14px; }
/* S9 · แผง 02: ตัวเลขรอง + บล็อกที่ 2 (ไม่มีเส้นคั่น) + ลิงก์ 2 อันแถวเดียว */
.cs-fig { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.cs-fig b { font: 500 20px/1.2 var(--qp-font-mono); color: var(--svc); letter-spacing: -.02em; }
.cs-fig small { margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--qp-line-strong); font-size: 14px; color: var(--qp-ink-2); white-space: nowrap; }
.cs-close--b { padding-top: 0; border-top: 0; }
.cs-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.cs-links .dt-go { font-size: 14px; }

/* ── หัวแผง: หน้าปัดย่อ (องค์ประกอบรอง) + สถานะ + บันทึก ── */
.cs-hd { padding-right: 0; }
.cs-h1 { position: absolute; top: -33px; right: 58px; display: flex; align-items: center; gap: 8px; }   /* หน้าปัด + เวลา + ช่วง P อยู่แถวเดียวกับชื่อแผง */
.cs-h2 { display: flex; align-items: baseline; gap: 6px 16px; min-width: 0; }   /* ไฟ/CO₂ + บันทึก 1 บรรทัด */
.cs-dial { flex: 0 0 auto; width: 30px; height: 30px; }
.cs-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cs-rb { fill: none; stroke: color-mix(in srgb, var(--qp-ink) 9%, transparent); }
.cs-seg { fill: none; stroke-linecap: butt; }
.cs-seg--l { stroke: var(--cl); } .cs-seg--c { stroke: var(--cc); opacity: .9; }
.cs-seg--p0 { stroke: color-mix(in srgb, var(--cw) 40%, transparent); } .cs-seg--p1 { stroke: color-mix(in srgb, var(--cw) 70%, transparent); }
.cs-seg--p2 { stroke: var(--cw); } .cs-seg--p3 { stroke: color-mix(in srgb, var(--sim-spec-450) 55%, transparent); stroke-dasharray: 3 3; }
.cs-tick--m { stroke: color-mix(in srgb, var(--qp-ink) 55%, transparent); stroke-width: 3; }
.cs-hand { transform-box: view-box; transform-origin: 100px 100px; }
.cs-hand line { stroke: var(--qp-ink); stroke-width: 5; stroke-linecap: round; }
.cs-hand circle { fill: var(--qp-ink); }
.cs-c { display: flex; align-items: baseline; gap: 4px 10px; white-space: nowrap; }
.cs-clock { font: 500 20px/1.2 var(--qp-font-mono); letter-spacing: -.02em; color: var(--qp-ink); font-variant-numeric: tabular-nums; }
.cs-ph { font-size: 14px; line-height: 1.6; color: var(--qp-ink); }
.cs-ph i { font-style: normal; font-family: var(--qp-font-mono); font-weight: 600; color: var(--cw); }
.cs-sts { flex: 0 0 auto; display: flex; gap: 12px; white-space: nowrap; }
.cs-st { font-size: 14px; line-height: 1.6; color: var(--qp-ink-2); }
.cs-st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; background: var(--k); }
.cs-st--l { --k: var(--cl); } .cs-st--c { --k: var(--cc); }
.cs-st em { font-style: normal; color: var(--qp-ink); }
.cs-night .cs-st--l::before { background: color-mix(in srgb, var(--cl) 30%, transparent); }
.cs-log { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }   /* 1 บรรทัด (ล่าสุด) · หมุดบนแถบคุมทำหน้าที่แทน */
.cs-log li { display: none; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.cs-log li i { display: inline-block; font-style: normal; white-space: nowrap; }
.cs-log li time { flex: 0 0 auto; font-family: var(--qp-font-mono); color: var(--svc); }
.cs-log li.is-cur { display: flex; color: var(--qp-ink); white-space: nowrap; }
.cs-log li.is-cur span::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--svc); animation: xrBlink 1s steps(2, jump-none) infinite; }
@keyframes xrBlink { 50% { opacity: .15; } }

/* ── ตัวกราฟ: คอลัมน์ เลขแกน | พล็อต | ค่า ณ เคอร์เซอร์ · ทุกแถวใช้คอลัมน์พล็อตเดียวกัน = แกนเวลาเดียวกัน ── */
.cs-pl { display: grid; grid-template-columns: 24px minmax(0, 1fr) var(--vc); grid-template-rows: var(--chh) 15px 15px auto 0 auto 18px; column-gap: 8px; row-gap: 2px; margin-top: 6px; }   /* เลข 56 ยื่นขึ้นครึ่งตัว ไม่ชนแถวสถานะ */   /* แถว 5 (เดิมป้ายหมุด) ว่าง: ป้ายย้ายไปขอบบนแถบแรก */
.cs-yl { grid-area: 1 / 1; position: relative; font: 500 14px/1 var(--qp-font-mono); color: color-mix(in srgb, var(--qp-ink-2) 70%, transparent); }
.cs-yt { position: absolute; right: 0; translate: 0 -50%; font-variant-numeric: tabular-nums; }
.cs-yt--5 { color: var(--qp-ink); }
.cs-ch { grid-area: 1 / 2; position: relative; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--qp-surface) 40%, transparent); border: 1px solid color-mix(in srgb, var(--svc) 14%, var(--qp-line)); }
.cs-ch svg, .cs-sp__p svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-gl { stroke: color-mix(in srgb, var(--qp-ink) 6%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cs-gl5 { stroke: color-mix(in srgb, var(--qp-ink) 17%, transparent); }
.cs-fcb { fill: color-mix(in srgb, var(--cw) 16%, transparent); }
.cs-fct { position: absolute; right: 6px; top: calc(var(--fc) - 2px); translate: 0 -100%; font-size: 14px; line-height: 1.2; color: color-mix(in srgb, var(--cw) 75%, var(--qp-ink)); pointer-events: none; }
.cs-ln, .cs-lnf { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cs-ln.k1, .cs-lnf.k1 { stroke: var(--r1); } .cs-ln.k2, .cs-lnf.k2 { stroke: var(--r2); } .cs-ln.k3, .cs-lnf.k3 { stroke: var(--r3); }
.cs-ln.k2 { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--r2) 60%, transparent)); }
.cs-lnfs { opacity: .22; }   /* หลังเคอร์เซอร์ = เงาจาง */
.cs-dot { position: absolute; width: 7px; height: 7px; translate: -50% -50%; border-radius: 50%; background: var(--k); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--k) 75%, transparent); }
.cs-dot.k1 { --k: var(--r1); } .cs-dot.k2 { --k: var(--r2); } .cs-dot.k3 { --k: var(--r3); }
.cs-dot.k2::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--k); opacity: 0; animation: csPing 1.6s ease-out infinite; }
@keyframes csPing { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
/* ค่า ณ เคอร์เซอร์ (ท้ายกราฟ/ท้ายแถบ) = ชื่อเส้นในตัว */
.cs-wv, .cs-sp__v { display: flex; flex-direction: column; justify-content: center; gap: 0; min-width: 0; white-space: nowrap; }
.cs-wv { grid-area: 1 / 3; justify-content: flex-start; gap: 6px; padding-top: 2px; }
.cs-sp__t { font-size: 14px; line-height: 1.3; color: var(--qp-ink-2); }
.cs-wv p, .cs-sp__v p { margin: 0; display: flex; align-items: baseline; gap: 5px; font-size: 14px; line-height: 1.3; color: var(--qp-ink-2); }
.cs-wv p { flex-direction: column; gap: 0; padding-left: 9px; border-left: 3px solid var(--k); }
.cs-wv p.k1 { --k: var(--r1); } .cs-wv p.k2 { --k: var(--r2); } .cs-wv p.k3 { --k: var(--r3); }
.cs-wv b, .cs-sp__v b { font: 500 18px/1.15 var(--qp-font-mono); letter-spacing: -.02em; color: var(--qp-ink); font-variant-numeric: tabular-nums; }
.cs-sp__v b { font-size: 15px; }
.cs-sp__v i { font-style: normal; }
.cs-sp__v p.is-out b { color: var(--qp-warn); }
/* แถบจังหวะน้ำ + ไฟ */
.cs-bd { grid-column: 2; position: relative; border-radius: 4px; overflow: hidden; }
.cs-bd--p { grid-row: 2; border-radius: 4px 4px 0 0; } .cs-bd--l { grid-row: 3; margin-top: -2px; border-radius: 0 0 4px 4px; }   /* จังหวะน้ำ + ไฟ = แถบเดียว 2 ชั้น */
.cs-sg { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--qp-bg); opacity: .55; transition: opacity .3s; }
.cs-sg.is-now { opacity: 1; }
.cs-sg--P0 { background: color-mix(in srgb, var(--cw) 30%, transparent); } .cs-sg--P1 { background: color-mix(in srgb, var(--cw) 55%, transparent); }
.cs-sg--P2 { background: color-mix(in srgb, var(--cw) 22%, transparent); } .cs-sg--P3 { background: color-mix(in srgb, var(--sim-spec-450) 30%, transparent); }
.cs-sg--on { background: color-mix(in srgb, var(--cl) 35%, transparent); } .cs-sg--off { background: color-mix(in srgb, var(--qp-ink) 8%, transparent); }
.cs-dim { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--qp-bg) 45%, transparent) 0 3px, transparent 3px 7px); pointer-events: none; }
.cs-dim i { position: absolute; right: 6px; top: 50%; translate: 0 -50%; }
.cs-sg i, .cs-dim i { position: absolute; top: 50%; translate: 0 -50%; font-style: normal; font-size: 14px; line-height: 1; color: var(--qp-ink); white-space: nowrap; }
.cs-sg i { left: 6px; }
.cs-sl { position: absolute; top: 50%; translate: 0 -50%; font: 600 14px/1 var(--qp-font-mono); color: var(--qp-ink); white-space: nowrap; pointer-events: none; }
.cs-sl--c { translate: -50% -50%; }
/* แถบคุมสภาพแวดล้อม */
.cs-eh { grid-area: 4 / 2 / 5 / 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 14px; margin: 1px 0 0; font-size: 14px; line-height: 1.4; color: var(--qp-ink-2); }
.cs-lgd { display: flex; gap: 12px; white-space: nowrap; }
.cs-lgd i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.cs-lgd i::before { content: ""; width: 12px; height: 0; border-top: 2px solid var(--k); }
.cs-lgd .a { --k: var(--qp-ink-2); } .cs-lgd .l { --k: var(--r2); } .cs-lgd .d { --k: var(--cc); } .cs-lgd .w { --k: var(--qp-warn); } .cs-lgd .w::before { border-top-style: dashed; }
.cs-eh b { font-weight: 500; color: var(--qp-ink); }
.cs-eh > span > i, .cs-eh b > i { font-style: normal; white-space: nowrap; }   /* ตัดบรรทัดได้เฉพาะระหว่างวลี */
.cs-pins { position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 1; pointer-events: none; }   /* ป้ายหมุดบนขอบบนแถบแรก (เส้นในแถบอยู่ต่ำกว่า 37%) */
.cs-pin { position: absolute; top: 0; font-size: 14px; line-height: 1.3; color: var(--qp-ink); white-space: nowrap; }
.cs-pin i { font-style: normal; }
.cs-pin--w { color: var(--qp-warn); } .cs-pin--s { translate: 0 0; } .cs-pin--c { translate: -50% 0; } .cs-pin--e { translate: -100% 0; } .cs-pin--x { translate: 4px 0; display: none; }
.cs-sps { grid-area: 6 / 2 / 7 / 4; display: flex; flex-direction: column; gap: 2px; }
.cs-sp { display: grid; grid-template-columns: minmax(0, 1fr) var(--vc); column-gap: 8px; height: 42px; }
.cs-sp--t { height: 52px; }
.cs-sp--t .cs-sp__v p { line-height: 1.12; } .cs-sp--t .cs-sp__v b { font-size: 14px; }
.cs-sp__p { position: relative; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--qp-surface) 40%, transparent); border: 1px solid color-mix(in srgb, var(--svc) 10%, var(--qp-line)); }
.cs-sp path, .cs-sp line { fill: none; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cs-sp .cs-band { fill: color-mix(in srgb, var(--qp-green) 15%, transparent); stroke: none; }
.cs-tf { fill: color-mix(in srgb, var(--r2) 14%, transparent) !important; stroke: none !important; }
.cs-ta { stroke: var(--qp-ink-2); stroke-width: 1.2 !important; } .cs-tl { stroke: var(--r2); } .cs-td { stroke: var(--cc); }
.cs-tw { stroke: var(--qp-warn) !important; stroke-width: 1.2 !important; stroke-dasharray: 4 3; opacity: .8; }
.cs-tr { stroke: var(--qp-warn) !important; stroke-width: 1.4 !important; stroke-dasharray: 2 3; opacity: .75; }
.cs-vl { stroke: var(--cw); } .cs-cl { stroke: var(--cc); } .cs-dl { stroke: var(--cl); }
.cs-cap { stroke: var(--qp-warn) !important; stroke-width: 1.2 !important; stroke-dasharray: 4 3; opacity: .8; }
.cs-dr { stroke: var(--qp-warn) !important; stroke-width: 1.2 !important; stroke-dasharray: 2 3; opacity: .7; }
.cs-capt { position: absolute; left: 6px; top: 1px; font-size: 14px; line-height: 1.2; color: var(--qp-warn); white-space: nowrap; pointer-events: none; }
.cs-v--l { --k: var(--r2); } .cs-v--d { --k: var(--cc); }
.cs-v--l span, .cs-v--d span { display: inline-flex; align-items: center; gap: 5px; }
.cs-v--a { --k: var(--qp-ink-2); }
.cs-v--a span, .cs-v--l span, .cs-v--d span { display: inline-flex; align-items: center; gap: 5px; }
.cs-v--a span::before, .cs-v--l span::before, .cs-v--d span::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--k); }
.cs-sp--t .cs-sp__t { display: none; }
/* หมุด + ชั่วโมงเสี่ยง + เคอร์เซอร์ */
.cs-ov { grid-area: 5 / 2 / 7 / 3; position: relative; pointer-events: none; }
.cs-pv { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed color-mix(in srgb, var(--qp-ink) 40%, transparent); }
.cs-risk { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--qp-warn) 13%, transparent); border-left: 1px solid color-mix(in srgb, var(--qp-warn) 45%, transparent); border-right: 1px solid color-mix(in srgb, var(--qp-warn) 45%, transparent); }
.cs-risk i { position: absolute; left: 6px; bottom: calc(100% - 18px); font-style: normal; font-size: 14px; line-height: 1.3; color: var(--qp-warn); white-space: nowrap; }
.cs-cw { grid-area: 1 / 2 / 8 / 3; position: relative; pointer-events: none; z-index: 2; }
.cs-cur { position: absolute; top: 0; bottom: 0; width: 1px; translate: -.5px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--qp-ink) 70%, transparent) 4%, color-mix(in srgb, var(--qp-ink) 70%, transparent) 96%, transparent); }
.cs-ax { grid-area: 7 / 2; position: relative; font: 500 14px/1.3 var(--qp-font-mono); color: var(--qp-ink-2); white-space: nowrap; }
.cs-hl { position: absolute; top: 0; translate: -50% 0; }
.cs-hl--s { left: 0; translate: 0 0; } .cs-hl--e { right: 0; translate: 0 0; }

/* ── ข้อความฝั่งซ้าย: ตัวเลขชูโรง + ประโยคส่งท้าย ── */
.cs-pro { margin: 2px 0 0; font-size: 15px; line-height: 1.7; color: var(--qp-ink-2); }
.cs-pro span { white-space: nowrap; }
.cs-pro b { font-family: var(--qp-font-mono); font-size: 22px; font-weight: 500; color: var(--svc); }
.cs-end { margin: 0; padding-left: 12px; border-left: 2px solid var(--svc); font-size: 16px; line-height: 1.55; color: var(--qp-ink); }

/* ── จอแคบ (มือถือ): เลขแกนทุก 2% · ค่า ณ เคอร์เซอร์ขึ้นไปอยู่บนแถบ · แถบเตี้ย ~76 px ── */
@media (max-width: 700px) {
  .cs { --chh: 230px; }
  .cs-title span { display: none; }
  .cs-title { left: 118px; }
  .cs-box { margin-top: 38px; }
  .cs-hd { padding-right: 0; }
  .cs-h1 { position: static; gap: 12px; }
  .cs-dial { width: 56px; height: 56px; }
  .cs-clock { font-size: 24px; }
  .cs-c { flex-wrap: wrap; }
  .cs-h2 { flex-wrap: wrap; }
  .cs-pl { margin-top: 0; }
  .cs-log { flex-basis: 100%; min-height: 44px; padding-top: 2px; }
  .cs-log li.is-cur { white-space: normal; }
  .cs-pl { grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto var(--chh) 16px 16px auto 0 auto 18px; }
  .cs-yt--o { display: none; }
  .cs-wv { grid-area: 1 / 2; flex-direction: row; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 0; }
  .cs-wv > .cs-sp__t { flex-basis: 100%; }
  .cs-wv p { flex-direction: row; align-items: baseline; gap: 4px; padding-left: 6px; }
  .cs-wv b { font-size: 16px; }
  .cs-yl, .cs-ch { grid-row: 2; } .cs-bd--p { grid-row: 3; } .cs-bd--l { grid-row: 4; }
  .cs-eh { grid-area: 5 / 1 / 6 / 3; display: block; line-height: 1.75; }
  .cs-eh > span { display: block; } .cs-lgd { display: flex !important; margin-top: 2px; }
  .cs-pin--mh { display: none; }   /* มือถือ: ป้ายหมุดที่ชนกันซ่อน (เส้นยังอยู่ · บันทึกบอกครบ) */
  .cs-sl--p0 { display: none; }   /* มือถือ: ช่วง P0 แคบ 1 ชม. → ป้าย P0 ชน P1 (ช่วงสียังอยู่) */
  .cs-sps { grid-area: 7 / 2 / 8 / 3; gap: 6px; }
  .cs-sp, .cs-sp--t { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 2px; height: 78px; }
  .cs-sp__v { grid-row: 1; flex-direction: row; justify-content: flex-start; gap: 10px; align-items: baseline; }
  .cs-sp--t .cs-sp__v { justify-content: flex-start; padding: 0; }
  .cs-sp--t .cs-sp__t { display: none; }
  .cs-sp__v b, .cs-sp--t .cs-sp__v b { font-size: 14px; }
  .cs-sp__p { grid-row: 2; }
  .cs-ov { grid-area: 6 / 2 / 8 / 3; }
  .cs-cw { grid-area: 2 / 2 / 9 / 3; }
  .cs-ax { grid-area: 8 / 2; }
  .cs-sp--t .cs-sp__p { position: relative; }
}

/* ══ v0.8.3 · 03 Device: ห้องปลูก ↔ ชุดอุปกรณ์ ↔ แอป · 5 ฉาก (วัด · ตัดสินในห้อง · สั่ง + ตอบรับ · เน็ตหลุด · ผิดปกติ) ══
   ระดับทั้งชุด · ไทยทั้งหมดเป็น HTML (SVG มีแต่เส้น)
   สถานะฉาก = data-sc บนเวที → ปุ่มฉาก · คำบรรยาย · ไฮไลต์อุปกรณ์ ตรงกันเสมอ · ไม่มี JS / ลดการเคลื่อนไหว = ภาพนิ่งฉาก 3 */
.v-show__stage.nv { height: auto; min-height: clamp(400px, calc(100svh - 305px), 560px); align-self: stretch; --nv-w: var(--qp-warn); --nv-c: var(--qp-crit); --nv-g: var(--qp-green); --nv-i: var(--qp-info); }
.v-svc__panel.v-show > .v-show__stage.nv { align-self: stretch; }
.nv-steps { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 56px 0; }
.nv-st { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid var(--qp-line); background: color-mix(in srgb, var(--qp-surface) 70%, transparent); color: var(--qp-ink-2); font: inherit; font-size: 14px; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: border-color .4s, color .4s, background .4s; }
.nv-st b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 500 14px/1 var(--qp-font-mono); color: var(--qp-ink-2); background: color-mix(in srgb, var(--qp-ink) 8%, transparent); }
.nv-st.is-on { border-color: var(--svc); color: var(--qp-ink); background: color-mix(in srgb, var(--svc) 14%, var(--qp-surface)); }
.nv-st.is-on b { background: var(--svc); color: var(--qp-bg); }
.nv-st:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 2px; }

.nv-sc { position: relative; z-index: 2; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, .8fr) minmax(0, .6fr); grid-template-areas: "room set out"; align-items: center; gap: 24px; min-height: 300px; margin: 12px 0 8px; }
.nv-ln { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.nv-ln path { fill: none; }
.nv-ln__b { stroke: color-mix(in srgb, var(--svc) 18%, transparent); stroke-width: 8; filter: blur(3px); }
.nv-ln__f { stroke: color-mix(in srgb, var(--svc) 70%, transparent); stroke-width: 1.6; stroke-dasharray: 4 8; animation: dvDash 1.6s linear infinite; }
.nv-ln--n.nv-ln__f { stroke-dasharray: 2 7; }
.nv[data-sc="4"] .nv-ln--n { stroke: color-mix(in srgb, var(--nv-c) 55%, transparent); opacity: .5; animation: none; }
.nv-cut { position: absolute; z-index: 3; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; font-size: 14px; line-height: 1; color: var(--nv-c); border: 1.5px solid var(--nv-c); background: var(--qp-bg); opacity: 0; transition: opacity .4s; }
.nv[data-sc="4"] .nv-cut { opacity: 1; }
.nv-dt { position: absolute; left: 0; top: 0; z-index: 3; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--svc); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--svc) 60%, transparent); offset-rotate: 0deg; opacity: 0; }
.nv-dt--dn { background: var(--nv-i); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--nv-i) 60%, transparent); }
.nv-dt--nt { background: var(--qp-ink-2); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--qp-ink) 30%, transparent); }
.nv.is-ln:is([data-sc="1"], [data-sc="4"]) .nv-dt--up { opacity: 1; animation: nvGo 1.2s linear infinite; }
.nv.is-ln[data-sc="1"] .nv-dt--nt { opacity: 1; animation: nvGo 1.2s .6s linear infinite backwards; }
.nv.is-ln[data-sc="3"] .nv-dt--dn { animation: nvDn 3.6s linear infinite; }
.nv.is-ln[data-sc="3"] .nv-dt--up { animation: nvAck 3.6s linear infinite; }
.nv.is-ln[data-sc="5"] .nv-dt--nt { --nv-a: var(--nv-w); background: var(--nv-w); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--nv-w) 60%, transparent); opacity: 1; animation: nvGo .9s linear infinite; }
@keyframes nvGo { from { offset-distance: 0%; opacity: 1; } 90% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
@keyframes nvDn { 0% { offset-distance: 100%; opacity: 1; } 40% { offset-distance: 0%; opacity: 1; } 42%, 100% { offset-distance: 0%; opacity: 0; } }
@keyframes nvAck { 0%, 52% { offset-distance: 0%; opacity: 0; } 54% { opacity: 1; } 92% { offset-distance: 100%; opacity: 1; } 94%, 100% { offset-distance: 100%; opacity: 0; } }

.nv-tag { position: absolute; top: 8px; left: 12px; z-index: 2; font-size: 14px; line-height: 1.3; color: var(--qp-ink-2); white-space: nowrap; }
/* ห้องปลูก (ภาพตัด) */
.nv-room { grid-area: room; position: relative; z-index: 1; align-self: stretch; min-height: 300px; display: flex; gap: 12px; padding: 36px 12px 12px; border: 1.5px solid color-mix(in srgb, var(--svc) 30%, var(--qp-line-strong)); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--qp-surface) 75%, transparent), color-mix(in srgb, var(--svc) 5%, transparent)); overflow: hidden; transition: border-color .5s, box-shadow .5s; }
.nv[data-sc="5"] .nv-room:has(.nv-v[data-st="out"]) { border-color: var(--nv-w); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-w) 18%, transparent), inset 0 0 40px -10px color-mix(in srgb, var(--nv-w) 45%, transparent); }
.nv-rack { position: relative; flex: 1 1 auto; min-width: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0; border-left: 3px solid var(--qp-line-strong); border-right: 3px solid var(--qp-line-strong); }
.nv-tier { position: relative; border-bottom: 3px solid var(--qp-line-strong); }
.nv-lt { position: absolute; top: 5px; left: 7%; right: 7%; height: 4px; border-radius: 2px; background: var(--svc); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--svc) 70%, transparent), 0 14px 26px -6px color-mix(in srgb, var(--svc) 40%, transparent); transition: opacity .8s, box-shadow .8s; }
.nv[data-light="dim"] .nv-lt { opacity: .55; box-shadow: 0 0 8px 0 color-mix(in srgb, var(--svc) 55%, transparent), 0 12px 22px -8px color-mix(in srgb, var(--svc) 30%, transparent); }
.nv[data-light="off"] .nv-lt { opacity: .12; box-shadow: none; }
.nv[data-light="off"] .nv-room { background: color-mix(in srgb, var(--qp-bg) 85%, transparent); }
.nv[data-light="off"] .nv-pl { opacity: .5; }
.nv-pl { --pw: 7px; --ph: 7px; --pg: 18px; position: absolute; left: 5%; right: 5%; bottom: 1px; height: calc(var(--ph) * 2 + 2px); transition: opacity .8s;
  background: radial-gradient(ellipse var(--pw) var(--ph) at 50% 100%, color-mix(in srgb, var(--nv-g) 80%, transparent) 70%, transparent 72%) 0 100% / var(--pg) 100% repeat-x; opacity: .95; }
.nv-tier:nth-child(2) .nv-pl { --pw: 10px; --ph: 11px; --pg: 24px; }
.nv-tier:nth-child(3) .nv-pl { --pw: 13px; --ph: 16px; --pg: 30px; }
.nv-wt { position: absolute; left: 5%; right: 5%; top: 14px; height: 18px; opacity: 0;
  background: radial-gradient(circle 2px at 50% 50%, var(--nv-i) 90%, transparent 100%) 0 0 / 26px 9px repeat; }
.nv[data-sc="3"] .nv-wt { animation: nvRain 1.1s linear infinite; }
@keyframes nvRain { from { opacity: .9; background-position: 0 0; } to { opacity: .2; background-position: 0 18px; } }
.nv-scan { position: absolute; top: 36px; bottom: 12px; left: 0; width: 2px; z-index: 1; background: linear-gradient(180deg, transparent, var(--svc), transparent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--svc) 45%, transparent); opacity: 0; }
.nv:is([data-sc="1"], [data-sc="4"]) .nv-scan { opacity: 1; animation: nvScan 2.4s ease-in-out infinite alternate; }
@keyframes nvScan { from { left: 3%; } to { left: 57%; } }
/* ค่าห้อง (จำลอง) บนภาพตัด */
.nv-vals { flex: 0 0 auto; width: 42%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6px; position: relative; z-index: 2; }
.nv-vals p { margin: 0; }
.nv-src { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--qp-ink-2); }
.nv-src small { margin-left: 4px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--qp-line-strong); font-size: 14px; color: var(--qp-src-sim); }
.nv-v { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; padding: 5px 7px 6px 17px; border-radius: 10px; border: 1px solid var(--qp-line); background: color-mix(in srgb, var(--qp-bg) 70%, transparent); transition: border-color .4s, background .4s; }
.nv-v span { font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); white-space: nowrap; }
.nv-v b { font: 500 21px/1.3 var(--qp-font-mono); letter-spacing: -.02em; color: var(--qp-ink); font-variant-numeric: tabular-nums; }
.nv-v::before { content: ""; position: absolute; left: 7px; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--qp-line-strong); }
.nv-v[data-st="ok"]::before { background: var(--nv-g); box-shadow: 0 0 6px var(--nv-g); }
.nv-v[data-st="out"] { border-color: var(--nv-w); background: color-mix(in srgb, var(--nv-w) 14%, var(--qp-bg)); }
.nv-v[data-st="out"]::before { background: var(--nv-w); box-shadow: 0 0 8px var(--nv-w); }
.nv-v[data-st="out"] b { color: var(--nv-w); }
.nv-tag b { font: 500 14px/1 var(--qp-font-mono); color: var(--qp-ink); } .nv-tag i { font-style: normal; color: var(--svc); }

/* ชุดอุปกรณ์ (ก้อนเดียว · ไฮไลต์ตามหน้าที่ในฉาก) */
.nv-set { grid-area: set; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 10px 12px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--svc) 45%, var(--qp-line)); background: color-mix(in srgb, var(--qp-surface) 80%, transparent); box-shadow: 0 20px 50px -30px var(--svc); transition: box-shadow .5s; }
.nv[data-sc="2"] .nv-set, .nv[data-sc="4"] .nv-set { box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc) 22%, transparent), 0 20px 60px -24px var(--svc); }
.nv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 4px; width: 100%; }
.nv-d { display: grid; grid-template-rows: 42px auto; justify-items: center; align-items: center; gap: 2px; min-width: 0; opacity: .42; transition: opacity .45s; }
.nv-d .dv-ico { zoom: .52; }
.nv-d b { font: 500 14px/1.2 var(--qp-font-mono); letter-spacing: .04em; color: var(--qp-ink-2); }
.nv-d.is-on { opacity: 1; }
.nv-d.is-on .dv-ico { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--svc) 75%, transparent)); }
.nv-d.is-on b { color: var(--qp-ink); }
.nv-think { min-height: 24px; padding: 2px 10px; border-radius: 12px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--qp-ink); background: color-mix(in srgb, var(--svc) 16%, transparent); opacity: 0; transition: opacity .4s; }
.nv:is([data-sc="2"], [data-sc="4"]) .nv-think { opacity: 1; }
.nv-set.is-beat { animation: nvBeat .7s var(--v-ease); }
@keyframes nvBeat { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--svc) 30%, transparent), 0 20px 60px -20px var(--svc); } }

/* นอกห้อง */
.nv-out { grid-area: out; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 30px; }
.nv-out .nv-tag { left: 50%; top: 0; transform: translateX(-50%); }
.nv-app { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--svc); background: var(--v-glass); font-size: 14px; line-height: 1.3; color: var(--qp-ink); text-align: center; transition: border-color .4s; }
.nv-app i { width: 14px; height: 22px; border-radius: 3px; border: 1.5px solid var(--svc); }
.nv-app em { font-style: normal; font-size: 14px; line-height: 1.5; display: none; }
.nv-app__ok small { display: block; }
.nv-app__ok { color: var(--qp-ink-2); } .nv-app__ok small { font-size: 14px; color: var(--qp-src-sim); }
.nv-app__off { color: var(--nv-c); } .nv-app__al { color: var(--nv-w); font-weight: 600; }
.nv:not([data-sc="4"]):not([data-sc="5"]) .nv-app__ok, .nv[data-sc="4"] .nv-app__off, .nv[data-sc="5"] .nv-app__al { display: block; }
.nv[data-sc="4"] .nv-app { border-color: var(--nv-c); opacity: .75; }
.nv[data-sc="5"] .nv-app { border-color: var(--nv-w); box-shadow: 0 0 18px -4px var(--nv-w); }
.nv-net { font-size: 14px; color: var(--qp-muted); white-space: nowrap; }

/* บันทึกของห้อง (แบบแผง 01) */
.nv-log { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; min-height: 76px; margin: 0; padding: 8px 12px; list-style: none; border-radius: 12px; border: 1px solid var(--qp-line); background: color-mix(in srgb, var(--qp-bg) 60%, transparent); min-height: 87px; }
.nv-log li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); opacity: .28; transition: opacity .4s, color .4s; }
.nv-log li.is-in { opacity: 1; color: var(--qp-ink); }
.nv-log time { flex: none; font-family: var(--qp-font-mono); color: var(--svc); }
.nv[data-sc="5"] .nv-log li.is-in time { color: var(--nv-w); }
/* คำบรรยายฉาก */
.nv-cap { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; margin: 8px 0 0; min-height: 30px; text-align: center; }
.nv-cap__n { font-size: 18px; font-weight: 600; color: var(--qp-ink); white-space: nowrap; }
.nv-cap__d { font-size: 15px; line-height: 1.5; color: var(--qp-ink-2); }
.nv-cap.is-swap > * { animation: shIn .5s var(--v-ease) backwards; }

/* คอลัมน์ซ้าย: บรรทัดเงื่อนไขใต้บล็อกปิดการขาย */
.nv-tn { margin-top: 2px !important; color: var(--qp-muted); }
.v-svc__panel .v-col--dev.v-show__txt { justify-content: flex-start; gap: 10px; }

/* จอแคบ */
@media (max-width: 1000px) {
  .v-show--dv .v-show__stage.nv { height: auto; min-height: 0; }
  .nv-room { min-height: 300px; }
  .nv-sc { gap: 28px; }
}
@media (max-width: 700px) {
  .nv-steps { margin: 40px 0 0; gap: 5px; }
  .nv-st { padding: 3px 10px 3px 4px; min-height: 34px; }
  .nv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-sc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "room room" "set out"; gap: 30px 16px; min-height: 0; }
  .nv-room { flex-direction: column; min-height: 0; padding: 34px 10px 10px; }
  .nv-rack { flex: none; height: 150px; }
  .nv-vals { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-v { padding-right: 6px; gap: 4px; }
  .nv-v b { font-size: 18px; }
  .nv-log { min-height: 150px; }
  .nv-think { min-height: 46px; display: grid; place-items: center; }
  .nv-set { padding: 30px 6px 10px; }
  .nv-think { white-space: normal; text-align: center; }
  .nv-cap { min-height: 76px; align-content: flex-start; }
  @keyframes nvScan { from { left: 3%; } to { left: 95%; } }
  .nv-scan { bottom: auto; height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .nv-dt { display: none; } }
.nv.is-paused * { animation-play-state: paused !important; }

/* ══ v0.8.4 · 04 App: กราฟแผง 01 ในหน้าจอแอป (ย่อ) + ความสามารถของแอปซ้อนทีละฉาก · ไทยทั้งหมดเป็น HTML ══ */
.v-show__stage.ax { height: auto; min-height: clamp(400px, calc(100svh - 305px), 560px); align-self: stretch; --nv-w: var(--qp-warn); --nv-c: var(--qp-crit); --nv-g: var(--qp-green); }
.v-svc__panel.v-show > .v-show__stage.ax { align-self: stretch; }
.ax-win { position: relative; z-index: 2; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin-top: 40px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--svc) 40%, var(--qp-line)); background: color-mix(in srgb, var(--qp-surface) 88%, transparent); box-shadow: 0 30px 70px -40px var(--svc); overflow: hidden; }
.ax-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--qp-line); font-size: 14px; line-height: 1.4; color: var(--qp-ink-2); white-space: nowrap; }
.ax-bar > i { width: 34px; height: 8px; border-radius: 4px; background: radial-gradient(circle 4px at 4px 4px, var(--qp-line-strong) 90%, transparent) 0 0 / 13px 8px repeat-x; }
.ax-bar > b { color: var(--qp-ink); font-weight: 600; }
.ax-bar .ax-clk { font: 500 14px/1 var(--qp-font-mono); color: var(--qp-ink); }
.ax-bar em { margin-left: auto; padding: 0 8px; border-radius: 999px; border: 1px solid var(--qp-line-strong); font-style: normal; color: var(--qp-src-sim); }
.ax-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--qp-line); }
.ax-st { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 12px 3px 5px; border-radius: 999px; border: 1px solid var(--qp-line); background: none; color: var(--qp-ink-2); font: inherit; font-size: 14px; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: background .4s, color .4s, border-color .4s; }
.ax-st b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font: 500 14px/1 var(--qp-font-mono); background: color-mix(in srgb, var(--qp-ink) 8%, transparent); }
.ax-st.is-on { color: var(--qp-ink); border-color: var(--svc); background: color-mix(in srgb, var(--svc) 14%, transparent); }
.ax-st.is-on b { background: var(--svc); color: var(--qp-bg); }
.ax-st:focus-visible { outline: 2px solid var(--qp-green); outline-offset: 2px; }
.ax-main { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 10px; }
.ax-top { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-height: 30px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.ax-ttl { margin-right: auto; }
.ax-score, .ax-chips { display: none; }
.ax[data-sc="1"] .ax-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--svc); color: var(--qp-ink); background: color-mix(in srgb, var(--svc) 12%, transparent); }
.ax-score b { font: 500 20px/1.4 var(--qp-font-mono); color: var(--svc); }
.ax[data-sc="5"] .ax-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ax-chips i { font-style: normal; padding: 0 10px; border-radius: 999px; border: 1px solid var(--qp-line-strong); color: var(--qp-ink-2); white-space: nowrap; }
.ax[data-sc="5"]:not(.is-wk) .ax-chips i:first-child, .ax.is-wk .ax-chips i:nth-child(2) { border-color: var(--svc); color: var(--qp-ink); background: color-mix(in srgb, var(--svc) 14%, transparent); }
.ax[data-sc="5"] .ax-ttl, .ax[data-sc="1"] .ax-ttl { display: none; }
/* กราฟแผง 01 (ย่อ) */
.ax-slot { position: relative; }
.ax .cs.ax-cs { --chh: 140px; }
.ax-cs .cs-eh, .ax-cs .cs-fct { display: none; }   /* แถวคำอธิบายเส้น + ป้ายจุดอิ่มน้ำ (กราฟเตี้ยแล้วป้ายชนขอบบน) */
.ax.is-wk .ax-cs { visibility: hidden; }
.ax-cs .cs-hd { display: none; }
.ax-cs .cs-box { margin-top: 0; }
.ax-cs .cs-yt:not(.cs-yt--5) { display: none; }
.ax-cs .cs-sp__p { position: relative; }
.ax-pin { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px solid var(--svc); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
.ax-pin::after { content: ""; position: absolute; left: -7px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--svc); box-shadow: 0 0 10px var(--svc); }
.ax-pin.is-in { opacity: 1; }
.ax-pin--w { border-color: var(--nv-w); } .ax-pin--w::after { background: var(--nv-w); box-shadow: 0 0 10px var(--nv-w); }
.ax-spike { fill: none; stroke: var(--nv-w); stroke-width: 2.5; vector-effect: non-scaling-stroke; opacity: 0; }
.ax:is([data-sc="4"], [data-sc="5"]) .ax-spike { opacity: 1; }
/* การ์ดเหตุผล / ใบตอบรับ (วางชี้หมุดด้วย JS) */
.ax-card { position: absolute; z-index: 5; display: flex; visibility: hidden; flex-direction: column; gap: 4px; max-width: 330px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--svc); background: color-mix(in srgb, var(--qp-surface) 94%, transparent); box-shadow: 0 16px 40px -16px rgb(0 0 0 / .5); font-size: 14px; line-height: 1.5; color: var(--qp-ink-2); }
.ax-card p { margin: 0; } .ax-card b { color: var(--qp-ink); }
.ax-card__s { color: var(--svc); }
.ax.is-hit[data-sc="2"] .ax-card--2, .ax.is-hit[data-sc="3"] .ax-card--3 { visibility: visible; }
.ax-rc__s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.ax-rc__s li { display: flex; flex-direction: column; padding: 3px 8px; border-radius: 8px; border: 1px dashed var(--qp-line-strong); white-space: nowrap; }
.ax-rc__s li.is-in { border-style: solid; border-color: var(--nv-g); color: var(--qp-ink); }
.ax-rc__s li:last-child.is-in span { color: var(--nv-g); font-weight: 600; }
.ax-rc__s time { font-family: var(--qp-font-mono); }
/* แจ้งเตือนในแอป */
.ax-al { display: none; flex-direction: column; gap: 2px; padding: 6px 12px; box-shadow: 0 12px 30px -12px rgb(0 0 0 / .6); border-radius: 10px; border: 1.5px solid var(--nv-w); background: color-mix(in srgb, var(--nv-w) 16%, var(--qp-surface)); font-size: 14px; line-height: 1.5; color: var(--qp-ink); }
.ax[data-sc="4"] .ax-al { display: flex; }
.ax[data-sc="4"] .ax-top { display: none; }
.ax-al p { margin: 0; } .ax-al b { color: var(--nv-w); }
.ax-al span { display: inline-block; white-space: nowrap; }
.ax-ack { display: inline-block; font-style: normal; padding: 0 12px; border-radius: 999px; background: var(--nv-w); color: var(--qp-bg); font-weight: 600; }
.ax-ack__d { display: none !important; color: var(--nv-g); font-weight: 600; }
.ax.is-ack .ax-ack { display: none; } .ax.is-ack .ax-ack__d { display: inline-block !important; }
/* 7 วัน */
.ax-wk { position: absolute; z-index: 4; left: 12px; right: 12px; top: 44px; bottom: 10px; display: none; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--qp-line); background: var(--qp-surface); }
.ax.is-wk .ax-wk { display: flex; }
.ax-wk__h { margin: 0; font-size: 14px; line-height: 1.5; color: var(--qp-ink); }
.ax-wk svg { flex: 1 1 auto; width: 100%; min-height: 0; }
.ax-wk path { fill: none; stroke: var(--sim-spec-500); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ax-wk__x { display: flex; justify-content: space-around; margin: 0; font-size: 14px; color: var(--qp-ink-2); }
.ax-cap { min-height: 30px; }
.v-svc__panel .v-col--app.v-show__txt { justify-content: flex-start; gap: 10px; }

@media (max-width: 1000px) { .v-show--ap .v-show__stage.ax { height: auto; min-height: 0; } }
@media (max-width: 700px) {
  .ax-win { margin-top: 44px; }
  .ax-tabs { gap: 4px; padding: 8px 6px; }
  .ax-st { padding: 2px 8px 2px 4px; }
  .ax-main { padding: 8px 8px 10px; }
  .ax-top, .ax-al { min-height: 100px; align-content: flex-start; }
  .ax .cs.ax-cs { --chh: 190px; }
  .ax-card { max-width: calc(100% - 16px); }
  .ax-wk { left: 8px; right: 8px; }
  .ax-cap { min-height: 76px; align-content: flex-start; }
}
