:root {
  --ink: #162a21;
  --muted: #4f645a;
  --green: #123f2d;
  --lime: #d4f694;
  --border: #dce7de;
  --paper: #f8faf5;
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: var(--green); }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #4c965b; outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--border); background: #fff; }
.header, .footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 9px; background: var(--green); color: var(--lime); font-size: 24px; letter-spacing: 0; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: 14px; font-weight: 650; }
nav a:hover, .text-links a:hover { text-decoration: underline; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--green); list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: #eaf3e7; }
.mobile-nav nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; display: grid; gap: 2px; min-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 18px 40px #18362324; }
.mobile-nav nav a { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.mobile-nav nav a:hover { background: #eaf3e7; text-decoration: none; }
.skip { position: absolute; left: 12px; top: -100px; padding: 10px; background: white; z-index: 2; }
.skip:focus { top: 8px; }
.hero { text-align: center; padding: 62px 0 33px; }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: #27583b; font-size: 13px; font-weight: 750; text-decoration: none; }
.privacy-note:hover { text-decoration: underline; }
.privacy-note span { display: grid; place-items: center; width: 21px; height: 21px; background: #e4f1df; border-radius: 50%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.03; letter-spacing: -.075em; margin: 13px 0 14px; }
h2 { font-size: clamp(25px, 4vw, 34px); letter-spacing: -.045em; line-height: 1.12; }
p { line-height: 1.65; color: var(--muted); }
.hero p { font-size: 17px; }
.editor { max-width: 900px; margin: auto; border: 1px solid #cbdacc; border-radius: 22px; background: white; overflow: hidden; box-shadow: 0 16px 44px #1836230d; }
.editor-bar, .editor-foot { display: flex; align-items: center; gap: 22px; padding: 15px 23px; font-size: 12px; font-weight: 750; }
.editor-bar { justify-content: space-between; background: var(--green); color: white; }
.editor-bar span:last-child { color: #d1e5d8; font-size: 11px; letter-spacing: .09em; }
.editor-bar i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--lime); }
.editor-body { padding: 20px; }
.drop { min-height: 276px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 1.5px dashed #a9c8aa; border-radius: 15px; background: #f0f7ec; text-align: center; padding: 20px; transition: background .15s; }
.drop.over { background: #e3f5d4; border-color: #386949; }
.upload-icon { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #caddc9; border-radius: 13px; color: #25563b; font-size: 27px; background: #fff; margin-bottom: 5px; }
.drop strong { font-size: 23px; letter-spacing: -.04em; }
.drop > span { color: var(--muted); font-size: 14px; }
button { border: 1px solid transparent; border-radius: 9px; padding: 11px 17px; font-weight: 750; color: white; background: var(--green); }
button:hover { background: #215940; }
button:disabled { opacity: .55; cursor: wait; }
#choose { margin-top: 9px; background: var(--lime); color: #193321; border-color: #b9dc7a; }
#choose:hover { background: #c8ec83; }
.editor-foot { justify-content: center; border-top: 1px solid var(--border); color: #52695a; flex-wrap: wrap; }
.workspace { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.preview-panel { min-width: 0; }
#preview-label { font-weight: 750; margin-bottom: 9px; }
.preview { min-height: 210px; display: grid; place-items: center; border-radius: 12px; padding: 12px; background: repeating-conic-gradient(#e7ebe7 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.preview canvas, .preview img { display: block; max-width: 100%; max-height: 290px; object-fit: contain; }
.file-list { padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow: auto; }
.size-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.size-compare > div { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.size-compare span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.size-compare strong { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; }
.file-list button, .secondary { border-color: var(--border); background: white; color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.file-list button:hover, .file-list button[aria-pressed="true"], .secondary:hover { background: #eaf3e7; }
form { border: 1px solid var(--border); border-radius: 14px; padding: 17px; display: grid; align-content: start; gap: 12px; }
form h2 { font-size: 22px; }
form label { display: block; font-size: 13px; font-weight: 700; }
form input:not([type=checkbox]), form select { width: 100%; margin-top: 4px; }
form input:not([type=checkbox], [type=range]), form select { background: #f9fbf8; border: 1px solid #cad9cc; border-radius: 7px; padding: 8px 9px; color: var(--ink); }
input { accent-color: var(--green); }
.dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkbox { display: flex; align-items: center; gap: 5px; margin: 6px 0 10px; }
#quality-value { float: right; }
.sizes { padding: 10px; background: #eaf3e7; border-radius: 8px; }
#status { padding: 10px 0 0; overflow-wrap: anywhere; }
.section, .prose { max-width: 900px; margin: 49px auto; }
.section h2 { margin-bottom: 17px; }
.steps, .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps > div, .card { padding: 17px; border: 1px solid var(--border); background: white; border-radius: 13px; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; background: #e8f3e1; color: #254c35; border-radius: 8px; font-size: 13px; font-weight: 800; }
.steps h3 { font-size: 17px; margin: 10px 0 3px; letter-spacing: -.03em; }
.steps p, .card p { font-size: 14px; }
.use-cases { padding: 23px; background: #eaf3e7; border-radius: 16px; }
.text-links { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 12px; }
.card { display: block; text-decoration: none; }
.card:hover { border-color: #7ea583; }
.card strong span { float: right; }
.card p { margin-top: 6px; }
@media (min-width: 701px) {
  .cards > :last-child:nth-child(3n + 1) { grid-column: 2; }
}
@media (max-width: 700px) and (min-width: 371px) {
  .cards > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}
details { border-bottom: 1px solid var(--border); padding: 13px 0; }
summary { font-weight: 750; }
details p { margin-top: 8px; }
.prose { max-width: 700px; margin-top: 34px; }
.prose section { margin-bottom: 26px; }
.prose h2 { margin-bottom: 8px; }
.prose p + p { margin-top: 12px; }
.prose .table-wrap { margin: 18px 0 12px; overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.prose table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; }
.prose caption { padding: 13px 16px 10px; text-align: left; font-weight: 750; color: var(--ink); }
.prose th, .prose td { padding: 10px 16px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.5; }
.prose thead th { background: #eaf3e7; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.prose tbody td:first-child { color: var(--ink); font-weight: 650; }
.prose tbody tr:nth-child(even) { background: #fbfdf8; }
.back { font-weight: 750; }
footer { border-top: 1px solid var(--border); margin-top: 54px; background: #eef4eb; }
.footer { padding-block: 19px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 30px); }
  .header, .footer { gap: 12px; align-items: flex-start; flex-direction: column; padding-block: 14px; }
  nav { gap: 10px 16px; }
  .hero { padding: 39px 0 23px; }
  .hero p { font-size: 15px; }
  .workspace, .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-body { padding: 12px; }
  .editor-foot { padding: 12px 8px; gap: 8px 13px; }
  .drop { min-height: 230px; }
  .section { margin-block: 36px; }
}
@media (max-width: 560px) {
  .header { flex-direction: row; align-items: center; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .editor-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .editor-bar span:last-child { white-space: nowrap; }
  .prose .table-wrap { overflow: visible; border: 0; background: none; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; min-width: 0; }
  .prose thead { display: none; }
  .prose caption { display: block; width: 100%; padding: 0 0 10px; }
  .prose tr { padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
  .prose tr + tr { margin-top: 8px; }
  .prose tbody tr:nth-child(even) { background: #fff; }
  .prose td { padding: 2px 0; border: 0; }
  .prose td:first-child { font-size: 15px; }
  .prose td:nth-child(2)::before { content: "Size: "; color: var(--muted); font-weight: 650; }
  .prose td:nth-child(3)::before { content: "Tool: "; color: var(--muted); font-weight: 650; }
}
@media (max-width: 370px) {
  .cards { grid-template-columns: 1fr; }
}
