:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #d8dde6;
  --ink: #16202a;
  --muted: #667085;
  --accent: #1f6f78;
  --soft: #eef6f7;
  --danger: #9f2a2a;
  --warn: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.shell {
  min-height: 100vh;
  padding: 28px;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.3;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.topbar p,
.hint,
.empty {
  color: var(--muted);
}

.status-pill {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}

.status-pill.warning {
  border-color: #d39a24;
  background: #fff8e8;
  color: #7a4b00;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.8fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.app-layout > *,
.workflow-column > *,
.input-form {
  min-width: 0;
}

.workflow-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.workflow-column .panel,
.app-layout > .result-panel {
  margin-bottom: 0;
}

.result-panel {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.result-panel > .empty {
  flex: 1 1 auto;
}

.result-content,
.interactive-review {
  min-width: 0;
}

.input-panel,
.sop-panel {
  display: flex;
  flex-direction: column;
}

.input-panel .section-head {
  margin-bottom: 12px;
}

.task-name-field {
  width: min(100%, 280px);
  margin-bottom: 10px;
}

.task-name-field input {
  height: 34px;
}

.model-grid,
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compact-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

label {
  display: block;
  color: #344054;
  font-size: 13px;
  margin-bottom: 12px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 6px;
  color: var(--ink);
  background: white;
}

input:focus {
  outline: 2px solid rgba(31, 111, 120, 0.18);
  border-color: var(--accent);
}

.dropzone {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9aa4b2;
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
  text-align: center;
}

.dropzone input {
  display: none;
}

.dropzone span {
  display: grid;
  gap: 5px;
}

.dropzone strong {
  color: #182230;
  font-size: 15px;
}

.dropzone small {
  color: var(--muted);
  font-size: 12px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.workflow-column .upload-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.workflow-column .dropzone {
  min-height: 62px;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--muted);
}

.file-list li {
  padding: 5px 0;
  border-bottom: 1px solid #edf0f4;
}

button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#submitBtn {
  display: block;
  width: 220px;
  margin-top: auto;
  margin-left: auto;
}

.workflow-column #submitBtn {
  width: 100%;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 0;
}

.eta-box {
  color: var(--muted);
  font-size: 13px;
}

.sop-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sop-step {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: #fbfcfd;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sop-step .step-index {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf0f4;
  color: var(--muted);
  font-size: 12px;
}

.sop-step .step-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sop-step strong {
  font-size: 13px;
  line-height: 1.25;
}

.sop-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sop-step.running {
  border-color: #278590;
  background: #eef8f9;
  animation: sopBreath 2.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  animation-delay: var(--sop-breath-delay, 0s);
  will-change: box-shadow, background-color, border-color;
}

.sop-step.running .step-index {
  background: var(--accent);
  color: white;
  animation: sopIndexBreath 2.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  animation-delay: var(--sop-breath-delay, 0s);
}

.sop-step.completed {
  border-color: #7fb6a1;
  background: #f1faf5;
}

.sop-step.completed .step-index {
  background: #2f855a;
  color: white;
}

.sop-step.completed small {
  color: #2f855a;
  font-weight: 600;
}

.sop-step.running small {
  color: var(--accent);
  font-weight: 700;
}

.step-progress {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.16);
  overflow: hidden;
}

.step-progress i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.6s ease;
}

@keyframes sopBreath {
  0%,
  100% {
    border-color: rgba(31, 111, 120, 0.72);
    background-color: #f2fafa;
    box-shadow: 0 0 0 1px rgba(31, 111, 120, 0.08), 0 3px 10px rgba(31, 111, 120, 0.09);
  }
  50% {
    border-color: rgba(31, 111, 120, 1);
    background-color: #e3f4f6;
    box-shadow: 0 0 0 4px rgba(31, 111, 120, 0.18), 0 8px 24px rgba(31, 111, 120, 0.24);
  }
}

@keyframes sopIndexBreath {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(31, 111, 120, 0.16);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(31, 111, 120, 0.16);
  }
}

.sop-step.failed {
  border-color: var(--danger);
  background: #fff1f1;
}

