.story-studio{--story-accent:var(--portal-primary,#2563eb);position:relative;min-width:0;color:var(--portal-text,#252b36);background:var(--portal-surface,#fff);border:1px solid var(--portal-line,#e5e8ed);border-radius:var(--portal-radius,12px);font-size:14px;overflow:clip;outline:none}.story-studio *{box-sizing:border-box}.story-studio button,.story-studio input,.story-studio textarea{font:inherit}.story-studio button{cursor:pointer;transition:background .15s,border-color .15s,color .15s}.story-studio button:disabled{cursor:default;opacity:.4}.story-studio button:focus-visible,.story-studio input:focus-visible,.story-studio textarea:focus-visible{outline:2px solid var(--story-accent);outline-offset:3px}.story-studio-modal{position:fixed;inset:24px;z-index:1000002;max-width:1100px;max-height:calc(100dvh - 48px);margin:auto;overflow:auto;box-shadow:0 0 0 100vmax #0008}.story-studio-header{min-height:78px;display:flex;align-items:center;gap:14px;padding:14px 22px;border-bottom:1px solid var(--portal-line)}.story-studio-heading{min-width:0;flex:1}.story-studio h1{margin:0;font-size:19px;font-weight:700;line-height:1.4;letter-spacing:-.4px}.story-studio-heading p{margin:3px 0 0;font-size:12px;color:var(--portal-muted)}.story-icon-button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:var(--portal-control-radius,8px);background:transparent;color:var(--portal-muted)}.story-icon-button:hover{background:var(--portal-hover);color:var(--portal-text)}.story-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 12px;border:1px solid var(--portal-line);border-radius:var(--portal-control-radius,8px);background:var(--portal-surface);color:var(--portal-text);font-size:12px!important;font-weight:600!important}.story-button:hover{background:var(--portal-hover)}.story-lifetime{display:flex;align-items:center;gap:6px;white-space:nowrap;color:var(--portal-muted);font-size:12px;margin-right:5px}.story-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-width:0}.story-preview-area{position:relative;min-width:0;padding:18px 24px;background:var(--portal-canvas)}.story-canvas-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:12px;color:var(--portal-muted)}.story-canvas-heading>span:first-child{font-weight:600;color:var(--portal-text)}.story-dot{padding:0 5px}.story-stage-wrap{position:relative;display:flex;align-items:center;justify-content:center;height:clamp(380px,calc(100dvh - 296px),570px);min-width:0;max-width:100%}.story-canvas{flex:none;box-shadow:0 5px 22px #00000012;color:white}.story-upload-target{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;height:100%;padding:18px;border:1px dashed var(--portal-line);border-radius:12px;background:var(--portal-surface);color:var(--portal-text)}.story-upload-target:hover{border-color:var(--story-accent)}.story-upload-art{display:block;position:relative;width:178px;height:190px;margin-bottom:25px}.story-upload-card{position:absolute;top:14px;left:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:116px;height:161px;border:1px solid color-mix(in srgb,var(--story-accent) 24%,var(--portal-line));border-radius:13px;background:var(--portal-primary-soft);color:var(--story-accent);transform:rotate(9deg)}.story-upload-card span{font-size:10px;font-weight:600}.story-upload-card-back{top:6px;left:18px;transform:rotate(-12deg);background:var(--portal-canvas);border-color:var(--portal-line);color:var(--portal-muted)}.story-upload-plus{position:absolute;right:7px;bottom:6px;width:39px;height:39px;display:grid;place-items:center;color:white;background:#2563eb;border:4px solid var(--portal-surface);border-radius:50%}.story-upload-target>strong{font-size:20px;font-weight:650;letter-spacing:-.4px}.story-upload-description{font-size:13px;color:var(--portal-muted);line-height:1.7;text-align:center;margin-top:8px}.story-upload-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;background:#2563eb;color:white;padding:11px 18px;margin-top:23px;font-size:13px;font-weight:600}.story-upload-hint{margin-top:12px}.story-stage-footer,.story-upload-hint{font-size:11px;color:var(--portal-muted)}.story-stage-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin-top:9px}.story-stage-footer>span{display:flex;align-items:center;gap:6px}.story-stage-footer>span:last-child{text-align:right}.story-stage-footer>.story-button{white-space:nowrap}.story-drop-overlay{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--portal-primary-soft);border:2px dashed var(--story-accent);border-radius:12px;color:var(--story-accent);pointer-events:none}.story-controls{display:flex;flex-direction:column;min-width:0;border-left:1px solid var(--portal-line);background:var(--portal-surface)}.story-panel-tabs{display:flex;gap:22px;padding:0 22px;border-bottom:1px solid var(--portal-line)}.story-panel-tabs button{position:relative;border:0;border-bottom:2px solid transparent;background:none;color:var(--portal-muted);padding:19px 0 15px;font-size:13px;font-weight:600}.story-panel-tabs button[aria-selected=true]{border-bottom-color:var(--story-accent);color:var(--story-accent)}.story-panel-content{flex:1;padding:23px 22px 16px;min-width:0}.story-control-section{margin-bottom:25px}.story-control-section h2,.story-field-label{display:block;margin:0 0 6px;font-size:13px;font-weight:650;line-height:1.5}.story-control-section>p{margin:0;font-size:12px;line-height:1.6;color:var(--portal-muted)}.story-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:17px}.story-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:76px;padding:10px 3px;border:1px solid var(--portal-line);border-radius:9px;background:var(--portal-surface);color:var(--portal-text)}.story-tool span{font-size:11px}.story-tool.is-active,.story-tool:hover{background:var(--portal-primary-soft);border-color:var(--story-accent);color:var(--story-accent)}.story-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--portal-muted)}.story-section-title h2{color:var(--portal-text)}.story-backgrounds{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:14px}.story-backgrounds button{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;border:2px solid transparent;border-radius:8px;color:white;font-size:16px;font-weight:600}.story-backgrounds button[aria-pressed=true]{outline:2px solid var(--story-accent);outline-offset:3px}.story-text-start{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px;margin-top:15px;border:1px solid var(--portal-line);border-radius:8px;background:var(--portal-surface);color:var(--story-accent);font-size:12px!important}.story-tip{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--portal-line);padding-top:20px;color:var(--portal-muted)}.story-tip>svg{flex:none;margin-top:2px;color:var(--story-accent)}.story-tip strong{font-size:12px;color:var(--portal-text);font-weight:600}.story-tip p{margin:6px 0 0;font-size:12px;line-height:1.7}.story-publish-footer{padding:16px 22px 20px;border-top:1px solid var(--portal-line)}.story-publish-summary{display:flex;align-items:center;gap:7px;color:var(--portal-muted);font-size:12px;margin-bottom:13px}.story-primary-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:42px;border:0;border-radius:8px;background:#2563eb;color:white;font-size:13px!important;font-weight:600!important;padding:11px 14px}.story-primary-button:hover{background:#1d4ed8}.story-publish-footer>p:last-child{margin:10px 0 0;color:var(--portal-muted);font-size:11px;text-align:center}.story-publish-fields{margin:0;padding:0;border:0;min-width:0}.story-publish-fields textarea{display:block;width:100%;min-height:94px;resize:vertical;border:1px solid var(--portal-line);border-radius:8px;padding:11px;background:var(--portal-canvas);color:var(--portal-text);font-size:13px;line-height:1.6}.story-publish-fields textarea::placeholder,.story-tag-input input::placeholder{color:var(--portal-muted)}.story-field-count{display:block;margin-top:6px;color:var(--portal-muted);font-size:10px;text-align:right}.story-field-label>span{font-size:11px;font-weight:400;color:var(--portal-muted);margin-left:6px}.story-tag-input{display:flex;align-items:center;gap:6px;padding:2px 3px 2px 10px;border:1px solid var(--portal-line);border-radius:8px;color:var(--portal-muted);background:var(--portal-canvas)}.story-tag-input input{min-width:0;width:100%;height:34px;background:none;border:0;outline:none;color:var(--portal-text);font-size:12px}.story-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.story-tags button{display:flex;align-items:center;gap:5px;max-width:100%;overflow-wrap:anywhere;padding:5px 7px;border:0;border-radius:5px;background:var(--portal-primary-soft);color:var(--story-accent);font-size:11px}.story-audiences{display:flex;flex-direction:column;gap:6px;margin-top:10px}.story-audiences button{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-radius:8px;background:none;text-align:left;color:var(--portal-muted)}.story-audiences button[aria-pressed=true]{border-color:color-mix(in srgb,var(--story-accent) 40%,var(--portal-line));background:var(--portal-primary-soft);color:var(--story-accent)}.story-audiences button>span:nth-child(2){flex:1;min-width:0}.story-audiences strong,.story-reactions strong{display:block;color:var(--portal-text);font-size:12px;font-weight:600}.story-audiences small,.story-reactions small{display:block;margin-top:3px;font-size:10px;color:var(--portal-muted);line-height:1.5}.story-radio{width:15px;height:15px;flex:none;border-radius:50%;border:1px solid var(--portal-line)}.story-audiences button[aria-pressed=true] .story-radio{border:4px solid #2563eb;background:white}.story-reactions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}.story-reactions input{appearance:none;width:33px;height:20px;flex:none;border:0;border-radius:20px;background:var(--portal-line);cursor:pointer;position:relative}.story-reactions input:before{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:white;transition:transform .15s}.story-reactions input:checked{background:#2563eb}.story-reactions input:checked:before{transform:translateX(13px)}.story-error{padding:10px 12px;border:1px solid #ef444455;border-radius:8px;background:#ef444410;color:var(--portal-text);font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 12px}.story-selection-bar{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:10px;font-size:12px}.story-selection-bar>span{margin-right:4px;font-weight:600}.story-selection-bar label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--portal-muted)}.story-selection-bar input{width:85px;accent-color:#2563eb}.story-added-music{display:flex;align-items:center;gap:9px;border:1px solid var(--portal-line);border-radius:8px;padding:9px;margin-bottom:14px}.story-added-music>div{flex:1;min-width:0}.story-added-music span,.story-added-music strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.story-added-music span{font-size:11px;color:var(--portal-muted);margin-top:3px}.story-audio-toggle,.story-reset{display:flex;align-items:center;gap:8px;padding:9px 0;margin-bottom:8px;border:0;background:none;color:var(--portal-muted);font-size:11px!important}.story-sheet-backdrop{position:fixed;inset:0;z-index:1000010;display:flex;align-items:center;justify-content:center;background:#0007;backdrop-filter:blur(3px);padding:20px}.story-sheet-host{position:relative;width:490px;max-width:100%;height:min(620px,85dvh);max-height:85dvh;color:white}.story-sheet-host>.story-sheet{border-radius:16px;max-height:100%;overflow:auto;background:#1b1e22}.story-text-backdrop .story-sheet-host{height:min(690px,90dvh)}.story-text-backdrop .story-sheet-host>div{border-radius:16px;overflow:hidden}.story-sheet-host .story-size-slider{writing-mode:vertical-lr;direction:rtl;appearance:auto;width:22px;height:170px;accent-color:#2563eb}.story-sheet-host textarea{min-height:130px}.story-discard{width:360px;max-width:100%;padding:24px;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface);color:var(--portal-text)}.story-discard h2{margin:0;font-size:17px;font-weight:650}.story-discard p{margin:12px 0 22px;font-size:13px;line-height:1.7;color:var(--portal-muted)}.story-discard .story-button{width:100%;margin-top:9px}.story-publishing-overlay{position:absolute;inset:0;z-index:1000011;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:color-mix(in srgb,var(--portal-surface) 94%,transparent);color:var(--portal-text)}.story-publishing-overlay span{color:var(--portal-muted);font-size:12px}.story-video-trim{border-radius:10px;background:#1b1e22;padding:10px;color:white;margin-top:8px}.story-viewer-chrome{position:absolute;inset:0 0 auto;z-index:10;padding:12px;background:linear-gradient(#0007,transparent);pointer-events:none}.story-viewer-progress{height:2px;background:#ffffff55;margin-bottom:12px;border-radius:3px}.story-viewer-progress span{display:block;width:65%;height:100%;background:white}.story-viewer-chrome>div:last-child{display:flex;align-items:center;gap:7px;font-size:10px}.story-viewer-chrome strong{font-size:11px}.story-viewer-avatar{display:grid;place-items:center;background:#ffffff30;width:28px;height:28px;border:1px solid #fff8;border-radius:50%;font-weight:700}.story-viewer-caption{position:absolute;inset:auto 0 0;z-index:8;padding:25px 16px 20px;margin:0;color:white;font-size:12px;line-height:1.5;background:linear-gradient(transparent,#0009);overflow-wrap:anywhere;pointer-events:none}@media(min-width:1500px){.story-stage-wrap{height:clamp(420px,calc(100dvh - 300px),650px)}}@media(max-width:1100px){.story-workspace{grid-template-columns:minmax(0,1fr) 300px}.story-preview-area{padding:16px}.story-panel-content{padding:20px 16px 14px}.story-panel-tabs{padding:0 16px}.story-publish-footer{padding:16px}.story-stage-footer{flex-wrap:wrap;justify-content:center}.story-stage-footer>span:last-child{text-align:center}}@media(max-width:760px){.story-studio{border-radius:10px}.story-studio-header{min-height:68px;padding:12px;gap:8px}.story-studio h1{font-size:17px}.story-studio-heading p{font-size:11px}.story-lifetime{display:none}.story-preview-button{width:36px;padding:8px}.story-preview-button>span{display:none}.story-workspace{grid-template-columns:minmax(0,1fr)}.story-preview-area{padding:13px 14px 7px}.story-stage-wrap{height:clamp(310px,calc(100svh - 350px),470px)}.story-upload-art{width:140px;height:147px;margin-bottom:18px}.story-upload-card{width:90px;height:127px;left:27px;top:8px;gap:11px}.story-upload-card-back{left:15px;top:3px}.story-upload-plus{right:8px;bottom:0;width:34px;height:34px;border-width:3px}.story-upload-target>strong{font-size:18px}.story-upload-cta{margin-top:16px;padding:9px 14px}.story-upload-hint{margin-top:8px}.story-upload-description{font-size:12px}.story-canvas-heading{margin-bottom:10px}.story-stage-footer{min-height:37px;margin-top:5px;gap:6px}.story-stage-footer>span:last-child{font-size:10px}.story-controls{border-left:0;border-top:1px solid var(--portal-line)}.story-panel-tabs{gap:25px;padding:0 16px}.story-panel-tabs button{padding:14px 0 11px}.story-panel-content{padding:18px 16px 16px}.story-control-section{margin-bottom:21px}.story-control-section h2{font-size:13px}.story-tool-grid{gap:8px;margin-top:13px}.story-tool{min-height:67px}.story-tool span{font-size:12px}.story-backgrounds{gap:12px;max-width:400px}.story-backgrounds button{aspect-ratio:1}.story-tip{padding-top:16px}.story-publish-footer{padding:14px 16px max(17px,env(safe-area-inset-bottom));position:sticky;bottom:0;z-index:15;background:var(--portal-surface)}.story-publish-summary{display:none}.story-publish-footer>p:last-child{margin-top:8px}.story-studio-modal{inset:0;border:0;border-radius:0;max-height:100dvh}.story-sheet-backdrop{padding:12px;align-items:flex-end}.story-sheet-host{height:min(580px,82dvh);width:100%}.story-text-backdrop .story-sheet-host{height:88dvh}.story-discard{margin:auto}.story-selection-bar{gap:2px}}@media(prefers-reduced-motion:reduce){.story-studio *{animation:none!important;transition:none!important}}.story-sheet-host.is-picker{height:auto}.story-sheet-host.is-picker>.story-sheet{position:relative;inset:auto}.story-sheet-host.is-picker .story-sheet>div:first-child{flex-wrap:wrap}@media(max-width:760px){.story-studio.has-media .story-stage-wrap{height:clamp(270px,calc(100svh - 440px),440px)}.story-studio.has-media .story-stage-footer{min-height:37px}.story-studio.has-media .story-stage-footer>span{display:none}.story-studio.has-media .story-panel-content{padding:12px 14px}.story-studio.has-media .story-control-section:first-child>h2,.story-studio.has-media .story-control-section:first-child>p,.story-studio.has-media .story-tip{display:none}.story-studio.has-media .story-control-section{margin-bottom:15px}.story-studio.has-media .story-tool-grid{margin-top:0;gap:8px}.story-studio.has-media .story-tool{min-height:58px;gap:5px;padding:6px}.story-studio.has-media .story-backgrounds{margin-top:9px;gap:10px;max-width:none}.story-studio.has-media .story-backgrounds button{max-height:38px;aspect-ratio:auto;min-height:36px}.story-studio.has-media .story-control-section:nth-child(2)>p{display:none}.story-studio.has-media .story-added-music{margin-bottom:6px;padding:6px 9px}.story-studio.has-media .story-audio-toggle,.story-studio.has-media .story-reset{display:inline-flex;margin-bottom:0;padding:8px 0;margin-right:14px;font-size:10px!important}.story-studio.has-media .story-audio-toggle>span{max-width:170px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.story-studio.has-media .story-text-start{margin-top:9px;padding:8px}.story-studio.has-media .story-publish-fields .story-control-section{margin-bottom:20px}.story-studio.has-media .story-publish-fields .story-control-section>h2{display:block}.story-studio.has-media .story-publish-footer{padding:10px 14px max(12px,env(safe-area-inset-bottom))}}.story-text-backdrop .story-sheet-host textarea{min-height:0}@media(max-width:480px){.story-text-done-label{display:none}.story-text-backdrop .story-sheet-host>div>div:first-child,.story-text-backdrop .story-sheet-host>div>div:first-child>div{gap:5px}}