#contextDropdown.think-mode-dropdown {
    left: 0px;
    width: 168px;
}

#contextDropdown .think-option .arrow {
    margin-left: auto;
    width: 12px !important;
    height: 12px !important;
    stroke: var(--445, rgba(255, 255, 255, 0.45));
}

/* Context dropdown 左侧图标与文字样式 */
#contextDropdown .think-option {
    gap: 6px;
}

#contextDropdown .think-option i:not(.arrow),
#contextDropdown .think-option svg:not(.arrow) {
    width: 14px !important;
    height: 14px !important;
    stroke: var(--285, rgba(255, 255, 255, 0.85));
}

#contextDropdown .think-option .think-label {
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1e1e1e;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.window-shell {
    width: 100vw;
    height: 100vh;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.window-topbar {
    height: 33px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-lights {
    display: flex;
    gap: 7px;
    align-items: center;
}

.traffic-light {
    width: 11.64px;
    height: 11.64px;
}

.search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 13px;
    height: 24px;
}

.arrow-btn {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.arrow-btn:hover {
    opacity: 1;
}

.flip-horizontal {
    transform: scaleX(-1);
}

.search-input {
    position: relative;
    width: min(302px, calc(100vw - 120px));
    height: 24px;
}

.search-bar-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.search-bar-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.search-bar-content .flip-vertical {
    transform: rotate(180deg) scaleY(-1);
}

.search-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
}

.window-sidebar {
    position: absolute;
    left: 0;
    top: 33px;
    width: 48px;
    height: calc(100% - 33px);
    background: #1e1e1e;
    backdrop-filter: blur(48.5px);
    opacity: 0.72;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 20px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    margin-top: auto;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.sidebar-icon.flip-vertical {
    transform: rotate(180deg) scaleY(-1);
}

.sidebar-icon.active,
.sidebar-icon:hover {
    opacity: 1;
}

.vscode-container {
    display: flex;
    width: 100%;
    height: calc(100% - 33px);
    background: #171719;
}

.chat-panel {
    width: 422px;
    min-width: 422px;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #171719;
    position: relative;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: transparent;
    flex: 1;
}

.resize-handle {
    width: 1px;
    background: rgba(255, 255, 255, 0.11);
    cursor: col-resize;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.resize-handle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.resize-handle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
}

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #171719;
    overflow: hidden;
}

.editor-tabs {
    display: flex;
    align-items: center;
    background: #171719;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    height: 35px;
    overflow-x: auto;
}

.editor-tabs::-webkit-scrollbar {
    height: 0;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.tab i,
.tab svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.tab-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    margin-left: 4px;
}

.tab-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.tab-close i,
.tab-close svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.tab:hover .tab-close,
.tab.active .tab-close {
    display: flex;
}

.editor-content {
    flex: 1;
    display: flex;
    background: #171719;
    overflow: hidden;
}

.shortcuts-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
}

.shortcuts-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px 24px;
}

.shortcuts-icon {
    width: 180px;
    height: 180px;
    opacity: 0.6;
}

