/* cropper.css - dialog for assets/js/cropper.js. Self-contained (works on the public site and in admin). */
.crp-lock { overflow: hidden; }
.crp { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(5, 16, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.crp[hidden] { display: none; }
.crp * { box-sizing: border-box; }
.crp-box { width: min(980px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 18px; overflow: hidden; background: #0f1a16; color: #e8f2ed; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .1); }
.crp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.crp-head strong { font-size: 1rem; }
.crp-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.crp-x:hover { background: rgba(255, 255, 255, .18); }
.crp-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 0; }
.crp-stage { position: relative; min-height: min(62vh, 560px); background: repeating-conic-gradient(#16231e 0% 25%, #121d19 0% 50%) 0 0 / 22px 22px; touch-action: none; }
.crp-stage canvas { display: block; position: absolute; inset: 0; touch-action: none; }
.crp-load { position: absolute; inset: 0; display: grid; place-items: center; color: #9db8ac; font-size: .9rem; }
.crp-load[hidden] { display: none; }
.crp-side { padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: auto; border-left: 1px solid rgba(255, 255, 255, .08); }
.crp-lbl { margin-top: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7f9a8e; }
.crp-prev { display: grid; place-items: center; min-height: 120px; padding: 10px; border-radius: 12px; background: #0a120f; border: 1px solid rgba(255, 255, 255, .08); }
.crp-prev canvas { max-width: 100%; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.crp-dim { font-size: .78rem; color: #9db8ac; text-align: center; }
.crp-ratios { display: flex; flex-wrap: wrap; gap: 6px; }
.crp-r, .crp-rot button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #e8f2ed; font: 600 .8rem/1 inherit; cursor: pointer; }
.crp-r:hover, .crp-rot button:hover { background: rgba(255, 255, 255, .12); }
.crp-r.on { background: #10b981; border-color: #10b981; color: #04120d; }
.crp-rot { display: flex; gap: 6px; }
.crp-tip { margin: 8px 0 0; font-size: .75rem; line-height: 1.5; color: #7f9a8e; }
.crp-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .08); background: #0c1612; }
.crp-sp { flex: 1; }
.crp-btn { height: 42px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font: 700 .9rem/1 inherit; cursor: pointer; }
.crp-btn.primary { background: linear-gradient(135deg, #10b981, #059669); color: #04120d; }
.crp-btn.primary:hover { filter: brightness(1.08); }
.crp-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .18); color: #e8f2ed; }
.crp-btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.crp button:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
@media (max-width: 760px) {
  .crp { padding: 0; align-items: end; }
  .crp-box { max-height: 100dvh; border-radius: 18px 18px 0 0; width: 100%; }
  .crp-body { grid-template-columns: 1fr; overflow: auto; }
  .crp-stage { min-height: 300px; height: 52vh; }
  .crp-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .crp-prev { min-height: 90px; }
  .crp-foot { flex-wrap: wrap; } .crp-foot .crp-btn { flex: 1 1 auto; }
}