.sop-step.failed .step-index {
  background: var(--danger);
  color: white;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.download-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.secondary-btn,
.download-links button,
.download-links a {
  width: auto;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.secondary-btn.active {
  border-color: var(--accent);
  background: var(--soft);
}

.danger-lite {
  color: var(--danger);
}

.output-card {
  background: #fbfcfd;
}

.pdf-preview-shell {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8fa;
}

.pdf-preview {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  border: 0;
  background: white;
}

.result-view-tabs {
  display: inline-flex;
  gap: 2px;
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.result-view-tab {
  width: auto;
  height: 36px;
  border-radius: 0;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}

.result-view-tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  background: var(--soft);
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-link-status {
  flex: 1 1 auto;
  min-height: 34px;
  padding: 7px 10px;
  border-left: 3px solid var(--accent);
  background: #f5fafb;
  color: #344054;
  font-size: 13px;
}

.review-view-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-icon-btn,
.review-reset-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  background: #fff;
  color: #344054;
  font-size: 18px;
  line-height: 1;
}

.review-reset-btn {
  width: 48px;
  font-size: 11px;
}

.review-icon-btn:hover,
.review-reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--soft);
}

.review-zoom-range {
  width: 118px;
  accent-color: var(--accent);
}

.review-zoom-value {
  width: 42px;
  color: #344054;
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.review-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  height: min(76vh, 860px);
  min-height: 620px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.review-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fff;
}

.review-pane + .review-pane {
  border-left: 1px solid var(--line);
}

.review-pane > header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 42px;
  padding: 11px 12px 9px;
  border-bottom: 1px solid #edf0f4;
  background: #fafbfc;
}

.review-pane > header small {
  color: var(--muted);
  font-size: 11px;
}

.tower-review,
.plate-review {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.tower-review {
  padding: 12px 8px 24px;
  background: #fcfcfd;
}

.plate-review {
  padding: 10px 12px 24px;
}

.review-loading {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
}

.review-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: width 160ms ease;
}

.tower-review-svg {
  background: #fff;
}

.tower-base-image {
  opacity: 0.86;
}

.linked-item {
  cursor: pointer;
  transition: opacity 160ms ease;
  outline: none;
}

