.kph-photo-trigger{position:absolute;right:40px;top:0;height:40px;width:38px;padding:8px;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;z-index:3;cursor:pointer}
.kph-photo-trigger svg{width:23px;height:23px}.kph-photo-input{padding-right:85px!important}
#kph-photo-search{width:min(720px,calc(100% - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:22px;border:1px solid #c4d2e4;border-radius:8px;background:white;color:#222;overflow:auto;box-shadow:0 12px 60px #0003;font-size:16px}
#kph-photo-search::backdrop{background:#0008}.kph-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.kph-photo-heading h2{margin:0;font-size:26px}.kph-photo-heading button{width:44px;height:44px;font-size:28px;background:transparent;border:0;color:#1e57a6}
.kph-photo-actions{display:flex;gap:12px;margin:18px 0}.kph-photo-actions button{background:#1e57a6;color:white;border:1px solid #1e57a6;border-radius:3px;min-height:44px;padding:10px 18px;font-size:16px;cursor:pointer}.kph-photo-actions button:disabled{opacity:.6;cursor:wait}
.kph-photo-privacy,.kph-photo-footnote{font-size:13px;line-height:1.5;color:#555}.kph-photo-footnote{border-top:1px solid #e3e8ee;padding-top:14px;margin-top:18px}
#kph-photo-search p{margin:10px 0;line-height:1.5}
#kph-photo-search [data-photo-preview]{display:block;max-width:150px;max-height:100px;object-fit:contain;margin:10px auto}#kph-photo-search [hidden]{display:none!important}
.kph-photo-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kph-photo-result{display:flex;flex-direction:column;border:1px solid #dce4ee;padding:10px;color:#1e57a6;text-decoration:none;font-size:15px;line-height:1.4}.kph-photo-result img{width:100%;height:150px;object-fit:contain;margin-bottom:9px}.kph-photo-result small{color:#555;margin-top:4px}
.kph-photo-trigger:focus-visible,#kph-photo-search button:focus-visible,.kph-photo-result:focus-visible{outline:2px solid #1e57a6;outline-offset:2px}
.kph-photo-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:110px;padding:18px;border:2px dashed #93adcf;border-radius:6px;background:#f5f8fc;color:#1e57a6;text-align:center;cursor:pointer;font-size:16px;line-height:1.4}
.kph-photo-drop span{font-size:13px;color:#555}.kph-photo-drop.is-dragging{border-color:#1e57a6;background:#e5effc}.kph-photo-drop:disabled{cursor:wait;opacity:.65}
@media(pointer:fine){#kph-photo-search [data-photo-camera]{display:none}}
@media(max-width:600px){#kph-photo-search{padding:16px}.kph-photo-heading h2{font-size:23px}.kph-photo-actions button{flex:1;padding:10px}.kph-photo-result{font-size:14px;padding:8px}}
@media(max-width:700px){#kph-photo-search [data-photo-camera]{display:block}}