.shortcuts-list {
    padding: 0 24px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.shortcuts-names {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.shortcuts-keys-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.shortcut-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.shortcut-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    white-space: nowrap;
    padding: 4.4px 0;
}

.shortcut-keys {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    padding: 2px 0;
}

.shortcut-keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.editor-line-numbers {
    padding: 12px 8px;
    background: #171719;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-code {
    flex: 1;
    padding: 12px;
    overflow: auto;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.editor-code pre {
    margin: 0;
}

.editor-code code {
    color: inherit;
}

/* Header 样式 */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    background: transparent;
    border-bottom: none;
    height: 35px;
}

.brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.header-btn {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-btn i,
.header-btn svg,
.header-btn img {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.header-btn img[alt="edit"] {
    width: 12px;
    height: 14px;
}

.header-btn:hover {
    background: #333;
    color: #fff;
}

/* 消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transform: scale(0.9);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.welcome-logo {
    width: 108.86px;
    height: 25.976px;
    margin-bottom: 8px;
}

.welcome-title {
    width: 256.009px;
    height: 45px;
}

.welcome-description {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    max-width: 309px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 文件编辑卡片样式 */
.file-write-card {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    gap: 0;
    margin: 8px 0;
}

.file-write-card .chat-file-write-inner-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    gap: 12px;
    transition: background 0.2s;
}

.file-write-card .chat-file-write-inner-container:hover {
    background: rgba(255, 255, 255, 0.06);
}

.file-write-card .title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.file-write-card .file-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.file-write-card .file-path {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-left: 0;
}

.file-write-card .file-path span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-write-card .diff-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.file-write-card .diff-add {
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.file-write-card .diff-remove {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
}

.file-write-card .status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.file-write-card .status.done {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-write-card .co-icon-button-container {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-write-card .co-icon-button-container img {
    opacity: 1;
    transition: opacity 0.2s;
}

.file-write-card .co-icon-button-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

.file-write-card .co-icon-button-container:hover img {
    opacity: 1;
    filter: brightness(1.9);
}

.file-write-card .iconfont {
    font-size: 14px;
}

.file-write-card .success-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* 用户消息样式 */
.user-message {
    align-self: flex-end;
    max-width: 390px;
}

.user-bubble {
    width: auto;
    max-width: 390px;
    height: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    font-family: "SF Pro Text";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 8px;
    border-radius: 8px;
    border-top-right-radius: 0;
    position: relative;
    white-space: pre-wrap;
    /* 允许换行并保留换行符 */
    word-break: break-word;
    /* 避免长串不换行 */
}

.user-bubble.plan-message {
    background: rgba(51, 51, 51, 0.9);
    color: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    border-top-right-radius: 0;
}

.plan-tag {
    background: #22c55e;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: top;
}

.plan-content {
    display: inline;
    font-size: 13px;
    line-height: 150%;
}

/* 用户消息中的图片栅格 */
.user-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    /* 改为margin-bottom，使图片在文本上方 */
}

.user-images img {
    width: 32px;
    /* 与输入预览图片大小一致 */
    height: 32px;
    /* 与输入预览图片大小一致 */
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    /* 添加手型光标，表示可交互 */
    transition: opacity 0.2s ease;
    /* 添加过渡效果 */
}

.user-images img:hover {
    opacity: 0.8;
    /* hover时稍微透明，提供视觉反馈 */
}

/* AI 消息样式 */
.ai-message {
    align-self: flex-start;
    max-width: 390px;
    display: flex;
    gap: 12px;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
}

.ai-content {
    flex: 1;
    min-width: 0;
}

.ai-content p {
    font-size: 13px;
    margin: 8px 0;
    line-height: 150%;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-name {
    font-weight: 600;
    font-size: 15px;
}

/* Verdent Generating... 闪光动画效果 */
.ai-name.generating {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.8) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* 隐藏生成阶段的thinking indicator */
.ai-name.generating~.thinking-indicator {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 接口请求加载状态 */
.api-loading {
    align-self: flex-start;
    max-width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    background: none;
    border-radius: 0;
    margin: 8px 0;
    border-left: none;
}

.api-loading-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.api-loading-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 4px;
    min-height: 24px;
    transform: translateY(4px);
}

/* 统一的文字流光容器，作为单一遮罩 */
.api-loading-text {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.45) 35%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.45) 65%,
            rgba(255, 255, 255, 0.25) 100%);
    background-size: 300% 100%;
    animation: shimmer 3.5s linear infinite reverse;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 加载完成后的品牌展示容器 */
.brand-loaded {
    display: flex;
    width: auto;
    max-width: 100%;
    padding: 16px 0 8px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.brand-loaded .brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-loaded .brand-logo {
    width: 24px;
    height: 24px;
}

.brand-loaded .brand-name {
    color: var(--1100, #FFF);
    text-align: left;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 150%;
    /* 18px */
}

.api-loading-title {
    text-align: left;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 150%;
    /* 18px */
    -webkit-text-fill-color: transparent;
}

.api-loading-subtitle {
    text-align: left;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 16.5px */
    -webkit-text-fill-color: transparent;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
}

.thinking-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #444;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.ai-text {
    background: transparent;
    color: #e5e5e5;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #22c55e;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Rollback 按钮 */
.rollback-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rollback-container.show {
    opacity: 1;
}

.rollback-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 10px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rollback-btn:hover {
    color: #ccc;
}

.rollback-btn i,
.rollback-btn svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
}

.chat-input-container {
    padding: 16px;
    background: transparent;
    border-top: none;
    position: relative;
    z-index: 100;
}

.input-wrapper-border {
    background: linear-gradient(135deg, #3992FF 0%, #A8FFFB 17.38%, #7AFDF8 32.95%, #6FFFCA 49.95%, #97FFD7 77.39%, #FCFFAB 91.79%);
    border-radius: 8px;
    padding: 1px;
    min-width: 260px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    background: #171719;
    border: none;
    border-radius: 7px;
    padding: 8px;
    gap: 12px;
    /* 保持原始的12px间距 */
    transition: height 0.1s ease;
    /* 只对高度应用更短的过渡效果 */
    min-height: 84px;
    min-width: 258px;
    max-height: 300px;
    position: relative;
}

.input-wrapper::before {
    display: none;
}

.input-wrapper>* {
    position: static;
    z-index: auto;
}



.input-text-area {
    flex: 1;
    min-height: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* 选择Subagent后在输入框内显示的“芯片”容器 */
.token-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.token-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    padding: 0 8px 0 4px;
    border-radius: 999px;
    /* 还原为胶囊圆角，不影响文件专用样式 */
    background: #ffffff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    /* 供 X 绝对定位，不改变布局 */
}

/* 仅文件胶囊使用 4px 圆角 */
.token-chip.file-chip {
    border-radius: 4px;
}

/* contenteditable 内联芯片：与输入文本混排时采用暗色样式；
   同时用于通用 agent-chip（左下角选择插入与 @ 插入统一样式） */
#messageInput .token-chip,
.token-chip.agent-chip {
    background: var(--710, rgba(255, 255, 255, 0.10));
    border: 1px solid var(--86, rgba(255, 255, 255, 0.06));
    padding: 0 6px 0 2px;
    gap: 4px;
    color: var(--285, rgba(255, 255, 255, 0.85));
    height: 18px;
    line-height: 18px;
    vertical-align: middle;
    align-items: center;
    position: relative;
    top: -1px;
    /* 视觉上上移 1px，更贴合文本中线 */
}

#messageInput .token-chip .token-name,
.token-chip.agent-chip .token-name {
    line-height: 1;
    color: var(--285, rgba(255, 255, 255, 0.85));
}

.token-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
    z-index: 0;
}

.token-name {
    font-size: 12px;
    line-height: 1;
    color: #111;
    order: 1;
}

/* X 删除图标：默认隐藏，悬浮时显示 */
.token-x {
    display: flex;
    /* 居中对齐，避免偏移 */
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 4px;
    /* 与左内边距对齐，覆盖头像区域 */
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    line-height: 14px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    /* 非 hover 时不拦截 */
    transition: opacity 0.15s ease;
    z-index: 1;
}

.token-x i,
.token-x svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor !important;
    display: block;
}

.token-chip:hover .token-avatar {
    opacity: 0;
}

.token-chip:hover .token-x {
    opacity: 1;
    pointer-events: auto;
}

/* 确保内联芯片也能显示 X 并可点 */
#messageInput .token-chip:hover .token-x {
    opacity: 1;
    pointer-events: auto;
}

/* 会话中的token-chip禁用hover效果（只保留输入框中的hover） */
.user-bubble .token-chip:hover .token-avatar,
.ai-text .token-chip:hover .token-avatar {
    opacity: 1;
    /* 保持头像可见 */
}

.user-bubble .token-chip:hover .token-x,
.ai-text .token-chip:hover .token-x {
    opacity: 0;
    /* 不显示X按钮 */
    pointer-events: none;
}

/* 内联与统一 agent-chip 的 X 左对齐到 padding-left（2px），确保与圆形头像中心对齐 */
#messageInput .token-chip .token-x,
.token-chip.agent-chip .token-x {
    left: 2px;
}

/* 取消显式的 x 按钮，改为键盘删除 */

/* Subagent 胶囊统一样式（designer / verifier / ai-engineer） */
.token-chip[data-agent-id="designer"],
.token-chip[data-agent-id="verifier"],
.token-chip[data-agent-id="ai-engineer"] {
    background: var(--710, rgba(255, 255, 255, 0.10));
    border: 1px solid var(--86, rgba(255, 255, 255, 0.06));
    padding: 4px;
    /* 胶囊的 padding 为 4px */
    gap: 4px;
    /* 图标与文字间距 4px */
    color: var(--285, rgba(255, 255, 255, 0.85));
}

.token-chip[data-agent-id="designer"] .token-avatar,
.token-chip[data-agent-id="verifier"] .token-avatar,
.token-chip[data-agent-id="ai-engineer"] .token-avatar {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.token-chip[data-agent-id="designer"] .token-name,
.token-chip[data-agent-id="verifier"] .token-name,
.token-chip[data-agent-id="ai-engineer"] .token-name {
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 19.5px */
}

.input-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.separator {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1001;
}

.center-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1001;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.control-btn {
    width: 18px !important;
    height: 18px !important;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover:not(.active) {
    background: #444 !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    width: 18px !important;
    height: 18px !important;
}

.control-btn i,
.control-btn svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor;
}

/* Plan Mode按钮激活状态 - 提高优先级 */
button#menuBtn.control-btn.active {
    background: rgba(83, 222, 178, 0.50) !important;
    border: 1px solid rgba(83, 222, 178, 0.50) !important;
    color: #53DEB2 !important;
}

button#menuBtn.control-btn.active:hover {
    background: rgba(83, 222, 178, 0.55) !important;
    border: 1px solid rgba(83, 222, 178, 0.55) !important;
    color: #53DEB2 !important;
}

/* 确保Lucide图标也应用颜色 */
button#menuBtn.control-btn.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

button#menuBtn.control-btn.active:hover svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* 激活时：边框上有一束亮光顺时针巡游（边框不变，仅高光移动） */
button#menuBtn.control-btn {
    position: relative;
    z-index: 1;
}

