.blowup-page-frame {
  width: min(1500px, calc(100% - 24px));
  max-width: none;
}

.blowup-intro {
  margin-bottom: 14px;
}

.blowup-intro h2,
.blowup-intro p {
  margin-top: 0;
}

.blowup-intro p {
  margin-bottom: 0;
}

.blowup-app {
  --blowup-panel: #252527;
  --blowup-panel-2: #303033;
  --blowup-line: rgba(255, 255, 255, 0.12);
  --blowup-text: #f5f5f7;
  --blowup-muted: #a8a8ad;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 760px;
  overflow: hidden;
  color: var(--blowup-text);
  border: 1px solid #ff66cc;
  border-radius: 10px;
  background: #1d1d1f;
  box-shadow: 0 0 24px rgba(255, 102, 204, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.blowup-app button,
.blowup-app select,
.blowup-app input {
  font: inherit;
}

.blowup-app [hidden] {
  display: none !important;
}

.blowup-app button,
.blowup-app select,
.blowup-app input[type="number"],
.blowup-app input[type="color"] {
  color: var(--blowup-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #3a3a3d;
}

.blowup-app button,
.blowup-app select {
  min-height: 32px;
  padding: 5px 9px;
}

.blowup-app button:not(:disabled),
.blowup-app select:not(:disabled),
.blowup-app input:not(:disabled) {
  cursor: pointer;
}

.blowup-app button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
  background: #47474b;
}

.blowup-app button:focus-visible,
.blowup-app select:focus-visible,
.blowup-app input:focus-visible,
.blowup-preview-stage:focus-visible {
  outline: 2px solid #ff8cf5;
  outline-offset: 2px;
}

.blowup-app button:disabled,
.blowup-app select:disabled,
.blowup-app input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.blowup-sidebar {
  max-height: 760px;
  overflow: auto;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--blowup-line);
  background: var(--blowup-panel);
  scrollbar-color: #666 transparent;
}

.blowup-brand {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.blowup-brand strong {
  font-size: 22px;
}

.blowup-brand span,
.blowup-app small,
.blowup-file-info span {
  color: var(--blowup-muted);
  font-size: 12px;
}

.blowup-control-section {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.blowup-section-label {
  font-size: 13px;
  font-weight: 700;
}

.blowup-sidebar fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0 0 13px;
  padding: 12px 10px 11px;
  border: 1px solid var(--blowup-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.blowup-sidebar legend {
  padding: 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.blowup-sidebar label {
  color: #dedee2;
  font-size: 12px;
}

.blowup-sidebar select {
  width: 100%;
}

.blowup-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.blowup-range-row input[type="range"] {
  width: 100%;
  accent-color: #0a84ff;
}

.blowup-range-row > input[type="number"],
.blowup-number-wrap input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 6px;
}

.blowup-number-wrap {
  position: relative;
  display: block;
}

.blowup-number-wrap input[type="number"] {
  padding-right: 29px;
}

.blowup-number-wrap span {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--blowup-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.blowup-dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.blowup-dimensions label {
  display: grid;
  gap: 4px;
}

.blowup-dimensions input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 4px 6px;
}

.blowup-check {
  display: flex;
  align-items: center;
  gap: 7px;
}

.blowup-check input {
  accent-color: #0a84ff;
}

.blowup-color {
  display: grid;
  grid-template-columns: 1fr 38px auto;
  align-items: center;
  gap: 8px;
}

.blowup-color input[type="color"] {
  width: 38px;
  height: 30px;
  padding: 2px;
}

.blowup-color code {
  color: var(--blowup-text);
  font-size: 11px;
}

.blowup-workspace {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 10px;
  background: #1d1d1f;
}

.blowup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
}

.blowup-file-info {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.blowup-file-info strong,
.blowup-file-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blowup-toolbar #export-format {
  width: 78px;
}

.blowup-primary {
  font-weight: 650 !important;
}

.blowup-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  background: #151517;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.blowup-preview-stage.is-panning {
  cursor: grabbing;
}

.blowup-placeholder,
.blowup-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.blowup-placeholder strong {
  font-size: clamp(20px, 3vw, 30px);
}

.blowup-placeholder span {
  color: var(--blowup-muted);
  font-size: 13px;
}

.blowup-placeholder button {
  margin-top: 8px;
}

.blowup-loading {
  z-index: 20;
  color: #ffffff;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(3px);
  cursor: progress;
}

.blowup-preview-content {
  position: absolute;
  overflow: hidden;
  background-color: #e3e3e6;
  background-image:
    linear-gradient(45deg, #c9c9ce 25%, transparent 25%),
    linear-gradient(-45deg, #c9c9ce 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c9c9ce 75%),
    linear-gradient(-45deg, transparent 75%, #c9c9ce 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.blowup-preview-content canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#after-canvas {
  clip-path: inset(0 0 0 50%);
}

.blowup-preview-label {
  position: absolute;
  z-index: 5;
  top: 12px;
  padding: 5px 8px;
  color: #ffffff;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  pointer-events: none;
}

.blowup-preview-label--before {
  left: 12px;
}

.blowup-preview-label--after {
  left: calc(50% + 12px);
}

.blowup-split-handle {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  cursor: ew-resize !important;
  transform: translateX(-50%);
}

.blowup-split-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.blowup-view-controls {
  display: grid;
  grid-template-columns: auto auto minmax(90px, 1fr) auto 34px 52px 34px auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}

.blowup-view-controls input[type="range"] {
  width: 100%;
  accent-color: #0a84ff;
}

.blowup-view-controls button {
  min-height: 30px;
  padding: 3px 8px;
}

#zoom-label {
  color: #dedee2;
  text-align: center;
}

.blowup-status {
  min-height: 24px;
  padding-top: 8px;
  color: var(--blowup-muted);
  font-size: 12px;
}

.blowup-status.is-error {
  color: #ff8d8d;
}

@media (max-width: 1020px) {
  .blowup-app {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .blowup-page-frame {
    width: min(100% - 12px, 1500px);
  }

  .blowup-app {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .blowup-sidebar {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--blowup-line);
  }

  .blowup-workspace {
    grid-template-rows: auto minmax(430px, 72vh) auto auto;
  }
}

@media (max-width: 600px) {
  .blowup-toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .blowup-file-info {
    grid-column: 1 / -1;
  }

  .blowup-view-controls {
    grid-template-columns: auto 1fr auto auto auto auto;
  }

  .blowup-view-controls > span:first-of-type,
  .blowup-view-controls > span:nth-of-type(2) {
    display: none;
  }

  #split-range {
    grid-column: 2 / 7;
    grid-row: 2;
  }
}
