/* ========== Layout ========== */
.summary-list-page,
.summary-create-page,
.summary-confirm-page,
.summary-schedule-page {
    --wk-ring-primary: 0 0 0 2px var(--semi-color-primary-light-default);
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 32px 28px;
    overflow-y: auto;
}

/* 详情页特殊布局：更宽敞的全屏展示 */
.summary-detail-page {
    --wk-ring-primary: 0 0 0 2px var(--semi-color-primary-light-default);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
}

/* 详情页内容容器 */
.summary-detail-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: transparent;
}

/* 详情页内容区域 - 使用更宽敞的布局 */
.summary-detail-content-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 28px;
}

/* 详情页内容区域第一个元素的顶部间距调整 */
.summary-detail-content-inner > *:first-child {
    margin-top: 0;
}

/* ========== List Page ========== */
.summary-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.summary-list-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.summary-list-actions {
    display: flex;
    gap: 8px;
}

.summary-list-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.summary-list-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.summary-list-empty {
    text-align: center;
    padding: 80px 20px;
}

.summary-list-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.summary-list-empty-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--semi-color-text-0);
    margin-bottom: 8px;
}

.summary-list-empty-desc {
    color: var(--semi-color-text-2);
    margin-bottom: 16px;
}

.summary-list-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-list-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ========== Summary Card ========== */
.summary-card {
    border: 1px solid var(--semi-color-border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    box-shadow: none;
}

.summary-card:hover {
    border-color: var(--semi-color-primary);
    box-shadow: none;
    transform: translateY(-1px);
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    flex: 1;
    margin-right: 8px;
}

.summary-card-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--semi-color-text-2);
    margin-bottom: 8px;
}

.summary-card-divider {
    margin: 0 8px;
    color: var(--semi-color-border);
}

.summary-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--semi-color-text-3);
    padding-top: 8px;
    border-top: 1px solid var(--semi-color-fill-1);
}

.summary-card-msg-count {
    color: var(--semi-color-text-2);
    font-weight: 500;
}

/* ========== Create Page ========== */
.summary-create-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.summary-create-header h2 {
    margin: 0;
    font-size: 20px;
}

.summary-create-steps {
    margin-bottom: 32px;
}

.summary-create-body {
    min-height: 300px;
}

.summary-create-step h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 20px;
}

.summary-create-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--semi-color-border);
    margin-top: 24px;
}

/* Mode Cards */
.summary-mode-cards {
    display: flex;
    gap: 16px;
}

.summary-mode-card {
    flex: 1;
    border: 2px solid var(--semi-color-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.summary-mode-card:hover {
    border-color: var(--semi-color-primary-light-active);
}

.summary-mode-card.active {
    border-color: var(--semi-color-primary);
    box-shadow: var(--wk-ring-primary);
}

.summary-mode-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.summary-mode-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.summary-mode-card-desc {
    font-size: 13px;
    color: var(--semi-color-text-2);
}

/* ========== Form Fields ========== */
.summary-form-field {
    margin-bottom: 20px;
}

.summary-form-field > label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--semi-color-text-0);
}

/* ========== Confirm Info ========== */
.summary-confirm-info {
    background: var(--semi-color-fill-0);
    border-radius: 8px;
    padding: 16px;
}

.summary-confirm-row {
    display: flex;
    padding: 6px 0;
}

.summary-confirm-label {
    color: var(--semi-color-text-2);
    min-width: 80px;
}

/* Schedule Option */
.summary-schedule-option {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
}

/* ========== Detail Page ========== */
.summary-detail-header {
    background: transparent;
    border-bottom: 1px solid var(--semi-color-border);
}

.summary-detail-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 32px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.summary-detail-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    color: var(--semi-color-text-0);
    line-height: 1.3;
}

.summary-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.summary-detail-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.summary-detail-info {
    background: var(--semi-color-fill-0);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 20px;
}

.summary-detail-info-row {
    display: flex;
    padding: 4px 0;
    font-size: 14px;
}

.summary-detail-info-label {
    color: var(--semi-color-text-2);
    min-width: 80px;
}

/* Processing */
.summary-detail-processing {
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, var(--semi-color-primary-light-default) 0%, var(--semi-color-bg-1) 100%);
    border-radius: 8px;
    margin: 28px 0;
}

.summary-detail-processing h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--semi-color-text-0);
}

.summary-detail-processing-actions {
    margin-top: 20px;
}

/* Failed */
.summary-detail-failed {
    text-align: center;
    padding: 56px 40px;
    background: var(--semi-color-danger-light-default);
    border: 1px solid var(--semi-color-danger-light-active);
    border-radius: 8px;
    margin: 28px 0;
}

.summary-detail-failed-icon {
    font-size: 56px;
    margin-bottom: 18px;
}

