:root { color-scheme: light; font-family: system-ui, sans-serif; color: #182f25; background: #f0f4ed; --accent: #265945; --line: #d3dfd4; --muted: #4f655b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .19em; }
button, select, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #55876d; outline-offset: 3px; }
.shell { width: min(calc(100% - 36px), 1160px); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); min-height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; font-weight: 750; text-decoration: none; }
.brand img { border-radius: 7px; }
main { padding: clamp(28px, 4vw, 53px) 0 20px; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.065em; }
.intro { margin: 14px 0 25px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(246px, 290px) minmax(0, 1fr); align-items: start; gap: 13px; }
.controls, .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px; min-width: 0; }
.drop { position: relative; cursor: pointer; display: grid; text-align: center; gap: 4px; padding: 16px 5px; background: #ebf4ea; border: 1px dashed #729783; border-radius: 10px; }
.drop span, .secondary { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within,.drop.active { outline: 3px solid #55876d; outline-offset: 3px; }
.example { border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 9px 0; }
#filename { margin: 0 0 6px; }
.field { display: block; font-weight: 690; margin: 10px 0; }
select { display: block; width: 100%; font-weight: 400; color: inherit; background: white; border: 1px solid #aebfb1; border-radius: 7px; margin-top: 5px; padding: 8px; }
.primary,.download { width: 100%; display: block; border-radius: 8px; padding: 9px 12px; margin-top: 10px; font-weight: 750; text-align: center; }
.primary { background: var(--accent); color: white; border: 1px solid var(--accent); }
.primary:disabled { background: #e7eee7; color: var(--muted); border-color: #e7eee7; cursor: default; }
.download { background: #eaf4e9; color: var(--accent); border: 1px solid #c4d9c9; text-decoration: none; }
#status { margin: 8px 0 0; min-height: 1.2em; }
#status.error { color: #982c36; }
.compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.stage { position: relative; display: grid; place-items: center; height: clamp(205px, 26vw, 370px); border-radius: 9px; overflow: hidden; background: repeating-conic-gradient(#eaf1e9 0 25%,#f5f8f4 0 50%) 0 0 / 18px 18px; }
.stage p { margin: 8px; padding: 8px 10px; border-radius: 6px; background: #f5f8f4; color: var(--muted); font-size: 13px; text-align: center; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#metrics { margin: 9px 0 0; }
footer { display: flex; flex-wrap: wrap; gap: 15px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.info { max-width: 770px; line-height: 1.6; }
.info h1 { font-size: 42px; }
.info section { margin: 24px 0; }
@media (max-width: 735px) {
  .workspace { grid-template-columns: minmax(0,1fr); }
  .stage { height: clamp(145px, 33vw, 260px); }
}
