#tools-tool-page .section-viewer-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

#tools-tool-page .section-viewer-panel,
#tools-tool-page .section-viewer-detail-section {
  background: #ffffff;
  border: 1px solid #e2e4ea;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(39, 40, 51, 0.08);
}

#tools-tool-page .section-viewer-panel {
  padding: 28px;
}

#tools-tool-page .section-viewer-detail-section {
  margin-top: 24px;
  padding: 28px;
}

#tools-tool-page .section-viewer-eyebrow,
#tools-tool-page .section-viewer-section-eyebrow {
  color: #fb5650;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

#tools-tool-page .section-viewer-panel h2,
#tools-tool-page .section-viewer-controls-head h3,
#tools-tool-page .section-viewer-section-head h2,
#tools-tool-page .section-viewer-final-summary h2,
#tools-tool-page .section-viewer-viewport-head h2 {
  color: #10131d;
  font-family: "SF-Pro-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

#tools-tool-page .section-viewer-intro,
#tools-tool-page .section-viewer-info-box p,
#tools-tool-page .section-viewer-controls-head p,
#tools-tool-page .section-viewer-status-copy,
#tools-tool-page .section-viewer-empty-state p,
#tools-tool-page .section-viewer-viewport-head p,
#tools-tool-page .section-viewer-section-copy,
#tools-tool-page .section-viewer-final-summary p {
  color: #4b5162;
  font-size: 15px;
  line-height: 1.6;
}

#tools-tool-page .section-viewer-intro {
  margin: 14px 0 0;
}

#tools-tool-page .section-viewer-info-box {
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
  border: 1px solid #d8e7fb;
  border-radius: 18px;
  margin-top: 18px;
  padding: 16px 18px;
}

#tools-tool-page .section-viewer-info-box strong {
  color: #1f578f;
  display: block;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 15px;
  margin-bottom: 6px;
}

#tools-tool-page .section-viewer-dropzone {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(251, 86, 80, 0.12), transparent 36%),
    radial-gradient(circle at right center, rgba(100, 181, 246, 0.14), transparent 30%),
    linear-gradient(180deg, #161a27 0%, #0d1018 100%);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  gap: 18px;
  margin-top: 24px;
  min-height: 184px;
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#tools-tool-page .section-viewer-dropzone:hover,
#tools-tool-page .section-viewer-dropzone.is-dragover {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 32px rgba(10, 11, 18, 0.22);
  transform: translateY(-1px);
}

#tools-tool-page .section-viewer-dropzone input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

#tools-tool-page .section-viewer-dropzone-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: inline-flex;
  flex: 0 0 64px;
  height: 64px;
  justify-content: center;
  width: 64px;
}

#tools-tool-page .section-viewer-dropzone-icon svg {
  display: block;
  height: 32px;
  width: 32px;
}

#tools-tool-page .section-viewer-dropzone-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#tools-tool-page .section-viewer-dropzone-title {
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

#tools-tool-page .section-viewer-dropzone-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

#tools-tool-page .section-viewer-upload-actions,
#tools-tool-page .section-viewer-step-actions,
#tools-tool-page .section-viewer-action-row,
#tools-tool-page .section-viewer-quick-jumps {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#tools-tool-page .section-viewer-upload-actions {
  margin-top: 16px;
}

#tools-tool-page .section-viewer-upload-note {
  color: #5a6175;
  font-size: 13px;
  line-height: 1.4;
}

#tools-tool-page .section-viewer-file-summary {
  background: #f5f7fb;
  border: 1px solid #e3e8f2;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
}

#tools-tool-page .section-viewer-summary-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px minmax(0, 1fr);
}

#tools-tool-page .section-viewer-summary-row span {
  color: #596174;
  font-size: 14px;
}

#tools-tool-page .section-viewer-summary-row strong {
  color: #151923;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#tools-tool-page .section-viewer-controls-panel {
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
  border: 1px solid #e4e9f3;
  border-radius: 20px;
  margin-top: 22px;
  padding: 20px;
}

#tools-tool-page .section-viewer-controls-head,
#tools-tool-page .section-viewer-section-head,
#tools-tool-page .section-viewer-viewport-head,
#tools-tool-page .section-viewer-final-summary-head,
#tools-tool-page .section-viewer-status-row {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

#tools-tool-page .section-viewer-controls-head h3 {
  font-size: 24px;
}

#tools-tool-page .section-viewer-controls-head p,
#tools-tool-page .section-viewer-section-copy,
#tools-tool-page .section-viewer-viewport-head p {
  margin: 0;
  max-width: 340px;
}

#tools-tool-page .section-viewer-axis-group {
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
}

#tools-tool-page .section-viewer-axis-btn,
#tools-tool-page .section-viewer-secondary-btn,
#tools-tool-page .section-viewer-quick-jumps button {
  background: #eef2f7;
  border: 0;
  border-radius: 12px;
  color: #151923;
  cursor: pointer;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#tools-tool-page .section-viewer-axis-btn.is-active,
