
/* 表格工具栏：分析评审 / 我的评审 */
.tc-share-toolbar-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex-shrink: 0;
}
.tc-share-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.28rem 0.62rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.tc-share-toolbar-btn:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.42);
    color: #4338ca;
}
.tc-share-toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.tc-share-toolbar-btn:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.45);
    outline-offset: 1px;
}
body.tc-hub-ai-tab .tc-workbench-scope .tc-share-toolbar-btn {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(99, 102, 241, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.tc-hub-ai-tab .tc-workbench-scope .tc-share-toolbar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(99, 102, 241, 0.45);
    color: #3730a3;
}
.tc-workbench-scope--lanhu-fill .tc-share-toolbar-btn {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tc-workbench-scope--lanhu-fill .tc-share-toolbar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(99, 102, 241, 0.38);
}

/* 暂存列表顶栏：分享评审 / 我的分享 */
.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;
}

/* ===== 用例评审 · 统一弹窗（需求选择 + 评审设置） ===== */
#tc-share-requirement-modal.tc-share-review-modal {
    position: fixed;
    inset: 0;
    z-index: 86;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#tc-share-requirement-modal.tc-share-review-modal.hidden { display: none !important; }
#tc-share-requirement-modal.tc-share-review-modal.flex { display: flex !important; }
#tc-share-requirement-modal .tc-share-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}
#tc-share-requirement-modal .tc-share-review-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 36rem;
    max-height: min(88vh, calc(100vh - 1.5rem));
    overflow: hidden;
    border-radius: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: #fff;
    box-shadow: 0 28px 56px -16px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
#tc-share-requirement-modal .tc-share-review-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 0.95rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(255, 255, 255, 0) 60%);
    flex-shrink: 0;
}
#tc-share-requirement-modal .tc-share-review-modal__header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
}
#tc-share-requirement-modal .tc-share-review-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.7rem;
    flex-shrink: 0;
    color: #4338ca;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    border: 1px solid rgba(99, 102, 241, 0.22);
}
#tc-share-requirement-modal .tc-share-review-modal__icon svg { width: 1.3rem; height: 1.3rem; }
#tc-share-requirement-modal .tc-share-review-modal__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #0f172a;
    line-height: 1.3;
}
#tc-share-requirement-modal .tc-share-review-modal__subtitle {
    margin: 0.22rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}
#tc-share-requirement-modal .tc-share-review-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
#tc-share-requirement-modal .tc-share-review-modal__close:hover { background: #f1f5f9; color: #475569; }
#tc-share-requirement-modal .tc-share-review-modal__close svg { width: 1rem; height: 1rem; }
#tc-share-requirement-modal .tc-share-review-modal__scroll {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 0.85rem 1.15rem 0.5rem;
}
#tc-share-requirement-modal .tc-share-review-modal__section + .tc-share-review-modal__section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}
#tc-share-requirement-modal .tc-share-review-modal__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}
#tc-share-requirement-modal .tc-share-review-modal__section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}
#tc-share-requirement-modal .tc-share-review-modal__summary {
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
    white-space: nowrap;
}

#tc-share-requirement-modal .tc-share-review-case-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.2rem;
    border-radius: 0.65rem;
    background: #f1f5f9;
}
#tc-share-requirement-modal .tc-share-review-case-tabs.hidden { display: none; }
#tc-share-requirement-modal .tc-share-review-case-tabs__btn {
    flex: 1;
    border: none;
    border-radius: 0.5rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
#tc-share-requirement-modal .tc-share-review-case-tabs__btn:hover { color: #334155; }
#tc-share-requirement-modal .tc-share-review-case-tabs__btn--active {
    color: #5b21b6;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
#tc-share-requirement-modal .tc-share-review-modal__list-wrap { min-height: 2rem; }
#tc-share-requirement-modal .tc-share-review-modal__state {
    padding: 0.75rem 0.1rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}
