body[data-view="stories"] .shell{background:var(--brand-wine);color:var(--brand-cream)}
.story-builder{max-width:1220px;margin:auto;padding:10px 0 34px}
.story-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:28px}
.story-heading h1{font:500 44px/1.12 var(--serif);letter-spacing:-.03em;margin:0 0 10px}
.story-heading p{font-size:14px;color:#d8c4b6;line-height:1.65;margin:0}
.story-text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;color:#d8c4b6;background:none;border:0;font:400 13px var(--sans);text-align:left}
.story-text-button svg{width:18px;height:18px}
.story-project-bar{display:flex;align-items:flex-end;gap:18px;padding-bottom:12px}
.story-project-bar>label{display:block;flex:1;font-size:12px;color:#cdb6ad}
.story-project-bar input{margin-top:8px!important}
.story-builder :is(input:not([type=range]):not([type=color]):not([type=file]),textarea,select){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;background:#ede3d606;border:1px solid #b69c8f66;border-radius:8px;padding:11px 13px;color:#ede3d6;font:400 14px/1.6 var(--sans);caret-color:#ede3d6}
.story-builder textarea{resize:vertical;min-height:120px;scrollbar-width:none}
.story-builder :is(input,textarea)::placeholder{color:#c5ab9d;opacity:1}
.story-builder select{color-scheme:dark}
.story-builder option{background:#3b0a10;color:#ede3d6}
.story-builder .primary,.story-builder .secondary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 16px;border-radius:8px;font-size:13px}
.story-builder :is(.primary,.secondary) svg{width:18px;height:18px;flex-shrink:0}
.story-status{font-size:12px;line-height:1.7;color:#cdb6ad;margin:0 0 22px;min-height:20px}
.story-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:38px;align-items:start}
.story-stage-column{min-width:0}
.story-pages{display:flex;align-items:stretch;gap:10px;max-width:100%;margin-bottom:18px}
.story-thumb-rail{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;min-width:0;flex:1;padding:3px}
.story-thumb-rail::-webkit-scrollbar{display:none}
.story-thumb{display:block;position:relative;width:48px;height:80px;flex:0 0 48px;border:1px solid #ede3d644;border-radius:5px;padding:0;background:#21080c;overflow:hidden}
.story-thumb[aria-pressed="true"]{outline:2px solid #d5b8a0;outline-offset:1px}
.story-thumb img,.story-thumb-empty{display:block;width:100%;height:100%;object-fit:cover}
.story-thumb strong{position:absolute;bottom:3px;left:3px;display:grid;place-items:center;min-width:18px;height:18px;border-radius:3px;background:#21080ce6;color:#ede3d6;font:400 11px var(--sans)}
.story-add-page{align-self:center;min-height:44px;width:44px;min-width:44px;border:1px solid #ede3d644;border-radius:7px;background:none;color:#ede3d6;font:300 28px var(--sans)}
.story-canvas-wrap{position:relative;aspect-ratio:9/16;width:min(100%,calc(64svh * .5625));max-width:365px;margin:0 auto;overflow:hidden;background:#21080c;border-radius:10px;outline:1px solid #ede3d633;touch-action:none;user-select:none}
.story-canvas-wrap canvas{display:block;width:100%;height:100%}
#story-selection{position:absolute;border:1px solid #ede3d6;box-shadow:0 1px 2px #0008;pointer-events:none;box-sizing:border-box}
#story-selection:after{content:"";position:absolute;width:5px;height:5px;bottom:-3px;right:-3px;background:#ede3d6;border:1px solid #3b0a10}
.story-canvas-message{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;pointer-events:none;color:#ede3d6;font-size:13px;background:#21080c55}
.story-canvas-message[hidden]{display:none}
.story-page-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px auto 18px;max-width:365px}
.story-page-actions>span{font-size:12px;color:#cdb6ad}
.story-page-actions>div{display:flex;gap:2px}
.story-page-actions button,.story-icon{display:grid;place-items:center;width:38px;height:42px;padding:9px;border:0;border-radius:6px;background:none;color:#ede3d6}
.story-page-actions button svg,.story-icon svg{width:18px;height:18px}
.story-export{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
.story-export>label{grid-column:1/-1;color:#cdb6ad;font-size:12px}
.story-export select{margin-top:8px}
.story-export-help{grid-column:1/-1;font-size:13px;line-height:1.7;color:#d8c4b6;margin:0}
.story-export-help strong{color:#ede3d6;font-weight:500}
.story-export-downloads{grid-column:1/-1;color:#d8c4b6;font-size:13px}
.story-export-downloads summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;list-style:none}
.story-export-downloads summary::-webkit-details-marker{display:none}
.story-export-downloads summary:after{content:'';width:7px;height:7px;border-bottom:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:5px}
.story-export-downloads[open] summary:after{transform:rotate(225deg)}
.story-export-downloads>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:4px 0 12px}
.story-export-downloads summary:focus-visible{outline:2px solid #d5b8a0;outline-offset:3px}
#story-delivery-status{margin:12px 0;min-height:0}
#story-delivery-status:empty{display:none}
.story-export+.story-status{margin-top:12px}
.story-tools{min-width:0}
.story-preview-link{display:none!important}
.story-tool-tabs{display:flex;gap:0;border-bottom:1px solid #ede3d633;margin-bottom:24px}
.story-tool-tabs button{flex:1;min-height:48px;padding:10px 4px;background:none;border:0;border-bottom:2px solid transparent;color:#cdb6ad;font:400 14px var(--sans)}
.story-tool-tabs button[aria-selected="true"]{border-bottom-color:#ede3d6;color:#ede3d6;font-weight:500}
.story-tools [role="tabpanel"][hidden]{display:none}
.story-tools h2{font:500 15px var(--sans);margin:0 0 16px;color:#ede3d6}
.story-tools .story-wide{width:100%;justify-content:center}
.story-help{font-size:12px;color:#cdb6ad;line-height:1.7;margin:8px 0 18px}
.story-label{display:block;font-size:13px;color:#e2d0c3;margin:16px 0 8px}
.story-label select{margin-top:8px}
.story-slider{display:block;font-size:13px;color:#e2d0c3;margin:20px 0}
.story-slider input{display:block;width:100%;height:30px;margin-top:7px;accent-color:#d5b8a0}
.story-color-field{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;color:#e2d0c3;min-height:48px;margin-top:12px}
.story-color-field input{width:48px;height:36px;padding:3px;border:1px solid #ede3d64d;background:none;border-radius:6px}
.story-sticker-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:300px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#9d7474 #21080c;padding:3px 4px 3px 0;margin-top:16px}
.story-sticker-picker button{display:grid;place-items:center;min-height:88px;aspect-ratio:1.1;border:1px solid #ede3d62b;border-radius:8px;padding:10px;background:#000;color:#ede3d6;overflow:hidden}
.story-sticker-picker img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.story-sticker-picker>p{grid-column:1/-1;font-size:12px;color:#cdb6ad}
.story-selected-tools{border-top:1px solid #ede3d633;margin-top:24px;padding-top:22px}
.story-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.story-layer-actions button{min-height:44px;padding:9px 5px;border:1px solid #ede3d640;border-radius:7px;background:none;color:#ede3d6;font:400 12px var(--sans)}
.story-layer-list{border-top:1px solid #ede3d633;padding-top:22px;margin-top:24px}
.story-layer-list button{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px;width:100%;background:none;border:1px solid transparent;border-radius:6px;color:#d8c4b6;text-align:left;font:400 12px var(--sans)}
.story-layer-list svg{width:17px;height:17px;flex-shrink:0}
.story-layer-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.story-layer-list button[aria-pressed="true"]{background:#ede3d60a;border-color:#ede3d644;color:#ede3d6}
.story-history{display:flex;flex-wrap:wrap;gap:8px 18px;border-top:1px solid #ede3d633;padding-top:18px;margin-top:24px}
.story-history button{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 0;background:none;border:0;color:#d8c4b6;font:400 12px var(--sans)}
.story-history svg{width:17px;height:17px}
.story-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.story-section-heading h2{font:500 27px var(--serif);margin:0}
.story-projects article{display:flex;align-items:center;gap:16px;border-top:1px solid #ede3d633;padding:15px 0}
.story-projects article>button:first-child{min-width:0;flex:1;text-align:left;background:none;border:0;padding:8px 0;color:#ede3d6}
.story-projects strong{display:block;font:500 17px var(--sans);overflow-wrap:anywhere}
.story-projects article span{display:block;font:400 12px var(--sans);color:#cdb6ad;margin-top:7px}
.story-empty{padding:32px 0}
.story-empty h3{font:500 28px var(--serif);margin:0 0 12px}
.story-empty p{font-size:14px;color:#d8c4b6;line-height:1.7}
.story-builder :is(button,input,textarea,select):focus-visible{outline:2px solid #d5b8a0;outline-offset:3px}
.story-builder :disabled{opacity:.4;cursor:default}
.story-builder ::selection{background:#ede3d6;color:#3b0a10}
@media(max-width:1000px){.story-editor-grid{grid-template-columns:minmax(0,1fr) minmax(290px,1fr);gap:26px}}
@media(max-width:760px){
 .story-builder{padding-top:0}
 .story-heading{align-items:flex-start;gap:18px;margin-bottom:22px}
 .story-heading h1{font-size:33px}
 .story-heading p{font-size:12px;max-width:30ch}
 .story-heading .story-text-button{font-size:0;min-width:42px;width:42px;height:42px;padding:9px;justify-content:center;border:1px solid #ede3d644;border-radius:50%;gap:0}
 .story-project-bar{gap:10px}
 .story-project-bar .primary{font-size:12px;padding:11px 12px}
 .story-builder :is(input:not([type=range]):not([type=color]):not([type=file]),textarea,select){font-size:16px}
 .story-editor-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .story-pages{margin-bottom:14px}
 .story-thumb{width:39px;height:65px;flex-basis:39px}
 .story-canvas-wrap{width:min(100%,calc(51svh * .5625));max-width:310px}
 .story-export .primary,.story-export .secondary{padding:10px 8px;font-size:12px}
 .story-project-bar>label{font-size:11px}
 .story-tool-tabs{margin-bottom:22px}
 .story-preview-link{display:flex!important;width:100%;margin:18px 0}
 #nav .nav-button[data-page="stories"]{order:4}#nav .nav-button[data-page="planejar"]{order:5}#nav .nav-button[data-page="favoritos"]{order:6}#nav .nav-button[data-page="minhas"]{order:7}#nav .nav-button[data-page="mais"]{order:8}#nav .nav-button[data-page="administrar"]{order:9}
}
@media(prefers-reduced-motion:no-preference){.story-builder button{transition:background-color .15s ease,border-color .15s ease}}
