
#preview.b12-photo-editor[open] {
 display:block;
 height:var(--b12-editor-height,100dvh);
 overflow:clip;
}
#preview.b12-photo-editor > :not(.b12-editor) {
 display:none;
}
.b12-editor {
 --b12-menu-height:48px;
 position:absolute;
 inset:0;
 display:grid;
 grid-template-rows:minmax(0,1fr) auto;
 background:#10171a;
 color:white;
}
.b12-editor [hidden] {
 display:none !important;
}
.b12-editor button {
 font-size:.875rem;
}
.b12-photo {
 position:relative;
 display:grid;
 min-height:0;
}
.b12-stage {
 min-width:0;
 min-height:0;
 overflow:hidden;
 touch-action:none;
}
.b12-editor .b12-menu,
.b12-editor .b12-save {
 position:absolute;
 z-index:2;
 right:var(--b12-action-right,8px);
}
.b12-editor .b12-menu {
 top:var(--b12-menu-top,8px);
 width:48px;
 height:var(--b12-menu-height);
 padding:0;
 background:#fff;
 color:#142a34;
 font-size:1.5rem;
 line-height:1;
}
.b12-editor .b12-save {
 top:var(--b12-save-top,calc(100% - 44px));
 width:76px;
 height:36px;
 padding:0;
 background:#10212bd9;
 border:1px solid #fff8;
}
.b12-tools {
 position:relative;
 padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));
 background:#142a34;
}
.b12-tabs {
 position:absolute;
 inset:auto 0 100%;
 display:flex;
 align-items:flex-end;
 pointer-events:none;
}
.b12-tabs button,
.b12-note-header button {
 width:76px;
 height:36px;
 padding:0 8px;
 border-radius:0 10px 0 0;
 pointer-events:auto;
}
.b12-tabs .b12-aa,
.b12-note-header .b12-notes-aa {
 font-size:1rem;
 background:#142a34;
 border:1px solid #647a88;
 border-left:0;
 border-bottom:0;
}
.b12-tabs .b12-aa {
 z-index:1;
 touch-action:none;
}
.b12-tabs .b12-open-notes,
.b12-note-header .b12-note-tab {
 margin-left:-10px;
 padding-left:14px;
 background:white;
 color:#173145;
}
.b12-drawing {
 display:grid;
 grid-template-columns:repeat(8,minmax(0,1fr));
 gap:2px;
 max-width:620px;
 margin:auto;
}
.b12-drawing button {
 display:grid;
 place-items:center;
 min-width:0;
 height:44px;
 padding:0;
 background:transparent;
}
.b12-drawing [aria-pressed="true"] {
 background:#12688c;
 box-shadow:inset 0 0 0 1px #afd5e3;
}
.b12-drawing svg {
 width:24px;
 height:24px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.7;
 stroke-linecap:round;
 stroke-linejoin:round;
}
.b12-drawing [data-filled] svg {
 fill:currentColor;
}
.b12-status {
 position:absolute;
 right:8px;
 bottom:100%;
 max-width:55%;
 margin:0 0 10px;
 padding:8px;
 border-radius:6px;
 background:#142a34;
 font-size:.875rem;
}
.b12-status:empty {
 display:none;
}
.b12-editor .b12-size {
 position:absolute;
 z-index:3;
 top:var(--b12-size-top,33%);
 left:10px;
 width:44px;
 height:var(--b12-size-height,150px);
 margin:0;
 writing-mode:vertical-lr;
 direction:rtl;
 appearance:none;
 background:transparent;
 touch-action:none;
}
.b12-size::-webkit-slider-runnable-track {
 width:3px;
 height:100%;
 border-radius:2px;
 background:#fff9;
}
.b12-size::-webkit-slider-thumb {
 appearance:none;
 width:22px;
 height:22px;
 margin-left:-9.5px;
 border-radius:50%;
 border:2px solid var(--b12-thumb-ring,#142a34);
 background:var(--b12-thumb,#fff);
}
.b12-size::-moz-range-track {
 width:3px;
 height:100%;
 background:#fff9;
}
.b12-size::-moz-range-thumb {
 width:18px;
 height:18px;
 border-radius:50%;
 border:2px solid var(--b12-thumb-ring,#142a34);
 background:var(--b12-thumb,#fff);
}
.b12-size-value {
 position:absolute;
 top:calc(var(--b12-size-top,33%) - 25px);
 left:15px;
 padding:2px 7px;
 border-radius:4px;
 background:#142a34;
}
.b12-editor:not([data-mode=""]) .b12-tools > :is(.b12-tabs,.b12-drawing),
.b12-editor:is([data-mode="notes"],[data-mode="crop"]) .b12-size,
.b12-editor:is([data-mode="text"],[data-mode="crop"]) :is(.b12-menu,.b12-save) {
 visibility:hidden;
}
.b12-editor[data-mode="text"] .b12-size {
 top:18%;
 height:clamp(46px,calc((100% - env(keyboard-inset-height,0px)) * .28),160px);
}
.b12-inset-probe {
 position:absolute;
 bottom:0;
 width:0;
 height:env(keyboard-inset-height,0px);
 visibility:hidden;
 pointer-events:none;
}
.b12-dock {
 position:absolute;
 --b12-dock-bottom:max(env(keyboard-inset-height,0px),var(--b12-keyboard-gap,0px));
 inset:var(--b12-visible-top,0px) 0 var(--b12-dock-bottom);
 display:flex;
 flex-direction:column;
 justify-content:flex-end;
 padding-top:48px;
 z-index:4;
 pointer-events:none;
}
.b12-editor[data-mode="notes"] .b12-dock:has(.b12-note:not([readonly])) {
 bottom:var(--b12-notes-lift,0px);
}
.b12-editor[data-mode="notes"] .b12-dock:has(.b12-notes[data-view="expanded"]),
.b12-editor[data-mode="notes"] .b12-dock.saved-note-reading:has(.b12-note:not([readonly])) {
 padding-top:max(48px,calc(var(--b12-menu-top,8px) + var(--b12-menu-height) + 6px - var(--b12-visible-top,0px)));
}
.b12-editor[data-mode="notes"] .b12-dock:has(.b12-note:not([readonly]))::after {
 content:"";
 position:absolute;
 top:100%;
 inset-inline:0;
 height:var(--b12-dock-bottom);
 background:#fff;
 pointer-events:none;
}
.b12-note-header {
 display:flex;
 align-items:flex-end;
 flex:none;
}
.b12-note-header .b12-note-tab {
 z-index:1;
}
.b12-note-header .b12-note-close {
 width:auto;
 margin:0 8px 3px auto;
 border-radius:7px;
 background:#e5eef1;
 color:#173145;
}
.b12-notes[data-view="compact"] .b12-note-close {
 visibility:hidden;
}
.b12-notes {
 display:flex;
 flex-direction:column;
 min-height:0;
 max-height:100%;
}
.b12-note-card {
 position:relative;
 display:flex;
 flex-direction:column;
 min-height:0;
 padding-inline:5px;
 border-radius:6px 6px 0 0;
 background:white;
 pointer-events:auto;
}
.b12-editor .b12-note-resize {
 height:15px;
 padding:0;
 flex:none;
 width:100%;
 background:white;
 color:#4b6576;
 font-size:.75rem;
 letter-spacing:2px;
 border-radius:6px 6px 0 0;
 cursor:ns-resize;
 touch-action:none;
}
.b12-editor .b12-note-expand {
 position:absolute;
 top:16px;
 right:8px;
 padding:0;
 width:36px;
 height:36px;
 background:transparent;
 color:#173145;
 font-size:1.125rem;
}
.b12-note {
 display:block;
 box-sizing:border-box;
 width:100%;
 height:var(--b12-note-height,calc(var(--b12-note-rows,2) * 1lh + 14px));
 min-height:0;
 padding:6px 40px 6px 7px;
 margin:0;
 color:#173145;
 background:white;
 border:1px solid transparent;
 border-top-color:#ced2d4;
 border-radius:0;
 font:inherit;
 line-height:1.35;
 resize:none;
 overscroll-behavior:contain;
}
.b12-note:focus {
 outline:none;
 border-top-color:#909699;
}
@media (forced-colors:active) {
 .b12-note {border:0;border-top:1px solid GrayText}
 .b12-note:focus {border-top-color:Highlight}
}
.b12-notes[data-view="empty"] {--b12-note-rows:10}
.b12-notes[data-view="saved"] {--b12-note-rows:20}
.b12-notes[data-view="expanded"] {--b12-note-rows:24}
.b12-photo-text {
 position:absolute;
 z-index:2;
 top:var(--b12-text-top,28%);
 left:16%;
 width:68%;
 min-height:1.3em;
 max-height:3.3em;
 padding:3px 5px;
 border:1px solid #f3fbff;
 resize:none;
 font:24px/1.15 Arial,sans-serif;
}
.b12-format {
 display:flex;
 align-items:center;
 flex:none;
 align-self:flex-start;
 width:min(100% - 12px,420px);
 padding:3px 4px;
 border-radius:0 12px 0 0;
 background:#142a34;
 border:1px solid #647a88;
 border-left:0;
 border-bottom:0;
 pointer-events:auto;
}
.b12-editor .b12-format button {
 display:grid;
 place-items:center;
 flex:1 1 0;
 min-width:0;
 height:40px;
 padding:0;
 background:none;
 font-size:1rem;
}
.b12-editor .b12-format .b12-text-done {
 flex:0 0 48px;
 font-size:.8rem;
}
.b12-format [aria-pressed="true"] {
 text-decoration:underline;
}
.b12-bold strong { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.b12-color-dot {
 width:20px;
 height:20px;
 border:1px solid #d0dde3;
 border-radius:50%;
 background:var(--swatch,#fff);
}
.b12-crop {
 position:absolute;
 z-index:4;
 inset:auto 0 0;
 display:flex;
 justify-content:center;
 gap:6px;
 padding:8px;
 background:#142a34;
}
.b12-editor dialog {
 border:0;
 border-radius:12px;
 color:#173145;
 background:white;
 width:min(94vw,390px);
 max-width:none;
}
.b12-editor dialog::backdrop {
 background:#10171a88;
}
.b12-options[open] {
 display:grid;
 gap:6px;
}
.b12-dialog-actions {
 display:flex;
 justify-content:flex-end;
 gap:8px;
 margin-top:10px;
}
.b12-palette {
 position:fixed;
 top:var(--b12-palette-top,0px);
 bottom:max(env(keyboard-inset-height,0px),var(--b12-palette-bottom,0px));
 margin:auto;
 max-height:calc(100% - 32px);
 overflow:auto;
}
.b12-palette-title {
 display:flex;
 justify-content:space-between;
 gap:8px;
 margin-bottom:8px;
}
.b12-swatches {
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 gap:4px;
}
.b12-swatches button {
 min-width:0;
 aspect-ratio:1;
 padding:0;
 border-radius:50%;
 border:1px solid #96a7ad;
 background:var(--swatch);
}
.b12-swatches [aria-pressed="true"] {
 outline:2px solid #12688c;
 outline-offset:1px;
}
.b12-palette details {
 margin-top:8px;
}
.b12-palette label {
 display:grid;
 grid-template-columns:82px minmax(0,1fr);
 align-items:center;
 min-height:28px;
}
.b12-palette input {
 width:100%;
}
