/* Noto Sans Bengali font subsets — SIL OFL 1.1; see licenses/OFL-Font-License.txt. */
@font-face{font-family:"BN Bengali";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/noto-sans-bengali-bengali-400-normal.woff2") format("woff2")}
@font-face{font-family:"BN Bengali";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/noto-sans-bengali-bengali-700-normal.woff2") format("woff2")}

.bn-writer,
.bn-writer * {
    transition: all 0.2s ease-in-out;
}

.bn-writer
{--ink:#303030;--muted:#697579;--accent:704b89;
box-sizing:border-box;max-width:1040px;margin:16px auto;
padding:20px;background:#fff;border:none;
border-radius:12px;color:var(--ink);
font-family:"BN Bengali","Nirmala UI","Noto Sans Bengali",system-ui,sans-serif;
font-size:16px;line-height:1.65;text-align:left;color-scheme:light}

.bn-writer *{box-sizing:border-box}.bn-writer [hidden]{display:none!important}
.bn-writer button,.bn-writer input,.bn-writer textarea{font:inherit;letter-spacing:normal;text-transform:none}
.bn-writer button{cursor:pointer;min-height:42px;padding:8px 16px;background:#fff;border:1px solid #94b379;border-radius:7px;color:var(--ink);line-height:1.6;box-shadow:none}
.bn-writer button:hover{background:#94b379;color:#fff}.bn-writer button:disabled{opacity:.4;cursor:default}
.bn-writer :focus-visible{outline:3px solid #94b379;outline-offset:2px}.bn-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.bn-language{display:flex;gap:2px;padding:3px;background:#d9d9d9;border-radius:0px;margin-bottom:10px;}.bn-writer .bn-language button{border:0;background:transparent;min-height:38px;padding:5px 20px}
.bn-writer .bn-language [aria-pressed="true"]{background:#704b89;color:#fff}.bn-history{display:flex;gap:4px}.bn-writer .bn-history button{font-family:system-ui,sans-serif;font-size:23px;line-height:1;padding:5px 12px;border-color:transparent}
.bn-editor-shell{position:relative}
.bn-writer .bn-editor{display:block;width:100%;min-height:420px;resize:vertical;padding:20px;border:1px solid #becbc5;border-radius:0px;background:#fff;color:#303030;font-size:21px;line-height:1.9;box-shadow:none;tab-size:4}
.bn-editor::placeholder{color:#704b89;opacity:1}.bn-popup{position:absolute;z-index:9999;width:245px;max-width:calc(100% - 16px);background:#fff;border:1px solid #c4d2cb;border-radius:9px;box-shadow:0 6px 24px #193c2e26;overflow:hidden}
.bn-options{max-height:246px;overflow-y:auto;overscroll-behavior:contain}
.bn-writer .bn-option{display:block;width:100%;min-height:39px;border:0;border-bottom:1px solid #eef0ed;border-radius:0;padding:5px 14px;font-size:19px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.bn-writer .bn-option[aria-selected="true"]{background:#704b89;color:#fff}
.bn-writer .bn-custom{display:block;width:100%;min-height:40px;border:0;border-top:1px solid #dce4df;border-radius:0;font-size:13px;text-align:left;color:#704b89;background:#f4f8f5}
.bn-stats{display:flex;gap:9px 23px;flex-wrap:wrap;padding:15px 1px;color:var(--muted);font-size:13px}.bn-stats strong{color:#704b89;font-weight:700;font-size:20px;margin-right:3px}
.bn-stats small{font-size:11px}.bn-actions,.bn-actions>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bn-actions{justify-content:space-between;padding-top:3px}
.bn-writer .bn-primary{background:#94b379;border-color:#94b379;color:#fff}.bn-writer .bn-primary:hover{background:#704b89}.bn-writer .bn-clear{border-color:1px solid #94b379;color:#303030}.bn-writer .bn-clear:hover{border-color:transparent;color:#ffffff}
.bn-status{min-height:19px;margin-top:8px;font-size:12px;color:#704b89}.bn-dialog{width:calc(100% - 32px);max-width:420px;border:1px solid #c4d2cb;border-radius:12px;padding:24px;color:#303030;background:#fff;font:inherit}
.bn-dialog::backdrop{background:#15201d70}.bn-dialog p{margin:0 0 20px}.bn-dialog form>div,.bn-dialog>div{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.bn-dialog label{display:block;font-size:14px}
.bn-dialog input{display:block;margin-top:8px;width:100%;border:1px solid #becbc5;border-radius:7px;padding:10px;font-size:20px;color:#303030;background:#fff}.bn-writer .bn-danger{background:#c53131;color:#fff;border-color:#c53131}.bn-writer .bn-danger:hover{background:#c53131;}




@media(max-width:640px){.bn-writer{padding:13px;margin:8px auto;border-radius:9px}
.bn-writer .bn-editor{min-height:390px;font-size:20px;padding:14px}.bn-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;padding:13px 0}.bn-stats span{font-size:12px}.bn-stats strong{font-size:20px}
.bn-actions{gap:8px}.bn-actions>div{gap:8px}.bn-writer .bn-actions button{padding:8px 11px;font-size:14px;min-height:44px}.bn-popup{width:225px}.bn-writer .bn-option{min-height:42px}}

.bn-writer .bn-punctuation{width:120px}.bn-punctuation .bn-options{display:flex;overflow:hidden}.bn-writer .bn-punctuation .bn-option{width:50%;min-height:44px;text-align:center;font-size:24px;border-bottom:0}
