.guided-landing[hidden],
.guided-workspace[hidden],
#guidedCalculate[hidden] {
  display: none !important;
}

.guided-shell,
.guided-shell * {
  box-sizing: border-box;
}

.guided-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(31, 122, 236, 0.08), transparent 34rem),
    #f8fafc;
}

.guided-shell button:not(.isb-hotspot),
.guided-shell .isb-result-link {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.guided-shell button:not(.secondary-btn):not(.isb-choice):not(.isb-hotspot),
.guided-shell .isb-result-link {
  color: #fff;
  background: #1f7aec;
  box-shadow: 0 8px 18px rgba(31, 122, 236, 0.2);
}

.guided-shell button:not(.isb-hotspot):hover:not(:disabled),
.guided-shell .isb-result-link:hover {
  transform: translateY(-1px);
}

.guided-shell button:not(.isb-hotspot):focus-visible,
.guided-shell .isb-result-link:focus-visible,
.guided-shell input:focus-visible,
.guided-shell select:focus-visible {
  outline: 3px solid rgba(31, 122, 236, 0.32);
  outline-offset: 2px;
}

.guided-shell button:not(.isb-hotspot):disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.guided-shell .secondary-btn,
.guided-shell .isb-choice {
  color: #0f172a;
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: none;
}


.guided-toolbar-row,
.guided-topbar-actions,
.guided-control-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.guided-toolbar-row--landing {
  justify-content: flex-end;
  margin-bottom: 8px;
}

.guided-topbar-actions {
  justify-content: flex-end;
}

.guided-language-wrap {
  display: grid;
  gap: 5px;
  min-width: 150px;
  text-align: left;
}

.guided-language-wrap label {
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guided-language-wrap select {
  width: 100%;
  min-height: 42px;
  padding: 9px 34px 9px 11px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
}

.guided-landing {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guided-landing-card {
  width: min(690px, 100%);
  padding: 46px 38px;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.guided-logo {
  width: min(280px, 78%);
  height: auto;
  margin-bottom: 20px;
}

.guided-landing-card h1 {
  max-width: 590px;
  margin: 8px auto 12px;
  color: #0f172a;
  line-height: 1.12;
}

.guided-landing-card > p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
}

.guided-landing-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 26px;
}

.guided-landing-flow div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-weight: 750;
}

.guided-landing-flow strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1f7aec;
  border-radius: 999px;
  font-size: 13px;
}

.guided-workspace {
  max-width: 1220px;
  margin: 0 auto;
}

.guided-topbar,
.guided-planner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.guided-topbar {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 20px 24px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.guided-topbar-copy {
  min-width: 0;
}

.guided-topbar h1,
.guided-planner-header h2 {
  margin: 4px 0 6px;
  color: #0f172a;
}

.guided-topbar p,
.guided-planner-header p,
.guided-section-heading p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.guided-step-number {
  color: #1f7aec;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guided-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: #e2e8f0;
}

.guided-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #1f7aec, #22c55e);
  transition: width 0.32s ease;
}

.isb-panel {
  width: 100%;
}

.isb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #cfd7e3;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.isb-stage.isb-stage--result,
.isb-stage.isb-stage--stacked {
  aspect-ratio: auto;
  min-height: 0;
  overflow: visible;
  background: #fff;
}

.isb-stage.isb-stage--stacked {
  border-color: #dbe4f0;
}

.isb-scene,
.isb-scope-layout,
.isb-complete-layout {
  position: absolute;
  inset: 0;
}

.isb-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.isb-darken::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.3);
  pointer-events: none;
}

.isb-message-card,
.isb-question-card,
.isb-complete-card {
  z-index: 10;
  width: min(480px, calc(100% - 36px));
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(5px);
}

.isb-message-card {
  position: absolute;
}

.isb-message-card--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.isb-message-card--corner {
  left: 18px;
  top: 18px;
}

.isb-question-card {
  position: relative;
  width: 100%;
}

.isb-question-card--overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(480px, calc(100% - 36px));
}


.isb-message-card h2,
.isb-question-card h2,
.isb-complete-card h2 {
  margin: 4px 0 10px;
  color: #0f172a;
  line-height: 1.2;
}

.isb-message-card p,
.isb-question-card p,
.isb-complete-card p {
  color: #334155;
  line-height: 1.55;
}

.isb-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.isb-card-actions button {
  flex: 1 1 190px;
}

.isb-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #334155;
  background: #eff6ff;
  border-left: 4px solid #1f7aec;
  border-radius: 8px;
}

.isb-warning {
  padding: 10px 12px;
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 8px;
}

.guided-shell button.isb-hotspot {
  appearance: none;
  position: absolute;
  z-index: 8;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  color: transparent !important;
  background: transparent !important;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.96),
    0 0 0 10px rgba(249, 115, 22, 0.22) !important;
  cursor: pointer;
  overflow: visible;
}

