.channel-editor-overlay { position: fixed; top: var(--editor-top, 0px); left: 0; right: 0; height: var(--editor-height, 100dvh); z-index: 90; display: grid; background: var(--scrim); } .channel-editor { width: min(100%, 640px); height: 100%; min-height: 0; margin-inline: auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; color: var(--text-primary); background: var(--background); } .channel-editor__header { min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; border-bottom: 1px solid var(--border-subtle); } .channel-editor__header h2 { font-size: 16px; line-height: 24px; font-weight: 600; text-align: center; } .channel-editor__close { width: 44px; height: 44px; padding: 0; font-size: 28px; color: var(--text-primary); } .channel-editor__body { min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; } .channel-editor__context { padding-left: 12px; border-left: 2px solid var(--accent); color: var(--text-secondary); } .channel-editor__context strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 13px; } .channel-editor__context p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; } .channel-editor__context.is-expanded p { display: block; } .channel-editor__context-toggle, .channel-editor__clear { min-height: 44px; padding: 6px 0; color: var(--accent); font-size: 13px; } .channel-editor__input { flex: 1 0 auto; overflow-y: hidden; width: 100%; min-height: 160px; padding: 0; resize: none; border: 0; outline: 0; color: var(--text-primary); background: transparent; font: inherit; font-size: 16px; line-height: 24px; caret-color: var(--accent); } .channel-editor__input::placeholder { color: var(--text-secondary); } .channel-editor__type { display: grid; gap: 6px; color: var(--text-secondary); font-size: 13px; } .channel-editor__type .select { color: var(--text-primary); background: var(--surface); border-color: var(--border-control); } .channel-editor__input:focus-visible { border-radius: 4px; outline: 2px solid var(--focus-ring); outline-offset: 4px; } .channel-editor__attachments { display: grid; gap: 8px; } .channel-editor__author { display: flex; align-items: center; gap: 12px; font-size: .875rem; } .channel-editor__author .avatar { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } .channel-editor__context-toggle[hidden] { display: none; } .channel-editor__attach[hidden], .channel-editor__clear[hidden] { display: none; } .channel-editor__attachment { min-height: 44px; padding: 6px 8px 6px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--surface); font-size: 13px; } .channel-editor__attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .channel-editor__attachment button { min-width: 44px; min-height: 44px; color: var(--text-secondary); } .channel-editor__error { min-height: 18px; color: var(--danger); font-size: 13px; line-height: 18px; } .channel-editor__footer { min-height: calc(68px + env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--border-subtle); background: var(--background); } .channel-editor__attach, .channel-editor__submit { min-height: 44px; padding: 0 14px; border-radius: 12px; } .channel-editor__attach { color: var(--accent); border: 1px solid var(--border-control); background: var(--surface); } .channel-editor__submit { color: var(--on-accent); background: var(--accent); } .channel-editor__counter { min-width: 0; color: var(--text-secondary); font-size: 12px; text-align: right; } .channel-editor__counter.is-near-limit { color: var(--warning); } @media (min-width: 680px) { .channel-editor-overlay { place-items: center; padding: 24px; } .channel-editor { height: min(760px, 100%); border: 1px solid var(--border-subtle); border-radius: 20px; box-shadow: var(--shadow); } } @media (max-width: 370px) { .channel-editor__footer { grid-template-columns: auto minmax(0, 1fr); } .channel-editor__counter { grid-column: 1 / -1; grid-row: 1; } .channel-editor__attach { grid-column: 1; } .channel-editor__submit { grid-column: 2; } } @media (prefers-reduced-motion: reduce) { .channel-editor-overlay, .channel-editor { animation: none; transition: none; } }