@property --shine-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* 使用内部元素承载流光，避免与 tooltip 的 ::before/::after 冲突 */
.menu-glow {
    position: absolute;
    inset: -1px;
    border-radius: 5px;
    pointer-events: none;
    padding: 1.5px;
    /* 边框更厚一点以增强可见度 */
    background: conic-gradient(from var(--shine-angle, 0deg),
            rgba(255, 255, 255, 0) 0deg,
            rgba(255, 255, 255, 0) 298deg,
            rgba(83, 222, 178, 0.25) 302deg,
            rgba(83, 222, 178, 0.70) 310deg,
            #ffffff 336deg,
            rgba(83, 222, 178, 0.70) 352deg,
            rgba(83, 222, 178, 0.25) 358deg,
            rgba(255, 255, 255, 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: menuBtnShine 3.6s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes menuBtnShine {
    to {
        --shine-angle: 360deg;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Utility classes for toast */
.fixed {
    position: fixed;
}

.top-12 {
    top: 3rem;
}

.right-4 {
    right: 1rem;
}

.z-\[9999\] {
    z-index: 9999;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

.items-start {
    align-items: flex-start;
}

.gap-3 {
    gap: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.bg-\[\#2F3233\] {
    background-color: #2F3233;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-white\/\[0\.08\] {
    border-color: rgba(255, 255, 255, 0.08);
}

.max-w-\[400px\] {
    max-width: 400px;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.flex-1 {
    flex: 1;
}

.text-\[13px\] {
    font-size: 13px;
}

.text-white\/85 {
    color: rgba(255, 255, 255, 0.85);
}

.leading-5 {
    line-height: 1.25rem;
}

.text-\[\#66aaf9\] {
    color: #66aaf9;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.text-white\/45 {
    color: rgba(255, 255, 255, 0.45);
}

.hover\:text-white\/85:hover {
    color: rgba(255, 255, 255, 0.85);
}

.transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.animate-slide-in {
    animation: slideInFromRight 0.3s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.animate-slide-in button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 呼吸动画已移除 */

/* 激活态 hover：仅加深背景色，边框保持选中态（避免重影） */
/* 恢复 Plan tips 打开时的原本 hover 效果，保留流光动画 */
button#menuBtn.control-btn.active:hover {
    background: rgba(83, 222, 178, 0.55) !important;
    border: 1px solid rgba(83, 222, 178, 0.55) !important;
    color: #53DEB2 !important;
}



#messageInput {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    min-height: 20px;
    max-height: 120px;
    overflow-y: hidden;
    font-family: inherit;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

#messageInput[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

#messageInput[contenteditable="true"]:empty:focus:before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

#messageInput[contenteditable="false"]:empty:before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

/* 图片预览样式 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: -4px;
    /* 只减少与下方元素4px间距，从12px变为8px */
    max-height: 120px;
    overflow: visible;
    min-height: 0;
    width: 100%;
    flex-shrink: 0;
    /* 防止被压缩 */
}

.image-preview-container:empty {
    display: none;
}

.image-preview {
    position: relative;
    display: inline-block;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.image-preview img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.image-preview .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.image-preview:hover .remove-btn {
    opacity: 1;
    visibility: visible;
}

.image-preview .remove-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 图片预览浮层样式 */
.image-preview-overlay {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    /* 确保不超出视口边界 */
    max-width: 100vw;
    box-sizing: border-box;
}

/* 向下显示的浮层样式 */
.image-preview-overlay.show-below {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
}

.image-preview-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-preview-dialog {
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: var(--chat-container-width, 200px);
    max-width: var(--chat-container-width, 200px);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-preview-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    border-bottom: 1px solid #444;
    background: #333;
    border-radius: 6px 6px 0 0;
}

.image-preview-title {
    color: #888888;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.image-preview-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.image-preview-close:hover {
    background: #444;
    color: #fff;
}

.image-preview-content {
    padding: 0;
    display: block;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    background: #2a2a2a;
    text-align: center;
}

/* 确保预览内容区域不显示任何伪元素内容 */
.image-preview-content::before,
.image-preview-content::after {
    content: none !important;
    display: none !important;
}

/* 移除任何可能的文本内容显示 */
.image-preview-content {
    font-size: 0;
    /* 隐藏任何意外的文本 */
}

.image-preview-overlay img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 6px 6px;
    object-fit: contain;
    max-height: 80vh;
    /* 限制最大高度，避免图片过大 */
    font-size: 14px;
    /* 恢复图片元素的字体大小 */
}

.auto-run-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    height: 18px;
}

.auto-run-toggle:hover {
    background: #444;
    color: #fff;
}

.auto-run-toggle i,
.auto-run-toggle svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.auto-run-toggle.rotated i,
.auto-run-toggle.rotated svg {
    transform: rotate(180deg);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: auto;
    height: 18px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0 6px;
}

.status-indicator:hover {
    background: #444;
    color: #fff;
}

.status-indicator:hover .think-hard-text {
    color: #fff;
}

.status-indicator.active .think-hard-text {
    color: #53DEB2;
}

.status-indicator img {
    width: 18px;
    height: 18px;
}

.think-hard-text {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.think-hard-text.active {
    color: #53DEB2;
}

.status-dots {
    display: flex;
    gap: 2px;
}

.status-dots .dot {
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.status-dots .dot.active {
    background: #53DEB2;
}

.send-btn {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 4px;
    background: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.send-btn i,
.send-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.send-btn:hover {
    background: none;
}

.send-btn svg path {
    fill: rgba(255, 255, 255, 0.25) !important;
    transition: fill 0.2s ease;
}

.send-btn.active svg path,
.send-btn.active svg rect {
    fill: url(#sendGradient) !important;
    transition: fill 0.2s ease;
}

.send-btn:disabled {
    background: none;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-container {
        max-width: 100%;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-input-container {
        padding: 16px;
    }

    .user-message {
        max-width: 90%;
    }

    .auto-run-toggle {
        display: none;
    }

    .editor-panel {
        display: none;
    }

    .resize-handle {
        display: none;
    }

    .chat-panel {
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
    }

    .input-wrapper-border {
        min-width: 260px;
    }

    .input-wrapper {
        min-width: 258px;
        padding: 6px;
    }

    .input-controls-row {
        gap: 6px;
    }

    .left-controls {
        gap: 2px;
    }

    .center-controls {
        gap: 4px;
    }

    .separator {
        display: none;
    }
}

/* 代码块样式 */
.code-block {
    width: 422px;
    height: 34px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin: 8px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.code-header {
    display: flex;
    align-items: center;
    padding: 0 12px;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #888;
}

.code-filename {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    flex-shrink: 0;
}

.code-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.code-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.code-additions {
    color: #22c55e;
    font-size: 11px;
}

.code-deletions {
    color: #ef4444;
    font-size: 11px;
}

.accepted-badge {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.accepted-badge::before {
    content: '●';
    font-size: 8px;
}

/* Tooltip 样式 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #252526;
    border: 1px solid var(--710, rgba(255, 255, 255, 0.10));
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    color: var(--365, rgba(255, 255, 255, 0.65));
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    white-space: nowrap;
    z-index: 1001;
    opacity: 1;
    pointer-events: none;
}

/* 带描边的三角形 - 使用四边形旋转45度朝下 */
[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) rotate(225deg);
    width: 6px;
    height: 6px;
    background: #252526;
    border-left: 1px solid var(--710, rgba(255, 255, 255, 0.10));
    border-top: 1px solid var(--710, rgba(255, 255, 255, 0.10));
    border-right: none;
    border-bottom: none;
    z-index: 1002;
    opacity: 1;
    pointer-events: none;
}

.tooltip-arrow {
    display: none;
}

/* Think Mode Dropdown 样式 */
/* 为Auto-run dropdown添加描述文字样式 */
.think-desc {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 18px */
    margin-top: 2px;
    max-width: 200px;
}

.think-check {
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    min-width: 12px;
    min-height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.think-check i,
.think-check svg {
    width: 12px !important;
    height: 12px !important;
    stroke: var(--285, rgba(255, 255, 255, 0.85)) !important;
}

/* 调整Auto-run dropdown的定位 */
#autoRunDropdown.think-mode-dropdown {
    left: 0px;
    width: 260px;
}

.think-mode-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 80px;
    flex-shrink: 0;
    background: rgba(61, 61, 61, 0.95);
    border: 1px solid var(--86, rgba(255, 255, 255, 0.06));
    border-radius: 8px;
    padding: 4px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.10));
    backdrop-filter: blur(5px);
}

.think-mode-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.think-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 26px;
    flex-shrink: 0;
    padding: 6px 8px;
    /* 统一为 6px 8px */
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 2px;
    white-space: nowrap;
    position: relative;
}

/* Auto-run dropdown中的think-option使用不同的布局 */
#autoRunDropdown .think-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: auto;
    padding: 6px 8px;
    /* 统一为 6px 8px */
    white-space: normal;
}

#autoRunDropdown .think-option .think-check {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    min-width: 12px;
    min-height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#autoRunDropdown .think-option .think-check i,
#autoRunDropdown .think-option .think-check svg {
    width: 12px !important;
    height: 12px !important;
}

.think-option:last-child {
    margin-bottom: 0;
}

.think-option:hover {
    background: var(--86, rgba(255, 255, 255, 0.06));
}

.think-option.active {
    background: var(--86, rgba(255, 255, 255, 0.06));
}

.think-label {
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    min-width: 78px;
    text-align: left;
}

.think-option.active .think-label {
    color: #ffffff;
    font-weight: 500;
}

.think-bars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.think-bars .bar {
    width: 2px;
    height: 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.think-bars .bar:nth-child(2) {
    height: 8px;
    border-radius: 4px;
}

.think-bars .bar:nth-child(3) {
    height: 8px;
    border-radius: 4px;
}

.think-bars .bar:nth-child(4) {
    height: 8px;
    border-radius: 4px;
}

.think-bars .bar.active {
    background: #53DEB2;
    border-radius: 4px;
}

/* Subagent Dropdown 样式 */
.subagent-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0px;
    width: 200px;
    background: rgba(61, 61, 61, 0.95);
    border: 1px solid var(--86, rgba(255, 255, 255, 0.06));
    border-radius: 8px;
    padding: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.10));
    backdrop-filter: blur(5px);
}

.subagent-dropdown.show {
    opacity: 1;
    visibility: visible;
}

/* 独立于@浮层的 Subagent 副本样式，确保背景与原始一致 */
#contextSubagentDropdown.subagent-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(61, 61, 61, 0.95);
    border: 1px solid var(--86, rgba(255, 255, 255, 0.06));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(5px);
    z-index: 10001;
    overflow: hidden;
    /* 确保背景填充 */
    background-clip: padding-box;
    display: none;
}

#contextSubagentDropdown.subagent-dropdown.show {
    display: block;
}

#contextSubagentDropdown .subagent-header {
    background: transparent;
}

/* 确保列表与页脚区域覆盖容器背景 */
#contextSubagentDropdown .subagent-list,
#contextSubagentDropdown .subagent-footer {
    background: transparent;
}

