.photo-annotation-marker, .photo-annotation-apply, .photo-annotation-close, .photo-annotation-download {
    position: fixed;
    z-index: 10001;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 35, 38, .85);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.photo-annotation-marker { right: calc(84px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.photo-annotation-marker:hover, .photo-annotation-marker[aria-pressed="true"] { background: #fff; color: #111; }
.photo-annotation-marker[aria-busy="true"] { opacity: .5; }
.photo-annotation-apply { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); background: #0a84ff; }
.photo-annotation-apply:disabled { opacity: .5; }
.photo-annotation-canvas { position: fixed; z-index: 1; border-radius: 10px; touch-action: none; cursor: crosshair; }
.photo-annotating { cursor: default; }
.photo-annotating > img { visibility: hidden; }
.photo-annotating .lightbox-download { display: none; }
.photo-annotation-tools {
    position: fixed;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    background: rgba(30,30,34,.94);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.photo-annotation-color {
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: var(--annotation-color);
    cursor: pointer;
}
.photo-annotation-color[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 3px; }
.photo-annotation-size, .photo-annotation-size-option {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
}
.photo-annotation-size { margin-left: 3px; }
.photo-annotation-size span, .photo-annotation-size-option span { border-radius: 50%; background: currentColor; }
.photo-annotation-sizes { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; gap: 8px; padding: 12px; border-radius: 22px; background: #242426; }
.photo-annotation-size-option[aria-pressed="true"] { outline: 2px solid #fff; }
.photo-annotation-error { position: fixed; z-index: 10003; bottom: calc(156px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 40px); padding: 12px 16px; border-radius: 12px; background: #3b2525; color: #fff; font: 14px/1.4 system-ui, sans-serif; text-align: center; }
.photo-annotation-tools[hidden], .photo-annotation-sizes[hidden], .photo-annotation-apply[hidden], .photo-annotation-error[hidden], .photo-annotation-canvas[hidden] { display: none; }
@media (max-width: 374px) { .photo-annotation-tools { gap: 6px; padding: 10px; } .photo-annotation-color { width: 24px; height: 24px; } }

.photo-annotation-close { left: calc(16px + env(safe-area-inset-left, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); font-size: 28px; }
.photo-annotation-download { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 28px; text-decoration: none; }
.photo-annotating .photo-annotation-download { display: none; }
