

/* ===== Плавающий режим (запасной) ===== */
#gcw-root.gcw-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Режим внутри сайдбара GC ===== */
#gcw-root.gcw-in-sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fff;
    border-top: 2px solid #3b82f6;
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gc-right-active-block .user-block-body {
    padding-bottom: 50px !important;
}

/* ===== Свёрнутое состояние ===== */
#gcw-root.gcw-collapsed .gcw-block {
    cursor: pointer;
    transition: box-shadow .15s;
}
#gcw-root.gcw-floating.gcw-collapsed .gcw-block {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
#gcw-root.gcw-floating.gcw-collapsed .gcw-block:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
#gcw-root.gcw-collapsed .gcw-list,
#gcw-root.gcw-collapsed .gcw-footer,
#gcw-root.gcw-collapsed .gcw-close {
    display: none;
}
#gcw-root.gcw-collapsed .gcw-header {
    border-bottom: none;
    padding: 8px 14px;
}
#gcw-root.gcw-floating.gcw-collapsed .gcw-header {
    border-radius: 8px;
}
#gcw-root.gcw-in-sidebar.gcw-collapsed .gcw-header {
    border-radius: 0;
}

/* ===== Развёрнутое состояние ===== */
#gcw-root.gcw-floating.gcw-expanded {
    width: 380px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
#gcw-root.gcw-floating.gcw-expanded .gcw-block {
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
#gcw-root.gcw-in-sidebar.gcw-expanded .gcw-block {
    display: flex;
    flex-direction: column;
    max-height: 60vh;
}
#gcw-root.gcw-expanded .gcw-list {
    overflow-y: auto;
    flex: 1 1 auto;
}

/* ===== Общие стили блока ===== */
.gcw-block {
    border: 1px solid #e4e7eb;
    background: #fff;
    font-size: 13px;
    color: #2c3e50;
}
#gcw-root.gcw-floating .gcw-block { border-radius: 8px; }
#gcw-root.gcw-in-sidebar .gcw-block {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: none;
}
.gcw-header {
    padding: 10px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid #e4e7eb;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
#gcw-root.gcw-floating .gcw-header { border-radius: 8px 8px 0 0; }
.gcw-header:hover { background: #eef2f6; }
.gcw-count {
    display: inline-block;
    padding: 1px 8px;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.gcw-close {
    margin-left: auto;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}
.gcw-close:hover { color: #374151; }

.gcw-item { padding: 12px 14px; border-bottom: 1px solid #f0f2f5; }
.gcw-item:last-child { border-bottom: none; }
.gcw-title { font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.gcw-meta { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.gcw-dim { color: #9ca3af; }
.gcw-stats { font-size: 12px; color: #374151; margin-bottom: 8px; }
.gcw-comments {
    list-style: none;
    padding: 6px 0 0 0;
    margin: 0;
    border-top: 1px dashed #e4e7eb;
}
.gcw-comments li { padding: 3px 0; line-height: 1.4; }
.gcw-time {
    display: inline-block;
    min-width: 62px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    margin-right: 6px;
}
.gcw-text { color: #1f2937; word-break: break-word; }
.gcw-more { color: #3b82f6; text-decoration: none; font-size: 12px; cursor: pointer; }
.gcw-more:hover { text-decoration: underline; }
.gcw-empty { color: #9ca3af; font-style: italic; font-size: 12px; padding: 4px 0; }
.gcw-footer { padding: 10px 14px; text-align: center; }
.gcw-load-more {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e4e7eb;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
}
.gcw-load-more:hover { background: #e5e7eb; }
.gcw-loading { color: #9ca3af; font-size: 12px; padding: 12px 14px; text-align: center; }
.gcw-error { color: #dc2626; font-size: 12px; padding: 12px 14px; }