/* 返回按钮容器与尺寸，保持与原左侧icon间距一致 */
.subagent-header [data-back="true"] {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 0 0 auto !important;
    /* 不要被 .subagent-header span {flex:1} 影响 */
}

.subagent-header [data-back="true"] svg,
.subagent-header [data-back="true"] i {
    width: 14px !important;
    height: 14px !important;
}

.subagent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border-radius: 8px 8px 0 0;
}

.subagent-header i:first-child,
.subagent-header svg:first-child {
    width: 14px !important;
    height: 14px !important;
    stroke: rgba(255, 255, 255, 0.45) !important;
}

.subagent-header span {
    flex: 1 1 auto;
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

.subagent-header i:last-child,
.subagent-header svg:last-child {
    width: 14px !important;
    height: 14px !important;
    stroke: rgba(255, 255, 255, 0.45) !important;
    cursor: pointer;
    transition: stroke 0.2s ease;
}

.subagent-header i:last-child:hover {
    stroke: rgba(255, 255, 255, 0.8) !important;
}

.subagent-list {
    padding: 0px 6px 6px 6px;
}

.subagent-option {
    display: flex;
    align-items: center;
    gap: 4px;
    /* 头像与名称间距 4px */
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 1px;
}

.subagent-option:last-child {
    margin-bottom: 0;
}

.subagent-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.subagent-avatar {
    width: 14px;
    /* 头像大小 14px */
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.subagent-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.subagent-name {
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

.subagent-tag {
    display: flex;
    width: 46px;
    height: 15px;
    padding: 0 4px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 2px;
    border: 1px solid var(--710, rgba(255, 255, 255, 0.10));
    background: var(--94, rgba(255, 255, 255, 0.04));
    color: var(--365, rgba(255, 255, 255, 0.65));
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

/* Files 浮层中文件路径的纯文本样式（无边框、无背景） */
.file-path {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-left: 8px;
    border: none;
    background: transparent;
    padding: 0;
}

.subagent-footer {
    padding: 0 8px;
    height: 30px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.add-subagent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    justify-content: center;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

.add-subagent:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
}

.add-subagent:hover span {
    color: rgba(255, 255, 255, 0.85);
}

.add-subagent i {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
}

/* 文案样式（更精确选择器） */
.add-subagent span {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
}

/* =============================
   Think 组件样式
   状态：thinking / thought / cancelled
   ============================= */
.ai-reply {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* 回复容器内元素之间无间距 */
}

.think-card {
    width: 100%;
    max-width: 100%;
    background: transparent;
    /* 去掉背景框 */
    border: none;
    /* 去掉边框 */
    border-radius: 0;
    overflow: visible;
    position: relative;
    /* 为竖线定位 */
}

.think-header {
    display: flex;
    /* 整体包裹 */
    align-items: center;
    /* 垂直对齐 */
    padding: 4px 0;
    /* 指定内边距 */
    gap: 4px;
    /* 间距 */
    background: transparent;
    /* 去掉背景 */
}

.think-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--285, rgba(255, 255, 255, 0.85));
    font-size: 12px;
}

.think-left i,
.think-left svg {
    width: 13px !important;
    /* icon大小 13px */
    height: 13px !important;
    stroke: var(--445, rgba(255, 255, 255, 0.45));
    /* icon颜色 */
}

.think-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    /* 操作按钮靠右 */
}

.think-actions .think-cancel,
.think-actions .think-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: #888;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.think-actions .think-cancel:hover,
.think-actions .think-toggle:hover {
    background: #444;
    color: #fff;
}

.think-actions i,
.think-actions svg {
    width: 12px !important;
    height: 12px !important;
    stroke: currentColor !important;
}

.think-body {
    padding-left: calc(var(--think-text-left, 0px) + 8px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.think-card.expanded .think-body {
    max-height: 200px;
    opacity: 1;
    margin-top: 6px;
    overflow: auto;
    padding-bottom: 6px
}

/* 收起态整行可点击（小手光标） */
.think-card:not(.expanded) .think-left {
    cursor: pointer;
}

/* 左侧竖线：与图标中心对齐，并随内容高度增长 */
/* 将竖线移动到正文容器内，随内容高度增长 */
.think-text {
    position: relative;
    padding-left: 10px;
    width: 100%;
    box-sizing: border-box;
}

.think-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
    pointer-events: none;
}

.think-text {
    color: #A0A0A0;
    /* 文本颜色 */
    font-size: 12px;
    /* 文本大小 */
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 计时文本样式 */
.think-timer {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* 状态色与标题文案 */
.think-card[data-state="thinking"] .think-title {
    /* 流光文字 */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.45) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s linear infinite reverse;
}

.think-card[data-state="thought"] .think-title {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 16.5px */
}

.think-card[data-state="cancelled"] .think-title {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* collapsed 时箭头可通过旋转表现（由脚本控制类名或保持默认） */
.think-card:not(.expanded) .think-actions .think-toggle svg {
    transform: rotate(180deg);
    transition: transform .2s ease;
}

.think-card.expanded .think-actions .think-toggle svg {
    transform: rotate(0deg);
}

/* =============================
   Listed 组件样式
   ============================= */

/* Listed 组件复用 think-card 的基础样式：保留标注，移除空规则以消除告警 */

/* Listed 状态的标题文案样式 */
.listed-card[data-state="listing"] .think-title {
    /* 流光文字 - 与thinking状态一致 */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.45) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3.5s linear infinite reverse;
}

.listed-card[data-state="listed"] .think-title {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.listed-card[data-state="cancelled"] .think-title {
    color: var(--445, rgba(255, 255, 255, 0.45));
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* 文件列表容器样式 */
.listed-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* 文件项之间的间距改为4px */
}

/* 单个文件项样式 */
.listed-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    /* 图标与文件名之间的间距 */
    padding: 2px 0;
    color: #A0A0A0;
    font-size: 12px;
    line-height: 150%;
}

/* 文件图标基础样式 - 现在使用 img 标签，增加优先级 */
.listed-file-item .file-icon,
.file-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
}

/* 文件名样式 - 应用新的样式 */
.file-name {
    overflow: hidden;
    color: var(--445, rgba(255, 255, 255, 0.45));
    text-overflow: ellipsis;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 18px */
    white-space: nowrap;
    /* 确保文字不换行，以便 ellipsis 生效 */
}

/* Browser Action 组件样式 - 见下方 Figma 对齐覆盖 */

/* Browser Action 标题区域 - 见下方 Figma 对齐覆盖 */

/* Browser Action 内容容器 - 覆盖见下方 */

/* 浏览器模拟器模块 - 覆盖见下方 */

.browser-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 步骤指示器 - 覆盖见下方 */

/* Console Logs 模块 - 覆盖见下方 */

.console-toggle.collapsed {
    transform: rotate(-90deg);
}

/* 覆盖见下方 */

.console-content.collapsed {
    display: none;
}

/* 覆盖见下方 */

/* Browser Action 文字流式展示模块 - 覆盖见下方 */

/* 导航控制 */
.browser-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button.active {
    background: #3992FF;
    border-color: #3992FF;
    color: white;
}

/* =============================
   Browser Action - Figma 对齐覆盖
   仅样式微调，不改交互逻辑
   ============================= */
/* Browser Action 组件样式 - 基于 Verdent 源码真实复刻 */
.chat-browser {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browser-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.browser-title .iconfont {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
}

.browser-title-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 150%;
    margin-left: 2px;
}

.browser-right {
    display: flex;
    align-items: center;
}

.browser-right .success-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-right .success-dot::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #22c55e;
}

.browser-right .fail-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-right .fail-dot::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ef4444;
}