#tools-tool-page .section-viewer-axis-btn[aria-pressed="true"] {
  background: #fb5650;
  box-shadow: 0 12px 22px rgba(251, 86, 80, 0.18);
  color: #ffffff;
}

#tools-tool-page .section-viewer-secondary-btn:hover,
#tools-tool-page .section-viewer-axis-btn:hover,
#tools-tool-page .section-viewer-quick-jumps button:hover {
  transform: translateY(-1px);
}

#tools-tool-page .section-viewer-secondary-btn:disabled,
#tools-tool-page .section-viewer-axis-btn:disabled,
#tools-tool-page .section-viewer-quick-jumps button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

#tools-tool-page .section-viewer-slider-block {
  margin-top: 18px;
}

#tools-tool-page .section-viewer-slider-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#tools-tool-page .section-viewer-slider-head span {
  color: #252938;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#tools-tool-page .section-viewer-slider-head strong {
  color: #111116;
  font-size: 14px;
}

#tools-tool-page .section-viewer-slider-block input[type="range"] {
  accent-color: #fb5650;
  width: 100%;
}

#tools-tool-page .section-viewer-step-actions,
#tools-tool-page .section-viewer-action-row,
#tools-tool-page .section-viewer-quick-jumps {
  margin-top: 18px;
}

#tools-tool-page .section-viewer-validation {
  background: #fff0ef;
  border: 1px solid #ffd2cf;
  border-radius: 14px;
  color: #8d332e;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 18px;
  padding: 14px 16px;
}

#tools-tool-page .section-viewer-validation.is-warning {
  background: #fff7e8;
  border-color: #ffd9a5;
  color: #8b5a04;
}

#tools-tool-page .section-viewer-status-pill {
  border-radius: 999px;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-transform: uppercase;
}

#tools-tool-page .section-viewer-status-pill[data-state="idle"] {
  background: #edf1f8;
  color: #46506a;
}

#tools-tool-page .section-viewer-status-pill[data-state="working"] {
  background: #fff1e6;
  color: #c86f1d;
}

#tools-tool-page .section-viewer-status-pill[data-state="success"] {
  background: #e8f7ed;
  color: #0d7d43;
}

#tools-tool-page .section-viewer-status-pill[data-state="error"] {
  background: #ffe8e7;
  color: #c4322d;
}

#tools-tool-page .section-viewer-progress {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  border: 1px solid #dde4ef;
  border-radius: 18px;
  margin-top: 18px;
  padding: 16px;
}

#tools-tool-page .section-viewer-progress-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

#tools-tool-page .section-viewer-progress-meta span {
  color: #1b2232;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

#tools-tool-page .section-viewer-progress-track {
  background: #dce5f1;
  border-radius: 999px;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
}

#tools-tool-page .section-viewer-progress-fill {
  background: linear-gradient(90deg, #fb5650 0%, #ff8f70 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.28s ease;
  width: 0%;
}

#tools-tool-page .section-viewer-step-list {
  counter-reset: sectionStep;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

#tools-tool-page .section-viewer-step-list li {
  align-items: center;
  color: #607086;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr);
  line-height: 1.45;
}

#tools-tool-page .section-viewer-step-list li::before {
  align-items: center;
  background: #dce5f1;
  border-radius: 999px;
  color: #46506a;
  content: counter(sectionStep);
  counter-increment: sectionStep;
  display: inline-flex;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  width: 32px;
}

#tools-tool-page .section-viewer-step-list li.is-active::before {
  background: #fff1e6;
  color: #c86f1d;
}

#tools-tool-page .section-viewer-step-list li.is-complete::before {
  background: #e8f7ed;
  color: #0d7d43;
  content: "✓";
}

#tools-tool-page .section-viewer-empty-state {
  padding: 24px 0 8px;
}

#tools-tool-page .section-viewer-empty-state h2 {
  font-size: 28px;
}

#tools-tool-page .section-viewer-result-shell {
  margin-top: 18px;
}

#tools-tool-page .section-viewer-hero-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#tools-tool-page .section-viewer-hero-meta div {
  background: #f6f8fc;
  border: 1px solid #e4e8f1;
  border-radius: 16px;
  padding: 14px 16px;
}

#tools-tool-page .section-viewer-hero-meta span,
#tools-tool-page .section-viewer-next-step span {
  color: #607086;
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

#tools-tool-page .section-viewer-hero-meta strong {
  color: #11161f;
  display: block;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 18px;
  margin-top: 6px;
}

#tools-tool-page .section-viewer-visual-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-top: 18px;
}

#tools-tool-page .section-viewer-viewport-card,
#tools-tool-page .section-viewer-slice-map-card,
#tools-tool-page .section-viewer-insights-card {
  background: #11161f;
  border-radius: 22px;
  color: #ffffff;
  overflow: hidden;
  padding: 20px;
}