.tower-segment-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.tower-cut-line {
  stroke: #f04438;
  stroke-width: 1.1;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.tower-segment-label {
  fill: #e02d25;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

.review-plate {
  margin-bottom: 14px;
}

.review-plate-heading {
  margin-bottom: 5px;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
}

.plate-layout-svg {
  background: #fff;
}

.interactive-review:fullscreen,
.interactive-review.is-pseudo-fullscreen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  padding: 12px;
  background: #f5f7fa;
}

.interactive-review.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

body.review-fullscreen-open {
  overflow: hidden;
}

.interactive-review:fullscreen .review-toolbar,
.interactive-review.is-pseudo-fullscreen .review-toolbar {
  padding-bottom: 10px;
}

.interactive-review:fullscreen .review-workbench,
.interactive-review.is-pseudo-fullscreen .review-workbench {
  height: auto;
  min-height: 0;
  margin-top: 0;
}

.plate-outline {
  fill: #fff;
  stroke: #111827;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.plate-piece-shape {
  fill: rgba(240, 68, 56, 0.025);
  stroke: #f04438;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, stroke 160ms ease;
}

.plate-piece-label {
  fill: #e02d25;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 118px;
  letter-spacing: 0;
  pointer-events: none;
}

.review-workbench.has-active-link .linked-item.is-muted {
  opacity: 0.16;
}

.tower-segment.is-active .tower-segment-hit {
  fill: rgba(31, 111, 120, 0.18);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.tower-segment.is-active .tower-cut-line {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.tower-segment.is-active .tower-segment-label {
  fill: var(--accent);
  font-weight: 700;
}

.plate-piece.is-active .plate-piece-shape {
  fill: rgba(31, 111, 120, 0.22);
  stroke: var(--accent);
  stroke-width: 2.5;
}

.plate-piece.is-active .plate-piece-label {
  fill: #155e66;
  font-weight: 700;
}

.tower-segment:focus-visible .tower-segment-hit,
.plate-piece:focus-visible .plate-piece-shape {
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.tower-segment,
.plate-piece {
  animation: reviewReveal 280ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reviewReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.output-grid div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.output-grid span {
  color: var(--muted);
}

.output-grid code {
  min-width: 0;
  word-break: break-all;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-row a,
.error-log-link a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
}

.download-links .primary-download,
.download-row a.primary-download {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.history-panel {
  margin-top: 14px;
  border-top: 1px solid #edf0f4;
  padding-top: 14px;
}

.history-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.history-head small,
.muted-text,
.history-table small {
  color: var(--muted);
}

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  min-width: 780px;
  table-layout: fixed;
}

.history-table th:first-child,
.history-table td:first-child {
  width: 58px;
  text-align: center;
}

.history-table th:nth-child(2) {
  width: 28%;
}

.history-table th:nth-child(3) {
  width: 48%;
}

.history-table th:nth-child(4) {
  width: 24%;
}

.history-table small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.history-files,
.history-output {
  vertical-align: top;
}

.history-cell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.history-input-groups {
  display: grid;
  gap: 8px;
}

.history-input-group {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.history-input-label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e3e5;
  border-radius: 4px;
  padding: 2px 5px;
  background: #f1f7f8;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.history-empty {
  color: var(--muted);
  text-align: center;
}

.text-link {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}

.text-link.strong {
  font-weight: 700;
}

.text-link:hover,
.download-links button:hover,
.secondary-btn:hover {
  filter: brightness(0.96);
}

.hidden {
  display: none;
}

.brand-footer {
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
}

.brand-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}

.brand-footer a:hover {
  color: var(--accent);
}

.brand-footer img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.76;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
}

.metric strong {
  display: block;
  font-size: 20px;
}

article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
  background: #f7f8fa;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbfcfd;
}

.warning {
  border-left: 4px solid var(--warn);
  padding: 8px 10px;
  background: #fff8e8;
  margin-bottom: 8px;
}

.warning.high {
  border-left-color: var(--danger);
  background: #fff1f1;
}

.warning.info {
  border-left-color: var(--accent);
  background: var(--soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

th {
  background: #f7f8fa;
}

@media (min-width: 1101px) and (min-height: 720px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .shell {
    height: 100vh;
    min-height: 0;
    padding: 16px 28px 10px;
    overflow: hidden;
  }

  .workspace {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .app-layout {
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  .workflow-column {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    overflow: hidden;
  }

  .input-panel,
  .sop-panel,
  .result-panel {
    min-height: 0;
    padding: 14px;
  }

  .input-panel .section-head,
  .sop-panel .section-head {
    margin-bottom: 8px;
  }

  .task-name-field {
    margin-bottom: 6px;
  }

  .task-name-field input {
    height: 32px;
    margin-top: 4px;
  }

  .workflow-column .upload-grid {
    gap: 5px;
    margin-bottom: 6px;
  }

  .workflow-column .dropzone {
    min-height: 48px;
    margin-bottom: 3px;
  }

  .workflow-column .dropzone span {
    gap: 2px;
  }

  .workflow-column .file-list {
    max-height: 44px;
    margin: 0 0 3px;
    overflow: auto;
    font-size: 11px;
  }

  .workflow-column .file-list li {
    padding: 3px 0;
  }

  .workflow-column #submitBtn {
    height: 38px;
  }

  .sop-panel {
    overflow: hidden;
  }

  .sop-list {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: 4px;
  }

  .sop-step {
    min-height: 0;
    padding: 5px 7px;
  }

  .sop-step .step-index {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .sop-step .step-main {
    gap: 2px;
  }

  .sop-step strong {
    font-size: 12px;
  }

  .sop-step small {
    font-size: 11px;
    line-height: 1.2;
  }

  .result-panel {
    overflow: hidden;
  }

  .result-content:not(.hidden) {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .result-view-tabs {
    flex: 0 0 auto;
    margin: 2px 0 8px;
  }

  .interactive-review:not(.hidden),
  .pdf-review:not(.hidden) {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .review-toolbar {
    flex: 0 0 auto;
  }

  .review-workbench {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin-top: 8px;
  }

  .pdf-preview-shell {
    flex: 1 1 auto;
    min-height: 0;
  }

  .pdf-preview {
    height: 100%;
    min-height: 0;
  }

  .history-panel:not(.hidden) {
    flex: 0 1 42%;
    max-height: 42%;
    overflow: auto;
  }

  .brand-footer {
    padding: 5px 0 0;
  }
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .grid,
  .app-layout,
  .model-grid,
  .compact-model-grid,
  .columns,
  .upload-grid,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #submitBtn {
    width: 100%;
  }

  .review-workbench {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .review-pane + .review-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tower-review,
  .plate-review {
    height: 56vh;
  }

  .review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .review-view-controls {
    justify-content: flex-end;
  }

  .review-zoom-range {
    flex: 1 1 auto;
    min-width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sop-step.running,
  .sop-step.running .step-index,
  .tower-segment,
  .plate-piece,
  .linked-item,
  .plate-piece-shape {
    animation: none;
    transition: none;
  }

  .review-svg {
    transition: none;
  }
}
