

* {
  box-sizing: border-box;
}


::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}


* {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  border: 0;
  background: #fff;
  border-radius: 0;
  display: flex;
  flex-direction: row;
}

header.title {
  background-color: #fff;
  width: 1264px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#headerUserBack {
  margin-right: 0;
}

#headerUserBack img {
  background: var(--header-bgcolor);
  padding: 8px;
  border-radius: 8px;
}



#guidePage {
  width: 100%;
  padding: 72px 0 96px;
  text-align: center;
  align-items: center;
}

.image_title {
  margin: 0 0 18px;
  color: #101018;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

#guidePage h2 {
  max-width: 760px;
  margin: 0 auto;
  color: #6b6b78;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: anywhere;
}

#guidePage h2 .fmt,
#guidePage h2 .fmt2 {
  color: #6558e8;
  font-weight: 600;
}

.upload-box {
  position: relative;
  width: 100%;
  margin: 40px auto 0;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #d9d9e3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 26, 0.05);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.upload-box:hover {
  border-color: #b7aefc;
  background: #fcfbff;
  box-shadow: 0 24px 48px rgba(17, 17, 26, 0.08);
}

.upload-box:focus-within {
  border-color: #6558e8;
  box-shadow: 0 0 0 4px rgba(101, 88, 232, 0.12);
}

.upload-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f2efff;
  color: #6558e8;
  transition: transform 0.2s ease;
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  color: #14141c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-width: 220px;
  height: 56px;
  margin: 20px 0 0;
  padding: 0 30px;
  border-radius: 999px;
  background-color: #6558e8;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upload-label-plus {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.upload-label-plus::before,
.upload-label-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: currentColor;
  transform: translate(-50%, -50%);
}

.upload-label-plus::before {
  width: 8px;
  height: 2px;
}

.upload-label-plus::after {
  width: 2px;
  height: 8px;
}

.upload-label:hover {
  background-color: #5749d6;
  box-shadow: 0 14px 30px rgba(101, 88, 232, 0.28);
  transform: translateY(-2px);
}

.upload-label:active {
  transform: translateY(0);
}

.upload-hint {
  margin: 16px 0 0;
  color: #8b8b98;
  font-size: 14px;
  line-height: 1.6;
}

#bgColorPicker {
  width: 32px;
  height: 24px;
}

#inputFiles {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 56px 0 0;
}

.grid-container .grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 28px 24px;
  border: 0;
  border-radius: 20px;
  background: #f7f6ff;
  text-align: left;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.grid-container .grid-item:hover {
  background: #f1eeff;
  box-shadow: 0 16px 36px rgba(101, 88, 232, 0.1);
  transform: translateY(-2px);
}

.grid-item svg {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  color: #6558e8;
  box-shadow: 0 6px 16px rgba(101, 88, 232, 0.12);
}

.feature-body {
  min-width: 0;
}

.feature-title {
  margin: 0 0 8px;
  color: #101018;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.feature-desc {
  margin: 0;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-container .grid-item {
    padding: 22px 20px;
    gap: 14px;
  }

  .grid-item svg {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 12px;
  }

  .feature-title {
    font-size: 16px;
  }

  .feature-desc {
    font-size: 14px;
    line-height: 1.65;
  }
}



.guide-section {
  margin: 64px 0 0;
  padding: 0;
  background: transparent;
  color: #182230;
  font-family: inherit;
  line-height: 1.65;
  counter-reset: step-counter;
  text-align: left;
}

.guide-section h3 {
  margin: 40px 0 16px;
  padding: 0;
  border: 0;
  color: #101018;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.guide-section > h3:first-child {
  margin-top: 0;
}

.guide-section p {
  margin: 0 0 14px;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.75;
}

.guide-section strong {
  padding: 0;
  background: transparent;
  color: #6558e8;
  font-weight: 600;
}

.guide-section ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.guide-section ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.guide-section ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 0;
  color: #6558e8;
  font-size: 14px;
  font-weight: 700;
}

