/* PhotoTools — plain CSS, mobile-first, low-end friendly. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  background: #f6f7f9;
  color: #1c2333;
}
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: #14213d; color: #fff;
}
.brand { font-weight: 700; font-size: 18px; }
.lang-switch select { margin-left: 6px; padding: 4px; border-radius: 6px; }
.privacy-banner {
  background: #e7f6ec; color: #14532d; border-bottom: 2px solid #22c55e;
  padding: 10px 16px; font-weight: 600; text-align: center; font-size: 15px;
}
.tabs { display: flex; gap: 8px; padding: 12px 16px 0; max-width: 880px; margin: 0 auto; }
.tab-btn {
  flex: 1; padding: 12px 8px; border: 1px solid #c9d2e0; background: #fff;
  border-radius: 10px 10px 0 0; font-size: 15px; font-weight: 600; cursor: pointer;
}
.tab-btn.active { background: #14213d; color: #fff; border-color: #14213d; }
main { max-width: 880px; margin: 0 auto; padding: 8px 16px 32px; }
h1 { font-size: 22px; margin: 14px 0 4px; }
.sub { color: #44506a; margin: 0 0 14px; }
.card { background: #fff; border: 1px solid #dde3ec; border-radius: 12px; padding: 16px; }
.field { display: block; margin: 14px 0; }
.field select { width: 100%; padding: 10px; font-size: 16px; border-radius: 8px; border: 1px solid #b9c4d6; margin-top: 6px; }
fieldset.field { border: 1px solid #dde3ec; border-radius: 8px; }
fieldset.field label { margin-right: 14px; }
.note { color: #5a6480; font-size: 13px; }
.pill { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.spec-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.drop {
  border: 2px dashed #93a5c4; border-radius: 12px; padding: 22px; text-align: center;
  cursor: pointer; background: #fbfcfe; margin: 12px 0; font-weight: 600;
}
.drop.dragover { background: #eef4ff; border-color: #3b82f6; }
.drop-icon { font-size: 26px; }
.cropper-host { margin: 12px 0; }
.crop-view {
  position: relative; width: 100%; height: 380px; overflow: hidden;
  background: #22293a; border-radius: 10px; touch-action: none; user-select: none;
}
.crop-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.crop-frame {
  position: absolute; border: 2px solid #fff; outline: 2px solid rgba(20,33,61,.65);
  box-shadow: 0 0 0 9999px rgba(10, 14, 24, 0.45); pointer-events: none;
}
.slider-field input[type="range"] { width: 100%; }
.primary {
  display: inline-block; background: #2563eb; color: #fff; border: 0; border-radius: 10px;
  padding: 13px 20px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none;
  margin-top: 10px;
}
.primary:disabled { background: #94a3b8; cursor: wait; }
.as-link { text-align: center; }
.error { color: #b91c1c; font-weight: 600; min-height: 1em; }
.warning { background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: 10px; color: #7c2d12; }
.result { margin-top: 16px; text-align: center; }
.result img { max-width: 220px; border: 1px solid #dde3ec; border-radius: 6px; }
.result-meta { display: flex; gap: 16px; justify-content: center; margin: 8px 0; font-weight: 600; }
.disclaimer { color: #667085; font-size: 12.5px; margin-top: 16px; }
.preview { max-width: 100%; border-radius: 8px; border: 1px solid #dde3ec; }
progress { width: 100%; height: 14px; }
.compare { position: relative; width: 100%; overflow: hidden; border-radius: 8px; border: 1px solid #dde3ec; }
.compare img { display: block; width: 100%; }
.compare-after { position: absolute; inset: 0; }
.compare-after canvas { width: 100%; height: 100%; display: block; }
.site-footer { text-align: center; color: #667085; font-size: 13px; padding: 18px; }
.type-row label { margin-right: 18px; font-weight: 600; }
input[type="color"] { vertical-align: middle; margin-left: 8px; }
@media (max-width: 560px) {
  .crop-view { height: 300px; }
  h1 { font-size: 19px; }
}