.summary-detail-failed h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--semi-color-danger);
    margin: 14px 0;
}

.summary-detail-failed-reason {
    color: var(--semi-color-text-1);
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--semi-color-bg-0);
    border-radius: 6px;
    font-size: 14px;
}

.summary-detail-failed-meta {
    font-size: 13px;
    color: var(--semi-color-text-2);
    margin: 18px 0;
}

.summary-detail-failed-actions {
    margin-top: 24px;
}

/* Cancelled / Waiting */
.summary-detail-cancelled,
.summary-detail-waiting {
    text-align: center;
    padding: 56px 40px;
    background: var(--semi-color-fill-0);
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    margin: 28px 0;
    color: var(--semi-color-text-1);
}

.summary-detail-cancelled p,
.summary-detail-waiting p {
    font-size: 14px;
    margin: 10px 0;
}

/* Result */
.summary-detail-result {
    margin-bottom: 28px;
    background: transparent;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: none;
}

.summary-detail-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--semi-color-border);
}

.summary-detail-result-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    margin: 0;
}

.summary-detail-result-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-detail-result-content {
    padding: 20px 0;
    line-height: 1.7;
    font-size: 14px;
    color: var(--semi-color-text-0);
}

.summary-detail-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--semi-color-fill-1);
}

.summary-detail-result-time {
    font-size: 13px;
    color: var(--semi-color-text-3);
}

.summary-detail-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--semi-color-text-3);
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--semi-color-border);
}

.summary-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ========== BY_PERSON Sections ========== */
.summary-detail-personal,
.summary-detail-team,
.summary-detail-members {
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
}

.summary-detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--semi-color-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    line-height: 1.5;
}

.summary-detail-section-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-detail-content-box {
    background: var(--semi-color-fill-0);
    border-radius: 6px;
    padding: 14px 18px;
    line-height: 1.7;
    font-size: 14px;
    color: var(--semi-color-text-0);
    border: 1px solid var(--semi-color-fill-1);
}

.summary-detail-personal h3,
.summary-detail-team h3,
.summary-detail-members h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--semi-color-text-0);
}

.summary-detail-personal-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.summary-detail-personal-content {
    background: var(--semi-color-fill-0);
    border-radius: 6px;
    padding: 14px;
}

/* ========== Summary Editor ========== */
.summary-editor {
    width: 100%;
}

.summary-editor-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 600px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    resize: none !important;
    font-family: inherit;
    color: var(--semi-color-text-0);
    background-color: var(--semi-color-fill-0);
    outline: none;
    box-sizing: border-box;
    overflow-y: auto !important;
    transition: border-color 0.2s;
}

.summary-editor-textarea:focus {
    border-color: var(--semi-color-primary);
    box-shadow: 0 0 0 2px var(--semi-color-primary-light-default);
}

.summary-editor-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.summary-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.summary-detail-team-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--semi-color-text-3);
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--semi-color-border);
}

.summary-detail-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-detail-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--semi-color-fill-0);
    border: 1px solid var(--semi-color-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.summary-detail-member-item:hover {
    background: var(--semi-color-fill-1);
    border-color: var(--semi-color-primary-light-active);
}

.summary-detail-member-name {
    flex: 1;
    color: var(--semi-color-text-0);
    font-weight: 500;
}

.summary-detail-member-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.summary-detail-member-time {
    font-size: 12px;
    color: var(--semi-color-text-3);
}

/* ========== Participant Reports ========== */
.summary-detail-participant-reports {
    margin-bottom: 28px;
    background: transparent;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: none;
}

.summary-detail-participant-reports h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--semi-color-text-0);
}

