.community-composer{width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line,#e3e5e8);border-radius:18px;color:var(--ink,#191b1f);background:var(--surface,#fff);font:15px/1.5 var(--font-sans,Inter,system-ui,sans-serif);box-shadow:0 22px 80px #0003;overflow:hidden}
.community-composer::backdrop{background:#14182060;backdrop-filter:blur(3px)}
.community-composer.cc-caption{width:calc(100vw - 40px);max-width:1500px}
.cc-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;border-bottom:1px solid var(--line,#e3e5e8)}
.cc-header h2{margin:0;font-size:23px;line-height:1.3;font-weight:650}
.cc-header>button{border:0;background:none;color:inherit;font:28px/1 system-ui;cursor:pointer;padding:4px 8px}
.cc-form{margin:0}.cc-form fieldset{min-width:0;margin:0;border:0;padding:0}
.cc-content{overflow:auto;max-height:calc(100dvh - 202px);padding:28px;scrollbar-width:thin}
.cc-card,.cc-options{border:1px solid var(--line,#e3e5e8);border-radius:16px;padding:24px;background:var(--surface,#fff);box-shadow:0 1px 2px #00000005;display:grid;gap:20px;min-width:0}
.cc-card h3{margin:0;font-size:19px;line-height:1.4;font-weight:600}
.cc-post-content{max-width:850px;margin:auto}.cc-event-form{display:grid;gap:22px;max-width:900px;margin:auto}
.cc-field{display:grid;gap:9px;font-size:15px}.cc-field>span{font-weight:500}
.community-composer input:not([type=checkbox]):not([type=range]):not([type=file]),.community-composer select{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line,#e3e5e8);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#191b1f);font:inherit;padding:11px 13px}
.community-composer input:focus-visible,.community-composer select:focus-visible,.community-composer button:focus-visible,.community-composer summary:focus-visible,.cc-rich [contenteditable]:focus-visible{outline:2px solid var(--muted,#767e8a);outline-offset:3px}
.cc-rich{border:1px solid var(--line,#e3e5e8);border-radius:10px;min-width:0}.cc-rich [contenteditable]{min-height:160px;padding:16px;max-height:400px;overflow:auto;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}.cc-rich a{color:var(--accent,#146fe8)}
.cc-rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:8px;border-top:1px solid var(--line,#e3e5e8)}
.cc-rich-toolbar button{height:32px;min-width:32px;padding:4px 7px;border:0;border-radius:7px;background:transparent;color:inherit;font-size:16px;cursor:pointer}.cc-rich-toolbar button:hover{background:var(--hover,#f4f5f7)}.cc-rich-toolbar svg{width:19px;height:19px}
.cc-button{display:inline-flex;justify-content:center;align-items:center;gap:6px;border:1px solid var(--line,#dfe2e7);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#191b1f);font:inherit;font-size:14px;font-weight:500;padding:10px 16px;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px #00000007}
.cc-button:hover:not(:disabled){background:var(--hover,#f3f4f5)}.cc-button.is-primary{background:var(--ink,#191b1f);border-color:var(--ink,#191b1f);color:var(--surface,#fff)}.cc-button.is-primary:hover{opacity:.88}.cc-button:disabled{opacity:.4;cursor:default}
.cc-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;min-height:76px;padding:16px 24px;box-sizing:border-box;border-top:1px solid var(--line,#e3e5e8);background:var(--surface-subtle,#f8f9fa)}
.cc-publish{display:flex}.cc-publish>.cc-button{border-radius:8px 0 0 8px}.cc-publish-menu{position:relative}.cc-publish-menu summary{list-style:none;display:flex;align-items:center;justify-content:center;height:100%;width:36px;box-sizing:border-box;cursor:pointer;border-radius:0 8px 8px 0;background:var(--ink,#191b1f);color:var(--surface,#fff);border-left:1px solid #8885}.cc-publish-menu>div{position:absolute;bottom:calc(100% + 8px);right:0;display:grid;padding:6px;min-width:220px;border:1px solid var(--line,#e3e5e8);border-radius:10px;background:var(--surface,#fff);box-shadow:0 8px 22px #0002;z-index:3}.cc-publish-menu .cc-button{border:0;box-shadow:none;justify-content:flex-start}
.cc-options{display:block;margin:20px auto 0;max-width:850px}.cc-options summary{cursor:pointer;list-style:none;font-weight:500}.cc-options>div{display:grid;gap:20px;margin-top:22px}
.cc-toggle{display:flex;justify-content:space-between;align-items:center;gap:20px;position:relative;cursor:pointer}.cc-toggle input{position:absolute;right:0;opacity:0;width:38px;height:22px;cursor:pointer}.cc-toggle i{width:38px;height:22px;border-radius:20px;position:relative;flex:none;background:var(--line,#e4e7eb);transition:background-color var(--switch-motion,180ms ease)}.cc-toggle i:after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform var(--switch-motion,180ms ease)}.cc-toggle input:checked+i{background:var(--ink,#191b1f)}.cc-toggle input:checked+i:after{transform:translateX(16px)}.cc-toggle input:focus-visible+i{outline:2px solid var(--muted,#767e8a);outline-offset:3px}
.cc-topics{border:1px solid var(--line,#e3e5e8);border-radius:8px}.cc-topics summary{padding:12px 14px;cursor:pointer}.cc-topics>div{display:grid;gap:10px;max-height:230px;overflow:auto;padding:12px 14px;border-top:1px solid var(--line,#e3e5e8)}.cc-topics label{display:flex;gap:10px;align-items:center}
.cc-image-drop{min-height:350px;border:2px dashed var(--line,#e3e5e8);border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.cc-image-drop>svg{width:40px;height:40px}.cc-image-drop h3,.cc-image-drop p{margin:0}.cc-image-drop p{color:var(--muted,#747b87)}
.cc-image-stage{position:relative;margin:auto;aspect-ratio:var(--cc-ratio,1);width:min(100%,570px);max-height:52dvh;overflow:hidden;border-radius:9px;background:var(--surface-subtle,#f4f5f7)}.cc-image-stage img{width:100%;height:100%;object-fit:cover;user-select:none}.cc-image-stage.is-cropping{cursor:move;touch-action:none;width:auto;max-width:100%;height:50dvh}.cc-crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 33%,#ffffff70 33%,#ffffff70 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff70 66%,#ffffff70 calc(66% + 1px),transparent calc(66% + 1px)),linear-gradient(transparent 33%,#ffffff70 33%,#ffffff70 calc(33% + 1px),transparent calc(33% + 1px),transparent 66%,#ffffff70 66%,#ffffff70 calc(66% + 1px),transparent calc(66% + 1px))}
.cc-crop-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;background:var(--surface-subtle,#f6f7f9);border:1px solid var(--line,#e3e5e8);border-radius:8px;margin-top:14px}.cc-crop-controls>div{display:flex;gap:5px}.cc-crop-controls .cc-button[aria-pressed=true]{border-color:var(--ink,#191b1f);background:var(--surface,#fff)}.cc-crop-controls label{display:flex;align-items:center;gap:10px}.cc-crop-controls input{accent-color:var(--ink,#191b1f);max-width:170px}
.cc-thumbnails{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px 0 12px}.cc-thumbnail{position:relative;width:56px;height:56px;border:3px solid transparent;border-radius:10px}.cc-thumbnail.is-active{border-color:var(--line,#d9dde3)}.cc-thumbnail>button:first-child{padding:0;border:0;background:none;width:100%;height:100%;border-radius:6px;overflow:hidden;cursor:pointer}.cc-thumbnail img{width:100%;height:100%;object-fit:cover}.cc-thumbnail-remove{position:absolute;right:-5px;top:-8px;width:23px;height:23px;border:1px solid var(--line,#ddd);border-radius:50%;background:var(--surface,#fff);color:inherit;cursor:pointer;opacity:0}.cc-thumbnail:hover .cc-thumbnail-remove,.cc-thumbnail:focus-within .cc-thumbnail-remove{opacity:1}.cc-thumbnails>.cc-button{width:56px;height:56px;border-style:dashed;font-size:22px}.cc-order-controls{display:flex;gap:8px;justify-content:center}.cc-order-controls .cc-button{font-size:12px;padding:5px 9px}
.cc-gallery-caption{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr);gap:45px;align-items:start}.cc-gallery-caption .cc-options{margin-top:16px}.cc-image-menu{position:absolute;right:12px;top:12px;z-index:1}.cc-image-menu summary{border-radius:8px;background:var(--surface,#fff);padding:6px 12px;cursor:pointer;list-style:none}.cc-image-menu>div{display:grid;position:absolute;right:0;top:calc(100% + 5px);background:var(--surface,#fff);padding:6px;border:1px solid var(--line,#ddd);border-radius:8px}
.cc-uploads{display:grid;gap:8px;margin-top:14px}.cc-uploads>div{display:flex;align-items:center;gap:8px;border:1px solid var(--line,#e3e5e8);border-radius:8px;padding:8px 12px;min-width:0}.cc-uploads span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.cc-uploads small{color:var(--muted,#747b87)}.cc-uploads .cc-button{padding:4px 8px;font-size:12px}
.cc-cover{min-height:90px;border:1px dashed var(--line,#e3e5e8);border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;gap:12px;padding:12px}.cc-cover img{width:100%;max-height:200px;object-fit:cover;border-radius:6px}.cc-cover>div{display:flex;gap:12px}
.cc-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cc-hosts{display:grid;gap:10px}.cc-hosts>div{display:flex;flex-wrap:wrap;gap:8px}.cc-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line,#ddd);border-radius:30px;padding:5px 10px}.cc-chip button{border:0;background:none;color:inherit;cursor:pointer}.cc-space-name{display:grid;gap:8px}.cc-space-name strong{font-size:15px;font-weight:500;border:1px solid var(--line,#ddd);padding:11px 13px;border-radius:8px}
.cc-editor-popup{border:1px solid var(--line,#ddd);border-radius:9px;padding:12px;background:var(--surface,#fff);box-shadow:0 4px 14px #0001}.cc-editor-popup[hidden]{display:none}.cc-editor-popup>div,[data-cc-host-results]{display:grid;max-height:240px;overflow:auto}.cc-editor-popup button,[data-cc-host-results] button{background:none;color:inherit;border:0;text-align:left;padding:10px;font:inherit;cursor:pointer}.cc-editor-popup button:hover,[data-cc-host-results] button:hover{background:var(--hover,#f4f5f7)}.cc-editor-popup .cc-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr)}.cc-emoji-grid button{font-size:22px;padding:5px;text-align:center}.cc-error{color:var(--danger,#c23b3b);margin:16px 0 0}.cc-error:empty{display:none}[data-cc-schedule]{display:flex;gap:12px;align-items:end;margin-right:auto}
@media(max-width:650px){.community-composer,.community-composer.cc-caption{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.cc-header{padding:16px}.cc-header h2{font-size:20px}.cc-content{padding:14px;max-height:calc(100dvh - 162px)}.cc-card,.cc-options{padding:17px;border-radius:12px;gap:16px}.cc-gallery-caption{grid-template-columns:1fr;gap:20px}.cc-gallery-caption>.cc-image-editor{grid-row:1}.cc-image-stage{max-height:42dvh}.cc-image-stage.is-cropping{height:38dvh}.cc-crop-controls{flex-wrap:wrap;justify-content:center;padding:10px}.cc-footer{padding:12px;min-height:64px}.cc-date-grid{grid-template-columns:1fr}.cc-rich-toolbar{gap:1px}.cc-thumbnail-remove{opacity:1}.cc-uploads>div{flex-wrap:wrap}.cc-uploads span{flex-basis:50%}[data-cc-schedule]{flex-direction:column;align-items:stretch}.cc-footer:has([data-cc-schedule]){flex-wrap:wrap}.cc-editor-popup .cc-emoji-grid{grid-template-columns:repeat(7,1fr)}}
@media(prefers-reduced-motion:reduce){.cc-toggle i,.cc-toggle i:after{transition:none}}
.cc-event-tabs{display:flex;gap:4px;overflow:auto;padding:12px 22px;border-bottom:1px solid var(--line,#e3e5e8);scrollbar-width:thin}.cc-event-tabs button{font:inherit;font-size:14px;white-space:nowrap;border:1px solid transparent;border-radius:8px;color:var(--muted,#747b87);background:none;padding:8px 12px;cursor:pointer}.cc-event-tabs button[aria-selected=true]{border-color:var(--line,#ddd);color:var(--ink,#191b1f);background:var(--surface,#fff)}.community-composer:has(.cc-event-tabs) .cc-content{max-height:calc(100dvh - 265px)}.cc-attendee{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px;border-bottom:1px solid var(--line,#ddd)}.cc-content>.cc-card+.cc-card{margin-top:20px}

.cc-toggle i{pointer-events:none}.cc-toggle:has(input:disabled){opacity:.5;cursor:default}

.cc-view-event{margin-left:auto;color:inherit;font-size:14px}
.cc-button.is-primary:hover:not(:disabled){background:var(--ink,#191b1f);color:var(--surface,#fff);opacity:.88}.cc-options summary:after{content:'';float:right;width:15px;height:15px;margin-top:3px;background:currentColor;mask:var(--coherio-select-chevron) center/contain no-repeat}.cc-image-stage{width:min(100%,calc(52dvh * var(--cc-ratio,1)),570px);max-height:none;height:auto}.cc-image-stage.is-cropping{width:min(100%,calc(50dvh * var(--cc-ratio,1)),570px);height:auto}.cc-image-stage img{display:block}
@media(max-width:650px){.cc-image-stage{width:min(100%,calc(42dvh * var(--cc-ratio,1)));max-height:none}.cc-image-stage.is-cropping{width:min(100%,calc(38dvh * var(--cc-ratio,1)));height:auto}}
/* Post authoring shares the lesson document controls inside the Circle-sized dialog. */
.community-composer.cc-post{width:min(720px,calc(100vw - 32px));height:min(600px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);border:4px solid var(--soft,#f4f4f5);border-radius:20px;display:flex;flex-direction:column;font-size:14px;line-height:1.5}
.community-composer.cc-post:not([open]){display:none}
.community-composer.cc-post.cc-fullscreen{width:calc(100vw - 32px);height:calc(100dvh - 32px)}
.cc-post .cc-header{padding:24px 24px 0;min-height:60px;box-sizing:border-box;border:0;gap:12px;flex:0 0 auto}
.cc-post .cc-header h2{font-size:20px;line-height:28px;font-weight:600;flex:1}
.cc-header-actions{display:flex;align-items:center;gap:2px}
.cc-header-actions>button{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.cc-header-actions>button:hover{background:var(--soft);color:var(--ink)}
.cc-header-actions>button>.icon{width:20px;height:20px}
.cc-post .cc-form{display:flex;flex:1;min-height:0;flex-direction:column}
.cc-post .cc-form>fieldset{display:flex;flex:1;min-height:0;flex-direction:column}
.cc-post .cc-content{flex:1;min-height:0;max-height:none;padding:24px 24px 0;overflow:auto}
.cc-post-content{max-width:none;min-width:0;margin:0;display:flex;flex-direction:column;gap:12px}
.cc-post-title{box-sizing:border-box;width:100%;min-height:34px;max-height:160px;padding:0;border:0;border-radius:0;resize:none;overflow:hidden;outline:none;background:transparent;color:var(--ink);font:600 24px/32px var(--font-sans,Inter,system-ui,sans-serif)}
.cc-post-title::placeholder{color:var(--muted);font-weight:600}
.cc-post .cc-cover{margin-bottom:8px}
.cc-writing-tools{height:64px;min-height:64px;display:flex;align-items:center;gap:1px;padding:0 20px;box-sizing:border-box;flex-shrink:0}
.cc-writing-tools>button{width:36px;height:36px;padding:8px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.cc-writing-tools>button:hover:not(:disabled){background:var(--soft);color:var(--ink)}
.cc-writing-tools>button:disabled{opacity:.35;cursor:default}
.cc-writing-tools .icon{width:20px;height:20px}
.cc-gif-icon{font-size:8px;font-weight:700;border:1.5px solid currentColor;border-radius:2px;padding:0 2px}
.cc-writing-tools-divider{height:18px;border-left:1px solid var(--line);margin-inline:6px}
.cc-topic-row{min-height:52px;display:flex;align-items:center;padding:0 24px;border-top:1px solid var(--line);font-size:14px;flex-shrink:0}
.cc-topic-row .cc-topics{width:100%;position:relative}.cc-topic-row .cc-topics>summary{cursor:pointer;padding:10px 0;list-style:none}
.cc-topic-row .cc-topics[open]>div{position:absolute;bottom:100%;left:0;min-width:220px;max-height:220px;overflow:auto;background:var(--surface);border:1px solid var(--line);padding:12px;box-shadow:0 10px 30px #0002;border-radius:8px;z-index:3}
.cc-no-topics{color:var(--muted)}
.cc-post .cc-footer{min-height:72px;padding:16px 24px;gap:12px;justify-content:space-between;background:var(--soft,#f4f4f5);border:0;box-sizing:border-box;flex-shrink:0}
.cc-footer-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}
.cc-post .cc-footer .cc-button{min-height:36px;padding:7px 14px;font-size:14px;border-radius:8px}
.cc-space-select{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;padding:0;border:0;background:none;color:var(--muted);font:inherit;cursor:pointer;text-align:left}
.cc-space-select>strong{font-weight:500;color:var(--ink);max-width:190px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.cc-space-select>.icon{width:14px;height:14px;flex-shrink:0}
.cc-publish{position:relative;display:flex;gap:0}
.cc-publish:has(.cc-publish-arrow)>[data-cc=save]{border-radius:8px 0 0 8px}
.cc-publish-arrow{width:32px;min-height:36px;border:0;border-left:1px solid #ffffff30;border-radius:0 8px 8px 0;background:var(--ink,#191b1f);color:var(--surface,#fff);display:grid;place-items:center;cursor:pointer}
.cc-publish-arrow>.icon{width:16px;height:16px}
.cc-publish :disabled{opacity:.35;cursor:default}
.cc-publish-options{position:absolute;bottom:calc(100% + 8px);right:0;min-width:220px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 10px 30px #0002;z-index:5}
.cc-publish-options[hidden]{display:none}.cc-publish-options>.cc-button{width:100%;text-align:left;border:0;background:transparent}
.cc-post-settings{display:grid;gap:28px;padding-bottom:24px}.cc-post-settings>section{display:grid;gap:16px}.cc-post-settings h3{margin:0;font-size:16px;font-weight:600}.cc-post-settings .cc-space-select{min-height:44px;border-bottom:1px solid var(--line);padding-bottom:12px}.cc-post-settings .cc-toggle{padding-block:8px}
.cc-space-picker{position:absolute;inset:64px 20px 20px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 12px 40px #0002;display:flex;flex-direction:column;gap:16px;z-index:8}
.cc-space-picker>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.cc-space-picker h3{margin:0;font-size:18px}.cc-space-picker [data-cc-space-results]{overflow:auto;min-height:0}.cc-space-picker h4{font-size:12px;font-weight:500;color:var(--muted);margin:10px 8px}.cc-space-picker section>.cc-button{display:block;border:0;width:100%;text-align:left;padding:10px 8px;background:none}.cc-space-picker section>.cc-button:hover{background:var(--soft)}
.cc-post [data-cc-schedule]{width:100%;display:flex;gap:10px;align-items:end;flex-wrap:wrap}.cc-post .cc-footer:has([data-cc-schedule]){flex-wrap:wrap}
@media(max-width:600px){.community-composer.cc-post{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.cc-post .cc-header{padding:16px 16px 0}.cc-post .cc-header h2{font-size:18px}.cc-post .cc-content{padding:20px 18px 0}.cc-header-actions>button{width:32px;height:32px;padding:6px}.cc-writing-tools{padding-inline:10px;overflow-x:auto;height:56px;min-height:56px}.cc-writing-tools>button{flex-shrink:0;width:32px;height:32px;padding:6px}.cc-topic-row{padding-inline:16px}.cc-post .cc-footer{padding:12px 16px;gap:12px;flex-wrap:wrap}.cc-footer-actions{margin-left:auto}.cc-space-select>strong{max-width:150px}.cc-space-picker{inset:58px 10px 10px;padding:16px}}
@media(prefers-reduced-motion:reduce){.community-composer.cc-post{scroll-behavior:auto}}
.cc-topic-row .cc-topics{border:0;border-radius:0}
.cc-post .cc-field input:focus-visible{outline:none;border-color:var(--line)}
.cc-publish-arrow{border-left-color:color-mix(in srgb,var(--surface,#fff) 25%,transparent)}

.cc-post .cc-header>[data-cc=settings-back]{display:flex;align-items:center;gap:4px;min-height:36px;padding:6px 8px;border:0;background:none;color:var(--muted);font:500 14px/20px var(--font-sans,Inter,system-ui,sans-serif)}
.cc-post .cc-header-actions>[data-cc=settings-back]{width:auto;min-width:64px;font:500 14px/20px var(--font-sans,Inter,system-ui,sans-serif);color:var(--ink)}
.cc-post .cc-header button{box-shadow:none}

.cc-post-settings textarea{width:100%;resize:vertical;min-height:160px;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--surface);color:var(--text);font:13px/1.5 monospace}.cc-material-tabs{display:flex;gap:6px}.cc-material-url{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}[data-cc-material-results]{display:grid;max-height:180px;overflow:auto;gap:4px;margin-top:8px}[data-cc-material-results] button{text-align:left;white-space:normal}[data-cc-author-results]{display:grid;gap:5px;margin:8px 0}[data-cc-author-results] button{text-align:left;background:var(--soft);border:0;border-radius:8px;padding:10px;color:var(--text)}

.cc-publish>.cc-button:only-child{border-radius:8px}

/* The post dialog follows the reference header, cover label and divider. */
.cc-post .cc-header{position:relative;min-height:76px;padding-bottom:12px}
.cc-post .cc-header:after{content:'';position:absolute;bottom:0;left:24px;right:24px;border-bottom:1px solid var(--line)}
.cc-post .cc-header-actions{gap:8px}
.cc-post .cc-header-actions>button{border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #0000000a}
.cc-post .cc-header-actions>.cc-cover-button{display:flex;gap:10px;width:auto;padding:8px 14px;white-space:nowrap;font:inherit}
.cc-post .cc-header-actions>.cc-cover-button>.icon{flex:none}
.cc-post .cc-writing-tools{border-top:1px solid var(--line);margin:0 24px;padding-inline:0;color:var(--ink)}
.cc-post .cc-writing-tools>button{color:var(--ink)}
.cc-topic-row .cc-topics>summary{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:16px}
.cc-topic-row .cc-topics>summary>.icon{width:18px;height:18px;flex:none}
@media(max-width:600px){.cc-post .cc-header{min-height:64px}.cc-post .cc-header h2{min-width:0}.cc-post .cc-header-actions{gap:2px}.cc-post .cc-header-actions>.cc-cover-button{width:32px;padding:6px}.cc-post .cc-cover-button>span{display:none}.cc-post .cc-header:after{left:16px;right:16px}.cc-post .cc-writing-tools{margin-inline:16px}.cc-topic-row .cc-topics>summary{font-size:14px}}

/* Event editing keeps the full-screen frame and a focused settings column. */
.community-composer.cc-event{width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);margin:auto;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;font:14px/1.5 var(--font-ui,var(--font-sans,Inter,system-ui,sans-serif));outline:0}
.community-composer.cc-event:not([open]){display:none}
.cc-event .cc-header{min-height:72px;flex:none;padding:16px 24px;gap:20px;box-sizing:border-box}
.cc-event-heading{display:flex;align-items:center;gap:10px;min-width:0}.cc-event-heading h2{font-size:20px;line-height:28px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.cc-event-status{border:1px solid var(--line);border-radius:6px;padding:2px 7px;font-size:11px;line-height:16px;flex:none;color:var(--muted)}
.cc-event-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}.cc-event-preview,.cc-event-close{display:grid;place-items:center;flex:none;width:32px;height:32px;border:0;border-radius:6px;padding:6px;background:transparent;color:var(--ink);cursor:pointer}.cc-event-preview:hover,.cc-event-close:hover{background:var(--hover)}.cc-event .icon{width:20px;height:20px;flex:none}.cc-event-actions .cc-button{padding:6px 14px;min-height:36px;font-weight:400}
.cc-event .cc-event-tabs{border:0;padding:0;gap:4px;min-width:0;max-width:100%;margin:auto}.cc-event-tabs button{transition:background-color .15s,color .15s}.cc-event .cc-event-tabs button{padding:8px 10px;border:0;font-size:13px;line-height:20px}.cc-event .cc-event-tabs button:hover{background:var(--soft);color:var(--ink)}.cc-event .cc-event-tabs button[aria-selected=true]{background:var(--hover);color:var(--ink)}
.cc-event .cc-form,.cc-event .cc-form>fieldset{display:flex;flex:1;min-height:0;flex-direction:column}.community-composer.cc-event .cc-content{min-height:0;max-height:none;flex:1;padding:40px 24px;overscroll-behavior:contain;background:var(--surface)}
.cc-event .cc-event-form{width:100%;max-width:768px;gap:24px}.cc-event .cc-card{padding:24px;gap:24px;border-radius:16px}.cc-event .cc-card h3{font:600 16px/24px var(--font-ui,var(--font-sans));margin:0 0 4px}.cc-event .cc-card p{margin:0}.cc-event .cc-field,.cc-event-row{display:grid;grid-template-columns:196px minmax(0,1fr);gap:24px;align-items:start;font-size:14px;line-height:20px}.cc-event .cc-field>span,.cc-event-row>span{padding-top:8px;font-weight:400}.cc-event-row>div{min-width:0}.community-composer.cc-event .cc-field input:not([type=checkbox]):not([type=file]),.community-composer.cc-event .cc-field select,.community-composer.cc-event .cc-field textarea{padding:7px 12px;min-height:36px;font:14px/20px var(--font-ui,var(--font-sans));color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;width:100%;box-sizing:border-box}.cc-event .cc-field textarea{resize:vertical;min-height:100px}.cc-event .cc-field :is(input,select,textarea):focus-visible{outline:0;border-color:var(--ink)}
.cc-event .cc-cover{min-height:120px;padding:16px;box-sizing:border-box}.cc-event .cc-cover>div{flex-wrap:wrap;justify-content:center;gap:8px}.cc-event .cc-cover .cc-button{font-weight:400}.cc-event .cc-hosts>div{align-items:center}.cc-event .cc-hosts .cc-button{padding:6px 10px;font-size:13px;font-weight:400}.cc-event .cc-chip{border-radius:6px;padding:5px 8px;gap:8px;font-size:13px}.cc-event .cc-chip button{display:grid;place-items:center;padding:0;width:16px;height:16px}.cc-event .cc-chip .icon{width:14px;height:14px}.cc-event-space{min-height:36px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;box-sizing:border-box}
.cc-event [data-community-document]{min-height:150px;border:1px solid var(--line);border-radius:8px;padding:8px;box-sizing:border-box}.cc-event .community-document-editor{min-height:130px}.cc-event .community-document-editor .studio-rich-text{font-size:14px;line-height:21px}.cc-event .cc-topics summary{display:flex;align-items:center;gap:8px;padding:8px 12px}.cc-event .cc-topics .icon{width:16px;height:16px}
.cc-event .cc-toggle{font-size:14px;line-height:20px;font-weight:400;gap:24px;min-height:24px}.cc-event .cc-toggle i{width:36px;height:20px}.cc-event .cc-toggle i:after{width:16px;height:16px}.community-composer.cc-event .cc-toggle input{position:absolute;right:0;width:36px;height:20px;opacity:0;margin:0}.cc-event .cc-event-setting{display:grid;gap:8px}.cc-event .cc-event-setting>p{max-width:620px;padding-right:56px;color:var(--muted);font-size:14px;line-height:21px}.cc-event .cc-event-message{grid-template-columns:1fr;gap:8px;padding-left:0}.cc-event .cc-event-message>span{padding:0}
.cc-event .cc-footer{background:var(--surface);padding:16px 24px;min-height:72px;flex:none;gap:12px}.cc-event .cc-footer .cc-button{min-height:36px;padding:7px 14px;font-weight:400}.cc-event .cc-event-date{display:flex;align-items:center;gap:10px;color:var(--muted)}.cc-event-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cc-event-summary>div{display:grid;gap:12px;border:1px solid var(--line);border-radius:12px;padding:20px}.cc-event-summary span{color:var(--muted)}.cc-event-summary strong{font-weight:500;font-size:20px;line-height:28px}
@media(max-width:1200px){.cc-event .cc-header{flex-wrap:wrap;gap:12px}.cc-event .cc-event-tabs{order:3;flex-basis:100%;margin:0}.cc-event-heading h2{max-width:calc(100vw - 340px)}}
@media(max-width:650px){.community-composer.cc-event{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.cc-event .cc-header{padding:12px 14px;min-height:60px}.cc-event-heading{gap:7px;flex:1}.cc-event-heading h2{font-size:17px;line-height:24px;max-width:none;flex:1}.cc-event-status{font-size:10px;padding:1px 5px}.cc-event-actions{gap:4px}.cc-event-actions .cc-button{font-size:12px;padding:6px 9px;min-height:32px}.cc-event-preview,.cc-event-close{width:28px;height:28px;padding:4px}.cc-event .cc-event-tabs{margin-top:2px}.cc-event .cc-event-tabs button{padding:7px 9px;font-size:12px}.community-composer.cc-event .cc-content{padding:20px 14px}.cc-event .cc-event-form{gap:16px}.cc-event .cc-card{padding:18px;gap:20px;border-radius:12px}.cc-event .cc-field,.cc-event-row{grid-template-columns:1fr;gap:8px}.cc-event .cc-field>span,.cc-event-row>span{padding-top:0}.cc-event .cc-toggle{gap:16px}.cc-event .cc-event-setting>p{padding-right:0}.cc-event .cc-footer{padding:12px 14px;min-height:64px}.cc-event-summary{gap:10px}.cc-event-summary>div{padding:14px}.cc-event-summary strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.cc-event-tabs button{transition:none}.cc-event .cc-content{scroll-behavior:auto}}
/* The image workflow uses a compact uploader and a full-screen caption page. */
.community-composer.cc-gallery{width:min(720px,calc(100vw - 32px));border-radius:16px;font-size:14px}
.cc-gallery .cc-header{padding:24px 28px;border-bottom:0}
.cc-gallery .cc-header h2{font-size:20px;line-height:28px;font-weight:650}
.cc-gallery .cc-content{padding:0 28px 24px}
.cc-gallery .cc-image-drop{min-height:330px;border-width:1px;border-radius:12px;padding:24px;text-align:center}
.cc-gallery .cc-image-drop h3{font-size:16px;font-weight:500}
.cc-gallery.cc-upload-step .cc-footer{display:none}
.cc-gallery .cc-uploads>[data-ready=true]{display:none}
.cc-gallery .cc-image-stage{border-radius:8px}
.cc-gallery .cc-crop-controls{padding:12px 0;border:0;background:transparent}
.cc-gallery .cc-crop-controls .cc-button{padding:6px 10px}
.cc-gallery .cc-thumbnails{gap:8px;margin-top:20px}
.cc-gallery .cc-thumbnail,.cc-gallery .cc-thumbnails>.cc-button{width:48px;height:48px}
.community-composer.cc-gallery.cc-caption{width:calc(100vw - 48px);max-width:none;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column}
.cc-caption .cc-form,.cc-caption .cc-form>fieldset{flex:1;min-height:0;display:flex;flex-direction:column}
.cc-caption .cc-header{flex:none;padding:22px 24px;border-bottom:1px solid var(--line)}
.cc-caption .cc-content{flex:1;min-height:0;max-height:none;padding:0;overflow:auto;background:var(--soft,#f7f8fa)}
.cc-gallery-caption{grid-template-columns:minmax(320px,402px) minmax(0,1fr);gap:0;min-height:100%}
.cc-gallery-sidebar{padding:24px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:16px}
.cc-gallery-sidebar .cc-card,.cc-gallery-sidebar .cc-options{width:100%;box-sizing:border-box;max-width:none;margin:0;border-radius:12px;padding:20px;gap:16px}
.cc-gallery-sidebar .cc-field{font-size:14px;gap:8px}
.cc-gallery-sidebar .cc-field>span{font-weight:500}
.cc-gallery-sidebar .cc-card h3{font-size:16px;font-weight:600}
.cc-gallery-sidebar .cc-caption-card{gap:12px}
.cc-gallery-sidebar .cc-rich{border-radius:8px}
.cc-gallery-sidebar .cc-rich [contenteditable]{font-size:14px;min-height:140px;padding:12px}
.cc-gallery-sidebar .cc-rich-toolbar{border-top:0;padding:4px 8px}
.cc-gallery-sidebar .cc-options>div{gap:20px}
.cc-gallery-sidebar [data-cc-author-results]:empty{display:none}
.cc-gallery-sidebar [data-cc-author-results]{display:grid;max-height:180px;overflow:auto}
.cc-gallery-sidebar [data-cc-author-results] button{border:0;background:transparent;color:inherit;text-align:left;padding:8px;border-radius:6px;font:inherit;cursor:pointer}
.cc-gallery-sidebar [data-cc-author-results] button:hover{background:var(--hover)}
.cc-gallery-caption>.cc-image-editor{padding:28px;align-self:start;min-width:0;position:sticky;top:0}
.cc-caption .cc-image-stage{width:auto;height:min(58dvh,520px);max-width:100%;max-height:none;aspect-ratio:var(--cc-ratio)}
.cc-caption .cc-footer{flex:none;padding:16px 24px;min-height:76px}
@media(max-width:760px){.community-composer.cc-gallery.cc-caption{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.cc-gallery-caption{grid-template-columns:1fr}.cc-gallery-caption>.cc-image-editor{position:static;padding:16px;grid-row:1}.cc-gallery-sidebar{padding:16px;border-right:0;border-top:1px solid var(--line)}.cc-caption .cc-image-stage{height:auto;width:min(100%,calc(40dvh * var(--cc-ratio)));max-height:40dvh}.cc-gallery .cc-header{padding:18px}.cc-gallery .cc-content:not(.cc-caption .cc-content){padding:0 18px 18px}.cc-gallery .cc-crop-controls{flex-wrap:wrap}.cc-gallery .cc-image-drop{min-height:280px;padding:16px}}
.cc-gallery .cc-topics summary{display:flex;align-items:center;gap:8px;list-style:none;font-size:14px;padding:10px 12px}
.cc-gallery .cc-topics summary::-webkit-details-marker{display:none}
.cc-gallery .cc-topics summary::after{content:'';width:15px;height:15px;background:currentColor;mask:var(--coherio-select-chevron) center/contain no-repeat;margin-left:auto;align-self:center}
.cc-gallery .cc-topics[open] summary::after{transform:rotate(180deg)}
.cc-gallery .cc-topics summary svg{width:16px;height:16px;flex:none}
.cc-gallery .cc-rich [contenteditable]:focus-visible{outline:none}
.cc-gallery .cc-rich:focus-within{border-color:var(--muted);box-shadow:0 0 0 2px color-mix(in srgb,var(--muted) 12%,transparent)}

.cc-gallery .cc-footer{background:var(--soft,#f7f8fa)}

.community-composer [data-cc-for][hidden]{display:none}
