/* Sarana - private document and horoscope camera/gallery choice */
.ml-image-source{margin:12px 0 16px;padding:16px;border:1px solid #d8b9c8;border-radius:18px;background:linear-gradient(140deg,#fffaf2,#fff0f7);box-shadow:0 6px 20px rgba(114,27,71,.09)}
.ml-image-source-title{font-size:1rem;font-weight:750;color:#692746}
.ml-required{color:#b22a49}
.ml-upload-hint{font-size:.88rem;line-height:1.5;margin:5px 0 10px}
.ml-upload-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.ml-upload-choice{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:45px;margin:0!important;padding:10px 16px;border:1px solid #b46b90;border-radius:12px;background:#fff;color:#702843;font-weight:700!important;box-shadow:0 3px 7px rgba(95,28,52,.11);text-align:center;transition:transform .15s ease,box-shadow .15s ease}
.ml-upload-choice-camera{color:#fff!important;border-color:#842046;background:linear-gradient(145deg,#a22c65,#6b1638)}
.ml-upload-choice:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(95,28,52,.17)}
.ml-upload-choice:focus-within{outline:3px solid #f3abda;outline-offset:2px}
.ml-private-file{position:absolute;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip-path:inset(50%);padding:0!important;border:0!important}
.ml-file-feedback{font-size:.86rem;font-weight:600;color:#763551;overflow-wrap:anywhere}
.ml-file-feedback.ml-upload-error{color:#a11e2c}
.ml-upload-preview{display:block;max-width:240px;width:100%;height:auto;max-height:230px;object-fit:contain;margin:12px 0;border:1px solid #d7c6be;border-radius:12px;background:#fff}
.ml-upload-preview[hidden]{display:none!important}
@media(max-width:550px){.ml-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ml-upload-choice{font-size:.84rem;padding:9px 5px;min-height:52px}.ml-image-source{padding:12px}}


/* Sarana • click/tap-to-upload cards. Existing forms remain functional if JS is disabled. */
.ml-tap-upload-card{
  width:100%;min-height:146px;display:flex!important;align-items:center;gap:15px;
  padding:14px!important;margin:10px 0 3px;text-align:left!important;cursor:pointer;
  border:2px dashed #c88a9e!important;border-radius:20px!important;
  background:linear-gradient(140deg,#fff9f5,#fff0f4)!important;
  color:#70253f!important;box-shadow:none!important;
}
.ml-tap-upload-card:hover{border-color:#8d1d47!important;transform:none!important;background:#fff4f7!important}
.ml-tap-upload-card:focus-visible{outline:3px solid #ae6b86!important;outline-offset:3px}
.ml-tap-upload-card:disabled{opacity:.72;cursor:progress}
.ml-tap-upload-art{width:92px;height:92px;min-width:92px;border-radius:15px;background:#f1dce2;
 display:flex;align-items:center;justify-content:center;color:#872950;font-size:2rem;overflow:hidden}
.ml-tap-upload-preview,.ml-tap-upload-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:13px}
.ml-tap-upload-text{display:flex;flex-direction:column;gap:5px;min-width:0;line-height:1.4}
.ml-tap-upload-text strong{font-size:1rem;font-weight:800;color:#67263f;overflow-wrap:anywhere}
.ml-tap-upload-hint{font-size:.91rem;color:#783d55;font-weight:650}
.ml-tap-upload-help{font-size:.77rem;color:#786c70;line-height:1.55}
.ml-tap-upload-status{margin:5px 0 9px!important;color:#4d725f;font-size:.86rem;font-weight:700;min-height:0}
.ml-tap-upload-status:empty{display:none}.ml-tap-upload-status.is-error{color:#a21f3a}
.ml-tap-original-file-label,.ml-tap-original-submit,.ml-tap-original-avatar,.ml-tap-old-gallery-preview,.ml-tap-old-document-picker{display:none!important}
#ml-photo-stage .photo-control.ml-tap-photo-control{display:block}
.ml-tap-form-ready{min-width:0}
.ml-gallery-slot .ml-tap-upload-card{min-height:165px;flex-direction:column;align-items:stretch;text-align:center!important;gap:8px}
.ml-gallery-slot .ml-tap-upload-art{width:100%;height:118px;min-width:0}
.ml-gallery-slot .ml-tap-upload-text{align-items:center}
.ml-gallery-slot .ml-tap-upload-help{display:none}
.ml-gallery-slot .ml-tap-upload-card img{object-fit:contain;background:#eee6e7}
.ml-document-side .ml-tap-upload-card{min-height:150px}
.ml-horoscope-upload.ml-tap-horoscope-source .ml-upload-actions{display:none!important}
.ml-horoscope-upload [data-ml-private-picker].ml-tap-horoscope-source .ml-upload-actions{display:none!important}
.ml-horoscope-upload .ml-tap-upload-card{margin-top:6px}
@media(max-width:460px){
 .ml-tap-upload-card{min-height:126px;padding:12px!important;gap:12px;border-radius:16px!important}
 .ml-tap-upload-art{width:77px;height:77px;min-width:77px}
 .ml-tap-upload-text strong{font-size:.96rem}
 .ml-tap-upload-hint{font-size:.82rem}
 .ml-tap-upload-help{font-size:.72rem}
}
/* Unified profile photo and album, 2026-11-12. */
#ml-photo-stage .photo-control{display:block!important;width:100%;min-width:0}
#ml-photo-stage .photo-control > div{min-width:0;width:100%}
#ml-photo-stage .ml-tap-upload-card{width:100%!important;max-width:100%;box-sizing:border-box;flex-shrink:0}
#ml-photo-stage .ml-tap-upload-text{flex:1;min-width:0}
#ml-photo-stage .ml-tap-upload-text strong{overflow-wrap:normal;word-break:normal;white-space:normal}
#ml-photo-stage .ml-tap-upload-hint,#ml-photo-stage .ml-tap-upload-help{display:none!important}
#ml-photo-stage #gallery-manager{border:0;box-shadow:none;padding:16px 0;margin:0;background:transparent}
#ml-photo-stage .ml-gallery-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#ml-photo-stage .ml-gallery-slot{min-width:0}
@media(max-width:420px){#ml-photo-stage .ml-gallery-editor{gap:8px}#ml-photo-stage .ml-tap-upload-card{padding:10px!important}}