.guided-shell button.isb-hotspot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(249, 115, 22, 0.72);
  border-radius: inherit;
  pointer-events: none;
  animation: hotspotPulse 1.5s ease-out infinite;
}

.guided-shell button.isb-hotspot:hover,
.guided-shell button.isb-hotspot:focus-visible {
  background: rgba(249, 115, 22, 0.08) !important;
  box-shadow:
    0 0 0 5px #f97316,
    0 0 0 13px rgba(249, 115, 22, 0.28) !important;
  outline: none;
}

.guided-shell button.isb-hotspot--placement {
  border-radius: 12px;
  color: #0f172a !important;
  background: rgba(219, 234, 254, 0.2) !important;
  box-shadow:
    0 0 0 4px rgba(31, 122, 236, 0.96),
    0 0 0 11px rgba(31, 122, 236, 0.22) !important;
}

.guided-shell button.isb-hotspot--placement::after {
  border-color: rgba(31, 122, 236, 0.72);
}

.guided-shell button.isb-hotspot--placement:hover,
.guided-shell button.isb-hotspot--placement:focus-visible {
  background: rgba(219, 234, 254, 0.34) !important;
  box-shadow:
    0 0 0 5px #1f7aec,
    0 0 0 14px rgba(31, 122, 236, 0.28) !important;
}

.isb-hotspot-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 160px;
  transform: translate(-50%, -50%);
  padding: 7px 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}


@keyframes hotspotPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.88);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.isb-action-hint {
  position: absolute;
  z-index: 9;
  left: 18px;
  bottom: 18px;
  max-width: 470px;
  padding: 11px 15px;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 9px;
  font-weight: 750;
  line-height: 1.45;
}

/* Hotspots use percentages so they scale with the 16:9 scene images. */
.hotspot-transit {
  left: 57.5%;
  top: 24%;
  width: 11%;
  height: 41%;
}

.hotspot-entry-stick {
  left: 24.5%;
  top: 18%;
  width: 7%;
  height: 35%;
}

.hotspot-exit-stick {
  left: 91.2%;
  top: 14.8%;
  width: 7.5%;
  height: 46%;
}

.hotspot-gas-stick {
  left: 57%;
  top: 18%;
  width: 7%;
  height: 54%;
}


.isb-measurement-layout {
  display: grid;
  background: #fff;
}

.isb-measurement-image-wrap {
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
}

.isb-measurement-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.isb-measurement-layout .isb-question-card {
  width: 100%;
  max-width: none;
  padding: 22px 24px 24px;
  border: 0;
  border-top: 1px solid #dbe4f0;
  border-radius: 0 0 18px 18px;
  box-shadow: none;
  backdrop-filter: none;
}

.isb-metric-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.45;
}

.isb-scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 26px;
  align-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 30% 50%, rgba(30, 41, 59, 0.72), rgba(2, 6, 23, 0.98));
}

.isb-scope-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.isb-scope-image {
  display: block;
  width: min(100%, 540px);
  max-height: calc(100% - 20px);
  object-fit: contain;
  image-rendering: auto;
}


.isb-answer-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.isb-answer-row > .isb-input-suffix {
  flex: 1;
  min-width: 0;
}

.isb-answer-row input,
.isb-multi-input-grid input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 9px;
  font: inherit;
  font-size: 18px;
}

.isb-answer-row input {
  flex: 1;
}
.isb-value-entry {
  display: flex;
  flex: 1;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.isb-value-entry > .isb-input-suffix {
  flex: 1;
  min-width: 0;
}

.guided-shell button.isb-sign-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 46px;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

.guided-shell button.isb-sign-toggle.is-active {
  color: #fff;
  background: #1f7aec;
  border-color: #1f7aec;
}
.isb-multi-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}


.isb-multi-input-row {
  display: grid;
  gap: 7px;
}

.isb-multi-input-row > span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.isb-multi-input-grid label {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-weight: 800;
}

.isb-input-suffix {
  position: relative;
}

.isb-input-suffix span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-weight: 800;
  pointer-events: none;
}

.isb-input-suffix input {
  padding-right: 48px;
}

.isb-answer-message {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 750;
}

.isb-answer-message.error {
  color: #b91c1c;
}

.isb-answer-message.success {
  color: #166534;
}

.isb-choice-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.isb-choice-list[hidden] {
  display: none !important;
}

.guided-shell .isb-choice {
  width: 100%;
  min-height: 48px;
  text-align: left;
}

.guided-shell .isb-choice.correct-answer-highlight {
  outline: 4px solid #22c55e;
  background: #f0fdf4;
  color: #14532d;
}

.guided-shell .isb-choice.wrong-answer {
  outline: 3px solid #ef4444;
  background: #fef2f2;
}

.isb-complete-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.isb-complete-card {
  position: relative;
  inset: auto;
  width: min(670px, 100%);
  text-align: center;
}

.isb-success-check {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #fff;
  background: #16a34a;
  border-radius: 999px;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.25);
}

