/* 暂存列表顶栏：分享评审 / 我的分享 */
.tc-stash-rail-head-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.tc-stash-rail-head-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}
.tc-stash-rail-head-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}
.tc-stash-rail-head-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 1px;
}
.tc-stash-row.tc-stash-row--selected {
    background: rgba(99, 102, 241, 0.08);
}
.tc-stash-row.tc-stash-row--selected .tc-stash-preview {
    color: #4338ca;
}

.tc-share-modal {
    z-index: 200;
}
.tc-share-modal.flex {
    display: flex;
}
.tc-share-modal__panel {
    max-height: 90vh;
    overflow: auto;
}
.tc-share-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}
.tc-share-modal__field {
    display: block;
    margin-bottom: 0.75rem;
}
.tc-share-modal__field > span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}
.tc-share-modal__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #334155;
}
.tc-share-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}
.tc-share-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.tc-share-list-item:last-child {
    border-bottom: none;
}
.tc-share-list-item__title {
    font-weight: 600;
    color: #0f172a;
}
.tc-share-list-item__meta {
    font-size: 0.6875rem;
    color: #64748b;
}
.tc-share-list-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.tc-share-list-item__badge {
    font-size: 0.625rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}
.tc-share-list-item__badge--active {
    background: #ecfdf5;
    color: #047857;
}
.tc-share-list-item__badge--gone {
    background: #fef2f2;
    color: #b91c1c;
}
.tc-stash-share-btn {
    color: #4338ca;
}

/* 查看评论弹窗：工作台未加载 preview.css，此处保证可读性 */
#tc-share-comments-body .tc-share-comment-item,
#tc-share-comments-body .tc-share-preview__comment-item {
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.55rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
#tc-share-comments-body .tc-share-comment-item:last-child,
#tc-share-comments-body .tc-share-preview__comment-item:last-child {
    margin-bottom: 0;
}
#tc-share-comments-body .tc-share-comment-item__head,
#tc-share-comments-body .tc-share-preview__comment-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 0.35rem;
}
#tc-share-comments-body .tc-share-comment-item__author,
#tc-share-comments-body .tc-share-preview__comment-item__author {
    font-weight: 600;
    color: #0f172a;
}
#tc-share-comments-body .tc-share-comment-item__case {
    font-weight: 600;
    color: #334155;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#tc-share-comments-body .tc-share-comment-item__meta {
    color: #64748b;
}
#tc-share-comments-body .tc-share-comment-item__body,
#tc-share-comments-body .tc-share-preview__comment-item__body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}
#tc-share-comments-modal-title {
    color: #0f172a;
    font-weight: 700;
}

.tc-share-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}
.tc-share-pager__info {
    font-size: 0.75rem;
    color: #475569;
}
.tc-share-pager__btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    cursor: pointer;
}
.tc-share-pager__btn:hover:not(:disabled) {
    color: #4338ca;
    border-color: #a5b4fc;
    background: #eef2ff;
}
.tc-share-pager__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
