.cc, .cc-picker { --cc-accent: #3390ec; --cc-line: rgba(110, 130, 150, .22); --cc-soft: rgba(110, 130, 150, .07); color: var(--font-color, #273446); font-size: 14px; line-height: 1.6; font-family: inherit; }
.cc button, .cc-picker button { font: inherit; cursor: pointer; }
.cc button:disabled { opacity: .5; cursor: default; }
.cc button:focus-visible, .cc-picker button:focus-visible, .cc-picker input:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; }
.cc-session { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--font-color); font-size: .9em; }
.cc-login, .cc-logout, .cc-more, .cc-reload { padding: 5px 13px; border: 1px solid var(--cc-line); border-radius: 8px; color: var(--cc-accent); background: var(--cc-soft); }
.cc-login { margin-left: auto; }
.cc-logout { margin-left: auto; }
.cc-composer { border: 1px solid var(--cc-line); border-radius: 15px; background: var(--card-bg, #fff); transition: border-color .2s, box-shadow .2s; }
.cc-composer:focus-within { border-color: var(--cc-accent); box-shadow: 0 0 0 3px rgba(51, 144, 236, .08); }
.cc-composer.cc-dragging { outline: 2px dashed var(--cc-accent); outline-offset: 4px; }
.cc .cc-text { display: block; box-sizing: border-box; width: 100%; min-height: 118px; max-height: 360px; resize: vertical; padding: 15px 17px; border: 0; border-radius: 15px 15px 0 0; outline: 0; color: inherit; background: transparent; font: inherit; line-height: 1.7; }
.cc-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--cc-line); }
.cc-actions { display: flex; gap: 3px; }
.cc .cc-icon { display: grid; width: 36px; height: 36px; place-items: center; padding: 7px; border: 0; border-radius: 9px; color: #7f909f; background: transparent; }
.cc .cc-icon:hover, .cc .cc-icon[aria-expanded='true'] { color: var(--cc-accent); background: var(--cc-soft); }
.cc-icon svg, .cc-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cc-counter { margin-left: auto; color: #84929f; font-size: 11px; }
.cc .cc-send { display: flex; align-items: center; gap: 6px; padding: 7px 15px; border: 0; border-radius: 9px; color: #fff; background: var(--cc-accent); }
.cc-media-tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 14px 12px; }
.cc-media-chip { position: relative; width: 78px; height: 78px; border: 1px solid var(--cc-line); border-radius: 10px; background: var(--cc-soft); }
.cc-media-chip img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.cc .cc-remove { position: absolute; top: -6px; right: -6px; width: 21px; height: 21px; padding: 0; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; color: #fff; background: #798996; font-size: 17px; line-height: 17px; }
.cc-status { min-height: 20px; margin: 10px 0; color: #84929f; font-size: .9em; overflow-wrap: anywhere; }
.cc-status.cc-error { color: #de6464; }
.cc-comment { display: flex; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--cc-line); }
.cc-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--cc-soft); }
.cc-comment-content { min-width: 0; flex: 1; }
.cc-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cc-comment-author { font-weight: 600; }
.cc-comment-head time { margin-left: auto; color: #84929f; font-size: 11px; }
.cc-comment-body { overflow-wrap: anywhere; }
.cc-comment-body img { max-width: 100%; max-height: 340px; object-fit: contain; border-radius: 8px; }
.cc-comment-body pre { max-width: 100%; overflow: auto; }
.cc-comment-body p { margin: 8px 0; }
.cc-more, .cc-reload { margin: 12px 0; }
#comments-legacy { margin-top: 20px; border-top: 1px solid var(--cc-line, rgba(110,130,150,.22)); padding-top: 12px; }
#comments-legacy > summary { color: #84929f; font-size: 12px; cursor: pointer; }
.cc-picker { position: fixed; z-index: 1000; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(130, 150, 170, .24); border-radius: 15px; background: var(--card-bg, #fff); box-shadow: 0 12px 48px rgba(20, 40, 60, .22); }
.cc-picker-tabs { display: flex; flex: 0 0 48px; padding: 0 12px; border-bottom: 1px solid var(--cc-line); }
.cc-picker-tabs button { position: relative; flex: 1; padding: 0 4px; border: 0; color: #8a98a4; background: transparent; }
.cc-picker-tabs button[aria-selected='true'] { color: var(--cc-accent); }
.cc-picker-tabs button[aria-selected='true']::after { position: absolute; right: 23%; bottom: 0; left: 23%; height: 3px; border-radius: 3px; background: var(--cc-accent); content: ''; }
.cc-picker .cc-picker-search { flex: 0 0 32px; box-sizing: border-box; width: calc(100% - 24px); min-height: 32px; margin: 10px 12px 4px; padding: 4px 11px; border: 0; border-radius: 8px; outline: 0; color: inherit; background: var(--cc-soft); font: inherit; font-size: 12px; }
.cc-picker-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdc6cd transparent; }
.cc-picker-content { position: relative; min-width: 0; margin: 0 8px; }
.cc-picker-row, .cc-picker-heading { position: absolute; box-sizing: border-box; left: 0; width: 100%; }
.cc-picker-heading { padding: 7px 8px; color: #8a98a4; font-size: 12px; font-weight: 600; }
.cc-picker-row { display: grid; align-items: center; gap: 2px; }
.cc-picker-row button { display: grid; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; place-items: center; padding: 4px; border: 0; border-radius: 9px; background: transparent; }
.cc-picker-row button:hover, .cc-picker-row button:focus-visible { background: var(--cc-soft); }
.cc-picker-row .cc-emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-size: 27px; }
.cc-sticker img { display: block; max-width: 100%; width: 72px; height: 72px; object-fit: contain; }
.cc-pack-rail { display: flex; flex: 0 0 50px; gap: 3px; align-items: center; padding: 0 7px; overflow-x: auto; border-top: 1px solid var(--cc-line); scrollbar-width: thin; }
.cc-pack-rail .cc-pack-button { flex: 0 0 40px; width: 40px; height: 40px; padding: 4px; border: 0; border-radius: 9px; background: transparent; }
.cc-pack-button img { width: 32px; height: 32px; object-fit: contain; }
.cc-pack-rail .cc-pack-button[aria-pressed='true'] { background: rgba(51, 144, 236, .13); }
.cc-picker-hint { flex: 0 0 24px; color: #8a98a4; text-align: center; font-size: 10px; line-height: 24px; }
.cc-picker-empty { padding: 20px 12px; text-align: center; color: #8a98a4; }
.cc [hidden], .cc-picker [hidden] { display: none !important; }
[data-theme='dark'] .cc-picker { background: #202833; border-color: rgba(170, 190, 210, .18); box-shadow: 0 15px 45px rgba(0, 0, 0, .45); }
@media (max-width: 600px) { .cc-session { font-size: 12px; gap: 6px; } .cc-counter { display: none; } .cc-send { margin-left: auto; } .cc-comment { gap: 9px; } .cc-comment-head time { width: 100%; margin-left: 0; } }