#tc-share-requirement-modal .tc-share-review-modal__state.hidden { display: none; }
#tc-share-requirement-modal .tc-share-requirement-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-height: min(46vh, 17.5rem);
    overflow: auto;
    padding-right: 0.1rem;
}
#tc-share-requirement-modal .tc-share-requirement-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.5rem;
    min-height: 2.05rem;
    border: 1px solid #e8edf2;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s, background-color 0.16s;
}
#tc-share-requirement-modal .tc-share-requirement-item:hover { border-color: #cbd5e1; background: #fafbfc; }
#tc-share-requirement-modal .tc-share-requirement-item:has(.tc-share-requirement-check:checked) {
    border-color: rgba(99, 102, 241, 0.38);
    background: #fafaff;
}
#tc-share-requirement-modal .tc-share-requirement-check {
    appearance: none;
    width: 0.92rem;
    height: 0.92rem;
    margin-top: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.3rem;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
}
#tc-share-requirement-modal .tc-share-requirement-check:checked {
    border-color: #6366f1;
    background: #6366f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.7rem no-repeat;
}
#tc-share-requirement-modal .tc-share-requirement-item__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
#tc-share-requirement-modal .tc-share-requirement-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 0;
}
#tc-share-requirement-modal .tc-share-requirement-item__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#tc-share-requirement-modal .tc-share-requirement-item__path {
    flex: 1 1 auto;
    max-width: 62%;
    text-align: right;
    font-size: 0.66rem;
    line-height: 1.25;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#tc-share-requirement-modal .tc-share-requirement-item__meta {
    display: block;
    margin-top: 0;
    font-size: 0.68rem;
    color: #64748b;
    flex-shrink: 0;
    white-space: nowrap;
}
#tc-share-requirement-modal .tc-share-requirement-item__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.05rem;
    border-radius: 9999px;
    background: #6366f1;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
#tc-share-requirement-modal .tc-share-requirement-item__order.hidden { display: none; }
#tc-share-requirement-modal .tc-share-review-modal__settings {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem 0.75rem;
    align-items: end;
}
#tc-share-requirement-modal .tc-share-review-modal__field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
#tc-share-requirement-modal .tc-share-review-modal__field--compact { width: 7.5rem; }
#tc-share-requirement-modal .tc-share-review-modal__field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}
#tc-share-requirement-modal .tc-share-review-modal__input {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #fff;
    font-size: 0.8125rem;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#tc-share-requirement-modal .tc-share-review-modal__input:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
#tc-share-requirement-modal .tc-share-review-modal__select { cursor: pointer; }
#tc-share-requirement-modal .tc-share-review-modal__toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    padding: 0.15rem 0;
}
#tc-share-requirement-modal .tc-share-review-modal__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
#tc-share-requirement-modal .tc-share-review-modal__toggle-box {
    width: 2.1rem;
    height: 1.2rem;
    border-radius: 9999px;
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.18s;
}
#tc-share-requirement-modal .tc-share-review-modal__toggle-box::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: transform 0.18s;
}
#tc-share-requirement-modal .tc-share-review-modal__toggle input:checked + .tc-share-review-modal__toggle-box {
    background: #6366f1;
}
#tc-share-requirement-modal .tc-share-review-modal__toggle input:checked + .tc-share-review-modal__toggle-box::after {
    transform: translateX(0.9rem);
}
#tc-share-requirement-modal .tc-share-review-modal__toggle-text {
    font-size: 0.8125rem;
    color: #475569;
}
#tc-share-requirement-modal .tc-share-review-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem 1rem;
    border-top: 1px solid #eef2f7;
    background: #fafbfc;
    flex-shrink: 0;
}
#tc-share-requirement-modal .tc-share-review-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
}
#tc-share-requirement-modal .tc-share-review-modal__btn--ghost {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}
#tc-share-requirement-modal .tc-share-review-modal__btn--ghost:hover { background: #f8fafc; }
#tc-share-requirement-modal .tc-share-review-modal__btn--primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}
#tc-share-requirement-modal .tc-share-review-modal__btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}
#tc-share-requirement-modal .tc-share-review-modal__btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
#tc-share-requirement-modal.tc-share-review-modal--settings-only .tc-share-review-modal__section:first-child {
    display: none;
}

