
:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#172033}
*{box-sizing:border-box}
.photo-tool{max-width:100%;display:grid;gap:16px}
.photo-panel{border:1px solid #dbe3ee;border-radius:12px;padding:16px;background:#fff}
.photo-row{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.photo-field{display:grid;gap:6px;min-width:140px;flex:1}
.photo-field label{font-size:13px;font-weight:650}
.photo-field input,.photo-field select{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px;background:#fff;color:#172033;min-height:42px}
.photo-btn{border:0;border-radius:8px;padding:11px 16px;background:#087ea4;color:white;font-weight:700;cursor:pointer}
.photo-btn:disabled{opacity:.5;cursor:not-allowed}
.photo-btn.secondary{background:#e8eef5;color:#172033}
.photo-note{font-size:13px;color:#526174;line-height:1.5}
.photo-error{padding:11px 13px;border-radius:8px;background:#fff1f0;color:#9b1c1c;border:1px solid #fecaca}
.photo-success{padding:11px 13px;border-radius:8px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.photo-preview{width:100%;max-height:520px;object-fit:contain;background:repeating-conic-gradient(#f1f5f9 0% 25%,#fff 0% 50%) 50%/20px 20px;border-radius:8px;display:block}
.photo-canvas-wrap{position:relative;overflow:hidden;background:#111827;border-radius:10px;touch-action:none}
.photo-canvas-wrap canvas{display:block;max-width:100%;height:auto;touch-action:none}
.photo-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.photo-stat{padding:10px;background:#f5f8fc;border-radius:8px;font-size:13px}
@media(max-width:560px){.photo-panel{padding:12px}.photo-row{display:grid;grid-template-columns:1fr}.photo-field{min-width:0}}
