#param-table-hybrid-view {
  --pth-bg: var(--ui-canvas, #080808);
  --pth-panel: var(--ui-surface, #111315);
  --pth-panel-soft: #0e1011;
  --pth-surface: #0b0c0d;
  --pth-line: var(--ui-line, rgba(245, 245, 245, 0.1));
  --pth-line-strong: rgba(242, 242, 242, 0.38);
  --pth-primary: var(--primary, #f2f2f2);
  --pth-primary-soft: rgba(242, 242, 242, 0.12);
  --pth-text: var(--text-primary, #fff);
  --pth-muted: #96969f;
  --pth-success: #69d7bd;
  min-height: calc(100vh - 68px);
  padding: 28px clamp(20px, 3vw, 52px) 64px;
  color: var(--pth-text);
  background:
    radial-gradient(circle at 18% 4%, rgba(242, 242, 242, 0.07), transparent 25rem),
    linear-gradient(180deg, var(--pth-bg), var(--pth-surface));
}

body.param-table-hybrid-open {
  overflow-y: auto;
  background: var(--pth-bg);
}

.pth-shell {
  width: min(1840px, 100%);
  margin: 0 auto;
}

.pth-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 132px;
  margin-bottom: 18px;
  padding: 24px 28px 24px 32px;
  overflow: hidden;
  border: 1px solid var(--pth-line);
  border-radius: var(--radius, 1rem);
  background:
    linear-gradient(105deg, rgba(242, 242, 242, 0.09), transparent 34%),
    rgba(17, 24, 32, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.pth-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--brand-accent), var(--pth-primary) 48%, var(--brand-accent-deep));
}

.pth-back,
.pth-icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #d8d8de;
  border: 1px solid var(--pth-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color var(--transition, 0.25s ease-out), color var(--transition, 0.25s ease-out), transform var(--transition, 0.25s ease-out);
}

.pth-back:hover,
.pth-icon-button:hover {
  color: #fff;
  border-color: rgba(242, 242, 242, 0.5);
  transform: translateY(-1px);
}

.pth-back svg,
.pth-icon-button svg,
.pth-button svg,
.pth-upload-icon svg,
.pth-empty-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pth-heading {
  min-width: 0;
}

.pth-eyebrow {
  margin: 0 0 8px;
  color: var(--pth-primary);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.2em;
}

.pth-heading h1 {
  margin: 0;
  font-size: clamp(25px, 2.1vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.pth-heading p {
  margin: 9px 0 0;
  color: var(--pth-muted);
  font-size: 14px;
}

.pth-stage-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777780;
  white-space: nowrap;
}

.pth-stage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.pth-stage strong {
  color: var(--pth-primary);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pth-stage.is-active {
  color: #f5f5f7;
}

.pth-stage-line {
  width: 24px;
  height: 1px;
  background: rgba(242, 242, 242, 0.32);
}

.pth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(520px, 1.12fr) minmax(380px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.pth-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pth-line);
  border-radius: var(--radius, 1rem);
  background: rgba(17, 24, 32, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.pth-panel-head {
  padding: 21px 22px 18px;
  border-bottom: 1px solid var(--pth-line);
  background: rgba(255, 255, 255, 0.012);
}

.pth-panel-kicker {
  margin: 0 0 7px;
  color: var(--pth-primary);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.17em;
}

.pth-panel-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.pth-panel-head p {
  margin: 7px 0 0;
  color: var(--pth-muted);
  font-size: 12px;
  line-height: 1.55;
}

.pth-panel-body {
  padding: 18px;
}

.pth-field + .pth-field {
  margin-top: 17px;
}

.pth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.pth-label {
  color: #d7d7dc;
  font-size: 13px;
  font-weight: 650;
}

.pth-required {
  color: var(--pth-primary);
  font-size: 11px;
}

.pth-upload {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--pth-surface);
  transition: border-color var(--transition, 0.25s ease-out), background var(--transition, 0.25s ease-out);
}

.pth-upload:hover,
.pth-upload.is-dragging {
  border-color: rgba(242, 242, 242, 0.6);
  background: rgba(242, 242, 242, 0.045);
}

.pth-upload input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pth-upload-empty {
  display: flex;
  min-height: 126px;
  padding: 18px;
  align-items: center;
  gap: 14px;
}

.pth-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--pth-primary);
  border: 1px solid rgba(242, 242, 242, 0.22);
  border-radius: 12px;
  background: var(--pth-primary-soft);
}

.pth-upload-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.pth-upload-copy span {
  display: block;
  color: var(--pth-muted);
  font-size: 11px;
  line-height: 1.45;
}

.pth-upload-filled {
  position: relative;
  display: flex;
  min-height: 126px;
  padding: 12px;
  align-items: center;
  gap: 12px;
}

.pth-upload-thumb {
  width: 84px;
  height: 98px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: #0b0b0e;
}

.pth-file-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 78px;
  flex: 0 0 auto;
  color: var(--pth-primary);
  border-radius: 10px;
  background: var(--pth-primary-soft);
  font-size: 13px;
  font-weight: 800;
}

