: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);}
.dropzone {
  margin-top: .8rem;
  border: 2px dashed #94a3b8;
  background: #f8fafc;
  border-radius: .65rem;
  padding: 1.2rem;
  text-align: center;
  color: #475569;
  cursor: pointer;
}
.dropzone p { margin: .2rem 0; }
.dropzone.is-drag-over { border-color: #2563eb; background: #eff6ff; }
.crop-grid { margin-top: .8rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: .6rem; }
.crop-grid label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
input, select { border:1px solid #cbd5e1; border-radius:.45rem; padding:.45rem; }
.comparison-grid {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .8rem;
}
.preview-panel {
  margin: 0;
  padding: .7rem;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  background: #f8fafc;
}
.preview-panel figcaption {
  margin-bottom: .45rem;
  font-weight: 700;
  color: #1e3a8a;
}
canvas { width: 100%; height: auto; border:1px solid #cbd5e1; border-radius:.4rem; background: #fff; }
.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; }


.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;
}
