@font-face {
  font-family:Inter;
  src:url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap
}
:root {
  --ink:#0c1425;
  --muted:#65718a;
  --blue:#075bfa;
  --border:#e3e7ef;
  --green:#087b22;
  --soft:#f4f7fc;
  --focus:#083eb9
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  color:var(--ink);
  background:#fff;
  font-family:Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  font-size:16px;
  line-height:1.5
}
button,input,select {
  font:inherit;
  color:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
a {
  color:var(--blue)
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
button img {
  pointer-events:none
}
img {
  display:block
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:20;
  background:#fff;
  padding:12px
}
.skip-link:focus {
  top:10px
}
.site-header {
  height:78px;
  border-bottom:1px solid #d9dee8
}
.header-inner {
  height:100%;
  max-width:1600px;
  margin:auto;
  padding:0 4%;
  display:flex;
  align-items:center
}
.brand {
  width:212px;
  flex-shrink:0
}
.main-nav {
  display:flex;
  height:100%;
  gap:24px
}
.nav-link {
  display:flex;
  align-items:center;
  padding:0 9px;
  text-decoration:none;
  color:#56627a;
  font-size:19px;
  font-weight:600;
  border-bottom:2px solid transparent
}
.nav-link.active {
  color:var(--blue);
  border-color:var(--blue)
}
.language-control {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:9px;
  color:#4a566c
}
.icon {
  width:25px;
  height:25px
}
.icon.small {
  width:16px;
  height:16px
}
.language-control select {
  border:0;
  appearance:none;
  background:none;
  padding:8px 0;
  cursor:pointer;
  font-weight:500;
  max-width:74px
}
.page-shell {
  max-width:1600px;
  padding:48px 4% 0;
  margin:auto
}
.intro {
  margin-bottom:28px
}
.intro h1 {
  font-size:clamp(34px,3.5vw,52px);
  line-height:1.15;
  letter-spacing:-1.8px;
  font-weight:750;
  margin:8px 0 12px
}
.intro>p {
  font-size:23px;
  color:var(--muted);
  margin:0;
  letter-spacing:-.4px
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,2.05fr) minmax(335px,1fr);
  gap:34px
}
.preview-column {
  min-width:0
}
.image-stage {
  position:relative;
  width:100%;
  aspect-ratio:1.235;
  background:#eef2f7;
  overflow:hidden;
  border-radius:9px;
  isolation:isolate;
  --split:50%
}
.preview-image {
  width:100%;
  height:100%;
  object-fit:contain;
  user-select:none;
  pointer-events:none
}
.optimized-layer {
  position:absolute;
  inset:0;
  clip-path:inset(0 0 0 var(--split))
}
.preview-label {
  position:absolute;
  top:20px;
  padding:8px 15px;
  background:rgba(14,30,52,.72);
  color:#fff;
  border-radius:6px;
  font-size:17px;
  font-weight:500;
  pointer-events:none
}
.original-label {
  left:20px
}
.optimized-label {
  right:20px
}
.comparison-line {
  position:absolute;
  left:var(--split);
  top:0;
  bottom:0;
  width:2px;
  transform:translateX(-1px);
  background:#fff;
  pointer-events:none;
  box-shadow:0 0 4px #0002
}
.comparison-handle {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 12px #0002
}
.comparison-handle img {
  width:29px;
  height:29px;
  opacity:.6
}
.comparison-range {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
  z-index:2;
  touch-action:pan-y
}
.image-stage:focus-within {
  outline:3px solid var(--focus);
  outline-offset:4px
}
.image-stage.is-example>.preview-image,.image-stage.is-example .optimized-layer {
  filter:brightness(.7)
}
.is-example .preview-label,.is-example .comparison-line {
  display:none
}
.drop-prompt {
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:0;
  background:#071a2829;
  color:#fff;
  text-align:center;
  padding:24px;
  transition:background .15s
}
.drop-prompt:hover {
  background:#071a2855
}
.drop-icon {
  display:grid;
  place-items:center;
  background:#fff;
  width:64px;
  height:64px;
  border-radius:16px;
  margin-bottom:5px
}
.drop-icon img {
  width:33px;
  height:33px;
  filter:invert(28%) sepia(100%) saturate(5000%) hue-rotate(215deg)
}
.drop-prompt strong {
  font-size:28px;
  letter-spacing:-.5px
}
.drop-prompt>span:not(.drop-icon) {
  font-size:16px
}
.drop-prompt .file-support {
  opacity:.85;
  font-size:13px!important;
  margin-top:6px
}
.image-stage.dragging {
  outline:4px solid var(--blue);
  outline-offset:3px
}
.processing-overlay {
  position:absolute;
  inset:0;
  z-index:5;
  background:#f4f7fce8;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  font-weight:600
}
.processing-overlay img {
  width:27px;
  height:27px
}
.spin {
  animation:spin 1s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.preview-caption {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 16px;
  color:var(--muted);
  font-size:14px;
  margin-top:11px
}
.preview-caption p {
  margin:0
}
.filename {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px
}
.privacy-note {
  display:flex;
  align-items:center;
  gap:7px;
  color:#65718a;
  font-size:13px;
  margin-top:12px
}
.privacy-note img {
  width:17px;
  height:17px
}
.error-message {
  padding:12px 15px;
  background:#fff1f0;
  border:1px solid #ffd0cb;
  color:#9d2115;
  border-radius:7px;
  font-size:14px;
  margin-top:14px
}
.controls {
  position:relative;
  border-left:1px solid var(--border);
  padding-left:33px;
  margin-top:-74px;
  padding-top:48px;
  min-width:0
}
.control-section {
  border-bottom:1px solid var(--border);
  padding:0 0 26px;
  margin-bottom:22px
}
.control-title {
  display:block;
  font-size:20px;
  letter-spacing:-.4px;
  font-weight:700;
  margin:0 0 9px
}
.limit-input {
  display:flex;
  align-items:center;
  height:51px;
  border:1px solid #bcc5d5;
  border-radius:7px;
  overflow:hidden
}
.limit-input:focus-within {
  outline:3px solid #075bfa30;
  border-color:var(--blue)
}
.limit-input input {
  width:100%;
  min-width:0;
  padding:11px 16px;
  border:0;
  outline:none!important;
  font-size:20px;
  background:transparent
}
.limit-input select {
  height:100%;
  border:0;
  border-left:1px solid var(--border);
  background:#fff;
  padding:0 9px;
  color:#536078;
  min-width:70px;
  cursor:pointer
}
.helper {
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  margin:6px 0 0
}
.quick-limits {
  display:flex;
  gap:7px;
  margin-top:12px
}
.quick-limits button {
  background:#fff;
  border:1px solid var(--border);
  border-radius:5px;
  font-size:12px;
  padding:4px 10px;
  min-height:30px;
  color:#56627a
}
.quick-limits button.selected {
  color:#064dc9;
  background:#eef5ff;
  border-color:#c0d6ff
}
.quick-limits button:hover {
  border-color:#8baef4
}
.section-toggle {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:none;
  border:0;
  width:100%;
  padding:0;
  margin-bottom:9px;
  text-align:left;
  font-size:19px;
  letter-spacing:-.4px
}
.section-toggle strong {
  font-weight:700
}
.section-toggle img {
  width:20px;
  height:20px;
  transition:transform .15s
}
.section-toggle[aria-expanded=true] img {
  transform:rotate(180deg)
}
.optional {
  font-weight:400;
  color:#46516a
}
.check-row {
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  font-size:18px;
  min-height:30px
}
.check-row input {
  width:24px;
  height:24px;
  accent-color:var(--blue);
  margin:0;
  flex-shrink:0;
  cursor:pointer
}
.indent {
  margin-left:36px
}
.dimensions-panel {
  margin-top:18px
}
.dimension-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  font-size:13px;
  color:#56627a
}
.pixel-input {
  display:flex;
  align-items:center;
  border:1px solid #c3ccda;
  border-radius:6px;
  margin-top:5px;
  overflow:hidden
}
.pixel-input input {
  width:100%;
  min-width:0;
  border:0;
  padding:9px 8px;
  background:#fff;
  outline-offset:-3px
}
.pixel-input input:disabled {
  background:#f4f6f9;
  color:#8993a6
}
.pixel-input>span {
  padding-right:9px
}
.small-check {
  font-size:13px;
  margin-top:10px;
  gap:9px
}
.small-check input {
  width:17px;
  height:17px
}
.format-control {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  margin-top:15px
}
.format-control select {
  padding:6px 9px;
  border:1px solid #c3ccda;
  border-radius:5px;
  background:#fff
}
.result-section {
  border:0;
  margin:0;
  padding:0
}
.result-table {
  margin:0 0 16px
}
.result-table>div {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:10px;
  align-items:center;
  padding:7px 0;
  border-bottom:1px solid var(--border);
  min-height:41px
}
.result-table dt {
  font-size:15px;
  color:#526078
}
.result-table dd {
  font-size:19px;
  margin:0;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums
}
.status-message {
  display:flex;
  align-items:center;
  gap:12px;
  background:#edf9ef;
  border-radius:7px;
  min-height:51px;
  padding:11px 15px;
  color:var(--green);
  font-size:16px;
  margin-bottom:18px
}
.status-message img {
  width:27px;
  height:27px;
  flex-shrink:0;
  filter:invert(30%) sepia(93%) saturate(900%) hue-rotate(86deg)
}
.status-message.neutral {
  background:#f1f5fb;
  color:#526078
}
.status-message.neutral img {
  filter:none;
  opacity:.65
}
.status-message.warning {
  background:#fff5df;
  color:#805200
}
.status-message.warning img {
  filter:invert(30%) sepia(86%) saturate(900%) hue-rotate(4deg)
}
.result-warning {
  margin:-7px 0 14px;
  color:#805200
}
.resize-to-fit {
  background:#fff7e6;
  border:1px solid #e3c682;
  border-radius:6px;
  font-size:14px;
  width:100%;
  padding:10px;
  margin-bottom:14px;
  color:#805200
}
.primary-button,.secondary-button {
  width:100%;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  min-height:68px;
  font-size:21px;
  font-weight:600;
  transition:background .15s
}
.primary-button {
  background:var(--blue);
  color:#fff;
  border:1px solid var(--blue);
  box-shadow:0 1px 3px #075bfa14
}
.primary-button:hover:not(:disabled) {
  background:#004bd9
}
.primary-button img {
  width:28px;
  height:28px;
  filter:brightness(0) invert(1)
}
.secondary-button {
  background:#fff;
  border:1px solid #b6c0d2;
  font-size:18px;
  font-weight:450;
  margin-top:17px;
  min-height:56px
}
.secondary-button:hover {
  background:#f5f8fd
}
.save-hint {
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin:11px 0 0
}
.help-section {
  margin-top:78px;
  padding-top:38px;
  border-top:1px solid var(--border);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10%
}
.help-section h2 {
  font-size:25px;
  letter-spacing:-.7px;
  margin:0 0 10px
}
.help-section p {
  font-size:15px;
  color:var(--muted);
  margin:0;
  line-height:1.7
}
.faq-list details {
  border-bottom:1px solid var(--border);
  padding:13px 0
}
.faq-list details:first-child {
  padding-top:0
}
.faq-list summary {
  cursor:pointer;
  font-size:15px;
  font-weight:600
}
.faq-list details p {
  padding:10px 0;
  font-size:14px
}
.site-footer {
  margin-top:45px;
  border-top:1px solid var(--border);
  padding:24px 0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:12px
}
.site-footer p {
  margin:0
}
.noscript-message {
  position:fixed;
  inset:auto 0 0;
  background:#fff3dc;
  color:#725000;
  padding:16px;
  margin:0;
  text-align:center;
  z-index:20
}
.intro h1 {
  font-weight:800;
  letter-spacing:-1.1px
}
.workspace {
  grid-template-columns:minmax(0,1.9fr) minmax(335px,1fr)
}
.limit-section {
  padding-bottom:18px;
  margin-bottom:18px
}
.dimensions-section {
  padding-bottom:23px;
  margin-bottom:20px
}
@media(min-width:1151px) {
  .intro h1 {
    font-size:54px
  }
}
@media(max-width:1150px) {
  .brand {
    width:120px
  }
  .workspace {
    grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
    gap:25px
  }
  .controls {
    padding-left:24px;
    margin-top:0;
    padding-top:0
  }
  .intro>p {
    font-size:19px
  }
  .intro h1 {
    font-size:42px
  }
  .image-stage {
    aspect-ratio:1/1.12
  }
  .check-row {
    font-size:15px
  }
  .section-toggle {
    font-size:17px
  }
  .result-table dd {
    font-size:16px
  }
  .result-table dt {
    font-size:13px
  }
  .primary-button {
    font-size:18px;
    min-height:60px
  }
  .preview-label {
    font-size:13px;
    padding:7px 10px
  }
  .help-section {
    margin-top:50px
  }
}
@media(max-width:760px) {
  .site-header {
    height:65px
  }
  .header-inner {
    padding:0 20px
  }
  .brand {
    width:0
  }
  .main-nav {
    gap:15px
  }
  .nav-link {
    font-size:15px;
    padding:0 5px
  }
  .language-control {
    gap:5px;
    font-size:13px
  }
  .language-control .icon {
    width:21px;
    height:21px
  }
  .language-control .small {
    width:13px;
    height:13px
  }
  .page-shell {
    padding:28px 20px 0
  }
  .intro {
    margin-bottom:20px
  }
  .intro h1 {
    font-size:32px;
    letter-spacing:-1.1px;
    line-height:1.16;
    margin:0 0 10px;
    max-width:420px
  }
  .intro>p {
    font-size:16px;
    line-height:1.5;
    letter-spacing:-.2px;
    max-width:450px
  }
  .workspace {
    display:flex;
    flex-direction:column;
    gap:23px
  }
  .image-stage {
    aspect-ratio:1.4;
    border-radius:8px;
    max-height:400px
  }
  .drop-prompt {
    gap:7px;
    padding:18px
  }
  .drop-prompt strong {
    font-size:22px
  }
  .drop-prompt>span:not(.drop-icon) {
    font-size:13px
  }
  .drop-icon {
    width:46px;
    height:46px;
    border-radius:12px;
    margin-bottom:4px
  }
  .drop-icon img {
    width:26px;
    height:26px
  }
  .drop-prompt .file-support {
    font-size:11px!important;
    margin-top:4px
  }
  .preview-label {
    top:12px;
    font-size:12px;
    padding:6px 10px
  }
  .original-label {
    left:12px
  }
  .optimized-label {
    right:12px
  }
  .comparison-handle {
    width:48px;
    height:48px
  }
  .comparison-handle img {
    width:24px;
    height:24px
  }
  .preview-caption {
    font-size:12px;
    line-height:1.5;
    margin-top:9px
  }
  .privacy-note {
    font-size:11px;
    margin-top:7px
  }
  .controls {
    border:0;
    padding:0;
    margin:0
  }
  .control-section {
    margin-bottom:18px;
    padding-bottom:19px
  }
  .control-title {
    font-size:18px
  }
  .limit-input {
    height:49px
  }
  .limit-input input {
    font-size:18px
  }
  .helper {
    font-size:12px
  }
  .quick-limits {
    margin-top:10px
  }
  .quick-limits button {
    min-height:44px;
    padding:4px 13px
  }
  .section-toggle {
    font-size:17px
  }
  .check-row {
    font-size:16px;
    gap:10px
  }
  .check-row input {
    width:21px;
    height:21px
  }
  .indent {
    margin-left:31px
  }
  .small-check {
    font-size:13px
  }
  .small-check input {
    width:17px;
    height:17px
  }
  .result-section {
    margin:0;
    padding:0
  }
  .result-table>div {
    min-height:36px;
    padding:5px 0;
    grid-template-columns:1fr 1fr
  }
  .result-table dt {
    font-size:13px
  }
  .result-table dd {
    font-size:16px;
    text-align:right
  }
  .status-message {
    font-size:14px;
    min-height:48px;
    margin-bottom:13px
  }
  .primary-button {
    min-height:57px;
    font-size:18px
  }
  .primary-button img {
    width:24px;
    height:24px
  }
  .secondary-button {
    min-height:49px;
    font-size:15px;
    margin-top:11px
  }
  .save-hint {
    font-size:11px
  }
  .help-section {
    margin-top:42px;
    padding-top:25px;
    display:block
  }
  .help-section h2 {
    font-size:22px
  }
  .help-section p {
    font-size:14px
  }
  .faq-list {
    margin-top:25px
  }
  .site-footer {
    display:block;
    margin-top:30px;
    padding:20px 0
  }
  .result-warning {
    font-size:12px
  }
}
.primary-slot {
  min-height:68px
}
.quick-limits {
  flex-wrap:wrap
}
#quickLimits {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px
}
#quickLimits button {
  padding-left:5px;
  padding-right:5px;
  min-height:44px
}
.image-stage.is-example>.preview-image,.image-stage.is-example .optimized-layer {
  filter:none
}
.is-example .preview-label,.is-example .comparison-line {
  display:block
}
.image-stage.is-example .drop-prompt {
  inset:auto 20px 20px;
  max-width:420px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  column-gap:12px;
  row-gap:2px;
  padding:16px 18px;
  background:#ffffffed;
  color:var(--ink);
  text-align:left;
  border:1px solid #ffffffb3;
  border-radius:9px;
  box-shadow:0 4px 20px #0c14251f
}
.image-stage.is-example .drop-prompt:hover {
  background:#fff
}
.is-example .drop-prompt .drop-icon {
  grid-column:1;
  grid-row:1/4;
  width:44px;
  height:44px;
  margin:0;
  background:#edf4ff;
  border-radius:10px
}
.is-example .drop-prompt .drop-icon img {
  width:27px;
  height:27px
}
.is-example .drop-prompt strong {
  grid-column:2;
  font-size:19px;
  letter-spacing:0
}
.is-example .drop-prompt>span:not(.drop-icon) {
  grid-column:2;
  font-size:13px;
  color:#536078
}
.is-example .drop-prompt .file-support {
  margin:0!important;
  font-size:11px!important
}
@media(max-width:760px) {
  .image-stage.is-example .drop-prompt {
    inset:auto 12px 12px;
    padding:10px 12px;
    grid-template-columns:32px minmax(0,1fr);
    column-gap:9px
  }
  .is-example .drop-prompt .drop-icon {
    width:32px;
    height:32px;
    border-radius:8px
  }
  .is-example .drop-prompt .drop-icon img {
    width:22px;
    height:22px
  }
  .is-example .drop-prompt strong {
    font-size:15px
  }
  .is-example .drop-prompt>span:not(.drop-icon) {
    font-size:11px
  }
  .is-example .drop-prompt .file-support {
    display:none
  }
}
#settingsForm {
  display:flex;
  flex-direction:column
}
.limit-section {
  order:0
}
.dimensions-section {
  order:1
}
.result-section {
  order:2
}
body[data-mode=resize] .dimensions-section {
  order:0
}
body[data-mode=resize] .limit-section {
  order:1
}
body[data-mode=resize] .dimensions-panel {
  margin-top:0
}
body[data-mode=resize] .output-settings-grid {
  grid-template-columns:1fr
}
body[data-mode=resize] .dimension-fields {
  font-size:14px
}
body[data-mode=resize] .pixel-input input {
  font-size:20px;
  padding:10px 12px;
  height:49px
}
.language-control select {
  max-width:150px;
  min-width:0;
  text-overflow:ellipsis
}
.output-settings-grid .control-title {
  white-space:normal!important
}
.dimension-fields label {
  min-width:0
}
.language-control {
  min-width:0
}
.intro>p {
  max-width:1200px
}
@media(max-width:760px) {
  .language-control select {
    max-width:90px;
    font-size:12px
  }
  .main-nav {
    gap:12px;
    flex-shrink:0
  }
  .nav-link {
    font-size:14px;
    padding-left:3px;
    padding-right:3px
  }
  .language-control {
    gap:4px
  }
  .language-control .small {
    display:none
  }
  .language-control select {
    padding-right:1px
  }
  .header-inner {
    gap:8px
  }
  .dimension-fields input {
    font-size:18px
  }
}
@media(max-width:370px) {
  .site-header {
    height:auto
  }
  .header-inner {
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:0
  }
  .main-nav {
    height:47px;
    order:2;
    width:100%
  }
  .language-control {
    height:40px;
    order:1
  }
  .brand {
    display:none
  }
}
.output-settings-grid {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:12px;
  align-items:start
}
.output-settings-grid .control-title {
  font-size:18px;
  letter-spacing:-.3px;
  white-space:nowrap
}
.output-format-select {
  width:100%;
  height:51px;
  min-width:0;
  border:1px solid #bcc5d5;
  border-radius:7px;
  background:#fff;
  padding:0 12px;
  font-size:18px;
  cursor:pointer
}
.output-format-select:focus-visible {
  outline-offset:3px
}
@media(max-width:760px) {
  .output-settings-grid .control-title {
    font-size:16px
  }
  .output-format-select {
    height:49px;
    font-size:16px
  }
  .output-settings-grid .limit-input input {
    padding-left:11px;
    padding-right:5px
  }
}
html[lang=ko] {
  word-break:keep-all;
  overflow-wrap:break-word
}
@media(max-width:760px) {
  .primary-slot {
    min-height:57px
  }
  body.has-mobile-action {
    padding-bottom:82px
  }
  .has-mobile-action .primary-button {
    position:fixed;
    left:20px;
    right:20px;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:calc(100% - 40px);
    z-index:10;
    box-shadow:0 0 0 9px #ffffffed,0 4px 20px #0c142530
  }
}
@media(max-width:370px) {
  .output-settings-grid {
    grid-template-columns:1fr
  }
  .is-example .drop-prompt>span:not(.drop-icon) {
    display:none
  }
  .is-example .drop-prompt .drop-icon {
    grid-row:1
  }
  .preview-label {
    max-width:calc(50% - 20px)
  }
}
.output-settings-grid {
  align-items:stretch
}
.output-settings-grid>div {
  display:flex;
  flex-direction:column
}
.output-settings-grid .control-title {
  flex:1
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important
  }
}

