/* Shared editorial design: readable type, persistent navigation, natural images. */
#hm-story-editor{padding:0;font-size:16px;}
#hm-story-editor .he-phone{max-width:760px;min-height:100dvh;border:0;border-radius:0;box-shadow:none;padding-bottom:calc(78px + env(safe-area-inset-bottom));}
#hm-story-editor main{padding:20px 18px;}
#hm-story-editor .he-phone>header,#hm-story-editor .he-phone.he-home-mode>header{display:grid;grid-template-columns:44px 44px 1fr 56px;align-items:center;gap:10px;padding:12px 18px;min-height:72px;}
#hm-story-editor .he-phone>header>img,#hm-story-editor .he-phone.he-home-mode>header>img{width:44px;height:44px;grid-column:auto;grid-row:auto;margin:0;box-shadow:none;}
#hm-story-editor .he-phone>header>div{grid-column:auto;grid-row:auto;text-align:right;}
#hm-story-editor .he-phone>header>div>span{display:none;}
#hm-story-editor .he-phone>header h2{font-size:21px;margin:0;}
#hm-story-editor .he-phone>header button{position:relative;inset:auto;min-height:44px;font-size:14px;padding:0;}
#hm-story-editor .he-phone>header .he-mail-button{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:12px;}
#hm-story-editor #app-nav:not([hidden]){position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);box-sizing:border-box;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:5px 4px calc(5px + env(safe-area-inset-bottom));background:var(--he-panel);border-top:1px solid var(--he-line);z-index:30;overflow:visible;}
#hm-story-editor #app-nav button{display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:13px;line-height:1.5;min-height:58px;padding:5px 0;border:0;border-radius:10px;}
#hm-story-editor #app-nav button[aria-current=page]{background:var(--he-soft);color:var(--he-wine);}
#hm-story-editor #app-nav svg{width:21px;height:21px;}
#hm-story-editor button{font-size:15px;}
#hm-story-editor button:focus-visible,#hm-story-editor summary:focus-visible,#hm-story-editor input:focus-visible{outline:2px solid var(--he-wine);outline-offset:3px;}
#hm-story-editor .he-note,#hm-story-editor label{font-size:14px;line-height:1.7;}
#hm-story-editor input,#hm-story-editor textarea{font-size:16px;accent-color:var(--he-wine);}
#hm-story-editor .he-home-heading{margin:0 0 16px;}
#hm-story-editor .he-home-heading h3{font-size:24px;}
#hm-story-editor .he-home-eyebrow,#hm-story-editor .he-home-heading button,#hm-story-editor .he-shelf-heading button{font-size:14px;}
#hm-story-editor .he-home-link{font-size:16px;min-height:48px;}
#hm-story-editor .he-editorial-hero{height:auto;min-height:0;padding:0;overflow:hidden;box-shadow:none;}
#hm-story-editor .he-editorial-hero>img{display:block;position:static;width:100%;height:auto;max-height:none;object-fit:contain;}
#hm-story-editor .he-hero-copy{position:static;background:var(--he-panel);color:var(--he-ink);padding:12px;text-align:right;}
#hm-story-editor .he-hero-copy span{font-size:14px;color:var(--he-muted);}
#hm-story-editor .he-hero-copy strong{font-size:24px;}
#hm-story-editor .he-home-covers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
#hm-story-editor .he-home-cover{width:auto;}
#hm-story-editor .he-home-cover img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;}
#hm-story-editor .he-home-cover span{font-size:16px;}
#hm-story-editor .design-library-tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--he-line);}
#hm-story-editor .design-library-tabs button{min-height:44px;padding:8px 16px;}
#hm-story-editor .design-library-tabs [aria-pressed=true]{color:var(--he-wine);border-bottom:2px solid var(--he-wine);}
#hm-story-editor .app-library-card{min-height:76px;height:auto;}
#hm-story-editor .app-library-copy strong{font-size:18px;line-height:1.5;white-space:normal;}
#hm-story-editor .app-library-meta,#hm-story-editor .app-library-reactions{font-size:12px;flex-wrap:wrap;gap:5px;}
#hm-story-editor .app-library-open{min-width:0;}
#hm-story-editor .app-library-open img{width:96px;height:auto;object-fit:contain;flex-shrink:0;}
#hm-story-editor .app-library-tabs button{font-size:14px;min-height:44px;}
#hm-story-editor .app-favorite,#hm-story-editor .app-library-comments{width:44px;min-height:44px;}
#hm-story-editor .app-favorite[aria-pressed=true]{color:#be304e;}
#hm-story-editor .books-heading>p,#hm-story-editor .book-description{font-size:16px;line-height:1.8;}
#hm-story-editor .book-part,#hm-story-editor .book-subtitle,#hm-story-editor .book-details{font-size:14px;}
#hm-story-editor .book-card{grid-template-columns:90px minmax(0,1fr);gap:16px;}
#hm-story-editor .book-details summary{min-height:44px;}
#hm-story-editor .seminar-heading p,#hm-story-editor .seminar-notice,#hm-story-editor .seminar-chat p{font-size:15px;line-height:1.8;}
#hm-story-editor .seminar-details,#hm-story-editor .seminar-caption span{font-size:14px;}
#hm-story-editor .app-comment p{font-size:15px;line-height:1.7;}
#hm-story-editor .app-comment .app-person{font-size:14px;font-weight:500;}
#hm-story-editor .app-comment-actions time{font-size:12px;}
#hm-story-editor .app-comment-actions button{font-size:13px;min-width:36px;min-height:32px;}
#hm-story-editor .app-comment{padding-block:8px;}
#hm-story-editor .app-reader-mode,#hm-story-editor .app-comments-mode{padding-bottom:0;}
#hm-story-editor .app-reader-mode>header,#hm-story-editor .app-comments-mode>header{display:flex;justify-content:space-between;}
#hm-story-editor .app-reader-settings input{accent-color:var(--he-wine);}
#hm-story-editor progress{accent-color:var(--he-wine);}
#hm-story-editor progress::-webkit-progress-value{background:var(--he-wine);}
#hm-story-editor .app-page-controls button{min-width:60px;min-height:44px;font-size:14px;}
#hm-story-editor .app-reader-settings label{font-size:14px;}
#hm-story-editor .design-photo-picker{display:block;position:relative;padding:12px;border:1px solid var(--he-line);border-radius:8px;cursor:pointer;color:var(--he-wine);}
#hm-story-editor .design-photo-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;}
#hm-story-editor .design-photo-picker:focus-within{outline:2px solid var(--he-wine);}
#hm-story-editor #app-footer button{font-size:14px;min-height:44px;}
@media(min-width:900px){#hm-story-editor .he-phone{max-width:980px;}#hm-story-editor #app-nav:not([hidden]){width:980px;}#hm-story-editor main{padding:28px 36px;}#hm-story-editor .books-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;}#hm-story-editor .app-reader-mode main,#hm-story-editor .app-comments-mode main{max-width:680px;margin:auto;}#hm-story-editor .app-auth{max-width:440px;margin:auto;}}
@media(max-width:360px){#hm-story-editor main{padding:16px 12px;}#hm-story-editor .app-library-open img{width:76px;}#hm-story-editor .app-library-copy strong{font-size:16px;}#hm-story-editor #app-nav button{font-size:12px;}#hm-story-editor .book-card{grid-template-columns:74px minmax(0,1fr);gap:12px;}}
#hm-story-editor .he-editorial-hero:after{display:none;}
#hm-story-editor .he-hero-copy>span:first-child{font-size:14px;color:var(--he-muted);}
#hm-story-editor .he-phone.he-home-mode>header>div{display:block;}
#hm-story-editor .he-phone.he-home-mode>header>.he-mail-button{grid-column:auto;grid-row:auto;}
/* Garden identity: quiet botanical edges, coral accents, mint paper. */
#hm-story-editor{--he-paper:#f5f9f2;--he-panel:#fffdf8;--he-ink:#203e35;--he-muted:#53685b;--he-line:#dbe5d7;--he-wine:#a53e38;--he-on:#fffdf8;--he-soft:#fce4d9;--he-gold:#85ae87;}
body{background:#edf3e9;}
#hm-story-editor .he-phone{background:var(--he-paper);}
#hm-story-editor .he-phone.he-home-mode{background:linear-gradient(160deg,#e6f3e2 0%,#f7faf1 42%,#fff7ef 100%);}
#hm-story-editor .he-phone.he-home-mode>header{position:relative;grid-template-columns:48px 1fr 48px;min-height:114px;background:transparent url('/garden-leaves.svg') no-repeat left top;background-size:125px auto;}
#hm-story-editor .he-phone.he-home-mode>header>img{grid-column:2;grid-row:1;width:76px;height:76px;justify-self:center;border-radius:12px;}
#hm-story-editor .he-phone.he-home-mode>header>div{display:none;}
#hm-story-editor .he-phone.he-home-mode>header>.he-mail-button{grid-column:3;grid-row:1;align-self:center;}
#hm-story-editor .he-phone.he-home-mode>header>.he-mail-button span{font-size:11px;}
#hm-story-editor .he-home-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px;}
#hm-story-editor .he-home-heading h3{font-size:25px;line-height:1.5;margin:3px 0;}
#hm-story-editor .he-home-eyebrow{color:#466b50;}
#hm-story-editor .he-editorial-hero{border-radius:48px 48px 22px 22px;border:0;background:var(--he-panel);box-shadow:0 5px 16px #244b3510;margin-bottom:18px;width:100%;}
#hm-story-editor .he-editorial-hero>img{border-radius:0;}
#hm-story-editor .he-hero-copy{padding:12px 16px;gap:3px;text-align:center;background:var(--he-panel);}
#hm-story-editor .he-hero-copy strong{font-size:25px;color:var(--he-ink);}
#hm-story-editor .he-hero-copy>span:first-child{color:var(--he-wine);font-size:13px;}
#hm-story-editor .he-hero-copy .he-hero-call{font-size:14px;color:var(--he-wine);}
#hm-story-editor .garden-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 8px;}
#hm-story-editor .garden-shortcuts button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:#d8ead0;border-radius:28px;min-height:48px;font-size:16px;color:#254d34;}
#hm-story-editor .garden-shortcuts button+button{background:#ffd9c9;color:#823c32;}
#hm-story-editor .garden-favorites{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;color:var(--he-wine);margin-bottom:8px;}
#hm-story-editor .he-home-shelf{margin:8px 0 20px;}
#hm-story-editor .he-shelf-heading h3{font-size:21px;}
#hm-story-editor .he-home-cover{background:var(--he-panel);border-radius:12px;overflow:hidden;padding:0 0 8px;box-shadow:none;}
#hm-story-editor .he-home-cover img{border-radius:0;}
#hm-story-editor .he-home-cover span{display:block;padding:8px 8px 0;font-size:17px;}
#hm-story-editor .garden-meeting{display:flex;align-items:center;gap:12px;text-align:right;width:100%;min-height:92px;border-radius:20px;background:linear-gradient(110deg,#ffeacb,#ffd5c3);padding:16px;color:#74392e;margin-bottom:16px;}
#hm-story-editor .garden-meeting>span:nth-child(2){flex:1;}
#hm-story-editor .garden-meeting strong{display:block;font:500 23px/1.5 'Noto Naskh Arabic',serif;}
#hm-story-editor .garden-meeting small{display:block;font-size:13px;}
#hm-story-editor .he-home-link{border-bottom:1px solid #dbe5d7;}
#hm-story-editor #app-nav:not([hidden]){background:#fffdf8;border-top-color:#dbe5d7;}
#hm-story-editor #app-nav button[aria-current=page]{background:#ffe4d7;color:#a53e38;}
#hm-story-editor .app-library-card{background:#fffdf8;border-color:#dbe5d7;border-radius:12px;box-shadow:none;}
#hm-story-editor .app-library-open img{border-radius:7px;}
#hm-story-editor .app-library-tabs{background:#e8f0e3;}
#hm-story-editor .design-library-tabs [aria-pressed=true]{background:#ffeadf;border-radius:12px 12px 0 0;}
#hm-story-editor .books-heading{border-inline-start:3px solid #e88c70;padding-inline-start:14px;}
#hm-story-editor .app-reader-mode{--he-paper:#fffdf7;--he-panel:#fffdf7;background:#fffdf7;}
#hm-story-editor .app-comments-mode{background:#fffdf8;}
#hm-story-editor .he-night{--he-paper:#202924;--he-panel:#28332c;--he-ink:#edf2e8;--he-muted:#c3d0bd;--he-line:#48594c;--he-wine:#f2b1a0;background:#202924;}
@media(min-width:900px){#hm-story-editor .he-home-mode main{max-width:700px;margin:auto;}#hm-story-editor .he-phone.he-home-mode>header{background-size:180px auto;}}
#hm-story-editor .he-phone.he-home-mode>header{background-position:right top;}
#hm-story-editor .he-hero-copy{align-items:center;min-height:0;}
#hm-story-editor .he-hero-call{align-self:center;}
/* Reference refinement: botanical border and overlapping editorial caption. */
#hm-story-editor .he-phone.he-home-mode{background:#ecf7e7 url('/garden-botanical.png') center top / 100% auto no-repeat;}
#hm-story-editor .he-phone.he-home-mode>header{background:none;min-height:86px;padding-block:8px;}
#hm-story-editor .he-phone.he-home-mode>header>img{width:62px;height:62px;}
#hm-story-editor .he-home-mode main{padding-top:0;}
#hm-story-editor .he-home-heading{position:relative;justify-content:center;text-align:center;padding:0 34px 14px;margin-bottom:0;}
#hm-story-editor .he-home-heading h3{font-size:23px;margin:0;}
#hm-story-editor .he-home-eyebrow{font-size:13px;}
#hm-story-editor .he-home-heading>button{position:absolute;left:0;top:0;font-size:0;min-width:36px;min-height:44px;}
#hm-story-editor .he-home-heading>button svg{width:20px;height:20px;}
#hm-story-editor .he-editorial-hero{overflow:visible;border-radius:38px 38px 24px 24px;background:transparent;box-shadow:none;margin-bottom:12px;}
#hm-story-editor .he-editorial-hero>img{border-radius:38px 38px 0 0;}
#hm-story-editor .he-hero-copy{position:relative;inset:auto;margin-top:-10px;border-radius:18px 18px 24px 24px;padding:10px 12px 8px;box-shadow:0 5px 12px #355f3310;}
#hm-story-editor .he-hero-copy>span:first-child{display:none;}
#hm-story-editor .he-hero-copy strong{font-size:22px;}
#hm-story-editor .he-hero-copy .he-hero-call{font-size:13px;line-height:1.5;}
#hm-story-editor .garden-shortcuts{margin-bottom:12px;}
#hm-story-editor .garden-shortcuts button{background:linear-gradient(110deg,#cfeac5,#b7ddb1);min-height:44px;font-size:15px;}
#hm-story-editor .garden-shortcuts button+button{background:linear-gradient(110deg,#ffb7a5,#ff8e87);color:#542c28;}
#hm-story-editor .garden-favorites{float:left;min-height:36px;font-size:13px;margin:0;}
#hm-story-editor .he-home-shelf{clear:both;margin:6px 0 14px;}
#hm-story-editor .he-shelf-heading h3{font-size:19px;margin:4px 0;}
#hm-story-editor .he-home-cover{background:transparent;border-radius:8px;}
#hm-story-editor .he-home-cover img{border-radius:8px;}
#hm-story-editor .he-home-cover span{font-size:15px;padding:5px 0 0;}
#hm-story-editor .garden-meeting{background:linear-gradient(110deg,#ffe0b9,#ffb6a2);min-height:84px;margin-bottom:10px;}
#hm-story-editor .garden-meeting strong{color:#9d382e;}
#hm-story-editor .he-home-mode #app-footer{background:#f5fbf0;}
@media(min-width:700px){#hm-story-editor .he-phone.he-home-mode{background-size:760px auto;}}
#hm-story-editor .he-home-mode>header>.he-mail-button,#hm-story-editor .he-home-heading>button{background:#fffdf8eF;border-radius:12px;padding:5px;color:#244b39;}
/* Reader chrome stays compact; settings float without consuming reading space. */
#hm-story-editor .he-phone.app-reader-mode>header{min-height:44px;padding:0 14px;gap:8px;}
#hm-story-editor .app-reader-mode #he-main{padding:0 16px 6px;}
#hm-story-editor .app-reader-heading{position:relative;display:flex;align-items:center;gap:8px;margin:0;padding:0;min-height:44px;}
#hm-story-editor .app-reader-title{flex:1;font-size:20px;margin:0;line-height:1.4;}
#hm-story-editor .reader-options{position:relative;flex-shrink:0;}
#hm-story-editor .reader-options summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;list-style:none;}
#hm-story-editor .reader-options summary::-webkit-details-marker{display:none;}
#hm-story-editor .reader-options[open] summary{background:var(--he-soft);border-radius:10px;}
#hm-story-editor .reader-options .app-reader-settings{position:absolute;left:0;top:44px;z-index:40;display:flex;width:min(300px,calc(100vw - 40px));box-sizing:border-box;padding:12px;margin:0;background:var(--he-panel);border:1px solid var(--he-line);border-radius:12px;box-shadow:0 6px 22px #203e3520;}
#hm-story-editor .app-reader-mode .app-page-controls{margin-top:2px;}
#hm-story-editor .app-reader-mode .app-reading-end{margin-top:2px;}
#hm-story-editor .app-reader-mode .app-reading-end button{min-height:40px;}
#hm-story-editor .app-reader-mode #reading-controls progress{margin:0;display:block;}
#hm-story-editor .garden-install{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:0 0 12px;border:1px solid #b6d3ad;border-radius:14px;background:#fffdf8;color:#254d34;font-size:15px;}
#hm-story-editor .garden-install[hidden],#hm-story-editor #home-install-help[hidden]{display:none;}
#hm-story-editor #home-install-help:empty{display:none;}
#hm-story-editor #home-install-help{padding:10px 12px;margin:0 0 12px;background:var(--he-panel);border-radius:12px;}
#hm-story-editor .community-welcome{display:grid;grid-template-columns:minmax(0,1fr) 38%;align-items:center;gap:12px;background:linear-gradient(130deg,#ffe5cf,#f7eee0 55%,#dcebd5);border-radius:26px;overflow:hidden;padding:0 18px 0 0;}
#hm-story-editor .community-welcome img{display:block;width:100%;height:auto;align-self:end;}
#hm-story-editor .community-eyebrow{font-size:13px;color:#963d34;}
#hm-story-editor .community-welcome h2{font:500 27px/1.35 'Noto Naskh Arabic',serif;margin:8px 0;color:#244b39;}
#hm-story-editor .community-welcome p{font-size:14px;line-height:1.8;margin:0 0 12px;}
#hm-story-editor .community-heading{margin:24px 0 12px;}
#hm-story-editor .community-heading h3{font-size:21px;margin:0 0 3px;}
#hm-story-editor .community-heading>span{font-size:13px;color:var(--he-muted);}
#hm-story-editor .community-paths{display:grid;gap:12px;}
#hm-story-editor .community-path{display:flex;align-items:center;text-align:right;gap:12px;width:100%;padding:16px 12px;border-radius:18px;background:#e0efda;}
#hm-story-editor .community-path:nth-child(2){background:#ffe2d4;}
#hm-story-editor .community-path>span:nth-child(2){flex:1;}
#hm-story-editor .community-path strong{display:block;font-size:18px;line-height:1.6;}
#hm-story-editor .community-path small{display:block;font-size:13px;line-height:1.8;color:#4f6155;}
#hm-story-editor .community-symbol{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:14px;background:#fffdf8a0;}
#hm-story-editor .community-symbol svg{width:23px;height:23px;}
#hm-story-editor .community-current,#hm-story-editor .community-question{background:var(--he-panel);border:1px solid var(--he-line);border-radius:18px;padding:18px;margin-top:18px;}
#hm-story-editor .community-current p{font-size:15px;line-height:1.8;}
#hm-story-editor .community-empty{font-size:13px;color:var(--he-muted);line-height:1.8;margin:20px 4px;}
#hm-story-editor .account-exit{margin-top:28px;padding-top:16px;border-top:1px solid var(--he-line);}
#hm-story-editor .account-exit button{min-height:44px;color:#963d34;display:flex;align-items:center;gap:8px;}
@media(min-width:700px){#hm-story-editor .community-welcome{grid-template-columns:1fr 180px;}#hm-story-editor .community-paths{grid-template-columns:1fr 1fr;}#hm-story-editor .community-welcome h2{font-size:34px;}}
#hm-story-editor .discussion-list{display:grid;gap:10px;margin-top:14px;}
#hm-story-editor .discussion-card{display:flex;align-items:center;gap:12px;width:100%;padding:10px;text-align:right;background:var(--he-panel);border:1px solid var(--he-line);border-radius:12px;min-height:84px;}
#hm-story-editor .discussion-art{display:block;width:88px;height:58px;object-fit:contain;flex-shrink:0;border-radius:8px;background:#edf3e5;}
#hm-story-editor .question-art{display:flex;align-items:center;justify-content:center;background:#ffe1d0;color:#963d34;}
#hm-story-editor .question-art svg{width:27px;height:27px;}
#hm-story-editor .discussion-copy{flex:1;min-width:0;}
#hm-story-editor .discussion-copy strong{display:block;font:500 19px/1.5 'Noto Naskh Arabic',serif;overflow-wrap:anywhere;}
#hm-story-editor .discussion-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--he-muted);line-height:1.7;}
#hm-story-editor .discussion-card>svg{flex-shrink:0;}
@media(max-width:360px){#hm-story-editor .discussion-card{gap:8px;}#hm-story-editor .discussion-art{width:68px;height:48px;}#hm-story-editor .discussion-copy strong{font-size:17px;}}
.story-parts{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:14px}.story-parts select{width:auto;min-width:120px;margin:0;padding:4px 10px;min-height:36px}#story-parent{width:100%;margin-bottom:16px}.app-check{display:flex;align-items:center;gap:8px}.app-check input{width:auto}.app-toolbar button[aria-pressed="true"]{background:#dcefd5}
#hm-story-editor #he-main .story-parts{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0 0 8px;font-size:14px}#hm-story-editor #he-main .story-parts select{width:auto;flex:0 1 150px;min-height:36px;margin:0;padding:4px 10px}

#hm-story-editor #he-main .story-writing textarea{min-height:360px;max-height:none;overflow:hidden;resize:none;font-size:19px;line-height:1.9;padding:18px;white-space:pre-wrap}.story-writing-tools{display:flex;justify-content:flex-end;margin-top:24px}.story-writing-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;padding:16px;box-sizing:border-box;background:#fffdf8;color:#203e35;direction:rtl}.story-writing-dialog[open]{display:flex;flex-direction:column;gap:12px}.story-writing-bar{display:flex;justify-content:space-between;align-items:center;gap:12px}.story-writing-bar button{padding:12px;border:1px solid #dbe5d7;border-radius:12px;background:#dcefd5;color:#203e35;font:inherit;cursor:pointer}.story-writing-dialog textarea{flex:1;min-height:0;width:100%;box-sizing:border-box;padding:16px;font:19px/1.9 sans-serif;resize:none;border:1px solid #dbe5d7;border-radius:12px;background:#fffdf8;color:#203e35}.story-delete-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #dbe5d7}.story-delete-row small{display:block;margin-top:4px}.story-delete-section{margin-top:32px;padding-top:20px;border-top:1px solid #dbe5d7}#hm-story-editor .story-delete{color:#a12b27;background:#fff2ee;border:1px solid #dca69c}
#hm-story-editor #he-main input.app-cover-file{width:1px;min-width:0;max-width:1px;height:1px;min-height:0;position:absolute;inset:auto;clip-path:inset(50%)}dialog.story-writing-dialog{width:100vw;left:0;right:auto;margin:0;overflow:hidden;font-family:'Noto Naskh Arabic',serif}dialog.story-writing-dialog textarea{font-family:'Noto Naskh Arabic',serif}
#hm-story-editor .app-reader-mode #reading-text{height:auto!important;min-height:0;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;padding:12px 0 24px;touch-action:pan-y}#hm-story-editor .app-reader-mode #reading-controls{position:static;margin-top:16px;padding-top:12px;border-top:1px solid var(--he-line)}#hm-story-editor .app-reader-mode #app-header{position:sticky;top:0;z-index:45;background:var(--he-paper)}#hm-story-editor .app-reader-mode .app-reader-heading{position:sticky;top:44px;z-index:44;background:var(--he-paper)}#hm-story-editor .app-reader-mode{overflow:visible}

/* Keep the story readable and scrollable; editing fields remain selectable. */
#hm-story-editor #reading-text{user-select:none!important;-webkit-user-select:none!important;-webkit-touch-callout:none;}

/* Membership preview follows the garden palette; no purchase action is enabled. */
#hm-story-editor .membership-entry{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-bottom:16px;border:1px solid #a8cba5;border-radius:16px;background:#e0efd9;color:#244d3b;font-size:20px;font-weight:700}
#hm-story-editor .membership-page{max-width:620px;margin:auto;color:#244d3b}
#hm-story-editor .membership-page h2{font-size:29px;line-height:1.6;margin:8px 0}
#hm-story-editor .membership-page h3{font-size:22px;line-height:1.6;margin:0 0 8px}
#hm-story-editor .membership-page p{font-size:17px;line-height:1.85;margin:0}
#hm-story-editor .membership-hero{position:relative;isolation:isolate;overflow:hidden;padding:30px 22px;border-radius:30px 30px 12px 30px;background:linear-gradient(125deg,#e0efd9,#fff0df);margin-bottom:20px}
#hm-story-editor .membership-eyebrow{font-size:15px;color:#944c40;font-weight:700}
#hm-story-editor .membership-flower{position:absolute;left:-12px;bottom:-42px;font-size:150px;color:#edb4a0;opacity:.35;z-index:-1;line-height:1}
#hm-story-editor .membership-status{display:flex;align-items:flex-start;gap:12px;padding:18px;background:#fffdf8;border:1px solid #d7e3d0;border-radius:18px;margin-bottom:26px}
#hm-story-editor .membership-status>span{padding:9px;background:#fce4d9;border-radius:50%;line-height:1;color:#994b40}
#hm-story-editor .membership-status h3{font-size:19px}
#hm-story-editor .membership-benefits{padding:0;margin:16px 0 26px;list-style:none}
#hm-story-editor .membership-benefits li{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #dce7d7}
#hm-story-editor .membership-benefits svg{flex-shrink:0;width:24px;height:24px;margin-top:5px}
#hm-story-editor .membership-benefits strong{font-size:20px}
#hm-story-editor .membership-plan{text-align:center;padding:24px 20px;background:#fff1e6;border:1px solid #edc7b7;border-radius:24px}
#hm-story-editor .membership-plan h3{margin-top:10px}
#hm-story-editor .membership-page .membership-price{font-size:48px;line-height:1.3;font-weight:700}
#hm-story-editor .membership-price span{font-size:20px;font-weight:400}
#hm-story-editor .membership-page .membership-price-note{font-size:15px;margin:6px 0 18px}
#hm-story-editor .membership-plan button:disabled{width:100%;min-height:50px;border:0;border-radius:14px;background:#ead4ca;color:#62483e;opacity:1;cursor:default;font-size:18px}
#hm-story-editor .membership-page #membership-payment-note{font-size:15px;margin-top:12px}
#hm-story-editor .membership-faq{margin-top:28px}
#hm-story-editor .membership-faq details{padding:15px 0;border-bottom:1px solid #dce7d7}
#hm-story-editor .membership-faq summary{cursor:pointer;font-size:18px;font-weight:700;min-height:32px}
#hm-story-editor .membership-faq details p{padding-top:8px}
#hm-story-editor .he-night .membership-page{color:#ecf2e8}
#hm-story-editor .he-night .membership-hero,#hm-story-editor .he-night .membership-plan,#hm-story-editor .he-night .membership-status{background:#273d32;color:#ecf2e8;border-color:#587060}
#hm-story-editor .he-night .membership-eyebrow{color:#f6bba7}

/* Allow native pull-to-refresh; the current view is restored after reload. */
html,body{overscroll-behavior-y:auto}
#hm-story-editor .he-note,#hm-story-editor label{font-size:17px;line-height:1.8}
#hm-story-editor .he-home-eyebrow,#hm-story-editor .he-home-heading button,#hm-story-editor .he-shelf-heading button{font-size:17px}
#hm-story-editor .discussion-meta,#hm-story-editor .app-library-meta,#hm-story-editor small{font-size:15px;line-height:1.7}
#hm-story-editor input,#hm-story-editor textarea,#hm-story-editor select{font-size:18px}
#hm-story-editor #app-nav button span{font-size:15px}
#hm-story-editor .app-reader-heading .app-reader-title{font-size:26px;line-height:1.55;overflow-wrap:anywhere;min-width:0}
#hm-story-editor .reader-options summary{width:auto;min-width:62px;min-height:48px;height:auto;flex-direction:column;gap:3px;padding:4px;border-radius:10px}
#hm-story-editor .reader-options summary span{font-size:14px;line-height:1.4}
#hm-story-editor .reader-options summary svg{width:25px;height:25px}
#hm-story-editor .reader-options .app-reader-settings{top:100%}
#hm-story-editor #app-header .app-back{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:72px;min-height:44px;padding:4px 8px;border:1px solid var(--he-line);border-radius:12px;background:var(--he-panel);font-size:18px}
#hm-story-editor .app-row,#hm-story-editor .app-row button,#hm-story-editor .app-person,#hm-story-editor .app-text,#hm-story-editor .app-empty{font-size:17px;line-height:1.8}
#hm-story-editor .app-row small,#hm-story-editor #app-footer button,#hm-story-editor .app-toolbar button{font-size:15px}
#hm-story-editor .app-reader-mode #app-header{height:64px;min-height:64px;box-sizing:border-box}
#hm-story-editor .app-reader-mode .app-reader-heading{top:64px}
#hm-story-editor .device-panel{padding:18px 4px;font-size:18px;line-height:1.9}
#hm-story-editor .device-panel h3{font-size:25px;line-height:1.6}
#hm-story-editor .device-panel>button{min-height:48px;margin:10px 0}
#hm-story-editor .device-panel select{width:100%;min-height:48px;border:1px solid var(--he-line);border-radius:12px;padding:8px;background:var(--he-panel);color:inherit}
#hm-story-editor .device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--he-line)}
#hm-story-editor .device-row strong{font-size:20px}
#hm-story-editor .device-row button{min-height:44px;flex-shrink:0}
#hm-story-editor .device-panel button,#hm-story-editor .device-panel form button{font-size:18px;min-height:48px}
#hm-story-editor .verification-panel{max-width:460px;margin:12px auto;padding:24px 20px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:24px;text-align:center;box-sizing:border-box}
#hm-story-editor .verification-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto 14px;border-radius:50%;background:#e1efd9;color:#28543c}
#hm-story-editor .verification-icon svg{width:28px;height:28px}
#hm-story-editor .verification-panel h3{margin:8px 0 14px;font-size:26px}
#hm-story-editor .verification-panel p{margin:10px 0;font-size:18px;line-height:1.85}
#hm-story-editor .verification-email{display:block;font-family:Arial,sans-serif;font-size:18px;overflow-wrap:anywhere;margin:12px 0 20px}
#hm-story-editor .verification-panel .verification-primary,#hm-story-editor .verification-form button[type=submit]{display:block;width:100%;min-height:54px;margin:20px 0 12px;border-radius:14px;font-size:19px}
#hm-story-editor .verification-form{text-align:right;margin-top:22px}
#hm-story-editor .verification-form #device-code{text-align:center;font-family:Arial,sans-serif;font-size:28px;letter-spacing:8px;min-height:60px;width:100%;box-sizing:border-box;border-radius:14px}
#hm-story-editor .verification-panel .he-note{font-size:15px;line-height:1.7}
#hm-story-editor .verification-help{text-align:right;padding:12px 0;border-top:1px solid var(--he-line)}
#hm-story-editor .verification-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:17px;text-decoration:underline;text-underline-offset:5px}
#hm-story-editor .verification-help button{width:100%}
#hm-story-editor .verification-help button:disabled{opacity:.65;cursor:default}
#hm-story-editor .verification-replace{padding:12px;border-radius:14px;background:var(--he-bg);margin:18px 0}
#hm-story-editor .verification-panel .verification-switch{display:block;margin:14px auto 0;background:transparent;border:0;text-decoration:underline;font-size:15px}
@media(max-width:360px){#hm-story-editor .verification-panel{padding:18px 14px;margin:8px auto}#hm-story-editor .verification-panel h3{font-size:23px}}
/* Readable Arabic interface and first-class participation cards. */
#hm-story-editor{font-size:18px;line-height:1.8}
#hm-story-editor h2{font-size:26px;line-height:1.6}
#hm-story-editor h3{font-size:23px;line-height:1.6}
#hm-story-editor button{font-size:18px;min-height:48px;white-space:normal;overflow-wrap:anywhere}
#hm-story-editor input:not([type=radio]):not([type=checkbox]),#hm-story-editor textarea,#hm-story-editor select{font-size:19px;line-height:1.7}
#hm-story-editor label,#hm-story-editor .app-text,#hm-story-editor .app-row,#hm-story-editor .app-empty,#hm-story-editor .he-note{font-size:18px;line-height:1.85}
#hm-story-editor small,#hm-story-editor time,#hm-story-editor .discussion-meta,#hm-story-editor .app-library-meta,#hm-story-editor .app-toolbar button,#hm-story-editor #app-footer button{font-size:16px;line-height:1.7}
#hm-story-editor .app-library-copy strong,#hm-story-editor .he-home-cover span,#hm-story-editor .discussion-copy strong{font-size:21px;line-height:1.65}
#hm-story-editor .he-phone:not(.he-home-mode)>header>#he-back,#hm-story-editor #app-header .app-back{font-size:20px;min-width:96px;min-height:50px;padding:8px 12px;border:1px solid #a53e38;border-radius:14px;background:#fce4d9;color:#85312d;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 2px 5px #244b3512}
#hm-story-editor #app-header .app-back svg{width:22px;height:22px;flex-shrink:0}
#hm-story-editor .he-phone:not(.he-home-mode)>header{grid-template-columns:minmax(96px,1fr) 64px minmax(96px,1fr);gap:8px;padding:12px}
#hm-story-editor .he-phone:not(.he-home-mode)>header>img{grid-column:2;grid-row:1;justify-self:center}
#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>header .he-mail-button,#hm-story-editor .he-phone.he-home-mode>header>.he-mail-button span{font-size:15px;line-height:1.6;white-space:normal}
#hm-story-editor .he-phone.he-home-mode>header{grid-template-columns:96px 1fr 96px}
#hm-story-editor .he-home-heading{gap:12px;flex-wrap:wrap}
#hm-story-editor #app-nav button span{font-size:16px;line-height:1.5}
#hm-story-editor .app-reader-mode #app-header,#hm-story-editor .app-comments-mode #app-header{display:flex;justify-content:space-between;min-height:74px;height:auto;gap:12px}
#hm-story-editor .app-reader-mode .app-reader-heading{top:74px}
#hm-story-editor .app-reader-title{font-size:28px}
#hm-story-editor .participation-section{margin:28px 0;padding:0;text-align:right}
#hm-story-editor .participation-intro{font-size:18px;margin:0 0 16px;color:var(--he-muted)}
#hm-story-editor .participation-cards{display:grid;gap:16px}
#hm-story-editor .participation-card{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:22px;border-radius:24px;border:1px solid #bad6b7;background:linear-gradient(125deg,#e1f0d9,#f7fbef);text-align:right;color:#203e35;box-shadow:0 4px 12px #244b3509}
#hm-story-editor .participation-poll{background:linear-gradient(125deg,#ffdfcd,#fff2e5);border-color:#edb69c}
#hm-story-editor .participation-question{background:linear-gradient(125deg,#def0ee,#f1faf8);border-color:#acd4cf}
#hm-story-editor .participation-kind{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600}
#hm-story-editor .participation-kind svg{width:28px;height:28px;flex-shrink:0}
#hm-story-editor .participation-card strong{font-size:24px;line-height:1.65;overflow-wrap:anywhere}
#hm-story-editor .participation-summary{font-size:18px;line-height:1.85;overflow-wrap:anywhere}
#hm-story-editor .participation-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #244b3520;padding-top:12px;font-size:18px;font-weight:600}
#hm-story-editor .participation-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
#hm-story-editor .participation-links button{flex:1;min-width:130px;border:1px solid var(--he-line);background:var(--he-panel);border-radius:14px;font-size:17px}
#hm-story-editor .community-welcome{margin-bottom:24px}
#hm-story-editor .community-welcome p{font-size:18px}
#hm-story-editor .he-night .participation-card{background:#273d32;border-color:#587060;color:#ecf2e8}
#hm-story-editor .he-night .participation-cta{border-color:#587060}
@media(max-width:360px){#hm-story-editor main{padding:16px 12px}#hm-story-editor .participation-card{padding:18px}#hm-story-editor .he-phone:not(.he-home-mode)>header{padding:10px 8px;gap:4px}#hm-story-editor #app-nav button span{font-size:15px}}
#hm-story-editor .he-phone>header .he-mail-button span,#hm-story-editor .he-phone.he-home-mode>header>.he-mail-button span{font-size:15px;line-height:1.6}
#hm-story-editor .he-activity-item,#hm-story-editor .he-inbox-item,#hm-story-editor .he-message-bubble,#hm-story-editor .he-answer,#hm-story-editor .he-order-row,#hm-story-editor .he-poll-choice,#hm-story-editor .he-poll-result,#hm-story-editor .app-comment-content p{font-size:18px;line-height:1.85}
#hm-story-editor .he-activity-item strong,#hm-story-editor .he-inbox-item strong,#hm-story-editor .he-message-bubble strong{font-size:20px;line-height:1.65}
#hm-story-editor .he-hero-copy span,#hm-story-editor .garden-shortcuts button,#hm-story-editor .garden-favorites,#hm-story-editor .garden-install,#hm-story-editor .community-eyebrow,#hm-story-editor .app-comment-actions button,#hm-story-editor .app-comment-actions time{font-size:16px;line-height:1.7}
#hm-story-editor .garden-meeting small{font-size:16px;line-height:1.7}
/* Distinguish a saved personal answer from aggregate poll results. */
#hm-story-editor .answer-confirmation{margin:24px 0 36px;padding:20px;border:1px solid #91bc9b;border-radius:20px;background:#f0f9ee;text-align:right}
#hm-story-editor .answer-confirmation .answer-success{display:flex;align-items:center;gap:9px;margin:0 0 18px;color:#176b36;font-size:20px;font-weight:700;line-height:1.6}
#hm-story-editor .answer-success svg{width:25px;height:25px;flex-shrink:0}
#hm-story-editor .answer-confirmation h4,#hm-story-editor .poll-results-panel h4{font-size:18px;line-height:1.7;margin:0 0 12px;font-weight:600}
#hm-story-editor .answer-confirmation .answer-selected{margin:0;padding:0;color:#214931;font-size:23px;font-weight:700;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;list-style:none}
#hm-story-editor .answer-selected li+li{margin-top:12px;padding-top:12px;border-top:1px solid #bed7c0}
#hm-story-editor .poll-results-panel{margin:0 0 24px}
#hm-story-editor .poll-results-list{padding:8px 16px;background:var(--he-panel);border:1px solid var(--he-line);border-radius:20px}
#hm-story-editor .poll-results-list .he-poll-result{padding:18px 0;gap:12px;align-items:start;font-size:18px;line-height:1.8}
#hm-story-editor .poll-results-list .he-poll-result+.he-poll-result{border-top:1px solid var(--he-line)}
#hm-story-editor .poll-result-label{min-width:0;overflow-wrap:anywhere}
#hm-story-editor .poll-your-choice{display:block;font-size:16px;color:#176b36;font-weight:700;margin-top:6px}
#hm-story-editor .poll-result-selected .poll-result-label>span{font-weight:700}
#hm-story-editor .poll-percentage{font-variant-numeric:tabular-nums;white-space:nowrap;direction:ltr}
#hm-story-editor .poll-results-list .he-result-track{height:8px}
#hm-story-editor .poll-result-selected .he-result-track span{background:#218246}
#hm-story-editor .answer-edit{margin-bottom:12px;font-size:18px}
#hm-story-editor .he-night .answer-confirmation{background:#203d2b;border-color:#638c6c}
#hm-story-editor .he-night .answer-success,#hm-story-editor .he-night .poll-your-choice{color:#8fdfa7}
#hm-story-editor .he-night .answer-confirmation .answer-selected{color:#e2f4df}
/* Give the home discussion card a distinct mint surface. */
#hm-story-editor .he-home-mode .participation-issue{background:linear-gradient(125deg,#b9ddb1,#cee8c6);border:2px solid #81aa79;color:#193c2c;box-shadow:0 5px 14px #244b351a}
#hm-story-editor .he-home-mode .participation-issue .participation-cta{border-top-color:#759b7080}
#hm-story-editor .he-home-mode.he-night .participation-issue{background:#31533b;border-color:#7da985;color:#ecf2e8}
#hm-story-editor .issue-question{padding:20px;background:#d9edcf;border:1px solid #9ac193;border-radius:20px;margin-bottom:24px;overflow-wrap:anywhere}
#hm-story-editor .issue-question h3{font-size:24px;line-height:1.8;white-space:pre-wrap;margin-top:10px}
#hm-story-editor .issue-incoming{margin:24px 0}
#hm-story-editor .issue-incoming .he-issue-submission{padding:20px;margin:16px 0;border:1px solid var(--he-line);border-radius:18px;background:var(--he-panel)}
#hm-story-editor .issue-published{margin-top:32px;scroll-margin-top:20px}
#hm-story-editor .published-opinion{padding:20px;margin:16px 0;background:var(--he-panel);border:1px solid #aec7a9;border-radius:18px;overflow-wrap:anywhere}
#hm-story-editor .published-opinion p{font-size:21px;line-height:1.9;white-space:pre-wrap}
#hm-story-editor .published-opinion strong{font-size:17px;color:var(--he-wine)}
#hm-story-editor .contribution-item{margin:24px 0 36px;border-bottom:1px solid var(--he-line);padding-bottom:20px;overflow-wrap:anywhere}
#hm-story-editor .contribution-item .answer-confirmation{margin-bottom:12px}
#hm-story-editor .opinion-publish-form textarea{min-height:240px}
#hm-story-editor .he-night .issue-question{background:#31533b;color:#ecf2e8;border-color:#7da985}
/* Selected reader contributions: a calm, manual card reader. */
#hm-story-editor .issue-deck-entry{position:relative;text-align:center;padding:26px 20px;border:1px solid #e4b69b;border-radius:26px;background:linear-gradient(135deg,#fff4df,#ffdfce);box-shadow:0 6px 18px #77503b10}
#hm-story-editor .issue-deck-entry h3{font-size:25px;color:#934b35;margin:12px 0}
#hm-story-editor .issue-deck-entry .he-primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:#245d49;border-radius:30px;font-size:21px}
#hm-story-editor .issue-new-link{display:block;margin:16px auto 0;background:transparent;color:#713b2d;border:0;font-size:18px}
#hm-story-editor .issue-stack-art svg{width:38px;height:38px;color:#a56346}
#hm-story-editor .issue-new-badge{display:inline-block;align-self:start;background:#ffdfca;color:#713323;border-radius:20px;padding:4px 14px;font-size:16px;font-weight:700}
#hm-story-editor .issue-card-count{font-size:18px}
#hm-story-editor .he-phone.issue-deck-mode{padding-bottom:0;background:#fffaf1}
#hm-story-editor .he-phone.issue-deck-mode>header{display:flex;justify-content:space-between;min-height:78px;padding:12px 18px;background:transparent url('/garden-leaves.svg') no-repeat center top;background-size:100px}
#hm-story-editor .he-phone.issue-deck-mode>header img{width:46px;height:46px}
#hm-story-editor .issue-deck-mode #app-footer{display:none}
#hm-story-editor .issue-deck-mode main{max-width:680px;margin:0 auto;padding:8px 18px 16px;width:100%;box-sizing:border-box}
#hm-story-editor .issue-deck-question{font-size:22px;line-height:1.7;text-align:center;margin:0 0 16px;overflow-wrap:anywhere}
#hm-story-editor .issue-slide{height:clamp(300px,calc(100dvh - 290px),740px);box-sizing:border-box;display:flex;flex-direction:column;padding:22px 22px 14px;border:1px solid #e7b494;border-radius:26px;background:url('/garden-leaves.svg') left top / 56px auto no-repeat,url('/garden-leaves.svg') right bottom / 50px auto no-repeat,linear-gradient(145deg,#fffdf5,#fff0da);box-shadow:0 5px 14px #80573612;touch-action:pan-y pinch-zoom;overflow:hidden;animation:issue-card-in .18s ease-out}
#hm-story-editor .issue-slide:focus-visible{outline:3px solid #367b58;outline-offset:3px}
#hm-story-editor .issue-slide-label{display:block;text-align:center;font-size:18px;color:#965136;margin-bottom:16px}
#hm-story-editor .issue-slide-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;display:flex;flex-direction:column;touch-action:pan-y pinch-zoom}
#hm-story-editor .issue-slide-scroll p{font-size:clamp(25px,6.5vw,32px);font-weight:600;line-height:1.9;text-align:center;color:#204a38;white-space:pre-wrap;overflow-wrap:anywhere;margin:auto 0;padding:8px 0}
#hm-story-editor .issue-slide-logo{width:34px;height:34px;object-fit:contain;border-radius:6px;margin:16px auto 0;opacity:.8}
#hm-story-editor .issue-deck-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:18px}
#hm-story-editor .issue-deck-controls button{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:26px;min-height:48px;padding:8px 14px;font-size:19px;border:1px solid #46735b}
#hm-story-editor .issue-deck-controls .he-primary{background:#245d49}
#hm-story-editor .issue-deck-controls button:disabled{opacity:.4;cursor:default}
#hm-story-editor .issue-deck-controls span{white-space:nowrap;font-size:18px}
#hm-story-editor .issue-swipe-hint{text-align:center;font-size:16px;color:#586a5a;margin:12px 0 0}
#hm-story-editor .he-night.issue-deck-mode{background:#192a23}
#hm-story-editor .he-night .issue-slide,#hm-story-editor .he-night .issue-deck-entry{background:#293e30;border-color:#7c957c}
#hm-story-editor .he-night .issue-slide-scroll p,#hm-story-editor .he-night .issue-deck-entry h3,#hm-story-editor .he-night .issue-new-link,#hm-story-editor .he-night .issue-slide-label,#hm-story-editor .he-night .issue-swipe-hint{color:#edf5e6}
#hm-story-editor .issue-publish-preview{margin-top:24px}
#hm-story-editor .issue-publish-preview summary{cursor:pointer;font-size:20px;padding:14px;border:1px solid #9ac193;border-radius:14px;margin-bottom:16px}
@keyframes issue-card-in{from{opacity:.65;transform:translateX(-10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#hm-story-editor .issue-slide{animation:none}}
/* Horizontal shelves keep the home page compact as the library grows. */
#hm-story-editor .participation-shelf{min-width:0;margin:24px 0}
#hm-story-editor .participation-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#hm-story-editor .participation-shelf-heading h3{font-size:23px;margin:8px 0 16px}
#hm-story-editor .participation-shelf-heading button{flex-shrink:0;font-size:17px}
#hm-story-editor .participation-shelf .participation-cards{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 0 10px;overscroll-behavior-x:contain;scrollbar-width:thin}
#hm-story-editor .participation-shelf .participation-card{flex:0 0 100%;max-width:none;min-width:0;min-height:150px;scroll-snap-align:start;box-sizing:border-box;margin:0;justify-content:center;gap:10px;padding:18px 22px;border-radius:18px;box-shadow:none}
#hm-story-editor .participation-shelf .participation-card strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#hm-story-editor .shelf-swipe-hint{font-size:15px;color:var(--he-muted);margin:2px 0}
#hm-story-editor .issue-deck-mode main{padding-bottom:105px}
#hm-story-editor .issue-deck-mode .issue-slide{height:clamp(280px,calc(100dvh - 370px),680px)}
#hm-story-editor .deck-action{position:fixed;z-index:35;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,680px);box-sizing:border-box;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:var(--he-paper);border-top:1px solid var(--he-line)}
#hm-story-editor .deck-action button{display:block;width:100%;border-radius:20px;font-size:21px;min-height:52px}
#hm-story-editor .deck-action .he-primary{background:#245d49}
#hm-story-editor .deck-action p{font-size:16px;text-align:center;margin:0}
#hm-story-editor .issue-reply-form textarea{min-height:240px;font-size:21px;line-height:1.8}
#hm-story-editor .submission-privacy{padding:18px;border-radius:18px;background:#ffead6;color:#553e2c;font-size:18px;line-height:1.85}
#hm-story-editor .poll-vote-form .he-poll-choice{border:1px solid #c7cdbf;border-radius:18px;padding:18px;margin:14px 0;font-size:22px;background:var(--he-panel)}
#hm-story-editor .poll-vote-form .he-poll-choice:has(input:checked){background:#e1efd6;border-color:#356744;color:#204a38}
#hm-story-editor .poll-slide{padding:20px 16px}
#hm-story-editor .poll-slide .issue-slide-scroll{display:block}
#hm-story-editor .poll-slide .issue-slide-scroll p{font-size:18px;font-weight:400;line-height:1.7;text-align:right;margin:8px 0;padding:0}
#hm-story-editor .poll-slide .issue-slide-scroll h3{font-size:22px;margin:8px 0 16px;text-align:center}
#hm-story-editor .poll-slide .issue-slide-scroll .answer-success{font-size:19px;font-weight:700;color:#176b36;background:#dfefd5;border-radius:12px;padding:12px;display:flex;gap:8px}
#hm-story-editor .poll-deck-result{border:1px solid #b5c4ad;border-radius:16px;padding:14px;margin:12px 0;background:var(--he-panel);font-size:21px;line-height:1.8}
#hm-story-editor .poll-deck-result.poll-result-selected{border:2px solid #39724c;background:#e5f2dc;color:#1e4e32}
#hm-story-editor .poll-private-choice{padding:16px;border:1px solid #39724c;border-radius:16px}
#hm-story-editor .he-night .poll-deck-result.poll-result-selected,#hm-story-editor .he-night .poll-vote-form .he-poll-choice:has(input:checked){background:#294b33;color:#e7f3df}
#hm-story-editor .he-night .poll-slide .issue-slide-scroll p{color:#e7f3df}
#hm-story-editor .he-night .poll-slide .issue-slide-scroll .answer-success{background:#294b33;color:#a3eab2}
#hm-story-editor .issue-deck-mode .poll-slide{height:clamp(280px,calc(100dvh - 330px),700px)}
#hm-story-editor .poll-slide .poll-deck-result{padding:10px 12px;margin:8px 0;font-size:20px}
#hm-story-editor .shelf-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}
#hm-story-editor .shelf-controls span{font-size:15px;color:var(--he-muted)}
#hm-story-editor .shelf-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--he-line);border-radius:50%;background:var(--he-panel)}
#hm-story-editor .poll-admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 16px}
#hm-story-editor .poll-admin-actions button{flex:1 1 150px;min-height:48px;font-size:18px;padding:12px;border-radius:14px}
#hm-story-editor .activity-management-item{margin-bottom:18px}
#hm-story-editor .activity-item-actions{display:flex;gap:12px;padding:12px 0}
#hm-story-editor .activity-item-actions button{flex:1;min-height:48px;font-size:18px}
/* Type roles: stable previews, readable content, and scalable text preferences. */
#hm-story-editor{--ui-helper:1rem;--ui-body:1.125rem;--ui-section:1.375rem;--ui-reading:1.5rem}
#hm-story-editor .participation-shelf .participation-card{height:11.5rem;min-height:11.5rem;max-height:11.5rem;gap:.5rem;padding:1rem 1.25rem;justify-content:center;overflow:hidden}
#hm-story-editor .participation-shelf .participation-kind{font-size:var(--ui-helper);line-height:1.6;flex-shrink:0}
#hm-story-editor .participation-kind svg{width:1.375rem;height:1.375rem}
#hm-story-editor .participation-shelf .participation-card strong{font-size:var(--ui-section);line-height:1.6;font-weight:600;margin:0;flex-shrink:0;max-height:4.8em}
#hm-story-editor .participation-shelf-heading h3,#hm-story-editor .he-shelf-heading h3,#hm-story-editor .issue-question h3,#hm-story-editor .issue-deck-question{font-size:var(--ui-section);line-height:1.6}
#hm-story-editor .participation-shelf-heading button,#hm-story-editor .he-shelf-heading button{font-size:var(--ui-body);min-height:44px}
#hm-story-editor .he-home-cover span,#hm-story-editor .app-library-copy strong,#hm-story-editor .discussion-copy strong{font-size:1.25rem;line-height:1.65}
#hm-story-editor .issue-slide-scroll p{font-size:var(--ui-reading);line-height:1.8;font-weight:500}
#hm-story-editor .issue-slide-label,#hm-story-editor .issue-swipe-hint,#hm-story-editor .shelf-controls span{font-size:var(--ui-helper);line-height:1.65}
#hm-story-editor .deck-action button,#hm-story-editor .issue-deck-controls button,#hm-story-editor .poll-admin-actions button,#hm-story-editor .activity-item-actions button{font-size:var(--ui-body);line-height:1.6;min-height:48px}
#hm-story-editor .poll-vote-form .he-poll-choice,#hm-story-editor .poll-slide .poll-deck-result{font-size:1.25rem;line-height:1.7}
#hm-story-editor #he-main .issue-reply-form textarea,#hm-story-editor #he-main .opinion-publish-form textarea,#hm-story-editor .submission-privacy{font-size:var(--ui-body);line-height:1.8}
#hm-story-editor .answer-confirmation .answer-selected{font-size:1.25rem;line-height:1.8}
#hm-story-editor .poll-slide .issue-slide-scroll p{font-size:var(--ui-body);line-height:1.7}
#hm-story-editor .poll-slide .issue-slide-scroll h3{font-size:var(--ui-section);line-height:1.6}
#hm-story-editor .poll-slide .issue-slide-scroll .answer-success{font-size:var(--ui-body)}
#hm-story-editor .deck-action .participation-receipt{color:#19613e;font-size:1.125rem;font-weight:600;line-height:1.6;margin:0 0 8px}
#hm-story-editor .issue-deck-mode main:has(.own-participation-action){padding-bottom:160px}
#hm-story-editor .opinion-edited{display:inline-block;background:#fff0d5;color:#694619;border-radius:10px;padding:5px 12px;font-size:1rem;line-height:1.6}
/* Unified interface roles. Keep reading text's user-selected size independent. */
#hm-story-editor #he-main button:not(.he-editorial-hero):not(.he-home-cover):not(.participation-card):not(.app-library-card):not(.discussion-card){font-size:var(--ui-body);line-height:1.6;min-height:3rem;height:auto}
#hm-story-editor #he-main button[type=submit],#hm-story-editor #he-main .he-primary{font-size:var(--ui-body);min-height:3.25rem;padding:.65rem 1rem;border-radius:14px;background:#245d49;color:#fffdf8}
#hm-story-editor #he-main .he-secondary{background:var(--he-panel);color:var(--he-ink);border:1px solid var(--he-line)}
#hm-story-editor #he-main .story-delete{background:#fff2ee;color:#a12b27;border:1px solid #dca69c}
#hm-story-editor #he-main label,#hm-story-editor #he-main .app-text,#hm-story-editor #he-main .app-empty{font-size:var(--ui-body);line-height:1.8}
#hm-story-editor #he-main .he-note,#hm-story-editor #he-main small,#hm-story-editor #he-main time{font-size:var(--ui-helper);line-height:1.7}
#hm-story-editor #he-main input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),#hm-story-editor #he-main select{font-size:var(--ui-body)!important;line-height:1.7;min-height:3rem;height:auto;padding:.6rem .75rem;box-sizing:border-box;max-width:100%}
#hm-story-editor #he-main textarea.writing-field{font-size:var(--ui-body)!important;line-height:1.85;min-height:12rem;padding:1rem;box-sizing:border-box;overflow:hidden;resize:vertical;max-height:none}
#hm-story-editor #he-main .story-writing textarea.writing-field{min-height:max(22.75rem,362px)}
#hm-story-editor #he-main .writing-count{display:block;text-align:left;margin:.25rem 0 1rem;color:var(--he-muted)}
#hm-story-editor #he-main h3{font-size:var(--ui-section);line-height:1.6}
#hm-story-editor #he-main .he-home-heading h3{font-size:1.5rem}
#hm-story-editor #he-main .he-home-eyebrow,#hm-story-editor #he-main .he-hero-call,#hm-story-editor #he-main .reader-options summary span{font-size:var(--ui-helper)}
#hm-story-editor #app-header h2{font-size:1.25rem}
#hm-story-editor #app-header .he-mail-button,#hm-story-editor #app-nav button,#hm-story-editor #app-nav button span,#hm-story-editor #app-footer button{font-size:1rem;line-height:1.5}
#hm-story-editor #app-header .app-back{font-size:1.25rem}
#hm-story-editor #he-main .participation-card{height:auto;min-height:11.5rem;max-height:none}
#hm-story-editor #he-main .participation-card strong{font-size:var(--ui-section)}
#hm-story-editor #he-main .he-home-cover img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
#hm-story-editor #he-main .he-editorial-hero>img{width:100%;aspect-ratio:16/9;object-fit:cover;max-height:20rem}
#hm-story-editor #he-main .he-editorial-hero .he-hero-copy{padding:.75rem 1rem}
#hm-story-editor #he-main .he-editorial-hero strong{font-size:1.375rem;line-height:1.6}
#hm-story-editor #he-main .he-home-heading{margin:0 0 .75rem}
#hm-story-editor #he-main .he-home-shelf,#hm-story-editor #he-main .participation-shelf{margin-top:1.5rem;margin-bottom:1.5rem}
#hm-story-editor #he-main .he-home-covers{gap:1rem}
#hm-story-editor #he-main .he-home-cover{padding:0;align-self:start}
#hm-story-editor #he-main .he-home-cover span{font-size:1.25rem;line-height:1.65;margin-top:.4rem}
#hm-story-editor #he-main .he-shelf-heading,#hm-story-editor #he-main .participation-shelf-heading{gap:.5rem;flex-wrap:wrap;align-items:center}
#hm-story-editor #he-main .he-shelf-heading h3,#hm-story-editor #he-main .participation-shelf-heading h3{margin:0;flex:1 1 10rem}
#hm-story-editor #he-main .garden-meeting{min-height:3rem;background:#fff0e3;border:1px solid #efcbb5;border-radius:14px;padding:.75rem;margin-top:1rem}
#hm-story-editor #he-main .garden-meeting strong{font-size:var(--ui-body);line-height:1.6}
#hm-story-editor #he-main .garden-meeting small{font-size:var(--ui-helper)}
#hm-story-editor #he-main .profile-group{padding:1rem;margin:0 0 1.25rem;border:1px solid var(--he-line);border-radius:18px;background:var(--he-panel)}
#hm-story-editor #he-main .profile-group h3{margin:0 0 .75rem}
#hm-story-editor #he-main .profile-group .membership-entry{width:100%;margin:.5rem 0;padding:.75rem;font-size:var(--ui-body);min-height:3rem}
#hm-story-editor #he-main .profile-group .app-card{padding:0;margin:0;border:0;background:transparent}
#hm-story-editor #he-main .profile-group .profile-email{overflow-wrap:anywhere}
#hm-story-editor #he-main .profile-group a{display:inline-flex;align-items:center;min-height:3rem;font-size:var(--ui-body)}
#hm-story-editor #he-main .profile-group button[type=submit]{margin-top:1rem}
#hm-story-editor #he-main .profile-group #profile-install{width:100%}
#hm-story-editor #he-main .profile-group #install-help:empty,#hm-story-editor #he-main #home-install-help:empty{display:none}
#hm-story-editor #he-main .poll-vote-form .he-poll-choice{font-size:1.25rem;min-height:3rem;box-sizing:border-box}
#hm-story-editor #he-main .poll-vote-form input{flex-shrink:0}
#hm-story-editor #he-main .app-reader-settings button{min-width:3rem}
#hm-story-editor #he-main .issue-deck-controls{flex-wrap:wrap}
#hm-story-editor #he-main .issue-deck-controls button{flex:1 1 5rem}
#hm-story-editor .he-phone:not(.issue-deck-mode):not(.app-reader-mode){padding-bottom:calc(var(--navigation-height,78px) + 1rem)}
#hm-story-editor #he-main .he-home-heading{display:flex;justify-content:space-between;text-align:right;padding:0;gap:.5rem;align-items:center}
#hm-story-editor #he-main .he-home-heading>div{flex:1 1 11rem}
#hm-story-editor #he-main .he-home-heading>button{position:static;flex:0 0 auto;font-size:var(--ui-helper)}
#hm-story-editor #he-main .profile-group a{color:var(--he-ink);text-underline-offset:4px}
#hm-story-editor #he-main .app-library-meta,#hm-story-editor #he-main .app-library-meta span{font-size:var(--ui-helper)}
#hm-story-editor #he-main input[type=range]{min-height:3rem}
/* Center the welcome copy; keep notifications with the header controls. */
#hm-story-editor #he-main .he-home-heading{display:block;text-align:center;padding:.5rem .75rem;margin:0 0 .75rem;border-radius:18px;background:#eff8e9}
#hm-story-editor #he-main .he-home-heading>div{width:100%;text-align:center}
#hm-story-editor #he-main .he-home-heading h3{margin:0;line-height:1.65}
#hm-story-editor #app-header .home-notifications{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:static;min-height:48px;min-width:48px;padding:6px;border-radius:12px;background:#fffdf8ef;color:#244b39;font-size:1rem;line-height:1.5;grid-column:1;grid-row:1}
#hm-story-editor #app-header .home-notifications svg{width:22px;height:22px}
#hm-story-editor #app-header .home-notifications span{display:block;font-size:1rem;color:inherit}
#hm-story-editor #app-header .he-mail-button{min-height:48px;min-width:48px;padding:6px;gap:3px}
#hm-story-editor #app-header .he-mail-button span{font-size:.875rem;line-height:1.45;font-weight:400}
#hm-story-editor #he-main .he-editorial-hero .he-hero-copy{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:.4rem .85rem;gap:.5rem;min-height:0;text-align:center;border-radius:14px 14px 18px 18px}
#hm-story-editor #he-main .he-editorial-hero .he-hero-copy strong{grid-column:2;grid-row:1;min-width:0;max-width:100%;line-height:1.45}
#hm-story-editor #he-main .he-editorial-hero .he-hero-copy .he-hero-call{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap;font-size:.875rem;gap:.3rem}
#hm-story-editor #he-main .he-editorial-hero .he-hero-call{margin-top:0;line-height:1.5}
#hm-story-editor #he-main .library-resume{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .75rem;width:100%;margin-bottom:1rem;padding:.65rem .85rem;background:#fff0e3;border:1px solid #efcbb5;border-radius:14px;text-align:right}
#hm-story-editor #he-main .library-resume>span{font-size:1rem;color:var(--he-wine)}
#hm-story-editor #he-main .library-resume strong{flex:1;font-size:1.125rem;overflow-wrap:anywhere}
#hm-story-editor .he-phone.he-home-mode>#app-header{min-height:74px;padding-block:4px;gap:6px}
#hm-story-editor .he-phone.he-home-mode #he-main{padding-top:0}
#hm-story-editor #he-main .he-home-heading{background:transparent;border:0;border-radius:0;padding:0;margin:0 0 .65rem}
#hm-story-editor #app-header .home-notifications,#hm-story-editor #app-header .he-mail-button{width:auto;max-width:5.5rem;min-height:48px;min-width:48px;padding:4px 6px;gap:2px;border-radius:10px;justify-self:end}
#hm-story-editor #app-header .home-notifications{justify-self:start}
#hm-story-editor #app-header .home-notifications span,#hm-story-editor #app-header .he-mail-button span{font-size:.875rem;line-height:1.4}
#hm-story-editor #app-header .home-notifications svg,#hm-story-editor #app-header .he-mail-button svg{width:20px;height:20px}
#hm-story-editor #he-main .home-reading-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.5rem;margin:.65rem 0}
#hm-story-editor #he-main .home-reading-actions button{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem .35rem;min-height:48px;font-size:1rem;line-height:1.5;border:1px solid #aec9a5;border-radius:12px;background:#fffdf8;color:#244b39}
#hm-story-editor #he-main .home-reading-actions svg{width:19px;height:19px;flex-shrink:0}
/* Shared compact chrome and readable content across member and author screens. */
#hm-story-editor #app-header .home-notifications,#hm-story-editor #app-header .he-mail-button{box-sizing:border-box;width:4.25rem;max-width:none;min-height:4.25rem;padding:3px;gap:2px;border-radius:10px}
#hm-story-editor #app-header .home-notifications span,#hm-story-editor #app-header .he-mail-button span{line-height:1.3}
#hm-story-editor #app-header .home-notifications svg,#hm-story-editor #app-header .he-mail-button svg{width:18px;height:18px}
#hm-story-editor #app-header .he-mail-badge{position:absolute;top:0;inset-inline-end:0;min-width:18px;height:18px;box-sizing:border-box;font-size:.75rem;line-height:18px}
#hm-story-editor #app-header .he-mail-badge.he-mail-dot{min-width:9px;width:9px;height:9px}
#hm-story-editor .he-phone:not(.he-home-mode):not(.app-reader-mode):not(.app-comments-mode):not(.issue-deck-mode)>#app-header{padding:6px 12px;gap:4px 8px}
#hm-story-editor #app-header h2{line-height:1.5}
#hm-story-editor #he-main button:not(.he-primary):not([type=submit]):not(.he-editorial-hero):not(.he-home-cover):not(.participation-card):not(.discussion-card){font-size:1rem;line-height:1.5}
#hm-story-editor #he-main .app-toolbar,#hm-story-editor #he-main .he-actions,#hm-story-editor #he-main .poll-admin-actions,#hm-story-editor #he-main .activity-item-actions{gap:.5rem;flex-wrap:wrap;margin-block:.75rem}
#hm-story-editor #he-main .app-toolbar button,#hm-story-editor #he-main .he-secondary{border-radius:12px;padding:.5rem .75rem}
#hm-story-editor #he-main .he-message-bubble{padding:.75rem;max-width:92%;box-sizing:border-box;margin-block:.75rem;border-radius:14px}
#hm-story-editor #he-main .he-message-bubble p,#hm-story-editor #he-main .app-comment p,#hm-story-editor #he-main .app-comment-content{font-size:var(--ui-body);line-height:1.8}
#hm-story-editor #he-main .he-message-bubble strong,#hm-story-editor #he-main .app-person{font-size:var(--ui-helper);line-height:1.6}
#hm-story-editor #he-main .he-inbox-item,#hm-story-editor #he-main .he-activity-item{padding:.75rem;border-radius:14px;margin-block:.5rem;gap:.25rem}
#hm-story-editor #he-main .he-inbox-item strong,#hm-story-editor #he-main .he-activity-item strong,#hm-story-editor #he-main .app-library-copy strong{font-size:var(--ui-body);line-height:1.6}
#hm-story-editor #he-main .books-heading h2,#hm-story-editor #he-main .seminar-heading h2,#hm-story-editor #he-main .membership-hero h2,#hm-story-editor #he-main .community-welcome h2{font-size:1.5rem;line-height:1.6}
#hm-story-editor #he-main .books-heading>span,#hm-story-editor #he-main .book-part,#hm-story-editor #he-main .book-subtitle,#hm-story-editor #he-main .book-details,#hm-story-editor #he-main .seminar-status,#hm-story-editor #he-main .seminar-details,#hm-story-editor #he-main .seminar-stage .seminar-cover-caption p,#hm-story-editor #he-main .seminar-owner-note,#hm-story-editor #he-main .seminar-comments-empty p,#hm-story-editor #he-main .membership-eyebrow,#hm-story-editor #he-main .app-badge,#hm-story-editor #he-main .he-issue-preview-notice{font-size:var(--ui-helper);line-height:1.7}
#hm-story-editor #he-main .book-description,#hm-story-editor #he-main .books-heading>p,#hm-story-editor #he-main .seminar-heading p,#hm-story-editor #he-main .seminar-notice,#hm-story-editor #he-main .membership-hero p{font-size:var(--ui-body);line-height:1.8}
#hm-story-editor #he-main .book-details summary,#hm-story-editor #he-main .membership-faq summary{min-height:48px;box-sizing:border-box;padding-block:.5rem;font-size:var(--ui-helper);line-height:1.7}
#hm-story-editor #he-main .book-details a,#hm-story-editor #he-main .safety-links a{display:inline-flex;align-items:center;min-height:48px;font-size:var(--ui-helper)}
#hm-story-editor #he-main .app-comments-title{gap:.5rem;flex-wrap:wrap}
#hm-story-editor #he-main .app-comments-title strong{font-size:var(--ui-body);line-height:1.6}
#hm-story-editor #he-main .app-comments-title>span{font-size:var(--ui-helper)}
#hm-story-editor #he-main .app-comment-input button{width:48px;min-width:48px;min-height:48px}
#hm-story-editor #he-main .app-comment-input #comment-text{font-size:var(--ui-body);line-height:1.6;min-height:48px;padding:.5rem .75rem}
#hm-story-editor #he-main .app-check{min-height:48px;gap:.5rem;margin-block:.25rem}
#hm-story-editor #he-main .app-check input{flex-shrink:0}
#hm-story-editor #he-feedback{font-size:var(--ui-helper);line-height:1.7;padding:.5rem .75rem}
#hm-story-editor #he-main .issue-question>span{font-size:var(--ui-helper);line-height:1.6}
#hm-story-editor #he-main .book-details a{min-width:44px}
#hm-story-editor #he-main.safety-page a{display:inline-flex;align-items:center;min-height:48px;font-size:var(--ui-helper)}

.participation-terms-dialog{box-sizing:border-box;max-width:min(560px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid #bdd1b5;border-radius:22px;padding:24px;background:#fffdf8;color:#244536;font:18px/1.8 system-ui,sans-serif}.participation-terms-dialog::backdrop{background:#182a2366}.participation-terms-dialog h2{font-size:24px;margin:0}.participation-terms-dialog a{color:#963f37}.terms-check{display:flex;gap:12px;align-items:center}.terms-check input{width:24px;height:24px;flex-shrink:0}.terms-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.terms-actions button{font:inherit;min-height:48px;padding:10px 16px;border-radius:12px;border:1px solid #963f37;background:#fffdf8;color:#963f37}.terms-actions [data-accept]{background:#963f37;color:white}.terms-actions button:disabled{opacity:.45}
#hm-story-editor #he-main .app-comment-content > p.he-note { display: block; margin: .65rem 0 .35rem; font-size: 15px; line-height: 1.7; color: #526b58; }
/* Fold cover screens: compact controls, while retaining readable text and touch targets. */
.guest-mode #app-header{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:12px!important}
.guest-mode #app-header button{font:inherit;font-size:1rem;min-height:44px;border:1px solid #aec9a5;border-radius:12px;padding:6px 10px;background:#fffdf8;color:#244b39}
.guest-mode #app-header img{width:54px!important;height:54px!important}
.guest-mode #he-main{padding:16px}
.guest-welcome{text-align:center;margin:12px 0 24px}
.guest-welcome h1,.guest-sample h1{font-size:1.6rem;line-height:1.6}
.guest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
.guest-story{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:#244b39;min-width:0;overflow-wrap:anywhere}
.guest-story img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.guest-story strong{font-size:1.2rem;line-height:1.6}
.guest-story span{font-size:.9rem;color:#963f37}
.guest-back,.guest-parts a{display:inline-flex;align-items:center;min-height:44px;color:#963f37}
.guest-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.25rem;line-height:2}
.guest-join{background:#fffdf8;border:1px solid #bdd1b5;border-radius:18px;padding:18px;margin:24px 0}
.guest-join h2{font-size:1.35rem}
.guest-parts{display:flex;flex-direction:column;gap:8px}
.guest-mode #app-footer{display:block;text-align:center;padding:16px;font-size:.9rem}
.guest-mode #app-footer a{display:inline-flex;align-items:center;min-height:44px;color:#244b39}
@media(max-width:360px){.guest-mode #app-header button{font-size:.875rem;padding:5px 7px}.guest-mode #app-header img{width:44px!important;height:44px!important}.guest-story strong{font-size:1rem}}
@media(max-width:360px){
 #hm-story-editor{--ui-body:1rem;--ui-helper:.875rem;--ui-section:1.25rem}
 #hm-story-editor #app-header .home-notifications,#hm-story-editor #app-header .he-mail-button{width:3.5rem;min-width:44px;min-height:3.5rem}
 #hm-story-editor #app-header .home-notifications span,#hm-story-editor #app-header .he-mail-button span{font-size:.8125rem}
 #hm-story-editor #app-header .app-back{min-width:70px;min-height:44px;padding:5px 8px;font-size:1rem}
 #hm-story-editor #app-nav button,#hm-story-editor #app-nav button span{font-size:.875rem}
 #hm-story-editor #he-main .he-home-heading h3{font-size:1.25rem}
 #hm-story-editor #he-main .he-editorial-hero strong,#hm-story-editor #he-main .he-home-cover span{font-size:1.125rem}
 #hm-story-editor #he-main .he-editorial-hero .he-hero-copy{grid-template-columns:minmax(0,1fr);gap:.2rem}
 #hm-story-editor #he-main .he-editorial-hero .he-hero-copy strong{grid-column:1;grid-row:1}
 #hm-story-editor #he-main .he-editorial-hero .he-hero-copy .he-hero-call{grid-column:1;grid-row:2;justify-self:center}
 #hm-story-editor #he-main .home-reading-actions button{font-size:.875rem;padding:.4rem .25rem;gap:.25rem}
 #hm-story-editor #he-main .participation-card{padding:14px;min-height:9rem}
 #hm-story-editor #he-main .profile-group{padding:.75rem}
}
