.image-page {
  background:
    radial-gradient(circle at 82% 4%, rgba(175, 207, 187, .36), transparent 27rem),
    radial-gradient(circle at 5% 34%, rgba(255, 201, 166, .24), transparent 25rem),
    var(--paper);
}

.back-home {
  justify-self: end;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.back-home span { color: var(--coral); margin-left: 4px; }

.image-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.image-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 50px;
  align-items: center;
  padding: 65px 0 55px;
}
.image-hero h1 {
  margin: 24px 0 16px;
  max-width: 760px;
  font-size: clamp(46px, 6.3vw, 72px);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.image-hero h1 em {
  color: var(--coral);
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}
.image-hero > div > p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.hero-related-links { display: flex; flex-wrap: wrap; gap: 15px; }
.privacy-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(48, 91, 72, .16);
  border-radius: 18px;
  background: rgba(235, 244, 237, .74);
  transform: rotate(1.5deg);
}
.privacy-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #2b7257;
  color: #fff;
  transform: rotate(-3deg);
}
.privacy-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-card div { display: grid; gap: 4px; }
.privacy-card strong { font-size: 13px; }
.privacy-card small { color: #638072; font-size: 10px; line-height: 1.5; }

.image-workbench {
  margin-bottom: 90px;
  padding: 28px;
  border: 1px solid rgba(104, 96, 85, .22);
  border-radius: 28px;
  background: rgba(255, 254, 250, .9);
  box-shadow: 0 24px 70px rgba(59, 51, 40, .09), inset 0 1px #fff;
  backdrop-filter: blur(12px);
}
.workbench-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 2px 2px 24px;
  border-bottom: 1px solid #e2ddd4;
}
.workbench-title > div:first-child > span {
  color: #a49e95;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
}
.workbench-title h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.04em; }
.feature-pills { display: flex; gap: 6px; }
.feature-pills span { padding: 6px 9px; border-radius: 999px; background: #f1eee8; color: #777169; font-size: 9px; font-weight: 700; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 24px; padding-top: 24px; align-items: start; }
.drop-zone {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 24px;
  border: 1.5px dashed #cfc8bd;
  border-radius: 20px;
  background:
    radial-gradient(circle at center, rgba(252, 246, 237, .7), transparent 70%),
    #f8f6f1;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.drop-zone.dragging { border-color: var(--coral); background: #fff5ef; transform: scale(.995); }
.drop-art {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 20px 20px 20px 7px;
  background: #e6efe8;
  color: #39765c;
  transform: rotate(-3deg);
  box-shadow: 8px 8px 0 #f2dfd4;
}
.drop-art svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone h3 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.03em; }
.drop-zone p { margin: 0; color: #89837a; font-size: 12px; }
.drop-zone > small { margin-top: 14px; color: #aaa49b; font-size: 9px; }
.upload-actions { display: flex; gap: 8px; margin-top: 19px; }
.upload-actions button { height: 40px; border-radius: 10px; padding: 0 15px; font-size: 11px; font-weight: 800; cursor: pointer; }
.choose-button { border: 0; background: var(--ink); color: #fff; }
.choose-button:hover { background: #36332f; }
.clipboard-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d5cfc5; background: #fff; }
.clipboard-button:hover { background: #f2efe9; }
.clipboard-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.file-queue { margin-top: 18px; }
.file-queue[hidden] { display: none; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.queue-heading > div { display: flex; align-items: center; gap: 8px; }
.queue-heading strong { font-size: 12px; }
.queue-heading span { padding: 3px 6px; border-radius: 6px; background: #ece8e1; color: #777168; font-size: 9px; }
.queue-heading button { border: 0; background: transparent; color: #918b82; font-size: 10px; cursor: pointer; }
.file-list { display: grid; gap: 8px; }
.file-card { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; padding: 10px; border: 1px solid #e0dad1; border-radius: 14px; background: #fff; }
.file-card.done { border-color: #c9ddcf; background: #fcfffc; }
.file-card.error { border-color: #e7c8c2; }
.file-preview { position: relative; width: 82px; height: 68px; overflow: hidden; border-radius: 9px; background: #e7e3dc; }
.file-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.file-spinner { position: absolute; inset: 50% auto auto 50%; width: 22px; height: 22px; margin: -11px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.file-body { min-width: 0; align-self: center; }
.file-title-row { display: flex; align-items: center; gap: 8px; }
.file-title-row strong { min-width: 0; flex: 1; overflow: hidden; color: #383530; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.remove-file { width: 22px; height: 22px; border: 0; border-radius: 7px; background: transparent; color: #aaa49b; font-size: 16px; cursor: pointer; }
.remove-file:hover { background: #f1eee8; color: #5d5851; }
.file-original { margin: 4px 0 8px; color: #9a948b; font-size: 9px; }
.file-status-row, .file-result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-state { color: #777168; font-size: 9px; }
.file-state.done { color: #2d7c5c; font-weight: 800; }
.file-state.error { color: #c34c3d; }
.output-meta { color: #878178; font-size: 9px; }
.file-result-row { margin-top: 7px; padding-top: 7px; border-top: 1px solid #ece8e2; }
.saving-badge { padding: 3px 6px; border-radius: 6px; background: #e8f3eb; color: #2b7958; font-size: 8px; font-weight: 850; }
.single-download { color: var(--coral-dark); font-size: 9px; font-weight: 850; text-decoration: none; }
.single-download:hover { text-decoration: underline; }

.settings-card { position: sticky; top: 18px; padding: 21px; border-radius: 18px; background: #242320; color: #f7f3ec; box-shadow: 0 15px 35px rgba(36,35,32,.12); }
.settings-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid #403e3a; }
.step-number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #ff8065; color: #242320; font: italic 11px Georgia; }
.settings-heading > div { display: grid; gap: 3px; }
.settings-heading strong { font-size: 13px; }
.settings-heading small { color: #89857e; font-size: 8px; }
.settings-card fieldset { margin: 0; padding: 17px 0; border: 0; border-bottom: 1px solid #403e3a; }
.settings-card legend { display: block; width: 100%; margin-bottom: 10px; padding: 0; color: #ded9d1; font-size: 10px; font-weight: 800; }
.settings-card legend small { margin-left: 4px; color: #76726b; font-weight: 500; }
.format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.format-options label { cursor: pointer; }
.format-options input { position: absolute; opacity: 0; pointer-events: none; }
.format-options span { display: grid; place-items: center; height: 34px; border: 1px solid #484641; border-radius: 8px; color: #8f8b84; font-size: 10px; font-weight: 800; }
.format-options input:checked + span { border-color: #ff8065; background: rgba(255,128,101,.12); color: #ff9b84; }
.setting-note { margin: 8px 0 0; color: #77736c; font-size: 8px; }
.number-input { height: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0 11px; border: 1px solid #4b4944; border-radius: 9px; background: #2d2c29; }
.number-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 750; }
.number-input span { color: #858078; font-size: 9px; }
.size-presets, .dimension-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.size-presets button, .dimension-presets button { border: 1px solid #45433f; border-radius: 7px; padding: 6px 8px; background: transparent; color: #77736c; font-size: 8px; cursor: pointer; }
.size-presets button:hover, .dimension-presets button:hover, .size-presets button.active { border-color: #706d66; color: #ddd8d0; }
.dimension-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 7px; }
.dimension-inputs > i { padding-bottom: 9px; color: #66625d; font-size: 9px; font-style: normal; }
.dimension-inputs label { display: grid; gap: 5px; color: #77736c; font-size: 8px; }
.dimension-inputs label > div { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 35px; padding: 0 8px; border: 1px solid #484641; border-radius: 8px; background: #2d2c29; }
.dimension-inputs input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 10px; }
.dimension-inputs small { color: #6f6b65; font-size: 8px; }
.process-button { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; border: 0; border-radius: 10px; background: #ff8065; color: #242320; font-size: 11px; font-weight: 900; cursor: pointer; }
.process-button:hover:not(:disabled) { background: #ff947d; }
.process-button:disabled { cursor: not-allowed; opacity: .35; }
.process-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.download-all-button { width: 100%; height: 38px; margin-top: 7px; border: 1px solid #4c4944; border-radius: 9px; background: transparent; color: #d6d1ca; font-size: 10px; font-weight: 800; cursor: pointer; }
.download-all-button[hidden] { display: none; }
.settings-message { min-height: 13px; margin: 7px 0 -6px; color: #ff9a86; text-align: center; font-size: 8px; }

.local-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 100px; border: 1px solid #ded8ce; border-radius: 20px; overflow: hidden; background: #ded8ce; }
.local-benefits article { min-height: 170px; position: relative; padding: 25px; background: rgba(247,244,238,.9); }
.local-benefits article > span { position: absolute; right: 20px; top: 18px; color: #b2aca3; font: italic 11px Georgia; }
.local-benefits strong { display: block; margin-top: 43px; font-size: 15px; }
.local-benefits p { max-width: 260px; margin: 8px 0 0; color: #7e7870; font-size: 11px; line-height: 1.65; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; padding: 11px 15px; border-radius: 10px; background: #242320; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 11px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b94b3c; }

@media (max-width: 900px) {
  .image-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 55px; }
  .privacy-card { width: min(360px, 100%); }
  .workspace-grid { grid-template-columns: 1fr; }
  .settings-card { position: static; }
}

@media (max-width: 600px) {
  .image-main { width: calc(100% - 24px); }
  .back-home { font-size: 11px; }
  .image-hero { min-height: 0; padding: 50px 4px 43px; }
  .image-hero h1 { margin-top: 20px; font-size: 43px; }
  .image-hero > div > p { font-size: 13px; }
  .privacy-card { padding: 15px; transform: none; }
  .image-workbench { margin-bottom: 65px; padding: 12px; border-radius: 21px; }
  .workbench-title { align-items: flex-start; padding: 8px 6px 17px; }
  .workbench-title h2 { font-size: 20px; }
  .feature-pills { display: none; }
  .workspace-grid { padding-top: 12px; gap: 12px; }
  .drop-zone { min-height: 275px; padding: 30px 14px; border-radius: 15px; }
  .drop-zone p { max-width: 260px; line-height: 1.6; }
  .file-card { grid-template-columns: 70px minmax(0, 1fr); padding: 8px; }
  .file-preview { width: 70px; height: 64px; }
  .settings-card { padding: 18px; border-radius: 15px; }
  .local-benefits { grid-template-columns: 1fr; margin-bottom: 70px; }
  .local-benefits article { min-height: 145px; }
  .local-benefits strong { margin-top: 30px; }
}