.browser-right .iconfont {
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.browser-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 16px;
}

.status-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 150%;
}

.browser-content-title {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 10px;
}

.browser-content-title .title-text {
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    background-color: rgba(0, 0, 0, 0.25);
    line-height: 150%;
    font-weight: 500;
    padding: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    user-select: text;
}

.browser-content {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.browser-content-item {
    width: 100%;
}

.browser-content-img {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 326 / 204;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
}

.image-button {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: block;
}

.image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-item {
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.browser-content-logs {
    margin-top: 46px;
    color: rgba(255, 255, 255, 0.85);
}

.log-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    height: 19.5px;
    cursor: pointer;
}

.log-title-wrapper .iconfont {
    cursor: pointer;
    font-size: 14px;
}

.log-text {
    margin-bottom: 6px;
    max-height: 200px;
    line-height: 150%;
    overflow-y: scroll;
    margin-top: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.log-text::-webkit-scrollbar {
    width: 4px;
}

.log-text::-webkit-scrollbar-track {
    background: transparent;
}

.log-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.log-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.browser-content-action {
    margin-top: 6px;
    position: relative;
}

.aciton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 150%;
    cursor: pointer;
}

.aciton-header .iconfont {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
}

.action-wrapper .action-text {
    width: 100%;
    min-height: 0;
    max-height: 140px;
    overflow-y: scroll;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
}

.action-wrapper .action-text:not(:empty) {
    height: 140px;
}

.action-text::-webkit-scrollbar {
    width: 4px;
}

.action-text::-webkit-scrollbar-track {
    background: transparent;
}

.action-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.next-action-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.next-action-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 150%;
    font-weight: 500;
}

