:root {
  --bg: #f5f7f9;
  --rail: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --canvas: #fcfdfe;
  --ink: #141c2b;
  --muted: #6b7585;
  --faint: #98a3b3;
  --line: #dfe5ec;
  --line-soft: #eef2f5;
  --accent: #00899a;
  --accent-deep: #007080;
  --success: #1f9f6a;
  --danger: #c43d4b;
  --warning: #a96b16;
  --shadow: 0 18px 46px rgba(26, 38, 54, 0.08);
  --soft-shadow: 0 8px 24px rgba(26, 38, 54, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.locked .appShell {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.loginScreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(30deg, rgba(0, 137, 154, 0.07) 1px, transparent 1px),
    linear-gradient(150deg, rgba(0, 137, 154, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 70% 12%, rgba(0, 137, 154, 0.18), transparent 32%),
    rgba(245, 247, 249, 0.92);
  background-size: 34px 34px, 34px 34px, auto, auto;
  backdrop-filter: blur(14px);
}

body.locked .loginScreen {
  display: grid;
}

.loginCard {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(26, 38, 54, 0.16);
}

.loginMark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #0099ad, #007080);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 9px 9px 0 #dceff1;
}

.loginCard p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.loginError {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 12px;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

h1,
h2,
p {
  margin: 0;
}

.appShell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 100vh;
}

.navRail {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100vh;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
  background: var(--rail);
  box-shadow: 6px 0 18px rgba(26, 38, 54, 0.03);
}

.navLogo,
.navItem {
  color: var(--muted);
  text-decoration: none;
}

.navLogo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5564;
  background: #fbfcfd;
  font-size: 18px;
  box-shadow: inset 0 0 0 4px #f3f6f8;
}

.navItem {
  display: grid;
  width: 74px;
  min-height: 62px;
  place-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.navItem span {
  font-size: 17px;
  line-height: 1;
}

.navItem strong {
  font-size: 12px;
  font-weight: 750;
}

.navItem.active {
  color: #fff;
  background: linear-gradient(180deg, #0096aa, #007a8b);
  box-shadow: 0 10px 22px rgba(0, 137, 154, 0.23);
}

.navItem.compact {
  min-height: 48px;
}

.navSpacer {
  flex: 1;
}

.version {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef2f5;
  font-size: 11px;
}

.workbench {
  min-width: 0;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.titleBlock {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 28px 0 34px;
  border-right: 1px solid var(--line);
}

h1 {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.runMeta {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.runMeta b {
  color: #3f4855;
  font-weight: 650;
}

.runBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--success);
  background: #eaf7f1;
}

.runBadge i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.runBadge.busy {
  color: var(--accent);
  background: #e8f7f9;
}

.runBadge.error {
  color: var(--danger);
  background: #fff0f2;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
}

.ghost,
.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.ghost {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.iconButton {
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.contentGrid {
  display: grid;
  grid-template-columns: 360px minmax(560px, 1fr) 330px;
  gap: 16px;
  min-height: 0;
  padding: 16px;
}

.workbench.moduleOpen .contentGrid {
  display: none;
}

.moduleView {
  min-height: calc(100vh - 54px);
  padding: 16px;
}

.moduleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.moduleHeader h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.moduleHeader p {
  color: var(--muted);
  font-size: 13px;
}

.moduleBody {
  display: grid;
  gap: 14px;
}

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

.moduleGrid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moduleCard,
.moduleTable {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.moduleCard {
  padding: 16px;
}

.moduleCard h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.moduleCard p,
.moduleCard li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.moduleCard ul,
.moduleCard ol {
  margin: 0;
  padding-left: 18px;
}

.jsonPreview {
  overflow: auto;
  max-height: 420px;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #344054;
  background: #f8fafb;
  font-size: 12px;
  line-height: 1.6;
}

.moduleTable {
  overflow: auto;
}

.moduleTable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.moduleTable th,
.moduleTable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

.moduleTable th {
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 850;
}

.moduleTable tr:last-child td {
  border-bottom: 0;
}

.settingsForm {
  display: grid;
  gap: 12px;
}

.settingsForm .fieldRow {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.switchList {
  display: grid;
  gap: 10px;
}

.switchItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.switchItem:last-child {
  border-bottom: 0;
}

.switchItem span {
  color: var(--muted);
  font-size: 12px;
}

.switchItem input[type="checkbox"] {
  flex: 0 0 auto;
}

.smallAction {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.leftPane,
.rightPane {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.centerPane {
  min-width: 0;
}

.panel,
.detailBlock,
.previewSection {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.panel,
.detailBlock {
  padding: 16px;
}

h2 {
  margin-bottom: 14px;
  color: #101828;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.inputTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.tabButton {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tabButton.active {
  color: var(--accent);
  border-color: var(--accent);
}

label {
  display: block;
  margin: 12px 0 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

select,
input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 137, 154, 0.1);
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sampleTable {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

.sampleTableHead,
.sampleRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  column-gap: 8px;
  font-size: 12px;
}

.sampleTableHead {
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 750;
}

.sampleRow {
  color: #344054;
  cursor: pointer;
}

.sampleRow:last-child {
  border-bottom: 0;
}

.sampleRow.active {
  color: var(--ink);
  background: #f3fbfc;
}

.sampleRow span:first-child::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 1px solid #b9c4d0;
  border-radius: 999px;
  vertical-align: -1px;
}

.sampleRow.active span:first-child::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--accent);
}

.mutedText {
  display: block;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.primaryButton,
.downloads a {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, #0099ad, #008396);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primaryButton {
  margin-top: 12px;
}

button:disabled,
.primaryButton:disabled {
  cursor: wait;
  opacity: 0.58;
}

.uploadPanel {
  display: none;
}

.uploadPanel.show {
  display: block;
}

.statusList {
  display: grid;
  gap: 0;
}

.statusRow {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #344054;
  font-size: 13px;
}

.statusRow::before {
  content: "";
  grid-column: 1;
  justify-self: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.statusRow::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  width: 1px;
  height: 18px;
  background: var(--line);
}

.statusRow:last-child::after {
  display: none;
}

.statusRow .badge {
  grid-column: 3;
}

.statusRow .stepIndex {
  grid-column: 1;
  z-index: 1;
  justify-self: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  line-height: 16px;
}

.statusRow.pass::before,
.statusRow.complete::before {
  border-color: var(--success);
  background: var(--success);
  box-shadow: inset 0 0 0 3px var(--success);
}

.statusRow.pass::after,
.statusRow.complete::after {
  background: var(--success);
}

.statusRow.fail::before {
  border-color: var(--danger);
  background: var(--danger);
}

.progressSummary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 4px;
  color: var(--success);
  background: #eaf7f1;
  font-size: 13px;
  font-weight: 850;
}

.previewBox {
  display: grid;
  gap: 10px;
}

.emptyState {
  display: grid;
  min-height: calc(100vh - 92px);
  place-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.emptyState strong {
  color: var(--ink);
  font-size: 18px;
}

.drawingStack {
  display: grid;
  gap: 10px;
}

figure {
  margin: 0;
}

.previewSection {
  overflow: hidden;
  padding: 14px;
}

.sectionHeader {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sectionHeader strong {
  display: block;
  color: #101828;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.sectionHeader small,
.sectionHint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sectionActions,
.viewerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sectionActions button,
.viewerToolbar button,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.sectionActions button.active,
.viewerToolbar .viewModeButton.active,
.secondaryButton.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(180deg, #0099ad, #008396);
  box-shadow: 0 8px 18px rgba(0, 137, 154, 0.18);
}

.modelPreview {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(30deg, rgba(0, 137, 154, 0.055) 1px, transparent 1px),
    linear-gradient(150deg, rgba(0, 137, 154, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #fcfdfe, #f8fbfc);
  background-size: 32px 32px, 32px 32px, auto;
}

.modelPreview.empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.modelPreview canvas {
  display: block;
  width: 100%;
  height: 272px;
  cursor: grab;
  touch-action: none;
}

.modelPreview canvas:active {
  cursor: grabbing;
}

.modelMeta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 7px;
  pointer-events: none;
}

.modelMeta span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #445064;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.viewerToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.viewerToolbar span {
  line-height: 1.45;
}

.axisTriad {
  position: absolute;
  left: 28px;
  bottom: 54px;
  width: 64px;
  height: 64px;
  pointer-events: none;
}

.axisTriad span {
  position: absolute;
  font-size: 12px;
  font-weight: 900;
}

.axisTriad .x {
  right: 4px;
  bottom: 10px;
  color: #f04438;
}

.axisTriad .y {
  right: 20px;
  top: 22px;
  color: #12b76a;
}

.axisTriad .z {
  left: 8px;
  top: 2px;
  color: #155eef;
}

.axisTriad::before,
.axisTriad::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 42px;
  height: 2px;
  background: #f04438;
  transform: rotate(28deg);
  transform-origin: left center;
}

.axisTriad::after {
  width: 34px;
  background: #12b76a;
  transform: rotate(-28deg);
}

.axisTriad i {
  position: absolute;
  left: 18px;
  bottom: 20px;
  width: 2px;
  height: 42px;
  background: #155eef;
}

.drawingPreview {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #2d3642;
  background: #fff;
}

.pdfFrame {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

dl {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 9px 10px;
  margin: 0;
  color: #344054;
  font-size: 13px;
}

dt {
  color: var(--muted);
}

dd {
  min-width: 0;
  margin: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.downloads {
  display: grid;
  gap: 8px;
}

.downloads a {
  min-height: 34px;
}

.downloads .jsonLink {
  border-color: var(--line);
  color: #344054;
  background: linear-gradient(180deg, #fff, #f7f9fb);
  box-shadow: none;
}

.pendingFile {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fafbfc;
  font-size: 13px;
}

.sectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sectionTitleRow h2 {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 12px;
  font-weight: 850;
}

.badge.pass,
.badge.complete {
  border-color: #bdebd4;
  color: var(--success);
  background: #eaf7f1;
}

.badge.warning {
  border-color: #f8d9a6;
  color: var(--warning);
  background: #fff7e8;
}

.badge.fail {
  border-color: #facbd1;
  color: var(--danger);
  background: #fff0f2;
}

.badge.pending {
  border-color: var(--line);
  color: var(--muted);
  background: #f6f8fa;
}

.qaSummary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.qaMetric {
  display: grid;
  gap: 5px;
  justify-items: center;
  border-right: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.qaMetric:last-child {
  border-right: 0;
}

.qaMetric strong {
  color: var(--accent);
  font-size: 15px;
}

.qaMetric.fail strong {
  color: var(--danger);
}

.compact {
  margin-top: 10px;
}

.compact .statusRow {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
  font-size: 12px;
}

.compact .statusRow::before,
.compact .statusRow::after {
  display: none;
}

.compact .statusRow .badge {
  grid-column: 2;
}

.techList {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
}

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

.statusDot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--faint);
  box-shadow: 0 0 0 8px rgba(152, 163, 179, 0.16);
}

.statusDot.ready {
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(31, 159, 106, 0.14);
}

.statusDot.error {
  background: var(--danger);
  box-shadow: 0 0 0 8px rgba(196, 61, 75, 0.14);
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 1380px) {
  .contentGrid {
    grid-template-columns: 320px minmax(520px, 1fr) 310px;
  }

  .topbar {
    grid-template-columns: 320px minmax(0, 1fr) auto;
  }
}

@media (max-width: 1180px) {
  .contentGrid {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .rightPane {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .runMeta {
    display: none;
  }
}

@media (max-width: 860px) {
  .appShell {
    grid-template-columns: 1fr;
  }

  .navRail {
    position: static;
    flex-direction: row;
    width: 100%;
    height: auto;
    overflow: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .navLogo,
  .navSpacer,
  .version,
  .navItem:nth-of-type(n + 4) {
    display: none;
  }

  .navItem {
    width: auto;
    min-width: 82px;
    min-height: 48px;
  }

  .workbench {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .titleBlock {
    padding: 0;
    border-right: 0;
  }

  .topActions {
    padding-right: 0;
  }

  .contentGrid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .rightPane {
    grid-template-columns: 1fr;
  }

  .modelPreview canvas {
    height: 240px;
  }

  .viewerToolbar {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  a {
    transition: none;
  }
}