/* Each layer has its own background so transparent results never reveal the original. */
.optimized-layer { background-color:#eef2f7; }
.image-stage.has-alpha,.image-stage.has-alpha .optimized-layer {
  background-color:#fff;
  background-image:linear-gradient(45deg,#e9edf3 25%,transparent 25%),linear-gradient(-45deg,#e9edf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf3 75%),linear-gradient(-45deg,transparent 75%,#e9edf3 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}
.background-setting {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:12px;
  font-size:14px;
}
.background-setting select {
  min-height:44px;
  padding:8px 12px;
  border:1px solid #bcc5d5;
  border-radius:7px;
  background:#fff;
}
.result-section .error-message { margin:0 0 16px; }
.resize-to-fit { min-height:48px; }
.comparison-range { touch-action:pan-y pinch-zoom; }
.comparison-handle { border:1px solid #d5ddea; }
@media(max-width:760px) {
  .has-mobile-action .primary-button { font-size:16px; gap:9px; min-height:57px; }
  .editing-settings.has-mobile-action .primary-button { position:static; width:100%; box-shadow:none; }
  body.has-mobile-action { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  input[type=number],select { font-size:16px; }
  .language-control select { min-height:44px; }
  .primary-button { padding:10px 14px; }
  .processing-overlay { padding:18px; text-align:center; font-size:14px; }
  .is-example .drop-prompt strong { font-size:14px; }
}

.error-message { scroll-margin-block:100px; }

.brand {
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  width:212px;
  flex-shrink:0;
  color:var(--ink);
  text-decoration:none;
  font-size:32px;
  font-weight:800;
  letter-spacing:-1.2px;
  line-height:1;
  min-height:44px;
}
.brand-name { display:inline-flex; }
.brand-accent { color:var(--blue); }
.brand-description {
  display:block;
  max-width:100%;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
  line-height:1.35;
}
.footer-brand strong { color:var(--ink); font-weight:700; }
.footer-brand .brand-tagline { margin-top:5px; }
@media(max-width:1150px) and (min-width:761px) {
  .brand { width:212px; font-size:29px; }
}
@media(max-width:760px) {
  .site-header { height:117px; }
  .header-inner {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:70px 47px;
    gap:0 12px;
    padding:0 20px;
  }
  .brand {
    display:inline-flex;
    grid-column:1;
    grid-row:1;
    width:auto;
    font-size:27px;
    letter-spacing:-1px;
  }
  .language-control { grid-column:2; grid-row:1; height:auto; order:initial; }
  .main-nav { grid-column:1 / -1; grid-row:2; height:47px; width:100%; order:initial; }
  .nav-link { padding:0 5px; }
  .footer-brand { overflow-wrap:anywhere; }
}

/* The selected photo keeps the original comparison; this list manages the whole batch. */
.batch-panel { border:1px solid var(--border); border-radius:9px; margin-top:20px; padding:16px; min-width:0; }
.batch-header { display:flex; flex-wrap:wrap; align-items:center; gap:10px; justify-content:space-between; }
.batch-header h2 { margin:0; font-size:17px; letter-spacing:-.3px; }
.batch-toolbar,.batch-row-actions { display:flex; flex-wrap:wrap; gap:6px; }
.batch-panel button { min-height:44px; border:1px solid #d4dcea; border-radius:6px; background:#fff; padding:8px 11px; font-size:13px; }
.batch-panel button:hover:not(:disabled) { background:#f2f6ff; }
.batch-toolbar button:first-child { color:var(--blue); border-color:#b9cef9; }
.batch-panel>.helper { margin:9px 0; }
.batch-progress-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.batch-progress-row p { margin:4px 0; font-size:13px; color:var(--muted); }
.batch-panel progress { display:block; width:100%; height:6px; margin:10px 0; accent-color:var(--blue); }
.batch-list { list-style:none; padding:0; margin:12px 0 0; max-height:360px; overflow:auto; overscroll-behavior-y:contain; }
.batch-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; border-top:1px solid var(--border); padding:7px 0; }
.batch-list .batch-select { display:block; text-align:left; border-color:transparent; width:100%; min-width:0; padding:8px; }
.batch-select[aria-pressed=true] { border-color:#b8cffb; background:#f0f5ff; }
.batch-name { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--ink); font-weight:600; }
.batch-row-status { display:block; color:var(--muted); font-size:12px; margin-top:4px; overflow-wrap:anywhere; }
.batch-list li[data-status=done] .batch-row-status { color:var(--green); }
.batch-list li[data-status=error] .batch-row-status,.batch-list li[data-status=oversize] .batch-row-status { color:#956000; }
.batch-remove { color:#65718a; }
.batch-error>.preview-image,.batch-error .optimized-layer,.batch-error .preview-label,.batch-error .comparison-line { visibility:hidden; }
.batch-error .processing-overlay { color:#9d2115; }
@media(max-width:760px) {
  .batch-panel { margin-top:17px; padding:12px; }
  .batch-list li { grid-template-columns:minmax(0,1fr); gap:2px; }
  .batch-row-actions { justify-content:flex-end; }
  .batch-list { max-height:340px; }
  .batch-header h2 { font-size:16px; }
}

.zip-download { display:block; text-align:center; margin-top:12px; padding:8px; min-height:44px; font-size:14px; cursor:pointer; }

.has-batch .image-stage { aspect-ratio:1.9; max-height:380px; }
@media(max-width:760px) { .has-batch .image-stage { aspect-ratio:1.4; max-height:320px; } }

.batch-settings-link { display:inline-flex; align-items:center; min-height:44px; font-size:13px; padding:7px 0; }
#settingsForm { scroll-margin-top:20px; }

.main-nav { min-width:0; overflow-x:auto; scrollbar-width:thin; }
.nav-link { white-space:nowrap; flex-shrink:0; }
.background-section { order:0; }
.background-section .helper { margin:10px 0; font-size:14px; line-height:1.65; }
#bgModelProgress { width:100%; height:7px; accent-color:var(--blue); margin-top:10px; }
#bgRetry { min-height:44px; font-size:15px; margin-top:14px; }
body[data-mode=background] .preview-image { object-fit:contain; }
@media(max-width:760px) {
  .main-nav { gap:10px; }
  .nav-link { font-size:13px; padding:0 4px; }
}


/* A compact header and editing row keep the photo as the main workspace. */
.site-header { height:74px; position:relative; z-index:25; }
.header-inner { display:flex; align-items:center; height:100%; padding:0 4%; gap:14px; }
.brand { width:170px; min-width:0; font-size:29px; flex-shrink:0; }
.brand-description { font-size:10px; }
.main-nav { display:flex; flex:1; min-width:0; height:100%; gap:2px; overflow-x:auto; scrollbar-width:thin; }
.nav-link { padding:8px 9px; min-height:44px; white-space:nowrap; font-size:13px; border:0; border-radius:6px; align-self:center; justify-content:center; }
.nav-link.active { background:#edf4ff; color:var(--blue); }
.nav-link:hover { background:#f4f7fc; }
.language-control { margin-left:auto; gap:5px; flex-shrink:0; }
.language-control select { width:110px; font-size:13px; }
.language-control .icon { width:21px; height:21px; }
.language-control .icon.small { display:none; }
.mobile-tools-toggle { display:none; }
.page-shell { padding-top:28px; }
.intro { margin-bottom:20px; }
.intro h1 { font-size:34px; margin:0 0 8px; line-height:1.2; }
.intro>p { font-size:16px; line-height:1.6; letter-spacing:0; }
.editor-preview-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0 0 10px; padding:0; background:none; border:0; }
.crop-quick,.redact-quick { display:flex; align-items:center; flex:1; min-width:0; gap:7px; }
.redact-quick>select,.redact-quick #redactEffectSlot { flex:1; min-width:0; }
.editor-preview-toolbar select { height:42px; max-width:190px; width:100%; min-width:0; border:1px solid #cbd4e2; background:#fff; padding:7px 9px; border-radius:6px; font-size:13px; color:var(--ink); }
.editor-view-switch { display:flex; gap:6px; margin-left:auto; }
.editor-view-switch [aria-pressed=true] { display:none; }
.editor-button,.editor-button-grid button,.editor-view-switch button,#finishLasso { min-height:42px; padding:8px 12px; border:1px solid #c9d4e6; border-radius:6px; background:#fff; color:var(--ink); font-size:13px; cursor:pointer; }
.editor-view-switch button { color:var(--blue); font-weight:600; }
.editor-button:hover,.editor-button-grid button:hover,.editor-view-switch button:hover { background:#f2f6ff; }
.editor-button-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:12px 0; }
.editor-button-grid button[aria-pressed=true] { color:var(--blue); border-color:var(--blue); background:#eff5ff; }
.editor-settings select,.editor-settings input[type=text],.editor-settings input[type=number],#bgColor,.continue-panel select { display:block; width:100%; min-height:44px; padding:9px 10px; border:1px solid #cbd4e2; border-radius:6px; background:#fff; color:var(--ink); font-size:14px; }
.editor-settings .control-title { margin:12px 0 8px; }
.selection-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.selection-fields label,.editor-field { display:grid; gap:7px; font-size:13px; color:var(--muted); }
.editor-field { margin:14px 0; }
.editor-field input[type=file] { max-width:100%; font-size:12px; }
.editor-field input::file-selector-button { padding:10px; background:#eef4ff; color:var(--blue); border:1px solid #b7ccef; border-radius:6px; cursor:pointer; }
.color-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0; font-size:14px; }
.color-row input[type=color] { width:58px; min-height:44px; padding:3px; border:1px solid #cbd4e2; border-radius:6px; background:white; }
.editor-range { display:grid; grid-template-columns:80px minmax(0,1fr) 42px; align-items:center; gap:10px; margin:16px 0; font-size:14px; }
.editor-range input { width:100%; min-height:32px; accent-color:var(--blue); }
.editor-range output { font-size:12px; text-align:right; }
.precision-controls { margin:14px 0; border:1px solid var(--border); border-radius:6px; padding:10px; font-size:13px; }
.precision-controls summary { cursor:pointer; font-weight:600; min-height:28px; display:list-item; }
.selection-canvas { position:absolute; inset:0; z-index:12; width:100%; height:100%; object-fit:contain; background:#e8edf3; touch-action:none; cursor:crosshair; }
.selecting-area .preview-label,.selecting-area .comparison-line,.selecting-area .comparison-range,.selecting-area .drop-prompt { visibility:hidden; }
.selecting-area .processing-overlay { display:none; }
.selection-canvas:focus-visible { outline:3px solid var(--focus); outline-offset:-3px; }
body[data-mode=watermark] .selection-canvas { cursor:move; }
.canvas-text-editor { position:absolute; z-index:18; min-height:42px; min-width:80px; padding:3px 6px; border:2px solid var(--blue); border-radius:4px; background:#ffffffed; color:var(--ink); font-size:16px; box-shadow:0 2px 10px #0002; }
.region-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:8px 0; font-size:12px; color:var(--muted); }
.region-actions button { min-height:40px; padding:7px 10px; border:1px solid #d5ddea; border-radius:6px; background:white; font-size:12px; }
.region-list { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.region-chip { display:flex; border:1px solid #c1d3f0; border-radius:6px; overflow:hidden; background:white; }
.region-chip button { min-height:40px; padding:7px 10px; font-size:12px; border:0; background:transparent; }
.region-chip button[aria-pressed=true] { background:#eaf2ff; color:var(--blue); }
.region-chip button:last-child { min-width:40px; font-size:20px; border-left:1px solid #e0e7f3; }
.processing-overlay.is-updating { inset:auto 12px 12px auto; width:auto; height:auto; padding:8px 12px; border-radius:7px; background:#ffffffed; font-size:12px; box-shadow:0 1px 8px #0001; pointer-events:none; }
.processing-overlay.is-updating img { width:16px; height:16px; }
.continue-panel { margin-top:14px; border-top:1px solid var(--border); padding-top:10px; font-size:12px; }
.continue-panel summary { cursor:pointer; min-height:34px; color:var(--muted); }
.continue-actions { display:flex; gap:7px; margin-top:6px; }
.continue-actions select { min-width:0; flex:1; }
.continue-panel .helper { margin:8px 0 0; font-size:12px; line-height:1.5; }
.batch-panel.single-image { padding:0; margin-top:8px; border:0; }
.single-image .batch-header h2,.single-image .batch-help,.single-image>#batchHelp,.single-image #clearImages { display:none; }
.mark-color-presets { display:flex; gap:6px; margin:8px 0 12px; }
.mark-color-presets button { min-height:40px; padding:7px 14px; border:1px solid #cbd4e2; border-radius:6px; background:white; font-size:12px; }
.site-footer { display:block; padding:20px 0; font-size:12px; color:var(--muted); }
body[data-mode=crop] .output-settings-grid,body[data-mode=convert] .output-settings-grid,body[data-mode=redact] .output-settings-grid,body[data-mode=watermark] .output-settings-grid { grid-template-columns:1fr; }
@media(max-width:1180px) {
 .site-header { height:66px; }
 .header-inner { display:flex; padding:0 20px; gap:10px; }
 .brand { width:130px; font-size:27px; }
 .mobile-tools-toggle { display:flex; align-items:center; justify-content:space-between; gap:7px; min-height:42px; min-width:0; max-width:230px; flex:1; padding:8px 11px; border:1px solid #d4deed; border-radius:6px; background:#fff; font-size:13px; color:var(--blue); }
 .mobile-tools-toggle span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .mobile-tools-toggle img { width:16px; height:16px; flex-shrink:0; }
 .main-nav { display:none; position:absolute; inset:calc(100% + 4px) 20px auto; height:auto; width:auto; padding:10px; background:white; border:1px solid #d9e2ef; border-radius:9px; box-shadow:0 10px 30px #172e4b26; }
 .tools-open .main-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
 .main-nav .nav-link { display:flex; width:100%; white-space:normal; padding:10px; font-size:13px; margin:0; border:0; }
}
@media(max-width:600px) {
 .site-header { height:62px; }
 .header-inner { padding:0 16px; gap:8px; }
 .brand { width:104px; font-size:24px; }
 .brand-description { font-size:8.8px; white-space:nowrap; margin-top:3px; }
 .language-control { gap:0; margin-left:0; }
 .language-control .icon { display:none; }
 .language-control select { width:60px; min-height:42px; font-size:11px; padding:0; }
 .mobile-tools-toggle { padding:7px; font-size:12px; }
 .main-nav { left:16px; right:16px; }
 .page-shell { padding:18px 16px 0; }
 .intro { margin-bottom:14px; }
 .intro h1 { font-size:27px; letter-spacing:-.7px; }
 .intro>p { font-size:14px; line-height:1.5; }
 .editor-preview-toolbar { gap:6px; margin-bottom:8px; flex-wrap:nowrap; }
 .editor-preview-toolbar select { font-size:12px; padding:7px; }
 .crop-quick,.redact-quick { gap:6px; }
 .editor-view-switch button { font-size:12px; padding:8px 10px; }
 .continue-actions { flex-wrap:wrap; }
 .editor-button-grid button { font-size:12px; }
}

.image-stage.selecting-area:focus-within { outline:none; }

@media(max-width:600px) { .editor-settings input[type=text],.editor-settings input[type=number],.dimension-fields input,.limit-input input { font-size:16px; } }

/* Phone navigation: all tools remain visible in two balanced rows. */
@media(max-width:760px) {
 .site-header { height:auto; }
 .header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:62px auto; height:auto; gap:0; padding:0 16px 10px; }
 .header-inner .brand { grid-column:1; grid-row:1; width:auto; align-self:center; }
 .header-inner .language-control { grid-column:2; grid-row:1; justify-self:end; margin-left:0; }
 .header-inner .mobile-tools-toggle { display:none; }
 .header-inner .main-nav { display:grid; grid-column:1 / -1; grid-row:2; grid-template-columns:repeat(12,minmax(0,1fr)); gap:5px; position:static; inset:auto; width:100%; height:auto; min-width:0; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; overflow:visible; }
 .header-inner .main-nav .nav-link { grid-column:span 3; width:100%; min-width:0; min-height:44px; margin:0; padding:6px 3px; font-size:12px; line-height:1.2; white-space:normal; overflow-wrap:anywhere; text-align:center; align-self:stretch; border:1px solid #e3e9f2; background:#fff; }
 .header-inner .main-nav .nav-link:nth-child(n+5) { grid-column:span 4; }
 .header-inner .main-nav .nav-link.active { color:var(--blue); background:#edf4ff; border-color:#abc9ff; }
 .header-inner .main-nav .nav-link:hover { background:#f3f7fe; }
}


/* Optional analytics never blocks the photo editor. */
.analytics-banner { max-width:1220px; margin:12px auto 0; padding:14px 20px; border:1px solid #dce5f1; border-radius:12px; background:#f7faff; }
.analytics-banner p { margin:0 0 10px; font-size:14px; }
.analytics-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.analytics-actions button { flex:1 1 150px; min-height:44px; padding:10px 14px; border:1px solid #c4d2e5; border-radius:8px; background:#fff; color:#17243b; cursor:pointer; font:inherit; font-size:14px; }
.analytics-actions button[aria-pressed=true] { border-color:var(--blue); background:#edf4ff; }
button.analytics-link { padding:8px 4px; border:0; background:transparent; color:#51627a; text-decoration:underline; cursor:pointer; font:inherit; font-size:13px; min-height:44px; }
.analytics-actions .analytics-link { flex:0 1 auto; }
.analytics-dialog { overflow-wrap:anywhere; width:min(560px,calc(100% - 32px)); max-height:85vh; max-height:85dvh; padding:24px; border:1px solid #dce5f1; border-radius:16px; color:var(--ink); box-sizing:border-box; }
.analytics-dialog::backdrop { background:rgb(12 23 42 / .4); }
.analytics-dialog h2 { margin:0 0 16px; font-size:22px; }
.analytics-dialog p { font-size:14px; line-height:1.65; }
.analytics-dialog a { color:#125bd8; font-size:14px; }
.analytics-preview { max-width:100%; padding:12px; margin:10px 0 24px; border:1px dashed #91a4be; font-size:12px; overflow-wrap:anywhere; }
.analytics-preview li { padding:5px 0; }
@media(max-width:760px) { .analytics-banner { margin:10px 16px 0; padding:12px; } .analytics-actions button { flex-basis:120px; } .analytics-dialog { padding:20px; } }