.next-action-title .iconfont {
    font-size: 12px;
}

.next-action-title .icon-a-Frame20 {
    position: relative;
    top: 2px;
}

.next-action-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 150%;
    font-weight: 500;
}

.browser-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
}

.indicator-left,
.indicator-right {
    cursor: pointer;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 16px;
    transition: background-color 0.2s;
}

.indicator-left:hover:not(:disabled),
.indicator-right:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.indicator-left:disabled,
.indicator-right:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.08);
}

.indicator-left .iconfont,
.indicator-right .iconfont {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.indicator-left .icon-tuijianyoujiantou {
    transform: rotate(180deg);
}

.indicator-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    padding: 0 8px;
    line-height: 150%;
    font-weight: 500;
}

/* 旧样式兼容 */
.browser-action-module {
    /* 已废弃 */
}

/* ===========================
   Plan Component - 基于 Verdent 源码真实复刻
   ============================= */

.plan-component-wrapper {
    width: 100%;
}

.co-content-container {
    position: relative;
    width: 100%;
    padding: 6px 0;
    border-radius: 8px;
}

.container-header {
    position: relative;
    z-index: 2;
    height: 40px;
    width: 100%;
}

.header-inner {
    position: relative;
    height: 40px;
    width: 100%;
    z-index: 1;
    padding: 0 10px 0 8px;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.08);
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 20px;
}

.plan-header-title {
    position: relative;
    width: 0;
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 1;
    overflow: hidden;
    gap: 4px;
}

.plan-header-title .iconfont {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.plan-header-title .title {
    max-width: calc(100vw - 98px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    cursor: pointer;
}

.plan-header-title .title:hover {
    text-decoration: underline;
}

.states-and-operater {
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.states-and-operater .icon-button {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.states-and-operater .icon-button:hover {
    color: rgba(255, 255, 255, 0.85);
}

.states-and-operater .iconfont {
    font-size: 20px;
}

.states-and-operater .icon-plandachuang-xiazai {
    font-size: 16px;
}

.container-content {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: none;
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.04);
}

.container-content.plan {
    max-height: 400px;
    overflow-y: auto;
}

.plan-content {
    padding: 0;
}

.plan-markdown-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
    padding: 12px;
}

.plan-markdown-content h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: rgba(255, 255, 255, 0.85);
}

.plan-markdown-content h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    color: rgba(255, 255, 255, 0.85);
}

.plan-markdown-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 4px 0;
    color: rgba(255, 255, 255, 0.85);
}

.plan-markdown-content p {
    margin: 8px 0;
}

.plan-markdown-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.plan-markdown-content li {
    margin: 4px 0;
    list-style-type: disc;
}

