/* NÜXGROW App · การจัดวางของแอป (v0.3.0 → v0.4.0 ห้องควบคุม/เครื่องคิด/พอร์ทัลใหม่ → v0.6.2 มืดทั้งแอป + deeptech) · สี/ตัวอักษร/ระยะ ใช้ตัวแปร --qp-* เท่านั้น (ห้ามใส่สีตรง · กติกาแอป) */
.nx-top { border-bottom: 1px solid var(--qp-line); background: var(--qp-surface); position: sticky; top: 0; z-index: 5; }
.nx-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.nx-brand { text-decoration: none; color: inherit; }
.nx-top__r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nx-who { font-size: var(--qp-t-12); }
.nx-switch { display: inline-flex; align-items: center; gap: 8px; }
.nx-switch select, .nx-input { font: inherit; color: var(--qp-ink); background: var(--qp-surface); border: 1px solid var(--qp-line-strong); border-radius: var(--qp-r-ctl); padding: 8px 10px; min-height: 40px; max-width: 100%; }
.nx-switch select { max-width: 60vw; }
.nx-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.nx-nav::-webkit-scrollbar { display: none; }
.nx-nav__a { flex: 0 0 auto; text-decoration: none; color: var(--qp-ink-2); padding: 8px 12px; border-radius: var(--qp-r-ctl); white-space: nowrap; font-size: var(--qp-t-15); }
.nx-nav__a:hover { background: var(--qp-surface-2); }
.nx-nav__a.is-on { background: var(--qp-green-t); color: var(--qp-green-d); font-weight: 600; }
.nx-main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.nx-head { margin-bottom: 20px; }
/* หัวข้อเล็ก = qp-kicker ของ Quiet Precision v0.2 (ไม่ถ่างตัวไทยแล้ว · เลิกใช้ nx-kicker ตัวแก้ชั่วคราวของ v0.2.0) · ที่นี่ตั้งแค่ระยะ */
.qp-kicker { margin: 0 0 4px; }
.nx-h { margin-top: 36px; }
.nx-gap { margin-top: 16px; }
.nx-sec { margin-top: 32px; }
.nx-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.nx-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--qp-line); border-radius: var(--qp-r-ctl); background: var(--qp-surface); }
.nx-scroll .qp-table { min-width: 560px; }
/* ตารางกว้าง (รอบปลูก 11 คอลัมน์): ไม่ตัดบรรทัดในช่อง → มือถือเลื่อนข้างในกรอบแทนการบีบวันที่/รหัสแตกหลายบรรทัด */
.nx-table--wide th, .nx-table--wide td { white-space: nowrap; }
.nx-empty { border: 1px dashed var(--qp-line-strong); border-radius: var(--qp-r-ctl); padding: 20px; background: var(--qp-surface); }
.nx-empty p { margin: 0 0 6px; }
.nx-tools { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.nx-tools .nx-input { flex: 1 1 260px; }
.nx-tools--wrap { flex-wrap: wrap; }
.nx-doors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* R2a (A6) แถบห้องของฉัน บนห้องควบคุม: ห้องจริงของบริษัท แถวละห้อง · มือถือขึ้นบรรทัดใหม่เอง */
.nx-mine__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-mine__r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 0; border-top: 1px solid var(--qp-line); }
.nx-mine__r:first-child { border-top: 0; }
.nx-mine__n { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.nx-mine__s { display: inline-flex; align-items: center; gap: 6px; }
.nx-mine__go { margin-left: auto; }
.nx-tile-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.nx-points { display: grid; gap: 8px; margin-top: 12px; }
.nx-point { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; border-top: 1px solid var(--qp-line); padding-top: 8px; }
.nx-point__v { font-size: var(--qp-t-24); }
.nx-small { font-size: var(--qp-t-12); }
.nx-src-txt { font-size: var(--qp-t-12); overflow-wrap: anywhere; }   /* ลิงก์/DOI ยาวหักได้ · คำไทยไม่ถูกบังคับหักกลางคำ */
.nx-check-out { margin-top: 8px; }
.nx-foot { padding-bottom: 32px; font-size: var(--qp-t-12); }
/* ═══ v0.4.0 · คลาสใช้แค่ในแอป (ไม่แตะไฟล์ระบบออกแบบกลาง) · สี = var(--qp-*) เท่านั้น ═══ */
.nx-slot { display: contents; }
.nx-small { line-height: 1.5; }
.nx-unit { font-family: var(--qp-font-sans); font-size: var(--qp-t-12); }
@keyframes nx-flash { 0% { background-color: color-mix(in srgb, var(--qp-gold) 45%, transparent); } 100% { background-color: transparent; } }
.nx-flash { animation: nx-flash 1s var(--qp-ease) 1; border-radius: 4px; }
.nx-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--qp-ok); }
.nx-dot--ok { background: var(--qp-ok); } .nx-dot--sim { background: transparent; border: 1.5px dashed var(--qp-src-sim); } .nx-dot--info { background: var(--qp-info); } .nx-dot--warn { background: var(--qp-warn); } .nx-dot--crit { background: var(--qp-crit); }
/* พอร์ทัล */
.nx-hero__ctl { color: var(--qp-ink); background: var(--qp-surface); }
:root[data-qp-theme="dark"] .nx-hero__ctl { border-color: color-mix(in srgb, var(--qp-gold) 45%, transparent); }
.nx-hero__chart { margin-top: 6px; }
.nx-hero__chart .nx-chart { height: 72px; margin-top: 4px; }
.nx-hero__row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--qp-t-15); }
.nx-hero__rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--qp-line); font-size: var(--qp-t-13); }
.nx-hero__room { display: grid; grid-template-columns: 10px auto 1fr auto; gap: 6px; align-items: center; }
.nx-hero__room > :nth-child(3) { justify-self: end; }
.nx-hero__room > * { white-space: nowrap; }
.nx-ticks { margin: 2px 0 0; padding-left: 18px; }
.nx-jumps { grid-auto-rows: auto; }
.nx-jump__go { margin-top: auto; font-size: var(--qp-t-13); }
.nx-details { border: 1px solid var(--qp-line); border-radius: var(--qp-r-ctl); padding: 14px 16px; background: var(--qp-surface); }
.nx-details > summary { cursor: pointer; }
/* กราฟ SVG (ไม่มีข้อความข้างใน) */
.nx-chart { display: block; width: 100%; height: 64px; overflow: visible; }
.nx-line { fill: none; stroke: var(--qp-data-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.nx-band { fill: var(--qp-ok); fill-opacity: .16; }
.nx-night { fill: var(--qp-line); fill-opacity: .7; }
.nx-cap { stroke: var(--qp-warn); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
/* ห้องควบคุม (โหมดมืด) */
.nx-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; border: 1px solid var(--qp-line); border-radius: 10px; background: var(--qp-surface); font-size: var(--qp-t-15); }
.nx-strip__t { font-weight: 600; }
.nx-strip__r { margin-left: auto; font-size: var(--qp-t-12); }
.nx-ctl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--qp-s-4); margin-top: var(--qp-s-4); }
.nx-pn { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nx-pn--a { grid-column: span 5; } .nx-pn--b { grid-column: span 4; } .nx-pn--c { grid-column: span 3; }
.nx-pn--d { grid-column: span 8; } .nx-pn--e { grid-column: span 4; } .nx-pn--f { grid-column: 1 / -1; }
.nx-big .qp-stat__v small { font-family: var(--qp-font-sans); }
.nx-lstate { font-family: var(--qp-font-sans); font-size: var(--qp-t-32); letter-spacing: 0; }
.nx-kvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.nx-kvs--1 { grid-template-columns: minmax(0, 1fr); }
.nx-kv { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--qp-line); padding-top: 6px; font-size: var(--qp-t-13); min-width: 0; }
.nx-kv__v { font-family: var(--qp-font-mono); font-variant-numeric: tabular-nums; font-size: var(--qp-t-20); color: var(--qp-ink); }
.nx-kv .qp-badge { align-self: flex-start; }
.nx-gauge { position: relative; height: 10px; margin-top: 12px; border-radius: var(--qp-r-pill); background: var(--qp-surface-2); border: 1px solid var(--qp-line); }
.nx-gauge__ok { position: absolute; top: 0; bottom: 0; border-radius: var(--qp-r-pill); background: var(--qp-ok); opacity: .4; }
.nx-gauge__cap { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--qp-warn); }
.nx-gauge__dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--qp-gold); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--qp-surface); }
.nx-gauge__lbl { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.nx-pn__sub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nx-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.nx-pick__b { width: 34px; height: 34px; border-radius: var(--qp-r-ctl); border: 1px solid var(--qp-line-strong); background: transparent; color: var(--qp-ink-2); font: 600 var(--qp-t-13)/1 var(--qp-font-mono); cursor: pointer; }
.nx-pick__b.is-on { background: var(--qp-gold); color: var(--qp-bg); border-color: transparent; }
.nx-charts { display: flex; flex-direction: column; gap: 10px; }
.nx-crow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.nx-crow__l { display: flex; flex-direction: column; font-size: var(--qp-t-13); }
.nx-crow__v { font-family: var(--qp-font-mono); font-variant-numeric: tabular-nums; font-size: var(--qp-t-24); color: var(--qp-ink); line-height: 1.2; }
.nx-crow__c { position: relative; border-left: 1px solid var(--qp-line-strong); border-bottom: 1px solid var(--qp-line-strong); }
.nx-crow__ax { position: absolute; top: 0; bottom: 0; right: 4px; display: flex; flex-direction: column; justify-content: space-between; font: 11px/1.2 var(--qp-font-mono); pointer-events: none; }
.nx-crow__t { display: flex; justify-content: space-between; margin-left: 182px; }
.nx-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.nx-ev { display: grid; grid-template-columns: 46px 10px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: var(--qp-t-15); }
.nx-ev .nx-dot { align-self: center; }
.nx-rooms__note { margin: 0; }
.nx-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--qp-s-4); }   /* จอคอม = 3 × 3 */
.nx-room { cursor: pointer; gap: 8px; padding: var(--qp-s-4) var(--qp-s-5); border-radius: var(--qp-r-card); }
.nx-room:hover { border-color: var(--qp-line-strong); }
.nx-room.is-sel { border-color: var(--qp-gold); box-shadow: 0 0 0 1px var(--qp-gold); }
.nx-room:focus-visible { outline: 2px solid var(--qp-gold); outline-offset: 2px; }
.nx-room__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-room__big { display: flex; align-items: baseline; gap: 6px; }
.nx-room__t { font-size: var(--qp-t-44); line-height: 1; letter-spacing: -.03em; }
.nx-room__l { margin-left: auto; }
.nx-room__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; font-size: var(--qp-t-15); }
.nx-spark .nx-chart { height: 40px; }
.nx-d7__plot { position: relative; height: 44px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: end; border-bottom: 1px solid var(--qp-line); }
.nx-d7__bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--qp-green); opacity: .85; }
.nx-d7__bar.is-off { background: var(--qp-warn); }
.nx-d7__cap { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--qp-warn); pointer-events: none; }
.nx-d7__lbls { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 11px; }
/* เครื่องคิด (084 Crystalline · กล่องมืด) */
.nx-calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--qp-s-6); margin-top: var(--qp-s-4); padding: var(--qp-s-6); border-radius: var(--qp-r-tile); border: 1px solid var(--qp-line); color: var(--qp-ink); background: linear-gradient(160deg, var(--qp-surface-2), var(--qp-bg) 70%); }
.nx-calc__l, .nx-calc__r { min-width: 0; }
.nx-field { margin-bottom: 16px; }
.nx-field__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nx-field__l { font-size: var(--qp-t-13); font-weight: 600; color: var(--qp-muted); }
.nx-field__v { font-family: var(--qp-font-mono); font-size: var(--qp-t-24); }
.nx-range { width: 100%; min-height: 32px; accent-color: var(--qp-gold); }
.nx-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; padding: 3px; border: 1px solid var(--qp-line-strong); border-radius: var(--qp-r-pill); }
.nx-seg__b { min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--qp-r-pill); background: transparent; color: var(--qp-ink-2); font: 600 var(--qp-t-15)/1.2 var(--qp-font-sans); cursor: pointer; }
.nx-seg__b.is-on { background: var(--qp-green); color: var(--qp-surface); }
.nx-outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nx-out { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--qp-line); border-radius: 12px; background: var(--qp-surface); min-width: 0; }
.nx-out:last-child { grid-column: 1 / -1; }
.nx-out__v { font-family: var(--qp-font-mono); font-variant-numeric: tabular-nums; font-size: var(--qp-t-32); line-height: 1.1; }
.nx-out .qp-badge { align-self: flex-start; }
.nx-calc__src { margin: 12px 0 0; }
.nx-zone { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px 8px; }
.nx-zone__y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-family: var(--qp-font-mono); }
.nx-zone__plot { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--qp-line-strong); border-radius: 10px; overflow: hidden; touch-action: none; cursor: crosshair; background: var(--qp-surface); }
.nx-zone__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-zone__x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; font-family: var(--qp-font-mono); }
.nx-zone__dot { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--qp-ink); border: 3px solid var(--qp-gold); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--qp-gold) 30%, transparent); }
.nx-zone__dot.is-out { opacity: .25; }
/* สีทึบ (ผสมกับพื้นการ์ด) → ช่องที่วาดทับกันไม่เกิดรอยต่อ */
.nx-z--wet { fill: color-mix(in srgb, var(--qp-info) 60%, var(--qp-surface)); } .nx-z--lo { fill: color-mix(in srgb, var(--qp-info) 25%, var(--qp-surface)); }
.nx-z--ok { fill: color-mix(in srgb, var(--qp-ok) 60%, var(--qp-surface)); } .nx-z--hi { fill: color-mix(in srgb, var(--qp-warn) 30%, var(--qp-surface)); }
.nx-z--dry { fill: color-mix(in srgb, var(--qp-crit) 35%, var(--qp-surface)); } .nx-z--dew { fill: color-mix(in srgb, var(--qp-crit) 65%, var(--qp-surface)); }
.nx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--qp-ink-2); }
.nx-legend__i { display: inline-flex; align-items: center; gap: 6px; }
.nx-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.nx-sw--wet { background: color-mix(in srgb, var(--qp-info) 60%, var(--qp-surface)); } .nx-sw--lo { background: color-mix(in srgb, var(--qp-info) 25%, var(--qp-surface)); }
.nx-sw--ok { background: color-mix(in srgb, var(--qp-ok) 60%, var(--qp-surface)); } .nx-sw--hi { background: color-mix(in srgb, var(--qp-warn) 30%, var(--qp-surface)); }
.nx-sw--dry { background: color-mix(in srgb, var(--qp-crit) 35%, var(--qp-surface)); } .nx-sw--dew { background: color-mix(in srgb, var(--qp-crit) 65%, var(--qp-surface)); }
.nx-dli { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qp-s-4); }
.nx-dli .qp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nx-dli .qp-badge { align-self: flex-start; }
.nx-preset { align-self: flex-start; height: auto; min-height: 40px; padding: 8px 14px; line-height: 1.3; }
.nx-formulas p { margin: 0 0 8px; }
.nx-formulas code { font-family: var(--qp-font-mono); font-size: var(--qp-t-13); background: var(--qp-surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
/* ═══ v0.5.0 · พยากรณ์ · คลังผักใบ · อากาศนอกโรงงาน · ⌘K · คลาสในแอปเท่านั้น · สี = var(--qp-*) ═══ */
.nx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nx-kbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--qp-line-strong); border-radius: var(--qp-r-ctl); background: var(--qp-surface); color: var(--qp-ink-2); font: inherit; font-size: var(--qp-t-13); cursor: pointer; }
.nx-kbtn kbd { font-size: 11px; padding: 1px 5px; border: 1px solid var(--qp-line); border-radius: 4px; color: var(--qp-muted); }
@media (hover: none), (pointer: coarse) { .nx-kbtn kbd { display: none; } }   /* จอสัมผัสไม่มี ⌘K → เห็นคำว่า "ค้นหา" อย่างเดียว */
.nx-flagb { align-self: flex-start; } .nx-est { height: 20px; font-size: 11px; vertical-align: middle; }
.nx-block { display: block; } .nx-block-b { display: flex; width: max-content; margin-top: 4px; }
/* v0.6.1 · ความรู้: จอคอม = ตาราง · มือถือ = การ์ด (ป้าย ⏳ เห็นครบ ไม่หักคำ) */
.nx-kn-cards { display: none; flex-direction: column; gap: 10px; }
.nx-kn { display: flex; flex-direction: column; gap: 6px; padding: var(--qp-s-4); }
.nx-kn p { margin: 0; } .nx-kn__o { font-size: var(--qp-t-16); }
.nx-kn__b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .nx-kn__conf { font-size: var(--qp-t-17); }
.nx-kn__s { overflow-wrap: anywhere; }
@media (max-width: 560px) { .nx-kn-cards { display: flex; } .nx-scroll:has(.nx-kn-table) { display: none; } }
.nx-pal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: color-mix(in srgb, var(--qp-ink) 35%, transparent); }
.nx-pal[hidden] { display: none; }
.nx-pal__card { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--qp-surface); color: var(--qp-ink); border: 1px solid var(--qp-line-strong); border-radius: var(--qp-r-card); box-shadow: var(--qp-shadow); overflow: hidden; }
.nx-pal__q { font: inherit; font-size: var(--qp-t-17); padding: 14px 16px; border: 0; border-bottom: 1px solid var(--qp-line); background: transparent; color: var(--qp-ink); outline: none; }
.nx-pal__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.nx-pal__i { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--qp-r-ctl); cursor: pointer; }
.nx-pal__i.is-on { background: var(--qp-green-t); }
.nx-pal__none { padding: 10px; }
.nx-pal__hint { margin: 0; padding: 8px 14px; border-top: 1px solid var(--qp-line); font-size: var(--qp-t-12); }
.nx-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--qp-s-4); margin-top: var(--qp-s-4); }
.nx-tier { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nx-tier--none .qp-stat__v, .qp-stat__v.nx-none { font-family: var(--qp-font-sans); font-size: var(--qp-t-32); color: var(--qp-muted); letter-spacing: 0; }
.nx-tier__how { margin: auto 0 0; }
.nx-d7--big .nx-d7__plot { height: 70px; }
.nx-d7__ref { position: absolute; left: 0; right: 0; border-top: 1px dotted var(--qp-gold); pointer-events: none; }
.nx-lue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qp-s-4); }
.nx-lue .qp-card { display: flex; flex-direction: column; gap: 8px; }
.nx-lue .qp-stat__v small, .nx-tier .qp-stat__v small { font-family: var(--qp-font-sans); }
.nx-lue__how { grid-column: 1 / -1; margin: 0; }
.nx-grade { flex: 0 1 220px !important; }
.nx-crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--qp-s-4); align-items: start; }
.nx-crop { padding: var(--qp-s-4); }
.nx-crop > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nx-crop > summary::-webkit-details-marker { display: none; }
.nx-crop[open] { grid-column: 1 / -1; }
.nx-crop__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-crop__k { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--qp-t-15); }
.nx-crop__b { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.nx-env { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: var(--qp-t-15); }
.nx-env dt { font-size: var(--qp-t-13); } .nx-env dd { margin: 0; }
.nx-pn--w { grid-column: 1 / -1; }
.nx-wx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 24px; }
.nx-wx > p { grid-column: 1 / -1; margin: 0; }
.nx-wx__now, .nx-wx__chart { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nx-line--out { stroke: var(--qp-data-3); }
.nx-crow__t--0 { margin-left: 0; }
.nx-field__v, .nx-kv__v, .nx-crow__v { white-space: nowrap; }
.nx-kv__v--wrap { white-space: normal; } .nx-nw { white-space: nowrap; }   /* ยาว → ขึ้นบรรทัดที่ " · " ไม่หักกลางหน่วย */   /* กันหน่วยหักบรรทัดกลางคำ "µmol/ ⏎ ตร.ม./วิ" */
/* ═══ v0.6.2 · ทั้งแอป = โหมดมืดชุดเดียว (<html data-qp-theme="dark"> ใน index.html · ไม่สลับตามหน้า) + ความรู้สึก deeptech ของหน้าร้าน
   แบบ = /qp/deeptech.css v0.1 ของหน้าร้าน (อ่านอย่างเดียว · สำเนาเฉพาะที่ใช้มาไว้ที่นี่ · ไม่แตะไฟล์กลาง) · เหลี่ยมเกือบตรง · เส้นบาง · ไม่มีเงา · เมนูขีดเส้นใต้ · เรืองเขียวจาง ๆ · สี = var(--qp-*) เท่านั้น ═══ */
html { background: var(--qp-bg); }   /* ก่อน body วาด + เลื่อนเกินขอบ (Safari เด้ง) = มืด ไม่แวบขาว */
body.qp { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 70% 48% at 85% -8%, color-mix(in srgb, var(--qp-green) 9%, transparent), transparent 70%) no-repeat, var(--qp-bg); }
.qp ::selection { background: var(--qp-green); color: var(--qp-bg); }
.nx-top { background: color-mix(in srgb, var(--qp-bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nx-logo { font-weight: 700; font-size: var(--qp-t-15); letter-spacing: .14em; color: var(--qp-ink); white-space: nowrap; }
.nx-logo b { color: var(--qp-green); font-weight: 700; }
.nx-brand__sub { font-size: var(--qp-t-13); margin-left: 8px; }
.nx-nav { gap: 2px; padding-bottom: 0; }
.nx-nav__a { border-radius: 0; padding: 10px 12px 12px; border-bottom: 2px solid transparent; }
.nx-nav__a:hover { background: transparent; color: var(--qp-ink); }
.nx-nav__a.is-on { background: transparent; color: var(--qp-ink); border-bottom-color: var(--qp-green); }
.qp-btn, .nx-kbtn, .nx-switch select, .nx-input, .nx-pick__b { border-radius: 4px; }
.qp-btn--primary { color: var(--qp-bg); }   /* ขาวบนเขียวสว่างของโหมดมืด = contrast 2.6 → ตัวมืดแบบปุ่ม dt-btn--green */
.qp-btn--secondary:hover, .nx-kbtn:hover { border-color: var(--qp-ink); }
.nx-kbtn { background: transparent; }
.nx-input:focus-visible, .nx-switch select:focus-visible, .nx-pal__q:focus-visible { outline: 2px solid var(--qp-gold); outline-offset: 1px; }
.qp-tile, .qp-card, .nx-room, .nx-calc, .nx-scroll, .nx-empty, .nx-details, .nx-out, .nx-strip, .nx-zone__plot { border-radius: 6px; box-shadow: none; }
.qp-panel { border-radius: 4px; } .qp-panel::before { border-top-left-radius: 4px; } .qp-panel::after { border-bottom-right-radius: 4px; }
a.qp-tile:hover { border-color: color-mix(in srgb, var(--qp-green) 45%, transparent); }
.qp-table th { background: var(--qp-surface-2); }
.qp-table tbody tr:hover td { background: color-mix(in srgb, var(--qp-ink) 3%, transparent); }
.nx-pal { background: color-mix(in srgb, var(--qp-bg) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nx-pal__card { border-radius: 6px; }
.nx-pal__i.is-on .qp-muted { color: var(--qp-ink-2); }   /* แถวที่เลือก (พื้นเขียวจาง) ตัวเทา = 4.16 < 4.5 · ตัวตรวจสีจับได้ */
[hidden] { display: none !important; }   /* v0.8.0: คลาสที่ตั้ง display (qp-btn = inline-flex) ทับ attr hidden → ปุ่ม "ก่อนหน้า" โผล่ในจังหวะแรก */
/* ═══ v0.8.0 · แนะนำการใช้ครั้งแรก · เชิญคน · สวิตช์ต่อบริษัท · งบ AI · สี = var(--qp-*) ═══ */
.nx-onb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--qp-bg) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nx-onb__card { width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px; padding: var(--qp-s-6); background: var(--qp-surface); border: 1px solid var(--qp-line-strong); border-radius: 6px; }
.nx-onb__card .qp-kicker { color: var(--qp-gold); }
.nx-onb__b { margin: 0; color: var(--qp-ink-2); }
.nx-onb__dots { display: flex; gap: 6px; }
.nx-onb__dot { width: 22px; height: 3px; border-radius: 2px; background: var(--qp-line-strong); }
.nx-onb__dot.is-on { background: var(--qp-green); }
.nx-onb__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.nx-onb__sp { flex: 1 1 auto; }
.nx-invite__ok { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nx-invite__ok p { margin: 0; }
.nx-invite__link { font-family: var(--qp-font-mono); font-size: var(--qp-t-15); padding: 8px 10px; border: 1px solid var(--qp-line-strong); border-radius: 4px; background: var(--qp-surface-2); user-select: all; overflow-wrap: anywhere; }
.nx-switch__l { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; cursor: pointer; }
.nx-switch__cb { width: 20px; height: 20px; margin: 0; accent-color: var(--qp-green); cursor: pointer; }   /* ไม่ใช้ .nx-input (กฎ width:100% โดนช่องติ๊ก = Safari ข้อความทับ) */
.nx-sw-table td:not(:first-child), .nx-sw-table th:not(:first-child) { text-align: center; }
.nx-cap { width: 7em; flex: 0 0 auto !important; }
/* v0.15.0 · หลังบ้านบนมือถือ: สวิตช์/งบ AI เป็นการ์ดต่อบริษัท (ไม่ต้องเลื่อนข้าง) */
.nx-sw-card { display: grid; gap: 6px; padding: 12px 14px; margin-top: 10px; }
.nx-sw-card__t { margin: 0 0 2px; font-weight: 600; }
.nx-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; border-top: 1px solid var(--qp-line); padding-top: 4px; }
@media (max-width: 1100px) {
  .nx-pn--a, .nx-pn--b { grid-column: span 6; } .nx-pn--c, .nx-pn--d, .nx-pn--e { grid-column: 1 / -1; }
  .nx-tiers { grid-template-columns: minmax(0, 1fr); }
  .nx-wx { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .nx-zone__plot { aspect-ratio: 1 / 1; } }
@media (max-width: 900px) {
  .nx-calc, .nx-dli { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nx-main { padding-top: 20px; }
  .nx-pn--a, .nx-pn--b { grid-column: 1 / -1; }
  .nx-crow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nx-crow__t { margin-left: 0; }
  .nx-calc { padding: var(--qp-s-4); gap: var(--qp-s-5); }
  .nx-strip__r { margin-left: 0; }
  /* มือถือเห็นเมนู 3/7 ไม่รู้ว่าเลื่อนได้ → ห่อหลายบรรทัด เห็นครบ · หัวไม่ติดบน (กันกินจอ) */
  .nx-top { position: static; }
  .nx-nav { flex-wrap: wrap; overflow: visible; gap: 2px; }
  .nx-nav__a { padding: 6px 10px; font-size: var(--qp-t-13); }
  /* ตารางบีบจนคำไทยหักกลางคำ + ป้ายโดนตัด → ตารางกว้างขึ้น เลื่อนข้างในกรอบแทน */
  .nx-scroll .qp-table { min-width: 880px; }
  .nx-scroll .qp-table td { min-width: 6.5em; }   /* คำไทยยาว (แอนโดรกราโฟไลด์) ยังหักกลางคำที่ 760 */
  .nx-lue, .nx-env { grid-template-columns: minmax(0, 1fr); }
  .nx-field__v { font-size: var(--qp-t-20); }
  .qp-table td { overflow-wrap: normal; }
  .nx-hero__rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-hero__room > :nth-child(4) { display: none; }
  .nx-switch select { max-width: 52vw; }
  .nx-who { display: none; }
}
.qp-btn:disabled { opacity: 0.45; cursor: not-allowed; }   /* v0.10.2: ปุ่มแบ่งหน้าความรู้ (หน้าแรก/หน้าสุดท้าย) */
.nx-scroll .qp-table.nx-rcp-table { min-width: 0; }   /* v0.13.1: ตารางสูตรปลูก 3 คอลัมน์พอดีจอมือถือ · ชื่อยาวขึ้นบรรทัดใหม่ */

/* หน้าเข้าสู่ระบบ + ออกจากระบบ: จับเฉพาะโครงที่ server วาด · หน้านี้คงมืด */
.qp-container.nx-login { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: min(400px, calc(100% - 32px)); min-height: 0; margin: max(24px, calc(50dvh - 220px)) auto 24px; padding: 24px; background: var(--qp-surface); border: 1px solid var(--qp-line); border-radius: 10px; }
.nx-login::before { content: "NÜXGROW"; font-family: var(--qp-font-mono); font-size: var(--qp-t-15); font-weight: 600; letter-spacing: 0.04em; color: var(--qp-ink); }
.nx-login h1 { margin: 0; font-size: var(--qp-t-24); font-weight: 500; }
.nx-login p, .nx-login form { margin: 0; }
.nx-login__form { display: flex; flex-direction: column; gap: 8px; }
.nx-login .qp-btn { box-sizing: border-box; width: 100%; justify-content: center; text-align: center; }
.nx-login .qp-btn + .qp-btn { margin-top: 8px; }
.nx-login .nx-input { box-sizing: border-box; width: 100%; font-size: 16px; }
