/* Ryadom: legacy consent layer + native top-layer mobile image editor */
.ry-locked body{overflow:hidden!important}
.ry-consent-backdrop{position:fixed;z-index:2147483647;inset:0;background:rgba(35,34,29,.7);display:flex;justify-content:center;align-items:center;padding:12px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#3b3c34}
.ry-consent-dialog{background:#faf8f3;border-radius:16px;width:min(100%,475px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.25);box-sizing:border-box}
.ry-consent-dialog h2{font-size:25px;line-height:1.25;font-family:Georgia,serif;font-weight:400;margin:6px 0 12px}
.ry-kicker{font-size:9px;letter-spacing:.16em;color:#978977;font-weight:700}
.ry-consent-intro{font-size:13px;line-height:1.55;color:#746d60;margin:0 0 16px}
.ry-consent-policy{border:1px solid #dfd9ca;border-radius:10px;background:#f2f0e8;margin:10px 0 18px}
.ry-consent-policy summary{font-size:13px;padding:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ry-policy-text{white-space:pre-wrap;font:12px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;max-height:35vh;overflow:auto;padding:0 15px 16px;margin:0;color:#434438}
.ry-consent-checkbox{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;margin-bottom:13px;cursor:pointer}
.ry-consent-checkbox input{width:19px;height:19px;accent-color:#a9705c;flex:none;margin-top:1px}
.ry-consent-error{color:#b34838;font-size:12px;min-height:0}
.ry-consent-confirm,.ry-editor-save{border:0;border-radius:9px;padding:14px 16px;background:#ab705c;color:white;font-size:15px;font-weight:600;text-align:center;text-decoration:none;display:block;width:100%;box-sizing:border-box;cursor:pointer}
.ry-consent-confirm:disabled,.ry-editor-save:disabled{opacity:.5;cursor:not-allowed}
.ry-consent-note{margin:12px 0 0;font-size:11px;line-height:1.5;color:#898172}
/* Native dialog enters browser's top layer. It never inherits stacking/clipping from the profile modal. */
dialog.ry-photo-dialog,
dialog.ry-photo-dialog[open]{
  position:fixed!important;z-index:2147483647!important;
  inset:0!important;left:0!important;top:0!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;overflow:hidden!important;
  width:100%!important;max-width:none!important;
  height:100%!important;height:100dvh!important;max-height:none!important;
  color:#36382f;background:#faf8f3;font-family:system-ui,-apple-system,Segoe UI,sans-serif;
  box-sizing:border-box;box-shadow:none;
}
dialog.ry-photo-dialog::backdrop{background:rgba(30,29,27,.75)}
.ry-photo-dialog-inner{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0}
.ry-photo-editor-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(13px + env(safe-area-inset-top,0px)) 18px 13px;border-bottom:1px solid #e8e3d8;background:#faf8f3;box-sizing:border-box}
.ry-photo-editor-header h2{font:normal 23px/1.25 Georgia,serif;margin:0}
.ry-editor-close{border:0;background:transparent;color:#676657;font-size:31px;line-height:1;min-width:40px;min-height:40px;cursor:pointer}
.ry-photo-editor-content{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 18px 18px}
.ry-editor-help{font-size:13px;line-height:1.5;color:#777164;margin:0 0 13px}
.ry-photo-stage{display:flex;justify-content:center;align-items:center;width:100%;height:auto;min-height:180px;max-height:min(57dvh,550px);overflow:hidden;background:#ece9e0;border-radius:12px}
.ry-photo-dialog .ry-crop-canvas{width:100%;height:auto;display:block;object-fit:contain;max-height:min(57dvh,550px);touch-action:none;user-select:none;cursor:grab;background:#eee9e0}
.ry-photo-dialog .ry-crop-canvas:active{cursor:grabbing}
.ry-photo-editor-controls{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:16px;margin:16px 0 0}
.ry-photo-editor-controls label{font-size:12px;display:flex;flex-direction:column;gap:8px;color:#5f6255}
.ry-photo-editor-controls input,.ry-photo-editor-controls select{min-height:36px;width:100%;box-sizing:border-box;accent-color:#a9705c}
.ry-auto-save-note{color:#777164;font-size:12px;line-height:1.45}
.ry-photo-editor-footer{flex:0 0 auto;display:flex;gap:12px;align-items:center;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8e3d8;background:#faf8f3;box-shadow:0 -4px 20px rgba(0,0,0,.05)}
.ry-editor-cancel{min-height:48px;padding:10px 16px;flex:0 0 auto;background:white;border:1px solid #d8cabe;border-radius:9px;color:#65574b;font-size:14px;cursor:pointer}
.ry-photo-editor-footer .ry-editor-save{flex:1;min-height:48px}
@media(max-width:380px){.ry-consent-dialog{padding:16px}.ry-photo-editor-controls{grid-template-columns:1fr}.ry-photo-stage,.ry-photo-dialog .ry-crop-canvas{max-height:45dvh}}

.ry-photo-restriction{margin:14px 0 4px;color:#a85043;font-size:12px;line-height:1.5}

.ry-policy-link{width:100%;display:block;padding:12px;margin:18px 0;border:1px solid #ded7c8;border-radius:10px;background:#f6f4ee;color:#796451;font:13px/1.3 system-ui,-apple-system,sans-serif;text-align:center;cursor:pointer}
.ry-policy-view[open]{position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;background:#faf8f3;color:#38392f;font-family:system-ui,-apple-system,sans-serif}
.ry-policy-view::backdrop{background:rgba(25,25,25,.65)}
.ry-policy-view-head{padding:calc(12px + env(safe-area-inset-top,0px)) 18px 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6e0d6;flex:0 0 auto}
.ry-policy-view-head h2{font:normal 24px Georgia,serif;margin:0}
.ry-policy-view-text{overflow:auto;padding:16px 18px calc(16px + env(safe-area-inset-bottom,0px));white-space:pre-wrap;flex:1 1 auto;min-height:0;font:13px/1.55 system-ui,-apple-system,sans-serif}
