:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --line: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --blue: #2f6bff;
  --blue-soft: #eef5ff;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
  --shadow-panel: 0 18px 40px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
  --panel-radius: 16px;
  --stage-radius: 18px;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body:not(.is-irw-workbench) {
  padding-bottom: 78px;
}

button,
input,
select {
  font: inherit;
}

button,
label {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 72px minmax(760px, 1fr);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 170px;
  align-items: center;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
}

.brand strong {
  color: #12325c;
  font-size: 26px;
}

.brand span {
  color: var(--blue);
  font-size: 26px;
}

.mode-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: min(720px, 100%);
  height: 58px;
  margin: 0 auto;
  padding: 6px;
  background: linear-gradient(180deg, #eff5ff, #e6edf9);
  border: 1px solid #dce6f5;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.10);
}

.mode-tab {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
  height: 46px;
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-align: center;
}

.mode-tab strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.mode-tab span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.mode-tab.active {
  color: #fff;
  background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 20px rgba(47, 107, 255, 0.24);
}

.mode-tab.active strong,
.mode-tab.active span {
  color: #fff;
}

.account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  width: 38px;
  height: 38px;
  border: 2px solid #dbeafe;
  border-radius: 50%;
  background: linear-gradient(135deg, #9ec5ff, #d7dce8);
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(760px, 1fr) 280px;
  gap: 16px;
  min-height: 0;
  padding: 16px 24px 18px;
}

body.retouch-focus .app {
  grid-template-rows: 52px minmax(760px, 1fr);
}

body.retouch-focus .topbar {
  grid-template-columns: 180px minmax(0, 1fr) 90px;
  min-height: 52px;
  padding: 0 18px;
}

body.retouch-focus .brand strong,
body.retouch-focus .brand span {
  font-size: 20px;
}

body.retouch-focus .mode-tabs {
  height: 42px;
  max-width: 610px;
  padding: 4px;
}

body.retouch-focus .mode-tab {
  height: 34px;
}

body.retouch-focus .mode-tab strong {
  font-size: 14px;
}

body.retouch-focus .mode-tab span,
body.retouch-focus .account span {
  display: none;
}

body.retouch-focus .avatar {
  width: 30px;
  height: 30px;
}

body.retouch-focus .workspace {
  grid-template-columns: minmax(0, 1fr);
  padding: 10px 14px 14px;
}

body.retouch-focus .left-panel,
body.retouch-focus .history-panel {
  display: none;
}

body.retouch-focus .main-panel {
  min-height: calc(100vh - 76px);
  grid-template-rows: auto minmax(720px, 1fr) auto;
}

body.retouch-focus .main-head {
  padding: 10px 14px 8px;
}

body.retouch-focus .canvas-shell {
  margin: 0 14px;
}

body.retouch-focus .canvas-shell.retouch-mode {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.panel {
  min-height: 0;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
}

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

.left-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 20px 18px;
  overflow: hidden;
}