.guide-section .step {
  position: relative;
  margin-bottom: 12px;
  padding: 22px 22px 22px 68px;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 17, 26, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-section .step:hover {
  border-color: #e4e0ff;
  box-shadow: 0 12px 28px rgba(17, 17, 26, 0.07);
  transform: translateY(-2px);
}

.guide-section .step h4 {
  margin: 0 0 8px;
  color: #101018;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.guide-section .step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6558e8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.guide-section .step p {
  margin: 0;
  color: #6b6b78;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}



.faq {
  margin: 16px 0;
  padding: 0;
}

.faq dt {
  position: relative;
  margin-top: 12px;
  padding: 16px 48px 16px 20px;
  border-radius: 14px;
  background: #f7f6ff;
  color: #101018;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq dt:hover {
  background: #f1eeff;
}

.faq dt::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #6558e8;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.faq dt.active::after {
  content: "−";
}

.faq dd {
  margin: 0;
  height: 0;
  overflow: hidden;
  color: #6b6b78;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  transition: height 0.22s ease;
}

.faq dd > div {
  padding: 12px 20px 14px;
}

@media (max-width: 900px) {
  .faq dt {
    padding: 14px 44px 14px 16px;
    font-size: 15px;
  }

  .faq dt::after {
    right: 16px;
  }

  .faq dd > div {
    padding: 10px 16px 12px;
  }
}



section.panel {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 32px auto 48px;
}

#file-list {
  flex: 1;
  min-width: 0;
  margin: 8px 0;
  padding: 0;
  list-style: none;
  background-color: #fff;
  border-radius: 6px;
  height: calc(100vh - 86px);
  overflow-x: hidden;
  overflow-y: auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;

  position: relative;
}

#file-list li {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 190px;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  padding: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#file-list li:hover {
  border-color: #e4e0ff;
  box-shadow: 0 12px 28px rgba(17, 17, 26, 0.07);
}

#file-list li#empty_tip,
#file-list li#loading_tip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 32px 16px;
  border: 1.5px dashed #d9d9e3;
  border-radius: 16px;
  background: #fff;
  color: #999;
  font-size: 15px;
  pointer-events: none;
  white-space: nowrap;
  outline: none;
}


.thumb-box {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f8fa;
  border-radius: 5px;
}

.thumb-box .status-text {
  color: #929baa;
  font-size: 12px;
}

img.thumb {
  
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

.thumb-box.active img.thumb {
  border: 1px solid #e6e6e6;
}

.compressed:hover {
  cursor: pointer;
}


.filename {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #182230;
  font-size: 12px;
  text-align: center;
}


.outputSpan {
  width: 100%;
  color: #687588;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.outputSpan span {
  color: #6558e8;
  font-weight: 600;
}


#file-list a.download_image {
  min-width: 70px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #f1efff;
  color: #6558e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

#file-list a.download_image:hover {
  background: #e7e3ff;
}

#file-list a.disabledA {
  visibility: hidden;
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}


.del_img {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #98a0ae;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(17, 17, 26, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}

#file-list li:hover .del_img,
#file-list li:focus-within .del_img,
.del_img:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}


@media (hover: hover) and (pointer: fine) {
  #file-list li:hover .del_img {
    background: #fff1f1;
    color: #e5484d;
  }
}

.del_img:hover {
  background: #ff4d4f;
  color: #fff;
}


@media (hover: none) {
  .del_img {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}



.setting {
  flex: 0 0 320px;
  width: 320px;
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 20px;
  border: 0;
  box-shadow: 0 12px 32px rgba(17, 17, 26, 0.07);
  transition: opacity 0.2s ease;
}

.h2_title {
  margin: 0;
  padding: 0 0 8px;
  color: #182230;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.6px;
  text-align: left;
}

.setting fieldset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #f0f0f5;
  border-radius: 16px;
  background: #fafafd;
  font-size: 14px;
}

.setting label.mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #182230;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.setting input[type="radio"] {
  margin: 0;
  accent-color: #6558e8;
}


.compressOption {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #182230;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.compressOption:focus {
  outline: none;
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.1);
}

#percentOpt {
  display: none;
}


.userCustom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


.bg-option {
  grid-column: 1 / -1; 
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap; 
}
.bg-option b {
  flex: none;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}
.bg-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.bg-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e6e6eb;
  padding: 0;
  background: var(--sw, #fff);
  cursor: pointer;
  flex: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bg-swatch:hover {
  border-color: #b9b3e8;
}
.bg-swatch.active {
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.18);
}

