.stories-profile-comments__list {
    padding: 0;
}

.stories-profile-comments__empty {
    padding: 24px 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.stories-profile-comment {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.stories-profile-comment--child {
    padding-left: 56px;
    background: #fafafa;
}

.stories-profile-comment__avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.stories-profile-comment__body {
    flex: 1;
    min-width: 0;
}

.stories-profile-comment__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stories-profile-comment__username {
    font-weight: 600;
    color: #0072bc;
    font-size: 13px;
    text-decoration: none;
}

.stories-profile-comment__username:hover {
    text-decoration: underline;
}

.stories-profile-comment__number {
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    user-select: none;
}

.stories-profile-comment__time {
    color: #999;
    font-size: 11px;
}

.stories-profile-comment__story-badge {
    display: inline-flex;
    margin-left: auto;
    cursor: pointer;
}

.stories-profile-comment__story-badge img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #ddd;
    transition: opacity 0.2s;
}

.stories-profile-comment__story-badge img:hover {
    opacity: 0.8;
}

.stories-profile-comment__message {
    margin-top: 4px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
}

.stories-profile-comment__actions {
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

.stories-profile-comment__reply-btn,
.stories-profile-comment__quote-btn,
.stories-profile-comment__delete-btn,
.stories-profile-comment__edit-btn {
    background: none;
    border: none;
    color: #888 !important;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
    font-family: inherit;
}

.stories-profile-comment__reply-btn:hover,
.stories-profile-comment__quote-btn:hover {
    color: #0072bc !important;
}

.stories-profile-comment__edit-btn:hover {
    color: #f39c12 !important;
}

.stories-profile-comment .popup_menu {
    z-index: 100;
}

.stories-profile-comment .popup_menu .popup_item_container {
    white-space: nowrap;
}

.stories-profile-comment__delete-btn:hover {
    color: #c0392b;
}

.stories-profile-comment__edit-notice {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    font-style: italic;
}

.stories-edit-comment-textarea {
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
}

.stories-edit-comment-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.stories-edit-comment-buttons .button {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.stories-edit-comment-buttons .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stories-edit-comment-save {
    background: #0072bc;
    color: #fff;
}

.stories-edit-comment-save:hover:not(:disabled) {
    opacity: 0.9;
}

.stories-edit-comment-cancel {
    background: #e8e8e8;
    color: #555;
}

.stories-edit-comment-cancel:hover {
    background: #ddd;
}

.stories-profile-comments__pagination {
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stories-profile-comments__pagination .pagination {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stories-profile-comments__pagination .pages {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.stories-profile-comments__pagination .pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.stories-profile-comments__pagination .pagination__link:hover {
    background: rgba(100, 108, 255, 0.08);
    color: #646cff;
    border-color: rgba(100, 108, 255, 0.15);
}

.stories-profile-comments__pagination .pagination__link:active {
    transform: scale(0.95);
}

.stories-profile-comments__pagination .pagination_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    background: #007adb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 122, 219, 0.3);
}

.stories-profile-comments__pagination .pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    padding: 0 2px;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.stories-profile-comment-form {
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

.stories-profile-comment-form__reply-to {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #e8f4fd;
    border: 1px solid #b6dff8;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #2c6f9c;
}

.stories-profile-comment-form__cancel {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    line-height: 1;
}

.stories-profile-comment-form__cancel:hover {
    color: #c0392b;
}

.stories-profile-comment-form__editor {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.stories-profile-comment-form__textarea {
    min-height: 250px;
}

.stories-profile-comment-form__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.stories-profile-comment-form__story-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 50;
}

.stories-story-dropdown {
    position: relative;
    width: 220px;
    cursor: pointer;
    user-select: none;
}

.stories-story-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.stories-story-dropdown__trigger:hover {
    border-color: #999;
}

.stories-story-dropdown__trigger:focus {
    border-color: #0072bc;
    box-shadow: 0 0 0 2px rgba(0,114,188,0.15);
    outline: none;
}

.stories-story-dropdown__arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.15s;
    line-height: 1;
}

.stories-story-dropdown--open .stories-story-dropdown__arrow {
    transform: rotate(180deg);
}

.stories-story-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.stories-story-dropdown__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.stories-story-dropdown__option:first-child {
    border-radius: 6px 6px 0 0;
}

.stories-story-dropdown__option:last-child {
    border-radius: 0 0 6px 6px;
}

.stories-story-dropdown__option:hover {
    background: #f0f7ff;
}

.stories-story-dropdown__option--selected {
    background: #e1effa;
    font-weight: 600;
}

.stories-story-dropdown__thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.stories-story-dropdown__no-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.stories-story-dropdown__option-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stories-story-dropdown__trigger--active {
    border-color: #0072bc;
}

.stories-story-dropdown__trigger-label {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.stories-story-dropdown__trigger-thumb {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.stories-story-dropdown__placeholder {
    color: #999;
    font-size: 13px;
}

.stories-profile-comment-form__submit {
    white-space: nowrap;
}

.stories-profile-comments__loading {
    text-align: center;
    padding: 16px;
    color: #888;
}
