/* Spacious writing surface shared by the lounge and its moderation editor. */
#dialog.community-compose-dialog{width:calc(100vw - 48px)!important;max-width:1100px!important;max-height:94dvh!important;padding:0;overflow:auto}
#dialog.community-compose-dialog>.modalhead{position:sticky;top:0;z-index:3;background:#fff;padding:18px 28px;border-bottom:1px solid #e7e3ee}
#community-compose{padding:24px 28px;gap:18px}
.community-form>label:not(.community-consent):not(.community-upload){display:grid;gap:5px;min-width:0;font-size:14px;color:#42495f}
.community-form input:not([type=checkbox]):not([type=file]):not([type=hidden]),.community-form textarea,.community-form select{display:block;width:100%;min-width:0;box-sizing:border-box}
#community-compose input[name=title]{font-size:22px;font-weight:650;line-height:1.5;padding:12px 14px}
.story-editor-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 16px;background:#f5f3fa;border:1px solid #e2dced;border-radius:12px}
.story-editor-toolbar label{display:grid!important;gap:4px;margin:0!important;font-size:12px;color:#53556a}
.story-editor-toolbar select{width:auto!important;min-width:102px;margin:0!important;padding:8px 12px;min-height:40px;background:white}
.story-editor-toolbar>span{font-size:12px;color:#737286;align-self:center;margin-left:auto}
#community-compose .story-field,.admin-community-editor .story-field{display:grid;gap:6px;margin:0}
#community-compose textarea[name=story],.admin-community-editor textarea[name=story]{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:320px;height:38dvh;max-height:65dvh;resize:vertical;line-height:1.85;padding:20px 22px;background:#fff;color:#252d40;border:1px solid #d8d2e7;border-radius:12px;overflow-wrap:anywhere}
.story-editor-count{display:block;text-align:right;font-size:12px;color:#737286;font-variant-numeric:tabular-nums}
#community-compose .community-upload{min-height:64px;flex-direction:row;flex-wrap:wrap;padding:12px 18px;gap:12px;border-radius:10px}
#community-compose .community-upload svg{width:22px;height:22px}
#community-compose .community-upload strong{font-size:13px}
#community-compose .community-compose-preview{max-height:180px}
#community-compose .community-publish{position:sticky;bottom:0;z-index:2;box-shadow:0 -6px 18px #fff;min-height:48px;font-size:15px}
.admin-community-editor{width:min(1100px,94vw)!important;max-height:94dvh!important}
.admin-community-editor input[name=title]{font-size:22px;font-weight:650}
[data-story-font=sans]{font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif}
[data-story-font=serif]{font-family:"Batang","Nanum Myeongjo",Georgia,serif}
[data-story-font=mono]{font-family:"D2Coding","Consolas","Malgun Gothic",monospace}
.community-story[data-story-size="14"],[data-admin-story][data-story-size="14"]{font-size:14px}
.community-story[data-story-size="16"],[data-admin-story][data-story-size="16"]{font-size:16px}
.community-story[data-story-size="18"],[data-admin-story][data-story-size="18"]{font-size:18px}
.community-story[data-story-size="20"],[data-admin-story][data-story-size="20"]{font-size:20px}
.community-story[data-story-size="24"],[data-admin-story][data-story-size="24"]{font-size:24px}
.community-story[data-story-size="28"],[data-admin-story][data-story-size="28"]{font-size:28px}
@media(max-width:760px){
 #dialog.community-compose-dialog{width:100%!important;max-width:100%!important;max-height:100dvh!important;height:100dvh;margin:0!important;border-radius:0}
 #dialog.community-compose-dialog>.modalhead{padding:12px 16px}#dialog.community-compose-dialog>.modalhead h2{font-size:20px}
 #community-compose{padding:16px;gap:14px}#community-compose input[name=title]{font-size:19px}
 .story-editor-toolbar{padding:10px;gap:8px}.story-editor-toolbar>span{width:100%;margin:0;font-size:11px}
 #community-compose textarea[name=story],.admin-community-editor textarea[name=story]{min-height:280px;height:40dvh;padding:14px;max-height:none}
 .admin-community-editor{padding:16px!important;width:100%!important;max-height:100dvh!important;border-radius:0!important}
}

/* Compact composer, based on the user's side-by-side reference. */
#dialog.community-compose-dialog{width:calc(100vw - 40px)!important;max-width:720px!important;max-height:90dvh!important}
#dialog.community-compose-dialog>.modalhead{padding:12px 20px}
#dialog.community-compose-dialog>.modalhead h2{font-size:19px;margin:0}
#community-compose{padding:16px 20px;gap:10px}
#community-compose input[name=title],.admin-community-editor input[name=title]{font-size:16px;padding:8px 10px}
.story-editor-toolbar{gap:5px;padding:6px 8px;border-radius:6px 6px 0 0;align-items:center;margin-bottom:-10px;background:#f3f3f5}
.story-editor-toolbar label{font-size:0;gap:0}.story-editor-toolbar select{font-size:13px;min-width:70px;min-height:30px;height:30px;padding:3px 7px;border-radius:4px}
.story-editor-toolbar button{width:30px;height:30px;min-height:30px;padding:0;border-radius:4px;font-size:15px}
.story-editor-toolbar button[aria-pressed=true]{background:#e8e1ff;color:#5138af;border-color:#9d8bd4}
.story-editor-toolbar>span{font-size:10px;margin-left:auto}
#community-compose textarea[name=story],.admin-community-editor textarea[name=story]{min-height:220px;height:260px;max-height:60dvh;padding:12px 14px;border-radius:0 0 6px 6px;line-height:1.7}
#community-compose .story-field{font-size:0;gap:0}.story-field textarea{font-size:16px}
#community-compose .community-upload{min-height:38px;padding:6px 10px;gap:8px}
#community-compose .community-upload span{font-size:11px}
#community-compose .formgrid{gap:8px}#community-compose .formgrid input,#community-compose .formgrid select{padding:7px 9px;font-size:13px;min-height:34px}
.community-consent{font-size:12px!important}.community-compose-dialog .community-hint{font-size:11px;margin:0}
.story-photo-tray{display:flex;gap:8px;flex-wrap:wrap;padding:8px;background:#f6f5f8;border-radius:6px;min-height:20px}
.story-photo-tray:empty{display:none}.story-photo-item{position:relative;width:78px;height:68px}
.story-photo-item img{width:100%;height:100%;object-fit:cover;border-radius:5px}
.story-photo-item button{position:absolute;right:-4px;top:-4px;width:24px;height:24px;padding:0;min-height:24px;background:white;border-radius:50%;color:#493767;box-shadow:0 1px 4px #0003}
.story-photo-item small{position:absolute;bottom:2px;left:4px;background:#0009;color:white;padding:0 4px;border-radius:3px}
.lounge-gallery-photo img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;background:#f5f4f7}
.lounge-gallery-photo+.lounge-gallery-photo{margin-top:10px}
.admin-community-editor{width:min(720px,94vw)!important}.admin-community-editor .story-editor-toolbar{margin-bottom:0}
[data-story-style^="1"]{font-weight:700}[data-story-style^="01"],[data-story-style^="11"]{font-style:italic}
[data-story-style^="001"],[data-story-style^="011"],[data-story-style^="101"],[data-story-style^="111"]{text-decoration:underline}
[data-story-style$="-center"]{text-align:center}[data-story-style$="-right"]{text-align:right}
@media(max-width:760px){#dialog.community-compose-dialog{width:100%!important;max-width:100%!important;max-height:100dvh!important}#community-compose{padding:12px;gap:10px}.story-editor-toolbar{gap:4px}.story-editor-toolbar>span{width:auto;font-size:10px}#community-compose textarea[name=story],.admin-community-editor textarea[name=story]{height:230px;min-height:200px}.admin-community-editor{width:100%!important}}