.pth-upload-meta {
  min-width: 0;
}

.pth-upload-meta strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pth-upload-meta span {
  display: block;
  margin-top: 7px;
  color: var(--pth-success);
  font-size: 11px;
}

.pth-clear-file {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  color: #c7c7cd;
  border: 1px solid var(--pth-line);
  border-radius: 50%;
  background: rgba(10, 10, 13, 0.84);
  cursor: pointer;
}

.pth-textarea,
.pth-input {
  width: 100%;
  color: var(--pth-text);
  border: 1px solid var(--pth-line);
  border-radius: 11px;
  outline: none;
  background: var(--pth-surface);
  transition: border-color var(--transition, 0.25s ease-out), box-shadow var(--transition, 0.25s ease-out);
  box-sizing: border-box;
}

.pth-input {
  min-height: 42px;
  padding: 0 12px;
  font-size: 13px;
}

.pth-textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.pth-textarea:focus,
.pth-input:focus {
  border-color: rgba(242, 242, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(242, 242, 242, 0.1);
}

.pth-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--pth-line);
  border-radius: 12px;
  background: var(--pth-surface);
}

.pth-segment {
  min-height: 34px;
  padding: 0 8px;
  color: var(--pth-muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.pth-segment.is-active {
  color: #fff;
  background: rgba(242, 242, 242, 0.17);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.28);
}

.pth-generation-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pth-generation-mode,
.pth-template-option {
  min-width: 0;
  color: var(--pth-text);
  border: 1px solid var(--pth-line);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition, 0.25s ease-out), background var(--transition, 0.25s ease-out), transform var(--transition, 0.25s ease-out);
}

.pth-generation-mode {
  min-height: 84px;
  padding: 12px;
  border-radius: 13px;
}

.pth-generation-mode:hover,
.pth-template-option:hover {
  border-color: rgba(242, 242, 242, 0.42);
  transform: translateY(-1px);
}

.pth-generation-mode.is-active,
.pth-template-option.is-active {
  border-color: rgba(242, 242, 242, 0.72);
  background: rgba(242, 242, 242, 0.09);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.12);
}

.pth-generation-mode strong,
.pth-generation-mode span {
  display: block;
}

.pth-generation-mode strong {
  margin-bottom: 5px;
  font-size: 12px;
}

.pth-generation-mode span {
  color: var(--pth-muted);
  font-size: 10px;
  line-height: 1.45;
}

.pth-mode-settings {
  display: grid;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--pth-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.pth-mode-notice {
  padding: 10px 11px;
  color: #e6b77f;
  border: 1px solid rgba(242, 242, 242, 0.18);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.055);
  font-size: 10px;
  line-height: 1.55;
}

