.image-workbench55 {
  --image-border: #dce6eb;
  --image-muted: #607784;
  padding: 24px;
}

.image-workbench-heading55 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.image-print-toolbar55 {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #c9e0dc;
  border-radius: 10px;
  background: #f5fbfa;
  box-shadow: 0 3px 12px #2039480a;
}

.image-print-feedback55 {
  min-width: 0;
}

.image-print-result55 {
  margin: 5px 0 0;
  color: #176c65;
  font-size: calc(13px * var(--ui-scale, 1));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.image-print-result55:empty {
  display: none;
}

.image-route55 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #d5e4e8;
  border-radius: 10px;
  background: #f5fafb;
}

.image-route55 strong {
  font-size: calc(14px * var(--ui-scale, 1));
}

.image-route55 p {
  max-width: 330px;
  margin: 5px 0 0;
  color: #607784;
  font-size: calc(12px * var(--ui-scale, 1));
  line-height: 1.6;
}

.image-custom-source55 {
  margin-top: 14px;
}

.image-custom-source55 summary {
  color: #3d5969;
  font-size: calc(13px * var(--ui-scale, 1));
  cursor: pointer;
}

.image-custom-source55 .image-source55 {
  margin-top: 12px;
}

.image-workbench55 .image-workbench-heading55 h3 {
  margin: 0 0 6px;
  font-size: calc(19px * var(--ui-scale, 1));
}

.image-workbench55 .image-workbench-heading55 p {
  margin: 0;
  color: var(--image-muted);
  font-size: calc(13px * var(--ui-scale, 1));
}

.image-workbench-grid55 {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.image-controls55,
.image-preview55,
.image-settings-grid55 > label {
  min-width: 0;
}

.image-workbench55 h4 {
  margin: 0 0 12px;
  font-size: calc(14px * var(--ui-scale, 1));
}

.image-source55 {
  position: relative;
}

.image-file-input55 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.image-file-label55 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  border: 1px dashed #9fbcc8;
  border-radius: 10px;
  background: #f6fafb;
  cursor: pointer;
}

.image-file-label55:hover {
  border-color: var(--teal);
  background: #f0f8f7;
}

.image-file-input55:focus-visible + .image-file-label55 {
  outline: 3px solid #8ed1cb;
  outline-offset: 3px;
}

.image-file-label55 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #176f70;
  font-size: calc(14px * var(--ui-scale, 1));
}

.image-file-label55 small {
  color: var(--image-muted);
  font-size: calc(12px * var(--ui-scale, 1));
}

.image-pattern-actions55 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.image-pattern-actions55 .btn[aria-pressed=true] {
  border-color: #6eb5af;
  background: #e9f6f3;
  color: #0c6f65;
}

.image-workbench55 .btn {
  min-height: 42px;
  padding: 10px 12px;
  white-space: normal;
}

.image-settings55 {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.image-settings55 legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: calc(14px * var(--ui-scale, 1));
  font-weight: 700;
}

.image-settings-grid55 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.image-settings-grid55 label,
.image-advanced55 label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: calc(13px * var(--ui-scale, 1));
}

.image-workbench55 input[type=number],
.image-workbench55 select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #c9d9e2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}

.image-field-hint55 {
  color: var(--image-muted);
  font-size: calc(11px * var(--ui-scale, 1));
  font-weight: 400;
}

.image-advanced55 {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--image-border);
}

.image-advanced55 summary,
.image-downloads55 summary {
  color: #3d5969;
  font-size: calc(13px * var(--ui-scale, 1));
  cursor: pointer;
}

.image-advanced55[open] summary {
  margin-bottom: 14px;
}

.image-parameter-actions55,
.image-download-actions55 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.image-update55 {
  width: 100%;
  margin-top: 20px;
  border-color: #a1c8c7;
  background: #edf7f6;
  color: #146b6b;
}

.image-preview55 {
  padding: 18px;
  border: 1px solid var(--image-border);
  border-radius: 12px;
  background: #f9fbfc;
}

.image-preview-heading55 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.image-preview-heading55 h4 {
  margin: 0;
}

.image-preview-status55 {
  color: var(--image-muted);
  font-size: calc(12px * var(--ui-scale, 1));
}

[data-preview-state=ready] .image-preview-status55 {
  color: #11796b;
}

[data-preview-state=stale] .image-preview-status55 {
  color: #926116;
}

[data-preview-state=error] .image-preview-status55 {
  color: #a13b49;
}

.image-preview-metrics55 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 12px;
  margin: 0;
}

.image-preview-metrics55 > div {
  min-width: 0;
}

.image-preview-metrics55 dt {
  margin-bottom: 5px;
  color: var(--image-muted);
  font-size: calc(11px * var(--ui-scale, 1));
}

.image-preview-metrics55 dd {
  margin: 0;
  font-size: calc(13px * var(--ui-scale, 1));
  font-weight: 600;
  overflow-wrap: anywhere;
}

.image-workbench55 .image-status-note55 {
  margin: 14px 0;
  color: var(--image-muted);
  font-size: calc(12px * var(--ui-scale, 1));
  line-height: 1.6;
}

.image-preview-viewport55 {
  min-height: 320px;
  max-height: 600px;
  overflow: auto;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  background: #eaf0f3;
}

.image-preview-stage55 {
  display: flex;
  justify-content: center;
  min-width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.image-preview-stage55 canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 3px 16px #20394820;
  image-rendering: pixelated;
}

.image-preview-empty55 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  margin: 0;
  color: #718794;
  font-size: calc(14px * var(--ui-scale, 1));
}

[data-preview-state=ready] .image-preview-empty55 {
  display: none;
}

[data-preview-state]:not([data-preview-state=ready]) .image-preview-stage55 {
  display: none;
}

[data-preview-scale=actual] .image-preview-stage55 {
  width: max-content;
}

[data-preview-scale=actual] .image-preview-stage55 canvas {
  max-width: none;
  flex: none;
}

.image-preview-scale55 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: var(--image-muted);
  font-size: calc(12px * var(--ui-scale, 1));
}

.image-preview-scale55 select {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
}

.image-connection-note55 {
  color: var(--image-muted);
  font-size: calc(12px * var(--ui-scale, 1));
}

.image-workbench55 .image-print55 {
  min-width: 154px;
  min-height: 44px;
}

.image-downloads55 {
  margin-top: 16px;
}

@media (max-width: 880px) {
  .image-workbench-grid55 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .image-preview-viewport55 {
    max-height: 480px;
  }
}

@media (max-width: 520px) {
  .image-workbench55 {
    padding: 16px;
  }

  .image-workbench55 .image-workbench-heading55 h3 {
    font-size: calc(17px * var(--ui-scale, 1));
  }

  .image-workbench55 input[type=number],
  .image-workbench55 select {
    font-size: 16px;
    min-height: 44px;
  }

  .image-preview55 {
    padding: 14px;
  }

  .image-preview-metrics55 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .image-preview-stage55 {
    padding: 16px;
  }

  .image-preview-scale55 {
    justify-content: space-between;
  }

  .image-workbench-heading55 {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-print-toolbar55 {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .image-route55 .btn {
    width: 100%;
  }

  .image-workbench55 .image-print55 {
    width: 100%;
  }

  .image-download-actions55 .btn {
    flex: 1;
  }
}
