.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px;margin:15px 0}
.photo-grid .file-tile,.photo-thumb{position:relative;width:100%;height:auto;aspect-ratio:1;min-width:0;margin:0!important;border-radius:8px;overflow:visible}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.photo-thumb button{position:absolute;top:0;right:0;transform:translate(15%,-15%);display:grid;place-items:center;width:23px;height:23px;padding:0;margin:0;border-radius:50%;background:#333c;color:white;font-size:18px;line-height:1;z-index:1}
.photo-grid [hidden]{display:none!important}.photo-status{font-size:13px;color:#777;margin:8px 0}
.photo-error{color:#b24c24;font-size:13px}

/* Consistent return and close controls for all three application steps. */
.apply-shell .apply-head{gap:2px;padding:0 10px;box-sizing:border-box}
.apply-shell .apply-head .apply-nav-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;padding:0;margin:0;background:transparent;border:0;border-radius:8px;color:#25364a;line-height:1}
.apply-shell .apply-head .apply-nav-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.apply-shell .apply-head>span{max-width:calc(100% - 180px);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apply-shell .photo-error:empty{display:none}
