.expert-page{padding:20px 14px calc(90px + env(safe-area-inset-bottom));max-width:760px;margin:auto;color:var(--txt,#eef2f7)}
.expert-article{font-size:16px;line-height:1.85;overflow-wrap:anywhere;color:var(--txt,#eef2f7)}
.expert-article h1{font-size:25px;line-height:1.4;margin:0 0 22px;white-space:pre-wrap;text-align:center}
.expert-article h2{font-size:20px;line-height:1.5;margin:20px 0 10px}
.expert-text{margin:16px 0;white-space:pre-wrap}
.expert-article figure{margin:20px 0}
.expert-image{display:block;margin-left:auto;margin-right:auto;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.expert-article img{display:block;width:100%;height:auto;max-width:100%;border-radius:10px}
.expert-article figcaption{font-size:13px;color:var(--txt3,#99a3b6);text-align:center;margin-top:8px}
.expert-empty{padding:70px 12px;text-align:center;color:var(--txt3,#99a3b6)}
.expert-lightbox{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;padding:50px 8px 15px;border:0;background:#080b12;color:white;box-sizing:border-box}
.expert-lightbox::backdrop{background:rgba(0,0,0,.9)}
.expert-lightbox img{display:block;max-width:100%;height:auto;margin:auto;touch-action:pan-x pan-y pinch-zoom}
.expert-close{position:fixed;top:12px;right:16px;padding:8px 16px;background:#263247;color:white;border:0;border-radius:8px;z-index:1}
.expert-editor{max-width:1000px;margin:auto}
.expert-editor input,.expert-editor textarea{width:100%;box-sizing:border-box;margin:8px 0;max-width:100%;background:#111827;color:#eef2f7;border:1px solid #354055;border-radius:7px;padding:10px;font:inherit}
.expert-block{border:1px solid var(--line,#354055);border-radius:10px;margin:16px 0;padding:12px}
.expert-block>img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block;margin:auto}
.expert-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.expert-actions button{cursor:pointer;padding:8px 12px;color:var(--txt,#eef2f7);background:var(--card,#1b2535);border:1px solid var(--line,#354055);border-radius:6px}
.expert-preview{box-sizing:border-box;width:375px;max-width:100%;margin:20px auto;background:#0b111c;padding:18px 14px;border:1px solid #354055;border-radius:16px}
.expert-preview[hidden]{display:none}
.tabbar a{min-width:0;white-space:nowrap}.tabbar a[hidden]{display:none}
@media(max-width:380px){.tabbar a{font-size:9px}.tabbar a .ico{font-size:18px}.expert-article h1{font-size:23px}}

.expert-rich-input{min-height:180px;padding:12px;border:1px solid #354055;border-radius:8px;background:#111827;white-space:pre-wrap;outline:none;margin-top:10px}
.expert-rich-input:focus{border-color:#4b9fff}
.expert-toolbar label,.expert-editor>.expert-actions label{display:flex;align-items:center;gap:6px}
.expert-editor input[type=color]{width:42px;height:34px;padding:2px;margin:0}
.expert-editor select{background:#111827;color:#eef2f7;padding:7px;border:1px solid #354055;border-radius:6px;max-width:100%}
.expert-rich-input h2{margin:12px 0;font-size:20px}

.expert-image-controls label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}
.expert-editor input[type=range]{width:150px;max-width:100%;padding:0;margin:8px 0}
.expert-image-controls output{min-width:42px}
.expert-article figcaption{width:100%;overflow-wrap:anywhere}