.plan-markdown-content strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Plan 中的 Mermaid 图表样式 */
.plan-markdown-content .mermaid-diagram-container {
    margin: 16px 0;
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.plan-markdown-content .mermaid-diagram-container.rendered {
    background: rgba(0, 0, 0, 0.15);
}

.plan-markdown-content .mermaid-diagram-container svg {
    max-width: 100%;
    height: auto;
}

.plan-markdown-content .mermaid-error {
    color: rgba(255, 100, 100, 0.85);
    padding: 12px;
    text-align: center;
    font-size: 12px;
}

.container-footer {
    position: relative;
    z-index: 2;
    height: 44px;
    width: 100%;
}

.footer-inner {
    position: relative;
    height: 100%;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: none;
    border-radius: 0px 0px 8px 8px;
    background-color: rgba(255, 255, 255, 0.04);
    z-index: 2;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.footer-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.04);
    z-index: 2;
}

.plan-footer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.plan-footer .btn-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.plan-footer .btn-left {
    color: rgba(255, 255, 255, 0.65);
}

.text-button {
    padding: 2px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 150%;
    cursor: pointer;
    border: none;
    background-color: rgba(255, 255, 255, 0.85);
    color: rgba(0, 0, 0, 0.85);
    transition: background-color 0.2s;
}

.text-button:hover {
    background-color: rgba(255, 255, 255, 0.65);
}

.text-button.dim {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.text-button.dim:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Scrollbar for plan content */
.container-content.plan::-webkit-scrollbar {
    width: 4px;
}

.container-content.plan::-webkit-scrollbar-track {
    background: transparent;
}

.container-content.plan::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.container-content.plan::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===========================
   Clarify Component - 基于 Verdent 源码真实复刻
   ============================= */

.clarify-component-wrapper {
    width: 100%;
}

.icon-container {
    height: 20px;
    width: 20px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container .iconfont {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.clarify-title {
    flex: 1 0 auto;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
}

.container-content.clarify {
    max-height: 100vh;
    overflow-y: auto;
    transition: max-height 0.3s ease-in-out;
}

.clarify-content {
    padding: 0 10px;
}

/* Radio 单选组件 */
.co-radio-container {
    padding: 12px 0 6px;
}

.co-radio-container:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.radio-title {
    position: relative;
    padding-bottom: 6px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.radio-title::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
}

.radio-title.has-selection::before {
    background-color: rgba(23, 201, 100, 1);
}

.radio-options {
    display: flex;
    flex-direction: column;
}

.radio-item {
    position: relative;
    padding: 6px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-custom {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 8px;
}

.radio-custom::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-radius: 50%;
}

.radio-item.unselected .radio-custom::before {
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.radio-item.unselected:hover .radio-custom::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.radio-item.selected .radio-custom::before {
    background-color: rgba(255, 255, 255, 0.85);
}

.radio-item.selected .radio-custom::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.85);
}

.radio-label {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Checkbox 多选组件 */
.co-checkbox-container {
    padding: 12px 0 6px;
}

.co-checkbox-container:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.checkbox-title {
    position: relative;
    padding-bottom: 6px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.checkbox-title::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
}

.checkbox-title.has-selection::before {
    background-color: rgba(23, 201, 100, 1);
}

.checkbox-options {
    display: flex;
    flex-direction: column;
}

.checkbox-item {
    position: relative;
    padding: 6px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 8px;
}

.checkbox-custom::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-radius: 2px;
}

.checkbox-item.unselected .checkbox-custom::before {
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.checkbox-item.unselected:hover .checkbox-custom::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-item.selected .checkbox-custom::before {
    background-color: rgba(255, 255, 255, 0.85);
}

.checkbox-item.selected .checkbox-custom::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: 0px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.85);
}

.checkbox-label {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Textarea 文本输入组件 */
.co-textarea-container {
    padding: 12px 0 6px;
}

.co-textarea-container:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.textarea-title {
    position: relative;
    padding-bottom: 6px;
    padding-left: 24px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.textarea-title::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
}

.textarea-title.has-selection::before {
    background-color: rgba(23, 201, 100, 1);
}

.clarify-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.clarify-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.2);
}

.clarify-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Footer */
.clarify-footer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finished-cnt {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
}

/* Scrollbar for clarify content */
.container-content.clarify::-webkit-scrollbar {
    width: 4px;
}

.container-content.clarify::-webkit-scrollbar-track {
    background: transparent;
}

.container-content.clarify::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.container-content.clarify::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fold-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fold-btn .iconfont {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.45);
}

.fold-btn:hover .iconfont {
    color: rgba(255, 255, 255, 0.85);
}

/* ==================== Todo 组件样式 ==================== */

/* CoToolHeader 通用样式 */
.co-tool-header-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.co-tool-header-container>.iconfont {
    margin-top: 2px;
    margin-right: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.co-tool-header-container .header-icon {
    margin-top: 2px;
    margin-right: 4px;
    display: block;
}

.co-tool-header-container .header-icon .iconfont {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.co-tool-header-container .header-icon.unfold {
    display: none;
}

.co-tool-header-container .icon-zhankai {
    display: none;
}

.co-tool-header-container .icon-zhankai.fold {
    transform: rotateZ(270deg);
}

.co-tool-header-container .icon-zhankai.unfold {
    display: block;
}

.co-tool-header-container .header-text {
    overflow-wrap: anywhere;
    font-weight: 400;
    font-size: 11px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.45);
}

.co-tool-header-container.switch:hover .icon-not-zhankai {
    display: none;
}

.co-tool-header-container.switch:hover .icon-zhankai {
    color: rgba(255, 255, 255, 0.85);
    display: block;
}

.co-tool-header-container.switch:hover .header-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Todo 列表项 */
.todo-item {
    display: flex;
    align-items: flex-start;
}

.todo-item .iconfont {
    margin-top: 1px;
    margin-right: 4px;
    font-size: 13px;
}

.todo-item-text {
    font-weight: 400;
    font-size: 11px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.45);
}

.todo-item .icon-gongju-tododangqian {
    color: rgba(13, 174, 239, 1);
}

.todo-item .icon-gongju-todowancheng {
    color: rgba(37, 165, 123, 1);
}

.todo-item .icon-gongju-todoweikaishi1 {
    color: rgba(255, 255, 255, 0.45);
}

.todo-item.completed .todo-item-text {
    text-decoration: line-through;
}

.todo-item.in_progress .todo-item-text {
    color: rgba(255, 255, 255, 0.85);
}

