/* Story composer authority. Loaded after the preserved Web Store styles. */
.story-composer-dialog{width:100%;max-width:none;height:100%;max-height:none;padding:6px;overflow:hidden}.story-composer-dialog::backdrop{background:rgba(4,9,14,.62);backdrop-filter:blur(5px)}
.story-composer-card{display:grid!important;width:min(100%,390px)!important;height:min(100%,720px)!important;max-height:calc(100dvh - 12px)!important;min-height:0!important;grid-template-rows:auto minmax(210px,1fr) auto auto minmax(0,auto) auto auto!important;gap:6px!important;margin:auto!important;padding:8px!important;overflow:hidden!important;border-radius:8px!important}
.story-dialog-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:6px;min-height:34px}.story-dialog-heading h2{margin:0;color:var(--ui-text);font-size:15px;line-height:18px}.story-dialog-heading .story-eyebrow{margin:1px 0 0;color:var(--ui-accent);font-size:9px;line-height:11px}.story-dialog-heading .icon-command{width:32px!important;min-width:32px!important;height:32px!important;padding:0!important;font-size:18px!important}
.story-composer-workspace{display:grid;min-width:0;min-height:0;grid-template-columns:minmax(0,1fr) 34px;justify-content:center;align-items:start;gap:6px;overflow:hidden}.story-composer-preview{position:relative;width:auto!important;height:100%!important;max-width:100%!important;max-height:390px!important;aspect-ratio:9/16!important;justify-self:center;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:8px!important;background:#101720}.story-composer-preview .story-draft-strip{display:grid!important;width:100%;height:100%;grid-template-columns:1fr!important;gap:0!important;overflow:hidden!important}.story-composer-preview .story-draft-strip article{display:none;position:relative;width:100%;height:100%;min-width:0;overflow:hidden;border:0!important;border-radius:0!important}.story-composer-preview .story-draft-strip article:first-child{display:block}.story-composer-preview .story-draft-strip article>span{position:absolute;z-index:2;top:6px;left:6px;padding:2px 5px;border-radius:4px;background:rgba(5,10,16,.62);font-size:9px}.story-composer-preview img,.story-composer-preview video,.story-composer-preview .story-text-draft{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;border-radius:0!important}.story-composer-preview .story-text-draft{display:grid;place-items:center;padding:18px;color:#fff;font-size:clamp(17px,7vw,24px);font-weight:750;line-height:1.2;text-align:center;overflow-wrap:anywhere}.story-composer-preview .story-draft-count{position:absolute;right:6px;bottom:5px;left:6px;z-index:3;margin:0;color:rgba(255,255,255,.78);font-size:8px;text-align:center;text-shadow:0 1px 3px #000}
.story-composer-tool-rail{display:grid;gap:5px;align-content:start}.story-composer-tool-rail .icon-command{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:13px!important}.story-composer-tool-rail #storyGiphyButton{font-size:8px!important;font-weight:800}.story-composer-editing{display:grid;min-width:0;gap:5px}.story-caption-label{display:grid!important;min-width:0;gap:3px;margin:0!important;color:var(--ui-muted);font-size:9px;font-weight:700;text-transform:uppercase}.story-composer-card .story-caption-label textarea{width:100%!important;min-height:48px!important;max-height:74px!important;padding:8px!important;resize:none!important;font-size:11px!important;line-height:15px!important}
.story-background-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;color:var(--ui-muted);font-size:9px;font-weight:700;text-transform:uppercase}.story-background-swatches{display:flex;min-width:0;gap:5px}.story-background-swatches button{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border-radius:6px!important;background:var(--story-swatch)!important}.story-background-swatches button[aria-pressed=true]{outline:2px solid var(--ui-accent);outline-offset:1px}.story-background-control{display:grid!important;grid-template-columns:26px;margin:0!important}.story-background-control span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.story-background-control input{width:26px!important;min-width:26px!important;height:26px!important;padding:2px!important}
.story-composer-advanced{min-height:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface-soft)}.story-composer-advanced>summary{min-height:30px;padding:7px 9px;cursor:pointer;font-size:10px;font-weight:700}.story-composer-advanced[open]{max-height:180px;overflow:auto}.story-composer-options{display:grid!important;gap:7px!important;padding:0 8px 8px!important;overflow:visible!important}.story-composer-card>#storyComposerFeedback{min-height:12px;margin:0;overflow:hidden;font-size:9px;line-height:12px;white-space:nowrap;text-overflow:ellipsis}.story-composer-card .social-upload-progress{margin:0}.story-composer-footer{display:grid!important;grid-template-columns:auto auto minmax(88px,1fr);gap:5px!important;margin:0!important}.story-composer-footer button{min-width:0!important;height:32px!important;padding:0 8px!important;font-size:10px!important}
@media(max-width:300px){.story-composer-card{grid-template-rows:auto minmax(190px,1fr) auto auto minmax(0,auto) auto auto!important;padding:6px!important}.story-composer-preview{max-height:330px!important}.story-background-swatches{gap:3px}.story-background-swatches button{width:21px!important;min-width:21px!important;height:21px!important;min-height:21px!important}.story-composer-footer{grid-template-columns:1fr 1fr!important}.story-composer-footer #postStoryButton{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.story-composer-card,.story-composer-card *{scroll-behavior:auto!important;transition-duration:.01ms!important}}