.summary-detail-participant-report-item {
    padding: 14px 18px;
    font-size: 14px;
    background: var(--semi-color-fill-0);
    border: 1px solid var(--semi-color-border);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.summary-detail-participant-report-item:last-child {
    margin-bottom: 0;
}

.summary-detail-participant-report-item.clickable {
    cursor: pointer;
}

.summary-detail-participant-report-item.clickable:hover {
    background: var(--semi-color-fill-1);
    border-color: var(--semi-color-primary-light-active);
}

.summary-detail-participant-report-header {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--semi-color-text-0);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.summary-detail-participant-report-content {
    color: var(--semi-color-text-1);
    line-height: 1.6;
    font-size: 14px;
}

.summary-detail-participant-report-toggle {
    margin-top: 12px;
    font-size: 13px;
    color: var(--semi-color-primary);
    font-weight: 500;
}

.summary-detail-participant-report-pending {
    padding: 14px 18px;
    color: var(--semi-color-text-2);
    font-size: 14px;
    background: var(--semi-color-fill-0);
    border: 1px solid var(--semi-color-border);
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-detail-participant-report-pending:last-child {
    margin-bottom: 0;
}


/* ========== Content Markdown ========== */
.summary-content-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.summary-content-empty {
    color: var(--semi-color-text-2);
    text-align: center;
    padding: 40px 0;
}

.summary-content-markdown {
    line-height: 1.7;
    font-size: 14px;
    color: var(--semi-color-text-0);
}

.summary-content-markdown h1 {
    font-size: 20px;
    margin: 20px 0 14px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    border-bottom: 2px solid var(--semi-color-border);
    padding-bottom: 6px;
}

.summary-content-markdown h2 {
    font-size: 18px;
    margin: 18px 0 10px;
    font-weight: 600;
    color: var(--semi-color-text-0);
}

.summary-content-markdown h3 {
    font-size: 16px;
    margin: 16px 0 8px;
    font-weight: 600;
    color: var(--semi-color-text-0);
}

.summary-content-markdown p {
    margin: 10px 0;
    line-height: 1.7;
}

.summary-content-markdown ul,
.summary-content-markdown ol {
    padding-left: 24px;
    margin: 10px 0;
}

.summary-content-markdown li {
    margin: 6px 0;
    line-height: 1.6;
}

.summary-content-markdown blockquote {
    border-left: 4px solid var(--semi-color-primary);
    color: var(--semi-color-text-1);
    margin: 14px 0;
    background: var(--semi-color-fill-0);
    padding: 10px 14px;
    border-radius: 4px;
}

.summary-content-markdown code {
    background: var(--semi-color-fill-1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    color: var(--semi-color-danger);
}

.summary-content-markdown pre {
    background: var(--semi-color-fill-0);
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid var(--semi-color-border);
}

.summary-content-markdown pre code {
    background: none;
    padding: 0;
    color: var(--semi-color-text-0);
}

.summary-content-markdown table {
    border-collapse: collapse;
    width: 100%;
    margin: 14px 0;
    border: 1px solid var(--semi-color-border);
    border-radius: 6px;
    overflow: hidden;
}

.summary-content-markdown th,
.summary-content-markdown td {
    border: 1px solid var(--semi-color-border);
    padding: 8px 12px;
    text-align: left;
}

.summary-content-markdown th {
    background: var(--semi-color-fill-0);
    font-weight: 600;
    color: var(--semi-color-text-0);
}

.summary-content-markdown td {
    background: var(--semi-color-bg-0);
}

.summary-content-markdown a {
    color: var(--semi-color-primary);
    text-decoration: none;
}

.summary-content-markdown a:hover {
    text-decoration: underline;
}

.summary-content-markdown strong {
    font-weight: 600;
    color: var(--semi-color-text-0);
}

.summary-content-markdown em {
    font-style: italic;
    color: var(--semi-color-text-1);
}

.summary-content-markdown hr {
    border: none;
    border-top: 2px solid var(--semi-color-border);
    margin: 24px 0;
}

/* ========== Citation Badge ========== */
.citation-badge {
    transition: background 0.2s;
}

.citation-badge:hover {
    background: var(--semi-color-primary-light-active) !important;
}

/* ========== Progress Indicator ========== */
.summary-progress {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.summary-progress-bar {
    margin-bottom: 20px;
}

.summary-progress-stages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-progress-stage {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.summary-progress-stage-done {
    color: var(--semi-color-success);
}

.summary-progress-stage-active {
    color: var(--semi-color-primary);
    font-weight: 500;
}

.summary-progress-stage-pending {
    color: var(--semi-color-text-2);
}

.summary-progress-stage-detail {
    margin-left: 8px;
    font-size: 12px;
    color: var(--semi-color-text-2);
    font-weight: 400;
}

.summary-progress-message {
    margin-top: 16px;
    font-size: 13px;
    color: var(--semi-color-text-2);
    text-align: center;
}

/* ========== Source Selector ========== */
.summary-source-selector {
    display: flex;
    flex-direction: column;
}

.summary-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.summary-source-add-form {
    display: flex;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

/* ========== Participant Selector ========== */
.summary-participant-selector {
    display: flex;
    flex-direction: column;
}

.summary-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.summary-participant-add-form {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

/* ========== Confirm Page ========== */
.summary-confirm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.summary-confirm-header h2 {
    margin: 0;
    font-size: 20px;
}

.summary-confirm-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.summary-confirm-invite {
    background: var(--semi-color-fill-0);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.summary-confirm-invite p {
    margin: 4px 0;
}

.summary-confirm-time {
    font-size: 13px;
    color: var(--semi-color-text-2);
}

.summary-confirm-sources {
    margin-bottom: 24px;
}

.summary-confirm-sources h4,
.summary-confirm-participants h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
}

.summary-confirm-participants {
    margin-bottom: 24px;
}

.summary-confirm-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--semi-color-border);
}

/* ========== Schedule Page ========== */
.summary-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.summary-schedule-header h2 {
    margin: 0;
    font-size: 20px;
    flex: 1;
}

.summary-schedule-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.summary-schedule-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--semi-color-text-2);
}

.summary-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-schedule-card {
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    padding: 16px;
}

.summary-schedule-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-schedule-card-title {
    font-size: 15px;
    font-weight: 500;
}

.summary-schedule-card-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}

.summary-schedule-card-sources {
    font-size: 13px;
    color: var(--semi-color-text-2);
    margin-bottom: 8px;
}

.summary-schedule-card-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* ========== Schedule Form ========== */
.summary-schedule-form {
    padding: 8px 0;
}

.summary-schedule-form .summary-form-field {
    margin-bottom: 16px;
}

.summary-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--semi-color-border);
    margin-top: 16px;
}