.bg-swatch-blur {
  width: auto;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  color: #4a4a5a;
  background:
    radial-gradient(circle at 20% 30%, #b3c2dd 0%, transparent 60%),
    radial-gradient(circle at 80% 40%, #d9c2e0 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, #c2e0d4 0%, transparent 60%),
    #e9ecf3;
}


.setting label.size_label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
  color: #182230;
  font-size: 12px;
  font-weight: 600;
}

.setting label.size_label.size_full {
  grid-column: 1 / -1;
}

.setting label.size_label b {
  flex: none;
  color: #687588;
  font-size: 12px;
  font-weight: 600;
}


.setting label.size_label .field {
  display: flex;
  align-items: center;
  height: 40px;
  padding-right: 10px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setting label.size_label .field:focus-within {
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.1);
}

.setting label.size_label .field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #182230;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.setting label.size_label .unit {
  flex: none;
  color: #929baa;
  font-size: 12px;
  font-weight: 600;
}

.setting label.size_label select {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #182230;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.setting label.size_label select:focus {
  outline: none;
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.1);
}



.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.add-button,
.clean-button,
.save-all,
#processBtn {
  position: relative;
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;

  border-radius: 999px;
  border: 1px solid #6558e8;
  background: #6558e8;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;

  transition: opacity 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;

  opacity: 0.3;
  pointer-events: none;
}


.add-button,
.clean-button {
  background: #f1efff;
  border-color: #f1efff;
  color: #6558e8;
}

.add-button {
  opacity: 1;
  pointer-events: auto;
}

.add-button:hover,
.clean-button:hover {
  background: #e7e3ff;
  border-color: #e7e3ff;
}


#processBtn,
.save-all {
  background: #6558e8;
  border-color: #6558e8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
}

#processBtn:hover,
.save-all:hover {
  background: #5749d6;
  border-color: #5749d6;
  box-shadow: 0 14px 30px rgba(101, 88, 232, 0.28);
  transform: translateY(-1px);
}

.button_count,
.output_count {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  line-height: 18px;
  text-align: center;
  background-color: #00b578;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 999px;
}

.output_count {
  background-color: #6558e8;
  visibility: hidden;
}



#hoverPreview {
  position: fixed;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
  border: 1px solid #ccc;
  background: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#hoverPreview img {
  max-width: 500px;
  max-height: 500px;
  min-width: 100px;
  min-height: 100px;
}



@media screen and (max-width: 768px) {

  header.title {
    width: 98%;
    padding: 1%;
  }

  .container {
    width: 100%;
    height: auto;
    padding: 0 16px;
    flex-direction: column;
  }

  .image_title {
    margin: 0 0 15px;
    font-size: 32px;
    letter-spacing: -1px;
  }

  #guidePage {
    width: 100%;
    margin: 0;
    padding: 50px 0 64px;
  }

  #guidePage h2 {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.7;
  }

  .upload-box {
    margin-top: 32px;
    padding: 40px 16px;
    border-radius: 20px;
  }

  .upload-label {
    width: fit-content;
    min-width: 200px;
    height: 52px;
    margin-top: 18px;
  }

  .grid-container {
    margin-top: 36px;
  }

  .guide-section {
    margin: 36px 0 0;
    padding: 0;
  }

  .guide-section h3 {
    margin: 32px 0 14px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .guide-section > h3:first-child {
    margin-top: 0;
  }

  .guide-section .step {
    padding: 20px 16px 20px 54px;
  }

  .guide-section .step::before {
    left: 14px;
    top: 18px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  
  section.panel {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
    margin: 24px auto 32px;
  }

  #file-list {
    width: 100%;
    height: calc(100vh - 360px);
    min-height: 180px;
    margin: 4px 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #file-list li {
    min-height: 170px;
    padding: 6px;
  }

  #file-list .thumb-box {
    height: 140px;
  }

  
  .setting {
    flex: none;
    width: 100%;
    margin: 0;
    padding: 16px;
    gap: 10px;
    border-radius: 16px;
  }

  .h2_title {
    padding: 0 0 8px;
    font-size: 20px;
  }

  .controls {
    gap: 8px;
  }

  #hoverPreview img {
    max-width: 360px;
    max-height: 360px;
  }
}

@media screen and (max-width: 480px) {

  .image_title {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .upload-label {
    width: 100%;
    max-width: 280px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}
