/* Image page controls. */
.image-page .workspace {
 max-width: 1180px;
 grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
 gap: 24px;
}

.image-page {
 margin-left: 0 !important;
 min-width: 0;
}

.image-page .workspace-card {
 min-height: 0;
 min-width: 0;
 padding: 24px;
}

.image-page .upload-zone {
 height: 430px;
 text-align: center;
}

.image-page .upload-zone > div {
 width: 100%;
 text-align: center;
}

.image-page .upload-zone .choose {
 display: block;
 margin: 22px auto 0;
}

.image-page .file-card.image-file {
 display: block;
 padding: 12px;
 position: relative;
}

.image-page .image-file .file-preview {
 display: block;
 width: 100%;
 height: 330px;
 border-radius: 10px;
 object-fit: contain;
 background: #f1f5f9;
}

.image-page .image-file .file-info {
 display: flex;
 align-items: center;
 justify-content: space-between;
 min-width: 0;
 padding: 12px 42px 0 3px;
}

.image-page .image-file .remove {
 position: absolute;
 right: 14px;
 bottom: 10px;
 width: 28px;
 height: 28px;
 padding: 0;
 display: grid;
 place-items: center;
}

.image-page .controls {
 background: #fff;
}

.mc-image-settings {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: 24px;
 padding: 20px;
 margin: 0 0 22px;
}

.mc-image-settings .field {
 margin: 0;
}

.mc-image-settings .field > label {
 display: block;
 margin: 0 0 10px;
 font-size: 14px;
 line-height: 20px;
 font-weight: 600;
}

.mc-image-options {
 display: grid;
 min-width: 0;
 grid-template-columns: repeat(5, minmax(0, 1fr));
 gap: 10px;
 justify-items: stretch;
 align-items: stretch;
}

.mc-resolution-options {
 grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mc-image-option {
 display: flex !important;
 align-items: center;
 justify-content: center;
 min-height: 58px;
 padding: 10px 12px;
 border: 1px solid #dce3eb;
 border-radius: 6px;
 background: #fff;
 cursor: pointer;
 color: #273248;
 text-align: center !important;
 margin: 0 !important;
 font-size: 14px !important;
 font-weight: 400 !important;
 line-height: 20px;
 white-space: nowrap;
 transition: border-color .15s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}

.mc-image-option:has(input:checked) {
 border: 2px solid #347ff0;
 padding: 9px 11px;
 background: #f2f6ff;
 color: #273248;
}

.mc-image-option:has(input:disabled) {
 cursor: not-allowed;
 opacity: .45;
}

.mc-image-option input {
 position: absolute;
 opacity: 0;
 pointer-events: none;
}

.mc-quality-control {
 gap: 14px;
 min-height: 44px;
}

.mc-quality-control input[type="range"] {
 flex: 1;
 min-width: 120px;
 accent-color: #4189f4;
}

.mc-quality-control input[type="number"] {
 flex: 0 0 88px;
 width: 88px;
 height: 46px;
 padding: 0 10px;
 border: 1px solid #e1e5eb;
 border-radius: 10px;
 text-align: center;
 color: #6e7784;
 background: #fff;
}

.mc-quality-control > span {
 color: #667085;
 white-space: nowrap;
}

.image-page .start {
 margin-top: 2px !important;
}

@media(max-width:760px){
 .image-page .workspace {
  grid-template-columns: minmax(0, 1fr);
 }

 .mc-image-options,
 .mc-resolution-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
 }

 .mc-image-settings {
  padding: 20px;
  gap: 20px;
 }

 .mc-quality-control {
  gap: 8px;
 }

 .mc-quality-control input[type="range"] {
  min-width: 0;
 }

 .mc-quality-control input[type="number"] {
  flex-basis: 64px;
  width: 64px;
 }
}

@media(max-width:540px){
 .image-page .upload-zone {
  height: 330px;
 }

 .image-page .image-file .file-preview {
  height: 260px;
 }
}

@media(max-width:850px){
 .app:has(.image-page) .sidebar {
  width: 72px !important;
 }

 .app:has(.image-page) .main {
  margin-left: 0 !important;
 }

 .app:has(.image-page) .topbar {
  left: 72px !important;
 }
}
