/* Scoped V12.2 additions. Leaves the V10 editor and photo tools intact. */
#bn12-mount{display:contents}
#bn12-mount .bn12-modal[hidden]{display:none!important}
body.bn12-modal-open{overflow:hidden}
#bn12-mount .bn12-modal{position:fixed;inset:0;z-index:2147483600;background:rgba(10,19,32,.72);padding:16px;display:flex;justify-content:center;align-items:center}
#bn12-mount .bn12-dialog{background:var(--surface,#fff);color:var(--ink,#18233a);border-radius:18px;border:1px solid var(--line,#dce4ed);box-shadow:0 25px 65px rgba(0,0,0,.25);width:min(610px,100%);max-height:min(92dvh,930px);display:flex;flex-direction:column;overflow:hidden}
#bn12-mount .bn12-modal-head{padding:14px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line,#dce4ed);gap:12px}
#bn12-mount h2{font-size:21px;letter-spacing:-.02em;margin:0}#bn12-mount h3{font-size:19px;letter-spacing:-.025em;margin:0 0 9px}
#bn12-mount .bn12-progress{padding:12px 16px;display:flex;gap:8px;flex-wrap:wrap;background:var(--surface-alt,#f4f6fa)}
#bn12-mount .bn12-step{font-size:11px;color:var(--muted,#6a7382);padding:8px 9px;border-radius:9px;flex:1;text-align:center;font-weight:750;white-space:nowrap}
#bn12-mount .bn12-step.is-active{color:#fff;background:#2457e6}#bn12-mount .bn12-step.is-done{color:var(--brand,#2457e6)}
#bn12-mount .bn12-modal-body{overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:12px}
#bn12-mount .bn12-muted{font-size:12px;line-height:1.65;color:var(--ink-2,#667188);margin:0}
#bn12-mount .bn12-modal-footer{padding:13px 16px;border-top:1px solid var(--line,#dce4ed);display:flex;gap:10px;justify-content:space-between}
#bn12-mount .bn12-button,#greeting-editor .bn12-opener,#greeting-editor .bn12-messages-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:43px;padding:9px 15px;font:inherit;font-size:12px;font-weight:800;border-radius:10px;border:1px solid var(--line,#d6deed);color:var(--ink,#17263f);background:var(--surface-alt,#f2f5fa);cursor:pointer;text-align:center;line-height:1.3}
#bn12-mount .bn12-button:disabled{opacity:.55;cursor:not-allowed}
#bn12-mount .bn12-primary,#greeting-editor .bn12-opener{background:#2457e6!important;border-color:#2457e6!important;color:#fff!important}
#greeting-editor .bn12-opener{margin:0 0 12px;width:auto;box-shadow:0 3px 13px rgba(36,87,230,.15)}
#greeting-editor .bn12-messages-button{margin:4px 0 16px;width:100%}
#bn12-mount .bn12-photo-line{display:flex;align-items:center;gap:12px;border:1px solid var(--line,#dce4ed);border-radius:12px;padding:12px}
#bn12-mount .bn12-photo-line>span:nth-child(2){flex:1;font-weight:700}#bn12-mount .bn12-photo-icon{border-radius:10px;background:var(--surface-alt,#f4f6fa);width:42px;height:42px;display:grid;place-items:center;font-weight:800}
#bn12-mount .bn12-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:750}
#bn12-mount .bn12-field input,#bn12-mount .bn12-field select,#bn12-mount .bn12-field textarea{width:100%;border-radius:10px;border:1px solid var(--line,#d8dfe9);padding:10px 12px;background:var(--surface,#fff);color:var(--ink,#18243a);font:inherit;font-size:14px;min-height:43px}
#bn12-mount .bn12-field textarea{min-height:72px;resize:vertical}
#bn12-mount .bn12-select-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#bn12-mount .bn12-message-sample{border-left:4px solid #2457e6;background:var(--surface-alt,#f4f7fb);padding:16px;font-size:15px;line-height:1.65;margin:0;border-radius:8px;white-space:pre-wrap}
#bn12-mount .bn12-finish-preview{display:block;max-height:33dvh;max-width:100%;margin:auto;border-radius:11px;box-shadow:0 12px 28px #14274c20;object-fit:contain}
#bn12-mount .bn12-finish-actions{display:flex;flex-wrap:wrap;gap:9px}
#bn12-mount .bn12-finish-actions button{flex:1}
#bn12-mount .bn12-note{margin:0 16px;padding:0 0 6px;min-height:8px;color:var(--brand,#2457e6);font-size:12px}
#bn12-mount :focus-visible{outline:3px solid #2457e6;outline-offset:2px}
@media(max-width:600px){
  #greeting-editor .bn12-opener{width:100%;min-height:44px}
  #bn12-mount .bn12-modal{padding:8px 6px;align-items:center}
  #bn12-mount .bn12-dialog{max-height:93dvh;border-radius:14px}
  #bn12-mount .bn12-progress{padding:8px;gap:3px}
  #bn12-mount .bn12-step{font-size:10px;padding:7px 3px}
  #bn12-mount .bn12-modal-body{padding:14px}
  #bn12-mount .bn12-select-row{grid-template-columns:1fr 1fr}
  #bn12-mount .bn12-modal-footer .bn12-button{flex:1}
  #bn12-mount .bn12-photo-line{flex-wrap:wrap}
  #bn12-mount .bn12-photo-line button{min-width:155px}
}
@media(max-width:380px){#bn12-mount .bn12-select-row{grid-template-columns:1fr}#bn12-mount .bn12-finish-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){#bn12-mount *{scroll-behavior:auto!important;transition:none!important}}

/* V12.1: show the selected picture clearly, without cluttering the phone. */
#bn12-mount .bn12-photo-line.is-ready{border-color:#81bea1;background:color-mix(in srgb,#32a579 8%,var(--surface,#fff))}
#bn12-mount .bn12-photo-line.is-ready .bn12-photo-icon{background:#197b51;color:white}
#bn12-mount .bn12-photo-line>.bn12-photo-icon{flex:0 0 42px!important}
#bn12-mount .bn12-photo-summary{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
#bn12-mount .bn12-photo-summary strong{font-size:13px}
#bn12-mount .bn12-photo-summary small{color:var(--muted,#5c6775);font-size:11px;line-height:1.35}
#bn12-mount .bn12-selected-thumb{width:48px;height:48px;object-fit:cover;flex:0 0 48px;border-radius:9px;border:1px solid var(--line,#d8dfe9)}
@media(max-width:600px){#bn12-mount .bn12-photo-line .bn12-button{flex:1 1 100%}}