.panel-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.panel-section-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.panel-section-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.field-group {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 228px;
  color: #94a3b8;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  border: 1.5px dashed rgba(37, 99, 235, 0.36);
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.upload-box:hover {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
  color: #64748b;
}

.upload-box:hover .upload-icon {
  color: #1d4ed8;
}

.upload-box input,
.middle-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-box strong,
.upload-box span {
  display: block;
}

.upload-box strong {
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.upload-empty {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  margin: 0 auto 6px;
  color: #2563eb;
  background: transparent;
  border-radius: 0;
  transition: color 0.2s ease;
}

.upload-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.hint {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.upload-note {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

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

.option label,
.toggle-row {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
}

.segmented button {
  flex: 1;
  height: 38px;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segmented .active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px;
}

.toggle-row.quality-locked {
  color: #9ca3af;
}

.toggle-main {
  display: grid;
  gap: 3px;
}

.toggle-note {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.toggle-row:not(.quality-locked) .toggle-note {
  color: var(--muted);
}

.toggle-row input {
  width: 42px;
  height: 22px;
  accent-color: var(--blue);
}

.toggle-row.quality-locked input {
  opacity: 0.45;
}

.primary-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-create:not(:disabled):hover {
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
}

.primary-create:disabled {
  opacity: 0.62;
  box-shadow: none;
}

.compute-cost {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 44px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.main-panel {
  display: grid;
  grid-template-rows: minmax(520px, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.main-head--floating {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 12;
  width: min(calc(100% - 28px), 760px);
  padding: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.main-head--floating .main-head-toolbar,
.main-head--floating .mode-tabs--stage {
  pointer-events: auto;
}

.mode-tabs--stage {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.55);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  opacity: 0.62;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.main-head--floating:hover .mode-tabs--stage,
.main-head--floating:focus-within .mode-tabs--stage {
  opacity: 1;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.mode-tabs--stage .mode-tab.active {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.mode-tabs--stage .mode-tab.active strong {
  color: #fff;
}

.main-head {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px 8px;
}

.main-head--with-tabs {
  padding: 8px 18px 8px;
}

.main-head-toolbar {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-head .mode-tabs--inline {
  width: min(100%, 680px);
  height: 52px;
  margin: 0 auto;
  justify-self: center;
}

.mode-tabs--unified {
  display: flex;
  align-items: stretch;
  width: min(100%, 860px);
  height: auto !important;
  min-height: 52px;
  margin: 0 auto;
  padding: 5px;
  gap: 6px;
}

.mode-tabs--unified .mode-tab {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  min-height: 46px;
}

.mode-tabs--unified .mode-tab-desc {
  display: none;
}

.mode-tab-upload.middle-upload {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 6px 8px;
  cursor: pointer;
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.28);
}

.middle-upload-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}

.middle-upload-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #dc6b2a;
  background: rgba(220, 107, 42, 0.12);
  border: 1px solid rgba(220, 107, 42, 0.28);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.middle-upload-tip:hover {
  color: #c2410c;
  background: rgba(220, 107, 42, 0.18);
  border-color: rgba(220, 107, 42, 0.42);
}

.mode-tab-upload.middle-upload:hover {
  background: rgba(239, 245, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.45);
}

.mode-tab-upload.middle-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mode-tab-upload #middleUploadTitle {
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.mode-tab-upload #fileName,
.mode-tab-upload .mode-tab-file {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-tab-upload #fileName:empty,
.mode-tab-upload .mode-tab-file:empty {
  display: none;
}

.mode-tab-upload .middle-upload-rule {
  display: none;
}

.integrated-relief-root.is-retouch-mode .main-head .mode-tabs--inline,
.integrated-relief-root.is-retouch-mode .main-head .mode-tabs--unified {
  height: auto !important;
  min-height: 42px;
  max-width: 820px;
}

.integrated-relief-root.is-retouch-mode .main-head .mode-tab:not(.mode-tab-upload) {
  min-height: 34px;
}

.integrated-relief-root.is-retouch-mode .main-head .mode-tab-desc {
  display: none;
}

.integrated-relief-root.is-retouch-mode .main-head .mode-tab:not(.mode-tab-upload) strong,
.integrated-relief-root.is-retouch-mode .main-head .mode-tab-upload #middleUploadTitle {
  font-size: 14px;
}

.main-head h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.main-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.middle-upload:not(.mode-tab-upload) {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 9px 13px;
  background: #f8fbff;
  border: 1px solid #cfe0ff;
  border-radius: 11px;
}

.middle-upload span {
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.middle-upload small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.middle-upload-rule {
  color: #dc6b2a !important;
  font-weight: 600;
}

.canvas-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f8fafc;
  border: 0;
  border-radius: var(--stage-radius);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.75);
}

.canvas-shell > .canvas-area {
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
  height: 100%;
}

.canvas-shell.retouch-mode {
  grid-template-columns: minmax(0, 1fr) 318px;
}

.canvas-shell.retouch-mode > .retouch-side {
  grid-row: 1;
  grid-column: 2;
  min-height: 0;
  height: 100%;
}

.canvas-area {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  background: #f3f5f8;
}

.canvas-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.canvas-controls-bar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 10px;
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

/* 预览/修图：控件浮在画布底部，不占额外高度，尽量放大预览区 */
.canvas-controls-bar.is-canvas-overlay,
.canvas-controls-bar.is-retouch-overlay {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 8;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0.58;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

.canvas-controls-bar.is-canvas-overlay:hover,
.canvas-controls-bar.is-retouch-overlay:hover {
  opacity: 1;
}

.canvas-shell .canvas-area {
  position: relative;
}

.canvas-controls-bar.is-canvas-overlay .view-tips,
.canvas-controls-bar.is-retouch-overlay .view-tips {
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: auto;
}

.canvas-controls-bar.is-canvas-overlay .view-tips-trigger,
.canvas-controls-bar.is-retouch-overlay .view-tips-trigger {
  color: #fff;
  font-size: 10px;
  cursor: default;
}

.canvas-controls-bar.is-canvas-overlay .mode-toolbar,
.canvas-controls-bar.is-retouch-overlay .mode-toolbar {
  padding: 3px 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.canvas-viewport #glCanvas,
.canvas-viewport #mapCanvas,
.canvas-viewport #artformFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#glCanvas,
#mapCanvas {
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
}

#mapCanvas,
#artformFrame {
  display: none;
}

.empty-state {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #64748b;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
  background: #f3f5f8;
}

.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.empty-state-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
}

.empty-state-title {
  position: relative;
  z-index: 1;
  max-width: min(420px, 92%);
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.empty-state-guide {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(520px, 94%);
  text-align: center;
}

.empty-state-guide-line {
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.empty-state-guide-line strong {
  color: #2563eb;
  font-weight: 700;
}

.empty-state-help {
  position: relative;
  z-index: 1;
  max-width: min(420px, 92%);
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.empty-state-wechat {
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.empty-state-status {
  position: relative;
  z-index: 1;
  max-width: min(480px, 92%);
  padding: 8px 14px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.empty-state span {
  position: relative;
  z-index: 1;
  color: rgba(39, 48, 58, 0.76);
  font-size: 12px;
}

.empty-state.is-hidden {
  display: none;
}

.height-reference {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  width: 190px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.height-reference.is-hidden {
  display: none;
}

.height-reference-head,
.height-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

#heightRefCanvas {
  display: block;
  width: 100%;
  height: 118px;
  margin: 8px 0;
  background: #eef2f7;
  border-radius: 7px;
}

.height-legend i {
  flex: 1;
  height: 7px;
  background: linear-gradient(90deg, #111827, #f8fafc);
  border-radius: 999px;
}

.mode-toolbar {
  position: static;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(17, 24, 39, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}

.view-label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 7;
  min-width: 74px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(17, 24, 39, 0.86);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.view-label.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mode-icon.is-active .mode-dot {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.95);
}

.mode-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.mode-dot.map {
  background: conic-gradient(#3b82f6, #22c55e, #f59e0b, #38bdf8, #3b82f6);
}

.mode-dot.clay {
  background: radial-gradient(circle at 35% 30%, #fff, #aab3bf 54%, #687385);
}

.mode-dot.height {
  background: radial-gradient(circle at 35% 30%, #f8fafc, #111827 76%);
}

.mode-dot.texture {
  background:
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.88) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(34, 197, 94, 0.72));
}

.mode-icon.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.65);
}

.view-tips {
  position: static;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, 100%);
  padding: 4px 2px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
  opacity: 1;
}

.view-tips strong {
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.view-tips span {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.view-tools {
  display: none;
}

.retouch-side {
  display: none;
  padding: 18px 16px 18px;
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-left: 1px solid var(--line);
}

.retouch-side-inner {
  padding-top: 6px;
}

.canvas-shell.retouch-mode .retouch-side {
  display: block;
}

.retouch-section {
  position: relative;
}

.retouch-section + .retouch-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.retouch-section h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.retouch-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 4px;
}

.step-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.retouch-step-primary .step-index {
  background: #1d4ed8;
}

.retouch-step-primary {
  isolation: isolate;
}

.retouch-step-primary::before {
  content: "";
  position: absolute;
  inset: 8px -8px auto -8px;
  height: calc(100% - 10px);
  background: #f8fbff;
  border: 1px solid #e6efff;
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
}

.retouch-field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #4b5563;
  font-size: 14px;
}

.retouch-field:first-of-type {
  margin-top: 6px;
}

.retouch-field input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.retouch-field input[type="number"] {
  width: 58px;
  height: 28px;
  padding: 0 6px;
  color: var(--blue);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  text-align: right;
}

.retouch-field-note {
  align-items: start;
  min-height: 70px;
}

.retouch-field-note small {
  grid-column: 2 / 4;
  margin-top: -3px;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.35;
}

.perspective-field {
  min-height: 76px;
}

.perspective-scale {
  grid-column: 2 / 4;
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  color: #9aa4b2;
  font-size: 11px;
  line-height: 1;
}

.retouch-details {
  margin-top: 6px;
  padding: 8px 10px;
  color: #6b7280;
  background: #f9fbff;
  border: 1px solid #e3eaf5;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.retouch-details summary {
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  list-style-position: outside;
}

.retouch-details p {
  margin-top: 6px;
}

.level-options .retouch-field {
  grid-template-columns: 76px minmax(0, 1fr) 56px;
  min-height: 34px;
  margin-top: 6px;
}

.level-options .retouch-field input[type="number"] {
  width: 56px;
}

.retouch-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  color: #4b5563;
  font-size: 14px;
}

.retouch-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.retouch-toggle-compact {
  margin-top: 2px;
}

.retouch-toggle-strong {
  min-height: 38px;
  color: #243047;
  font-weight: 500;
}

.level-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 500;
}

.level-star {
  color: #2f6bff;
  font-size: 13px;
  line-height: 1;
}

.level-title em {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  color: #2454d6;
  background: #eef4ff;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.retouch-toggle-with-note {
  align-items: center;
  min-height: 46px;
}

.toggle-copy {
  display: grid;
  gap: 3px;
}

.toggle-copy small {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.smooth-options,
.level-options,
.perspective-options {
  margin-top: 2px;
  padding: 4px 8px 5px;
  background: #f8fafc;
  border: 1px solid #e8eef6;
  border-radius: 9px;
}

.smooth-options[hidden],
.level-options[hidden],
.perspective-options[hidden] {
  display: none;
}

.smooth-options .retouch-field,
.level-options .retouch-field,
.perspective-options .retouch-field {
  min-height: 32px;
  grid-template-columns: 76px minmax(0, 1fr) 56px;
}

.smooth-options .retouch-field input[type="number"],
.level-options .retouch-field input[type="number"],
.perspective-options .retouch-field input[type="number"] {
  width: 56px;
}

.retouch-hint {
  margin: 3px 0 1px 0;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.35;
}

.perspective-options {
  padding-bottom: 7px;
}

/* ---- 【2026-11-04 透视矫正】方向下拉 + 读数行 ---- */
.perspective-options .retouch-field:has(.retouch-select) {
  grid-template-columns: 76px minmax(0, 1fr);
}

.retouch-select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  color: #2c3a4d;
  font-size: 13px;
  line-height: 28px;
  background: #fff;
  border: 1px solid #d6e0ee;
  border-radius: 7px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a94a6 50%), linear-gradient(135deg, #8a94a6 50%, transparent 50%);
  background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.retouch-select:focus {
  border-color: #9db8de;
  box-shadow: 0 0 0 3px rgba(120, 160, 220, 0.15);
}

.perspective-readout {
  margin: 4px 0 2px 0;
  padding: 4px 8px;
  color: #4a5a70;
  font-size: 12px;
  line-height: 1.4;
  background: #eef4fc;
  border-radius: 7px;
}

.perspective-readout:empty {
  display: none;
}

.perspective-options .retouch-details {
  margin-top: 4px;
  padding: 7px 9px;
  background: #fff;
}

.texture-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 6px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #e2eaf7;
  border-radius: 12px;
}

.texture-row strong,
.texture-row small,
.texture-row span {
  display: block;
}

.texture-row strong {
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
}

.texture-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.texture-row .texture-ai-hint {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.35;
}

.texture-row > div > span {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.texture-row.is-disabled {
  opacity: 0.56;
}

.mini-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.mini-switch input {
  position: absolute;
  opacity: 0;
}

.mini-switch span {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
}

.mini-switch span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.16s ease;
}

.mini-switch input:checked + span {
  background: var(--blue);
}

.mini-switch input:checked + span::after {
  transform: translateX(18px);
}

.texture-upload {
  display: grid;
  place-items: center;
  min-width: 66px;
  height: 32px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.texture-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.texture-row.is-disabled .texture-upload {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #d1d5db;
}

.texture-fit-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dbe4f0;
}

.texture-fit-panel.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.texture-fit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 8px;
}

.texture-fit-actions button {
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.texture-fit-actions button:first-child {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.texture-fit-actions button:last-child {
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
}

.texture-fit-toggle {
  min-width: 58px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.texture-fit-advanced[hidden] {
  display: none;
}

.texture-fit-field {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #64748b;
  font-size: 12px;
}

.texture-fit-field input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.texture-fit-field input[type="number"] {
  width: 58px;
  height: 26px;
  padding: 0 5px;
  color: var(--blue);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  text-align: right;
}

/* 上色强度：常驻显示在「一键匹配图案」下方，不藏在「细调」里 ——
   贴图透明背景/颜色过重是最常踩的问题，不该让用户先展开面板才找得到。 */
.texture-strength-field {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.texture-strength-note {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.preview-action-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.preview-action-dock--below {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  z-index: 2;
  flex-shrink: 0;
}

.preview-action-dock .status-chips {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.preview-action-dock .chip-muted {
  opacity: 0.82;
}

.preview-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.export-row {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 14px;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(14px);
}

.status-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}

.status-chips strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.chip {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 9px;
  color: #475569;
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 24px;
}

.bottom-guide {
  max-width: 360px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.bottom-guide.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.secondary-action {
  min-width: 108px;
  height: 42px;
  padding: 0 20px;
  color: var(--blue);
  background: #f3f7ff;
  border: 1px solid #bcd1ff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.export {
  min-width: 112px;
  height: 42px;
  padding: 0 30px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.history-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 20px 18px 16px;
  overflow: hidden;
}

.history-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.history-head p {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.history-list {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 14px;
  overflow: auto;
}

.history-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.history-item.active {
  border-color: #bfd4ff;
  background: #f8fbff;
}

.history-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.map-thumb {
  background: conic-gradient(#3b82f6, #22c55e, #f59e0b, #38bdf8, #3b82f6);
}

.clay-thumb {
  background: radial-gradient(circle at 35% 30%, #fff, #aab3bf 54%, #687385);
}

.height-thumb {
  background: radial-gradient(circle at 35% 30%, #f8fafc, #111827 76%);
}

.history-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.history-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.36);
}

.modal.open {
  display: flex;
}

.dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
}

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

.dialog h2 {
  font-size: 22px;
  font-weight: 700;
}

.dialog-close {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.format-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  max-height: min(52vh, 430px);
  overflow: auto;
  padding-right: 2px;
}

.format-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.format-card:has(input:checked) {
  background: #f3f7ff;
  border-color: #bcd1ff;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.08);
}

.format-card input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.format-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.format-card span span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.model-format-card strong::after {
  content: "⌄";
  float: right;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.model-export-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 10px 12px;
  margin-top: 12px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
}

.model-export-panel.is-open {
  display: grid;
}

.model-select-label {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.model-select-label select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #bfd4ff;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

.model-export-desc {
  grid-column: 1 / -1;
  margin: -2px 0 2px 92px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.model-export-desc.is-warning {
  color: #c2410c;
}

.model-export-panel strong,
.model-export-panel span {
  display: block;
}

.model-export-panel strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.model-export-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quality-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.quality-options button {
  height: 30px;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}

.quality-options button.active {
  color: #fff;
  background: var(--blue);
}

.confirm-export {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.export-status {
  display: none;
  margin-top: 12px;
  max-height: 140px;
  overflow: auto;
  white-space: pre-line;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.export-status:not(:empty) {
  display: block;
}

.export-status a {
  color: var(--blue);
}

.help-poster {
  display: block;
  width: 100%;
  max-height: 72vh;
  margin-top: 16px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.hidden-internals {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 300px minmax(620px, 1fr);
  }

  .history-panel {
    display: none;
  }

  .export-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .bottom-guide {
    display: none;
  }

}

@media (max-width: 760px) {
  body {
    padding-bottom: 138px;
  }

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

  .topbar {
    grid-template-columns: 1fr 42px;
    min-height: 106px;
    padding: 10px 14px 0;
  }

  .brand strong,
  .brand span {
    font-size: 23px;
  }

  .mode-tabs {
    grid-column: 1 / -1;
    order: 3;
    gap: 4px;
    height: 52px;
    padding: 4px;
  }

  .mode-tab {
    height: 42px;
  }

  .mode-tab strong {
    font-size: 14px;
  }

  .mode-tab span {
    font-size: 11px;
  }

  .account span {
    display: none;
  }

  .workspace {
    display: block;
    padding: 10px 10px 20px;
  }

  .panel {
    margin-bottom: 10px;
  }

  .left-panel,
  .history-panel {
    padding: 14px;
  }

  .upload-box {
    min-height: 172px;
  }

  .main-head {
    grid-template-columns: 1fr;
    padding: 14px 14px 10px;
  }

  .main-head h1 {
    font-size: 21px;
  }

  .canvas-shell {
    height: 540px;
    margin: 0 14px;
  }

  .canvas-shell.retouch-mode {
    height: auto;
    display: block;
  }

  .canvas-shell.retouch-mode .canvas-viewport {
    height: 520px;
  }

  .retouch-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .export-row {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 10px;
  }

  .status-chips {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .bottom-guide {
    display: none;
  }

  .secondary-action,
  .export {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .help-body {
    grid-template-columns: 1fr;
  }
}

/* ---- Site embed overrides (XinhuaWeb workbench) ---- */
.integrated-relief-workbench.app-embed {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.integrated-relief-workbench.app-embed .workspace {
  display: grid;
  height: 100%;
  max-height: 100%;
  align-content: stretch;
  grid-template-columns: minmax(0, 16vw) minmax(0, 1fr) minmax(0, 14vw);
  gap: 6px;
  padding: 8px 6px 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.integrated-relief-workbench.app-embed .main-panel {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  min-height: 0;
}

.integrated-relief-workbench.app-embed .irw-stage-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  height: 100%;
}

.integrated-relief-workbench.app-embed .irw-side-panel {
  min-height: 0;
  overflow: hidden;
}

.integrated-relief-workbench.app-embed .left-panel {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px !important;
  grid-template-rows: none;
  min-height: 0;
  overflow: hidden;
}

.integrated-relief-workbench.app-embed .history-panel {
  padding: 10px 8px 8px;
  min-height: 0;
  overflow: hidden;
}

.integrated-relief-workbench.app-embed .history-head {
  flex-shrink: 0;
  padding-top: 2px;
}

.integrated-relief-workbench.app-embed .history-head p {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
}

.integrated-relief-workbench.app-embed .history-head h2 {
  font-size: 15px;
}

.integrated-relief-workbench.app-embed .panel-section-head {
  gap: 10px;
  margin-bottom: 2px;
}

.integrated-relief-workbench.app-embed .panel-title {
  font-size: 16px;
}

.integrated-relief-workbench.app-embed .integrated-relief-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  gap: 2px;
}

.integrated-relief-workbench.app-embed .integrated-relief-root > .canvas-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.integrated-relief-workbench.app-embed .integrated-relief-root > .preview-action-dock--below {
  flex: 0 0 auto;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 2px 6px;
  border-radius: 8px;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .status-chips {
  grid-column: 1;
  grid-row: 1;
  gap: 3px;
  font-size: 12px;
  overflow: hidden;
  min-width: 0;
  flex-wrap: wrap;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .status-chips strong {
  font-size: 13px;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .bottom-guide {
  display: none;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .preview-action-buttons {
  grid-column: 2;
  grid-row: 1;
  gap: 6px;
  align-self: center;
  flex-shrink: 0;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .chip {
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 18px;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .chip:has(#trimSummary),
.integrated-relief-workbench.app-embed .preview-action-dock--below .chip:has(#levelSummary) {
  display: none;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .secondary-action,
.integrated-relief-workbench.app-embed .preview-action-dock--below .export {
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: 7px;
  line-height: 1;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .export {
  min-width: 52px;
  padding: 0 10px;
  font-size: 14px;
}

.integrated-relief-workbench.app-embed .primary-create {
  width: 100%;
  height: 42px;
  gap: 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.integrated-relief-workbench.app-embed .compute-cost {
  font-size: 14px;
  min-width: 36px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.integrated-relief-workbench.app-embed .field-group {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  gap: 12px;
  margin: 0;
}

.integrated-relief-workbench.app-embed .irw-section {
  display: grid;
  gap: 8px;
}

.integrated-relief-workbench.app-embed .irw-section-title {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.integrated-relief-workbench.app-embed .irw-params-panel {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.integrated-relief-workbench.app-embed .irw-params-body {
  display: grid;
  gap: 12px;
}

.integrated-relief-workbench.app-embed .irw-params-panel .option label {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.integrated-relief-workbench.app-embed .irw-params-panel .segmented {
  background: #fff;
}

.integrated-relief-workbench.app-embed .option {
  gap: 10px;
}

.integrated-relief-workbench.app-embed .option label {
  font-size: 14px;
}

.integrated-relief-workbench.app-embed .upload-box {
  height: 184px;
  min-height: 184px;
  max-height: 184px;
  padding: 18px 12px 16px;
  border-radius: 10px;
  border-color: rgba(37, 99, 235, 0.34);
}

.integrated-relief-workbench.app-embed .upload-box.has-preview {
  height: 184px;
  min-height: 184px;
  max-height: 184px;
  padding: 8px;
}

.integrated-relief-workbench.app-embed .upload-box.has-preview .upload-preview {
  width: 100%;
}

.integrated-relief-workbench.app-embed .upload-preview-frame {
  padding: 5px;
}

.integrated-relief-workbench.app-embed .irw-upload-thumb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
}

.integrated-relief-workbench.app-embed .upload-box:hover {
  border-color: rgba(37, 99, 235, 0.55);
}

.integrated-relief-workbench.app-embed .upload-note {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.integrated-relief-workbench.app-embed .upload-box strong {
  font-size: 15px;
  color: #475569;
}

.integrated-relief-workbench.app-embed .upload-box .hint {
  font-size: 12px;
  color: #94a3b8;
}

.integrated-relief-workbench.app-embed .upload-icon {
  margin-bottom: 4px;
}

.integrated-relief-workbench.app-embed .upload-icon svg {
  width: 28px;
  height: 28px;
}

.integrated-relief-workbench.app-embed .segmented {
  padding: 4px;
  gap: 4px;
  border-radius: 9px;
}

.integrated-relief-workbench.app-embed .segmented button {
  min-height: 32px;
  font-size: 14px;
  padding: 0 6px;
}

.integrated-relief-workbench.app-embed .history-list {
  gap: 8px;
  margin-top: 6px;
}

.integrated-relief-workbench.app-embed .history-item {
  padding: 6px 8px;
  gap: 8px;
  grid-template-columns: 56px 1fr;
}

.integrated-relief-workbench.app-embed .history-thumb img {
  width: 56px;
  height: 56px;
}

.integrated-relief-workbench.app-embed .history-item-title {
  font-size: 14px;
}

.integrated-relief-workbench.app-embed .history-item-id,
.integrated-relief-workbench.app-embed .history-item-time {
  font-size: 12px;
}

.integrated-relief-workbench.app-embed .preview-action-dock--below .chip {
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
}

.integrated-relief-workbench.app-embed .left-panel-body {
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.integrated-relief-workbench.app-embed .irw-section--upload {
  scroll-margin-top: 10px;
}

.integrated-relief-workbench.app-embed .irw-left-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
}

.integrated-relief-workbench.app-embed .irw-left-inner > div:first-child,
.integrated-relief-workbench.app-embed .irw-left-controls {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  padding: 10px 0 14px;
  scroll-padding-top: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.integrated-relief-workbench.app-embed .irw-left-inner > div:first-child::-webkit-scrollbar,
.integrated-relief-workbench.app-embed .irw-left-controls::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.integrated-relief-workbench.app-embed .irw-left-footer,
.integrated-relief-workbench.app-embed .irw-left-inner > .primary-create {
  flex: 0 0 auto;
}

.integrated-relief-workbench.app-embed .irw-left-footer {
  padding: 12px 0 14px;
  border-top: 1px solid #d8e4f2;
  /* 原来只有一条 1px 细线 + 白底，按钮看起来是浮在内容上面的。
     改成生图页 .side-bottom 那样的整条页脚带：底色 + 向上投影 + 上下留白，
     视觉上就跟滚动区彻底分开，不再像叠上去的。 */
  background: #f3f7fd;
  box-shadow: 0 -12px 25px rgba(38, 63, 100, 0.07);
}

.integrated-relief-workbench.app-embed .irw-footer-arrow {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
}

.integrated-relief-workbench.app-embed .irw-footer-hint {
  margin-top: 7px;
  color: #7c899e;
  font-size: 12px;
  text-align: center;
}


.integrated-relief-workbench.app-embed .option--ai-enhance {
  gap: 8px;
}

.integrated-relief-workbench.app-embed .empty-state {
  padding: 20px 16px;
}

.integrated-relief-workbench.app-embed .empty-state-title {
  font-size: 14px;
}

.integrated-relief-workbench.app-embed .empty-state-guide-line {
  font-size: 14px;
  line-height: 1.5;
}

.integrated-relief-workbench.app-embed .empty-state-help {
  font-size: 13px;
}

.integrated-relief-workbench.app-embed .empty-state-wechat {
  font-size: 13px;
}

.integrated-relief-workbench.app-embed .empty-state-status {
  font-size: 14px;
  padding: 7px 12px;
  max-width: min(480px, 96%);
  white-space: normal;
  line-height: 1.35;
}

.integrated-relief-workbench.is-retouch-focus.app-embed {
  padding-bottom: 0 !important;
}

.integrated-relief-workbench.is-retouch-focus .integrated-relief-root {
  padding-bottom: 0;
}

@media (min-width: 1440px) {
  .integrated-relief-workbench.app-embed .workspace {
    grid-template-columns: minmax(0, 288px) minmax(0, 1fr) minmax(0, 264px);
    gap: 12px;
    padding: 10px 14px 6px;
  }
}

@media (min-width: 1920px) {
  .integrated-relief-workbench.app-embed .workspace {
    grid-template-columns: minmax(0, 308px) minmax(0, 1fr) minmax(0, 276px);
    gap: 14px;
    padding: 10px 16px 6px;
  }
}

@media (max-width: 1200px) {
  .integrated-relief-workbench.app-embed .workspace {
    grid-template-columns: minmax(0, 248px) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 8px 4px;
  }
}

/* 修图模式：左右栏 display:none 后 grid 只剩 main-panel，必须单列全宽，否则会落在第一列 ~320px */
.integrated-relief-workbench.is-retouch-focus.app-embed .workspace {
  grid-template-columns: minmax(0, 1fr);
  padding: 2px 10px 4px;
}

.integrated-relief-workbench.is-retouch-focus.app-embed .left-panel,
.integrated-relief-workbench.is-retouch-focus.app-embed .history-panel {
  display: none !important;
}

.integrated-relief-workbench.is-retouch-focus.app-embed .main-panel {
  grid-column: 1 / -1;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.integrated-relief-workbench.is-retouch-focus.app-embed .integrated-relief-root {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  padding-bottom: 0;
  gap: 6px;
}

.integrated-relief-workbench.is-retouch-focus .main-head {
  padding: 10px 14px 8px;
}

.integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(330px, 30vw);
  min-height: 0;
  height: 100%;
  margin: 0;
}

.integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode .canvas-area {
  min-height: 0;
  height: 100%;
}

.integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode .canvas-viewport {
  min-height: 0;
}

.integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode .retouch-side {
  display: block;
  min-height: 0;
  max-height: 100%;
  padding-top: 18px;
}

.preview-action-dock.export-row,
.export-row.irw-export-row.preview-action-dock--below {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.integrated-relief-workbench.app-embed .export-row.irw-export-row.preview-action-dock--below {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 4px;
  min-height: 0;
  padding: 2px 6px;
}

.integrated-relief-workbench.is-retouch-focus .export-row.irw-export-row.preview-action-dock--below {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
}

.integrated-relief-workbench.is-retouch-focus .export-row.irw-export-row .bottom-guide {
  display: none;
}

.integrated-relief-workbench.is-retouch-focus .export-row.irw-export-row .secondary-action,
.integrated-relief-workbench.is-retouch-focus .export-row.irw-export-row .export {
  height: 38px;
  min-width: 96px;
  font-size: 14px;
}

.export-row.irw-export-row .secondary-action,
.export-row.irw-export-row .export {
  appearance: none;
  cursor: pointer;
}

.history-panel > .history-scroll {
  min-height: 0;
  overflow: hidden;
}

.history-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-section-head.panel-section-head {
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0;
}

.history-head-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-section-head .panel-section-copy {
  flex: 1 1 auto;
  min-width: 0;
}

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

.history-refresh {
  flex: 0 0 auto;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.history-refresh:hover {
  opacity: 0.85;
}

.history-scroll {
  min-height: 0;
  height: 100%;
}

.history-panel .history-scroll .el-scrollbar__wrap {
  max-height: 100%;
}

.history-item {
  cursor: pointer;
  align-items: flex-start;
  padding: 10px 12px;
  gap: 12px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.history-item.is-deleting {
  opacity: 0.55;
}

.history-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.history-item-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.history-item-body .history-item-id,
.history-item-body .history-item-time {
  margin: 0;
}

.history-item-title {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.history-item-id,
.history-item-time {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.history-item-time {
  font-size: 11px;
  color: #94a3b8;
}

.history-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.history-link {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.history-link:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.history-link.is-danger {
  color: #dc2626;
}

.history-item-status {
  display: block;
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-style: normal;
}

.history-item-status em {
  font-style: normal;
  font-weight: 600;
}

/* ⭐⭐⭐【2026-11-23 新增】「原图保底降级」提示行。
   这一单是素模（AI 精修）失败后、用用户原图直接进 GPU 出件的 ⇒ 细节比正常件糙
   ⇒ 必须让用户知道，别让他以为是正常效果。
   ⚠️ 走独立字段（不是 error_msg）—— 成功单的 error_msg 是「失败原因」语义。 */
.history-item-note {
  display: block;
  margin: 2px 0 0;
  color: #b45309;
  font-size: 11px;
  line-height: 1.45;
}

.history-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---- Mobile embed: 修图模式 + Tabbar 适配 ---- */
:root {
  --irw-tabbar-offset: calc(3.25rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
  .integrated-relief-workbench.app-embed .workspace {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 10px calc(var(--irw-tabbar-offset) + 8px);
  }

  .integrated-relief-workbench.is-retouch-focus.app-embed .workspace {
    grid-template-columns: 1fr;
    padding: 12px 10px calc(var(--irw-tabbar-offset) + 72px);
  }

  /* 统一工具栏：四按钮一行 */
  .integrated-relief-root .main-head,
  .integrated-relief-workbench .main-head {
    display: flex;
    justify-content: center;
    padding: 10px 10px 8px;
  }

  .integrated-relief-root .main-head-toolbar,
  .integrated-relief-workbench .main-head-toolbar {
    width: 100%;
  }

  .integrated-relief-root .main-head .mode-tabs--unified,
  .integrated-relief-workbench .main-head .mode-tabs--unified {
    width: 100%;
    max-width: none;
    min-height: 40px;
    height: auto !important;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.08);
    flex-wrap: nowrap;
  }

  .integrated-relief-root .main-head .mode-tabs--unified .mode-tab,
  .integrated-relief-root .main-head .middle-upload-group {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .integrated-relief-root .main-head .mode-tab-upload.middle-upload {
    min-height: 36px;
    height: auto;
    gap: 0;
    padding: 5px 4px;
  }

  .integrated-relief-root .main-head .mode-tab:not(.mode-tab-upload) strong,
  .integrated-relief-workbench .main-head .mode-tab:not(.mode-tab-upload) strong,
  .integrated-relief-root .main-head .mode-tab-upload #middleUploadTitle {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .integrated-relief-root .main-head .mode-tab-desc {
    display: none;
  }

  .integrated-relief-root .main-head .mode-tab-upload #fileName,
  .integrated-relief-root .main-head .mode-tab-upload .mode-tab-file {
    display: none;
  }

  .integrated-relief-root .main-head .mode-tab.active,
  .integrated-relief-workbench .main-head .mode-tab.active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 10px rgba(47, 107, 255, 0.16);
  }

  .integrated-relief-workbench.is-retouch-focus .integrated-relief-root {
    grid-template-rows: auto auto;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding-bottom: calc(var(--irw-tabbar-offset) + 76px);
  }

  .integrated-relief-workbench.is-retouch-focus.app-embed .main-panel {
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  /* 修图：预览在上、参数面板在下，避免左右挤压 */
  .integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode,
  .integrated-relief-workbench.is-retouch-focus.app-embed .canvas-shell.retouch-mode,
  .integrated-relief-root .canvas-shell.retouch-mode {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border-radius: 10px;
  }

  .integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode .canvas-viewport,
  .integrated-relief-root .canvas-shell.retouch-mode .canvas-viewport {
    flex: 0 0 auto;
    width: 100%;
    height: min(34vh, 260px);
    min-height: 180px;
    max-height: 280px;
  }

  .integrated-relief-workbench.is-retouch-focus .canvas-shell.retouch-mode .retouch-side,
  .integrated-relief-root .canvas-shell.retouch-mode .retouch-side {
    flex: 0 0 auto;
    width: 100%;
    min-height: min(58vh, 520px);
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  .integrated-relief-root.is-retouch-mode .retouch-side-inner {
    padding-bottom: 8px;
  }

  .integrated-relief-root .canvas-shell {
    margin: 0;
  }

  .integrated-relief-root {
    padding-bottom: calc(var(--irw-tabbar-offset) + 58px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .view-tips span {
    white-space: normal;
    text-align: center;
  }

  .mode-toolbar {
    padding: 3px 4px;
    gap: 4px;
  }

  .mode-icon {
    width: 20px;
    height: 20px;
  }

  .mode-dot {
    width: 16px;
    height: 16px;
  }

  .view-label {
    left: auto;
    right: 8px;
    bottom: auto;
    top: 8px;
    transform: none;
    min-width: 0;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    font-size: 10px;
  }

  .view-label.show {
    transform: none;
  }

  .retouch-field {
    grid-template-columns: 70px minmax(0, 1fr) 50px;
    gap: 6px;
    min-height: 34px;
    font-size: 13px;
  }

  .retouch-field input[type="number"] {
    width: 50px;
    height: 26px;
    font-size: 11px;
  }

  .retouch-section h3 {
    font-size: 14px;
  }

  .retouch-step-head {
    margin-bottom: 2px;
  }

  .retouch-toggle-with-note small {
    font-size: 11px;
    line-height: 1.35;
  }

  .export-row.irw-export-row.preview-action-dock--below {
    left: auto;
    right: auto;
    width: 100%;
    bottom: auto;
    transform: none;
    padding: 8px 10px;
    gap: 8px;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .export-row.irw-export-row.preview-action-dock--below .status-chips,
  .export-row.irw-export-row.preview-action-dock--below .bottom-guide {
    display: none;
  }

  .preview-action-dock--below .preview-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .export-row.irw-export-row .secondary-action,
  .export-row.irw-export-row .export {
    height: 38px;
    min-width: 0;
    font-size: 14px;
    padding: 0 12px;
  }
}
