.image-crop-dialog{width:min(460px,94vw);max-height:90dvh;overflow:auto;padding:20px;border:0;border-radius:14px;background:#fffdf6;color:#173b36}.image-crop-dialog canvas{display:block;max-width:100%;max-height:38dvh;width:auto;height:auto;margin:10px auto;background:#172126;touch-action:none;cursor:move}.image-crop-dialog .round-crop{border-radius:50%}.image-crop-dialog label{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:8px;margin:8px 0}.image-crop-dialog input[type=range]{width:100%;min-width:0;margin:0}.image-crop-dialog button{min-height:44px;padding:8px 12px}.image-crop-dialog::backdrop{background:#0008}.image-crop-dialog .crop-error{color:#a32323}.crop-current-avatar,.crop-window-art{margin:8px 0;min-height:40px}

.image-crop-dialog canvas{outline:2px dashed #2459bd;outline-offset:2px;user-select:none}.image-crop-dialog .crop-zoom-tools{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0}.image-crop-dialog output{min-width:52px;text-align:center}.image-crop-dialog .crop-zoom-tools button{min-width:44px}

.profile-card:has(>.profile-art-surface),.profile-heading:has(>.profile-art-surface){position:relative;isolation:isolate}.profile-art-surface{position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;opacity:var(--surface-alpha,1)}.profile-card>.profile-art-surface{top:85px;border-top-left-radius:0;border-top-right-radius:0}

.crop-titlebar,.photo-picker-titlebar{display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:-20px;background:#fffdf6;z-index:10;padding:6px 0 12px}.crop-titlebar h2,.photo-picker-titlebar h2{margin:0;min-width:0;font-size:20px}.crop-titlebar>.crop-exit,.photo-picker-titlebar>#close-photo-picker{position:relative!important;inset:auto!important;flex-shrink:0;min-width:70px;min-height:44px;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:auto!important;padding:8px!important;font:600 15px Arial;color:#8f2536}.photo-picker-titlebar{top:-24px}

/* Profile actions stay readable independently of artwork lettering colors. */
#relationship button,.profile-heading button.outline{color:#111!important;background:#fffdf6!important;text-shadow:none!important;min-height:44px}
#relationship{gap:10px;flex-wrap:wrap}
