/* Shared web/PWA/WebView Stories controls, isolated from other sections. */
.novo-story-strip{display:flex;align-items:center;gap:12px;padding:10px 14px;overflow-x:auto;flex:none;scrollbar-width:thin}
.novo-story-strip>button{flex:none;padding:0;background:transparent;min-width:44px;min-height:44px}
.novo-story-add{width:44px;height:44px;border:2px solid var(--blue);border-radius:50%;color:var(--blue);display:grid;place-items:center;margin-bottom:16px}
.novo-story-add .i{width:23px;height:23px}.novo-story-avatar{display:grid;justify-items:center;gap:4px;max-width:62px}.novo-story-avatar .avatar{width:42px;height:42px;min-width:42px;border:2px solid var(--muted);padding:2px}.novo-story-avatar.unseen .avatar{border-color:var(--blue)}.novo-story-avatar small{font-size:10px;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell .messages .bubble,.shell .discussion-message>.bubble{font-size:var(--font,15px)!important}.shell .messages .bubble .body{font-size:inherit!important}.shell .mine .bubble,.shell .appearance-preview .preview-bubble.out{background:var(--chat-gradient,var(--out))!important;color:#fff!important}
body .shell .wallpaper{background-image:var(--chat-wallpaper,url('/wallpaper.svg'))!important;background-size:auto,auto,420px!important}
.story-message-quote{display:flex;gap:10px;width:100%;text-align:left;border-left:3px solid var(--blue);background:#8882;border-radius:8px;margin-bottom:8px;padding:10px;font-size:13px}.story-message-quote span{display:grid;gap:3px}.story-message-quote small{opacity:.75}
.story-scene{container-type:inline-size;aspect-ratio:9/16}.story-scene>img,.story-scene>video{object-fit:contain!important;position:absolute;inset:0;width:100%;height:100%;transform-origin:center}
.story-overlay-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.story-link-hit{position:absolute;z-index:3;color:transparent!important;background:transparent;max-width:90%;white-space:pre-wrap;text-align:center;text-decoration:none}
.story-viewer .story-view{aspect-ratio:9/16;height:min(96dvh,860px);width:auto;max-width:100vw;position:relative;overflow:hidden}.story-viewer .story-top,.story-viewer .story-bottom{color:#fff!important}.story-viewer .story-top .story-author{min-width:0}.story-viewer .story-top>button{min-width:34px}.story-viewer .story-stage{touch-action:none}.story-viewer .story-reply-row input{color:#fff!important;font-size:16px}.story-viewer .story-reply-row input::placeholder{color:#ddd!important}
.story-editor-shade{position:fixed;inset:0;z-index:210;background:#0009;display:grid;place-items:center;padding:20px}.story-editor{background:var(--panel);color:var(--text);width:min(100%,960px);border-radius:20px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 80px #0005}.story-editor>header{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line);flex:none}.story-editor>header b{flex:1}.story-editor>header button{min-height:44px;min-width:44px;font-size:24px}.story-editor-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,360px);min-height:0;overflow:auto}.story-editor-preview{display:grid;place-items:center;background:#0e1016;padding:16px;align-self:start;position:sticky;top:0}.story-editor-stage{width:min(100%,340px);aspect-ratio:9/16;position:relative;overflow:hidden;background:#090a0e;touch-action:none}.story-file-pick{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#fff}.story-editor-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.story-editor-tools{display:grid;gap:14px;padding:16px;align-content:start}.story-editor-tools label{display:grid;gap:6px;font-size:13px}.story-editor-tools label:has([type=checkbox]){display:flex;align-items:center}.story-editor-tools input[type=checkbox]{width:20px;height:20px}.story-editor-tools input[type=color]{height:44px;width:100%;padding:4px}.story-editor-tools input[type=range]{padding:0;height:32px}.story-editor-tools textarea,.story-editor-tools input,.story-editor-tools select{font-size:16px;min-width:0;width:100%}.story-editor-tools select{background:var(--card);color:var(--text);padding:10px;border:1px solid var(--line);border-radius:8px}.story-editor-tools small{font-size:12px;line-height:1.4;color:var(--muted)}.story-tools-tabs{display:flex;gap:5px;flex-wrap:wrap}.story-tools-tabs button{background:var(--card);padding:10px;font-size:12px}.story-tools-tabs button.active{color:var(--blue);outline:1px solid var(--blue)}.story-tool-panel{display:grid;gap:12px}.story-emoji-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.story-emoji-grid button{font-size:26px;min-height:44px}.story-publish-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.story-editor-status{font-size:13px;overflow-wrap:anywhere;min-height:18px}.story-publish-actions{display:flex;gap:10px;flex-wrap:wrap}.story-publish-actions .primary{flex:1;min-height:44px}.story-editor button:disabled{opacity:.45}.story-editor-shade input,.story-editor-shade textarea{color:var(--text)}
@media(max-width:760px){.story-editor-shade{padding:0}.story-editor{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.story-editor-layout{grid-template-columns:1fr;overflow:auto}.story-editor-preview{position:relative;padding:12px}.story-editor-stage{height:min(50dvh,480px);width:auto;max-width:100%;aspect-ratio:9/16}.story-editor-tools{padding:14px 16px 24px}.story-viewer .story-view{height:100dvh;width:100vw;aspect-ratio:auto}.story-viewer .story-stage{inset:max(65px,calc(env(safe-area-inset-top) + 48px)) 0 max(110px,calc(env(safe-area-inset-bottom) + 94px));height:auto;max-width:100%;width:min(100%,calc((100dvh - 190px)*9/16));margin:auto;aspect-ratio:9/16}.story-viewer .story-top{padding-left:8px;padding-right:8px}.story-viewer .story-top .avatar{width:28px;height:28px;min-width:28px}.story-viewer .story-top .story-author b{font-size:12px}.story-viewer .story-top>button{padding:5px}.story-viewer .story-top>button .i{width:18px;height:18px}}

.story-progress{display:flex;gap:4px;background:none!important}.story-progress i{flex:1;background:#ffffff30;overflow:hidden;border-radius:3px}.story-editor-stage.drawing{cursor:crosshair}.story-reply-row input{min-width:0;flex:1}.story-reply-row button{flex:none;width:38px;height:38px}

.story-progress{display:flex;gap:4px;background:none!important}.story-progress i{flex:1;background:#ffffff30;overflow:hidden;border-radius:3px}.story-editor-stage.drawing{cursor:crosshair}.story-reply-row input{min-width:0;flex:1}.story-reply-row button{flex:none;width:38px;height:38px}

.story-progress{display:flex;gap:4px;background:none!important}.story-progress i{flex:1;background:#ffffff30;overflow:hidden;border-radius:3px}.story-editor-stage.drawing{cursor:crosshair}.story-reply-row input{min-width:0;flex:1}.story-reply-row button{flex:none;width:38px;height:38px}

.story-progress{display:flex;gap:4px;background:none!important}.story-progress i{flex:1;background:#ffffff30;overflow:hidden;border-radius:3px}.story-editor-stage.drawing{cursor:crosshair}.story-reply-row input{min-width:0;flex:1}.story-reply-row button{flex:none;width:38px;height:38px}

.story-pause-indicator[hidden]{display:none!important}.story-pack-grid img{width:100%;height:58px;object-fit:contain}.story-pack-grid details{border-bottom:1px solid var(--line);padding:8px 0}.story-pack-grid summary{padding:8px;cursor:pointer}

body.light .shell .main.wallpaper,body.light .shell .appearance-preview.wallpaper{background-image:var(--chat-wallpaper,url('/wallpaper.svg'))!important;background-size:auto,auto,420px!important}

/* 20261012.04 — Stories layout only. */
.novo-story-strip{position:relative;display:block;margin:8px 12px 12px;padding:12px 10px 10px;overflow:hidden;border:1px solid #ffffff12;border-radius:22px;background:linear-gradient(125deg,#202330,#171a25);box-shadow:0 8px 24px #0002;flex-shrink:0;color:#f3f4fb}
.novo-story-strip .story-strip-track{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 32px 0 0;min-width:0;touch-action:pan-x pan-y}
.novo-story-strip .story-strip-track::-webkit-scrollbar{display:none}
.novo-story-strip .story-strip-track>button{display:flex;flex-direction:column;align-items:center;gap:8px;flex:0 0 62px;width:62px;max-width:62px;min-height:88px;padding:0;background:transparent;border:0;color:inherit;border-radius:12px;cursor:pointer;margin:0}
.novo-story-strip .story-add-orb,.novo-story-strip .story-avatar-ring{width:58px;height:58px;flex:none;display:grid;place-items:center;position:relative;border-radius:50%;box-sizing:border-box}
.novo-story-strip .story-add-orb{background:linear-gradient(135deg,#3985ff,#5267ff 50%,#963dff);box-shadow:0 0 16px #5778ff45,inset 0 0 0 1px #ffffff30}
.novo-story-strip .story-add-orb .i{width:27px;height:27px;color:#fff}
.novo-story-strip .story-avatar-ring{padding:3px;background:linear-gradient(140deg,#73839a,#434c62)}
.novo-story-strip .unseen .story-avatar-ring{background:linear-gradient(135deg,#49a5ff,#6264ff 48%,#a54dff);box-shadow:0 0 12px #685fff35}
.novo-story-strip .story-avatar-ring .avatar{width:52px;height:52px;min-width:52px;margin:0;padding:0;border:3px solid #1b1e2b;border-radius:50%;box-sizing:border-box;background-color:#313747;overflow:hidden}
.novo-story-strip .story-avatar-ring .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.novo-story-strip .story-strip-track small{font-size:11px;font-weight:500;line-height:1.25;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.novo-story-strip .novo-story-add small{white-space:normal;text-align:center;color:#bbc9ff}
.novo-story-strip .story-own-badge,.novo-story-strip .story-online-dot{position:absolute;right:0;bottom:0;border:2px solid #1b1e2b;border-radius:50%;box-sizing:border-box;z-index:1}
.novo-story-strip .story-own-badge{display:grid;place-items:center;width:20px;height:20px;color:#fff;background:#6474ff;font-size:16px;line-height:1;font-weight:600}
.novo-story-strip .story-online-dot{width:12px;height:12px;right:2px;bottom:2px;background:#65dcad}
.novo-story-strip .story-strip-next{position:absolute;right:5px;top:30px;display:grid;place-items:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border-radius:50%;border:1px solid #ffffff25;background:#33394de8;color:#e4e9ff;box-shadow:0 0 12px #181b2c;z-index:2}
.novo-story-strip .story-strip-next .i{width:17px;height:17px}
.novo-story-strip .story-strip-next[hidden]{display:none!important}
.novo-story-strip button:focus-visible{outline:2px solid #91b9ff;outline-offset:3px}
.story-editor-shade{padding:16px;background:#090b14b8;backdrop-filter:blur(7px)}
.story-editor{--story-editor-line:#ffffff14;--story-editor-input:#232633;--story-editor-muted:#939bb3;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(740px,100%);height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);border:1px solid #ffffff19;border-radius:24px;background:linear-gradient(140deg,#1e2130,#151822);color:#f5f6ff;box-shadow:0 24px 90px #0008;overflow:hidden}
.story-editor>header{height:64px;box-sizing:border-box;padding:10px 18px;gap:10px;border-bottom:1px solid var(--story-editor-line);background:transparent}
.story-editor>header b{font-size:19px;font-weight:650;letter-spacing:.1px}
.story-editor>header button{display:grid;place-items:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;color:inherit;background:#ffffff06;border:1px solid #ffffff08;border-radius:11px;font-size:25px}
.story-editor>header button .i{width:20px;height:20px}
.story-editor-layout{display:grid;grid-template-columns:minmax(0,270px) minmax(0,1fr);gap:16px;min-height:0;padding:16px;overflow:hidden;align-items:stretch}
.story-editor-preview{align-self:stretch;position:relative;top:auto;min-width:0;min-height:0;padding:0;border:1px solid #ffffff0c;border-radius:18px;background:radial-gradient(ellipse at 0 20%,#42509b22,transparent 60%),radial-gradient(ellipse at 100% 100%,#39388526,transparent 55%),#141824;overflow:hidden}
.story-editor-stage{width:100%;height:auto;max-width:100%;max-height:100%;aspect-ratio:9/16;border-radius:16px;background:#101420}
.story-editor-stage:not(.story-scene){height:100%;aspect-ratio:auto;background:radial-gradient(ellipse at 20% 25%,#29478222,transparent 65%),linear-gradient(135deg,#161d31,#151927)}
.story-editor-stage:not(.story-scene)::before,.story-editor-stage:not(.story-scene)::after{content:'';position:absolute;width:170%;height:60%;border:1px solid #677bc514;border-radius:50%;transform:rotate(-25deg);pointer-events:none}
.story-editor-stage:not(.story-scene)::before{left:-70%;top:5%}.story-editor-stage:not(.story-scene)::after{left:-5%;bottom:-25%}
.story-editor .story-file-pick{border:0;background:transparent;gap:20px;min-width:0;padding:14px;text-align:center;font-size:14px;z-index:1;color:#aab4d2}
.story-upload-orb{display:grid;place-items:center;position:relative;width:78px;height:78px;border:1px solid #6884ff55;border-radius:26px;background:linear-gradient(145deg,#354779,#2b365b);box-shadow:0 10px 34px #3552ce25;color:#8eb8ff}
.story-upload-orb .i{width:40px;height:40px}.story-upload-orb i{position:absolute;right:-6px;bottom:-6px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#6681ed;color:white;font-style:normal;font-size:20px;border:3px solid #192137}
.story-editor-tools{display:grid;align-content:start;gap:12px;min-width:0;min-height:0;padding:0 3px 8px 0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#464c66 transparent}
.story-editor-tools label{font-size:12px;font-weight:500;gap:7px;color:#bac2d7}
.story-editor-tools textarea,.story-editor-tools input:not([type=range]):not([type=color]):not([type=checkbox]),.story-editor-tools select{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--story-editor-line);border-radius:11px;background:var(--story-editor-input);color:#eef1fc;font-size:16px;padding:10px 12px;box-shadow:none}
.story-editor-tools textarea{min-height:60px;height:68px;resize:vertical;max-height:150px}
.story-editor-tools textarea::placeholder,.story-editor-tools input::placeholder{color:var(--story-editor-muted)}
.story-editor-tools select{min-height:40px}.story-editor-tools input[type=url]{min-height:40px}
.story-editor-tools input[type=range]{height:20px;margin:1px 0;width:100%;padding:0;background:transparent;accent-color:#91b4ff}
.story-editor-tools input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:linear-gradient(90deg,#8dbaff,#7182f6)}
.story-editor-tools input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-4px;border-radius:50%;background:#b8d8ff;border:0;box-shadow:0 0 8px #749afa80}
.story-editor-tools input[type=range]{-webkit-appearance:none;appearance:none}
.story-editor-tools input[type=range]::-moz-range-track{height:5px;border-radius:5px;background:#839eff}.story-editor-tools input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#b8d8ff}
.story-tools-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;flex-wrap:nowrap}
.story-editor .story-tools-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:64px;padding:8px 2px;background:linear-gradient(135deg,#2b2f41,#232737);border:1px solid #ffffff0c;border-radius:13px;color:#b7bfd7;font-size:10px;line-height:1.2;white-space:normal}
.story-tools-tabs button .i{width:24px;height:24px}.story-text-icon{font-size:25px;line-height:24px;font-weight:600}
.story-editor .story-tools-tabs button.active{color:#c5dcff;background:linear-gradient(135deg,#405789,#323d72);border-color:#748cf166;outline:none;box-shadow:0 0 15px #637ff322}
.story-tool-panel{gap:11px;min-width:0}
.story-editor-tools button[data-add],.story-editor .story-change-file{display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 10px;font-size:12px;border:1px solid #869bc31e;border-radius:10px;background:#677fa314;color:#adc5ec}
.story-editor-tools button[data-add] .i,.story-editor .story-change-file .i{width:16px;height:16px}
.story-editor:not(:has(.story-editor-media)) .story-change-file{display:none}
.story-editor-tools .story-color-palette{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-height:30px}
.story-editor .story-color-palette button{width:23px;height:23px;min-width:23px;min-height:23px;padding:0;border-radius:50%;background:var(--swatch);border:1px solid #ffffff28;box-shadow:0 2px 5px #0004}
.story-editor .story-color-palette button[aria-pressed=true]{outline:2px solid #b3c9ff;outline-offset:3px}
.story-editor-tools .story-color-palette input[type=color]{width:25px;height:25px;min-width:25px;padding:0;border:1px solid #ffffff50;border-radius:50%;overflow:hidden;background:conic-gradient(#fa5277,#fed264,#58e4d7,#6f73f6,#fa5277)}
.story-editor-tools .story-color-palette input[type=color]::-webkit-color-swatch-wrapper{padding:5px}.story-editor-tools .story-color-palette input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}
.story-text-toggles{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.story-editor-tools .story-text-toggles label{display:flex;align-items:center;gap:7px;font-size:12px;color:#c4cbde}
.story-editor-tools .story-text-toggles input[type=checkbox]{width:17px;height:17px;min-width:17px;margin:0;accent-color:#879dff}
.story-editor-tools button[data-remove]{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #f16a8120;background:#a846551c;color:#ec98a7;border-radius:10px;min-height:37px;font-size:12px}
.story-editor-tools button[data-remove] .i{width:15px;height:15px}
.story-editor-tools small{color:var(--story-editor-muted);font-size:11px;line-height:1.4}
.story-extra-settings{border-top:1px solid var(--story-editor-line);padding-top:9px}.story-extra-settings summary{font-size:12px;color:#bac4df;cursor:pointer;padding:6px 0}.story-extra-settings[open]{display:grid;gap:12px}.story-extra-settings .field{margin:10px 0}.story-extra-settings .story-publish-settings{margin-bottom:10px}
.story-editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:13px 18px;border-top:1px solid var(--story-editor-line);background:#ffffff02}
.story-editor-footer .story-editor-status{flex:1 0 100%;color:#bac8e6;min-height:0;font-size:12px}.story-editor-footer .story-editor-status:empty{display:none}
.story-editor-footer button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 22px;border-radius:12px;border:1px solid #ffffff12;background:#363b4d;color:#e1e7f7;font-size:14px;font-weight:600}
.story-editor-footer .primary{background:linear-gradient(115deg,#628eef,#7875ef);border-color:#a5b8ff40;color:white;box-shadow:0 5px 18px #627bea30}
.story-editor-footer .primary .i{width:18px;height:18px}.story-editor-footer [hidden]{display:none!important}
.story-editor button:focus-visible,.story-editor input:focus-visible,.story-editor textarea:focus-visible,.story-editor select:focus-visible{outline:2px solid #a2baff;outline-offset:2px}
.story-viewer.story-swiping .story-view{transform:translateX(var(--story-swipe,0px));transition:none}
body.light .novo-story-strip{background:linear-gradient(120deg,#f5f6ff,#edf0fa);border-color:#60689c20;color:#303851;box-shadow:0 5px 20px #2c3b7710}
body.light .novo-story-strip .novo-story-add small{color:#5264c4}
body.light .novo-story-strip .story-avatar-ring .avatar,body.light .novo-story-strip .story-own-badge,body.light .novo-story-strip .story-online-dot{border-color:#f0f2fb}
body.light .novo-story-strip .story-strip-next{background:#e0e5f8ed;border-color:#a6b0dd;color:#435584;box-shadow:0 0 12px #e9edfa}
body.light .story-editor{--story-editor-line:#52639120;--story-editor-input:#f0f2f9;--story-editor-muted:#73809b;background:linear-gradient(140deg,#fff,#f2f4fd);color:#26314d;border-color:#c5cce1}
body.light .story-editor>header button{background:#e8ecf6;border-color:#d3dbea}
body.light .story-editor-tools label,body.light .story-extra-settings summary{color:#596884}
body.light .story-editor-tools textarea,body.light .story-editor-tools input:not([type=range]):not([type=color]):not([type=checkbox]),body.light .story-editor-tools select{color:#2d3a56}
body.light .story-editor .story-tools-tabs button{background:#e9edf7;color:#657292;border-color:#d2d9ed}
body.light .story-editor .story-tools-tabs button.active{color:#405bc0;background:#dce6ff;border-color:#91a5e5}
body.light .story-editor-tools button[data-add],body.light .story-editor .story-change-file{background:#e9edf9;color:#566dab;border-color:#d3ddf1}
body.light .story-editor-tools .story-text-toggles label{color:#596884}
body.light .story-editor-tools button[data-remove]{color:#ad5067;background:#f8eaf0;border-color:#eecbd6}
body.light .story-editor-footer button{color:#4a5977;background:#e5eaf5;border-color:#d4ddef}
body.light .story-editor-footer .primary{color:#fff;background:linear-gradient(115deg,#628eef,#7875ef)}
body.light .story-editor-footer .story-editor-status{color:#596884}
@media(max-width:760px){
 .novo-story-strip{margin:8px 10px 10px;padding:11px 8px 9px;border-radius:19px}
 .novo-story-strip .story-strip-track{gap:8px;padding-right:0}
 .novo-story-strip .story-strip-track>button{flex-basis:54px;width:54px;max-width:54px;min-height:80px;gap:7px}
 .novo-story-strip .story-add-orb,.novo-story-strip .story-avatar-ring{width:52px;height:52px}
 .novo-story-strip .story-avatar-ring .avatar{width:46px;height:46px;min-width:46px}
 .novo-story-strip .story-strip-track small{font-size:10px;max-width:54px}
 .novo-story-strip .story-strip-next{display:none}
 .story-editor-shade{padding:0;backdrop-filter:none}
 .story-editor{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}
 .story-editor>header{height:58px;padding:8px 12px}.story-editor>header b{font-size:18px}
 .story-editor-layout{display:block;overflow:auto;padding:12px;overscroll-behavior:contain}
 .story-editor-preview{height:min(42dvh,340px);padding:8px;box-sizing:border-box;margin-bottom:14px}
 .story-editor-stage{height:100%;width:auto;max-width:100%;aspect-ratio:9/16}
 .story-editor-stage:not(.story-scene){width:100%;height:100%;aspect-ratio:auto}
 .story-editor-tools{overflow:visible;padding:0 0 8px;gap:12px}
 .story-tools-tabs{gap:6px}.story-editor .story-tools-tabs button{min-height:62px;font-size:10px}
 .story-editor-footer{padding:10px 12px;gap:8px}.story-editor-footer button{padding:10px 16px;min-height:44px}.story-editor-footer .primary{flex:1}.story-editor-footer .story-editor-status{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.story-viewer.story-swiping .story-view{transform:none}}

/* .22: two-line add label must not inherit a fixed one-line small height. */
.novo-story-strip .novo-story-add small{display:block!important;height:auto!important;min-height:2.6em!important;max-height:none!important;line-height:1.3!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;flex:none!important}
.novo-story-strip .story-strip-track>button{height:auto!important;min-height:96px!important;overflow:visible!important;justify-content:flex-start}
.novo-story-strip .story-strip-track{padding-bottom:5px}
@media(max-width:760px){.novo-story-strip .story-strip-track>button{min-height:87px!important}}

/* .22: scene tools and mobile full-screen composition. */
.story-editor{position:relative}.story-sheet-heading{display:none}.story-tools-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}
.story-editor .story-tools-tabs button{font-size:9px;min-height:60px}.story-more-actions,.story-mention-list{display:grid;gap:8px}
.story-editor .story-more-actions button,.story-editor .story-mention-list button,.story-editor button[data-link-add]{display:flex;align-items:center;gap:10px;padding:12px;border-radius:11px;background:#ffffff08;color:inherit;border:1px solid var(--story-editor-line);font-size:13px;min-height:42px}
.story-more-actions .i{width:18px;height:18px}.story-editor-footer .story-audience-button{margin-right:auto;padding:10px;font-size:12px;background:transparent;border-color:transparent;color:#b6c5e5}
.story-drag-trash{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:44px;height:44px;display:none;place-items:center;background:#151822cc;border:1px solid #ffffff50;color:white;border-radius:50%;z-index:8;pointer-events:none}
.story-drag-trash.visible{display:grid}.story-drag-trash.ready{background:#cb4b64;border-color:#ff95aa}.story-drag-trash .i{width:22px;height:22px}
body.light .story-editor-footer .story-audience-button{color:#596d99}
@media(max-width:760px){
 .story-editor-shade{bottom:auto;height:var(--story-editor-height,100dvh)}
 .story-editor{display:block;height:var(--story-editor-height,100dvh);max-height:var(--story-editor-height,100dvh);padding:0;background:#10131c}
 .story-editor>header{position:absolute;top:env(safe-area-inset-top);left:0;right:0;z-index:6;height:54px;background:linear-gradient(#0005,transparent);border:0;color:#fff}
 .story-editor>header b{font-size:15px;text-shadow:0 1px 4px #0006}
 .story-editor>header button{background:#151b2e99;border-color:#ffffff10;color:#fff;border-radius:50%;min-width:34px;width:34px;height:34px;min-height:34px}
 .story-editor-layout{position:absolute;inset:0;padding:0;overflow:hidden;display:block}
 .story-editor-preview{height:100%;margin:0;padding:max(58px,calc(env(safe-area-inset-top) + 54px)) 0 max(80px,calc(env(safe-area-inset-bottom) + 76px));box-sizing:border-box;display:grid;place-items:center;background:#10131c;border:0;border-radius:0;overflow:hidden}
 .story-editor-stage{height:100%;width:auto;aspect-ratio:9/16;max-width:100%;border-radius:14px}
 .story-editor-stage:not(.story-scene){width:100%;height:100%;border-radius:0}
 .story-editor-tools{position:absolute;inset:0;display:block;padding:0;overflow:visible;pointer-events:none;color:#fff}
 .story-editor .story-tools-tabs{position:absolute;right:10px;top:max(68px,calc(env(safe-area-inset-top) + 62px));display:flex;flex-direction:column;gap:8px;pointer-events:auto;z-index:6}
 .story-editor .story-tools-tabs button{width:37px;min-height:37px;height:37px;padding:7px;border-radius:11px;background:#1d263eb0;border:1px solid #ffffff18;color:#fff}
 .story-editor .story-tools-tabs button.active{background:#496098c9;color:#fff;border-color:#8ab1fa70}
 .story-tools-tabs button>span:not(.story-text-icon){display:none}.story-tools-tabs button .i{width:22px;height:22px}.story-text-icon{font-size:23px}
 .story-editor-tools .story-change-file{display:none}
 .story-tool-panel{display:none}
 .story-editor .story-extra-settings{display:none}
 .story-tools-open .story-editor-tools{inset:auto 0 max(72px,calc(env(safe-area-inset-bottom) + 68px));max-height:65%;overflow:auto;pointer-events:auto;background:#1c2030f7;border:1px solid #ffffff18;border-bottom:0;border-radius:22px 22px 0 0;padding:12px 16px 16px;box-sizing:border-box;overscroll-behavior:contain;z-index:7;scrollbar-width:thin}
 .story-tools-open .story-editor-tools .story-tools-tabs{display:none}
 .story-tools-open .story-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:15px}
 .story-sheet-heading button{color:#a6c7ff;background:transparent;border:0;font-size:14px;padding:8px;min-height:40px}
 .story-tools-open .story-tool-panel{display:grid}
 .story-tools-open[data-tool=more] .story-extra-settings{display:block}
 .story-editor-footer{position:absolute;bottom:0;left:0;right:0;z-index:8;min-height:62px;box-sizing:border-box;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#10131ce8 20%);border:0;gap:6px}
 .story-editor-footer .story-editor-cancel{display:none}
 .story-editor-footer .story-audience-button{color:#e0e9ff;background:#212a4077;font-size:11px;max-width:36%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px}
 .story-editor-footer .primary{flex:none;border-radius:24px;min-height:42px;padding:10px 18px;font-size:13px}
 .story-editor-footer [data-cancel-upload]{font-size:11px;padding:8px;min-height:38px}
 .story-editor-footer .story-editor-status{color:#fff;text-shadow:0 1px 3px #000;font-size:11px}
 .story-drag-trash{bottom:max(86px,calc(env(safe-area-inset-bottom) + 82px))}
 body.light .story-editor{color:#fff;background:#10131c}
 body.light .story-editor .story-tools-tabs button{background:#1d263eb0;color:#fff;border-color:#ffffff18}
 body.light .story-editor .story-tools-tabs button.active{background:#496098c9;color:#fff}
 body.light .story-tools-open .story-editor-tools{background:#f5f7fff7;color:#273453;border-color:#c4cce0}
 body.light .story-editor-footer .story-audience-button{color:#e0e9ff;background:#212a4077}
}

/* .23: no surrounding Stories card; directional collapse without rebuilding rows. */
.novo-story-strip,body.light .novo-story-strip{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;margin:4px 12px 8px;padding:8px 4px;max-height:130px;opacity:1;transform:translateY(0);transition:max-height .18s ease,padding .18s ease,margin .18s ease,opacity .16s ease,transform .18s ease;overflow:hidden}
.novo-story-strip.stories-folded{max-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;opacity:0;transform:translateY(-14px);pointer-events:none}
.story-editor-shade{display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;box-sizing:border-box;min-width:240px}
.story-editor-shade>.story-editor{visibility:visible;opacity:1;flex:none;min-height:240px;position:relative;box-sizing:border-box}
@media(max-width:760px){.novo-story-strip,body.light .novo-story-strip{margin-left:10px;margin-right:10px}.story-editor-shade{padding:0!important;align-items:stretch!important;justify-content:stretch!important}.story-editor-shade>.story-editor{width:100%!important;min-width:0;height:var(--story-editor-height,100dvh)!important;max-height:none!important}}
@media(prefers-reduced-motion:reduce){.novo-story-strip{transition:none}}

/* Stories reference editor and edge navigation, web/PWA/WebView. */
.story-editor{width:min(740px,100%);height:min(780px,calc(100dvh - 32px));border-radius:14px;background:#272727;color:#f4f4f4;--story-editor-input:#353535;--story-editor-line:#ffffff18;--story-editor-muted:#aaa}
.story-editor>header{position:absolute;z-index:6;top:8px;left:8px;right:8px;height:40px;border:0;padding:0;pointer-events:none}
.story-editor>header b{visibility:hidden}.story-editor>header button{pointer-events:auto;background:#242424aa;border:0;border-radius:50%}
.story-editor>header [data-close]{order:4}.story-editor>header [data-undo],.story-editor>header [data-redo]{order:0}
.story-editor-layout{height:100%;padding:8px;grid-template-columns:minmax(0,390px) minmax(0,1fr);gap:12px}
.story-editor-preview{border:0;border-radius:10px;background:#333}
.story-editor-stage,.story-editor-stage:not(.story-scene){height:100%;width:100%;aspect-ratio:9/16;border-radius:8px;background:#333;max-width:none}
.story-editor-stage:not(.story-scene)::before,.story-editor-stage:not(.story-scene)::after{display:none}
.story-editor .story-file-pick{inset:12px;border:1px dashed #ffffff25;border-radius:8px;color:#ddd;font-size:14px;gap:18px}
.story-upload-orb{width:56px;height:56px;border:2px dashed #ddd;border-radius:16px;background:none;box-shadow:none;color:#ddd}.story-upload-orb i{display:none}.story-upload-orb .i{width:30px;height:30px}
.story-file-pick strong{font-size:14px;font-weight:500;border-radius:8px;padding:9px 18px;background:#e1e3e6;color:#232323}
.story-drop-active .story-file-pick{border-color:#91b9ff;background:#91b9ff15}
.story-editor-tools{display:flex;flex-direction:column;gap:12px;position:relative;padding:10px 0 0;overflow:auto}
.story-editor .story-tools-tabs{display:flex;flex-direction:column;gap:4px;flex:none}
.story-editor .story-tools-tabs button{display:flex;flex-direction:row;justify-content:flex-start;gap:14px;min-height:44px;padding:10px 12px;border:0;background:transparent;color:#eee;font-size:14px;border-radius:8px}
.story-editor .story-tools-tabs button.active{background:#ffffff09;box-shadow:none}.story-text-icon{font-size:18px;font-weight:500}
.story-tool-panel{display:none}.story-tools-open .story-tool-panel{display:grid}.story-sheet-heading{display:none}.story-tools-open .story-sheet-heading{display:flex;align-items:center;justify-content:space-between}
.story-sheet-heading button{background:transparent;color:#b6d3ff;border:0;padding:8px}
.story-extra-settings{margin-top:auto;order:3;border:0}.story-extra-settings summary{font-size:14px;padding:12px}.story-extra-settings .field{display:none}.story-extra-settings .story-publish-settings{grid-template-columns:1fr;gap:10px}
.story-audience-button{order:2;text-align:left;color:inherit;border:0;background:none;padding:10px 12px;min-height:44px}
.story-editor-footer{order:4;display:flex;padding:0 0 2px;gap:8px;border:0;background:none}.story-editor-footer .primary{width:100%;background:#e1e3e6;color:#222;border:0;border-radius:8px;box-shadow:none}.story-editor-footer .story-editor-cancel{display:none}
.story-editor-footer .story-editor-status{flex-basis:100%}.story-editor .story-change-file{order:1;margin:0;font-size:12px}
.story-viewer .story-stage{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;margin:0!important}
.story-viewer .story-view{isolation:isolate}.story-viewer .story-top{position:absolute;top:0;left:0;right:0}.story-viewer .story-bottom{position:absolute;bottom:0;left:0;right:0}
.story-scene>img,.story-scene>video{object-fit:cover!important}
@media(max-width:760px){
 .story-viewer{padding:0!important;backdrop-filter:none}.story-viewer .story-view{height:100dvh;width:100vw;max-width:100%;border-radius:0}
 .story-viewer .story-top{padding-top:calc(env(safe-area-inset-top) + 18px)}.story-viewer .story-progress{top:calc(env(safe-area-inset-top) + 8px)}.story-viewer .story-bottom{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .story-editor{width:100%;border-radius:0}.story-editor-layout{padding:0;display:block}
 .story-editor>header{top:env(safe-area-inset-top);height:52px;left:10px;right:10px}.story-editor>header b{visibility:visible}
 .story-editor-preview{padding:0;height:100%;border-radius:0}.story-editor-stage{border-radius:0}
 .story-editor-tools{position:absolute;inset:0;display:block;padding:0;overflow:visible;pointer-events:none}
 .story-editor .story-tools-tabs{position:absolute;right:10px;top:calc(env(safe-area-inset-top) + 64px);display:flex;pointer-events:auto}
 .story-editor .story-tools-tabs button{width:42px;height:42px;padding:10px;background:#222b;border:1px solid #ffffff20}.story-editor .story-tools-tabs button>span:not(.story-text-icon){display:none}
 .story-editor .story-extra-settings{display:none}.story-editor .story-audience-button{position:absolute;left:12px;bottom:calc(env(safe-area-inset-bottom) + 68px);pointer-events:auto;padding:10px;background:#222c;border-radius:8px;font-size:13px}
 .story-editor-footer{position:absolute;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));pointer-events:auto}.story-editor-footer .primary{flex:1;min-height:44px;width:auto}
 .story-editor-footer .story-editor-status{color:white}.story-editor .story-change-file{display:none}
 .story-tools-open .story-editor-tools{inset:auto 0 calc(env(safe-area-inset-bottom) + 62px);max-height:65%;display:block;overflow:auto;padding:12px 16px 16px;background:#272727f7;pointer-events:auto;border-radius:18px 18px 0 0;z-index:7}
 .story-tools-open .story-editor-tools .story-audience-button{display:none}.story-tools-open[data-tool=settings] .story-extra-settings{display:block}.story-tools-open[data-tool=settings] .story-tool-panel{display:none}
 .story-editor-stage:not(.story-scene){height:100%;width:100%}.story-editor:not(.story-has-media) .story-file-pick{inset:70px 12px 125px}
 .story-drag-trash{bottom:calc(env(safe-area-inset-bottom) + 124px)}
}
.story-editor{display:block}.story-editor-author{margin-top:auto;padding:10px 12px;font-size:13px;color:#ccc;order:2}.story-extra-settings{margin-top:0}.story-tools-open .story-tool-panel{flex:none}
@media(max-width:760px){.story-editor-author{display:none}.story-tools-open[data-tool=settings] .story-editor-footer{position:static;margin-top:12px}.story-tools-open[data-tool=settings] .story-editor-tools{bottom:max(12px,env(safe-area-inset-bottom))}}
.story-tools-open[data-tool=settings] .story-tool-panel{display:none}

/* The collapsing strip must not become a scroll anchoring reference. */
.novo-story-strip{overflow-anchor:none}
/* Mobile story dismissal: a downward touch swipe follows the finger and closes the viewer. */
.story-viewer.story-dismissing{background:rgb(0 0 0 / calc(.94 - var(--story-dismiss-progress,0)*.5))}
.story-viewer.story-dismissing .story-view{transform:translateY(var(--story-dismiss,0px)) scale(var(--story-dismiss-scale,1));transform-origin:center top;transition:none}
@media(prefers-reduced-motion:reduce){.story-viewer.story-dismissing .story-view{transform:translateY(var(--story-dismiss,0px))}}
@media(max-width:760px){.story-viewer .story-view{transition:transform 180ms cubic-bezier(.2,.75,.25,1)}.story-viewer.story-swiping .story-view,.story-viewer.story-dismissing .story-view{will-change:transform}}
