@font-face{font-family:OfficeVazir;src:url("./fonts/vazirmatn.woff2") format("woff2");font-weight:100 900;font-display:swap}
.office-support-page{margin:0;min-height:100dvh;background:#eef4f5;color:#173342;font-family:OfficeVazir,system-ui,sans-serif}
#office-support{max-width:800px;margin:0 auto;padding:clamp(10px,4vw,44px)}
.ofp-panel,.ofp-toggle{font-family:OfficeVazir,system-ui,sans-serif;direction:rtl;color:#173342}
.ofp-panel{box-sizing:border-box;padding:0;border:1px solid #bfd0d7;border-radius:16px;background:#fff;box-shadow:0 14px 42px #102a4430;overflow:hidden}
dialog.ofp-panel{position:fixed;width:min(460px,calc(100vw - 20px));max-height:calc(100dvh - 20px);inset:auto auto 12px 12px;margin:0;z-index:2000}
.ofp-panel::backdrop{background:#102a4466}
.ofp-toggle{position:fixed;inset:auto auto max(88px,calc(74px + env(safe-area-inset-bottom))) 14px;z-index:42;background:#0c615c;color:#fff;
  padding:10px 16px;border:1px solid #0c615c;border-radius:28px;font-weight:750;box-shadow:0 4px 14px #14384640;cursor:pointer}
.ofp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 16px;background:#0d514e;color:white}
.ofp-brand{min-width:0;overflow-wrap:anywhere}.ofp-head h1{margin:0;font-size:17px}.ofp-head span{font-size:12px;opacity:.9}
.ofp-panel button{font:inherit;cursor:pointer}
.ofp-close,.ofp-topic,.ofp-reset{border:1px solid #aac4c5;border-radius:8px;padding:5px 9px;background:#fff;color:#0d514e}
.ofp-log{height:clamp(100px,36dvh,370px);padding:12px;overflow:auto;display:flex;flex-direction:column;gap:8px;background:#f3f8f8}
.ofp-bubble{padding:8px 10px;border:1px solid #d8e4e5;border-radius:10px;align-self:start;background:#fff;max-width:85%;line-height:1.7;overflow-wrap:anywhere}
.ofp-bubble.visitor{align-self:end;background:#e0f2ee}
.ofp-bubble b{font-size:11px;color:#315c5e}.ofp-bubble p{margin:2px 0;font-size:13px;white-space:pre-wrap}
.ofp-status{margin:6px 12px;color:#355253;font-size:12px}
.ofp-topics{display:flex;flex-wrap:wrap;gap:5px;padding:3px 12px}.ofp-topics button{font-size:12px;max-width:100%;overflow-wrap:anywhere}
.ofp-form{display:flex;gap:7px;padding:8px 12px 12px;align-items:flex-end}
.ofp-input{flex:1;min-width:0;max-height:100px;font:inherit;padding:7px;border:1px solid #aebfc4;border-radius:8px;resize:vertical}
.ofp-send{flex:none;background:#0d514e;color:#fff;border:1px solid #0d514e;border-radius:8px;padding:8px 11px}
.ofp-send:disabled{opacity:.6}.ofp-reset{margin:0 12px 10px}
.ofp-panel :focus-visible,.ofp-toggle:focus-visible{outline:2px solid #267a9d;outline-offset:2px}
@media(max-height:530px){.ofp-log{height:27dvh}.ofp-topics{max-height:52px;overflow:auto}}
