/* Text story sharing panel; article reading and hero styles remain independent. */
.text-story-dialog{box-sizing:border-box;width:min(94vw,540px);max-height:92vh;max-height:92dvh;padding:0;border:1px solid #7d633d;border-radius:20px;background:#10151e;color:#edf2f8;box-shadow:0 24px 90px #0009;font-family:Vazirmatn,Tahoma,sans-serif;overflow:auto}
.text-story-dialog::backdrop{background:#03070be8;backdrop-filter:blur(6px)}
.text-story-panel{padding:22px;position:relative}
.text-story-panel h2{font-size:21px;margin:0 0 10px;padding-inline-end:36px}
.text-story-close{position:absolute;inset-inline-end:14px;top:14px;min-width:36px;min-height:36px;background:#232d3c;color:#fff;border:1px solid #566172;border-radius:50%;font-size:24px;cursor:pointer}
.text-story-status{font-size:14px;line-height:1.8;color:#d3dce9}
.text-story-preview{display:flex;justify-content:center;min-height:100px}
.text-story-preview img{display:block;max-width:100%;width:auto;max-height:48vh;max-height:48dvh;border-radius:10px}
.text-story-navigation{display:flex;justify-content:center;align-items:center;gap:20px;margin:15px 0}
.text-story-navigation span{font-size:14px;font-variant-numeric:tabular-nums}
.text-story-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.text-story-panel button{font:inherit;cursor:pointer}
.text-story-navigation button,.text-story-buttons button{min-height:44px;padding:10px 14px;border:1px solid #64523b;border-radius:10px;background:#202733;color:#f7e2bd;font-size:14px;line-height:1.5}
.text-story-buttons [data-text-share-all]{background:#d1ab64;color:#12151b;font-weight:800;grid-column:1/-1}
.text-story-panel button:disabled{opacity:.45;cursor:wait}
.text-story-panel button:focus-visible{outline:3px solid #f3ca7d;outline-offset:3px}
.text-story-help{font-size:13px;line-height:1.9;color:#b8c4d4;margin:16px 0 0}
.text-story-panel [hidden]{display:none!important}
@media(max-width:420px){.text-story-panel{padding:18px}.text-story-buttons{grid-template-columns:1fr}.text-story-preview img{max-height:43dvh}}