#tools-tool-page .section-viewer-viewport-head h2,
#tools-tool-page .section-viewer-insights-card h2 {
  color: #ffffff;
  font-size: 28px;
}

#tools-tool-page .section-viewer-viewport-head p {
  color: rgba(255, 255, 255, 0.74);
}

#tools-tool-page .section-viewer-render-host {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 40%), #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  height: 420px;
  margin-top: 18px;
  overflow: hidden;
}

#tools-tool-page .section-viewer-canvas-wrap {
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  height: 420px;
  margin-top: 18px;
  overflow: hidden;
}

#tools-tool-page .section-viewer-canvas-wrap canvas {
  display: block;
  height: 100%;
  width: 100%;
}

#tools-tool-page .section-viewer-insights-card {
  background: linear-gradient(180deg, #0f1724 0%, #131b2c 100%);
  margin-top: 16px;
}

#tools-tool-page .section-viewer-insights-list,
#tools-tool-page .section-viewer-detail-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

#tools-tool-page .section-viewer-insights-list li,
#tools-tool-page .section-viewer-detail-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #ffffff;
  padding: 14px 16px;
}

#tools-tool-page .section-viewer-detail-list li {
  background: #f8fafc;
  border-color: #e4e9f2;
  color: #4e5568;
}

#tools-tool-page .section-viewer-recommendations-list {
  display: grid;
  gap: 14px;
}

#tools-tool-page .section-viewer-recommendation-card {
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  padding: 18px;
}

#tools-tool-page .section-viewer-recommendation-card h3 {
  color: #11161f;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

#tools-tool-page .section-viewer-final-summary {
  background:
    radial-gradient(circle at top left, rgba(251, 86, 80, 0.12), transparent 30%),
    linear-gradient(180deg, #11161f 0%, #171d29 100%);
  border-radius: 22px;
  color: #ffffff;
  padding: 24px;
}

#tools-tool-page .section-viewer-final-summary h2,
#tools-tool-page .section-viewer-final-summary p {
  color: #ffffff;
}

#tools-tool-page .section-viewer-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

#tools-tool-page .section-viewer-status-badges span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 13px;
}

#tools-tool-page .section-viewer-next-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  margin-top: 18px;
  padding: 16px;
}

#tools-tool-page .section-viewer-next-step strong {
  color: #ffffff;
  display: block;
  font-family: "SF-Pro-Semi-Bold-Text", "SF Pro Text", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  margin-top: 6px;
}

@media (max-width: 1100px) {
  #tools-tool-page .section-viewer-shell,
  #tools-tool-page .section-viewer-visual-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  #tools-tool-page .section-viewer-controls-head,
  #tools-tool-page .section-viewer-section-head,
  #tools-tool-page .section-viewer-viewport-head,
  #tools-tool-page .section-viewer-final-summary-head,
  #tools-tool-page .section-viewer-status-row {
    flex-direction: column;
  }

  #tools-tool-page .section-viewer-controls-head p,
  #tools-tool-page .section-viewer-section-copy,
  #tools-tool-page .section-viewer-viewport-head p {
    max-width: none;
  }

  #tools-tool-page .section-viewer-hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  #tools-tool-page .section-viewer-panel,
  #tools-tool-page .section-viewer-detail-section {
    border-radius: 20px;
    padding: 20px;
  }

  #tools-tool-page .section-viewer-panel h2,
  #tools-tool-page .section-viewer-controls-head h3,
  #tools-tool-page .section-viewer-section-head h2,
  #tools-tool-page .section-viewer-final-summary h2,
  #tools-tool-page .section-viewer-viewport-head h2 {
    font-size: 26px;
  }

  #tools-tool-page .section-viewer-dropzone {
    align-items: start;
    flex-direction: column;
    min-height: auto;
  }

  #tools-tool-page .section-viewer-dropzone-title {
    font-size: 20px;
  }

  #tools-tool-page .section-viewer-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #tools-tool-page .section-viewer-upload-actions,
  #tools-tool-page .section-viewer-step-actions,
  #tools-tool-page .section-viewer-action-row,
  #tools-tool-page .section-viewer-quick-jumps {
    align-items: stretch;
    flex-direction: column;
  }

  #tools-tool-page .section-viewer-upload-actions button,
  #tools-tool-page .section-viewer-step-actions button,
  #tools-tool-page .section-viewer-action-row button,
  #tools-tool-page .section-viewer-quick-jumps button,
  #tools-tool-page .section-viewer-axis-group {
    width: 100%;
  }

  #tools-tool-page .section-viewer-axis-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #tools-tool-page .section-viewer-render-host,
  #tools-tool-page .section-viewer-canvas-wrap {
    height: 320px;
  }

  #tools-tool-page .section-viewer-status-badges {
    justify-content: flex-start;
  }
}
