:root {
  --jt-red: #b91c1c;
  --jt-red-dark: #991b1b;
  --jt-red-soft: #fef2f2;
  --jt-navy: #0f172a;
  --jt-slate: #334155;
  --jt-muted: #475569;
  --jt-border: #cbd5e1;
  --jt-bg: #f1f5f9;
  --jt-card: #ffffff;
  --jt-green: #047857;
  --jt-amber: #b45309;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--jt-bg);
  color: var(--jt-navy);
  font-family: "Noto Sans Thai", "Sarabun", "Segoe UI", Tahoma, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.48;
  word-break: break-word;
  overflow-wrap: break-word;
}

p, li, span, label, td, th, div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.jt-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top SLA Bar */
.jt-sla-bar {
  background: var(--jt-navy);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.68;
  padding: 8px 0;
  border-bottom: 2px solid var(--jt-red);
}
.jt-sla-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px;
}
.jt-sla-contacts {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.jt-sla-contacts a { color: #fde047; text-decoration: none; font-weight: 700; }

/* Official Header */
.jt-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.jt-header-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.jt-brand { display: flex; align-items: center; gap: 14px; }
.jt-brand img { height: 50px; width: auto; display: block; }
.jt-brand-title { font-size: 17px; font-weight: 800; color: var(--jt-navy); line-height: 1.45; }
.jt-brand-sub { font-size: 13px; color: var(--jt-muted); }
.jt-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.jt-sync-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.8px; font-weight: 700;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.jt-sync-pill.syncing { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.jt-sync-pill .jt-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Buttons */
.jt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; font-family: inherit;
  font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.jt-btn:active { transform: translateY(1px); }
.jt-btn-red { background: var(--jt-red); color: #ffffff; }
.jt-btn-red:hover { background: var(--jt-red-dark); }
.jt-btn-navy { background: var(--jt-navy); color: #ffffff; }
.jt-btn-navy:hover { background: #1e293b; }
.jt-btn-green { background: #06c755; color: #ffffff; }
.jt-btn-green:hover { background: #05a847; }
.jt-btn-outline { background: #ffffff; color: var(--jt-navy); border-color: var(--jt-border); }
.jt-btn-outline:hover { background: #f8fafc; }

/* Hero */
.jt-hero-band {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 62%, #7f1d1d 100%);
  color: #ffffff;
  padding: 24px 0;
  border-bottom: 4px solid var(--jt-red);
}
.jt-hero-flex {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
}
.jt-eyebrow {
  display: inline-block; background: rgba(185, 28, 28, 0.9); color: #ffffff;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; margin-bottom: 8px;
}
.jt-hero-band h1 { color: #ffffff; font-size: clamp(21px, 2.5vw, 30px); font-weight: 800; line-height: 1.46; max-width: 880px; }
.jt-hero-band p { margin: 8px 0 0; color: #e2e8f0; max-width: 840px; font-size: 14.8px; }
.jt-preview-notice {
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px; padding: 12px 16px; max-width: 340px; font-size: 13px; color: #f8fafc;
}

/* Main 2-Column Layout */
.jt-studio-main { padding: 24px 0 110px; }
.jt-studio-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.12fr); gap: 22px; align-items: start;
}
@media (max-width: 1080px) { .jt-studio-grid { grid-template-columns: 1fr; } }

.jt-panel-card {
  background: var(--jt-card); border: 1px solid #e2e8f0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 18px;
}
.jt-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jt-step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--jt-red); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14.5px; flex: 0 0 auto;
}
.jt-step-head h2 { font-size: 17.5px; font-weight: 800; color: var(--jt-navy); }

/* Filter Pills & Model Grid */
.jt-filter-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.jt-filter-pill {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--jt-border);
  background: #f8fafc; color: var(--jt-slate); font-family: inherit;
  font-size: 12.8px; font-weight: 700; cursor: pointer;
}
.jt-filter-pill.active { background: var(--jt-navy); color: #ffffff; border-color: var(--jt-navy); }

.jt-model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px;
}
.jt-model-card {
  border: 2px solid #e2e8f0; border-radius: 12px; padding: 9px; background: #ffffff;
  cursor: pointer; text-align: left; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 6px;
}
.jt-model-card:hover { border-color: #94a3b8; }
.jt-model-card.active { border-color: var(--jt-red); background: var(--jt-red-soft); box-shadow: 0 4px 12px rgba(185, 28, 28, 0.14); }
.jt-model-thumb-wrap {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.jt-model-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-model-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.jt-model-sku { font-size: 11px; font-weight: 800; color: #334155; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; }
.jt-model-badge { font-size: 10.8px; font-weight: 700; color: var(--jt-red-dark); }
.jt-model-title { font-size: 13.2px; font-weight: 800; color: var(--jt-navy); line-height: 1.45; }
.jt-model-price { font-size: 13px; font-weight: 800; color: var(--jt-red); margin-top: auto; }

/* Size Selector */
.jt-size-mode-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.jt-radio-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border: 1px solid var(--jt-border); border-radius: 10px; background: #f8fafc;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.jt-size-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px;
}
.jt-size-btn {
  border: 2px solid #e2e8f0; border-radius: 10px; padding: 9px 10px; background: #ffffff;
  text-align: left; cursor: pointer; font-family: inherit;
}
.jt-size-btn:hover { border-color: #94a3b8; }
.jt-size-btn.active { border-color: var(--jt-red); background: var(--jt-red-soft); }
.jt-size-btn .sz-lbl { font-size: 13.5px; font-weight: 800; color: var(--jt-navy); display: block; }
.jt-size-btn .sz-price { font-size: 12.5px; font-weight: 700; color: var(--jt-red); }
.jt-size-btn .sz-area { font-size: 11.5px; color: var(--jt-muted); display: block; }

.jt-custom-size-box {
  background: #f8fafc; border: 1px solid var(--jt-border); border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.jt-form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .jt-form-grid-3 { grid-template-columns: 1fr; } }

.jt-qty-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid #e2e8f0;
}
.jt-size-note { font-size: 13.2px; color: var(--jt-slate); font-weight: 600; flex: 1 1 240px; }

/* Inputs & Steppers */
.jt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .jt-form-grid { grid-template-columns: 1fr; } }
.jt-field { display: flex; flex-direction: column; gap: 5px; }
.jt-field.full { grid-column: 1 / -1; }
.jt-field label { font-size: 13.5px; font-weight: 700; color: var(--jt-slate); }

.jt-input, .jt-select {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--jt-border); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; color: var(--jt-navy); background: #ffffff;
}
.jt-stepper {
  display: flex; align-items: center; border: 1px solid var(--jt-border); border-radius: 10px; overflow: hidden; background: #ffffff;
}
.jt-stepper button {
  width: 42px; height: 42px; border: none; background: #f1f5f9;
  font-size: 18px; font-weight: 800; color: var(--jt-navy); cursor: pointer;
}
.jt-stepper button:hover { background: #e2e8f0; }
.jt-stepper input {
  width: 100%; min-width: 0; height: 42px; border: none; text-align: center;
  font-family: inherit; font-size: 16px; font-weight: 800; color: var(--jt-navy);
}
.jt-hint-text { font-size: 12.8px; color: var(--jt-muted); margin: 4px 0 0; }
.jt-check-inline { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 600; color: var(--jt-navy); }
.jt-check-inline input { width: 17px; height: 17px; margin-top: 4px; flex: 0 0 auto; }

/* Step 3: Custom 4-Side Elevations */
.jt-preset-bar { margin-bottom: 12px; }
.jt-preset-label { font-size: 13px; font-weight: 700; color: var(--jt-slate); margin-bottom: 6px; }
.jt-preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.jt-preset-btn {
  border: 1px solid var(--jt-border); border-radius: 10px; padding: 8px 10px;
  background: #f8fafc; text-align: left; cursor: pointer; font-family: inherit;
}
.jt-preset-btn:hover { border-color: var(--jt-navy); background: #ffffff; }
.jt-preset-btn strong { display: block; font-size: 12.8px; color: var(--jt-navy); }
.jt-preset-btn span { display: block; font-size: 11.8px; color: var(--jt-muted); margin-top: 2px; }

.jt-side-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px;
}
@media (max-width: 720px) { .jt-side-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jt-side-tab {
  min-height: 42px; border: 1px solid var(--jt-border); border-radius: 10px; background: #f8fafc;
  color: var(--jt-slate); font-family: inherit; font-size: 12.8px; font-weight: 700; cursor: pointer; padding: 6px;
}
.jt-side-tab.active { background: var(--jt-navy); color: #ffffff; border-color: var(--jt-navy); }

.jt-flip-row {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px;
}

.jt-elev-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 9px;
}
.jt-elev-card {
  border: 2px solid #e2e8f0; border-radius: 10px; padding: 8px; background: #ffffff;
  cursor: pointer; text-align: center; font-family: inherit; display: flex; flex-direction: column; gap: 5px;
}
.jt-elev-card:hover { border-color: #94a3b8; }
.jt-elev-card.active { border-color: var(--jt-red); background: var(--jt-red-soft); }
.jt-elev-thumb {
  width: 100%; height: 112px; display: flex; align-items: center; justify-content: center;
  background: #ffffff; border-radius: 6px; padding: 4px;
}
.jt-elev-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.jt-elev-card .el-name { font-size: 12.2px; font-weight: 700; color: var(--jt-navy); line-height: 1.45; }
.jt-elev-card .el-tag { font-size: 11px; font-weight: 700; color: var(--jt-green); }

/* Colors */
.jt-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.jt-swatch-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border: 2px solid #e2e8f0; border-radius: 10px; background: #ffffff;
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--jt-navy); text-align: left;
}
.jt-swatch-btn.active { border-color: var(--jt-red); background: var(--jt-red-soft); }
.jt-swatch-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #64748b; flex: 0 0 auto; }

/* Options & Services */
.jt-options-groups { display: flex; flex-direction: column; gap: 14px; }
.jt-opt-group-title { font-size: 13.5px; font-weight: 800; color: var(--jt-navy); margin-bottom: 6px; border-left: 3px solid var(--jt-red); padding-left: 8px; }
.jt-opt-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.jt-opt-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 11px; background: #ffffff; cursor: pointer;
}
.jt-opt-item.included { background: #ecfdf5; border-color: #a7f3d0; cursor: default; }
.jt-opt-item.disabled { opacity: 0.65; }
.jt-opt-left { display: flex; align-items: flex-start; gap: 9px; }
.jt-opt-left input { width: 17px; height: 17px; margin-top: 4px; flex: 0 0 auto; }
.jt-opt-name { font-size: 13.5px; font-weight: 700; color: var(--jt-navy); }
.jt-opt-desc { font-size: 12px; color: var(--jt-muted); }
.jt-opt-price { font-size: 13px; font-weight: 800; color: var(--jt-red); white-space: nowrap; }
.jt-included-tag {
  display: inline-block; background: #047857; color: #ffffff; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.jt-services-list { display: flex; flex-direction: column; gap: 8px; }

/* Right Sticky Preview */
.jt-preview-sticky { position: sticky; top: 14px; }
@media (max-width: 1080px) { .jt-preview-sticky { position: static; } }

.jt-kpi-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .jt-kpi-strip { grid-template-columns: 1fr; } }
.jt-kpi-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.jt-kpi-box .k-lbl { font-size: 12px; color: var(--jt-muted); font-weight: 700; }
.jt-kpi-box .k-val { font-size: 18px; font-weight: 800; color: var(--jt-navy); margin-top: 2px; }

/* Main Tabs & Sub View Switcher */
.jt-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 12px; }
.jt-tab-btn {
  min-height: 40px; padding: 7px 13px; border-radius: 9px; border: 1px solid #cbd5e1;
  background: #f8fafc; color: var(--jt-slate); font-family: inherit; font-size: 13.2px; font-weight: 700; cursor: pointer;
}
.jt-tab-btn.active { background: var(--jt-navy); color: #ffffff; border-color: var(--jt-navy); }
.jt-tab-pane { display: none; }
.jt-tab-pane.active { display: block; }

.jt-view-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.jt-view-btn {
  flex: 1 1 160px; min-height: 38px; padding: 6px 10px; border-radius: 9px;
  border: 1px solid var(--jt-border); background: #ffffff; color: var(--jt-slate);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.jt-view-btn.active { background: var(--jt-red); color: #ffffff; border-color: var(--jt-red); }

.jt-view-stage { margin-bottom: 12px; }
.jt-blueprint-canvas {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid #cbd5e1;
  background: #ffffff; display: block; cursor: pointer;
}
.jt-stage-caption { font-size: 12.2px; color: var(--jt-muted); text-align: center; margin-top: 5px; }

.jt-floorplan-box {
  border: 1px solid #cbd5e1; border-radius: 12px; background: #ffffff; padding: 10px;
}
.jt-floorplan-svg { width: 100%; height: auto; display: block; }

/* 3D Stage */
.jt-3d-controls {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
}
.jt-3d-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.jt-3d-preset {
  padding: 4px 9px; border-radius: 7px; border: 1px solid #cbd5e1; background: #ffffff;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--jt-navy);
}
.jt-3d-preset:hover { background: var(--jt-navy); color: #ffffff; }
.jt-3d-sliders { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; }

.jt-3d-viewport {
  position: relative; width: 100%; height: 420px; border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #f8fafc 0%, #cbd5e1 100%);
  border: 1px solid #cbd5e1; overflow: hidden; perspective: 1100px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; user-select: none; touch-action: none;
}
.jt-3d-viewport:active { cursor: grabbing; }
.jt-3d-scene { transform-style: preserve-3d; transition: transform 0.05s linear; }
.jt-3d-cube { position: relative; transform-style: preserve-3d; }
.jt-3d-face {
  position: absolute; top: 0; left: 0;
  background-size: 100% 100%; background-repeat: no-repeat;
  border: 1px solid #334155; backface-visibility: visible;
}
.jt-3d-tag {
  position: absolute; top: 6px; left: 6px; background: rgba(15, 23, 42, 0.78);
  color: #ffffff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px;
}
.jt-3d-roof { position: absolute; border: 1px solid #0f172a; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25); }
.jt-3d-roof.rounded { border-radius: 14px; }
.jt-3d-base { position: absolute; border: 1px solid #64748b; }
.jt-3d-counter { position: absolute; background: #e2e8f0; border: 1px solid #334155; }
.jt-3d-ac-unit {
  position: absolute; background: #f8fafc; border: 2px solid #475569; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #334155;
}
.jt-3d-drag-hint {
  position: absolute; bottom: 10px; right: 12px; background: rgba(15, 23, 42, 0.78);
  color: #ffffff; padding: 4px 10px; border-radius: 999px; font-size: 11.8px; font-weight: 700; pointer-events: none;
}

/* Alerts & Compare */
.jt-alerts-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.jt-alert {
  border-radius: 10px; padding: 9px 12px; font-size: 13.2px; font-weight: 600;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
}
.jt-alert.warning { background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; }
.jt-alert.error { background: #fef2f2; border: 1px solid #dc2626; color: #991b1b; }
.jt-alert.info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a8a; }

.jt-compare-card {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 11px 14px; margin-bottom: 12px;
  font-size: 13.2px; color: #065f46;
}

/* Reference Model Card */
.jt-ref-card {
  display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 14px; align-items: start;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc;
}
@media (max-width: 560px) { .jt-ref-card { grid-template-columns: 1fr; } }
.jt-ref-media-link { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #cbd5e1; transition: transform 0.15s ease, border-color 0.15s ease; }
.jt-ref-media-link:hover { border-color: var(--jt-red); transform: translateY(-1px); }
.jt-ref-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.jt-ref-badge { display: inline-block; background: var(--jt-red); color: #ffffff; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.jt-ref-info h3 { font-size: 15px; font-weight: 800; color: var(--jt-navy); }
.jt-ref-title-link { color: var(--jt-navy); text-decoration: none; border-bottom: 1px dashed #94a3b8; transition: color 0.15s, border-color 0.15s; }
.jt-ref-title-link:hover { color: var(--jt-red); border-bottom-color: var(--jt-red); }
.jt-ref-info p { margin: 4px 0; font-size: 13px; color: var(--jt-slate); }
.jt-ref-specs { font-size: 12.2px; color: var(--jt-muted); }
.jt-ref-actions { margin-top: 6px; }
.jt-ref-more-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700;
  color: var(--jt-red-dark); text-decoration: none;
}
.jt-ref-more-link:hover { text-decoration: underline; color: var(--jt-red); }
.jt-ref-portfolio-wrap { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #cbd5e1; }
.jt-ref-portfolio-head { font-size: 11.8px; font-weight: 700; color: var(--jt-slate); margin-bottom: 5px; }
.jt-ref-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jt-ref-chip-link {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: #ffffff; border: 1px solid #cbd5e1; color: var(--jt-navy); text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.jt-ref-chip-link:hover { border-color: var(--jt-red); color: var(--jt-red-dark); background: var(--jt-red-soft); }

/* BOQ Table */
.jt-boq-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.jt-boq-badge { font-size: 12.5px; font-weight: 700; color: var(--jt-green); }
.jt-sec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.jt-sec-pill { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 11px; font-size: 12.2px; font-weight: 700; }

.jt-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
table.jt-boq-table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.jt-boq-table th { background: var(--jt-navy); color: #ffffff; padding: 9px 10px; text-align: left; }
table.jt-boq-table td { border-bottom: 1px solid #e2e8f0; padding: 8px 10px; vertical-align: top; }
table.jt-boq-table th.num, table.jt-boq-table td.num { text-align: right; white-space: nowrap; }
.jt-sku-code { font-family: monospace; font-size: 11.5px; font-weight: 700; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; display: inline-block; white-space: nowrap; }

.jt-boq-totals { margin-top: 12px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; background: #f8fafc; }
.jt-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.jt-total-row.grand { border-top: 2px solid #cbd5e1; margin-top: 6px; padding-top: 9px; font-size: 16.5px; font-weight: 800; color: var(--jt-red); }

/* Spec Tab */
.jt-spec-banner { background: var(--jt-red-soft); border: 1px solid #fecaca; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.jt-spec-banner strong { color: var(--jt-red-dark); font-size: 15px; }
.jt-spec-banner p { margin: 4px 0 0; font-size: 13.2px; color: var(--jt-slate); }
.jt-spec-block { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #ffffff; }
.jt-spec-block h4 { font-size: 14.5px; color: var(--jt-navy); margin-bottom: 6px; }
.jt-spec-block ul { margin: 0 0 0 18px; padding: 0; font-size: 13.5px; color: var(--jt-slate); }

/* CAD 2D Sheet & JT AI Report */
.jt-cad-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.jt-cad-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jt-cad-canvas {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid #94a3b8;
  background: #ffffff; display: block; box-shadow: var(--shadow-sm);
}
.jt-ai-report-card {
  margin-top: 12px; border: 1px solid #cbd5e1; border-radius: 12px;
  background: #f8fafc; padding: 14px;
}
.jt-ai-report-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.jt-ai-report-head strong { font-size: 14.5px; color: var(--jt-navy); }
.jt-ai-latency {
  background: #e2e8f0; color: #0f172a; border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 700;
}
.jt-ai-latency.ai-live { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.jt-ai-summary { margin: 4px 0 10px; font-size: 13.5px; color: var(--jt-slate); }
.jt-ai-notes-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px;
}
@media (max-width: 820px) { .jt-ai-notes-grid { grid-template-columns: 1fr; } }
.jt-ai-note-box {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 9px; padding: 9px 11px;
}
.jt-ai-note-box strong { display: block; font-size: 12.6px; color: var(--jt-red-dark); margin-bottom: 3px; }
.jt-ai-note-box p { margin: 0; font-size: 12.4px; color: var(--jt-slate); line-height: 1.65; }
.jt-ai-qa-wrap { font-size: 12.8px; color: var(--jt-navy); }
.jt-ai-qa-wrap ul { margin: 4px 0 0 18px; padding: 0; color: var(--jt-slate); }

/* Footer & Sticky CTA */
.jt-footer {
  background: var(--jt-navy); color: #e2e8f0; padding: 20px 0 92px; font-size: 13px; text-align: center;
}
.jt-bottom-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(15, 23, 42, 0.96); color: #ffffff; border-top: 2px solid var(--jt-red);
  padding: 10px 0; backdrop-filter: blur(8px);
}
.jt-bottom-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.jt-cta-title { font-size: 14.2px; font-weight: 800; }
.jt-cta-price { font-size: 13px; font-weight: 700; color: #fde047; }

/* Modal & Toast */
.jt-modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, 0.65);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.jt-modal-backdrop[hidden] { display: none; }
.jt-modal {
  background: #ffffff; border-radius: 16px; max-width: 640px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 22px; box-shadow: var(--shadow-md);
}
.jt-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.jt-toast {
  position: fixed; top: 18px; right: 18px; z-index: 80;
  background: var(--jt-navy); color: #ffffff; padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-md);
}

/* WordPress Divi Host Compatibility */
.jt-gh-wp-root {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--jt-bg);
  color: var(--jt-navy);
  font-family: "Noto Sans Thai", "Sarabun", "Segoe UI", Tahoma, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
}
body.jt-gh-wp-host #top-header,
body.jt-gh-wp-host #top-header *,
body.jt-gh-wp-host #main-header,
body.jt-gh-wp-host #main-header *,
body.jt-gh-wp-host #main-footer,
body.jt-gh-wp-host #main-footer * {
  word-break: normal;
  overflow-wrap: normal;
}
body.jt-gh-wp-host #et-top-navigation nav#top-menu-nav ul#top-menu > li > a {
  white-space: nowrap;
}
body.jt-gh-wp-host #page-container {
  padding-top: 0 !important;
}
body.jt-gh-wp-host .jt-bottom-cta {
  z-index: 99985;
}
@media screen and (max-width: 1024px) {
  body.jt-gh-wp-host .jt-bottom-cta {
    bottom: 68px;
  }
}
#jt-guardhouse-designer-root .jt-hero-band h1,
#jt-guardhouse-designer-root .jt-hero-band h1 *,
body.jt-gh-wp-host .jt-hero-band h1,
body.jt-gh-wp-host .jt-hero-band h1 * {
  color: #ffffff !important;
}
body.jt-gh-wp-host .jt-hero-band p,
body.jt-gh-wp-host .jt-preview-notice {
  color: #f8fafc !important;
}
body.jt-gh-wp-host #main-footer {
  padding-bottom: 145px;
}
