.post-composer-dialog{position:fixed;inset:0;z-index:1200;color:var(--portal-text)}.post-composer-backdrop{position:fixed;inset:0;background:rgb(0 0 0/.55)}.post-composer-position{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:24px}.post-composer{display:flex;flex-direction:column;width:100%;max-width:720px;max-height:min(880px,calc(100dvh - 48px));min-height:0;overflow:hidden;border:1px solid var(--portal-line);border-radius:16px;background:var(--portal-surface);color:var(--portal-text);box-shadow:0 20px 70px #0004}.post-composer,.post-poll{color-scheme:light}.dark .post-composer,.dark .post-poll{color-scheme:dark}.post-composer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:18px 24px;border-bottom:1px solid var(--portal-line)}.post-composer-header h2{font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.02em}.post-composer-header p{margin-top:2px;color:var(--portal-muted);font-size:12px}.post-composer-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.post-composer-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px;scrollbar-width:thin}.post-composer-content{position:relative;min-width:0;margin:0;padding:0;border:0}.post-composer-content>*+*{margin-top:20px}.post-composer :is(button,a,input,textarea,select,summary):focus-visible,.post-poll :is(button,input):focus-visible{outline:2px solid var(--portal-primary);outline-offset:2px}.post-composer button:disabled,.post-poll button:disabled{opacity:.45;cursor:default}.post-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:8px;color:var(--portal-muted)}.post-icon-button:hover:not(:disabled){background:var(--portal-hover);color:var(--portal-text)}.post-author{display:flex;align-items:center;gap:12px}.post-person-photo{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;overflow:hidden;border-radius:50%;background:var(--portal-hover);color:var(--portal-muted);font-size:16px;font-weight:600}.post-person-photo img{width:100%;height:100%;object-fit:cover}.post-author>div{flex:1;min-width:0}.post-author strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}.post-author small{color:var(--portal-muted);font-size:12px}.post-audience{display:inline-flex;align-items:center;gap:5px;max-width:100%;margin-top:2px;color:var(--portal-muted)}.post-audience select{min-width:0;max-width:100%;appearance:none;border:0;background:transparent;font-size:12px;cursor:pointer;padding:5px 0}.post-audience select option{color:var(--portal-text);background:var(--portal-surface)}.post-mode-tabs{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--portal-line)}.post-mode-tabs>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;min-height:44px;padding:0 2px 10px;color:var(--portal-muted);font-size:14px;font-weight:550}.post-mode-tabs>button[aria-selected=true]{color:var(--portal-text)}.post-mode-tabs>button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--portal-primary);border-radius:2px}.post-editor-body{min-width:0}.post-editor-body>textarea{display:block;width:100%;min-width:0;min-height:150px;max-height:320px;resize:none;padding:0 10px;border:0;background:transparent;color:var(--portal-text);font-family:inherit;font-size:16px;line-height:1.65;overflow-wrap:anywhere}.post-editor-body.is-poll>textarea{min-height:80px;margin-top:18px}.post-editor-body>textarea::placeholder{color:var(--portal-muted)}.post-editor-body>textarea:focus-visible{outline:none;box-shadow:inset 2px 0 var(--portal-primary);border-radius:0}.post-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.post-section-heading h3{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:600}.post-section-heading h3>span,.post-section-heading>span{color:var(--portal-muted);font-size:12px;font-weight:400}.post-add-section{border-top:1px solid var(--portal-line);padding-top:16px}.post-add-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.post-add-tools>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 12px;border-radius:8px;background:var(--portal-hover);color:var(--portal-text);font-size:13px;font-weight:500}.post-add-tools>button svg{color:var(--portal-muted)}.post-add-tools>button:hover{background:color-mix(in srgb,var(--portal-text) 8%,var(--portal-hover))}.post-file-help{margin-top:10px;color:var(--portal-muted);font-size:12px}.post-file-help summary{display:inline-block;padding-block:5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.post-file-help p{max-width:560px;margin-top:6px;line-height:1.6}.post-attachments>ul{display:grid;gap:10px;margin-top:12px}.post-attachment{min-width:0;padding:10px 12px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-canvas)}.post-attachment-row{display:flex;align-items:center;gap:12px;min-width:0}.post-attachment-thumb{display:grid;place-items:center;flex-shrink:0;width:64px;height:64px;overflow:hidden;border-radius:7px;background:var(--portal-hover);color:var(--portal-muted)}.post-attachment-thumb img{width:100%;height:100%;object-fit:cover}.post-attachment-name{flex:1;min-width:0}.post-attachment-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--portal-text);font-size:13px;font-weight:550}.post-attachment-name span{display:block;margin-top:4px;color:var(--portal-muted);font-size:12px}.post-attachment-actions{display:flex;align-items:center;gap:4px;margin-top:6px}.post-attachment-actions>span{margin-right:auto;color:var(--portal-muted);font-size:11px}.post-attachment-actions .post-icon-button{height:32px;width:36px}.post-attachment-image,.post-attachment-video{display:block;max-width:100%;width:100%;max-height:300px;object-fit:contain;border-radius:6px;margin-top:10px;background:#000}.post-attachment-audio{display:block;width:100%;max-width:100%;min-width:0;margin-top:10px}.post-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border-radius:6px;color:var(--portal-primary);font-size:12px;font-weight:500}.post-text-button:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}.post-tagged{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.post-tagged>span{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 4px 2px 10px;border-radius:6px;background:var(--portal-hover);color:var(--portal-text);font-size:12px;overflow-wrap:anywhere}.post-tagged button{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;color:var(--portal-muted);border-radius:4px}.post-tagged button:hover{color:var(--portal-text);background:var(--portal-line)}.post-schedule{padding-top:4px;border-top:1px solid var(--portal-line)}.post-schedule-toggle{display:flex;align-items:center;width:100%;gap:10px;padding-block:12px;color:var(--portal-muted);text-align:left}.post-schedule-toggle>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.post-schedule-toggle strong{font-size:13px;font-weight:500;color:var(--portal-text)}.post-schedule-toggle small{font-size:12px}.post-schedule-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}.post-schedule-fields{display:grid;gap:8px;padding-bottom:8px}.post-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:500}.post-field small{color:var(--portal-muted);font-size:12px;font-weight:400}.post-field input,.post-people-search input,.post-poll-option input{width:100%;min-width:0;height:44px;border:1px solid var(--portal-line);border-radius:8px;padding:0 12px;background:var(--portal-surface);color:var(--portal-text);font-size:14px;font-weight:400}.post-field input[type=datetime-local]{max-width:100%}.post-hint{color:var(--portal-muted);font-size:12px;line-height:1.5}.post-poll{padding:18px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-canvas);color:var(--portal-text)}.post-editor-body .post-poll{margin-top:0}.post-poll>*+*{margin-top:16px}.post-poll-options{border:0;padding:0;min-width:0}.post-poll-options legend{padding:0 0 8px;font-size:13px;font-weight:500}.post-poll-option{display:flex;align-items:center;gap:8px;min-width:0}.post-poll-option+.post-poll-option{margin-top:8px}.post-poll-option>span{flex-shrink:0;min-width:18px;color:var(--portal-muted);font-size:12px;text-align:center}.post-poll-option>input{flex:1}.post-poll-preferences{display:grid;gap:12px;padding-block:12px;border-block:1px solid var(--portal-line)}.post-poll-preferences>label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:13px}.post-extra-settings input[type=checkbox],.post-poll-preferences input{width:17px;height:17px;flex-shrink:0;margin-top:1px;accent-color:var(--portal-primary)}.post-poll-preferences small{display:block;margin-top:3px;color:var(--portal-muted);font-size:12px;line-height:1.4}.post-composer-footer{flex-shrink:0;padding:16px 24px;border-top:1px solid var(--portal-line);background:var(--portal-surface)}.post-submit-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.post-submit-hint{flex:1;max-width:340px;color:var(--portal-muted);font-size:12px;line-height:1.5}.post-publish-button,.post-secondary-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:550;white-space:nowrap}.post-publish-button{flex-shrink:0;background:#2563eb;color:#fff}.post-publish-button:hover:not(:disabled){background:#1d4ed8}.post-secondary-button{background:var(--portal-hover);color:var(--portal-text)}.post-error{color:#ba3544;background:#fff1f2;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.dark .post-error{color:#ffa7ad;background:#3b252a}.post-composer-footer>.post-error{margin-bottom:10px}.post-drop-overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:2px dashed var(--portal-primary);border-radius:8px;background:color-mix(in srgb,var(--portal-surface) 96%,transparent);pointer-events:none}.post-drop-overlay span{color:var(--portal-muted);font-size:13px}.post-inline-people,.post-people-panel{margin-top:12px;padding:12px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-canvas)}.post-people-tabs{display:flex;gap:6px;margin-block:8px}.post-people-tabs>button{min-height:36px;padding-inline:10px;border-radius:6px;color:var(--portal-muted);font-size:12px}.post-people-tabs>button[aria-pressed=true]{color:var(--portal-text);background:var(--portal-hover);font-weight:550}.post-people-search{display:flex;align-items:center;gap:8px;color:var(--portal-muted);margin-block:10px}.post-people-search input{flex:1}.post-people-results{max-height:224px;overflow-y:auto;overscroll-behavior:contain}.post-person-option{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:8px;border-radius:8px;text-align:left}.post-person-option.is-highlighted,.post-person-option:hover{background:var(--portal-hover)}.post-person-option[aria-pressed=true]>svg{flex-shrink:0;color:var(--portal-primary)}.post-person-option>span:nth-child(2){flex:1;min-width:0}.post-person-option strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550}.post-person-option small{display:block;color:var(--portal-muted);margin-top:3px;font-size:12px}.post-empty{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:24px 12px;color:var(--portal-muted);font-size:13px;line-height:1.5;text-align:center}.post-people-panel>.post-secondary-button{display:flex;margin-top:10px;margin-left:auto}.post-extra-settings{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--portal-line);font-size:13px}.post-extra-settings label{display:flex;align-items:center;gap:10px}.post-extra-settings select{max-width:100%;border:1px solid var(--portal-line);border-radius:8px;min-height:44px;padding:0 12px;background:var(--portal-surface);color:var(--portal-text)}.group-post-entry{display:flex;align-items:center;gap:12px;width:100%;padding:16px 20px;border-radius:10px;background:var(--portal-surface);color:var(--portal-muted);text-align:left}.group-post-entry>span:nth-child(2){flex:1;min-width:0;font-size:15px}.group-post-entry:hover{background:var(--portal-hover)}.group-post-entry>svg{color:var(--portal-primary)}@media (max-width:767px){.post-composer-position{padding:0;align-items:stretch}.post-composer{max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}.post-composer-header{padding:max(10px,env(safe-area-inset-top)) 16px 10px}.post-composer-header h2{font-size:16px}.post-composer-form{flex:1}.post-composer-scroll{padding:18px 16px}.post-composer-content>*+*{margin-top:18px}.post-composer-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.post-submit-row{flex-wrap:wrap;gap:10px}.post-submit-hint{flex-basis:100%;max-width:none;font-size:11px}.post-publish-button{width:100%}.post-add-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.post-add-tools>button{min-height:44px;padding-inline:6px}.post-poll{padding:12px}.post-attachment-actions .post-icon-button,.post-icon-button{width:44px;height:44px}.post-field input,.post-people-search input,.post-poll-option input{font-size:16px}.post-poll-option{gap:5px}.post-person-option{padding-inline:0}.post-tagged button{width:36px;height:36px}.group-post-entry{padding-inline:16px}}@media (prefers-reduced-motion:reduce){.post-composer-dialog .animate-spin{animation:none}}