.image-insert{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:12px 0}
.aride-illustration{display:block;position:relative;box-sizing:border-box;margin:24px auto;max-width:100%;white-space:normal;break-inside:avoid;line-height:1.5}
.image-left{float:left;margin:10px 24px 16px 0}
.image-right{float:right;margin:10px 0 16px 24px}
.image-wide{clear:both;width:100%!important}
.illustration-media{overflow:hidden;border-radius:7px;background:var(--paper);border:1px solid var(--line);min-height:90px}
.aride-illustration img{width:100%;height:auto;display:block;object-fit:contain}
.crop-landscape img{aspect-ratio:16/9;object-fit:cover}
.crop-square img{aspect-ratio:1;object-fit:cover}
.aride-illustration figcaption{text-align:center;font:12px/1.7 var(--sans);color:var(--muted,#69736b);margin:9px 4px 0;overflow-wrap:anywhere}
.image-load-status{font:12px/1.7 var(--sans);padding:18px;margin:0;color:var(--muted,#69736b)}
.image-block-actions{display:flex;flex-wrap:wrap;gap:5px;padding-top:8px}
.image-block-actions button,.image-resize{font:12px/1.5 var(--sans);border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);padding:5px 9px}
[data-image-action=drag]{cursor:grab}
.image-resize{position:absolute;right:0;bottom:0;cursor:nwse-resize;touch-action:none}
.image-drop-active{outline:3px dashed var(--gold)}
.draft-editor::after,.mention-reading::after,#story-content::after{content:'';display:table;clear:both}
#image-controls{border:1px solid var(--line);border-radius:6px;margin:20px 0;padding:18px;font-size:12px}
.image-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.image-settings label{margin:0}
.image-settings select{display:block;width:100%;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:10px}
.image-settings input{font-size:13px}
.image-settings input[type=range]{padding:10px 0;accent-color:var(--gold)}
.image-settings select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
#story-content{max-width:760px;margin:24px auto;font-size:19px;line-height:1.95}
.immersive-reading .atelier-topbar,.immersive-reading .test-notice,.immersive-reading .account-header,.immersive-reading .writing-nav,.immersive-reading #writing-status,.immersive-reading #stories-space>.writing-heading,.immersive-reading #stories-space>.writing-help,.immersive-reading #story-list,.immersive-reading #story-list-empty,.immersive-reading #check-button,.immersive-reading .session-note,.immersive-reading footer,.immersive-reading #connection-status{display:none!important}
.immersive-reading #story-reader{max-width:900px;margin:28px auto;border:0;padding:24px 40px}
.immersive-reading #reading-mode{position:sticky;top:12px;z-index:10;background:var(--paper)}
@media(max-width:760px){.image-left,.image-right{float:none;max-width:100%;width:100%!important;margin:22px auto}.image-settings{grid-template-columns:1fr}.immersive-reading #story-reader{padding:20px 8px}#story-content{font-size:17px}}
