.heswe{--ink:#182339;--edge:#d8e0ec;--blue:#215cb5;box-sizing:border-box;width:100%;max-width:1220px;margin:12px auto 30px;background:#f7f8fc;border:1px solid var(--edge);border-radius:14px;color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;overflow:hidden}.heswe *{box-sizing:border-box}.heswe-head{padding:19px 20px 14px;text-align:center;background:white}.heswe-head h2{font-size:clamp(22px,3.4vw,30px)!important;font-weight:800!important;line-height:1.25!important;margin:0 0 7px!important;color:#182339!important}.heswe-head p{font-size:13px;margin:0!important;color:#647389}.heswe-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#fff;border-top:1px solid #eef1f6;border-bottom:1px solid var(--edge);position:relative;z-index:2}.heswe-toolbar-group{display:flex;align-items:center;gap:4px;padding-right:8px;border-right:1px solid #e5eaf3}.heswe-toolbar-group:last-child{border-right:0}.heswe-toolbar-label,.heswe-shortcut{font-size:11px;color:#647389;white-space:nowrap}.heswe-toolbar button{height:31px!important;min-height:31px!important;padding:0 9px!important;border:1px solid #d9e0eb!important;border-radius:6px!important;background:#fff!important;color:#2d3a55!important;font:600 12px/1 system-ui,sans-serif!important;cursor:pointer;box-shadow:none!important;text-transform:none!important;transition:none!important}.heswe-toolbar button:hover{background:#eef4ff!important}.heswe-toolbar .heswe-lang.is-active{color:#fff!important;background:var(--blue)!important;border-color:var(--blue)!important}.heswe-actions{margin-left:auto}.heswe-actions button[data-action=export]{color:#fff!important;background:#215cb5!important;border-color:#215cb5!important}.heswe-paper-wrap{padding:27px 16px 36px;overflow-x:auto}.heswe-paper{width:210mm;max-width:100%;min-height:270mm;margin:auto;padding:23mm 19mm 23mm;background:#fff;box-shadow:0 2px 20px rgba(15,26,54,.12);outline:none!important;overflow-wrap:break-word;white-space:normal;word-break:normal;color:#202124;line-height:1.65;text-align:justify;font-family:Mangal,'Nirmala UI','Noto Sans Devanagari',sans-serif;font-size:14pt;caret-color:#215cb5}.heswe-paper p,.heswe-paper div{margin:0 0 4px}.heswe-paper:focus{box-shadow:0 2px 20px rgba(15,26,54,.15),0 0 0 1px #bdd1ff}.heswe-paper:empty:before{content:attr(data-placeholder);pointer-events:none;color:#a6b1c0}.heswe-footer{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-top:1px solid var(--edge);color:#647389;font-size:11px}.heswe-paper .heswe-english{font-family:'Times New Roman',serif;font-size:11pt}.heswe-paper .heswe-hindi{font-family:Mangal,'Nirmala UI','Noto Sans Devanagari',sans-serif;font-size:14pt}@media(max-width:650px){.heswe-toolbar{gap:6px}.heswe-toolbar-group{padding-right:4px}.heswe-actions{margin-left:0}.heswe-paper-wrap{padding:12px 8px}.heswe-paper{min-height:550px;padding:22px 16px}.heswe-shortcut{display:none}}

/* v1.1.0 Gboard-style Roman Hindi suggestions */
.heswe{position:relative;overflow:visible}
.heswe-suggestions{position:absolute;z-index:50;display:flex;align-items:center;gap:4px;padding:6px;background:#fff;border:1px solid #d3deeb;border-radius:9px;box-shadow:0 8px 25px rgba(20,35,60,.16);max-width:calc(100% - 20px);overflow-x:auto;white-space:nowrap}
.heswe-suggestions[hidden]{display:none!important}
.heswe-suggestion{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 11px;min-width:55px;border:0;border-radius:7px;background:transparent;color:#263a54;cursor:pointer;font-family:Mangal,'Nirmala UI',sans-serif}
.heswe-suggestion.is-selected,.heswe-suggestion:hover{background:#eaf2ff}
.heswe-suggestion-hindi{font-size:15px;font-weight:600;line-height:1.45}
.heswe-suggestion small{font-family:system-ui,sans-serif;font-size:9px;color:#6b7b90}

/* v1.2.0: Gboard-like compact popup attached to the actual caret. */
.heswe-suggestions{position:fixed!important;top:0;left:0;z-index:2147483000!important;
 width:max-content!important;max-width:calc(100vw - 12px)!important;
 min-width:0!important;display:flex!important;gap:3px!important;
 padding:4px!important;border:1px solid #ccd8ec!important;border-radius:8px!important;
 background:#fff!important;box-shadow:0 5px 16px rgba(30,45,70,.15)!important;
 overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;}
.heswe-suggestions[hidden]{display:none!important}
.heswe-suggestion{min-width:0!important;min-height:35px!important;height:35px!important;
 padding:5px 9px!important;display:flex!important;flex-direction:row!important;
 flex:0 0 auto!important;white-space:nowrap!important;border:0!important;
 border-radius:6px!important;background:#fff!important;box-shadow:none!important;
 font-family:Mangal,'Nirmala UI',sans-serif!important;text-transform:none!important;}
.heswe-suggestion.is-selected,.heswe-suggestion:hover{background:#e8efff!important}
.heswe-suggestion-hindi{font:500 14px/1.3 Mangal,'Nirmala UI',sans-serif!important}
.heswe-suggestion small{display:none!important}

/* v1.3.0 — compact Roman spelling guidance and Hindi full-stop toolbar */
.heswe-suggestion{height:auto!important;min-height:48px!important;flex-direction:column!important;gap:2px!important;padding:5px 9px!important}
.heswe-suggestion-hindi{line-height:1.15!important}
.heswe-suggestion .heswe-suggestion-roman{display:block!important;font:500 10px/1.15 ui-sans-serif,system-ui,sans-serif!important;color:#60708b!important;letter-spacing:0!important}
.heswe-toolbar button.heswe-purnaviram{font-family:Mangal,'Nirmala UI',sans-serif!important;font-size:13px!important;white-space:nowrap}
.heswe-help-panel{background:#f7faff;border-bottom:1px solid #d8e0ec;padding:13px 17px;font-size:12px;color:#293955;line-height:1.6}
.heswe-help-panel[hidden]{display:none!important}
.heswe-help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:5px 12px;margin-top:8px;font-family:system-ui,'Nirmala UI',sans-serif}
.heswe-help-grid span{background:white;border:1px solid #e4eaf4;border-radius:5px;padding:4px 7px}
.heswe-help-examples{margin-top:9px}.heswe-help-note{margin-top:6px;color:#62748f}

/* v1.3.4: vertical numbered suggestion list (IME-style) */
.heswe-suggestions{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:max-content!important;min-width:125px!important;max-width:min(270px,calc(100vw - 12px))!important;
  gap:1px!important;padding:4px!important;overflow-x:hidden!important;
  overflow-y:auto!important;max-height:min(390px,calc(100vh - 16px))!important;
  border-radius:7px!important;white-space:normal!important;
}
.heswe-suggestion{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;height:auto!important;min-height:42px!important;
  gap:9px!important;padding:4px 10px 4px 7px!important;white-space:nowrap!important;text-align:left!important;
}
.heswe-suggestion-number{display:inline-block!important;flex:0 0 19px!important;color:#52627c!important;font:600 12px/1.3 system-ui,sans-serif!important;text-align:right!important;}
.heswe-suggestion-content{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;}
.heswe-suggestion .heswe-suggestion-roman{display:block!important;font:500 10px/1.3 system-ui,sans-serif!important;color:#718097!important;}

/* v1.3.7: Hindi-only suggestion labels; no Roman spelling beneath candidates. */
.heswe-suggestion .heswe-suggestion-roman{display:none!important}
.heswe-suggestion{min-height:34px!important}

/* v1.3.9: neutral, no-color suggestion popup, including selected/hovered item. */
.heswe .heswe-suggestions{
  background:#fff!important;border:1px solid #d6d6d6!important;
  box-shadow:0 4px 12px rgba(0,0,0,.10)!important;
}
.heswe .heswe-suggestion,
.heswe .heswe-suggestion.is-selected,
.heswe .heswe-suggestion:hover,
.heswe .heswe-suggestion:focus,
.heswe .heswe-suggestion:focus-visible{
  background:#fff!important;background-image:none!important;
  color:#202020!important;outline:none!important;
  box-shadow:none!important;border:0!important;
}
.heswe .heswe-suggestion-number,
.heswe .heswe-suggestion-hindi,
.heswe .heswe-suggestion-content{
  color:#202020!important;
}

/* v1.4.0: Remove decorative box around the page title, preserve title text */
.heswe{border:0!important;border-radius:0!important;box-shadow:none!important;}
.heswe-head{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;}
.heswe-toolbar{border-top:0!important;}

/* v1.4.2 — bold subtitle only; maintain existing layout */
.heswe-head p,.heswe-head p strong{font-weight:700!important;}


/* v1.4.3 — Google Input-like narrow, vertically numbered candidate popup.
   The current Roman composition is visible at the top; no extra English
   romanization appears below individual Hindi candidate words. */
.heswe .heswe-suggestions{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:max-content!important;min-width:112px!important;max-width:min(235px,calc(100vw - 14px))!important;
 padding:0!important;gap:0!important;overflow-x:hidden!important;
 background:#fff!important;border:1px solid #cfcfcf!important;border-radius:3px!important;
 box-shadow:0 5px 13px rgba(0,0,0,.13)!important;
 font:14px/1.3 Arial,system-ui,sans-serif!important;
}
.heswe .heswe-suggestions[hidden]{display:none!important}
.heswe .heswe-ime-query{
 display:block!important;width:100%!important;min-height:27px!important;
 padding:5px 8px 4px!important;border-bottom:1px solid #ececec!important;
 background:#fff!important;color:#222!important;font:14px/1.25 Arial,sans-serif!important;
 direction:ltr!important;text-align:left!important;overflow:hidden!important;
 text-overflow:ellipsis!important;white-space:nowrap!important;
}
.heswe .heswe-ime-list{display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:0!important;padding:3px!important;max-height:300px!important;overflow-y:auto!important;}
.heswe .heswe-ime-list .heswe-suggestion{
 display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;
 width:100%!important;height:28px!important;min-height:28px!important;
 margin:0!important;padding:2px 7px 2px 2px!important;
 gap:6px!important;align-items:center!important;justify-items:start!important;
 background:#fff!important;border:0!important;border-radius:1px!important;
 color:#1b1b1b!important;font-weight:400!important;line-height:1!important;
}
.heswe .heswe-ime-list .heswe-suggestion.is-selected,
.heswe .heswe-ime-list .heswe-suggestion:hover,
.heswe .heswe-ime-list .heswe-suggestion:focus-visible{
 background:#eeeeee!important;color:#1b1b1b!important;outline:none!important;
}
.heswe .heswe-ime-list .heswe-suggestion-number{
 width:26px!important;min-width:26px!important;max-width:26px!important;
 flex:none!important;text-align:right!important;margin:0!important;
 font:13px/1 Arial,sans-serif!important;color:#444!important;
}
.heswe .heswe-ime-list .heswe-suggestion-content{display:block!important;min-width:0!important;}
.heswe .heswe-ime-list .heswe-suggestion-hindi{
 color:#191919!important;font:400 16px/1.3 Mangal,'Nirmala UI',sans-serif!important;
 white-space:nowrap!important;
}


/* v1.4.5 — expanded, readable Typing Help and clear active state */
.heswe .heswe-toolbar button.heswe-typing-help[aria-expanded="true"]{
  background:#2459b6!important;border-color:#2459b6!important;color:#fff!important;
}
.heswe .heswe-toolbar button.heswe-typing-help[aria-expanded="false"]{
  background:#fff!important;border-color:#d9e0eb!important;color:#2d3a55!important;
}
.heswe .heswe-help-panel{padding:17px 20px!important;font-size:13px!important;line-height:1.65!important;}
.heswe .heswe-help-panel>strong{display:block;font-size:14px;margin-bottom:6px;}
.heswe .heswe-help-section{font-weight:750;font-size:12px;color:#35476a;margin-top:13px;margin-bottom:5px;}
.heswe .heswe-help-grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;gap:7px 12px!important;}
.heswe .heswe-help-grid span{font-size:13px;padding:7px 9px!important;}
.heswe .heswe-help-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:6px 13px;}
.heswe .heswe-help-examples span{padding:4px 2px;}
.heswe .heswe-help-note{margin-top:12px!important;font-size:12px!important;}

/* v1.4.7 — expandable Hindi character keyboard, inside Typing Help */
.heswe .heswe-roman-guide[hidden],.heswe .heswe-character-panel[hidden],.heswe .heswe-char-menu[hidden]{display:none!important}
.heswe-help-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.heswe-help-tabs button{background:#fff!important;color:#23334a!important;border:1px solid #cdd6e2!important;border-radius:6px!important;padding:7px 12px!important;cursor:pointer!important;font:600 12px/1.4 system-ui,sans-serif!important}
.heswe-help-tabs button.is-active{background:#2459b6!important;color:#fff!important;border-color:#2459b6!important}
.heswe-char-description{font-size:12px!important;margin:4px 0 12px!important;color:#475569!important}
.heswe-char-section{margin:0 0 15px!important}
.heswe-char-section h3{font:700 13px/1.4 system-ui,sans-serif!important;color:#27354c!important;margin:8px 0!important}
.heswe-char-grid{display:flex;flex-wrap:wrap;gap:7px;align-items:flex-start}
.heswe-char-item{position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #ced6e0;border-radius:5px;min-height:33px}
.heswe-char-insert,.heswe-char-dropdown{display:inline-flex!important;justify-content:center;align-items:center;appearance:none!important;background:#fff!important;color:#17263d!important;border:0!important;box-shadow:none!important;cursor:pointer!important;font:400 14px/1.4 Mangal,'Nirmala UI',system-ui,sans-serif!important;margin:0!important;min-height:32px!important}
.heswe-char-insert{padding:5px 9px!important;border-radius:5px 0 0 5px!important}
.heswe-char-dropdown{padding:4px 7px!important;border-left:1px solid #d4dbe6!important;border-radius:0 5px 5px 0!important;color:#526078!important}
.heswe-char-insert:hover,.heswe-char-dropdown:hover{background:#f4f6fa!important}
.heswe-char-menu{position:absolute;top:calc(100% + 2px);left:0;z-index:100000;min-width:130px;max-height:220px;overflow-y:auto;background:#fff;border:1px solid #cdd6e1;border-radius:5px;box-shadow:0 6px 16px rgba(0,0,0,.15);display:flex;flex-direction:column;padding:3px}
.heswe-char-menu button{display:block!important;width:100%!important;min-height:30px!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#1e293b!important;padding:6px 9px!important;text-align:left!important;white-space:nowrap!important;font:400 13px/1.4 Mangal,'Nirmala UI',system-ui,sans-serif!important;cursor:pointer!important}
.heswe-char-menu button:hover,.heswe-char-menu button:focus-visible{background:#eaf0fd!important}
.heswe-char-keyboard{overflow:visible}

/* v1.4.8: selection help under suggestion box */
.heswe .heswe-ime-hint{
  display:block!important;
  border-top:1px solid #e3e7ee!important;
  margin-top:3px!important;
  padding:5px 8px 3px!important;
  font:500 10px/1.35 system-ui,sans-serif!important;
  color:#5f6e82!important;
  white-space:nowrap!important;
}

/* v1.4.9: show uncommitted Roman text in the document until selection or Space */
.heswe .heswe-paper .heswe-composing{font-family:'Times New Roman',serif!important;font-size:11pt!important;color:inherit!important;text-decoration:underline dotted #9ca9ba;text-underline-offset:3px;}

/* v1.5.1: slightly smaller on-screen typing, matching smaller DOCX export */
.heswe .heswe-paper{font-size:13pt!important;}
.heswe .heswe-paper .heswe-hindi{font-size:13pt!important;}
.heswe .heswe-paper .heswe-english{font-size:10pt!important;}

/* v1.5.8 — user-selectable document font/size, without changing default DOCX behavior */
.heswe .heswe-toolbar .heswe-font-controls{gap:5px;flex-wrap:wrap}
.heswe .heswe-font-controls label{font:600 11px/1.4 system-ui,sans-serif;color:#41516b}
.heswe .heswe-font-controls select{height:31px;max-width:185px;min-width:67px;border:1px solid #d9e0eb;border-radius:5px;padding:0 5px;background:white;color:#27354b;font:12px/1.4 system-ui,sans-serif;cursor:pointer}
.heswe .heswe-paper{font-family:var(--heswe-font-hi,'Mangal')!important;font-size:var(--heswe-size-hi,13pt)!important}
.heswe .heswe-paper .heswe-hindi{font-family:var(--heswe-font-hi,'Mangal')!important;font-size:var(--heswe-size-hi,13pt)!important}
.heswe .heswe-paper .heswe-english,.heswe .heswe-paper .heswe-composing{font-family:var(--heswe-font-en,'Times New Roman')!important;font-size:var(--heswe-size-en,11pt)!important}

/* v1.6.0 — Word-like compact primary toolbar; Font and Size below */
.heswe .heswe-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:visible!important}
.heswe .heswe-toolbar-main{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:5px!important;padding:7px 9px!important;overflow-x:auto!important;scrollbar-width:thin!important;min-width:0!important}
.heswe .heswe-toolbar-main .heswe-toolbar-group{flex:0 0 auto!important;gap:3px!important;padding-right:5px!important}
.heswe .heswe-toolbar-main button{height:30px!important;min-height:30px!important;padding:0 7px!important;font-size:11px!important;white-space:nowrap!important}
.heswe .heswe-toolbar-main .heswe-actions{margin-left:auto!important}
.heswe .heswe-toolbar-font-row{display:flex!important;align-items:center!important;gap:8px!important;padding:6px 12px!important;border-top:1px solid #edf0f5!important;background:#fff!important;min-height:43px!important}
.heswe .heswe-toolbar-font-row .heswe-font-controls{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;border:0!important;padding:0!important}
.heswe .heswe-toolbar-font-row select{max-width:none!important;width:205px!important;min-width:0!important}
.heswe .heswe-toolbar-font-row .heswe-font-size{width:130px!important}
@media(max-width:700px){.heswe .heswe-toolbar-font-row .heswe-font-controls{flex-wrap:wrap!important}.heswe .heswe-toolbar-font-row select{width:155px!important}}

/* v1.6.2: compact Copy / Export / Clear actions, matching simple converter */
.heswe .heswe-toolbar-main .heswe-actions{display:flex!important;align-items:center!important;gap:6px!important;padding-right:0!important;border-right:0!important;flex:0 0 auto!important;margin-left:auto!important}
.heswe .heswe-toolbar-main .heswe-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;height:28px!important;min-height:28px!important;padding:0 9px!important;background:#fff!important;color:#566783!important;border:1px solid #dbe3f0!important;border-radius:7px!important;box-shadow:0 1px 2px rgba(16,24,40,.035)!important;font:500 11px/1 system-ui,sans-serif!important;min-width:0!important;white-space:nowrap!important}
.heswe .heswe-toolbar-main .heswe-actions button[data-action="export"]{background:#fff!important;color:#566783!important;border-color:#dbe3f0!important}
.heswe .heswe-toolbar-main .heswe-actions button[data-action="clear"]{width:27px!important;padding:0!important;font-size:17px!important;color:#8190ab!important}
.heswe .heswe-toolbar-main .heswe-actions button span{color:#91a0b7!important;font-size:11px!important}
.heswe .heswe-toolbar-main .heswe-actions button:hover{background:#f8faff!important}

/* v3 local-learning management, visible only in Typing Help */
.heswe-v3-learning{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:8px;border-bottom:1px solid #e3e7ed;font:12px/1.4 system-ui,sans-serif;color:#64748b}
.heswe-v3-learning button{border:1px solid #ced7e4;background:white;border-radius:5px;color:#263b55;padding:5px 9px;cursor:pointer}

/* v4.1 Teach a Word panel: independent of document layout */
.heswe .heswe-teach-panel[hidden],.heswe .heswe-teach-image-area[hidden]{display:none!important}
.heswe .heswe-teach-open.is-active{background:#255bc1!important;color:white!important}
.heswe .heswe-teach-panel{padding:15px 18px;border:1px solid #dae2ed;background:#f8faff;color:#27364d;font:13px/1.5 system-ui,sans-serif}
.heswe .heswe-teach-title{display:flex;justify-content:space-between;align-items:center}
.heswe .heswe-teach-title strong{font-size:15px}
.heswe .heswe-teach-close{background:#fff;border:1px solid #ccd6e4;border-radius:5px;cursor:pointer;padding:3px 9px}
.heswe .heswe-teach-panel p{margin:6px 0 12px;color:#4e5d72}
.heswe .heswe-teach-fields{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:11px}
.heswe .heswe-teach-fields label{display:flex;flex-direction:column;gap:4px;font-weight:600;flex:1 1 210px}
.heswe .heswe-teach-fields input{width:100%;height:36px;background:white;border:1px solid #c8d3e2;border-radius:6px;padding:7px 9px;font:14px system-ui,sans-serif}
.heswe .heswe-teach-image-label{display:block;margin:6px 0 10px}
.heswe .heswe-teach-image-label input{margin-left:8px;max-width:100%}
.heswe .heswe-teach-preview{display:block;max-width:240px;max-height:130px;object-fit:contain;margin-bottom:6px}
.heswe .heswe-teach-image-area small{display:block;color:#64748b}
.heswe .heswe-teach-ocr,.heswe .heswe-teach-submit{padding:7px 10px;border-radius:5px;border:1px solid #bccadd;background:white;color:#263956;cursor:pointer}
.heswe .heswe-teach-submit{background:#245fba;color:white}
.heswe .heswe-teach-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.heswe .heswe-teach-feedback{font-size:12px;color:#475569}

/* v4.1.3: no image-upload interface in Teach a Word */
 .heswe .heswe-teach-image-label,.heswe .heswe-teach-image-area,.heswe .heswe-teach-ocr{display:none!important}

/* v4.1.7: visible Close button inside Teach a Word */

/* v4.1.8: searchable, read-only approved dictionary in Teach a Word */

/* v4.1.10: compact X in Teach a Word header, matching supplied reference */
.heswe .heswe-teach-title .heswe-teach-close{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  margin:0!important;padding:0!important;border:1px solid #d9e1ef!important;
  border-radius:6px!important;background:#fff!important;color:#8190b1!important;
  box-shadow:0 1px 2px rgba(16,24,40,.06)!important;
  font:400 16px/1 system-ui,sans-serif!important;cursor:pointer!important;
  appearance:none!important;-webkit-appearance:none!important;
}
.heswe .heswe-teach-title .heswe-teach-close span{display:block!important;font:inherit!important;line-height:1!important;transform:translateY(-1px)}
.heswe .heswe-teach-title .heswe-teach-close:hover{background:#f4f7fc!important;color:#4a628b!important}
.heswe .heswe-teach-title .heswe-teach-close:focus-visible{outline:2px solid #3b68c8!important;outline-offset:2px!important}

/* v4.1.14: phonetic or abbreviation submissions */
.heswe .heswe-teach-type-label{display:block;margin:12px 0;font-size:12px;font-weight:600;color:#233455}
.heswe .heswe-teach-type{display:block;margin-top:5px;max-width:460px;width:100%;padding:9px;border:1px solid #cbd5e5;border-radius:6px;background:#fff;color:#223}


/* v4.1.27 - offline-generated QR pairing, no third-party service. */

/* v4.1.30: compact QR and Mobile Typing beside font selectors. */
.heswe .heswe-toolbar-font-row{flex-wrap:wrap!important}

/* v4.1.53 — compact on-screen editor; keep a scrollable writing surface.
   Export styles are handled separately and are not changed. */
.heswe .heswe-paper-wrap{padding:12px 16px 16px!important;overflow-x:auto!important;}
.heswe .heswe-paper{min-height:360px!important;height:clamp(360px,48vh,480px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain; padding:24px 34px!important;scrollbar-gutter:stable;outline:none!important;}
@media(max-width:650px){
 .heswe .heswe-paper-wrap{padding:8px!important;}
 .heswe .heswe-paper{min-height:300px!important;height:clamp(300px,48dvh,440px)!important;padding:16px!important;}
}

.heswe-actions button[data-action="share-whatsapp"]{background:#25d366!important;border-color:#25d366!important;color:#fff!important}.heswe-actions button[data-action="share-whatsapp"]:hover{background:#1ebe5b!important;border-color:#1ebe5b!important}

/* v4.1.55: Reference-sized wide editing surface, without affecting DOCX output. */
.heswe .heswe-paper{width:980px!important;max-width:100%!important;}
@media(max-width:650px){.heswe .heswe-paper{width:100%!important;}}

/* v4.1.56: move WhatsApp share button to the font / mobile row. */
.heswe .heswe-share-font-group{border:0!important;padding:0!important;margin-left:4px!important}
.heswe .heswe-toolbar-font-row .heswe-share-font-group button[data-action="share-whatsapp"]{height:31px!important;min-height:31px!important;padding:0 12px!important;border:1px solid #25d366!important;border-radius:6px!important;background:#25d366!important;color:#fff!important;font:600 12px system-ui,sans-serif!important;cursor:pointer!important;white-space:nowrap!important}
.heswe .heswe-toolbar-font-row .heswe-share-font-group button[data-action="share-whatsapp"]:hover{background:#1ebe5b!important;border-color:#1ebe5b!important}

/* v4.1.57: one Roman spelling, multiple typed Hindi variants. */
.heswe .heswe-teach-roman-label{display:flex;flex-direction:column;gap:5px;font-weight:600;margin:7px 0 12px;max-width:550px}
.heswe .heswe-teach-roman-label input{height:36px;background:#fff;border:1px solid #c8d3e2;border-radius:6px;padding:7px 9px;font:14px system-ui,sans-serif;width:100%}
.heswe .heswe-teach-variants{display:flex;flex-direction:column;gap:9px}
.heswe .heswe-teach-variant-row{display:flex;gap:9px;align-items:end;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #e4eaf2}
.heswe .heswe-teach-variant-row label{display:flex;flex-direction:column;gap:5px;flex:1 1 190px;font-size:12px;font-weight:600}
.heswe .heswe-teach-variant-row input,.heswe .heswe-teach-variant-row select{height:36px;width:100%;border:1px solid #c8d3e2;border-radius:6px;padding:6px 9px;background:#fff;color:#223;font:13px system-ui,sans-serif;margin:0}
.heswe .heswe-teach-remove,.heswe .heswe-teach-add{border:1px solid #ced7e4;border-radius:6px;background:#fff;padding:7px 11px;color:#263956;font:600 12px system-ui,sans-serif;cursor:pointer}
.heswe .heswe-teach-add{margin:11px 0 0}
.heswe .heswe-teach-remove{color:#9d2437}
@media(max-width:600px){.heswe .heswe-teach-variant-row label{flex-basis:100%}}

/* v4.1.58: aligned, fixed-width multi-suggestion rows with blank new inputs. */
.heswe .heswe-teach-roman-label{width:100%!important;max-width:500px!important;}
.heswe .heswe-teach-variants{width:100%;max-width:1080px;gap:0!important;}
.heswe .heswe-teach-variant-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 86px;column-gap:12px!important;row-gap:6px!important;align-items:end!important;flex-wrap:nowrap!important;width:100%;padding:9px 0!important;}
.heswe .heswe-teach-variant-row label{min-width:0!important;width:100%!important;flex:auto!important;margin:0!important;}
.heswe .heswe-teach-variant-row input,.heswe .heswe-teach-variant-row select{width:100%!important;max-width:100%!important;box-sizing:border-box!important;height:36px!important;}
.heswe .heswe-teach-variant-row:first-child::after{content:"";display:block;width:86px;height:36px;}
.heswe .heswe-teach-variant-row .heswe-teach-remove{position:static!important;display:inline-flex;align-items:center;justify-content:center;min-width:0!important;width:86px!important;height:36px!important;padding:0 7px!important;margin:0!important;box-sizing:border-box!important;white-space:nowrap;}
@media(max-width:650px){
 .heswe .heswe-teach-variant-row{grid-template-columns:minmax(0,1fr)!important;}
 .heswe .heswe-teach-variant-row:first-child::after{display:none!important;}
 .heswe .heswe-teach-variant-row .heswe-teach-remove{justify-self:start;}
}

/* v4.1.61 Emoji picker in secondary toolbar */
.heswe .heswe-emoji-group{position:relative!important;overflow:visible!important; border-right:0!important; padding:0!important;}
.heswe .heswe-toolbar-font-row .heswe-emoji-open{height:31px!important;min-height:31px!important;padding:0 10px!important;border:1px solid #d9e0eb!important;background:#fff!important;color:#263955!important;font:600 12px system-ui,sans-serif!important;border-radius:6px!important;cursor:pointer!important;}
.heswe .heswe-emoji-picker:not([hidden]){display:grid!important;grid-template-columns:repeat(6,1fr);gap:3px;position:absolute;top:calc(100% + 4px);right:0;width:232px;z-index:50;padding:8px;background:#fff;border:1px solid #cbd5e1;border-radius:9px;box-shadow:0 8px 30px #0002;}
.heswe .heswe-emoji-picker[hidden]{display:none!important;}
.heswe .heswe-emoji-picker button{border:0!important;background:#fff!important;font-size:21px!important;padding:4px!important;min-height:35px!important;cursor:pointer!important;}
.heswe .heswe-emoji-picker button:hover{background:#eef4ff!important;}

/* v4.1.62: WhatsApp-like native emoji size and expanded categorized picker. */
.heswe .heswe-emoji-picker:not([hidden]){display:flex!important;flex-direction:column!important;gap:7px!important;width:min(380px,calc(100vw - 30px))!important;max-height:350px!important;overflow:hidden!important;left:auto!important;right:0!important;}
.heswe .heswe-emoji-tabs{display:flex;flex:0 0 auto;gap:4px;max-width:100%;overflow-x:auto;padding-bottom:3px;}
.heswe .heswe-emoji-tabs button{flex:0 0 auto;min-height:25px!important;padding:3px 7px!important;font:600 11px system-ui,sans-serif!important;border:1px solid #e0e6ee!important;border-radius:5px!important;}
.heswe .heswe-emoji-search{flex:0 0 auto;width:100%;min-height:30px;border:1px solid #cbd5e1;border-radius:6px;padding:4px 8px;font:12px system-ui,sans-serif;}
.heswe .heswe-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;overflow-y:auto;min-height:60px;padding:2px;}
.heswe .heswe-emoji-grid button.heswe-emoji-option{font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif!important;font-size:24px!important;font-weight:400!important;line-height:1.1!important;min-height:38px!important;height:38px!important;padding:2px!important;text-align:center!important;}
/* Emoji in document retain text size and native Unicode glyphs, rather than oversized replacement images. */

/* v4.1.64: prefer native full-color emoji, render larger for a clearer picker preview.
   WhatsApp uses its own emoji artwork only inside WhatsApp; Unicode values stay unchanged. */
.heswe .heswe-emoji-grid button.heswe-emoji-option{font-family:'Apple Color Emoji','Noto Color Emoji','Segoe UI Emoji',sans-serif!important;font-variant-emoji:emoji!important;font-size:30px!important;line-height:1.15!important;height:46px!important;min-height:46px!important;padding:4px!important;border-radius:7px!important}
.heswe .heswe-emoji-grid button.heswe-emoji-option:hover{background:#edf7ef!important}
.heswe .heswe-emoji-open{font-family:'Apple Color Emoji','Noto Color Emoji','Segoe UI Emoji',system-ui,sans-serif!important;font-variant-emoji:emoji!important}

/* v4.1.65: English uses Arial 13pt by default, matching DOCX export. */
.heswe .heswe-paper .heswe-english,.heswe .heswe-paper .heswe-composing{font-family:var(--heswe-font-en,Arial)!important;font-size:var(--heswe-size-en,13pt)!important}

/* v4.1.75: Typing Help removed from the UI, suggestion keyboard hint removed. */
.heswe .heswe-help-panel,.heswe .heswe-ime-hint{display:none!important}
