.toast-container {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    background: #fff; color: #000; border: 1px solid #ccc;
    padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: toastEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 16px;
    padding: 30px; width: 340px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-modal-overlay.active { opacity: 1; }
.custom-modal-overlay.active .custom-modal { transform: scale(1); }
.custom-modal p { margin-bottom: 24px; font-size: 15px; font-weight: 500; color: #000; line-height: 1.5; }
.custom-modal-actions { display: flex; gap: 12px; }
.custom-modal-actions button {
    flex: 1; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.custom-modal-btn-cancel { background: #fff; border: 1px solid #ccc; color: #333; }
.custom-modal-btn-cancel:hover { background: #f5f5f5; border-color: #999; }
.custom-modal-btn-confirm { background: #000; border: 1px solid #000; color: #fff; }
.custom-modal-btn-confirm:hover { background: #333; }


.context-menu {
    display: none;
    position: fixed;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 6px 0;
    z-index: 10001;
    min-width: 160px;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
}
.context-menu-item:hover,
.context-menu-item:focus {
    background: #f5f5f5;
    outline: none;
}
.context-menu-item svg {
    width: 18px;
    height: 18px;
    fill: #666;
}
.context-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}


.think-block {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.think-block[open] {
    padding-bottom: 4px;
}
.think-summary {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.think-summary::-webkit-details-marker {
    display: none;
}
.think-summary::before {
    content: '▶';
    font-size: 10px;
    transition: transform 0.2s;
    color: #999;
}
.think-block[open] .think-summary::before {
    transform: rotate(90deg);
}
.think-icon {
    fill: #666;
    color: #666;
    flex-shrink: 0;
}
.think-icon.thinking {
    animation: brainBlink 1.05s steps(2, end) infinite;
}
.think-content {
    padding: 0 16px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 0;
}
.think-content p {
    margin-bottom: 0.5em;
}
.think-content p:last-child {
    margin-bottom: 0;
}

.ns-tag-summary {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.3px;
}

.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

.update-refresh-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.update-refresh-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.update-dismiss-btn {
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.update-dismiss-btn:hover {
    opacity: 1;
}
