/* Hibr v1.13.3 — rich editor */
.hibr-rich-editor{border:1px solid #dbe6e9;border-radius:18px;background:#fff;overflow:visible;box-shadow:0 10px 30px rgba(15,68,82,.05);position:relative;margin:8px 0 18px}
.hibr-rich-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px;border-bottom:1px solid #e4edef;background:#f8fbfc;border-radius:18px 18px 0 0;position:sticky;top:0;z-index:12}
.rich-tool-group{display:flex;gap:4px;padding-inline-end:7px;border-inline-end:1px solid #dfe9ec}.rich-tool-group:last-child{border:0;padding:0}
.hibr-rich-toolbar button{border:1px solid #d8e5e8;background:#fff;color:#173346;border-radius:9px;padding:7px 9px;min-height:36px;font:inherit;font-size:.9rem;cursor:pointer;white-space:nowrap}.hibr-rich-toolbar button:hover,.hibr-rich-toolbar button:focus{background:#eaf5f7;border-color:#9bc8ce;outline:0}.hibr-rich-toolbar button:active{transform:translateY(1px)}
.hibr-rich-surface{min-height:360px;padding:24px 28px;outline:0;font-size:1.04rem;line-height:1.95;color:#172f40;background:#fff;overflow-wrap:anywhere}.hibr-rich-surface:empty:before{content:attr(data-placeholder);color:#9aaab4;pointer-events:none}.hibr-rich-surface h2,.hibr-rich-surface h3,.hibr-rich-surface h4{line-height:1.45;margin:1.3em 0 .5em;color:#102b3c}.hibr-rich-surface p{margin:.65em 0}.hibr-rich-surface blockquote{margin:1em 0;padding:10px 16px;border-inline-start:4px solid #169b90;background:#f2f9f8;border-radius:10px}.hibr-rich-surface pre{direction:ltr;text-align:left;background:#0d1e28;color:#e8f2f5;padding:15px;border-radius:12px;overflow:auto}.hibr-rich-surface code{font-family:Consolas,Monaco,monospace}.hibr-rich-surface hr{border:0;border-top:1px solid #d6e3e6;margin:24px 0}.hibr-rich-surface a{color:#087f7a;text-decoration:underline}.hibr-rich-surface figure{margin:18px auto;text-align:center}.hibr-rich-surface figure img,.hibr-rich-surface>img{display:block;max-width:100%;height:auto;border-radius:14px;margin:10px auto}.hibr-rich-surface figcaption{font-size:.86rem;color:#73858f;margin-top:7px}.hibr-rich-surface table{width:100%;border-collapse:collapse;margin:18px 0;display:block;overflow-x:auto}.hibr-rich-surface td,.hibr-rich-surface th{border:1px solid #d7e4e7;padding:9px 11px;min-width:100px}.hibr-rich-surface th{background:#eef7f8}
.hibr-rich-meta{display:flex;justify-content:space-between;gap:12px;padding:8px 13px;border-top:1px solid #edf2f3;color:#758893;font-size:.78rem;background:#fcfdfd;border-radius:0 0 18px 18px}
.hibr-rich-emoji{position:absolute;z-index:25;top:58px;inset-inline-end:18px;display:grid;grid-template-columns:repeat(7,38px);gap:5px;padding:10px;background:#fff;border:1px solid #dbe6e9;border-radius:14px;box-shadow:0 18px 45px rgba(14,45,58,.18)}.hibr-rich-emoji[hidden]{display:none}.hibr-rich-emoji button{border:0;background:#f4f8f9;border-radius:8px;height:36px;font-size:1.15rem;cursor:pointer}
.hibr-rich-library{position:absolute;z-index:30;left:12px;right:12px;top:60px;background:#fff;border:1px solid #d7e4e7;border-radius:16px;padding:14px;box-shadow:0 22px 60px rgba(10,42,55,.2);max-height:520px;overflow:auto}.hibr-rich-library[hidden]{display:none}.rich-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.rich-library-head div{display:grid;gap:2px}.rich-library-head small{color:#78909a}.rich-library-head>button,.rich-preview-head>button{border:0;background:#eef5f6;border-radius:50%;width:34px;height:34px;font-size:1.2rem;cursor:pointer}.rich-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:12px}.rich-library-item{border:1px solid #deeaec;background:#fff;border-radius:12px;padding:7px;display:grid;gap:6px;cursor:pointer;text-align:center}.rich-library-item:hover{border-color:#55aaa8;background:#f4fbfa}.rich-library-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px}.rich-library-item span{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hibr-rich-preview{position:fixed;z-index:1000;inset:0;background:rgba(4,22,30,.62);padding:4vh 18px;overflow:auto}.hibr-rich-preview[hidden]{display:none}.rich-preview-card{max-width:900px;margin:auto;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.3);overflow:hidden}.rich-preview-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e3ecee;position:sticky;top:0;background:#fff;z-index:2}.rich-preview-body{padding:28px;min-height:250px}
.v1133-current-cover{display:block;max-width:260px;max-height:160px;object-fit:cover;border-radius:14px;margin:10px 0}.v1133-post-edit-tools{margin:14px 0;display:flex;justify-content:flex-start}.v1133-edit-page .compose-panel{min-width:0}
.story-body h2,.story-body h3,.story-body h4{line-height:1.45;margin:1.4em 0 .55em}.story-body blockquote{padding:12px 18px;border-inline-start:4px solid #169b90;background:#f3f9f8;border-radius:12px;margin:1.1em 0}.story-body pre{direction:ltr;text-align:left;background:#0d1e28;color:#edf7f8;border-radius:14px;padding:16px;overflow:auto}.story-body code{font-family:Consolas,Monaco,monospace}.story-body table{width:100%;border-collapse:collapse;margin:20px 0;display:block;overflow-x:auto}.story-body td,.story-body th{border:1px solid #d6e3e6;padding:10px 12px;min-width:105px}.story-body th{background:#eef7f8}.story-body figure{text-align:center;margin:22px auto}.story-body figure img,.story-body>img{max-width:100%;height:auto;border-radius:14px}.story-body figcaption{color:#748791;font-size:.86rem;margin-top:7px}.story-body hr{border:0;border-top:1px solid #d8e4e6;margin:28px 0}
@media(max-width:760px){.hibr-rich-editor{border-radius:14px;margin-inline:-2px}.hibr-rich-toolbar{position:sticky;top:0;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;border-radius:14px 14px 0 0;padding:8px}.hibr-rich-toolbar::-webkit-scrollbar{display:none}.rich-tool-group{flex:0 0 auto}.hibr-rich-toolbar button{min-height:38px;padding:7px 10px}.hibr-rich-surface{min-height:330px;padding:18px 15px;font-size:1rem;line-height:1.9}.hibr-rich-meta{display:grid;gap:3px}.hibr-rich-library{position:fixed;inset:8vh 10px 84px;max-height:none}.rich-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hibr-rich-emoji{position:fixed;top:auto;bottom:86px;left:10px;right:10px;grid-template-columns:repeat(7,1fr)}.rich-preview-body{padding:18px 14px}.v1133-edit-page .compose-intro{margin-bottom:10px}}


/* v1.13.3.1 mobile overflow hotfix */
.compose-layout,.compose-layout *{box-sizing:border-box}
.mobile-ready-composer,.mobile-ready-composer .compose-panel,.mobile-ready-composer form,.mobile-ready-composer .compose-section,.mobile-ready-composer .form-grid,.mobile-ready-composer .upload-note,.mobile-ready-composer .submit-row,.mobile-ready-composer .mobile-compose-publishbar{max-width:100%}
.mobile-ready-composer{min-width:0;overflow-x:hidden}
.mobile-ready-composer .compose-panel{min-width:0;overflow:hidden}
.mobile-ready-composer .compose-section{min-width:0;overflow:hidden}
.mobile-ready-composer input,.mobile-ready-composer select,.mobile-ready-composer textarea,.mobile-ready-composer .input,.mobile-ready-composer .btn{max-width:100%}
.mobile-ready-composer .submit-row,.mobile-ready-composer .mobile-compose-publishbar{align-items:stretch}
.mobile-ready-composer .submit-row .btn,.mobile-ready-composer .mobile-compose-publishbar .btn{min-width:0}
@media(max-width:760px){
  .mobile-ready-composer{padding-inline:0;margin-inline:0;overflow-x:hidden}
  .mobile-ready-composer .compose-intro,.mobile-ready-composer .compose-panel{min-width:0;width:100%;margin-inline:0}
  .mobile-ready-composer .compose-panel{padding-inline:10px}
  .mobile-ready-composer .compose-section{width:100%;margin-inline:0;padding:14px 12px;border-radius:16px}
  .mobile-ready-composer .compose-section-head{gap:10px;min-width:0}
  .mobile-ready-composer .compose-section-head > div{min-width:0}
  .mobile-ready-composer .compose-section-head b,.mobile-ready-composer .compose-section-head small{display:block;overflow-wrap:anywhere}
  .mobile-ready-composer .form-grid{grid-template-columns:minmax(0,1fr)!important;width:100%;gap:12px}
  .mobile-ready-composer .form-grid > *{min-width:0}
  .mobile-ready-composer .cover-note,.mobile-ready-composer .upload-note,.mobile-ready-composer .field-help{overflow-wrap:anywhere}
  .mobile-ready-composer .hibr-rich-editor{margin-inline:0;max-width:100%}
  .mobile-ready-composer .hibr-rich-toolbar{padding:8px 6px}
  .mobile-ready-composer .hibr-rich-surface{padding:16px 12px}
  .mobile-ready-composer .submit-row{display:flex;flex-direction:column;gap:10px;width:100%;margin-inline:0}
  .mobile-ready-composer .submit-row > *{width:100%;min-width:0}
  .mobile-ready-composer .submit-row .btn{width:100%}
  .mobile-ready-composer .mobile-compose-publishbar{left:10px;right:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;padding:0;background:transparent}
  .mobile-ready-composer .mobile-compose-publishbar .btn{width:100%;padding-inline:12px}
}
