.logo-export-page,
.logo-export-page * {
  box-sizing: border-box;
}

.logo-export-page {
  width: min(100%, 1080px) !important;
  max-width: 1080px !important;
  margin-inline: auto !important;
}

.logo-export-header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  overflow: visible !important;
  margin: 0 0 24px !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e4e7 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.logo-export-header::before,
.logo-export-header::after {
  display: none !important;
}

.logo-export-header nav a {
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 720 !important;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-export-header h1 {
  margin: 5px 0 0 !important;
  color: #171719 !important;
  font-size: clamp(30px, 4vw, 42px) !important;
  font-weight: 680 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.logo-export-header p {
  max-width: 680px;
  margin: 9px 0 0;
  color: #71717a;
  font-size: 14px;
  line-height: 1.55;
}

.logo-builder {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .035);
}

.logo-source-panel,
.logo-variants-panel {
  padding: 22px;
}

.logo-source-panel {
  border-bottom: 1px solid #e4e4e7;
  background: #fafafa;
}

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

.logo-section-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-step {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 50%;
  background: #fff;
  color: #52525b;
  font-size: 11px;
  font-weight: 720;
}

.logo-section-head h2 {
  margin: 0 !important;
  color: #18181b !important;
  font-size: 17px !important;
  font-weight: 680 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.logo-section-head p {
  margin: 3px 0 0;
  color: #8a8a92;
  font-size: 12px;
}

.logo-dropzone {
  display: grid !important;
  width: 100%;
  min-height: 164px !important;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c7c7cc !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #18181b !important;
  cursor: pointer;
  padding: 18px !important;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.logo-dropzone:hover,
.logo-dropzone.is-over {
  border-color: #2563eb !important;
  background: #f7faff !important;
}

.logo-empty-preview {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.logo-add-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  place-items: center;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #f7f7f8;
  color: #2563eb;
  font-size: 24px;
  font-weight: 430;
}

.logo-empty-preview strong {
  font-size: 14px;
  font-weight: 680;
}

.logo-empty-preview small {
  color: #8a8a92;
  font-size: 12px;
}

.logo-file-preview {
  display: grid;
  width: 100%;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.logo-preview-canvas {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f0f0f2 25%, transparent 25%), linear-gradient(-45deg, #f0f0f2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f2 75%), linear-gradient(-45deg, transparent 75%, #f0f0f2 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.logo-preview-canvas img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.logo-file-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.logo-file-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-file-copy small {
  color: #8a8a92;
  font-size: 12px;
}

.logo-change {
  color: #2563eb;
  font-size: 12px;
  font-weight: 680;
}

.logo-add-variant {
  display: inline-flex !important;
  min-height: 40px !important;
  align-items: center !important;
  gap: 8px;
  border: 1px solid #d4d4d8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #18181b !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  cursor: pointer;
}

.logo-add-variant span {
  color: #2563eb;
  font-size: 19px;
  line-height: 1;
}

.logo-variant-list {
  display: grid;
  gap: 8px;
}

.logo-variant-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
}

.logo-size-tile {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 7px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 11px;
  font-weight: 720;
}

.logo-variant-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.logo-variant-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-variant-copy span {
  color: #8a8a92;
  font-size: 11px;
}

.logo-variant-edit,
.logo-variant-remove {
  display: inline-flex !important;
  min-height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #52525b !important;
  padding: 0 11px !important;
  font-size: 11px !important;
  font-weight: 670 !important;
  cursor: pointer;
}

.logo-variant-remove {
  width: 36px;
  padding: 0 !important;
  color: #b42318 !important;
}

.logo-variants-empty {
  padding: 28px;
  border: 1px dashed #d4d4d8;
  border-radius: 8px;
  color: #8a8a92;
  font-size: 13px;
  text-align: center;
}

.logo-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid #e4e4e7;
  background: #fafafa;
}

.logo-export-status {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.logo-export-status strong {
  font-size: 12px;
  font-weight: 680;
}

.logo-export-status span {
  overflow: hidden;
  color: #8a8a92;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-export-status.is-error strong,
.logo-export-status.is-error span {
  color: #b42318;
}

.logo-export-button {
  display: inline-flex !important;
  min-width: 170px;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #171719 !important;
  border-radius: 8px !important;
  background: #171719 !important;
  color: #fff !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 680 !important;
  cursor: pointer;
}

.logo-export-button:disabled {
  cursor: wait;
  opacity: .5;
}

.variant-dialog {
  width: min(520px, calc(100% - 28px));
  max-width: 520px;
  margin: auto;
  padding: 0;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.variant-dialog::backdrop {
  background: rgba(17, 17, 19, .38);
  backdrop-filter: blur(4px);
}

.variant-form {
  display: grid;
  gap: 17px;
  padding: 22px;
}

.variant-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.variant-dialog-head span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.variant-dialog-head h2 {
  margin: 4px 0 0 !important;
  font-size: 21px !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.variant-close {
  display: grid !important;
  width: 36px;
  height: 36px !important;
  min-height: 36px !important;
  place-items: center;
  border: 1px solid #e4e4e7 !important;
  border-radius: 50% !important;
  background: #f7f7f8 !important;
  color: #52525b !important;
  padding: 0 !important;
  cursor: pointer;
}

.variant-size-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.variant-size-grid label,
.variant-field {
  display: grid;
  gap: 7px;
  color: #52525b;
  font-size: 12px;
  font-weight: 670;
}

.variant-size-grid label > span {
  position: relative;
  display: block;
}

.variant-size-grid input,
.variant-field input,
.variant-field select {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #18181b !important;
  padding: 0 12px !important;
  font: inherit !important;
  font-size: 13px !important;
}

.variant-size-grid input {
  padding-right: 34px !important;
}

.variant-size-grid label small {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #a1a1aa;
  font-size: 11px;
  transform: translateY(-50%);
}

.variant-times {
  padding-bottom: 13px;
  color: #a1a1aa;
  font-size: 18px;
}

.variant-field > small {
  margin-left: 4px;
  color: #a1a1aa;
  font-weight: 500;
}

.variant-filename-hint {
  margin: -8px 0 0;
  color: #8a8a92;
  font-size: 11px;
}

.variant-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 3px;
}

.variant-cancel,
.variant-save {
  min-height: 44px !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 680 !important;
  cursor: pointer;
}

.variant-cancel {
  border: 1px solid #d4d4d8 !important;
  background: #fff !important;
  color: #3f3f46 !important;
}

.variant-save {
  border: 1px solid #171719 !important;
  background: #171719 !important;
  color: #fff !important;
}

@media (max-width: 680px) {
  .logo-export-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .logo-section-head,
  .logo-export-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .logo-add-variant,
  .logo-export-button {
    width: 100%;
  }

  .logo-file-preview {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .logo-preview-canvas {
    width: 76px;
    height: 76px;
  }

  .logo-preview-canvas img {
    width: 62px;
    height: 62px;
  }

  .logo-change {
    display: none;
  }

  .logo-variant-row {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    gap: 10px;
  }

  .logo-size-tile {
    width: 48px;
    height: 48px;
  }

  .logo-variant-edit {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
