/* Shared composer metrics: live design and design-system specimen. */
.story-entry-card .creation-total,.composer-example .demo-total{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:nowrap;gap:8px;height:36px;min-height:36px;max-height:36px;padding:3px 16px;margin:0;background:#f4efe4;border:1px solid #e7dfcf;border-radius:8px 8px 0 0;line-height:normal}
.story-entry-card .creation-total>strong,.composer-example .demo-total>strong{font-size:14px;font-weight:400;line-height:22px;color:#888;white-space:nowrap}
.story-entry-card .creation-total .cover-free-label,.composer-example .demo-total .cover-free-label{font-size:12px;line-height:18px;margin-left:2px;padding:0 4px;font-weight:400;color:#777;vertical-align:middle}
.story-entry-card .creation-total>span,.composer-example .demo-total>span{display:flex;align-items:center}
.story-entry-card .creation-total b,.composer-example .demo-total b{margin:0;display:flex;align-items:center}
.composer-example .composer-demo{position:relative;padding:0;border:0;border-radius:0;background:transparent;line-height:normal}
.composer-example .composer-demo textarea{box-sizing:border-box;display:block;margin:0;width:100%;height:150px;min-height:150px;max-height:150px;padding:14px 52px 70px 16px;resize:none;border:3px solid #000;border-radius:8px;box-shadow:2px 2px 0 #000;background:#fff;font-size:16px;line-height:1.6;color:#333}
.composer-example textarea::placeholder{color:#888;opacity:1}
.composer-example .composer-demo>.row{position:absolute;left:16px;right:16px;bottom:16px;height:44px;gap:10px;flex-wrap:nowrap}
.composer-example .demo-submit{margin-left:auto;flex-basis:auto;gap:12px;flex-shrink:0}
.composer-example .demo-submit small{font-size:12px;white-space:nowrap;color:#333}
.composer-example .demo-submit .btn{height:44px;padding:10px 18px;gap:10px;line-height:21px}
.composer-example .composer-demo .btn.small{padding:8px 13px;font-size:14px;font-weight:700;gap:7px;min-height:36px}
.composer-example .composer-demo label{height:36px;padding:6px 10px;gap:7px;border-radius:8px}
.composer-example .composer-demo label:hover{background:#f3f3f3}
.composer-example .composer-demo select{max-width:100px;padding:0;font-size:14px;line-height:normal;color:#000;background:transparent;cursor:pointer}
.composer-example .composer-demo label::after{margin-left:0}
.composer-example .demo-expand{position:absolute;top:10px;right:12px;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#fff;color:#333;font-size:18px;display:grid;place-items:center}
.composer-example .demo-expand:hover{background:#f3f3f3}
@media(max-width:800px){.composer-example .composer-demo textarea{height:200px;min-height:200px;max-height:200px;padding-bottom:112px}.composer-example .composer-demo>.row{height:auto;bottom:68px;flex-wrap:wrap;padding-right:0}.composer-example .demo-submit{position:absolute;right:0;bottom:-56px}}
@media(max-width:620px){.story-entry-card .creation-total,.composer-example .demo-total{padding:3px 10px}.composer-example .composer-demo textarea{height:240px;min-height:240px;max-height:240px;padding:12px 52px 154px 12px;font-size:14px}.composer-example .composer-demo>.row{left:10px;right:10px;bottom:64px;gap:8px}.composer-example .composer-demo .btn.small{font-size:11px;padding:8px}.composer-example .composer-demo .btn.small>.ph{display:none}.composer-example .composer-demo label{padding:5px 7px;height:34px}.composer-example .demo-submit{bottom:-52px;gap:6px}.composer-example .demo-submit .btn{height:40px;min-height:40px;padding:8px 10px;font-size:12px}.composer-example .demo-submit small{font-size:10px}}
.composer-example .composer-demo.is-expanded textarea{height:min(60dvh,480px);min-height:min(60dvh,480px);max-height:min(60dvh,480px)}

.story-entry-card .creation-total,.composer-example .demo-total{width:100%;margin:0 0 -4px;padding-top:0;padding-bottom:6px}

.story-entry-card .story-compose,.composer-example .composer-demo{position:relative;z-index:1}

body:has(.story-compose-actions) #creation-story{margin-top:0}
body:has(.story-compose-actions) .single-page-workflow>.studio-main{padding-bottom:0}
body:has(.story-compose-actions) .single-page-workflow{padding-bottom:218px}
@media(min-width:621px) and (max-width:800px){body:has(.story-compose-actions) .single-page-workflow{padding-bottom:268px}}
@media(max-width:620px){body:has(.story-compose-actions) .single-page-workflow{padding-bottom:300px}}
body:has(.story-entry-card.is-expanded) .single-page-workflow{padding-bottom:calc(min(60dvh,480px) + 68px)}
/* Match the H5 composer specimen to the live 184px mobile input. */
@media(max-width:620px){
.composer-example .composer-demo textarea{height:184px;min-height:184px;max-height:184px;font-size:16px;padding:12px 44px 102px 12px}
.composer-example .composer-demo>.row{bottom:58px;gap:4px;flex-wrap:nowrap;justify-content:space-between}
.composer-example .composer-demo .btn.small{min-height:40px;padding:6px 4px;font-size:12px}
.composer-example .composer-demo label{height:40px;padding:6px 4px;gap:4px}
.composer-example .composer-demo select{font-size:13px;max-width:76px}
.composer-example .demo-submit{bottom:-48px;gap:10px}
.composer-example .demo-submit .btn{min-height:44px;height:44px;padding:8px 16px;font-size:14px}
.composer-example .demo-submit small{font-size:12px}
.composer-example .composer-demo.is-expanded textarea{height:min(58dvh,440px);min-height:min(58dvh,440px);max-height:min(58dvh,440px)}
}

/* Web only: leave 100px between the style grid and the fixed composer at scroll end. */
@media(min-width:621px){html:not([data-preview-device="tablet"]) body:has(.story-compose-actions):not(:has(.story-entry-card.is-expanded)) .single-page-workflow{padding-bottom:302px}}
@media(min-width:621px) and (max-width:800px){html:not([data-preview-device="tablet"]) body:has(.story-compose-actions):not(:has(.story-entry-card.is-expanded)) .single-page-workflow{padding-bottom:352px}}
