.prose .story-image{width:fit-content;max-width:min(100%,32rem);margin:1.65rem auto}
.prose .story-image[data-story-image="wide"]{width:100%;max-width:100%}
.prose .story-image img{width:100%;max-height:none;object-fit:contain}
.story-image figcaption{margin:.45rem .15rem 0;color:var(--muted);font-size:.86rem;line-height:1.4;text-align:center;overflow-wrap:anywhere}

.story-workspace{--story-ink:var(--ws-ink,var(--ink));--story-line:var(--ws-line,var(--line));--story-muted:var(--ws-muted,var(--muted));--story-green:var(--ws-accent,var(--green));--story-soft:var(--ws-soft,var(--meeting));--story-page:var(--ws-surface,var(--page))}
.story-header{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.05rem}
.story-header h1{margin:0}
.story-header .metadata{margin:.35rem 0 0}
.story-header-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.story-modes{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--story-line);border-radius:9px;background:var(--story-page)}
.story-modes button{display:inline-flex;align-items:center;gap:.4rem;min-height:40px;padding:0 .65rem;border:0;border-radius:6px;background:transparent;color:var(--story-muted);font-size:.86rem;font-weight:720}
.story-modes button:hover,.story-modes button[aria-pressed="true"]{background:var(--story-soft);color:var(--story-green)}
.story-save{min-width:7.5rem}
.story-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(234px,28%);align-items:start;gap:clamp(1rem,2.1vw,1.65rem)}
.story-surface{min-width:0;background:var(--story-page);border:1px solid var(--story-line);border-radius:12px}
.story-writing{--story-pad:clamp(1.15rem,3.15vw,2.5rem);--story-measure:46rem}
.story-start{display:grid;gap:.3rem;padding:var(--story-pad);padding-bottom:1.5rem;max-width:var(--story-measure);margin-inline:auto}
.story-start>label{color:var(--story-muted);font-size:.79rem}
.story-start>textarea{min-height:0;height:auto;resize:vertical;padding:.35rem 0 .55rem;border:0;border-bottom:1px solid var(--story-line);border-radius:0;background:transparent;field-sizing:content;overflow-wrap:anywhere}
.story-start>textarea::placeholder{color:#697987;opacity:1}
.story-start>label[for="story-summary"]{margin-top:.5rem}
.story-start>#story-title{font-size:clamp(1.5rem,2.8vw,2.6rem);font-weight:790;letter-spacing:-.038em;line-height:1.15}
.story-start>#story-summary{font-size:clamp(1rem,1.2vw,1.16rem);line-height:1.55}
.story-cover-empty,.story-cover{margin-top:1rem}
.story-cover-empty{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.7rem;align-items:center;width:100%;min-height:85px;padding:.75rem .9rem;border:1px dashed #a0b6aa;border-radius:9px;background:var(--story-soft);color:var(--story-green);text-align:left}
.story-cover-empty:hover{border-color:var(--story-green)}
.story-cover-empty>i:first-child{font-size:1.65rem}
.story-cover-empty>span{display:grid;gap:2px}
.story-cover-empty small{color:var(--story-muted);font-size:.78rem;line-height:1.4}
.story-cover{overflow:hidden;border:1px solid var(--story-line);border-radius:9px}
.story-cover img{width:100%;aspect-ratio:2.3;object-fit:cover}
.story-cover-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:.45rem .65rem}
.story-cover-tools .button-small{font-size:.83rem}
.story-compose{padding:0 var(--story-pad) var(--story-pad);max-width:var(--story-measure);margin-inline:auto}
.story-insert,.story-format{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.story-insert{padding-block:.35rem .55rem;border-top:1px solid var(--story-line);border-bottom:1px solid var(--story-line)}
.story-insert-button{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;max-width:100%;padding:.45rem .6rem;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--story-green);font-size:.86rem;font-weight:730;text-decoration:none;text-align:left;line-height:1.3}
.story-insert-button:hover{background:var(--story-soft);color:var(--story-green)}
.story-insert-button i,.story-settings h2 i{font-size:1.13rem}
.story-insert-button:disabled{opacity:.6;cursor:wait}
.story-format{gap:2px;padding:.3rem 0;border-bottom:1px solid var(--story-line)}
.story-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;min-height:40px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--story-ink);font-size:1.05rem}
.story-icon:hover,.story-icon[aria-pressed="true"]{background:var(--story-soft);color:var(--story-green)}
.story-move{display:inline-flex;margin-left:auto}
.story-editor-content{margin:0}
.story-editor-content .tiptap{min-height:16rem;padding:1rem .15rem;font-size:1.02rem;line-height:1.7;overflow-wrap:anywhere}
.story-editor-content .tiptap:focus-visible{outline-offset:2px}
.story-editor-content .tiptap[data-empty="true"] p:first-child::before{content:"Įrašykite naujienos tekstą…";height:0;float:left;color:#74818b;pointer-events:none}
.story-editor-content .tiptap .ProseMirror-selectednode{outline:3px solid var(--focus);outline-offset:4px}
.story-editor-content .story-image{cursor:grab}
.story-sidebar{display:grid;gap:.85rem}
.story-settings{display:grid;gap:.75rem;padding:clamp(.85rem,1.55vw,1.25rem)}
.story-settings h2{display:flex;gap:.55rem;align-items:center;font-size:1rem;margin:0;letter-spacing:-.025em}
.story-settings h2 i{color:var(--story-green)}
.story-settings .help{font-size:.81rem;margin:0}
.story-schedule .help{margin:.4rem 0 0}
.story-options{display:grid;gap:.7rem;padding-top:.7rem;border-top:1px solid var(--story-line)}
.story-options .checkbox{font-size:.85rem}
.story-public-preview{padding-inline:.25rem;border-top:1px solid var(--story-line);border-radius:0}
.story-attachments{padding:0;margin:0;list-style:none}
.story-attachments:empty{display:none}
.story-attachments li{display:flex;align-items:center;justify-content:space-between;gap:.35rem;border-bottom:1px solid var(--story-line)}
.story-attachments a{font-size:.83rem;font-weight:680;min-width:0}
.story-settings>[data-open-media]{justify-self:start;padding-inline:.25rem}
.story-preview-tools{display:flex;gap:.5rem;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:.75rem 1rem;border-bottom:1px solid var(--story-line)}
.story-preview-tools p{display:flex;align-items:center;gap:.4rem;margin:0;font-size:.88rem;font-weight:740;color:var(--story-green)}
.story-preview article{padding:clamp(1.15rem,3.15vw,2.5rem);max-width:46rem;margin-inline:auto;min-height:23rem;overflow-wrap:anywhere}
.story-preview article[data-phone]{width:min(100%,390px)}
.story-preview article h2[data-preview-title]{font-size:clamp(1.6rem,3vw,2.8rem);line-height:1.15}
.story-preview article[data-phone] h2[data-preview-title]{font-size:1.7rem}
.story-revisions{padding:1rem 1.2rem;margin-top:1.25rem;max-width:46rem;scroll-margin-top:1.5rem}
.story-revisions h2{font-size:1.14rem}
.story-revisions ul{margin-bottom:0}
.story-dialog{padding:0;width:min(100% - 24px,34rem);max-width:none;max-height:min(90vh,48rem);border-color:var(--story-line)}
.story-dialog>form{padding:1.15rem}
.story-dialog h2{margin:0}
.story-dialog [data-adjust-image]{width:100%;max-height:12rem;object-fit:contain;border-radius:7px;background:var(--story-soft)}
.story-media{width:min(100% - 24px,48rem);padding:clamp(.75rem,2.3vw,1.35rem)}
.story-dialog-head{display:flex;gap:.4rem;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem}
.story-dialog-head .help{margin:.25rem 0 0}
.story-dialog-head .story-icon{width:44px;min-height:44px}
.story-media-controls{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.story-media-search{display:grid;grid-template-columns:minmax(120px,1fr) auto;flex:1 1 215px;gap:.35rem}
.story-media-search button{padding-inline:.75rem}
.story-media .help[role="status"]{margin:.45rem 0}
.story-media .help[role="status"]:empty{margin:0}
.story-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr));gap:.6rem}
.story-media-card{display:grid;gap:.35rem;align-content:start;width:100%;padding:0;border:1px solid var(--story-line);border-radius:8px;overflow:hidden;text-align:left;background:var(--story-page);color:var(--story-ink)}
.story-media-card:hover{border-color:var(--story-green);background:var(--story-soft)}
.story-media-card img,.story-media-card>i{width:100%;aspect-ratio:1.55;object-fit:cover;background:var(--story-soft)}
.story-media-card>i{display:grid;place-items:center;font-size:2rem;color:var(--story-green)}
.story-media-card>span{width:100%;padding:.15rem .45rem .5rem;font-size:.81rem;overflow-wrap:anywhere}
.story-media [data-media-more]{margin-top:.55rem;padding-inline:.25rem}

@media(max-width:1110px) and (min-width:901px){.story-writing{--story-pad:1rem}.story-layout{grid-template-columns:minmax(0,1fr) minmax(210px,30%);gap:.75rem}}
@media(max-width:760px){.story-layout{grid-template-columns:minmax(0,1fr)}.story-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.story-icon{min-height:44px;width:44px}}
@media(max-width:500px){.story-sidebar{grid-template-columns:minmax(0,1fr)}.story-writing{--story-pad:.85rem}.story-header-actions{justify-content:space-between;width:100%}.story-save{min-width:0}.story-modes button{min-height:44px;padding-inline:.48rem}.story-insert-button{padding-inline:.35rem}.story-move{margin-left:0}}