.isb-result-layout {
  padding: 24px;
  background: linear-gradient(180deg, #f0fdf4, #fff 230px);
  border-radius: 18px;
}

.isb-result-header {
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
}

.isb-result-header h2 {
  margin: 7px 0 8px;
  color: #0f172a;
}

.isb-result-header p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.isb-result-image-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  -webkit-overflow-scrolling: touch;
}

.isb-result-image {
  display: block;
  width: min(100%, 880px);
  min-width: 700px;
  height: auto;
  margin: 0 auto;
}

.isb-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.isb-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.guided-planner-container {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.guided-planner-header {
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e8f0;
}

.guided-status-pill,
.guided-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.guided-status-pill.is-ready {
  color: #14532d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.guided-status-pill.is-calculated {
  color: #14532d;
  background: #bbf7d0;
  border-color: #86efac;
}

.guided-planner-section {
  padding-top: 22px;
}

.guided-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.guided-section-heading h2,
.guided-planner-section > h2 {
  margin: 0 0 6px;
  color: #0f172a;
}

.guided-utility-section {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.guided-utility-section.is-pending {
  opacity: 0.52;
  filter: grayscale(0.45);
}

.guided-utility-section.is-active {
  opacity: 1;
  filter: none;
}

.guided-utility-section.is-active .guided-section-badge {
  color: #14532d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.guided-field {
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 11px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.guided-field small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  line-height: 1.35;
}

.guided-field.active {
  background: #fff7ed;
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.guided-field.complete {
  background: #f0fdf4;
  border-color: #86efac;
}

.guided-field.complete::after {
  content: "Complete";
  display: inline-block;
  margin-top: 7px;
  color: #166534;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.guided-field input[readonly] {
  cursor: default;
}

.guided-utility-card {
  margin-top: 12px;
}

.guided-feedback {
  min-height: 24px;
  margin: 18px 0 0;
  font-weight: 750;
}

.guided-feedback.error {
  color: #b91c1c;
}

.guided-feedback.success {
  color: #166534;
}

.guided-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.guided-bottom-actions button {
  flex: 0 1 auto;
}

@media (max-width: 800px) {
  .guided-shell {
    padding: 10px;
  }

  .guided-landing-card {
    padding: 34px 20px;
  }

  .guided-landing-flow {
    grid-template-columns: 1fr;
  }

  .guided-topbar,
  .guided-planner-header,
  .guided-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .guided-toolbar-row,
  .guided-topbar-actions,
  .guided-control-group {
    width: 100%;
    align-items: stretch;
  }

  .guided-language-wrap {
    flex: 1 1 150px;
    min-width: 0;
  }

  .guided-topbar button,
  .guided-bottom-actions button,
  .guided-status-pill,
  .guided-section-badge {
    width: 100%;
  }

  .isb-stage {
    min-height: 570px;
    aspect-ratio: auto;
  }

  .isb-scene-image {
    object-fit: cover;
    object-position: center;
  }

  .isb-scope-layout {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 18px;
  }

  .isb-scope-image {
    width: min(72vw, 330px);
    max-height: 260px;
  }

  .isb-answer-row,
  .isb-card-actions,
  .isb-result-actions {
    flex-direction: column;
  }

  .isb-multi-input-grid {
    grid-template-columns: 1fr;
  }

  .isb-message-card,
  .isb-question-card,
  .isb-complete-card {
    padding: 19px;
  }

  .isb-question-card--overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .isb-message-card--corner {
    left: 14px;
    right: 14px;
    top: 14px;
    width: auto;
  }

  .isb-measurement-layout .isb-question-card {
    padding: 18px 16px 20px;
  }

  .isb-action-hint {
    left: 14px;
    right: 14px;
    max-width: none;
  }

  .isb-result-layout {
    padding: 14px;
  }

  .guided-planner-container {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guided-shell button.isb-hotspot::after {
    animation: none;
  }

  .guided-shell *,
  .guided-shell *::before,
  .guided-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== ISB SITE NAVIGATION ===== */

.guided-site-nav {
  width: min(1220px, 100%);
  margin: 0 auto 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.guided-site-nav a {
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.guided-site-nav a:hover {
  color: #1f7aec;
}

.guided-site-nav .guided-site-nav-primary {
  padding: 9px 15px;
  color: #ffffff;
  background: #1f7aec;
  border-radius: 8px;
}

.guided-site-nav .guided-site-nav-primary:hover {
  color: #ffffff;
  background: #155fcc;
}

.guided-device-warning {
  max-width: 560px;
  margin: 0 auto 24px !important;
  padding: 12px 14px;
  color: #7c2d12 !important;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 5px solid #f97316;
  border-radius: 9px;
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.45 !important;
}

@media (max-width: 700px) {
  .guided-site-nav {
    gap: 10px 14px;
    padding: 11px 12px;
  }

  .guided-site-nav a {
    font-size: 13px;
  }
}