.pth-text-action {
  padding: 0;
  color: var(--pth-primary);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.pth-template-picker {
  display: grid;
  max-height: 286px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
}

.pth-template-option {
  min-height: 92px;
  padding: 11px;
  border-radius: 12px;
}

.pth-template-option span,
.pth-template-option strong,
.pth-template-option small {
  display: block;
}

.pth-template-kind {
  margin-bottom: 7px;
  color: var(--pth-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pth-template-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pth-template-option small {
  margin-top: 6px;
  color: var(--pth-muted);
  font-size: 9px;
  line-height: 1.4;
}

.pth-field-help.is-warning {
  color: #e6b77f;
}

.pth-field-help {
  margin-top: 7px;
  color: var(--pth-muted);
  font-size: 10px;
  line-height: 1.5;
}

.pth-button-row {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.pth-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e8e8ec;
  border: 1px solid var(--pth-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition, 0.25s ease-out), border-color var(--transition, 0.25s ease-out), background var(--transition, 0.25s ease-out);
}

.pth-button:hover:not(:disabled) {
  border-color: rgba(242, 242, 242, 0.48);
  transform: translateY(-1px);
}

.pth-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pth-button.is-primary {
  color: #111;
  border-color: var(--pth-primary);
  background: var(--pth-primary);
}

.pth-button.is-primary:hover:not(:disabled) {
  background: #f2f2f2;
}

.pth-button.is-secondary {
  color: #9ce9f3;
  border-color: rgba(242, 242, 242, 0.36);
  background: rgba(242, 242, 242, 0.07);
}

.pth-button.is-block {
  width: 100%;
}

.pth-analyze-button {
  margin-top: 18px;
}

.pth-proof-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pth-proof-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  color: var(--pth-success);
  border: 1px solid rgba(105, 215, 189, 0.22);
  border-radius: 999px;
  background: rgba(105, 215, 189, 0.08);
  font-size: 11px;
  white-space: nowrap;
}

.pth-editor-empty,
.pth-preview-empty {
  display: grid;
  min-height: 520px;
  padding: 38px;
  place-items: center;
  text-align: center;
}

.pth-empty-inner {
  max-width: 330px;
}

.pth-empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  color: var(--pth-primary);
  border: 1px solid rgba(242, 242, 242, 0.28);
  border-radius: 18px;
  background: var(--pth-primary-soft);
}

.pth-empty-icon svg {
  width: 27px;
  height: 27px;
}

.pth-empty-inner h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.pth-empty-inner p {
  margin: 0;
  color: var(--pth-muted);
  font-size: 12px;
  line-height: 1.7;
}

.pth-editor {
  padding: 18px;
}

.pth-editor-title-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 11px;
}

.pth-warning-list {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding: 11px 13px;
  color: #e7b875;
  border: 1px solid rgba(255, 177, 75, 0.2);
  border-radius: 11px;
  background: rgba(242, 242, 242, 0.055);
  font-size: 10px;
  line-height: 1.5;
}

.pth-warning-list span::before {
  margin-right: 6px;
  content: "!";
  color: var(--pth-primary);
  font-weight: 800;
}

.pth-editor-section {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--pth-line);
}

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

.pth-section-head h3 {
  margin: 0;
  font-size: 14px;
}

.pth-section-head span {
  color: var(--pth-muted);
  font-size: 11px;
}

