:root {
  font-family:'DM Sans',system-ui,sans-serif;
  color:#20372b;
  background:#f2f4ef;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  --green:#173d34;
  --muted:#5d6c62;
  --line:#dce4da
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-width:320px
}
button,input,select {
  font:inherit
}
a {
  color:var(--green)
}
[hidden] {
  display:none!important
}
button,a,input,select,summary {
  touch-action:manipulation
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.dropzone:focus-visible {
  outline:3px solid #739b7e;
  outline-offset:4px
}
.topbar {
  max-width:1160px;
  margin:auto;
  padding:20px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.brand {
  display:inline-flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:var(--green);
  font:800 18px 'Manrope',sans-serif;
  letter-spacing:-.04em
}
.brand-mark {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  background:var(--green);
  color:#e9efe4;
  border-radius:9px;
  font-size:21px
}
.topbar nav {
  display:flex;
  align-items:center;
  gap:24px;
  font-size:12px
}
.topbar nav a {
  text-decoration:none
}
.privacy-note {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted)
}
.privacy-dot {
  width:6px;
  height:6px;
  background:#578567;
  border-radius:50%;
  box-shadow:0 0 0 3px #e2ebdf
}
.page {
  width:min(1160px,calc(100% - 48px));
  margin:auto
}
.intro {
  padding:28px 0 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.eyebrow {
  margin:0 0 8px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.17em;
  color:#5d7a62
}
h1,h2,h3 {
  font-family:'Manrope',sans-serif
}
h1 {
  margin:0;
  font-size:clamp(28px,3.8vw,44px);
  font-weight:700;
  letter-spacing:-.055em;
  line-height:1.18
}
h1 span {
  color:#6d896b
}
.intro-copy {
  margin:10px 0 0;
  max-width:650px;
  font-size:14px;
  line-height:1.6;
  color:var(--muted)
}
.studio-badge {
  display:flex;
  align-items:center;
  gap:8px;
  padding:16px 20px;
  background:#e5ebdb;
  color:#577343;
  border:1px solid #d4dfca;
  border-radius:14px;
  font:700 25px 'Manrope',sans-serif;
  transform:rotate(-4deg)
}
.studio-badge span {
  font-size:12px;
  border-left:1px solid #bacbab;
  border-right:1px solid #bacbab;
  padding:0 10px
}
.converter {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(350px,1fr);
  border:1px solid #d8e1d6;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 35px #183d3410
}
.image-workspace {
  padding:24px;
  background:#fbfcf9;
  border-right:1px solid var(--line)
}
.export-workspace {
  padding:24px
}
.step-label {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px
}
.step-label h2 {
  margin:0;
  font-size:15px;
  letter-spacing:-.02em
}
.step-number {
  display:grid;
  place-items:center;
  flex:none;
  width:26px;
  height:26px;
  border-radius:8px;
  background:#e6edde;
  color:#456649;
  font-size:12px;
  font-weight:700
}
.step-hint {
  margin-left:auto;
  font-size:11px;
  color:var(--muted)
}
.dropzone {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:300px;
  border:1.5px dashed #b9cbb3;
  border-radius:12px;
  background:radial-gradient(ellipse at 50% 45%,#edf3e6,transparent 70%),#f5f8f1;
  cursor:pointer;
  text-align:center;
  padding:24px;
  transition:background .15s,border-color .15s
}
.dropzone:hover,.dropzone.is-dragging {
  border-color:#5f8364;
  background:#ebf3e5
}
.dropzone input,.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  clip-path:inset(50%);
  border:0
}
.upload-icon {
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin-bottom:8px;
  border-radius:17px;
  background:#e0eacf;
  color:#50713d;
  box-shadow:0 4px 14px #63805012
}
.upload-icon svg {
  width:32px;
  height:32px
}
.drop-title {
  font:700 19px 'Manrope',sans-serif;
  letter-spacing:-.04em
}
.drop-copy {
  font-size:13px;
  color:var(--muted)
}
.browse-link {
  color:#385b36;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px
}
.file-types {
  margin-top:15px;
  max-width:330px;
  font-size:10px;
  line-height:1.8;
  color:#64765c
}
.file-card {
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff
}
.preview-wrap {
  grid-column:1 / -1;
  height:254px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background-color:#f6f6f2;
  background-image:linear-gradient(45deg,#e8ece5 25%,transparent 25%),linear-gradient(-45deg,#e8ece5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8ece5 75%),linear-gradient(-45deg,transparent 75%,#e8ece5 75%);
  background-size:16px 16px;
  background-position:0 0,0 8px,8px -8px,-8px 0;
  overflow:hidden
}
.preview-wrap img {
  width:100%;
  height:100%;
  object-fit:contain
}
.file-meta {
  min-width:0;
  display:grid;
  gap:4px
}
.file-name {
  font-weight:700;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.file-details {
  color:var(--muted);
  font-size:11px
}
.remove-file {
  border:1px solid var(--line);
  border-radius:8px;
  background:#f7f9f3;
  width:32px;
  height:32px;
  color:#56704f;
  cursor:pointer;
  font-size:22px
}
.status {
  margin:12px 0 0;
  min-height:20px;
  font-size:12px;
  line-height:1.5;
  color:var(--muted)
}
.status[data-state=success] {
  color:#326e48
}
.status[data-state=error] {
  color:#a33528
}
.image-insight {
  display:flex;
  align-items:start;
  gap:12px;
  margin-top:18px;
  padding:16px;
  background:#edf2e7;
  border:1px solid #e1e8d8;
  border-radius:10px
}
.insight-icon {
  color:#658244;
  font-size:22px
}
.image-insight h3 {
  margin:0 0 5px;
  font-size:13px
}
.image-insight p {
  margin:0;
  color:#5a7050;
  font-size:12px;
  line-height:1.6
}
.privacy-details {
  margin-top:14px
}
.privacy-details p {
  font-size:12px;
  line-height:1.6;
  color:var(--muted)
}
summary {
  font-size:12px;
  cursor:pointer;
  color:#486641;
  font-weight:600
}
fieldset {
  margin:0;
  padding:0;
  border:0
}
.treatment-options {
  display:grid;
  gap:8px
}
.choice {
  display:flex;
  align-items:start;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer
}
.choice:has(input:checked) {
  border-color:#749a6e;
  background:#f2f7eb;
  box-shadow:0 0 0 1px #749a6e
}
.choice input {
  margin:3px 0 0;
  accent-color:var(--green)
}
.choice>span {
  display:grid;
  gap:5px
}
.choice strong {
  font-size:13px;
  font-weight:700
}
.choice small {
  margin-left:5px;
  font-size:9px;
  color:#466b39;
  background:#dfeace;
  border-radius:4px;
  padding:3px 5px
}
.choice>span>span {
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}
.trace-settings {
  margin-top:12px
}
.trace-settings label,.field-label {
  display:block;
  font-size:11px;
  font-weight:700;
  margin-bottom:7px
}
.trace-settings p {
  margin:7px 0 0;
  color:#7b613b;
  font-size:11px;
  line-height:1.5
}
select {
  width:100%;
  min-height:39px;
  background:#fafbf7;
  border:1px solid #d8e1d3;
  border-radius:7px;
  color:#3d5743;
  padding:8px 10px;
  font-size:12px
}
.divider {
  height:1px;
  margin:20px 0;
  background:var(--line)
}
.format-picker {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.format-picker label {
  position:relative;
  cursor:pointer
}
.format-picker input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0
}
.format-picker span {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:12px 7px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:11px;
  color:#5d6b61
}
.format-picker b {
  font-family:'Manrope',sans-serif;
  font-size:16px;
  color:#6c8255
}
.format-picker label:first-of-type b {
  color:#a97232
}
.format-picker label:nth-of-type(2) b {
  font-size:10px;
  color:#647ba0
}
.format-picker input:checked+span {
  border-color:#698667;
  background:#f0f5e8;
  box-shadow:0 0 0 1px #698667
}
.format-picker input:focus-visible+span {
  outline:3px solid #739b7e;
  outline-offset:3px
}
.output-panel {
  margin-top:15px
}
.output-description {
  margin:10px 0 0;
  font-size:12px;
  color:var(--muted);
  line-height:1.6
}
.download-button {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  border:0;
  border-radius:8px;
  padding:10px 15px;
  margin-top:15px;
  background:var(--green);
  color:#f5f7eb;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s
}
.download-button:hover:not(:disabled) {
  background:#2e5948
}
.download-button:disabled {
  opacity:.4;
  cursor:not-allowed
}
.download-button span {
  font-size:18px
}
.export-note {
  margin:10px 0 0;
  font-size:10px;
  line-height:1.5;
  color:#6c7f63
}
.field-label output {
  float:right;
  color:#68834e
}
input[type=range] {
  width:100%;
  accent-color:var(--green)
}
#local-setup {
  margin-top:12px;
  background:#f5f7f0;
  border:1px solid var(--line);
  padding:12px;
  border-radius:9px
}
#helper-guide ol {
  margin:10px 0;
  padding-left:18px;
  font-size:12px;
  line-height:1.6;
  color:var(--muted)
}
#helper-guide li {
  margin-bottom:7px
}
#helper-guide p {
  font-size:11px;
  color:var(--muted)
}
.bridge-download {
  font-weight:700
}
.bridge-connection {
  margin-top:10px
}
.bridge-status {
  margin:0 0 8px;
  font-size:11px;
  color:var(--muted);
  line-height:1.5
}
.bridge-status[data-state=success] {
  color:#326e48
}
.bridge-refresh {
  border:1px solid #ccd9c6;
  border-radius:5px;
  padding:6px 10px;
  background:white;
  color:#446940;
  cursor:pointer;
  font-size:11px;
  font-weight:700
}
.assist-notice {
  margin-top:12px;
  border:1px solid #cbdbbd;
  border-radius:8px;
  padding:12px;
  background:#edf5e5
}
.assist-notice p {
  margin:0;
  font-size:12px;
  line-height:1.5
}
.assist-actions {
  display:flex;
  gap:8px;
  margin-top:10px
}
.assist-button {
  border:0;
  background:var(--green);
  color:#fff;
  border-radius:6px;
  padding:8px 12px;
  font-size:12px;
  cursor:pointer
}
.assist-secondary {
  background:#dfe8d5;
  color:var(--green)
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:20px 0;
  font-size:11px;
  color:#67785e
}
.page-footer a {
  text-decoration:none
}
@media(min-width:1500px) {
  .page {
    padding-top:12px
  }
  .preview-wrap {
    height:300px
  }
  .dropzone {
    min-height:345px
  }
}
@media(max-width:1208px) {
  .topbar {
    margin:0 24px
  }
}
@media(max-width:850px) {
  .converter {
    grid-template-columns:minmax(0,1fr) minmax(320px,1fr)
  }
  .image-workspace,.export-workspace {
    padding:18px
  }
  .dropzone {
    padding:16px
  }
  .drop-title {
    font-size:17px
  }
  .studio-badge {
    display:none
  }
  .choice small {
    display:block;
    margin:5px 0 0;
    width:max-content
  }
  .choice strong {
    display:block
  }
}
@media(max-width:680px) {
  .topbar {
    margin:0 16px;
    padding:16px 0
  }
  .topbar nav {
    gap:12px
  }
  .privacy-note {
    display:none
  }
  .brand {
    font-size:16px
  }
  .page {
    width:calc(100% - 32px)
  }
  .intro {
    padding:22px 0 18px
  }
  .intro-copy {
    font-size:13px
  }
  .converter {
    grid-template-columns:1fr;
    border-radius:13px
  }
  .image-workspace {
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .dropzone {
    min-height:210px
  }
  .preview-wrap {
    height:220px
  }
  .image-insight {
    padding:12px;
    margin-top:12px
  }
  .choice small {
    display:inline;
    margin-left:5px
  }
  .format-picker span {
    padding:13px 8px
  }
  .page-footer {
    font-size:10px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