/* 顶部进度条容器 */
.chat-task-top-container {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 66px;
    margin: 12px;
    margin-top: 0;
    border-radius: 6px;
    background: rgba(30, 30, 30, 1);
}

.chat-task-top-container .task-header {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px 6px 0 0;
    background-color: rgba(61, 61, 61, 0.95);
}

.chat-task-top-container .task-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 进度条样式 */
.co-progress-container {
    width: 100%;
    padding-right: 4px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.co-progress-container .progress-title {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.co-progress-container .progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    flex-grow: 1;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.co-progress-container .progress-inner {
    height: 100%;
    width: 100%;
    border-radius: 100px;
    background-image: linear-gradient(90deg, #449bff 0%, #00ba0f 105.71%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

.co-progress-container .progress-number {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    align-self: center;
}

/* 任务列表底部 */
.chat-task-top-container .task-footer {
    position: relative;
    max-height: 34px;
    padding-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 6px 6px;
    background-color: rgba(61, 61, 61, 0.95);
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.chat-task-top-container .task-footer.is-open {
    max-height: 137px;
    cursor: default;
}

.chat-task-top-container .task-list-scroll {
    height: 100%;
    overflow: hidden;
}

.chat-task-top-container .task-list {
    position: relative;
    height: 100%;
    margin: 0 8px 8px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;

    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-task-top-container .task-list::-webkit-scrollbar {
    display: none;
}

.chat-task-top-container .task-footer.is-open .task-list {
    max-height: 123px;
}

.chat-task-top-container .task-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-task-top-container .task-item .left-info {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
}

.chat-task-top-container .task-item .task-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.chat-task-top-container .task-item .icon-gongju-tododangqian {
    color: rgba(13, 174, 239, 1);
}

.chat-task-top-container .task-item .icon-gongju-todowancheng {
    color: rgba(37, 165, 123, 1);
}

.chat-task-top-container .task-item .icon-gongju-todoweikaishi1 {
    color: rgba(255, 255, 255, 0.45);
}

.chat-task-top-container .task-item .task-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.85);
}

/* 折叠按钮 */
.chat-task-top-container .task-footer-fold-back {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 62px;
    height: 20px;
    font-size: 0;
    cursor: pointer;
}

.chat-task-top-container .task-footer-fold-back svg {
    width: 100%;
    height: 100%;
}

.chat-task-top-container .task-footer-fold-back .iconfont {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* CoToolHeader 在 Todo 中的特殊样式 */
.todo-write-container .co-tool-header-container .icon-gongju-tododangqian {
    color: rgba(13, 174, 239, 1) !important;
}

/* Todo 组件的 file-list 样式 */
.todo-write-container .file-list {
    position: relative;
    padding: 8px 0 0 11px;
    margin-left: 6px;
}

.todo-write-container .file-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    z-index: 1;
    height: calc(100% - 14px);
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.todo-write-container .file-list-inner {
    max-height: 230px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.todo-write-container .file-list-inner::-webkit-scrollbar {
    display: none;
}

/* Todo 完成状态样式 */
.todo-write-container.done {
    padding: 6px 0;
}

.todo-write-container.done .co-file-list-wrapper-container {
    padding: 0;
}

.todo-write-container.done .todo-write-inner-container {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background-color: rgba(255, 255, 255, 0.04);
}

.todo-write-container.done .co-tool-header-container {
    display: none;
}

.todo-write-container.done .todo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.todo-write-container.done .todo-header .left-part {
    display: flex;
    align-items: center;
    gap: 9px;
}

.todo-write-container.done .todo-header .left-part .iconfont {
    font-size: 13px;
    color: rgba(37, 165, 123, 1);
}

.todo-write-container.done .todo-header .left-part .title {
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.65);
}

.todo-write-container.done .todo-header .right-part {
    display: flex;
    gap: 4px;
    align-items: center;
}

.todo-write-container.done .success-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-write-container.done .success-dot::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #25a57b;
}

/* ========== Plan Detail 样式 ========== */
.plan-detail-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: #171719;
}

.plan-detail-header {
    padding: 12px;
    padding-bottom: 8px;
}

.plan-detail-header-info {
    display: flex;
    align-items: center;
}

.plan-detail-title {
    max-width: 100%;
    margin-right: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-tag {
    height: 16px;
    margin-right: 4px;
    padding: 0 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.plan-tag.plan-version-tag {
    background-color: rgba(57, 146, 255, 0.15);
}

.plan-tag .iconfont {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 2px;
}

.plan-detail-content {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    max-height: 600px;
}

.plan-detail-content-outer-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.plan-markdown-content {
    width: 100%;
    outline: none;
    cursor: text;
}

.plan-markdown-content:focus {
    outline: none;
}

.plan-markdown-content .mermaid-diagram-container {
    pointer-events: auto;
    user-select: none;
}

.plan-markdown-content h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0 12px;
    color: rgba(255, 255, 255, 0.95);
}

.plan-markdown-content h2 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 12px 0 8px;
    color: rgba(255, 255, 255, 0.90);
}

.plan-markdown-content h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 14px 0 8px;
    color: rgba(255, 255, 255, 0.85);
}

.plan-markdown-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 12px 0 6px;
    color: rgba(255, 255, 255, 0.85);
}

.plan-markdown-content p {
    font-size: 13px;
    line-height: 1.6;
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.75);
}

.plan-markdown-content li {
    font-size: 13px;
    line-height: 1.6;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.75);
    list-style: disc;
}

.plan-markdown-content br {
    display: block;
    content: "";
    margin: 6px 0;
}

/* Mermaid 流程图样式 */
.mermaid-diagram-container {
    margin: 16px 0;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mermaid-diagram-container.rendered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mermaid-diagram-container svg {
    max-width: 100%;
    height: auto;
}

.mermaid-error {
    color: rgba(255, 100, 100, 0.85);
    padding: 12px;
    text-align: center;
    font-size: 12px;
}

/* 固定回复样式 */
.ai-response-text p {
    font-size: 13px;
    margin: 6px 0;
    line-height: 1.8;
}

.download-link {
    color: rgb(102 170 249 / var(--tw-text-opacity, 1));
    cursor: pointer;
}

.download-link:hover {
    text-decoration: underline;
}