/* ========== Version History ========== */
.summary-version-history {
    margin-top: 16px;
}

.summary-version-empty {
    color: var(--semi-color-text-2);
    text-align: center;
    padding: 20px;
}

.summary-version-item {
    font-size: 14px;
}

.summary-version-header {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.summary-version-meta {
    font-size: 12px;
    color: var(--semi-color-text-2);
    margin-top: 4px;
}

/* ========== Time Range Picker ========== */
.summary-time-range-picker {
    display: flex;
    flex-direction: column;
}

/* ========== Tablet Responsive ========== */
@media (max-width: 768px) {
    .summary-list-page,
    .summary-create-page,
    .summary-detail-page,
    .summary-confirm-page,
    .summary-schedule-page {
        padding: 20px 16px;
    }

    .summary-create-footer {
        gap: 8px;
    }

    .summary-confirm-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-progress {
        max-width: 100%;
    }
}

/* ===== Summary Workbench ===== */
.summary-workbench {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 24px 24px;
    overflow-y: auto;
    background: transparent;
}

.summary-workbench-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.summary-workbench-icon {
    font-size: 40px;
    line-height: 1;
}

.summary-workbench-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    margin-bottom: 6px;
}

.summary-workbench-desc {
    font-size: 14px;
    color: var(--semi-color-text-2);
    line-height: 1.5;
}

.summary-workbench-input-area {
    border: 1px solid var(--semi-color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--semi-color-fill-0);
    box-shadow: none;
    transition: border-color 0.2s;
}

.summary-workbench-input-area:focus-within {
    border-color: var(--semi-color-primary);
    box-shadow: none;
}

.summary-workbench-input-area .semi-input-textarea-wrapper {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.summary-workbench-textarea {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: var(--semi-color-text-0);
    box-sizing: border-box;
}

.summary-workbench-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--semi-color-border);
    background: var(--semi-color-fill-0);
}

.summary-workbench-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-workbench-selected-chats {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.summary-workbench-selected-members {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.summary-workbench-templates {
    margin-top: 32px;
}

.summary-workbench-templates-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--semi-color-text-1);
    margin-bottom: 16px;
}

.summary-workbench-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-workbench-template-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--semi-color-border);
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
    box-shadow: none;
}

.summary-workbench-template-card:hover {
    border-color: var(--semi-color-primary);
    background: var(--semi-color-primary-light-default);
    box-shadow: none;
    transform: translateY(-1px);
}

.summary-workbench-template-card.selected {
    border-color: var(--semi-color-primary);
    background: var(--semi-color-primary-light-default);
    box-shadow: 0 0 0 2px var(--semi-color-primary-light-hover);
}

.summary-template-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.summary-template-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--semi-color-text-0);
    margin-bottom: 6px;
}

.summary-template-card-desc {
    font-size: 13px;
    color: var(--semi-color-text-2);
    line-height: 1.5;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 600px) {
    .summary-list-page,
    .summary-create-page,
    .summary-detail-page,
    .summary-confirm-page,
    .summary-schedule-page {
        padding: 16px 12px;
    }

    .summary-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .summary-list-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .summary-mode-cards {
        flex-direction: column;
    }

    .summary-source-add-form {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-source-add-form > * {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .summary-detail-result-meta {
        flex-wrap: wrap;
    }

    .summary-schedule-card-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ========== Selected Sources Panel ========== */
.selected-sources-panel {
    margin: 24px 0;
    background: transparent;
    border: 1px solid var(--semi-color-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
}

.selected-sources-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--semi-color-text-0);
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--semi-color-border);
    font-weight: 600;
    line-height: 1.5;
}

.selected-sources-list {
    border: 1px solid var(--semi-color-border);
    border-radius: 6px;
    padding: 6px 10px;
    background: var(--semi-color-fill-0);
}

.selected-sources-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--semi-color-text-1);
}

.selected-sources-item:not(:last-child) {
    border-bottom: 1px solid var(--semi-color-fill-1);
}

.selected-sources-item-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.selected-sources-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
