.bv-sheet-image-window { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bv-sheet-image-window img { display: block; border: 0; user-select: none; pointer-events: none; }
.bv-sheet-source-popup, .bv-sheet-image-editor { background: #fffdf8; color: #202734; border: 1px solid #b8bec7; border-radius: 12px; padding: 24px; box-shadow: 0 18px 70px #0004; }
.bv-sheet-source-popup::backdrop, .bv-sheet-image-editor::backdrop { background: #17203088; }
.bv-sheet-source-popup { width: min(460px, calc(100vw - 48px)); }
.bv-sheet-source-popup p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.bv-sheet-source-popup h2, .bv-sheet-image-editor h2 { margin: 0 0 14px; font-size: 20px; }
.bv-sheet-image-editor { width: min(880px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; box-sizing: border-box; }
.bv-sheet-image-editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bv-sheet-image-editor label { display: block; font-size: 14px; margin: 10px 0; }
.bv-sheet-image-editor input, .bv-sheet-image-editor textarea, .bv-sheet-image-editor select { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 7px; }
.bv-sheet-image-editor textarea { min-height: 100px; resize: vertical; }
.bv-sheet-image-editor__full { position: relative; line-height: 0; width: fit-content; max-width: 100%; margin: auto; }
.bv-sheet-image-editor__full img { width: auto; max-width: 100%; height: auto; max-height: 280px; }
.bv-sheet-image-editor__selection { position: absolute; border: 2px solid #3156d9; box-sizing: border-box; box-shadow: 0 0 0 1px #fff; pointer-events: none; }
.bv-sheet-image-editor__preview { position: relative; height: 180px; margin-top: 12px; background: #eeeae1; border: 1px solid #ccc; }
.bv-sheet-image-editor__footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.bv-sheet-image-editor button, .bv-sheet-source-popup button { padding: 9px 16px; cursor: pointer; }
.bv-sheet-image-editor__status { min-height: 1.5em; font-size: 13px; }
@media (max-width: 650px) { .bv-sheet-image-editor__grid { grid-template-columns: 1fr; } }
/* Empty content layers pass gestures through to shared images. */
.bv-shared-sheet__runtime-objects { pointer-events: none; }
.bv-shared-sheet__runtime-objects > * { pointer-events: auto; }
.bv-sheet-image-chooser { width: min(680px, calc(100vw - 32px)); max-height: 88vh; overflow-y: auto; box-sizing: border-box; background: #fffdf8; color: #202734; border: 1px solid #b8bec7; border-radius: 12px; padding: 24px; box-shadow: 0 18px 70px #0004; }
.bv-sheet-image-chooser::backdrop { background: #17203088; }
.bv-sheet-image-chooser h2 { margin: 0 0 18px; font-size: 22px; }
.bv-sheet-image-chooser h3 { margin-top: 22px; font-size: 17px; }
.bv-sheet-image-chooser label { display: block; font-size: 14px; }
.bv-sheet-image-chooser input { display: block; width: 100%; box-sizing: border-box; padding: 9px; margin-top: 6px; }
.bv-sheet-image-chooser button { padding: 10px 16px; cursor: pointer; }
.bv-sheet-image-chooser [role="status"] { font-size: 14px; line-height: 1.5; }
.bv-sheet-image-chooser__list { display: grid; gap: 10px; }
.bv-sheet-image-chooser .bv-sheet-image-chooser__item { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 1px solid #ccd0d6; background: #fff; color: #202734; border-radius: 7px; white-space: normal; }
.bv-sheet-image-chooser__item img { width: 100px; height: 76px; flex: 0 0 100px; object-fit: contain; }
.bv-sheet-image-chooser__item > span { min-width: 0; overflow-wrap: anywhere; }
.bv-sheet-image-chooser__item strong, .bv-sheet-image-chooser__item small, .bv-sheet-image-chooser__item span > span { display: block; }
.bv-sheet-image-chooser__item small { margin: 5px 0; line-height: 1.4; }
.bv-sheet-image-chooser__item span > span { color: #3156d9; font-size: 13px; }
.bv-sheet-image-chooser__item:focus-visible { outline: 2px solid #3156d9; outline-offset: 2px; }
.bv-sheet-image-chooser__footer { display: flex; justify-content: flex-end; margin-top: 20px; }
@media (max-width: 480px) { .bv-sheet-image-chooser { padding: 16px; } .bv-sheet-image-chooser__item img { width: 70px; height: 60px; flex-basis: 70px; } }

.bv-sheet-image-editor__crop-control label { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 0; }
.bv-sheet-image-editor__crop-control label > span { display: flex; align-items: center; gap: 6px; }
.bv-sheet-image-editor .bv-sheet-image-editor__crop-control input[type="number"] { width: 92px; margin: 0; padding: 5px 7px; }
.bv-sheet-image-editor__crop-control input[type="range"] { margin: 6px 0 10px; padding: 0; }
.bv-sheet-image-editor__crop-help { font-size: 12px; line-height: 1.5; color: #505a69; }
