:root { font-family: Inter, system-ui, sans-serif; color: #0f172a; background: #f8fafc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { padding: 1.2rem 1.5rem; background: linear-gradient(90deg, #1d4ed8, #0f172a); color: #fff; }
.topbar h1 { margin: 0; }
.topbar-title-link,.topbar-title-link:visited{color:#fff;text-decoration:none;}
.version-tag { font-size: .7em; }
.layout { width: 100%; max-width: min(96vw, 980px); margin: 1rem auto; padding: 0 .5rem 1rem; }
.card { background:#fff; border:1px solid #e2e8f0; border-radius:.75rem; padding:1.25rem; box-shadow:0 10px 30px rgba(15,23,42,.05);} 
.drop-zone { margin-top: .8rem; border: 2px dashed #94a3b8; border-radius: .65rem; padding: 1.2rem; text-align: center; background: #f8fafc; color:#475569; cursor: pointer; }
.drop-zone.is-dragover { border-color: #2563eb; background: #eff6ff; }
.crop-grid { margin-top: .8rem; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr); gap: .6rem .9rem; align-items: end; }
.crop-grid label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
input[type='number'] { border:1px solid #cbd5e1; border-radius:.45rem; padding:.45rem; }
input[type='range'] { width: 100%; }
.checkbox-row { margin-top: .8rem; display: flex; align-items: center; gap: .45rem; font-weight: 600; }
canvas { margin-top:.9rem; max-width:100%; border:1px solid #cbd5e1; border-radius:.4rem; }
.actions { margin-top: .9rem; }
.btn { border:0;border-radius:.5rem;cursor:pointer;padding:.7rem .95rem;font-weight:600;background:#2563eb;color:#fff; }
.status { margin:.75rem 0 0; color:#1e40af; font-weight:600; }
.status.error { color:#b91c1c; }
.report-bug-hint a{ color:#1d4ed8; font-weight:600; text-decoration:none; }
.subtle-text{ color:#64748b; }
.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; }

@media (max-width: 640px) {
  .crop-grid { grid-template-columns: 1fr; }
}


.related-tools-footer {
  margin: 2rem auto 3rem;
  max-width: 1100px;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(120, 120, 120, 0.35);
}

.related-tools-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.related-tools-footer p {
  margin: 0 0 0.75rem;
}

.related-tools-footer ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 1.5rem;
}

.related-tools-footer a {
  text-decoration: none;
}

.related-tools-footer a:hover {
  text-decoration: underline;
}
