.photo-restoration-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid var(--line,rgba(255,255,255,.18));border-radius:8px;background:rgba(255,255,255,.04);color:inherit;font-size:14px;line-height:1.3;white-space:nowrap;cursor:pointer}
.photo-restoration-toggle[hidden]{display:none!important}
.photo-restoration-toggle input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--accent,#e50914);cursor:pointer}
.photo-restoration-toggle:focus-within{outline:2px solid var(--accent,#e50914);outline-offset:3px}
.photo-restoration-badge{position:absolute;inset:8px auto auto 8px;z-index:4;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid rgba(255,255,255,.28);border-radius:11px;background:rgba(8,10,14,.82);box-shadow:0 3px 12px rgba(0,0,0,.24);color:var(--text,#f0f0f6);cursor:pointer;text-decoration:none}
.photo-restoration-badge img,.history-photo-card .photo-restoration-badge img{display:block;width:22px;height:22px;max-width:none;aspect-ratio:1;object-fit:contain}
.photo-restoration-badge:hover{background:rgba(8,10,14,.96);border-color:rgba(255,255,255,.65)}
.photo-restoration-badge:focus-visible{outline:2px solid var(--accent,#e50914);outline-offset:3px}
.artifact-gallery-item{position:relative;min-width:0}
.history-admin-gallery-media{position:relative;min-width:0}
.history-admin-gallery-media>.photo-restoration-badge{top:17px;left:17px}
