/* Страница «Фото на документы» (/foto-na-dokumenty). */
  .drop-zone {
    display: block; border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 40px 20px; text-align: center; background: var(--surface); cursor: pointer;
  }
  .drop-zone:hover { border-color: var(--accent); }
  .drop-zone input { display: none; }
  .drop-zone .hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
  .secondary-btn {
    display: inline-block; padding: 11px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer;
    text-decoration: none; text-align: center;
  }
  .secondary-btn:disabled, .submit-btn:disabled { opacity: .5; cursor: default; }
  .docs-tips { margin: 8px 0 20px; padding-left: 20px; line-height: 1.8; }
  .bg-choice { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; font-size: 14px; }
  .bg-choice label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
  .photo-box { position: relative; margin-top: 16px; display: inline-block; max-width: 100%; }
  .photo-box canvas { display: block; max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
  .photo-remove {
    position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .62); color: #fff; font-size: 22px; line-height: 34px; text-align: center; cursor: pointer; padding: 0;
  }
  .row-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .row-actions > * { flex: 1 1 200px; text-align: center; text-decoration: none; }
  #authGate, #noCreditsGate { margin-top: 20px; }
  .hidden { display: none !important; }

  /* Обрезка под документ */
  #cropBlock { margin-top: 28px; }
  #cropBlock select { width: 100%; max-width: 560px; }
  .crop-grid { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
  .crop-stage { flex: 1 1 320px; max-width: 520px; }
  .crop-stage canvas { display: block; width: 100%; height: auto; border-radius: var(--radius); touch-action: none; cursor: ns-resize; }
  .crop-side { flex: 1 1 220px; }
  .crop-preview { display: block; max-width: 180px; width: 100%; height: auto; border: 1px solid var(--border); background: #fff; }
  .crop-checks { margin: 12px 0; font-size: 14px; line-height: 1.7; }
  .crop-checks .row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }
  .crop-checks .ok { color: #3ddc97; }
  .crop-checks .bad { color: #ff8a7a; }
  .crop-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
  .crop-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .crop-actions .submit-btn, .crop-actions .secondary-btn { text-align: center; text-decoration: none; }