.pth-column-editor {
  display: grid;
  grid-template-columns: repeat(var(--pth-columns, 3), minmax(130px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.pth-column-card {
  position: relative;
  min-width: 130px;
  padding: 10px;
  border: 1px solid var(--pth-line);
  border-radius: 11px;
  background: var(--pth-surface);
}

.pth-column-card .pth-input + .pth-input {
  margin-top: 7px;
}

.pth-column-image {
  position: relative;
  display: grid;
  min-height: 92px;
  margin-top: 8px;
  padding: 10px;
  place-items: center;
  overflow: hidden;
  color: var(--pth-muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.pth-column-image input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pth-column-image > span {
  font-size: 10px;
}

.pth-column-image small {
  display: block;
  margin-top: 3px;
  color: #6f6f78;
  font-size: 9px;
  line-height: 1.35;
}

.pth-column-image-icon {
  color: var(--pth-primary);
}

.pth-column-image-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.pth-column-image.has-image {
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 70px;
  place-items: center start;
  gap: 8px;
  text-align: left;
}

.pth-column-image.has-image img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.pth-column-image.has-image button {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  display: grid;
  width: 21px;
  height: 21px;
  padding: 0;
  place-items: center;
  color: #f3a0a8;
  border: 1px solid rgba(255, 100, 115, 0.3);
  border-radius: 50%;
  background: #211417;
  cursor: pointer;
}

.pth-mini-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #f3a0a8;
  border: 1px solid rgba(255, 100, 115, 0.3);
  border-radius: 50%;
  background: #211417;
  cursor: pointer;
}

.pth-row-list {
  display: grid;
  max-height: 515px;
  gap: 8px;
  overflow: auto;
  padding: 2px 5px 5px 2px;
}

.pth-data-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.78fr) minmax(0, 2.2fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--pth-line);
  border-radius: 12px;
  background: var(--pth-surface);
}

.pth-row-values {
  display: grid;
  grid-template-columns: repeat(var(--pth-columns, 3), minmax(120px, 1fr));
  gap: 7px;
  overflow-x: auto;
}

.pth-row-source {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  color: #7e7e88;
  font-size: 10px;
  line-height: 1.45;
}

.pth-row-source strong {
  flex: 0 0 auto;
  color: var(--pth-success);
  font-weight: 650;
}

.pth-visual-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pth-color-token {
  display: inline-flex;
  min-height: 38px;
  padding: 0 9px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--pth-line);
  border-radius: 10px;
  background: var(--pth-surface);
}

.pth-color-token input[type="color"] {
  width: 25px;
  height: 25px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.pth-color-token span {
  color: var(--pth-muted);
  font-size: 10px;
}

.pth-preview-panel {
  position: sticky;
  top: 84px;
}

.pth-preview-body {
  padding: 16px;
}

.pth-preview-stage {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--pth-line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #101014;
  background-size: 24px 24px;
}

.pth-preview-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 650px;
  border-radius: 5px;
  background: #efe7dc;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.pth-result-gallery {
  display: grid;
  width: 100%;
  max-height: 650px;
  grid-template-columns: repeat(var(--pth-result-count, 1), minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
}

.pth-result-card {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.pth-result-card img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: 8px;
  background: #efe7dc;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.pth-result-card a {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9ce9f3;
  border: 1px solid rgba(242, 242, 242, 0.3);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.07);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.pth-result-card a svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pth-preview-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 2px 0;
  color: var(--pth-muted);
  font-size: 10px;
  line-height: 1.5;
}

.pth-preview-note::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: var(--pth-success);
  box-shadow: 0 0 0 4px rgba(105, 215, 189, 0.08);
}

.pth-result-status {
  display: flex;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pth-muted);
  border: 1px solid var(--pth-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
}

.pth-result-status.is-ready {
  color: var(--pth-success);
  border-color: rgba(105, 215, 189, 0.22);
}

.pth-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  padding: 30px;
  place-items: center;
  color: #fff;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(8px);
  text-align: center;
}

.pth-loader-ring {
  width: 36px;
  height: 36px;
  margin: 0 auto 13px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--pth-primary);
  border-radius: 50%;
  animation: pth-spin 0.8s linear infinite;
}

.pth-loader strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.pth-loader span {
  color: var(--pth-muted);
  font-size: 11px;
}

@keyframes pth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1430px) {
  .pth-layout {
    grid-template-columns: minmax(280px, 320px) minmax(500px, 1fr);
  }

  .pth-preview-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .pth-preview-stage {
    min-height: 640px;
  }
}

@media (max-width: 920px) {
  #param-table-hybrid-view {
    padding: 16px 12px 42px;
  }

  .pth-header {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 112px;
    padding: 20px;
  }

  .pth-stage-rail {
    display: none;
  }

  .pth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pth-preview-panel {
    grid-column: auto;
  }

  .pth-editor-title-grid {
    grid-template-columns: 1fr;
  }

  .pth-data-row {
    grid-template-columns: 1fr;
  }

  .pth-preview-stage {
    min-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pth-loader-ring {
    animation-duration: 1.8s;
  }

  .pth-back,
  .pth-icon-button,
  .pth-button,
  .pth-upload {
    transition: none;
  }
}
