
    #hm-story-editor{color-scheme:light dark;--he-paper:light-dark(#f8f2e9,#25211e);--he-panel:light-dark(#fffaf4,#322b26);--he-ink:light-dark(#302925,#f0e5d7);--he-muted:light-dark(#76665c,#c5b3a2);--he-line:light-dark(#e2d6c8,#54463c);--he-wine:light-dark(#80434c,#d89da6);--he-on:light-dark(#fffaf4,#342027);--he-soft:light-dark(#efe0dc,#473137);font-family:'Noto Sans Arabic',Tahoma,sans-serif;color:var(--he-ink);padding:18px 0;}
    #hm-story-editor *{box-sizing:border-box;}#hm-story-editor .he-phone{max-width:430px;margin:auto;background:var(--he-paper);border:2px solid var(--he-ink);border-radius:26px;overflow:hidden;}
    #hm-story-editor header{display:flex;align-items:center;gap:14px;padding:16px 20px;background:var(--he-panel);border-bottom:1px solid var(--he-line);}#hm-story-editor header img{width:44px;height:44px;border-radius:6px;}#hm-story-editor header span{font-size:11px;color:var(--he-muted);}#hm-story-editor h2{font-size:17px;font-weight:500;margin:0;}#hm-story-editor h3{font-size:15px;font-weight:500;margin:0 0 12px;}
    #hm-story-editor button,#hm-story-editor input,#hm-story-editor textarea,#hm-story-editor select{font:inherit;color:inherit;}#hm-story-editor button{min-height:44px;border:0;border-radius:8px;padding:8px 13px;background:transparent;}#hm-story-editor nav{display:flex;padding:8px 18px;gap:8px;border-bottom:1px solid var(--he-line);background:var(--he-panel);}#hm-story-editor nav button{flex:1;font-size:13px;}#hm-story-editor [aria-pressed=true]{background:var(--he-soft);color:var(--he-wine);}
    #hm-story-editor main{padding:22px 20px;}#hm-story-editor label{display:block;font-size:13px;margin:14px 0 7px;}#hm-story-editor input:not([type=radio]),#hm-story-editor textarea,#hm-story-editor select{width:100%;background:var(--he-panel);border:1px solid var(--he-line);border-radius:9px;padding:10px 12px;font-size:16px;}#hm-story-editor textarea{resize:vertical;min-height:110px;line-height:1.65;}#hm-story-editor #he-text{min-height:280px;font:500 22px/1.65 'Noto Naskh Arabic',serif;}
    #hm-story-editor .he-note{font-size:12px;line-height:1.8;color:var(--he-muted);margin:8px 0 12px;}#hm-story-editor .he-section{padding-top:18px;margin-top:22px;border-top:1px solid var(--he-line);}#hm-story-editor .he-options{display:flex;flex-wrap:wrap;gap:8px;}#hm-story-editor .he-options label{display:flex;align-items:center;gap:7px;margin:0;min-height:44px;font-size:13px;}#hm-story-editor .he-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
    #hm-story-editor .he-primary{background:var(--he-wine);color:var(--he-on);}#hm-story-editor .he-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px;}#hm-story-editor .he-actions button{flex:1;font-size:13px;}#hm-story-editor #he-status{padding:14px 20px;margin:0;background:var(--he-panel);font-size:12px;line-height:1.8;color:var(--he-muted);border-top:1px solid var(--he-line);}
    #hm-story-editor .he-reader h2{font:500 29px/1.6 'Noto Naskh Arabic',serif;margin:22px 0;}#hm-story-editor .he-reader p{font:500 22px/1.65 'Noto Naskh Arabic',serif;margin:0 0 14px;white-space:pre-wrap;}#hm-story-editor .he-gate,#hm-story-editor .he-confirm{padding:18px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:12px;margin-top:22px;}#hm-story-editor .he-gate p,#hm-story-editor .he-confirm p{font:13px/1.85 'Noto Sans Arabic',sans-serif;}
    #hm-story-editor .he-summary{margin:0;}#hm-story-editor .he-summary div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;font-size:12px;}#hm-story-editor .he-summary dd{margin:0;}#hm-story-editor [hidden]{display:none!important;}#hm-story-editor .he-error{color:var(--he-wine);font-size:13px;}
    @media(max-width:360px){#hm-story-editor main{padding:18px 14px;}#hm-story-editor .he-row{grid-template-columns:1fr;}}
    #hm-story-editor .he-success{padding:14px;background:var(--he-soft);color:var(--he-ink);border-radius:10px;margin-bottom:18px;font-size:13px;line-height:1.8;}
    #hm-story-editor .he-story-record{padding:18px 0;border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-list-tabs{margin:24px 0 12px;gap:2px;}
    #hm-story-editor .he-list-tabs button{flex:1;padding:8px 4px;font-size:12px;}
    #hm-story-editor button:disabled{opacity:.6;}
    #hm-story-editor #he-back{font-size:12px;color:var(--he-wine);padding:8px;}
    #hm-story-editor .he-success h3{font-size:17px;line-height:1.8;}
    #hm-story-editor #he-title{min-height:48px;pointer-events:auto;user-select:text;}
    #hm-story-editor #he-feedback{background:var(--he-soft);color:var(--he-ink);padding:14px 18px;border-bottom:2px solid var(--he-wine);font-size:14px;line-height:1.7;}
    #hm-story-editor .he-dense-list{margin-top:14px;border:1px solid var(--he-line);border-radius:10px;overflow:hidden;}
    #hm-story-editor .he-story-record{display:flex;width:100%;align-items:center;gap:10px;text-align:right;border-radius:0;padding:10px 12px;min-height:66px;background:var(--he-panel);border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-story-record:last-child{border-bottom:0;}
    #hm-story-editor .he-story-record:nth-child(even){background:var(--he-paper);}
    #hm-story-editor .he-serial{display:flex;align-items:center;justify-content:center;background:var(--he-soft);color:var(--he-wine);width:30px;height:30px;flex:0 0 30px;border-radius:6px;font-size:12px;}
    #hm-story-editor .he-record-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
    #hm-story-editor .he-record-content strong{font-size:14px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;}
    #hm-story-editor .he-record-date{font-size:11px;line-height:1.5;color:var(--he-muted);}
    #hm-story-editor .he-story-record{height:44px;min-height:44px;padding:4px 10px;gap:8px;}
    #hm-story-editor .he-record-content{display:block;overflow:hidden;}
    #hm-story-editor .he-record-content strong{display:block;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    #hm-story-editor .he-record-date{display:none;}
    #hm-story-editor .he-serial{width:24px;height:24px;flex-basis:24px;font-size:11px;border-radius:4px;}
    #hm-story-editor .he-search-count{font-size:11px;line-height:1.5;color:var(--he-muted);margin:10px 0;}
    #hm-story-editor .he-story-table{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--he-panel);}
    #hm-story-editor .he-story-table th{font-size:11px;font-weight:500;text-align:right;padding:6px 8px;background:var(--he-soft);}
    #hm-story-editor .he-story-table th:first-child{width:46px;}
    #hm-story-editor .he-story-table .he-story-record{display:table-row;height:30px;min-height:0;padding:0;border-bottom:1px solid var(--he-line);background:var(--he-panel);}
    #hm-story-editor .he-story-table .he-story-record:nth-child(even){background:var(--he-paper);}
    #hm-story-editor .he-story-table td{padding:0 8px;font-size:12px;line-height:1.3;height:30px;vertical-align:middle;}
    #hm-story-editor .he-story-table .he-table-open{display:block;width:100%;min-height:30px;height:30px;padding:3px 0;border:0;border-radius:0;text-align:right;font-size:13px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    #hm-story-editor .he-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:12px;gap:8px;}

    #hm-story-editor .he-role-demo{max-width:430px;margin:0 auto 12px;padding:8px 12px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:10px;display:flex;align-items:center;gap:5px;font-size:12px;}
    #hm-story-editor .he-role-demo button{font-size:12px;flex:1;padding:6px;}
    #hm-story-editor .he-library-card{border:1px solid var(--he-line);border-radius:10px;background:var(--he-panel);margin:14px 0;overflow:hidden;}
    #hm-story-editor .he-library-open{display:block;width:100%;text-align:right;padding:18px;}
    #hm-story-editor .he-library-open h3{font:500 25px/1.5 'Noto Naskh Arabic',serif;}
    #hm-story-editor .he-library-open p{font-size:13px;line-height:1.8;color:var(--he-muted);margin:0;}
    #hm-story-editor .he-library-card>button:last-child{color:var(--he-wine);font-size:12px;}
    #hm-story-editor .he-page{font:500 22px/1.65 'Noto Naskh Arabic',serif;height:var(--he-page-height,560px);padding:24px 20px;overflow:hidden;touch-action:pan-y;box-sizing:border-box;}
    #hm-story-editor .he-page h2{font:500 29px/1.6 'Noto Naskh Arabic',serif;margin:0 0 22px;}
    #hm-story-editor .he-page p{font:inherit;margin:0 0 14px;}
    #hm-story-editor .he-measure{position:absolute;visibility:hidden;pointer-events:none;left:0;top:0;}
    #hm-story-editor main:has(#he-reading-page){padding:0;}
    #hm-story-editor .he-reader-tools,#hm-story-editor .he-reader-footer{display:flex;justify-content:space-between;align-items:center;background:var(--he-panel);border-bottom:1px solid var(--he-line);padding:6px 12px;font-size:12px;}
    #hm-story-editor .he-reader-tools button,#hm-story-editor .he-reader-footer button{font-size:12px;}
    #hm-story-editor .he-reader-footer{border-top:1px solid var(--he-line);border-bottom:0;}
    #hm-story-editor .he-reader-size{padding:12px 18px;background:var(--he-panel);}
    #hm-story-editor .he-night{--he-paper:#25211e;--he-panel:#322b26;--he-ink:#f0e5d7;--he-muted:#c5b3a2;--he-line:#54463c;--he-wine:#d89da6;--he-on:#342027;--he-soft:#473137;color:var(--he-ink);}
    #hm-story-editor .he-thread-comment{padding:14px 0;border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-thread-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:8px;}
    #hm-story-editor .he-thread-heading strong{font-weight:500;}
    #hm-story-editor .he-thread-heading button{font-size:22px;}
    #hm-story-editor .he-thread-comment p,#hm-story-editor .he-thread-reply p{font-size:14px;line-height:1.8;margin:6px 0;overflow-wrap:anywhere;white-space:pre-wrap;}
    #hm-story-editor .he-thread-reply{border-right:2px solid var(--he-line);padding:8px 12px 0 0;margin:8px 10px 0 0;}
    #hm-story-editor .he-thread-controls{display:flex;gap:14px;}
    #hm-story-editor .he-thread-controls button{font-size:12px;color:var(--he-muted);padding:4px;}
    #hm-story-editor .he-comment-form{margin-top:14px;background:var(--he-panel);padding:12px;border:1px solid var(--he-line);border-radius:10px;}
    #hm-story-editor .he-comment-actions{background:var(--he-soft);padding:6px;border-radius:8px;font-size:12px;}
    #hm-story-editor .he-comment-actions[hidden]{display:none;}
    #hm-story-editor .he-comment-actions button{font-size:12px;}
    #hm-story-editor .he-reader-footer button{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--he-wine);}
    #hm-story-editor .he-reaction-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:10px 12px;border-top:1px solid var(--he-line);}
    #hm-story-editor .he-reaction{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:10px 2px;font-size:12px;color:var(--he-wine);}
    #hm-story-editor .he-reaction[aria-pressed=true]{background:var(--he-soft);color:var(--he-wine);}
    #hm-story-editor .he-reaction[aria-pressed=true] svg{stroke-width:2.5;}
    #hm-story-editor .he-reader-footer svg,#hm-story-editor .he-reaction svg{flex-shrink:0;width:21px;height:21px;}
    #hm-story-editor .he-thread-comment{padding:8px 0;}
    #hm-story-editor .he-thread-heading{line-height:1.4;min-height:30px;}
    #hm-story-editor .he-thread-heading button{min-height:30px;padding:2px 8px;}
    #hm-story-editor .he-thread-comment p,#hm-story-editor .he-thread-reply p{line-height:1.55;margin:3px 0;}
    #hm-story-editor .he-thread-reply{padding:5px 10px 0 0;margin:5px 8px 0 0;}
    #hm-story-editor .he-thread-controls{gap:12px;}
    #hm-story-editor .he-thread-controls button{min-height:30px;padding:2px 5px;line-height:1.4;}
    #hm-story-editor .he-comment-form{margin-top:10px;padding:10px;}
    #hm-story-editor .he-comment-form label{margin:5px 0;line-height:1.4;}
    #hm-story-editor .he-comment-form textarea{min-height:72px;line-height:1.5;}
    #hm-story-editor .he-comment-form .he-actions{margin-top:8px;}
    #hm-story-editor .he-note{line-height:1.55;margin:5px 0 8px;}
    #hm-story-editor .he-thread-comment .he-note{font-size:11px;}
    #hm-story-editor .he-admin-comments-cell{width:74px;}
    #hm-story-editor .he-admin-comments-cell button{min-height:30px;height:30px;padding:2px 0;font-size:11px;color:var(--he-wine);}
    #hm-story-editor .he-actions{margin-top:14px;}
    #hm-story-editor .he-section{padding-top:12px;margin-top:16px;}
    @media(pointer:coarse){#hm-story-editor .he-thread-controls button,#hm-story-editor .he-thread-heading button{min-height:40px;}}
    #hm-story-editor main:has(#he-thread){padding:12px 16px;}
    #hm-story-editor main:has(#he-thread)>h3{margin:0 0 2px;line-height:1.4;}
    #hm-story-editor main:has(#he-thread)>.he-note{margin:0 0 8px;line-height:1.4;}
    #hm-story-editor .he-thread-comment{position:relative;padding:7px 0;}
    #hm-story-editor .he-thread-heading{position:relative;display:block;min-height:0;height:auto;line-height:20px;padding-left:30px;margin:0;}
    #hm-story-editor .he-thread-heading strong{display:inline;font-size:13px;line-height:20px;}
    #hm-story-editor .he-thread-heading>button{position:absolute;left:0;top:-3px;min-height:26px;height:26px;width:28px;padding:0;line-height:26px;font-size:20px;}
    #hm-story-editor .he-thread-comment p,#hm-story-editor .he-thread-reply p{line-height:1.45;margin:2px 0;font-size:14px;}
    #hm-story-editor .he-thread-controls{display:flex;align-items:center;gap:12px;margin:0;padding:0;height:26px;}
    #hm-story-editor .he-thread-controls button{min-height:26px;height:26px;padding:0 4px;font-size:11px;line-height:26px;}
    #hm-story-editor .he-thread-reply{padding:3px 10px 0 0;margin:3px 8px 0 0;}
    #hm-story-editor .he-comment-actions{margin:3px 0;padding:4px 8px;}
    @media(pointer:coarse){#hm-story-editor .he-thread-controls{height:32px;}#hm-story-editor .he-thread-controls button{height:32px;min-height:32px;line-height:32px;}#hm-story-editor .he-thread-heading>button{width:32px;height:32px;min-height:32px;top:-6px;}}
    #hm-story-editor .he-admin-comments-cell{width:94px;}
    #hm-story-editor .he-admin-comments-cell button{display:flex;align-items:center;gap:5px;white-space:nowrap;}
    #hm-story-editor .he-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--he-wine);color:var(--he-on);font-size:11px;line-height:18px;}
    #hm-story-editor .he-thread-comment{position:relative;padding:6px 28px 6px 0;}
    #hm-story-editor .he-thread-heading{display:contents;}
    #hm-story-editor .he-thread-heading strong{display:inline;font-size:13px;line-height:1.5;margin-inline-end:6px;}
    #hm-story-editor .he-thread-comment>p,#hm-story-editor .he-thread-reply>p{display:inline;font-size:14px;line-height:1.5;margin:0;}
    #hm-story-editor .he-thread-heading>button{position:absolute;left:0;top:2px;width:26px;height:24px;min-height:24px;line-height:24px;font-size:19px;}
    #hm-story-editor .he-thread-comment{padding-right:0;padding-left:28px;}
    #hm-story-editor .he-thread-controls{height:22px;margin-top:1px;gap:10px;}
    #hm-story-editor .he-thread-controls button{min-height:22px;height:22px;line-height:22px;padding:0 3px;}
    #hm-story-editor .he-thread-reply{position:relative;padding:4px 9px 0 28px;margin:3px 8px 0 0;}
    #hm-story-editor .he-thread-comment>.he-note,#hm-story-editor .he-thread-reply>.he-note{margin-inline-start:5px;}
    #hm-story-editor .he-reaction-count{font-size:12px;font-variant-numeric:tabular-nums;line-height:1.2;}
    #hm-story-editor .he-comment-total{font-variant-numeric:tabular-nums;}
    #hm-story-editor .he-thread-controls [aria-pressed=true]{color:var(--he-wine);background:var(--he-soft);}
    #hm-story-editor .he-reaction-row .he-reaction{border:1px solid transparent;border-radius:10px;}
    #hm-story-editor .he-reaction-row .he-reaction[aria-pressed=true]{background:var(--he-soft);border-color:var(--he-wine);color:var(--he-wine);}
    #hm-story-editor .he-reaction-row .he-reaction[data-reaction=like][aria-pressed=true]{color:light-dark(#c32640,#ff8094);border-color:currentColor;}
    #hm-story-editor .he-reaction[data-reaction=like][aria-pressed=true] svg{fill:currentColor;stroke:currentColor;}
    #hm-story-editor .he-reaction[data-reaction=touch][aria-pressed=true] svg{color:light-dark(#a34166,#f0a2c1);stroke-width:2.8;}
    #hm-story-editor .he-reaction[data-reaction=think][aria-pressed=true] svg{color:light-dark(#956000,#f6cd69);fill:light-dark(#ffdd7b,#775215);stroke-width:2.4;}
    #hm-story-editor .he-reaction-selected{font-size:11px;line-height:1.3;}
    /* Shared compact layout: story reading retains its approved type scale. */
    #hm-story-editor .he-phone>header{padding:10px 14px;gap:10px;}
    #hm-story-editor .he-phone>header img{width:34px;height:34px;}
    #hm-story-editor .he-phone>header h2{font-size:15px;line-height:1.5;}
    #hm-story-editor .he-phone>header span{font-size:11px;line-height:1.3;}
    #hm-story-editor .he-phone>nav{padding:4px 12px;gap:4px;}
    #hm-story-editor .he-phone>nav button{padding:5px 8px;min-height:34px;font-size:12px;}
    #hm-story-editor main{padding:14px 16px;}
    #hm-story-editor h3{font-size:14px;line-height:1.5;margin:0 0 7px;}
    #hm-story-editor label{font-size:12px;line-height:1.4;margin:10px 0 5px;}
    #hm-story-editor .he-note{font-size:11px;line-height:1.5;margin:4px 0 7px;}
    #hm-story-editor input:not([type=radio]):not([type=range]),#hm-story-editor select{padding:7px 10px;min-height:38px;}
    #hm-story-editor textarea:not(#he-text){padding:8px 10px;min-height:80px;}
    #hm-story-editor #he-text{min-height:230px;}
    #hm-story-editor .he-section{padding-top:12px;margin-top:14px;}
    #hm-story-editor .he-actions{gap:6px;margin-top:12px;}
    #hm-story-editor .he-actions button{min-height:36px;padding:6px 10px;font-size:12px;}
    #hm-story-editor .he-options{gap:5px;}
    #hm-story-editor .he-options button,#hm-story-editor .he-options label{min-height:34px;padding:4px 8px;}
    #hm-story-editor .he-confirm,#hm-story-editor .he-gate,#hm-story-editor .he-success{padding:12px;margin-top:12px;border-radius:8px;}
    #hm-story-editor .he-confirm p,#hm-story-editor .he-gate p{line-height:1.55;margin:6px 0;}
    #hm-story-editor #he-status{padding:8px 14px;font-size:11px;line-height:1.5;}
    #hm-story-editor #he-feedback{padding:9px 14px;font-size:12px;line-height:1.5;}
    #hm-story-editor .he-role-demo{padding:5px 10px;margin-bottom:8px;gap:4px;font-size:11px;}
    #hm-story-editor .he-role-demo button{min-height:32px;padding:4px 7px;font-size:11px;}
    #hm-story-editor .he-library-card{position:relative;border:0;border-bottom:1px solid var(--he-line);border-radius:0;margin:0;background:transparent;padding:0;}
    #hm-story-editor .he-library-open{padding:10px 0 4px;min-height:0;}
    #hm-story-editor .he-library-open h3{font:500 21px/1.4 'Noto Naskh Arabic',serif;margin:0 0 3px;}
    #hm-story-editor .he-library-open p{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:0;}
    #hm-story-editor .he-library-card>button:last-child{min-height:28px;padding:2px 0 6px;font-size:11px;line-height:20px;}
    #hm-story-editor .he-reaction-row{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:5px 10px;border-top:1px solid var(--he-line);}
    #hm-story-editor .he-reaction-row .he-reaction{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;flex:1;gap:4px;min-height:36px;padding:5px 2px;font-size:11px;border:0;border-radius:5px;background:transparent;}
    #hm-story-editor .he-reaction-row .he-reaction[aria-pressed=true]{border:0;background:transparent;color:var(--he-wine);}
    #hm-story-editor .he-reaction-row .he-reaction:not([aria-pressed=true]){color:var(--he-muted);}
    #hm-story-editor .he-reaction-row .he-reaction[data-reaction=like][aria-pressed=true]{color:light-dark(#c32640,#ff8094);border:0;}
    #hm-story-editor .he-reaction svg,#hm-story-editor .he-reader-footer svg{width:17px;height:17px;}
    #hm-story-editor .he-reaction-row .he-reaction-count{font-size:11px;line-height:1.3;}
    #hm-story-editor .he-reaction-selected{display:none;}
    #hm-story-editor .he-reader-footer{padding:3px 10px;min-height:38px;gap:6px;font-size:11px;}
    #hm-story-editor .he-reader-footer button{min-height:32px;padding:4px 3px;font-size:11px;gap:5px;}
    #hm-story-editor .he-reader-tools{padding:3px 10px;}
    #hm-story-editor .he-reader-tools button{min-height:32px;padding:4px 6px;font-size:11px;}
    #hm-story-editor .he-reader-size{padding:8px 14px;}
    #hm-story-editor .he-thread-comment{padding-top:5px;padding-bottom:5px;}
    #hm-story-editor .he-comment-form{padding:9px;margin-top:9px;}
    #hm-story-editor .he-comment-form textarea{min-height:66px;}
    #hm-story-editor .he-comment-form .he-actions{margin-top:6px;}
    #hm-story-editor .he-list-tabs{margin:12px 0 8px;}
    #hm-story-editor .he-pagination{margin-top:8px;}
    @media(max-width:360px){#hm-story-editor .he-reaction-caption{font-size:11px;}#hm-story-editor .he-reaction-row{padding:4px 5px;gap:2px;}#hm-story-editor .he-reaction-row .he-reaction{gap:3px;}}
    #hm-story-editor #he-text{font:400 17px/1.55 'Noto Naskh Arabic',serif;}
    #hm-story-editor .he-editor-font{display:flex;align-items:center;gap:8px;margin:4px 0 6px;font-size:11px;color:var(--he-muted);}
    #hm-story-editor .he-editor-font>span{margin-inline-end:auto;}
    #hm-story-editor .he-editor-font button{min-height:30px;height:30px;padding:3px 9px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:5px;font-size:13px;}
    #hm-story-editor .he-editor-font output{min-width:20px;text-align:center;}
    #hm-story-editor .he-user-avatar{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;vertical-align:middle;margin-inline-end:6px;border-radius:50%;background:var(--he-soft);color:var(--he-wine);font-size:12px;overflow:hidden;}
    #hm-story-editor .he-user-avatar img{width:100%;height:100%;object-fit:cover;}
    #hm-story-editor #he-avatar-preview{margin-top:10px;}
    #hm-story-editor #he-avatar-preview>img{width:48px;height:48px;border-radius:50%;object-fit:cover;}
    #hm-story-editor .he-role-demo [data-profile]{flex:0 0 auto;}
    #hm-story-editor .he-library-card{display:flex;align-items:center;gap:6px;height:38px;min-height:38px;padding:0;}
    #hm-story-editor .he-library-card .he-library-open{flex:1;min-width:0;padding:4px 0;min-height:36px;text-align:right;overflow:hidden;}
    #hm-story-editor .he-library-card .he-library-open h3{font:500 14px/1.5 'Noto Sans Arabic',sans-serif;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
    #hm-story-editor .he-library-card>button:last-child{display:flex;align-items:center;justify-content:center;gap:5px;flex:0 0 48px;min-height:36px;padding:4px;font-size:11px;}
    #hm-story-editor .he-library-card>button:last-child svg{width:16px;height:16px;}
    #hm-story-editor .he-library-count{font-size:11px;color:var(--he-muted);line-height:1.4;margin:8px 0 5px;}
    #hm-story-editor .he-library-more{display:block;width:100%;min-height:36px;margin-top:10px;padding:6px;background:var(--he-soft);color:var(--he-wine);font-size:12px;}
    #hm-story-editor .he-library-date{flex:0 0 auto;font-size:11px;line-height:1.3;color:var(--he-muted);white-space:nowrap;font-variant-numeric:tabular-nums;}
    #hm-story-editor .he-library-card>button:last-child{flex-basis:40px;}
    #hm-story-editor .he-library-reactions{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
    #hm-story-editor .he-library-stat{display:inline-flex;align-items:center;gap:2px;color:var(--he-muted);font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums;}
    #hm-story-editor .he-library-stat svg{width:14px;height:14px;}
    #hm-story-editor .he-library-card>button:last-child{flex-basis:24px;padding:2px;}
    #hm-story-editor .he-library-date{font-size:11px;}
    #hm-story-editor .he-library-card{gap:5px;}
    @media(max-width:360px){#hm-story-editor .he-library-reactions{gap:3px;}#hm-story-editor .he-library-stat{gap:1px;}#hm-story-editor .he-library-card{gap:3px;}}
    #hm-story-editor .he-reader h2{font:500 21px/1.4 'Noto Naskh Arabic',serif;margin:10px 0 7px;}
    #hm-story-editor .he-reader p{font:400 19px/1.5 'Noto Naskh Arabic',serif;margin:0 0 7px;}
    #hm-story-editor .he-page{font-weight:400;line-height:1.5;padding:12px 16px;}
    #hm-story-editor .he-page h2{font:500 21px/1.4 'Noto Naskh Arabic',serif;margin:0 0 7px;}
    #hm-story-editor .he-page p{font:inherit;margin:0 0 7px;}
    #hm-story-editor .he-reader-size{padding:5px 12px;}
    #hm-story-editor .he-reader-size label{margin:3px 0;}
    #hm-story-editor .he-reader-size button{min-height:28px;padding:3px 8px;font-size:11px;}
    #hm-story-editor .he-actions button:not(.he-primary),#hm-story-editor #he-back{background:var(--he-panel);border:1px solid var(--he-line);border-radius:6px;color:var(--he-wine);}
    #hm-story-editor .he-actions button:not(.he-primary):hover,#hm-story-editor #he-back:hover{background:var(--he-soft);border-color:var(--he-wine);}
    #hm-story-editor .he-actions button:not(.he-primary):active,#hm-story-editor #he-back:active{background:var(--he-soft);transform:translateY(1px);}
    #hm-story-editor #he-back{min-height:32px;padding:4px 9px;}
    #hm-story-editor .he-mail-button{margin-inline-start:auto;min-height:32px;padding:4px 7px;border:1px solid var(--he-line);background:var(--he-panel);color:var(--he-wine);font-size:11px;}
    #hm-story-editor .he-inbox-item{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:right;width:100%;padding:8px 0;border-bottom:1px solid var(--he-line);border-radius:0;gap:3px;}
    #hm-story-editor .he-inbox-item strong{font-size:13px;line-height:1.5;font-weight:500;}
    #hm-story-editor .he-inbox-item .he-note{margin:0;}
    #hm-story-editor .he-inbox-item .he-unread-badge{position:absolute;left:0;top:9px;}
    #hm-story-editor .he-message-bubble{max-width:88%;padding:8px 10px;margin:8px 0;background:var(--he-panel);border:1px solid var(--he-line);border-radius:9px;}
    #hm-story-editor .he-message-bubble.he-mine{margin-inline-start:auto;background:var(--he-soft);}
    #hm-story-editor .he-message-bubble strong{font-size:12px;font-weight:500;}
    #hm-story-editor .he-message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:4px 0;}
    #hm-story-editor .he-message-bubble time{font-size:11px;color:var(--he-muted);}
    #hm-story-editor #he-private-reply{padding-top:8px;border-top:1px solid var(--he-line);}
    #hm-story-editor .he-mail-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;font-size:11px;}
    #hm-story-editor .he-mail-button svg{width:16px;height:16px;flex-shrink:0;}
    #hm-story-editor .he-mail-badge{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:light-dark(#c32640,#ff8094);color:light-dark(#ffffff,#342027);font-size:11px;line-height:17px;}
    @media(max-width:360px){#hm-story-editor .he-phone>header{gap:6px;padding:8px 10px;}#hm-story-editor .he-phone>header img{width:29px;height:29px;}#hm-story-editor .he-mail-button{padding:4px;gap:3px;}}
    #hm-story-editor .he-mail-badge.he-mail-dot{width:9px;height:9px;min-width:9px;padding:0;border-radius:50%;}
    #hm-story-editor .he-member-name-link{display:inline;min-height:24px;padding:0 3px;border:0;border-radius:3px;background:transparent;color:var(--he-wine);font-size:13px;font-weight:500;text-decoration:underline;text-underline-offset:3px;line-height:1.5;}
    #hm-story-editor .he-member-identity{display:flex;align-items:center;gap:7px;}
    #hm-story-editor .he-member-identity h3{margin:0;}
    #hm-story-editor .he-profile-sections{margin-top:16px;}
    #hm-story-editor .he-profile-sections button{font-size:12px;}
    #hm-story-editor .he-profile-history{display:flex;flex-direction:column;align-items:flex-start;text-align:right;gap:3px;width:100%;padding:8px 0;border-bottom:1px solid var(--he-line);border-radius:0;}
    #hm-story-editor .he-profile-history strong{font-weight:500;font-size:13px;line-height:1.5;}
    #hm-story-editor .he-profile-history span{font-size:12px;line-height:1.5;overflow-wrap:anywhere;}
    #hm-story-editor .he-profile-history .he-note{margin:0;}
    #hm-story-editor .he-comment-highlight{background:var(--he-soft);}
    #hm-story-editor .he-thread-heading>.he-member-name-link{position:static;display:inline;width:auto;height:auto;min-height:24px;padding:0 3px;font-size:13px;line-height:1.5;margin-inline-end:6px;}
    #hm-story-editor .he-section-nav{display:flex;gap:4px;padding:4px 12px;background:var(--he-panel);border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-section-nav button{flex:1;min-height:30px;font-size:12px;padding:4px;}
    #hm-story-editor .he-activity-item{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:right;padding:9px 0;gap:3px;border-bottom:1px solid var(--he-line);border-radius:0;}
    #hm-story-editor .he-activity-item strong{font-size:13px;line-height:1.5;font-weight:500;}
    #hm-story-editor .he-activity-item .he-note{margin:0;}
    #hm-story-editor .he-poll-option{margin-bottom:6px;}
    #hm-story-editor .he-check,#hm-story-editor .he-poll-choice{display:flex;align-items:center;gap:7px;min-height:32px;margin:5px 0;}
    #hm-story-editor input[type=checkbox],#hm-story-editor input[type=radio]{width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--he-wine);}
    #hm-story-editor .he-poll-result{display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:12px;line-height:1.5;padding:7px 0;}
    #hm-story-editor .he-result-track{grid-column:1/-1;height:5px;background:var(--he-soft);overflow:hidden;border-radius:3px;}
    #hm-story-editor .he-result-track span{display:block;height:100%;background:var(--he-wine);}
    #hm-story-editor .he-answer{padding:7px 0;border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-answer p{font-size:13px;line-height:1.5;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
    #hm-story-editor .he-answer-saved{font-size:12px;color:var(--he-wine);background:var(--he-soft);padding:7px 10px;border-radius:6px;}
    #hm-story-editor .he-secondary{background:var(--he-panel);border:1px solid var(--he-line);color:var(--he-wine);min-height:32px;font-size:12px;}
    #hm-story-editor .he-answer-confirmation{padding:12px;background:var(--he-soft);border-radius:8px;margin:10px 0;}
    #hm-story-editor .he-answer-confirmation h3{font-size:14px;margin:0 0 5px;}
    #hm-story-editor .he-answer-confirmation p{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;}
    #hm-story-editor .he-answer-heading{display:flex;align-items:center;gap:7px;}
    #hm-story-editor .he-answer-serial{font-size:11px;color:var(--he-muted);min-width:20px;}
    #hm-story-editor #he-answer-list .he-answer{padding:7px 0;}
    #hm-story-editor #he-answer-list .he-answer p{margin:3px 27px 0 0;}
    #hm-story-editor .he-answer-confirmation{background:var(--he-panel);border:1px solid var(--he-line);padding:10px 12px;}
    #hm-story-editor .he-answer-delivery{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid var(--he-line);color:light-dark(#23643b,#97d4a6);font-size:12px;line-height:1.5;}
    #hm-story-editor .he-delivery-check{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:light-dark(#e0eee3,#23432d);font-size:16px;}
    #hm-story-editor .he-answer-delivery strong{font-size:13px;font-weight:500;}
    #hm-story-editor .he-answer-delivery>span:last-child{font-size:11px;}
    #hm-story-editor .he-answer-confirmation>.he-note{display:block;font-size:11px;margin-bottom:4px;color:var(--he-muted);}
    #hm-story-editor .he-role-demo{flex-wrap:wrap;}
    #hm-story-editor .he-account-demo{display:flex;align-items:center;gap:7px;width:100%;margin:3px 0 0;padding-top:4px;border-top:1px solid var(--he-line);font-size:11px;}
    #hm-story-editor .he-account-demo select{width:auto;flex:1;min-height:28px;padding:3px 7px;font-size:12px;}
    #hm-story-editor .he-account-demo[hidden]{display:none;}
    #hm-story-editor .he-section-nav button{font-size:11px;}
    #hm-story-editor .he-session-status{padding:7px 9px;background:var(--he-soft);color:var(--he-wine);font-size:12px;line-height:1.5;border-radius:6px;margin:8px 0;}
    #hm-story-editor #he-session-chat{padding:4px 0;}
    #hm-story-editor .he-session-bubble{max-width:90%;padding:7px 10px;margin:6px 0;background:var(--he-panel);border:1px solid var(--he-line);border-radius:10px 3px 10px 10px;}
    #hm-story-editor .he-session-bubble.he-session-mine{margin-inline-start:auto;background:var(--he-soft);border-radius:3px 10px 10px 10px;}
    #hm-story-editor .he-session-bubble strong{font-weight:500;font-size:12px;color:var(--he-wine);}
    #hm-story-editor .he-session-bubble p{font-size:14px;line-height:1.5;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
    #hm-story-editor .he-session-bubble time{font-size:11px;color:var(--he-muted);}
    #hm-story-editor #he-session-compose{padding-top:8px;border-top:1px solid var(--he-line);}
    #hm-story-editor #he-session-compose textarea{min-height:65px;}
    #hm-story-editor #he-session-compose button{min-height:34px;font-size:12px;padding:5px 12px;margin-top:5px;}
    #hm-story-editor .he-session-request{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;}
    #hm-story-editor .he-session-request button{font-size:11px;min-height:30px;color:var(--he-wine);}
    #hm-story-editor .he-session-end-confirm{padding:10px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:8px;}
    #hm-story-editor .he-session-end-confirm p{font-size:13px;line-height:1.5;}
    #hm-story-editor main:has(#he-session-chat){padding:8px 12px;}
    #hm-story-editor .he-session-status{padding:4px 7px;margin:4px 0;font-size:11px;line-height:1.3;}
    #hm-story-editor #he-session-chat{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:3px 0;}
    #hm-story-editor .he-session-bubble{width:fit-content;max-width:92%;min-width:0;padding:4px 8px;margin:0;border-radius:7px 2px 7px 7px;}
    #hm-story-editor .he-session-bubble.he-session-mine{align-self:flex-end;margin:0;border-radius:2px 7px 7px 7px;}
    #hm-story-editor .he-session-bubble strong{display:block;font-size:11px;line-height:1.25;margin:0;}
    #hm-story-editor .he-session-bubble p{font-size:13px;line-height:1.4;margin:2px 0;}
    #hm-story-editor .he-session-bubble time{display:block;text-align:left;font-size:11px;line-height:1.2;margin:0;}
    #hm-story-editor #he-session-compose{padding-top:5px;margin-top:5px;}
    #hm-story-editor #he-session-compose label{font-size:11px;margin:3px 0;line-height:1.3;}
    #hm-story-editor #he-session-compose textarea{min-height:42px;height:42px;padding:6px 8px;font-size:16px;line-height:1.4;}
    #hm-story-editor #he-session-compose form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:4px 6px;}
    #hm-story-editor #he-session-compose form label{grid-column:1/-1;}
    #hm-story-editor #he-session-compose button{min-height:36px;margin:0;padding:5px 10px;font-size:12px;}
    #hm-story-editor #he-session-controls label{margin:5px 0 3px;font-size:11px;line-height:1.3;}
    #hm-story-editor #he-session-controls select{padding:4px 7px;min-height:30px;font-size:12px;}
    #hm-story-editor .he-session-current{padding:7px 9px;margin:6px 0;background:var(--he-soft);border-right:3px solid var(--he-wine);border-radius:5px;}
    #hm-story-editor .he-session-current strong{font-size:11px;font-weight:500;color:var(--he-wine);}
    #hm-story-editor .he-session-current p{font-size:13px;line-height:1.45;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
    #hm-story-editor .he-session-queue{padding:8px 0;border-bottom:1px solid var(--he-line);margin-bottom:7px;}
    #hm-story-editor .he-queued-question{padding:6px 0;border-top:1px solid var(--he-line);}
    #hm-story-editor .he-queued-question strong{font-size:12px;font-weight:500;}
    #hm-story-editor .he-queued-question p{font-size:13px;line-height:1.45;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
    #hm-story-editor .he-queued-question button,#hm-story-editor #he-session-controls>.he-secondary{min-height:30px;font-size:11px;padding:4px 7px;margin:4px 3px;}
    #hm-story-editor .he-session-quote{font-size:11px;line-height:1.4;color:var(--he-muted);border-right:2px solid var(--he-wine);padding:2px 6px;margin-top:4px;}
    #hm-story-editor #he-session-question{padding-top:6px;margin-top:5px;border-top:1px solid var(--he-line);}
    #hm-story-editor #he-session-question:empty{display:none;}
    #hm-story-editor #he-session-question button{min-height:32px;font-size:12px;padding:4px 9px;}
    #hm-story-editor #he-session-question textarea{min-height:65px;}
    #hm-story-editor .he-question-sent{font-size:11px;color:light-dark(#23643b,#97d4a6);margin:3px 0;}
    #hm-story-editor main:has(.he-issue-story){padding:0;}
    #hm-story-editor .he-current-issue{padding:12px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:10px;margin-bottom:16px;}
    #hm-story-editor .he-current-issue h3{font-size:17px;margin:5px 0;}
    #hm-story-editor .he-current-issue p{font-size:13px;line-height:1.6;margin:6px 0 10px;}
    #hm-story-editor .he-current-issue button{font-size:12px;min-height:34px;padding:5px 9px;margin-inline-end:5px;}
    #hm-story-editor #he-issue-highlights{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 16px;}
    #hm-story-editor .he-issue-highlight{display:flex;flex-direction:column;align-items:center;gap:6px;width:85px;padding:0;font-size:11px;line-height:1.4;}
    #hm-story-editor .he-issue-cover{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;border:3px double var(--he-wine);background:var(--he-soft);color:var(--he-wine);font:500 25px 'Noto Naskh Arabic',serif;}
    #hm-story-editor .he-issue-cover[data-cover="1"]{background:var(--he-panel);}
    #hm-story-editor .he-issue-story{padding:9px 12px 7px;background:var(--he-panel);}
    #hm-story-editor .he-issue-progress{display:flex;direction:rtl;gap:3px;margin:2px 0 8px;}
    #hm-story-editor .he-issue-progress button{flex:1;height:3px;min-height:3px;padding:0;border:0;border-radius:2px;background:var(--he-line);}
    #hm-story-editor .he-issue-progress .he-step-done{background:var(--he-wine);}
    #hm-story-editor .he-issue-story-head{display:flex;align-items:center;gap:7px;font-size:12px;}
    #hm-story-editor .he-issue-story-head img{width:28px;height:28px;border-radius:5px;}
    #hm-story-editor .he-issue-story-head button{min-height:30px;padding:0 7px;font-size:24px;}
    #hm-story-editor .he-issue-post-type{display:table;margin:10px 0 0;padding:3px 7px;border-radius:4px;background:var(--he-soft);color:var(--he-wine);font-size:11px;}
    #hm-story-editor .he-issue-page{min-height:400px;display:flex;align-items:center;justify-content:center;white-space:pre-wrap;overflow-wrap:anywhere;font:500 21px/1.55 'Noto Naskh Arabic',serif;text-align:center;padding:14px 10px;touch-action:pan-y;}
    #hm-story-editor .he-issue-page.he-issue-long{font-size:17px;text-align:right;}
    #hm-story-editor .he-issue-story-footer{display:flex;align-items:center;gap:8px;border-top:1px solid var(--he-line);padding-top:6px;}
    #hm-story-editor .he-issue-story-footer button{min-height:34px;padding:5px 7px;font-size:12px;}
    #hm-story-editor .he-issue-story-footer [data-issue-send]{flex:1;text-align:right;border:1px solid var(--he-line);border-radius:18px;color:var(--he-muted);}
    #hm-story-editor .he-issue-story-footer [data-issue-like][aria-pressed=true]{color:light-dark(#c32640,#ff8094);background:transparent;}
    #hm-story-editor .he-issue-story-footer [data-issue-like][aria-pressed=true] svg{fill:currentColor;}
    #hm-story-editor .he-issue-page-count{font-size:11px;color:var(--he-muted);white-space:nowrap;}
    #hm-story-editor .he-issue-submission{padding:9px 0;border-bottom:1px solid var(--he-line);}
    #hm-story-editor .he-issue-submission strong{font-size:12px;font-weight:500;}
    #hm-story-editor .he-issue-submission p,#hm-story-editor .he-issue-original{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0;}
    #hm-story-editor .he-issue-submission button{font-size:12px;min-height:32px;}
    #hm-story-editor .he-opinion-badge{display:inline-block;background:var(--he-soft);color:var(--he-wine);padding:4px 7px;border-radius:4px;font-size:11px;}
    #hm-story-editor .he-issue-inbox-title{margin-top:18px;}
    #hm-story-editor .he-issue-page-count{direction:ltr;unicode-bidi:isolate;}
    #hm-story-editor .he-opinion-heading{display:flex;align-items:center;gap:10px;}
    #hm-story-editor .he-opinion-heading .he-note{margin:0;}
    #hm-story-editor .he-issue-submission summary{font-size:13px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere;}
    #hm-story-editor .he-opinion-actions{display:flex;gap:5px;flex-wrap:wrap;}
    #hm-story-editor .he-opinion-actions button{font-size:11px;min-height:30px;padding:4px 6px;}
    #hm-story-editor .he-order-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--he-line);padding:7px 0;}
    #hm-story-editor .he-order-row>div:first-child{flex:1;min-width:0;}
    #hm-story-editor .he-order-row p{font-size:12px;line-height:1.45;margin:3px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
    #hm-story-editor .he-order-buttons{display:flex;gap:3px;}
    #hm-story-editor .he-order-buttons button{min-height:30px;width:30px;padding:3px;background:var(--he-panel);border:1px solid var(--he-line);}
    #hm-story-editor .he-issue-preview-notice{font-size:11px;line-height:1.5;color:var(--he-wine);background:var(--he-soft);padding:5px 8px;margin-bottom:6px;}
    #hm-story-editor .he-section-nav{gap:5px;padding:5px 10px;}
    #hm-story-editor .he-section-nav button{border-radius:6px;border-bottom:2px solid transparent;line-height:1.5;}
    #hm-story-editor .he-section-nav button[aria-current=page]{background:var(--he-wine);color:var(--he-on);border-bottom-color:var(--he-wine);font-weight:500;}
    #hm-story-editor .he-section-nav button:not([aria-current=page]){background:transparent;color:var(--he-muted);}

#hm-story-editor .he-section-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;}
#hm-story-editor .he-section-nav button{font-size:12px;padding:7px 2px;min-width:0;white-space:normal;}
#hm-story-editor .he-home-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:10px;}
#hm-story-editor .he-home-heading h3,#hm-story-editor .he-home-block h3{font-size:15px;margin:0;line-height:1.5;}
#hm-story-editor .he-home-heading button{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;font-size:12px;}
#hm-story-editor .he-home-banner{background:var(--he-soft);border-inline-start:3px solid var(--he-wine);padding:9px 11px;margin:0 0 10px;border-radius:7px;}
#hm-story-editor .he-home-banner p{font-size:13px;line-height:1.5;margin:3px 0 5px;white-space:pre-wrap;overflow-wrap:anywhere;}
#hm-story-editor .he-home-banner strong{font-size:14px;}
#hm-story-editor .he-home-banner button{font-size:12px;padding:4px 8px;}
#hm-story-editor .he-home-block{padding:9px 0;border-bottom:1px solid var(--he-line);}
#hm-story-editor .he-home-link{display:flex;align-items:center;gap:8px;width:100%;text-align:start;background:transparent;border:0;border-radius:0;padding:8px 0;min-width:0;}
#hm-story-editor .he-home-link span{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere;}
#hm-story-editor .he-home-link small{display:block;color:var(--he-muted);font-size:11px;margin-top:2px;}
#hm-story-editor .he-home-link svg{width:17px;height:17px;flex-shrink:0;}
#hm-story-editor .he-ann-row{padding:9px 0;border-bottom:1px solid var(--he-line);}
#hm-story-editor .he-ann-row strong{font-size:14px;overflow-wrap:anywhere;}
#hm-story-editor .he-ann-row p{font-size:12px;margin:4px 0;overflow-wrap:anywhere;}
#hm-story-editor .he-ann-row .he-actions{gap:5px;margin:5px 0;}
#hm-story-editor .he-ann-row button{padding:4px 8px;font-size:12px;}
#hm-story-editor #he-ann-form{margin-top:10px;}
#hm-story-editor .he-phone.he-home-mode>header{display:grid;grid-template-columns:1fr 96px 1fr;gap:8px;min-height:122px;padding:15px 16px 12px;border:0;background:var(--he-panel);}
#hm-story-editor .he-home-mode>header>img{grid-column:2;grid-row:1;width:88px;height:88px;justify-self:center;border-radius:8px;box-shadow:0 4px 16px color-mix(in srgb,var(--he-ink) 12%,transparent);}
#hm-story-editor .he-home-mode>header>div{display:none;}
#hm-story-editor .he-home-mode>header>.he-mail-button{grid-column:3;grid-row:1;justify-self:end;display:flex;flex-direction:column;gap:3px;padding:7px 2px;border:0;background:transparent;max-width:88px;margin:0;color:var(--he-wine);}
#hm-story-editor .he-home-mode>header>.he-mail-button span{font-size:11px;}
#hm-story-editor .he-home-mode>header>.he-mail-button svg{width:21px;height:21px;}
#hm-story-editor .he-home-mode .he-section-nav{background:var(--he-panel);padding:0 12px 8px;border-bottom:1px solid var(--he-line);}
#hm-story-editor .he-home-mode .he-section-nav button{padding:7px 3px;font-size:11px;border-radius:0;}
#hm-story-editor .he-home-mode .he-section-nav button[aria-current=page]{color:var(--he-wine);background:transparent;border-bottom-color:var(--he-wine);}
#hm-story-editor .he-home-mode #he-main{padding:15px 16px 10px;}
#hm-story-editor .he-home-heading{margin:0 0 11px;align-items:center;}
#hm-story-editor .he-home-heading h3{font-family:'Noto Naskh Arabic',serif;font-size:20px;line-height:1.4;margin:2px 0 0;}
#hm-story-editor .he-home-eyebrow{font-size:11px;color:var(--he-muted);}
#hm-story-editor .he-home-heading button{font-size:11px;border:0;background:transparent;color:var(--he-wine);padding:5px 0;}
#hm-story-editor .he-editorial-hero{position:relative;width:100%;height:214px;padding:0;overflow:hidden;border:0;border-radius:12px;background:#30241d;display:block;text-align:right;color:#fff9ef;box-shadow:0 5px 14px color-mix(in srgb,var(--he-ink) 12%,transparent);}
#hm-story-editor .he-editorial-hero>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
#hm-story-editor .he-editorial-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 10%,rgba(27,19,15,.14) 35%,rgba(27,19,15,.94));}
#hm-story-editor .he-hero-copy{position:absolute;z-index:1;inset:auto 16px 14px;display:flex;flex-direction:column;gap:2px;}
#hm-story-editor .he-hero-copy>span:first-child{font-size:11px;color:#f2debc;}
#hm-story-editor .he-hero-copy strong{font-family:'Noto Naskh Arabic',serif;font-weight:500;font-size:25px;line-height:1.35;display:block;overflow-wrap:anywhere;}
#hm-story-editor .he-hero-call{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:6px;}
#hm-story-editor .he-hero-call svg{width:16px;height:16px;}
#hm-story-editor .he-home-banner{display:flex;align-items:center;gap:9px;border:1px solid var(--he-line);border-radius:9px;background:var(--he-panel);padding:9px 10px;margin:12px 0;}
#hm-story-editor .he-home-banner>div:nth-child(2){flex:1;min-width:0;}
#hm-story-editor .he-banner-icon{color:var(--he-wine);flex-shrink:0;}
#hm-story-editor .he-home-banner strong{font-size:12px;line-height:1.5;}
#hm-story-editor .he-home-banner p{font-size:11px;line-height:1.5;margin:3px 0 0;color:var(--he-muted);}
#hm-story-editor .he-home-banner button{padding:4px;border:0;background:transparent;flex-shrink:0;}
#hm-story-editor .he-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;}
#hm-story-editor .he-shelf-heading h3{font-size:15px;margin:0;line-height:1.5;}
#hm-story-editor .he-shelf-heading button,#hm-story-editor .he-shelf-heading>span{background:transparent;border:0;padding:0;color:var(--he-wine);font-size:11px;}
#hm-story-editor .he-home-shelf{margin:16px 0 12px;}
#hm-story-editor .he-home-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
#hm-story-editor .he-home-cover{min-width:0;text-align:right;padding:0;border:0;background:transparent;}
#hm-story-editor .he-home-cover img{display:block;width:100%;height:111px;object-fit:cover;border-radius:7px;}
#hm-story-editor .he-home-cover span{display:block;font-size:12px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere;}
#hm-story-editor .he-home-resume{margin:12px 0;padding:8px 10px;border-inline-start:2px solid var(--he-wine);background:var(--he-soft);border-radius:6px;}
#hm-story-editor .he-home-resume h3{font-size:11px;color:var(--he-wine);margin:0;}
#hm-story-editor .he-home-resume .he-home-link{padding:4px 0 0;}
#hm-story-editor .he-home-resume small{display:none;}
#hm-story-editor .he-home-amna{padding:12px 0 2px;border:0;border-top:1px solid var(--he-line);}
#hm-story-editor .he-home-amna .he-home-link{border-bottom:1px solid var(--he-line);padding:10px 0;}
#hm-story-editor .he-home-amna .he-home-link>svg:first-child{padding:8px;box-sizing:content-box;border-radius:8px;background:var(--he-soft);color:var(--he-wine);}
#hm-story-editor .he-home-bottom .he-home-link{font-size:11px;padding:8px 0;}
#hm-story-editor .he-home-bottom .he-home-link span{font-size:11px;color:var(--he-muted);}
@media(max-width:360px){#hm-story-editor .he-home-mode>header{grid-template-columns:1fr 88px 1fr;padding:13px 12px 10px;}#hm-story-editor .he-home-mode>header>img{width:80px;height:80px;}#hm-story-editor .he-home-mode #he-main{padding:12px;}#hm-story-editor .he-editorial-hero{height:190px;}#hm-story-editor .he-home-cover img{height:96px;}#hm-story-editor .he-home-covers{gap:8px;}#hm-story-editor .he-hero-copy strong{font-size:23px;}}

/* Unified warm editorial style, with compact working screens. */
#hm-story-editor{--he-gold:light-dark(#ab8960,#c5a579);--he-shadow:light-dark(rgba(69,40,24,.07),rgba(0,0,0,.15));}
#hm-story-editor .he-phone{border:1px solid var(--he-line);box-shadow:0 8px 28px var(--he-shadow);}
#hm-story-editor .he-phone:not(.he-home-mode)>header{display:grid;grid-template-columns:minmax(55px,1fr) 48px minmax(55px,1fr);padding:10px 14px 8px;gap:5px 10px;background:var(--he-panel);border-bottom:0;}
#hm-story-editor .he-phone:not(.he-home-mode)>header>img{grid-column:2;grid-row:1;width:44px;height:44px;justify-self:center;border-radius:6px;}
#hm-story-editor .he-phone:not(.he-home-mode)>header>#he-back{grid-column:1;grid-row:1;justify-self:start;font-size:11px;padding:4px 8px;min-height:30px;border-color:transparent;background:transparent;}
#hm-story-editor .he-phone:not(.he-home-mode)>header>.he-mail-button{grid-column:3;grid-row:1;justify-self:end;margin:0;border:0;background:transparent;white-space:normal;max-width:100px;}
#hm-story-editor .he-phone:not(.he-home-mode)>header>div{grid-column:1/-1;grid-row:2;text-align:center;}
#hm-story-editor .he-phone:not(.he-home-mode)>header>div>span{display:none;}
#hm-story-editor .he-phone:not(.he-home-mode)>header h2{font-family:'Noto Naskh Arabic',serif;font-size:19px;line-height:1.35;}
#hm-story-editor .he-section-nav{padding:0 10px 5px;gap:3px;}
#hm-story-editor .he-section-nav button{display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 2px;font-size:11px;border-radius:0;}
#hm-story-editor .he-section-nav button svg{width:13px;height:13px;flex-shrink:0;}
#hm-story-editor .he-section-nav button[aria-current=page]{background:transparent;color:var(--he-wine);border-bottom-color:var(--he-wine);}
#hm-story-editor .he-phone>nav{border-bottom:1px solid var(--he-line);background:var(--he-panel);}
#hm-story-editor .he-phone>nav button{border-radius:5px;}
#hm-story-editor main{background:linear-gradient(150deg,color-mix(in srgb,var(--he-panel) 45%,transparent),transparent 230px);}
#hm-story-editor button{transition:background-color .15s,border-color .15s;}
#hm-story-editor button:focus-visible,#hm-story-editor input:focus-visible,#hm-story-editor textarea:focus-visible,#hm-story-editor select:focus-visible{outline:2px solid var(--he-wine);outline-offset:2px;}
#hm-story-editor .he-primary{background:linear-gradient(135deg,var(--he-wine),color-mix(in srgb,var(--he-wine) 88%,var(--he-ink)));color:var(--he-on);border:1px solid transparent;border-radius:7px;font-size:12px;min-height:34px;padding:6px 12px;box-shadow:0 2px 5px var(--he-shadow);}
#hm-story-editor input:not([type=radio]):not([type=checkbox]):not([type=range]),#hm-story-editor textarea,#hm-story-editor select{border:1px solid var(--he-line);border-radius:7px;background:var(--he-panel);color:var(--he-ink);font-size:13px;line-height:1.5;}
#hm-story-editor textarea:not(#he-text){font-size:14px;line-height:1.5;}
#hm-story-editor input::placeholder,#hm-story-editor textarea::placeholder{color:var(--he-muted);opacity:.85;}
#hm-story-editor #he-text{font-family:'Noto Naskh Arabic',serif;font-size:17px;}
#hm-story-editor .he-library-card:nth-child(even),#hm-story-editor .he-story-record:nth-child(even){background:color-mix(in srgb,var(--he-panel) 65%,transparent);}
#hm-story-editor .he-library-card{padding-inline:4px;border-bottom-color:color-mix(in srgb,var(--he-line) 75%,transparent);}
#hm-story-editor .he-library-card:hover,#hm-story-editor .he-story-record:hover{background:var(--he-soft);}
#hm-story-editor .he-library-open h3{color:var(--he-ink);}
#hm-story-editor .he-list-tabs button,#hm-story-editor .he-options button{border-radius:6px;}
#hm-story-editor .he-thread-comment{border-bottom-color:var(--he-line);padding:7px 0;}
#hm-story-editor .he-thread-heading strong{color:var(--he-wine);font-weight:500;}
#hm-story-editor .he-thread-reply{border-inline-start:2px solid var(--he-line);padding-inline-start:9px;}
#hm-story-editor .he-comment-form{background:var(--he-panel);border:1px solid var(--he-line);border-radius:8px;padding:9px;}
#hm-story-editor .he-user-avatar{box-shadow:0 0 0 2px var(--he-panel),0 0 0 3px var(--he-line);}
#hm-story-editor .he-message-bubble{box-shadow:0 2px 6px var(--he-shadow);border-radius:10px 3px 10px 10px;margin-block:6px;}
#hm-story-editor .he-message-bubble.he-mine{border-radius:3px 10px 10px 10px;border-color:color-mix(in srgb,var(--he-wine) 20%,var(--he-line));}
#hm-story-editor .he-message-bubble p{font-size:13px;line-height:1.5;margin:3px 0;}
#hm-story-editor .he-inbox-item{padding:9px 8px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:7px;margin:6px 0;}
#hm-story-editor .he-inbox-item strong{color:var(--he-wine);}
#hm-story-editor .he-inbox-item .he-unread-badge{left:8px;}
#hm-story-editor .he-activity-item{padding:9px 10px;background:var(--he-panel);border:1px solid var(--he-line);border-inline-start:2px solid var(--he-gold);border-radius:7px;margin:7px 0;}
#hm-story-editor .he-poll-choice{padding:7px 9px;border:1px solid var(--he-line);background:var(--he-panel);border-radius:7px;font-size:13px;}
#hm-story-editor .he-poll-choice:has(input:checked){background:var(--he-soft);border-color:var(--he-wine);}
#hm-story-editor .he-current-issue{position:relative;overflow:hidden;background:var(--he-panel);border:1px solid var(--he-line);border-top:2px solid var(--he-gold);padding:11px;margin-bottom:12px;}
#hm-story-editor .he-current-issue h3{font:500 20px/1.35 'Noto Naskh Arabic',serif;margin:5px 0;}
#hm-story-editor .he-current-issue p{font-size:13px;line-height:1.5;margin:5px 0 8px;}
#hm-story-editor .he-issue-cover{position:relative;overflow:hidden;border:2px solid var(--he-gold);box-shadow:0 0 0 3px var(--he-panel),0 0 0 4px var(--he-line);}
#hm-story-editor .he-issue-cover img{width:100%;height:100%;object-fit:cover;}
#hm-story-editor #he-issue-highlights{gap:12px;margin:10px 0 12px;}
#hm-story-editor .he-issue-story{background:radial-gradient(ellipse at top right,var(--he-soft),transparent 65%),var(--he-panel);}
#hm-story-editor .he-issue-page{font-size:20px;line-height:1.55;}
#hm-story-editor .he-issue-post-type{border-inline-start:2px solid var(--he-gold);background:var(--he-panel);}
#hm-story-editor .he-order-row{background:var(--he-panel);border:1px solid var(--he-line);padding:7px 8px;margin:5px 0;border-radius:7px;}
#hm-story-editor .he-issue-submission{padding:8px 0;}
#hm-story-editor .he-success,#hm-story-editor .he-confirm,#hm-story-editor .he-gate{background:var(--he-panel);border:1px solid var(--he-line);border-top:2px solid var(--he-gold);box-shadow:0 2px 8px var(--he-shadow);}
#hm-story-editor .he-ann-row{padding:9px 8px;margin:6px 0;background:var(--he-panel);border:1px solid var(--he-line);border-radius:7px;}
#hm-story-editor .he-page{background:var(--he-panel);border-bottom:1px solid var(--he-line);}
#hm-story-editor .he-page h2,#hm-story-editor .he-reader h2{color:var(--he-wine);}
#hm-story-editor .he-screen-accent{display:block;height:3px;width:28px;border-radius:2px;background:var(--he-gold);margin:0 0 9px;}
#hm-story-editor #he-status{border-top:1px solid var(--he-line);background:var(--he-panel);color:var(--he-muted);}
@media(max-width:360px){#hm-story-editor .he-section-nav button{flex-direction:column;gap:2px;font-size:11px;line-height:1.35;}#hm-story-editor .he-phone:not(.he-home-mode)>header{padding:9px 10px 7px;}#hm-story-editor .he-phone:not(.he-home-mode)>header>.he-mail-button{font-size:11px;}#hm-story-editor main{padding:12px;}}
@media(prefers-reduced-motion:reduce){#hm-story-editor button{transition:none;}}

  