.ecg-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: #e6e9dd;
  background: #080d09;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}
.ecg-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #455245;
}
.ecg-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ecg-mode-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a5f18b;
}
.ecg-heading h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}
.ecg-file-name {
  font-size: 11px;
  color: #aebdaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
}
.ecg-zoom-level {
  font-size: 12px;
  font-weight: 700;
  min-width: 39px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ecg-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #697b60 #0a100b;
  background: #131a14;
}
.ecg-viewport:focus-visible {
  outline: 2px solid #c8e8ab;
  outline-offset: -2px;
}
.ecg-canvas {
  display: grid;
  place-items: center;
  min-height: 100%;
  min-width: 100%;
}
.ecg-canvas img {
  display: block;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 3px 15px #0009;
  max-width: none !important;
  user-select: none;
}
.ecg-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  color: #a7b5a1;
}
.ecg-empty svg {
  width: 76px;
  height: 52px;
  margin-bottom: 9px;
  color: #b1c7a2;
}
.ecg-empty strong {
  font-size: 20px;
  font-weight: 400;
  color: #d2ddc9;
}
.ecg-empty span {
  font-size: 12px;
  max-width: 330px;
  line-height: 1.6;
}
.ecg-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
  border-top: 1px solid #455245;
  flex-shrink: 0;
}
.ecg-view-status {
  font-size: 10px;
  color: #aebdaa;
}
.ecg-view-status.is-error {
  color: #ffd38c;
}
.ecg-view-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.ecg-view-controls button {
  font:
    700 13px Arial,
    Helvetica,
    sans-serif;
  border: 1px solid #7a8d6d;
  border-radius: 2px;
  background: #273120;
  color: #e4eedb;
  min-height: 29px;
  min-width: 32px;
  padding: 3px 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.ecg-view-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.ecg-view-controls button:focus-visible {
  outline: 2px solid #c8e8ab;
  outline-offset: 2px;
}
.ecg-workspace [hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .ecg-heading {
    gap: 9px;
    padding: 8px 10px;
  }
  .ecg-heading h1 {
    font-size: 12px;
  }
  .ecg-heading > div {
    gap: 8px;
  }
  .ecg-file-name {
    font-size: 9px;
  }
  .ecg-toolbar {
    padding: 5px 8px;
    min-height: 38px;
  }
  .ecg-view-status {
    font-size: 9px;
  }
  .ecg-view-controls button {
    min-height: 25px;
    font-size: 11px;
    padding: 2px 7px;
  }
  .ecg-empty strong {
    font-size: 16px;
  }
  .ecg-empty span {
    font-size: 10px;
  }
  .ecg-empty svg {
    height: 38px;
    margin-bottom: 3px;
  }
}
