/* หน้าคำนวณปริมาณดินถม — ตามแบบที่ดินดี */
:root {
  --td-dark: #083226;
  --td-green: #0f5a46;
  --td-green2: #17765c;
  --td-gold: #e3b451;
  --td-gold2: #f0d37a;
  --td-ink: #14352c;
  --td-line: #d7e4dc;
}
body.is-land {
  background: #e7efe8;
  font-family: "IBM Plex Sans Thai", Kanit, sans-serif;
  color: var(--td-ink);
  overflow-x: clip;
}
body.is-land button { touch-action: manipulation; }
body.is-land h1, body.is-land h2, body.is-land b, body.is-land strong { font-family: Kanit, "IBM Plex Sans Thai", sans-serif; }

.td-top {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 28px;
  background: linear-gradient(90deg, #06281e, #0b4532 55%, #083226);
  color: #eaf3ed;
}
.td-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.td-brand svg { width: 42px; height: 30px; }
.td-brand svg path { fill: #d9ab3f; }
.td-brand svg .pk { fill: #f3dca1; }
.td-brand b { display: block; font-size: 20px; color: var(--td-gold2); line-height: 1.1; }
.td-brand small { font-size: 11px; color: rgba(234,243,237,.7); }
.td-user { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.td-user .bell {
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
}
.td-user .chip {
  display: flex; gap: 8px; align-items: center; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.14); padding: 4px 12px 4px 4px; border-radius: 999px;
}
.td-user .chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.td-user .chip b { display: block; font-size: 13px; }
.td-user .chip small { font-size: 11px; opacity: .75; }
.td-user .chip-staff { width: 38px; height: 38px; justify-content: center; padding: 0; }
.td-user .chip i { width: 16px; height: 16px; color: var(--td-gold); }

.td-hero {
  position: relative; min-height: 200px; padding: 28px 32px 86px; overflow: hidden;
  background: var(--hero) 72% 48%/cover no-repeat; color: #fff;
}
.td-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,28,18,.78) 0%, rgba(6,36,22,.42) 28%, rgba(10,40,22,.12) 58%, rgba(12,36,16,.06) 100%);
}
.td-hero > * { position: relative; z-index: 1; }
.td-hero-copy { max-width: 720px; }
.td-hero h1 {
  margin: 0; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; color: var(--td-gold2);
  text-shadow: 0 3px 16px rgba(0,0,0,.4);
}
.td-hero p { margin: 8px 0 0; font-size: 14.5px; color: rgba(238,246,241,.88); }
.td-hero-cap {
  position: absolute; right: 280px; bottom: 88px; margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 15px; color: var(--td-gold2);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.td-badges {
  position: absolute; right: 28px; top: 22px; display: flex; gap: 8px; z-index: 2;
}
.td-badges span {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #155e48, #0c4334); color: #fff; font-size: 12.5px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.td-badges i { width: 16px; height: 16px; color: var(--td-gold); }

.td-wrap { padding: 0 22px 8px; margin-top: -58px; position: relative; z-index: 2; }
.td-steps {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.td-step {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid #d5e0da; background: #fff; border-radius: 14px;
  padding: 10px 12px; cursor: pointer; font: inherit; color: #5c7a6e; text-align: left;
  box-shadow: 0 8px 18px rgba(12,48,32,.08);
}
.td-step span {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  display: grid; place-items: center; background: #eef6f1; font-weight: 700; font-size: 13px; color: #0d4a3b;
}
.td-step b { font-size: 13px; font-weight: 600; }
.td-step.is-on { border-color: #1b8a57; background: #f4fbf7; color: #0d4a3b; }
.td-step.is-on span { background: #1b8a57; color: #fff; }
.td-step.is-done span { background: #c9a227; color: #fff; }
.step-nav {
  display: flex; gap: 10px; margin: 14px 0 8px; position: sticky; bottom: 10px; z-index: 6;
}
.step-nav .btn-ghost { min-width: 140px; background: #fff; box-shadow: 0 8px 18px rgba(12,48,32,.1); }
.step-nav .btn-gold {
  flex: 1; border: 0; padding: 13px 16px; font-weight: 700; color: #3b2d04;
  background: linear-gradient(90deg, #c9a227, #e8c15a);
  box-shadow: 0 8px 18px rgba(201,162,39,.28);
}
.step-metrics { grid-template-columns: repeat(4, 1fr); }
.mind-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center;
  padding: 8px 4px 4px;
}
.mind-photo {
  width: 168px; height: 168px; border-radius: 28px; object-fit: cover; object-position: center top;
  box-shadow: 0 12px 28px rgba(12,48,32,.16);
}
.mind-copy h2 { margin: 4px 0 8px; font-size: 26px; color: #0d3d32; }
.mind-copy p { margin: 0; color: #5c7a6e; line-height: 1.6; }
.mind-role { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #17765c; font-weight: 600; }
.mind-role i { width: 16px; height: 16px; }
.mind-lineid {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px !important;
  background: #f4faf6; border: 1px solid #d5eadc; border-radius: 999px; padding: 7px 12px; color: #0d4a3b;
}
.mind-lineid img { width: 20px; height: 20px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #06c755; color: #fff !important; font-weight: 700; border-radius: 12px;
  padding: 13px 18px; text-decoration: none; margin: 14px 12px 8px 0; min-width: 240px;
  box-shadow: 0 10px 20px rgba(6,199,85,.28);
}
.btn-line img { width: 22px; height: 22px; }
.btn-line:hover { filter: brightness(1.05); }
[data-step-pane][hidden] { display: none !important; }
.td-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 16px; }
.td-bottom { display: grid; grid-template-columns: 1.15fr .85fr .75fr .55fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.td-card {
  background: #fff; border-radius: 20px; padding: 18px 18px 16px;
  box-shadow: 0 16px 36px rgba(12,48,32,.1);
  min-width: 0;
}
.td-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.td-head h2 { margin: 0; font-size: 18px; color: #0d3d32; }
.td-head p { margin: 3px 0 0; color: #6b7f76; font-size: 12.5px; }
.td-head.sm { margin-bottom: 12px; }
.td-head.sm h2 { font-size: 16px; }
.shape-short { display: none; }
.shape-check { display: none; }
#soil-type { display: none; }
.m-hero, .m-mindbar, .m-pills, .m-foot { display: none; }
.ok-banner {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
  background: #e9f8ee; border: 1px solid #cfe8d6; border-radius: 14px; padding: 12px 14px;
}
.ok-banner i { width: 22px; height: 22px; color: #1b8a57; }
.ok-banner b { display: block; color: #0d4a3b; }
.ok-banner span { font-size: 12px; color: #5c7a6e; }
.cost-box, .plan-box, .svc-box {
  margin-top: 14px; border: 1px solid #e5eee9; border-radius: 16px; padding: 12px;
  background: #fbfdfc;
}
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.toggle.sm { margin: 0 0 0 auto; font-size: 12px; }
.td-head.sm .toggle { margin-bottom: 0; }
.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1a6b54, #0d4a3b); color: #f2d37b; flex: 0 0 auto;
}
.ico i { width: 20px; height: 20px; }

.shape-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.shape-tabs button {
  border: 1px solid #dbe6e0; background: #fff; color: #3c5a4f; border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 12.5px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.shape-tabs button i { width: 15px; height: 15px; }
.shape-tabs button.is-on {
  background: linear-gradient(180deg, #17765c, #0d4a3b); color: #fff; border-color: #0d4a3b;
}
.job-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.job-tabs button {
  border: 1px solid #dbe6e0; background: #fff; color: #3c5a4f; border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 12.5px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.job-tabs button i { width: 15px; height: 15px; }
.job-tabs button.is-on {
  background: linear-gradient(180deg, #17765c, #0d4a3b); color: #fff; border-color: #0d4a3b;
}
#calc-form[data-job="package"] .job-trip-only,
#calc-form[data-job="trip"] .job-package-only {
  display: none !important;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields.mt { margin-top: 12px; }
.fields .full, .field.full { grid-column: 1 / -1; }
.flabel { display: block; font-size: 12.5px; color: #5c7a6e; margin-bottom: 6px; }
.flabel em { font-style: normal; font-size: 11px; color: #7c9188; }
.frow { display: flex; align-items: center; gap: 8px; }
.frow input, .frow select, input, select, textarea {
  width: 100%; border: 1px solid #d5e0da; border-radius: 12px; padding: 10px 12px;
  font: inherit; background: #fff; color: #14352c; margin: 0;
}
.frow input, .frow select { height: 44px; min-width: 0; }
.frow select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c7a6e' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.fico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: #eef6f1; border: 1px solid #dceae3; color: #127a5c; display: grid; place-items: center;
}
.fico i { width: 18px; height: 18px; }
.frow .unit { font-size: 13px; color: #5c7a6e; white-space: nowrap; }
.hint { font-size: 12.5px; color: #6b7f76; margin: 0 0 8px; display: flex; gap: 8px; align-items: flex-start; }
.hint i { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: #17765c; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.soil-picks {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.soil-pick {
  position: relative; border: 1.5px solid var(--td-line); background: #fff; border-radius: 12px;
  padding: 6px 6px 8px; cursor: pointer; text-align: center; font: inherit; color: inherit;
  min-width: 0;
}
.soil-pick img {
  display: block; width: 100%; height: 64px; object-fit: cover; object-position: center 55%;
  border-radius: 8px; background: var(--soil, #c48a4c);
}
.soil-pick b { display: block; margin-top: 5px; font-size: 12px; color: #123a2a; line-height: 1.25; }
.soil-pick small { display: block; font-size: 10px; color: #7c9188; }
.soil-pick:hover { border-color: #aed3bf; }
.soil-pick.is-on { border-color: #1b8a57; background: #f4fbf7; box-shadow: 0 6px 14px rgba(27,138,87,.14); }
.soil-pick::before {
  content: ""; display: block; height: 5px; margin: 0 0 6px; border-radius: 999px;
  background: var(--soil, #c48a4c);
}
.soil-pick.is-on::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #1b8a57 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat;
  box-shadow: 0 0 0 2px #fff;
}
.truck-picks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px;
}
.truck-pick {
  position: relative; border: 1.5px solid #d7e4dc; background: #fff; border-radius: 16px;
  padding: 0; cursor: pointer; text-align: center; font: inherit; color: #0f5a46;
  min-width: 0; overflow: hidden; display: grid; justify-items: stretch;
}
.truck-pick .truck-ico-wrap {
  width: 100%; height: 36px; display: grid; place-items: center; color: #0f5a46;
}
.truck-pick .truck-ico { width: 100%; max-width: 72px; height: 28px; display: block; }
.truck-pick .truck-photo {
  display: block; width: 100%; height: 88px; object-fit: cover; object-position: 50% 58%;
  background: #dce8e2;
}
.truck-pick .truck-cap { display: block; padding: 7px 6px 8px; }
.truck-pick b { display: block; font-size: 12px; font-weight: 700; color: #123a2a; line-height: 1.2; }
.truck-pick small { display: block; font-size: 10px; color: #7c9188; margin-top: 1px; }
.truck-pick .shape-check { display: none; }
.truck-pick:hover { border-color: #aed3bf; }
.truck-pick.is-on {
  border-color: #1b8a57; box-shadow: 0 6px 14px rgba(27,138,87,.16);
}
.truck-pick.is-on .truck-ico-wrap { color: #f0d37a; }
.truck-pick.is-on .truck-cap {
  background: linear-gradient(180deg, #155e48, #0a3d30); color: #fff;
}
.truck-pick.is-on b, .truck-pick.is-on small { color: #fff; }
.truck-pick.is-on small { color: rgba(255,255,255,.82); }
.truck-pick.is-on .shape-check {
  display: block; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px;
  color: #e3b451; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.btn-gold, .btn-green, .btn-outline, .btn-ghost, .icon-btn {
  font: inherit; cursor: pointer; border-radius: 12px; display: inline-flex; gap: 8px;
  align-items: center; justify-content: center; text-decoration: none;
}
.btn-calc {
  width: 100%; margin-top: 14px; border: 0; padding: 12px;
  background: linear-gradient(90deg, #c9a227, #e8c15a); color: #3b2d04; font-weight: 700;
  box-shadow: 0 8px 18px rgba(201,162,39,.28);
}
.btn-gold.lg { width: 100%; border: 0; padding: 13px 16px; font-weight: 700; color: #3b2d04;
  background: linear-gradient(90deg, #c9a227, #e8c15a); }
.btn-green { width: 100%; border: 0; padding: 11px; background: #0f5a46; color: #fff; font-weight: 600; margin-top: 8px; }
.btn-outline { width: 100%; border: 1px solid #c9d8d1; background: #fff; padding: 11px; color: #0f5a46; margin-top: 8px; }
.btn-ghost { border: 1px dashed #c9d8d1; background: #fff; padding: 8px 12px; }
.btn-ghost i { width: 16px; height: 16px; }
.btn-ghost.is-on { border-style: solid; border-color: #0d4a3b; background: #e8f6ef; color: #0d4a3b; }
.poly-fields { display: grid; gap: 10px; }
.poly-map { position: relative; }
.poly-mini {
  width: 100%; height: 220px; border-radius: 14px; background: #8fc06a;
  touch-action: none; cursor: crosshair; display: block; border: 1px solid #d5e0da;
}
.poly-map-tag {
  position: absolute; z-index: 1; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: #0d4a3b; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 4px 10px rgba(13,74,59,.12);
}
.poly-map-tag i { width: 14px; height: 14px; }
.poly-map-tips {
  position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.poly-map-tips span {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8,44,30,.72); color: #fff; font-size: 11px;
  padding: 4px 8px; border-radius: 999px;
}
.poly-map-tips i { width: 12px; height: 12px; }
.poly-toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.poly-tool {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1.5px solid #d5e0da; background: #fff; border-radius: 12px;
  padding: 8px; cursor: pointer; font: inherit; color: inherit;
}
.poly-tool .fico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; }
.poly-tool b { display: block; font-size: 13px; color: #123a2a; line-height: 1.2; }
.poly-tool small { display: block; font-size: 10.5px; color: #7c9188; }
.poly-tool:hover { border-color: #aed3bf; }
.poly-tool.is-on { border-color: #1b8a57; background: #f4fbf7; box-shadow: 0 6px 14px rgba(27,138,87,.12); }
.poly-tool.is-on .fico { background: #1b8a57; border-color: #1b8a57; color: #fff; }
.poly-head, .poly-row {
  display: grid; grid-template-columns: 64px 1fr 1fr 40px; gap: 8px; align-items: center;
}
.poly-head { font-size: 11.5px; color: #6b7f76; padding: 0 2px; }
.poly-head span { display: inline-flex; align-items: center; gap: 4px; }
.poly-head i { width: 13px; height: 13px; }
.poly-idx { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #3c5a4f; font-weight: 600; }
.poly-idx i { width: 14px; height: 14px; color: #17765c; }
.poly-row .frow input { height: 40px; }
.poly-row .fico { width: 40px; height: 40px; flex: 0 0 40px; }
.icon-btn.danger { color: #b42318; border-color: #f0d4d0; background: #fff8f7; }
.icon-btn.danger:hover { background: #fdecea; }
.icon-btn i { width: 16px; height: 16px; }
.poly-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.poly-actions .btn-ghost { flex: 1; min-width: 120px; }
.poly-area {
  margin-left: auto; font-size: 13px; color: #2f5a48;
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef8f1; border: 1px solid #d5eadc; border-radius: 999px; padding: 7px 12px;
}
.poly-area i { width: 15px; height: 15px; color: #17765c; }
.poly-area b { color: #0d4a3b; }
.upload-box {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  border: 1.5px dashed #c9d8d1; border-radius: 14px; padding: 22px 14px;
  background: #f7fbf8; color: #3c5a4f; cursor: pointer;
}
.upload-box i { width: 28px; height: 28px; color: #17765c; }
.upload-box b { font-size: 14px; color: #123a2a; }
.upload-box small { font-size: 12px; color: #7c9188; }
.upload-box input { max-width: 240px; }
.poly-draw {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  touch-action: none; cursor: crosshair;
}
.poly-draw[hidden] { display: none !important; }

.view-card { display: flex; flex-direction: column; min-height: 540px; }
.view-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-head h2 { margin: 0 auto 0 0; font-size: 18px; color: #0d3d32; }
.icon-btn { width: 36px; height: 36px; border: 1px solid #dbe6e0; background: #fff; color: #3c5a4f; }
.ba-toggle { display: flex; background: #eef6f1; border-radius: 10px; padding: 3px; }
.ba-toggle button {
  border: 0; background: transparent; border-radius: 8px; padding: 6px 10px; font: 500 12px/1 inherit; color: #3c5a4f; cursor: pointer;
}
.ba-toggle button.is-on { background: linear-gradient(180deg, #17765c, #0d4a3b); color: #fff; }
.view-tabs { display: flex; gap: 6px; margin: 12px 0; }
.view-tabs button {
  border: 1px solid #e2ebe6; background: #f4f8f6; border-radius: 10px; padding: 8px 14px;
  font: inherit; font-size: 13px; cursor: pointer; color: #3c5a4f;
}
.view-tabs button.is-on { background: linear-gradient(180deg, #17765c, #0d4a3b); color: #fff; border-color: #0d4a3b; }
.view-stage { position: relative; flex: 1; min-height: 360px; border-radius: 16px; overflow: hidden; background: #6bb7e8; }
#ew-3d {
  position: absolute; inset: 0; z-index: 1;
}
#ew-3d canvas {
  width: 100% !important; height: 100% !important; display: block; touch-action: none;
}
.view-fallback { display: grid; place-items: center; height: 100%; margin: 0; padding: 24px; text-align: center; color: #3c5a4f; font-size: 13px; }
.view-tools {
  position: absolute; z-index: 4; right: 10px; top: 10px; display: grid; gap: 6px;
}
.view-tools button {
  display: grid; justify-items: center; gap: 2px; width: 64px; border: 0; cursor: pointer;
  background: rgba(8,50,38,.82); color: #eaf3ed; border-radius: 12px; padding: 8px 4px; font: 400 10px/1.2 inherit;
}
.view-tools button i { width: 15px; height: 15px; }
.view-tools button.is-on, .view-tools button:hover { background: #147a58; color: #fff; }
.ba-slider {
  position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(420px, 78%); display: flex; gap: 10px; align-items: center; color: #fff; font-size: 12px;
  background: rgba(8,44,30,.72); padding: 7px 14px; border-radius: 999px;
}
.ba-slider input { flex: 1; margin: 0; padding: 0; border: 0; height: 4px; accent-color: #e3b451; }
.dim-label {
  background: rgba(255,255,255,.92); color: #1d3d2f; border-radius: 6px; padding: 2px 8px;
  font: 600 12px/1 "IBM Plex Sans Thai", sans-serif; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.result-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.result-metrics article { border: 1px solid #e5eee9; border-radius: 14px; padding: 12px 14px; background: #fbfdfc; }
.result-metrics article > span { display: block; font-size: 12px; color: #5d746b; }
.metric-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.mico { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: #e6f4ec; color: #12784f; }
.mico i { width: 18px; height: 18px; }
.metric-row em { font-style: normal; font-size: 12px; color: #6b8278; align-self: flex-end; padding-bottom: 4px; }
.result-metrics strong { font-family: Kanit, sans-serif; font-size: 24px; color: #13664a; line-height: 1.1; }
.result-metrics small { display: block; font-size: 11px; color: #7d918a; }
.result-metrics .gold { background: linear-gradient(180deg, #fff8e6, #fffdf6); border-color: #f0e2b8; }
.result-metrics .gold .mico { background: #fbedc7; color: #a87c10; }
.result-metrics .gold strong { color: #b8860b; }
.note { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #7a8f86; margin: 12px 0 0; }
.note i { width: 14px; height: 14px; color: #17765c; flex: 0 0 auto; }

.truck-shot { width: 100%; height: 92px; object-fit: cover; object-position: 48% 78%; border-radius: 12px; margin-bottom: 12px; }
.transport-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.statbox { display: flex; align-items: stretch; height: 44px; border: 1px solid #d9e5df; border-radius: 12px; overflow: hidden; background: #fff; }
.statbox b { flex: 1; display: flex; align-items: center; padding: 0 10px; font-weight: 600; color: #14352c; }
.statbox em { font-style: normal; display: flex; align-items: center; padding: 0 10px; background: #f2f7f4; color: #6b8278; font-size: 12.5px; border-left: 1px solid #e3ede8; }
.tip {
  margin: 12px 0 0; background: #ecf7ef; border: 1px solid #d8ecdf; border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; color: #33604d; display: flex; gap: 8px; align-items: flex-start;
}
.tip i { width: 16px; height: 16px; color: #d4a017; flex: 0 0 auto; margin-top: 2px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.toggle input {
  appearance: none; -webkit-appearance: none; width: 46px; height: 26px; flex: 0 0 46px;
  margin: 0; padding: 0; border: 0; border-radius: 999px; background: #d7e2dc; position: relative; cursor: pointer;
}
.toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s;
}
.toggle input:checked { background: #0f5a46; }
.toggle input:checked::after { transform: translateX(20px); }
.grand {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px;
  border-radius: 14px; background: linear-gradient(180deg, #fdf2d2, #f8e3a9); border: 1px solid #f0d78f;
}
.gicon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255,255,255,.7); display: grid; place-items: center; color: #a87c10; }
.grand span { display: block; font-size: 12px; color: #7a6520; }
.grand strong { display: flex; align-items: baseline; gap: 6px; font-size: 24px; color: #0f5a46; }
.grand strong small { font-size: 12px; color: #5f7a6d; }

.quote-card { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 8px;
  background: linear-gradient(180deg, #f7e59a, #e8c85a); }
.quote-card p { margin: 0; font-size: 12px; color: #5c5340; line-height: 1.5; }
.quote-card .btn-outline { background: rgba(255,255,255,.7); }

.td-foot {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 8px; padding: 16px 28px 20px;
  background: linear-gradient(90deg, #06281e, #0b4532 55%, #083226); color: #dcece3;
}
.td-foot p { margin: 0; font-size: 12px; opacity: .8; }
.td-foot ul { flex: 1; display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.td-foot li { display: flex; gap: 8px; align-items: center; }
.td-foot li i { width: 18px; height: 18px; color: var(--td-gold); }
.td-foot li b { display: block; font-size: 13px; color: #fff; }
.td-foot li span { font-size: 11px; color: rgba(220,236,227,.7); }
.td-foot nav { display: flex; gap: 14px; font-size: 12px; color: rgba(220,236,227,.7); }
.td-foot a { color: inherit; text-decoration: none; }

.td-modal { position: fixed; inset: 0; z-index: 120; background: rgba(4,26,18,.6); display: grid; place-items: center; padding: 20px; }
.td-modal[hidden] { display: none; }
.td-modal-card { position: relative; width: min(430px, 100%); background: #fff; border-radius: 18px; padding: 24px; }
.td-modal-card h2 { margin: 0; font-size: 20px; color: #123a2a; }
.td-modal-card .muted { color: #7c9188; font-size: 12.5px; margin: 4px 0 14px; }
.td-modal-card .muted.sm { font-size: 11.5px; margin: 10px 0 0; text-align: center; }
.td-modal-card label { display: block; font-size: 12px; color: #6d8479; margin-bottom: 10px; }
.td-modal-card input, .td-modal-card textarea { margin-top: 5px; }
.td-modal-card .x {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: #f1f6f3; color: #4a685b; cursor: pointer; display: grid; place-items: center;
}
.td-summary { background: #f4faf6; border: 1px solid #e0efe6; border-radius: 12px; padding: 11px 13px; font-size: 12.5px; color: #2f5a48; margin-bottom: 14px; line-height: 1.7; }

@media (max-width: 1280px) {
  .td-bottom { grid-template-columns: 1fr 1fr; }
  .td-hero-cap { display: none; }
  .td-badges { right: 16px; top: 16px; flex-wrap: wrap; max-width: 280px; justify-content: flex-end; }
}
@media (max-width: 980px) {
  .td-top {
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .td-grid, .td-bottom { grid-template-columns: 1fr; }
  .td-wrap { padding: 0 16px 12px; margin-top: -48px; }
  .td-hero {
    min-height: 0; padding: 20px 16px 72px;
    background-position: 82% 46%;
  }
  .td-hero::before {
    background: linear-gradient(180deg, rgba(4,28,18,.86) 0%, rgba(6,36,22,.58) 46%, rgba(8,40,24,.22) 100%);
  }
  .td-hero-copy { max-width: 100%; }
  .td-hero h1 { font-size: clamp(22px, 7vw, 32px); }
  .td-steps { gap: 6px; }
  .td-step { padding: 8px; }
  .td-step b { font-size: 12px; }
  .td-badges {
    position: static; display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 14px; max-width: none; justify-content: flex-start;
  }
  .td-badges span { padding: 8px 10px; font-size: 11.5px; }
  .view-card { min-height: 0; }
  .view-stage { min-height: 320px; }
  .view-tabs {
    overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-right: -4px;
  }
  .view-tabs::-webkit-scrollbar { display: none; }
  .view-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .result-metrics .gold { grid-column: 1 / -1; }
  .step-metrics .gold { grid-column: auto; }
  .td-foot {
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  }
  .td-foot ul { gap: 14px; }
  .td-steps { grid-template-columns: repeat(2, 1fr); }
  .step-metrics { grid-template-columns: 1fr 1fr; }
  .mind-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mind-copy .btn-outline, .btn-line { width: 100%; margin-right: 0; }
  .mind-lineid { justify-content: center; }
}
@media (max-width: 640px) {
  .td-brand small { display: none; }
  .td-user { gap: 8px; }
  .td-user .bell { display: none; }
  .td-user .chip { padding: 4px 10px 4px 4px; }
  .td-user .chip small { display: none; }
  .td-user .chip b { font-size: 12px; }
  .td-wrap { padding: 0 10px 14px; margin-top: -40px; }
  .td-card { padding: 14px 12px 14px; border-radius: 16px; }
  .td-head h2 { font-size: 16px; }
  .shape-tabs { gap: 6px; }
  .shape-tabs button { flex: 1 1 calc(50% - 6px); justify-content: center; font-size: 12px; padding: 10px 8px; }
  .soil-picks {
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: thin;
  }
  .soil-pick { flex: 0 0 112px; }
  .soil-pick img { height: 64px; }
  .poly-mini { height: 200px; }
  .poly-tool { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; }
  .poly-tool small { display: none; }
  .poly-head, .poly-row { grid-template-columns: 48px 1fr 1fr 36px; }
  .poly-row .fico { display: none; }
  .poly-area { margin-left: 0; width: 100%; justify-content: center; }
  .fields { grid-template-columns: 1fr; }
  .frow input, .frow select, input, select, textarea { font-size: 16px; }
  .view-head { gap: 8px; }
  .view-head h2 { flex: 1 1 auto; margin: 0; font-size: 16px; }
  .view-stage { min-height: 280px; }
  .view-tools {
    top: auto; bottom: 8px; right: 8px; left: 8px;
    display: flex; gap: 0; background: rgba(8,50,38,.88); border-radius: 14px; padding: 4px;
  }
  .view-tools button {
    width: auto; flex: 1; background: transparent; padding: 8px 2px; font-size: 9px;
  }
  .view-tools button span { display: none; }
  .ba-slider {
    left: 8px; right: 8px; width: auto; transform: none; bottom: 58px;
    font-size: 11px; padding: 6px 10px;
  }
  .result-metrics { grid-template-columns: 1fr; }
  .result-metrics .gold { grid-column: auto; }
  .result-metrics strong { font-size: 22px; }
  .transport-stats { grid-template-columns: 1fr; }
  .grand strong { font-size: 22px; }
  .td-modal { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); align-items: end; }
  .td-modal-card { width: 100%; max-height: 92vh; overflow: auto; border-radius: 18px 18px 12px 12px; }
}
@media (max-width: 380px) {
  .td-user .chip-cta span { display: none; }
  .td-user .chip-cta { width: 38px; height: 38px; justify-content: center; padding: 0; }
}

/* App chrome — match 3-phone mockup at every breakpoint */
html:has(body.is-land),
body.is-land {
  background: #e8eee6;
  max-width: 100%;
  overflow-x: hidden;
}
body.is-land .td-hero,
body.is-land .td-foot,
body.is-land .td-steps,
body.is-land .step-nav,
body.is-land .step-contact,
body.is-land [data-step-pane="4"] { display: none !important; }

body.is-land .td-top[data-screen="home"] { display: none !important; }
body.is-land .td-top[data-screen="page"] {
  position: sticky; top: 0; z-index: 40;
  display: flex; padding: 0; overflow: hidden;
  background: linear-gradient(90deg, #06281e, #0b4532 55%, #083226);
}
body.is-land .td-top[data-screen="page"]::after {
  content: "";
  position: absolute; right: 56px; top: -28px; width: 160px; height: 120px;
  background: radial-gradient(ellipse at center, rgba(227,180,81,.22), transparent 68%);
  pointer-events: none;
}
body.is-land .td-top-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 430px; width: 100%; margin: 0 auto;
  min-width: 0; min-height: 56px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  box-sizing: border-box;
}
body.is-land .td-brand svg { width: 34px; height: 24px; }
body.is-land .td-brand b { font-size: 18px; }
body.is-land .td-brand small { font-size: 10px; }
body.is-land .app-back {
  width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
body.is-land .app-back i { width: 20px; height: 20px; }
body.is-land .app-page { min-width: 0; flex: 1; }
body.is-land .app-page b {
  display: block; font-size: 15px; color: #fff; line-height: 1.2; font-weight: 600;
}
body.is-land .app-page small {
  display: block; font-size: 10.5px; color: rgba(234,243,237,.72); line-height: 1.3; margin-top: 2px;
}
body.is-land .td-brand { min-width: 0; }
body.is-land .td-user { margin-left: auto; flex: 0 0 auto; }
body.is-land .chip-mind {
  padding: 0 !important; background: transparent !important;
  width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden;
}
body.is-land .chip-mind img {
  width: 40px; height: 40px; border: 2px solid #e3b451; box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
body.is-land .chip-staff {
  width: 36px; height: 36px; flex: 0 0 36px;
  background: rgba(255,255,255,.12) !important;
  border-radius: 50%;
}
body.is-land .chip-staff i { width: 16px; height: 16px; color: #f0d37a; }

body.is-land .td-wrap {
  max-width: 430px; width: 100%; margin: 0 auto;
  min-width: 0; overflow-x: hidden;
  padding: 10px 10px calc(120px + env(safe-area-inset-bottom));
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}
body.is-land:has(.m-hero:not([hidden])) .td-wrap {
  margin-top: -58px;
  padding-top: 0;
}
body.is-land .td-card {
  border-radius: 18px; padding: 2px 12px 14px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(12,48,32,.12);
  width: 100%; min-width: 0; max-width: 100%;
}
body.is-land .frow input,
body.is-land .frow select,
body.is-land .fields,
body.is-land .field { min-width: 0; }
body.is-land .td-card > .sec-head,
body.is-land .td-card > .td-head,
body.is-land .td-card > .shape-tabs,
body.is-land .td-card > .job-tabs,
body.is-land .td-card > .fields,
body.is-land .td-card > .poly-fields,
body.is-land .td-card > [data-panel],
body.is-land .td-card > .hint,
body.is-land .td-card > .ok-banner,
body.is-land .td-card > .result-metrics,
body.is-land .td-card > .cost-box,
body.is-land .td-card > .plan-box,
body.is-land .td-card > .svc-box,
body.is-land .td-card > .result-actions,
body.is-land .td-card > .note,
body.is-land .td-card > .sun-tip,
body.is-land .td-card > .btn-calc {
  margin-left: 0; margin-right: 0;
}

body.is-land .m-hero {
  display: block; position: relative;
  max-width: 430px; width: 100%; margin: 0 auto;
  min-height: 236px; padding: 14px 16px 78px;
  background: var(--hero) 78% 42%/cover no-repeat; color: #fff;
  overflow: hidden; box-sizing: border-box;
}
body.is-land .m-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,22,16,.28) 0%, rgba(6,36,22,.55) 48%, rgba(5,28,20,.82) 100%),
    linear-gradient(90deg, rgba(4,24,16,.55) 0%, rgba(4,24,16,.08) 55%, transparent 100%);
}
body.is-land .m-hero > * { position: relative; z-index: 1; }
body.is-land .m-brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 12px; letter-spacing: 0;
  font-weight: 700; line-height: 1.35; color: #fff;
}
body.is-land .m-logo {
  width: 48px; height: 46px; flex: 0 0 48px; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
body.is-land .m-hero h1 {
  margin: 0; font-size: 28px; line-height: 1.15; color: #fff; font-weight: 700;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
body.is-land .m-gold {
  margin: 6px 0 0; font-size: 22px; line-height: 1.2; font-weight: 700;
  color: #f0d37a; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
body.is-land .m-lead {
  margin: 8px 0 0; font-size: 13px; color: rgba(255,255,255,.92);
}
body.is-land .m-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-width: 0; max-width: 72%; }
body.is-land .m-pills span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px;
  background: rgba(8,40,28,.72); font-size: 10.5px; color: #fff; line-height: 1.2;
  border: 1px solid rgba(255,255,255,.08);
}
body.is-land .m-pills i { width: 14px; height: 14px; color: #f0d37a; flex: 0 0 14px; }
body.is-land .m-quote {
  position: absolute; right: 14px; bottom: 84px; margin: 0; z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-size: 13px; line-height: 1.35; color: #f0d37a; text-align: right;
  text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 42%;
}

body.is-land .sec-head {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px; align-items: start; margin: 12px 0 8px;
}
body.is-land .sec-head.sm { grid-template-columns: 26px minmax(0, 1fr); margin: 0 0 6px; }
body.is-land .sec-head.sm h2 { font-size: 14px; line-height: 1.25; }
body.is-land .sec-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #d7b056, #9a7420); color: #fff;
  font: 700 14px/1 Kanit, sans-serif;
}
body.is-land .sec-head.sm .sec-num { width: 26px; height: 26px; font-size: 13px; }
body.is-land .sec-head h2 { margin: 0; font-size: 16px; color: #0d3d32; }
body.is-land .sec-head p { margin: 2px 0 0; color: #6b7f76; font-size: 11.5px; }
body.is-land .sec-head em { font-style: normal; font-size: 11px; color: #6b7f76; font-weight: 500; }
body.is-land .sec-aside {
  font-size: 10px; line-height: 1.3; color: #17765c; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  max-width: 108px;
}
body.is-land .sec-aside i { width: 16px; height: 16px; color: #3d8a68; }

body.is-land .shape-long { display: none; }
body.is-land .shape-short { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; }
body.is-land .shape-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px; flex-wrap: nowrap; width: 100%; max-width: 100%;
  margin-bottom: 8px;
}
body.is-land .shape-tabs button {
  position: relative;
  flex: none; display: grid; justify-items: center; align-content: center; gap: 0;
  min-height: 74px; padding: 10px 4px 8px; font-size: 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid #d7e4dc; color: #0f5a46;
  min-width: 0; width: 100%; overflow: hidden;
}
body.is-land .shape-tabs button > i:not(.shape-check) { width: 28px; height: 28px; stroke-width: 2.2; }
body.is-land .shape-tabs button .shape-check {
  display: none; position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; color: #e3b451;
}
body.is-land .shape-tabs button.is-on {
  background: linear-gradient(180deg, #155e48, #0a3d30); color: #fff; border-color: transparent;
}
body.is-land .shape-tabs button.is-on .shape-check { display: block; }

body.is-land .job-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px; width: 100%; max-width: 100%;
  margin-bottom: 8px;
}
body.is-land .job-tabs button {
  position: relative;
  flex: none; display: grid; justify-items: center; align-content: center; gap: 0;
  min-height: 74px; padding: 10px 6px 8px; font-size: 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid #d7e4dc; color: #0f5a46;
  min-width: 0; width: 100%; overflow: hidden;
}
body.is-land .job-tabs button > i:not(.shape-check) { width: 28px; height: 28px; stroke-width: 2.2; }
body.is-land .job-tabs button .shape-check {
  display: none; position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; color: #e3b451;
}
body.is-land .job-tabs button.is-on {
  background: linear-gradient(180deg, #155e48, #0a3d30); color: #fff; border-color: transparent;
}
body.is-land .job-tabs button.is-on .shape-check { display: block; }
body.is-land .job-tabs .shape-long { display: none; }
body.is-land .job-tabs .shape-short { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; }

body.is-land [data-panel="rectangle"].fields,
body.is-land .soil-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
body.is-land .fields { gap: 8px; }
body.is-land .fields.mt { margin-top: 8px; }
body.is-land .frow input,
body.is-land .frow select { height: 42px; }
body.is-land .fico { width: 42px; height: 42px; flex-basis: 42px; }
body.is-land #width-field[hidden] { display: none !important; }
body.is-land .soil-row .flabel { min-height: 0; }
body.is-land .soil-row .custom-comp { grid-column: 1 / -1; }
body.is-land #soil-type {
  display: block; width: 100%; height: 42px; border: 1px solid #d5e0da; border-radius: 12px;
  padding: 0 12px; font: inherit; background: #fff;
}
body.is-land .job-package-only.field > .frow { display: none; }
body.is-land .job-trip-only.field > .frow { display: none; }
body.is-land #calc-form[data-job="package"] .soil-row,
body.is-land #calc-form[data-job="trip"] .soil-row {
  grid-template-columns: 1fr !important;
}
body.is-land .soil-picks {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  overflow: visible;
}
body.is-land .truck-picks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
body.is-land .truck-pick { min-height: 0; padding: 0; }
body.is-land .truck-pick .truck-photo { height: 108px; }
body.is-land .truck-pick .truck-cap { padding: 8px 8px 9px; }
body.is-land .truck-pick .truck-ico { max-width: 78px; height: 30px; }
body.is-land .truck-pick b { font-size: 13px; }
body.is-land .truck-pick small { font-size: 11px; margin-top: 2px; }
body.is-land .soil-pick { min-width: 0; }
body.is-land .soil-pick img { height: 56px; }
body.is-land .soil-pick b { font-size: 11px; }
body.is-land .btn-calc {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 10px 0 18px; padding: 12px 42px 12px 16px;
  scroll-margin-bottom: 96px;
  border: 0; border-radius: 14px; font-size: 16px; font-weight: 700;
  background: linear-gradient(90deg, #c9a227, #e8c15a); color: #3b2d04;
  box-shadow: 0 8px 18px rgba(201,162,39,.28);
}
body.is-land .btn-calc i { width: 20px; height: 20px; }
body.is-land .btn-calc .btn-go {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
}
body.is-land .calc-note { margin-top: 6px; font-size: 11.5px; }

body.is-land .view-card { min-height: 0; padding: 0 0 12px; }
body.is-land .view-stage {
  position: relative;
  min-height: calc(100dvh - 280px);
  height: calc(100dvh - 280px);
  border-radius: 0; margin: 0 !important;
}
body.is-land .view-tabs {
  position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 0; padding: 4px; overflow: hidden;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 22px rgba(8,40,28,.18);
}
body.is-land .view-tabs button {
  flex: none; border: 0; background: transparent; color: #3c5a4f;
  border-radius: 11px; padding: 9px 4px; font-size: 11px; white-space: nowrap;
  display: inline-flex; justify-content: center; gap: 4px;
  min-width: 0; overflow: hidden;
}
body.is-land .view-tabs button.is-on {
  background: #0d4a3b; color: #fff; border-color: transparent;
}
body.is-land .view-stage.is-still {
  background: #12352c;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
body.is-land .ew-3d-overlay {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
body.is-land .ew-3d-overlay canvas {
  width: 100% !important; height: 100% !important; display: block;
}
body.is-land .dim-label-screen {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  margin: 0;
  will-change: transform;
  background: none;
  color: #fff;
  border-radius: 0;
  padding: 0;
  font: 700 13px/1 Kanit, "IBM Plex Sans Thai", sans-serif;
  box-shadow: none;
  text-shadow:
    -1px -1px 0 #1a2e24,
     1px -1px 0 #1a2e24,
    -1px  1px 0 #1a2e24,
     1px  1px 0 #1a2e24,
     0 2px 8px rgba(0,0,0,.55);
}
body.is-land .view-fs {
  position: absolute; z-index: 5; right: 10px; bottom: 70px;
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(8,50,38,.82); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
body.is-land .view-fs i { width: 16px; height: 16px; }
body.is-land .view-cal {
  position: absolute; z-index: 5; left: 10px; bottom: 70px;
  height: 40px; border: 0; border-radius: 12px;
  padding: 0 12px;
  background: rgba(8,50,38,.82); color: #fff; cursor: pointer;
  font: 600 13px/1 Kanit, "IBM Plex Sans Thai", sans-serif;
}
body.is-land .view-cal.is-on { background: #d7a941; color: #3b2d04; }
body.is-land .view-stage.is-calibrating { touch-action: none; }
body.is-land .ground-cal {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
}
body.is-land .ground-cal-quad {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
body.is-land .ground-cal-quad polygon {
  fill: rgba(215, 169, 65, .12);
  stroke: #f3d37a;
  stroke-width: 0.45;
  stroke-dasharray: 1.4 0.9;
}
body.is-land .ground-cal-dot {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0f5a46;
  color: #fff;
  font: 700 12px/1 Kanit, sans-serif;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  z-index: 7;
}
body.is-land .ground-cal-dot span { pointer-events: none; }
body.is-land .ground-cal-dot:active { cursor: grabbing; background: #d7a941; color: #3b2d04; }
body.is-land .ground-cal-reset {
  position: absolute; left: 10px; top: 12px;
  pointer-events: auto;
  border: 0; border-radius: 10px;
  background: rgba(8,50,38,.82); color: #fff;
  font: 600 12px/1 Kanit, "IBM Plex Sans Thai", sans-serif;
  padding: 8px 10px; cursor: pointer;
}
body.is-land .soil-plot {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
body.is-land .soil-plot .soil-dim {
  font: 700 2.6px/1 Kanit, "IBM Plex Sans Thai", sans-serif;
  fill: #16382c;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 0.7px;
}
body.is-land .view-still-wrap {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  transform: scale(var(--still-zoom, 1));
  transform-origin: center center;
  transition: transform .25s ease;
}
body.is-land .view-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
body.is-land .view-still-before,
body.is-land .view-still-after {
  object-position: center 48%;
  transform: none;
}
body.is-land .view-stage[data-cam="top"] .view-still-after,
body.is-land .view-stage[data-cam="top"] .view-still-before {
  object-position: center 58%;
  transform: scale(1.25);
}
body.is-land .view-stage[data-cam="side"] .view-still-after,
body.is-land .view-stage[data-cam="side"] .view-still-before {
  object-position: 72% 52%;
  transform: scale(1.2);
}
body.is-land .view-compass {
  position: absolute; z-index: 5; top: 64px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8,40,28,.78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
body.is-land .view-compass::before {
  content: ""; position: absolute; top: 4px; left: 50%;
  width: 0; height: 0; margin-left: -4px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 8px solid #e8c15a;
}
body.is-land .view-tools {
  position: absolute; z-index: 5;
  top: auto; bottom: 70px; left: 10px; right: auto; width: 40px;
  display: grid; gap: 8px; background: transparent; padding: 0;
  transform: none;
}
body.is-land .ba-slider {
  display: flex !important;
  bottom: 14px; left: 58px; right: 12px; width: auto; transform: none;
  font-size: 12px;
}
body.is-land .view-tools button {
  width: 40px; height: 40px; border-radius: 12px; padding: 0;
  background: rgba(8,50,38,.82); color: #fff;
}
body.is-land .sun-tip {
  margin-top: 10px; background: #fff8e8; border: 1px solid #f0e2b8;
  border-radius: 12px; padding: 10px 12px;
}
body.is-land .sun-tip i { color: #e3b451; }

body.is-land .result-pane.td-card {
  background: transparent; box-shadow: none; padding: 0; overflow: visible;
}
body.is-land .result-stack,
body.is-land .result-pane .cost-box,
body.is-land .result-pane .plan-box,
body.is-land .result-pane .svc-box {
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(12,48,32,.1);
  padding: 12px;
  margin: 0 0 10px;
}
body.is-land .result-pane .result-actions,
body.is-land .result-pane .note { display: none !important; }

body.is-land .ok-banner {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
  background: linear-gradient(90deg, #e7f6ec, #f4fbf7);
  border: 0; border-radius: 16px; padding: 12px 10px; margin: 0 0 10px;
}
body.is-land .ok-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1b8a57; color: #fff; display: grid; place-items: center; flex: 0 0 32px;
}
body.is-land .ok-check i,
body.is-land .ok-check svg { width: 16px !important; height: 16px !important; color: #fff; stroke: #fff; }
body.is-land .ok-banner b { font-size: 15px; color: #0d4a3b; }
body.is-land .ok-banner span { font-size: 11.5px; color: #5c7a6e; }
body.is-land .ok-aside {
  font-size: 10px; line-height: 1.3; color: #17765c; text-align: right;
  max-width: 108px;
}
body.is-land .ok-aside i { width: 14px; height: 14px; color: #2f9a68; display: block; margin: 0 0 2px auto; }

body.is-land .result-metrics,
body.is-land .step-metrics {
  grid-template-columns: 1fr 1fr !important; gap: 8px;
}
body.is-land .result-metrics article,
body.is-land .step-metrics article {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 14px;
  gap: 8px; align-items: start;
  padding: 12px 10px; min-width: 0; overflow: hidden;
  background: #fff; border: 1.5px solid #e3eee8; border-radius: 16px;
}
body.is-land .result-metrics .mico {
  width: 32px; height: 32px; border-radius: 50%; background: #e8f6ee; color: #12784f;
}
body.is-land .metric-copy { min-width: 0; }
body.is-land .metric-copy > span { display: block; font-size: 11px; color: #5d746b; line-height: 1.25; }
body.is-land .result-metrics strong,
body.is-land .step-metrics strong {
  display: block; font-size: 22px; margin-top: 3px; color: #13664a;
}
body.is-land .result-metrics strong em {
  font-style: normal; font-size: 13px; font-weight: 600; color: #b8860b;
}
body.is-land .result-metrics small { margin-top: 2px; font-size: 10.5px; }
body.is-land .metric-go { width: 16px; height: 16px; color: #c5d5cc; align-self: center; }
body.is-land .result-metrics .gold,
body.is-land .step-metrics .gold {
  grid-column: auto !important;
  background: linear-gradient(180deg, #fff8e6, #fffdf6); border-color: #eddba0;
}
body.is-land .result-metrics .gold .mico { background: #fbedc7; color: #a87c10; }
body.is-land .result-metrics .gold strong { color: #b8860b; }
body.is-land .result-metrics .gold .metric-go { color: #e3b451; }

body.is-land .result-pane .td-head.sm {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px; align-items: start; margin-bottom: 12px;
}
body.is-land .result-pane .td-head.sm h2 { font-size: 16px; }
body.is-land .result-pane .td-head.sm p { margin: 2px 0 0; font-size: 11px; color: #6b7f76; line-height: 1.35; }
body.is-land .result-pane .ico { border-radius: 50%; }
body.is-land .toggle.sm {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  margin: 0; font-size: 11px; color: #5c7a6e; white-space: nowrap;
}
body.is-land .toggle.sm input { width: 42px; height: 24px; flex: 0 0 42px; }
body.is-land .toggle.sm input::after { width: 18px; height: 18px; top: 3px; }
body.is-land .toggle.sm input:checked::after { transform: translateX(18px); }

body.is-land .result-pane .fields {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 8px;
}
body.is-land .result-pane .cost-box .fields {
  grid-template-columns: 1fr !important;
}
body.is-land .grand {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px; align-items: center; margin-top: 12px; padding: 12px;
  border-radius: 14px;
}
body.is-land .gicon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
body.is-land .grand strong { font-size: 24px; color: #8a6a12; }
body.is-land .grand strong small { font-size: 13px; color: #8a6a12; }
body.is-land #out-cost-formula {
  display: block; margin-top: 4px; font-size: 11px; line-height: 1.4; color: #6b7f76; font-weight: 500;
}
body.is-land .grand-aside {
  font-size: 10px; line-height: 1.3; color: #8a6a12; text-align: right;
  max-width: 92px;
}
body.is-land .grand-aside i { width: 14px; height: 14px; display: block; margin: 0 0 2px auto; color: #c9a227; }

body.is-land .svc-mind {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 2px 0 14px;
}
body.is-land .svc-photo {
  width: 86px; height: 86px; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  border: 3px solid #e3b451;
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(12,48,32,.16);
}
body.is-land .svc-copy b {
  display: block; font-size: 18px; color: #0d4a3b; font-weight: 700; line-height: 1.2;
}
body.is-land .svc-copy p {
  margin: 4px 0 0; font-size: 12.5px; color: #5c7a6e; line-height: 1.4;
}
body.is-land .svc-quote {
  margin-top: 8px !important;
  padding-left: 18px;
  position: relative;
  font-size: 13px; line-height: 1.45; color: #b8860b; font-weight: 600;
}
body.is-land .svc-quote::before {
  content: "“";
  position: absolute; left: 0; top: -2px;
  font-size: 22px; line-height: 1; color: #d4b24a; font-weight: 700;
}
body.is-land .svc-quote em {
  font-style: italic; color: #c9a227; font-weight: 800;
}
body.is-land .svc-chips {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
}
body.is-land .svc-chip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 6px;
  align-items: center;
  appearance: none;
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #e3eee8;
  border-radius: 16px;
  padding: 8px 6px 8px 8px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(12,48,32,.06);
}
body.is-land .svc-chip img,
body.is-land .svc-chip-ico {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex: 0 0 32px;
}
body.is-land .svc-chip-ico {
  display: grid; place-items: center;
  background: #e8f6ee; color: #12784f;
}
body.is-land .svc-chip-ico i,
body.is-land .svc-chip-ico svg { width: 15px !important; height: 15px !important; }
body.is-land .svc-chip > span:not(.svc-chip-ico) {
  font-size: 10.5px; line-height: 1.25; color: #0d4a3b; font-weight: 600;
}
body.is-land .svc-chip .chip-go { width: 14px; height: 14px; color: #c5d5cc; }
body.is-land .svc-chip:hover { border-color: #cfe4d8; background: #f7fbf8; }

body.is-land .truck-size {
  display: grid; grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px; align-items: center;
}
body.is-land .truck-size .flabel { margin: 0; font-size: 12px; line-height: 1.3; color: #5c7a6e; }
body.is-land .transport-stats {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  margin-top: 10px; gap: 8px;
}
body.is-land .statbox { height: 42px; }
body.is-land .statbox .fico {
  width: 42px; height: 42px; flex-basis: 42px; border: 0; border-radius: 12px 0 0 12px;
}
body.is-land .statbox b { padding: 0 8px; font-size: 18px; }

body.is-land .m-foot {
  display: block;
  position: fixed; z-index: 40;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(90deg, #0a3d30, #0f5a46 58%, #0c4a3a);
  box-shadow: 0 -10px 24px rgba(8,40,28,.28);
  box-sizing: border-box;
}
body.is-land .m-foot-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px;
  padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  text-decoration: none; color: #fff;
  box-sizing: border-box;
}
body.is-land .m-foot-photo {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 2px solid #e3b451; background: #083226;
}
body.is-land .m-foot-copy { min-width: 0; flex: 1; }
body.is-land .m-foot-copy b {
  display: block; font-size: 14px; line-height: 1.2; color: #fff;
}
body.is-land .m-foot-copy small {
  display: block; margin-top: 2px; font-size: 11px; line-height: 1.3;
  color: rgba(255,255,255,.88);
}
body.is-land .m-foot-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #06c755; color: #fff;
  border-radius: 999px; padding: 8px 12px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
body.is-land .m-foot-cta img {
  width: 18px; height: 18px; border-radius: 4px;
}

body.is-land .seo-faq {
  margin-top: 16px;
  padding: 0 0 8px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(201,162,39,.35);
  box-shadow: 0 12px 28px rgba(12,48,32,.12);
}
body.is-land .seo-faq-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(90deg, #0a3d30, #0f5a46 62%, #0c4a3a);
}
body.is-land .seo-faq-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f0d37a, #c9a227);
  color: #0a3d30;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
body.is-land .seo-faq-mark i,
body.is-land .seo-faq-mark svg { width: 18px; height: 18px; stroke: #0a3d30; }
body.is-land .seo-faq-head h2 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
body.is-land .seo-faq-head p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #f0d37a;
}
body.is-land .seo-faq details {
  background: #fff;
  border: 1px solid #efe4c4;
  border-radius: 14px;
  padding: 0;
  margin: 0 10px 8px;
  overflow: hidden;
}
body.is-land .seo-faq details[open] {
  border-color: #d7b056;
  background: #fffdf6;
  box-shadow: 0 6px 16px rgba(10,61,48,.08);
}
body.is-land .seo-faq summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: #0a3d30;
}
body.is-land .seo-faq summary::-webkit-details-marker { display: none; }
body.is-land .faq-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #0f5a46;
  color: #f0d37a;
}
body.is-land .faq-ico i,
body.is-land .faq-ico svg { width: 16px; height: 16px; stroke: #f0d37a; }
body.is-land .faq-q { min-width: 0; }
body.is-land .faq-chev {
  width: 16px; height: 16px; color: #c9a227;
  transition: transform .2s ease;
}
body.is-land .seo-faq details[open] .faq-chev { transform: rotate(180deg); }
body.is-land .seo-faq details p {
  margin: 0;
  padding: 0 12px 12px 50px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #3d5c52;
}
body.is-land .seo-org {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 2px 0 0;
  padding: 8px 12px 4px;
  font-size: 11.5px;
  color: #0a3d30;
  line-height: 1.4;
}
body.is-land .seo-org span,
body.is-land .seo-org a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0a3d30;
  text-decoration: none;
  font-weight: 600;
}
body.is-land .seo-org a { color: #8a6a14; }
body.is-land .seo-org i,
body.is-land .seo-org svg { width: 13px; height: 13px; stroke: #c9a227; }
body.is-land .seo-faq-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  color: #fff;
}
body.is-land .seo-faq-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f0d37a, #c9a227);
  color: #0a3d30;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
body.is-land .seo-faq-mark i,
body.is-land .seo-faq-mark svg { width: 18px; height: 18px; stroke: #0a3d30; }
body.is-land .seo-faq-head h2 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}
body.is-land .seo-faq-head p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #f0d37a;
}
body.is-land .seo-faq details {
  background: #fff;
  border: 1px solid rgba(201,162,39,.28);
  border-radius: 14px;
  padding: 0;
  margin: 0 0 8px;
  overflow: hidden;
}
body.is-land .seo-faq details[open] {
  border-color: #d7b056;
  box-shadow: 0 6px 16px rgba(10,61,48,.08);
}
body.is-land .seo-faq summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: #0a3d30;
}
body.is-land .seo-faq summary::-webkit-details-marker { display: none; }
body.is-land .faq-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #0f5a46;
  color: #f0d37a;
}
body.is-land .faq-ico i,
body.is-land .faq-ico svg { width: 16px; height: 16px; stroke: #f0d37a; }
body.is-land .faq-q { min-width: 0; }
body.is-land .faq-chev {
  width: 16px; height: 16px; color: #c9a227;
  transition: transform .2s ease;
}
body.is-land .seo-faq details[open] .faq-chev { transform: rotate(180deg); }
body.is-land .seo-faq details p {
  margin: 0;
  padding: 0 12px 12px 50px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #3d5c52;
}
body.is-land .seo-org {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0 0;
  padding: 10px 10px 2px;
  font-size: 11.5px;
  color: #0a3d30;
  line-height: 1.4;
}
body.is-land .seo-org span,
body.is-land .seo-org a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0a3d30;
  text-decoration: none;
  font-weight: 600;
}
body.is-land .seo-org a { color: #8a6a14; }
body.is-land .seo-org i,
body.is-land .seo-org svg { width: 13px; height: 13px; stroke: #c9a227; }

@media (min-width: 1100px) {
  body.is-land .td-top-inner,
  body.is-land .td-wrap { max-width: 430px; }
}
